@limetech/lime-elements 36.1.0-next.9 → 36.1.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/dist/cjs/{checkbox.template-b6c6562c.js → checkbox.template-ac867c17.js} +1 -1
- package/dist/cjs/{index-2a28697b.js → index-287e25e0.js} +424 -246
- package/dist/cjs/lime-elements.cjs.js +3 -3
- package/dist/cjs/limel-badge.cjs.entry.js +2 -1
- package/dist/cjs/limel-banner.cjs.entry.js +3 -1
- package/dist/cjs/limel-button-group.cjs.entry.js +3 -8
- package/dist/cjs/{limel-button.cjs.entry.js → limel-button_2.cjs.entry.js} +117 -21
- package/dist/cjs/limel-checkbox.cjs.entry.js +10 -26
- package/dist/cjs/limel-chip-set.cjs.entry.js +21 -52
- package/dist/cjs/{limel-linear-progress.cjs.entry.js → limel-circular-progress_2.cjs.entry.js} +34 -7
- package/dist/cjs/limel-code-editor.cjs.entry.js +110 -97
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +4 -5
- package/dist/cjs/limel-color-picker-palette.cjs.entry.js +5 -1
- package/dist/cjs/limel-color-picker.cjs.entry.js +8 -2
- package/dist/cjs/limel-config.cjs.entry.js +2 -1
- package/dist/cjs/limel-date-picker.cjs.entry.js +15 -33
- package/dist/cjs/limel-dialog.cjs.entry.js +4 -12
- package/dist/cjs/limel-dock-button.cjs.entry.js +5 -15
- package/dist/cjs/limel-dock.cjs.entry.js +8 -40
- package/dist/cjs/limel-file.cjs.entry.js +10 -24
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +149 -48
- package/dist/cjs/limel-flex-container.cjs.entry.js +1 -13
- package/dist/cjs/limel-form.cjs.entry.js +327 -326
- package/dist/cjs/limel-grid.cjs.entry.js +1 -1
- package/dist/cjs/limel-header.cjs.entry.js +5 -1
- package/dist/cjs/limel-icon-button.cjs.entry.js +3 -8
- package/dist/cjs/limel-icon.cjs.entry.js +4 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +95 -0
- package/dist/cjs/limel-input-field.cjs.entry.js +27 -60
- package/dist/cjs/limel-list_2.cjs.entry.js +10 -21
- package/dist/cjs/limel-menu-list.cjs.entry.js +7 -14
- package/dist/cjs/limel-picker.cjs.entry.js +14 -39
- package/dist/cjs/limel-popover_4.cjs.entry.js +13 -12
- package/dist/cjs/limel-portal.cjs.entry.js +63 -73
- package/dist/cjs/limel-progress-flow-item.cjs.entry.js +4 -13
- package/dist/cjs/limel-progress-flow.cjs.entry.js +4 -20
- package/dist/cjs/limel-select.cjs.entry.js +19 -31
- package/dist/cjs/limel-shortcut.cjs.entry.js +52 -0
- package/dist/cjs/limel-slider.cjs.entry.js +12 -33
- package/dist/cjs/limel-snackbar.cjs.entry.js +7 -5
- package/dist/cjs/limel-spinner.cjs.entry.js +1 -7
- package/dist/cjs/limel-split-button.cjs.entry.js +35 -0
- package/dist/cjs/limel-switch.cjs.entry.js +6 -19
- package/dist/cjs/limel-tab-bar.cjs.entry.js +2 -5
- package/dist/cjs/limel-tab-panel.cjs.entry.js +2 -5
- package/dist/cjs/limel-table.cjs.entry.js +16 -28
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{translations-5a8d7f6c.js → translations-ca7279bc.js} +6 -0
- package/dist/collection/collection-manifest.json +5 -2
- package/dist/collection/components/badge/badge.js +35 -26
- package/dist/collection/components/banner/banner.js +88 -83
- package/dist/collection/components/button/button.css +4 -1
- package/dist/collection/components/button/button.js +148 -160
- package/dist/collection/components/button-group/button-group.js +81 -79
- package/dist/collection/components/checkbox/checkbox.js +172 -176
- package/dist/collection/components/checkbox/checkbox.template.js +15 -23
- package/dist/collection/components/chip-set/chip-set.js +486 -528
- package/dist/collection/components/circular-progress/circular-progress.css +27 -5
- package/dist/collection/components/circular-progress/circular-progress.js +129 -113
- package/dist/collection/components/code-editor/code-editor.js +178 -182
- package/dist/collection/components/collapsible-section/collapsible-section.js +120 -124
- package/dist/collection/components/color-picker/color-picker-palette.js +102 -92
- package/dist/collection/components/color-picker/color-picker.js +143 -131
- package/dist/collection/components/config/config.js +21 -17
- package/dist/collection/components/date-picker/date-picker.js +254 -261
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +591 -166
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +150 -143
- package/dist/collection/components/date-picker/pickers/QuarterPicker.js +1 -3
- package/dist/collection/components/dialog/dialog.css +7 -1
- package/dist/collection/components/dialog/dialog.js +134 -142
- package/dist/collection/components/dock/dock-button/dock-button.js +138 -141
- package/dist/collection/components/dock/dock.js +204 -233
- package/dist/collection/components/file/file.js +187 -191
- package/dist/collection/components/flex-container/flex-container.js +96 -102
- package/dist/collection/components/form/form.js +158 -150
- package/dist/collection/components/form/widgets/code-editor.js +2 -0
- package/dist/collection/components/grid/grid.js +11 -7
- package/dist/collection/components/header/header.js +89 -87
- package/dist/collection/components/icon/icon.js +79 -66
- package/dist/collection/components/icon-button/icon-button.js +85 -85
- package/dist/collection/components/info-tile/info-tile.css +310 -0
- package/dist/collection/components/info-tile/info-tile.js +294 -0
- package/dist/collection/components/info-tile/info-tile.types.js +1 -0
- package/dist/collection/components/input-field/input-field.css +3 -0
- package/dist/collection/components/input-field/input-field.js +482 -523
- package/dist/collection/components/linear-progress/linear-progress.js +57 -61
- package/dist/collection/components/list/list-renderer.js +3 -12
- package/dist/collection/components/list/list.css +11 -116
- package/dist/collection/components/list/list.js +167 -166
- package/dist/collection/components/list/radio-button/radio-button.template.js +2 -8
- package/dist/collection/components/menu/menu.js +183 -195
- package/dist/collection/components/menu-list/menu-list-renderer.js +2 -9
- package/dist/collection/components/menu-list/menu-list.css +11 -116
- package/dist/collection/components/menu-list/menu-list.js +149 -146
- package/dist/collection/components/menu-surface/menu-surface.js +69 -64
- package/dist/collection/components/picker/picker.js +412 -427
- package/dist/collection/components/popover/popover.js +79 -74
- package/dist/collection/components/popover-surface/popover-surface.js +34 -25
- package/dist/collection/components/portal/portal.js +145 -158
- package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.js +90 -94
- package/dist/collection/components/progress-flow/progress-flow.js +93 -101
- package/dist/collection/components/select/select.css +8 -7
- package/dist/collection/components/select/select.js +206 -211
- package/dist/collection/components/select/select.template.js +17 -26
- package/dist/collection/components/shortcut/shortcut.css +91 -0
- package/dist/collection/components/shortcut/shortcut.js +161 -0
- package/dist/collection/components/slider/slider.js +233 -264
- package/dist/collection/components/snackbar/snackbar.js +175 -169
- package/dist/collection/components/spinner/spinner.js +56 -85
- package/dist/collection/components/split-button/split-button.css +84 -0
- package/dist/collection/components/split-button/split-button.js +176 -0
- package/dist/collection/components/switch/switch.js +117 -129
- package/dist/collection/components/tab-bar/tab-bar.js +87 -92
- package/dist/collection/components/tab-panel/tab-panel.js +64 -61
- package/dist/collection/components/table/table.js +447 -457
- package/dist/collection/components/tooltip/tooltip-content.js +70 -61
- package/dist/collection/components/tooltip/tooltip.js +96 -91
- package/dist/collection/global/shared-types/link.types.js +1 -0
- package/dist/collection/style/internal/z-index.scss +0 -5
- package/dist/collection/translations/da.js +1 -0
- package/dist/collection/translations/en.js +1 -0
- package/dist/collection/translations/fi.js +1 -0
- package/dist/collection/translations/nl.js +1 -0
- package/dist/collection/translations/no.js +1 -0
- package/dist/collection/translations/sv.js +1 -0
- package/dist/esm/{checkbox.template-2f1bbc98.js → checkbox.template-fc7fcd06.js} +1 -1
- package/dist/esm/{index-11cd0b60.js → index-cdfd351d.js} +424 -246
- package/dist/esm/lime-elements.js +3 -3
- package/dist/esm/limel-badge.entry.js +2 -1
- package/dist/esm/limel-banner.entry.js +3 -1
- package/dist/esm/limel-button-group.entry.js +3 -8
- package/dist/esm/{limel-button.entry.js → limel-button_2.entry.js} +117 -22
- package/dist/esm/limel-checkbox.entry.js +10 -26
- package/dist/esm/limel-chip-set.entry.js +21 -52
- package/dist/esm/{limel-linear-progress.entry.js → limel-circular-progress_2.entry.js} +34 -8
- package/dist/esm/limel-code-editor.entry.js +110 -97
- package/dist/esm/limel-collapsible-section.entry.js +4 -5
- package/dist/esm/limel-color-picker-palette.entry.js +5 -1
- package/dist/esm/limel-color-picker.entry.js +8 -2
- package/dist/esm/limel-config.entry.js +2 -1
- package/dist/esm/limel-date-picker.entry.js +15 -33
- package/dist/esm/limel-dialog.entry.js +4 -12
- package/dist/esm/limel-dock-button.entry.js +5 -15
- package/dist/esm/limel-dock.entry.js +8 -40
- package/dist/esm/limel-file.entry.js +10 -24
- package/dist/esm/limel-flatpickr-adapter.entry.js +149 -48
- package/dist/esm/limel-flex-container.entry.js +1 -13
- package/dist/esm/limel-form.entry.js +327 -326
- package/dist/esm/limel-grid.entry.js +1 -1
- package/dist/esm/limel-header.entry.js +5 -1
- package/dist/esm/limel-icon-button.entry.js +3 -8
- package/dist/esm/limel-icon.entry.js +4 -1
- package/dist/esm/limel-info-tile.entry.js +91 -0
- package/dist/esm/limel-input-field.entry.js +27 -60
- package/dist/esm/limel-list_2.entry.js +10 -21
- package/dist/esm/limel-menu-list.entry.js +7 -14
- package/dist/esm/limel-picker.entry.js +14 -39
- package/dist/esm/limel-popover_4.entry.js +13 -12
- package/dist/esm/limel-portal.entry.js +63 -73
- package/dist/esm/limel-progress-flow-item.entry.js +4 -13
- package/dist/esm/limel-progress-flow.entry.js +4 -20
- package/dist/esm/limel-select.entry.js +19 -31
- package/dist/esm/limel-shortcut.entry.js +48 -0
- package/dist/esm/limel-slider.entry.js +12 -33
- package/dist/esm/limel-snackbar.entry.js +7 -5
- package/dist/esm/limel-spinner.entry.js +1 -7
- package/dist/esm/limel-split-button.entry.js +31 -0
- package/dist/esm/limel-switch.entry.js +6 -19
- package/dist/esm/limel-tab-bar.entry.js +2 -5
- package/dist/esm/limel-tab-panel.entry.js +2 -5
- package/dist/esm/limel-table.entry.js +16 -28
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{translations-682e905e.js → translations-0d0ee941.js} +6 -0
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-059e0a64.entry.js +1 -0
- package/dist/lime-elements/{p-440454ed.entry.js → p-06f2f6b4.entry.js} +1 -1
- package/dist/lime-elements/p-12a7453b.entry.js +73 -0
- package/dist/lime-elements/p-1386d86d.entry.js +82 -0
- package/dist/lime-elements/p-15c2eb16.entry.js +1 -0
- package/dist/lime-elements/{p-c80acfb2.entry.js → p-15ca0d70.entry.js} +4 -4
- package/dist/lime-elements/{p-ed65468d.entry.js → p-16eb9071.entry.js} +1 -1
- package/dist/lime-elements/{p-1ede893b.js → p-1af8258b.js} +1 -1
- package/dist/lime-elements/{p-71efe2ca.entry.js → p-21058db5.entry.js} +4 -3
- package/dist/lime-elements/p-246862ec.js +1 -0
- package/dist/lime-elements/p-36a3b897.entry.js +1 -0
- package/dist/lime-elements/p-4eda8b67.entry.js +82 -0
- package/dist/lime-elements/{p-9af0704c.entry.js → p-4fb4e89b.entry.js} +1 -1
- package/dist/lime-elements/p-4fc38050.entry.js +1 -0
- package/dist/lime-elements/{p-a5af84a7.entry.js → p-5338663b.entry.js} +1 -1
- package/dist/lime-elements/p-5ce60a32.entry.js +126 -0
- package/dist/lime-elements/p-5f13035a.entry.js +1 -0
- package/dist/lime-elements/p-5f29f099.entry.js +16 -0
- package/dist/lime-elements/p-600464a9.entry.js +1 -0
- package/dist/lime-elements/p-6534e16a.entry.js +1 -0
- package/dist/lime-elements/p-6a4a5ddd.entry.js +1 -0
- package/dist/lime-elements/p-6c38b505.entry.js +1 -0
- package/dist/lime-elements/p-75d01713.entry.js +1 -0
- package/dist/lime-elements/p-768b7cbb.entry.js +1 -0
- package/dist/lime-elements/{p-6e7809a6.entry.js → p-82cd7bb6.entry.js} +1 -1
- package/dist/lime-elements/p-84a137a7.entry.js +1 -0
- package/dist/lime-elements/{p-aa66620a.entry.js → p-8ab597a8.entry.js} +2 -2
- package/dist/lime-elements/{p-8827628d.entry.js → p-8fb83e83.entry.js} +2 -2
- package/dist/lime-elements/p-90961075.entry.js +1 -0
- package/dist/lime-elements/p-9984b31c.entry.js +1 -0
- package/dist/lime-elements/p-9bd76629.entry.js +59 -0
- package/dist/lime-elements/p-9ea8dd5c.entry.js +1 -0
- package/dist/lime-elements/p-cad7cda1.entry.js +16 -0
- package/dist/lime-elements/{p-104c89e8.entry.js → p-cfaa685f.entry.js} +1 -1
- package/dist/lime-elements/{p-94899019.entry.js → p-d1187867.entry.js} +1 -1
- package/dist/lime-elements/p-d4e788e1.js +2 -0
- package/dist/lime-elements/p-d512656b.entry.js +1 -0
- package/dist/lime-elements/p-d8e5a9ee.entry.js +1 -0
- package/dist/lime-elements/p-de161bb5.entry.js +1 -0
- package/dist/lime-elements/p-e4bca82b.entry.js +1 -0
- package/dist/lime-elements/p-e6f84d68.entry.js +1 -0
- package/dist/lime-elements/{p-c15da26d.entry.js → p-e7bb664f.entry.js} +1 -1
- package/dist/lime-elements/p-e88f7922.entry.js +1 -0
- package/dist/lime-elements/p-ec4c075d.entry.js +1 -0
- package/dist/lime-elements/p-f1ed857b.entry.js +37 -0
- package/dist/lime-elements/p-f33cfcb8.entry.js +11 -0
- package/dist/lime-elements/style/internal/z-index.scss +0 -5
- package/dist/loader/package.json +1 -0
- package/dist/types/components/circular-progress/circular-progress.d.ts +5 -0
- package/dist/types/components/dock/dock.d.ts +0 -1
- package/dist/types/components/info-tile/info-tile.d.ts +87 -0
- package/dist/types/components/info-tile/info-tile.types.d.ts +23 -0
- package/dist/types/components/picker/picker.d.ts +2 -2
- package/dist/types/components/shortcut/shortcut.d.ts +42 -0
- package/dist/types/components/split-button/split-button.d.ts +46 -0
- package/dist/types/components.d.ts +403 -67
- package/dist/types/global/shared-types/link.types.d.ts +25 -0
- package/dist/types/interface.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +20 -4
- package/dist/types/translations/da.d.ts +1 -0
- package/dist/types/translations/en.d.ts +1 -0
- package/dist/types/translations/fi.d.ts +1 -0
- package/dist/types/translations/nl.d.ts +1 -0
- package/dist/types/translations/no.d.ts +1 -0
- package/dist/types/translations/sv.d.ts +1 -0
- package/package.json +21 -20
- package/dist/cjs/limel-circular-progress.cjs.entry.js +0 -44
- package/dist/cjs/limel-menu.cjs.entry.js +0 -137
- package/dist/esm/limel-circular-progress.entry.js +0 -40
- package/dist/esm/limel-menu.entry.js +0 -133
- package/dist/lime-elements/p-009de50e.entry.js +0 -1
- package/dist/lime-elements/p-19f72dab.entry.js +0 -1
- package/dist/lime-elements/p-2639edf9.entry.js +0 -73
- package/dist/lime-elements/p-2fc4f4ff.entry.js +0 -1
- package/dist/lime-elements/p-3b0c9885.entry.js +0 -37
- package/dist/lime-elements/p-3bf54a4c.js +0 -1
- package/dist/lime-elements/p-3cf4aae0.entry.js +0 -1
- package/dist/lime-elements/p-3f388717.entry.js +0 -11
- package/dist/lime-elements/p-41e902ac.entry.js +0 -126
- package/dist/lime-elements/p-4dc07252.entry.js +0 -82
- package/dist/lime-elements/p-53e01330.entry.js +0 -1
- package/dist/lime-elements/p-5ef52589.entry.js +0 -1
- package/dist/lime-elements/p-629862f4.entry.js +0 -1
- package/dist/lime-elements/p-63e25a0a.entry.js +0 -1
- package/dist/lime-elements/p-6b1bc80f.entry.js +0 -1
- package/dist/lime-elements/p-93cd2268.entry.js +0 -1
- package/dist/lime-elements/p-95f275ab.entry.js +0 -1
- package/dist/lime-elements/p-9917f042.entry.js +0 -16
- package/dist/lime-elements/p-995bbd2a.entry.js +0 -1
- package/dist/lime-elements/p-a465084b.entry.js +0 -82
- package/dist/lime-elements/p-b0046fcd.entry.js +0 -1
- package/dist/lime-elements/p-b0e54dc2.entry.js +0 -1
- package/dist/lime-elements/p-b4de3380.entry.js +0 -1
- package/dist/lime-elements/p-c59cbd68.entry.js +0 -1
- package/dist/lime-elements/p-d74fa89e.entry.js +0 -1
- package/dist/lime-elements/p-e98d76e8.entry.js +0 -59
- package/dist/lime-elements/p-e9a95b8f.js +0 -1
- package/dist/lime-elements/p-eec907ac.entry.js +0 -1
- package/dist/lime-elements/p-f0c9dadd.entry.js +0 -1
- package/dist/lime-elements/p-f0e872b6.entry.js +0 -16
- package/dist/lime-elements/p-f41567a1.entry.js +0 -1
- package/dist/lime-elements/p-f5df4d4f.entry.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-287e25e0.js');
|
|
6
6
|
const dom = require('./dom-20826de0.js');
|
|
7
7
|
const keycodes = require('./keycodes-3949f425.js');
|
|
8
8
|
const randomString = require('./random-string-4c3b7f1c.js');
|
|
@@ -234,54 +234,29 @@ const Picker = class {
|
|
|
234
234
|
this.change = index.createEvent(this, "change", 7);
|
|
235
235
|
this.interact = index.createEvent(this, "interact", 7);
|
|
236
236
|
this.action = index.createEvent(this, "action", 7);
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
237
|
+
// Should NOT be decorated with State(), since this
|
|
238
|
+
// should not trigger a re-render by itself.
|
|
239
|
+
this.chipSetEditMode = false;
|
|
240
240
|
this.disabled = false;
|
|
241
|
-
/**
|
|
242
|
-
* Set to `true` to disable adding and removing items,
|
|
243
|
-
* but allow interaction with existing items.
|
|
244
|
-
*/
|
|
245
241
|
this.readonly = false;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
242
|
+
this.label = undefined;
|
|
243
|
+
this.searchLabel = undefined;
|
|
244
|
+
this.helperText = undefined;
|
|
245
|
+
this.leadingIcon = undefined;
|
|
246
|
+
this.emptyResultMessage = undefined;
|
|
249
247
|
this.required = false;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
*/
|
|
248
|
+
this.value = undefined;
|
|
249
|
+
this.searcher = undefined;
|
|
253
250
|
this.multiple = false;
|
|
254
|
-
/**
|
|
255
|
-
* Sets delimiters between chips. Works only when `multiple` is `true`.
|
|
256
|
-
*/
|
|
257
251
|
this.delimiter = null;
|
|
258
|
-
/**
|
|
259
|
-
* Static actions that can be clicked by the user.
|
|
260
|
-
*/
|
|
261
252
|
this.actions = [];
|
|
262
|
-
/**
|
|
263
|
-
* Position of the custom static actions in the picker's results dropdown.
|
|
264
|
-
* Can be set to `'top'` or `'bottom'`.
|
|
265
|
-
*/
|
|
266
253
|
this.actionPosition = 'bottom';
|
|
267
|
-
/**
|
|
268
|
-
* Scroll behavior of the custom static actions, when user scrolls
|
|
269
|
-
* in the picker's results dropdown. Can be set to `'scroll'` which means
|
|
270
|
-
* the action items will scroll together with the list, or `'sticky'` which
|
|
271
|
-
* retains their position at the top or bottom of the drop down while
|
|
272
|
-
* scrolling.
|
|
273
|
-
*/
|
|
274
254
|
this.actionScrollBehavior = 'sticky';
|
|
275
|
-
/**
|
|
276
|
-
* Whether badge icons should be used in the result list or not
|
|
277
|
-
*/
|
|
278
255
|
this.badgeIcons = true;
|
|
256
|
+
this.items = undefined;
|
|
279
257
|
this.textValue = '';
|
|
280
258
|
this.loading = false;
|
|
281
259
|
this.chips = [];
|
|
282
|
-
// Should NOT be decorated with State(), since this
|
|
283
|
-
// should not trigger a re-render by itself.
|
|
284
|
-
this.chipSetEditMode = false;
|
|
285
260
|
this.handleTextInput = this.handleTextInput.bind(this);
|
|
286
261
|
this.handleInputKeyDown = this.handleInputKeyDown.bind(this);
|
|
287
262
|
this.handleDropdownKeyDown = this.handleDropdownKeyDown.bind(this);
|
|
@@ -508,7 +483,7 @@ const Picker = class {
|
|
|
508
483
|
/**
|
|
509
484
|
* Change handler for the list
|
|
510
485
|
*
|
|
511
|
-
* @param {
|
|
486
|
+
* @param {LimelListCustomEvent<ListItem>} event event
|
|
512
487
|
* @returns {void}
|
|
513
488
|
*/
|
|
514
489
|
handleListChange(event) {
|
|
@@ -529,7 +504,7 @@ const Picker = class {
|
|
|
529
504
|
/**
|
|
530
505
|
* Change handler for the list
|
|
531
506
|
*
|
|
532
|
-
* @param {
|
|
507
|
+
* @param {LimelChipSetCustomEvent} event event
|
|
533
508
|
* @returns {void}
|
|
534
509
|
*/
|
|
535
510
|
handleActionListChange(event) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-287e25e0.js');
|
|
6
6
|
const randomString = require('./random-string-4c3b7f1c.js');
|
|
7
7
|
const keycodes = require('./keycodes-3949f425.js');
|
|
8
8
|
const zipObject = require('./zipObject-93a471fa.js');
|
|
@@ -49,10 +49,6 @@ const Popover = class {
|
|
|
49
49
|
constructor(hostRef) {
|
|
50
50
|
index.registerInstance(this, hostRef);
|
|
51
51
|
this.close = index.createEvent(this, "close", 7);
|
|
52
|
-
/**
|
|
53
|
-
* True if the content within the popover should be visible
|
|
54
|
-
*/
|
|
55
|
-
this.open = false;
|
|
56
52
|
this.handleGlobalKeyPress = (event) => {
|
|
57
53
|
if (event.key !== keycodes.ESCAPE) {
|
|
58
54
|
return;
|
|
@@ -61,6 +57,8 @@ const Popover = class {
|
|
|
61
57
|
event.preventDefault();
|
|
62
58
|
this.close.emit();
|
|
63
59
|
};
|
|
60
|
+
this.open = false;
|
|
61
|
+
this.openDirection = undefined;
|
|
64
62
|
this.portalId = randomString.createRandomString();
|
|
65
63
|
this.globalClickListener = this.globalClickListener.bind(this);
|
|
66
64
|
}
|
|
@@ -120,6 +118,7 @@ const popoverSurfaceCss = ":host(limel-popover-surface){isolation:isolate}.limel
|
|
|
120
118
|
const PopoverSurface = class {
|
|
121
119
|
constructor(hostRef) {
|
|
122
120
|
index.registerInstance(this, hostRef);
|
|
121
|
+
this.contentCollection = undefined;
|
|
123
122
|
}
|
|
124
123
|
componentDidLoad() {
|
|
125
124
|
this.appendElement();
|
|
@@ -146,11 +145,6 @@ const DEFAULT_MAX_LENGTH = 50;
|
|
|
146
145
|
const Tooltip = class {
|
|
147
146
|
constructor(hostRef) {
|
|
148
147
|
index.registerInstance(this, hostRef);
|
|
149
|
-
/**
|
|
150
|
-
* The maximum amount of characters before rendering 'label' and
|
|
151
|
-
* 'helperLabel' in two rows.
|
|
152
|
-
*/
|
|
153
|
-
this.maxlength = DEFAULT_MAX_LENGTH;
|
|
154
148
|
this.showTooltip = () => {
|
|
155
149
|
const tooltipDelay = 500;
|
|
156
150
|
this.showTooltipTimeoutHandle = window.setTimeout(() => {
|
|
@@ -161,6 +155,11 @@ const Tooltip = class {
|
|
|
161
155
|
clearTimeout(this.showTooltipTimeoutHandle);
|
|
162
156
|
this.open = false;
|
|
163
157
|
};
|
|
158
|
+
this.elementId = undefined;
|
|
159
|
+
this.label = undefined;
|
|
160
|
+
this.helperLabel = undefined;
|
|
161
|
+
this.maxlength = DEFAULT_MAX_LENGTH;
|
|
162
|
+
this.open = undefined;
|
|
164
163
|
this.portalId = randomString.createRandomString();
|
|
165
164
|
this.tooltipId = randomString.createRandomString();
|
|
166
165
|
}
|
|
@@ -195,14 +194,13 @@ const Tooltip = class {
|
|
|
195
194
|
owner === null || owner === void 0 ? void 0 : owner.removeEventListener('click', this.hideTooltip);
|
|
196
195
|
}
|
|
197
196
|
getOwnerElement() {
|
|
198
|
-
var _a;
|
|
199
197
|
let element = this.host;
|
|
200
198
|
do {
|
|
201
199
|
element = element.parentNode;
|
|
202
200
|
} while (element &&
|
|
203
201
|
element.nodeType !== Node.DOCUMENT_FRAGMENT_NODE &&
|
|
204
202
|
element.nodeType !== Node.DOCUMENT_NODE);
|
|
205
|
-
return
|
|
203
|
+
return element === null || element === void 0 ? void 0 : element.getElementById(this.elementId);
|
|
206
204
|
}
|
|
207
205
|
get host() { return index.getElement(this); }
|
|
208
206
|
};
|
|
@@ -213,6 +211,9 @@ const tooltipContentCss = ":host{animation:display-tooltip 0.2s ease;display:fle
|
|
|
213
211
|
const TooltipContent = class {
|
|
214
212
|
constructor(hostRef) {
|
|
215
213
|
index.registerInstance(this, hostRef);
|
|
214
|
+
this.label = undefined;
|
|
215
|
+
this.helperLabel = undefined;
|
|
216
|
+
this.maxlength = undefined;
|
|
216
217
|
}
|
|
217
218
|
render() {
|
|
218
219
|
let isLabelsTextLong = false;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-287e25e0.js');
|
|
6
6
|
|
|
7
7
|
var top = 'top';
|
|
8
8
|
var bottom = 'bottom';
|
|
@@ -164,38 +164,57 @@ var max = Math.max;
|
|
|
164
164
|
var min = Math.min;
|
|
165
165
|
var round = Math.round;
|
|
166
166
|
|
|
167
|
-
function
|
|
167
|
+
function getUAString() {
|
|
168
|
+
var uaData = navigator.userAgentData;
|
|
169
|
+
|
|
170
|
+
if (uaData != null && uaData.brands) {
|
|
171
|
+
return uaData.brands.map(function (item) {
|
|
172
|
+
return item.brand + "/" + item.version;
|
|
173
|
+
}).join(' ');
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return navigator.userAgent;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function isLayoutViewport() {
|
|
180
|
+
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
168
184
|
if (includeScale === void 0) {
|
|
169
185
|
includeScale = false;
|
|
170
186
|
}
|
|
171
187
|
|
|
172
|
-
|
|
188
|
+
if (isFixedStrategy === void 0) {
|
|
189
|
+
isFixedStrategy = false;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
var clientRect = element.getBoundingClientRect();
|
|
173
193
|
var scaleX = 1;
|
|
174
194
|
var scaleY = 1;
|
|
175
195
|
|
|
176
|
-
if (isHTMLElement(element)
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
// Fallback to 1 in case both values are `0`
|
|
180
|
-
|
|
181
|
-
if (offsetWidth > 0) {
|
|
182
|
-
scaleX = round(rect.width) / offsetWidth || 1;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
if (offsetHeight > 0) {
|
|
186
|
-
scaleY = round(rect.height) / offsetHeight || 1;
|
|
187
|
-
}
|
|
196
|
+
if (includeScale && isHTMLElement(element)) {
|
|
197
|
+
scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
|
|
198
|
+
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
188
199
|
}
|
|
189
200
|
|
|
201
|
+
var _ref = isElement(element) ? getWindow(element) : window,
|
|
202
|
+
visualViewport = _ref.visualViewport;
|
|
203
|
+
|
|
204
|
+
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
205
|
+
var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
206
|
+
var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
207
|
+
var width = clientRect.width / scaleX;
|
|
208
|
+
var height = clientRect.height / scaleY;
|
|
190
209
|
return {
|
|
191
|
-
width:
|
|
192
|
-
height:
|
|
193
|
-
top:
|
|
194
|
-
right:
|
|
195
|
-
bottom:
|
|
196
|
-
left:
|
|
197
|
-
x:
|
|
198
|
-
y:
|
|
210
|
+
width: width,
|
|
211
|
+
height: height,
|
|
212
|
+
top: y,
|
|
213
|
+
right: x + width,
|
|
214
|
+
bottom: y + height,
|
|
215
|
+
left: x,
|
|
216
|
+
x: x,
|
|
217
|
+
y: y
|
|
199
218
|
};
|
|
200
219
|
}
|
|
201
220
|
|
|
@@ -290,8 +309,8 @@ function getTrueOffsetParent(element) {
|
|
|
290
309
|
|
|
291
310
|
|
|
292
311
|
function getContainingBlock(element) {
|
|
293
|
-
var isFirefox =
|
|
294
|
-
var isIE =
|
|
312
|
+
var isFirefox = /firefox/i.test(getUAString());
|
|
313
|
+
var isIE = /Trident/i.test(getUAString());
|
|
295
314
|
|
|
296
315
|
if (isIE && isHTMLElement(element)) {
|
|
297
316
|
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
@@ -712,31 +731,21 @@ function getWindowScrollBarX(element) {
|
|
|
712
731
|
return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
|
|
713
732
|
}
|
|
714
733
|
|
|
715
|
-
function getViewportRect(element) {
|
|
734
|
+
function getViewportRect(element, strategy) {
|
|
716
735
|
var win = getWindow(element);
|
|
717
736
|
var html = getDocumentElement(element);
|
|
718
737
|
var visualViewport = win.visualViewport;
|
|
719
738
|
var width = html.clientWidth;
|
|
720
739
|
var height = html.clientHeight;
|
|
721
740
|
var x = 0;
|
|
722
|
-
var y = 0;
|
|
723
|
-
// can be obscured underneath it.
|
|
724
|
-
// Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
|
|
725
|
-
// if it isn't open, so if this isn't available, the popper will be detected
|
|
726
|
-
// to overflow the bottom of the screen too early.
|
|
741
|
+
var y = 0;
|
|
727
742
|
|
|
728
743
|
if (visualViewport) {
|
|
729
744
|
width = visualViewport.width;
|
|
730
|
-
height = visualViewport.height;
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
// Feature detection fails in mobile emulation mode in Chrome.
|
|
735
|
-
// Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
|
|
736
|
-
// 0.001
|
|
737
|
-
// Fallback here: "Not Safari" userAgent
|
|
738
|
-
|
|
739
|
-
if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
|
|
745
|
+
height = visualViewport.height;
|
|
746
|
+
var layoutViewport = isLayoutViewport();
|
|
747
|
+
|
|
748
|
+
if (layoutViewport || !layoutViewport && strategy === 'fixed') {
|
|
740
749
|
x = visualViewport.offsetLeft;
|
|
741
750
|
y = visualViewport.offsetTop;
|
|
742
751
|
}
|
|
@@ -830,8 +839,8 @@ function rectToClientRect(rect) {
|
|
|
830
839
|
});
|
|
831
840
|
}
|
|
832
841
|
|
|
833
|
-
function getInnerBoundingClientRect(element) {
|
|
834
|
-
var rect = getBoundingClientRect(element);
|
|
842
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
843
|
+
var rect = getBoundingClientRect(element, false, strategy === 'fixed');
|
|
835
844
|
rect.top = rect.top + element.clientTop;
|
|
836
845
|
rect.left = rect.left + element.clientLeft;
|
|
837
846
|
rect.bottom = rect.top + element.clientHeight;
|
|
@@ -843,8 +852,8 @@ function getInnerBoundingClientRect(element) {
|
|
|
843
852
|
return rect;
|
|
844
853
|
}
|
|
845
854
|
|
|
846
|
-
function getClientRectFromMixedType(element, clippingParent) {
|
|
847
|
-
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
855
|
+
function getClientRectFromMixedType(element, clippingParent, strategy) {
|
|
856
|
+
return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
848
857
|
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
849
858
|
// clipping (or hiding) overflowing elements with a position different from
|
|
850
859
|
// `initial`
|
|
@@ -867,18 +876,18 @@ function getClippingParents(element) {
|
|
|
867
876
|
// clipping parents
|
|
868
877
|
|
|
869
878
|
|
|
870
|
-
function getClippingRect(element, boundary, rootBoundary) {
|
|
879
|
+
function getClippingRect(element, boundary, rootBoundary, strategy) {
|
|
871
880
|
var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
|
|
872
881
|
var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
|
|
873
882
|
var firstClippingParent = clippingParents[0];
|
|
874
883
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
875
|
-
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
884
|
+
var rect = getClientRectFromMixedType(element, clippingParent, strategy);
|
|
876
885
|
accRect.top = max(rect.top, accRect.top);
|
|
877
886
|
accRect.right = min(rect.right, accRect.right);
|
|
878
887
|
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
879
888
|
accRect.left = max(rect.left, accRect.left);
|
|
880
889
|
return accRect;
|
|
881
|
-
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
890
|
+
}, getClientRectFromMixedType(element, firstClippingParent, strategy));
|
|
882
891
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
883
892
|
clippingRect.height = clippingRect.bottom - clippingRect.top;
|
|
884
893
|
clippingRect.x = clippingRect.left;
|
|
@@ -959,6 +968,8 @@ function detectOverflow(state, options) {
|
|
|
959
968
|
var _options = options,
|
|
960
969
|
_options$placement = _options.placement,
|
|
961
970
|
placement = _options$placement === void 0 ? state.placement : _options$placement,
|
|
971
|
+
_options$strategy = _options.strategy,
|
|
972
|
+
strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
|
|
962
973
|
_options$boundary = _options.boundary,
|
|
963
974
|
boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
|
|
964
975
|
_options$rootBoundary = _options.rootBoundary,
|
|
@@ -973,7 +984,7 @@ function detectOverflow(state, options) {
|
|
|
973
984
|
var altContext = elementContext === popper ? reference : popper;
|
|
974
985
|
var popperRect = state.rects.popper;
|
|
975
986
|
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
976
|
-
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
|
|
987
|
+
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
|
|
977
988
|
var referenceClientRect = getBoundingClientRect(state.elements.reference);
|
|
978
989
|
var popperOffsets = computeOffsets({
|
|
979
990
|
reference: referenceClientRect,
|
|
@@ -1487,7 +1498,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
1487
1498
|
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1488
1499
|
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
1489
1500
|
var documentElement = getDocumentElement(offsetParent);
|
|
1490
|
-
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
1501
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
|
|
1491
1502
|
var scroll = {
|
|
1492
1503
|
scrollLeft: 0,
|
|
1493
1504
|
scrollTop: 0
|
|
@@ -1796,35 +1807,14 @@ const portalCss = ":host(limel-portal){display:block;position:absolute;top:0;bot
|
|
|
1796
1807
|
const Portal = class {
|
|
1797
1808
|
constructor(hostRef) {
|
|
1798
1809
|
index.registerInstance(this, hostRef);
|
|
1799
|
-
|
|
1800
|
-
* Decides which direction the portal content should open.
|
|
1801
|
-
*/
|
|
1810
|
+
this.loaded = false;
|
|
1802
1811
|
this.openDirection = 'bottom';
|
|
1803
|
-
/**
|
|
1804
|
-
* Position of the content.
|
|
1805
|
-
*/
|
|
1806
1812
|
this.position = 'absolute';
|
|
1807
|
-
|
|
1808
|
-
* Dynamic styling that can be applied to the container holding the content.
|
|
1809
|
-
*/
|
|
1813
|
+
this.containerId = undefined;
|
|
1810
1814
|
this.containerStyle = {};
|
|
1811
|
-
/**
|
|
1812
|
-
* Parent element to move the content to.
|
|
1813
|
-
*/
|
|
1814
1815
|
this.parent = document.body;
|
|
1815
|
-
/**
|
|
1816
|
-
* Used to make a dropdown have the same width as the trigger, for example
|
|
1817
|
-
* in `limel-picker`.
|
|
1818
|
-
*/
|
|
1819
1816
|
this.inheritParentWidth = false;
|
|
1820
|
-
/**
|
|
1821
|
-
* True if the content within the portal should be visible.
|
|
1822
|
-
*
|
|
1823
|
-
* If the content is from within a dialog for instance, this can be set to
|
|
1824
|
-
* true from false when the dialog opens to position the content properly.
|
|
1825
|
-
*/
|
|
1826
1817
|
this.visible = false;
|
|
1827
|
-
this.loaded = false;
|
|
1828
1818
|
this.parents = new WeakMap();
|
|
1829
1819
|
}
|
|
1830
1820
|
onVisible() {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-287e25e0.js');
|
|
6
6
|
|
|
7
7
|
const progressFlowItemCss = ".flow-item{--step-background:var(\n --progress-flow-step-background-color,\n rgb(var(--contrast-600))\n );--step-background--selected:var(\n --progress-flow-step-background-color--selected,\n var(--mdc-theme-primary)\n );--step-background--passed:var(\n --progress-flow-step-background-color--passed,\n var(--step-background--selected)\n );--step-text:var(\n --progress-flow-step-text-color,\n rgb(var(--contrast-1200))\n );--step-text--selected:var(\n --progress-flow-step-text-color--selected,\n var(--mdc-theme-on-primary)\n );--step-text--passed:var(\n --progress-flow-step-text-color--passed,\n var(--step-text--selected)\n );--step-divider-color:var(\n --progress-flow-step-divider-color,\n rgb(var(--contrast-100))\n );position:relative;width:100%;display:flex;flex-direction:column;align-items:stretch}.flow-item:not(.off-progress-item,.last) .divider:after{content:\"\"}.flow-item.off-progress-item{padding-left:0.5rem}.flow-item.first-off-progress-item{padding-left:1rem}.step{transition:background-color 0.2s ease, box-shadow 0.2s ease;display:flex;justify-content:center;align-items:center;position:relative;width:100%;height:var(--step-height);border:none;font-size:0.875rem}.step.disabled{cursor:not-allowed}.step.disabled.readonly{opacity:1;cursor:default}.step:focus{outline:none}.step:focus-visible{box-shadow:var(--shadow-depth-8-focused)}.flow-item:not(.off-progress-item,.first) .step{padding-left:calc(var(--step-height) / 2)}.flow-item:not(.selected) .step:not(.disabled){cursor:pointer}.flow-item:not(.selected) .step:not(.disabled):hover{box-shadow:var(--button-shadow-normal)}.flow-item:not(.selected) .step:not(.disabled):active{box-shadow:var(--button-shadow-pressed)}.off-progress-item .step{border-radius:0.25rem;padding:0 0.75rem}.off-progress-item .step .icon{margin-left:0}.flow-item.first .step{border-top-left-radius:var(--step-height);border-bottom-left-radius:var(--step-height);padding-left:1.25rem}.flow-item.last .step{border-top-right-radius:var(--step-height);border-bottom-right-radius:var(--step-height);padding-right:1.25rem}.divider{display:flex;align-items:center;justify-content:center;width:var(--step-height);height:var(--step-height);position:absolute;z-index:1;right:calc(var(--step-height) / 2 * -1);overflow:hidden}.divider:after{position:absolute;display:block;box-sizing:border-box;transition:background-color 0.2s ease;width:100%;height:100%;right:calc(var(--step-height) / 5);transform:rotate(45deg);border-style:solid;border-width:0.125rem 0.125rem 0 0;border-radius:0 0.5rem 0 0;border-color:var(--step-divider-color)}.flow-item.last .divider{width:0}.text,.secondary-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:var(--max-text-width);z-index:2}.secondary-text{font-size:0.75rem;margin:auto;padding-left:calc(var(--step-height) / 2)}.icon{margin:0 0.5rem 0 0.25rem;z-index:2}.step:before,.step:after{pointer-events:none;box-sizing:border-box;z-index:2;position:absolute;right:var(--selected-indicator-right);border-radius:50%}.last .step:before,.last .step:after{right:0.5rem}.flow-item:not(.off-progress-item) .step.selected:before,.flow-item:not(.off-progress-item) .step.selected:after{content:\"\";width:0.375rem;height:0.375rem}.flow-item:not(.off-progress-item) .step.selected:before{background-color:var(--step-divider-color);opacity:0.7}.flow-item:not(.off-progress-item) .step.disabled:before,.flow-item:not(.off-progress-item) .step.disabled:after{width:0.75rem;height:0.75rem}.flow-item:not(.off-progress-item) .step.disabled:after{content:\"\";background-image:url(\"data:image/svg+xml;charset=utf-8, <svg viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg' xml:space='preserve' fill-rule='evenodd' clip-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2'><path fill='rgb(127,127,127)' d='M32.18 13.711c0-2.207-1.793-4-4.002-4H11.821c-2.208 0-4 1.793-4 4V28.29a4 4 0 0 0 4 4h16.357a4.002 4.002 0 0 0 4.001-4V13.711Z'/><path fill='rgb(127,127,127)' d='M11.211 9.758V7.673A7.489 7.489 0 0 1 18.696.188h2.608a7.489 7.489 0 0 1 7.485 7.485v2.085h-3V7.673a4.488 4.488 0 0 0-4.485-4.485h-2.608a4.488 4.488 0 0 0-4.485 4.485v2.085h-3Z'/></svg>\");background-size:90%;background-repeat:no-repeat;background-position:center;mix-blend-mode:multiply}.step{color:var(--step-text);background-color:var(--step-background)}.step .icon{color:var(--progress-flow-icon-color--inactive, var(--step-text))}.flow-item.selected .step{color:var(--step-text--selected);background-color:var(--step-background--selected)}.flow-item.selected .step .divider:after{background-color:var(--step-background--selected)}.flow-item.selected .step .icon{color:var(--step-text--selected)}.flow-item.passed .step{color:var(--step-text--passed);background-color:var(--step-background--passed)}.flow-item.passed .step .divider:after{background-color:var(--step-background--passed)}.flow-item.passed .step .icon{color:var(--step-text--passed)}.divider:after{border-color:var(--step-divider-color);background-color:var(--step-background)}";
|
|
8
8
|
|
|
@@ -10,21 +10,12 @@ const ProgressFlowItem = class {
|
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
this.interact = index.createEvent(this, "interact", 7);
|
|
13
|
-
/**
|
|
14
|
-
* The flow item that should be rendered
|
|
15
|
-
*/
|
|
16
|
-
this.item = null;
|
|
17
|
-
/**
|
|
18
|
-
* True if the flow item should be disabled
|
|
19
|
-
*/
|
|
20
|
-
this.disabled = false;
|
|
21
|
-
/**
|
|
22
|
-
* True if the flow item should be readonly
|
|
23
|
-
*/
|
|
24
|
-
this.readonly = false;
|
|
25
13
|
this.handleClick = () => {
|
|
26
14
|
this.interact.emit();
|
|
27
15
|
};
|
|
16
|
+
this.item = null;
|
|
17
|
+
this.disabled = false;
|
|
18
|
+
this.readonly = false;
|
|
28
19
|
}
|
|
29
20
|
render() {
|
|
30
21
|
var _a;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-287e25e0.js');
|
|
6
6
|
|
|
7
7
|
const progressFlowCss = ":host{--step-height:2.5rem;--selected-indicator-right:-0.5rem;--max-text-width:10rem;isolation:isolate;box-sizing:border-box;width:100%;display:flex;flex-direction:row;align-items:flex-start;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding:0.25rem}:host::-webkit-scrollbar{display:none}:host(.is-narrow){--step-height:1.5rem;--selected-indicator-right:0}";
|
|
8
8
|
|
|
@@ -10,25 +10,6 @@ const ProgressFlow = class {
|
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
this.change = index.createEvent(this, "change", 7);
|
|
13
|
-
/**
|
|
14
|
-
* What flow items to render
|
|
15
|
-
*/
|
|
16
|
-
this.flowItems = [];
|
|
17
|
-
/**
|
|
18
|
-
* Set to `true` to disable the progress flow.
|
|
19
|
-
* Use `disabled` to indicate that the component can normally be interacted
|
|
20
|
-
* with, but is currently disabled. This tells the user that if certain
|
|
21
|
-
* requirements are met, the field may become enabled again.
|
|
22
|
-
*/
|
|
23
|
-
this.disabled = false;
|
|
24
|
-
/**
|
|
25
|
-
* Disables the progress flow when `true`.
|
|
26
|
-
* This does not visualize the component that much differently.
|
|
27
|
-
* But since the component does not provide any feedback that users can
|
|
28
|
-
* interact with the component, it makes it perfect for illustrative and
|
|
29
|
-
* informative porpuses.
|
|
30
|
-
*/
|
|
31
|
-
this.readonly = false;
|
|
32
13
|
this.renderRegularFlowItem = (item, index$1, array) => {
|
|
33
14
|
return (index.h("limel-progress-flow-item", { class: {
|
|
34
15
|
'flow-item': true,
|
|
@@ -52,6 +33,9 @@ const ProgressFlow = class {
|
|
|
52
33
|
this.change.emit(flowItem);
|
|
53
34
|
}
|
|
54
35
|
};
|
|
36
|
+
this.flowItems = [];
|
|
37
|
+
this.disabled = false;
|
|
38
|
+
this.readonly = false;
|
|
55
39
|
}
|
|
56
40
|
componentDidRender() {
|
|
57
41
|
this.scrollToSelectedItem();
|