@dso-toolkit/core 45.1.0 → 46.0.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/clsx.m-b81c6b86.js +5 -0
- package/dist/cjs/{create-identifier-fa070b11.js → create-identifier-6ee2a08b.js} +1 -3
- package/dist/cjs/dso-accordion-section.cjs.entry.js +37 -33
- package/dist/cjs/dso-accordion.cjs.entry.js +17 -19
- package/dist/cjs/dso-alert.cjs.entry.js +11 -9
- package/dist/cjs/dso-attachments-counter.cjs.entry.js +4 -3
- package/dist/cjs/dso-autosuggest.cjs.entry.js +36 -61
- package/dist/cjs/dso-badge.cjs.entry.js +5 -4
- package/dist/cjs/dso-banner.cjs.entry.js +5 -4
- package/dist/cjs/dso-date-picker.cjs.entry.js +89 -129
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +9 -21
- package/dist/cjs/dso-header.cjs.entry.js +24 -30
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +23 -22
- package/dist/cjs/dso-highlight-box.cjs.entry.js +17 -12
- package/dist/cjs/dso-icon.cjs.entry.js +389 -385
- package/dist/cjs/dso-image-overlay.cjs.entry.js +13 -13
- package/dist/cjs/dso-info-button.cjs.entry.js +7 -5
- package/dist/cjs/dso-info_2.cjs.entry.js +22 -9
- package/dist/cjs/dso-label.cjs.entry.js +30 -18
- package/dist/cjs/dso-map-base-layers.cjs.entry.js +7 -8
- package/dist/cjs/dso-map-controls.cjs.entry.js +10 -8
- package/dist/cjs/dso-map-overlays.cjs.entry.js +7 -8
- package/dist/cjs/dso-modal.cjs.entry.js +62 -0
- package/dist/cjs/dso-ozon-content.cjs.entry.js +135 -145
- package/dist/cjs/dso-pagination.cjs.entry.js +23 -29
- package/dist/cjs/dso-progress-bar.cjs.entry.js +4 -3
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +11 -8
- package/dist/cjs/dso-responsive-element.cjs.entry.js +13 -10
- package/dist/cjs/dso-table.cjs.entry.js +89 -0
- package/dist/cjs/dso-toggletip.cjs.entry.js +9 -7
- package/dist/cjs/dso-toolkit.cjs.js +3 -3
- package/dist/cjs/dso-tooltip.cjs.entry.js +103 -104
- package/dist/cjs/dso-tree-view.cjs.entry.js +39 -44
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +31 -32
- package/dist/cjs/{focus-trap.esm-e2addb10.js → focus-trap.esm-d83fd673.js} +1 -1
- package/dist/cjs/{index-4066351a.js → index-ecec64a0.js} +486 -500
- package/dist/cjs/{index.esm-50325ea2.js → index.esm-03a9e0b4.js} +50 -112
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/v4-abb5dc0c.js +68 -0
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/accordion/accordion.js +183 -174
- package/dist/collection/components/accordion/components/accordion-section.css +19 -11
- package/dist/collection/components/accordion/components/accordion-section.js +211 -211
- package/dist/collection/components/alert/alert.css +10 -10
- package/dist/collection/components/alert/alert.js +58 -53
- package/dist/collection/components/attachments-counter/attachments-counter.js +36 -33
- package/dist/collection/components/autosuggest/autosuggest.js +223 -240
- package/dist/collection/components/badge/badge.js +37 -29
- package/dist/collection/components/banner/banner.js +37 -29
- package/dist/collection/components/date-picker/date-localization.js +24 -45
- package/dist/collection/components/date-picker/date-picker-day.js +3 -5
- package/dist/collection/components/date-picker/date-picker-month.js +2 -10
- package/dist/collection/components/date-picker/date-picker.css +2 -2
- package/dist/collection/components/date-picker/date-picker.js +386 -436
- package/dist/collection/components/date-picker/date-utils.js +15 -15
- package/dist/collection/components/dropdown-menu/dropdown-menu.js +73 -82
- package/dist/collection/components/header/header.css +24 -17
- package/dist/collection/components/header/header.js +210 -246
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.css +18 -2
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.js +94 -90
- package/dist/collection/components/highlight-box/highlight-box.css +1 -1
- package/dist/collection/components/highlight-box/highlight-box.js +112 -101
- package/dist/collection/components/icon/icon.js +220 -209
- package/dist/collection/components/image-overlay/image-overlay.js +38 -44
- package/dist/collection/components/info/info.js +73 -65
- package/dist/collection/components/info-button/info-button.js +113 -102
- package/dist/collection/components/label/label.js +151 -140
- package/dist/collection/components/map-base-layers/map-base-layers.js +75 -74
- package/dist/collection/components/map-controls/map-controls.js +115 -116
- package/dist/collection/components/map-overlays/map-overlays.js +75 -74
- package/dist/collection/components/modal/modal.css +155 -0
- package/dist/collection/components/modal/modal.js +133 -0
- package/dist/collection/components/ozon-content/get-node-name.function.js +2 -2
- package/dist/collection/components/ozon-content/nodes/al.node.js +6 -8
- package/dist/collection/components/ozon-content/nodes/document.node.js +2 -2
- package/dist/collection/components/ozon-content/nodes/ext-ref.node.js +4 -9
- package/dist/collection/components/ozon-content/nodes/fallback.node.js +4 -4
- package/dist/collection/components/ozon-content/nodes/figuur.node.js +20 -32
- package/dist/collection/components/ozon-content/nodes/inhoud.node.js +2 -6
- package/dist/collection/components/ozon-content/nodes/inline-tekst-afbeelding.node.js +3 -6
- package/dist/collection/components/ozon-content/nodes/inline.nodes.js +3 -11
- package/dist/collection/components/ozon-content/nodes/int-io-ref.node.js +4 -4
- package/dist/collection/components/ozon-content/nodes/int-ref.node.js +4 -4
- package/dist/collection/components/ozon-content/nodes/lijst.node.js +20 -0
- package/dist/collection/components/ozon-content/nodes/noot.node.js +9 -13
- package/dist/collection/components/ozon-content/nodes/opschrift.node.js +2 -2
- package/dist/collection/components/ozon-content/nodes/table.node/colspec/colspec-mapper.js +11 -11
- package/dist/collection/components/ozon-content/nodes/table.node/colspec/colspec.interface.js +0 -1
- package/dist/collection/components/ozon-content/nodes/table.node/index.js +1 -1
- package/dist/collection/components/ozon-content/nodes/table.node/table-cell.js +8 -8
- package/dist/collection/components/ozon-content/nodes/table.node/table-colgroup.js +2 -4
- package/dist/collection/components/ozon-content/nodes/table.node/table-rows.js +3 -3
- package/dist/collection/components/ozon-content/nodes/table.node/table.node.js +13 -19
- package/dist/collection/components/ozon-content/nodes/text.node.js +2 -2
- package/dist/collection/components/ozon-content/ozon-content-mapper.js +28 -24
- package/dist/collection/components/ozon-content/ozon-content.css +18 -9
- package/dist/collection/components/ozon-content/ozon-content.interfaces.js +0 -1
- package/dist/collection/components/ozon-content/ozon-content.js +138 -151
- package/dist/collection/components/pagination/pagination.js +119 -126
- package/dist/collection/components/progress-bar/progress-bar.css +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +68 -65
- package/dist/collection/components/progress-indicator/progress-indicator.js +76 -70
- package/dist/collection/components/responsive-element/responsive-element.js +70 -58
- package/dist/collection/components/selectable/selectable.js +260 -243
- package/dist/collection/components/table/table.css +283 -0
- package/dist/collection/components/table/table.interfaces.js +1 -0
- package/dist/collection/components/table/table.js +135 -0
- package/dist/collection/components/toggletip/toggletip.js +94 -87
- package/dist/collection/components/tooltip/tooltip.js +252 -254
- package/dist/collection/components/tree-view/tree-item.js +5 -19
- package/dist/collection/components/tree-view/tree-view.js +151 -139
- package/dist/collection/components/viewer-grid/viewer-grid-filterpanel-buttons.js +2 -7
- package/dist/collection/components/viewer-grid/viewer-grid.css +4 -84
- package/dist/collection/components/viewer-grid/viewer-grid.js +181 -198
- package/dist/collection/index.js +2 -2
- package/dist/collection/utils/create-identifier.js +1 -3
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +1301 -1328
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/p-0917f18a.entry.js +1 -0
- package/dist/dso-toolkit/p-0c8cd0d8.entry.js +1 -0
- package/dist/dso-toolkit/p-19323600.entry.js +1 -0
- package/dist/dso-toolkit/p-2b83a825.entry.js +1 -0
- package/dist/dso-toolkit/p-2fa96ac0.entry.js +1 -0
- package/dist/dso-toolkit/p-3635427a.js +5 -0
- package/dist/dso-toolkit/p-39a33b89.entry.js +1 -0
- package/dist/dso-toolkit/p-3ab4441a.entry.js +1 -0
- package/dist/dso-toolkit/p-3bd6cf49.entry.js +1 -0
- package/dist/dso-toolkit/p-3ebba0dc.entry.js +1 -0
- package/dist/dso-toolkit/p-427f6d90.entry.js +1 -0
- package/dist/dso-toolkit/p-44c0bb3e.entry.js +1 -0
- package/dist/dso-toolkit/p-4b994946.entry.js +1 -0
- package/dist/dso-toolkit/p-5d7f4ff2.js +1 -0
- package/dist/dso-toolkit/{p-4070c1e5.js → p-6a1980b4.js} +0 -0
- package/dist/dso-toolkit/{p-7b37bd52.js → p-6c543986.js} +0 -0
- package/dist/dso-toolkit/p-746dc38a.entry.js +1 -0
- package/dist/dso-toolkit/p-76a1428a.entry.js +1 -0
- package/dist/dso-toolkit/p-800e1267.entry.js +1 -0
- package/dist/dso-toolkit/p-85d516c5.entry.js +1 -0
- package/dist/dso-toolkit/{p-22c35db5.js → p-89d262b7.js} +2 -2
- package/dist/dso-toolkit/p-8c8286e6.entry.js +1 -0
- package/dist/dso-toolkit/p-8f35c8f8.js +2 -0
- package/dist/dso-toolkit/p-a4086aa3.entry.js +1 -0
- package/dist/dso-toolkit/p-a9baa631.entry.js +1 -0
- package/dist/dso-toolkit/p-c4cf2359.entry.js +1 -0
- package/dist/dso-toolkit/p-c7ec6e6e.entry.js +1 -0
- package/dist/dso-toolkit/p-c9ad94a6.entry.js +1 -0
- package/dist/dso-toolkit/p-daba2d98.entry.js +1 -0
- package/dist/dso-toolkit/p-dad32839.entry.js +1 -0
- package/dist/dso-toolkit/p-dcc74039.entry.js +1 -0
- package/dist/dso-toolkit/p-e0a37d82.entry.js +1 -0
- package/dist/dso-toolkit/p-e43e39cf.entry.js +1 -0
- package/dist/dso-toolkit/p-e8b22546.entry.js +1 -0
- package/dist/dso-toolkit/p-ec25868b.entry.js +1 -0
- package/dist/dso-toolkit/p-f93b7c7a.entry.js +1 -0
- package/dist/dso-toolkit/p-ff72ee4c.entry.js +1 -0
- package/dist/esm/clsx.m-25174a58.js +3 -0
- package/dist/esm/{create-identifier-22acd3a3.js → create-identifier-51ee50c4.js} +1 -3
- package/dist/esm/dso-accordion-section.entry.js +37 -33
- package/dist/esm/dso-accordion.entry.js +17 -19
- package/dist/esm/dso-alert.entry.js +11 -9
- package/dist/esm/dso-attachments-counter.entry.js +4 -3
- package/dist/esm/dso-autosuggest.entry.js +36 -61
- package/dist/esm/dso-badge.entry.js +5 -4
- package/dist/esm/dso-banner.entry.js +5 -4
- package/dist/esm/dso-date-picker.entry.js +89 -129
- package/dist/esm/dso-dropdown-menu.entry.js +9 -21
- package/dist/esm/dso-header.entry.js +24 -30
- package/dist/esm/dso-helpcenter-panel.entry.js +23 -22
- package/dist/esm/dso-highlight-box.entry.js +17 -12
- package/dist/esm/dso-icon.entry.js +389 -385
- package/dist/esm/dso-image-overlay.entry.js +13 -13
- package/dist/esm/dso-info-button.entry.js +7 -5
- package/dist/esm/dso-info_2.entry.js +22 -9
- package/dist/esm/dso-label.entry.js +30 -18
- package/dist/esm/dso-map-base-layers.entry.js +7 -8
- package/dist/esm/dso-map-controls.entry.js +10 -8
- package/dist/esm/dso-map-overlays.entry.js +7 -8
- package/dist/esm/dso-modal.entry.js +58 -0
- package/dist/esm/dso-ozon-content.entry.js +135 -145
- package/dist/esm/dso-pagination.entry.js +23 -29
- package/dist/esm/dso-progress-bar.entry.js +4 -3
- package/dist/esm/dso-progress-indicator.entry.js +11 -8
- package/dist/esm/dso-responsive-element.entry.js +13 -10
- package/dist/esm/dso-table.entry.js +85 -0
- package/dist/esm/dso-toggletip.entry.js +9 -7
- package/dist/esm/dso-toolkit.js +3 -3
- package/dist/esm/dso-tooltip.entry.js +103 -104
- package/dist/esm/dso-tree-view.entry.js +39 -44
- package/dist/esm/dso-viewer-grid.entry.js +31 -32
- package/dist/esm/{focus-trap.esm-e3b5bde3.js → focus-trap.esm-33203b60.js} +1 -1
- package/dist/esm/{index-771c1291.js → index-1a4dda48.js} +486 -500
- package/dist/esm/{index.esm-4510c39e.js → index.esm-8fc07ad8.js} +50 -112
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/v4-d398bde5.js +66 -0
- package/dist/types/components/accordion/accordion.d.ts +2 -2
- package/dist/types/components/accordion/accordion.interfaces.d.ts +3 -3
- package/dist/types/components/accordion/components/accordion-section.d.ts +2 -2
- package/dist/types/components/alert/alert.d.ts +1 -1
- package/dist/types/components/autosuggest/autosuggest.d.ts +3 -3
- package/dist/types/components/badge/badge.d.ts +1 -1
- package/dist/types/components/banner/banner.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +1 -1
- package/dist/types/components/header/header.d.ts +2 -2
- package/dist/types/components/header/header.interfaces.d.ts +1 -1
- package/dist/types/components/helpcenter-panel/helpcenter-panel.d.ts +1 -1
- package/dist/types/components/image-overlay/image-overlay.d.ts +1 -1
- package/dist/types/components/info/info.d.ts +1 -1
- package/dist/types/components/info-button/info-button.d.ts +1 -1
- package/dist/types/components/label/label.d.ts +2 -2
- package/dist/types/components/map-base-layers/map-base-layers.d.ts +2 -2
- package/dist/types/components/map-controls/map-controls.d.ts +2 -2
- package/dist/types/components/map-overlays/map-overlays.d.ts +3 -3
- package/dist/types/components/modal/modal.d.ts +22 -0
- package/dist/types/components/ozon-content/nodes/al.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/document.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/ext-ref.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/fallback.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/figuur.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/inhoud.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/inline-tekst-afbeelding.node.d.ts +1 -1
- package/dist/types/components/ozon-content/nodes/inline.nodes.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/int-io-ref.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/int-ref.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/lijst.node.d.ts +6 -0
- package/dist/types/components/ozon-content/nodes/noot.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/opschrift.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/table.node/colspec/colspec-mapper.d.ts +1 -1
- package/dist/types/components/ozon-content/nodes/table.node/index.d.ts +1 -1
- package/dist/types/components/ozon-content/nodes/table.node/table-cell.d.ts +3 -3
- package/dist/types/components/ozon-content/nodes/table.node/table-colgroup.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/table.node/table-rows.d.ts +3 -3
- package/dist/types/components/ozon-content/nodes/table.node/table.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/text.node.d.ts +1 -1
- package/dist/types/components/ozon-content/ozon-content-context.interface.d.ts +4 -4
- package/dist/types/components/ozon-content/ozon-content-mapper.d.ts +2 -1
- package/dist/types/components/ozon-content/ozon-content-node-context.interface.d.ts +2 -1
- package/dist/types/components/ozon-content/ozon-content-node.interface.d.ts +2 -1
- package/dist/types/components/ozon-content/ozon-content.d.ts +5 -4
- package/dist/types/components/pagination/pagination.d.ts +3 -3
- package/dist/types/components/progress-indicator/progress-indicator.d.ts +1 -1
- package/dist/types/components/responsive-element/responsive-element.d.ts +2 -2
- package/dist/types/components/responsive-element/responsive-element.interfaces.d.ts +1 -1
- package/dist/types/components/selectable/selectable.d.ts +2 -2
- package/dist/types/components/table/table.d.ts +26 -0
- package/dist/types/components/table/table.interfaces.d.ts +3 -0
- package/dist/types/components/tooltip/tooltip.d.ts +2 -2
- package/dist/types/components/tree-view/tree-item.d.ts +3 -3
- package/dist/types/components/tree-view/tree-view.d.ts +5 -5
- package/dist/types/components/viewer-grid/viewer-grid-filterpanel-buttons.d.ts +1 -1
- package/dist/types/components/viewer-grid/viewer-grid.d.ts +2 -1
- package/dist/types/components.d.ts +181 -58
- package/dist/types/globals.d.ts +16 -16
- package/dist/types/index.d.ts +3 -3
- package/dist/types/stencil-public-runtime.d.ts +26 -8
- package/loader/package.json +1 -0
- package/package.json +15 -16
- package/readme.md +3 -3
- package/dist/cjs/clsx.m-b00fa5e1.js +0 -44
- package/dist/cjs/v4-8e8d6fbc.js +0 -77
- package/dist/collection/components/accordion/accordion.template.js +0 -26
- package/dist/collection/components/alert/alert.template.js +0 -20
- package/dist/collection/components/attachments-counter/attachments-counter.template.js +0 -6
- package/dist/collection/components/autosuggest/autosuggest.template.js +0 -19
- package/dist/collection/components/badge/badge.template.js +0 -7
- package/dist/collection/components/banner/banner.template.js +0 -19
- package/dist/collection/components/date-picker/date-picker.template.js +0 -16
- package/dist/collection/components/dropdown-menu/dropdown-menu.template.js +0 -36
- package/dist/collection/components/header/header.template.js +0 -18
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.template.js +0 -13
- package/dist/collection/components/highlight-box/highlight-box.template.js +0 -20
- package/dist/collection/components/icon/icon.template.js +0 -10
- package/dist/collection/components/image-overlay/image-overlay.template.js +0 -15
- package/dist/collection/components/info/info.template.js +0 -12
- package/dist/collection/components/info-button/info-button.template.js +0 -11
- package/dist/collection/components/label/label.template.js +0 -23
- package/dist/collection/components/map-controls/map-controls.template.js +0 -23
- package/dist/collection/components/ozon-content/ozon-content.template.js +0 -14
- package/dist/collection/components/pagination/pagination.template.js +0 -11
- package/dist/collection/components/progress-bar/progress-bar.template.js +0 -11
- package/dist/collection/components/progress-indicator/progress-indicator.template.js +0 -11
- package/dist/collection/components/responsive-element/responsive-element.template.js +0 -10
- package/dist/collection/components/selectable/selectable.template.js +0 -24
- package/dist/collection/components/toggletip/toggletip.template.js +0 -12
- package/dist/collection/components/tooltip/tooltip.template.js +0 -7
- package/dist/collection/components/tree-view/tree-view.template.js +0 -11
- package/dist/collection/components/viewer-grid/viewer-grid.template.js +0 -20
- package/dist/dso-toolkit/p-02b2e01c.entry.js +0 -1
- package/dist/dso-toolkit/p-05a9e206.entry.js +0 -1
- package/dist/dso-toolkit/p-19b890a3.js +0 -1
- package/dist/dso-toolkit/p-2e74485e.entry.js +0 -1
- package/dist/dso-toolkit/p-2f6b1092.entry.js +0 -1
- package/dist/dso-toolkit/p-3381c859.entry.js +0 -1
- package/dist/dso-toolkit/p-37a34037.entry.js +0 -1
- package/dist/dso-toolkit/p-42450cfe.js +0 -1
- package/dist/dso-toolkit/p-4c44d27c.entry.js +0 -1
- package/dist/dso-toolkit/p-4fd140e9.entry.js +0 -1
- package/dist/dso-toolkit/p-53c7bf4f.entry.js +0 -1
- package/dist/dso-toolkit/p-67b11174.entry.js +0 -1
- package/dist/dso-toolkit/p-6cac0292.entry.js +0 -1
- package/dist/dso-toolkit/p-7213783b.entry.js +0 -1
- package/dist/dso-toolkit/p-73bbb9a6.entry.js +0 -1
- package/dist/dso-toolkit/p-8515d157.entry.js +0 -1
- package/dist/dso-toolkit/p-93b53eb7.entry.js +0 -1
- package/dist/dso-toolkit/p-ac0c0eee.entry.js +0 -1
- package/dist/dso-toolkit/p-b1a75b67.entry.js +0 -1
- package/dist/dso-toolkit/p-b6afe104.entry.js +0 -1
- package/dist/dso-toolkit/p-b9531adb.entry.js +0 -1
- package/dist/dso-toolkit/p-c339891f.entry.js +0 -1
- package/dist/dso-toolkit/p-d2255268.entry.js +0 -1
- package/dist/dso-toolkit/p-d6192ab8.entry.js +0 -1
- package/dist/dso-toolkit/p-de50f5f1.entry.js +0 -1
- package/dist/dso-toolkit/p-e16b5d71.entry.js +0 -1
- package/dist/dso-toolkit/p-e2e2106e.entry.js +0 -1
- package/dist/dso-toolkit/p-ea1d4c81.entry.js +0 -1
- package/dist/dso-toolkit/p-ec3b8800.entry.js +0 -1
- package/dist/dso-toolkit/p-efd815dc.entry.js +0 -1
- package/dist/dso-toolkit/p-f42d8240.entry.js +0 -1
- package/dist/dso-toolkit/p-f8b023c4.js +0 -5
- package/dist/esm/clsx.m-071989db.js +0 -42
- package/dist/esm/v4-fa4bb814.js +0 -75
- package/dist/types/components/accordion/accordion.template.d.ts +0 -2
- package/dist/types/components/alert/alert.template.d.ts +0 -3
- package/dist/types/components/attachments-counter/attachments-counter.template.d.ts +0 -2
- package/dist/types/components/autosuggest/autosuggest.template.d.ts +0 -3
- package/dist/types/components/badge/badge.template.d.ts +0 -2
- package/dist/types/components/banner/banner.template.d.ts +0 -3
- package/dist/types/components/date-picker/date-picker.template.d.ts +0 -2
- package/dist/types/components/dropdown-menu/dropdown-menu.template.d.ts +0 -2
- package/dist/types/components/header/header.template.d.ts +0 -2
- package/dist/types/components/helpcenter-panel/helpcenter-panel.template.d.ts +0 -2
- package/dist/types/components/highlight-box/highlight-box.template.d.ts +0 -3
- package/dist/types/components/icon/icon.template.d.ts +0 -2
- package/dist/types/components/image-overlay/image-overlay.template.d.ts +0 -2
- package/dist/types/components/info/info.template.d.ts +0 -3
- package/dist/types/components/info-button/info-button.template.d.ts +0 -2
- package/dist/types/components/label/label.template.d.ts +0 -2
- package/dist/types/components/map-controls/map-controls.template.d.ts +0 -2
- package/dist/types/components/ozon-content/ozon-content.template.d.ts +0 -2
- package/dist/types/components/pagination/pagination.template.d.ts +0 -2
- package/dist/types/components/progress-bar/progress-bar.template.d.ts +0 -2
- package/dist/types/components/progress-indicator/progress-indicator.template.d.ts +0 -2
- package/dist/types/components/responsive-element/responsive-element.template.d.ts +0 -3
- package/dist/types/components/selectable/selectable.template.d.ts +0 -3
- package/dist/types/components/toggletip/toggletip.template.d.ts +0 -2
- package/dist/types/components/tooltip/tooltip.template.d.ts +0 -2
- package/dist/types/components/tree-view/tree-view.template.d.ts +0 -2
- package/dist/types/components/viewer-grid/viewer-grid.template.d.ts +0 -3
|
@@ -1,34 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h, Fragment } from "@stencil/core";
|
|
2
2
|
import debounce from "debounce";
|
|
3
3
|
import { v4 } from "uuid";
|
|
4
4
|
import escapeStringRegexp from "escape-string-regexp";
|
|
5
5
|
export class Autosuggest {
|
|
6
6
|
constructor() {
|
|
7
|
-
/**
|
|
8
|
-
* The suggestions for the value of the slotted input element. Optionally a
|
|
9
|
-
* Suggestion can have a `type` and `item`.
|
|
10
|
-
*
|
|
11
|
-
* The `type` is used to style the suggestion. `item` can be use to reference
|
|
12
|
-
* the original object that was used to create the suggestion.
|
|
13
|
-
*
|
|
14
|
-
* The value should be null when no suggestions have been fetched.
|
|
15
|
-
*/
|
|
16
|
-
this.suggestions = null;
|
|
17
|
-
/**
|
|
18
|
-
* Shows progress indicator when fetching results.
|
|
19
|
-
*/
|
|
20
|
-
this.loading = false;
|
|
21
|
-
/**
|
|
22
|
-
* To override progress indicator's default loading label.
|
|
23
|
-
*/
|
|
24
|
-
this.loadingLabel = "Een moment geduld.";
|
|
25
|
-
/**
|
|
26
|
-
* Whether the previous suggestions will be presented when the input gets focus again.
|
|
27
|
-
*/
|
|
28
|
-
this.suggestOnFocus = false;
|
|
29
|
-
this.showSuggestions = false;
|
|
30
|
-
this.notFound = false;
|
|
31
|
-
this.showLoading = false;
|
|
32
7
|
this.listboxId = v4();
|
|
33
8
|
this.inputId = v4();
|
|
34
9
|
this.labelId = v4();
|
|
@@ -41,14 +16,14 @@ export class Autosuggest {
|
|
|
41
16
|
this.showLoading = true;
|
|
42
17
|
}
|
|
43
18
|
}, this.loadingDelayed);
|
|
44
|
-
this.inputValue =
|
|
19
|
+
this.inputValue = "";
|
|
45
20
|
this.onInput = (event) => {
|
|
46
21
|
if (!(event.target instanceof HTMLInputElement)) {
|
|
47
22
|
throw new Error("event.target is not instanceof HTMLInputElement");
|
|
48
23
|
}
|
|
49
24
|
this.showLoading = !this.loadingDelayed;
|
|
50
25
|
this.inputValue = event.target.value;
|
|
51
|
-
this.debouncedEmitValue(event.target.value.match(/(\S+)/g) ? event.target.value :
|
|
26
|
+
this.debouncedEmitValue(event.target.value.match(/(\S+)/g) ? event.target.value : "");
|
|
52
27
|
};
|
|
53
28
|
this.onFocusIn = () => {
|
|
54
29
|
if (this.suggestOnFocus) {
|
|
@@ -60,29 +35,29 @@ export class Autosuggest {
|
|
|
60
35
|
return;
|
|
61
36
|
}
|
|
62
37
|
switch (event.key) {
|
|
63
|
-
case
|
|
38
|
+
case "ArrowDown":
|
|
64
39
|
if (!this.showSuggestions) {
|
|
65
|
-
this.openSuggestions(
|
|
40
|
+
this.openSuggestions("first");
|
|
66
41
|
}
|
|
67
42
|
else {
|
|
68
43
|
this.selectNextSuggestion();
|
|
69
44
|
}
|
|
70
45
|
break;
|
|
71
|
-
case
|
|
46
|
+
case "ArrowUp":
|
|
72
47
|
if (!this.showSuggestions) {
|
|
73
|
-
this.openSuggestions(
|
|
48
|
+
this.openSuggestions("last");
|
|
74
49
|
}
|
|
75
50
|
else {
|
|
76
51
|
this.selectPreviousSuggestion();
|
|
77
52
|
}
|
|
78
53
|
break;
|
|
79
|
-
case
|
|
54
|
+
case "Tab":
|
|
80
55
|
this.closeSuggestions();
|
|
81
56
|
return;
|
|
82
|
-
case
|
|
57
|
+
case "Escape":
|
|
83
58
|
this.closeSuggestions();
|
|
84
59
|
break;
|
|
85
|
-
case
|
|
60
|
+
case "Enter":
|
|
86
61
|
this.pickSelectedValue();
|
|
87
62
|
break;
|
|
88
63
|
default:
|
|
@@ -90,6 +65,16 @@ export class Autosuggest {
|
|
|
90
65
|
}
|
|
91
66
|
event.preventDefault();
|
|
92
67
|
};
|
|
68
|
+
this.suggestions = null;
|
|
69
|
+
this.loading = false;
|
|
70
|
+
this.loadingLabel = "Een moment geduld.";
|
|
71
|
+
this.loadingDelayed = undefined;
|
|
72
|
+
this.notFoundLabel = undefined;
|
|
73
|
+
this.suggestOnFocus = false;
|
|
74
|
+
this.showSuggestions = false;
|
|
75
|
+
this.selectedSuggestion = undefined;
|
|
76
|
+
this.notFound = false;
|
|
77
|
+
this.showLoading = false;
|
|
93
78
|
}
|
|
94
79
|
suggestionsWatcher() {
|
|
95
80
|
this.resetSelectedSuggestion();
|
|
@@ -105,7 +90,7 @@ export class Autosuggest {
|
|
|
105
90
|
this.listbox &&
|
|
106
91
|
event.target instanceof Node &&
|
|
107
92
|
!this.listbox.contains(event.target) &&
|
|
108
|
-
this.input
|
|
93
|
+
this.input !== event.target) {
|
|
109
94
|
this.closeSuggestions();
|
|
110
95
|
}
|
|
111
96
|
}
|
|
@@ -149,12 +134,12 @@ export class Autosuggest {
|
|
|
149
134
|
}
|
|
150
135
|
markTerms(suggestionValue, terms) {
|
|
151
136
|
if (!suggestionValue || !terms || terms.length === 0) {
|
|
152
|
-
return [
|
|
137
|
+
return [""];
|
|
153
138
|
}
|
|
154
|
-
const termRegex = new RegExp(`(${escapeStringRegexp(terms[0])})`,
|
|
139
|
+
const termRegex = new RegExp(`(${escapeStringRegexp(terms[0])})`, "gi");
|
|
155
140
|
return suggestionValue.split(termRegex).map((valuePart) => {
|
|
156
141
|
if (!valuePart) {
|
|
157
|
-
return
|
|
142
|
+
return "";
|
|
158
143
|
}
|
|
159
144
|
if (termRegex.test(valuePart)) {
|
|
160
145
|
return h("mark", null, valuePart);
|
|
@@ -175,7 +160,7 @@ export class Autosuggest {
|
|
|
175
160
|
}
|
|
176
161
|
this.selectedSuggestion = this.suggestions[0];
|
|
177
162
|
if (this.selectedSuggestion) {
|
|
178
|
-
this.input.setAttribute(
|
|
163
|
+
this.input.setAttribute("aria-activedescendant", this.listboxItemId(this.selectedSuggestion));
|
|
179
164
|
}
|
|
180
165
|
}
|
|
181
166
|
selectLastSuggestion() {
|
|
@@ -184,7 +169,7 @@ export class Autosuggest {
|
|
|
184
169
|
}
|
|
185
170
|
this.selectedSuggestion = this.suggestions[this.suggestions.length - 1];
|
|
186
171
|
if (this.selectedSuggestion) {
|
|
187
|
-
this.input.setAttribute(
|
|
172
|
+
this.input.setAttribute("aria-activedescendant", this.listboxItemId(this.selectedSuggestion));
|
|
188
173
|
}
|
|
189
174
|
}
|
|
190
175
|
selectNextSuggestion() {
|
|
@@ -195,7 +180,7 @@ export class Autosuggest {
|
|
|
195
180
|
const index = this.selectedSuggestion ? this.suggestions.indexOf(this.selectedSuggestion) : -1;
|
|
196
181
|
this.selectedSuggestion = (_a = this.suggestions[index + 1]) !== null && _a !== void 0 ? _a : this.suggestions[0];
|
|
197
182
|
if (this.selectedSuggestion) {
|
|
198
|
-
this.input.setAttribute(
|
|
183
|
+
this.input.setAttribute("aria-activedescendant", this.listboxItemId(this.selectedSuggestion));
|
|
199
184
|
}
|
|
200
185
|
}
|
|
201
186
|
selectPreviousSuggestion() {
|
|
@@ -206,24 +191,24 @@ export class Autosuggest {
|
|
|
206
191
|
const index = this.selectedSuggestion ? this.suggestions.indexOf(this.selectedSuggestion) : 0;
|
|
207
192
|
this.selectedSuggestion = (_a = this.suggestions[index - 1]) !== null && _a !== void 0 ? _a : this.suggestions[this.suggestions.length - 1];
|
|
208
193
|
if (this.selectedSuggestion) {
|
|
209
|
-
this.input.setAttribute(
|
|
194
|
+
this.input.setAttribute("aria-activedescendant", this.listboxItemId(this.selectedSuggestion));
|
|
210
195
|
}
|
|
211
196
|
}
|
|
212
197
|
resetSelectedSuggestion() {
|
|
213
198
|
this.showLoading = !this.loadingDelayed;
|
|
214
199
|
this.notFound = false;
|
|
215
200
|
this.selectedSuggestion = undefined;
|
|
216
|
-
this.input.setAttribute(
|
|
201
|
+
this.input.setAttribute("aria-activedescendant", "");
|
|
217
202
|
}
|
|
218
203
|
openSuggestions(selectSuggestion) {
|
|
219
204
|
var _a, _b, _c;
|
|
220
205
|
this.showSuggestions = (_a = (this.suggestions && this.suggestions.length > 0)) !== null && _a !== void 0 ? _a : false;
|
|
221
206
|
this.notFound = (_c = ((_b = this.suggestions) === null || _b === void 0 ? void 0 : _b.length) === 0) !== null && _c !== void 0 ? _c : false;
|
|
222
207
|
this.input.setAttribute("aria-expanded", (this.showSuggestions || this.notFound).toString());
|
|
223
|
-
if (this.showSuggestions && selectSuggestion ===
|
|
208
|
+
if (this.showSuggestions && selectSuggestion === "first") {
|
|
224
209
|
this.selectFirstSuggestion();
|
|
225
210
|
}
|
|
226
|
-
else if (this.showSuggestions && selectSuggestion ===
|
|
211
|
+
else if (this.showSuggestions && selectSuggestion === "last") {
|
|
227
212
|
this.selectLastSuggestion();
|
|
228
213
|
}
|
|
229
214
|
}
|
|
@@ -244,214 +229,212 @@ export class Autosuggest {
|
|
|
244
229
|
}
|
|
245
230
|
listboxItemId(suggestion) {
|
|
246
231
|
if (!this.suggestions) {
|
|
247
|
-
return
|
|
232
|
+
return "";
|
|
248
233
|
}
|
|
249
234
|
return `${this.inputId}-${this.suggestions.indexOf(suggestion) + 1}`;
|
|
250
235
|
}
|
|
251
236
|
render() {
|
|
252
|
-
const terms = this.input.value.split(
|
|
253
|
-
return (h(Fragment, null,
|
|
254
|
-
h("slot", null),
|
|
255
|
-
this.loading && this.showLoading
|
|
256
|
-
? h("div", { class: "autosuggest-progress-box" },
|
|
257
|
-
h("dso-progress-indicator", { label: this.loadingLabel }))
|
|
258
|
-
: h("ul", { role: "listbox", id: this.listboxId, "aria-labelledby": this.labelId, ref: element => this.listbox = element, hidden: !this.showSuggestions && !this.notFound }, this.showSuggestions && this.suggestions
|
|
259
|
-
? this.suggestions.map((suggestion) => (h("li", { role: "option", id: this.listboxItemId(suggestion), key: suggestion.value, onMouseEnter: () => this.selectSuggestion(suggestion), onMouseLeave: () => this.resetSelectedSuggestion(), onClick: () => this.pickSelectedValue(), "aria-selected": (suggestion === this.selectedSuggestion).toString(), "aria-label": suggestion.value },
|
|
260
|
-
h("span", { class: "value" }, this.markTerms(suggestion.value, terms)),
|
|
261
|
-
suggestion.type
|
|
262
|
-
? (h("span", { class: "type" }, suggestion.type))
|
|
263
|
-
: undefined)))
|
|
264
|
-
: this.notFound
|
|
265
|
-
? h("li", null,
|
|
266
|
-
h("span", { class: "value" }, !this.notFoundLabel
|
|
267
|
-
? this.markTerms(`${this.inputValue} is niet gevonden.`, terms)
|
|
268
|
-
: h("span", null, this.notFoundLabel)))
|
|
269
|
-
: undefined)));
|
|
237
|
+
const terms = this.input.value.split(" ").filter((t) => t);
|
|
238
|
+
return (h(Fragment, null, h("slot", null), this.loading && this.showLoading ? (h("div", { class: "autosuggest-progress-box" }, h("dso-progress-indicator", { label: this.loadingLabel }))) : (h("ul", { role: "listbox", id: this.listboxId, "aria-labelledby": this.labelId, ref: (element) => (this.listbox = element), hidden: !this.showSuggestions && !this.notFound }, this.showSuggestions && this.suggestions ? (this.suggestions.map((suggestion) => (h("li", { role: "option", id: this.listboxItemId(suggestion), key: suggestion.value, onMouseEnter: () => this.selectSuggestion(suggestion), onMouseLeave: () => this.resetSelectedSuggestion(), onClick: () => this.pickSelectedValue(), "aria-selected": (suggestion === this.selectedSuggestion).toString(), "aria-label": suggestion.value }, h("span", { class: "value" }, this.markTerms(suggestion.value, terms)), suggestion.type ? h("span", { class: "type" }, suggestion.type) : undefined)))) : this.notFound ? (h("li", null, h("span", { class: "value" }, !this.notFoundLabel ? (this.markTerms(`${this.inputValue} is niet gevonden.`, terms)) : (h("span", null, this.notFoundLabel))))) : undefined))));
|
|
270
239
|
}
|
|
271
240
|
static get is() { return "dso-autosuggest"; }
|
|
272
241
|
static get encapsulation() { return "scoped"; }
|
|
273
|
-
static get originalStyleUrls() {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
"
|
|
287
|
-
|
|
288
|
-
|
|
242
|
+
static get originalStyleUrls() {
|
|
243
|
+
return {
|
|
244
|
+
"$": ["autosuggest.scss"]
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
static get styleUrls() {
|
|
248
|
+
return {
|
|
249
|
+
"$": ["autosuggest.css"]
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
static get properties() {
|
|
253
|
+
return {
|
|
254
|
+
"suggestions": {
|
|
255
|
+
"type": "unknown",
|
|
256
|
+
"mutable": false,
|
|
257
|
+
"complexType": {
|
|
258
|
+
"original": "Suggestion[] | null",
|
|
259
|
+
"resolved": "Suggestion[] | null",
|
|
260
|
+
"references": {
|
|
261
|
+
"Suggestion": {
|
|
262
|
+
"location": "local"
|
|
263
|
+
}
|
|
289
264
|
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
"defaultValue": "null"
|
|
299
|
-
},
|
|
300
|
-
"loading": {
|
|
301
|
-
"type": "boolean",
|
|
302
|
-
"mutable": false,
|
|
303
|
-
"complexType": {
|
|
304
|
-
"original": "boolean",
|
|
305
|
-
"resolved": "boolean",
|
|
306
|
-
"references": {}
|
|
265
|
+
},
|
|
266
|
+
"required": false,
|
|
267
|
+
"optional": false,
|
|
268
|
+
"docs": {
|
|
269
|
+
"tags": [],
|
|
270
|
+
"text": "The suggestions for the value of the slotted input element. Optionally a\r\nSuggestion can have a `type` and `item`.\r\n\r\nThe `type` is used to style the suggestion. `item` can be use to reference\r\nthe original object that was used to create the suggestion.\r\n\r\nThe value should be null when no suggestions have been fetched."
|
|
271
|
+
},
|
|
272
|
+
"defaultValue": "null"
|
|
307
273
|
},
|
|
308
|
-
"
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
"
|
|
312
|
-
|
|
274
|
+
"loading": {
|
|
275
|
+
"type": "boolean",
|
|
276
|
+
"mutable": false,
|
|
277
|
+
"complexType": {
|
|
278
|
+
"original": "boolean",
|
|
279
|
+
"resolved": "boolean",
|
|
280
|
+
"references": {}
|
|
281
|
+
},
|
|
282
|
+
"required": false,
|
|
283
|
+
"optional": false,
|
|
284
|
+
"docs": {
|
|
285
|
+
"tags": [],
|
|
286
|
+
"text": "Shows progress indicator when fetching results."
|
|
287
|
+
},
|
|
288
|
+
"attribute": "loading",
|
|
289
|
+
"reflect": false,
|
|
290
|
+
"defaultValue": "false"
|
|
313
291
|
},
|
|
314
|
-
"
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
"
|
|
323
|
-
"
|
|
324
|
-
"
|
|
292
|
+
"loadingLabel": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"mutable": false,
|
|
295
|
+
"complexType": {
|
|
296
|
+
"original": "string",
|
|
297
|
+
"resolved": "string | undefined",
|
|
298
|
+
"references": {}
|
|
299
|
+
},
|
|
300
|
+
"required": false,
|
|
301
|
+
"optional": true,
|
|
302
|
+
"docs": {
|
|
303
|
+
"tags": [],
|
|
304
|
+
"text": "To override progress indicator's default loading label."
|
|
305
|
+
},
|
|
306
|
+
"attribute": "loading-label",
|
|
307
|
+
"reflect": false,
|
|
308
|
+
"defaultValue": "\"Een moment geduld.\""
|
|
325
309
|
},
|
|
326
|
-
"
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
"
|
|
330
|
-
|
|
310
|
+
"loadingDelayed": {
|
|
311
|
+
"type": "number",
|
|
312
|
+
"mutable": false,
|
|
313
|
+
"complexType": {
|
|
314
|
+
"original": "number",
|
|
315
|
+
"resolved": "number | undefined",
|
|
316
|
+
"references": {}
|
|
317
|
+
},
|
|
318
|
+
"required": false,
|
|
319
|
+
"optional": true,
|
|
320
|
+
"docs": {
|
|
321
|
+
"tags": [],
|
|
322
|
+
"text": "To delay progress indicator showing (in ms)."
|
|
323
|
+
},
|
|
324
|
+
"attribute": "loading-delayed",
|
|
325
|
+
"reflect": false
|
|
331
326
|
},
|
|
332
|
-
"
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
"
|
|
341
|
-
"
|
|
342
|
-
"
|
|
327
|
+
"notFoundLabel": {
|
|
328
|
+
"type": "string",
|
|
329
|
+
"mutable": false,
|
|
330
|
+
"complexType": {
|
|
331
|
+
"original": "string",
|
|
332
|
+
"resolved": "string | undefined",
|
|
333
|
+
"references": {}
|
|
334
|
+
},
|
|
335
|
+
"required": false,
|
|
336
|
+
"optional": true,
|
|
337
|
+
"docs": {
|
|
338
|
+
"tags": [],
|
|
339
|
+
"text": "To show text when no results are found."
|
|
340
|
+
},
|
|
341
|
+
"attribute": "not-found-label",
|
|
342
|
+
"reflect": false
|
|
343
343
|
},
|
|
344
|
-
"
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
"
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
"
|
|
359
|
-
"
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
},
|
|
367
|
-
"
|
|
368
|
-
"
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
"
|
|
375
|
-
"
|
|
376
|
-
"
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
"showSuggestions": {},
|
|
391
|
-
"selectedSuggestion": {},
|
|
392
|
-
"notFound": {},
|
|
393
|
-
"showLoading": {}
|
|
394
|
-
}; }
|
|
395
|
-
static get events() { return [{
|
|
396
|
-
"method": "dsoSelect",
|
|
397
|
-
"name": "dsoSelect",
|
|
398
|
-
"bubbles": true,
|
|
399
|
-
"cancelable": true,
|
|
400
|
-
"composed": true,
|
|
401
|
-
"docs": {
|
|
402
|
-
"tags": [],
|
|
403
|
-
"text": "Emitted when a suggestion is selected.\nThe `detail` property of the `CustomEvent`\u00A0will contain the selected suggestion."
|
|
404
|
-
},
|
|
405
|
-
"complexType": {
|
|
406
|
-
"original": "Suggestion",
|
|
407
|
-
"resolved": "Suggestion",
|
|
408
|
-
"references": {
|
|
409
|
-
"Suggestion": {
|
|
410
|
-
"location": "local"
|
|
344
|
+
"suggestOnFocus": {
|
|
345
|
+
"type": "boolean",
|
|
346
|
+
"mutable": false,
|
|
347
|
+
"complexType": {
|
|
348
|
+
"original": "boolean",
|
|
349
|
+
"resolved": "boolean",
|
|
350
|
+
"references": {}
|
|
351
|
+
},
|
|
352
|
+
"required": false,
|
|
353
|
+
"optional": false,
|
|
354
|
+
"docs": {
|
|
355
|
+
"tags": [],
|
|
356
|
+
"text": "Whether the previous suggestions will be presented when the input gets focus again."
|
|
357
|
+
},
|
|
358
|
+
"attribute": "suggest-on-focus",
|
|
359
|
+
"reflect": false,
|
|
360
|
+
"defaultValue": "false"
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
static get states() {
|
|
365
|
+
return {
|
|
366
|
+
"showSuggestions": {},
|
|
367
|
+
"selectedSuggestion": {},
|
|
368
|
+
"notFound": {},
|
|
369
|
+
"showLoading": {}
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
static get events() {
|
|
373
|
+
return [{
|
|
374
|
+
"method": "dsoSelect",
|
|
375
|
+
"name": "dsoSelect",
|
|
376
|
+
"bubbles": true,
|
|
377
|
+
"cancelable": true,
|
|
378
|
+
"composed": true,
|
|
379
|
+
"docs": {
|
|
380
|
+
"tags": [],
|
|
381
|
+
"text": "Emitted when a suggestion is selected.\r\nThe `detail` property of the `CustomEvent` will contain the selected suggestion."
|
|
382
|
+
},
|
|
383
|
+
"complexType": {
|
|
384
|
+
"original": "Suggestion",
|
|
385
|
+
"resolved": "Suggestion",
|
|
386
|
+
"references": {
|
|
387
|
+
"Suggestion": {
|
|
388
|
+
"location": "local"
|
|
389
|
+
}
|
|
411
390
|
}
|
|
412
391
|
}
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
}
|
|
444
|
-
|
|
392
|
+
}, {
|
|
393
|
+
"method": "dsoChange",
|
|
394
|
+
"name": "dsoChange",
|
|
395
|
+
"bubbles": true,
|
|
396
|
+
"cancelable": true,
|
|
397
|
+
"composed": true,
|
|
398
|
+
"docs": {
|
|
399
|
+
"tags": [],
|
|
400
|
+
"text": "This is emitted debounced for every change for the slotted input type=text element."
|
|
401
|
+
},
|
|
402
|
+
"complexType": {
|
|
403
|
+
"original": "string",
|
|
404
|
+
"resolved": "string",
|
|
405
|
+
"references": {}
|
|
406
|
+
}
|
|
407
|
+
}, {
|
|
408
|
+
"method": "dsoSearch",
|
|
409
|
+
"name": "dsoSearch",
|
|
410
|
+
"bubbles": true,
|
|
411
|
+
"cancelable": true,
|
|
412
|
+
"composed": true,
|
|
413
|
+
"docs": {
|
|
414
|
+
"tags": [],
|
|
415
|
+
"text": "Emitted when enter is pressed.\r\nThe `detail` property of the `CustomEvent` will contain the input text."
|
|
416
|
+
},
|
|
417
|
+
"complexType": {
|
|
418
|
+
"original": "string",
|
|
419
|
+
"resolved": "string",
|
|
420
|
+
"references": {}
|
|
421
|
+
}
|
|
422
|
+
}];
|
|
423
|
+
}
|
|
445
424
|
static get elementRef() { return "host"; }
|
|
446
|
-
static get watchers() {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
425
|
+
static get watchers() {
|
|
426
|
+
return [{
|
|
427
|
+
"propName": "suggestions",
|
|
428
|
+
"methodName": "suggestionsWatcher"
|
|
429
|
+
}];
|
|
430
|
+
}
|
|
431
|
+
static get listeners() {
|
|
432
|
+
return [{
|
|
433
|
+
"name": "click",
|
|
434
|
+
"method": "onDocumentClick",
|
|
435
|
+
"target": "document",
|
|
436
|
+
"capture": false,
|
|
437
|
+
"passive": false
|
|
438
|
+
}];
|
|
439
|
+
}
|
|
457
440
|
}
|