@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,44 +1,23 @@
|
|
|
1
|
-
import { beforeWrite, createPopper } from
|
|
2
|
-
import maxSize from
|
|
3
|
-
import { h,
|
|
4
|
-
import clsx from
|
|
1
|
+
import { beforeWrite, createPopper } from "@popperjs/core";
|
|
2
|
+
import maxSize from "popper-max-size-modifier";
|
|
3
|
+
import { h, Host } from "@stencil/core";
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
// Keep const in sync with $tooltip-transition-duration in @dso-toolkit/sources/tooltip.scss tooltip_root() mixin
|
|
6
6
|
const transitionDuration = 150;
|
|
7
7
|
function hasOverflow(el) {
|
|
8
8
|
const style = window.getComputedStyle(el);
|
|
9
|
-
const overflowX = style.getPropertyValue(
|
|
10
|
-
const overflowY = style.getPropertyValue(
|
|
11
|
-
const overflowValues = [
|
|
12
|
-
return overflowValues.indexOf(overflowX)
|
|
9
|
+
const overflowX = style.getPropertyValue("overflow-x");
|
|
10
|
+
const overflowY = style.getPropertyValue("overflow-y");
|
|
11
|
+
const overflowValues = ["hidden", "clip"];
|
|
12
|
+
return overflowValues.indexOf(overflowX) !== -1 || overflowValues.indexOf(overflowY) !== -1;
|
|
13
13
|
}
|
|
14
14
|
export class Tooltip {
|
|
15
15
|
constructor() {
|
|
16
|
-
/**
|
|
17
|
-
* Defines if the tooltip is descriptive. A descriptive tooltip contains a meaningful message. Tooltips that are not descriptive are hidden from screenreaders using `aria-hidden`.
|
|
18
|
-
*/
|
|
19
|
-
this.descriptive = false;
|
|
20
|
-
/**
|
|
21
|
-
* Set position of tooltip relative to target
|
|
22
|
-
*/
|
|
23
|
-
this.position = 'top';
|
|
24
|
-
/**
|
|
25
|
-
* Set position strategy of tooltip
|
|
26
|
-
*/
|
|
27
|
-
this.strategy = 'auto';
|
|
28
|
-
/**
|
|
29
|
-
* Set attribute `no-arrow` to hide the arrow
|
|
30
|
-
*/
|
|
31
|
-
this.noArrow = false;
|
|
32
|
-
/**
|
|
33
|
-
* Whether or not to show the tooltip. To control the tooltip add the `active` attribute or use the `activate()` and `deactivate()` instance methods.
|
|
34
|
-
*/
|
|
35
|
-
this.active = false;
|
|
36
|
-
this.hidden = true;
|
|
37
16
|
this.applyMaxSize = {
|
|
38
|
-
name:
|
|
17
|
+
name: "applyMaxSize",
|
|
39
18
|
enabled: true,
|
|
40
19
|
phase: beforeWrite,
|
|
41
|
-
requires: [
|
|
20
|
+
requires: ["maxSize"],
|
|
42
21
|
fn({ state }) {
|
|
43
22
|
let { width } = state.modifiersData.maxSize;
|
|
44
23
|
if (width < 160) {
|
|
@@ -48,10 +27,19 @@ export class Tooltip {
|
|
|
48
27
|
},
|
|
49
28
|
};
|
|
50
29
|
this.keyDownListener = (event) => {
|
|
51
|
-
if (event.key ===
|
|
30
|
+
if (event.key === "Escape") {
|
|
52
31
|
this.deactivate();
|
|
53
32
|
}
|
|
54
33
|
};
|
|
34
|
+
this.descriptive = false;
|
|
35
|
+
this.position = "top";
|
|
36
|
+
this.strategy = "auto";
|
|
37
|
+
this.for = undefined;
|
|
38
|
+
this.noArrow = false;
|
|
39
|
+
this.stateless = undefined;
|
|
40
|
+
this.small = undefined;
|
|
41
|
+
this.active = false;
|
|
42
|
+
this.hidden = true;
|
|
55
43
|
}
|
|
56
44
|
/**
|
|
57
45
|
* Activate the tooltip (Sets the `active` attribute)
|
|
@@ -70,7 +58,7 @@ export class Tooltip {
|
|
|
70
58
|
return;
|
|
71
59
|
}
|
|
72
60
|
this.popper.setOptions({
|
|
73
|
-
placement: this.position
|
|
61
|
+
placement: this.position,
|
|
74
62
|
});
|
|
75
63
|
}
|
|
76
64
|
watchStrategy() {
|
|
@@ -80,24 +68,24 @@ export class Tooltip {
|
|
|
80
68
|
if (!this.popper) {
|
|
81
69
|
return;
|
|
82
70
|
}
|
|
83
|
-
if (this.strategy
|
|
71
|
+
if (this.strategy === "absolute" || this.strategy === "fixed") {
|
|
84
72
|
this.popper.setOptions({
|
|
85
73
|
strategy: this.strategy,
|
|
86
74
|
});
|
|
87
75
|
return;
|
|
88
76
|
}
|
|
89
77
|
let element = this.element;
|
|
90
|
-
while (
|
|
78
|
+
while (element && element.parentNode !== document) {
|
|
91
79
|
element = element.parentNode instanceof ShadowRoot ? element.parentNode.host : element.parentElement;
|
|
92
|
-
if (element
|
|
80
|
+
if (element !== null && hasOverflow(element)) {
|
|
93
81
|
this.popper.setOptions({
|
|
94
|
-
strategy:
|
|
82
|
+
strategy: "fixed",
|
|
95
83
|
});
|
|
96
84
|
return;
|
|
97
85
|
}
|
|
98
86
|
}
|
|
99
87
|
this.popper.setOptions({
|
|
100
|
-
strategy:
|
|
88
|
+
strategy: "absolute",
|
|
101
89
|
});
|
|
102
90
|
}
|
|
103
91
|
watchActive() {
|
|
@@ -108,18 +96,18 @@ export class Tooltip {
|
|
|
108
96
|
setTimeout(() => {
|
|
109
97
|
var _a;
|
|
110
98
|
(_a = this.popper) === null || _a === void 0 ? void 0 : _a.setOptions({
|
|
111
|
-
modifiers: [{ name:
|
|
99
|
+
modifiers: [{ name: "eventListeners", enabled: true }],
|
|
112
100
|
});
|
|
113
|
-
document.addEventListener(
|
|
101
|
+
document.addEventListener("keydown", this.keyDownListener);
|
|
114
102
|
});
|
|
115
103
|
}
|
|
116
104
|
}
|
|
117
105
|
else {
|
|
118
106
|
if (!this.stateless) {
|
|
119
107
|
(_a = this.popper) === null || _a === void 0 ? void 0 : _a.setOptions({
|
|
120
|
-
modifiers: [{ name:
|
|
108
|
+
modifiers: [{ name: "eventListeners", enabled: false }],
|
|
121
109
|
});
|
|
122
|
-
document.removeEventListener(
|
|
110
|
+
document.removeEventListener("keydown", this.keyDownListener);
|
|
123
111
|
}
|
|
124
112
|
setTimeout(() => (this.hidden = true), transitionDuration);
|
|
125
113
|
}
|
|
@@ -132,9 +120,9 @@ export class Tooltip {
|
|
|
132
120
|
if (this.popper) {
|
|
133
121
|
return;
|
|
134
122
|
}
|
|
135
|
-
const tooltip = (_a = this.element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(
|
|
123
|
+
const tooltip = (_a = this.element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".tooltip");
|
|
136
124
|
if (!(tooltip instanceof HTMLElement)) {
|
|
137
|
-
throw new Error(
|
|
125
|
+
throw new Error("tooltip element is not instanceof HTMLElement");
|
|
138
126
|
}
|
|
139
127
|
this.target = this.getTarget();
|
|
140
128
|
this.popper = createPopper(this.target, tooltip, {
|
|
@@ -143,23 +131,23 @@ export class Tooltip {
|
|
|
143
131
|
});
|
|
144
132
|
this.callbacks = {
|
|
145
133
|
activate: () => (this.active = true),
|
|
146
|
-
deactivate: () => (this.active = false)
|
|
134
|
+
deactivate: () => (this.active = false),
|
|
147
135
|
};
|
|
148
136
|
if (!this.stateless) {
|
|
149
|
-
this.target.addEventListener(
|
|
150
|
-
this.target.addEventListener(
|
|
151
|
-
this.target.addEventListener(
|
|
152
|
-
this.target.addEventListener(
|
|
137
|
+
this.target.addEventListener("mouseenter", this.callbacks.activate);
|
|
138
|
+
this.target.addEventListener("mouseleave", this.callbacks.deactivate);
|
|
139
|
+
this.target.addEventListener("focus", this.callbacks.activate);
|
|
140
|
+
this.target.addEventListener("blur", this.callbacks.deactivate);
|
|
153
141
|
}
|
|
154
142
|
}
|
|
155
143
|
disconnectedCallback() {
|
|
156
144
|
var _a;
|
|
157
145
|
(_a = this.popper) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
158
146
|
if (!this.stateless && this.target && this.callbacks) {
|
|
159
|
-
this.target.removeEventListener(
|
|
160
|
-
this.target.removeEventListener(
|
|
161
|
-
this.target.removeEventListener(
|
|
162
|
-
this.target.removeEventListener(
|
|
147
|
+
this.target.removeEventListener("mouseenter", this.callbacks.activate);
|
|
148
|
+
this.target.removeEventListener("mouseleave", this.callbacks.deactivate);
|
|
149
|
+
this.target.removeEventListener("focus", this.callbacks.activate);
|
|
150
|
+
this.target.removeEventListener("blur", this.callbacks.deactivate);
|
|
163
151
|
}
|
|
164
152
|
this.callbacks = undefined;
|
|
165
153
|
this.target = undefined;
|
|
@@ -172,17 +160,13 @@ export class Tooltip {
|
|
|
172
160
|
}
|
|
173
161
|
}
|
|
174
162
|
render() {
|
|
175
|
-
return (h(Host, { class: {
|
|
176
|
-
h("div", { class: clsx('tooltip', { in: this.active }) },
|
|
177
|
-
!this.noArrow && h("div", { "data-popper-arrow": true, class: "tooltip-arrow" }),
|
|
178
|
-
h("div", { "aria-hidden": !this.descriptive || undefined, class: clsx('tooltip-inner', { 'dso-small': this.small }) },
|
|
179
|
-
h("slot", null)))));
|
|
163
|
+
return (h(Host, { class: { hidden: this.hidden } }, h("div", { class: clsx("tooltip", { in: this.active }) }, !this.noArrow && h("div", { "data-popper-arrow": true, class: "tooltip-arrow" }), h("div", { "aria-hidden": !this.descriptive || undefined, class: clsx("tooltip-inner", { "dso-small": this.small }) }, h("slot", null)))));
|
|
180
164
|
}
|
|
181
165
|
getTarget() {
|
|
182
166
|
if (this.for instanceof HTMLElement) {
|
|
183
167
|
return this.for;
|
|
184
168
|
}
|
|
185
|
-
if (typeof this.for ===
|
|
169
|
+
if (typeof this.for === "string") {
|
|
186
170
|
const rootNode = this.element.getRootNode();
|
|
187
171
|
if (!(rootNode instanceof Document || rootNode instanceof ShadowRoot)) {
|
|
188
172
|
throw new Error(`rootNode is not instance of Document or ShadowRoot`);
|
|
@@ -195,218 +179,232 @@ export class Tooltip {
|
|
|
195
179
|
}
|
|
196
180
|
const { parentElement } = this.element;
|
|
197
181
|
if (!parentElement) {
|
|
198
|
-
throw new Error(
|
|
182
|
+
throw new Error("No reference given with [for] attribute but no parent found either");
|
|
199
183
|
}
|
|
200
184
|
return parentElement;
|
|
201
185
|
}
|
|
202
186
|
static get is() { return "dso-tooltip"; }
|
|
203
187
|
static get encapsulation() { return "shadow"; }
|
|
204
|
-
static get originalStyleUrls() {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
"
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
"original": "'top' | 'right' | 'bottom' | 'left'",
|
|
234
|
-
"resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
|
|
235
|
-
"references": {}
|
|
236
|
-
},
|
|
237
|
-
"required": false,
|
|
238
|
-
"optional": false,
|
|
239
|
-
"docs": {
|
|
240
|
-
"tags": [],
|
|
241
|
-
"text": "Set position of tooltip relative to target"
|
|
188
|
+
static get originalStyleUrls() {
|
|
189
|
+
return {
|
|
190
|
+
"$": ["tooltip.scss"]
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
static get styleUrls() {
|
|
194
|
+
return {
|
|
195
|
+
"$": ["tooltip.css"]
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
static get properties() {
|
|
199
|
+
return {
|
|
200
|
+
"descriptive": {
|
|
201
|
+
"type": "boolean",
|
|
202
|
+
"mutable": false,
|
|
203
|
+
"complexType": {
|
|
204
|
+
"original": "boolean",
|
|
205
|
+
"resolved": "boolean",
|
|
206
|
+
"references": {}
|
|
207
|
+
},
|
|
208
|
+
"required": false,
|
|
209
|
+
"optional": false,
|
|
210
|
+
"docs": {
|
|
211
|
+
"tags": [],
|
|
212
|
+
"text": "Defines if the tooltip is descriptive. A descriptive tooltip contains a meaningful message. Tooltips that are not descriptive are hidden from screenreaders using `aria-hidden`."
|
|
213
|
+
},
|
|
214
|
+
"attribute": "descriptive",
|
|
215
|
+
"reflect": true,
|
|
216
|
+
"defaultValue": "false"
|
|
242
217
|
},
|
|
243
|
-
"
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
"
|
|
252
|
-
"
|
|
253
|
-
"
|
|
218
|
+
"position": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"mutable": false,
|
|
221
|
+
"complexType": {
|
|
222
|
+
"original": "\"top\" | \"right\" | \"bottom\" | \"left\"",
|
|
223
|
+
"resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
|
|
224
|
+
"references": {}
|
|
225
|
+
},
|
|
226
|
+
"required": false,
|
|
227
|
+
"optional": false,
|
|
228
|
+
"docs": {
|
|
229
|
+
"tags": [],
|
|
230
|
+
"text": "Set position of tooltip relative to target"
|
|
231
|
+
},
|
|
232
|
+
"attribute": "position",
|
|
233
|
+
"reflect": false,
|
|
234
|
+
"defaultValue": "\"top\""
|
|
254
235
|
},
|
|
255
|
-
"
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
"
|
|
259
|
-
|
|
236
|
+
"strategy": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"mutable": false,
|
|
239
|
+
"complexType": {
|
|
240
|
+
"original": "\"auto\" | \"absolute\" | \"fixed\"",
|
|
241
|
+
"resolved": "\"absolute\" | \"auto\" | \"fixed\"",
|
|
242
|
+
"references": {}
|
|
243
|
+
},
|
|
244
|
+
"required": false,
|
|
245
|
+
"optional": false,
|
|
246
|
+
"docs": {
|
|
247
|
+
"tags": [],
|
|
248
|
+
"text": "Set position strategy of tooltip"
|
|
249
|
+
},
|
|
250
|
+
"attribute": "strategy",
|
|
251
|
+
"reflect": false,
|
|
252
|
+
"defaultValue": "\"auto\""
|
|
260
253
|
},
|
|
261
|
-
"
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
"references": {
|
|
272
|
-
"HTMLElement": {
|
|
273
|
-
"location": "global"
|
|
254
|
+
"for": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"mutable": false,
|
|
257
|
+
"complexType": {
|
|
258
|
+
"original": "string | HTMLElement",
|
|
259
|
+
"resolved": "HTMLElement | string | undefined",
|
|
260
|
+
"references": {
|
|
261
|
+
"HTMLElement": {
|
|
262
|
+
"location": "global"
|
|
263
|
+
}
|
|
274
264
|
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
"reflect": false
|
|
285
|
-
},
|
|
286
|
-
"noArrow": {
|
|
287
|
-
"type": "boolean",
|
|
288
|
-
"mutable": false,
|
|
289
|
-
"complexType": {
|
|
290
|
-
"original": "boolean",
|
|
291
|
-
"resolved": "boolean",
|
|
292
|
-
"references": {}
|
|
293
|
-
},
|
|
294
|
-
"required": false,
|
|
295
|
-
"optional": false,
|
|
296
|
-
"docs": {
|
|
297
|
-
"tags": [],
|
|
298
|
-
"text": "Set attribute `no-arrow` to hide the arrow"
|
|
299
|
-
},
|
|
300
|
-
"attribute": "no-arrow",
|
|
301
|
-
"reflect": false,
|
|
302
|
-
"defaultValue": "false"
|
|
303
|
-
},
|
|
304
|
-
"stateless": {
|
|
305
|
-
"type": "boolean",
|
|
306
|
-
"mutable": false,
|
|
307
|
-
"complexType": {
|
|
308
|
-
"original": "boolean",
|
|
309
|
-
"resolved": "boolean | undefined",
|
|
310
|
-
"references": {}
|
|
311
|
-
},
|
|
312
|
-
"required": false,
|
|
313
|
-
"optional": true,
|
|
314
|
-
"docs": {
|
|
315
|
-
"tags": [],
|
|
316
|
-
"text": "Deactivates mouseover behaviour"
|
|
317
|
-
},
|
|
318
|
-
"attribute": "stateless",
|
|
319
|
-
"reflect": false
|
|
320
|
-
},
|
|
321
|
-
"small": {
|
|
322
|
-
"type": "boolean",
|
|
323
|
-
"mutable": false,
|
|
324
|
-
"complexType": {
|
|
325
|
-
"original": "boolean",
|
|
326
|
-
"resolved": "boolean | undefined",
|
|
327
|
-
"references": {}
|
|
328
|
-
},
|
|
329
|
-
"required": false,
|
|
330
|
-
"optional": true,
|
|
331
|
-
"docs": {
|
|
332
|
-
"tags": [],
|
|
333
|
-
"text": "Defines if the tooltip has a smaller max-width"
|
|
265
|
+
},
|
|
266
|
+
"required": false,
|
|
267
|
+
"optional": true,
|
|
268
|
+
"docs": {
|
|
269
|
+
"tags": [],
|
|
270
|
+
"text": "Specify target element that the tooltip will describe and listens to for events.\r\n* `undefined`: The direct parent is used.\r\n* `string`: The element is located using `document.getElementById()`\r\n* `HTMLElement`: Pass the target element directly\r\nIf the element is not found an Error is thrown."
|
|
271
|
+
},
|
|
272
|
+
"attribute": "for",
|
|
273
|
+
"reflect": false
|
|
334
274
|
},
|
|
335
|
-
"
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
"
|
|
344
|
-
"
|
|
275
|
+
"noArrow": {
|
|
276
|
+
"type": "boolean",
|
|
277
|
+
"mutable": false,
|
|
278
|
+
"complexType": {
|
|
279
|
+
"original": "boolean",
|
|
280
|
+
"resolved": "boolean",
|
|
281
|
+
"references": {}
|
|
282
|
+
},
|
|
283
|
+
"required": false,
|
|
284
|
+
"optional": false,
|
|
285
|
+
"docs": {
|
|
286
|
+
"tags": [],
|
|
287
|
+
"text": "Set attribute `no-arrow` to hide the arrow"
|
|
288
|
+
},
|
|
289
|
+
"attribute": "no-arrow",
|
|
290
|
+
"reflect": false,
|
|
291
|
+
"defaultValue": "false"
|
|
345
292
|
},
|
|
346
|
-
"
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
"
|
|
350
|
-
|
|
293
|
+
"stateless": {
|
|
294
|
+
"type": "boolean",
|
|
295
|
+
"mutable": false,
|
|
296
|
+
"complexType": {
|
|
297
|
+
"original": "boolean",
|
|
298
|
+
"resolved": "boolean | undefined",
|
|
299
|
+
"references": {}
|
|
300
|
+
},
|
|
301
|
+
"required": false,
|
|
302
|
+
"optional": true,
|
|
303
|
+
"docs": {
|
|
304
|
+
"tags": [],
|
|
305
|
+
"text": "Deactivates mouseover behaviour"
|
|
306
|
+
},
|
|
307
|
+
"attribute": "stateless",
|
|
308
|
+
"reflect": false
|
|
351
309
|
},
|
|
352
|
-
"
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
}; }
|
|
360
|
-
static get methods() { return {
|
|
361
|
-
"activate": {
|
|
362
|
-
"complexType": {
|
|
363
|
-
"signature": "() => Promise<void>",
|
|
364
|
-
"parameters": [],
|
|
365
|
-
"references": {
|
|
366
|
-
"Promise": {
|
|
367
|
-
"location": "global"
|
|
368
|
-
}
|
|
310
|
+
"small": {
|
|
311
|
+
"type": "boolean",
|
|
312
|
+
"mutable": false,
|
|
313
|
+
"complexType": {
|
|
314
|
+
"original": "boolean",
|
|
315
|
+
"resolved": "boolean | undefined",
|
|
316
|
+
"references": {}
|
|
369
317
|
},
|
|
370
|
-
"
|
|
318
|
+
"required": false,
|
|
319
|
+
"optional": true,
|
|
320
|
+
"docs": {
|
|
321
|
+
"tags": [],
|
|
322
|
+
"text": "Defines if the tooltip has a smaller max-width"
|
|
323
|
+
},
|
|
324
|
+
"attribute": "small",
|
|
325
|
+
"reflect": false
|
|
371
326
|
},
|
|
372
|
-
"
|
|
373
|
-
"
|
|
374
|
-
"
|
|
327
|
+
"active": {
|
|
328
|
+
"type": "boolean",
|
|
329
|
+
"mutable": true,
|
|
330
|
+
"complexType": {
|
|
331
|
+
"original": "boolean",
|
|
332
|
+
"resolved": "boolean",
|
|
333
|
+
"references": {}
|
|
334
|
+
},
|
|
335
|
+
"required": false,
|
|
336
|
+
"optional": false,
|
|
337
|
+
"docs": {
|
|
338
|
+
"tags": [],
|
|
339
|
+
"text": "Whether or not to show the tooltip. To control the tooltip add the `active` attribute or use the `activate()` and `deactivate()` instance methods."
|
|
340
|
+
},
|
|
341
|
+
"attribute": "active",
|
|
342
|
+
"reflect": true,
|
|
343
|
+
"defaultValue": "false"
|
|
375
344
|
}
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
static get states() {
|
|
348
|
+
return {
|
|
349
|
+
"hidden": {}
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
static get methods() {
|
|
353
|
+
return {
|
|
354
|
+
"activate": {
|
|
355
|
+
"complexType": {
|
|
356
|
+
"signature": "() => Promise<void>",
|
|
357
|
+
"parameters": [],
|
|
358
|
+
"references": {
|
|
359
|
+
"Promise": {
|
|
360
|
+
"location": "global"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"return": "Promise<void>"
|
|
385
364
|
},
|
|
386
|
-
"
|
|
365
|
+
"docs": {
|
|
366
|
+
"text": "Activate the tooltip (Sets the `active` attribute)",
|
|
367
|
+
"tags": []
|
|
368
|
+
}
|
|
387
369
|
},
|
|
388
|
-
"
|
|
389
|
-
"
|
|
390
|
-
|
|
370
|
+
"deactivate": {
|
|
371
|
+
"complexType": {
|
|
372
|
+
"signature": "() => Promise<void>",
|
|
373
|
+
"parameters": [],
|
|
374
|
+
"references": {
|
|
375
|
+
"Promise": {
|
|
376
|
+
"location": "global"
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
"return": "Promise<void>"
|
|
380
|
+
},
|
|
381
|
+
"docs": {
|
|
382
|
+
"text": "Deactivate the tooltip (Removes the `active` attribute)",
|
|
383
|
+
"tags": []
|
|
384
|
+
}
|
|
391
385
|
}
|
|
392
|
-
}
|
|
393
|
-
}
|
|
386
|
+
};
|
|
387
|
+
}
|
|
394
388
|
static get elementRef() { return "element"; }
|
|
395
|
-
static get watchers() {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
389
|
+
static get watchers() {
|
|
390
|
+
return [{
|
|
391
|
+
"propName": "position",
|
|
392
|
+
"methodName": "watchPosition"
|
|
393
|
+
}, {
|
|
394
|
+
"propName": "strategy",
|
|
395
|
+
"methodName": "watchStrategy"
|
|
396
|
+
}, {
|
|
397
|
+
"propName": "active",
|
|
398
|
+
"methodName": "watchActive"
|
|
399
|
+
}];
|
|
400
|
+
}
|
|
401
|
+
static get listeners() {
|
|
402
|
+
return [{
|
|
403
|
+
"name": "click",
|
|
404
|
+
"method": "listenClick",
|
|
405
|
+
"target": undefined,
|
|
406
|
+
"capture": false,
|
|
407
|
+
"passive": false
|
|
408
|
+
}];
|
|
409
|
+
}
|
|
412
410
|
}
|