@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.
Files changed (159) hide show
  1. package/README.md +4 -0
  2. package/dist/cjs/ix-blind.cjs.entry.js +1 -1
  3. package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +1 -1
  4. package/dist/cjs/ix-button.cjs.entry.js +1 -1
  5. package/dist/cjs/ix-category-filter.cjs.entry.js +1 -1
  6. package/dist/cjs/ix-chip.cjs.entry.js +1 -1
  7. package/dist/cjs/ix-date-picker_2.cjs.entry.js +214 -56
  8. package/dist/cjs/ix-date-time-card.cjs.entry.js +1 -1
  9. package/dist/cjs/ix-datetime-picker.cjs.entry.js +79 -10
  10. package/dist/cjs/ix-dropdown_2.cjs.entry.js +1 -1
  11. package/dist/cjs/ix-event-list_2.cjs.entry.js +3 -3
  12. package/dist/cjs/ix-expanding-search.cjs.entry.js +2 -1
  13. package/dist/cjs/ix-filter-chip.cjs.entry.js +1 -1
  14. package/dist/cjs/ix-map-navigation_2.cjs.entry.js +0 -25
  15. package/dist/cjs/ix-menu_9.cjs.entry.js +32 -16
  16. package/dist/cjs/ix-select_2.cjs.entry.js +1 -1
  17. package/dist/cjs/ix-tile.cjs.entry.js +1 -1
  18. package/dist/cjs/ix-toast_2.cjs.entry.js +4 -0
  19. package/dist/cjs/ix-tree_2.cjs.entry.js +1 -1
  20. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +1 -1
  21. package/dist/cjs/{ix-workflow-step.cjs.entry.js → ix-workflow-step_2.cjs.entry.js} +77 -0
  22. package/dist/cjs/loader.cjs.js +1 -1
  23. package/dist/cjs/siemens-ix.cjs.js +1 -1
  24. package/dist/collection/collection-manifest.json +6 -0
  25. package/dist/collection/components/blind/blind.css +1 -1
  26. package/dist/collection/components/breadcrumb/breadcrumb.css +1 -1
  27. package/dist/collection/components/button/button.css +3 -0
  28. package/dist/collection/components/button/button.js +1 -1
  29. package/dist/collection/components/category-filter/category-filter.css +2 -3
  30. package/dist/collection/components/chip/chip.css +8 -8
  31. package/dist/collection/components/date-picker/date-picker.css +51 -49
  32. package/dist/collection/components/date-picker/date-picker.js +371 -57
  33. package/dist/collection/components/date-picker/events.js +1 -0
  34. package/dist/collection/components/date-time-card/date-time-card.css +3 -1
  35. package/dist/collection/components/datetime-picker/datetime-picker.css +12 -3
  36. package/dist/collection/components/datetime-picker/datetime-picker.js +361 -21
  37. package/dist/collection/components/datetime-picker/event.js +9 -0
  38. package/dist/collection/components/dropdown/dropdown.css +1 -1
  39. package/dist/collection/components/event-list/event-list.css +2 -2
  40. package/dist/collection/components/event-list-item/event-list-item.css +36 -19
  41. package/dist/collection/components/event-list-item/event-list-item.js +2 -2
  42. package/dist/collection/components/expanding-search/expanding-search.css +6 -3
  43. package/dist/collection/components/expanding-search/expanding-search.js +1 -0
  44. package/dist/collection/components/filter-chip/filter-chip.css +2 -2
  45. package/dist/collection/components/map-navigation/map-navigation.js +1 -28
  46. package/dist/collection/components/menu/menu.js +36 -17
  47. package/dist/collection/components/menu-about/menu-about.js +13 -34
  48. package/dist/collection/components/menu-item/menu-item.css +2 -2
  49. package/dist/collection/components/menu-settings/menu-settings.js +1 -1
  50. package/dist/collection/components/select/select.css +1 -1
  51. package/dist/collection/components/tile/tile.css +1 -1
  52. package/dist/collection/components/time-picker/time-picker.js +188 -31
  53. package/dist/collection/components/toast/toast.js +6 -1
  54. package/dist/collection/components/tree-item/tree-item.css +9 -3
  55. package/dist/collection/components/validation-tooltip/validation-tooltip.css +2 -1
  56. package/dist/collection/exports.js +2 -0
  57. package/dist/components/button.js +2 -2
  58. package/dist/components/date-picker.js +162 -45
  59. package/dist/components/date-time-card.js +1 -1
  60. package/dist/components/dropdown.js +1 -1
  61. package/dist/components/filter-chip.js +1 -1
  62. package/dist/components/ix-blind.js +1 -1
  63. package/dist/components/ix-breadcrumb.js +1 -1
  64. package/dist/components/ix-category-filter.js +1 -1
  65. package/dist/components/ix-chip.js +1 -1
  66. package/dist/components/ix-datetime-picker.js +90 -11
  67. package/dist/components/ix-event-list-item.js +2 -2
  68. package/dist/components/ix-event-list.js +1 -1
  69. package/dist/components/ix-expanding-search.js +2 -1
  70. package/dist/components/ix-map-navigation.js +6 -51
  71. package/dist/components/ix-menu-about.js +115 -1
  72. package/dist/components/ix-menu.js +20 -2
  73. package/dist/components/ix-select.js +1 -1
  74. package/dist/components/ix-tile.js +1 -1
  75. package/dist/components/ix-validation-tooltip.js +1 -1
  76. package/dist/components/menu-item.js +1 -1
  77. package/dist/components/time-picker.js +70 -17
  78. package/dist/components/toast.js +4 -0
  79. package/dist/components/tree-item.js +1 -1
  80. package/dist/esm/ix-blind.entry.js +1 -1
  81. package/dist/esm/ix-breadcrumb_2.entry.js +1 -1
  82. package/dist/esm/ix-button.entry.js +1 -1
  83. package/dist/esm/ix-category-filter.entry.js +1 -1
  84. package/dist/esm/ix-chip.entry.js +1 -1
  85. package/dist/esm/ix-date-picker_2.entry.js +214 -56
  86. package/dist/esm/ix-date-time-card.entry.js +1 -1
  87. package/dist/esm/ix-datetime-picker.entry.js +79 -10
  88. package/dist/esm/ix-dropdown_2.entry.js +1 -1
  89. package/dist/esm/ix-event-list_2.entry.js +3 -3
  90. package/dist/esm/ix-expanding-search.entry.js +2 -1
  91. package/dist/esm/ix-filter-chip.entry.js +1 -1
  92. package/dist/esm/ix-map-navigation_2.entry.js +0 -25
  93. package/dist/esm/ix-menu_9.entry.js +32 -16
  94. package/dist/esm/ix-select_2.entry.js +1 -1
  95. package/dist/esm/ix-tile.entry.js +1 -1
  96. package/dist/esm/ix-toast_2.entry.js +4 -0
  97. package/dist/esm/ix-tree_2.entry.js +1 -1
  98. package/dist/esm/ix-validation-tooltip.entry.js +1 -1
  99. package/dist/esm/{ix-workflow-step.entry.js → ix-workflow-step_2.entry.js} +78 -2
  100. package/dist/esm/loader.js +1 -1
  101. package/dist/esm/siemens-ix.js +1 -1
  102. package/dist/siemens-ix/p-02501b64.entry.js +1 -0
  103. package/dist/siemens-ix/{p-03d95feb.entry.js → p-1d56d9b6.entry.js} +1 -1
  104. package/dist/siemens-ix/p-2b7ed5d4.entry.js +1 -0
  105. package/dist/siemens-ix/p-334b7d5c.entry.js +1 -0
  106. package/dist/siemens-ix/{p-cde8f20e.entry.js → p-4287bd7e.entry.js} +1 -1
  107. package/dist/siemens-ix/{p-7ec8a00e.entry.js → p-52d99490.entry.js} +1 -1
  108. package/dist/siemens-ix/{p-2cda7278.entry.js → p-5fed62f8.entry.js} +1 -1
  109. package/dist/siemens-ix/p-71de6498.entry.js +1 -0
  110. package/dist/siemens-ix/p-77823732.entry.js +1 -0
  111. package/dist/siemens-ix/{p-2ce29bcd.entry.js → p-94b86dec.entry.js} +1 -1
  112. package/dist/siemens-ix/{p-40842bea.entry.js → p-a49005f3.entry.js} +1 -1
  113. package/dist/siemens-ix/{p-e1f54836.entry.js → p-a8396077.entry.js} +1 -1
  114. package/dist/siemens-ix/{p-504927a0.entry.js → p-b93c2fab.entry.js} +1 -1
  115. package/dist/siemens-ix/p-bf5513a0.entry.js +1 -0
  116. package/dist/siemens-ix/p-c0c9fb81.entry.js +1 -0
  117. package/dist/siemens-ix/p-c792adb4.entry.js +1 -0
  118. package/dist/siemens-ix/{p-7a4c744e.entry.js → p-c9a5d942.entry.js} +1 -1
  119. package/dist/siemens-ix/p-cb6e62ff.entry.js +1 -0
  120. package/dist/siemens-ix/p-cbd0f8a7.entry.js +1 -0
  121. package/dist/siemens-ix/p-fa44655a.entry.js +1 -0
  122. package/dist/siemens-ix/siemens-ix.css +13 -13
  123. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  124. package/dist/types/components/date-picker/date-picker.d.ts +93 -13
  125. package/dist/types/components/date-picker/events.d.ts +5 -0
  126. package/dist/types/components/datetime-picker/datetime-picker.d.ts +106 -9
  127. package/dist/types/components/datetime-picker/event.d.ts +5 -0
  128. package/dist/types/components/map-navigation/map-navigation.d.ts +0 -8
  129. package/dist/types/components/menu/menu.d.ts +2 -0
  130. package/dist/types/components/menu-about/menu-about.d.ts +1 -4
  131. package/dist/types/components/time-picker/time-picker.d.ts +42 -8
  132. package/dist/types/components.d.ts +274 -38
  133. package/dist/types/exports.d.ts +2 -0
  134. package/package.json +10 -1
  135. package/scss/components/_buttons.scss +15 -5
  136. package/scss/components/_checkboxes.scss +26 -14
  137. package/scss/components/_dropdown.scss +1 -1
  138. package/scss/components/_forms.scss +2 -1
  139. package/scss/components/_radiobuttons.scss +26 -14
  140. package/scss/mixins/_hover.scss +0 -1
  141. package/src/components/date-picker/readme.md +31 -10
  142. package/src/components/datetime-picker/readme.md +23 -10
  143. package/src/components/menu-about/readme.md +5 -6
  144. package/src/components/time-picker/readme.md +25 -8
  145. package/dist/cjs/ix-workflow-steps.cjs.entry.js +0 -83
  146. package/dist/components/menu-about.js +0 -120
  147. package/dist/esm/ix-workflow-steps.entry.js +0 -79
  148. package/dist/siemens-ix/p-1e111d1d.entry.js +0 -1
  149. package/dist/siemens-ix/p-240d22b6.entry.js +0 -1
  150. package/dist/siemens-ix/p-3613be96.entry.js +0 -1
  151. package/dist/siemens-ix/p-5990f0cb.entry.js +0 -1
  152. package/dist/siemens-ix/p-59c81e2a.entry.js +0 -1
  153. package/dist/siemens-ix/p-61b032bf.entry.js +0 -1
  154. package/dist/siemens-ix/p-662d756f.entry.js +0 -1
  155. package/dist/siemens-ix/p-9d9b8ad1.entry.js +0 -1
  156. package/dist/siemens-ix/p-ca71538c.entry.js +0 -1
  157. package/dist/siemens-ix/p-caf856f2.entry.js +0 -1
  158. package/dist/siemens-ix/p-d31bf6db.entry.js +0 -1
  159. 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
