@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,2 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { a as registerInstance, c as createEvent, h, d as getElement } from './index-C27tS7nl.js';
|
|
2
|
+
|
|
3
|
+
const radioGroupCss = () => `.radio-group{display:flex;flex-direction:column}`;
|
|
4
|
+
|
|
5
|
+
const RadioGroup = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.valueChanged = createEvent(this, "valueChanged");
|
|
9
|
+
this.handleListenOnRadioButtonChange =
|
|
10
|
+
this.handleListenOnRadioButtonChange.bind(this);
|
|
11
|
+
}
|
|
12
|
+
updateValue() {
|
|
13
|
+
var _a;
|
|
14
|
+
if (this.value != null) {
|
|
15
|
+
this.valueChanged.emit(this.value);
|
|
16
|
+
// Update the checked state for the radio buttons
|
|
17
|
+
(_a = this.radioButtons) === null || _a === void 0 ? void 0 : _a.forEach((radio) => {
|
|
18
|
+
if (this.value === radio.value) {
|
|
19
|
+
radio.checked = true;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
radio.checked = false;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
connectedCallback() {
|
|
28
|
+
this.getVertexRadioButtons();
|
|
29
|
+
this.addEventListeners();
|
|
30
|
+
}
|
|
31
|
+
disconnectedCallback() {
|
|
32
|
+
this.removeEventListeners();
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
return (h("div", { key: 'e9a877fa0c0d34ff810ba0caff4b31be6ca3f3c3', class: "radio-group" }, h("slot", { key: 'a11c500389558db08504d4eb338d3cb94ae785e8' })));
|
|
36
|
+
}
|
|
37
|
+
getVertexRadioButtons() {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
this.radioButtons =
|
|
40
|
+
((_a = this.hostElement) === null || _a === void 0 ? void 0 : _a.querySelectorAll('vertex-radio')) || undefined;
|
|
41
|
+
(_b = this.radioButtons) === null || _b === void 0 ? void 0 : _b.forEach((radio) => {
|
|
42
|
+
radio.name = this.name;
|
|
43
|
+
if (this.value === radio.value) {
|
|
44
|
+
radio.checked = true;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
removeEventListeners() {
|
|
49
|
+
var _a;
|
|
50
|
+
(_a = this.radioButtons) === null || _a === void 0 ? void 0 : _a.forEach((radioButton) => {
|
|
51
|
+
radioButton.removeEventListener('valueChanged', this.handleListenOnRadioButtonChange);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
addEventListeners() {
|
|
55
|
+
var _a;
|
|
56
|
+
(_a = this.radioButtons) === null || _a === void 0 ? void 0 : _a.forEach((radioButton) => {
|
|
57
|
+
radioButton.addEventListener('valueChanged', this.handleListenOnRadioButtonChange);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
handleListenOnRadioButtonChange(ev) {
|
|
61
|
+
const event = ev;
|
|
62
|
+
event.stopPropagation();
|
|
63
|
+
if (event.detail.checked) {
|
|
64
|
+
this.value = event.detail.value;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
get hostElement() { return getElement(this); }
|
|
68
|
+
static get watchers() { return {
|
|
69
|
+
"value": [{
|
|
70
|
+
"updateValue": 0
|
|
71
|
+
}]
|
|
72
|
+
}; }
|
|
73
|
+
};
|
|
74
|
+
RadioGroup.style = radioGroupCss();
|
|
75
|
+
|
|
76
|
+
export { RadioGroup as vertex_radio_group };
|
|
@@ -1,3 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
import './index-
|
|
3
|
-
|
|
1
|
+
import { a as registerInstance, c as createEvent, h } from './index-C27tS7nl.js';
|
|
2
|
+
import { c as classNames } from './index-Beav1bNT.js';
|
|
3
|
+
|
|
4
|
+
const radioCss = () => `.radio.sc-vertex-radio{display:inline-flex;position:relative;font-family:var(--vertex-ui-font-family);color:var( --vertex-ui-neutral-700);margin:4px 0px;white-space:nowrap}.radio.sc-vertex-radio:not(.disabled):hover{color:var( --vertex-ui-neutral-800)}.radio.sc-vertex-radio input.sc-vertex-radio{position:absolute;opacity:0;cursor:pointer}.radio.sc-vertex-radio:not(.disabled){cursor:pointer}.radio.disabled.sc-vertex-radio input.sc-vertex-radio{cursor:not-allowed}.checkmark.sc-vertex-radio{display:flex;position:relative;margin:auto;margin-right:0.75rem;height:16px;width:16px;background-color:var(--vertex-ui-white);border-radius:50%;border:1px solid var(--vertex-ui-neutral-400)}.checkmark.disabled.sc-vertex-radio{cursor:not-allowed}.radio.sc-vertex-radio:not(.disabled):hover input.sc-vertex-radio~.checkmark.sc-vertex-radio{border:1px solid var(--vertex-ui-neutral-500);cursor:pointer}.radio.sc-vertex-radio input.sc-vertex-radio:checked~.checkmark.sc-vertex-radio{border:1px solid var(--vertex-ui-blue-700)}.radio.disabled.sc-vertex-radio input.sc-vertex-radio:checked~.checkmark.sc-vertex-radio{border:1px solid var( --vertex-ui-neutral-400)}.radio.sc-vertex-radio:not(.disabled):hover input.sc-vertex-radio:checked~.checkmark.sc-vertex-radio{border:1px solid var(--vertex-ui-blue-500);cursor:pointer}.checkmark.sc-vertex-radio:after{content:"";position:absolute;display:none}.radio.sc-vertex-radio input.sc-vertex-radio:checked~.checkmark.sc-vertex-radio:after{display:flex}.radio.sc-vertex-radio .checkmark.sc-vertex-radio:after{position:relative;margin:auto;width:12px;height:12px;border-radius:50%;background:var(--vertex-ui-blue-700)}.radio.sc-vertex-radio:hover .checkmark.sc-vertex-radio:after{background:var(--vertex-ui-blue-500);cursor:pointer}.radio.disabled.sc-vertex-radio .checkmark.sc-vertex-radio:after{background:var( --vertex-ui-neutral-400)}.disabled.sc-vertex-radio{color:var( --vertex-ui-neutral-400)}`;
|
|
5
|
+
|
|
6
|
+
const Radio = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.valueChanged = createEvent(this, "valueChanged");
|
|
10
|
+
/**
|
|
11
|
+
* Whether to disallow clicks and display this item
|
|
12
|
+
* as disabled.
|
|
13
|
+
*/
|
|
14
|
+
this.disabled = false;
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return (h("label", { key: '9cfcdcc8d4c33bea901c1880c12f24157c67f5a6', class: classNames('radio', {
|
|
18
|
+
disabled: this.disabled,
|
|
19
|
+
}) }, h("input", { key: '8543fe1dbd8e8b338d155c0f3932b41b51a59a78', disabled: this.disabled, onChange: (event) => {
|
|
20
|
+
const radioValue = event.target;
|
|
21
|
+
this.valueChanged.emit({
|
|
22
|
+
checked: radioValue.checked,
|
|
23
|
+
value: radioValue.value,
|
|
24
|
+
});
|
|
25
|
+
}, type: "radio", id: `vertex-radio-${this.name}-${this.value}`, name: this.name, value: this.value, checked: this.checked }), h("span", { key: 'e0c333b342cbbf23a94e27925ed4ac1d51800cb6', class: classNames('checkmark', {
|
|
26
|
+
disabled: this.disabled,
|
|
27
|
+
}) }), this.label));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
Radio.style = radioCss();
|
|
31
|
+
|
|
32
|
+
export { Radio as vertex_radio };
|
|
@@ -1,4 +1,442 @@
|
|
|
1
|
-
|
|
2
|
-
import './index-
|
|
3
|
-
import './
|
|
4
|
-
|
|
1
|
+
import { a as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-C27tS7nl.js';
|
|
2
|
+
import { c as classNames } from './index-Beav1bNT.js';
|
|
3
|
+
import { r as readDOM } from './dom-Oz9KwTs0.js';
|
|
4
|
+
|
|
5
|
+
const resizableCss = () => `:host{--hover-shadow-color:var(--vertex-ui-blue-500);--vertical-handle-size:1rem;--vertical-handle-offset:-0.9rem;--horizontal-handle-size:1rem;--horizontal-handle-offset:-0.9rem;--side-direction-handle-z-index:var(--vertex-ui-popover-layer);--corner-handle-z-index:var(--vertex-ui-context-menu-layer)}:host(:not([dimensions-computed=""])){position:absolute;display:none}.container{position:relative;height:100%;width:100%}.container.hidden{position:absolute;visibility:hidden}.shadow{pointer-events:none;position:absolute;width:100%;height:100%;z-index:var(--vertex-ui-popover-layer)}.shadow.hovered-location-left{box-shadow:inset 1px 0 0 var(--hover-shadow-color)}.shadow.hovered-location-right{box-shadow:inset -1px 0 0 var(--hover-shadow-color)}.shadow.hovered-location-top{box-shadow:inset 0 1px 0 var(--hover-shadow-color)}.shadow.hovered-location-bottom{box-shadow:inset 0 -1px 0 var(--hover-shadow-color)}.shadow.hovered-location-bottom-left{box-shadow:inset 1px -1px 0 var(--hover-shadow-color)}.shadow.hovered-location-bottom-right{box-shadow:inset -1px -1px 0 var(--hover-shadow-color)}.shadow.hovered-location-top-left{box-shadow:inset 1px 1px 0 var(--hover-shadow-color)}.shadow.hovered-location-top-right{box-shadow:inset -1px 1px 0 var(--hover-shadow-color)}.handle{position:absolute;visibility:hidden;z-index:var(--side-direction-handle-z-index)}.corner-handle{z-index:var(--corner-handle-z-index)}.left-handle.horizontal-direction-left,.left-handle.horizontal-direction-both{visibility:visible;left:var(--horizontal-handle-offset);top:0;height:100%;width:var(--horizontal-handle-size);cursor:col-resize}.right-handle.horizontal-direction-right,.right-handle.horizontal-direction-both{visibility:visible;right:var(--horizontal-handle-offset);top:0;height:100%;width:var(--horizontal-handle-size);cursor:col-resize}.bottom-handle.vertical-direction-bottom,.bottom-handle.vertical-direction-both{visibility:visible;left:0;bottom:var(--vertical-handle-offset);height:var(--vertical-handle-size);width:100%;cursor:row-resize}.top-handle.vertical-direction-top,.top-handle.vertical-direction-both{visibility:visible;left:0;top:var(--vertical-handle-offset);height:var(--vertical-handle-size);width:100%;cursor:row-resize}.bottom-right-handle.vertical-direction-bottom.horizontal-direction-right,.bottom-right-handle.vertical-direction-both.horizontal-direction-right,.bottom-right-handle.vertical-direction-bottom.horizontal-direction-both,.bottom-right-handle.vertical-direction-both.horizontal-direction-both{visibility:visible;right:var(--horizontal-handle-offset);bottom:var(--vertical-handle-offset);height:var(--vertical-handle-size);width:var(--horizontal-handle-size);cursor:nwse-resize}.bottom-left-handle.vertical-direction-bottom.horizontal-direction-left,.bottom-left-handle.vertical-direction-both.horizontal-direction-left,.bottom-left-handle.vertical-direction-bottom.horizontal-direction-both,.bottom-left-handle.vertical-direction-both.horizontal-direction-both{visibility:visible;left:var(--horizontal-handle-offset);bottom:var(--vertical-handle-offset);height:var(--vertical-handle-size);width:var(--horizontal-handle-size);cursor:nesw-resize}.top-right-handle.vertical-direction-top.horizontal-direction-right,.top-right-handle.vertical-direction-both.horizontal-direction-right,.top-right-handle.vertical-direction-top.horizontal-direction-both,.top-right-handle.vertical-direction-both.horizontal-direction-both{visibility:visible;right:var(--horizontal-handle-offset);top:var(--vertical-handle-offset);height:var(--vertical-handle-size);width:var(--horizontal-handle-size);cursor:nesw-resize}.top-left-handle.vertical-direction-top.horizontal-direction-left,.top-left-handle.vertical-direction-both.horizontal-direction-left,.top-left-handle.vertical-direction-top.horizontal-direction-both,.top-left-handle.vertical-direction-both.horizontal-direction-both{visibility:visible;left:var(--horizontal-handle-offset);top:var(--vertical-handle-offset);height:var(--vertical-handle-size);width:var(--horizontal-handle-size);cursor:nwse-resize}`;
|
|
6
|
+
|
|
7
|
+
const WINDOW_RESIZE_DEBOUNCE_THRESHOLD = 200;
|
|
8
|
+
const Resizable = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.resizeStart = createEvent(this, "resizeStart");
|
|
12
|
+
this.resizeEnd = createEvent(this, "resizeEnd");
|
|
13
|
+
/**
|
|
14
|
+
* The horizontal direction that this component can be resized in.
|
|
15
|
+
*
|
|
16
|
+
* Supports `left`, `right`, `both`, or `none`, and defaults to `both`.
|
|
17
|
+
*/
|
|
18
|
+
this.horizontalDirection = 'both';
|
|
19
|
+
/**
|
|
20
|
+
* The vertical direction that this component can be resized in.
|
|
21
|
+
*
|
|
22
|
+
* Supports `top`, `bottom`, `both`, or `none`, and defaults to `both`.
|
|
23
|
+
*/
|
|
24
|
+
this.verticalDirection = 'both';
|
|
25
|
+
/**
|
|
26
|
+
* Indicates whether this resizable should set its `top` property to the
|
|
27
|
+
* difference between its initial height and max height, and its `left`
|
|
28
|
+
* property to the difference between its initial width and max width.
|
|
29
|
+
*
|
|
30
|
+
* Setting this is useful when using the `verticalDirection` of `top`
|
|
31
|
+
* or `horizontalDirection` of `left`, and positioning it to the
|
|
32
|
+
* bottom of the parent container or right of the parent container
|
|
33
|
+
* respectively.
|
|
34
|
+
*/
|
|
35
|
+
this.initializeWithOffset = false;
|
|
36
|
+
/**
|
|
37
|
+
* A prop to tell the component that it is absolutely positioned.
|
|
38
|
+
*
|
|
39
|
+
* If this prop is passed, it is expected that this component is anchored, and would only be
|
|
40
|
+
* draggable in one direction. It could have adverse affects if it is positioned absolutely, but then
|
|
41
|
+
* dragged in the opposite position from it's anchor point.
|
|
42
|
+
*/
|
|
43
|
+
this.position = 'relative';
|
|
44
|
+
/**
|
|
45
|
+
* Indicates whether the component has computed its initial dimensions.
|
|
46
|
+
* This can be used to hide a resizable element that has both a `min-width` or `min-height`
|
|
47
|
+
* and an initial horizontal or vertical scale factor prior to the actual initial width
|
|
48
|
+
* or height being computed.
|
|
49
|
+
*/
|
|
50
|
+
this.dimensionsComputed = false;
|
|
51
|
+
this.width = -1;
|
|
52
|
+
this.height = -1;
|
|
53
|
+
this.left = 0;
|
|
54
|
+
this.top = 0;
|
|
55
|
+
this.containerTop = 0;
|
|
56
|
+
this.containerLeft = 0;
|
|
57
|
+
this.handleDrag = this.handleDrag.bind(this);
|
|
58
|
+
this.handleDragBottom = this.handleDragBottom.bind(this);
|
|
59
|
+
this.handleDragTop = this.handleDragTop.bind(this);
|
|
60
|
+
this.handleDragLeft = this.handleDragLeft.bind(this);
|
|
61
|
+
this.handleDragRight = this.handleDragRight.bind(this);
|
|
62
|
+
this.handleWindowPointerUp = this.handleWindowPointerUp.bind(this);
|
|
63
|
+
this.updateDimensions = this.updateDimensions.bind(this);
|
|
64
|
+
this.recomputeDimensions = this.recomputeDimensions.bind(this);
|
|
65
|
+
this.computeDimensions = this.computeDimensions.bind(this);
|
|
66
|
+
this.mutationObserver = new MutationObserver(this.recomputeDimensions);
|
|
67
|
+
this.resizeObserver = new ResizeObserver(this.recomputeDimensions);
|
|
68
|
+
}
|
|
69
|
+
componentDidLoad() {
|
|
70
|
+
this.computeDimensions();
|
|
71
|
+
window.addEventListener('resize', this.recomputeDimensions);
|
|
72
|
+
this.mutationObserver.observe(this.hostElement, {
|
|
73
|
+
attributes: true,
|
|
74
|
+
attributeFilter: ['class'],
|
|
75
|
+
});
|
|
76
|
+
if (this.parentSelector != null) {
|
|
77
|
+
const parent = document.querySelector(this.parentSelector);
|
|
78
|
+
if (parent != null) {
|
|
79
|
+
this.resizeObserver.observe(parent);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
this.resizeObserver.observe(this.hostElement);
|
|
83
|
+
}
|
|
84
|
+
disconnectedCallback() {
|
|
85
|
+
this.dimensionsComputed = false;
|
|
86
|
+
window.removeEventListener('resize', this.recomputeDimensions);
|
|
87
|
+
this.mutationObserver.disconnect();
|
|
88
|
+
this.resizeObserver.disconnect();
|
|
89
|
+
}
|
|
90
|
+
connectedCallback() {
|
|
91
|
+
this.computeDimensions();
|
|
92
|
+
window.addEventListener('resize', this.recomputeDimensions);
|
|
93
|
+
this.mutationObserver.observe(this.hostElement, {
|
|
94
|
+
attributes: true,
|
|
95
|
+
attributeFilter: ['class'],
|
|
96
|
+
});
|
|
97
|
+
if (this.parentSelector != null) {
|
|
98
|
+
const parent = document.querySelector(this.parentSelector);
|
|
99
|
+
if (parent != null) {
|
|
100
|
+
this.resizeObserver.observe(parent);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
this.resizeObserver.observe(this.hostElement);
|
|
104
|
+
}
|
|
105
|
+
render() {
|
|
106
|
+
const width = this.width < 0 || this.horizontalDirection === 'none'
|
|
107
|
+
? '100%'
|
|
108
|
+
: `${this.width}px`;
|
|
109
|
+
const height = this.height < 0 || this.verticalDirection === 'none'
|
|
110
|
+
? '100%'
|
|
111
|
+
: `${this.height}px`;
|
|
112
|
+
return (h(Host, { key: 'df1cfd4b5cff53a97e023bd28b38a895c231d698', style: {
|
|
113
|
+
width,
|
|
114
|
+
height,
|
|
115
|
+
left: this.position === 'relative' ? `${this.left}px` : undefined,
|
|
116
|
+
top: this.position === 'relative' ? `${this.top}px` : undefined,
|
|
117
|
+
} }, h("div", { key: '98db17c90104701e449ad69b501da48f8e45828a', class: classNames('container', {
|
|
118
|
+
hidden: this.width <= 0 && this.height <= 0,
|
|
119
|
+
}) }, h("div", { key: '1315d54ec1e08bad9a9518093b18f829a6905f0e', class: classNames('shadow', `hovered-location-${this.dragStartLocation || this.hoveredLocation}`) }), h("div", { key: '214344a03339451443a232c5b27dfbbe9a606db0', class: classNames('handle', 'left-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'left'), onPointerEnter: () => this.handlePointerEnter('left'), onPointerLeave: () => this.handlePointerLeave('left') }), h("div", { key: '1d115a65f83ceb9b9ed042e456b228f7fb5f27ab', class: classNames('handle', 'right-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'right'), onPointerEnter: () => this.handlePointerEnter('right'), onPointerLeave: () => this.handlePointerLeave('right') }), h("div", { key: '2498a3983eb1421ab05ca91b85188a5d2f2e54cd', class: classNames('handle', 'top-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'top'), onPointerEnter: () => this.handlePointerEnter('top'), onPointerLeave: () => this.handlePointerLeave('top') }), h("div", { key: 'dfcd9fabf34fdc0ffd03ad473113a89990ff2bb3', class: classNames('handle', 'bottom-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'bottom'), onPointerEnter: () => this.handlePointerEnter('bottom'), onPointerLeave: () => this.handlePointerLeave('bottom') }), h("div", { key: 'fec489510c12be6dd41a482daace2bed04d6f7fe', class: classNames('handle', 'bottom-right-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'bottom-right'), onPointerEnter: () => this.handlePointerEnter('bottom-right'), onPointerLeave: () => this.handlePointerLeave('bottom-right') }), h("div", { key: 'cefd4f2534559032ed262ccab9d3bd022b0f7bd5', class: classNames('handle', 'bottom-left-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'bottom-left'), onPointerEnter: () => this.handlePointerEnter('bottom-left'), onPointerLeave: () => this.handlePointerLeave('bottom-left') }), h("div", { key: '5a890cb805443ca20252b851ac1e593f440c2337', class: classNames('handle', 'top-right-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'top-right'), onPointerEnter: () => this.handlePointerEnter('top-right'), onPointerLeave: () => this.handlePointerLeave('top-right') }), h("div", { key: '6d9eb463dc5e53399547139ac8048f31fb016d93', class: classNames('handle', 'top-left-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'top-left'), onPointerEnter: () => this.handlePointerEnter('top-left'), onPointerLeave: () => this.handlePointerLeave('top-left') }), h("slot", { key: '78a828ad95fe83e09adf708380b769aeabf8f553' }))));
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* @private
|
|
123
|
+
*
|
|
124
|
+
* Used for internals or testing.
|
|
125
|
+
*/
|
|
126
|
+
async updateDimensions(bounds, isRecompute = false) {
|
|
127
|
+
var _a, _b;
|
|
128
|
+
const { host, slotted, parent, minWidth, maxWidth, minHeight, maxHeight } = bounds;
|
|
129
|
+
// Calculate the horizontal bounds of the component, where baseMaxWidth is the
|
|
130
|
+
// maximum width of the container and this.maxWidth is the maximum width of the
|
|
131
|
+
// component when taking siblings into account
|
|
132
|
+
const baseMaxWidth = this.fromComputedStyle(maxWidth, (parent === null || parent === void 0 ? void 0 : parent.width) || host.width || slotted.width);
|
|
133
|
+
this.maxWidth =
|
|
134
|
+
baseMaxWidth != null
|
|
135
|
+
? baseMaxWidth -
|
|
136
|
+
this.getSiblingMinWidth((parent === null || parent === void 0 ? void 0 : parent.width) || host.width || slotted.width)
|
|
137
|
+
: undefined;
|
|
138
|
+
this.minWidth = this.fromComputedStyle(minWidth, (parent === null || parent === void 0 ? void 0 : parent.width) || host.width || slotted.width);
|
|
139
|
+
// Calculate the vertical bounds of the component, where baseMaxHeight is the
|
|
140
|
+
// maximum height of the container and this.maxHeight is the maximum height of
|
|
141
|
+
// the component when taking siblings into account
|
|
142
|
+
const baseMaxHeight = this.fromComputedStyle(maxHeight, (parent === null || parent === void 0 ? void 0 : parent.height) || host.height || slotted.height);
|
|
143
|
+
this.maxHeight =
|
|
144
|
+
baseMaxHeight != null
|
|
145
|
+
? baseMaxHeight -
|
|
146
|
+
this.getSiblingMinHeight((parent === null || parent === void 0 ? void 0 : parent.height) || host.height || slotted.height)
|
|
147
|
+
: undefined;
|
|
148
|
+
this.minHeight = this.fromComputedStyle(minHeight, (parent === null || parent === void 0 ? void 0 : parent.height) || host.height || slotted.height);
|
|
149
|
+
// Initialize the component's height and width if it was previously hidden
|
|
150
|
+
if (!isRecompute || this.height <= 0) {
|
|
151
|
+
const initialWidth = this.maxWidth != null && this.initialHorizontalScale != null
|
|
152
|
+
? this.maxWidth * this.initialHorizontalScale
|
|
153
|
+
: this.minWidth;
|
|
154
|
+
const initialHeight = this.maxHeight != null && this.initialVerticalScale != null
|
|
155
|
+
? this.maxHeight * this.initialVerticalScale
|
|
156
|
+
: this.minHeight;
|
|
157
|
+
this.width = initialWidth || slotted.width || this.width;
|
|
158
|
+
this.height = initialHeight || slotted.height || this.height;
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
this.height = this.toBoundedValue(this.height, this.minHeight || 0, this.maxHeight);
|
|
162
|
+
this.width = this.toBoundedValue(this.width, this.minWidth || 0, this.maxWidth);
|
|
163
|
+
}
|
|
164
|
+
this.containerTop = (_a = parent === null || parent === void 0 ? void 0 : parent.top) !== null && _a !== void 0 ? _a : host.top;
|
|
165
|
+
this.containerLeft = (_b = parent === null || parent === void 0 ? void 0 : parent.left) !== null && _b !== void 0 ? _b : host.left;
|
|
166
|
+
// this.left and this.top are only used internally, and in the case of absolute positioning, we only update
|
|
167
|
+
// the width/height, so we want to reset left & top to 0 to take into consideration the difference between
|
|
168
|
+
// it's parent container to the left/top position.
|
|
169
|
+
this.top =
|
|
170
|
+
baseMaxHeight != null &&
|
|
171
|
+
this.initializeWithOffset &&
|
|
172
|
+
this.position !== 'absolute'
|
|
173
|
+
? baseMaxHeight - this.height
|
|
174
|
+
: 0;
|
|
175
|
+
this.left =
|
|
176
|
+
baseMaxWidth != null &&
|
|
177
|
+
this.initializeWithOffset &&
|
|
178
|
+
this.position !== 'absolute'
|
|
179
|
+
? baseMaxWidth - this.width
|
|
180
|
+
: 0;
|
|
181
|
+
}
|
|
182
|
+
computeDimensions() {
|
|
183
|
+
readDOM(() => {
|
|
184
|
+
var _a;
|
|
185
|
+
const slotted = this.getSlottedElement();
|
|
186
|
+
if (typeof window !== 'undefined' && slotted != null) {
|
|
187
|
+
const computedStyles = window.getComputedStyle(this.hostElement);
|
|
188
|
+
this.updateDimensions({
|
|
189
|
+
host: this.hostElement.getBoundingClientRect(),
|
|
190
|
+
slotted: slotted.getBoundingClientRect(),
|
|
191
|
+
parent: this.parentSelector != null
|
|
192
|
+
? (_a = document
|
|
193
|
+
.querySelector(this.parentSelector)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()
|
|
194
|
+
: undefined,
|
|
195
|
+
minWidth: computedStyles.minWidth,
|
|
196
|
+
maxWidth: computedStyles.maxWidth,
|
|
197
|
+
minHeight: computedStyles.minHeight,
|
|
198
|
+
maxHeight: computedStyles.maxHeight,
|
|
199
|
+
});
|
|
200
|
+
this.dimensionsComputed = true;
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
recomputeDimensions() {
|
|
205
|
+
if (this.resizeTimeout != null) {
|
|
206
|
+
clearTimeout(this.resizeTimeout);
|
|
207
|
+
this.resizeTimeout = undefined;
|
|
208
|
+
}
|
|
209
|
+
this.resizeTimeout = setTimeout(() => {
|
|
210
|
+
this.resizeTimeout = undefined;
|
|
211
|
+
readDOM(() => {
|
|
212
|
+
var _a;
|
|
213
|
+
const slotted = this.getSlottedElement();
|
|
214
|
+
if (typeof window !== 'undefined' && slotted != null) {
|
|
215
|
+
const computedStyles = window.getComputedStyle(this.hostElement);
|
|
216
|
+
this.updateDimensions({
|
|
217
|
+
host: this.hostElement.getBoundingClientRect(),
|
|
218
|
+
slotted: slotted.getBoundingClientRect(),
|
|
219
|
+
parent: this.parentSelector != null
|
|
220
|
+
? (_a = document
|
|
221
|
+
.querySelector(this.parentSelector)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()
|
|
222
|
+
: undefined,
|
|
223
|
+
minWidth: computedStyles.minWidth,
|
|
224
|
+
maxWidth: computedStyles.maxWidth,
|
|
225
|
+
minHeight: computedStyles.minHeight,
|
|
226
|
+
maxHeight: computedStyles.maxHeight,
|
|
227
|
+
}, true);
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
}, WINDOW_RESIZE_DEBOUNCE_THRESHOLD);
|
|
231
|
+
}
|
|
232
|
+
handlePointerEnter(location) {
|
|
233
|
+
this.hoveredLocation = location;
|
|
234
|
+
}
|
|
235
|
+
handlePointerLeave(location) {
|
|
236
|
+
if (location === this.hoveredLocation) {
|
|
237
|
+
this.hoveredLocation = undefined;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
handlePointerDown(e, location) {
|
|
241
|
+
this.setStartPosition(e, location);
|
|
242
|
+
this.emitResizeStart(location);
|
|
243
|
+
window.addEventListener('pointermove', this.handleDrag);
|
|
244
|
+
window.addEventListener('pointerup', this.handleWindowPointerUp);
|
|
245
|
+
}
|
|
246
|
+
handleDrag(e) {
|
|
247
|
+
if (this.lastPointerPosition != null) {
|
|
248
|
+
const difference = {
|
|
249
|
+
x: this.lastPointerPosition.x - e.clientX,
|
|
250
|
+
y: this.lastPointerPosition.y - e.clientY,
|
|
251
|
+
};
|
|
252
|
+
this.lastPointerPosition = { x: e.clientX, y: e.clientY };
|
|
253
|
+
switch (this.dragStartLocation) {
|
|
254
|
+
case 'bottom':
|
|
255
|
+
this.ifValidDragBottom(e, difference, this.handleDragBottom);
|
|
256
|
+
break;
|
|
257
|
+
case 'top':
|
|
258
|
+
this.ifValidDragTop(e, difference, this.handleDragTop);
|
|
259
|
+
break;
|
|
260
|
+
case 'right':
|
|
261
|
+
this.ifValidDragRight(e, difference, this.handleDragRight);
|
|
262
|
+
break;
|
|
263
|
+
case 'left':
|
|
264
|
+
this.ifValidDragLeft(e, difference, this.handleDragLeft);
|
|
265
|
+
break;
|
|
266
|
+
case 'bottom-right':
|
|
267
|
+
this.ifValidDragBottom(e, difference, this.handleDragBottom);
|
|
268
|
+
this.ifValidDragRight(e, difference, this.handleDragRight);
|
|
269
|
+
break;
|
|
270
|
+
case 'bottom-left':
|
|
271
|
+
this.ifValidDragBottom(e, difference, this.handleDragBottom);
|
|
272
|
+
this.ifValidDragLeft(e, difference, this.handleDragLeft);
|
|
273
|
+
break;
|
|
274
|
+
case 'top-right':
|
|
275
|
+
this.ifValidDragTop(e, difference, this.handleDragTop);
|
|
276
|
+
this.ifValidDragRight(e, difference, this.handleDragRight);
|
|
277
|
+
break;
|
|
278
|
+
case 'top-left':
|
|
279
|
+
this.ifValidDragTop(e, difference, this.handleDragTop);
|
|
280
|
+
this.ifValidDragLeft(e, difference, this.handleDragLeft);
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
handleWindowPointerUp() {
|
|
286
|
+
if (this.dragStartLocation != null) {
|
|
287
|
+
this.emitResizeEnd(this.dragStartLocation);
|
|
288
|
+
}
|
|
289
|
+
this.lastPointerPosition = undefined;
|
|
290
|
+
this.dragStartLocation = undefined;
|
|
291
|
+
window.removeEventListener('pointermove', this.handleDrag);
|
|
292
|
+
window.removeEventListener('pointerup', this.handleWindowPointerUp);
|
|
293
|
+
}
|
|
294
|
+
ifValidDragTop(e, difference, fn) {
|
|
295
|
+
const isReducingSize = difference.y < 0;
|
|
296
|
+
const isValid = isReducingSize
|
|
297
|
+
? e.clientY - this.containerTop > this.top
|
|
298
|
+
: e.clientY - this.containerTop <= this.top;
|
|
299
|
+
if (isValid) {
|
|
300
|
+
fn(difference);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
ifValidDragBottom(e, difference, fn) {
|
|
304
|
+
const isReducingSize = difference.y > 0;
|
|
305
|
+
const isValid = isReducingSize
|
|
306
|
+
? e.clientY < this.top + this.containerTop + this.height
|
|
307
|
+
: e.clientY >= this.top + this.containerTop + this.height;
|
|
308
|
+
if (isValid) {
|
|
309
|
+
fn(difference);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
ifValidDragLeft(e, difference, fn) {
|
|
313
|
+
const isReducingSize = difference.x < 0;
|
|
314
|
+
const isValid = isReducingSize
|
|
315
|
+
? e.clientX - this.containerLeft > this.left
|
|
316
|
+
: e.clientX - this.containerLeft <= this.left;
|
|
317
|
+
if (isValid) {
|
|
318
|
+
fn(difference);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
ifValidDragRight(e, difference, fn) {
|
|
322
|
+
const isReducingSize = difference.x > 0;
|
|
323
|
+
const isValid = isReducingSize
|
|
324
|
+
? e.clientX < this.left + this.containerLeft + this.width
|
|
325
|
+
: e.clientX >= this.left + this.containerLeft + this.width;
|
|
326
|
+
if (isValid) {
|
|
327
|
+
fn(difference);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
handleDragTop(difference) {
|
|
331
|
+
const initialHeight = this.height;
|
|
332
|
+
this.height = this.toBoundedValue(this.height + difference.y, this.minHeight || 0, this.maxHeight);
|
|
333
|
+
const heightDifference = this.height - initialHeight;
|
|
334
|
+
this.top -= heightDifference;
|
|
335
|
+
}
|
|
336
|
+
handleDragBottom(difference) {
|
|
337
|
+
this.height = this.toBoundedValue(this.height - difference.y, this.minHeight || 0, this.maxHeight);
|
|
338
|
+
}
|
|
339
|
+
handleDragLeft(difference) {
|
|
340
|
+
const initialWidth = this.width;
|
|
341
|
+
this.width = this.toBoundedValue(this.width + difference.x, this.minWidth || 0, this.maxWidth);
|
|
342
|
+
const widthDifference = this.width - initialWidth;
|
|
343
|
+
this.left -= widthDifference;
|
|
344
|
+
}
|
|
345
|
+
handleDragRight(difference) {
|
|
346
|
+
this.width = this.toBoundedValue(this.width - difference.x, this.minWidth || 0, this.maxWidth);
|
|
347
|
+
}
|
|
348
|
+
setStartPosition(e, location) {
|
|
349
|
+
e.stopPropagation();
|
|
350
|
+
e.preventDefault();
|
|
351
|
+
this.lastPointerPosition = { x: e.clientX, y: e.clientY };
|
|
352
|
+
this.dragStartLocation = location;
|
|
353
|
+
}
|
|
354
|
+
getSlottedElement() {
|
|
355
|
+
var _a, _b, _c;
|
|
356
|
+
if (this.contentSelector != null) {
|
|
357
|
+
return (((_a = this.hostElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(this.contentSelector)) ||
|
|
358
|
+
this.hostElement.querySelector(this.contentSelector) ||
|
|
359
|
+
undefined);
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
const contentSlot = ((_b = this.hostElement.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('slot')) || undefined;
|
|
363
|
+
if (((_c = contentSlot === null || contentSlot === void 0 ? void 0 : contentSlot.assignedElements) === null || _c === void 0 ? void 0 : _c.call(contentSlot).length) || 0 > 0) {
|
|
364
|
+
return contentSlot === null || contentSlot === void 0 ? void 0 : contentSlot.assignedElements()[0];
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
getMinBounds() {
|
|
369
|
+
const boundedMinHeight = this.minHeight != null ? this.height - this.minHeight : this.height;
|
|
370
|
+
const boundedMinWidth = this.minWidth != null ? this.width - this.minWidth : this.width;
|
|
371
|
+
return {
|
|
372
|
+
x: boundedMinWidth,
|
|
373
|
+
y: boundedMinHeight,
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
fromComputedStyle(value, base) {
|
|
377
|
+
const parsed = parseFloat(value);
|
|
378
|
+
if (isNaN(parsed) || parsed <= 0) {
|
|
379
|
+
return undefined;
|
|
380
|
+
}
|
|
381
|
+
else if (value.includes('%')) {
|
|
382
|
+
return (parsed / 100) * base;
|
|
383
|
+
}
|
|
384
|
+
else {
|
|
385
|
+
return parsed;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
toBoundedValue(value, min, max) {
|
|
389
|
+
return Math.max(Math.min(value, max !== null && max !== void 0 ? max : value), min);
|
|
390
|
+
}
|
|
391
|
+
getSiblingMinWidth(base) {
|
|
392
|
+
var _a;
|
|
393
|
+
const sibling = this.horizontalSiblingSelector != null
|
|
394
|
+
? document.querySelector(this.horizontalSiblingSelector)
|
|
395
|
+
: undefined;
|
|
396
|
+
if (typeof window !== 'undefined' && sibling) {
|
|
397
|
+
const siblingComputedStyles = window.getComputedStyle(sibling);
|
|
398
|
+
return (_a = this.fromComputedStyle(siblingComputedStyles.minWidth, base)) !== null && _a !== void 0 ? _a : 0;
|
|
399
|
+
}
|
|
400
|
+
return 0;
|
|
401
|
+
}
|
|
402
|
+
getSiblingMinHeight(base) {
|
|
403
|
+
var _a;
|
|
404
|
+
const sibling = this.verticalSiblingSelector != null
|
|
405
|
+
? document.querySelector(this.verticalSiblingSelector)
|
|
406
|
+
: undefined;
|
|
407
|
+
if (typeof window !== 'undefined' && sibling) {
|
|
408
|
+
const siblingComputedStyles = window.getComputedStyle(sibling);
|
|
409
|
+
return (_a = this.fromComputedStyle(siblingComputedStyles.minHeight, base)) !== null && _a !== void 0 ? _a : 0;
|
|
410
|
+
}
|
|
411
|
+
return 0;
|
|
412
|
+
}
|
|
413
|
+
emitResizeStart(location) {
|
|
414
|
+
readDOM(() => {
|
|
415
|
+
this.resizeStart.emit(this.computeResizeEventDetails(location));
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
emitResizeEnd(location) {
|
|
419
|
+
readDOM(() => {
|
|
420
|
+
this.resizeEnd.emit(this.computeResizeEventDetails(location));
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
computeResizeEventDetails(location) {
|
|
424
|
+
var _a, _b, _c, _d, _e;
|
|
425
|
+
const parentBounds = this.parentSelector != null
|
|
426
|
+
? (_a = document.querySelector(this.parentSelector)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()
|
|
427
|
+
: undefined;
|
|
428
|
+
return {
|
|
429
|
+
location,
|
|
430
|
+
width: this.width,
|
|
431
|
+
height: this.height,
|
|
432
|
+
widthPercentage: this.width /
|
|
433
|
+
((_c = (_b = this.maxWidth) !== null && _b !== void 0 ? _b : parentBounds === null || parentBounds === void 0 ? void 0 : parentBounds.width) !== null && _c !== void 0 ? _c : window.innerWidth),
|
|
434
|
+
heightPercentage: this.height /
|
|
435
|
+
((_e = (_d = this.maxHeight) !== null && _d !== void 0 ? _d : parentBounds === null || parentBounds === void 0 ? void 0 : parentBounds.height) !== null && _e !== void 0 ? _e : window.innerHeight),
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
get hostElement() { return getElement(this); }
|
|
439
|
+
};
|
|
440
|
+
Resizable.style = resizableCss();
|
|
441
|
+
|
|
442
|
+
export { Resizable as vertex_resizable };
|