Built motion from commit 7767ffc.|0.0.132
[motion.git] / public / bower_components / adf-structures-base / adf-structures-base.js
1 /* *
2  * The MIT License
3  *
4  * Copyright (c) 2015, Sebastian Sdorra
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in
14  * all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22  * THE SOFTWARE.
23  */
24 'use strict';
25
26 angular.module('adf.structures.base', ['adf'])
27   .config(["dashboardProvider", function(dashboardProvider){
28
29     dashboardProvider
30       .structure('6-6', {
31         rows: [{
32           columns: [{
33             styleClass: 'col-md-6'
34           }, {
35             styleClass: 'col-md-6'
36           }]
37         }]
38       })
39       .structure('4-8', {
40         rows: [{
41           columns: [{
42             styleClass: 'col-md-4',
43             widgets: []
44           }, {
45             styleClass: 'col-md-8',
46             widgets: []
47           }]
48         }]
49       })
50       .structure('12/4-4-4', {
51         rows: [{
52           columns: [{
53             styleClass: 'col-md-12'
54           }]
55         }, {
56           columns: [{
57             styleClass: 'col-md-4'
58           }, {
59             styleClass: 'col-md-4'
60           }, {
61             styleClass: 'col-md-4'
62           }]
63         }]
64       })
65       .structure('12/6-6', {
66         rows: [{
67           columns: [{
68             styleClass: 'col-md-12'
69           }]
70         }, {
71           columns: [{
72             styleClass: 'col-md-6'
73           }, {
74             styleClass: 'col-md-6'
75           }]
76         }]
77       })
78       .structure('12/6-6/12', {
79         rows: [{
80           columns: [{
81             styleClass: 'col-md-12'
82           }]
83         }, {
84           columns: [{
85             styleClass: 'col-md-6'
86           }, {
87             styleClass: 'col-md-6'
88           }]
89         }, {
90           columns: [{
91             styleClass: 'col-md-12'
92           }]
93         }]
94       })
95       .structure('3-9 (12/6-6)', {
96         rows: [{
97           columns: [{
98             styleClass: 'col-md-3'
99           }, {
100             styleClass: 'col-md-9',
101             rows: [{
102               columns: [{
103                 styleClass: 'col-md-12'
104               }]
105             }, {
106               columns: [{
107                 styleClass: 'col-md-6'
108               }, {
109                 styleClass: 'col-md-6'
110               }]
111             }]
112           }]
113         }]
114       });
115
116   }]);