- * Set corners style
256
+ * Corner style
254
257
  */
255
258
  "corners": DateTimeCardCorners;
256
259
  /**
257
- * output date format
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
- * set styles
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
- * Set range size
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 Hour Input
347
+ * Show hour input
286
348
  */
287
349
  "showHour": boolean;
288
350
  /**
289
- * Show Minutes Input
351
+ * Show minutes input
290
352
  */
291
353
  "showMinutes": boolean;
292
354
  /**
293
- * Show Seconds Input
355
+ * Show seconds input
294
356
  */
295
357
  "showSeconds": boolean;
296
358
  /**
297
- * Show Time Reference Input
359
+ * Show time reference input
360
+ * @since 1.1.0 time reference is default aligned with formt tt
298
361
  */
299
- "showTimeReference": boolean;
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
- * Set corners style
1221
+ * Corner style
1136
1222
  */
1137
1223
  "corners": DateTimeCardCorners;
1138
1224
  /**
1139
- * set styles
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 Hour Input
1238
+ * Show hour input
1144
1239
  */
1145
1240
  "showHour": boolean;
1146
1241
  /**
1147
- * Show Minutes Input
1242
+ * Show minutes input
1148
1243
  */
1149
1244
  "showMinutes": boolean;
1150
1245
  /**
1151
- * Show Seconds Input
1246
+ * Show seconds input
1152
1247
  */
