@verbb/plugin-kit-web 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/LICENSE.md +21 -0
- package/README.md +149 -0
- package/dist/a11y/active-elements.d.ts +6 -0
- package/dist/a11y/active-elements.d.ts.map +1 -0
- package/dist/a11y/dismissible-stack.d.ts +6 -0
- package/dist/a11y/dismissible-stack.d.ts.map +1 -0
- package/dist/a11y/focus.d.ts +20 -0
- package/dist/a11y/focus.d.ts.map +1 -0
- package/dist/a11y/index.d.ts +7 -0
- package/dist/a11y/index.d.ts.map +1 -0
- package/dist/a11y/offset.d.ts +9 -0
- package/dist/a11y/offset.d.ts.map +1 -0
- package/dist/a11y/scroll-lock.d.ts +23 -0
- package/dist/a11y/scroll-lock.d.ts.map +1 -0
- package/dist/base/checkbox-control.styles.d.ts +3 -0
- package/dist/base/checkbox-control.styles.d.ts.map +1 -0
- package/dist/base/component-id.d.ts +2 -0
- package/dist/base/component-id.d.ts.map +1 -0
- package/dist/base/form-control.styles.d.ts +3 -0
- package/dist/base/form-control.styles.d.ts.map +1 -0
- package/dist/base/icon.styles.d.ts +3 -0
- package/dist/base/icon.styles.d.ts.map +1 -0
- package/dist/base/markdown.styles.d.ts +3 -0
- package/dist/base/markdown.styles.d.ts.map +1 -0
- package/dist/base/pk-element.d.ts +28 -0
- package/dist/base/pk-element.d.ts.map +1 -0
- package/dist/base/pk-form-associated-element.d.ts +63 -0
- package/dist/base/pk-form-associated-element.d.ts.map +1 -0
- package/dist/base/shadow-reset.styles.d.ts +6 -0
- package/dist/base/shadow-reset.styles.d.ts.map +1 -0
- package/dist/base/styles.d.ts +9 -0
- package/dist/base/styles.d.ts.map +1 -0
- package/dist/chunks/active-elements-BwpXu8Lb.js +16 -0
- package/dist/chunks/active-elements-BwpXu8Lb.js.map +1 -0
- package/dist/chunks/animate-with-class-CsDwYnXL.js +42 -0
- package/dist/chunks/animate-with-class-CsDwYnXL.js.map +1 -0
- package/dist/chunks/autoloader-DzOTQqe6.js +177 -0
- package/dist/chunks/autoloader-DzOTQqe6.js.map +1 -0
- package/dist/chunks/button-group-item.styles-DYmBR28a.js +147 -0
- package/dist/chunks/button-group-item.styles-DYmBR28a.js.map +1 -0
- package/dist/chunks/component-registry-CpZiIDh4.js +130 -0
- package/dist/chunks/component-registry-CpZiIDh4.js.map +1 -0
- package/dist/chunks/control-aria-B2QMq4ji.js +69 -0
- package/dist/chunks/control-aria-B2QMq4ji.js.map +1 -0
- package/dist/chunks/decorate-W02hmVTt.js +149 -0
- package/dist/chunks/decorate-W02hmVTt.js.map +1 -0
- package/dist/chunks/dismissible-stack-XQUMfKO3.js +32 -0
- package/dist/chunks/dismissible-stack-XQUMfKO3.js.map +1 -0
- package/dist/chunks/field-labels-CoU9dnNq.js +14 -0
- package/dist/chunks/field-labels-CoU9dnNq.js.map +1 -0
- package/dist/chunks/focus-aa5dlv8k.js +122 -0
- package/dist/chunks/focus-aa5dlv8k.js.map +1 -0
- package/dist/chunks/form-control.styles-BQdimE5o.js +108 -0
- package/dist/chunks/form-control.styles-BQdimE5o.js.map +1 -0
- package/dist/chunks/has-slot-8BvCt_qo.js +74 -0
- package/dist/chunks/has-slot-8BvCt_qo.js.map +1 -0
- package/dist/chunks/icon.styles-BLTWLqYp.js +21 -0
- package/dist/chunks/icon.styles-BLTWLqYp.js.map +1 -0
- package/dist/chunks/icons-BR8JcQj2.js +52 -0
- package/dist/chunks/icons-BR8JcQj2.js.map +1 -0
- package/dist/chunks/mirror-validator-DCjNYrrx.js +32 -0
- package/dist/chunks/mirror-validator-DCjNYrrx.js.map +1 -0
- package/dist/chunks/overlay-lifecycle-D0pkTQyI.js +44 -0
- package/dist/chunks/overlay-lifecycle-D0pkTQyI.js.map +1 -0
- package/dist/chunks/pk-button-Cilu5WAT.js +840 -0
- package/dist/chunks/pk-button-Cilu5WAT.js.map +1 -0
- package/dist/chunks/pk-button-group-D9hqSfb_.js +422 -0
- package/dist/chunks/pk-button-group-D9hqSfb_.js.map +1 -0
- package/dist/chunks/pk-button-group-separator-DG0CYaqc.js +61 -0
- package/dist/chunks/pk-button-group-separator-DG0CYaqc.js.map +1 -0
- package/dist/chunks/pk-button-group-text-C5z4P7ur.js +49 -0
- package/dist/chunks/pk-button-group-text-C5z4P7ur.js.map +1 -0
- package/dist/chunks/pk-calendar-CcV-La-9.js +1410 -0
- package/dist/chunks/pk-calendar-CcV-La-9.js.map +1 -0
- package/dist/chunks/pk-checkbox-Bavq3-9C.js +360 -0
- package/dist/chunks/pk-checkbox-Bavq3-9C.js.map +1 -0
- package/dist/chunks/pk-checkbox-select-ZEJ6WIQn.js +221 -0
- package/dist/chunks/pk-checkbox-select-ZEJ6WIQn.js.map +1 -0
- package/dist/chunks/pk-clear--mPWZP7H.js +15 -0
- package/dist/chunks/pk-clear--mPWZP7H.js.map +1 -0
- package/dist/chunks/pk-code-editor-DSG6AwLV.js +213 -0
- package/dist/chunks/pk-code-editor-DSG6AwLV.js.map +1 -0
- package/dist/chunks/pk-color-input-D4L0DE5S.js +398 -0
- package/dist/chunks/pk-color-input-D4L0DE5S.js.map +1 -0
- package/dist/chunks/pk-combobox-Dd1ik0Ko.js +2015 -0
- package/dist/chunks/pk-combobox-Dd1ik0Ko.js.map +1 -0
- package/dist/chunks/pk-copy-button-DPh5TOF9.js +139 -0
- package/dist/chunks/pk-copy-button-DPh5TOF9.js.map +1 -0
- package/dist/chunks/pk-date-picker-CkwU4DzD.js +717 -0
- package/dist/chunks/pk-date-picker-CkwU4DzD.js.map +1 -0
- package/dist/chunks/pk-dialog-DZZd1Tzb.js +636 -0
- package/dist/chunks/pk-dialog-DZZd1Tzb.js.map +1 -0
- package/dist/chunks/pk-dropdown-item-BFyjtsL5.js +547 -0
- package/dist/chunks/pk-dropdown-item-BFyjtsL5.js.map +1 -0
- package/dist/chunks/pk-dropdown-label-DfACId-K.js +48 -0
- package/dist/chunks/pk-dropdown-label-DfACId-K.js.map +1 -0
- package/dist/chunks/pk-dropdown-menu-DWlxkDIs.js +735 -0
- package/dist/chunks/pk-dropdown-menu-DWlxkDIs.js.map +1 -0
- package/dist/chunks/pk-editable-table-pBkD6izs.js +1528 -0
- package/dist/chunks/pk-editable-table-pBkD6izs.js.map +1 -0
- package/dist/chunks/pk-field-Buy_AtYF.js +485 -0
- package/dist/chunks/pk-field-Buy_AtYF.js.map +1 -0
- package/dist/chunks/pk-form-associated-element-DmZKgNPL.js +260 -0
- package/dist/chunks/pk-form-associated-element-DmZKgNPL.js.map +1 -0
- package/dist/chunks/pk-input-group-CGHQKrt8.js +238 -0
- package/dist/chunks/pk-input-group-CGHQKrt8.js.map +1 -0
- package/dist/chunks/pk-input-group-addon-DXbNbsfY.js +101 -0
- package/dist/chunks/pk-input-group-addon-DXbNbsfY.js.map +1 -0
- package/dist/chunks/pk-input-group-button-XOfVLqGO.js +55 -0
- package/dist/chunks/pk-input-group-button-XOfVLqGO.js.map +1 -0
- package/dist/chunks/pk-input-group-input-CSmR5vdY.js +136 -0
- package/dist/chunks/pk-input-group-input-CSmR5vdY.js.map +1 -0
- package/dist/chunks/pk-input-group-text-C6ekhtff.js +40 -0
- package/dist/chunks/pk-input-group-text-C6ekhtff.js.map +1 -0
- package/dist/chunks/pk-input-group-textarea-DALr3pdU.js +113 -0
- package/dist/chunks/pk-input-group-textarea-DALr3pdU.js.map +1 -0
- package/dist/chunks/pk-input-naIRPWGC.js +723 -0
- package/dist/chunks/pk-input-naIRPWGC.js.map +1 -0
- package/dist/chunks/pk-lightswitch-B-rLflNq.js +432 -0
- package/dist/chunks/pk-lightswitch-B-rLflNq.js.map +1 -0
- package/dist/chunks/pk-option-C3Zqmu3z.js +312 -0
- package/dist/chunks/pk-option-C3Zqmu3z.js.map +1 -0
- package/dist/chunks/pk-option-group-CbI56A3T.js +72 -0
- package/dist/chunks/pk-option-group-CbI56A3T.js.map +1 -0
- package/dist/chunks/pk-popover-XZZdJ4WI.js +377 -0
- package/dist/chunks/pk-popover-XZZdJ4WI.js.map +1 -0
- package/dist/chunks/pk-popup-CgiXok-U.js +538 -0
- package/dist/chunks/pk-popup-CgiXok-U.js.map +1 -0
- package/dist/chunks/pk-radio-Bg02ckzC.js +233 -0
- package/dist/chunks/pk-radio-Bg02ckzC.js.map +1 -0
- package/dist/chunks/pk-radio-group-B5rps9G4.js +253 -0
- package/dist/chunks/pk-radio-group-B5rps9G4.js.map +1 -0
- package/dist/chunks/pk-scroll-area-B0V4Dr2j.js +402 -0
- package/dist/chunks/pk-scroll-area-B0V4Dr2j.js.map +1 -0
- package/dist/chunks/pk-select-B17rV6BR.js +1129 -0
- package/dist/chunks/pk-select-B17rV6BR.js.map +1 -0
- package/dist/chunks/pk-separator-CLb9n0FK.js +89 -0
- package/dist/chunks/pk-separator-CLb9n0FK.js.map +1 -0
- package/dist/chunks/pk-spinner-Blxd3SIH.js +148 -0
- package/dist/chunks/pk-spinner-Blxd3SIH.js.map +1 -0
- package/dist/chunks/pk-status-7_5dEuw-.js +92 -0
- package/dist/chunks/pk-status-7_5dEuw-.js.map +1 -0
- package/dist/chunks/pk-tab-CzV7pOdp.js +259 -0
- package/dist/chunks/pk-tab-CzV7pOdp.js.map +1 -0
- package/dist/chunks/pk-tab-heading-BWAB85ua.js +50 -0
- package/dist/chunks/pk-tab-heading-BWAB85ua.js.map +1 -0
- package/dist/chunks/pk-tab-panel-Q3Pqyq-f.js +86 -0
- package/dist/chunks/pk-tab-panel-Q3Pqyq-f.js.map +1 -0
- package/dist/chunks/pk-tabs-Cip4nbb7.js +622 -0
- package/dist/chunks/pk-tabs-Cip4nbb7.js.map +1 -0
- package/dist/chunks/pk-textarea-BEapC8Rk.js +342 -0
- package/dist/chunks/pk-textarea-BEapC8Rk.js.map +1 -0
- package/dist/chunks/pk-time-picker-DbW_hMs2.js +228 -0
- package/dist/chunks/pk-time-picker-DbW_hMs2.js.map +1 -0
- package/dist/chunks/pk-tiptap-content-DAtNbJYC.js +76 -0
- package/dist/chunks/pk-tiptap-content-DAtNbJYC.js.map +1 -0
- package/dist/chunks/pk-tiptap-editor-umIuEaXh.js +1084 -0
- package/dist/chunks/pk-tiptap-editor-umIuEaXh.js.map +1 -0
- package/dist/chunks/pk-tiptap-input-CXcYXbRa.js +250 -0
- package/dist/chunks/pk-tiptap-input-CXcYXbRa.js.map +1 -0
- package/dist/chunks/pk-toggle-5-GKVLye.js +256 -0
- package/dist/chunks/pk-toggle-5-GKVLye.js.map +1 -0
- package/dist/chunks/pk-toggle-group-CWDwYlgR.js +175 -0
- package/dist/chunks/pk-toggle-group-CWDwYlgR.js.map +1 -0
- package/dist/chunks/pk-tooltip-fcUbVGli.js +469 -0
- package/dist/chunks/pk-tooltip-fcUbVGli.js.map +1 -0
- package/dist/chunks/popup-content-animation.styles-Dc6d9quJ.js +117 -0
- package/dist/chunks/popup-content-animation.styles-Dc6d9quJ.js.map +1 -0
- package/dist/chunks/popup-placement-animation-WlEXnS85.js +60 -0
- package/dist/chunks/popup-placement-animation-WlEXnS85.js.map +1 -0
- package/dist/chunks/popup-pointer-C8lypj8V.js +21 -0
- package/dist/chunks/popup-pointer-C8lypj8V.js.map +1 -0
- package/dist/chunks/register-components-DNw6EYNo.js +15 -0
- package/dist/chunks/register-components-DNw6EYNo.js.map +1 -0
- package/dist/chunks/render-Dvc3MHQR.js +16 -0
- package/dist/chunks/render-Dvc3MHQR.js.map +1 -0
- package/dist/chunks/required-validator-CEg8dvjS.js +29 -0
- package/dist/chunks/required-validator-CEg8dvjS.js.map +1 -0
- package/dist/chunks/scroll-lock-B4o9vdzJ.js +193 -0
- package/dist/chunks/scroll-lock-B4o9vdzJ.js.map +1 -0
- package/dist/chunks/spinner-utils-CDfHypTv.js +15 -0
- package/dist/chunks/spinner-utils-CDfHypTv.js.map +1 -0
- package/dist/chunks/supports-popover-CUBsbHpS.js +7 -0
- package/dist/chunks/supports-popover-CUBsbHpS.js.map +1 -0
- package/dist/chunks/sync-listbox-separators-B1-V0oJi.js +149 -0
- package/dist/chunks/sync-listbox-separators-B1-V0oJi.js.map +1 -0
- package/dist/chunks/tiptap.styles-BytOpP0H.js +463 -0
- package/dist/chunks/tiptap.styles-BytOpP0H.js.map +1 -0
- package/dist/component-registry.d.ts +28 -0
- package/dist/component-registry.d.ts.map +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/pk-button.d.ts +91 -0
- package/dist/components/button/pk-button.d.ts.map +1 -0
- package/dist/components/button/pk-button.js +2 -0
- package/dist/components/button/pk-button.styles.d.ts +2 -0
- package/dist/components/button/pk-button.styles.d.ts.map +1 -0
- package/dist/components/button-group/button-group-item.styles.d.ts +13 -0
- package/dist/components/button-group/button-group-item.styles.d.ts.map +1 -0
- package/dist/components/button-group/index.d.ts +4 -0
- package/dist/components/button-group/index.d.ts.map +1 -0
- package/dist/components/button-group/pk-button-group-separator.d.ts +18 -0
- package/dist/components/button-group/pk-button-group-separator.d.ts.map +1 -0
- package/dist/components/button-group/pk-button-group-separator.js +2 -0
- package/dist/components/button-group/pk-button-group-separator.styles.d.ts +2 -0
- package/dist/components/button-group/pk-button-group-separator.styles.d.ts.map +1 -0
- package/dist/components/button-group/pk-button-group-text.d.ts +18 -0
- package/dist/components/button-group/pk-button-group-text.d.ts.map +1 -0
- package/dist/components/button-group/pk-button-group-text.js +2 -0
- package/dist/components/button-group/pk-button-group-text.styles.d.ts +2 -0
- package/dist/components/button-group/pk-button-group-text.styles.d.ts.map +1 -0
- package/dist/components/button-group/pk-button-group.d.ts +40 -0
- package/dist/components/button-group/pk-button-group.d.ts.map +1 -0
- package/dist/components/button-group/pk-button-group.js +2 -0
- package/dist/components/button-group/pk-button-group.styles.d.ts +2 -0
- package/dist/components/button-group/pk-button-group.styles.d.ts.map +1 -0
- package/dist/components/button-group.d.ts +2 -0
- package/dist/components/button-group.js +4 -0
- package/dist/components/button.d.ts +2 -0
- package/dist/components/button.js +2 -0
- package/dist/components/calendar/index.d.ts +3 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/pk-calendar.d.ts +117 -0
- package/dist/components/calendar/pk-calendar.d.ts.map +1 -0
- package/dist/components/calendar/pk-calendar.js +2 -0
- package/dist/components/calendar/pk-calendar.styles.d.ts +2 -0
- package/dist/components/calendar/pk-calendar.styles.d.ts.map +1 -0
- package/dist/components/calendar.d.ts +2 -0
- package/dist/components/calendar.js +2 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/pk-checkbox.d.ts +50 -0
- package/dist/components/checkbox/pk-checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/pk-checkbox.js +2 -0
- package/dist/components/checkbox/pk-checkbox.styles.d.ts +2 -0
- package/dist/components/checkbox/pk-checkbox.styles.d.ts.map +1 -0
- package/dist/components/checkbox-select/index.d.ts +2 -0
- package/dist/components/checkbox-select/index.d.ts.map +1 -0
- package/dist/components/checkbox-select/pk-checkbox-select.d.ts +48 -0
- package/dist/components/checkbox-select/pk-checkbox-select.d.ts.map +1 -0
- package/dist/components/checkbox-select/pk-checkbox-select.js +2 -0
- package/dist/components/checkbox-select/pk-checkbox-select.styles.d.ts +2 -0
- package/dist/components/checkbox-select/pk-checkbox-select.styles.d.ts.map +1 -0
- package/dist/components/checkbox-select.d.ts +2 -0
- package/dist/components/checkbox-select.js +2 -0
- package/dist/components/checkbox.d.ts +2 -0
- package/dist/components/checkbox.js +2 -0
- package/dist/components/code-editor/index.d.ts +2 -0
- package/dist/components/code-editor/index.d.ts.map +1 -0
- package/dist/components/code-editor/pk-code-editor.d.ts +40 -0
- package/dist/components/code-editor/pk-code-editor.d.ts.map +1 -0
- package/dist/components/code-editor/pk-code-editor.js +2 -0
- package/dist/components/code-editor/pk-code-editor.styles.d.ts +2 -0
- package/dist/components/code-editor/pk-code-editor.styles.d.ts.map +1 -0
- package/dist/components/code-editor.d.ts +2 -0
- package/dist/components/code-editor.js +2 -0
- package/dist/components/color-input/index.d.ts +2 -0
- package/dist/components/color-input/index.d.ts.map +1 -0
- package/dist/components/color-input/pk-color-input.d.ts +41 -0
- package/dist/components/color-input/pk-color-input.d.ts.map +1 -0
- package/dist/components/color-input/pk-color-input.js +2 -0
- package/dist/components/color-input/pk-color-input.styles.d.ts +7 -0
- package/dist/components/color-input/pk-color-input.styles.d.ts.map +1 -0
- package/dist/components/color-input.d.ts +2 -0
- package/dist/components/color-input.js +2 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/pk-combobox.d.ts +219 -0
- package/dist/components/combobox/pk-combobox.d.ts.map +1 -0
- package/dist/components/combobox/pk-combobox.js +2 -0
- package/dist/components/combobox/pk-combobox.styles.d.ts +2 -0
- package/dist/components/combobox/pk-combobox.styles.d.ts.map +1 -0
- package/dist/components/combobox.d.ts +2 -0
- package/dist/components/combobox.js +2 -0
- package/dist/components/copy-button/index.d.ts +2 -0
- package/dist/components/copy-button/index.d.ts.map +1 -0
- package/dist/components/copy-button/pk-copy-button.d.ts +37 -0
- package/dist/components/copy-button/pk-copy-button.d.ts.map +1 -0
- package/dist/components/copy-button/pk-copy-button.js +2 -0
- package/dist/components/copy-button/pk-copy-button.styles.d.ts +2 -0
- package/dist/components/copy-button/pk-copy-button.styles.d.ts.map +1 -0
- package/dist/components/copy-button.d.ts +2 -0
- package/dist/components/copy-button.js +2 -0
- package/dist/components/date-picker/index.d.ts +3 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/date-picker/pk-date-picker.d.ts +107 -0
- package/dist/components/date-picker/pk-date-picker.d.ts.map +1 -0
- package/dist/components/date-picker/pk-date-picker.js +2 -0
- package/dist/components/date-picker/pk-date-picker.styles.d.ts +2 -0
- package/dist/components/date-picker/pk-date-picker.styles.d.ts.map +1 -0
- package/dist/components/date-picker.d.ts +2 -0
- package/dist/components/date-picker.js +2 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/dialog/index.d.ts.map +1 -0
- package/dist/components/dialog/pk-dialog.d.ts +87 -0
- package/dist/components/dialog/pk-dialog.d.ts.map +1 -0
- package/dist/components/dialog/pk-dialog.js +2 -0
- package/dist/components/dialog/pk-dialog.styles.d.ts +2 -0
- package/dist/components/dialog/pk-dialog.styles.d.ts.map +1 -0
- package/dist/components/dialog.d.ts +2 -0
- package/dist/components/dialog.js +2 -0
- package/dist/components/dropdown-menu/dropdown-menu-size.styles.d.ts +11 -0
- package/dist/components/dropdown-menu/dropdown-menu-size.styles.d.ts.map +1 -0
- package/dist/components/dropdown-menu/index.d.ts +5 -0
- package/dist/components/dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/dropdown-menu/pk-dropdown-item.d.ts +67 -0
- package/dist/components/dropdown-menu/pk-dropdown-item.d.ts.map +1 -0
- package/dist/components/dropdown-menu/pk-dropdown-item.js +2 -0
- package/dist/components/dropdown-menu/pk-dropdown-item.styles.d.ts +2 -0
- package/dist/components/dropdown-menu/pk-dropdown-item.styles.d.ts.map +1 -0
- package/dist/components/dropdown-menu/pk-dropdown-label.d.ts +13 -0
- package/dist/components/dropdown-menu/pk-dropdown-label.d.ts.map +1 -0
- package/dist/components/dropdown-menu/pk-dropdown-label.js +2 -0
- package/dist/components/dropdown-menu/pk-dropdown-label.styles.d.ts +2 -0
- package/dist/components/dropdown-menu/pk-dropdown-label.styles.d.ts.map +1 -0
- package/dist/components/dropdown-menu/pk-dropdown-menu.d.ts +130 -0
- package/dist/components/dropdown-menu/pk-dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu/pk-dropdown-menu.js +2 -0
- package/dist/components/dropdown-menu/pk-dropdown-menu.styles.d.ts +6 -0
- package/dist/components/dropdown-menu/pk-dropdown-menu.styles.d.ts.map +1 -0
- package/dist/components/dropdown-menu/pk-dropdown-separator.d.ts +13 -0
- package/dist/components/dropdown-menu/pk-dropdown-separator.d.ts.map +1 -0
- package/dist/components/dropdown-menu/pk-dropdown-separator.js +36 -0
- package/dist/components/dropdown-menu/pk-dropdown-separator.js.map +1 -0
- package/dist/components/dropdown-menu.d.ts +2 -0
- package/dist/components/dropdown-menu.js +5 -0
- package/dist/components/editable-table/editable-table-dnd.d.ts +64 -0
- package/dist/components/editable-table/editable-table-dnd.d.ts.map +1 -0
- package/dist/components/editable-table/editable-table-model.d.ts +93 -0
- package/dist/components/editable-table/editable-table-model.d.ts.map +1 -0
- package/dist/components/editable-table/index.d.ts +3 -0
- package/dist/components/editable-table/index.d.ts.map +1 -0
- package/dist/components/editable-table/pk-editable-table.d.ts +122 -0
- package/dist/components/editable-table/pk-editable-table.d.ts.map +1 -0
- package/dist/components/editable-table/pk-editable-table.js +2 -0
- package/dist/components/editable-table/pk-editable-table.styles.d.ts +2 -0
- package/dist/components/editable-table/pk-editable-table.styles.d.ts.map +1 -0
- package/dist/components/editable-table.d.ts +2 -0
- package/dist/components/editable-table.js +2 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/field/index.d.ts.map +1 -0
- package/dist/components/field/pk-field.d.ts +69 -0
- package/dist/components/field/pk-field.d.ts.map +1 -0
- package/dist/components/field/pk-field.js +2 -0
- package/dist/components/field/pk-field.styles.d.ts +2 -0
- package/dist/components/field/pk-field.styles.d.ts.map +1 -0
- package/dist/components/field.d.ts +2 -0
- package/dist/components/field.js +2 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon/index.d.ts.map +1 -0
- package/dist/components/icon/pk-icon-loader.d.ts +1 -0
- package/dist/components/icon/pk-icon-loader.d.ts.map +1 -0
- package/dist/components/icon/pk-icon.d.ts +46 -0
- package/dist/components/icon/pk-icon.d.ts.map +1 -0
- package/dist/components/icon/pk-icon.js +47 -0
- package/dist/components/icon/pk-icon.js.map +1 -0
- package/dist/components/icon.d.ts +2 -0
- package/dist/components/icon.js +2 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/pk-input.d.ts +83 -0
- package/dist/components/input/pk-input.d.ts.map +1 -0
- package/dist/components/input/pk-input.js +2 -0
- package/dist/components/input/pk-input.styles.d.ts +2 -0
- package/dist/components/input/pk-input.styles.d.ts.map +1 -0
- package/dist/components/input-group/index.d.ts +10 -0
- package/dist/components/input-group/index.d.ts.map +1 -0
- package/dist/components/input-group/pk-input-group-addon.d.ts +23 -0
- package/dist/components/input-group/pk-input-group-addon.d.ts.map +1 -0
- package/dist/components/input-group/pk-input-group-addon.js +2 -0
- package/dist/components/input-group/pk-input-group-addon.styles.d.ts +2 -0
- package/dist/components/input-group/pk-input-group-addon.styles.d.ts.map +1 -0
- package/dist/components/input-group/pk-input-group-button.d.ts +22 -0
- package/dist/components/input-group/pk-input-group-button.d.ts.map +1 -0
- package/dist/components/input-group/pk-input-group-button.js +2 -0
- package/dist/components/input-group/pk-input-group-button.styles.d.ts +2 -0
- package/dist/components/input-group/pk-input-group-button.styles.d.ts.map +1 -0
- package/dist/components/input-group/pk-input-group-input.d.ts +28 -0
- package/dist/components/input-group/pk-input-group-input.d.ts.map +1 -0
- package/dist/components/input-group/pk-input-group-input.js +2 -0
- package/dist/components/input-group/pk-input-group-input.styles.d.ts +2 -0
- package/dist/components/input-group/pk-input-group-input.styles.d.ts.map +1 -0
- package/dist/components/input-group/pk-input-group-text.d.ts +18 -0
- package/dist/components/input-group/pk-input-group-text.d.ts.map +1 -0
- package/dist/components/input-group/pk-input-group-text.js +2 -0
- package/dist/components/input-group/pk-input-group-text.styles.d.ts +2 -0
- package/dist/components/input-group/pk-input-group-text.styles.d.ts.map +1 -0
- package/dist/components/input-group/pk-input-group-textarea.d.ts +25 -0
- package/dist/components/input-group/pk-input-group-textarea.d.ts.map +1 -0
- package/dist/components/input-group/pk-input-group-textarea.js +2 -0
- package/dist/components/input-group/pk-input-group-textarea.styles.d.ts +2 -0
- package/dist/components/input-group/pk-input-group-textarea.styles.d.ts.map +1 -0
- package/dist/components/input-group/pk-input-group.d.ts +39 -0
- package/dist/components/input-group/pk-input-group.d.ts.map +1 -0
- package/dist/components/input-group/pk-input-group.js +2 -0
- package/dist/components/input-group/pk-input-group.styles.d.ts +2 -0
- package/dist/components/input-group/pk-input-group.styles.d.ts.map +1 -0
- package/dist/components/input-group.d.ts +2 -0
- package/dist/components/input-group.js +7 -0
- package/dist/components/input.d.ts +2 -0
- package/dist/components/input.js +2 -0
- package/dist/components/lightswitch/index.d.ts +2 -0
- package/dist/components/lightswitch/index.d.ts.map +1 -0
- package/dist/components/lightswitch/pk-lightswitch.d.ts +54 -0
- package/dist/components/lightswitch/pk-lightswitch.d.ts.map +1 -0
- package/dist/components/lightswitch/pk-lightswitch.js +2 -0
- package/dist/components/lightswitch/pk-lightswitch.styles.d.ts +2 -0
- package/dist/components/lightswitch/pk-lightswitch.styles.d.ts.map +1 -0
- package/dist/components/lightswitch.d.ts +2 -0
- package/dist/components/lightswitch.js +2 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/pk-popover.d.ts +90 -0
- package/dist/components/popover/pk-popover.d.ts.map +1 -0
- package/dist/components/popover/pk-popover.js +2 -0
- package/dist/components/popover/pk-popover.styles.d.ts +2 -0
- package/dist/components/popover/pk-popover.styles.d.ts.map +1 -0
- package/dist/components/popover.d.ts +2 -0
- package/dist/components/popover.js +2 -0
- package/dist/components/popup/index.d.ts +2 -0
- package/dist/components/popup/index.d.ts.map +1 -0
- package/dist/components/popup/pk-popup.d.ts +96 -0
- package/dist/components/popup/pk-popup.d.ts.map +1 -0
- package/dist/components/popup/pk-popup.js +2 -0
- package/dist/components/popup/pk-popup.styles.d.ts +2 -0
- package/dist/components/popup/pk-popup.styles.d.ts.map +1 -0
- package/dist/components/popup.d.ts +2 -0
- package/dist/components/popup.js +2 -0
- package/dist/components/radio-group/index.d.ts +3 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/radio-group/pk-radio-group.d.ts +58 -0
- package/dist/components/radio-group/pk-radio-group.d.ts.map +1 -0
- package/dist/components/radio-group/pk-radio-group.js +2 -0
- package/dist/components/radio-group/pk-radio-group.styles.d.ts +2 -0
- package/dist/components/radio-group/pk-radio-group.styles.d.ts.map +1 -0
- package/dist/components/radio-group/pk-radio.d.ts +37 -0
- package/dist/components/radio-group/pk-radio.d.ts.map +1 -0
- package/dist/components/radio-group/pk-radio.js +2 -0
- package/dist/components/radio-group/pk-radio.styles.d.ts +2 -0
- package/dist/components/radio-group/pk-radio.styles.d.ts.map +1 -0
- package/dist/components/radio-group.d.ts +2 -0
- package/dist/components/radio-group.js +3 -0
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/scroll-area/index.d.ts.map +1 -0
- package/dist/components/scroll-area/pk-scroll-area.d.ts +53 -0
- package/dist/components/scroll-area/pk-scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area/pk-scroll-area.js +2 -0
- package/dist/components/scroll-area/pk-scroll-area.styles.d.ts +2 -0
- package/dist/components/scroll-area/pk-scroll-area.styles.d.ts.map +1 -0
- package/dist/components/scroll-area.d.ts +2 -0
- package/dist/components/scroll-area.js +2 -0
- package/dist/components/select/index.d.ts +4 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/pk-option-group.d.ts +22 -0
- package/dist/components/select/pk-option-group.d.ts.map +1 -0
- package/dist/components/select/pk-option-group.js +2 -0
- package/dist/components/select/pk-option-group.styles.d.ts +2 -0
- package/dist/components/select/pk-option-group.styles.d.ts.map +1 -0
- package/dist/components/select/pk-option.d.ts +55 -0
- package/dist/components/select/pk-option.d.ts.map +1 -0
- package/dist/components/select/pk-option.js +2 -0
- package/dist/components/select/pk-option.styles.d.ts +2 -0
- package/dist/components/select/pk-option.styles.d.ts.map +1 -0
- package/dist/components/select/pk-select.d.ts +132 -0
- package/dist/components/select/pk-select.d.ts.map +1 -0
- package/dist/components/select/pk-select.js +2 -0
- package/dist/components/select/pk-select.styles.d.ts +2 -0
- package/dist/components/select/pk-select.styles.d.ts.map +1 -0
- package/dist/components/select.d.ts +2 -0
- package/dist/components/select.js +4 -0
- package/dist/components/separator/index.d.ts +2 -0
- package/dist/components/separator/index.d.ts.map +1 -0
- package/dist/components/separator/pk-separator.d.ts +25 -0
- package/dist/components/separator/pk-separator.d.ts.map +1 -0
- package/dist/components/separator/pk-separator.js +2 -0
- package/dist/components/separator/pk-separator.styles.d.ts +9 -0
- package/dist/components/separator/pk-separator.styles.d.ts.map +1 -0
- package/dist/components/separator.d.ts +2 -0
- package/dist/components/separator.js +2 -0
- package/dist/components/spinner/index.d.ts +3 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/pk-spinner.d.ts +23 -0
- package/dist/components/spinner/pk-spinner.d.ts.map +1 -0
- package/dist/components/spinner/pk-spinner.js +2 -0
- package/dist/components/spinner/pk-spinner.styles.d.ts +2 -0
- package/dist/components/spinner/pk-spinner.styles.d.ts.map +1 -0
- package/dist/components/spinner/spinner-utils.d.ts +7 -0
- package/dist/components/spinner/spinner-utils.d.ts.map +1 -0
- package/dist/components/spinner.d.ts +2 -0
- package/dist/components/spinner.js +3 -0
- package/dist/components/status/index.d.ts +2 -0
- package/dist/components/status/index.d.ts.map +1 -0
- package/dist/components/status/pk-status.d.ts +19 -0
- package/dist/components/status/pk-status.d.ts.map +1 -0
- package/dist/components/status/pk-status.js +2 -0
- package/dist/components/status/pk-status.styles.d.ts +2 -0
- package/dist/components/status/pk-status.styles.d.ts.map +1 -0
- package/dist/components/status.d.ts +2 -0
- package/dist/components/status.js +2 -0
- package/dist/components/tabs/index.d.ts +5 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/pk-tab-base.d.ts +14 -0
- package/dist/components/tabs/pk-tab-base.d.ts.map +1 -0
- package/dist/components/tabs/pk-tab-heading.d.ts +20 -0
- package/dist/components/tabs/pk-tab-heading.d.ts.map +1 -0
- package/dist/components/tabs/pk-tab-heading.js +2 -0
- package/dist/components/tabs/pk-tab-heading.styles.d.ts +2 -0
- package/dist/components/tabs/pk-tab-heading.styles.d.ts.map +1 -0
- package/dist/components/tabs/pk-tab-panel-base.d.ts +9 -0
- package/dist/components/tabs/pk-tab-panel-base.d.ts.map +1 -0
- package/dist/components/tabs/pk-tab-panel.d.ts +18 -0
- package/dist/components/tabs/pk-tab-panel.d.ts.map +1 -0
- package/dist/components/tabs/pk-tab-panel.js +2 -0
- package/dist/components/tabs/pk-tab-panel.styles.d.ts +2 -0
- package/dist/components/tabs/pk-tab-panel.styles.d.ts.map +1 -0
- package/dist/components/tabs/pk-tab.d.ts +23 -0
- package/dist/components/tabs/pk-tab.d.ts.map +1 -0
- package/dist/components/tabs/pk-tab.js +2 -0
- package/dist/components/tabs/pk-tab.styles.d.ts +2 -0
- package/dist/components/tabs/pk-tab.styles.d.ts.map +1 -0
- package/dist/components/tabs/pk-tabs.d.ts +67 -0
- package/dist/components/tabs/pk-tabs.d.ts.map +1 -0
- package/dist/components/tabs/pk-tabs.js +2 -0
- package/dist/components/tabs/pk-tabs.styles.d.ts +6 -0
- package/dist/components/tabs/pk-tabs.styles.d.ts.map +1 -0
- package/dist/components/tabs.d.ts +2 -0
- package/dist/components/tabs.js +5 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/pk-textarea.d.ts +60 -0
- package/dist/components/textarea/pk-textarea.d.ts.map +1 -0
- package/dist/components/textarea/pk-textarea.js +2 -0
- package/dist/components/textarea/pk-textarea.styles.d.ts +2 -0
- package/dist/components/textarea/pk-textarea.styles.d.ts.map +1 -0
- package/dist/components/textarea.d.ts +2 -0
- package/dist/components/textarea.js +2 -0
- package/dist/components/time-picker/index.d.ts +2 -0
- package/dist/components/time-picker/index.d.ts.map +1 -0
- package/dist/components/time-picker/pk-time-picker.d.ts +25 -0
- package/dist/components/time-picker/pk-time-picker.d.ts.map +1 -0
- package/dist/components/time-picker/pk-time-picker.js +2 -0
- package/dist/components/time-picker/pk-time-picker.styles.d.ts +2 -0
- package/dist/components/time-picker/pk-time-picker.styles.d.ts.map +1 -0
- package/dist/components/time-picker.d.ts +2 -0
- package/dist/components/time-picker.js +2 -0
- package/dist/components/tiptap/index.d.ts +4 -0
- package/dist/components/tiptap/index.d.ts.map +1 -0
- package/dist/components/tiptap/pk-tiptap-content.d.ts +25 -0
- package/dist/components/tiptap/pk-tiptap-content.d.ts.map +1 -0
- package/dist/components/tiptap/pk-tiptap-content.js +2 -0
- package/dist/components/tiptap/pk-tiptap-content.styles.d.ts +2 -0
- package/dist/components/tiptap/pk-tiptap-content.styles.d.ts.map +1 -0
- package/dist/components/tiptap/pk-tiptap-editor.d.ts +123 -0
- package/dist/components/tiptap/pk-tiptap-editor.d.ts.map +1 -0
- package/dist/components/tiptap/pk-tiptap-editor.js +2 -0
- package/dist/components/tiptap/pk-tiptap-editor.styles.d.ts +2 -0
- package/dist/components/tiptap/pk-tiptap-editor.styles.d.ts.map +1 -0
- package/dist/components/tiptap/pk-tiptap-input.d.ts +54 -0
- package/dist/components/tiptap/pk-tiptap-input.d.ts.map +1 -0
- package/dist/components/tiptap/pk-tiptap-input.js +2 -0
- package/dist/components/tiptap/pk-tiptap-input.styles.d.ts +2 -0
- package/dist/components/tiptap/pk-tiptap-input.styles.d.ts.map +1 -0
- package/dist/components/tiptap/tiptap-editor-host.d.ts +28 -0
- package/dist/components/tiptap/tiptap-editor-host.d.ts.map +1 -0
- package/dist/components/tiptap/tiptap-toolbar.d.ts +7 -0
- package/dist/components/tiptap/tiptap-toolbar.d.ts.map +1 -0
- package/dist/components/tiptap/tiptap-utils.d.ts +13 -0
- package/dist/components/tiptap/tiptap-utils.d.ts.map +1 -0
- package/dist/components/tiptap/tiptap.styles.d.ts +12 -0
- package/dist/components/tiptap/tiptap.styles.d.ts.map +1 -0
- package/dist/components/tiptap/variable-tag-node-view.d.ts +17 -0
- package/dist/components/tiptap/variable-tag-node-view.d.ts.map +1 -0
- package/dist/components/tiptap-content.d.ts +2 -0
- package/dist/components/tiptap-content.js +2 -0
- package/dist/components/tiptap-editor.d.ts +2 -0
- package/dist/components/tiptap-editor.js +2 -0
- package/dist/components/tiptap-input.d.ts +2 -0
- package/dist/components/tiptap-input.js +2 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/index.d.ts.map +1 -0
- package/dist/components/toggle/pk-toggle.d.ts +28 -0
- package/dist/components/toggle/pk-toggle.d.ts.map +1 -0
- package/dist/components/toggle/pk-toggle.js +2 -0
- package/dist/components/toggle/pk-toggle.styles.d.ts +2 -0
- package/dist/components/toggle/pk-toggle.styles.d.ts.map +1 -0
- package/dist/components/toggle-group/index.d.ts +2 -0
- package/dist/components/toggle-group/index.d.ts.map +1 -0
- package/dist/components/toggle-group/pk-toggle-group.d.ts +43 -0
- package/dist/components/toggle-group/pk-toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group/pk-toggle-group.js +2 -0
- package/dist/components/toggle-group/pk-toggle-group.styles.d.ts +2 -0
- package/dist/components/toggle-group/pk-toggle-group.styles.d.ts.map +1 -0
- package/dist/components/toggle-group.d.ts +2 -0
- package/dist/components/toggle-group.js +2 -0
- package/dist/components/toggle.d.ts +2 -0
- package/dist/components/toggle.js +2 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/pk-tooltip.d.ts +73 -0
- package/dist/components/tooltip/pk-tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/pk-tooltip.js +2 -0
- package/dist/components/tooltip/pk-tooltip.styles.d.ts +2 -0
- package/dist/components/tooltip/pk-tooltip.styles.d.ts.map +1 -0
- package/dist/components/tooltip.d.ts +2 -0
- package/dist/components/tooltip.js +2 -0
- package/dist/create-register-components.d.ts +7 -0
- package/dist/create-register-components.d.ts.map +1 -0
- package/dist/events/overlay-lifecycle.d.ts +27 -0
- package/dist/events/overlay-lifecycle.d.ts.map +1 -0
- package/dist/events/pk-clear.d.ts +10 -0
- package/dist/events/pk-clear.d.ts.map +1 -0
- package/dist/events/pk-copy.d.ts +18 -0
- package/dist/events/pk-copy.d.ts.map +1 -0
- package/dist/events/pk-create.d.ts +11 -0
- package/dist/events/pk-create.d.ts.map +1 -0
- package/dist/events/pk-invalid.d.ts +10 -0
- package/dist/events/pk-invalid.d.ts.map +1 -0
- package/dist/events/pk-reposition.d.ts +10 -0
- package/dist/events/pk-reposition.d.ts.map +1 -0
- package/dist/icons/checkbox-indicators.d.ts +6 -0
- package/dist/icons/checkbox-indicators.d.ts.map +1 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +4 -0
- package/dist/icons/render.d.ts +7 -0
- package/dist/icons/render.d.ts.map +1 -0
- package/dist/icons/translation-icon.d.ts +2 -0
- package/dist/icons/translation-icon.d.ts.map +1 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +218 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/control-aria.d.ts +31 -0
- package/dist/internal/control-aria.d.ts.map +1 -0
- package/dist/internal/field-aria.d.ts +19 -0
- package/dist/internal/field-aria.d.ts.map +1 -0
- package/dist/internal/field-labels.d.ts +5 -0
- package/dist/internal/field-labels.d.ts.map +1 -0
- package/dist/internal/has-slot.d.ts +30 -0
- package/dist/internal/has-slot.d.ts.map +1 -0
- package/dist/internal/implicit-form-submit.d.ts +15 -0
- package/dist/internal/implicit-form-submit.d.ts.map +1 -0
- package/dist/internal/resolve-element-by-id.d.ts +3 -0
- package/dist/internal/resolve-element-by-id.d.ts.map +1 -0
- package/dist/internal/sync-listbox-separators.d.ts +3 -0
- package/dist/internal/sync-listbox-separators.d.ts.map +1 -0
- package/dist/plugin-kit.css +583 -0
- package/dist/plugin-kit.d.ts +9 -0
- package/dist/plugin-kit.d.ts.map +1 -0
- package/dist/plugin-kit.js +267 -0
- package/dist/plugin-kit.js.map +1 -0
- package/dist/plugin-kit.loader.d.ts +2 -0
- package/dist/plugin-kit.loader.d.ts.map +1 -0
- package/dist/register-components.d.ts +3 -0
- package/dist/register-components.d.ts.map +1 -0
- package/dist/register-components.js +2 -0
- package/dist/register-pk.generated.d.ts +103 -0
- package/dist/register-pk.generated.d.ts.map +1 -0
- package/dist/register.d.ts +85 -0
- package/dist/register.d.ts.map +1 -0
- package/dist/register.js +146 -0
- package/dist/register.js.map +1 -0
- package/dist/styles/overlay-content.css +64 -0
- package/dist/styles/popup-content-animation.styles.d.ts +9 -0
- package/dist/styles/popup-content-animation.styles.d.ts.map +1 -0
- package/dist/tokens.css +408 -0
- package/dist/utilities/autoloader.d.ts +8 -0
- package/dist/utilities/autoloader.d.ts.map +1 -0
- package/dist/utilities/base-path.d.ts +3 -0
- package/dist/utilities/base-path.d.ts.map +1 -0
- package/dist/utilities/defined.d.ts +17 -0
- package/dist/utilities/defined.d.ts.map +1 -0
- package/dist/utilities/fouce-strategy.d.ts +43 -0
- package/dist/utilities/fouce-strategy.d.ts.map +1 -0
- package/dist/utilities/fouce.css +108 -0
- package/dist/utils/animate-with-class.d.ts +7 -0
- package/dist/utils/animate-with-class.d.ts.map +1 -0
- package/dist/utils/config.d.ts +15 -0
- package/dist/utils/config.d.ts.map +1 -0
- package/dist/utils/copy-to-clipboard.d.ts +5 -0
- package/dist/utils/copy-to-clipboard.d.ts.map +1 -0
- package/dist/utils/craft-host-modal.d.ts +19 -0
- package/dist/utils/craft-host-modal.d.ts.map +1 -0
- package/dist/utils/date-matchers.d.ts +29 -0
- package/dist/utils/date-matchers.d.ts.map +1 -0
- package/dist/utils/date.d.ts +23 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/documentScrollStability.d.ts +11 -0
- package/dist/utils/documentScrollStability.d.ts.map +1 -0
- package/dist/utils/floating-ui.d.ts +14 -0
- package/dist/utils/floating-ui.d.ts.map +1 -0
- package/dist/utils/highlight-text.d.ts +7 -0
- package/dist/utils/highlight-text.d.ts.map +1 -0
- package/dist/utils/host-date.d.ts +8 -0
- package/dist/utils/host-date.d.ts.map +1 -0
- package/dist/utils/inline-markdown.d.ts +6 -0
- package/dist/utils/inline-markdown.d.ts.map +1 -0
- package/dist/utils/listbox-keyboard.d.ts +25 -0
- package/dist/utils/listbox-keyboard.d.ts.map +1 -0
- package/dist/utils/menu-keyboard.d.ts +15 -0
- package/dist/utils/menu-keyboard.d.ts.map +1 -0
- package/dist/utils/mount-shadow-app.d.ts +31 -0
- package/dist/utils/mount-shadow-app.d.ts.map +1 -0
- package/dist/utils/overlay-recovery.d.ts +39 -0
- package/dist/utils/overlay-recovery.d.ts.map +1 -0
- package/dist/utils/popup-placement-animation.d.ts +26 -0
- package/dist/utils/popup-placement-animation.d.ts.map +1 -0
- package/dist/utils/popup-pointer.d.ts +15 -0
- package/dist/utils/popup-pointer.d.ts.map +1 -0
- package/dist/utils/portal.d.ts +16 -0
- package/dist/utils/portal.d.ts.map +1 -0
- package/dist/utils/supports-popover.d.ts +3 -0
- package/dist/utils/supports-popover.d.ts.map +1 -0
- package/dist/utils/time-options.d.ts +16 -0
- package/dist/utils/time-options.d.ts.map +1 -0
- package/dist/utils/top-layer.d.ts +34 -0
- package/dist/utils/top-layer.d.ts.map +1 -0
- package/dist/utils/week-info.d.ts +14 -0
- package/dist/utils/week-info.d.ts.map +1 -0
- package/dist/validators/custom-error-validator.d.ts +3 -0
- package/dist/validators/custom-error-validator.d.ts.map +1 -0
- package/dist/validators/index.d.ts +6 -0
- package/dist/validators/index.d.ts.map +1 -0
- package/dist/validators/mirror-validator.d.ts +4 -0
- package/dist/validators/mirror-validator.d.ts.map +1 -0
- package/dist/validators/required-validator.d.ts +7 -0
- package/dist/validators/required-validator.d.ts.map +1 -0
- package/dist/validators/types.d.ts +12 -0
- package/dist/validators/types.d.ts.map +1 -0
- package/dist-loader/chunks/animate-with-class-DT0jwaR_.js +40 -0
- package/dist-loader/chunks/button-group-item.styles-Dwakbyx5.js +145 -0
- package/dist-loader/chunks/codemirror-CSgOT0QM.js +23675 -0
- package/dist-loader/chunks/field-labels-D3lKQ2nq.js +12 -0
- package/dist-loader/chunks/floating-ui-87vslRWW.js +1220 -0
- package/dist-loader/chunks/has-slot-BGJeJdHr.js +72 -0
- package/dist-loader/chunks/icons-B1i-oRoD.js +429 -0
- package/dist-loader/chunks/lit-Dnn7gEi2.js +891 -0
- package/dist-loader/chunks/mirror-validator-C5XrXPaq.js +30 -0
- package/dist-loader/chunks/overlay-lifecycle-C3tSQ3UR.js +42 -0
- package/dist-loader/chunks/pk-a11y-Cx5RZvhu.js +274 -0
- package/dist-loader/chunks/pk-base-BlxAYXJD.js +705 -0
- package/dist-loader/chunks/pk-button-BlSs4e6V.js +846 -0
- package/dist-loader/chunks/pk-calendar-RXCDDhLI.js +1403 -0
- package/dist-loader/chunks/pk-checkbox-hJCj8In8.js +273 -0
- package/dist-loader/chunks/pk-clear-BMZUzwDt.js +13 -0
- package/dist-loader/chunks/pk-color-input-BfNtLznP.js +393 -0
- package/dist-loader/chunks/pk-combobox-1PJBcIrV.js +2006 -0
- package/dist-loader/chunks/pk-date-picker-D4vCtbw-.js +708 -0
- package/dist-loader/chunks/pk-dialog-D1RZjwQN.js +630 -0
- package/dist-loader/chunks/pk-dropdown-item-BJIhQ0Mw.js +543 -0
- package/dist-loader/chunks/pk-dropdown-menu-I1s3TBiA.js +731 -0
- package/dist-loader/chunks/pk-field-BnKPT_Kk.js +5842 -0
- package/dist-loader/chunks/pk-input-Oarjv7Vc.js +715 -0
- package/dist-loader/chunks/pk-lightswitch-D-UrNM3y.js +427 -0
- package/dist-loader/chunks/pk-option-CCZebfif.js +308 -0
- package/dist-loader/chunks/pk-popup-BNRyCsVX.js +553 -0
- package/dist-loader/chunks/pk-select-BcbtjIoP.js +1120 -0
- package/dist-loader/chunks/pk-spinner-Di9O69-m.js +145 -0
- package/dist-loader/chunks/pk-textarea-CC6WXpIu.js +334 -0
- package/dist-loader/chunks/pk-time-picker-BtGXo-KJ.js +225 -0
- package/dist-loader/chunks/pk-tooltip-JJRxVXYD.js +465 -0
- package/dist-loader/chunks/popup-content-animation.styles-S6CK-zPp.js +115 -0
- package/dist-loader/chunks/popup-placement-animation-WlEXnS85.js +58 -0
- package/dist-loader/chunks/popup-pointer-BC4n_sNb.js +19 -0
- package/dist-loader/chunks/registry-CmL0rH9r.js +55 -0
- package/dist-loader/chunks/render-DApFfV9S.js +14 -0
- package/dist-loader/chunks/required-validator-0XwZtX9k.js +27 -0
- package/dist-loader/chunks/rolldown-runtime-CzwdidQP.js +13 -0
- package/dist-loader/chunks/supports-popover-COjbi2RP.js +5 -0
- package/dist-loader/chunks/svg-Boar0Kf1.js +34 -0
- package/dist-loader/chunks/sync-listbox-separators-Bcja51HC.js +147 -0
- package/dist-loader/chunks/tiptap-Db7MTUH1.js +22888 -0
- package/dist-loader/chunks/tiptap.styles-DAH_90Fi.js +1628 -0
- package/dist-loader/components/button/button.js +2 -0
- package/dist-loader/components/button-group/button-group-separator.js +58 -0
- package/dist-loader/components/button-group/button-group-text.js +46 -0
- package/dist-loader/components/button-group/button-group.js +419 -0
- package/dist-loader/components/calendar/calendar.js +2 -0
- package/dist-loader/components/checkbox/checkbox.js +2 -0
- package/dist-loader/components/checkbox-select/checkbox-select.js +217 -0
- package/dist-loader/components/code-editor/code-editor.js +376 -0
- package/dist-loader/components/color-input/color-input.js +2 -0
- package/dist-loader/components/combobox/combobox.js +2 -0
- package/dist-loader/components/copy-button/copy-button.js +135 -0
- package/dist-loader/components/date-picker/date-picker.js +2 -0
- package/dist-loader/components/dialog/dialog.js +2 -0
- package/dist-loader/components/dropdown-menu/dropdown-item.js +2 -0
- package/dist-loader/components/dropdown-menu/dropdown-label.js +45 -0
- package/dist-loader/components/dropdown-menu/dropdown-menu.js +2 -0
- package/dist-loader/components/dropdown-menu/dropdown-separator.js +33 -0
- package/dist-loader/components/editable-table/editable-table.js +1522 -0
- package/dist-loader/components/field/field.js +2 -0
- package/dist-loader/components/icon/icon.js +17 -0
- package/dist-loader/components/input/input.js +2 -0
- package/dist-loader/components/input-group/input-group-addon.js +98 -0
- package/dist-loader/components/input-group/input-group-button.js +52 -0
- package/dist-loader/components/input-group/input-group-input.js +132 -0
- package/dist-loader/components/input-group/input-group-text.js +37 -0
- package/dist-loader/components/input-group/input-group-textarea.js +110 -0
- package/dist-loader/components/input-group/input-group.js +234 -0
- package/dist-loader/components/lightswitch/lightswitch.js +2 -0
- package/dist-loader/components/popover/popover.js +372 -0
- package/dist-loader/components/popup/popup.js +2 -0
- package/dist-loader/components/radio-group/radio-group.js +247 -0
- package/dist-loader/components/radio-group/radio.js +229 -0
- package/dist-loader/components/scroll-area/scroll-area.js +398 -0
- package/dist-loader/components/select/option-group.js +69 -0
- package/dist-loader/components/select/option.js +2 -0
- package/dist-loader/components/select/select.js +2 -0
- package/dist-loader/components/separator/separator.js +86 -0
- package/dist-loader/components/spinner/spinner.js +2 -0
- package/dist-loader/components/status/status.js +89 -0
- package/dist-loader/components/tabs/tab-heading.js +47 -0
- package/dist-loader/components/tabs/tab-panel.js +83 -0
- package/dist-loader/components/tabs/tab.js +256 -0
- package/dist-loader/components/tabs/tabs.js +619 -0
- package/dist-loader/components/textarea/textarea.js +2 -0
- package/dist-loader/components/time-picker/time-picker.js +2 -0
- package/dist-loader/components/tiptap/tiptap-content.js +72 -0
- package/dist-loader/components/tiptap/tiptap-editor.js +1078 -0
- package/dist-loader/components/tiptap/tiptap-input.js +244 -0
- package/dist-loader/components/toggle/toggle.js +253 -0
- package/dist-loader/components/toggle-group/toggle-group.js +172 -0
- package/dist-loader/components/tooltip/tooltip.js +2 -0
- package/dist-loader/plugin-kit.css +583 -0
- package/dist-loader/plugin-kit.d.ts +9 -0
- package/dist-loader/plugin-kit.d.ts.map +1 -0
- package/dist-loader/plugin-kit.loader.d.ts +2 -0
- package/dist-loader/plugin-kit.loader.d.ts.map +1 -0
- package/dist-loader/plugin-kit.loader.js +527 -0
- package/dist-loader/styles/overlay-content.css +64 -0
- package/dist-loader/tokens.css +408 -0
- package/dist-loader/utilities/autoloader.d.ts +8 -0
- package/dist-loader/utilities/autoloader.d.ts.map +1 -0
- package/dist-loader/utilities/base-path.d.ts +3 -0
- package/dist-loader/utilities/base-path.d.ts.map +1 -0
- package/dist-loader/utilities/defined.d.ts +17 -0
- package/dist-loader/utilities/defined.d.ts.map +1 -0
- package/dist-loader/utilities/fouce-strategy.d.ts +43 -0
- package/dist-loader/utilities/fouce-strategy.d.ts.map +1 -0
- package/dist-loader/utilities/fouce.css +108 -0
- package/package.json +961 -0
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
import { t as SUPPORTS_POPOVER } from "./supports-popover-COjbi2RP.js";
|
|
2
|
+
import { f as A, i as e$1, l as n, m as i$1, p as b, s as e$2, u as t } from "./lit-Dnn7gEi2.js";
|
|
3
|
+
import { c as __decorate, l as PkElement } from "./pk-base-BlxAYXJD.js";
|
|
4
|
+
import { t as computePopupTransformOrigin } from "./popup-placement-animation-WlEXnS85.js";
|
|
5
|
+
import { a as offset, c as size, i as flip, l as getOverflowAncestors, n as autoUpdate, o as platform, r as computePosition, s as shift, t as arrow, u as isContainingBlock } from "./floating-ui-87vslRWW.js";
|
|
6
|
+
//#region src/internal/resolve-element-by-id.ts
|
|
7
|
+
/** Resolve an element id from the same root as the host (shadow or document), then the document. */
|
|
8
|
+
function resolveElementById(host, id) {
|
|
9
|
+
if (!id) return null;
|
|
10
|
+
const root = host.getRootNode();
|
|
11
|
+
if (root instanceof Document || root instanceof ShadowRoot) {
|
|
12
|
+
const match = root.getElementById(id);
|
|
13
|
+
if (match) return match;
|
|
14
|
+
}
|
|
15
|
+
return host.ownerDocument.getElementById(id);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region ../node_modules/composed-offset-position/dist/composed-offset-position.browser.min.mjs
|
|
19
|
+
function e(t) {
|
|
20
|
+
return i(t);
|
|
21
|
+
}
|
|
22
|
+
function r(t) {
|
|
23
|
+
return t.assignedSlot ? t.assignedSlot : t.parentNode instanceof ShadowRoot ? t.parentNode.host : t.parentNode;
|
|
24
|
+
}
|
|
25
|
+
function i(e) {
|
|
26
|
+
for (let t = e; t; t = r(t)) if (t instanceof Element && "none" === getComputedStyle(t).display) return null;
|
|
27
|
+
for (let n = r(e); n; n = r(n)) {
|
|
28
|
+
if (!(n instanceof Element)) continue;
|
|
29
|
+
const e = getComputedStyle(n);
|
|
30
|
+
if ("contents" !== e.display) {
|
|
31
|
+
if ("static" !== e.position || isContainingBlock(e)) return n;
|
|
32
|
+
if ("BODY" === n.tagName) return n;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/events/pk-reposition.ts
|
|
39
|
+
/** Emitted when a popup repositions — mirrors reposition semantics with pk naming. */
|
|
40
|
+
var PkRepositionEvent = class extends Event {
|
|
41
|
+
constructor() {
|
|
42
|
+
super("pk-reposition", {
|
|
43
|
+
bubbles: true,
|
|
44
|
+
cancelable: false,
|
|
45
|
+
composed: true
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/components/popup/pk-popup.styles.ts
|
|
51
|
+
var pkPopupStyles = i$1`
|
|
52
|
+
@layer pk-component {
|
|
53
|
+
:host {
|
|
54
|
+
display: contents;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.popup {
|
|
58
|
+
position: absolute;
|
|
59
|
+
isolation: isolate;
|
|
60
|
+
width: max-content;
|
|
61
|
+
z-index: var(--pk-popup-z-index, 1000);
|
|
62
|
+
/* Never transition coordinates — flip would animate the jump. */
|
|
63
|
+
transition: none;
|
|
64
|
+
|
|
65
|
+
/* Reset UA styles for [popover] — see pk-popup. */
|
|
66
|
+
inset: unset;
|
|
67
|
+
padding: unset;
|
|
68
|
+
margin: unset;
|
|
69
|
+
height: unset;
|
|
70
|
+
color: unset;
|
|
71
|
+
background: unset;
|
|
72
|
+
border: unset;
|
|
73
|
+
overflow: unset;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.popup-fixed {
|
|
77
|
+
position: fixed;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.popup:not(.active) {
|
|
81
|
+
display: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Prefer visibility over opacity so enter animations are not fighting a
|
|
85
|
+
* 0→1 fade. Matches base-ui isPositioned / hide-until-placed.
|
|
86
|
+
*/
|
|
87
|
+
.popup.active:not(.positioned) {
|
|
88
|
+
visibility: hidden;
|
|
89
|
+
pointer-events: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.popup.show {
|
|
93
|
+
animation: pk-popup-surface-in 100ms ease-out;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.popup.hide {
|
|
97
|
+
animation: pk-popup-surface-out 100ms ease-in forwards;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@keyframes pk-popup-surface-in {
|
|
101
|
+
from {
|
|
102
|
+
opacity: 0;
|
|
103
|
+
transform: scale(0.95);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
to {
|
|
107
|
+
opacity: 1;
|
|
108
|
+
transform: scale(1);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@keyframes pk-popup-surface-out {
|
|
113
|
+
from {
|
|
114
|
+
opacity: 1;
|
|
115
|
+
transform: scale(1);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
to {
|
|
119
|
+
opacity: 0;
|
|
120
|
+
transform: scale(0.95);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.arrow {
|
|
125
|
+
position: absolute;
|
|
126
|
+
width: var(--pk-popup-arrow-size, 6px);
|
|
127
|
+
height: var(--pk-popup-arrow-size, 6px);
|
|
128
|
+
rotate: 45deg;
|
|
129
|
+
background: var(--pk-popup-arrow-color, var(--pk-color-white));
|
|
130
|
+
z-index: 1;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.hover-bridge {
|
|
134
|
+
position: fixed;
|
|
135
|
+
z-index: calc(var(--pk-popup-z-index, 1000) - 1);
|
|
136
|
+
inset: 0;
|
|
137
|
+
clip-path: polygon(
|
|
138
|
+
var(--pk-hover-bridge-top-left-x, 0) var(--pk-hover-bridge-top-left-y, 0),
|
|
139
|
+
var(--pk-hover-bridge-top-right-x, 0) var(--pk-hover-bridge-top-right-y, 0),
|
|
140
|
+
var(--pk-hover-bridge-bottom-right-x, 0) var(--pk-hover-bridge-bottom-right-y, 0),
|
|
141
|
+
var(--pk-hover-bridge-bottom-left-x, 0) var(--pk-hover-bridge-bottom-left-y, 0)
|
|
142
|
+
);
|
|
143
|
+
pointer-events: auto;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.hover-bridge:not(.hover-bridge-visible) {
|
|
147
|
+
display: none;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
`;
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/components/popup/pk-popup.ts
|
|
153
|
+
function isVirtualElement(value) {
|
|
154
|
+
return value !== null && typeof value === "object" && "getBoundingClientRect" in value;
|
|
155
|
+
}
|
|
156
|
+
function resolvePositionStrategy(positionMethod) {
|
|
157
|
+
if (positionMethod) return positionMethod;
|
|
158
|
+
return SUPPORTS_POPOVER ? "absolute" : "fixed";
|
|
159
|
+
}
|
|
160
|
+
function resolveScrollBoundary(anchorElement, boundary) {
|
|
161
|
+
if (!SUPPORTS_POPOVER || isVirtualElement(anchorElement) || boundary !== "scroll") return;
|
|
162
|
+
return getOverflowAncestors(anchorElement).filter((node) => node instanceof Element);
|
|
163
|
+
}
|
|
164
|
+
var PkPopup = class PkPopup extends PkElement {
|
|
165
|
+
constructor(..._args) {
|
|
166
|
+
super(..._args);
|
|
167
|
+
this.anchor = "";
|
|
168
|
+
this.active = false;
|
|
169
|
+
this.boundary = "viewport";
|
|
170
|
+
this.placement = "bottom-start";
|
|
171
|
+
this.distance = 4;
|
|
172
|
+
this.skidding = 0;
|
|
173
|
+
this.flip = true;
|
|
174
|
+
this.flipFallbackPlacements = "";
|
|
175
|
+
this.flipFallbackStrategy = "best-fit";
|
|
176
|
+
this.flipPadding = 8;
|
|
177
|
+
this.shift = true;
|
|
178
|
+
this.shiftPadding = 8;
|
|
179
|
+
this.arrow = false;
|
|
180
|
+
this.arrowPlacement = "anchor";
|
|
181
|
+
this.arrowPadding = 10;
|
|
182
|
+
this.anchorTracking = true;
|
|
183
|
+
this.hoverBridge = false;
|
|
184
|
+
this.anchorElement = null;
|
|
185
|
+
this.settlingInitialPosition = false;
|
|
186
|
+
this.settleGeneration = 0;
|
|
187
|
+
}
|
|
188
|
+
static {
|
|
189
|
+
this.styles = pkPopupStyles;
|
|
190
|
+
}
|
|
191
|
+
disconnectedCallback() {
|
|
192
|
+
this.stop();
|
|
193
|
+
super.disconnectedCallback();
|
|
194
|
+
}
|
|
195
|
+
updated(changed) {
|
|
196
|
+
super.updated(changed);
|
|
197
|
+
if (changed.has("active")) if (this.active) {
|
|
198
|
+
this.resolveAnchor();
|
|
199
|
+
this.start();
|
|
200
|
+
} else this.stop();
|
|
201
|
+
if (changed.has("anchor")) this.handleAnchorChange();
|
|
202
|
+
if (this.active && !changed.has("active")) this.reposition();
|
|
203
|
+
}
|
|
204
|
+
/** Forces the popup to recalculate and reposition itself. */
|
|
205
|
+
reposition() {
|
|
206
|
+
if (this.settlingInitialPosition) return;
|
|
207
|
+
this.repositionAsync();
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Runs Floating UI once and applies coords. Does not reveal an unpositioned
|
|
211
|
+
* popup — `settleInitialPosition()` owns the first paint.
|
|
212
|
+
*/
|
|
213
|
+
async repositionAsync(emitEvent = true) {
|
|
214
|
+
const floatingElement = this.popupElement;
|
|
215
|
+
const arrowTarget = this.arrow ? this.arrowElement : null;
|
|
216
|
+
if (!this.active || !this.anchorElement || !floatingElement) return false;
|
|
217
|
+
const scrollBoundary = resolveScrollBoundary(this.anchorElement, this.boundary);
|
|
218
|
+
const middleware = [offset({
|
|
219
|
+
mainAxis: this.distance,
|
|
220
|
+
crossAxis: this.skidding
|
|
221
|
+
})];
|
|
222
|
+
if (this.sync) middleware.push(size({ apply: ({ rects }) => {
|
|
223
|
+
const syncWidth = this.sync === "width" || this.sync === "both";
|
|
224
|
+
const syncHeight = this.sync === "height" || this.sync === "both";
|
|
225
|
+
floatingElement.style.width = syncWidth ? `${rects.reference.width}px` : "";
|
|
226
|
+
floatingElement.style.height = syncHeight ? `${rects.reference.height}px` : "";
|
|
227
|
+
} }));
|
|
228
|
+
else {
|
|
229
|
+
floatingElement.style.width = "";
|
|
230
|
+
floatingElement.style.height = "";
|
|
231
|
+
}
|
|
232
|
+
if (this.flip) middleware.push(flip({
|
|
233
|
+
boundary: scrollBoundary,
|
|
234
|
+
fallbackPlacements: this.flipFallbackPlacements ? this.flipFallbackPlacements.split(" ").map((value) => value.trim()).filter(Boolean) : void 0,
|
|
235
|
+
fallbackStrategy: this.flipFallbackStrategy === "best-fit" ? "bestFit" : "initialPlacement",
|
|
236
|
+
padding: this.flipPadding
|
|
237
|
+
}));
|
|
238
|
+
if (this.shift) middleware.push(shift({
|
|
239
|
+
boundary: scrollBoundary,
|
|
240
|
+
padding: this.shiftPadding
|
|
241
|
+
}));
|
|
242
|
+
if (this.arrow && arrowTarget) middleware.push(arrow({
|
|
243
|
+
element: arrowTarget,
|
|
244
|
+
padding: this.arrowPadding
|
|
245
|
+
}));
|
|
246
|
+
const strategy = resolvePositionStrategy(this.positionMethod);
|
|
247
|
+
const useFixedFallback = strategy === "fixed";
|
|
248
|
+
floatingElement.classList.toggle("popup-fixed", useFixedFallback);
|
|
249
|
+
const getOffsetParentFn = SUPPORTS_POPOVER ? (element) => platform.getOffsetParent(element, e) : platform.getOffsetParent;
|
|
250
|
+
const { x, y, middlewareData, placement } = await computePosition(this.anchorElement, floatingElement, {
|
|
251
|
+
placement: this.placement,
|
|
252
|
+
middleware,
|
|
253
|
+
strategy,
|
|
254
|
+
platform: {
|
|
255
|
+
...platform,
|
|
256
|
+
getOffsetParent: getOffsetParentFn
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
if (!this.active || !floatingElement.isConnected) return false;
|
|
260
|
+
const staticSide = {
|
|
261
|
+
top: "bottom",
|
|
262
|
+
right: "left",
|
|
263
|
+
bottom: "top",
|
|
264
|
+
left: "right"
|
|
265
|
+
}[placement.split("-")[0]];
|
|
266
|
+
this.setAttribute("data-current-placement", placement);
|
|
267
|
+
Object.assign(floatingElement.style, {
|
|
268
|
+
left: `${x}px`,
|
|
269
|
+
top: `${y}px`,
|
|
270
|
+
...useFixedFallback ? { position: "fixed" } : { position: "" }
|
|
271
|
+
});
|
|
272
|
+
if (this.anchorElement) {
|
|
273
|
+
const referenceRect = this.anchorElement.getBoundingClientRect();
|
|
274
|
+
const floatingRect = floatingElement.getBoundingClientRect();
|
|
275
|
+
floatingElement.style.setProperty("--pk-anchor-width", `${referenceRect.width}px`);
|
|
276
|
+
floatingElement.style.setProperty("--pk-anchor-height", `${referenceRect.height}px`);
|
|
277
|
+
const transformOrigin = computePopupTransformOrigin(placement, referenceRect, floatingRect, this.distance, middlewareData.shift);
|
|
278
|
+
floatingElement.style.setProperty("--pk-transform-origin", transformOrigin);
|
|
279
|
+
}
|
|
280
|
+
if (this.arrow && arrowTarget) {
|
|
281
|
+
const arrowX = middlewareData.arrow?.x;
|
|
282
|
+
const arrowY = middlewareData.arrow?.y;
|
|
283
|
+
let top = "";
|
|
284
|
+
let right = "";
|
|
285
|
+
let bottom = "";
|
|
286
|
+
let left = "";
|
|
287
|
+
if (this.arrowPlacement === "start") {
|
|
288
|
+
const value = typeof arrowX === "number" ? `${this.arrowPadding}px` : "";
|
|
289
|
+
top = typeof arrowY === "number" ? `${this.arrowPadding}px` : "";
|
|
290
|
+
left = value;
|
|
291
|
+
} else if (this.arrowPlacement === "end") {
|
|
292
|
+
right = typeof arrowX === "number" ? `${this.arrowPadding}px` : "";
|
|
293
|
+
bottom = typeof arrowY === "number" ? `${this.arrowPadding}px` : "";
|
|
294
|
+
} else if (this.arrowPlacement === "center") {
|
|
295
|
+
left = typeof arrowX === "number" ? "50%" : "";
|
|
296
|
+
top = typeof arrowY === "number" ? "50%" : "";
|
|
297
|
+
} else {
|
|
298
|
+
left = typeof arrowX === "number" ? `${arrowX}px` : "";
|
|
299
|
+
top = typeof arrowY === "number" ? `${arrowY}px` : "";
|
|
300
|
+
}
|
|
301
|
+
Object.assign(arrowTarget.style, {
|
|
302
|
+
top,
|
|
303
|
+
right,
|
|
304
|
+
bottom,
|
|
305
|
+
left,
|
|
306
|
+
transform: "",
|
|
307
|
+
[staticSide]: "calc(-1 * var(--pk-popup-arrow-size, 6px) / 2)"
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
requestAnimationFrame(() => this.updateHoverBridge());
|
|
311
|
+
if (emitEvent) this.dispatchEvent(new PkRepositionEvent());
|
|
312
|
+
return true;
|
|
313
|
+
}
|
|
314
|
+
frames(count) {
|
|
315
|
+
return new Promise((resolve) => {
|
|
316
|
+
const step = (remaining) => {
|
|
317
|
+
if (remaining <= 0) {
|
|
318
|
+
resolve();
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
requestAnimationFrame(() => step(remaining - 1));
|
|
322
|
+
};
|
|
323
|
+
step(count);
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Hide → layout → measure → confirm flip → reveal.
|
|
328
|
+
* A single computePosition often runs before slotted content has height, so flip
|
|
329
|
+
* picks the preferred side; autoUpdate then jumps — that was the visible flash.
|
|
330
|
+
*/
|
|
331
|
+
async settleInitialPosition() {
|
|
332
|
+
const generation = ++this.settleGeneration;
|
|
333
|
+
const floatingElement = this.popupElement;
|
|
334
|
+
if (!floatingElement) {
|
|
335
|
+
this.settlingInitialPosition = false;
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
await this.frames(2);
|
|
339
|
+
if (!this.active || generation !== this.settleGeneration) return;
|
|
340
|
+
await this.repositionAsync(false);
|
|
341
|
+
floatingElement.offsetHeight;
|
|
342
|
+
await this.frames(1);
|
|
343
|
+
if (!this.active || generation !== this.settleGeneration) return;
|
|
344
|
+
await this.repositionAsync(false);
|
|
345
|
+
if (!this.active || generation !== this.settleGeneration) return;
|
|
346
|
+
floatingElement.classList.add("positioned");
|
|
347
|
+
this.settlingInitialPosition = false;
|
|
348
|
+
requestAnimationFrame(() => this.updateHoverBridge());
|
|
349
|
+
this.dispatchEvent(new PkRepositionEvent());
|
|
350
|
+
}
|
|
351
|
+
resolveAnchor() {
|
|
352
|
+
if (typeof this.anchor === "string" && this.anchor) {
|
|
353
|
+
this.anchorElement = resolveElementById(this, this.anchor);
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
if (this.anchor instanceof Element || isVirtualElement(this.anchor)) {
|
|
357
|
+
this.anchorElement = this.anchor;
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
let slotted = this.querySelector("[slot=\"anchor\"]");
|
|
361
|
+
if (slotted instanceof HTMLSlotElement) slotted = slotted.assignedElements({ flatten: true })[0] ?? null;
|
|
362
|
+
this.anchorElement = slotted;
|
|
363
|
+
}
|
|
364
|
+
async handleAnchorChange() {
|
|
365
|
+
await this.stop();
|
|
366
|
+
this.resolveAnchor();
|
|
367
|
+
if (this.anchorElement && this.active) this.start();
|
|
368
|
+
}
|
|
369
|
+
/** When false, skip popover top layer (e.g. menu/select use fixed coords to simplify modal handoff). */
|
|
370
|
+
usesPopoverTopLayer() {
|
|
371
|
+
return SUPPORTS_POPOVER && this.positionMethod !== "fixed";
|
|
372
|
+
}
|
|
373
|
+
/** `stop()` — sync hidePopover + cleanup autoUpdate. */
|
|
374
|
+
stop() {
|
|
375
|
+
return new Promise((resolve) => {
|
|
376
|
+
const popup = this.popupElement;
|
|
377
|
+
this.settleGeneration += 1;
|
|
378
|
+
this.settlingInitialPosition = false;
|
|
379
|
+
popup?.classList.remove("positioned");
|
|
380
|
+
if (this.usesPopoverTopLayer()) popup?.hidePopover?.();
|
|
381
|
+
if (this.cleanup) {
|
|
382
|
+
this.cleanup();
|
|
383
|
+
this.cleanup = void 0;
|
|
384
|
+
popup?.style.removeProperty("--pk-transform-origin");
|
|
385
|
+
requestAnimationFrame(() => resolve());
|
|
386
|
+
} else resolve();
|
|
387
|
+
this.removeAttribute("data-current-placement");
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
/** @deprecated Prefer `stop()` — kept for select/combobox handoff call sites. */
|
|
391
|
+
releasePositioning() {
|
|
392
|
+
if (this.cleanup) {
|
|
393
|
+
this.cleanup();
|
|
394
|
+
this.cleanup = void 0;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
/** @deprecated Prefer `stop()`. */
|
|
398
|
+
async awaitHidden() {
|
|
399
|
+
await this.stop();
|
|
400
|
+
}
|
|
401
|
+
start() {
|
|
402
|
+
if (!this.anchorElement || !this.active || !this.isConnected || !this.popupElement) return;
|
|
403
|
+
this.popupElement.classList.remove("positioned");
|
|
404
|
+
this.settlingInitialPosition = true;
|
|
405
|
+
if (this.usesPopoverTopLayer()) this.popupElement.showPopover?.();
|
|
406
|
+
if (this.anchorTracking) this.cleanup = autoUpdate(this.anchorElement, this.popupElement, () => {
|
|
407
|
+
if (this.settlingInitialPosition) return;
|
|
408
|
+
this.reposition();
|
|
409
|
+
});
|
|
410
|
+
this.settleInitialPosition();
|
|
411
|
+
}
|
|
412
|
+
/** Slotted popup content root (e.g. `.panel`) — keeps content in-tree. */
|
|
413
|
+
getContentElement() {
|
|
414
|
+
const slotted = ((this.shadowRoot?.querySelector("slot:not([name])"))?.assignedElements({ flatten: true }) ?? []).find((node) => node instanceof HTMLElement);
|
|
415
|
+
if (slotted) return slotted;
|
|
416
|
+
for (const node of this.childNodes) if (node instanceof HTMLElement && node.getAttribute("slot") !== "anchor") return node;
|
|
417
|
+
return null;
|
|
418
|
+
}
|
|
419
|
+
updateHoverBridge() {
|
|
420
|
+
const floatingElement = this.popupElement;
|
|
421
|
+
if (!this.hoverBridge || !this.anchorElement || !floatingElement) return;
|
|
422
|
+
const anchorRect = this.anchorElement.getBoundingClientRect();
|
|
423
|
+
const popupRect = floatingElement.getBoundingClientRect();
|
|
424
|
+
const isVertical = this.placement.includes("top") || this.placement.includes("bottom");
|
|
425
|
+
let topLeftX = 0;
|
|
426
|
+
let topLeftY = 0;
|
|
427
|
+
let topRightX = 0;
|
|
428
|
+
let topRightY = 0;
|
|
429
|
+
let bottomLeftX = 0;
|
|
430
|
+
let bottomLeftY = 0;
|
|
431
|
+
let bottomRightX = 0;
|
|
432
|
+
let bottomRightY = 0;
|
|
433
|
+
if (isVertical) if (anchorRect.top < popupRect.top) {
|
|
434
|
+
topLeftX = anchorRect.left;
|
|
435
|
+
topLeftY = anchorRect.bottom;
|
|
436
|
+
topRightX = anchorRect.right;
|
|
437
|
+
topRightY = anchorRect.bottom;
|
|
438
|
+
bottomLeftX = popupRect.left;
|
|
439
|
+
bottomLeftY = popupRect.top;
|
|
440
|
+
bottomRightX = popupRect.right;
|
|
441
|
+
bottomRightY = popupRect.top;
|
|
442
|
+
} else {
|
|
443
|
+
topLeftX = popupRect.left;
|
|
444
|
+
topLeftY = popupRect.bottom;
|
|
445
|
+
topRightX = popupRect.right;
|
|
446
|
+
topRightY = popupRect.bottom;
|
|
447
|
+
bottomLeftX = anchorRect.left;
|
|
448
|
+
bottomLeftY = anchorRect.top;
|
|
449
|
+
bottomRightX = anchorRect.right;
|
|
450
|
+
bottomRightY = anchorRect.top;
|
|
451
|
+
}
|
|
452
|
+
else if (anchorRect.left < popupRect.left) {
|
|
453
|
+
topLeftX = anchorRect.right;
|
|
454
|
+
topLeftY = anchorRect.top;
|
|
455
|
+
topRightX = popupRect.left;
|
|
456
|
+
topRightY = popupRect.top;
|
|
457
|
+
bottomLeftX = anchorRect.right;
|
|
458
|
+
bottomLeftY = anchorRect.bottom;
|
|
459
|
+
bottomRightX = popupRect.left;
|
|
460
|
+
bottomRightY = popupRect.bottom;
|
|
461
|
+
} else {
|
|
462
|
+
topLeftX = popupRect.right;
|
|
463
|
+
topLeftY = popupRect.top;
|
|
464
|
+
topRightX = anchorRect.left;
|
|
465
|
+
topRightY = anchorRect.top;
|
|
466
|
+
bottomLeftX = popupRect.right;
|
|
467
|
+
bottomLeftY = popupRect.bottom;
|
|
468
|
+
bottomRightX = anchorRect.left;
|
|
469
|
+
bottomRightY = anchorRect.bottom;
|
|
470
|
+
}
|
|
471
|
+
this.style.setProperty("--pk-hover-bridge-top-left-x", `${topLeftX}px`);
|
|
472
|
+
this.style.setProperty("--pk-hover-bridge-top-left-y", `${topLeftY}px`);
|
|
473
|
+
this.style.setProperty("--pk-hover-bridge-top-right-x", `${topRightX}px`);
|
|
474
|
+
this.style.setProperty("--pk-hover-bridge-top-right-y", `${topRightY}px`);
|
|
475
|
+
this.style.setProperty("--pk-hover-bridge-bottom-left-x", `${bottomLeftX}px`);
|
|
476
|
+
this.style.setProperty("--pk-hover-bridge-bottom-left-y", `${bottomLeftY}px`);
|
|
477
|
+
this.style.setProperty("--pk-hover-bridge-bottom-right-x", `${bottomRightX}px`);
|
|
478
|
+
this.style.setProperty("--pk-hover-bridge-bottom-right-y", `${bottomRightY}px`);
|
|
479
|
+
}
|
|
480
|
+
render() {
|
|
481
|
+
const useFixedFallback = !SUPPORTS_POPOVER || this.positionMethod === "fixed";
|
|
482
|
+
const usePopoverTopLayer = this.usesPopoverTopLayer();
|
|
483
|
+
return b`
|
|
484
|
+
<slot name="anchor" @slotchange=${() => {
|
|
485
|
+
this.handleAnchorChange();
|
|
486
|
+
}}></slot>
|
|
487
|
+
${this.hoverBridge ? b`
|
|
488
|
+
<div
|
|
489
|
+
part="hover-bridge"
|
|
490
|
+
class=${e$1({
|
|
491
|
+
"hover-bridge": true,
|
|
492
|
+
"hover-bridge-visible": this.active
|
|
493
|
+
})}
|
|
494
|
+
aria-hidden="true"
|
|
495
|
+
></div>
|
|
496
|
+
` : A}
|
|
497
|
+
<div
|
|
498
|
+
popover=${usePopoverTopLayer ? "manual" : A}
|
|
499
|
+
part="popup"
|
|
500
|
+
class=${e$1({
|
|
501
|
+
popup: true,
|
|
502
|
+
active: this.active,
|
|
503
|
+
"popup-fixed": useFixedFallback
|
|
504
|
+
})}
|
|
505
|
+
>
|
|
506
|
+
${this.arrow ? b`<div part="arrow" class="arrow"></div>` : A}
|
|
507
|
+
<slot></slot>
|
|
508
|
+
</div>
|
|
509
|
+
`;
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
__decorate([n()], PkPopup.prototype, "anchor", void 0);
|
|
513
|
+
__decorate([n({
|
|
514
|
+
type: Boolean,
|
|
515
|
+
reflect: true
|
|
516
|
+
})], PkPopup.prototype, "active", void 0);
|
|
517
|
+
__decorate([n({ attribute: "position-method" })], PkPopup.prototype, "positionMethod", void 0);
|
|
518
|
+
__decorate([n({ reflect: true })], PkPopup.prototype, "boundary", void 0);
|
|
519
|
+
__decorate([n({ reflect: true })], PkPopup.prototype, "placement", void 0);
|
|
520
|
+
__decorate([n({ type: Number })], PkPopup.prototype, "distance", void 0);
|
|
521
|
+
__decorate([n({ type: Number })], PkPopup.prototype, "skidding", void 0);
|
|
522
|
+
__decorate([n({ type: Boolean })], PkPopup.prototype, "flip", void 0);
|
|
523
|
+
__decorate([n({ attribute: "flip-fallback-placements" })], PkPopup.prototype, "flipFallbackPlacements", void 0);
|
|
524
|
+
__decorate([n({ attribute: "flip-fallback-strategy" })], PkPopup.prototype, "flipFallbackStrategy", void 0);
|
|
525
|
+
__decorate([n({
|
|
526
|
+
attribute: "flip-padding",
|
|
527
|
+
type: Number
|
|
528
|
+
})], PkPopup.prototype, "flipPadding", void 0);
|
|
529
|
+
__decorate([n({ type: Boolean })], PkPopup.prototype, "shift", void 0);
|
|
530
|
+
__decorate([n({
|
|
531
|
+
attribute: "shift-padding",
|
|
532
|
+
type: Number
|
|
533
|
+
})], PkPopup.prototype, "shiftPadding", void 0);
|
|
534
|
+
__decorate([n({ type: Boolean })], PkPopup.prototype, "arrow", void 0);
|
|
535
|
+
__decorate([n({ attribute: "arrow-placement" })], PkPopup.prototype, "arrowPlacement", void 0);
|
|
536
|
+
__decorate([n({
|
|
537
|
+
attribute: "arrow-padding",
|
|
538
|
+
type: Number
|
|
539
|
+
})], PkPopup.prototype, "arrowPadding", void 0);
|
|
540
|
+
__decorate([n()], PkPopup.prototype, "sync", void 0);
|
|
541
|
+
__decorate([n({
|
|
542
|
+
attribute: "anchor-tracking",
|
|
543
|
+
type: Boolean
|
|
544
|
+
})], PkPopup.prototype, "anchorTracking", void 0);
|
|
545
|
+
__decorate([n({
|
|
546
|
+
attribute: "hover-bridge",
|
|
547
|
+
type: Boolean
|
|
548
|
+
})], PkPopup.prototype, "hoverBridge", void 0);
|
|
549
|
+
__decorate([e$2(".popup")], PkPopup.prototype, "popupElement", void 0);
|
|
550
|
+
__decorate([e$2(".arrow")], PkPopup.prototype, "arrowElement", void 0);
|
|
551
|
+
PkPopup = __decorate([t("pk-popup")], PkPopup);
|
|
552
|
+
//#endregion
|
|
553
|
+
export { resolveElementById as n, PkPopup as t };
|