@siemens/ix 1.0.0 → 1.1.0-beta.1
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
|
@@ -9,7 +9,10 @@ import { Buttons } from "./components/utils/button-variants";
|
|
|
9
9
|
import { FilterState } from "./components/category-filter/filter-state";
|
|
10
10
|
import { InputState } from "./components/category-filter/input-state";
|
|
11
11
|
import { DateTimeCardCorners } from "./components/date-time-card/date-time-card";
|
|
12
|
+
import { DateChangeEvent, LegacyDateChangeEvent } from "./components/date-picker/events";
|
|
13
|
+
import { DateTime } from "luxon";
|
|
12
14
|
import { DateTimeCardCorners as DateTimeCardCorners1 } from "./components/date-time-card/date-time-card";
|
|
15
|
+
import { DateTimeSelectEvent } from "./components/datetime-picker/event";
|
|
13
16
|
import { Placement, PositioningStrategy } from "@popperjs/core";
|
|
14
17
|
import { FlipTileState } from "./components/flip-tile/flip-tile-state";
|
|
15
18
|
import { NotificationColor } from "./components/utils/notification-color";
|
|
@@ -250,21 +253,55 @@ export namespace Components {
|
|
|
250
253
|
}
|
|
251
254
|
interface IxDatePicker {
|
|
252
255
|
/**
|
|
253
|
-
*
|
|
256
|
+
* Corner style
|
|
254
257
|
*/
|
|
255
258
|
"corners": DateTimeCardCorners;
|
|
256
259
|
/**
|
|
257
|
-
*
|
|
260
|
+
* Default behavior of the done event is to join the two events (date and time) into one combined string output. This combination can be configured over the delimiter
|
|
261
|
+
* @since 1.1.0
|
|
262
|
+
*/
|
|
263
|
+
"eventDelimiter": string;
|
|
264
|
+
/**
|
|
265
|
+
* Date format string. See {@link https ://moment.github.io/luxon/#/formatting?id=table-of-tokens} for all available tokens.
|
|
258
266
|
*/
|
|
259
267
|
"format": string;
|
|
260
268
|
/**
|
|
261
|
-
*
|
|
269
|
+
* Picker date. If the picker is in range mode this property is the start date. Format is based on `format`
|
|
270
|
+
* @since 1.1.0
|
|
271
|
+
*/
|
|
272
|
+
"from": string;
|
|
273
|
+
/**
|
|
274
|
+
* Get the current DateTime
|
|
275
|
+
*/
|
|
276
|
+
"getCurrentDate": () => Promise<{ start: DateTime; end: DateTime; }>;
|
|
277
|
+
/**
|
|
278
|
+
* @deprecated - will get removed with next major release
|
|
262
279
|
*/
|
|
263
280
|
"individual": boolean;
|
|
264
281
|
/**
|
|
265
|
-
*
|
|
282
|
+
* The latest date that can be selected by the date picker. If not set there will be no restriction.
|
|
283
|
+
* @since 1.1.0
|
|
284
|
+
*/
|
|
285
|
+
"maxDate": string;
|
|
286
|
+
/**
|
|
287
|
+
* The earliest date that can be selected by the date picker. If not set there will be no restriction.
|
|
288
|
+
* @since 1.1.0
|
|
289
|
+
*/
|
|
290
|
+
"minDate": string;
|
|
291
|
+
/**
|
|
292
|
+
* If true a range of dates can be selected.
|
|
266
293
|
*/
|
|
267
294
|
"range": boolean;
|
|
295
|
+
/**
|
|
296
|
+
* Text of date select button
|
|
297
|
+
* @since 1.1.0
|
|
298
|
+
*/
|
|
299
|
+
"textSelectDate": string;
|
|
300
|
+
/**
|
|
301
|
+
* Picker date. If the picker is in range mode this property is the end date. If the picker is not in range mode leave this value `null` Format is based on `format`
|
|
302
|
+
* @since 1.1.0
|
|
303
|
+
*/
|
|
304
|
+
"to": string | null;
|
|
268
305
|
}
|
|
269
306
|
interface IxDateTimeCard {
|
|
270
307
|
/**
|
|
@@ -277,26 +314,76 @@ export namespace Components {
|
|
|
277
314
|
"individual": boolean;
|
|
278
315
|
}
|
|
279
316
|
interface IxDatetimePicker {
|
|
317
|
+
/**
|
|
318
|
+
* Date format string. See {@link https ://moment.github.io/luxon/#/formatting?id=table-of-tokens} for all available tokens.
|
|
319
|
+
* @since 1.1.0
|
|
320
|
+
*/
|
|
321
|
+
"dateFormat": string;
|
|
322
|
+
/**
|
|
323
|
+
* Default behavior of the done event is to join the two events (date and time) into one combined string output. This combination can be configured over the delimiter
|
|
324
|
+
* @since 1.1.0
|
|
325
|
+
*/
|
|
326
|
+
"eventDelimiter": string;
|
|
327
|
+
/**
|
|
328
|
+
* Picker date. If the picker is in range mode this property is the start date. Format is based on `format`
|
|
329
|
+
* @since 1.1.0
|
|
330
|
+
*/
|
|
331
|
+
"from": string;
|
|
332
|
+
/**
|
|
333
|
+
* The latest date that can be selected by the date picker. If not set there will be no restriction.
|
|
334
|
+
* @since 1.1.0
|
|
335
|
+
*/
|
|
336
|
+
"maxDate": string;
|
|
337
|
+
/**
|
|
338
|
+
* The earliest date that can be selected by the date picker. If not set there will be no restriction.
|
|
339
|
+
* @since 1.1.0
|
|
340
|
+
*/
|
|
341
|
+
"minDate": string;
|
|
280
342
|
/**
|
|
281
343
|
* Set range size
|
|
282
344
|
*/
|
|
283
345
|
"range": boolean;
|
|
284
346
|
/**
|
|
285
|
-
* Show
|
|
347
|
+
* Show hour input
|
|
286
348
|
*/
|
|
287
349
|
"showHour": boolean;
|
|
288
350
|
/**
|
|
289
|
-
* Show
|
|
351
|
+
* Show minutes input
|
|
290
352
|
*/
|
|
291
353
|
"showMinutes": boolean;
|
|
292
354
|
/**
|
|
293
|
-
* Show
|
|
355
|
+
* Show seconds input
|
|
294
356
|
*/
|
|
295
357
|
"showSeconds": boolean;
|
|
296
358
|
/**
|
|
297
|
-
* Show
|
|
359
|
+
* Show time reference input
|
|
360
|
+
* @since 1.1.0 time reference is default aligned with formt tt
|
|
298
361
|
*/
|
|
299
|
-
"showTimeReference":
|
|
362
|
+
"showTimeReference": any;
|
|
363
|
+
/**
|
|
364
|
+
* Text of date select button
|
|
365
|
+
* @since 1.1.0
|
|
366
|
+
*/
|
|
367
|
+
"textSelectDate": string;
|
|
368
|
+
/**
|
|
369
|
+
* Select time with format string
|
|
370
|
+
* @since 1.1.0
|
|
371
|
+
*/
|
|
372
|
+
"time": string;
|
|
373
|
+
/**
|
|
374
|
+
* Time format string. See {@link https ://moment.github.io/luxon/#/formatting?id=table-of-tokens} for all available tokens.
|
|
375
|
+
* @since 1.1.0
|
|
376
|
+
*/
|
|
377
|
+
"timeFormat": string;
|
|
378
|
+
/**
|
|
379
|
+
* Set time reference
|
|
380
|
+
*/
|
|
381
|
+
"timeReference": 'AM' | 'PM';
|
|
382
|
+
/**
|
|
383
|
+
* Picker date. If the picker is in range mode this property is the end date. If the picker is not in range mode leave this value `null` Format is based on `format`
|
|
384
|
+
* @since 1.1.0
|
|
385
|
+
*/
|
|
386
|
+
"to": string | null;
|
|
300
387
|
}
|
|
301
388
|
interface IxDrawer {
|
|
302
389
|
/**
|
|
@@ -720,7 +807,6 @@ export namespace Components {
|
|
|
720
807
|
* Active tab
|
|
721
808
|
*/
|
|
722
809
|
"activeTabLabel": string;
|
|
723
|
-
"i18nImprintLabel": string;
|
|
724
810
|
/**
|
|
725
811
|
* Label of first tab
|
|
726
812
|
*/
|
|
@@ -1132,29 +1218,53 @@ export namespace Components {
|
|
|
1132
1218
|
}
|
|
1133
1219
|
interface IxTimePicker {
|
|
1134
1220
|
/**
|
|
1135
|
-
*
|
|
1221
|
+
* Corner style
|
|
1136
1222
|
*/
|
|
1137
1223
|
"corners": DateTimeCardCorners;
|
|
1138
1224
|
/**
|
|
1139
|
-
*
|
|
1225
|
+
* Format of time string
|
|
1226
|
+
* @since 1.1.0
|
|
1227
|
+
*/
|
|
1228
|
+
"format": string;
|
|
1229
|
+
/**
|
|
1230
|
+
* Get current time
|
|
1231
|
+
*/
|
|
1232
|
+
"getCurrentTime": () => Promise<DateTime>;
|
|
1233
|
+
/**
|
|
1234
|
+
* @deprecated - will get removed with next major release
|
|
1140
1235
|
*/
|
|
1141
1236
|
"individual": boolean;
|
|
1142
1237
|
/**
|
|
1143
|
-
* Show
|
|
1238
|
+
* Show hour input
|
|
1144
1239
|
*/
|
|
1145
1240
|
"showHour": boolean;
|
|
1146
1241
|
/**
|
|
1147
|
-
* Show
|
|
1242
|
+
* Show minutes input
|
|
1148
1243
|
*/
|
|
1149
1244
|
"showMinutes": boolean;
|
|
1150
1245
|
/**
|
|
1151
|
-
* Show
|
|
1246
|
+
* Show seconds input
|
|
1152
1247
|
*/
|
|
1153
1248
|
"showSeconds": boolean;
|
|
1154
1249
|
/**
|
|
1155
|
-
* Show
|
|
1250
|
+
* Show time reference input
|
|
1251
|
+
* @since 1.1.0 time reference is default aligned with formt tt
|
|
1252
|
+
*/
|
|
1253
|
+
"showTimeReference": any;
|
|
1254
|
+
/**
|
|
1255
|
+
* Text of date select button
|
|
1256
|
+
* @since 1.1.0
|
|
1156
1257
|
*/
|
|
1157
|
-
"
|
|
1258
|
+
"textSelectTime": string;
|
|
1259
|
+
/**
|
|
1260
|
+
* Select time with format string
|
|
1261
|
+
* @since 1.1.0
|
|
1262
|
+
*/
|
|
1263
|
+
"time": string;
|
|
1264
|
+
/**
|
|
1265
|
+
* Set time reference
|
|
1266
|
+
*/
|
|
1267
|
+
"timeReference": 'AM' | 'PM';
|
|
1158
1268
|
}
|
|
1159
1269
|
interface IxToast {
|
|
1160
1270
|
/**
|
|
@@ -2092,29 +2202,71 @@ declare namespace LocalJSX {
|
|
|
2092
2202
|
}
|
|
2093
2203
|
interface IxDatePicker {
|
|
2094
2204
|
/**
|
|
2095
|
-
*
|
|
2205
|
+
* Corner style
|
|
2096
2206
|
*/
|
|
2097
2207
|
"corners"?: DateTimeCardCorners;
|
|
2098
2208
|
/**
|
|
2099
|
-
*
|
|
2209
|
+
* Default behavior of the done event is to join the two events (date and time) into one combined string output. This combination can be configured over the delimiter
|
|
2210
|
+
* @since 1.1.0
|
|
2211
|
+
*/
|
|
2212
|
+
"eventDelimiter"?: string;
|
|
2213
|
+
/**
|
|
2214
|
+
* Date format string. See {@link https ://moment.github.io/luxon/#/formatting?id=table-of-tokens} for all available tokens.
|
|
2100
2215
|
*/
|
|
2101
2216
|
"format"?: string;
|
|
2102
2217
|
/**
|
|
2103
|
-
*
|
|
2218
|
+
* Picker date. If the picker is in range mode this property is the start date. Format is based on `format`
|
|
2219
|
+
* @since 1.1.0
|
|
2220
|
+
*/
|
|
2221
|
+
"from"?: string;
|
|
2222
|
+
/**
|
|
2223
|
+
* @deprecated - will get removed with next major release
|
|
2104
2224
|
*/
|
|
2105
2225
|
"individual"?: boolean;
|
|
2106
2226
|
/**
|
|
2107
|
-
*
|
|
2227
|
+
* The latest date that can be selected by the date picker. If not set there will be no restriction.
|
|
2228
|
+
* @since 1.1.0
|
|
2229
|
+
*/
|
|
2230
|
+
"maxDate"?: string;
|
|
2231
|
+
/**
|
|
2232
|
+
* The earliest date that can be selected by the date picker. If not set there will be no restriction.
|
|
2233
|
+
* @since 1.1.0
|
|
2234
|
+
*/
|
|
2235
|
+
"minDate"?: string;
|
|
2236
|
+
/**
|
|
2237
|
+
* Date change event If datepicker is in range mode the event detail will be sperated with a `-` e.g. `2022/10/22 - 2022/10/24` (start and end). If range mode is choosen consider to use `dateRangeChange`.
|
|
2238
|
+
* @depracted String output will be removed. Set ´doneEventDelimiter´ to undefined or null to get date change object instead of a string
|
|
2239
|
+
*/
|
|
2240
|
+
"onDateChange"?: (event: CustomEvent<LegacyDateChangeEvent>) => void;
|
|
2241
|
+
/**
|
|
2242
|
+
* Date range change. Only triggered if datepicker is in range mode
|
|
2243
|
+
* @since 1.1.0
|
|
2244
|
+
*/
|
|
2245
|
+
"onDateRangeChange"?: (event: CustomEvent<DateChangeEvent>) => void;
|
|
2246
|
+
/**
|
|
2247
|
+
* Date selection confirmed via button action
|
|
2248
|
+
* @since 1.1.0
|
|
2108
2249
|
*/
|
|
2109
|
-
"
|
|
2250
|
+
"onDateSelect"?: (event: CustomEvent<DateChangeEvent>) => void;
|
|
2110
2251
|
/**
|
|
2111
|
-
*
|
|
2252
|
+
* Date selection confirmed via button action
|
|
2253
|
+
* @deprecated Use `dateSelect`
|
|
2112
2254
|
*/
|
|
2113
2255
|
"onDone"?: (event: CustomEvent<string>) => void;
|
|
2114
2256
|
/**
|
|
2115
|
-
*
|
|
2257
|
+
* If true a range of dates can be selected.
|
|
2116
2258
|
*/
|
|
2117
2259
|
"range"?: boolean;
|
|
2260
|
+
/**
|
|
2261
|
+
* Text of date select button
|
|
2262
|
+
* @since 1.1.0
|
|
2263
|
+
*/
|
|
2264
|
+
"textSelectDate"?: string;
|
|
2265
|
+
/**
|
|
2266
|
+
* Picker date. If the picker is in range mode this property is the end date. If the picker is not in range mode leave this value `null` Format is based on `format`
|
|
2267
|
+
* @since 1.1.0
|
|
2268
|
+
*/
|
|
2269
|
+
"to"?: string | null;
|
|
2118
2270
|
}
|
|
2119
2271
|
interface IxDateTimeCard {
|
|
2120
2272
|
/**
|
|
@@ -2128,29 +2280,94 @@ declare namespace LocalJSX {
|
|
|
2128
2280
|
}
|
|
2129
2281
|
interface IxDatetimePicker {
|
|
2130
2282
|
/**
|
|
2131
|
-
*
|
|
2283
|
+
* Date format string. See {@link https ://moment.github.io/luxon/#/formatting?id=table-of-tokens} for all available tokens.
|
|
2284
|
+
* @since 1.1.0
|
|
2285
|
+
*/
|
|
2286
|
+
"dateFormat"?: string;
|
|
2287
|
+
/**
|
|
2288
|
+
* Default behavior of the done event is to join the two events (date and time) into one combined string output. This combination can be configured over the delimiter
|
|
2289
|
+
* @since 1.1.0
|
|
2290
|
+
*/
|
|
2291
|
+
"eventDelimiter"?: string;
|
|
2292
|
+
/**
|
|
2293
|
+
* Picker date. If the picker is in range mode this property is the start date. Format is based on `format`
|
|
2294
|
+
* @since 1.1.0
|
|
2295
|
+
*/
|
|
2296
|
+
"from"?: string;
|
|
2297
|
+
/**
|
|
2298
|
+
* The latest date that can be selected by the date picker. If not set there will be no restriction.
|
|
2299
|
+
* @since 1.1.0
|
|
2300
|
+
*/
|
|
2301
|
+
"maxDate"?: string;
|
|
2302
|
+
/**
|
|
2303
|
+
* The earliest date that can be selected by the date picker. If not set there will be no restriction.
|
|
2304
|
+
* @since 1.1.0
|
|
2305
|
+
*/
|
|
2306
|
+
"minDate"?: string;
|
|
2307
|
+
/**
|
|
2308
|
+
* Date change
|
|
2309
|
+
* @since 1.1.0
|
|
2310
|
+
*/
|
|
2311
|
+
"onDateChange"?: (event: CustomEvent<string | Omit<DateTimeSelectEvent, 'time'>>) => void;
|
|
2312
|
+
/**
|
|
2313
|
+
* Date selection event is fired after confirm button is pressend
|
|
2314
|
+
* @since 1.1.0
|
|
2315
|
+
*/
|
|
2316
|
+
"onDateSelect"?: (event: CustomEvent<DateTimeSelectEvent>) => void;
|
|
2317
|
+
/**
|
|
2318
|
+
* Done event Set `doneEventDelimiter` to null or undefine to get the typed event
|
|
2132
2319
|
*/
|
|
2133
2320
|
"onDone"?: (event: CustomEvent<string>) => void;
|
|
2321
|
+
/**
|
|
2322
|
+
* Time change
|
|
2323
|
+
* @since 1.1.0
|
|
2324
|
+
*/
|
|
2325
|
+
"onTimeChange"?: (event: CustomEvent<string>) => void;
|
|
2134
2326
|
/**
|
|
2135
2327
|
* Set range size
|
|
2136
2328
|
*/
|
|
2137
2329
|
"range"?: boolean;
|
|
2138
2330
|
/**
|
|
2139
|
-
* Show
|
|
2331
|
+
* Show hour input
|
|
2140
2332
|
*/
|
|
2141
2333
|
"showHour"?: boolean;
|
|
2142
2334
|
/**
|
|
2143
|
-
* Show
|
|
2335
|
+
* Show minutes input
|
|
2144
2336
|
*/
|
|
2145
2337
|
"showMinutes"?: boolean;
|
|
2146
2338
|
/**
|
|
2147
|
-
* Show
|
|
2339
|
+
* Show seconds input
|
|
2148
2340
|
*/
|
|
2149
2341
|
"showSeconds"?: boolean;
|
|
2150
2342
|
/**
|
|
2151
|
-
* Show
|
|
2343
|
+
* Show time reference input
|
|
2344
|
+
* @since 1.1.0 time reference is default aligned with formt tt
|
|
2345
|
+
*/
|
|
2346
|
+
"showTimeReference"?: any;
|
|
2347
|
+
/**
|
|
2348
|
+
* Text of date select button
|
|
2349
|
+
* @since 1.1.0
|
|
2350
|
+
*/
|
|
2351
|
+
"textSelectDate"?: string;
|
|
2352
|
+
/**
|
|
2353
|
+
* Select time with format string
|
|
2354
|
+
* @since 1.1.0
|
|
2355
|
+
*/
|
|
2356
|
+
"time"?: string;
|
|
2357
|
+
/**
|
|
2358
|
+
* Time format string. See {@link https ://moment.github.io/luxon/#/formatting?id=table-of-tokens} for all available tokens.
|
|
2359
|
+
* @since 1.1.0
|
|
2360
|
+
*/
|
|
2361
|
+
"timeFormat"?: string;
|
|
2362
|
+
/**
|
|
2363
|
+
* Set time reference
|
|
2152
2364
|
*/
|
|
2153
|
-
"
|
|
2365
|
+
"timeReference"?: 'AM' | 'PM';
|
|
2366
|
+
/**
|
|
2367
|
+
* Picker date. If the picker is in range mode this property is the end date. If the picker is not in range mode leave this value `null` Format is based on `format`
|
|
2368
|
+
* @since 1.1.0
|
|
2369
|
+
*/
|
|
2370
|
+
"to"?: string | null;
|
|
2154
2371
|
}
|
|
2155
2372
|
interface IxDrawer {
|
|
2156
2373
|
/**
|
|
@@ -2593,7 +2810,6 @@ declare namespace LocalJSX {
|
|
|
2593
2810
|
* Active tab
|
|
2594
2811
|
*/
|
|
2595
2812
|
"activeTabLabel"?: string;
|
|
2596
|
-
"i18nImprintLabel"?: string;
|
|
2597
2813
|
/**
|
|
2598
2814
|
* Label of first tab
|
|
2599
2815
|
*/
|
|
@@ -3041,11 +3257,16 @@ declare namespace LocalJSX {
|
|
|
3041
3257
|
}
|
|
3042
3258
|
interface IxTimePicker {
|
|
3043
3259
|
/**
|
|
3044
|
-
*
|
|
3260
|
+
* Corner style
|
|
3045
3261
|
*/
|
|
3046
3262
|
"corners"?: DateTimeCardCorners;
|
|
3047
3263
|
/**
|
|
3048
|
-
*
|
|
3264
|
+
* Format of time string
|
|
3265
|
+
* @since 1.1.0
|
|
3266
|
+
*/
|
|
3267
|
+
"format"?: string;
|
|
3268
|
+
/**
|
|
3269
|
+
* @deprecated - will get removed with next major release
|
|
3049
3270
|
*/
|
|
3050
3271
|
"individual"?: boolean;
|
|
3051
3272
|
/**
|
|
@@ -3057,21 +3278,36 @@ declare namespace LocalJSX {
|
|
|
3057
3278
|
*/
|
|
3058
3279
|
"onTimeChange"?: (event: CustomEvent<string>) => void;
|
|
3059
3280
|
/**
|
|
3060
|
-
* Show
|
|
3281
|
+
* Show hour input
|
|
3061
3282
|
*/
|
|
3062
3283
|
"showHour"?: boolean;
|
|
3063
3284
|
/**
|
|
3064
|
-
* Show
|
|
3285
|
+
* Show minutes input
|
|
3065
3286
|
*/
|
|
3066
3287
|
"showMinutes"?: boolean;
|
|
3067
3288
|
/**
|
|
3068
|
-
* Show
|
|
3289
|
+
* Show seconds input
|
|
3069
3290
|
*/
|
|
3070
3291
|
"showSeconds"?: boolean;
|
|
3071
3292
|
/**
|
|
3072
|
-
* Show
|
|
3293
|
+
* Show time reference input
|
|
3294
|
+
* @since 1.1.0 time reference is default aligned with formt tt
|
|
3295
|
+
*/
|
|
3296
|
+
"showTimeReference"?: any;
|
|
3297
|
+
/**
|
|
3298
|
+
* Text of date select button
|
|
3299
|
+
* @since 1.1.0
|
|
3300
|
+
*/
|
|
3301
|
+
"textSelectTime"?: string;
|
|
3302
|
+
/**
|
|
3303
|
+
* Select time with format string
|
|
3304
|
+
* @since 1.1.0
|
|
3305
|
+
*/
|
|
3306
|
+
"time"?: string;
|
|
3307
|
+
/**
|
|
3308
|
+
* Set time reference
|
|
3073
3309
|
*/
|
|
3074
|
-
"
|
|
3310
|
+
"timeReference"?: 'AM' | 'PM';
|
|
3075
3311
|
}
|
|
3076
3312
|
interface IxToast {
|
|
3077
3313
|
/**
|
package/dist/types/exports.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siemens/ix",
|
|
3
|
-
"
|
|
3
|
+
"homepage": "https://ix.siemens.io",
|
|
4
|
+
"bugs": "https://github.com/siemens/ix/issues",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/siemens/ix",
|
|
8
|
+
"directory": "packages/core"
|
|
9
|
+
},
|
|
10
|
+
"version": "1.1.0-beta.1",
|
|
4
11
|
"license": "MIT",
|
|
5
12
|
"description": "Siemens iX Web Components",
|
|
6
13
|
"main": "dist/index.cjs.js",
|
|
@@ -12,6 +19,8 @@
|
|
|
12
19
|
"collection:main": "dist/collection/index.js",
|
|
13
20
|
"unpkg": "dist/siemens-ix/siemens-ix.esm.js",
|
|
14
21
|
"files": [
|
|
22
|
+
"LICENSE",
|
|
23
|
+
"README.md",
|
|
15
24
|
"dist/",
|
|
16
25
|
"loader/",
|
|
17
26
|
"src/**/*.md",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
font-weight: $font-weight-normal;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
&:focus,
|
|
34
|
+
&:focus-visible,
|
|
35
35
|
&.focus {
|
|
36
36
|
box-shadow: none;
|
|
37
37
|
}
|
|
@@ -47,7 +47,6 @@ $button-categories: (primary, secondary);
|
|
|
47
47
|
|
|
48
48
|
&,
|
|
49
49
|
&.focus,
|
|
50
|
-
&:focus,
|
|
51
50
|
&:focus-visible {
|
|
52
51
|
background-color: var(--theme-btn-#{$name}--background);
|
|
53
52
|
color: var(--theme-btn-#{$name}--color);
|
|
@@ -73,6 +72,7 @@ $button-categories: (primary, secondary);
|
|
|
73
72
|
@if $enable-border {
|
|
74
73
|
border-color: var(--theme-btn-#{$name}--border-color--hover) !important;
|
|
75
74
|
}
|
|
75
|
+
|
|
76
76
|
background-color: var(--theme-btn-#{$name}--background--hover) !important;
|
|
77
77
|
color: var(--theme-btn-#{$name}--color--hover) !important;
|
|
78
78
|
}
|
|
@@ -89,9 +89,14 @@ $button-categories: (primary, secondary);
|
|
|
89
89
|
&:not(:disabled):not(.disabled).active,
|
|
90
90
|
.show > &.dropdown-toggle {
|
|
91
91
|
@if $enable-border {
|
|
92
|
-
border-color: var(
|
|
92
|
+
border-color: var(
|
|
93
|
+
--theme-btn-#{$name}--border-color--active
|
|
94
|
+
) !important;
|
|
93
95
|
}
|
|
94
|
-
|
|
96
|
+
|
|
97
|
+
background-color: var(
|
|
98
|
+
--theme-btn-#{$name}--background--active
|
|
99
|
+
) !important;
|
|
95
100
|
color: var(--theme-btn-#{$name}--color--active) !important;
|
|
96
101
|
}
|
|
97
102
|
|
|
@@ -99,7 +104,9 @@ $button-categories: (primary, secondary);
|
|
|
99
104
|
&:not(:disabled):not(.disabled):active,
|
|
100
105
|
&:not(:disabled):not(.disabled).active,
|
|
101
106
|
.show > &.dropdown-toggle {
|
|
102
|
-
background-color: var(
|
|
107
|
+
background-color: var(
|
|
108
|
+
--theme-btn-#{$name}--background--selected-active
|
|
109
|
+
);
|
|
103
110
|
color: var(--theme-btn-#{$name}--color--selected-active);
|
|
104
111
|
}
|
|
105
112
|
}
|
|
@@ -107,9 +114,11 @@ $button-categories: (primary, secondary);
|
|
|
107
114
|
&.disabled,
|
|
108
115
|
&:disabled {
|
|
109
116
|
cursor: initial;
|
|
117
|
+
|
|
110
118
|
@if $enable-border {
|
|
111
119
|
border-color: var(--theme-btn-#{$name}--border-color--disabled);
|
|
112
120
|
}
|
|
121
|
+
|
|
113
122
|
background-color: var(--theme-btn-#{$name}--background--disabled);
|
|
114
123
|
color: var(--theme-btn-#{$name}--color--disabled);
|
|
115
124
|
opacity: 1;
|
|
@@ -127,6 +136,7 @@ $button-categories: (primary, secondary);
|
|
|
127
136
|
.btn-icon {
|
|
128
137
|
min-width: $x-large-space;
|
|
129
138
|
width: $x-large-space;
|
|
139
|
+
|
|
130
140
|
.glyph {
|
|
131
141
|
margin-right: 0;
|
|
132
142
|
}
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
background-size: contain;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
[type='checkbox'] + label:focus {
|
|
53
|
+
[type='checkbox'] + label:focus-visible {
|
|
54
54
|
&:before {
|
|
55
55
|
outline: 1px solid var(--focus--border-color);
|
|
56
56
|
outline-offset: var(--theme-checkbox--focus--outline-offset);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
[type='checkbox']:focus + label {
|
|
60
|
+
[type='checkbox']:focus-visible + label {
|
|
61
61
|
&:before {
|
|
62
62
|
outline: 1px solid var(--focus--border-color);
|
|
63
63
|
outline-offset: var(--theme-checkbox--focus--outline-offset);
|
|
@@ -67,29 +67,34 @@
|
|
|
67
67
|
[type='checkbox']:not(:checked) {
|
|
68
68
|
& + label:before {
|
|
69
69
|
background-color: var(--theme-checkbox-unchecked--background);
|
|
70
|
-
border: var(--theme-checkbox--border-thickness) solid
|
|
70
|
+
border: var(--theme-checkbox--border-thickness) solid
|
|
71
|
+
var(--theme-checkbox-unchecked--border-color);
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
&:hover + label:before {
|
|
74
75
|
background-color: var(--theme-checkbox-unchecked--background--hover);
|
|
75
|
-
border: var(--theme-checkbox--border-thickness) solid
|
|
76
|
+
border: var(--theme-checkbox--border-thickness) solid
|
|
77
|
+
var(--theme-checkbox-unchecked--border-color--hover);
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
&:active + label:before {
|
|
79
81
|
background-color: var(--theme-checkbox-unchecked--background--active);
|
|
80
|
-
border: var(--theme-checkbox--border-thickness) solid
|
|
82
|
+
border: var(--theme-checkbox--border-thickness) solid
|
|
83
|
+
var(--theme-checkbox-unchecked--border-color--active);
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
&:disabled + label::before {
|
|
84
87
|
background-color: var(--theme-checkbox-unchecked--background--disabled);
|
|
85
|
-
border: var(--theme-checkbox--border-thickness) solid
|
|
88
|
+
border: var(--theme-checkbox--border-thickness) solid
|
|
89
|
+
var(--theme-checkbox-unchecked--border-color--disabled);
|
|
86
90
|
}
|
|
87
91
|
}
|
|
88
92
|
|
|
89
93
|
[type='checkbox']:checked {
|
|
90
94
|
& + label:before {
|
|
91
95
|
background-color: var(--theme-checkbox-checked--background);
|
|
92
|
-
border: var(--theme-checkbox--border-thickness) solid
|
|
96
|
+
border: var(--theme-checkbox--border-thickness) solid
|
|
97
|
+
var(--theme-checkbox-checked--border-color);
|
|
93
98
|
}
|
|
94
99
|
|
|
95
100
|
& + label:after {
|
|
@@ -109,17 +114,20 @@
|
|
|
109
114
|
|
|
110
115
|
&:hover + label:before {
|
|
111
116
|
background-color: var(--theme-checkbox-checked--background--hover);
|
|
112
|
-
border: var(--theme-checkbox--border-thickness) solid
|
|
117
|
+
border: var(--theme-checkbox--border-thickness) solid
|
|
118
|
+
var(--theme-checkbox-checked--border-color--hover);
|
|
113
119
|
}
|
|
114
120
|
|
|
115
121
|
&:active + label:before {
|
|
116
122
|
background-color: var(--theme-checkbox-checked--background--active);
|
|
117
|
-
border: var(--theme-checkbox--border-thickness) solid
|
|
123
|
+
border: var(--theme-checkbox--border-thickness) solid
|
|
124
|
+
var(--theme-checkbox-checked--border-color--active);
|
|
118
125
|
}
|
|
119
126
|
|
|
120
127
|
&:disabled + label:before {
|
|
121
128
|
background-color: var(--theme-checkbox-checked--background--disabled);
|
|
122
|
-
border: var(--theme-checkbox--border-thickness) solid
|
|
129
|
+
border: var(--theme-checkbox--border-thickness) solid
|
|
130
|
+
var(--theme-checkbox-checked--border-color--disabled);
|
|
123
131
|
}
|
|
124
132
|
|
|
125
133
|
&:disabled + label::after {
|
|
@@ -146,22 +154,26 @@
|
|
|
146
154
|
|
|
147
155
|
& + label:before {
|
|
148
156
|
background-color: var(--theme-checkbox-mixed--background);
|
|
149
|
-
border: var(--theme-checkbox--border-thickness) solid
|
|
157
|
+
border: var(--theme-checkbox--border-thickness) solid
|
|
158
|
+
var(--theme-checkbox-mixed--border-color);
|
|
150
159
|
}
|
|
151
160
|
|
|
152
161
|
&:hover + label:before {
|
|
153
162
|
background-color: var(--theme-checkbox-mixed--background--hover);
|
|
154
|
-
border: var(--theme-checkbox--border-thickness) solid
|
|
163
|
+
border: var(--theme-checkbox--border-thickness) solid
|
|
164
|
+
var(--theme-checkbox-mixed--border-color--hover);
|
|
155
165
|
}
|
|
156
166
|
|
|
157
167
|
&:active + label:before {
|
|
158
168
|
background-color: var(--theme-checkbox-mixed--background--active);
|
|
159
|
-
border: var(--theme-checkbox--border-thickness) solid
|
|
169
|
+
border: var(--theme-checkbox--border-thickness) solid
|
|
170
|
+
var(--theme-checkbox-mixed--border-color--active);
|
|
160
171
|
}
|
|
161
172
|
|
|
162
173
|
&:disabled + label::before {
|
|
163
174
|
background-color: var(--theme-checkbox-mixed--background--disabled);
|
|
164
|
-
border: var(--theme-checkbox--border-thickness) solid
|
|
175
|
+
border: var(--theme-checkbox--border-thickness) solid
|
|
176
|
+
var(--theme-checkbox-mixed--border-color--disabled);
|
|
165
177
|
}
|
|
166
178
|
|
|
167
179
|
&:disabled + label::after {
|