@nldd/design-system 0.8.76 → 0.8.78
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/custom-elements.json +1094 -186
- package/dist/components/actions/menu/menu.js +1 -1
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +1 -0
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.js +1 -1
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/components.js +16 -14
- package/dist/components/content/avatar/avatar.d.ts +9 -9
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +15 -15
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +2 -2
- package/dist/components/content/icon/icon-registry.js +1 -1
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/image/image.styles.d.ts.map +1 -1
- package/dist/components/content/image/image.styles.js +4 -1
- package/dist/components/content/image/image.styles.js.map +1 -1
- package/dist/components/content/tag/tag.js +6 -6
- package/dist/components/content/tag/tag.js.map +1 -1
- package/dist/components/forms/form/form.js +1 -1
- package/dist/components/forms/form-actions/form-actions.d.ts +3 -3
- package/dist/components/forms/form-actions/form-actions.js +3 -3
- package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
- package/dist/components/forms/form-section/form-section.js +11 -10
- package/dist/components/forms/form-section/form-section.js.map +1 -1
- package/dist/components/{index-DumgCqWu.js → index-BNg_kPou.js} +1 -1
- package/dist/components/{index-C51CBKdx.js → index-BmVf8Da6.js} +1 -1
- package/dist/components/{index-B04kRPqo.js → index-CU-wlUnI.js} +3142 -1752
- package/dist/components/{index-CGIRur7T.js → index-CcCKQ3Dj.js} +1 -1
- package/dist/components/{index-C6fLE8SI.js → index-D03jbAoU.js} +1 -1
- package/dist/components/{index-CnPUd-yq.js → index-D68oJ-Le.js} +1 -1
- package/dist/components/{index-Ch1zpGsx.js → index-v6dIt9IT.js} +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +3 -3
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.i18n.js +7 -7
- package/dist/components/inputs/date-field/date-field.i18n.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +3 -3
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +31 -29
- package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.d.ts +5 -5
- package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.i18n.js +18 -18
- package/dist/components/inputs/date-picker/date-picker.i18n.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +6 -6
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.js +1 -1
- package/dist/components/inputs/number-field/number-field.d.ts +1 -1
- package/dist/components/inputs/number-field/number-field.js +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +9 -0
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +3 -3
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +242 -0
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -0
- package/dist/components/inputs/time-field/time-field.i18n.d.ts +8 -0
- package/dist/components/inputs/time-field/time-field.i18n.d.ts.map +1 -0
- package/dist/components/inputs/time-field/time-field.i18n.js +14 -0
- package/dist/components/inputs/time-field/time-field.i18n.js.map +1 -0
- package/dist/components/inputs/time-field/time-field.js +641 -0
- package/dist/components/inputs/time-field/time-field.js.map +1 -0
- package/dist/components/inputs/time-field/time-field.styles.d.ts +2 -0
- package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -0
- package/dist/components/inputs/time-field/time-field.styles.js +192 -0
- package/dist/components/inputs/time-field/time-field.styles.js.map +1 -0
- package/dist/components/inputs/time-field/time-field.template.d.ts +20 -0
- package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -0
- package/dist/components/inputs/time-field/time-field.template.js +126 -0
- package/dist/components/inputs/time-field/time-field.template.js.map +1 -0
- package/dist/components/inputs/time-picker/time-picker.d.ts +135 -0
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -0
- package/dist/components/inputs/time-picker/time-picker.i18n.d.ts +7 -0
- package/dist/components/inputs/time-picker/time-picker.i18n.d.ts.map +1 -0
- package/dist/components/inputs/time-picker/time-picker.i18n.js +10 -0
- package/dist/components/inputs/time-picker/time-picker.i18n.js.map +1 -0
- package/dist/components/inputs/time-picker/time-picker.js +386 -0
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -0
- package/dist/components/inputs/time-picker/time-picker.styles.d.ts +2 -0
- package/dist/components/inputs/time-picker/time-picker.styles.d.ts.map +1 -0
- package/dist/components/inputs/time-picker/time-picker.styles.js +183 -0
- package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -0
- package/dist/components/inputs/time-picker/time-picker.template.d.ts +4 -0
- package/dist/components/inputs/time-picker/time-picker.template.d.ts.map +1 -0
- package/dist/components/inputs/time-picker/time-picker.template.js +87 -0
- package/dist/components/inputs/time-picker/time-picker.template.js.map +1 -0
- package/dist/components/layout/box/box.styles.js +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +6 -0
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +2 -2
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +75 -71
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +14 -0
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
- package/dist/components/layout/window/window.js +6 -6
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +1 -1
- package/dist/components/lists-and-tables/list/list.js +1 -1
- package/dist/components/lists-and-tables/list/list.styles.js +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +3 -3
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +1 -1
- package/dist/components/status-and-feedback/banner/banner.d.ts +3 -0
- package/dist/components/status-and-feedback/banner/banner.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.i18n.js +1 -1
- package/dist/components/status-and-feedback/banner/banner.i18n.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +5 -0
- package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.js +27 -10
- package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.template.js +1 -1
- package/dist/components/status-and-feedback/banner/banner.template.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.i18n.js +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.i18n.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +8 -2
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +4 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -1
- package/dist/css/variables.css +4 -1
- package/dist/nldd.min.js +22269 -0
- package/dist/palettes.html +245 -0
- package/dist/sample-images/butterfly-1200.jpg +0 -0
- package/dist/sample-images/butterfly-1600.jpg +0 -0
- package/dist/sample-images/butterfly-480.jpg +0 -0
- package/dist/sample-images/butterfly-960.jpg +0 -0
- package/dist/types/vue.d.ts +90 -3
- package/package.json +16 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-field.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/time-field/time-field.styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe,yBA0L3B,CAAC"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { css, unsafeCSS } from 'lit';
|
|
2
|
+
import { inheritedTextReset } from '../../../assets/styles/shadow-resets.js';
|
|
3
|
+
import { breakpoints } from '../../../assets/styles/breakpoints.js';
|
|
4
|
+
const mdMin = unsafeCSS(breakpoints.mdMin);
|
|
5
|
+
export const timeFieldStyles = css `
|
|
6
|
+
:host {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
/* # Host */
|
|
12
|
+
|
|
13
|
+
:host {
|
|
14
|
+
--_text-width: 5.5ch;
|
|
15
|
+
--_edge-width: calc(var(--_inline-padding) + var(--semantics-input-fields-border-width));
|
|
16
|
+
--_validation-icon-area-width: calc(var(--_validation-icon-size) + var(--primitives-space-8));
|
|
17
|
+
--_picker-button-size: var(--semantics-controls-sm-min-size);
|
|
18
|
+
--_end-padding-right: calc((var(--_min-size) - var(--_picker-button-size)) / 2 - var(--semantics-input-fields-border-width));
|
|
19
|
+
--_trailing-width: calc(var(--_validation-icon-area-width) + var(--_picker-button-size) + var(--_end-padding-right));
|
|
20
|
+
--_fixed-width: calc(var(--_edge-width) + var(--_trailing-width));
|
|
21
|
+
--_width: calc(var(--_fixed-width) + var(--_text-width));
|
|
22
|
+
--_corner-radius: var(--semantics-controls-md-corner-radius);
|
|
23
|
+
--_background-color: var(--semantics-input-fields-background-color);
|
|
24
|
+
--_min-size: var(--semantics-controls-md-min-size);
|
|
25
|
+
--_inline-padding: var(--semantics-controls-md-inline-padding);
|
|
26
|
+
--_text-font: var(--semantics-input-fields-md-text-font);
|
|
27
|
+
--_validation-icon-size: var(--semantics-input-fields-md-validation-icon-size);
|
|
28
|
+
|
|
29
|
+
${inheritedTextReset}
|
|
30
|
+
display: block;
|
|
31
|
+
width: var(--_width);
|
|
32
|
+
min-width: var(--_fixed-width);
|
|
33
|
+
max-width: 100%;
|
|
34
|
+
font: var(--_text-font);
|
|
35
|
+
-webkit-tap-highlight-color: transparent;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host([hidden]) {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host([no-picker]) {
|
|
43
|
+
--_fixed-width: calc(var(--_edge-width) + var(--_inline-padding) + var(--_validation-icon-area-width));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([size="sm"]) {
|
|
47
|
+
--_corner-radius: var(--semantics-controls-sm-corner-radius);
|
|
48
|
+
--_min-size: var(--semantics-controls-sm-min-size);
|
|
49
|
+
--_inline-padding: var(--semantics-controls-sm-inline-padding);
|
|
50
|
+
--_text-font: var(--semantics-input-fields-sm-text-font);
|
|
51
|
+
--_validation-icon-size: var(--semantics-input-fields-sm-validation-icon-size);
|
|
52
|
+
--_picker-button-size: var(--semantics-controls-xs-min-size);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/* # Block */
|
|
57
|
+
|
|
58
|
+
.time-field {
|
|
59
|
+
box-sizing: border-box;
|
|
60
|
+
display: flex;
|
|
61
|
+
border: var(--semantics-input-fields-border);
|
|
62
|
+
border-radius: var(--_corner-radius);
|
|
63
|
+
background-color: var(--_background-color);
|
|
64
|
+
min-height: var(--_min-size);
|
|
65
|
+
padding-left: calc(var(--_inline-padding) - var(--semantics-input-fields-border-width));
|
|
66
|
+
flex-direction: row;
|
|
67
|
+
align-items: center;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([valid]) .time-field {
|
|
71
|
+
border-color: var(--semantics-input-fields-is-valid-border-color);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host([invalid]) .time-field {
|
|
75
|
+
border-color: var(--semantics-input-fields-is-invalid-border-color);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:host([readonly]) .time-field {
|
|
79
|
+
--_background-color: var(--semantics-input-fields-is-read-only-background-color);
|
|
80
|
+
border-color: var(--semantics-input-fields-is-read-only-border-color);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host([disabled]) .time-field {
|
|
84
|
+
opacity: var(--primitives-opacity-disabled);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.time-field:has(input:-webkit-autofill),
|
|
88
|
+
.time-field:has(input:autofill) {
|
|
89
|
+
--_background-color: var(--semantics-input-fields-is-autofill-background-color);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Keyed on the text input, not :focus-within: the button and the popover live
|
|
93
|
+
in this box too and would draw a second ring around the whole field. */
|
|
94
|
+
.time-field:has(.time-field__input:focus) {
|
|
95
|
+
outline: var(--semantics-focus-ring-outline);
|
|
96
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
97
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
/* # Elements */
|
|
102
|
+
|
|
103
|
+
.time-field__input {
|
|
104
|
+
box-sizing: border-box;
|
|
105
|
+
margin: 0;
|
|
106
|
+
outline: none;
|
|
107
|
+
border: none;
|
|
108
|
+
background: transparent;
|
|
109
|
+
min-width: 0;
|
|
110
|
+
min-height: calc(var(--_min-size) - var(--semantics-input-fields-border-width) * 2);
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
padding: 0;
|
|
113
|
+
flex-grow: 1;
|
|
114
|
+
color: var(--semantics-content-color);
|
|
115
|
+
font: var(--_text-font);
|
|
116
|
+
appearance: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:host([disabled]) .time-field__input {
|
|
120
|
+
pointer-events: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.time-field__input::placeholder {
|
|
124
|
+
color: var(--semantics-input-fields-placeholder-color);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.time-field__input:-webkit-autofill,
|
|
128
|
+
.time-field__input:autofill,
|
|
129
|
+
.time-field__input:-webkit-autofill:disabled,
|
|
130
|
+
.time-field__input:autofill:disabled {
|
|
131
|
+
box-shadow: 0 0 0 999px var(--_background-color) inset;
|
|
132
|
+
-webkit-text-fill-color: var(--semantics-input-fields-is-autofill-content-color);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.time-field__input-fade {
|
|
136
|
+
position: relative;
|
|
137
|
+
width: 0;
|
|
138
|
+
flex-shrink: 0;
|
|
139
|
+
align-self: stretch;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.time-field__input-fade::after {
|
|
143
|
+
content: '';
|
|
144
|
+
position: absolute;
|
|
145
|
+
top: 0;
|
|
146
|
+
right: 0;
|
|
147
|
+
bottom: 0;
|
|
148
|
+
border-radius: var(--_corner-radius);
|
|
149
|
+
background: linear-gradient(90deg, color-mix(in oklch, var(--_background-color) 0%, transparent) 0%, var(--_background-color) 100%);
|
|
150
|
+
pointer-events: none;
|
|
151
|
+
width: var(--primitives-space-8);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.time-field__validation-icon-area {
|
|
155
|
+
display: flex;
|
|
156
|
+
width: var(--_validation-icon-area-width);
|
|
157
|
+
height: 100%;
|
|
158
|
+
flex-shrink: 0;
|
|
159
|
+
align-items: center;
|
|
160
|
+
justify-content: center;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
:host([valid]) .time-field__validation-icon-area {
|
|
164
|
+
color: var(--semantics-input-fields-is-valid-icon-color);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
:host([invalid]) .time-field__validation-icon-area {
|
|
168
|
+
color: var(--semantics-input-fields-is-invalid-icon-color);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.time-field__validation-icon {
|
|
172
|
+
display: flex;
|
|
173
|
+
width: var(--_validation-icon-size);
|
|
174
|
+
height: var(--_validation-icon-size);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.time-field__picker-button {
|
|
178
|
+
position: relative;
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-shrink: 0;
|
|
181
|
+
padding-right: var(--_end-padding-right);
|
|
182
|
+
align-items: center;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
@media (min-width: ${mdMin}) {
|
|
187
|
+
.time-field__picker-button nldd-top-title-bar {
|
|
188
|
+
display: none;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
`;
|
|
192
|
+
//# sourceMappingURL=time-field.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-field.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/time-field/time-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;IAwB9B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA6JA,KAAK;;;;;CAK1B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import type { NLDDTimeField } from './time-field.js';
|
|
3
|
+
import './../../actions/icon-button/icon-button.js';
|
|
4
|
+
import './../../content/icon/icon.js';
|
|
5
|
+
import './../../layout/popover/popover.js';
|
|
6
|
+
import './../../layout/container/container.js';
|
|
7
|
+
import './../../layout/spacer/spacer.js';
|
|
8
|
+
import './../../actions/button/button.js';
|
|
9
|
+
import './../../navigation/top-title-bar/top-title-bar.js';
|
|
10
|
+
import './../time-picker/time-picker.js';
|
|
11
|
+
/**
|
|
12
|
+
* The popover pins both its left and its right edge, so an `auto` width
|
|
13
|
+
* collapses and the picker hangs outside a zero-width box. Hence spelled out,
|
|
14
|
+
* from the same token the picker measures its columns with: two columns of one
|
|
15
|
+
* and a half control sizes, plus the colon between them and the container
|
|
16
|
+
* padding.
|
|
17
|
+
*/
|
|
18
|
+
export declare const PICKER_POPOVER_WIDTH = "calc(var(--semantics-controls-md-min-size) * 3 + var(--primitives-space-48) + var(--primitives-space-16) * 2)";
|
|
19
|
+
export declare function timeFieldTemplate(component: NLDDTimeField): TemplateResult;
|
|
20
|
+
//# sourceMappingURL=time-field.template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-field.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/time-field/time-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,4CAA4C,CAAC;AACpD,OAAO,8BAA8B,CAAC;AACtC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,iCAAiC,CAAC;AACzC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,mDAAmD,CAAC;AAC3D,OAAO,iCAAiC,CAAC;AAOzC;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,kHAAkH,CAAC;AAgFpJ,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,aAAa,GAAG,cAAc,CAyB1E"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { html, nothing } from 'lit';
|
|
2
|
+
import './../../actions/icon-button/icon-button.js';
|
|
3
|
+
import './../../content/icon/icon.js';
|
|
4
|
+
import './../../layout/popover/popover.js';
|
|
5
|
+
import './../../layout/container/container.js';
|
|
6
|
+
import './../../layout/spacer/spacer.js';
|
|
7
|
+
import './../../actions/button/button.js';
|
|
8
|
+
import './../../navigation/top-title-bar/top-title-bar.js';
|
|
9
|
+
import './../time-picker/time-picker.js';
|
|
10
|
+
/* eslint-disable lit-a11y/no-autofocus -- Not autofocus on page load: nldd-popover
|
|
11
|
+
reads this attribute to pick its focus target inside an overlay the user just
|
|
12
|
+
opened. Without it focus stops on the popover itself and the arrow keys do
|
|
13
|
+
nothing until you have tabbed into the selection yourself. */
|
|
14
|
+
/**
|
|
15
|
+
* The popover pins both its left and its right edge, so an `auto` width
|
|
16
|
+
* collapses and the picker hangs outside a zero-width box. Hence spelled out,
|
|
17
|
+
* from the same token the picker measures its columns with: two columns of one
|
|
18
|
+
* and a half control sizes, plus the colon between them and the container
|
|
19
|
+
* padding.
|
|
20
|
+
*/
|
|
21
|
+
export const PICKER_POPOVER_WIDTH = 'calc(var(--semantics-controls-md-min-size) * 3 + var(--primitives-space-48) + var(--primitives-space-16) * 2)';
|
|
22
|
+
/** One branch for both states: two nearly identical copies drifted apart elsewhere. */
|
|
23
|
+
function renderValidationIcon(component) {
|
|
24
|
+
const name = component.invalid ? 'invalid' : (component.valid ? 'valid' : '');
|
|
25
|
+
if (!name)
|
|
26
|
+
return nothing;
|
|
27
|
+
return html `
|
|
28
|
+
<div class="time-field__validation-icon-area">
|
|
29
|
+
<span class="time-field__validation-icon">
|
|
30
|
+
<nldd-icon
|
|
31
|
+
name=${name}
|
|
32
|
+
aria-hidden="true"
|
|
33
|
+
></nldd-icon>
|
|
34
|
+
</span>
|
|
35
|
+
</div>
|
|
36
|
+
`;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The picker hangs off the button, which sits at the end of the field, so
|
|
40
|
+
* bottom-end lands it under the input. Against the left edge of the screen
|
|
41
|
+
* Floating UI falls back to opening rightward on its own.
|
|
42
|
+
*/
|
|
43
|
+
function renderPicker(component) {
|
|
44
|
+
if (component.noPicker)
|
|
45
|
+
return nothing;
|
|
46
|
+
const buttonSize = component.size === 'sm' ? 'xs' : 'sm';
|
|
47
|
+
return html `
|
|
48
|
+
<div class="time-field__picker-button">
|
|
49
|
+
<nldd-icon-button
|
|
50
|
+
variant="neutral-tinted"
|
|
51
|
+
size=${buttonSize}
|
|
52
|
+
icon="clock"
|
|
53
|
+
text=${component._t('components.time-field.to-pick-time-action')}
|
|
54
|
+
tooltip-timing="never"
|
|
55
|
+
?disabled=${component.disabled || component.readonly}
|
|
56
|
+
@click=${component._handlePickerClick}
|
|
57
|
+
></nldd-icon-button>
|
|
58
|
+
<nldd-popover
|
|
59
|
+
accessible-label=${component._pickerLabel}
|
|
60
|
+
placement="bottom-end"
|
|
61
|
+
width=${PICKER_POPOVER_WIDTH}
|
|
62
|
+
@toggle=${component._handlePopoverToggle}
|
|
63
|
+
>
|
|
64
|
+
<nldd-top-title-bar
|
|
65
|
+
text=${component._pickerLabel}
|
|
66
|
+
dismiss-text=${component._t('components.time-field.cancel-action')}
|
|
67
|
+
@dismiss=${component._handlePickerDismiss}
|
|
68
|
+
></nldd-top-title-bar>
|
|
69
|
+
<nldd-container padding="16"
|
|
70
|
+
@keydown=${component._handlePickerKeydown}
|
|
71
|
+
@input=${component._handlePickerInput}
|
|
72
|
+
@change=${component._handlePickerChange}
|
|
73
|
+
>
|
|
74
|
+
<slot name="picker"
|
|
75
|
+
@slotchange=${component._handlePickerSlotChange}
|
|
76
|
+
></slot>
|
|
77
|
+
${component._hasSlottedPicker ? nothing : html `
|
|
78
|
+
<nldd-time-picker
|
|
79
|
+
autofocus
|
|
80
|
+
width="full"
|
|
81
|
+
value=${component._pickerValue || nothing}
|
|
82
|
+
min=${component.min || nothing}
|
|
83
|
+
max=${component.max || nothing}
|
|
84
|
+
step=${component.step}
|
|
85
|
+
></nldd-time-picker>
|
|
86
|
+
`}
|
|
87
|
+
<nldd-spacer size="16"></nldd-spacer>
|
|
88
|
+
<nldd-button
|
|
89
|
+
variant="neutral-base"
|
|
90
|
+
size=${component._pickerButtonSize}
|
|
91
|
+
width="full"
|
|
92
|
+
text=${component._t('components.time-field.confirm-action')}
|
|
93
|
+
@click=${component._handlePickerConfirm}
|
|
94
|
+
></nldd-button>
|
|
95
|
+
</nldd-container>
|
|
96
|
+
</nldd-popover>
|
|
97
|
+
</div>
|
|
98
|
+
`;
|
|
99
|
+
}
|
|
100
|
+
export function timeFieldTemplate(component) {
|
|
101
|
+
return html `
|
|
102
|
+
<div class="time-field">
|
|
103
|
+
<input class="time-field__input"
|
|
104
|
+
id=${component.inputId || nothing}
|
|
105
|
+
type="text"
|
|
106
|
+
inputmode="numeric"
|
|
107
|
+
.value=${component._displayValue}
|
|
108
|
+
placeholder=${component.placeholder || nothing}
|
|
109
|
+
?disabled=${component.disabled}
|
|
110
|
+
?readonly=${component.readonly}
|
|
111
|
+
?required=${component.required}
|
|
112
|
+
autocomplete=${component.autocomplete || nothing}
|
|
113
|
+
aria-label=${component._fieldLabel || nothing}
|
|
114
|
+
aria-describedby=${component.errorMessageIds || nothing}
|
|
115
|
+
aria-invalid=${component.invalid ? 'true' : nothing}
|
|
116
|
+
@keydown=${component._handleInputKeydown}
|
|
117
|
+
@input=${component._handleInput}
|
|
118
|
+
@change=${component._handleChange}
|
|
119
|
+
>
|
|
120
|
+
<div class="time-field__input-fade"></div>
|
|
121
|
+
${renderValidationIcon(component)}
|
|
122
|
+
${renderPicker(component)}
|
|
123
|
+
</div>
|
|
124
|
+
`;
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=time-field.template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-field.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/time-field/time-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAEpD,OAAO,4CAA4C,CAAC;AACpD,OAAO,8BAA8B,CAAC;AACtC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,iCAAiC,CAAC;AACzC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,mDAAmD,CAAC;AAC3D,OAAO,iCAAiC,CAAC;AAEzC;;;gEAGgE;AAEhE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,+GAA+G,CAAC;AAEpJ,uFAAuF;AACvF,SAAS,oBAAoB,CAAC,SAAwB;IACrD,MAAM,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9E,IAAI,CAAC,IAAI;QAAE,OAAO,OAAO,CAAC;IAC1B,OAAO,IAAI,CAAA;;;;YAIA,IAAI;;;;;EAKd,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,SAAS,YAAY,CAAC,SAAwB;IAC7C,IAAI,SAAS,CAAC,QAAQ;QAAE,OAAO,OAAO,CAAC;IACvC,MAAM,UAAU,GAAG,SAAS,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACzD,OAAO,IAAI,CAAA;;;;WAID,UAAU;;WAEV,SAAS,CAAC,EAAE,CAAC,2CAA2C,CAAC;;gBAEpD,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ;aAC3C,SAAS,CAAC,kBAAkB;;;uBAGlB,SAAS,CAAC,YAAY;;YAEjC,oBAAoB;cAClB,SAAS,CAAC,oBAAoB;;;YAGhC,SAAS,CAAC,YAAY;oBACd,SAAS,CAAC,EAAE,CAAC,qCAAqC,CAAC;gBACvD,SAAS,CAAC,oBAAoB;;;gBAG9B,SAAS,CAAC,oBAAoB;cAChC,SAAS,CAAC,kBAAkB;eAC3B,SAAS,CAAC,mBAAmB;;;oBAGxB,SAAS,CAAC,uBAAuB;;OAE9C,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAA;;;;eAIpC,SAAS,CAAC,YAAY,IAAI,OAAO;aACnC,SAAS,CAAC,GAAG,IAAI,OAAO;aACxB,SAAS,CAAC,GAAG,IAAI,OAAO;cACvB,SAAS,CAAC,IAAI;;MAEtB;;;;aAIO,SAAS,CAAC,iBAAiB;;aAE3B,SAAS,CAAC,EAAE,CAAC,sCAAsC,CAAC;eAClD,SAAS,CAAC,oBAAoB;;;;;EAK3C,CAAC;AACH,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,SAAwB;IACzD,OAAO,IAAI,CAAA;;;SAGH,SAAS,CAAC,OAAO,IAAI,OAAO;;;aAGxB,SAAS,CAAC,aAAa;kBAClB,SAAS,CAAC,WAAW,IAAI,OAAO;gBAClC,SAAS,CAAC,QAAQ;gBAClB,SAAS,CAAC,QAAQ;gBAClB,SAAS,CAAC,QAAQ;mBACf,SAAS,CAAC,YAAY,IAAI,OAAO;iBACnC,SAAS,CAAC,WAAW,IAAI,OAAO;uBAC1B,SAAS,CAAC,eAAe,IAAI,OAAO;mBACxC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;eACxC,SAAS,CAAC,mBAAmB;aAC/B,SAAS,CAAC,YAAY;cACrB,SAAS,CAAC,aAAa;;;KAGhC,oBAAoB,CAAC,SAAS,CAAC;KAC/B,YAAY,CAAC,SAAS,CAAC;;EAE1B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NLDD Design System Time Picker Component (Lit + TypeScript)
|
|
3
|
+
*
|
|
4
|
+
* Twee kolommen, uren en minuten, die als een wiel langs de selectie in het midden
|
|
5
|
+
* schuiven. Het component is zelfstandig bruikbaar (inline op een pagina, in een
|
|
6
|
+
* filterpaneel) en zit ook in de popover van nldd-time-field. Waarden zijn altijd
|
|
7
|
+
* 24-uurs `HH:mm`.
|
|
8
|
+
*
|
|
9
|
+
* Scrollen ís kiezen: wat in het midden tot stilstand komt, is de waarde. Met het
|
|
10
|
+
* toetsenbord bedien je de selectie, want dat is wat een wiel is: uur en minuut zijn
|
|
11
|
+
* er elk een spinbutton. De kolommen eronder staan op aria-hidden, zodat dezelfde
|
|
12
|
+
* waarden niet twee keer worden voorgelezen.
|
|
13
|
+
*
|
|
14
|
+
* @element nldd-time-picker
|
|
15
|
+
*
|
|
16
|
+
* @attr {string} value - De gekozen tijd als `HH:mm` (24-uurs).
|
|
17
|
+
* @attr {string} min - Vroegst toegestane tijd als `HH:mm`. Is tevens de basis waarvandaan `step` telt.
|
|
18
|
+
* @attr {string} max - Laatst toegestane tijd als `HH:mm`.
|
|
19
|
+
* @attr {number} step - Minutenstap (standaard 1). Bepaalt welke minuten in de kolom staan.
|
|
20
|
+
* @attr {number} rows - Hoogte van de kolommen in rijen (standaard 7, minimaal 3). De gekozen waarde staat altijd in het midden, dus een oneven aantal toont hele rijen en een even aantal kapt boven en onder een halve rij af.
|
|
21
|
+
* @attr {string} width - Breedte: `full` vult de container, of geef een eigen CSS-lengte.
|
|
22
|
+
* @attr {string} accessible-label - Toegankelijke naam van de picker.
|
|
23
|
+
* @attr {object} translations - Vertalingen; niet opgegeven sleutels vallen terug op het Nederlands.
|
|
24
|
+
*
|
|
25
|
+
* @fires input - Bij elke wijziging: scrollen, de pijltjestoetsen. detail: { value } met `HH:mm`.
|
|
26
|
+
* @fires change - Wanneer de keuze is bevestigd: een klik op een waarde of op de selectie, of Enter. detail: { value } met `HH:mm`. Scrollen geeft alleen `input`, want anders zou een veld dat de picker in een popover toont al vastleggen zodra je stopt met scrollen.
|
|
27
|
+
*/
|
|
28
|
+
import { LitElement, type PropertyValues } from 'lit';
|
|
29
|
+
import { type NLDDTimePickerTranslations } from './time-picker.i18n.js';
|
|
30
|
+
export declare function toMinutes(time: string): number;
|
|
31
|
+
export declare function fromMinutes(total: number): string;
|
|
32
|
+
export declare class NLDDTimePicker extends LitElement {
|
|
33
|
+
static styles: import("lit").CSSResult;
|
|
34
|
+
value: string;
|
|
35
|
+
min: string;
|
|
36
|
+
max: string;
|
|
37
|
+
step: number;
|
|
38
|
+
rows: number;
|
|
39
|
+
width: string;
|
|
40
|
+
accessibleLabel: string;
|
|
41
|
+
translations: Partial<NLDDTimePickerTranslations>;
|
|
42
|
+
/**
|
|
43
|
+
* Where scrolling has landed, per column, for as long as it is not recorded.
|
|
44
|
+
* Kept apart from `value`, which only records once scrolling comes to rest.
|
|
45
|
+
* Were the selection to show the recorded value, digits would slide past
|
|
46
|
+
* behind it while the number in the selection stayed put, and then it lies
|
|
47
|
+
* about where you are.
|
|
48
|
+
*/
|
|
49
|
+
private _scrolledTo;
|
|
50
|
+
_t(key: keyof NLDDTimePickerTranslations): string;
|
|
51
|
+
get _label(): string;
|
|
52
|
+
private get _minMinutes();
|
|
53
|
+
private get _maxMinutes();
|
|
54
|
+
private get _stepMinutes();
|
|
55
|
+
/** Every valid time: from `min` (or midnight) in increments of `step`, up to
|
|
56
|
+
* and including `max`. One list, because the two columns are projections of
|
|
57
|
+
* it. That way an hour can never appear in its column without a valid minute
|
|
58
|
+
* to go with it. */
|
|
59
|
+
private get _slots();
|
|
60
|
+
/** The hours for which at least one valid minute exists. */
|
|
61
|
+
get _hours(): number[];
|
|
62
|
+
/** The minutes within the chosen hour. Without a chosen hour, those of the
|
|
63
|
+
* first hour, so the column never looks empty before anything is picked. */
|
|
64
|
+
get _minutes(): number[];
|
|
65
|
+
/** The chosen time in minutes, or null while there is no valid value. */
|
|
66
|
+
private get _selected();
|
|
67
|
+
get _selectedHour(): number | null;
|
|
68
|
+
get _selectedMinute(): number | null;
|
|
69
|
+
/** The number now standing in the selection: whatever lies in the middle while
|
|
70
|
+
* scrolling, and otherwise simply the chosen value. */
|
|
71
|
+
get _centeredHour(): number | null;
|
|
72
|
+
get _centeredMinute(): number | null;
|
|
73
|
+
/**
|
|
74
|
+
* Pick an hour or a minute. The hour holds on to the chosen minute when it
|
|
75
|
+
* fits inside it, so moving the hour keeps you on the same minute instead of
|
|
76
|
+
* jumping back to the start every time. When it does not fit (because of
|
|
77
|
+
* `min`, `max` or a step that does not work out), the first possible minute
|
|
78
|
+
* in that hour.
|
|
79
|
+
*/
|
|
80
|
+
_select(column: 'hours' | 'minutes', number: number, commit?: boolean): void;
|
|
81
|
+
private _emit;
|
|
82
|
+
/**
|
|
83
|
+
* Arrow keys within a column, plus Home and End. The column is a single tab
|
|
84
|
+
* stop (roving tabindex), so Tab takes you to the next column instead of to
|
|
85
|
+
* the next value.
|
|
86
|
+
*/
|
|
87
|
+
_handleKeydown(e: KeyboardEvent, column: 'hours' | 'minutes'): void;
|
|
88
|
+
/** Move focus to the spinbutton of the other column. */
|
|
89
|
+
private _focusColumn;
|
|
90
|
+
/**
|
|
91
|
+
* While we scroll ourselves (on opening, or after a choice) the scrolling must
|
|
92
|
+
* not pick something again: that would overwrite the choice just made with
|
|
93
|
+
* whatever happens to pass by.
|
|
94
|
+
*/
|
|
95
|
+
private _scrollingSelf;
|
|
96
|
+
private _scrollTimers;
|
|
97
|
+
private _selfScrollTimer;
|
|
98
|
+
/**
|
|
99
|
+
* Focus lands on the hour, the way nldd-date-picker focuses a day. The host
|
|
100
|
+
* itself forwards nowhere, so an overlay that focuses this picker would leave
|
|
101
|
+
* the arrow keys dead until the user tabbed into the selection themselves.
|
|
102
|
+
*/
|
|
103
|
+
focus(options?: FocusOptions): void;
|
|
104
|
+
disconnectedCallback(): void;
|
|
105
|
+
/**
|
|
106
|
+
* Scrolling is choosing: whatever comes to rest in the middle is the value.
|
|
107
|
+
* There is a `scrollend` event, but not everywhere, so this waits until
|
|
108
|
+
* scrolling has been still for 120ms. Short enough to feel immediate, long
|
|
109
|
+
* enough not to pick halfway through a swipe.
|
|
110
|
+
*/
|
|
111
|
+
_handleScroll(e: Event, column: 'hours' | 'minutes'): void;
|
|
112
|
+
/** The number of the option closest to the middle of the column. */
|
|
113
|
+
private _centeredOption;
|
|
114
|
+
/** Records whatever came to rest in the middle. */
|
|
115
|
+
private _selectCentred;
|
|
116
|
+
/**
|
|
117
|
+
* Put the chosen value in the middle of the view. The column is seven values
|
|
118
|
+
* tall, so `center` lands it on the fourth row with three above and three
|
|
119
|
+
* below.
|
|
120
|
+
*
|
|
121
|
+
* Public because a hidden element cannot be scrolled: with the picker in a
|
|
122
|
+
* popover it has no dimensions yet when the value is set, and scrollIntoView
|
|
123
|
+
* does nothing. The field therefore calls this as soon as the popover
|
|
124
|
+
* opens.
|
|
125
|
+
*/
|
|
126
|
+
scrollSelectedIntoView(): void;
|
|
127
|
+
updated(changed: PropertyValues): void;
|
|
128
|
+
render(): import("lit-html").TemplateResult;
|
|
129
|
+
}
|
|
130
|
+
declare global {
|
|
131
|
+
interface HTMLElementTagNameMap {
|
|
132
|
+
'nldd-time-picker': NLDDTimePicker;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=time-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/time-picker/time-picker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAItD,OAAO,EAA8B,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAIpG,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAG9C;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEjD;AAMD,qBACa,cAAe,SAAQ,UAAU;IAE7C,OAAgB,MAAM,0BAAoB;IAG1C,KAAK,SAAM;IAGX,GAAG,SAAM;IAGT,GAAG,SAAM;IAGT,IAAI,SAAK;IAGT,IAAI,SAAK;IAGT,KAAK,SAAM;IAGX,eAAe,SAAM;IAGrB,YAAY,EAAE,OAAO,CAAC,0BAA0B,CAAC,CAAM;IAEvD;;;;;;OAMG;IAEH,OAAO,CAAC,WAAW,CAAoF;IAEhG,EAAE,CAAC,GAAG,EAAE,MAAM,0BAA0B,GAAG,MAAM;IAIxD,IAAW,MAAM,IAAI,MAAM,CAE1B;IAED,OAAO,KAAK,WAAW,GAEtB;IAED,OAAO,KAAK,WAAW,GAEtB;IAED,OAAO,KAAK,YAAY,GAEvB;IAED;;;yBAGqB;IACrB,OAAO,KAAK,MAAM,GAIjB;IAED,4DAA4D;IAC5D,IAAW,MAAM,IAAI,MAAM,EAAE,CAE5B;IAED;iFAC6E;IAC7E,IAAW,QAAQ,IAAI,MAAM,EAAE,CAG9B;IAED,yEAAyE;IACzE,OAAO,KAAK,SAAS,GAIpB;IAED,IAAW,aAAa,IAAI,MAAM,GAAG,IAAI,CAExC;IAED,IAAW,eAAe,IAAI,MAAM,GAAG,IAAI,CAE1C;IAED;4DACwD;IACxD,IAAW,aAAa,IAAI,MAAM,GAAG,IAAI,CAExC;IAED,IAAW,eAAe,IAAI,MAAM,GAAG,IAAI,CAE1C;IAED;;;;;;OAMG;IACI,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,IAAI;IAyBjF,OAAO,CAAC,KAAK;IAQb;;;;OAIG;IACI,cAAc,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI;IAyC1E,wDAAwD;IACxD,OAAO,CAAC,YAAY;IAMpB;;;;OAIG;IACH,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,aAAa,CAAiE;IACtF,OAAO,CAAC,gBAAgB,CAAK;IAE7B;;;;OAIG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAMnC,oBAAoB,IAAI,IAAI;IASrC;;;;;OAKG;IACI,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI;IAoBjE,oEAAoE;IACpE,OAAO,CAAC,eAAe;IAcvB,mDAAmD;IACnD,OAAO,CAAC,cAAc;IAKtB;;;;;;;;;OASG;IACI,sBAAsB,IAAI,IAAI;IAiB5B,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAsBtC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,kBAAkB,EAAE,cAAc,CAAC;KACnC;CACD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const nlddTimePickerTranslations: {
|
|
2
|
+
'components.time-picker.default-label': string;
|
|
3
|
+
'components.time-picker.hours-label': string;
|
|
4
|
+
'components.time-picker.minutes-label': string;
|
|
5
|
+
};
|
|
6
|
+
export type NLDDTimePickerTranslations = typeof nlddTimePickerTranslations;
|
|
7
|
+
//# sourceMappingURL=time-picker.i18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/time-picker/time-picker.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B;;;;CAQtC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const nlddTimePickerTranslations = {
|
|
2
|
+
// Accessible name of the picker as a whole, when a consumer gives none.
|
|
3
|
+
// Without it the group around the two spinbuttons has no name.
|
|
4
|
+
'components.time-picker.default-label': 'Tijd kiezen',
|
|
5
|
+
// The two columns. The selection carries a spinbutton per column and each needs
|
|
6
|
+
// its own name, otherwise you hear the same one twice.
|
|
7
|
+
'components.time-picker.hours-label': 'Uur',
|
|
8
|
+
'components.time-picker.minutes-label': 'Minuut',
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=time-picker.i18n.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker.i18n.js","sourceRoot":"","sources":["../../../../src/components/inputs/time-picker/time-picker.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC,wEAAwE;IACxE,+DAA+D;IAC/D,sCAAsC,EAAE,aAAa;IACrD,gFAAgF;IAChF,uDAAuD;IACvD,oCAAoC,EAAE,KAAK;IAC3C,sCAAsC,EAAE,QAAQ;CAChD,CAAC"}
|