@siemens/ix 1.0.0 → 1.1.0-beta.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/README.md +4 -0
- package/dist/cjs/ix-blind.cjs.entry.js +1 -1
- package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-button.cjs.entry.js +1 -1
- package/dist/cjs/ix-category-filter.cjs.entry.js +1 -1
- package/dist/cjs/ix-chip.cjs.entry.js +1 -1
- package/dist/cjs/ix-date-picker_2.cjs.entry.js +214 -56
- package/dist/cjs/ix-date-time-card.cjs.entry.js +1 -1
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +79 -10
- package/dist/cjs/ix-dropdown_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-event-list_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-expanding-search.cjs.entry.js +2 -1
- package/dist/cjs/ix-filter-chip.cjs.entry.js +1 -1
- package/dist/cjs/ix-map-navigation_2.cjs.entry.js +0 -25
- package/dist/cjs/ix-menu_9.cjs.entry.js +32 -16
- package/dist/cjs/ix-select_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-tile.cjs.entry.js +1 -1
- package/dist/cjs/ix-toast_2.cjs.entry.js +4 -0
- package/dist/cjs/ix-tree_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/{ix-workflow-step.cjs.entry.js → ix-workflow-step_2.cjs.entry.js} +77 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/siemens-ix.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/blind/blind.css +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.css +1 -1
- package/dist/collection/components/button/button.css +3 -0
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/category-filter/category-filter.css +2 -3
- package/dist/collection/components/chip/chip.css +8 -8
- package/dist/collection/components/date-picker/date-picker.css +51 -49
- package/dist/collection/components/date-picker/date-picker.js +371 -57
- package/dist/collection/components/date-picker/events.js +1 -0
- package/dist/collection/components/date-time-card/date-time-card.css +3 -1
- package/dist/collection/components/datetime-picker/datetime-picker.css +12 -3
- package/dist/collection/components/datetime-picker/datetime-picker.js +361 -21
- package/dist/collection/components/datetime-picker/event.js +9 -0
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/event-list/event-list.css +2 -2
- package/dist/collection/components/event-list-item/event-list-item.css +36 -19
- package/dist/collection/components/event-list-item/event-list-item.js +2 -2
- package/dist/collection/components/expanding-search/expanding-search.css +6 -3
- package/dist/collection/components/expanding-search/expanding-search.js +1 -0
- package/dist/collection/components/filter-chip/filter-chip.css +2 -2
- package/dist/collection/components/map-navigation/map-navigation.js +1 -28
- package/dist/collection/components/menu/menu.js +36 -17
- package/dist/collection/components/menu-about/menu-about.js +13 -34
- package/dist/collection/components/menu-item/menu-item.css +2 -2
- package/dist/collection/components/menu-settings/menu-settings.js +1 -1
- package/dist/collection/components/select/select.css +1 -1
- package/dist/collection/components/tile/tile.css +1 -1
- package/dist/collection/components/time-picker/time-picker.js +188 -31
- package/dist/collection/components/toast/toast.js +6 -1
- package/dist/collection/components/tree-item/tree-item.css +9 -3
- package/dist/collection/components/validation-tooltip/validation-tooltip.css +2 -1
- package/dist/collection/exports.js +2 -0
- package/dist/components/button.js +2 -2
- package/dist/components/date-picker.js +162 -45
- package/dist/components/date-time-card.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/filter-chip.js +1 -1
- package/dist/components/ix-blind.js +1 -1
- package/dist/components/ix-breadcrumb.js +1 -1
- package/dist/components/ix-category-filter.js +1 -1
- package/dist/components/ix-chip.js +1 -1
- package/dist/components/ix-datetime-picker.js +90 -11
- package/dist/components/ix-event-list-item.js +2 -2
- package/dist/components/ix-event-list.js +1 -1
- package/dist/components/ix-expanding-search.js +2 -1
- package/dist/components/ix-map-navigation.js +6 -51
- package/dist/components/ix-menu-about.js +115 -1
- package/dist/components/ix-menu.js +20 -2
- package/dist/components/ix-select.js +1 -1
- package/dist/components/ix-tile.js +1 -1
- package/dist/components/ix-validation-tooltip.js +1 -1
- package/dist/components/menu-item.js +1 -1
- package/dist/components/time-picker.js +70 -17
- package/dist/components/toast.js +4 -0
- package/dist/components/tree-item.js +1 -1
- package/dist/esm/ix-blind.entry.js +1 -1
- package/dist/esm/ix-breadcrumb_2.entry.js +1 -1
- package/dist/esm/ix-button.entry.js +1 -1
- package/dist/esm/ix-category-filter.entry.js +1 -1
- package/dist/esm/ix-chip.entry.js +1 -1
- package/dist/esm/ix-date-picker_2.entry.js +214 -56
- package/dist/esm/ix-date-time-card.entry.js +1 -1
- package/dist/esm/ix-datetime-picker.entry.js +79 -10
- package/dist/esm/ix-dropdown_2.entry.js +1 -1
- package/dist/esm/ix-event-list_2.entry.js +3 -3
- package/dist/esm/ix-expanding-search.entry.js +2 -1
- package/dist/esm/ix-filter-chip.entry.js +1 -1
- package/dist/esm/ix-map-navigation_2.entry.js +0 -25
- package/dist/esm/ix-menu_9.entry.js +32 -16
- package/dist/esm/ix-select_2.entry.js +1 -1
- package/dist/esm/ix-tile.entry.js +1 -1
- package/dist/esm/ix-toast_2.entry.js +4 -0
- package/dist/esm/ix-tree_2.entry.js +1 -1
- package/dist/esm/ix-validation-tooltip.entry.js +1 -1
- package/dist/esm/{ix-workflow-step.entry.js → ix-workflow-step_2.entry.js} +78 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/siemens-ix.js +1 -1
- package/dist/siemens-ix/p-02501b64.entry.js +1 -0
- package/dist/siemens-ix/{p-03d95feb.entry.js → p-1d56d9b6.entry.js} +1 -1
- package/dist/siemens-ix/p-2b7ed5d4.entry.js +1 -0
- package/dist/siemens-ix/p-334b7d5c.entry.js +1 -0
- package/dist/siemens-ix/{p-cde8f20e.entry.js → p-4287bd7e.entry.js} +1 -1
- package/dist/siemens-ix/{p-7ec8a00e.entry.js → p-52d99490.entry.js} +1 -1
- package/dist/siemens-ix/{p-2cda7278.entry.js → p-5fed62f8.entry.js} +1 -1
- package/dist/siemens-ix/p-71de6498.entry.js +1 -0
- package/dist/siemens-ix/p-77823732.entry.js +1 -0
- package/dist/siemens-ix/{p-2ce29bcd.entry.js → p-94b86dec.entry.js} +1 -1
- package/dist/siemens-ix/{p-40842bea.entry.js → p-a49005f3.entry.js} +1 -1
- package/dist/siemens-ix/{p-e1f54836.entry.js → p-a8396077.entry.js} +1 -1
- package/dist/siemens-ix/{p-504927a0.entry.js → p-b93c2fab.entry.js} +1 -1
- package/dist/siemens-ix/p-bf5513a0.entry.js +1 -0
- package/dist/siemens-ix/p-c0c9fb81.entry.js +1 -0
- package/dist/siemens-ix/p-c792adb4.entry.js +1 -0
- package/dist/siemens-ix/{p-7a4c744e.entry.js → p-c9a5d942.entry.js} +1 -1
- package/dist/siemens-ix/p-cb6e62ff.entry.js +1 -0
- package/dist/siemens-ix/p-cbd0f8a7.entry.js +1 -0
- package/dist/siemens-ix/p-fa44655a.entry.js +1 -0
- package/dist/siemens-ix/siemens-ix.css +13 -13
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +93 -13
- package/dist/types/components/date-picker/events.d.ts +5 -0
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +106 -9
- package/dist/types/components/datetime-picker/event.d.ts +5 -0
- package/dist/types/components/map-navigation/map-navigation.d.ts +0 -8
- package/dist/types/components/menu/menu.d.ts +2 -0
- package/dist/types/components/menu-about/menu-about.d.ts +1 -4
- package/dist/types/components/time-picker/time-picker.d.ts +42 -8
- package/dist/types/components.d.ts +274 -38
- package/dist/types/exports.d.ts +2 -0
- package/package.json +10 -1
- package/scss/components/_buttons.scss +15 -5
- package/scss/components/_checkboxes.scss +26 -14
- package/scss/components/_dropdown.scss +1 -1
- package/scss/components/_forms.scss +2 -1
- package/scss/components/_radiobuttons.scss +26 -14
- package/scss/mixins/_hover.scss +0 -1
- package/src/components/date-picker/readme.md +31 -10
- package/src/components/datetime-picker/readme.md +23 -10
- package/src/components/menu-about/readme.md +5 -6
- package/src/components/time-picker/readme.md +25 -8
- package/dist/cjs/ix-workflow-steps.cjs.entry.js +0 -83
- package/dist/components/menu-about.js +0 -120
- package/dist/esm/ix-workflow-steps.entry.js +0 -79
- package/dist/siemens-ix/p-1e111d1d.entry.js +0 -1
- package/dist/siemens-ix/p-240d22b6.entry.js +0 -1
- package/dist/siemens-ix/p-3613be96.entry.js +0 -1
- package/dist/siemens-ix/p-5990f0cb.entry.js +0 -1
- package/dist/siemens-ix/p-59c81e2a.entry.js +0 -1
- package/dist/siemens-ix/p-61b032bf.entry.js +0 -1
- package/dist/siemens-ix/p-662d756f.entry.js +0 -1
- package/dist/siemens-ix/p-9d9b8ad1.entry.js +0 -1
- package/dist/siemens-ix/p-ca71538c.entry.js +0 -1
- package/dist/siemens-ix/p-caf856f2.entry.js +0 -1
- package/dist/siemens-ix/p-d31bf6db.entry.js +0 -1
- package/dist/siemens-ix/p-fe020fa3.entry.js +0 -1
|
@@ -14,33 +14,101 @@ export class DatePicker {
|
|
|
14
14
|
*/
|
|
15
15
|
this.range = true;
|
|
16
16
|
/**
|
|
17
|
-
* Show
|
|
17
|
+
* Show hour input
|
|
18
18
|
*/
|
|
19
19
|
this.showHour = false;
|
|
20
20
|
/**
|
|
21
|
-
* Show
|
|
21
|
+
* Show minutes input
|
|
22
22
|
*/
|
|
23
23
|
this.showMinutes = false;
|
|
24
24
|
/**
|
|
25
|
-
* Show
|
|
25
|
+
* Show seconds input
|
|
26
26
|
*/
|
|
27
27
|
this.showSeconds = false;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Date format string.
|
|
30
|
+
* See {@link https://moment.github.io/luxon/#/formatting?id=table-of-tokens} for all available tokens.
|
|
31
|
+
*
|
|
32
|
+
* @since 1.1.0
|
|
30
33
|
*/
|
|
31
|
-
this.
|
|
34
|
+
this.dateFormat = 'yyyy/LL/dd';
|
|
35
|
+
/**
|
|
36
|
+
* Time format string.
|
|
37
|
+
* See {@link https://moment.github.io/luxon/#/formatting?id=table-of-tokens} for all available tokens.
|
|
38
|
+
*
|
|
39
|
+
* @since 1.1.0
|
|
40
|
+
*/
|
|
41
|
+
this.timeFormat = 'TT';
|
|
42
|
+
/**
|
|
43
|
+
* Picker date. If the picker is in range mode this property is the end date.
|
|
44
|
+
* If the picker is not in range mode leave this value `null`
|
|
45
|
+
*
|
|
46
|
+
* Format is based on `format`
|
|
47
|
+
*
|
|
48
|
+
* @since 1.1.0
|
|
49
|
+
*/
|
|
50
|
+
this.to = null;
|
|
51
|
+
/**
|
|
52
|
+
* Show time reference input
|
|
53
|
+
*
|
|
54
|
+
* @since 1.1.0 time reference is default aligned with formt tt
|
|
55
|
+
*/
|
|
56
|
+
this.showTimeReference = undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Default behavior of the done event is to join the two events (date and time) into one combined string output.
|
|
59
|
+
* This combination can be configured over the delimiter
|
|
60
|
+
*
|
|
61
|
+
* @since 1.1.0
|
|
62
|
+
*/
|
|
63
|
+
this.eventDelimiter = ' - ';
|
|
64
|
+
/**
|
|
65
|
+
* Text of date select button
|
|
66
|
+
*
|
|
67
|
+
* @since 1.1.0
|
|
68
|
+
*/
|
|
69
|
+
this.textSelectDate = 'Done';
|
|
32
70
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
this.done.emit(this.
|
|
71
|
+
onDone() {
|
|
72
|
+
var _a;
|
|
73
|
+
this.done.emit([this._from, (_a = this._to) !== null && _a !== void 0 ? _a : '', this._time].join(this.eventDelimiter));
|
|
74
|
+
this.dateSelect.emit({
|
|
75
|
+
from: this._from,
|
|
76
|
+
to: this._to,
|
|
77
|
+
time: this._time,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
async onDateChange(event) {
|
|
81
|
+
var _a, _b;
|
|
82
|
+
event.preventDefault();
|
|
83
|
+
event.stopPropagation();
|
|
84
|
+
const { detail: date } = event;
|
|
85
|
+
this.dateChange.emit(date);
|
|
86
|
+
const currentDateTime = await this.datePickerElement.getCurrentDate();
|
|
87
|
+
this._from = (_a = currentDateTime.start) === null || _a === void 0 ? void 0 : _a.toFormat(this.dateFormat);
|
|
88
|
+
this._to = (_b = currentDateTime.end) === null || _b === void 0 ? void 0 : _b.toFormat(this.dateFormat);
|
|
89
|
+
}
|
|
90
|
+
async onTimeChange(event) {
|
|
91
|
+
event.preventDefault();
|
|
92
|
+
event.stopPropagation();
|
|
93
|
+
const { detail: time } = event;
|
|
94
|
+
this.timeChange.emit(time);
|
|
95
|
+
const currentDateTime = await this.timePickerElement.getCurrentTime();
|
|
96
|
+
this._time = currentDateTime.toFormat(this.timeFormat);
|
|
97
|
+
}
|
|
98
|
+
componentDidLoad() {
|
|
99
|
+
this._from = this.from;
|
|
100
|
+
this._to = this.to;
|
|
101
|
+
this._time = this.time;
|
|
36
102
|
}
|
|
37
103
|
render() {
|
|
38
104
|
return (h(Host, null,
|
|
39
105
|
h("div", { class: "flex" },
|
|
40
|
-
h("
|
|
41
|
-
h("ix-
|
|
106
|
+
h("div", { class: "separator" }),
|
|
107
|
+
h("ix-date-picker", { ref: (ref) => (this.datePickerElement = ref), corners: "left", individual: false, range: this.range, onDateChange: (event) => this.onDateChange(event), from: this.from, to: this.to, format: this.dateFormat, minDate: this.minDate, maxDate: this.maxDate, eventDelimiter: this.eventDelimiter }),
|
|
108
|
+
h("ix-time-picker", { ref: (ref) => (this.timePickerElement = ref), corners: "right", individual: false, showHour: this.showHour, showMinutes: this.showMinutes, showSeconds: this.showSeconds, showTimeReference: this.showTimeReference, onTimeChange: (event) => this.onTimeChange(event), time: this.time, format: this.timeFormat, timeReference: this.timeReference }),
|
|
109
|
+
h("div", { class: "separator" })),
|
|
42
110
|
h("div", { class: "done" },
|
|
43
|
-
h("ix-button", { onClick: () => this.
|
|
111
|
+
h("ix-button", { onClick: () => this.onDone() }, this.textSelectDate))));
|
|
44
112
|
}
|
|
45
113
|
static get is() { return "ix-datetime-picker"; }
|
|
46
114
|
static get encapsulation() { return "scoped"; }
|
|
@@ -81,7 +149,7 @@ export class DatePicker {
|
|
|
81
149
|
"optional": false,
|
|
82
150
|
"docs": {
|
|
83
151
|
"tags": [],
|
|
84
|
-
"text": "Show
|
|
152
|
+
"text": "Show hour input"
|
|
85
153
|
},
|
|
86
154
|
"attribute": "show-hour",
|
|
87
155
|
"reflect": false,
|
|
@@ -99,7 +167,7 @@ export class DatePicker {
|
|
|
99
167
|
"optional": false,
|
|
100
168
|
"docs": {
|
|
101
169
|
"tags": [],
|
|
102
|
-
"text": "Show
|
|
170
|
+
"text": "Show minutes input"
|
|
103
171
|
},
|
|
104
172
|
"attribute": "show-minutes",
|
|
105
173
|
"reflect": false,
|
|
@@ -117,29 +185,234 @@ export class DatePicker {
|
|
|
117
185
|
"optional": false,
|
|
118
186
|
"docs": {
|
|
119
187
|
"tags": [],
|
|
120
|
-
"text": "Show
|
|
188
|
+
"text": "Show seconds input"
|
|
121
189
|
},
|
|
122
190
|
"attribute": "show-seconds",
|
|
123
191
|
"reflect": false,
|
|
124
192
|
"defaultValue": "false"
|
|
125
193
|
},
|
|
194
|
+
"minDate": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"mutable": false,
|
|
197
|
+
"complexType": {
|
|
198
|
+
"original": "string",
|
|
199
|
+
"resolved": "string",
|
|
200
|
+
"references": {}
|
|
201
|
+
},
|
|
202
|
+
"required": false,
|
|
203
|
+
"optional": false,
|
|
204
|
+
"docs": {
|
|
205
|
+
"tags": [{
|
|
206
|
+
"name": "since",
|
|
207
|
+
"text": "1.1.0"
|
|
208
|
+
}],
|
|
209
|
+
"text": "The earliest date that can be selected by the date picker.\nIf not set there will be no restriction."
|
|
210
|
+
},
|
|
211
|
+
"attribute": "min-date",
|
|
212
|
+
"reflect": false
|
|
213
|
+
},
|
|
214
|
+
"maxDate": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"mutable": false,
|
|
217
|
+
"complexType": {
|
|
218
|
+
"original": "string",
|
|
219
|
+
"resolved": "string",
|
|
220
|
+
"references": {}
|
|
221
|
+
},
|
|
222
|
+
"required": false,
|
|
223
|
+
"optional": false,
|
|
224
|
+
"docs": {
|
|
225
|
+
"tags": [{
|
|
226
|
+
"name": "since",
|
|
227
|
+
"text": "1.1.0"
|
|
228
|
+
}],
|
|
229
|
+
"text": "The latest date that can be selected by the date picker.\nIf not set there will be no restriction."
|
|
230
|
+
},
|
|
231
|
+
"attribute": "max-date",
|
|
232
|
+
"reflect": false
|
|
233
|
+
},
|
|
234
|
+
"dateFormat": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"mutable": false,
|
|
237
|
+
"complexType": {
|
|
238
|
+
"original": "string",
|
|
239
|
+
"resolved": "string",
|
|
240
|
+
"references": {}
|
|
241
|
+
},
|
|
242
|
+
"required": false,
|
|
243
|
+
"optional": false,
|
|
244
|
+
"docs": {
|
|
245
|
+
"tags": [{
|
|
246
|
+
"name": "since",
|
|
247
|
+
"text": "1.1.0"
|
|
248
|
+
}],
|
|
249
|
+
"text": "Date format string.\nSee {@link https ://moment.github.io/luxon/#/formatting?id=table-of-tokens} for all available tokens."
|
|
250
|
+
},
|
|
251
|
+
"attribute": "date-format",
|
|
252
|
+
"reflect": false,
|
|
253
|
+
"defaultValue": "'yyyy/LL/dd'"
|
|
254
|
+
},
|
|
255
|
+
"timeFormat": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"mutable": false,
|
|
258
|
+
"complexType": {
|
|
259
|
+
"original": "string",
|
|
260
|
+
"resolved": "string",
|
|
261
|
+
"references": {}
|
|
262
|
+
},
|
|
263
|
+
"required": false,
|
|
264
|
+
"optional": false,
|
|
265
|
+
"docs": {
|
|
266
|
+
"tags": [{
|
|
267
|
+
"name": "since",
|
|
268
|
+
"text": "1.1.0"
|
|
269
|
+
}],
|
|
270
|
+
"text": "Time format string.\nSee {@link https ://moment.github.io/luxon/#/formatting?id=table-of-tokens} for all available tokens."
|
|
271
|
+
},
|
|
272
|
+
"attribute": "time-format",
|
|
273
|
+
"reflect": false,
|
|
274
|
+
"defaultValue": "'TT'"
|
|
275
|
+
},
|
|
276
|
+
"from": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"mutable": false,
|
|
279
|
+
"complexType": {
|
|
280
|
+
"original": "string",
|
|
281
|
+
"resolved": "string",
|
|
282
|
+
"references": {}
|
|
283
|
+
},
|
|
284
|
+
"required": false,
|
|
285
|
+
"optional": false,
|
|
286
|
+
"docs": {
|
|
287
|
+
"tags": [{
|
|
288
|
+
"name": "since",
|
|
289
|
+
"text": "1.1.0"
|
|
290
|
+
}],
|
|
291
|
+
"text": "Picker date. If the picker is in range mode this property is the start date.\n\nFormat is based on `format`"
|
|
292
|
+
},
|
|
293
|
+
"attribute": "from",
|
|
294
|
+
"reflect": false
|
|
295
|
+
},
|
|
296
|
+
"to": {
|
|
297
|
+
"type": "string",
|
|
298
|
+
"mutable": false,
|
|
299
|
+
"complexType": {
|
|
300
|
+
"original": "string | null",
|
|
301
|
+
"resolved": "string",
|
|
302
|
+
"references": {}
|
|
303
|
+
},
|
|
304
|
+
"required": false,
|
|
305
|
+
"optional": false,
|
|
306
|
+
"docs": {
|
|
307
|
+
"tags": [{
|
|
308
|
+
"name": "since",
|
|
309
|
+
"text": "1.1.0"
|
|
310
|
+
}],
|
|
311
|
+
"text": "Picker date. If the picker is in range mode this property is the end date.\nIf the picker is not in range mode leave this value `null`\n\nFormat is based on `format`"
|
|
312
|
+
},
|
|
313
|
+
"attribute": "to",
|
|
314
|
+
"reflect": false,
|
|
315
|
+
"defaultValue": "null"
|
|
316
|
+
},
|
|
317
|
+
"time": {
|
|
318
|
+
"type": "string",
|
|
319
|
+
"mutable": false,
|
|
320
|
+
"complexType": {
|
|
321
|
+
"original": "string",
|
|
322
|
+
"resolved": "string",
|
|
323
|
+
"references": {}
|
|
324
|
+
},
|
|
325
|
+
"required": false,
|
|
326
|
+
"optional": false,
|
|
327
|
+
"docs": {
|
|
328
|
+
"tags": [{
|
|
329
|
+
"name": "since",
|
|
330
|
+
"text": "1.1.0"
|
|
331
|
+
}],
|
|
332
|
+
"text": "Select time with format string"
|
|
333
|
+
},
|
|
334
|
+
"attribute": "time",
|
|
335
|
+
"reflect": false
|
|
336
|
+
},
|
|
126
337
|
"showTimeReference": {
|
|
127
|
-
"type": "
|
|
338
|
+
"type": "any",
|
|
128
339
|
"mutable": false,
|
|
129
340
|
"complexType": {
|
|
130
|
-
"original": "
|
|
131
|
-
"resolved": "
|
|
341
|
+
"original": "any",
|
|
342
|
+
"resolved": "any",
|
|
132
343
|
"references": {}
|
|
133
344
|
},
|
|
134
345
|
"required": false,
|
|
135
346
|
"optional": false,
|
|
136
347
|
"docs": {
|
|
137
|
-
"tags": [
|
|
138
|
-
|
|
348
|
+
"tags": [{
|
|
349
|
+
"name": "since",
|
|
350
|
+
"text": "1.1.0 time reference is default aligned with formt tt"
|
|
351
|
+
}],
|
|
352
|
+
"text": "Show time reference input"
|
|
139
353
|
},
|
|
140
354
|
"attribute": "show-time-reference",
|
|
141
355
|
"reflect": false,
|
|
142
|
-
"defaultValue": "
|
|
356
|
+
"defaultValue": "undefined"
|
|
357
|
+
},
|
|
358
|
+
"eventDelimiter": {
|
|
359
|
+
"type": "string",
|
|
360
|
+
"mutable": false,
|
|
361
|
+
"complexType": {
|
|
362
|
+
"original": "string",
|
|
363
|
+
"resolved": "string",
|
|
364
|
+
"references": {}
|
|
365
|
+
},
|
|
366
|
+
"required": false,
|
|
367
|
+
"optional": false,
|
|
368
|
+
"docs": {
|
|
369
|
+
"tags": [{
|
|
370
|
+
"name": "since",
|
|
371
|
+
"text": "1.1.0"
|
|
372
|
+
}],
|
|
373
|
+
"text": "Default behavior of the done event is to join the two events (date and time) into one combined string output.\nThis combination can be configured over the delimiter"
|
|
374
|
+
},
|
|
375
|
+
"attribute": "event-delimiter",
|
|
376
|
+
"reflect": false,
|
|
377
|
+
"defaultValue": "' - '"
|
|
378
|
+
},
|
|
379
|
+
"timeReference": {
|
|
380
|
+
"type": "string",
|
|
381
|
+
"mutable": false,
|
|
382
|
+
"complexType": {
|
|
383
|
+
"original": "'AM' | 'PM'",
|
|
384
|
+
"resolved": "\"AM\" | \"PM\"",
|
|
385
|
+
"references": {}
|
|
386
|
+
},
|
|
387
|
+
"required": false,
|
|
388
|
+
"optional": false,
|
|
389
|
+
"docs": {
|
|
390
|
+
"tags": [],
|
|
391
|
+
"text": "Set time reference"
|
|
392
|
+
},
|
|
393
|
+
"attribute": "time-reference",
|
|
394
|
+
"reflect": false
|
|
395
|
+
},
|
|
396
|
+
"textSelectDate": {
|
|
397
|
+
"type": "string",
|
|
398
|
+
"mutable": false,
|
|
399
|
+
"complexType": {
|
|
400
|
+
"original": "string",
|
|
401
|
+
"resolved": "string",
|
|
402
|
+
"references": {}
|
|
403
|
+
},
|
|
404
|
+
"required": false,
|
|
405
|
+
"optional": false,
|
|
406
|
+
"docs": {
|
|
407
|
+
"tags": [{
|
|
408
|
+
"name": "since",
|
|
409
|
+
"text": "1.1.0"
|
|
410
|
+
}],
|
|
411
|
+
"text": "Text of date select button"
|
|
412
|
+
},
|
|
413
|
+
"attribute": "text-select-date",
|
|
414
|
+
"reflect": false,
|
|
415
|
+
"defaultValue": "'Done'"
|
|
143
416
|
}
|
|
144
417
|
}; }
|
|
145
418
|
static get events() { return [{
|
|
@@ -150,12 +423,79 @@ export class DatePicker {
|
|
|
150
423
|
"composed": true,
|
|
151
424
|
"docs": {
|
|
152
425
|
"tags": [],
|
|
153
|
-
"text": "
|
|
426
|
+
"text": "Done event\n\nSet `doneEventDelimiter` to null or undefine to get the typed event"
|
|
427
|
+
},
|
|
428
|
+
"complexType": {
|
|
429
|
+
"original": "string",
|
|
430
|
+
"resolved": "string",
|
|
431
|
+
"references": {}
|
|
432
|
+
}
|
|
433
|
+
}, {
|
|
434
|
+
"method": "timeChange",
|
|
435
|
+
"name": "timeChange",
|
|
436
|
+
"bubbles": true,
|
|
437
|
+
"cancelable": true,
|
|
438
|
+
"composed": true,
|
|
439
|
+
"docs": {
|
|
440
|
+
"tags": [{
|
|
441
|
+
"name": "since",
|
|
442
|
+
"text": "1.1.0"
|
|
443
|
+
}],
|
|
444
|
+
"text": "Time change"
|
|
154
445
|
},
|
|
155
446
|
"complexType": {
|
|
156
447
|
"original": "string",
|
|
157
448
|
"resolved": "string",
|
|
158
449
|
"references": {}
|
|
159
450
|
}
|
|
451
|
+
}, {
|
|
452
|
+
"method": "dateChange",
|
|
453
|
+
"name": "dateChange",
|
|
454
|
+
"bubbles": true,
|
|
455
|
+
"cancelable": true,
|
|
456
|
+
"composed": true,
|
|
457
|
+
"docs": {
|
|
458
|
+
"tags": [{
|
|
459
|
+
"name": "since",
|
|
460
|
+
"text": "1.1.0"
|
|
461
|
+
}],
|
|
462
|
+
"text": "Date change"
|
|
463
|
+
},
|
|
464
|
+
"complexType": {
|
|
465
|
+
"original": "string | Omit<DateTimeSelectEvent, 'time'>",
|
|
466
|
+
"resolved": "string | { from: string; to: string; }",
|
|
467
|
+
"references": {
|
|
468
|
+
"Omit": {
|
|
469
|
+
"location": "global"
|
|
470
|
+
},
|
|
471
|
+
"DateTimeSelectEvent": {
|
|
472
|
+
"location": "import",
|
|
473
|
+
"path": "./event"
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}, {
|
|
478
|
+
"method": "dateSelect",
|
|
479
|
+
"name": "dateSelect",
|
|
480
|
+
"bubbles": true,
|
|
481
|
+
"cancelable": true,
|
|
482
|
+
"composed": true,
|
|
483
|
+
"docs": {
|
|
484
|
+
"tags": [{
|
|
485
|
+
"name": "since",
|
|
486
|
+
"text": "1.1.0"
|
|
487
|
+
}],
|
|
488
|
+
"text": "Date selection event is fired after confirm button is pressend"
|
|
489
|
+
},
|
|
490
|
+
"complexType": {
|
|
491
|
+
"original": "DateTimeSelectEvent",
|
|
492
|
+
"resolved": "DateTimeSelectEvent",
|
|
493
|
+
"references": {
|
|
494
|
+
"DateTimeSelectEvent": {
|
|
495
|
+
"location": "import",
|
|
496
|
+
"path": "./event"
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
160
500
|
}]; }
|
|
161
501
|
}
|
|
@@ -44,7 +44,7 @@ ul {
|
|
|
44
44
|
border-top-left-radius: 0px;
|
|
45
45
|
border-bottom-left-radius: 0px;
|
|
46
46
|
}
|
|
47
|
-
.compact ::slotted(* .ix-event-list-item) .
|
|
47
|
+
.compact ::slotted(* .ix-event-list-item) .event-list-item-container {
|
|
48
48
|
border-top-left-radius: 0;
|
|
49
49
|
border-top-right-radius: 0;
|
|
50
50
|
border-bottom-left-radius: 0;
|
|
@@ -53,6 +53,6 @@ ul {
|
|
|
53
53
|
.compact ::slotted(* .ix-event-list-item) i.glyph {
|
|
54
54
|
display: none;
|
|
55
55
|
}
|
|
56
|
-
.compact .compact:not(:last-child) .
|
|
56
|
+
.compact .compact:not(:last-child) .event-list-item-container {
|
|
57
57
|
border-bottom: none;
|
|
58
58
|
}
|
|
@@ -46,6 +46,18 @@
|
|
|
46
46
|
cursor: pointer;
|
|
47
47
|
margin-bottom: 0.5rem;
|
|
48
48
|
}
|
|
49
|
+
.ix-event-list-item:not(.disabled):not(:disabled) {
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
}
|
|
52
|
+
.ix-event-list-item:not(.disabled):not(:disabled):hover {
|
|
53
|
+
background-color: var(--theme-event-item--background--hover);
|
|
54
|
+
}
|
|
55
|
+
.ix-event-list-item:not(.disabled):not(:disabled) {
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
}
|
|
58
|
+
.ix-event-list-item:not(.disabled):not(:disabled):active {
|
|
59
|
+
background-color: var(--theme-event-item--background--active);
|
|
60
|
+
}
|
|
49
61
|
.ix-event-list-item .indicator {
|
|
50
62
|
height: 100%;
|
|
51
63
|
width: 0.5rem;
|
|
@@ -58,7 +70,7 @@
|
|
|
58
70
|
border: var(--theme-weak-bdr-1);
|
|
59
71
|
border-right: none;
|
|
60
72
|
}
|
|
61
|
-
.ix-event-list-item .
|
|
73
|
+
.ix-event-list-item .event-list-item-container {
|
|
62
74
|
overflow: hidden;
|
|
63
75
|
text-overflow: ellipsis;
|
|
64
76
|
white-space: nowrap;
|
|
@@ -75,6 +87,29 @@
|
|
|
75
87
|
border-left: none;
|
|
76
88
|
padding-left: 1rem;
|
|
77
89
|
}
|
|
90
|
+
.ix-event-list-item .event-list-item-container:not(.disabled):not(:disabled) {
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
}
|
|
93
|
+
.ix-event-list-item .event-list-item-container:not(.disabled):not(:disabled):hover {
|
|
94
|
+
border-color: var(--theme-event-item--border--hover);
|
|
95
|
+
}
|
|
96
|
+
.ix-event-list-item .event-list-item-container:not(.disabled):not(:disabled) {
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
}
|
|
99
|
+
.ix-event-list-item .event-list-item-container:not(.disabled):not(:disabled):active {
|
|
100
|
+
border-color: var(--theme-event-item--border--active);
|
|
101
|
+
}
|
|
102
|
+
.ix-event-list-item.selected:not(:active, .active) .event-list-item-container {
|
|
103
|
+
background-color: var(--theme-event-item--background--selected);
|
|
104
|
+
border-color: var(--theme-event-item--border--selected);
|
|
105
|
+
}
|
|
106
|
+
.ix-event-list-item[disabled], .ix-event-list-item.disabled {
|
|
107
|
+
pointer-events: none;
|
|
108
|
+
}
|
|
109
|
+
.ix-event-list-item[disabled] .event-list-item-container, .ix-event-list-item.disabled .event-list-item-container {
|
|
110
|
+
background-color: var(--theme-event-item--background--disabled);
|
|
111
|
+
border-color: var(--theme-event-item--border--disabled);
|
|
112
|
+
}
|
|
78
113
|
.ix-event-list-item .chevron-icon {
|
|
79
114
|
display: none;
|
|
80
115
|
margin-left: auto;
|
|
@@ -88,22 +123,4 @@
|
|
|
88
123
|
width: 100%;
|
|
89
124
|
height: 100%;
|
|
90
125
|
overflow: hidden;
|
|
91
|
-
}
|
|
92
|
-
.ix-event-list-item:not(.disabled):not(:disabled) {
|
|
93
|
-
cursor: pointer;
|
|
94
|
-
}
|
|
95
|
-
.ix-event-list-item:not(.disabled):not(:disabled):hover {
|
|
96
|
-
background-color: var(--theme-event-list-item-hover);
|
|
97
|
-
}
|
|
98
|
-
.ix-event-list-item:not(.disabled):not(:disabled) {
|
|
99
|
-
cursor: pointer;
|
|
100
|
-
}
|
|
101
|
-
.ix-event-list-item:not(.disabled):not(:disabled):active {
|
|
102
|
-
background-color: var(--theme-event-list-item-pressed);
|
|
103
|
-
}
|
|
104
|
-
.ix-event-list-item.selected {
|
|
105
|
-
background-color: var(--theme-event-item--background--selected);
|
|
106
|
-
}
|
|
107
|
-
.ix-event-list-item[disabled], .ix-event-list-item.disabled {
|
|
108
|
-
pointer-events: none;
|
|
109
126
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { Component, Element, Event, h, Listen, Prop } from '@stencil/core';
|
|
9
|
+
import { Component, Element, Event, h, Listen, Prop, } from '@stencil/core';
|
|
10
10
|
export class EventListItem {
|
|
11
11
|
constructor() {
|
|
12
12
|
/**
|
|
@@ -32,7 +32,7 @@ export class EventListItem {
|
|
|
32
32
|
: 'inherit',
|
|
33
33
|
opacity: `${this.disabled ? 0.4 : this.opacity}`,
|
|
34
34
|
} }),
|
|
35
|
-
h("div", { class: "
|
|
35
|
+
h("div", { class: "event-list-item-container" },
|
|
36
36
|
h("div", { class: "event-content" },
|
|
37
37
|
h("slot", null)),
|
|
38
38
|
h("i", { class: "glyph glyph-16 glyph-chevron-right chevron-icon" }))));
|
|
@@ -35,14 +35,17 @@
|
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
36
|
*/
|
|
37
37
|
:host {
|
|
38
|
-
display: flex;
|
|
39
|
-
width:
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
width: auto;
|
|
40
40
|
height: 2rem;
|
|
41
41
|
align-items: center;
|
|
42
42
|
justify-content: space-between;
|
|
43
43
|
/*collapsed view*/
|
|
44
44
|
/*expanded view*/
|
|
45
45
|
}
|
|
46
|
+
:host.right-position {
|
|
47
|
+
width: 11.5625rem !important;
|
|
48
|
+
}
|
|
46
49
|
:host .input-container {
|
|
47
50
|
transition: all 0.3s ease-in-out;
|
|
48
51
|
}
|
|
@@ -87,7 +90,7 @@
|
|
|
87
90
|
:host .btn-search:not(.disabled):not(:disabled):active {
|
|
88
91
|
border-color: transparent;
|
|
89
92
|
}
|
|
90
|
-
:host .btn-search:not(.disabled):not(:disabled):focus
|
|
93
|
+
:host .btn-search:not(.disabled):not(:disabled):focus-visible {
|
|
91
94
|
outline: none;
|
|
92
95
|
}
|
|
93
96
|
:host .btn-search:not(.disabled):not(:disabled):focus-visible {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
:host:not(.disabled):not(:disabled):active {
|
|
58
58
|
background-color: var(--theme-chip--background--active);
|
|
59
59
|
}
|
|
60
|
-
:host:not(.disabled):not(:disabled):focus
|
|
60
|
+
:host:not(.disabled):not(:disabled):focus-visible {
|
|
61
61
|
border-color: #199fff;
|
|
62
62
|
}
|
|
63
63
|
:host .slot-container {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
padding: 0;
|
|
77
77
|
vertical-align: top;
|
|
78
78
|
}
|
|
79
|
-
:host .btn-oval:not(.disabled):not(:disabled):focus
|
|
79
|
+
:host .btn-oval:not(.disabled):not(:disabled):focus-visible {
|
|
80
80
|
outline: none;
|
|
81
81
|
border-color: #199fff;
|
|
82
82
|
}
|