@vertexvis/ui 0.1.5-testing.0 → 1.0.0-testing.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/components.cjs.js +14 -84
- package/dist/cjs/{dom-a2c535e3.js → dom-v38DVhe2.js} +4 -4
- package/dist/cjs/icon-helper-ut8vR2Rk.js +559 -0
- package/dist/cjs/index-D-R2lvls.js +62 -0
- package/dist/cjs/index-DihxupoM.js +95 -0
- package/dist/cjs/index-DwS9D24e.js +2230 -0
- package/dist/cjs/index.cjs.js +91 -92
- package/dist/cjs/{lib-1bd1e383.js → lib-CCXuRx1c.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -15
- package/dist/cjs/slots-DEdmqbtw.js +29 -0
- package/dist/cjs/templates-C_WUWcnZ.js +230 -0
- package/dist/cjs/tslib.es6-AsLBQn5u.js +68 -0
- package/dist/cjs/vertex-auto-resize-textarea.cjs.entry.js +132 -5
- package/dist/cjs/vertex-avatar-group.cjs.entry.js +12 -5
- package/dist/cjs/vertex-avatar.cjs.entry.js +44 -6
- package/dist/cjs/vertex-badge.cjs.entry.js +21 -6
- package/dist/cjs/vertex-banner.cjs.entry.js +122 -7
- package/dist/cjs/vertex-button.cjs.entry.js +83 -6
- package/dist/cjs/vertex-card-group.cjs.entry.js +34 -6
- package/dist/cjs/vertex-card.cjs.entry.js +33 -5
- package/dist/cjs/vertex-chip.cjs.entry.js +28 -6
- package/dist/cjs/vertex-click-to-edit-textfield.cjs.entry.js +112 -7
- package/dist/cjs/vertex-collapsible.cjs.entry.js +22 -6
- package/dist/cjs/vertex-color-circle-picker.cjs.entry.js +142 -6
- package/dist/cjs/vertex-color-picker.cjs.entry.js +67 -7
- package/dist/cjs/vertex-color-swatch.cjs.entry.js +141 -7
- package/dist/cjs/vertex-context-menu.cjs.entry.js +91 -6
- package/dist/cjs/vertex-dialog.cjs.entry.js +226 -5
- package/dist/cjs/vertex-draggable-popover.cjs.entry.js +79 -6
- package/dist/cjs/vertex-dropdown-menu.cjs.entry.js +34 -6
- package/dist/cjs/vertex-expandable.cjs.entry.js +101 -6
- package/dist/cjs/vertex-help-tooltip.cjs.entry.js +36 -5
- package/dist/cjs/vertex-icon-button.cjs.entry.js +58 -7
- package/dist/cjs/vertex-icon.cjs.entry.js +29 -7
- package/dist/cjs/vertex-logo-loading.cjs.entry.js +12 -5
- package/dist/cjs/vertex-menu-divider.cjs.entry.js +12 -5
- package/dist/cjs/vertex-menu-item.cjs.entry.js +24 -6
- package/dist/cjs/vertex-menu.cjs.entry.js +80 -6
- package/dist/cjs/vertex-popover.cjs.entry.js +1894 -5
- package/dist/cjs/vertex-radio-group.cjs.entry.js +73 -5
- package/dist/cjs/vertex-radio.cjs.entry.js +29 -6
- package/dist/cjs/vertex-resizable.cjs.entry.js +439 -7
- package/dist/cjs/vertex-result-list.cjs.entry.js +300 -7
- package/dist/cjs/vertex-search-bar.cjs.entry.js +528 -7
- package/dist/cjs/vertex-select.cjs.entry.js +181 -6
- package/dist/cjs/vertex-slider.cjs.entry.js +55 -7
- package/dist/cjs/vertex-spinner.cjs.entry.js +32 -6
- package/dist/cjs/vertex-tab.cjs.entry.js +20 -6
- package/dist/cjs/vertex-tabs.cjs.entry.js +104 -6
- package/dist/cjs/vertex-textfield.cjs.entry.js +147 -7
- package/dist/cjs/vertex-toast.cjs.entry.js +109 -6
- package/dist/cjs/vertex-toggle.cjs.entry.js +47 -6
- package/dist/cjs/vertex-tooltip.cjs.entry.js +343 -8
- package/dist/collection/collection-manifest.json +44 -43
- package/dist/collection/components/auto-resize-textarea/auto-resize-textarea.js +222 -213
- package/dist/collection/components/auto-resize-textarea/utils.js +1 -1
- package/dist/collection/components/avatar/avatar.js +153 -137
- package/dist/collection/components/avatar-group/avatar-group.js +16 -16
- package/dist/collection/components/badge/badge.js +75 -66
- package/dist/collection/components/banner/banner.js +284 -247
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/button/button.js +274 -230
- package/dist/collection/components/card/card.js +89 -76
- package/dist/collection/components/card-group/card-group.js +104 -89
- package/dist/collection/components/chip/chip.js +89 -73
- package/dist/collection/components/click-to-edit-text-field/click-to-edit-text-field.js +412 -373
- package/dist/collection/components/collapsible/collapsible.js +71 -65
- package/dist/collection/components/color-circle-picker/color-circle-picker.js +398 -312
- package/dist/collection/components/color-picker/color-picker.js +225 -186
- package/dist/collection/components/color-swatch/color-swatch.js +341 -272
- package/dist/collection/components/color-swatch/lib.js +2 -2
- package/dist/collection/components/context-menu/context-menu.js +168 -161
- package/dist/collection/components/dialog/dialog.js +332 -323
- package/dist/collection/components/dialog/lib.js +4 -4
- package/dist/collection/components/draggable-popover/draggable-popover.js +182 -175
- package/dist/collection/components/dropdown-menu/dropdown-menu.js +122 -108
- package/dist/collection/components/expandable/expandable.js +272 -224
- package/dist/collection/components/help-tooltip/help-tooltip.js +132 -118
- package/dist/collection/components/icon/icon-helper.js +414 -414
- package/dist/collection/components/icon/icon.js +91 -75
- package/dist/collection/components/icon/icons/adjustments.js +1 -1
- package/dist/collection/components/icon/icons/align-to-global.js +1 -1
- package/dist/collection/components/icon/icons/align-to-part.js +1 -1
- package/dist/collection/components/icon/icons/align-to-surface.js +1 -1
- package/dist/collection/components/icon/icons/align-view-to-plane.js +1 -1
- package/dist/collection/components/icon/icons/annotation.js +1 -1
- package/dist/collection/components/icon/icons/arrow-filled.js +1 -1
- package/dist/collection/components/icon/icons/arrow-left-circled.js +1 -1
- package/dist/collection/components/icon/icons/arrow-line-left.js +1 -1
- package/dist/collection/components/icon/icons/arrow-line-right.js +1 -1
- package/dist/collection/components/icon/icons/arrow-partial.js +1 -1
- package/dist/collection/components/icon/icons/arrow-right-circled.js +2 -2
- package/dist/collection/components/icon/icons/arrow-swap.js +1 -1
- package/dist/collection/components/icon/icons/arrow-triangle-left.js +1 -1
- package/dist/collection/components/icon/icons/arrow-triangle-right.js +1 -1
- package/dist/collection/components/icon/icons/arrow-up-circled.js +1 -1
- package/dist/collection/components/icon/icons/attachment.js +1 -1
- package/dist/collection/components/icon/icons/axis-x.js +1 -1
- package/dist/collection/components/icon/icons/axis-y.js +1 -1
- package/dist/collection/components/icon/icons/axis-z.js +1 -1
- package/dist/collection/components/icon/icons/back.js +1 -1
- package/dist/collection/components/icon/icons/box-cursor.js +1 -1
- package/dist/collection/components/icon/icons/box-select.js +1 -1
- package/dist/collection/components/icon/icons/camera-add.js +1 -1
- package/dist/collection/components/icon/icons/camera.js +1 -1
- package/dist/collection/components/icon/icons/caret-down.js +1 -1
- package/dist/collection/components/icon/icons/caret-left.js +1 -1
- package/dist/collection/components/icon/icons/caret-right.js +1 -1
- package/dist/collection/components/icon/icons/caret-up.js +1 -1
- package/dist/collection/components/icon/icons/caution.js +1 -1
- package/dist/collection/components/icon/icons/check-circle.js +1 -1
- package/dist/collection/components/icon/icons/check.js +1 -1
- package/dist/collection/components/icon/icons/chevron-down.js +1 -1
- package/dist/collection/components/icon/icons/chevron-left.js +1 -1
- package/dist/collection/components/icon/icons/chevron-right.js +1 -1
- package/dist/collection/components/icon/icons/chevron-up.js +1 -1
- package/dist/collection/components/icon/icons/circle-outline.js +1 -1
- package/dist/collection/components/icon/icons/close-circle-fill.js +1 -1
- package/dist/collection/components/icon/icons/close-circle.js +1 -1
- package/dist/collection/components/icon/icons/close.js +1 -1
- package/dist/collection/components/icon/icons/collapse-all.js +1 -1
- package/dist/collection/components/icon/icons/columns-add.js +1 -1
- package/dist/collection/components/icon/icons/columns.js +1 -1
- package/dist/collection/components/icon/icons/comment-add.js +1 -1
- package/dist/collection/components/icon/icons/comment-filled.js +1 -1
- package/dist/collection/components/icon/icons/comment-reopen.js +1 -1
- package/dist/collection/components/icon/icons/comment-resolve.js +1 -1
- package/dist/collection/components/icon/icons/comment-show.js +1 -1
- package/dist/collection/components/icon/icons/compare.js +1 -1
- package/dist/collection/components/icon/icons/compress.js +1 -1
- package/dist/collection/components/icon/icons/copy.js +1 -1
- package/dist/collection/components/icon/icons/cross-section.js +1 -1
- package/dist/collection/components/icon/icons/cube-orthographic.js +1 -1
- package/dist/collection/components/icon/icons/cube-perspective.js +1 -1
- package/dist/collection/components/icon/icons/cube-stack.js +1 -1
- package/dist/collection/components/icon/icons/delete.js +1 -1
- package/dist/collection/components/icon/icons/download.js +1 -1
- package/dist/collection/components/icon/icons/drag-indicator.js +1 -1
- package/dist/collection/components/icon/icons/ellipse.js +1 -1
- package/dist/collection/components/icon/icons/error-circle.js +1 -1
- package/dist/collection/components/icon/icons/expand-all.js +1 -1
- package/dist/collection/components/icon/icons/expand.js +1 -1
- package/dist/collection/components/icon/icons/export.js +1 -1
- package/dist/collection/components/icon/icons/file-folder.js +1 -1
- package/dist/collection/components/icon/icons/file-pdf.js +1 -1
- package/dist/collection/components/icon/icons/file.js +1 -1
- package/dist/collection/components/icon/icons/fit-all.js +1 -1
- package/dist/collection/components/icon/icons/fit-selected.js +1 -1
- package/dist/collection/components/icon/icons/flip.js +1 -1
- package/dist/collection/components/icon/icons/folder-plus.js +1 -1
- package/dist/collection/components/icon/icons/forward.js +1 -1
- package/dist/collection/components/icon/icons/gear.js +1 -1
- package/dist/collection/components/icon/icons/help.js +1 -1
- package/dist/collection/components/icon/icons/info.js +1 -1
- package/dist/collection/components/icon/icons/invert.js +1 -1
- package/dist/collection/components/icon/icons/label-off.js +1 -1
- package/dist/collection/components/icon/icons/label.js +1 -1
- package/dist/collection/components/icon/icons/line-dot-left.js +1 -1
- package/dist/collection/components/icon/icons/line-dot-right.js +1 -1
- package/dist/collection/components/icon/icons/line-hash-left.js +1 -1
- package/dist/collection/components/icon/icons/line-hash-right.js +1 -1
- package/dist/collection/components/icon/icons/line.js +1 -1
- package/dist/collection/components/icon/icons/locate.js +1 -1
- package/dist/collection/components/icon/icons/lock-closed.js +1 -1
- package/dist/collection/components/icon/icons/lock-open.js +1 -1
- package/dist/collection/components/icon/icons/markup.js +1 -1
- package/dist/collection/components/icon/icons/menu.js +1 -1
- package/dist/collection/components/icon/icons/notification.js +1 -1
- package/dist/collection/components/icon/icons/open-window.js +1 -1
- package/dist/collection/components/icon/icons/open.js +1 -1
- package/dist/collection/components/icon/icons/pan.js +1 -1
- package/dist/collection/components/icon/icons/paper-airplane.js +1 -1
- package/dist/collection/components/icon/icons/paste.js +1 -1
- package/dist/collection/components/icon/icons/pencil.js +1 -1
- package/dist/collection/components/icon/icons/person-height.js +1 -1
- package/dist/collection/components/icon/icons/person-run.js +1 -1
- package/dist/collection/components/icon/icons/person-short.js +1 -1
- package/dist/collection/components/icon/icons/person-tall.js +1 -1
- package/dist/collection/components/icon/icons/person-walk.js +1 -1
- package/dist/collection/components/icon/icons/pin-fill.js +1 -1
- package/dist/collection/components/icon/icons/pin-line.js +1 -1
- package/dist/collection/components/icon/icons/pin-text-fill.js +1 -1
- package/dist/collection/components/icon/icons/pin-text-square.js +1 -1
- package/dist/collection/components/icon/icons/pin-text.js +1 -1
- package/dist/collection/components/icon/icons/plus-with-arrow.js +1 -1
- package/dist/collection/components/icon/icons/plus.js +1 -1
- package/dist/collection/components/icon/icons/pmi.js +1 -1
- package/dist/collection/components/icon/icons/precise-measurement.js +1 -1
- package/dist/collection/components/icon/icons/rabbit.js +1 -1
- package/dist/collection/components/icon/icons/refresh.js +1 -1
- package/dist/collection/components/icon/icons/rename.js +1 -1
- package/dist/collection/components/icon/icons/report.js +1 -1
- package/dist/collection/components/icon/icons/reset.js +1 -1
- package/dist/collection/components/icon/icons/resize.js +1 -1
- package/dist/collection/components/icon/icons/rotate.js +1 -1
- package/dist/collection/components/icon/icons/ruler.js +1 -1
- package/dist/collection/components/icon/icons/scissors.js +1 -1
- package/dist/collection/components/icon/icons/search.js +1 -1
- package/dist/collection/components/icon/icons/show-only-nearby.js +1 -1
- package/dist/collection/components/icon/icons/snapshots.js +1 -1
- package/dist/collection/components/icon/icons/square-dot-outline.js +1 -1
- package/dist/collection/components/icon/icons/star.js +1 -1
- package/dist/collection/components/icon/icons/tag.js +1 -1
- package/dist/collection/components/icon/icons/tape-measure.js +1 -1
- package/dist/collection/components/icon/icons/teleport-and-align.js +1 -1
- package/dist/collection/components/icon/icons/teleport-toward.js +1 -1
- package/dist/collection/components/icon/icons/teleport.js +1 -1
- package/dist/collection/components/icon/icons/triad.js +1 -1
- package/dist/collection/components/icon/icons/turtle.js +1 -1
- package/dist/collection/components/icon/icons/update.js +1 -1
- package/dist/collection/components/icon/icons/version-history.js +1 -1
- package/dist/collection/components/icon/icons/views.js +1 -1
- package/dist/collection/components/icon/icons/visibility-hidden.js +1 -1
- package/dist/collection/components/icon/icons/visibility-partial.js +1 -1
- package/dist/collection/components/icon/icons/visibility-visible.js +1 -1
- package/dist/collection/components/icon/icons/workspace-add.js +1 -1
- package/dist/collection/components/icon/icons/zoom.js +1 -1
- package/dist/collection/components/icon-button/icon-button.css +5 -2
- package/dist/collection/components/icon-button/icon-button.js +190 -152
- package/dist/collection/components/logo-loading/logo-loading.js +16 -16
- package/dist/collection/components/menu/menu.js +286 -250
- package/dist/collection/components/menu-divider/menu-divider.js +16 -16
- package/dist/collection/components/menu-item/menu-item.js +54 -48
- package/dist/collection/components/popover/middleware.js +22 -22
- package/dist/collection/components/popover/popover.js +654 -567
- package/dist/collection/components/popover/util.js +7 -7
- package/dist/collection/components/radio/radio.js +157 -145
- package/dist/collection/components/radio-group/radio-group.js +135 -133
- package/dist/collection/components/resizable/resizable.js +758 -702
- package/dist/collection/components/result-list/lib.js +6 -6
- package/dist/collection/components/result-list/result-list.js +456 -431
- package/dist/collection/components/search-bar/dom.js +13 -13
- package/dist/collection/components/search-bar/lib.js +50 -50
- package/dist/collection/components/search-bar/search-bar.js +739 -661
- package/dist/collection/components/select/select.css +7 -2
- package/dist/collection/components/select/select.js +332 -303
- package/dist/collection/components/slider/slider.js +258 -220
- package/dist/collection/components/spinner/spinner.js +93 -77
- package/dist/collection/components/tab/tab.js +86 -83
- package/dist/collection/components/tab/util.js +1 -1
- package/dist/collection/components/tabs/tabs.js +150 -151
- package/dist/collection/components/text-field/text-field.js +637 -572
- package/dist/collection/components/toast/toast.js +266 -228
- package/dist/collection/components/toggle/toggle.js +139 -119
- package/dist/collection/components/tooltip/tooltip.js +280 -247
- package/dist/collection/types/icon.js +137 -137
- package/dist/collection/util/components/dom.js +5 -5
- package/dist/collection/util/components/slots.js +17 -17
- package/dist/collection/util/templates/binding.js +121 -121
- package/dist/collection/util/templates/element-pool.js +79 -79
- package/dist/collection/util/templates/templates.js +15 -15
- package/dist/components/components.esm.js +1 -1
- package/dist/components/index.d.ts +6 -42
- package/dist/components/index.esm.js +1 -1
- package/dist/components/index.js +1 -52
- package/dist/components/p-00eaa8d7.entry.js +1 -0
- package/dist/components/p-0180556d.entry.js +1 -0
- package/dist/components/p-091b9e27.entry.js +1 -0
- package/dist/components/p-0af9b71c.entry.js +1 -0
- package/dist/components/p-0bd4222b.entry.js +1 -0
- package/dist/components/p-0c389e6f.entry.js +1 -0
- package/dist/{esm/toggle-1fe22e4f.js → components/p-0f13f6f3.entry.js} +1 -38
- package/dist/components/p-1KuzBK7Z.js +1 -0
- package/dist/components/p-1c5e8df5.entry.js +1 -0
- package/dist/components/p-1e6ff76a.entry.js +1 -0
- package/dist/components/p-26f9abc0.entry.js +1 -0
- package/dist/components/p-28460604.entry.js +1 -0
- package/dist/components/p-2cdfe6bf.entry.js +1 -0
- package/dist/components/p-2e0ee616.entry.js +1 -0
- package/dist/components/p-34d8a04e.entry.js +1 -0
- package/dist/components/p-3ddb0c4e.entry.js +1 -0
- package/dist/components/p-4HdACFFW.js +1 -0
- package/dist/components/p-553d01af.entry.js +1 -0
- package/dist/components/p-595b8bd6.entry.js +1 -0
- package/dist/components/p-5c032b37.entry.js +1 -0
- package/dist/components/p-5e3fe5e7.entry.js +1 -0
- package/dist/components/p-61742c05.entry.js +1 -0
- package/dist/components/p-6b2db72c.entry.js +1 -0
- package/dist/components/p-6c6a2fc5.entry.js +1 -0
- package/dist/components/p-6d03a954.entry.js +1 -0
- package/dist/components/p-6qoO8Yf3.js +1 -0
- package/dist/components/p-705d25f3.entry.js +1 -0
- package/dist/components/p-7f768637.entry.js +1 -0
- package/dist/components/p-8358ad1c.entry.js +1 -0
- package/dist/components/p-88781e72.entry.js +1 -0
- package/dist/components/p-B-yvbsY0.js +1 -0
- package/dist/components/p-B23i1cwy.js +1 -0
- package/dist/components/p-B2oECB2P.js +1 -0
- package/dist/components/p-B9qe9CNv.js +1 -0
- package/dist/components/p-BAfJR2VF.js +1 -0
- package/dist/components/p-BHmM6WC-.js +1 -0
- package/dist/components/p-BLc3P-0q.js +1 -0
- package/dist/components/{p-1356f525.js → p-BSoicxl1.js} +1 -1
- package/dist/components/p-BZ5oF5Ci.js +1 -0
- package/dist/components/p-BZutc-CC.js +1 -0
- package/dist/components/p-BbDaHMlz.js +1 -0
- package/dist/components/p-BdR40EV2.js +1 -0
- package/dist/components/p-Beav1bNT.js +6 -0
- package/dist/components/p-Bo65Viuh.js +1 -0
- package/dist/components/p-ByQGREpQ.js +1 -0
- package/dist/components/p-C1H5-_5m.js +1 -0
- package/dist/components/p-C1qwHMcr.js +1 -0
- package/dist/components/p-C27tS7nl.js +2 -0
- package/dist/components/p-C7VaFE8W.js +1 -0
- package/dist/components/p-CAFdRyLE.js +1 -0
- package/dist/components/p-CDYHYPYF.js +1 -0
- package/dist/components/p-CFaiLAq0.js +1 -0
- package/dist/components/{p-59032668.js → p-CIs0DJX1.js} +1 -1
- package/dist/components/p-CZ1Qa_xv.js +1 -0
- package/dist/components/p-CZyp2id8.js +1 -0
- package/dist/components/p-Ci26QjYl.js +1 -0
- package/dist/components/p-D1P5FeY6.js +1 -0
- package/dist/components/p-D3BXoJJN.js +1 -0
- package/dist/components/p-DEpMfvdS.js +1 -0
- package/dist/components/p-DGZHaSjz.js +1 -0
- package/dist/components/p-DHNuRvq0.js +1 -0
- package/dist/components/p-DMLgHhJc.js +1 -0
- package/dist/components/p-DO6VjClS.js +1 -0
- package/dist/components/p-DPgx10Cw.js +1 -0
- package/dist/components/p-DXQBJLz-.js +1 -0
- package/dist/components/p-D_mp9WMh.js +1 -0
- package/dist/components/p-De54LBPx.js +1 -0
- package/dist/components/p-DjrAIJhB.js +1 -0
- package/dist/components/p-DsAkiOMC.js +1 -0
- package/dist/components/p-Dw5WRKyY.js +1 -0
- package/dist/components/p-ILu24ZUX.js +1 -0
- package/dist/components/p-K5a7HQMt.js +1 -0
- package/dist/components/p-KilWQmEJ.js +1 -0
- package/dist/components/p-Mnv_zHXq.js +1 -0
- package/dist/components/p-RaMDrnzd.js +1 -0
- package/dist/components/p-TLO_pywp.js +1 -0
- package/dist/components/p-_3Hgy0Z4.js +1 -0
- package/dist/components/p-a287d016.entry.js +1 -0
- package/dist/components/p-a886721b.entry.js +1 -0
- package/dist/components/p-a8e75bdc.entry.js +1 -0
- package/dist/components/p-al_CUADF.js +1 -0
- package/dist/components/p-b5921385.entry.js +1 -0
- package/dist/components/p-c2f3cf8b.entry.js +1 -0
- package/dist/components/p-ca6a4b08.entry.js +1 -0
- package/dist/components/p-e311af0e.entry.js +1 -0
- package/dist/components/p-eYTN_sVb.js +1 -0
- package/dist/components/p-edfd86c9.entry.js +1 -0
- package/dist/components/p-ef419ddf.entry.js +1 -0
- package/dist/components/p-efd0223b.entry.js +1 -0
- package/dist/components/p-f1abef98.entry.js +1 -0
- package/dist/components/p-f23df530.entry.js +1 -0
- package/dist/components/p-f37dc3c4.entry.js +1 -0
- package/dist/components/p-f793f80a.entry.js +1 -0
- package/dist/components/p-y4p55dbx.js +1 -0
- package/dist/components/vertex-auto-resize-textarea.d.ts +2 -2
- package/dist/components/vertex-auto-resize-textarea.js +1 -6
- package/dist/components/vertex-avatar-group.d.ts +2 -2
- package/dist/components/vertex-avatar-group.js +1 -34
- package/dist/components/vertex-avatar.d.ts +2 -2
- package/dist/components/vertex-avatar.js +1 -68
- package/dist/components/vertex-badge.d.ts +2 -2
- package/dist/components/vertex-badge.js +1 -43
- package/dist/components/vertex-banner.d.ts +2 -2
- package/dist/components/vertex-banner.js +1 -141
- package/dist/components/vertex-button.d.ts +2 -2
- package/dist/components/vertex-button.js +1 -96
- package/dist/components/vertex-card-group.d.ts +2 -2
- package/dist/components/vertex-card-group.js +1 -51
- package/dist/components/vertex-card.d.ts +2 -2
- package/dist/components/vertex-card.js +1 -49
- package/dist/components/vertex-chip.d.ts +2 -2
- package/dist/components/vertex-chip.js +1 -45
- package/dist/components/vertex-click-to-edit-textfield.d.ts +2 -2
- package/dist/components/vertex-click-to-edit-textfield.js +1 -156
- package/dist/components/vertex-collapsible.d.ts +2 -2
- package/dist/components/vertex-collapsible.js +1 -63
- package/dist/components/vertex-color-circle-picker.d.ts +2 -2
- package/dist/components/vertex-color-circle-picker.js +1 -131
- package/dist/components/vertex-color-picker.d.ts +2 -2
- package/dist/components/vertex-color-picker.js +1 -75
- package/dist/components/vertex-color-swatch.d.ts +2 -2
- package/dist/components/vertex-color-swatch.js +1 -6
- package/dist/components/vertex-context-menu.d.ts +2 -2
- package/dist/components/vertex-context-menu.js +1 -125
- package/dist/components/vertex-dialog.d.ts +2 -2
- package/dist/components/vertex-dialog.js +1 -265
- package/dist/components/vertex-draggable-popover.d.ts +2 -2
- package/dist/components/vertex-draggable-popover.js +1 -119
- package/dist/components/vertex-dropdown-menu.d.ts +2 -2
- package/dist/components/vertex-dropdown-menu.js +1 -64
- package/dist/components/vertex-expandable.d.ts +2 -2
- package/dist/components/vertex-expandable.js +1 -6
- package/dist/components/vertex-help-tooltip.d.ts +2 -2
- package/dist/components/vertex-help-tooltip.js +1 -67
- package/dist/components/vertex-icon-button.d.ts +2 -2
- package/dist/components/vertex-icon-button.js +1 -6
- package/dist/components/vertex-icon.d.ts +2 -2
- package/dist/components/vertex-icon.js +1 -6
- package/dist/components/vertex-logo-loading.d.ts +2 -2
- package/dist/components/vertex-logo-loading.js +1 -34
- package/dist/components/vertex-menu-divider.d.ts +2 -2
- package/dist/components/vertex-menu-divider.js +1 -34
- package/dist/components/vertex-menu-item.d.ts +2 -2
- package/dist/components/vertex-menu-item.js +1 -44
- package/dist/components/vertex-menu.d.ts +2 -2
- package/dist/components/vertex-menu.js +1 -6
- package/dist/components/vertex-popover.d.ts +2 -2
- package/dist/components/vertex-popover.js +1 -6
- package/dist/components/vertex-radio-group.d.ts +2 -2
- package/dist/components/vertex-radio-group.js +1 -98
- package/dist/components/vertex-radio.d.ts +2 -2
- package/dist/components/vertex-radio.js +1 -56
- package/dist/components/vertex-resizable.d.ts +2 -2
- package/dist/components/vertex-resizable.js +1 -463
- package/dist/components/vertex-result-list.d.ts +2 -2
- package/dist/components/vertex-result-list.js +1 -6
- package/dist/components/vertex-search-bar.d.ts +2 -2
- package/dist/components/vertex-search-bar.js +1 -568
- package/dist/components/vertex-select.d.ts +2 -2
- package/dist/components/vertex-select.js +1 -202
- package/dist/components/vertex-slider.d.ts +2 -2
- package/dist/components/vertex-slider.js +1 -81
- package/dist/components/vertex-spinner.d.ts +2 -2
- package/dist/components/vertex-spinner.js +1 -49
- package/dist/components/vertex-tab.d.ts +2 -2
- package/dist/components/vertex-tab.js +1 -46
- package/dist/components/vertex-tabs.d.ts +2 -2
- package/dist/components/vertex-tabs.js +1 -133
- package/dist/components/vertex-textfield.d.ts +2 -2
- package/dist/components/vertex-textfield.js +1 -6
- package/dist/components/vertex-toast.d.ts +2 -2
- package/dist/components/vertex-toast.js +1 -127
- package/dist/components/vertex-toggle.d.ts +2 -2
- package/dist/components/vertex-toggle.js +1 -67
- package/dist/components/vertex-tooltip.d.ts +2 -2
- package/dist/components/vertex-tooltip.js +1 -6
- package/dist/esm/components.js +14 -83
- package/dist/{components/dom.js → esm/dom-Oz9KwTs0.js} +4 -4
- package/dist/esm/icon-helper-Dw0fFePg.js +557 -0
- package/dist/esm/index-Beav1bNT.js +92 -0
- package/dist/esm/index-C27tS7nl.js +2219 -0
- package/dist/esm/index-DYRkgxax.js +60 -0
- package/dist/esm/index.js +50 -49
- package/dist/esm/{lib-73fbca8b.js → lib-DgySd_r0.js} +2 -2
- package/dist/esm/loader.js +6 -14
- package/dist/esm/slots-DXuCPm6v.js +26 -0
- package/dist/esm/templates-DZ8xV3--.js +228 -0
- package/dist/esm/tslib.es6-CIs0DJX1.js +65 -0
- package/dist/esm/vertex-auto-resize-textarea.entry.js +136 -3
- package/dist/esm/vertex-avatar-group.entry.js +15 -2
- package/dist/esm/vertex-avatar.entry.js +47 -3
- package/dist/esm/vertex-badge.entry.js +24 -3
- package/dist/esm/vertex-banner.entry.js +125 -4
- package/dist/esm/vertex-button.entry.js +86 -3
- package/dist/esm/vertex-card-group.entry.js +37 -3
- package/dist/esm/vertex-card.entry.js +36 -2
- package/dist/esm/vertex-chip.entry.js +31 -3
- package/dist/esm/vertex-click-to-edit-textfield.entry.js +114 -3
- package/dist/esm/vertex-collapsible.entry.js +25 -3
- package/dist/esm/vertex-color-circle-picker.entry.js +145 -3
- package/dist/esm/vertex-color-picker.entry.js +70 -4
- package/dist/esm/vertex-color-swatch.entry.js +144 -4
- package/dist/esm/vertex-context-menu.entry.js +93 -2
- package/dist/esm/vertex-dialog.entry.js +230 -3
- package/dist/esm/vertex-draggable-popover.entry.js +82 -3
- package/dist/esm/vertex-dropdown-menu.entry.js +36 -2
- package/dist/esm/vertex-expandable.entry.js +104 -3
- package/dist/esm/vertex-help-tooltip.entry.js +39 -2
- package/dist/esm/vertex-icon-button.entry.js +61 -4
- package/dist/esm/vertex-icon.entry.js +32 -4
- package/dist/esm/vertex-logo-loading.entry.js +15 -2
- package/dist/esm/vertex-menu-divider.entry.js +15 -2
- package/dist/esm/vertex-menu-item.entry.js +27 -3
- package/dist/esm/vertex-menu.entry.js +83 -3
- package/dist/esm/vertex-popover.entry.js +1898 -3
- package/dist/esm/vertex-radio-group.entry.js +76 -2
- package/dist/esm/vertex-radio.entry.js +32 -3
- package/dist/esm/vertex-resizable.entry.js +442 -4
- package/dist/esm/vertex-result-list.entry.js +304 -5
- package/dist/esm/vertex-search-bar.entry.js +532 -5
- package/dist/esm/vertex-select.entry.js +184 -3
- package/dist/esm/vertex-slider.entry.js +58 -4
- package/dist/esm/vertex-spinner.entry.js +35 -3
- package/dist/esm/vertex-tab.entry.js +23 -3
- package/dist/esm/vertex-tabs.entry.js +108 -4
- package/dist/esm/vertex-textfield.entry.js +149 -3
- package/dist/esm/vertex-toast.entry.js +112 -3
- package/dist/esm/vertex-toggle.entry.js +50 -3
- package/dist/esm/vertex-tooltip.entry.js +347 -6
- package/dist/types/components/auto-resize-textarea/auto-resize-textarea.d.ts +43 -43
- package/dist/types/components/avatar/avatar.d.ts +33 -33
- package/dist/types/components/avatar-group/avatar-group.d.ts +1 -1
- package/dist/types/components/badge/badge.d.ts +10 -10
- package/dist/types/components/banner/banner.d.ts +50 -50
- package/dist/types/components/button/button.d.ts +52 -52
- package/dist/types/components/card/card.d.ts +19 -19
- package/dist/types/components/card-group/card-group.d.ts +13 -13
- package/dist/types/components/chip/chip.d.ts +11 -11
- package/dist/types/components/click-to-edit-text-field/click-to-edit-text-field.d.ts +78 -78
- package/dist/types/components/collapsible/collapsible.d.ts +10 -10
- package/dist/types/components/color-circle-picker/color-circle-picker.d.ts +89 -89
- package/dist/types/components/color-picker/color-picker.d.ts +46 -46
- package/dist/types/components/color-swatch/color-swatch.d.ts +69 -69
- package/dist/types/components/context-menu/context-menu.d.ts +33 -33
- package/dist/types/components/dialog/dialog.d.ts +55 -55
- package/dist/types/components/draggable-popover/draggable-popover.d.ts +32 -32
- package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +22 -22
- package/dist/types/components/expandable/expandable.d.ts +58 -58
- package/dist/types/components/help-tooltip/help-tooltip.d.ts +22 -22
- package/dist/types/components/icon/icon.d.ts +15 -15
- package/dist/types/components/icon/icons/adjustments.d.ts +0 -1
- package/dist/types/components/icon/icons/align-to-global.d.ts +0 -1
- package/dist/types/components/icon/icons/align-to-part.d.ts +0 -1
- package/dist/types/components/icon/icons/align-to-surface.d.ts +0 -1
- package/dist/types/components/icon/icons/align-view-to-plane.d.ts +0 -1
- package/dist/types/components/icon/icons/annotation.d.ts +0 -1
- package/dist/types/components/icon/icons/arrow-filled.d.ts +0 -1
- package/dist/types/components/icon/icons/arrow-left-circled.d.ts +0 -1
- package/dist/types/components/icon/icons/arrow-line-left.d.ts +0 -1
- package/dist/types/components/icon/icons/arrow-line-right.d.ts +0 -1
- package/dist/types/components/icon/icons/arrow-partial.d.ts +0 -1
- package/dist/types/components/icon/icons/arrow-right-circled.d.ts +0 -1
- package/dist/types/components/icon/icons/arrow-swap.d.ts +0 -1
- package/dist/types/components/icon/icons/arrow-triangle-left.d.ts +0 -1
- package/dist/types/components/icon/icons/arrow-triangle-right.d.ts +0 -1
- package/dist/types/components/icon/icons/arrow-up-circled.d.ts +0 -1
- package/dist/types/components/icon/icons/attachment.d.ts +0 -1
- package/dist/types/components/icon/icons/axis-x.d.ts +0 -1
- package/dist/types/components/icon/icons/axis-y.d.ts +0 -1
- package/dist/types/components/icon/icons/axis-z.d.ts +0 -1
- package/dist/types/components/icon/icons/back.d.ts +0 -1
- package/dist/types/components/icon/icons/box-cursor.d.ts +0 -1
- package/dist/types/components/icon/icons/box-select.d.ts +0 -1
- package/dist/types/components/icon/icons/camera-add.d.ts +0 -1
- package/dist/types/components/icon/icons/camera.d.ts +0 -1
- package/dist/types/components/icon/icons/caret-down.d.ts +0 -1
- package/dist/types/components/icon/icons/caret-left.d.ts +0 -1
- package/dist/types/components/icon/icons/caret-right.d.ts +0 -1
- package/dist/types/components/icon/icons/caret-up.d.ts +0 -1
- package/dist/types/components/icon/icons/caution.d.ts +0 -1
- package/dist/types/components/icon/icons/check-circle.d.ts +0 -1
- package/dist/types/components/icon/icons/check.d.ts +0 -1
- package/dist/types/components/icon/icons/chevron-down.d.ts +0 -1
- package/dist/types/components/icon/icons/chevron-left.d.ts +0 -1
- package/dist/types/components/icon/icons/chevron-right.d.ts +0 -1
- package/dist/types/components/icon/icons/chevron-up.d.ts +0 -1
- package/dist/types/components/icon/icons/circle-outline.d.ts +0 -1
- package/dist/types/components/icon/icons/close-circle-fill.d.ts +0 -1
- package/dist/types/components/icon/icons/close-circle.d.ts +0 -1
- package/dist/types/components/icon/icons/close.d.ts +0 -1
- package/dist/types/components/icon/icons/collapse-all.d.ts +0 -1
- package/dist/types/components/icon/icons/columns-add.d.ts +0 -1
- package/dist/types/components/icon/icons/columns.d.ts +0 -1
- package/dist/types/components/icon/icons/comment-add.d.ts +0 -1
- package/dist/types/components/icon/icons/comment-filled.d.ts +0 -1
- package/dist/types/components/icon/icons/comment-reopen.d.ts +0 -1
- package/dist/types/components/icon/icons/comment-resolve.d.ts +0 -1
- package/dist/types/components/icon/icons/comment-show.d.ts +0 -1
- package/dist/types/components/icon/icons/compare.d.ts +0 -1
- package/dist/types/components/icon/icons/compress.d.ts +0 -1
- package/dist/types/components/icon/icons/copy.d.ts +0 -1
- package/dist/types/components/icon/icons/cross-section.d.ts +0 -1
- package/dist/types/components/icon/icons/cube-orthographic.d.ts +0 -1
- package/dist/types/components/icon/icons/cube-perspective.d.ts +0 -1
- package/dist/types/components/icon/icons/cube-stack.d.ts +0 -1
- package/dist/types/components/icon/icons/delete.d.ts +0 -1
- package/dist/types/components/icon/icons/download.d.ts +0 -1
- package/dist/types/components/icon/icons/drag-indicator.d.ts +0 -1
- package/dist/types/components/icon/icons/ellipse.d.ts +0 -1
- package/dist/types/components/icon/icons/error-circle.d.ts +0 -1
- package/dist/types/components/icon/icons/expand-all.d.ts +0 -1
- package/dist/types/components/icon/icons/expand.d.ts +0 -1
- package/dist/types/components/icon/icons/export.d.ts +0 -1
- package/dist/types/components/icon/icons/file-folder.d.ts +0 -1
- package/dist/types/components/icon/icons/file-pdf.d.ts +0 -1
- package/dist/types/components/icon/icons/file.d.ts +0 -1
- package/dist/types/components/icon/icons/fit-all.d.ts +0 -1
- package/dist/types/components/icon/icons/fit-selected.d.ts +0 -1
- package/dist/types/components/icon/icons/flip.d.ts +0 -1
- package/dist/types/components/icon/icons/folder-plus.d.ts +0 -1
- package/dist/types/components/icon/icons/forward.d.ts +0 -1
- package/dist/types/components/icon/icons/gear.d.ts +0 -1
- package/dist/types/components/icon/icons/help.d.ts +0 -1
- package/dist/types/components/icon/icons/info.d.ts +0 -1
- package/dist/types/components/icon/icons/invert.d.ts +0 -1
- package/dist/types/components/icon/icons/label-off.d.ts +0 -1
- package/dist/types/components/icon/icons/label.d.ts +0 -1
- package/dist/types/components/icon/icons/line-dot-left.d.ts +0 -1
- package/dist/types/components/icon/icons/line-dot-right.d.ts +0 -1
- package/dist/types/components/icon/icons/line-hash-left.d.ts +0 -1
- package/dist/types/components/icon/icons/line-hash-right.d.ts +0 -1
- package/dist/types/components/icon/icons/line.d.ts +0 -1
- package/dist/types/components/icon/icons/locate.d.ts +0 -1
- package/dist/types/components/icon/icons/lock-closed.d.ts +0 -1
- package/dist/types/components/icon/icons/lock-open.d.ts +0 -1
- package/dist/types/components/icon/icons/markup.d.ts +0 -1
- package/dist/types/components/icon/icons/menu.d.ts +0 -1
- package/dist/types/components/icon/icons/notification.d.ts +0 -1
- package/dist/types/components/icon/icons/open-window.d.ts +0 -1
- package/dist/types/components/icon/icons/open.d.ts +0 -1
- package/dist/types/components/icon/icons/pan.d.ts +0 -1
- package/dist/types/components/icon/icons/paper-airplane.d.ts +0 -1
- package/dist/types/components/icon/icons/paste.d.ts +0 -1
- package/dist/types/components/icon/icons/pencil.d.ts +0 -1
- package/dist/types/components/icon/icons/person-height.d.ts +0 -1
- package/dist/types/components/icon/icons/person-run.d.ts +0 -1
- package/dist/types/components/icon/icons/person-short.d.ts +0 -1
- package/dist/types/components/icon/icons/person-tall.d.ts +0 -1
- package/dist/types/components/icon/icons/person-walk.d.ts +0 -1
- package/dist/types/components/icon/icons/pin-fill.d.ts +0 -1
- package/dist/types/components/icon/icons/pin-line.d.ts +0 -1
- package/dist/types/components/icon/icons/pin-text-fill.d.ts +0 -1
- package/dist/types/components/icon/icons/pin-text-square.d.ts +0 -1
- package/dist/types/components/icon/icons/pin-text.d.ts +0 -1
- package/dist/types/components/icon/icons/plus-with-arrow.d.ts +0 -1
- package/dist/types/components/icon/icons/plus.d.ts +0 -1
- package/dist/types/components/icon/icons/pmi.d.ts +0 -1
- package/dist/types/components/icon/icons/precise-measurement.d.ts +0 -1
- package/dist/types/components/icon/icons/rabbit.d.ts +0 -1
- package/dist/types/components/icon/icons/refresh.d.ts +0 -1
- package/dist/types/components/icon/icons/rename.d.ts +0 -1
- package/dist/types/components/icon/icons/report.d.ts +0 -1
- package/dist/types/components/icon/icons/reset.d.ts +0 -1
- package/dist/types/components/icon/icons/resize.d.ts +0 -1
- package/dist/types/components/icon/icons/rotate.d.ts +0 -1
- package/dist/types/components/icon/icons/ruler.d.ts +0 -1
- package/dist/types/components/icon/icons/scissors.d.ts +0 -1
- package/dist/types/components/icon/icons/search.d.ts +0 -1
- package/dist/types/components/icon/icons/show-only-nearby.d.ts +0 -1
- package/dist/types/components/icon/icons/snapshots.d.ts +0 -1
- package/dist/types/components/icon/icons/square-dot-outline.d.ts +0 -1
- package/dist/types/components/icon/icons/star.d.ts +0 -1
- package/dist/types/components/icon/icons/tag.d.ts +0 -1
- package/dist/types/components/icon/icons/tape-measure.d.ts +0 -1
- package/dist/types/components/icon/icons/teleport-and-align.d.ts +0 -1
- package/dist/types/components/icon/icons/teleport-toward.d.ts +0 -1
- package/dist/types/components/icon/icons/teleport.d.ts +0 -1
- package/dist/types/components/icon/icons/triad.d.ts +0 -1
- package/dist/types/components/icon/icons/turtle.d.ts +0 -1
- package/dist/types/components/icon/icons/update.d.ts +0 -1
- package/dist/types/components/icon/icons/version-history.d.ts +0 -1
- package/dist/types/components/icon/icons/views.d.ts +0 -1
- package/dist/types/components/icon/icons/visibility-hidden.d.ts +0 -1
- package/dist/types/components/icon/icons/visibility-partial.d.ts +0 -1
- package/dist/types/components/icon/icons/visibility-visible.d.ts +0 -1
- package/dist/types/components/icon/icons/workspace-add.d.ts +0 -1
- package/dist/types/components/icon/icons/zoom.d.ts +0 -1
- package/dist/types/components/icon-button/icon-button.d.ts +36 -36
- package/dist/types/components/logo-loading/logo-loading.d.ts +1 -1
- package/dist/types/components/menu/menu.d.ts +53 -53
- package/dist/types/components/menu-divider/menu-divider.d.ts +1 -1
- package/dist/types/components/menu-item/menu-item.d.ts +6 -6
- package/dist/types/components/popover/popover.d.ts +156 -156
- package/dist/types/components/radio/radio.d.ts +28 -28
- package/dist/types/components/radio-group/radio-group.d.ts +23 -23
- package/dist/types/components/resizable/resizable.d.ts +161 -161
- package/dist/types/components/result-list/result-list.d.ts +42 -42
- package/dist/types/components/result-list/types.d.ts +2 -2
- package/dist/types/components/search-bar/lib.d.ts +5 -5
- package/dist/types/components/search-bar/search-bar.d.ts +144 -144
- package/dist/types/components/select/select.d.ts +65 -65
- package/dist/types/components/slider/slider.d.ts +44 -44
- package/dist/types/components/spinner/spinner.d.ts +11 -11
- package/dist/types/components/tab/tab.d.ts +8 -8
- package/dist/types/components/tabs/tabs.d.ts +20 -20
- package/dist/types/components/text-field/text-field.d.ts +112 -112
- package/dist/types/components/toast/toast.d.ts +50 -50
- package/dist/types/components/toggle/toggle.d.ts +17 -17
- package/dist/types/components/tooltip/tooltip.d.ts +60 -60
- package/dist/types/components.d.ts +970 -90
- package/dist/types/stencil-public-runtime.d.ts +257 -34
- package/dist/types/types/icon.d.ts +137 -137
- package/dist/types/types/point.d.ts +2 -2
- package/dist/types/util/components/slots.d.ts +3 -3
- package/dist/types/util/templates/binding.d.ts +20 -20
- package/dist/types/util/templates/disposable.d.ts +4 -4
- package/dist/types/util/templates/element-pool.d.ts +19 -19
- package/dist/types/util/templates/templates.d.ts +2 -2
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +5 -2
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/package.json +32 -32
- package/dist/cjs/auto-resize-textarea-deb05359.js +0 -137
- package/dist/cjs/avatar-e69bb687.js +0 -45
- package/dist/cjs/avatar-group-d2af53e4.js +0 -17
- package/dist/cjs/badge-d39ac1fc.js +0 -23
- package/dist/cjs/banner-8325d5ca.js +0 -104
- package/dist/cjs/button-e63d25b1.js +0 -70
- package/dist/cjs/card-ae9e8a8f.js +0 -30
- package/dist/cjs/card-group-da93e610.js +0 -30
- package/dist/cjs/chip-a3b2e8e0.js +0 -25
- package/dist/cjs/click-to-edit-text-field-2c87ee66.js +0 -105
- package/dist/cjs/collapsible-50ea984c.js +0 -25
- package/dist/cjs/color-circle-picker-b0927289.js +0 -82
- package/dist/cjs/color-picker-6aa97d3b.js +0 -47
- package/dist/cjs/color-swatch-6d98da5f.js +0 -95
- package/dist/cjs/context-menu-664922cd.js +0 -91
- package/dist/cjs/dialog-34244fe1.js +0 -225
- package/dist/cjs/dom-ff96a4bc.js +0 -75
- package/dist/cjs/draggable-popover-125717a7.js +0 -83
- package/dist/cjs/dropdown-menu-5ae03a72.js +0 -31
- package/dist/cjs/expandable-b1cd4f0b.js +0 -72
- package/dist/cjs/help-tooltip-f72eccc7.js +0 -34
- package/dist/cjs/icon-ab3e2b83.js +0 -26
- package/dist/cjs/icon-button-9a6314cd.js +0 -43
- package/dist/cjs/icon-helper-b2117772.js +0 -785
- package/dist/cjs/index-6a92256c.js +0 -2152
- package/dist/cjs/index-e1b40fa6.js +0 -91
- package/dist/cjs/logo-loading-4d49fedf.js +0 -17
- package/dist/cjs/menu-bfc03108.js +0 -74
- package/dist/cjs/menu-divider-5bdebe5d.js +0 -17
- package/dist/cjs/menu-item-d213fd4d.js +0 -25
- package/dist/cjs/popover-942209b8.js +0 -1706
- package/dist/cjs/radio-bff991d2.js +0 -34
- package/dist/cjs/radio-group-11ecf8bf.js +0 -78
- package/dist/cjs/resizable-c0a69532.js +0 -423
- package/dist/cjs/result-list-241ffe8d.js +0 -304
- package/dist/cjs/search-bar-2e7ee35a.js +0 -527
- package/dist/cjs/select-554f3c11.js +0 -163
- package/dist/cjs/shadow-css-8eb74fbb.js +0 -389
- package/dist/cjs/slider-7714cccb.js +0 -44
- package/dist/cjs/slots-fb5ac359.js +0 -29
- package/dist/cjs/spinner-bb990a42.js +0 -29
- package/dist/cjs/tab-4335cd8f.js +0 -26
- package/dist/cjs/tabs-6f3e76e1.js +0 -111
- package/dist/cjs/templates-e7b3ffbb.js +0 -230
- package/dist/cjs/text-field-bccbde1f.js +0 -133
- package/dist/cjs/toast-bee7f47b.js +0 -90
- package/dist/cjs/toggle-a5dde469.js +0 -40
- package/dist/cjs/tooltip-634eb8c9.js +0 -333
- package/dist/cjs/tslib.es6-838fd860.js +0 -68
- package/dist/components/auto-resize-textarea.js +0 -157
- package/dist/components/color-swatch.js +0 -124
- package/dist/components/expandable.js +0 -100
- package/dist/components/icon-button.js +0 -63
- package/dist/components/icon-helper.js +0 -783
- package/dist/components/icon.js +0 -43
- package/dist/components/index2.js +0 -89
- package/dist/components/menu.js +0 -103
- package/dist/components/p-01d4be1d.entry.js +0 -1
- package/dist/components/p-0541e2b0.js +0 -1
- package/dist/components/p-09ba50c3.js +0 -1
- package/dist/components/p-0b4406fa.entry.js +0 -1
- package/dist/components/p-0de26b21.entry.js +0 -1
- package/dist/components/p-0e628c05.js +0 -1
- package/dist/components/p-16fc9e9a.entry.js +0 -1
- package/dist/components/p-18ed73e9.js +0 -1
- package/dist/components/p-1e645c1f.js +0 -1
- package/dist/components/p-211c1186.entry.js +0 -1
- package/dist/components/p-226e83a6.entry.js +0 -1
- package/dist/components/p-22ec9b78.entry.js +0 -1
- package/dist/components/p-24c72960.entry.js +0 -1
- package/dist/components/p-2930bcb0.entry.js +0 -1
- package/dist/components/p-29d7697f.js +0 -1
- package/dist/components/p-2ae8175d.entry.js +0 -1
- package/dist/components/p-2cff3285.js +0 -1
- package/dist/components/p-33400eed.entry.js +0 -1
- package/dist/components/p-3508048d.js +0 -12
- package/dist/components/p-36c853c4.js +0 -1
- package/dist/components/p-39133bc7.js +0 -1
- package/dist/components/p-3b794014.entry.js +0 -1
- package/dist/components/p-3dd08a0f.js +0 -1
- package/dist/components/p-406e73da.entry.js +0 -1
- package/dist/components/p-407430fe.entry.js +0 -1
- package/dist/components/p-41ced35c.entry.js +0 -1
- package/dist/components/p-43b1b3f9.js +0 -1
- package/dist/components/p-48629bf1.js +0 -1
- package/dist/components/p-4e3ba3df.entry.js +0 -1
- package/dist/components/p-53515813.entry.js +0 -1
- package/dist/components/p-5366a759.entry.js +0 -1
- package/dist/components/p-573b8ec6.entry.js +0 -1
- package/dist/components/p-59fb829f.js +0 -1
- package/dist/components/p-5fb1724f.js +0 -1
- package/dist/components/p-606596de.entry.js +0 -1
- package/dist/components/p-65f9817e.js +0 -1
- package/dist/components/p-6834631c.js +0 -2
- package/dist/components/p-69375605.entry.js +0 -1
- package/dist/components/p-6a49c365.entry.js +0 -1
- package/dist/components/p-6a640a2c.js +0 -1
- package/dist/components/p-6b6c2260.js +0 -1
- package/dist/components/p-6b862967.js +0 -1
- package/dist/components/p-6d4f055b.entry.js +0 -1
- package/dist/components/p-756c9977.entry.js +0 -1
- package/dist/components/p-7ace7800.entry.js +0 -1
- package/dist/components/p-7e6ca4fb.entry.js +0 -1
- package/dist/components/p-80c989fa.entry.js +0 -1
- package/dist/components/p-817bf6ff.js +0 -1
- package/dist/components/p-81cb4da4.js +0 -1
- package/dist/components/p-8a52767f.js +0 -1
- package/dist/components/p-8b211d6f.js +0 -1
- package/dist/components/p-8c69bb83.js +0 -1
- package/dist/components/p-8d83dfff.entry.js +0 -1
- package/dist/components/p-8fe0084d.js +0 -1
- package/dist/components/p-90931a94.js +0 -1
- package/dist/components/p-90b4e04b.js +0 -1
- package/dist/components/p-90cf31d2.js +0 -1
- package/dist/components/p-91123ff6.entry.js +0 -1
- package/dist/components/p-95358d00.entry.js +0 -1
- package/dist/components/p-96f55673.js +0 -1
- package/dist/components/p-988058f9.js +0 -1
- package/dist/components/p-9c384f6c.entry.js +0 -1
- package/dist/components/p-a2018217.entry.js +0 -1
- package/dist/components/p-a3c04bbd.js +0 -1
- package/dist/components/p-a6614625.js +0 -1
- package/dist/components/p-bca6275a.entry.js +0 -1
- package/dist/components/p-bec53c3a.js +0 -1
- package/dist/components/p-c2706288.js +0 -1
- package/dist/components/p-c2c076f1.js +0 -1
- package/dist/components/p-c3ec6642.js +0 -19
- package/dist/components/p-c8ab09fb.js +0 -1
- package/dist/components/p-c939fa4e.js +0 -1
- package/dist/components/p-c9a967d9.js +0 -1
- package/dist/components/p-cc2e3192.entry.js +0 -1
- package/dist/components/p-d7c0c287.entry.js +0 -1
- package/dist/components/p-dfe98f07.entry.js +0 -1
- package/dist/components/p-e3d0c2d1.entry.js +0 -1
- package/dist/components/p-e3ea44b2.js +0 -1
- package/dist/components/p-ea8f3750.entry.js +0 -1
- package/dist/components/p-ec7be8df.js +0 -1
- package/dist/components/p-ee496965.entry.js +0 -1
- package/dist/components/p-f2bc7ec5.js +0 -1
- package/dist/components/p-f55574fb.js +0 -1
- package/dist/components/p-f6f2bc86.entry.js +0 -1
- package/dist/components/p-fe062eb0.js +0 -7
- package/dist/components/p-fe7e7a74.entry.js +0 -1
- package/dist/components/p-fedcc21e.js +0 -1
- package/dist/components/p-ff4a1c3a.js +0 -1
- package/dist/components/popover.js +0 -1737
- package/dist/components/result-list.js +0 -565
- package/dist/components/slots.js +0 -26
- package/dist/components/text-field.js +0 -171
- package/dist/components/tooltip.js +0 -360
- package/dist/components/tslib.es6.js +0 -65
- package/dist/esm/auto-resize-textarea-087fecdb.js +0 -135
- package/dist/esm/avatar-775455a5.js +0 -43
- package/dist/esm/avatar-group-e5ca86bf.js +0 -15
- package/dist/esm/badge-6d27ca92.js +0 -21
- package/dist/esm/banner-b292060d.js +0 -102
- package/dist/esm/button-81207236.js +0 -68
- package/dist/esm/card-1e8790aa.js +0 -28
- package/dist/esm/card-group-4e8e0421.js +0 -28
- package/dist/esm/chip-4e568eee.js +0 -23
- package/dist/esm/click-to-edit-text-field-d9b27cd0.js +0 -103
- package/dist/esm/collapsible-b52960e6.js +0 -23
- package/dist/esm/color-circle-picker-c4e92fea.js +0 -80
- package/dist/esm/color-picker-b292ad8d.js +0 -45
- package/dist/esm/color-swatch-ab647632.js +0 -93
- package/dist/esm/context-menu-12f1afe1.js +0 -89
- package/dist/esm/dialog-c69d9152.js +0 -223
- package/dist/esm/dom-64053c71.js +0 -73
- package/dist/esm/dom-9d0f7bf4.js +0 -13
- package/dist/esm/draggable-popover-9f9b7c97.js +0 -81
- package/dist/esm/dropdown-menu-1598ba20.js +0 -29
- package/dist/esm/expandable-b487cb00.js +0 -70
- package/dist/esm/help-tooltip-c2f0d996.js +0 -32
- package/dist/esm/icon-390b9402.js +0 -24
- package/dist/esm/icon-button-552e31fe.js +0 -41
- package/dist/esm/icon-helper-7437b548.js +0 -783
- package/dist/esm/index-72f28b71.js +0 -2118
- package/dist/esm/index-9c609209.js +0 -89
- package/dist/esm/logo-loading-3c7fa23d.js +0 -15
- package/dist/esm/menu-49420f98.js +0 -72
- package/dist/esm/menu-divider-87c888cb.js +0 -15
- package/dist/esm/menu-item-c33aa9dd.js +0 -23
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/popover-6e806354.js +0 -1704
- package/dist/esm/radio-39c11ba4.js +0 -32
- package/dist/esm/radio-group-2f5467b5.js +0 -76
- package/dist/esm/resizable-833336bf.js +0 -421
- package/dist/esm/result-list-16c6afbd.js +0 -302
- package/dist/esm/search-bar-8d18626e.js +0 -525
- package/dist/esm/select-66bb59f8.js +0 -161
- package/dist/esm/shadow-css-008a49f5.js +0 -387
- package/dist/esm/slider-3d8545e3.js +0 -42
- package/dist/esm/slots-fbb5afb3.js +0 -26
- package/dist/esm/spinner-afccea51.js +0 -27
- package/dist/esm/tab-c76332b0.js +0 -24
- package/dist/esm/tabs-e9f6dcbe.js +0 -109
- package/dist/esm/templates-797420bf.js +0 -228
- package/dist/esm/text-field-32ac877e.js +0 -131
- package/dist/esm/toast-255648ff.js +0 -88
- package/dist/esm/tooltip-bed548f4.js +0 -331
- package/dist/esm/tslib.es6-99cd0de8.js +0 -65
- package/loader/package.json +0 -11
- /package/dist/components/{p-b2c7b113.js → p-DXuCPm6v.js} +0 -0
- /package/dist/components/{p-3438c441.js → p-DgySd_r0.js} +0 -0
|
@@ -1,594 +1,681 @@
|
|
|
1
|
-
import { autoUpdate, } from
|
|
2
|
-
import { h, Host, } from
|
|
3
|
-
import classNames from
|
|
4
|
-
import { getDefaultMiddleware } from
|
|
5
|
-
import { computeUpdatedPosition } from
|
|
1
|
+
import { autoUpdate, } from "@floating-ui/dom";
|
|
2
|
+
import { h, Host, } from "@stencil/core";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { getDefaultMiddleware } from "./middleware";
|
|
5
|
+
import { computeUpdatedPosition } from "./util";
|
|
6
6
|
const WINDOW_RESIZE_DEBOUNCE_THRESHOLD = 200;
|
|
7
7
|
export class Popover {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
8
|
+
constructor() {
|
|
9
|
+
/**
|
|
10
|
+
* Whether this popover's content is visible.
|
|
11
|
+
*/
|
|
12
|
+
this.open = false;
|
|
13
|
+
/**
|
|
14
|
+
* The placement of the popover at the clicked point.
|
|
15
|
+
* This can be any of the following values:
|
|
16
|
+
*
|
|
17
|
+
* 'top', 'top-start', 'top-end',
|
|
18
|
+
* 'bottom', 'bottom-start', 'bottom-end',
|
|
19
|
+
* 'right', 'right-start', 'right-end',
|
|
20
|
+
* 'left', 'left-start', 'left-end', and
|
|
21
|
+
* defaults to 'bottom-start'.
|
|
22
|
+
*
|
|
23
|
+
* Note: placement will adjust based on the amount
|
|
24
|
+
* of available space, so popovers close to screen
|
|
25
|
+
* edges may appear in a different location.
|
|
26
|
+
*/
|
|
27
|
+
this.placement = 'bottom-start';
|
|
28
|
+
/**
|
|
29
|
+
* Whether to show a backdrop that dismisses this popover.
|
|
30
|
+
* Defaults to true, and is invisible, but can be styled.
|
|
31
|
+
*/
|
|
32
|
+
this.backdrop = true;
|
|
33
|
+
/**
|
|
34
|
+
* Whether this popover should animate its contents it is opened.
|
|
35
|
+
* Defaults to false, and the animation can be overridden using
|
|
36
|
+
* the `var(--open-animation)` and `var(--close-animation)` CSS
|
|
37
|
+
* variables. The `transform-origin` will update relative to the
|
|
38
|
+
* `position` property provided.
|
|
39
|
+
*/
|
|
40
|
+
this.animated = false;
|
|
41
|
+
/**
|
|
42
|
+
* The behavior that this popover will have when the window
|
|
43
|
+
* is resized. Can be either 'dynamic' or 'fixed', and defaults
|
|
44
|
+
* to 'dynamic'.
|
|
45
|
+
*
|
|
46
|
+
* 'dynamic' will cause a position-based popover to adjust its
|
|
47
|
+
* position relative to the window resize to keep it in the same
|
|
48
|
+
* relative position.
|
|
49
|
+
* 'fixed' will keep the popover in the same position even if
|
|
50
|
+
* that means it would disappear off-screen.
|
|
51
|
+
*/
|
|
52
|
+
this.resizeBehavior = 'dynamic';
|
|
53
|
+
/**
|
|
54
|
+
* Indicates if the position of the popover should be updated when the
|
|
55
|
+
* popover's content size changes.
|
|
56
|
+
*/
|
|
57
|
+
this.updateOnResize = false;
|
|
58
|
+
this.opened = false;
|
|
59
|
+
this.computedPlacement = this.placement;
|
|
60
|
+
this.shouldUpdatePosition = false;
|
|
61
|
+
this.middleware = [];
|
|
62
|
+
this.partialWindow = window;
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
this.resizeObserverFactory = (cb) => new ResizeObserver(cb);
|
|
67
|
+
this.updateListener = this.updateListener.bind(this);
|
|
68
|
+
this.handlePositionUpdate = this.handlePositionUpdate.bind(this);
|
|
69
|
+
this.handleResize = this.handleResize.bind(this);
|
|
70
|
+
this.handleMiddlewareChange = this.handleMiddlewareChange.bind(this);
|
|
71
|
+
this.setWindow = this.setWindow.bind(this);
|
|
72
|
+
this.updateResizeObserver = this.updateResizeObserver.bind(this);
|
|
48
73
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
this.handleMiddlewareChange();
|
|
53
|
-
this.updateListener();
|
|
54
|
-
if (this.resizeBehavior === 'dynamic') {
|
|
55
|
-
window.addEventListener('resize', this.handleResize);
|
|
74
|
+
connectedCallback() {
|
|
75
|
+
this.updatePosition(this.position);
|
|
76
|
+
this.updateResizeObserver();
|
|
56
77
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
78
|
+
componentDidUpdate() {
|
|
79
|
+
if (this.shouldUpdatePosition) {
|
|
80
|
+
this.shouldUpdatePosition = false;
|
|
81
|
+
if (this.updateDispose != null) {
|
|
82
|
+
this.handlePositionUpdate();
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
this.updateListener();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
65
88
|
}
|
|
66
|
-
(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
89
|
+
componentDidLoad() {
|
|
90
|
+
this.updateViewport();
|
|
91
|
+
this.handleMiddlewareChange();
|
|
92
|
+
this.updateListener();
|
|
93
|
+
if (this.resizeBehavior === 'dynamic') {
|
|
94
|
+
window.addEventListener('resize', this.handleResize);
|
|
95
|
+
}
|
|
73
96
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
97
|
+
disconnectedCallback() {
|
|
98
|
+
var _a;
|
|
99
|
+
this.viewportWidth = undefined;
|
|
100
|
+
this.viewportHeight = undefined;
|
|
101
|
+
this.opened = false;
|
|
102
|
+
if (this.resizeBehavior === 'dynamic') {
|
|
103
|
+
window.removeEventListener('resize', this.handleResize);
|
|
104
|
+
}
|
|
105
|
+
(_a = this.boundaryResizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
81
106
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
this.handleMiddlewareChange();
|
|
89
|
-
}
|
|
90
|
-
updateResizeObserver() {
|
|
91
|
-
const observer = this.getOrCreateResizeObserver();
|
|
92
|
-
observer.disconnect();
|
|
93
|
-
if (this.boundarySelector != null) {
|
|
94
|
-
const element = document.querySelector(this.boundarySelector);
|
|
95
|
-
if (element != null) {
|
|
96
|
-
observer.observe(element);
|
|
97
|
-
}
|
|
107
|
+
updatePosition(position) {
|
|
108
|
+
if (position != null) {
|
|
109
|
+
this.anchorPosition =
|
|
110
|
+
typeof position === 'object' ? position : JSON.parse(position);
|
|
111
|
+
this.shouldUpdatePosition = true;
|
|
112
|
+
}
|
|
98
113
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
* @private Used for internals or testing.
|
|
102
|
-
*/
|
|
103
|
-
setWindow(partialWindow) {
|
|
104
|
-
this.partialWindow = partialWindow;
|
|
105
|
-
}
|
|
106
|
-
render() {
|
|
107
|
-
var _a, _b;
|
|
108
|
-
return (h(Host, null, this.open && this.backdrop && (h("div", { class: "backdrop", onPointerDown: () => {
|
|
109
|
-
this.open = false;
|
|
110
|
-
this.dismissed.emit();
|
|
111
|
-
} })), this.anchorPosition && (h("div", { ref: (element) => (this.anchorPointRef = element), class: "anchor", style: {
|
|
112
|
-
left: `${((_a = this.anchorPosition) === null || _a === void 0 ? void 0 : _a.x) || 0}px`,
|
|
113
|
-
top: `${((_b = this.anchorPosition) === null || _b === void 0 ? void 0 : _b.y) || 0}px`,
|
|
114
|
-
} })), h("slot", { name: "anchor" }), h("div", { ref: (element) => (this.wrapperRef = element), class: classNames('popper', {
|
|
115
|
-
hidden: !this.open,
|
|
116
|
-
open: this.open,
|
|
117
|
-
}) }, h("div", { class: classNames('content', {
|
|
118
|
-
'hidden-animated': !this.open && this.opened && this.animated,
|
|
119
|
-
'open-animated': this.open && this.animated,
|
|
120
|
-
}, this.getTransformClass()), onAnimationEnd: () => {
|
|
121
|
-
this.opened = this.open;
|
|
122
|
-
} }, h("slot", null)))));
|
|
123
|
-
}
|
|
124
|
-
updateListener() {
|
|
125
|
-
var _a, _b, _c, _d;
|
|
126
|
-
const referenceElement = (_b = (_a = this.getSlottedAnchorElement()) !== null && _a !== void 0 ? _a : this.anchorPointRef) !== null && _b !== void 0 ? _b : this.getAnchorBoundsVirtualElement();
|
|
127
|
-
if (this.open && referenceElement != null && this.wrapperRef != null) {
|
|
128
|
-
(_c = this.updateDispose) === null || _c === void 0 ? void 0 : _c.call(this);
|
|
129
|
-
this.updateDispose = autoUpdate(referenceElement, this.wrapperRef, this.handlePositionUpdate);
|
|
130
|
-
this.handlePositionUpdate();
|
|
114
|
+
updatePlacement() {
|
|
115
|
+
this.updatePosition(this.position);
|
|
131
116
|
}
|
|
132
|
-
|
|
133
|
-
|
|
117
|
+
updateOpened(open) {
|
|
118
|
+
if (open) {
|
|
119
|
+
this.opened = true;
|
|
120
|
+
}
|
|
121
|
+
this.updateListener();
|
|
134
122
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
var _a, _b, _c;
|
|
138
|
-
const referenceElement = (_b = (_a = this.getSlottedAnchorElement()) !== null && _a !== void 0 ? _a : this.anchorPointRef) !== null && _b !== void 0 ? _b : this.getAnchorBoundsVirtualElement();
|
|
139
|
-
if (referenceElement != null && this.wrapperRef != null) {
|
|
140
|
-
const position = await computeUpdatedPosition(referenceElement, this.wrapperRef, this.placement, this.middleware);
|
|
141
|
-
this.computedPlacement = position.placement;
|
|
142
|
-
(_c = this.wrapperRef) === null || _c === void 0 ? void 0 : _c.setAttribute('style', `left: ${position.x}px; top: ${position.y}px;`);
|
|
123
|
+
updateAnimated() {
|
|
124
|
+
this.opened = this.open;
|
|
143
125
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
var _a, _b, _c;
|
|
147
|
-
const anchorSlotElement = (_a = this.getSlottedAnchorElement()) !== null && _a !== void 0 ? _a : this.getAnchorBoundsVirtualElement();
|
|
148
|
-
const offset = anchorSlotElement != null ? 4 : 0;
|
|
149
|
-
const boundary = this.boundarySelector != null
|
|
150
|
-
? (_b = document.querySelector(this.boundarySelector)) !== null && _b !== void 0 ? _b : undefined
|
|
151
|
-
: undefined;
|
|
152
|
-
this.middleware = getDefaultMiddleware((_c = this.offsetBehavior) !== null && _c !== void 0 ? _c : offset, boundary != null
|
|
153
|
-
? Object.assign({ boundary }, this.overflowBehavior) : this.overflowBehavior, this.flipBehavior);
|
|
154
|
-
this.updateListener();
|
|
155
|
-
}
|
|
156
|
-
getSlottedAnchorElement() {
|
|
157
|
-
var _a, _b, _c;
|
|
158
|
-
if (this.anchorSelector != null) {
|
|
159
|
-
return (((_a = this.hostElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(this.anchorSelector)) ||
|
|
160
|
-
this.hostElement.querySelector(this.anchorSelector) ||
|
|
161
|
-
undefined);
|
|
126
|
+
updateMiddleware() {
|
|
127
|
+
this.handleMiddlewareChange();
|
|
162
128
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
129
|
+
updateResizeObserver() {
|
|
130
|
+
const observer = this.getOrCreateResizeObserver();
|
|
131
|
+
observer.disconnect();
|
|
132
|
+
if (this.boundarySelector != null) {
|
|
133
|
+
const element = document.querySelector(this.boundarySelector);
|
|
134
|
+
if (element != null) {
|
|
135
|
+
observer.observe(element);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
169
138
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
return DOMRect.fromRect(this.anchorBounds);
|
|
176
|
-
},
|
|
177
|
-
};
|
|
139
|
+
/**
|
|
140
|
+
* @private Used for internals or testing.
|
|
141
|
+
*/
|
|
142
|
+
setWindow(partialWindow) {
|
|
143
|
+
this.partialWindow = partialWindow;
|
|
178
144
|
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
145
|
+
render() {
|
|
146
|
+
var _a, _b;
|
|
147
|
+
return (h(Host, { key: 'dac6fddc73d5a5e84b46a0f3f98bdcb027535859' }, this.open && this.backdrop && (h("div", { key: '63ae8150fb738a142d206af25add705b27bb825c', class: "backdrop", onPointerDown: () => {
|
|
148
|
+
this.open = false;
|
|
149
|
+
this.dismissed.emit();
|
|
150
|
+
} })), this.anchorPosition && (h("div", { key: '148cea536e94dbdcd14cc495406b23cc63835aba', ref: (element) => (this.anchorPointRef = element), class: "anchor", style: {
|
|
151
|
+
left: `${((_a = this.anchorPosition) === null || _a === void 0 ? void 0 : _a.x) || 0}px`,
|
|
152
|
+
top: `${((_b = this.anchorPosition) === null || _b === void 0 ? void 0 : _b.y) || 0}px`,
|
|
153
|
+
} })), h("slot", { key: '350776528927625987a29301f0723cb5d5171b3e', name: "anchor" }), h("div", { key: '25141e224afc06546816136873c49cae7d0e7aaa', ref: (element) => (this.wrapperRef = element), class: classNames('popper', {
|
|
154
|
+
hidden: !this.open,
|
|
155
|
+
open: this.open,
|
|
156
|
+
}) }, h("div", { key: '5ea57501baa48d579941d274c2d139207289c45a', class: classNames('content', {
|
|
157
|
+
'hidden-animated': !this.open && this.opened && this.animated,
|
|
158
|
+
'open-animated': this.open && this.animated,
|
|
159
|
+
}, this.getTransformClass()), onAnimationEnd: () => {
|
|
160
|
+
this.opened = this.open;
|
|
161
|
+
} }, h("slot", { key: 'a2cec0930f7c5c4a505a4bcc1432e9dec095c587' })))));
|
|
183
162
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
this.
|
|
187
|
-
if (this.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
y: this.partialWindow.innerHeight * relativeHeight,
|
|
195
|
-
};
|
|
163
|
+
updateListener() {
|
|
164
|
+
var _a, _b, _c, _d;
|
|
165
|
+
const referenceElement = (_b = (_a = this.getSlottedAnchorElement()) !== null && _a !== void 0 ? _a : this.anchorPointRef) !== null && _b !== void 0 ? _b : this.getAnchorBoundsVirtualElement();
|
|
166
|
+
if (this.open && referenceElement != null && this.wrapperRef != null) {
|
|
167
|
+
(_c = this.updateDispose) === null || _c === void 0 ? void 0 : _c.call(this);
|
|
168
|
+
this.updateDispose = autoUpdate(referenceElement, this.wrapperRef, this.handlePositionUpdate);
|
|
169
|
+
this.handlePositionUpdate();
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
(_d = this.updateDispose) === null || _d === void 0 ? void 0 : _d.call(this);
|
|
196
173
|
}
|
|
197
|
-
this.updateViewport();
|
|
198
|
-
}, WINDOW_RESIZE_DEBOUNCE_THRESHOLD);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
updateViewport() {
|
|
202
|
-
this.viewportWidth = this.partialWindow.innerWidth;
|
|
203
|
-
this.viewportHeight = this.partialWindow.innerHeight;
|
|
204
|
-
}
|
|
205
|
-
getOrCreateResizeObserver() {
|
|
206
|
-
if (this.boundaryResizeObserver == null) {
|
|
207
|
-
this.boundaryResizeObserver = this.resizeObserverFactory(this.handleMiddlewareChange);
|
|
208
174
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
return 'left-bottom';
|
|
218
|
-
case 'top-end':
|
|
219
|
-
return 'right-bottom';
|
|
220
|
-
case 'bottom':
|
|
221
|
-
return 'center-top';
|
|
222
|
-
case 'bottom-start':
|
|
223
|
-
return 'left-top';
|
|
224
|
-
case 'bottom-end':
|
|
225
|
-
return 'right-top';
|
|
226
|
-
case 'right':
|
|
227
|
-
return 'left-center';
|
|
228
|
-
case 'right-start':
|
|
229
|
-
return 'left-top';
|
|
230
|
-
case 'right-end':
|
|
231
|
-
return 'left-bottom';
|
|
232
|
-
case 'left':
|
|
233
|
-
return 'right-center';
|
|
234
|
-
case 'left-start':
|
|
235
|
-
return 'right-top';
|
|
236
|
-
case 'left-end':
|
|
237
|
-
return 'right-bottom';
|
|
238
|
-
}
|
|
175
|
+
async handlePositionUpdate() {
|
|
176
|
+
var _a, _b, _c;
|
|
177
|
+
const referenceElement = (_b = (_a = this.getSlottedAnchorElement()) !== null && _a !== void 0 ? _a : this.anchorPointRef) !== null && _b !== void 0 ? _b : this.getAnchorBoundsVirtualElement();
|
|
178
|
+
if (referenceElement != null && this.wrapperRef != null) {
|
|
179
|
+
const position = await computeUpdatedPosition(referenceElement, this.wrapperRef, this.placement, this.middleware);
|
|
180
|
+
this.computedPlacement = position.placement;
|
|
181
|
+
(_c = this.wrapperRef) === null || _c === void 0 ? void 0 : _c.setAttribute('style', `left: ${position.x}px; top: ${position.y}px;`);
|
|
182
|
+
}
|
|
239
183
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
static get properties() {
|
|
254
|
-
return {
|
|
255
|
-
"open": {
|
|
256
|
-
"type": "boolean",
|
|
257
|
-
"mutable": true,
|
|
258
|
-
"complexType": {
|
|
259
|
-
"original": "boolean",
|
|
260
|
-
"resolved": "boolean",
|
|
261
|
-
"references": {}
|
|
262
|
-
},
|
|
263
|
-
"required": false,
|
|
264
|
-
"optional": false,
|
|
265
|
-
"docs": {
|
|
266
|
-
"tags": [],
|
|
267
|
-
"text": "Whether this popover's content is visible."
|
|
268
|
-
},
|
|
269
|
-
"attribute": "open",
|
|
270
|
-
"reflect": true,
|
|
271
|
-
"defaultValue": "false"
|
|
272
|
-
},
|
|
273
|
-
"placement": {
|
|
274
|
-
"type": "string",
|
|
275
|
-
"mutable": false,
|
|
276
|
-
"complexType": {
|
|
277
|
-
"original": "PopoverPlacement",
|
|
278
|
-
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
279
|
-
"references": {
|
|
280
|
-
"PopoverPlacement": {
|
|
281
|
-
"location": "local"
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
"required": false,
|
|
286
|
-
"optional": false,
|
|
287
|
-
"docs": {
|
|
288
|
-
"tags": [],
|
|
289
|
-
"text": "The placement of the popover at the clicked point.\nThis can be any of the following values:\n\n'top', 'top-start', 'top-end',\n'bottom', 'bottom-start', 'bottom-end',\n'right', 'right-start', 'right-end',\n'left', 'left-start', 'left-end', and\ndefaults to 'bottom-start'.\n\nNote: placement will adjust based on the amount\nof available space, so popovers close to screen\nedges may appear in a different location."
|
|
290
|
-
},
|
|
291
|
-
"attribute": "placement",
|
|
292
|
-
"reflect": false,
|
|
293
|
-
"defaultValue": "'bottom-start'"
|
|
294
|
-
},
|
|
295
|
-
"position": {
|
|
296
|
-
"type": "string",
|
|
297
|
-
"mutable": true,
|
|
298
|
-
"complexType": {
|
|
299
|
-
"original": "Point | string",
|
|
300
|
-
"resolved": "Point | string | undefined",
|
|
301
|
-
"references": {
|
|
302
|
-
"Point": {
|
|
303
|
-
"location": "import",
|
|
304
|
-
"path": "../../types/point"
|
|
184
|
+
handleMiddlewareChange() {
|
|
185
|
+
var _a, _b, _c;
|
|
186
|
+
const anchorSlotElement = (_a = this.getSlottedAnchorElement()) !== null && _a !== void 0 ? _a : this.getAnchorBoundsVirtualElement();
|
|
187
|
+
const offset = anchorSlotElement != null ? 4 : 0;
|
|
188
|
+
const boundary = this.boundarySelector != null
|
|
189
|
+
? ((_b = document.querySelector(this.boundarySelector)) !== null && _b !== void 0 ? _b : undefined)
|
|
190
|
+
: undefined;
|
|
191
|
+
this.middleware = getDefaultMiddleware((_c = this.offsetBehavior) !== null && _c !== void 0 ? _c : offset, boundary != null
|
|
192
|
+
? {
|
|
193
|
+
boundary,
|
|
194
|
+
...this.overflowBehavior,
|
|
305
195
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
"reflect": false
|
|
316
|
-
},
|
|
317
|
-
"anchorBounds": {
|
|
318
|
-
"type": "unknown",
|
|
319
|
-
"mutable": false,
|
|
320
|
-
"complexType": {
|
|
321
|
-
"original": "Pick<DOMRect, 'x' | 'y' | 'width' | 'height'>",
|
|
322
|
-
"resolved": "undefined | { height: number; width: number; x: number; y: number; }",
|
|
323
|
-
"references": {
|
|
324
|
-
"Pick": {
|
|
325
|
-
"location": "global"
|
|
326
|
-
},
|
|
327
|
-
"DOMRect": {
|
|
328
|
-
"location": "global"
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
"required": false,
|
|
333
|
-
"optional": true,
|
|
334
|
-
"docs": {
|
|
335
|
-
"tags": [],
|
|
336
|
-
"text": "An optional DOMRect that represents the virtual location of the\nanchor element. When provided, the popover will position based\non the specified bounds to give a similar behavior to the\n`anchorSelector` or `anchor` slot based popovers without needing\nto provide the element itself."
|
|
196
|
+
: this.overflowBehavior, this.flipBehavior);
|
|
197
|
+
this.updateListener();
|
|
198
|
+
}
|
|
199
|
+
getSlottedAnchorElement() {
|
|
200
|
+
var _a, _b, _c;
|
|
201
|
+
if (this.anchorSelector != null) {
|
|
202
|
+
return (((_a = this.hostElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(this.anchorSelector)) ||
|
|
203
|
+
this.hostElement.querySelector(this.anchorSelector) ||
|
|
204
|
+
undefined);
|
|
337
205
|
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
"original": "boolean",
|
|
344
|
-
"resolved": "boolean",
|
|
345
|
-
"references": {}
|
|
346
|
-
},
|
|
347
|
-
"required": false,
|
|
348
|
-
"optional": false,
|
|
349
|
-
"docs": {
|
|
350
|
-
"tags": [],
|
|
351
|
-
"text": "Whether to show a backdrop that dismisses this popover.\nDefaults to true, and is invisible, but can be styled."
|
|
352
|
-
},
|
|
353
|
-
"attribute": "backdrop",
|
|
354
|
-
"reflect": false,
|
|
355
|
-
"defaultValue": "true"
|
|
356
|
-
},
|
|
357
|
-
"animated": {
|
|
358
|
-
"type": "boolean",
|
|
359
|
-
"mutable": false,
|
|
360
|
-
"complexType": {
|
|
361
|
-
"original": "boolean",
|
|
362
|
-
"resolved": "boolean",
|
|
363
|
-
"references": {}
|
|
364
|
-
},
|
|
365
|
-
"required": false,
|
|
366
|
-
"optional": false,
|
|
367
|
-
"docs": {
|
|
368
|
-
"tags": [],
|
|
369
|
-
"text": "Whether this popover should animate its contents it is opened.\nDefaults to false, and the animation can be overridden using\nthe `var(--open-animation)` and `var(--close-animation)` CSS\nvariables. The `transform-origin` will update relative to the\n`position` property provided."
|
|
370
|
-
},
|
|
371
|
-
"attribute": "animated",
|
|
372
|
-
"reflect": false,
|
|
373
|
-
"defaultValue": "false"
|
|
374
|
-
},
|
|
375
|
-
"anchorSelector": {
|
|
376
|
-
"type": "string",
|
|
377
|
-
"mutable": false,
|
|
378
|
-
"complexType": {
|
|
379
|
-
"original": "string",
|
|
380
|
-
"resolved": "string | undefined",
|
|
381
|
-
"references": {}
|
|
382
|
-
},
|
|
383
|
-
"required": false,
|
|
384
|
-
"optional": true,
|
|
385
|
-
"docs": {
|
|
386
|
-
"tags": [],
|
|
387
|
-
"text": "An optional selector to retrieve the anchor element.\nIf a selector is not provided, this popover will attempt\nto use HTMLSlotElement.assignedElements() to retrieve\nthe anchor element."
|
|
388
|
-
},
|
|
389
|
-
"attribute": "anchor-selector",
|
|
390
|
-
"reflect": false
|
|
391
|
-
},
|
|
392
|
-
"boundarySelector": {
|
|
393
|
-
"type": "string",
|
|
394
|
-
"mutable": false,
|
|
395
|
-
"complexType": {
|
|
396
|
-
"original": "string",
|
|
397
|
-
"resolved": "string | undefined",
|
|
398
|
-
"references": {}
|
|
399
|
-
},
|
|
400
|
-
"required": false,
|
|
401
|
-
"optional": true,
|
|
402
|
-
"docs": {
|
|
403
|
-
"tags": [],
|
|
404
|
-
"text": "An optional selector for the boundary of this popover.\nIf not specified, this will default to `clippingParents`.\nSee https://popper.js.org/docs/v2/utils/detect-overflow/#boundary\nfor additional details."
|
|
405
|
-
},
|
|
406
|
-
"attribute": "boundary-selector",
|
|
407
|
-
"reflect": false
|
|
408
|
-
},
|
|
409
|
-
"resizeBehavior": {
|
|
410
|
-
"type": "string",
|
|
411
|
-
"mutable": false,
|
|
412
|
-
"complexType": {
|
|
413
|
-
"original": "PopoverResizeBehavior",
|
|
414
|
-
"resolved": "\"dynamic\" | \"fixed\"",
|
|
415
|
-
"references": {
|
|
416
|
-
"PopoverResizeBehavior": {
|
|
417
|
-
"location": "local"
|
|
206
|
+
else {
|
|
207
|
+
const anchorSlot = ((_b = this.hostElement.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('slot[name="anchor"]')) ||
|
|
208
|
+
undefined;
|
|
209
|
+
if (((_c = anchorSlot === null || anchorSlot === void 0 ? void 0 : anchorSlot.assignedElements) === null || _c === void 0 ? void 0 : _c.call(anchorSlot).length) || 0 > 0) {
|
|
210
|
+
return anchorSlot === null || anchorSlot === void 0 ? void 0 : anchorSlot.assignedElements()[0];
|
|
418
211
|
}
|
|
419
|
-
}
|
|
420
|
-
},
|
|
421
|
-
"required": false,
|
|
422
|
-
"optional": false,
|
|
423
|
-
"docs": {
|
|
424
|
-
"tags": [],
|
|
425
|
-
"text": "The behavior that this popover will have when the window\nis resized. Can be either 'dynamic' or 'fixed', and defaults\nto 'dynamic'.\n\n'dynamic' will cause a position-based popover to adjust its\nposition relative to the window resize to keep it in the same\nrelative position.\n'fixed' will keep the popover in the same position even if\nthat means it would disappear off-screen."
|
|
426
|
-
},
|
|
427
|
-
"attribute": "resize-behavior",
|
|
428
|
-
"reflect": false,
|
|
429
|
-
"defaultValue": "'dynamic'"
|
|
430
|
-
},
|
|
431
|
-
"overflowBehavior": {
|
|
432
|
-
"type": "unknown",
|
|
433
|
-
"mutable": false,
|
|
434
|
-
"complexType": {
|
|
435
|
-
"original": "DetectOverflowOptions",
|
|
436
|
-
"resolved": "undefined | { rootBoundary?: RootBoundary | undefined; elementContext?: ElementContext | undefined; altBoundary?: boolean | undefined; padding?: Padding | undefined; boundary?: Boundary | undefined; }",
|
|
437
|
-
"references": {
|
|
438
|
-
"DetectOverflowOptions": {
|
|
439
|
-
"location": "import",
|
|
440
|
-
"path": "@floating-ui/dom"
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
},
|
|
444
|
-
"required": false,
|
|
445
|
-
"optional": true,
|
|
446
|
-
"docs": {
|
|
447
|
-
"tags": [],
|
|
448
|
-
"text": "The `overflowBehavior` prop can be provided to customize the\npopover's behavior when approaching its boundary. This maps\nto the behavior used internally with FloatingUI.\nSee https://floating-ui.com/docs/detectOverflow#options\nfor info on what properties can be specified.\n\nIf a `boundarySelector` is provided, it will be automatically\nadded to the set of options."
|
|
449
212
|
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
"FlipOptions": {
|
|
459
|
-
"location": "import",
|
|
460
|
-
"path": "@floating-ui/dom"
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
},
|
|
464
|
-
"required": false,
|
|
465
|
-
"optional": true,
|
|
466
|
-
"docs": {
|
|
467
|
-
"tags": [],
|
|
468
|
-
"text": "The `flipBehavior` prop can be provided to customize the\npopover's behavior when approaching its boundary. This maps\nto the behavior used internally with FloatingUI.\nSee https://floating-ui.com/docs/flip#options\nfor info on what properties can be specified.\n\nIf a `boundarySelector` is provided, `flip` behavior will\nautomatically be disabled."
|
|
213
|
+
}
|
|
214
|
+
getAnchorBoundsVirtualElement() {
|
|
215
|
+
if (this.anchorBounds != null) {
|
|
216
|
+
return {
|
|
217
|
+
getBoundingClientRect: () => {
|
|
218
|
+
return DOMRect.fromRect(this.anchorBounds);
|
|
219
|
+
},
|
|
220
|
+
};
|
|
469
221
|
}
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
222
|
+
}
|
|
223
|
+
handleResize() {
|
|
224
|
+
if (this.resizeTimeout != null) {
|
|
225
|
+
clearTimeout(this.resizeTimeout);
|
|
226
|
+
}
|
|
227
|
+
if (this.open) {
|
|
228
|
+
this.resizeTimeout = setTimeout(() => {
|
|
229
|
+
this.resizeTimeout = undefined;
|
|
230
|
+
if (this.anchorPosition != null &&
|
|
231
|
+
this.viewportWidth != null &&
|
|
232
|
+
this.viewportHeight != null) {
|
|
233
|
+
const relativeWidth = this.anchorPosition.x / this.viewportWidth;
|
|
234
|
+
const relativeHeight = this.anchorPosition.y / this.viewportHeight;
|
|
235
|
+
this.position = {
|
|
236
|
+
x: this.partialWindow.innerWidth * relativeWidth,
|
|
237
|
+
y: this.partialWindow.innerHeight * relativeHeight,
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
this.updateViewport();
|
|
241
|
+
}, WINDOW_RESIZE_DEBOUNCE_THRESHOLD);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
updateViewport() {
|
|
245
|
+
this.viewportWidth = this.partialWindow.innerWidth;
|
|
246
|
+
this.viewportHeight = this.partialWindow.innerHeight;
|
|
247
|
+
}
|
|
248
|
+
getOrCreateResizeObserver() {
|
|
249
|
+
if (this.boundaryResizeObserver == null) {
|
|
250
|
+
this.boundaryResizeObserver = this.resizeObserverFactory(this.handleMiddlewareChange);
|
|
251
|
+
}
|
|
252
|
+
return this.boundaryResizeObserver;
|
|
253
|
+
}
|
|
254
|
+
getTransformClass() {
|
|
255
|
+
if (this.animated) {
|
|
256
|
+
switch (this.computedPlacement) {
|
|
257
|
+
case 'top':
|
|
258
|
+
return 'center-bottom';
|
|
259
|
+
case 'top-start':
|
|
260
|
+
return 'left-bottom';
|
|
261
|
+
case 'top-end':
|
|
262
|
+
return 'right-bottom';
|
|
263
|
+
case 'bottom':
|
|
264
|
+
return 'center-top';
|
|
265
|
+
case 'bottom-start':
|
|
266
|
+
return 'left-top';
|
|
267
|
+
case 'bottom-end':
|
|
268
|
+
return 'right-top';
|
|
269
|
+
case 'right':
|
|
270
|
+
return 'left-center';
|
|
271
|
+
case 'right-start':
|
|
272
|
+
return 'left-top';
|
|
273
|
+
case 'right-end':
|
|
274
|
+
return 'left-bottom';
|
|
275
|
+
case 'left':
|
|
276
|
+
return 'right-center';
|
|
277
|
+
case 'left-start':
|
|
278
|
+
return 'right-top';
|
|
279
|
+
case 'left-end':
|
|
280
|
+
return 'right-bottom';
|
|
481
281
|
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
"
|
|
519
|
-
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
static get is() { return "vertex-popover"; }
|
|
285
|
+
static get encapsulation() { return "shadow"; }
|
|
286
|
+
static get originalStyleUrls() {
|
|
287
|
+
return {
|
|
288
|
+
"$": ["popover.css"]
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
static get styleUrls() {
|
|
292
|
+
return {
|
|
293
|
+
"$": ["popover.css"]
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
static get properties() {
|
|
297
|
+
return {
|
|
298
|
+
"open": {
|
|
299
|
+
"type": "boolean",
|
|
300
|
+
"mutable": true,
|
|
301
|
+
"complexType": {
|
|
302
|
+
"original": "boolean",
|
|
303
|
+
"resolved": "boolean",
|
|
304
|
+
"references": {}
|
|
305
|
+
},
|
|
306
|
+
"required": false,
|
|
307
|
+
"optional": false,
|
|
308
|
+
"docs": {
|
|
309
|
+
"tags": [],
|
|
310
|
+
"text": "Whether this popover's content is visible."
|
|
311
|
+
},
|
|
312
|
+
"getter": false,
|
|
313
|
+
"setter": false,
|
|
314
|
+
"reflect": true,
|
|
315
|
+
"attribute": "open",
|
|
316
|
+
"defaultValue": "false"
|
|
317
|
+
},
|
|
318
|
+
"placement": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"mutable": false,
|
|
321
|
+
"complexType": {
|
|
322
|
+
"original": "PopoverPlacement",
|
|
323
|
+
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
324
|
+
"references": {
|
|
325
|
+
"PopoverPlacement": {
|
|
326
|
+
"location": "local",
|
|
327
|
+
"path": "/home/runner/work/vertex-web-ui/vertex-web-ui/packages/ui/src/components/popover/popover.tsx",
|
|
328
|
+
"id": "src/components/popover/popover.tsx::PopoverPlacement"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"required": false,
|
|
333
|
+
"optional": false,
|
|
334
|
+
"docs": {
|
|
335
|
+
"tags": [],
|
|
336
|
+
"text": "The placement of the popover at the clicked point.\nThis can be any of the following values:\n\n'top', 'top-start', 'top-end',\n'bottom', 'bottom-start', 'bottom-end',\n'right', 'right-start', 'right-end',\n'left', 'left-start', 'left-end', and\ndefaults to 'bottom-start'.\n\nNote: placement will adjust based on the amount\nof available space, so popovers close to screen\nedges may appear in a different location."
|
|
337
|
+
},
|
|
338
|
+
"getter": false,
|
|
339
|
+
"setter": false,
|
|
340
|
+
"reflect": false,
|
|
341
|
+
"attribute": "placement",
|
|
342
|
+
"defaultValue": "'bottom-start'"
|
|
343
|
+
},
|
|
344
|
+
"position": {
|
|
345
|
+
"type": "string",
|
|
346
|
+
"mutable": true,
|
|
347
|
+
"complexType": {
|
|
348
|
+
"original": "Point | string",
|
|
349
|
+
"resolved": "Point | string | undefined",
|
|
350
|
+
"references": {
|
|
351
|
+
"Point": {
|
|
352
|
+
"location": "import",
|
|
353
|
+
"path": "../../types/point",
|
|
354
|
+
"id": "src/types/point.ts::Point",
|
|
355
|
+
"referenceLocation": "Point"
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"required": false,
|
|
360
|
+
"optional": true,
|
|
361
|
+
"docs": {
|
|
362
|
+
"tags": [],
|
|
363
|
+
"text": "The position of the popover anchor."
|
|
364
|
+
},
|
|
365
|
+
"getter": false,
|
|
366
|
+
"setter": false,
|
|
367
|
+
"reflect": false,
|
|
368
|
+
"attribute": "position"
|
|
369
|
+
},
|
|
370
|
+
"anchorBounds": {
|
|
371
|
+
"type": "unknown",
|
|
372
|
+
"mutable": false,
|
|
373
|
+
"complexType": {
|
|
374
|
+
"original": "Pick<DOMRect, 'x' | 'y' | 'width' | 'height'>",
|
|
375
|
+
"resolved": "\"height\" | \"width\" | \"x\" | \"y\" | DOMRect | undefined",
|
|
376
|
+
"references": {
|
|
377
|
+
"Pick": {
|
|
378
|
+
"location": "global",
|
|
379
|
+
"id": "global::Pick"
|
|
380
|
+
},
|
|
381
|
+
"DOMRect": {
|
|
382
|
+
"location": "global",
|
|
383
|
+
"id": "global::DOMRect"
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"required": false,
|
|
388
|
+
"optional": true,
|
|
389
|
+
"docs": {
|
|
390
|
+
"tags": [],
|
|
391
|
+
"text": "An optional DOMRect that represents the virtual location of the\nanchor element. When provided, the popover will position based\non the specified bounds to give a similar behavior to the\n`anchorSelector` or `anchor` slot based popovers without needing\nto provide the element itself."
|
|
392
|
+
},
|
|
393
|
+
"getter": false,
|
|
394
|
+
"setter": false
|
|
520
395
|
},
|
|
521
|
-
"
|
|
522
|
-
|
|
396
|
+
"backdrop": {
|
|
397
|
+
"type": "boolean",
|
|
398
|
+
"mutable": false,
|
|
399
|
+
"complexType": {
|
|
400
|
+
"original": "boolean",
|
|
401
|
+
"resolved": "boolean",
|
|
402
|
+
"references": {}
|
|
403
|
+
},
|
|
404
|
+
"required": false,
|
|
405
|
+
"optional": false,
|
|
406
|
+
"docs": {
|
|
407
|
+
"tags": [],
|
|
408
|
+
"text": "Whether to show a backdrop that dismisses this popover.\nDefaults to true, and is invisible, but can be styled."
|
|
409
|
+
},
|
|
410
|
+
"getter": false,
|
|
411
|
+
"setter": false,
|
|
412
|
+
"reflect": false,
|
|
413
|
+
"attribute": "backdrop",
|
|
414
|
+
"defaultValue": "true"
|
|
415
|
+
},
|
|
416
|
+
"animated": {
|
|
417
|
+
"type": "boolean",
|
|
418
|
+
"mutable": false,
|
|
419
|
+
"complexType": {
|
|
420
|
+
"original": "boolean",
|
|
421
|
+
"resolved": "boolean",
|
|
422
|
+
"references": {}
|
|
423
|
+
},
|
|
424
|
+
"required": false,
|
|
425
|
+
"optional": false,
|
|
426
|
+
"docs": {
|
|
427
|
+
"tags": [],
|
|
428
|
+
"text": "Whether this popover should animate its contents it is opened.\nDefaults to false, and the animation can be overridden using\nthe `var(--open-animation)` and `var(--close-animation)` CSS\nvariables. The `transform-origin` will update relative to the\n`position` property provided."
|
|
429
|
+
},
|
|
430
|
+
"getter": false,
|
|
431
|
+
"setter": false,
|
|
432
|
+
"reflect": false,
|
|
433
|
+
"attribute": "animated",
|
|
434
|
+
"defaultValue": "false"
|
|
435
|
+
},
|
|
436
|
+
"anchorSelector": {
|
|
437
|
+
"type": "string",
|
|
438
|
+
"mutable": false,
|
|
439
|
+
"complexType": {
|
|
440
|
+
"original": "string",
|
|
441
|
+
"resolved": "string | undefined",
|
|
442
|
+
"references": {}
|
|
443
|
+
},
|
|
444
|
+
"required": false,
|
|
445
|
+
"optional": true,
|
|
446
|
+
"docs": {
|
|
447
|
+
"tags": [],
|
|
448
|
+
"text": "An optional selector to retrieve the anchor element.\nIf a selector is not provided, this popover will attempt\nto use HTMLSlotElement.assignedElements() to retrieve\nthe anchor element."
|
|
449
|
+
},
|
|
450
|
+
"getter": false,
|
|
451
|
+
"setter": false,
|
|
452
|
+
"reflect": false,
|
|
453
|
+
"attribute": "anchor-selector"
|
|
454
|
+
},
|
|
455
|
+
"boundarySelector": {
|
|
456
|
+
"type": "string",
|
|
457
|
+
"mutable": false,
|
|
458
|
+
"complexType": {
|
|
459
|
+
"original": "string",
|
|
460
|
+
"resolved": "string | undefined",
|
|
461
|
+
"references": {}
|
|
462
|
+
},
|
|
463
|
+
"required": false,
|
|
464
|
+
"optional": true,
|
|
465
|
+
"docs": {
|
|
466
|
+
"tags": [],
|
|
467
|
+
"text": "An optional selector for the boundary of this popover.\nIf not specified, this will default to `clippingParents`.\nSee https://popper.js.org/docs/v2/utils/detect-overflow/#boundary\nfor additional details."
|
|
468
|
+
},
|
|
469
|
+
"getter": false,
|
|
470
|
+
"setter": false,
|
|
471
|
+
"reflect": false,
|
|
472
|
+
"attribute": "boundary-selector"
|
|
473
|
+
},
|
|
474
|
+
"resizeBehavior": {
|
|
475
|
+
"type": "string",
|
|
476
|
+
"mutable": false,
|
|
477
|
+
"complexType": {
|
|
478
|
+
"original": "PopoverResizeBehavior",
|
|
479
|
+
"resolved": "\"dynamic\" | \"fixed\"",
|
|
480
|
+
"references": {
|
|
481
|
+
"PopoverResizeBehavior": {
|
|
482
|
+
"location": "local",
|
|
483
|
+
"path": "/home/runner/work/vertex-web-ui/vertex-web-ui/packages/ui/src/components/popover/popover.tsx",
|
|
484
|
+
"id": "src/components/popover/popover.tsx::PopoverResizeBehavior"
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
"required": false,
|
|
489
|
+
"optional": false,
|
|
490
|
+
"docs": {
|
|
491
|
+
"tags": [],
|
|
492
|
+
"text": "The behavior that this popover will have when the window\nis resized. Can be either 'dynamic' or 'fixed', and defaults\nto 'dynamic'.\n\n'dynamic' will cause a position-based popover to adjust its\nposition relative to the window resize to keep it in the same\nrelative position.\n'fixed' will keep the popover in the same position even if\nthat means it would disappear off-screen."
|
|
493
|
+
},
|
|
494
|
+
"getter": false,
|
|
495
|
+
"setter": false,
|
|
496
|
+
"reflect": false,
|
|
497
|
+
"attribute": "resize-behavior",
|
|
498
|
+
"defaultValue": "'dynamic'"
|
|
499
|
+
},
|
|
500
|
+
"overflowBehavior": {
|
|
501
|
+
"type": "unknown",
|
|
502
|
+
"mutable": false,
|
|
503
|
+
"complexType": {
|
|
504
|
+
"original": "DetectOverflowOptions",
|
|
505
|
+
"resolved": "undefined | { padding?: Padding | undefined; rootBoundary?: RootBoundary | undefined; elementContext?: ElementContext | undefined; altBoundary?: boolean | undefined; boundary?: Boundary | undefined; }",
|
|
506
|
+
"references": {
|
|
507
|
+
"DetectOverflowOptions": {
|
|
508
|
+
"location": "import",
|
|
509
|
+
"path": "@floating-ui/dom",
|
|
510
|
+
"id": "../../node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts::DetectOverflowOptions",
|
|
511
|
+
"referenceLocation": "DetectOverflowOptions"
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
"required": false,
|
|
516
|
+
"optional": true,
|
|
517
|
+
"docs": {
|
|
518
|
+
"tags": [],
|
|
519
|
+
"text": "The `overflowBehavior` prop can be provided to customize the\npopover's behavior when approaching its boundary. This maps\nto the behavior used internally with FloatingUI.\nSee https://floating-ui.com/docs/detectOverflow#options\nfor info on what properties can be specified.\n\nIf a `boundarySelector` is provided, it will be automatically\nadded to the set of options."
|
|
520
|
+
},
|
|
521
|
+
"getter": false,
|
|
522
|
+
"setter": false
|
|
523
|
+
},
|
|
524
|
+
"flipBehavior": {
|
|
525
|
+
"type": "unknown",
|
|
526
|
+
"mutable": false,
|
|
527
|
+
"complexType": {
|
|
528
|
+
"original": "FlipOptions",
|
|
529
|
+
"resolved": "undefined | { fallbackPlacements?: Placement[] | undefined; crossAxis?: boolean | \"alignment\" | undefined; mainAxis?: boolean | undefined; fallbackStrategy?: \"bestFit\" | \"initialPlacement\" | undefined; fallbackAxisSideDirection?: \"none\" | \"start\" | \"end\" | undefined; flipAlignment?: boolean | undefined; padding?: Padding | undefined; rootBoundary?: RootBoundary | undefined; elementContext?: ElementContext | undefined; altBoundary?: boolean | undefined; boundary?: Boundary | undefined; }",
|
|
530
|
+
"references": {
|
|
531
|
+
"FlipOptions": {
|
|
532
|
+
"location": "import",
|
|
533
|
+
"path": "@floating-ui/dom",
|
|
534
|
+
"id": "../../node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts::FlipOptions",
|
|
535
|
+
"referenceLocation": "FlipOptions"
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
"required": false,
|
|
540
|
+
"optional": true,
|
|
541
|
+
"docs": {
|
|
542
|
+
"tags": [],
|
|
543
|
+
"text": "The `flipBehavior` prop can be provided to customize the\npopover's behavior when approaching its boundary. This maps\nto the behavior used internally with FloatingUI.\nSee https://floating-ui.com/docs/flip#options\nfor info on what properties can be specified.\n\nIf a `boundarySelector` is provided, `flip` behavior will\nautomatically be disabled."
|
|
544
|
+
},
|
|
545
|
+
"getter": false,
|
|
546
|
+
"setter": false
|
|
547
|
+
},
|
|
548
|
+
"offsetBehavior": {
|
|
549
|
+
"type": "number",
|
|
550
|
+
"mutable": false,
|
|
551
|
+
"complexType": {
|
|
552
|
+
"original": "OffsetOptions",
|
|
553
|
+
"resolved": "number | undefined | { mainAxis?: number | undefined; crossAxis?: number | undefined; alignmentAxis?: number | null | undefined; }",
|
|
554
|
+
"references": {
|
|
555
|
+
"OffsetOptions": {
|
|
556
|
+
"location": "import",
|
|
557
|
+
"path": "@floating-ui/dom",
|
|
558
|
+
"id": "../../node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts::OffsetOptions",
|
|
559
|
+
"referenceLocation": "OffsetOptions"
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
"required": false,
|
|
564
|
+
"optional": true,
|
|
565
|
+
"docs": {
|
|
566
|
+
"tags": [],
|
|
567
|
+
"text": "The `offsetBehavior` prop can be provided to customize the\npopover's visual offset from the anchor. This maps\nto the behavior used internally with FloatingUI.\nSee https://floating-ui.com/docs/offset#options\nfor info on what properties can be specified.\n\nIf no offset is specified, a default of 4px will be used\nfor popovers anchored to an element and no offset will be\napplied for popovers anchored to a point."
|
|
568
|
+
},
|
|
569
|
+
"getter": false,
|
|
570
|
+
"setter": false,
|
|
571
|
+
"reflect": false,
|
|
572
|
+
"attribute": "offset-behavior"
|
|
573
|
+
},
|
|
574
|
+
"updateOnResize": {
|
|
575
|
+
"type": "boolean",
|
|
576
|
+
"mutable": false,
|
|
577
|
+
"complexType": {
|
|
578
|
+
"original": "boolean",
|
|
579
|
+
"resolved": "boolean",
|
|
580
|
+
"references": {}
|
|
581
|
+
},
|
|
582
|
+
"required": false,
|
|
583
|
+
"optional": false,
|
|
584
|
+
"docs": {
|
|
585
|
+
"tags": [],
|
|
586
|
+
"text": "Indicates if the position of the popover should be updated when the\npopover's content size changes."
|
|
587
|
+
},
|
|
588
|
+
"getter": false,
|
|
589
|
+
"setter": false,
|
|
590
|
+
"reflect": false,
|
|
591
|
+
"attribute": "update-on-resize",
|
|
592
|
+
"defaultValue": "false"
|
|
593
|
+
},
|
|
594
|
+
"resizeObserverFactory": {
|
|
595
|
+
"type": "unknown",
|
|
596
|
+
"mutable": false,
|
|
597
|
+
"complexType": {
|
|
598
|
+
"original": "(\n cb: (entries: ResizeObserverEntry[]) => void\n ) => ResizeObserver",
|
|
599
|
+
"resolved": "(cb: (entries: ResizeObserverEntry[]) => void) => ResizeObserver",
|
|
600
|
+
"references": {
|
|
601
|
+
"ResizeObserverEntry": {
|
|
602
|
+
"location": "global",
|
|
603
|
+
"id": "global::ResizeObserverEntry"
|
|
604
|
+
},
|
|
605
|
+
"ResizeObserver": {
|
|
606
|
+
"location": "global",
|
|
607
|
+
"id": "global::ResizeObserver"
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
"required": false,
|
|
612
|
+
"optional": false,
|
|
613
|
+
"docs": {
|
|
614
|
+
"tags": [{
|
|
615
|
+
"name": "internal",
|
|
616
|
+
"text": undefined
|
|
617
|
+
}],
|
|
618
|
+
"text": ""
|
|
619
|
+
},
|
|
620
|
+
"getter": false,
|
|
621
|
+
"setter": false,
|
|
622
|
+
"defaultValue": "(cb) => new ResizeObserver(cb)"
|
|
523
623
|
}
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
"propName": "overflowBehavior",
|
|
582
|
-
"methodName": "updateMiddleware"
|
|
583
|
-
}, {
|
|
584
|
-
"propName": "flipBehavior",
|
|
585
|
-
"methodName": "updateMiddleware"
|
|
586
|
-
}, {
|
|
587
|
-
"propName": "offsetBehavior",
|
|
588
|
-
"methodName": "updateMiddleware"
|
|
589
|
-
}, {
|
|
590
|
-
"propName": "boundarySelector",
|
|
591
|
-
"methodName": "updateResizeObserver"
|
|
592
|
-
}];
|
|
593
|
-
}
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
static get states() {
|
|
627
|
+
return {
|
|
628
|
+
"opened": {},
|
|
629
|
+
"computedPlacement": {}
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
static get events() {
|
|
633
|
+
return [{
|
|
634
|
+
"method": "dismissed",
|
|
635
|
+
"name": "dismissed",
|
|
636
|
+
"bubbles": true,
|
|
637
|
+
"cancelable": true,
|
|
638
|
+
"composed": true,
|
|
639
|
+
"docs": {
|
|
640
|
+
"tags": [],
|
|
641
|
+
"text": "Emitted whenever the popover is dismissed."
|
|
642
|
+
},
|
|
643
|
+
"complexType": {
|
|
644
|
+
"original": "void",
|
|
645
|
+
"resolved": "void",
|
|
646
|
+
"references": {}
|
|
647
|
+
}
|
|
648
|
+
}];
|
|
649
|
+
}
|
|
650
|
+
static get elementRef() { return "hostElement"; }
|
|
651
|
+
static get watchers() {
|
|
652
|
+
return [{
|
|
653
|
+
"propName": "position",
|
|
654
|
+
"methodName": "updatePosition"
|
|
655
|
+
}, {
|
|
656
|
+
"propName": "placement",
|
|
657
|
+
"methodName": "updatePlacement"
|
|
658
|
+
}, {
|
|
659
|
+
"propName": "open",
|
|
660
|
+
"methodName": "updateOpened"
|
|
661
|
+
}, {
|
|
662
|
+
"propName": "animated",
|
|
663
|
+
"methodName": "updateAnimated"
|
|
664
|
+
}, {
|
|
665
|
+
"propName": "boundarySelector",
|
|
666
|
+
"methodName": "updateMiddleware"
|
|
667
|
+
}, {
|
|
668
|
+
"propName": "overflowBehavior",
|
|
669
|
+
"methodName": "updateMiddleware"
|
|
670
|
+
}, {
|
|
671
|
+
"propName": "flipBehavior",
|
|
672
|
+
"methodName": "updateMiddleware"
|
|
673
|
+
}, {
|
|
674
|
+
"propName": "offsetBehavior",
|
|
675
|
+
"methodName": "updateMiddleware"
|
|
676
|
+
}, {
|
|
677
|
+
"propName": "boundarySelector",
|
|
678
|
+
"methodName": "updateResizeObserver"
|
|
679
|
+
}];
|
|
680
|
+
}
|
|
594
681
|
}
|