1153
1248
  "showSeconds": boolean;
1154
1249
  /**
1155
- * Show Time Reference Input
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
- "showTimeReference": boolean;
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
- * Set corners style
2205
+ * Corner style
2096
2206
  */
2097
2207
  "corners"?: DateTimeCardCorners;
2098
2208
  /**
2099
- * output date format
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
- * set styles
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
- * Time change event
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
- "onDateChange"?: (event: CustomEvent<string>) => void;
2250
+ "onDateSelect"?: (event: CustomEvent<DateChangeEvent>) => void;
2110
2251
  /**
2111
- * done event
2252
+ * Date selection confirmed via button action
2253
+ * @deprecated Use `dateSelect`
2112
2254
  */
2113
2255
  "onDone"?: (event: CustomEvent<string>) => void;
2114
2256
  /**
2115
- * Set range size
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
- * Time event
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 Hour Input
2331
+ * Show hour input
2140
2332
  */
2141
2333
  "showHour"?: boolean;
2142
2334
  /**
2143
- * Show Minutes Input
2335
+ * Show minutes input
2144
2336
  */
2145
2337
  "showMinutes"?: boolean;
2146
2338
  /**
2147
- * Show Seconds Input
2339
+ * Show seconds input
2148
2340
  */
2149
2341
  "showSeconds"?: boolean;
