@energinet/watt 4.2.20 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/styles/_vater.scss
CHANGED
|
@@ -61,6 +61,22 @@
|
|
|
61
61
|
height: 100%;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
vater-grid-area,
|
|
65
|
+
[vater-grid-area] {
|
|
66
|
+
&.vater-fill-horizontal {
|
|
67
|
+
grid-column: 1 / -1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.vater-fill-vertical {
|
|
71
|
+
grid-row: 1 / -1;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.vater-fill-both {
|
|
75
|
+
grid-row: 1 / -1;
|
|
76
|
+
grid-column: 1 / -1;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
64
80
|
:not(vater-stack, [vater-stack], vater-flex, [vater-flex]) {
|
|
65
81
|
&.vater-fill-vertical,
|
|
66
82
|
&.vater-fill-horizontal,
|
|
@@ -131,6 +147,8 @@
|
|
|
131
147
|
}
|
|
132
148
|
|
|
133
149
|
.vater-offset-xs {
|
|
150
|
+
padding: var(--watt-space-xs);
|
|
151
|
+
|
|
134
152
|
&.vater-column {
|
|
135
153
|
padding: var(--watt-space-xs) 0;
|
|
136
154
|
}
|
|
@@ -141,6 +159,8 @@
|
|
|
141
159
|
}
|
|
142
160
|
|
|
143
161
|
.vater-offset-s {
|
|
162
|
+
padding: var(--watt-space-s);
|
|
163
|
+
|
|
144
164
|
&.vater-column {
|
|
145
165
|
padding: var(--watt-space-s) 0;
|
|
146
166
|
}
|
|
@@ -151,6 +171,8 @@
|
|
|
151
171
|
}
|
|
152
172
|
|
|
153
173
|
.vater-offset-m {
|
|
174
|
+
padding: var(--watt-space-m);
|
|
175
|
+
|
|
154
176
|
&.vater-column {
|
|
155
177
|
padding: var(--watt-space-m) 0;
|
|
156
178
|
}
|
|
@@ -161,6 +183,8 @@
|
|
|
161
183
|
}
|
|
162
184
|
|
|
163
185
|
.vater-offset-ml {
|
|
186
|
+
padding: var(--watt-space-ml);
|
|
187
|
+
|
|
164
188
|
&.vater-column {
|
|
165
189
|
padding: var(--watt-space-ml) 0;
|
|
166
190
|
}
|
|
@@ -171,6 +195,8 @@
|
|
|
171
195
|
}
|
|
172
196
|
|
|
173
197
|
.vater-offset-l {
|
|
198
|
+
padding: var(--watt-space-l);
|
|
199
|
+
|
|
174
200
|
&.vater-column {
|
|
175
201
|
padding: var(--watt-space-l) 0;
|
|
176
202
|
}
|
|
@@ -181,6 +207,8 @@
|
|
|
181
207
|
}
|
|
182
208
|
|
|
183
209
|
.vater-offset-xl {
|
|
210
|
+
padding: var(--watt-space-xl);
|
|
211
|
+
|
|
184
212
|
&.vater-column {
|
|
185
213
|
padding: var(--watt-space-xl) 0;
|
|
186
214
|
}
|
|
@@ -261,4 +289,20 @@
|
|
|
261
289
|
.vater-justify-space-evenly {
|
|
262
290
|
justify-content: space-evenly;
|
|
263
291
|
}
|
|
292
|
+
|
|
293
|
+
.vater-subgrid-columns {
|
|
294
|
+
display: grid;
|
|
295
|
+
grid-template-columns: subgrid;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.vater-subgrid-rows {
|
|
299
|
+
display: grid;
|
|
300
|
+
grid-template-rows: subgrid;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.vater-subgrid-both {
|
|
304
|
+
display: grid;
|
|
305
|
+
grid-template-columns: subgrid;
|
|
306
|
+
grid-template-rows: subgrid;
|
|
307
|
+
}
|
|
264
308
|
}
|
|
@@ -70,36 +70,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
70
70
|
* limitations under the License.
|
|
71
71
|
*/
|
|
72
72
|
//#endregion
|
|
73
|
-
class
|
|
73
|
+
class VaterFlexboxDirective {
|
|
74
74
|
/** Cross axis alignment of the flex items. */
|
|
75
75
|
align = input(...(ngDevMode ? [undefined, { debugName: "align" }] : []));
|
|
76
76
|
/** Direction of the flex items. Defaults to `column`. */
|
|
77
77
|
direction = input('column', ...(ngDevMode ? [{ debugName: "direction" }] : []));
|
|
78
|
-
/** Spacing between the flex items. */
|
|
79
|
-
gap = input(...(ngDevMode ? [undefined, { debugName: "gap" }] : []));
|
|
80
78
|
/** Main axis alignment of the flex items. */
|
|
81
79
|
justify = input(...(ngDevMode ? [undefined, { debugName: "justify" }] : []));
|
|
82
|
-
/** Offset to apply along the main axis. */
|
|
83
|
-
offset = input(...(ngDevMode ? [undefined, { debugName: "offset" }] : []));
|
|
84
80
|
/** Whether the flex items should wrap. */
|
|
85
81
|
wrap = input(false, ...(ngDevMode ? [{ debugName: "wrap", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
86
82
|
// Computed class names
|
|
87
83
|
alignClass = computed(() => this.align() && `vater-align-${this.align()}`, ...(ngDevMode ? [{ debugName: "alignClass" }] : []));
|
|
88
84
|
directionClass = computed(() => this.direction() && `vater-${this.direction()}`, ...(ngDevMode ? [{ debugName: "directionClass" }] : []));
|
|
89
|
-
gapClass = computed(() => this.gap() && `vater-gap-${this.gap()}`, ...(ngDevMode ? [{ debugName: "gapClass" }] : []));
|
|
90
85
|
justifyClass = computed(() => this.justify() && `vater-justify-${this.justify()}`, ...(ngDevMode ? [{ debugName: "justifyClass" }] : []));
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
this.directionClass(),
|
|
95
|
-
this.gapClass(),
|
|
96
|
-
this.justifyClass(),
|
|
97
|
-
this.offsetClass(),
|
|
98
|
-
].filter(Boolean), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
99
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: VaterLayoutDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
100
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: VaterLayoutDirective, isStandalone: true, inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "class()", "class.vater-wrap": "wrap()", "attr.align": "null", "attr.direction": "null", "attr.gap": "null", "attr.justify": "null", "attr.offset": "null", "attr.wrap": "null" } }, ngImport: i0 });
|
|
86
|
+
class = computed(() => [this.alignClass(), this.directionClass(), this.justifyClass()].filter(Boolean), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
87
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: VaterFlexboxDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
88
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: VaterFlexboxDirective, isStandalone: true, inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "class()", "class.vater-wrap": "wrap()", "attr.align": "null", "attr.direction": "null", "attr.justify": "null", "attr.wrap": "null" } }, ngImport: i0 });
|
|
101
89
|
}
|
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type:
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: VaterFlexboxDirective, decorators: [{
|
|
103
91
|
type: Directive,
|
|
104
92
|
args: [{
|
|
105
93
|
host: {
|
|
@@ -107,13 +95,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
107
95
|
'[class.vater-wrap]': 'wrap()',
|
|
108
96
|
'[attr.align]': 'null',
|
|
109
97
|
'[attr.direction]': 'null',
|
|
110
|
-
'[attr.gap]': 'null',
|
|
111
98
|
'[attr.justify]': 'null',
|
|
112
|
-
'[attr.offset]': 'null',
|
|
113
99
|
'[attr.wrap]': 'null',
|
|
114
100
|
},
|
|
115
101
|
}]
|
|
116
|
-
}], propDecorators: { align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }],
|
|
102
|
+
}], propDecorators: { align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], justify: [{ type: i0.Input, args: [{ isSignal: true, alias: "justify", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }] } });
|
|
103
|
+
|
|
104
|
+
//#region License
|
|
105
|
+
/**
|
|
106
|
+
* @license
|
|
107
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
108
|
+
*
|
|
109
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
110
|
+
* you may not use this file except in compliance with the License.
|
|
111
|
+
* You may obtain a copy of the License at
|
|
112
|
+
*
|
|
113
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
114
|
+
*
|
|
115
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
116
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
117
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
118
|
+
* See the License for the specific language governing permissions and
|
|
119
|
+
* limitations under the License.
|
|
120
|
+
*/
|
|
121
|
+
//#endregion
|
|
122
|
+
class VaterLayoutDirective {
|
|
123
|
+
/** Spacing between items. */
|
|
124
|
+
gap = input(...(ngDevMode ? [undefined, { debugName: "gap" }] : []));
|
|
125
|
+
/** Offset to apply along the main axis (or both axes for grids). */
|
|
126
|
+
offset = input(...(ngDevMode ? [undefined, { debugName: "offset" }] : []));
|
|
127
|
+
// Computed class names
|
|
128
|
+
gapClass = computed(() => this.gap() && `vater-gap-${this.gap()}`, ...(ngDevMode ? [{ debugName: "gapClass" }] : []));
|
|
129
|
+
offsetClass = computed(() => this.offset() && `vater-offset-${this.offset()}`, ...(ngDevMode ? [{ debugName: "offsetClass" }] : []));
|
|
130
|
+
class = computed(() => [this.gapClass(), this.offsetClass()].filter(Boolean), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
131
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: VaterLayoutDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
132
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: VaterLayoutDirective, isStandalone: true, inputs: { gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "class()", "attr.gap": "null", "attr.offset": "null" } }, ngImport: i0 });
|
|
133
|
+
}
|
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: VaterLayoutDirective, decorators: [{
|
|
135
|
+
type: Directive,
|
|
136
|
+
args: [{
|
|
137
|
+
host: {
|
|
138
|
+
'[class]': 'class()',
|
|
139
|
+
'[attr.gap]': 'null',
|
|
140
|
+
'[attr.offset]': 'null',
|
|
141
|
+
},
|
|
142
|
+
}]
|
|
143
|
+
}], propDecorators: { gap: [{ type: i0.Input, args: [{ isSignal: true, alias: "gap", required: false }] }], offset: [{ type: i0.Input, args: [{ isSignal: true, alias: "offset", required: false }] }] } });
|
|
117
144
|
|
|
118
145
|
//#region License
|
|
119
146
|
/**
|
|
@@ -142,14 +169,18 @@ class VaterFlexComponent {
|
|
|
142
169
|
*/
|
|
143
170
|
autoSize = input(false, ...(ngDevMode ? [{ debugName: "autoSize", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
144
171
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: VaterFlexComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
145
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: VaterFlexComponent, isStandalone: true, selector: "vater-flex, [vater-flex]", inputs: { autoSize: { classPropertyName: "autoSize", publicName: "autoSize", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.vater-flex-auto": "autoSize()" } }, hostDirectives: [{ directive:
|
|
172
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: VaterFlexComponent, isStandalone: true, selector: "vater-flex, [vater-flex]", inputs: { autoSize: { classPropertyName: "autoSize", publicName: "autoSize", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.vater-flex-auto": "autoSize()" } }, hostDirectives: [{ directive: VaterFlexboxDirective, inputs: ["align", "align", "direction", "direction", "justify", "justify", "wrap", "wrap"] }, { directive: VaterLayoutDirective, inputs: ["gap", "gap", "offset", "offset"] }, { directive: VaterUtilityDirective, inputs: ["center", "center", "fill", "fill", "inset", "inset", "scrollable", "scrollable"] }], ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["vater-flex,[vater-flex]{display:flex;line-height:normal}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
146
173
|
}
|
|
147
174
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: VaterFlexComponent, decorators: [{
|
|
148
175
|
type: Component,
|
|
149
176
|
args: [{ selector: 'vater-flex, [vater-flex]', encapsulation: ViewEncapsulation.None, hostDirectives: [
|
|
177
|
+
{
|
|
178
|
+
directive: VaterFlexboxDirective,
|
|
179
|
+
inputs: ['align', 'direction', 'justify', 'wrap'],
|
|
180
|
+
},
|
|
150
181
|
{
|
|
151
182
|
directive: VaterLayoutDirective,
|
|
152
|
-
inputs: ['
|
|
183
|
+
inputs: ['gap', 'offset'],
|
|
153
184
|
},
|
|
154
185
|
{
|
|
155
186
|
directive: VaterUtilityDirective,
|
|
@@ -158,6 +189,112 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
158
189
|
], host: { '[class.vater-flex-auto]': 'autoSize()' }, template: `<ng-content />`, styles: ["vater-flex,[vater-flex]{display:flex;line-height:normal}\n"] }]
|
|
159
190
|
}], propDecorators: { autoSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoSize", required: false }] }] } });
|
|
160
191
|
|
|
192
|
+
//#region License
|
|
193
|
+
/**
|
|
194
|
+
* @license
|
|
195
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
196
|
+
*
|
|
197
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
198
|
+
* you may not use this file except in compliance with the License.
|
|
199
|
+
* You may obtain a copy of the License at
|
|
200
|
+
*
|
|
201
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
202
|
+
*
|
|
203
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
204
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
205
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
206
|
+
* See the License for the specific language governing permissions and
|
|
207
|
+
* limitations under the License.
|
|
208
|
+
*/
|
|
209
|
+
//#endregion
|
|
210
|
+
class VaterGridAreaComponent {
|
|
211
|
+
/** Optional input for providing a descriptive name. Unused by the component. */
|
|
212
|
+
name = input('', ...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
213
|
+
/** Specify the grid areas size and location within a grid column (`grid-column`). */
|
|
214
|
+
column = input(...(ngDevMode ? [undefined, { debugName: "column" }] : []));
|
|
215
|
+
/** Specify the grid areas size and location within a grid row (`grid-row`). */
|
|
216
|
+
row = input(...(ngDevMode ? [undefined, { debugName: "row" }] : []));
|
|
217
|
+
/**
|
|
218
|
+
* Whether the grid area should also be a grid and inherit track sizing
|
|
219
|
+
* for `columns`, `rows` or `both` from the parent grid.
|
|
220
|
+
*/
|
|
221
|
+
subgrid = input(...(ngDevMode ? [undefined, { debugName: "subgrid" }] : []));
|
|
222
|
+
// Computed class name
|
|
223
|
+
class = computed(() => this.subgrid() && `vater-subgrid-${this.subgrid()}`, ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
224
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: VaterGridAreaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
225
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: VaterGridAreaComponent, isStandalone: true, selector: "vater-grid-area, [vater-grid-area]", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, column: { classPropertyName: "column", publicName: "column", isSignal: true, isRequired: false, transformFunction: null }, row: { classPropertyName: "row", publicName: "row", isSignal: true, isRequired: false, transformFunction: null }, subgrid: { classPropertyName: "subgrid", publicName: "subgrid", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "class()", "style.gridColumn": "column()", "style.gridRow": "row()" } }, hostDirectives: [{ directive: VaterLayoutDirective, inputs: ["gap", "gap", "offset", "offset"] }, { directive: VaterUtilityDirective, inputs: ["fill", "fill", "scrollable", "scrollable"] }], ngImport: i0, template: `<ng-content />`, isInline: true, encapsulation: i0.ViewEncapsulation.None });
|
|
226
|
+
}
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: VaterGridAreaComponent, decorators: [{
|
|
228
|
+
type: Component,
|
|
229
|
+
args: [{
|
|
230
|
+
selector: 'vater-grid-area, [vater-grid-area]',
|
|
231
|
+
encapsulation: ViewEncapsulation.None,
|
|
232
|
+
hostDirectives: [
|
|
233
|
+
{
|
|
234
|
+
directive: VaterLayoutDirective,
|
|
235
|
+
inputs: ['gap', 'offset'],
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
directive: VaterUtilityDirective,
|
|
239
|
+
inputs: ['fill', 'scrollable'],
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
host: {
|
|
243
|
+
'[class]': 'class()',
|
|
244
|
+
'[style.gridColumn]': 'column()',
|
|
245
|
+
'[style.gridRow]': 'row()',
|
|
246
|
+
},
|
|
247
|
+
template: `<ng-content />`,
|
|
248
|
+
}]
|
|
249
|
+
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], column: [{ type: i0.Input, args: [{ isSignal: true, alias: "column", required: false }] }], row: [{ type: i0.Input, args: [{ isSignal: true, alias: "row", required: false }] }], subgrid: [{ type: i0.Input, args: [{ isSignal: true, alias: "subgrid", required: false }] }] } });
|
|
250
|
+
|
|
251
|
+
//#region License
|
|
252
|
+
/**
|
|
253
|
+
* @license
|
|
254
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
255
|
+
*
|
|
256
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
257
|
+
* you may not use this file except in compliance with the License.
|
|
258
|
+
* You may obtain a copy of the License at
|
|
259
|
+
*
|
|
260
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
261
|
+
*
|
|
262
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
263
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
264
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
265
|
+
* See the License for the specific language governing permissions and
|
|
266
|
+
* limitations under the License.
|
|
267
|
+
*/
|
|
268
|
+
//#endregion
|
|
269
|
+
class VaterGridComponent {
|
|
270
|
+
/** Column template (`grid-template-columns`) or number of equal sized columns. */
|
|
271
|
+
columns = input(1, ...(ngDevMode ? [{ debugName: "columns" }] : []));
|
|
272
|
+
/** Row template (`grid-template-rows`) or number of equal sized rows. */
|
|
273
|
+
rows = input(1, ...(ngDevMode ? [{ debugName: "rows" }] : []));
|
|
274
|
+
// Computed templates
|
|
275
|
+
templateColumns = computed(() => this.makeTrackList(this.columns()), ...(ngDevMode ? [{ debugName: "templateColumns" }] : []));
|
|
276
|
+
templateRows = computed(() => this.makeTrackList(this.rows()), ...(ngDevMode ? [{ debugName: "templateRows" }] : []));
|
|
277
|
+
makeTrackList = (input) => typeof input === 'string' ? input : '1fr '.repeat(input).trim();
|
|
278
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: VaterGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
279
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: VaterGridComponent, isStandalone: true, selector: "vater-grid, [vater-grid]", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.gridTemplateColumns": "templateColumns()", "style.gridTemplateRows": "templateRows()" } }, hostDirectives: [{ directive: VaterLayoutDirective, inputs: ["gap", "gap", "offset", "offset"] }, { directive: VaterUtilityDirective, inputs: ["center", "center", "fill", "fill", "inset", "inset", "scrollable", "scrollable"] }], ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["vater-grid,[vater-grid]{display:grid}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
280
|
+
}
|
|
281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: VaterGridComponent, decorators: [{
|
|
282
|
+
type: Component,
|
|
283
|
+
args: [{ selector: 'vater-grid, [vater-grid]', encapsulation: ViewEncapsulation.None, hostDirectives: [
|
|
284
|
+
{
|
|
285
|
+
directive: VaterLayoutDirective,
|
|
286
|
+
inputs: ['gap', 'offset'],
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
directive: VaterUtilityDirective,
|
|
290
|
+
inputs: ['center', 'fill', 'inset', 'scrollable'],
|
|
291
|
+
},
|
|
292
|
+
], host: {
|
|
293
|
+
'[style.gridTemplateColumns]': 'templateColumns()',
|
|
294
|
+
'[style.gridTemplateRows]': 'templateRows()',
|
|
295
|
+
}, template: `<ng-content />`, styles: ["vater-grid,[vater-grid]{display:grid}\n"] }]
|
|
296
|
+
}], propDecorators: { columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }] } });
|
|
297
|
+
|
|
161
298
|
//#region License
|
|
162
299
|
/**
|
|
163
300
|
* @license
|
|
@@ -205,14 +342,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
205
342
|
//#endregion
|
|
206
343
|
class VaterStackComponent {
|
|
207
344
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: VaterStackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
208
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: VaterStackComponent, isStandalone: true, selector: "vater-stack, [vater-stack]", hostDirectives: [{ directive:
|
|
345
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: VaterStackComponent, isStandalone: true, selector: "vater-stack, [vater-stack]", hostDirectives: [{ directive: VaterFlexboxDirective, inputs: ["align", "align", "direction", "direction", "justify", "justify", "wrap", "wrap"] }, { directive: VaterLayoutDirective, inputs: ["gap", "gap", "offset", "offset"] }, { directive: VaterUtilityDirective, inputs: ["center", "center", "fill", "fill", "inset", "inset", "scrollable", "scrollable"] }], ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["vater-stack,[vater-stack]{display:flex;line-height:normal}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
209
346
|
}
|
|
210
347
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: VaterStackComponent, decorators: [{
|
|
211
348
|
type: Component,
|
|
212
349
|
args: [{ selector: 'vater-stack, [vater-stack]', encapsulation: ViewEncapsulation.None, hostDirectives: [
|
|
350
|
+
{
|
|
351
|
+
directive: VaterFlexboxDirective,
|
|
352
|
+
inputs: ['align', 'direction', 'justify', 'wrap'],
|
|
353
|
+
},
|
|
213
354
|
{
|
|
214
355
|
directive: VaterLayoutDirective,
|
|
215
|
-
inputs: ['
|
|
356
|
+
inputs: ['gap', 'offset'],
|
|
216
357
|
},
|
|
217
358
|
{
|
|
218
359
|
directive: VaterUtilityDirective,
|
|
@@ -239,10 +380,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
239
380
|
* limitations under the License.
|
|
240
381
|
*/
|
|
241
382
|
//#endregion
|
|
383
|
+
const VATER = [
|
|
384
|
+
VaterFlexComponent,
|
|
385
|
+
VaterGridAreaComponent,
|
|
386
|
+
VaterGridComponent,
|
|
387
|
+
VaterSpacerComponent,
|
|
388
|
+
VaterStackComponent,
|
|
389
|
+
VaterUtilityDirective,
|
|
390
|
+
];
|
|
242
391
|
|
|
243
392
|
/**
|
|
244
393
|
* Generated bundle index. Do not edit.
|
|
245
394
|
*/
|
|
246
395
|
|
|
247
|
-
export { VaterFlexComponent, VaterLayoutDirective, VaterSpacerComponent, VaterStackComponent, VaterUtilityDirective };
|
|
396
|
+
export { VATER, VaterFlexComponent, VaterFlexboxDirective, VaterGridAreaComponent, VaterGridComponent, VaterLayoutDirective, VaterSpacerComponent, VaterStackComponent, VaterUtilityDirective };
|
|
248
397
|
//# sourceMappingURL=energinet-watt-vater.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"energinet-watt-vater.mjs","sources":["../../../libs/watt/package/vater/vater-utility.directive.ts","../../../libs/watt/package/vater/vater-layout.directive.ts","../../../libs/watt/package/vater/vater-flex.component.ts","../../../libs/watt/package/vater/vater-spacer.component.ts","../../../libs/watt/package/vater/vater-stack.component.ts","../../../libs/watt/package/vater/index.ts","../../../libs/watt/package/vater/energinet-watt-vater.ts"],"sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { booleanAttribute, computed, Directive, input } from '@angular/core';\nimport { Fill, Inset } from './types';\n\n/* eslint-disable @angular-eslint/no-input-rename */\n@Directive({\n selector: '[vater]',\n host: {\n '[class]': 'class()',\n '[class.vater-center]': 'center()',\n '[class.vater-scrollable]': 'scrollable()',\n '[attr.center]': 'null',\n '[attr.fill]': 'null',\n '[attr.inset]': 'null',\n '[attr.scrollable]': 'null',\n },\n})\nexport class VaterUtilityDirective {\n /** Center the element horizontally and vertically. */\n center = input(false, { transform: booleanAttribute });\n\n /** Stretch the element to fill the available space in one or both directions. */\n fill = input<Fill>();\n\n /** Position the element absolute with the provided inset value. */\n inset = input<Inset>();\n\n /** Make the element scrollable. */\n scrollable = input(false, { transform: booleanAttribute });\n\n // Computed class names\n protected fillClass = computed(() => this.fill() && `vater-fill-${this.fill()}`);\n protected insetClass = computed(() => this.inset() && `vater-inset-${this.inset()}`);\n protected class = computed(() => [this.fillClass(), this.insetClass()].filter(Boolean));\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { booleanAttribute, computed, Directive, input } from '@angular/core';\nimport { Align, Direction, Justify, Spacing } from './types';\n\n@Directive({\n host: {\n '[class]': 'class()',\n '[class.vater-wrap]': 'wrap()',\n '[attr.align]': 'null',\n '[attr.direction]': 'null',\n '[attr.gap]': 'null',\n '[attr.justify]': 'null',\n '[attr.offset]': 'null',\n '[attr.wrap]': 'null',\n },\n})\nexport class VaterLayoutDirective {\n /** Cross axis alignment of the flex items. */\n align = input<Align>();\n\n /** Direction of the flex items. Defaults to `column`. */\n direction = input<Direction>('column');\n\n /** Spacing between the flex items. */\n gap = input<Spacing>();\n\n /** Main axis alignment of the flex items. */\n justify = input<Justify>();\n\n /** Offset to apply along the main axis. */\n offset = input<Spacing>();\n\n /** Whether the flex items should wrap. */\n wrap = input(false, { transform: booleanAttribute });\n\n // Computed class names\n protected alignClass = computed(() => this.align() && `vater-align-${this.align()}`);\n protected directionClass = computed(() => this.direction() && `vater-${this.direction()}`);\n protected gapClass = computed(() => this.gap() && `vater-gap-${this.gap()}`);\n protected justifyClass = computed(() => this.justify() && `vater-justify-${this.justify()}`);\n protected offsetClass = computed(() => this.offset() && `vater-offset-${this.offset()}`);\n protected class = computed(() =>\n [\n this.alignClass(),\n this.directionClass(),\n this.gapClass(),\n this.justifyClass(),\n this.offsetClass(),\n ].filter(Boolean)\n );\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { booleanAttribute, Component, input, ViewEncapsulation } from '@angular/core';\nimport { VaterUtilityDirective } from './vater-utility.directive';\nimport { VaterLayoutDirective } from './vater-layout.directive';\n\n@Component({\n selector: 'vater-flex, [vater-flex]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterLayoutDirective,\n inputs: ['align', 'direction', 'justify', 'wrap', 'gap', 'offset'],\n },\n {\n directive: VaterUtilityDirective,\n inputs: ['center', 'fill', 'inset', 'scrollable'],\n },\n ],\n host: { '[class.vater-flex-auto]': 'autoSize()' },\n styles: `\n vater-flex,\n [vater-flex] {\n display: flex;\n line-height: normal;\n }\n `,\n template: `<ng-content />`,\n})\nexport class VaterFlexComponent {\n /**\n * When set, sizes the flex items according to their width or height properties.\n * @see https://drafts.csswg.org/css-flexbox-1/#flex-common\n * @remarks\n * Prefer setting `fill` on flex items over using `autoSize`.\n */\n autoSize = input(false, { transform: booleanAttribute });\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'vater-spacer, [vater-spacer]',\n encapsulation: ViewEncapsulation.None,\n styles: `\n vater-spacer,\n [vater-spacer] {\n flex: 1;\n align-self: stretch;\n }\n `,\n template: '<ng-content />',\n})\nexport class VaterSpacerComponent {}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component, ViewEncapsulation } from '@angular/core';\nimport { VaterUtilityDirective } from './vater-utility.directive';\nimport { VaterLayoutDirective } from './vater-layout.directive';\n\n@Component({\n selector: 'vater-stack, [vater-stack]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterLayoutDirective,\n inputs: ['align', 'direction', 'justify', 'wrap', 'gap', 'offset'],\n },\n {\n directive: VaterUtilityDirective,\n inputs: ['center', 'fill', 'inset', 'scrollable'],\n },\n ],\n styles: `\n vater-stack,\n [vater-stack] {\n display: flex;\n line-height: normal;\n }\n `,\n template: `<ng-content />`,\n})\nexport class VaterStackComponent {}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { VaterFlexComponent } from './vater-flex.component';\nexport { VaterSpacerComponent } from './vater-spacer.component';\nexport { VaterStackComponent } from './vater-stack.component';\nexport { VaterLayoutDirective } from './vater-layout.directive';\nexport { VaterUtilityDirective } from './vater-utility.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAIA;MAaa,qBAAqB,CAAA;;AAEhC,IAAA,MAAM,GAAG,KAAK,CAAC,KAAK,0CAAI,SAAS,EAAE,gBAAgB,EAAA,CAAA,GAAA,CAA7B,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAC;;IAGtD,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAQ;;IAGpB,KAAK,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,OAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAS;;AAGtB,IAAA,UAAU,GAAG,KAAK,CAAC,KAAK,8CAAI,SAAS,EAAE,gBAAgB,EAAA,CAAA,GAAA,CAA7B,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAC;;AAGhD,IAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,IAAI,cAAc,IAAI,CAAC,IAAI,EAAE,CAAA,CAAE,qDAAC;AACtE,IAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,IAAI,eAAe,IAAI,CAAC,KAAK,EAAE,CAAA,CAAE,sDAAC;IAC1E,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CA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AM,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC;AACnE,yBAAA;AACD,wBAAA;AACE,4BAAA,SAAS,EAAE,qBAAqB;4BAChC,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC;AAClD,yBAAA;AACF,qBAAA,EAAA,QAAA,EAQS,CAAA,cAAA,CAAgB,EAAA,MAAA,EAAA,CAAA,8DAAA,CAAA,EAAA;;;AC1C5B;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"energinet-watt-vater.mjs","sources":["../../../libs/watt/package/vater/vater-utility.directive.ts","../../../libs/watt/package/vater/vater-flexbox.directive.ts","../../../libs/watt/package/vater/vater-layout.directive.ts","../../../libs/watt/package/vater/vater-flex.component.ts","../../../libs/watt/package/vater/vater-grid-area.component.ts","../../../libs/watt/package/vater/vater-grid.component.ts","../../../libs/watt/package/vater/vater-spacer.component.ts","../../../libs/watt/package/vater/vater-stack.component.ts","../../../libs/watt/package/vater/index.ts","../../../libs/watt/package/vater/energinet-watt-vater.ts"],"sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { booleanAttribute, computed, Directive, input } from '@angular/core';\nimport { Fill, Inset } from './types';\n\n/* eslint-disable @angular-eslint/no-input-rename */\n@Directive({\n selector: '[vater]',\n host: {\n '[class]': 'class()',\n '[class.vater-center]': 'center()',\n '[class.vater-scrollable]': 'scrollable()',\n '[attr.center]': 'null',\n '[attr.fill]': 'null',\n '[attr.inset]': 'null',\n '[attr.scrollable]': 'null',\n },\n})\nexport class VaterUtilityDirective {\n /** Center the element horizontally and vertically. */\n center = input(false, { transform: booleanAttribute });\n\n /** Stretch the element to fill the available space in one or both directions. */\n fill = input<Fill>();\n\n /** Position the element absolute with the provided inset value. */\n inset = input<Inset>();\n\n /** Make the element scrollable. */\n scrollable = input(false, { transform: booleanAttribute });\n\n // Computed class names\n protected fillClass = computed(() => this.fill() && `vater-fill-${this.fill()}`);\n protected insetClass = computed(() => this.inset() && `vater-inset-${this.inset()}`);\n protected class = computed(() => [this.fillClass(), this.insetClass()].filter(Boolean));\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { booleanAttribute, computed, Directive, input } from '@angular/core';\nimport { Align, Direction, Justify } from './types';\n\n@Directive({\n host: {\n '[class]': 'class()',\n '[class.vater-wrap]': 'wrap()',\n '[attr.align]': 'null',\n '[attr.direction]': 'null',\n '[attr.justify]': 'null',\n '[attr.wrap]': 'null',\n },\n})\nexport class VaterFlexboxDirective {\n /** Cross axis alignment of the flex items. */\n align = input<Align>();\n\n /** Direction of the flex items. Defaults to `column`. */\n direction = input<Direction>('column');\n\n /** Main axis alignment of the flex items. */\n justify = input<Justify>();\n\n /** Whether the flex items should wrap. */\n wrap = input(false, { transform: booleanAttribute });\n\n // Computed class names\n protected alignClass = computed(() => this.align() && `vater-align-${this.align()}`);\n protected directionClass = computed(() => this.direction() && `vater-${this.direction()}`);\n protected justifyClass = computed(() => this.justify() && `vater-justify-${this.justify()}`);\n protected class = computed(() =>\n [this.alignClass(), this.directionClass(), this.justifyClass()].filter(Boolean)\n );\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { computed, Directive, input } from '@angular/core';\nimport { Spacing } from './types';\n\n@Directive({\n host: {\n '[class]': 'class()',\n '[attr.gap]': 'null',\n '[attr.offset]': 'null',\n },\n})\nexport class VaterLayoutDirective {\n /** Spacing between items. */\n gap = input<Spacing>();\n\n /** Offset to apply along the main axis (or both axes for grids). */\n offset = input<Spacing>();\n\n // Computed class names\n protected gapClass = computed(() => this.gap() && `vater-gap-${this.gap()}`);\n protected offsetClass = computed(() => this.offset() && `vater-offset-${this.offset()}`);\n protected class = computed(() => [this.gapClass(), this.offsetClass()].filter(Boolean));\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { booleanAttribute, Component, input, ViewEncapsulation } from '@angular/core';\nimport { VaterUtilityDirective } from './vater-utility.directive';\nimport { VaterFlexboxDirective } from './vater-flexbox.directive';\nimport { VaterLayoutDirective } from './vater-layout.directive';\n\n@Component({\n selector: 'vater-flex, [vater-flex]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterFlexboxDirective,\n inputs: ['align', 'direction', 'justify', 'wrap'],\n },\n {\n directive: VaterLayoutDirective,\n inputs: ['gap', 'offset'],\n },\n {\n directive: VaterUtilityDirective,\n inputs: ['center', 'fill', 'inset', 'scrollable'],\n },\n ],\n host: { '[class.vater-flex-auto]': 'autoSize()' },\n styles: `\n vater-flex,\n [vater-flex] {\n display: flex;\n line-height: normal;\n }\n `,\n template: `<ng-content />`,\n})\nexport class VaterFlexComponent {\n /**\n * When set, sizes the flex items according to their width or height properties.\n * @see https://drafts.csswg.org/css-flexbox-1/#flex-common\n * @remarks\n * Prefer setting `fill` on flex items over using `autoSize`.\n */\n autoSize = input(false, { transform: booleanAttribute });\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { VaterUtilityDirective } from './vater-utility.directive';\nimport { VaterLayoutDirective } from './vater-layout.directive';\n\n@Component({\n selector: 'vater-grid-area, [vater-grid-area]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterLayoutDirective,\n inputs: ['gap', 'offset'],\n },\n {\n directive: VaterUtilityDirective,\n inputs: ['fill', 'scrollable'],\n },\n ],\n host: {\n '[class]': 'class()',\n '[style.gridColumn]': 'column()',\n '[style.gridRow]': 'row()',\n },\n template: `<ng-content />`,\n})\nexport class VaterGridAreaComponent {\n /** Optional input for providing a descriptive name. Unused by the component. */\n name = input('');\n\n /** Specify the grid areas size and location within a grid column (`grid-column`). */\n column = input<string | number>();\n\n /** Specify the grid areas size and location within a grid row (`grid-row`). */\n row = input<string | number>();\n\n /**\n * Whether the grid area should also be a grid and inherit track sizing\n * for `columns`, `rows` or `both` from the parent grid.\n */\n subgrid = input<'columns' | 'rows' | 'both'>();\n\n // Computed class name\n protected class = computed(() => this.subgrid() && `vater-subgrid-${this.subgrid()}`);\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { VaterUtilityDirective } from './vater-utility.directive';\nimport { VaterLayoutDirective } from './vater-layout.directive';\n\n@Component({\n selector: 'vater-grid, [vater-grid]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterLayoutDirective,\n inputs: ['gap', 'offset'],\n },\n {\n directive: VaterUtilityDirective,\n inputs: ['center', 'fill', 'inset', 'scrollable'],\n },\n ],\n host: {\n '[style.gridTemplateColumns]': 'templateColumns()',\n '[style.gridTemplateRows]': 'templateRows()',\n },\n styles: `\n vater-grid,\n [vater-grid] {\n display: grid;\n }\n `,\n template: `<ng-content />`,\n})\nexport class VaterGridComponent {\n /** Column template (`grid-template-columns`) or number of equal sized columns. */\n columns = input<string | number>(1);\n\n /** Row template (`grid-template-rows`) or number of equal sized rows. */\n rows = input<string | number>(1);\n\n // Computed templates\n protected templateColumns = computed(() => this.makeTrackList(this.columns()));\n protected templateRows = computed(() => this.makeTrackList(this.rows()));\n private makeTrackList = (input: string | number) =>\n typeof input === 'string' ? input : '1fr '.repeat(input).trim();\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'vater-spacer, [vater-spacer]',\n encapsulation: ViewEncapsulation.None,\n styles: `\n vater-spacer,\n [vater-spacer] {\n flex: 1;\n align-self: stretch;\n }\n `,\n template: '<ng-content />',\n})\nexport class VaterSpacerComponent {}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component, ViewEncapsulation } from '@angular/core';\nimport { VaterFlexboxDirective } from './vater-flexbox.directive';\nimport { VaterLayoutDirective } from './vater-layout.directive';\nimport { VaterUtilityDirective } from './vater-utility.directive';\n\n@Component({\n selector: 'vater-stack, [vater-stack]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterFlexboxDirective,\n inputs: ['align', 'direction', 'justify', 'wrap'],\n },\n {\n directive: VaterLayoutDirective,\n inputs: ['gap', 'offset'],\n },\n {\n directive: VaterUtilityDirective,\n inputs: ['center', 'fill', 'inset', 'scrollable'],\n },\n ],\n styles: `\n vater-stack,\n [vater-stack] {\n display: flex;\n line-height: normal;\n }\n `,\n template: `<ng-content />`,\n})\nexport class VaterStackComponent {}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { VaterFlexComponent } from './vater-flex.component';\nimport { VaterGridAreaComponent } from './vater-grid-area.component';\nimport { VaterGridComponent } from './vater-grid.component';\nimport { VaterSpacerComponent } from './vater-spacer.component';\nimport { VaterStackComponent } from './vater-stack.component';\nimport { VaterUtilityDirective } from './vater-utility.directive';\n\n// Must be exposed for ng-packagr to work\nexport { VaterLayoutDirective } from './vater-layout.directive';\nexport { VaterFlexboxDirective } from './vater-flexbox.directive';\n\nexport {\n VaterFlexComponent,\n VaterGridAreaComponent,\n VaterGridComponent,\n VaterSpacerComponent,\n VaterStackComponent,\n VaterUtilityDirective,\n};\n\nexport const VATER = [\n VaterFlexComponent,\n VaterGridAreaComponent,\n VaterGridComponent,\n VaterSpacerComponent,\n VaterStackComponent,\n VaterUtilityDirective,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAIA;MAaa,qBAAqB,CAAA;;AAEhC,IAAA,MAAM,GAAG,KAAK,CAAC,KAAK,0CAAI,SAAS,EAAE,gBAAgB,EAAA,CAAA,GAAA,CAA7B,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAC;;IAGtD,IAAI,GAAG,KAAK,CAAA,IAAA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AAM,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC;AAClD,yBAAA;AACF,qBAAA,EAAA,QAAA,EAQS,CAAA,cAAA,CAAgB,EAAA,MAAA,EAAA,CAAA,8DAAA,CAAA,EAAA;;;AC/C5B;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAqBO,MAAM,KAAK,GAAG;IACnB,kBAAkB;IAClB,sBAAsB;IACtB,kBAAkB;IAClB,oBAAoB;IACpB,mBAAmB;IACnB,qBAAqB;;;AC5CvB;;AAEG;;;;"}
|
package/package.json
CHANGED
package/vater/index.d.ts
CHANGED
|
@@ -23,27 +23,33 @@ type Align = 'stretch' | 'start' | 'end' | 'center' | 'baseline';
|
|
|
23
23
|
type Direction = 'row' | 'column';
|
|
24
24
|
type Justify = 'start' | 'end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
25
25
|
|
|
26
|
-
declare class
|
|
26
|
+
declare class VaterFlexboxDirective {
|
|
27
27
|
/** Cross axis alignment of the flex items. */
|
|
28
28
|
align: _angular_core.InputSignal<Align | undefined>;
|
|
29
29
|
/** Direction of the flex items. Defaults to `column`. */
|
|
30
30
|
direction: _angular_core.InputSignal<Direction>;
|
|
31
|
-
/** Spacing between the flex items. */
|
|
32
|
-
gap: _angular_core.InputSignal<Spacing | undefined>;
|
|
33
31
|
/** Main axis alignment of the flex items. */
|
|
34
32
|
justify: _angular_core.InputSignal<Justify | undefined>;
|
|
35
|
-
/** Offset to apply along the main axis. */
|
|
36
|
-
offset: _angular_core.InputSignal<Spacing | undefined>;
|
|
37
33
|
/** Whether the flex items should wrap. */
|
|
38
34
|
wrap: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
39
35
|
protected alignClass: _angular_core.Signal<string | undefined>;
|
|
40
36
|
protected directionClass: _angular_core.Signal<string>;
|
|
41
|
-
protected gapClass: _angular_core.Signal<string | undefined>;
|
|
42
37
|
protected justifyClass: _angular_core.Signal<string | undefined>;
|
|
38
|
+
protected class: _angular_core.Signal<(string | undefined)[]>;
|
|
39
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VaterFlexboxDirective, never>;
|
|
40
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<VaterFlexboxDirective, never, never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "justify": { "alias": "justify"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare class VaterLayoutDirective {
|
|
44
|
+
/** Spacing between items. */
|
|
45
|
+
gap: _angular_core.InputSignal<Spacing | undefined>;
|
|
46
|
+
/** Offset to apply along the main axis (or both axes for grids). */
|
|
47
|
+
offset: _angular_core.InputSignal<Spacing | undefined>;
|
|
48
|
+
protected gapClass: _angular_core.Signal<string | undefined>;
|
|
43
49
|
protected offsetClass: _angular_core.Signal<string | undefined>;
|
|
44
50
|
protected class: _angular_core.Signal<(string | undefined)[]>;
|
|
45
51
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VaterLayoutDirective, never>;
|
|
46
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<VaterLayoutDirective, never, never, { "
|
|
52
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<VaterLayoutDirective, never, never, { "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
declare class VaterUtilityDirective {
|
|
@@ -71,7 +77,36 @@ declare class VaterFlexComponent {
|
|
|
71
77
|
*/
|
|
72
78
|
autoSize: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
73
79
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VaterFlexComponent, never>;
|
|
74
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<VaterFlexComponent, "vater-flex, [vater-flex]", never, { "autoSize": { "alias": "autoSize"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof
|
|
80
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<VaterFlexComponent, "vater-flex, [vater-flex]", never, { "autoSize": { "alias": "autoSize"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof VaterFlexboxDirective; inputs: { "align": "align"; "direction": "direction"; "justify": "justify"; "wrap": "wrap"; }; outputs: {}; }, { directive: typeof VaterLayoutDirective; inputs: { "gap": "gap"; "offset": "offset"; }; outputs: {}; }, { directive: typeof VaterUtilityDirective; inputs: { "center": "center"; "fill": "fill"; "inset": "inset"; "scrollable": "scrollable"; }; outputs: {}; }]>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare class VaterGridAreaComponent {
|
|
84
|
+
/** Optional input for providing a descriptive name. Unused by the component. */
|
|
85
|
+
name: _angular_core.InputSignal<string>;
|
|
86
|
+
/** Specify the grid areas size and location within a grid column (`grid-column`). */
|
|
87
|
+
column: _angular_core.InputSignal<string | number | undefined>;
|
|
88
|
+
/** Specify the grid areas size and location within a grid row (`grid-row`). */
|
|
89
|
+
row: _angular_core.InputSignal<string | number | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the grid area should also be a grid and inherit track sizing
|
|
92
|
+
* for `columns`, `rows` or `both` from the parent grid.
|
|
93
|
+
*/
|
|
94
|
+
subgrid: _angular_core.InputSignal<"both" | "columns" | "rows" | undefined>;
|
|
95
|
+
protected class: _angular_core.Signal<string | undefined>;
|
|
96
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VaterGridAreaComponent, never>;
|
|
97
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<VaterGridAreaComponent, "vater-grid-area, [vater-grid-area]", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "column": { "alias": "column"; "required": false; "isSignal": true; }; "row": { "alias": "row"; "required": false; "isSignal": true; }; "subgrid": { "alias": "subgrid"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof VaterLayoutDirective; inputs: { "gap": "gap"; "offset": "offset"; }; outputs: {}; }, { directive: typeof VaterUtilityDirective; inputs: { "fill": "fill"; "scrollable": "scrollable"; }; outputs: {}; }]>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare class VaterGridComponent {
|
|
101
|
+
/** Column template (`grid-template-columns`) or number of equal sized columns. */
|
|
102
|
+
columns: _angular_core.InputSignal<string | number>;
|
|
103
|
+
/** Row template (`grid-template-rows`) or number of equal sized rows. */
|
|
104
|
+
rows: _angular_core.InputSignal<string | number>;
|
|
105
|
+
protected templateColumns: _angular_core.Signal<string>;
|
|
106
|
+
protected templateRows: _angular_core.Signal<string>;
|
|
107
|
+
private makeTrackList;
|
|
108
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VaterGridComponent, never>;
|
|
109
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<VaterGridComponent, "vater-grid, [vater-grid]", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof VaterLayoutDirective; inputs: { "gap": "gap"; "offset": "offset"; }; outputs: {}; }, { directive: typeof VaterUtilityDirective; inputs: { "center": "center"; "fill": "fill"; "inset": "inset"; "scrollable": "scrollable"; }; outputs: {}; }]>;
|
|
75
110
|
}
|
|
76
111
|
|
|
77
112
|
declare class VaterSpacerComponent {
|
|
@@ -81,7 +116,26 @@ declare class VaterSpacerComponent {
|
|
|
81
116
|
|
|
82
117
|
declare class VaterStackComponent {
|
|
83
118
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VaterStackComponent, never>;
|
|
84
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<VaterStackComponent, "vater-stack, [vater-stack]", never, {}, {}, never, ["*"], true, [{ directive: typeof
|
|
119
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<VaterStackComponent, "vater-stack, [vater-stack]", never, {}, {}, never, ["*"], true, [{ directive: typeof VaterFlexboxDirective; inputs: { "align": "align"; "direction": "direction"; "justify": "justify"; "wrap": "wrap"; }; outputs: {}; }, { directive: typeof VaterLayoutDirective; inputs: { "gap": "gap"; "offset": "offset"; }; outputs: {}; }, { directive: typeof VaterUtilityDirective; inputs: { "center": "center"; "fill": "fill"; "inset": "inset"; "scrollable": "scrollable"; }; outputs: {}; }]>;
|
|
85
120
|
}
|
|
86
121
|
|
|
87
|
-
|
|
122
|
+
/**
|
|
123
|
+
* @license
|
|
124
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
125
|
+
*
|
|
126
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
127
|
+
* you may not use this file except in compliance with the License.
|
|
128
|
+
* You may obtain a copy of the License at
|
|
129
|
+
*
|
|
130
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
131
|
+
*
|
|
132
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
133
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
134
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
135
|
+
* See the License for the specific language governing permissions and
|
|
136
|
+
* limitations under the License.
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
declare const VATER: readonly [typeof VaterFlexComponent, typeof VaterGridAreaComponent, typeof VaterGridComponent, typeof VaterSpacerComponent, typeof VaterStackComponent, typeof VaterUtilityDirective];
|
|
140
|
+
|
|
141
|
+
export { VATER, VaterFlexComponent, VaterFlexboxDirective, VaterGridAreaComponent, VaterGridComponent, VaterLayoutDirective, VaterSpacerComponent, VaterStackComponent, VaterUtilityDirective };
|