@limetech/lime-elements 36.0.0-next.9 → 36.1.0-dev.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/dist/cjs/{checkbox.template-b6c6562c.js → checkbox.template-ac867c17.js} +1 -1
- package/dist/cjs/{dateFormatter-05d80b12.js → dateFormatter-d7a8d40d.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 +24 -3
- 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 +40 -63
- package/dist/cjs/limel-circular-progress.cjs.entry.js +10 -15
- package/dist/cjs/limel-code-editor.cjs.entry.js +1693 -86
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +5 -6
- 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 +18 -36
- package/dist/cjs/limel-dialog.cjs.entry.js +3 -11
- package/dist/cjs/limel-dock-button.cjs.entry.js +30 -14
- package/dist/cjs/limel-dock.cjs.entry.js +12 -47
- package/dist/cjs/limel-file.cjs.entry.js +10 -24
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +151 -50
- package/dist/cjs/limel-flex-container.cjs.entry.js +1 -13
- package/dist/cjs/limel-form.cjs.entry.js +327 -328
- 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-input-field.cjs.entry.js +40 -66
- package/dist/cjs/limel-linear-progress.cjs.entry.js +1 -7
- package/dist/cjs/limel-list_2.cjs.entry.js +9 -18
- package/dist/cjs/limel-menu-list.cjs.entry.js +8 -16
- package/dist/cjs/limel-picker.cjs.entry.js +14 -39
- package/dist/cjs/limel-popover_4.cjs.entry.js +14 -13
- package/dist/cjs/limel-portal.cjs.entry.js +63 -73
- package/dist/cjs/limel-progress-flow-item.cjs.entry.js +5 -14
- package/dist/cjs/limel-progress-flow.cjs.entry.js +4 -20
- package/dist/cjs/limel-select.cjs.entry.js +12 -30
- 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 +27 -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 +33 -33
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{moment-5cfac5cd.js → moment-d1e35cdc.js} +2 -2
- package/dist/cjs/{translations-5a8d7f6c.js → translations-ca7279bc.js} +6 -0
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/badge/badge.css +13 -0
- package/dist/collection/components/badge/badge.js +60 -28
- package/dist/collection/components/banner/banner.js +88 -83
- package/dist/collection/components/button/button.css +15 -8
- 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.css +10 -2
- package/dist/collection/components/chip-set/chip-set.js +500 -534
- 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.css +153 -1
- package/dist/collection/components/code-editor/code-editor.js +219 -135
- package/dist/collection/components/collapsible-section/collapsible-section.css +8 -7
- 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 +255 -245
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +595 -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.js +134 -142
- package/dist/collection/components/dock/dock-button/dock-button.css +15 -9
- package/dist/collection/components/dock/dock-button/dock-button.js +158 -124
- package/dist/collection/components/dock/dock.css +7 -3
- package/dist/collection/components/dock/dock.js +207 -205
- 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/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/input-field/input-field.css +9 -8
- package/dist/collection/components/input-field/input-field.js +494 -510
- 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.js +167 -164
- package/dist/collection/components/list/radio-button/radio-button.template.js +2 -8
- package/dist/collection/components/menu/menu.js +185 -208
- package/dist/collection/components/menu-list/menu-list-renderer.js +2 -9
- package/dist/collection/components/menu-list/menu-list.js +150 -167
- 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.css +9 -4
- 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.css +21 -8
- 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 +10 -11
- package/dist/collection/components/select/select.js +206 -211
- package/dist/collection/components/select/select.template.js +10 -25
- package/dist/collection/components/shortcut/shortcut.css +91 -0
- package/dist/collection/components/shortcut/shortcut.js +194 -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 +75 -0
- package/dist/collection/components/split-button/split-button.js +168 -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/columns.js +1 -0
- package/dist/collection/components/table/layout.js +8 -0
- package/dist/collection/components/table/table.css +89 -61
- package/dist/collection/components/table/table.js +453 -432
- package/dist/collection/components/tooltip/tooltip-content.js +70 -61
- package/dist/collection/components/tooltip/tooltip.js +96 -91
- package/dist/collection/icons/angle_left.svg +593 -0
- package/dist/collection/icons/angle_right.svg +593 -0
- package/dist/collection/icons/external_link.svg +593 -0
- package/dist/collection/icons/high_importance.svg +593 -0
- package/dist/collection/icons/unit-test.svg +593 -0
- package/dist/collection/style/internal/codemirror-tooltip.scss +19 -0
- package/dist/collection/style/internal/z-index.scss +0 -7
- package/dist/collection/style/mixins.scss +11 -0
- 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/{dateFormatter-2cad0292.js → dateFormatter-784c3334.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 +24 -3
- 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 +40 -63
- package/dist/esm/limel-circular-progress.entry.js +10 -15
- package/dist/esm/limel-code-editor.entry.js +1693 -86
- package/dist/esm/limel-collapsible-section.entry.js +5 -6
- 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 +18 -36
- package/dist/esm/limel-dialog.entry.js +3 -11
- package/dist/esm/limel-dock-button.entry.js +30 -14
- package/dist/esm/limel-dock.entry.js +12 -47
- package/dist/esm/limel-file.entry.js +10 -24
- package/dist/esm/limel-flatpickr-adapter.entry.js +151 -50
- package/dist/esm/limel-flex-container.entry.js +1 -13
- package/dist/esm/limel-form.entry.js +327 -328
- 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-input-field.entry.js +40 -66
- package/dist/esm/limel-linear-progress.entry.js +1 -7
- package/dist/esm/limel-list_2.entry.js +9 -18
- package/dist/esm/limel-menu-list.entry.js +8 -16
- package/dist/esm/limel-picker.entry.js +14 -39
- package/dist/esm/limel-popover_4.entry.js +14 -13
- package/dist/esm/limel-portal.entry.js +63 -73
- package/dist/esm/limel-progress-flow-item.entry.js +5 -14
- package/dist/esm/limel-progress-flow.entry.js +4 -20
- package/dist/esm/limel-select.entry.js +12 -30
- 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 +23 -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 +33 -33
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{moment-367e51c5.js → moment-faa8a4a8.js} +2 -2
- 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.css +1 -1
- 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-71efe2ca.entry.js → p-0dbde06f.entry.js} +1 -1
- package/dist/lime-elements/p-12a7453b.entry.js +73 -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-246862ec.js +1 -0
- package/dist/lime-elements/p-28dffd9e.entry.js +1 -0
- package/dist/lime-elements/p-334b5f82.entry.js +37 -0
- package/dist/lime-elements/p-36a3b897.entry.js +1 -0
- package/dist/lime-elements/p-4b426b7e.entry.js +11 -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-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-42b67933.entry.js → p-600464a9.entry.js} +1 -1
- 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-d76f896d.js → p-73df4d83.js} +1 -1
- package/dist/lime-elements/p-744c21f8.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-8715eac0.entry.js +1 -0
- 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-945afca2.js +3 -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-9f19e0c1.entry.js +1 -0
- package/dist/lime-elements/p-ace4e596.entry.js +1 -0
- package/dist/lime-elements/p-cad7cda1.entry.js +16 -0
- package/dist/lime-elements/p-cfaa685f.entry.js +1 -0
- package/dist/lime-elements/{p-94899019.entry.js → p-d1187867.entry.js} +1 -1
- package/dist/lime-elements/{p-aa66620a.entry.js → p-d3ebc657.entry.js} +2 -2
- 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-dcd2a664.entry.js +16 -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-e7bb664f.entry.js +1 -0
- package/dist/lime-elements/p-ef04b849.entry.js +82 -0
- package/dist/lime-elements/style/internal/codemirror-tooltip.scss +19 -0
- package/dist/lime-elements/style/internal/z-index.scss +0 -7
- package/dist/lime-elements/style/mixins.scss +11 -0
- package/dist/loader/package.json +1 -0
- package/dist/types/components/badge/badge.d.ts +12 -4
- package/dist/types/components/chip-set/chip-set.d.ts +3 -2
- package/dist/types/components/circular-progress/circular-progress.d.ts +5 -0
- package/dist/types/components/code-editor/code-editor.d.ts +14 -0
- package/dist/types/components/date-picker/date-picker.d.ts +4 -0
- package/dist/types/components/dock/dock-button/dock-button.d.ts +21 -5
- package/dist/types/components/dock/dock.d.ts +11 -3
- package/dist/types/components/input-field/input-field.d.ts +6 -0
- package/dist/types/components/menu/menu.d.ts +1 -2
- package/dist/types/components/menu-list/menu-list.d.ts +2 -7
- package/dist/types/components/picker/picker.d.ts +2 -2
- package/dist/types/components/shortcut/shortcut.d.ts +57 -0
- package/dist/types/components/split-button/split-button.d.ts +45 -0
- package/dist/types/components/tab-bar/tab.types.d.ts +1 -1
- package/dist/types/components/table/layout.d.ts +2 -0
- package/dist/types/components/table/table.d.ts +16 -1
- package/dist/types/components/table/table.types.d.ts +4 -0
- package/dist/types/components.d.ts +390 -80
- 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 +27 -26
- package/dist/cjs/limel-menu.cjs.entry.js +0 -148
- package/dist/esm/limel-menu.entry.js +0 -144
- 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-1a2ffe75.entry.js +0 -82
- package/dist/lime-elements/p-1dfccbc5.entry.js +0 -1
- package/dist/lime-elements/p-1e59114e.entry.js +0 -1
- package/dist/lime-elements/p-2639edf9.entry.js +0 -73
- package/dist/lime-elements/p-3af5f9ad.js +0 -3
- package/dist/lime-elements/p-3bf54a4c.js +0 -1
- package/dist/lime-elements/p-53e01330.entry.js +0 -1
- package/dist/lime-elements/p-5ad60e14.entry.js +0 -126
- package/dist/lime-elements/p-63e25a0a.entry.js +0 -1
- package/dist/lime-elements/p-64f068a8.entry.js +0 -1
- package/dist/lime-elements/p-6884b012.entry.js +0 -1
- package/dist/lime-elements/p-6966b5df.entry.js +0 -1
- package/dist/lime-elements/p-6b1bc80f.entry.js +0 -1
- package/dist/lime-elements/p-722d32e0.entry.js +0 -1
- package/dist/lime-elements/p-75152d89.entry.js +0 -1
- package/dist/lime-elements/p-7e571ec6.entry.js +0 -11
- package/dist/lime-elements/p-7ee4b825.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-97d6c4a6.entry.js +0 -1
- 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-af0ec482.entry.js +0 -16
- package/dist/lime-elements/p-b0046fcd.entry.js +0 -1
- package/dist/lime-elements/p-b95e80c9.entry.js +0 -1
- package/dist/lime-elements/p-bd098a11.entry.js +0 -1
- package/dist/lime-elements/p-d1ee4501.entry.js +0 -37
- 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-f0c9dadd.entry.js +0 -1
- package/dist/lime-elements/p-f0e872b6.entry.js +0 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MDCChipSet, } from '@material/chips/deprecated';
|
|
2
2
|
import { MDCTextField } from '@material/textfield';
|
|
3
|
-
import {
|
|
3
|
+
import { h, } from '@stencil/core';
|
|
4
4
|
import { handleKeyboardEvent } from './chip-set-input-helpers';
|
|
5
5
|
import translate from '../../global/translations';
|
|
6
6
|
import { getHref, getTarget } from '../../util/link-helper';
|
|
@@ -19,56 +19,6 @@ const INPUT_FIELD_TABINDEX = 1;
|
|
|
19
19
|
*/
|
|
20
20
|
export class ChipSet {
|
|
21
21
|
constructor() {
|
|
22
|
-
/**
|
|
23
|
-
* List of chips for the set
|
|
24
|
-
*/
|
|
25
|
-
this.value = [];
|
|
26
|
-
/**
|
|
27
|
-
* True if the chip set should be disabled
|
|
28
|
-
*/
|
|
29
|
-
this.disabled = false;
|
|
30
|
-
/**
|
|
31
|
-
* For chip-sets of type `input`, set to `true` to disable adding and
|
|
32
|
-
* removing chips, but allow interaction with existing chips in the set.
|
|
33
|
-
* For any other types, setting either `readonly` or `disabled` disables
|
|
34
|
-
* the chip-set.
|
|
35
|
-
*/
|
|
36
|
-
this.readonly = false;
|
|
37
|
-
/**
|
|
38
|
-
* For chip-sets of type `input`. Value to use for the `type` attribute on the
|
|
39
|
-
* input field inside the chip-set.
|
|
40
|
-
*/
|
|
41
|
-
this.inputType = 'text';
|
|
42
|
-
/**
|
|
43
|
-
* True if the control requires a value
|
|
44
|
-
*/
|
|
45
|
-
this.required = false;
|
|
46
|
-
/**
|
|
47
|
-
* Whether the input field should be emptied when the chip-set loses focus.
|
|
48
|
-
*/
|
|
49
|
-
this.emptyInputOnBlur = true;
|
|
50
|
-
/**
|
|
51
|
-
* Whether the "Clear all" buttons should be shown
|
|
52
|
-
*/
|
|
53
|
-
this.clearAllButton = true;
|
|
54
|
-
/**
|
|
55
|
-
* For chip-sets of type `input`. When the value is null, no leading icon is used.
|
|
56
|
-
* Leading icon to show to the far left in the text field
|
|
57
|
-
*/
|
|
58
|
-
this.leadingIcon = null;
|
|
59
|
-
/**
|
|
60
|
-
* For chip-set of type `input`. Sets delimiters between chips.
|
|
61
|
-
*/
|
|
62
|
-
this.delimiter = null;
|
|
63
|
-
/**
|
|
64
|
-
* Defines the language for translations.
|
|
65
|
-
* Will translate the translatable strings on the components. For example, the clear all chips label.
|
|
66
|
-
*/
|
|
67
|
-
this.language = 'en';
|
|
68
|
-
this.editMode = false;
|
|
69
|
-
this.textValue = '';
|
|
70
|
-
this.blurred = false;
|
|
71
|
-
this.inputChipIndexSelected = null;
|
|
72
22
|
this.handleKeyDown = handleKeyboardEvent;
|
|
73
23
|
this.dropZoneTip = () => {
|
|
74
24
|
return translate.get('file.drag-and-drop-tips', this.language);
|
|
@@ -98,6 +48,25 @@ export class ChipSet {
|
|
|
98
48
|
this.removeChipLabel = () => {
|
|
99
49
|
return translate.get('chip-set.remove-chip', this.language);
|
|
100
50
|
};
|
|
51
|
+
this.value = [];
|
|
52
|
+
this.type = undefined;
|
|
53
|
+
this.label = undefined;
|
|
54
|
+
this.helperText = undefined;
|
|
55
|
+
this.disabled = false;
|
|
56
|
+
this.readonly = false;
|
|
57
|
+
this.inputType = 'text';
|
|
58
|
+
this.maxItems = undefined;
|
|
59
|
+
this.required = false;
|
|
60
|
+
this.searchLabel = undefined;
|
|
61
|
+
this.emptyInputOnBlur = true;
|
|
62
|
+
this.clearAllButton = true;
|
|
63
|
+
this.leadingIcon = null;
|
|
64
|
+
this.delimiter = null;
|
|
65
|
+
this.language = 'en';
|
|
66
|
+
this.editMode = false;
|
|
67
|
+
this.textValue = '';
|
|
68
|
+
this.blurred = false;
|
|
69
|
+
this.inputChipIndexSelected = null;
|
|
101
70
|
this.renderChip = this.renderChip.bind(this);
|
|
102
71
|
this.renderInputChip = this.renderInputChip.bind(this);
|
|
103
72
|
this.isFull = this.isFull.bind(this);
|
|
@@ -185,10 +154,7 @@ export class ChipSet {
|
|
|
185
154
|
if (chipSetLabel) {
|
|
186
155
|
classes['chip-set--with-label'] = true;
|
|
187
156
|
}
|
|
188
|
-
return (h("div", { class: classes, role: "grid" },
|
|
189
|
-
chipSetLabel,
|
|
190
|
-
this.value.map(this.renderChip),
|
|
191
|
-
this.renderHelperLine()));
|
|
157
|
+
return (h("div", { class: classes, role: "grid" }, chipSetLabel, this.value.map(this.renderChip), this.renderHelperLine()));
|
|
192
158
|
}
|
|
193
159
|
handleChangeChips() {
|
|
194
160
|
this.syncEmptyInput();
|
|
@@ -226,35 +192,34 @@ export class ChipSet {
|
|
|
226
192
|
'has-chips mdc-text-field--label-floating': this.value.length !== 0,
|
|
227
193
|
'has-leading-icon': this.leadingIcon !== null,
|
|
228
194
|
'has-clear-all-button': this.clearAllButton,
|
|
229
|
-
}, onClick: this.handleTextFieldFocus },
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
'mdc-text-field--required': this.required,
|
|
242
|
-
'lime-notched-outline--notched': !!(this.value.length || this.editMode),
|
|
243
|
-
}, "dropzone-tip": this.dropZoneTip() },
|
|
244
|
-
h("div", { class: "mdc-notched-outline__leading" }),
|
|
245
|
-
h("div", { class: "mdc-notched-outline__notch" },
|
|
246
|
-
h("label", { class: {
|
|
247
|
-
'mdc-floating-label': true,
|
|
248
|
-
'mdc-text-field--disabled': this.readonly || this.disabled,
|
|
249
|
-
'mdc-floating-label--required': this.required,
|
|
250
|
-
'lime-floating-label--float-above': !!(this.value.length || this.editMode),
|
|
251
|
-
}, htmlFor: "input-element" }, this.label)),
|
|
252
|
-
h("div", { class: "mdc-notched-outline__trailing" })),
|
|
253
|
-
this.renderLeadingIcon(),
|
|
254
|
-
this.renderClearAllChipsButton()),
|
|
195
|
+
}, onClick: this.handleTextFieldFocus }, this.value.map(this.renderInputChip), h("input", { tabIndex: INPUT_FIELD_TABINDEX, type: this.inputType, id: "input-element", disabled: this.readonly || this.disabled, class: {
|
|
196
|
+
'mdc-text-field__input': true,
|
|
197
|
+
hidden: this.inputHidden(),
|
|
198
|
+
}, value: this.textValue, onBlur: this.handleInputBlur, onFocus: this.handleTextFieldFocus, onKeyDown: this.handleKeyDown, onInput: this.handleTextInput,
|
|
199
|
+
// Some browsers emit a change event on input elements, we need to stop
|
|
200
|
+
// that event from propagating since we are emitting our own change event
|
|
201
|
+
onChange: this.inputFieldOnChange, placeholder: this.isFull() ? '' : this.searchLabel, readonly: this.isFull() }), h("div", { class: {
|
|
202
|
+
'mdc-notched-outline': true,
|
|
203
|
+
'mdc-notched-outline--upgraded': true,
|
|
204
|
+
'mdc-text-field--required': this.required,
|
|
205
|
+
'lime-notched-outline--notched': !!(this.value.length || this.editMode),
|
|
206
|
+
}, "dropzone-tip": this.dropZoneTip() }, h("div", { class: "mdc-notched-outline__leading" }), this.renderLabel(), h("div", { class: "mdc-notched-outline__trailing" })), this.renderLeadingIcon(), this.renderClearAllChipsButton()),
|
|
255
207
|
this.renderHelperLine(),
|
|
256
208
|
];
|
|
257
209
|
}
|
|
210
|
+
renderLabel() {
|
|
211
|
+
const labelClassList = {
|
|
212
|
+
'mdc-floating-label': true,
|
|
213
|
+
'mdc-text-field--no-label': !this.label,
|
|
214
|
+
'mdc-text-field--disabled': this.readonly || this.disabled,
|
|
215
|
+
'mdc-floating-label--required': this.required,
|
|
216
|
+
'lime-floating-label--float-above': !!(this.value.length || this.editMode),
|
|
217
|
+
};
|
|
218
|
+
if (!this.label) {
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
return (h("div", { class: "mdc-notched-outline__notch" }, h("label", { class: labelClassList, htmlFor: "input-element" }, this.label)));
|
|
222
|
+
}
|
|
258
223
|
isFull() {
|
|
259
224
|
return !!this.maxItems && this.value.length >= this.maxItems;
|
|
260
225
|
}
|
|
@@ -350,27 +315,18 @@ export class ChipSet {
|
|
|
350
315
|
return this.renderDefaultChip(chip);
|
|
351
316
|
}
|
|
352
317
|
renderDefaultChip(chip) {
|
|
353
|
-
return (h("div", { class: `mdc-chip ${chip.selected ? SELECTED_CHIP_CLASS : ''}`, role: "row", id: `${chip.id}` },
|
|
354
|
-
chip.icon ? this.renderIcon(chip) : null,
|
|
355
|
-
chip.text ? this.renderLabel(chip) : null));
|
|
318
|
+
return (h("div", { class: `mdc-chip ${chip.selected ? SELECTED_CHIP_CLASS : ''}`, role: "row", id: `${chip.id}` }, chip.icon ? this.renderChipIcon(chip) : null, chip.text ? this.renderChipLabel(chip) : null));
|
|
356
319
|
}
|
|
357
|
-
|
|
320
|
+
renderChipLabel(chip) {
|
|
358
321
|
const attributes = {};
|
|
359
322
|
if (chip.href) {
|
|
360
323
|
attributes.href = getHref(chip.href);
|
|
361
324
|
attributes.target = getTarget(chip.href);
|
|
362
325
|
}
|
|
363
|
-
return (h("span", { role: "gridcell" },
|
|
364
|
-
h("a", Object.assign({ role: "button", tabindex: this.disabled ? '-1' : '0', class: "mdc-chip__text" }, attributes), chip.text)));
|
|
326
|
+
return (h("span", { role: "gridcell" }, h("a", Object.assign({ role: "button", tabindex: this.disabled ? '-1' : '0', class: "mdc-chip__text" }, attributes), chip.text)));
|
|
365
327
|
}
|
|
366
328
|
renderFilterChip(chip) {
|
|
367
|
-
return (h("div", { class: `mdc-chip ${chip.selected ? SELECTED_CHIP_CLASS : ''}`, role: "row", id: `${chip.id}` },
|
|
368
|
-
h("span", { class: "mdc-chip__checkmark" },
|
|
369
|
-
h("svg", { class: "mdc-chip__checkmark-svg", viewBox: "-2 -3 30 30" },
|
|
370
|
-
h("path", { class: "mdc-chip__checkmark-path", fill: "none", stroke: "black", d: "M1.73,12.91 8.1,19.28 22.79,4.59" }))),
|
|
371
|
-
h("span", { role: "gridcell" },
|
|
372
|
-
h("span", { role: "checkbox", tabindex: this.disabled ? '-1' : '0', "aria-checked": "false", class: "mdc-chip__text" }, chip.text)),
|
|
373
|
-
this.renderBadge(chip)));
|
|
329
|
+
return (h("div", { class: `mdc-chip ${chip.selected ? SELECTED_CHIP_CLASS : ''}`, role: "row", id: `${chip.id}` }, h("span", { class: "mdc-chip__checkmark" }, h("svg", { class: "mdc-chip__checkmark-svg", viewBox: "-2 -3 30 30" }, h("path", { class: "mdc-chip__checkmark-path", fill: "none", stroke: "black", d: "M1.73,12.91 8.1,19.28 22.79,4.59" }))), h("span", { role: "gridcell" }, h("span", { role: "checkbox", tabindex: this.disabled ? '-1' : '0', "aria-checked": "false", class: "mdc-chip__text" }, chip.text)), this.renderBadge(chip)));
|
|
374
330
|
}
|
|
375
331
|
renderInputChip(chip, index) {
|
|
376
332
|
return [
|
|
@@ -378,17 +334,14 @@ export class ChipSet {
|
|
|
378
334
|
'mdc-chip': true,
|
|
379
335
|
'mdc-chip--selected': this.inputChipIndexSelected === index,
|
|
380
336
|
disabled: this.disabled,
|
|
381
|
-
}, role: "row", id: `${chip.id}`, onClick: this.catchInputChipClicks },
|
|
382
|
-
chip.icon ? this.renderIcon(chip) : null,
|
|
383
|
-
this.renderLabel(chip),
|
|
384
|
-
this.renderChipRemoveButton(chip)),
|
|
337
|
+
}, role: "row", id: `${chip.id}`, onClick: this.catchInputChipClicks }, chip.icon ? this.renderChipIcon(chip) : null, this.renderChipLabel(chip), this.renderChipRemoveButton(chip)),
|
|
385
338
|
this.renderDelimiter(),
|
|
386
339
|
];
|
|
387
340
|
}
|
|
388
341
|
catchInputChipClicks(event) {
|
|
389
342
|
event.stopPropagation();
|
|
390
343
|
}
|
|
391
|
-
|
|
344
|
+
renderChipIcon(chip) {
|
|
392
345
|
const style = {};
|
|
393
346
|
if (chip.iconFillColor) {
|
|
394
347
|
style['--icon-color'] = chip.iconFillColor;
|
|
@@ -402,8 +355,7 @@ export class ChipSet {
|
|
|
402
355
|
if (!this.leadingIcon) {
|
|
403
356
|
return;
|
|
404
357
|
}
|
|
405
|
-
return (h("i", { class: "mdc-text-field__icon search-icon" },
|
|
406
|
-
h("limel-icon", { name: this.leadingIcon })));
|
|
358
|
+
return (h("i", { class: "mdc-text-field__icon search-icon" }, h("limel-icon", { name: this.leadingIcon })));
|
|
407
359
|
}
|
|
408
360
|
renderChipRemoveButton(chip) {
|
|
409
361
|
if (!chip.removable || this.readonly || this.disabled) {
|
|
@@ -443,450 +395,464 @@ export class ChipSet {
|
|
|
443
395
|
}
|
|
444
396
|
static get is() { return "limel-chip-set"; }
|
|
445
397
|
static get encapsulation() { return "shadow"; }
|
|
446
|
-
static get originalStyleUrls() {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
"
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
"tags": [],
|
|
470
|
-
"text": "List of chips for the set"
|
|
471
|
-
},
|
|
472
|
-
"defaultValue": "[]"
|
|
473
|
-
},
|
|
474
|
-
"type": {
|
|
475
|
-
"type": "string",
|
|
476
|
-
"mutable": false,
|
|
477
|
-
"complexType": {
|
|
478
|
-
"original": "'choice' | 'filter' | 'input'",
|
|
479
|
-
"resolved": "\"choice\" | \"filter\" | \"input\"",
|
|
480
|
-
"references": {}
|
|
481
|
-
},
|
|
482
|
-
"required": false,
|
|
483
|
-
"optional": true,
|
|
484
|
-
"docs": {
|
|
485
|
-
"tags": [],
|
|
486
|
-
"text": "Type of chip set\n\n- `choice` renders a set of selectable chips where only one is selectable. The `removable` property is ignored\n- `filter` renders a set of selectable chips where all are selectable. The `icon` property is ignored\n- `input` renders a set of chips that can be used in conjunction with an input field\n\nIf no type is set, a basic set of chips without additional functionality will be rendered"
|
|
487
|
-
},
|
|
488
|
-
"attribute": "type",
|
|
489
|
-
"reflect": true
|
|
490
|
-
},
|
|
491
|
-
"label": {
|
|
492
|
-
"type": "string",
|
|
493
|
-
"mutable": false,
|
|
494
|
-
"complexType": {
|
|
495
|
-
"original": "string",
|
|
496
|
-
"resolved": "string",
|
|
497
|
-
"references": {}
|
|
498
|
-
},
|
|
499
|
-
"required": false,
|
|
500
|
-
"optional": false,
|
|
501
|
-
"docs": {
|
|
502
|
-
"tags": [],
|
|
503
|
-
"text": "Label for the chip-set"
|
|
504
|
-
},
|
|
505
|
-
"attribute": "label",
|
|
506
|
-
"reflect": true
|
|
507
|
-
},
|
|
508
|
-
"helperText": {
|
|
509
|
-
"type": "string",
|
|
510
|
-
"mutable": false,
|
|
511
|
-
"complexType": {
|
|
512
|
-
"original": "string",
|
|
513
|
-
"resolved": "string",
|
|
514
|
-
"references": {}
|
|
515
|
-
},
|
|
516
|
-
"required": false,
|
|
517
|
-
"optional": false,
|
|
518
|
-
"docs": {
|
|
519
|
-
"tags": [],
|
|
520
|
-
"text": "Optional helper text to display below the chipset.\nWhen type is `input`, the helper text is displayed below the\ninput field when it has focus.\nWhen type is not `input`, the helper text is always displayed\nif the device is touch screen; otherwise it is shown when chip-set\nis hovered or focused using keyboard navigation."
|
|
521
|
-
},
|
|
522
|
-
"attribute": "helper-text",
|
|
523
|
-
"reflect": true
|
|
524
|
-
},
|
|
525
|
-
"disabled": {
|
|
526
|
-
"type": "boolean",
|
|
527
|
-
"mutable": false,
|
|
528
|
-
"complexType": {
|
|
529
|
-
"original": "boolean",
|
|
530
|
-
"resolved": "boolean",
|
|
531
|
-
"references": {}
|
|
532
|
-
},
|
|
533
|
-
"required": false,
|
|
534
|
-
"optional": false,
|
|
535
|
-
"docs": {
|
|
536
|
-
"tags": [],
|
|
537
|
-
"text": "True if the chip set should be disabled"
|
|
538
|
-
},
|
|
539
|
-
"attribute": "disabled",
|
|
540
|
-
"reflect": true,
|
|
541
|
-
"defaultValue": "false"
|
|
542
|
-
},
|
|
543
|
-
"readonly": {
|
|
544
|
-
"type": "boolean",
|
|
545
|
-
"mutable": false,
|
|
546
|
-
"complexType": {
|
|
547
|
-
"original": "boolean",
|
|
548
|
-
"resolved": "boolean",
|
|
549
|
-
"references": {}
|
|
550
|
-
},
|
|
551
|
-
"required": false,
|
|
552
|
-
"optional": false,
|
|
553
|
-
"docs": {
|
|
554
|
-
"tags": [],
|
|
555
|
-
"text": "For chip-sets of type `input`, set to `true` to disable adding and\nremoving chips, but allow interaction with existing chips in the set.\nFor any other types, setting either `readonly` or `disabled` disables\nthe chip-set."
|
|
556
|
-
},
|
|
557
|
-
"attribute": "readonly",
|
|
558
|
-
"reflect": true,
|
|
559
|
-
"defaultValue": "false"
|
|
560
|
-
},
|
|
561
|
-
"inputType": {
|
|
562
|
-
"type": "string",
|
|
563
|
-
"mutable": false,
|
|
564
|
-
"complexType": {
|
|
565
|
-
"original": "'search' | 'text'",
|
|
566
|
-
"resolved": "\"search\" | \"text\"",
|
|
567
|
-
"references": {}
|
|
568
|
-
},
|
|
569
|
-
"required": false,
|
|
570
|
-
"optional": false,
|
|
571
|
-
"docs": {
|
|
572
|
-
"tags": [],
|
|
573
|
-
"text": "For chip-sets of type `input`. Value to use for the `type` attribute on the\ninput field inside the chip-set."
|
|
574
|
-
},
|
|
575
|
-
"attribute": "input-type",
|
|
576
|
-
"reflect": true,
|
|
577
|
-
"defaultValue": "'text'"
|
|
578
|
-
},
|
|
579
|
-
"maxItems": {
|
|
580
|
-
"type": "number",
|
|
581
|
-
"mutable": false,
|
|
582
|
-
"complexType": {
|
|
583
|
-
"original": "number",
|
|
584
|
-
"resolved": "number",
|
|
585
|
-
"references": {}
|
|
586
|
-
},
|
|
587
|
-
"required": false,
|
|
588
|
-
"optional": false,
|
|
589
|
-
"docs": {
|
|
590
|
-
"tags": [],
|
|
591
|
-
"text": "For chip-sets of type `input`. Limits the maximum number of chips.\nWhen the value is `0` or not set, no limit is applied."
|
|
592
|
-
},
|
|
593
|
-
"attribute": "max-items",
|
|
594
|
-
"reflect": true
|
|
595
|
-
},
|
|
596
|
-
"required": {
|
|
597
|
-
"type": "boolean",
|
|
598
|
-
"mutable": false,
|
|
599
|
-
"complexType": {
|
|
600
|
-
"original": "boolean",
|
|
601
|
-
"resolved": "boolean",
|
|
602
|
-
"references": {}
|
|
603
|
-
},
|
|
604
|
-
"required": false,
|
|
605
|
-
"optional": false,
|
|
606
|
-
"docs": {
|
|
607
|
-
"tags": [],
|
|
608
|
-
"text": "True if the control requires a value"
|
|
609
|
-
},
|
|
610
|
-
"attribute": "required",
|
|
611
|
-
"reflect": true,
|
|
612
|
-
"defaultValue": "false"
|
|
613
|
-
},
|
|
614
|
-
"searchLabel": {
|
|
615
|
-
"type": "string",
|
|
616
|
-
"mutable": false,
|
|
617
|
-
"complexType": {
|
|
618
|
-
"original": "string",
|
|
619
|
-
"resolved": "string",
|
|
620
|
-
"references": {}
|
|
621
|
-
},
|
|
622
|
-
"required": false,
|
|
623
|
-
"optional": false,
|
|
624
|
-
"docs": {
|
|
625
|
-
"tags": [],
|
|
626
|
-
"text": "Search label to display when type is `input` and component is in search mode"
|
|
627
|
-
},
|
|
628
|
-
"attribute": "search-label",
|
|
629
|
-
"reflect": true
|
|
630
|
-
},
|
|
631
|
-
"emptyInputOnBlur": {
|
|
632
|
-
"type": "boolean",
|
|
633
|
-
"mutable": false,
|
|
634
|
-
"complexType": {
|
|
635
|
-
"original": "boolean",
|
|
636
|
-
"resolved": "boolean",
|
|
637
|
-
"references": {}
|
|
638
|
-
},
|
|
639
|
-
"required": false,
|
|
640
|
-
"optional": false,
|
|
641
|
-
"docs": {
|
|
642
|
-
"tags": [],
|
|
643
|
-
"text": "Whether the input field should be emptied when the chip-set loses focus."
|
|
644
|
-
},
|
|
645
|
-
"attribute": "empty-input-on-blur",
|
|
646
|
-
"reflect": true,
|
|
647
|
-
"defaultValue": "true"
|
|
648
|
-
},
|
|
649
|
-
"clearAllButton": {
|
|
650
|
-
"type": "boolean",
|
|
651
|
-
"mutable": false,
|
|
652
|
-
"complexType": {
|
|
653
|
-
"original": "boolean",
|
|
654
|
-
"resolved": "boolean",
|
|
655
|
-
"references": {}
|
|
656
|
-
},
|
|
657
|
-
"required": false,
|
|
658
|
-
"optional": false,
|
|
659
|
-
"docs": {
|
|
660
|
-
"tags": [],
|
|
661
|
-
"text": "Whether the \"Clear all\" buttons should be shown"
|
|
662
|
-
},
|
|
663
|
-
"attribute": "clear-all-button",
|
|
664
|
-
"reflect": false,
|
|
665
|
-
"defaultValue": "true"
|
|
666
|
-
},
|
|
667
|
-
"leadingIcon": {
|
|
668
|
-
"type": "string",
|
|
669
|
-
"mutable": false,
|
|
670
|
-
"complexType": {
|
|
671
|
-
"original": "string",
|
|
672
|
-
"resolved": "string",
|
|
673
|
-
"references": {}
|
|
674
|
-
},
|
|
675
|
-
"required": false,
|
|
676
|
-
"optional": false,
|
|
677
|
-
"docs": {
|
|
678
|
-
"tags": [],
|
|
679
|
-
"text": "For chip-sets of type `input`. When the value is null, no leading icon is used.\nLeading icon to show to the far left in the text field"
|
|
680
|
-
},
|
|
681
|
-
"attribute": "leading-icon",
|
|
682
|
-
"reflect": true,
|
|
683
|
-
"defaultValue": "null"
|
|
684
|
-
},
|
|
685
|
-
"delimiter": {
|
|
686
|
-
"type": "string",
|
|
687
|
-
"mutable": false,
|
|
688
|
-
"complexType": {
|
|
689
|
-
"original": "string",
|
|
690
|
-
"resolved": "string",
|
|
691
|
-
"references": {}
|
|
692
|
-
},
|
|
693
|
-
"required": false,
|
|
694
|
-
"optional": false,
|
|
695
|
-
"docs": {
|
|
696
|
-
"tags": [],
|
|
697
|
-
"text": "For chip-set of type `input`. Sets delimiters between chips."
|
|
698
|
-
},
|
|
699
|
-
"attribute": "delimiter",
|
|
700
|
-
"reflect": true,
|
|
701
|
-
"defaultValue": "null"
|
|
702
|
-
},
|
|
703
|
-
"language": {
|
|
704
|
-
"type": "string",
|
|
705
|
-
"mutable": false,
|
|
706
|
-
"complexType": {
|
|
707
|
-
"original": "Languages",
|
|
708
|
-
"resolved": "\"da\" | \"en\" | \"fi\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
|
|
709
|
-
"references": {
|
|
710
|
-
"Languages": {
|
|
711
|
-
"location": "import",
|
|
712
|
-
"path": "@limetech/lime-elements"
|
|
398
|
+
static get originalStyleUrls() {
|
|
399
|
+
return {
|
|
400
|
+
"$": ["chip-set.scss"]
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
static get styleUrls() {
|
|
404
|
+
return {
|
|
405
|
+
"$": ["chip-set.css"]
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
static get properties() {
|
|
409
|
+
return {
|
|
410
|
+
"value": {
|
|
411
|
+
"type": "unknown",
|
|
412
|
+
"mutable": false,
|
|
413
|
+
"complexType": {
|
|
414
|
+
"original": "Chip[]",
|
|
415
|
+
"resolved": "Chip<any>[]",
|
|
416
|
+
"references": {
|
|
417
|
+
"Chip": {
|
|
418
|
+
"location": "import",
|
|
419
|
+
"path": "@limetech/lime-elements"
|
|
420
|
+
}
|
|
713
421
|
}
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
"
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
"
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
422
|
+
},
|
|
423
|
+
"required": false,
|
|
424
|
+
"optional": false,
|
|
425
|
+
"docs": {
|
|
426
|
+
"tags": [],
|
|
427
|
+
"text": "List of chips for the set"
|
|
428
|
+
},
|
|
429
|
+
"defaultValue": "[]"
|
|
430
|
+
},
|
|
431
|
+
"type": {
|
|
432
|
+
"type": "string",
|
|
433
|
+
"mutable": false,
|
|
434
|
+
"complexType": {
|
|
435
|
+
"original": "'choice' | 'filter' | 'input'",
|
|
436
|
+
"resolved": "\"choice\" | \"filter\" | \"input\"",
|
|
437
|
+
"references": {}
|
|
438
|
+
},
|
|
439
|
+
"required": false,
|
|
440
|
+
"optional": true,
|
|
441
|
+
"docs": {
|
|
442
|
+
"tags": [],
|
|
443
|
+
"text": "Type of chip set\n\n- `choice` renders a set of selectable chips where only one is selectable. The `removable` property is ignored\n- `filter` renders a set of selectable chips where all are selectable. The `icon` property is ignored\n- `input` renders a set of chips that can be used in conjunction with an input field\n\nIf no type is set, a basic set of chips without additional functionality will be rendered"
|
|
444
|
+
},
|
|
445
|
+
"attribute": "type",
|
|
446
|
+
"reflect": true
|
|
447
|
+
},
|
|
448
|
+
"label": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"mutable": false,
|
|
451
|
+
"complexType": {
|
|
452
|
+
"original": "string",
|
|
453
|
+
"resolved": "string",
|
|
454
|
+
"references": {}
|
|
455
|
+
},
|
|
456
|
+
"required": false,
|
|
457
|
+
"optional": false,
|
|
458
|
+
"docs": {
|
|
459
|
+
"tags": [],
|
|
460
|
+
"text": "Label for the chip-set"
|
|
461
|
+
},
|
|
462
|
+
"attribute": "label",
|
|
463
|
+
"reflect": true
|
|
464
|
+
},
|
|
465
|
+
"helperText": {
|
|
466
|
+
"type": "string",
|
|
467
|
+
"mutable": false,
|
|
468
|
+
"complexType": {
|
|
469
|
+
"original": "string",
|
|
470
|
+
"resolved": "string",
|
|
471
|
+
"references": {}
|
|
472
|
+
},
|
|
473
|
+
"required": false,
|
|
474
|
+
"optional": false,
|
|
475
|
+
"docs": {
|
|
476
|
+
"tags": [],
|
|
477
|
+
"text": "Optional helper text to display below the chipset.\nWhen type is `input`, the helper text is displayed below the\ninput field when it has focus.\nWhen type is not `input`, the helper text is always displayed\nif the device is touch screen; otherwise it is shown when chip-set\nis hovered or focused using keyboard navigation."
|
|
478
|
+
},
|
|
479
|
+
"attribute": "helper-text",
|
|
480
|
+
"reflect": true
|
|
481
|
+
},
|
|
482
|
+
"disabled": {
|
|
483
|
+
"type": "boolean",
|
|
484
|
+
"mutable": false,
|
|
485
|
+
"complexType": {
|
|
486
|
+
"original": "boolean",
|
|
487
|
+
"resolved": "boolean",
|
|
488
|
+
"references": {}
|
|
489
|
+
},
|
|
490
|
+
"required": false,
|
|
491
|
+
"optional": false,
|
|
492
|
+
"docs": {
|
|
493
|
+
"tags": [],
|
|
494
|
+
"text": "True if the chip set should be disabled"
|
|
495
|
+
},
|
|
496
|
+
"attribute": "disabled",
|
|
497
|
+
"reflect": true,
|
|
498
|
+
"defaultValue": "false"
|
|
499
|
+
},
|
|
500
|
+
"readonly": {
|
|
501
|
+
"type": "boolean",
|
|
502
|
+
"mutable": false,
|
|
503
|
+
"complexType": {
|
|
504
|
+
"original": "boolean",
|
|
505
|
+
"resolved": "boolean",
|
|
506
|
+
"references": {}
|
|
507
|
+
},
|
|
508
|
+
"required": false,
|
|
509
|
+
"optional": false,
|
|
510
|
+
"docs": {
|
|
511
|
+
"tags": [],
|
|
512
|
+
"text": "For chip-sets of type `input`, set to `true` to disable adding and\nremoving chips, but allow interaction with existing chips in the set.\nFor any other types, setting either `readonly` or `disabled` disables\nthe chip-set."
|
|
513
|
+
},
|
|
514
|
+
"attribute": "readonly",
|
|
515
|
+
"reflect": true,
|
|
516
|
+
"defaultValue": "false"
|
|
517
|
+
},
|
|
518
|
+
"inputType": {
|
|
519
|
+
"type": "string",
|
|
520
|
+
"mutable": false,
|
|
521
|
+
"complexType": {
|
|
522
|
+
"original": "'search' | 'text'",
|
|
523
|
+
"resolved": "\"search\" | \"text\"",
|
|
524
|
+
"references": {}
|
|
525
|
+
},
|
|
526
|
+
"required": false,
|
|
527
|
+
"optional": false,
|
|
528
|
+
"docs": {
|
|
529
|
+
"tags": [],
|
|
530
|
+
"text": "For chip-sets of type `input`. Value to use for the `type` attribute on the\ninput field inside the chip-set."
|
|
531
|
+
},
|
|
532
|
+
"attribute": "input-type",
|
|
533
|
+
"reflect": true,
|
|
534
|
+
"defaultValue": "'text'"
|
|
535
|
+
},
|
|
536
|
+
"maxItems": {
|
|
537
|
+
"type": "number",
|
|
538
|
+
"mutable": false,
|
|
539
|
+
"complexType": {
|
|
540
|
+
"original": "number",
|
|
541
|
+
"resolved": "number",
|
|
542
|
+
"references": {}
|
|
543
|
+
},
|
|
544
|
+
"required": false,
|
|
545
|
+
"optional": false,
|
|
546
|
+
"docs": {
|
|
547
|
+
"tags": [],
|
|
548
|
+
"text": "For chip-sets of type `input`. Limits the maximum number of chips.\nWhen the value is `0` or not set, no limit is applied."
|
|
549
|
+
},
|
|
550
|
+
"attribute": "max-items",
|
|
551
|
+
"reflect": true
|
|
552
|
+
},
|
|
553
|
+
"required": {
|
|
554
|
+
"type": "boolean",
|
|
555
|
+
"mutable": false,
|
|
556
|
+
"complexType": {
|
|
557
|
+
"original": "boolean",
|
|
558
|
+
"resolved": "boolean",
|
|
559
|
+
"references": {}
|
|
560
|
+
},
|
|
561
|
+
"required": false,
|
|
562
|
+
"optional": false,
|
|
563
|
+
"docs": {
|
|
564
|
+
"tags": [],
|
|
565
|
+
"text": "True if the control requires a value"
|
|
566
|
+
},
|
|
567
|
+
"attribute": "required",
|
|
568
|
+
"reflect": true,
|
|
569
|
+
"defaultValue": "false"
|
|
570
|
+
},
|
|
571
|
+
"searchLabel": {
|
|
572
|
+
"type": "string",
|
|
573
|
+
"mutable": false,
|
|
574
|
+
"complexType": {
|
|
575
|
+
"original": "string",
|
|
576
|
+
"resolved": "string",
|
|
577
|
+
"references": {}
|
|
578
|
+
},
|
|
579
|
+
"required": false,
|
|
580
|
+
"optional": false,
|
|
581
|
+
"docs": {
|
|
582
|
+
"tags": [],
|
|
583
|
+
"text": "Search label to display when type is `input` and component is in search mode"
|
|
584
|
+
},
|
|
585
|
+
"attribute": "search-label",
|
|
586
|
+
"reflect": true
|
|
587
|
+
},
|
|
588
|
+
"emptyInputOnBlur": {
|
|
589
|
+
"type": "boolean",
|
|
590
|
+
"mutable": false,
|
|
591
|
+
"complexType": {
|
|
592
|
+
"original": "boolean",
|
|
593
|
+
"resolved": "boolean",
|
|
594
|
+
"references": {}
|
|
595
|
+
},
|
|
596
|
+
"required": false,
|
|
597
|
+
"optional": false,
|
|
598
|
+
"docs": {
|
|
599
|
+
"tags": [],
|
|
600
|
+
"text": "Whether the input field should be emptied when the chip-set loses focus."
|
|
601
|
+
},
|
|
602
|
+
"attribute": "empty-input-on-blur",
|
|
603
|
+
"reflect": true,
|
|
604
|
+
"defaultValue": "true"
|
|
605
|
+
},
|
|
606
|
+
"clearAllButton": {
|
|
607
|
+
"type": "boolean",
|
|
608
|
+
"mutable": false,
|
|
609
|
+
"complexType": {
|
|
610
|
+
"original": "boolean",
|
|
611
|
+
"resolved": "boolean",
|
|
612
|
+
"references": {}
|
|
613
|
+
},
|
|
614
|
+
"required": false,
|
|
615
|
+
"optional": false,
|
|
616
|
+
"docs": {
|
|
617
|
+
"tags": [],
|
|
618
|
+
"text": "Whether the \"Clear all\" buttons should be shown"
|
|
619
|
+
},
|
|
620
|
+
"attribute": "clear-all-button",
|
|
621
|
+
"reflect": false,
|
|
622
|
+
"defaultValue": "true"
|
|
623
|
+
},
|
|
624
|
+
"leadingIcon": {
|
|
625
|
+
"type": "string",
|
|
626
|
+
"mutable": false,
|
|
627
|
+
"complexType": {
|
|
628
|
+
"original": "string",
|
|
629
|
+
"resolved": "string",
|
|
630
|
+
"references": {}
|
|
631
|
+
},
|
|
632
|
+
"required": false,
|
|
633
|
+
"optional": false,
|
|
634
|
+
"docs": {
|
|
635
|
+
"tags": [],
|
|
636
|
+
"text": "For chip-sets of type `input`. When the value is null, no leading icon is used.\nLeading icon to show to the far left in the text field"
|
|
637
|
+
},
|
|
638
|
+
"attribute": "leading-icon",
|
|
639
|
+
"reflect": true,
|
|
640
|
+
"defaultValue": "null"
|
|
641
|
+
},
|
|
642
|
+
"delimiter": {
|
|
643
|
+
"type": "string",
|
|
644
|
+
"mutable": false,
|
|
645
|
+
"complexType": {
|
|
646
|
+
"original": "string",
|
|
647
|
+
"resolved": "string",
|
|
648
|
+
"references": {}
|
|
649
|
+
},
|
|
650
|
+
"required": false,
|
|
651
|
+
"optional": false,
|
|
652
|
+
"docs": {
|
|
653
|
+
"tags": [],
|
|
654
|
+
"text": "For chip-set of type `input`. Sets delimiters between chips."
|
|
655
|
+
},
|
|
656
|
+
"attribute": "delimiter",
|
|
657
|
+
"reflect": true,
|
|
658
|
+
"defaultValue": "null"
|
|
659
|
+
},
|
|
660
|
+
"language": {
|
|
661
|
+
"type": "string",
|
|
662
|
+
"mutable": false,
|
|
663
|
+
"complexType": {
|
|
664
|
+
"original": "Languages",
|
|
665
|
+
"resolved": "\"da\" | \"en\" | \"fi\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
|
|
666
|
+
"references": {
|
|
667
|
+
"Languages": {
|
|
668
|
+
"location": "import",
|
|
669
|
+
"path": "@limetech/lime-elements"
|
|
670
|
+
}
|
|
750
671
|
}
|
|
751
|
-
}
|
|
672
|
+
},
|
|
673
|
+
"required": false,
|
|
674
|
+
"optional": false,
|
|
675
|
+
"docs": {
|
|
676
|
+
"tags": [],
|
|
677
|
+
"text": "Defines the language for translations.\nWill translate the translatable strings on the components. For example, the clear all chips label."
|
|
678
|
+
},
|
|
679
|
+
"attribute": "language",
|
|
680
|
+
"reflect": false,
|
|
681
|
+
"defaultValue": "'en'"
|
|
752
682
|
}
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
"
|
|
758
|
-
"
|
|
759
|
-
"
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
"
|
|
766
|
-
"
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
683
|
+
};
|
|
684
|
+
}
|
|
685
|
+
static get states() {
|
|
686
|
+
return {
|
|
687
|
+
"editMode": {},
|
|
688
|
+
"textValue": {},
|
|
689
|
+
"blurred": {},
|
|
690
|
+
"inputChipIndexSelected": {}
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
static get events() {
|
|
694
|
+
return [{
|
|
695
|
+
"method": "interact",
|
|
696
|
+
"name": "interact",
|
|
697
|
+
"bubbles": true,
|
|
698
|
+
"cancelable": true,
|
|
699
|
+
"composed": true,
|
|
700
|
+
"docs": {
|
|
701
|
+
"tags": [],
|
|
702
|
+
"text": "Dispatched when a chip is interacted with"
|
|
703
|
+
},
|
|
704
|
+
"complexType": {
|
|
705
|
+
"original": "Chip",
|
|
706
|
+
"resolved": "Chip<any>",
|
|
707
|
+
"references": {
|
|
708
|
+
"Chip": {
|
|
709
|
+
"location": "import",
|
|
710
|
+
"path": "@limetech/lime-elements"
|
|
711
|
+
}
|
|
770
712
|
}
|
|
771
713
|
}
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
"text": "Emitted when an input chip set has received focus and editing in the text field has started"
|
|
782
|
-
},
|
|
783
|
-
"complexType": {
|
|
784
|
-
"original": "void",
|
|
785
|
-
"resolved": "void",
|
|
786
|
-
"references": {}
|
|
787
|
-
}
|
|
788
|
-
}, {
|
|
789
|
-
"method": "stopEdit",
|
|
790
|
-
"name": "stopEdit",
|
|
791
|
-
"bubbles": true,
|
|
792
|
-
"cancelable": true,
|
|
793
|
-
"composed": true,
|
|
794
|
-
"docs": {
|
|
795
|
-
"tags": [],
|
|
796
|
-
"text": "Emitted when an input chip set has lost focus and editing in the text field has ended"
|
|
797
|
-
},
|
|
798
|
-
"complexType": {
|
|
799
|
-
"original": "void",
|
|
800
|
-
"resolved": "void",
|
|
801
|
-
"references": {}
|
|
802
|
-
}
|
|
803
|
-
}, {
|
|
804
|
-
"method": "input",
|
|
805
|
-
"name": "input",
|
|
806
|
-
"bubbles": true,
|
|
807
|
-
"cancelable": true,
|
|
808
|
-
"composed": true,
|
|
809
|
-
"docs": {
|
|
810
|
-
"tags": [],
|
|
811
|
-
"text": "Dispatched when the input is changed for type `input`"
|
|
812
|
-
},
|
|
813
|
-
"complexType": {
|
|
814
|
-
"original": "string",
|
|
815
|
-
"resolved": "string",
|
|
816
|
-
"references": {}
|
|
817
|
-
}
|
|
818
|
-
}]; }
|
|
819
|
-
static get methods() { return {
|
|
820
|
-
"getEditMode": {
|
|
821
|
-
"complexType": {
|
|
822
|
-
"signature": "() => Promise<boolean>",
|
|
823
|
-
"parameters": [],
|
|
824
|
-
"references": {
|
|
825
|
-
"Promise": {
|
|
826
|
-
"location": "global"
|
|
827
|
-
}
|
|
714
|
+
}, {
|
|
715
|
+
"method": "change",
|
|
716
|
+
"name": "change",
|
|
717
|
+
"bubbles": true,
|
|
718
|
+
"cancelable": true,
|
|
719
|
+
"composed": true,
|
|
720
|
+
"docs": {
|
|
721
|
+
"tags": [],
|
|
722
|
+
"text": "Dispatched when a chip is selected/deselected"
|
|
828
723
|
},
|
|
829
|
-
"
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
}
|
|
838
|
-
},
|
|
839
|
-
"setFocus": {
|
|
840
|
-
"complexType": {
|
|
841
|
-
"signature": "(emptyInput?: boolean) => Promise<void>",
|
|
842
|
-
"parameters": [{
|
|
843
|
-
"tags": [{
|
|
844
|
-
"name": "param",
|
|
845
|
-
"text": "emptyInput if `true`, any text in the input is discarded"
|
|
846
|
-
}],
|
|
847
|
-
"text": "if `true`, any text in the input is discarded"
|
|
848
|
-
}],
|
|
849
|
-
"references": {
|
|
850
|
-
"Promise": {
|
|
851
|
-
"location": "global"
|
|
724
|
+
"complexType": {
|
|
725
|
+
"original": "Chip | Chip[]",
|
|
726
|
+
"resolved": "Chip<any> | Chip<any>[]",
|
|
727
|
+
"references": {
|
|
728
|
+
"Chip": {
|
|
729
|
+
"location": "import",
|
|
730
|
+
"path": "@limetech/lime-elements"
|
|
731
|
+
}
|
|
852
732
|
}
|
|
733
|
+
}
|
|
734
|
+
}, {
|
|
735
|
+
"method": "startEdit",
|
|
736
|
+
"name": "startEdit",
|
|
737
|
+
"bubbles": true,
|
|
738
|
+
"cancelable": true,
|
|
739
|
+
"composed": true,
|
|
740
|
+
"docs": {
|
|
741
|
+
"tags": [],
|
|
742
|
+
"text": "Emitted when an input chip set has received focus and editing in the text field has started"
|
|
743
|
+
},
|
|
744
|
+
"complexType": {
|
|
745
|
+
"original": "void",
|
|
746
|
+
"resolved": "void",
|
|
747
|
+
"references": {}
|
|
748
|
+
}
|
|
749
|
+
}, {
|
|
750
|
+
"method": "stopEdit",
|
|
751
|
+
"name": "stopEdit",
|
|
752
|
+
"bubbles": true,
|
|
753
|
+
"cancelable": true,
|
|
754
|
+
"composed": true,
|
|
755
|
+
"docs": {
|
|
756
|
+
"tags": [],
|
|
757
|
+
"text": "Emitted when an input chip set has lost focus and editing in the text field has ended"
|
|
758
|
+
},
|
|
759
|
+
"complexType": {
|
|
760
|
+
"original": "void",
|
|
761
|
+
"resolved": "void",
|
|
762
|
+
"references": {}
|
|
763
|
+
}
|
|
764
|
+
}, {
|
|
765
|
+
"method": "input",
|
|
766
|
+
"name": "input",
|
|
767
|
+
"bubbles": true,
|
|
768
|
+
"cancelable": true,
|
|
769
|
+
"composed": true,
|
|
770
|
+
"docs": {
|
|
771
|
+
"tags": [],
|
|
772
|
+
"text": "Dispatched when the input is changed for type `input`"
|
|
853
773
|
},
|
|
854
|
-
"
|
|
774
|
+
"complexType": {
|
|
775
|
+
"original": "string",
|
|
776
|
+
"resolved": "string",
|
|
777
|
+
"references": {}
|
|
778
|
+
}
|
|
779
|
+
}];
|
|
780
|
+
}
|
|
781
|
+
static get methods() {
|
|
782
|
+
return {
|
|
783
|
+
"getEditMode": {
|
|
784
|
+
"complexType": {
|
|
785
|
+
"signature": "() => Promise<boolean>",
|
|
786
|
+
"parameters": [],
|
|
787
|
+
"references": {
|
|
788
|
+
"Promise": {
|
|
789
|
+
"location": "global"
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
"return": "Promise<boolean>"
|
|
793
|
+
},
|
|
794
|
+
"docs": {
|
|
795
|
+
"text": "Used to find out whether the chip-set is in edit mode.",
|
|
796
|
+
"tags": [{
|
|
797
|
+
"name": "returns",
|
|
798
|
+
"text": "`true` if the chip-set is in edit mode, `false` otherwise."
|
|
799
|
+
}]
|
|
800
|
+
}
|
|
855
801
|
},
|
|
856
|
-
"
|
|
857
|
-
"
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
"Promise": {
|
|
873
|
-
"location": "global"
|
|
874
|
-
}
|
|
802
|
+
"setFocus": {
|
|
803
|
+
"complexType": {
|
|
804
|
+
"signature": "(emptyInput?: boolean) => Promise<void>",
|
|
805
|
+
"parameters": [{
|
|
806
|
+
"tags": [{
|
|
807
|
+
"name": "param",
|
|
808
|
+
"text": "emptyInput if `true`, any text in the input is discarded"
|
|
809
|
+
}],
|
|
810
|
+
"text": "if `true`, any text in the input is discarded"
|
|
811
|
+
}],
|
|
812
|
+
"references": {
|
|
813
|
+
"Promise": {
|
|
814
|
+
"location": "global"
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
"return": "Promise<void>"
|
|
875
818
|
},
|
|
876
|
-
"
|
|
819
|
+
"docs": {
|
|
820
|
+
"text": "Used to set focus to the chip-set input field.",
|
|
821
|
+
"tags": [{
|
|
822
|
+
"name": "param",
|
|
823
|
+
"text": "emptyInput if `true`, any text in the input is discarded"
|
|
824
|
+
}, {
|
|
825
|
+
"name": "returns",
|
|
826
|
+
"text": "does not return anything, but methods have to be async"
|
|
827
|
+
}]
|
|
828
|
+
}
|
|
877
829
|
},
|
|
878
|
-
"
|
|
879
|
-
"
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
830
|
+
"emptyInput": {
|
|
831
|
+
"complexType": {
|
|
832
|
+
"signature": "() => Promise<void>",
|
|
833
|
+
"parameters": [],
|
|
834
|
+
"references": {
|
|
835
|
+
"Promise": {
|
|
836
|
+
"location": "global"
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
"return": "Promise<void>"
|
|
840
|
+
},
|
|
841
|
+
"docs": {
|
|
842
|
+
"text": "Used to empty the input field. Used in conjunction with `emptyInputOnBlur` to let the\nconsumer control when the input is emptied.",
|
|
843
|
+
"tags": [{
|
|
844
|
+
"name": "returns",
|
|
845
|
+
"text": "does not return anything, but methods have to be async"
|
|
846
|
+
}]
|
|
847
|
+
}
|
|
884
848
|
}
|
|
885
|
-
}
|
|
886
|
-
}
|
|
849
|
+
};
|
|
850
|
+
}
|
|
887
851
|
static get elementRef() { return "host"; }
|
|
888
|
-
static get watchers() {
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
852
|
+
static get watchers() {
|
|
853
|
+
return [{
|
|
854
|
+
"propName": "value",
|
|
855
|
+
"methodName": "handleChangeChips"
|
|
856
|
+
}];
|
|
857
|
+
}
|
|
892
858
|
}
|