2150
2342
  /**
2151
- * Show Time Reference Input
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
- "showTimeReference"?: boolean;
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
- * Set corners style
3260
+ * Corner style
3045
3261
  */
3046
3262
  "corners"?: DateTimeCardCorners;
3047
3263
  /**
3048
- * set styles
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 Hour Input
3281
+ * Show hour input
3061
3282
  */
3062
3283
  "showHour"?: boolean;
3063
3284
  /**
3064
- * Show Minutes Input
3285
+ * Show minutes input
3065
3286
  */
3066
3287
  "showMinutes"?: boolean;
3067
3288
  /**
3068
- * Show Seconds Input
3289
+ * Show seconds input
3069
3290
  */
3070
3291
  "showSeconds"?: boolean;
3071
3292
  /**
3072
- * Show Time Reference Input
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
- "showTimeReference"?: boolean;
3310
+ "timeReference"?: 'AM' | 'PM';
3075
3311
  }
3076
3312
  interface IxToast {
3077
3313
  /**
@@ -1,3 +1,5 @@
1
+ export * from './components/date-picker/events';
2
+ export * from './components/datetime-picker/event';
1
3
  export * from './components/modal/modal-utils';
2
4
  export * from './components/toast/toast-utils';
3
5
  export * from './components/tree-item/default-tree-item';
package/package.json CHANGED
@@ -1,6 +1,13 @@
1
1
  {
2
2
  "name": "@siemens/ix",
3
- "version": "1.0.0",
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(--theme-btn-#{$name}--border-color--active) !important;
92
+ border-color: var(
93
+ --theme-btn-#{$name}--border-color--active
94
+ ) !important;
93
95
  }
94
- background-color: var(--theme-btn-#{$name}--background--active) !important;
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(--theme-btn-#{$name}--background--selected-active);
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 var(--theme-checkbox-unchecked--border-color);
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 var(--theme-checkbox-unchecked--border-color--hover);
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 var(--theme-checkbox-unchecked--border-color--active);
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 var(--theme-checkbox-unchecked--border-color--disabled);
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 var(--theme-checkbox-checked--border-color);
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 var(--theme-checkbox-checked--border-color--hover);
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 var(--theme-checkbox-checked--border-color--active);
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 var(--theme-checkbox-checked--border-color--disabled);
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 var(--theme-checkbox-mixed--border-color);
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 var(--theme-checkbox-mixed--border-color--hover);
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 var(--theme-checkbox-mixed--border-color--active);
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 var(--theme-checkbox-mixed--border-color--disabled);
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 {