@verbb/plugin-kit-web 2.0.15 → 2.0.17
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 +80 -0
- package/README.md +3 -3
- package/custom-elements.json +39781 -0
- package/dist/base/pk-form-associated-element.d.ts +17 -1
- package/dist/base/pk-form-associated-element.d.ts.map +1 -1
- package/dist/chunks/{animate-with-class-ZJeCOKB3.js → animate-with-class-CsDwYnXL.js} +1 -1
- package/dist/chunks/{animate-with-class-ZJeCOKB3.js.map → animate-with-class-CsDwYnXL.js.map} +1 -1
- package/dist/chunks/{autoloader-DPX9YYZs.js → autoloader-dJO3tYOX.js} +2 -2
- package/dist/chunks/{autoloader-DPX9YYZs.js.map → autoloader-dJO3tYOX.js.map} +1 -1
- package/dist/chunks/{component-registry-CNB8PbP_.js → component-registry-D34fm8xW.js} +5 -1
- package/dist/chunks/component-registry-D34fm8xW.js.map +1 -0
- package/dist/chunks/{field-labels-CoU9dnNq.js → field-labels-CmuAW8Cl.js} +1 -1
- package/dist/chunks/{field-labels-CoU9dnNq.js.map → field-labels-CmuAW8Cl.js.map} +1 -1
- package/dist/chunks/option-filter-BQqr8Z21.js +121 -0
- package/dist/chunks/option-filter-BQqr8Z21.js.map +1 -0
- package/dist/chunks/pk-autocomplete-IFL-u-RF.js +992 -0
- package/dist/chunks/pk-autocomplete-IFL-u-RF.js.map +1 -0
- package/dist/chunks/{pk-button-BWGDkuzc.js → pk-button-BrH4u4Qr.js} +8 -4
- package/dist/chunks/{pk-button-BWGDkuzc.js.map → pk-button-BrH4u4Qr.js.map} +1 -1
- package/dist/chunks/{pk-calendar-enTOUCRD.js → pk-calendar-Z7Y0PjeY.js} +1 -1
- package/dist/chunks/{pk-calendar-enTOUCRD.js.map → pk-calendar-Z7Y0PjeY.js.map} +1 -1
- package/dist/chunks/{pk-checkbox-CvZwJZn_.js → pk-checkbox-CfV1uDdC.js} +2 -2
- package/dist/chunks/{pk-checkbox-CvZwJZn_.js.map → pk-checkbox-CfV1uDdC.js.map} +1 -1
- package/dist/chunks/{pk-checkbox-select-DclPoyDM.js → pk-checkbox-select-DeCaI3a0.js} +2 -2
- package/dist/chunks/{pk-checkbox-select-DclPoyDM.js.map → pk-checkbox-select-DeCaI3a0.js.map} +1 -1
- package/dist/chunks/{pk-code-editor-CrKnJUyi.js → pk-code-editor-BG9sG_Fy.js} +2 -2
- package/dist/chunks/{pk-code-editor-CrKnJUyi.js.map → pk-code-editor-BG9sG_Fy.js.map} +1 -1
- package/dist/chunks/{pk-color-input-DXdqNCK7.js → pk-color-input-CncNce1C.js} +2 -2
- package/dist/chunks/{pk-color-input-DXdqNCK7.js.map → pk-color-input-CncNce1C.js.map} +1 -1
- package/dist/chunks/{pk-combobox-BLft8AXy.js → pk-combobox-CL9En0J-.js} +49 -92
- package/dist/chunks/pk-combobox-CL9En0J-.js.map +1 -0
- package/dist/chunks/{pk-connect.styles-DshgIW2n.js → pk-connect.styles-BhW406jt.js} +1 -1
- package/dist/chunks/{pk-connect.styles-DshgIW2n.js.map → pk-connect.styles-BhW406jt.js.map} +1 -1
- package/dist/chunks/{pk-copy-button-asOLQkqk.js → pk-copy-button-BVaOLtYG.js} +46 -5
- package/dist/chunks/pk-copy-button-BVaOLtYG.js.map +1 -0
- package/dist/chunks/{pk-date-picker-Bri3kZ6x.js → pk-date-picker-BEAd4Ngl.js} +6 -6
- package/dist/chunks/{pk-date-picker-Bri3kZ6x.js.map → pk-date-picker-BEAd4Ngl.js.map} +1 -1
- package/dist/chunks/{pk-dialog-BbEfvb0g.js → pk-dialog-VMQqLW1f.js} +2 -2
- package/dist/chunks/{pk-dialog-BbEfvb0g.js.map → pk-dialog-VMQqLW1f.js.map} +1 -1
- package/dist/chunks/{pk-dropdown-item-BoZTGWMU.js → pk-dropdown-item-D9OaG5o-.js} +9 -5
- package/dist/chunks/pk-dropdown-item-D9OaG5o-.js.map +1 -0
- package/dist/chunks/{pk-dropdown-label-Da28F917.js → pk-dropdown-label-CRNWMWQd.js} +1 -1
- package/dist/chunks/{pk-dropdown-label-Da28F917.js.map → pk-dropdown-label-CRNWMWQd.js.map} +1 -1
- package/dist/chunks/{pk-dropdown-menu-CfZc7dIz.js → pk-dropdown-menu-DW1wI8xQ.js} +6 -4
- package/dist/chunks/pk-dropdown-menu-DW1wI8xQ.js.map +1 -0
- package/dist/chunks/{pk-editable-table-Cn4WXqAo.js → pk-editable-table-BoqfveXO.js} +17 -19
- package/dist/chunks/pk-editable-table-BoqfveXO.js.map +1 -0
- package/dist/chunks/{pk-field-NL4KdFZC.js → pk-field-UAlMq6mQ.js} +2 -2
- package/dist/chunks/{pk-field-NL4KdFZC.js.map → pk-field-UAlMq6mQ.js.map} +1 -1
- package/dist/chunks/{pk-form-associated-element-9M2NzOE2.js → pk-form-associated-element-CCQALRGB.js} +14 -2
- package/dist/chunks/pk-form-associated-element-CCQALRGB.js.map +1 -0
- package/dist/chunks/pk-image-browser-DwiCFOIG.js +1364 -0
- package/dist/chunks/pk-image-browser-DwiCFOIG.js.map +1 -0
- package/dist/chunks/{pk-input-DDkIXOkt.js → pk-input-CF_icEtR.js} +76 -30
- package/dist/chunks/pk-input-CF_icEtR.js.map +1 -0
- package/dist/chunks/{pk-input-group-CRPSBFhX.js → pk-input-group-BLqKPnfc.js} +2 -2
- package/dist/chunks/{pk-input-group-CRPSBFhX.js.map → pk-input-group-BLqKPnfc.js.map} +1 -1
- package/dist/chunks/{pk-input-group-addon-B0StOmTJ.js → pk-input-group-addon-ClBkGmAw.js} +1 -1
- package/dist/chunks/{pk-input-group-addon-B0StOmTJ.js.map → pk-input-group-addon-ClBkGmAw.js.map} +1 -1
- package/dist/chunks/{pk-input-group-button-CnKajvsP.js → pk-input-group-button-CHQHsWd4.js} +1 -1
- package/dist/chunks/{pk-input-group-button-CnKajvsP.js.map → pk-input-group-button-CHQHsWd4.js.map} +1 -1
- package/dist/chunks/{pk-input-group-input-mllffsjQ.js → pk-input-group-input-oNnqMBGU.js} +1 -1
- package/dist/chunks/{pk-input-group-input-mllffsjQ.js.map → pk-input-group-input-oNnqMBGU.js.map} +1 -1
- package/dist/chunks/{pk-input-group-text-DvaPJvh2.js → pk-input-group-text-HUxlXROB.js} +1 -1
- package/dist/chunks/{pk-input-group-text-DvaPJvh2.js.map → pk-input-group-text-HUxlXROB.js.map} +1 -1
- package/dist/chunks/{pk-input-group-textarea-CqYv8tUQ.js → pk-input-group-textarea-Cl2FNuw-.js} +1 -1
- package/dist/chunks/{pk-input-group-textarea-CqYv8tUQ.js.map → pk-input-group-textarea-Cl2FNuw-.js.map} +1 -1
- package/dist/chunks/{pk-lightswitch-DI1BeCmA.js → pk-lightswitch-D1qEFRxK.js} +3 -3
- package/dist/chunks/{pk-lightswitch-DI1BeCmA.js.map → pk-lightswitch-D1qEFRxK.js.map} +1 -1
- package/dist/chunks/{pk-option-MGj9SKOK.js → pk-option-DQZHV9jL.js} +3 -2
- package/dist/chunks/pk-option-DQZHV9jL.js.map +1 -0
- package/dist/chunks/{pk-option-group-Cs6N7mlP.js → pk-option-group-CCzJkBFp.js} +1 -1
- package/dist/chunks/{pk-option-group-Cs6N7mlP.js.map → pk-option-group-CCzJkBFp.js.map} +1 -1
- package/dist/chunks/{pk-popover-duyNosk2.js → pk-popover-D3jkHfwB.js} +4 -4
- package/dist/chunks/pk-popover-D3jkHfwB.js.map +1 -0
- package/dist/chunks/{pk-popup-B9AgBC2V.js → pk-popup-B65tZMQH.js} +23 -1
- package/dist/chunks/pk-popup-B65tZMQH.js.map +1 -0
- package/dist/chunks/{pk-radio-BK4D2Htu.js → pk-radio-B5XkMHy3.js} +1 -1
- package/dist/chunks/{pk-radio-BK4D2Htu.js.map → pk-radio-B5XkMHy3.js.map} +1 -1
- package/dist/chunks/{pk-radio-group-BRJIjOsR.js → pk-radio-group-ByrxGLdX.js} +3 -3
- package/dist/chunks/{pk-radio-group-BRJIjOsR.js.map → pk-radio-group-ByrxGLdX.js.map} +1 -1
- package/dist/chunks/{pk-scroll-area-BR6ckorh.js → pk-scroll-area-CdfNxYz8.js} +1 -1
- package/dist/chunks/{pk-scroll-area-BR6ckorh.js.map → pk-scroll-area-CdfNxYz8.js.map} +1 -1
- package/dist/chunks/{pk-select-C1s0OJr0.js → pk-select-CdQdhnZN.js} +7 -5
- package/dist/chunks/pk-select-CdQdhnZN.js.map +1 -0
- package/dist/chunks/{pk-separator-CHij3vEG.js → pk-separator-N-VyjYE6.js} +1 -1
- package/dist/chunks/{pk-separator-CHij3vEG.js.map → pk-separator-N-VyjYE6.js.map} +1 -1
- package/dist/chunks/{pk-status-D1IzTSI2.js → pk-status-BehQARDv.js} +1 -1
- package/dist/chunks/{pk-status-D1IzTSI2.js.map → pk-status-BehQARDv.js.map} +1 -1
- package/dist/chunks/{pk-tab-2MHunhlF.js → pk-tab-CTloD18e.js} +1 -1
- package/dist/chunks/{pk-tab-2MHunhlF.js.map → pk-tab-CTloD18e.js.map} +1 -1
- package/dist/chunks/{pk-tab-heading-BV6m_sT-.js → pk-tab-heading-Cjcgebxn.js} +1 -1
- package/dist/chunks/{pk-tab-heading-BV6m_sT-.js.map → pk-tab-heading-Cjcgebxn.js.map} +1 -1
- package/dist/chunks/{pk-tab-panel-C6FxQw9q.js → pk-tab-panel-CkKU5-Ah.js} +1 -1
- package/dist/chunks/{pk-tab-panel-C6FxQw9q.js.map → pk-tab-panel-CkKU5-Ah.js.map} +1 -1
- package/dist/chunks/{pk-tabs-BTE63uK9.js → pk-tabs-BgEBki1q.js} +1 -1
- package/dist/chunks/{pk-tabs-BTE63uK9.js.map → pk-tabs-BgEBki1q.js.map} +1 -1
- package/dist/chunks/{pk-textarea-BcAyZYC-.js → pk-textarea-CYM2tK88.js} +3 -3
- package/dist/chunks/{pk-textarea-BcAyZYC-.js.map → pk-textarea-CYM2tK88.js.map} +1 -1
- package/dist/chunks/{pk-time-picker-5D4nmig2.js → pk-time-picker-CebRqydV.js} +3 -3
- package/dist/chunks/{pk-time-picker-5D4nmig2.js.map → pk-time-picker-CebRqydV.js.map} +1 -1
- package/dist/chunks/{pk-tiptap-content-BPd4GO6c.js → pk-tiptap-content-CL8smjGi.js} +6 -3
- package/dist/chunks/{pk-tiptap-content-BPd4GO6c.js.map → pk-tiptap-content-CL8smjGi.js.map} +1 -1
- package/dist/chunks/{pk-tiptap-editor-tG67Vegc.js → pk-tiptap-editor-CTz-yfHL.js} +335 -19
- package/dist/chunks/pk-tiptap-editor-CTz-yfHL.js.map +1 -0
- package/dist/chunks/{pk-tiptap-input-CtefNnaK.js → pk-tiptap-input-Y9eog9Zn.js} +3 -3
- package/dist/chunks/{pk-tiptap-input-CtefNnaK.js.map → pk-tiptap-input-Y9eog9Zn.js.map} +1 -1
- package/dist/chunks/{pk-toggle-CW-lflrh.js → pk-toggle-BthhH7vl.js} +1 -1
- package/dist/chunks/{pk-toggle-CW-lflrh.js.map → pk-toggle-BthhH7vl.js.map} +1 -1
- package/dist/chunks/{pk-toggle-group-BKymefo3.js → pk-toggle-group-D2Quux8D.js} +1 -1
- package/dist/chunks/{pk-toggle-group-BKymefo3.js.map → pk-toggle-group-D2Quux8D.js.map} +1 -1
- package/dist/chunks/{pk-tooltip-BoDq8YVe.js → pk-tooltip--QBV6puX.js} +2 -2
- package/dist/chunks/{pk-tooltip-BoDq8YVe.js.map → pk-tooltip--QBV6puX.js.map} +1 -1
- package/dist/chunks/{popup-content-animation.styles-Dc6d9quJ.js → popup-content-animation.styles-BnNiguJo.js} +1 -1
- package/dist/chunks/{popup-content-animation.styles-Dc6d9quJ.js.map → popup-content-animation.styles-BnNiguJo.js.map} +1 -1
- package/dist/chunks/{popup-pointer-DMnuZDQl.js → popup-pointer-CuLjk1th.js} +1 -1
- package/dist/chunks/{popup-pointer-DMnuZDQl.js.map → popup-pointer-CuLjk1th.js.map} +1 -1
- package/dist/chunks/{register-CQodpTWT.js → register-aJw-9RWi.js} +46 -46
- package/dist/chunks/{register-CQodpTWT.js.map → register-aJw-9RWi.js.map} +1 -1
- package/dist/chunks/{register-components-B-qCPFFh.js → register-components-BT9THgdh.js} +1 -1
- package/dist/chunks/{register-components-B-qCPFFh.js.map → register-components-BT9THgdh.js.map} +1 -1
- package/dist/chunks/{tiptap.styles-ChAfyVi9.js → tiptap.styles-CPRows--.js} +4 -3
- package/dist/chunks/tiptap.styles-CPRows--.js.map +1 -0
- package/dist/component-registry.d.ts.map +1 -1
- package/dist/components/autocomplete/index.d.ts +2 -0
- package/dist/components/autocomplete/index.d.ts.map +1 -0
- package/dist/components/autocomplete/pk-autocomplete.d.ts +150 -0
- package/dist/components/autocomplete/pk-autocomplete.d.ts.map +1 -0
- package/dist/components/autocomplete/pk-autocomplete.js +2 -0
- package/dist/components/autocomplete/pk-autocomplete.styles.d.ts +7 -0
- package/dist/components/autocomplete/pk-autocomplete.styles.d.ts.map +1 -0
- package/dist/components/autocomplete.d.ts +2 -0
- package/dist/components/autocomplete.js +2 -0
- package/dist/components/button/pk-button.d.ts +37 -1
- package/dist/components/button/pk-button.d.ts.map +1 -1
- package/dist/components/button/pk-button.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calendar/pk-calendar.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/checkbox/pk-checkbox.js +1 -1
- package/dist/components/checkbox-select/pk-checkbox-select.js +1 -1
- package/dist/components/checkbox-select.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/code-editor/pk-code-editor.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/color-input/pk-color-input.js +1 -1
- package/dist/components/color-input.js +1 -1
- package/dist/components/combobox/pk-combobox.d.ts +8 -14
- package/dist/components/combobox/pk-combobox.d.ts.map +1 -1
- package/dist/components/combobox/pk-combobox.js +1 -1
- package/dist/components/combobox/pk-combobox.styles.d.ts.map +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/connect/pk-connect-oauth.d.ts +1 -1
- package/dist/components/connect/pk-connect-oauth.js +3 -3
- package/dist/components/connect/pk-connect-oauth.js.map +1 -1
- package/dist/components/connect/pk-connect.js +4 -4
- package/dist/components/copy-button/pk-copy-button.d.ts +3 -0
- package/dist/components/copy-button/pk-copy-button.d.ts.map +1 -1
- package/dist/components/copy-button/pk-copy-button.js +1 -1
- package/dist/components/copy-button/pk-copy-button.styles.d.ts.map +1 -1
- package/dist/components/copy-button.js +1 -1
- package/dist/components/date-picker/pk-date-picker.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/dialog/pk-dialog.d.ts +1 -1
- package/dist/components/dialog/pk-dialog.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown-menu/pk-dropdown-item.d.ts +3 -1
- package/dist/components/dropdown-menu/pk-dropdown-item.d.ts.map +1 -1
- package/dist/components/dropdown-menu/pk-dropdown-item.js +1 -1
- package/dist/components/dropdown-menu/pk-dropdown-item.styles.d.ts.map +1 -1
- package/dist/components/dropdown-menu/pk-dropdown-label.js +1 -1
- package/dist/components/dropdown-menu/pk-dropdown-menu.js +1 -1
- package/dist/components/dropdown-menu/pk-dropdown-menu.styles.d.ts.map +1 -1
- package/dist/components/dropdown-menu.js +3 -3
- package/dist/components/editable-table/editable-table-model.d.ts +4 -1
- package/dist/components/editable-table/editable-table-model.d.ts.map +1 -1
- package/dist/components/editable-table/pk-editable-table.d.ts +1 -1
- package/dist/components/editable-table/pk-editable-table.d.ts.map +1 -1
- package/dist/components/editable-table/pk-editable-table.js +1 -1
- package/dist/components/editable-table.js +1 -1
- package/dist/components/field/pk-field.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/icon/pk-icon.d.ts +3 -2
- package/dist/components/icon/pk-icon.d.ts.map +1 -1
- package/dist/components/icon/pk-icon.js.map +1 -1
- package/dist/components/image-browser/index.d.ts +2 -0
- package/dist/components/image-browser/index.d.ts.map +1 -0
- package/dist/components/image-browser/pk-image-browser.d.ts +190 -0
- package/dist/components/image-browser/pk-image-browser.d.ts.map +1 -0
- package/dist/components/image-browser/pk-image-browser.js +2 -0
- package/dist/components/image-browser/pk-image-browser.styles.d.ts +6 -0
- package/dist/components/image-browser/pk-image-browser.styles.d.ts.map +1 -0
- package/dist/components/image-browser.d.ts +2 -0
- package/dist/components/image-browser.js +2 -0
- package/dist/components/input/pk-input.d.ts +3 -2
- package/dist/components/input/pk-input.d.ts.map +1 -1
- package/dist/components/input/pk-input.js +1 -1
- package/dist/components/input/pk-input.styles.d.ts.map +1 -1
- package/dist/components/input-group/pk-input-group-addon.js +1 -1
- package/dist/components/input-group/pk-input-group-button.js +1 -1
- package/dist/components/input-group/pk-input-group-input.js +1 -1
- package/dist/components/input-group/pk-input-group-text.js +1 -1
- package/dist/components/input-group/pk-input-group-textarea.js +1 -1
- package/dist/components/input-group/pk-input-group.d.ts +2 -2
- package/dist/components/input-group/pk-input-group.d.ts.map +1 -1
- package/dist/components/input-group/pk-input-group.js +1 -1
- package/dist/components/input-group.js +6 -6
- package/dist/components/input.js +1 -1
- package/dist/components/lightswitch/pk-lightswitch.js +1 -1
- package/dist/components/lightswitch.js +1 -1
- package/dist/components/popover/pk-popover.d.ts +2 -2
- package/dist/components/popover/pk-popover.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/popup/pk-popup.d.ts +4 -0
- package/dist/components/popup/pk-popup.d.ts.map +1 -1
- package/dist/components/popup/pk-popup.js +1 -1
- package/dist/components/popup.js +1 -1
- package/dist/components/radio-group/pk-radio-group.js +1 -1
- package/dist/components/radio-group/pk-radio.js +1 -1
- package/dist/components/radio-group.js +2 -2
- package/dist/components/scroll-area/pk-scroll-area.js +1 -1
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/select/pk-option-group.d.ts +3 -1
- package/dist/components/select/pk-option-group.d.ts.map +1 -1
- package/dist/components/select/pk-option-group.js +1 -1
- package/dist/components/select/pk-option.d.ts +10 -1
- package/dist/components/select/pk-option.d.ts.map +1 -1
- package/dist/components/select/pk-option.js +1 -1
- package/dist/components/select/pk-select.d.ts +42 -3
- package/dist/components/select/pk-select.d.ts.map +1 -1
- package/dist/components/select/pk-select.js +1 -1
- package/dist/components/select.js +3 -3
- package/dist/components/separator/pk-separator.js +1 -1
- package/dist/components/separator.js +1 -1
- package/dist/components/status/pk-status.js +1 -1
- package/dist/components/status.js +1 -1
- package/dist/components/tabs/pk-tab-heading.js +1 -1
- package/dist/components/tabs/pk-tab-panel.js +1 -1
- package/dist/components/tabs/pk-tab.js +1 -1
- package/dist/components/tabs/pk-tabs.js +1 -1
- package/dist/components/tabs.js +4 -4
- package/dist/components/textarea/pk-textarea.js +1 -1
- package/dist/components/textarea.js +1 -1
- package/dist/components/time-picker/pk-time-picker.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/tiptap/pk-tiptap-content.d.ts.map +1 -1
- package/dist/components/tiptap/pk-tiptap-content.js +1 -1
- package/dist/components/tiptap/pk-tiptap-editor.d.ts +11 -1
- package/dist/components/tiptap/pk-tiptap-editor.d.ts.map +1 -1
- package/dist/components/tiptap/pk-tiptap-editor.js +1 -1
- package/dist/components/tiptap/pk-tiptap-editor.styles.d.ts.map +1 -1
- package/dist/components/tiptap/pk-tiptap-input.js +1 -1
- package/dist/components/tiptap/tiptap-toolbar.d.ts +1 -0
- package/dist/components/tiptap/tiptap-toolbar.d.ts.map +1 -1
- package/dist/components/tiptap/variable-tag-node-view.d.ts.map +1 -1
- package/dist/components/tiptap-content.js +1 -1
- package/dist/components/tiptap-editor.js +1 -1
- package/dist/components/tiptap-input.js +1 -1
- package/dist/components/toggle/pk-toggle.js +1 -1
- package/dist/components/toggle-group/pk-toggle-group.js +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/toggle.js +1 -1
- package/dist/components/tooltip/pk-tooltip.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/connect/register-cp-connect.js +3 -3
- package/dist/index.js +50 -50
- package/dist/internal/sync-filtered-options.d.ts +23 -0
- package/dist/internal/sync-filtered-options.d.ts.map +1 -0
- package/dist/plugin-kit.css +2 -0
- package/dist/plugin-kit.js +2 -2
- package/dist/register-components.js +1 -1
- package/dist/register-pk.generated.d.ts +4 -0
- package/dist/register-pk.generated.d.ts.map +1 -1
- package/dist/register.js +48 -48
- package/dist/utilities/fouce.css +2 -0
- package/dist/utils/async-option-fetch.d.ts +38 -0
- package/dist/utils/async-option-fetch.d.ts.map +1 -0
- package/dist/utils/option-filter.d.ts +11 -0
- package/dist/utils/option-filter.d.ts.map +1 -0
- package/dist/utils/popup-content-exit.d.ts +6 -0
- package/dist/utils/popup-content-exit.d.ts.map +1 -0
- package/dist-loader/chunks/option-filter-Bc5aNNT0.js +119 -0
- package/dist-loader/chunks/{pk-base-B21zXxSo.js → pk-base-CyzwylQ7.js} +13 -1
- package/dist-loader/chunks/{pk-button-Dh4gjLHw.js → pk-button-saBDszJV.js} +10 -6
- package/dist-loader/chunks/{pk-calendar-n1bwSO7X.js → pk-calendar-BrF8i3dW.js} +3 -3
- package/dist-loader/chunks/{pk-checkbox-BrZQB816.js → pk-checkbox-B3d4nkBx.js} +1 -1
- package/dist-loader/chunks/{pk-color-input-sS05YOwT.js → pk-color-input-CD-r_sfG.js} +1 -1
- package/dist-loader/chunks/{pk-combobox-B7q6alzE.js → pk-combobox-Cpx0w1KV.js} +49 -92
- package/dist-loader/chunks/{pk-date-picker-Dni5ty79.js → pk-date-picker-DEoiTOxN.js} +6 -6
- package/dist-loader/chunks/{pk-dialog-BpPRqFMm.js → pk-dialog-C6aaPokv.js} +3 -3
- package/dist-loader/chunks/{pk-dropdown-item-CHkFNlA9.js → pk-dropdown-item-D8RrwjxL.js} +10 -6
- package/dist-loader/chunks/pk-dropdown-label-Cg32UgRe.js +51 -0
- package/dist-loader/chunks/{pk-dropdown-menu-BHVOMNV1.js → pk-dropdown-menu-CAHCltlX.js} +5 -3
- package/dist-loader/chunks/{pk-field-CJ09ll1S.js → pk-field-V7JOy26T.js} +4 -4
- package/dist-loader/chunks/{pk-icon-WHUu7wxk.js → pk-icon-Bph-EBqp.js} +2 -2
- package/dist-loader/chunks/{pk-input-CEw3AdYt.js → pk-input-BhU0PiCk.js} +74 -28
- package/dist-loader/chunks/{pk-lightswitch-DJEUScgo.js → pk-lightswitch-m23Cy3_D.js} +1 -1
- package/dist-loader/chunks/{pk-option-CunPIei0.js → pk-option-BrDMERSl.js} +5 -4
- package/dist-loader/chunks/{pk-popup-FDdBxb4k.js → pk-popup-CrxxR-Hb.js} +24 -2
- package/dist-loader/chunks/{pk-select-CbAaQ7uE.js → pk-select-Dok-JdSe.js} +8 -6
- package/dist-loader/chunks/{pk-spinner-CIbXjDnp.js → pk-spinner-BKU9Rf2R.js} +1 -1
- package/dist-loader/chunks/{pk-status-BRIVW7EH.js → pk-status-D2g_77m_.js} +1 -1
- package/dist-loader/chunks/{pk-textarea-C_rOUtFS.js → pk-textarea-CC7rA5A7.js} +1 -1
- package/dist-loader/chunks/{pk-time-picker-Dr3uvbvc.js → pk-time-picker-h5Wgd4a_.js} +5 -5
- package/dist-loader/chunks/{pk-tooltip-HwZ0zRd2.js → pk-tooltip-Dd_Q0Bn5.js} +2 -2
- package/dist-loader/chunks/{render-Niz5wYRa.js → render-Bnzcxfss.js} +1 -1
- package/dist-loader/chunks/{svg-_Mtb7CHx.js → svg-Bz-bXZn7.js} +12 -4
- package/dist-loader/chunks/{tiptap-Db7MTUH1.js → tiptap-CgXkiK8d.js} +283 -13
- package/dist-loader/chunks/{tiptap.styles-BIRIMP7I.js → tiptap.styles-C0E1NpSx.js} +225 -5
- package/dist-loader/components/autocomplete/autocomplete.js +984 -0
- package/dist-loader/components/button/button.js +1 -1
- package/dist-loader/components/button-group/button-group-separator.js +1 -1
- package/dist-loader/components/button-group/button-group-text.js +1 -1
- package/dist-loader/components/button-group/button-group.js +1 -1
- package/dist-loader/components/calendar/calendar.js +1 -1
- package/dist-loader/components/checkbox/checkbox.js +1 -1
- package/dist-loader/components/checkbox-select/checkbox-select.js +2 -2
- package/dist-loader/components/code-editor/code-editor.js +6 -6
- package/dist-loader/components/color-input/color-input.js +1 -1
- package/dist-loader/components/combobox/combobox.js +1 -1
- package/dist-loader/components/connect/connect-oauth.js +4 -4
- package/dist-loader/components/connect/connect.js +6 -6
- package/dist-loader/components/copy-button/copy-button.js +48 -7
- package/dist-loader/components/date-picker/date-picker.js +1 -1
- package/dist-loader/components/dialog/dialog.js +1 -1
- package/dist-loader/components/dropdown-menu/dropdown-item.js +1 -1
- package/dist-loader/components/dropdown-menu/dropdown-label.js +1 -50
- package/dist-loader/components/dropdown-menu/dropdown-menu.js +1 -1
- package/dist-loader/components/dropdown-menu/dropdown-separator.js +1 -1
- package/dist-loader/components/editable-table/editable-table.js +18 -20
- package/dist-loader/components/field/field.js +1 -1
- package/dist-loader/components/icon/icon.js +2 -2
- package/dist-loader/components/image-browser/image-browser.js +1356 -0
- package/dist-loader/components/input/input.js +1 -1
- package/dist-loader/components/input-group/input-group-addon.js +1 -1
- package/dist-loader/components/input-group/input-group-button.js +1 -1
- package/dist-loader/components/input-group/input-group-input.js +1 -1
- package/dist-loader/components/input-group/input-group-text.js +1 -1
- package/dist-loader/components/input-group/input-group-textarea.js +1 -1
- package/dist-loader/components/input-group/input-group.js +2 -2
- package/dist-loader/components/lightswitch/lightswitch.js +1 -1
- package/dist-loader/components/popover/popover.js +3 -3
- package/dist-loader/components/popup/popup.js +1 -1
- package/dist-loader/components/radio-group/radio-group.js +1 -1
- package/dist-loader/components/radio-group/radio.js +1 -1
- package/dist-loader/components/scroll-area/scroll-area.js +1 -1
- package/dist-loader/components/select/option-group.js +1 -1
- package/dist-loader/components/select/option.js +1 -1
- package/dist-loader/components/select/select.js +1 -1
- package/dist-loader/components/separator/separator.js +1 -1
- package/dist-loader/components/spinner/spinner.js +1 -1
- package/dist-loader/components/status/status.js +1 -1
- package/dist-loader/components/tabs/tab-heading.js +1 -1
- package/dist-loader/components/tabs/tab-panel.js +1 -1
- package/dist-loader/components/tabs/tab.js +1 -1
- package/dist-loader/components/tabs/tabs.js +1 -1
- package/dist-loader/components/textarea/textarea.js +1 -1
- package/dist-loader/components/time-picker/time-picker.js +1 -1
- package/dist-loader/components/tiptap/tiptap-content.js +7 -4
- package/dist-loader/components/tiptap/tiptap-editor.js +336 -20
- package/dist-loader/components/tiptap/tiptap-input.js +3 -3
- package/dist-loader/components/toggle/toggle.js +1 -1
- package/dist-loader/components/toggle-group/toggle-group.js +1 -1
- package/dist-loader/components/tooltip/tooltip.js +1 -1
- package/dist-loader/plugin-kit.css +2 -0
- package/dist-loader/plugin-kit.loader.js +4 -0
- package/dist-loader/utilities/fouce.css +2 -0
- package/package.json +57 -10
- package/dist/chunks/component-registry-CNB8PbP_.js.map +0 -1
- package/dist/chunks/pk-combobox-BLft8AXy.js.map +0 -1
- package/dist/chunks/pk-copy-button-asOLQkqk.js.map +0 -1
- package/dist/chunks/pk-dropdown-item-BoZTGWMU.js.map +0 -1
- package/dist/chunks/pk-dropdown-menu-CfZc7dIz.js.map +0 -1
- package/dist/chunks/pk-editable-table-Cn4WXqAo.js.map +0 -1
- package/dist/chunks/pk-form-associated-element-9M2NzOE2.js.map +0 -1
- package/dist/chunks/pk-input-DDkIXOkt.js.map +0 -1
- package/dist/chunks/pk-option-MGj9SKOK.js.map +0 -1
- package/dist/chunks/pk-popover-duyNosk2.js.map +0 -1
- package/dist/chunks/pk-popup-B9AgBC2V.js.map +0 -1
- package/dist/chunks/pk-select-C1s0OJr0.js.map +0 -1
- package/dist/chunks/pk-tiptap-editor-tG67Vegc.js.map +0 -1
- package/dist/chunks/tiptap.styles-ChAfyVi9.js.map +0 -1
- /package/dist-loader/chunks/{floating-ui-DU6GNott.js → floating-ui-Cj0imr6d.js} +0 -0
- /package/dist-loader/chunks/{pk-connect.styles-Bfgwu0VH.js → pk-connect.styles-k61snd3X.js} +0 -0
- /package/dist-loader/chunks/{popup-pointer-caPc8kwB.js → popup-pointer-Ck28WdVP.js} +0 -0
- /package/dist-loader/chunks/{sync-listbox-separators-Dk_E_IVa.js → sync-listbox-separators-Ch5krDUs.js} +0 -0
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { d as registerDismissible, f as unregisterDismissible, n as uniqueId, s as scrollIntoView, t as LiveRegion, u as isTopDismissible } from "./pk-a11y-CjB4-U-R.js";
|
|
2
2
|
import { a as o, c as r, f as A, i as e, l as n, m as i, p as b, s as e$1, u as customElement } from "./lit-DpLik9Rf.js";
|
|
3
|
-
import { c as __decorate, i as PkFormAssociatedElement, s as iconStyles } from "./pk-base-
|
|
4
|
-
import {
|
|
3
|
+
import { c as __decorate, i as PkFormAssociatedElement, s as iconStyles } from "./pk-base-CyzwylQ7.js";
|
|
4
|
+
import { X as xmark, h as chevronDown } from "./svg-Bz-bXZn7.js";
|
|
5
5
|
import { t as MirrorValidator } from "./mirror-validator-C5XrXPaq.js";
|
|
6
6
|
import { t as HasSlotController } from "./has-slot-BGJeJdHr.js";
|
|
7
7
|
import { t as PkClearEvent } from "./pk-clear-BMZUzwDt.js";
|
|
8
|
-
import { n as renderIconHtml } from "./render-
|
|
8
|
+
import { n as renderIconHtml } from "./render-Bnzcxfss.js";
|
|
9
9
|
import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-C3tSQ3UR.js";
|
|
10
10
|
import { i as waitForPopupReposition, r as syncPopupPlacementAnimation } from "./popup-placement-animation-WlEXnS85.js";
|
|
11
11
|
import { t as popupContentAnimationStyles } from "./popup-content-animation.styles-duCg9-CH.js";
|
|
12
|
-
import "./pk-popup-
|
|
13
|
-
import { n as isPointerInsideOverlay, t as isEventInsideOverlay } from "./popup-pointer-
|
|
14
|
-
import { a as isListboxTypeToSelectKey, i as handleListboxKeyDown, n as LISTBOX_NAVIGATION_KEYS
|
|
12
|
+
import "./pk-popup-CrxxR-Hb.js";
|
|
13
|
+
import { n as isPointerInsideOverlay, t as isEventInsideOverlay } from "./popup-pointer-Ck28WdVP.js";
|
|
14
|
+
import { a as isListboxTypeToSelectKey, i as handleListboxKeyDown, n as LISTBOX_NAVIGATION_KEYS } from "./sync-listbox-separators-Ch5krDUs.js";
|
|
15
|
+
import { i as waitForPopupContentExitAnimation, n as AsyncOptionFetcher, r as syncFilteredOptions, t as matchesOptionFilter } from "./option-filter-Bc5aNNT0.js";
|
|
15
16
|
//#region src/events/pk-create.ts
|
|
16
17
|
/** Fired before a combobox creates a new option — mirrors `pk-create`. */
|
|
17
18
|
var PkCreateEvent = class extends Event {
|
|
@@ -191,7 +192,8 @@ var pkComboboxStyles = [popupContentAnimationStyles, i`
|
|
|
191
192
|
outline: none;
|
|
192
193
|
}
|
|
193
194
|
|
|
194
|
-
/* Trailing control absorbs the control's inline-end padding into its hit box
|
|
195
|
+
/* Trailing control absorbs the control's inline-end padding into its hit box,
|
|
196
|
+
with the same 4px glyph inset as pk-copy-button[slot=end]. */
|
|
195
197
|
.control > .expand-button,
|
|
196
198
|
.control > .clear-button:last-child {
|
|
197
199
|
width: calc(
|
|
@@ -199,7 +201,7 @@ var pkComboboxStyles = [popupContentAnimationStyles, i`
|
|
|
199
201
|
var(--pk-combobox-padding-inline)
|
|
200
202
|
);
|
|
201
203
|
margin-inline-start: calc(-0.5 * var(--pk-combobox-control-gap));
|
|
202
|
-
margin-inline-end: calc(-1 * var(--pk-combobox-padding-inline));
|
|
204
|
+
margin-inline-end: calc(-1 * var(--pk-combobox-padding-inline) + 4px);
|
|
203
205
|
}
|
|
204
206
|
|
|
205
207
|
.icon-button:disabled,
|
|
@@ -799,8 +801,8 @@ var PkCombobox = class PkCombobox extends PkFormAssociatedElement {
|
|
|
799
801
|
this.panelAnimated = false;
|
|
800
802
|
this.dismissRegistered = false;
|
|
801
803
|
this.panelEventTarget = null;
|
|
802
|
-
this.asyncFetchRequestId = 0;
|
|
803
804
|
this.selectedOptionMeta = null;
|
|
805
|
+
this.asyncFetcher = null;
|
|
804
806
|
this.asyncLoading = false;
|
|
805
807
|
this.asyncError = null;
|
|
806
808
|
this.handleOptionsMutation = (options = {}) => {
|
|
@@ -986,8 +988,7 @@ var PkCombobox = class PkCombobox extends PkFormAssociatedElement {
|
|
|
986
988
|
this.optionsObserver?.disconnect();
|
|
987
989
|
this.liveRegion?.destroy();
|
|
988
990
|
this.liveRegion = void 0;
|
|
989
|
-
|
|
990
|
-
this.fetchAbortController?.abort();
|
|
991
|
+
this.asyncFetcher?.cancel();
|
|
991
992
|
this.closePanel("api");
|
|
992
993
|
super.disconnectedCallback();
|
|
993
994
|
}
|
|
@@ -1063,15 +1064,8 @@ var PkCombobox = class PkCombobox extends PkFormAssociatedElement {
|
|
|
1063
1064
|
const group = option.closest("pk-option-group");
|
|
1064
1065
|
return Boolean(group?.hidden);
|
|
1065
1066
|
}
|
|
1066
|
-
defaultFilter(option, query) {
|
|
1067
|
-
const label = option.getLabel().toLowerCase();
|
|
1068
|
-
const value = option.value.toLowerCase();
|
|
1069
|
-
const searchText = (option.getSearchText?.() ?? label).toLowerCase();
|
|
1070
|
-
return label.includes(query) || value.includes(query) || searchText.includes(query);
|
|
1071
|
-
}
|
|
1072
1067
|
matchesFilter(option, query) {
|
|
1073
|
-
|
|
1074
|
-
return this.defaultFilter(option, query);
|
|
1068
|
+
return matchesOptionFilter(option, query, this.filter);
|
|
1075
1069
|
}
|
|
1076
1070
|
getFilterQuery() {
|
|
1077
1071
|
if (!this.open) return "";
|
|
@@ -1142,37 +1136,31 @@ var PkCombobox = class PkCombobox extends PkFormAssociatedElement {
|
|
|
1142
1136
|
};
|
|
1143
1137
|
}
|
|
1144
1138
|
scheduleAsyncFetch(query) {
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
console.error("Failed to load combobox options:", error);
|
|
1171
|
-
this.asyncError = "Failed to load options. Please try again.";
|
|
1172
|
-
this.renderAsyncOptionNodes([]);
|
|
1173
|
-
} finally {
|
|
1174
|
-
if (requestId === this.asyncFetchRequestId) this.asyncLoading = false;
|
|
1175
|
-
}
|
|
1139
|
+
this.ensureAsyncFetcher().schedule(query);
|
|
1140
|
+
}
|
|
1141
|
+
ensureAsyncFetcher() {
|
|
1142
|
+
if (!this.asyncFetcher) this.asyncFetcher = new AsyncOptionFetcher(() => this.fetchOptions, {
|
|
1143
|
+
errorLabel: "combobox options",
|
|
1144
|
+
onLoading: () => {
|
|
1145
|
+
this.asyncLoading = true;
|
|
1146
|
+
this.asyncError = null;
|
|
1147
|
+
},
|
|
1148
|
+
onResults: (results) => {
|
|
1149
|
+
this.renderAsyncOptionNodes(results);
|
|
1150
|
+
},
|
|
1151
|
+
onError: (message) => {
|
|
1152
|
+
this.asyncError = message;
|
|
1153
|
+
},
|
|
1154
|
+
onSettled: () => {
|
|
1155
|
+
this.asyncLoading = false;
|
|
1156
|
+
},
|
|
1157
|
+
onEmptyQuery: () => {
|
|
1158
|
+
this.asyncLoading = false;
|
|
1159
|
+
this.asyncError = null;
|
|
1160
|
+
this.renderAsyncOptionNodes(this.value && this.selectedOptionMeta ? [this.selectedOptionMeta] : []);
|
|
1161
|
+
}
|
|
1162
|
+
});
|
|
1163
|
+
return this.asyncFetcher;
|
|
1176
1164
|
}
|
|
1177
1165
|
getAsyncStatusMessage() {
|
|
1178
1166
|
if (!this.usesAsyncSearch || !this.open) return null;
|
|
@@ -1183,11 +1171,6 @@ var PkCombobox = class PkCombobox extends PkFormAssociatedElement {
|
|
|
1183
1171
|
if (this.getEnabledVisibleOptions().length === 0 && !this.shouldShowCreateOption()) return `No matches for "${query}".`;
|
|
1184
1172
|
return null;
|
|
1185
1173
|
}
|
|
1186
|
-
shouldShowAsyncEmpty() {
|
|
1187
|
-
if (!this.usesAsyncSearch || !this.open) return false;
|
|
1188
|
-
if (!this.inputValue.trim() || this.asyncLoading || this.asyncError) return false;
|
|
1189
|
-
return this.getEnabledVisibleOptions().length === 0 && !this.shouldShowCreateOption();
|
|
1190
|
-
}
|
|
1191
1174
|
isSelected(value) {
|
|
1192
1175
|
if (this.multiple) return this.values.includes(value);
|
|
1193
1176
|
return this.value === value;
|
|
@@ -1224,18 +1207,14 @@ var PkCombobox = class PkCombobox extends PkFormAssociatedElement {
|
|
|
1224
1207
|
applySelection() {
|
|
1225
1208
|
const visible = this.getVisibleOptions();
|
|
1226
1209
|
const filterQuery = this.open ? this.getFilterQuery() : "";
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
const filterEmpty = groupOptions.length > 0 && groupOptions.every((option) => option.hidden);
|
|
1236
|
-
group.toggleAttribute("data-pk-filter-empty", filterEmpty);
|
|
1237
|
-
}
|
|
1238
|
-
syncListboxSeparators(this);
|
|
1210
|
+
syncFilteredOptions({
|
|
1211
|
+
host: this,
|
|
1212
|
+
options: this.options,
|
|
1213
|
+
visible,
|
|
1214
|
+
listboxId: this.listboxId,
|
|
1215
|
+
filterQuery,
|
|
1216
|
+
isSelected: (value) => this.isSelected(value)
|
|
1217
|
+
});
|
|
1239
1218
|
this.syncValueInput();
|
|
1240
1219
|
if (this.open) {
|
|
1241
1220
|
this.syncHighlight();
|
|
@@ -1405,7 +1384,7 @@ var PkCombobox = class PkCombobox extends PkFormAssociatedElement {
|
|
|
1405
1384
|
this.unbindPanelEvents();
|
|
1406
1385
|
this.closing = true;
|
|
1407
1386
|
this.panelAnimated = false;
|
|
1408
|
-
await this.
|
|
1387
|
+
await waitForPopupContentExitAnimation(this.panelElement);
|
|
1409
1388
|
this.open = false;
|
|
1410
1389
|
this.closing = false;
|
|
1411
1390
|
this.panelAnimated = false;
|
|
@@ -1419,8 +1398,7 @@ var PkCombobox = class PkCombobox extends PkFormAssociatedElement {
|
|
|
1419
1398
|
this.unregisterDismissHandlers();
|
|
1420
1399
|
this.applySelection();
|
|
1421
1400
|
if (this.usesAsyncSearch) {
|
|
1422
|
-
|
|
1423
|
-
this.fetchAbortController?.abort();
|
|
1401
|
+
this.asyncFetcher?.cancel();
|
|
1424
1402
|
this.asyncLoading = false;
|
|
1425
1403
|
this.asyncError = null;
|
|
1426
1404
|
this.renderAsyncOptionNodes(this.selectedOptionMeta ? [this.selectedOptionMeta] : []);
|
|
@@ -1442,27 +1420,6 @@ var PkCombobox = class PkCombobox extends PkFormAssociatedElement {
|
|
|
1442
1420
|
composed: true
|
|
1443
1421
|
}));
|
|
1444
1422
|
}
|
|
1445
|
-
waitForExitAnimation() {
|
|
1446
|
-
const panel = this.panelElement;
|
|
1447
|
-
if (!panel) return Promise.resolve();
|
|
1448
|
-
return new Promise((resolve) => {
|
|
1449
|
-
let settled = false;
|
|
1450
|
-
const finish = () => {
|
|
1451
|
-
if (settled) return;
|
|
1452
|
-
settled = true;
|
|
1453
|
-
panel.removeEventListener("animationend", onAnimationEnd);
|
|
1454
|
-
window.clearTimeout(fallback);
|
|
1455
|
-
panel.classList.remove("closing");
|
|
1456
|
-
resolve();
|
|
1457
|
-
};
|
|
1458
|
-
const onAnimationEnd = (event) => {
|
|
1459
|
-
if (event.target === panel && event.animationName.startsWith("pk-popup-content-out")) finish();
|
|
1460
|
-
};
|
|
1461
|
-
panel.classList.add("closing");
|
|
1462
|
-
panel.addEventListener("animationend", onAnimationEnd);
|
|
1463
|
-
const fallback = window.setTimeout(finish, 150);
|
|
1464
|
-
});
|
|
1465
|
-
}
|
|
1466
1423
|
shouldReturnFocusToInput(source) {
|
|
1467
1424
|
return source !== "light-dismiss" && source !== "pointer-dismiss";
|
|
1468
1425
|
}
|
|
@@ -1831,7 +1788,7 @@ var PkCombobox = class PkCombobox extends PkFormAssociatedElement {
|
|
|
1831
1788
|
render() {
|
|
1832
1789
|
const visibleOptions = this.getEnabledVisibleOptions();
|
|
1833
1790
|
const showCreate = this.shouldShowCreateOption();
|
|
1834
|
-
const showEmpty = this.open &&
|
|
1791
|
+
const showEmpty = this.open && !this.usesAsyncSearch && visibleOptions.length === 0 && !showCreate;
|
|
1835
1792
|
const asyncStatus = this.getAsyncStatusMessage();
|
|
1836
1793
|
const createQuery = this.inputValue.trim();
|
|
1837
1794
|
return b`
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { d as registerDismissible, f as unregisterDismissible, n as uniqueId, u as isTopDismissible } from "./pk-a11y-CjB4-U-R.js";
|
|
2
2
|
import { a as o, c as r, f as A, i as e, l as n, m as i, p as b, s as e$1, u as customElement } from "./lit-DpLik9Rf.js";
|
|
3
|
-
import { c as __decorate, i as PkFormAssociatedElement, n as formControlStyles, s as iconStyles } from "./pk-base-
|
|
4
|
-
import {
|
|
3
|
+
import { c as __decorate, i as PkFormAssociatedElement, n as formControlStyles, s as iconStyles } from "./pk-base-CyzwylQ7.js";
|
|
4
|
+
import { X as xmark, p as calendar } from "./svg-Bz-bXZn7.js";
|
|
5
5
|
import { t as MirrorValidator } from "./mirror-validator-C5XrXPaq.js";
|
|
6
6
|
import { t as RequiredValidator } from "./required-validator-0XwZtX9k.js";
|
|
7
7
|
import { t as HasSlotController } from "./has-slot-BGJeJdHr.js";
|
|
8
8
|
import { t as PkClearEvent } from "./pk-clear-BMZUzwDt.js";
|
|
9
9
|
import { n as readLegacyInstructions } from "./field-labels-D3lKQ2nq.js";
|
|
10
|
-
import { n as renderIconHtml } from "./render-
|
|
10
|
+
import { n as renderIconHtml } from "./render-Bnzcxfss.js";
|
|
11
11
|
import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-C3tSQ3UR.js";
|
|
12
12
|
import { i as waitForPopupReposition } from "./popup-placement-animation-WlEXnS85.js";
|
|
13
|
-
import "./pk-popup-
|
|
14
|
-
import { n as isPointerInsideOverlay } from "./popup-pointer-
|
|
15
|
-
import { a as parseIsoDate, i as parseDateList, n as coerceToDate, o as parseRange, r as formatIsoDate } from "./pk-calendar-
|
|
13
|
+
import "./pk-popup-CrxxR-Hb.js";
|
|
14
|
+
import { n as isPointerInsideOverlay } from "./popup-pointer-Ck28WdVP.js";
|
|
15
|
+
import { a as parseIsoDate, i as parseDateList, n as coerceToDate, o as parseRange, r as formatIsoDate } from "./pk-calendar-BrF8i3dW.js";
|
|
16
16
|
//#region src/utils/host-date.ts
|
|
17
17
|
function getCraft() {
|
|
18
18
|
return globalThis.Craft;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as unlockBodyScrolling, d as registerDismissible, f as unregisterDismissible, o as lockBodyScrolling, u as isTopDismissible } from "./pk-a11y-CjB4-U-R.js";
|
|
2
2
|
import { a as o, c as r, f as A, i as e, l as n, m as i, p as b, s as e$1, u as customElement } from "./lit-DpLik9Rf.js";
|
|
3
|
-
import { c as __decorate, l as PkElement } from "./pk-base-
|
|
4
|
-
import {
|
|
5
|
-
import { n as renderIconHtml } from "./render-
|
|
3
|
+
import { c as __decorate, l as PkElement } from "./pk-base-CyzwylQ7.js";
|
|
4
|
+
import { X as xmark } from "./svg-Bz-bXZn7.js";
|
|
5
|
+
import { n as renderIconHtml } from "./render-Bnzcxfss.js";
|
|
6
6
|
import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-C3tSQ3UR.js";
|
|
7
7
|
import { t as animateWithClass } from "./animate-with-class-DT0jwaR_.js";
|
|
8
8
|
//#region src/utils/craft-host-modal.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as o, c as r, f as A, l as n, m as i, p as b, s as e, u as customElement } from "./lit-DpLik9Rf.js";
|
|
2
|
-
import { c as __decorate, l as PkElement } from "./pk-base-
|
|
3
|
-
import { _ as chevronRight, m as check } from "./svg-
|
|
2
|
+
import { c as __decorate, l as PkElement } from "./pk-base-CyzwylQ7.js";
|
|
3
|
+
import { _ as chevronRight, m as check } from "./svg-Bz-bXZn7.js";
|
|
4
4
|
import { t as HasSlotController } from "./has-slot-BGJeJdHr.js";
|
|
5
|
-
import { n as renderIconHtml } from "./render-
|
|
5
|
+
import { n as renderIconHtml } from "./render-Bnzcxfss.js";
|
|
6
6
|
import { i as waitForPopupReposition, r as syncPopupPlacementAnimation } from "./popup-placement-animation-WlEXnS85.js";
|
|
7
7
|
import { t as popupContentAnimationStyles } from "./popup-content-animation.styles-duCg9-CH.js";
|
|
8
8
|
//#region src/components/dropdown-menu/dropdown-menu-size.styles.ts
|
|
@@ -306,7 +306,9 @@ var pkDropdownItemStyles = [
|
|
|
306
306
|
.submenu-panel {
|
|
307
307
|
width: max-content;
|
|
308
308
|
min-width: 8rem;
|
|
309
|
-
|
|
309
|
+
max-height: var(--pk-popup-available-height, calc(100dvh - 20px));
|
|
310
|
+
overflow: auto;
|
|
311
|
+
overscroll-behavior: contain;
|
|
310
312
|
padding: 4px 0;
|
|
311
313
|
border-radius: var(--pk-radius-md);
|
|
312
314
|
background: var(--pk-color-white);
|
|
@@ -489,9 +491,9 @@ var PkDropdownItem = class PkDropdownItem extends PkElement {
|
|
|
489
491
|
<slot name="start"></slot>
|
|
490
492
|
<slot name="prefix"></slot>
|
|
491
493
|
</span>
|
|
492
|
-
<span class="label"><slot></slot></span>
|
|
494
|
+
<span part="label" class="label"><slot></slot></span>
|
|
493
495
|
<span class="details"><slot name="details"></slot></span>
|
|
494
|
-
${showCheck ? b`<span class="check" aria-hidden="true">${o(CHECK_ICON)}</span>` : A}
|
|
496
|
+
${showCheck ? b`<span part="check" class="check" aria-hidden="true">${o(CHECK_ICON)}</span>` : A}
|
|
495
497
|
${hasSubmenu ? b`<span class="submenu-icon" aria-hidden="true">${o(SUBMENU_ICON)}</span>` : A}
|
|
496
498
|
</button>
|
|
497
499
|
${hasSubmenu ? b`
|
|
@@ -503,6 +505,8 @@ var PkDropdownItem = class PkDropdownItem extends PkElement {
|
|
|
503
505
|
.skidding=${-4}
|
|
504
506
|
flip
|
|
505
507
|
shift
|
|
508
|
+
auto-size="vertical"
|
|
509
|
+
.autoSizePadding=${10}
|
|
506
510
|
hover-bridge
|
|
507
511
|
style="--pk-popup-z-index: 1001"
|
|
508
512
|
>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { m as i, p as b, u as customElement } from "./lit-DpLik9Rf.js";
|
|
2
|
+
import { c as __decorate, l as PkElement } from "./pk-base-CyzwylQ7.js";
|
|
3
|
+
//#region src/components/dropdown-menu/pk-dropdown-label.styles.ts
|
|
4
|
+
var pkDropdownLabelStyles = i`
|
|
5
|
+
@layer pk-component {
|
|
6
|
+
:host {
|
|
7
|
+
display: block;
|
|
8
|
+
/*
|
|
9
|
+
* Slotted label copy inherits through the flat tree from this host
|
|
10
|
+
* when page metrics would otherwise leak via font:inherit chains.
|
|
11
|
+
*/
|
|
12
|
+
font-size: var(--pk-dropdown-label-font-size, 13px);
|
|
13
|
+
line-height: 1.3;
|
|
14
|
+
color: var(--pk-color-slate-700, rgba(96, 125, 159, 0.7));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Match v1 DropdownMenuLabel — text-slate-700, regular weight (not medium). */
|
|
18
|
+
.label {
|
|
19
|
+
margin: 0;
|
|
20
|
+
padding-block-start: 6px;
|
|
21
|
+
padding-block-end: 4px;
|
|
22
|
+
padding-inline: var(--pk-dropdown-label-padding-inline, 12px);
|
|
23
|
+
color: inherit;
|
|
24
|
+
font: inherit;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
user-select: none;
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/dropdown-menu/pk-dropdown-label.ts
|
|
33
|
+
var PkDropdownLabel = class PkDropdownLabel extends PkElement {
|
|
34
|
+
static {
|
|
35
|
+
this.styles = pkDropdownLabelStyles;
|
|
36
|
+
}
|
|
37
|
+
connectedCallback() {
|
|
38
|
+
super.connectedCallback();
|
|
39
|
+
this.setAttribute("role", "presentation");
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
return b`
|
|
43
|
+
<div part="label" class="label">
|
|
44
|
+
<slot></slot>
|
|
45
|
+
</div>
|
|
46
|
+
`;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
PkDropdownLabel = __decorate([customElement("pk-dropdown-label")], PkDropdownLabel);
|
|
50
|
+
//#endregion
|
|
51
|
+
export { PkDropdownLabel as t };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { d as registerDismissible, f as unregisterDismissible, r as activeElements, u as isTopDismissible } from "./pk-a11y-CjB4-U-R.js";
|
|
2
2
|
import { l as n, m as i, p as b, s as e, u as customElement } from "./lit-DpLik9Rf.js";
|
|
3
|
-
import { c as __decorate, l as PkElement } from "./pk-base-
|
|
3
|
+
import { c as __decorate, l as PkElement } from "./pk-base-CyzwylQ7.js";
|
|
4
4
|
import { r as buttonGroupCornerRoleStyles } from "./button-group-item.styles-CsBQ3Cyh.js";
|
|
5
5
|
import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-C3tSQ3UR.js";
|
|
6
6
|
import { t as animateWithClass } from "./animate-with-class-DT0jwaR_.js";
|
|
7
7
|
import { i as waitForPopupReposition } from "./popup-placement-animation-WlEXnS85.js";
|
|
8
|
-
import { n as dropdownMenuHostSizeStyles, r as dropdownMenuPanelSizeStyles, t as PkDropdownItem } from "./pk-dropdown-item-
|
|
9
|
-
import { n as resolveElementById } from "./pk-popup-
|
|
8
|
+
import { n as dropdownMenuHostSizeStyles, r as dropdownMenuPanelSizeStyles, t as PkDropdownItem } from "./pk-dropdown-item-D8RrwjxL.js";
|
|
9
|
+
import { n as resolveElementById } from "./pk-popup-CrxxR-Hb.js";
|
|
10
10
|
//#region src/components/dropdown-menu/pk-dropdown-menu.styles.ts
|
|
11
11
|
/**
|
|
12
12
|
* Dropdown panel motion — `pk-dropdown` scale+fade, with transform
|
|
@@ -78,8 +78,10 @@ var pkDropdownMenuStyles = [
|
|
|
78
78
|
flex-direction: column;
|
|
79
79
|
width: max-content;
|
|
80
80
|
min-width: 8rem;
|
|
81
|
+
max-height: var(--pk-popup-available-height, calc(100dvh - 20px));
|
|
81
82
|
margin: 0;
|
|
82
83
|
overflow: auto;
|
|
84
|
+
overscroll-behavior: contain;
|
|
83
85
|
padding: 4px 0;
|
|
84
86
|
border: 0;
|
|
85
87
|
border-radius: var(--pk-radius-md);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-CzwdidQP.js";
|
|
2
2
|
import { n as uniqueId } from "./pk-a11y-CjB4-U-R.js";
|
|
3
3
|
import { f as A, i as e, l as n, m as i, o, p as b, s as e$1, u as customElement } from "./lit-DpLik9Rf.js";
|
|
4
|
-
import { c as __decorate, l as PkElement, n as formControlStyles, t as inlineMarkdownStyles } from "./pk-base-
|
|
5
|
-
import {
|
|
4
|
+
import { c as __decorate, l as PkElement, n as formControlStyles, t as inlineMarkdownStyles } from "./pk-base-CyzwylQ7.js";
|
|
5
|
+
import { J as triangleExclamation, P as lightbulb, u as asterisk } from "./svg-Bz-bXZn7.js";
|
|
6
6
|
import { t as HasSlotController } from "./has-slot-BGJeJdHr.js";
|
|
7
|
-
import { t as createIconElement } from "./render-
|
|
7
|
+
import { t as createIconElement } from "./render-Bnzcxfss.js";
|
|
8
8
|
//#region src/icons/translation-icon.ts
|
|
9
9
|
var TRANSLATION_ICON_PATH = "M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l208 0 32 0 16 0 256 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L320 64l-16 0-32 0L64 64zm512 48c8.8 0 16 7.2 16 16l0 256c0 8.8-7.2 16-16 16l-256 0 0-288 256 0zM178.3 175.9l64 144c4.5 10.1-.1 21.9-10.2 26.4s-21.9-.1-26.4-10.2L196.8 316l-73.6 0-8.9 20.1c-4.5 10.1-16.3 14.6-26.4 10.2s-14.6-16.3-10.2-26.4l64-144c3.2-7.2 10.4-11.9 18.3-11.9s15.1 4.7 18.3 11.9zM179 276l-19-42.8L141 276l38 0zM456 164c-11 0-20 9-20 20l0 4-52 0c-11 0-20 9-20 20s9 20 20 20l72 0 35.1 0c-7.3 16.7-17.4 31.9-29.8 45l-.5-.5-14.6-14.6c-7.8-7.8-20.5-7.8-28.3 0s-7.8 20.5 0 28.3L430 298.3c-5.9 3.6-12.1 6.9-18.5 9.8l-3.6 1.6c-10.1 4.5-14.6 16.3-10.2 26.4s16.3 14.6 26.4 10.2l3.6-1.6c12-5.3 23.4-11.8 34-19.4c4.3 3 8.6 5.8 13.1 8.5l18.9 11.3c9.5 5.7 21.8 2.6 27.4-6.9s2.6-21.8-6.9-27.4l-18.9-11.3c-.9-.5-1.8-1.1-2.7-1.6c17.2-18.8 30.7-40.9 39.6-65.4L534 228l2 0c11 0 20-9 20-20s-9-20-20-20l-16 0-44 0 0-4c0-11-9-20-20-20z";
|
|
10
10
|
var createTranslationIconElement = () => {
|
|
@@ -5849,7 +5849,7 @@ var PkField = class PkField extends PkElement {
|
|
|
5849
5849
|
</span>
|
|
5850
5850
|
` : A}
|
|
5851
5851
|
${this.translatable ? b`
|
|
5852
|
-
<span class="form-control__translatable"
|
|
5852
|
+
<span class="form-control__translatable">
|
|
5853
5853
|
${createTranslationIconElement()}
|
|
5854
5854
|
<span class="sr-only">Translatable</span>
|
|
5855
5855
|
</span>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as o, f as A, l as n, m as i, p as b, u as customElement } from "./lit-DpLik9Rf.js";
|
|
2
|
-
import { c as __decorate, l as PkElement } from "./pk-base-
|
|
3
|
-
import { t as iconToSvg } from "./svg-
|
|
2
|
+
import { c as __decorate, l as PkElement } from "./pk-base-CyzwylQ7.js";
|
|
3
|
+
import { t as iconToSvg } from "./svg-Bz-bXZn7.js";
|
|
4
4
|
import { i as subscribeIconRegistry, t as getIcon } from "./registry-BanyScVR.js";
|
|
5
5
|
//#region src/components/icon/pk-icon.ts
|
|
6
6
|
var PkIcon = class PkIcon extends PkElement {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as uniqueId } from "./pk-a11y-CjB4-U-R.js";
|
|
2
2
|
import { c as r, f as A, l as n, m as i, n as l, p as b, r as o, s as e, u as customElement } from "./lit-DpLik9Rf.js";
|
|
3
|
-
import { c as __decorate, i as PkFormAssociatedElement, n as formControlStyles, o as syncStandaloneControlAria } from "./pk-base-
|
|
3
|
+
import { c as __decorate, i as PkFormAssociatedElement, n as formControlStyles, o as syncStandaloneControlAria } from "./pk-base-CyzwylQ7.js";
|
|
4
4
|
import { n as buttonGroupCornerRadiusStyles, r as buttonGroupCornerRoleStyles, t as buttonGroupBorderJoinStyles } from "./button-group-item.styles-CsBQ3Cyh.js";
|
|
5
5
|
import { t as MirrorValidator } from "./mirror-validator-C5XrXPaq.js";
|
|
6
6
|
import { t as RequiredValidator } from "./required-validator-0XwZtX9k.js";
|
|
@@ -81,6 +81,15 @@ var pkInputStyles = i`
|
|
|
81
81
|
font-family: var(--pk-font-family);
|
|
82
82
|
font-size: var(--pk-font-size-base);
|
|
83
83
|
line-height: var(--pk-line-height);
|
|
84
|
+
/*
|
|
85
|
+
* Control chrome tokens — inherit into light-DOM in-control actions
|
|
86
|
+
* (e.g. pk-copy-button[slot=end]) the same way combobox/image-browser
|
|
87
|
+
* size their trailing clear/expand hit targets.
|
|
88
|
+
*/
|
|
89
|
+
--pk-input-padding-block: 6px;
|
|
90
|
+
--pk-input-padding-inline: 8px;
|
|
91
|
+
--pk-input-control-gap: 6px;
|
|
92
|
+
--pk-input-decoration-size: 0.75rem;
|
|
84
93
|
}
|
|
85
94
|
|
|
86
95
|
:host([data-pk-group-orientation]) {
|
|
@@ -166,11 +175,13 @@ var pkInputStyles = i`
|
|
|
166
175
|
/* Chrome lives on the flex shell (part=base) so slot=start/end adornments sit
|
|
167
176
|
* inside the border — same visual contract as pk-input-group / v1 InputGroup.
|
|
168
177
|
* Height is content-sized (v1): padding-block + --pk-input-control-line-height + border.
|
|
178
|
+
* Trailing actions (clear, pk-copy-button[slot=end]) stay in flex flow so long
|
|
179
|
+
* values never paint under the button — mirror combobox / image-browser.
|
|
169
180
|
*/
|
|
170
181
|
.form-control__input {
|
|
171
182
|
align-items: center;
|
|
172
|
-
gap:
|
|
173
|
-
padding-inline:
|
|
183
|
+
gap: var(--pk-input-control-gap);
|
|
184
|
+
padding-inline: var(--pk-input-padding-inline);
|
|
174
185
|
border: var(--pk-input-border);
|
|
175
186
|
border-radius: var(--pk-input-border-radius, var(--pk-radius-sm));
|
|
176
187
|
background: var(--pk-input-bg);
|
|
@@ -184,8 +195,11 @@ var pkInputStyles = i`
|
|
|
184
195
|
margin: 0;
|
|
185
196
|
color: var(--pk-color-gray-400);
|
|
186
197
|
line-height: 0;
|
|
198
|
+
align-self: stretch;
|
|
199
|
+
align-items: center;
|
|
187
200
|
}
|
|
188
201
|
|
|
202
|
+
/* Decorative glyphs only — interactive in-control actions opt out below. */
|
|
189
203
|
.form-control__start ::slotted(*),
|
|
190
204
|
.form-control__end ::slotted(*) {
|
|
191
205
|
display: block;
|
|
@@ -193,12 +207,31 @@ var pkInputStyles = i`
|
|
|
193
207
|
max-height: 1.25rem;
|
|
194
208
|
}
|
|
195
209
|
|
|
210
|
+
/* Copy (and similar) inside the field: flex-reserved space, not absolute overlay. */
|
|
211
|
+
.form-control__end:has(::slotted(pk-copy-button)) {
|
|
212
|
+
align-items: stretch;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.form-control__end ::slotted(pk-copy-button) {
|
|
216
|
+
display: inline-flex;
|
|
217
|
+
align-self: stretch;
|
|
218
|
+
align-items: stretch;
|
|
219
|
+
max-width: none;
|
|
220
|
+
max-height: none;
|
|
221
|
+
/*
|
|
222
|
+
* Pull into trailing padding like combobox expand/clear, but leave a
|
|
223
|
+
* small inset so the glyph is not tight against the field border.
|
|
224
|
+
*/
|
|
225
|
+
margin-inline-end: calc(-1 * var(--pk-input-padding-inline) + 4px);
|
|
226
|
+
margin-block: calc(-1 * var(--pk-input-padding-block));
|
|
227
|
+
}
|
|
228
|
+
|
|
196
229
|
.input {
|
|
197
230
|
display: block;
|
|
198
231
|
width: 100%;
|
|
199
232
|
margin: 0;
|
|
200
233
|
/* v1 Input default: py-1.5 + text-sm (14px / 1.25rem lh) → 34px with border. */
|
|
201
|
-
padding-block:
|
|
234
|
+
padding-block: var(--pk-input-padding-block);
|
|
202
235
|
padding-inline: 0;
|
|
203
236
|
border: 0;
|
|
204
237
|
border-radius: 0;
|
|
@@ -252,43 +285,47 @@ var pkInputStyles = i`
|
|
|
252
285
|
box-shadow: var(--pk-input-invalid-focus-shadow);
|
|
253
286
|
}
|
|
254
287
|
|
|
255
|
-
:host([size='xs'])
|
|
256
|
-
|
|
257
|
-
padding-inline: 6px;
|
|
288
|
+
:host([size='xs']) {
|
|
289
|
+
--pk-input-padding-block: 4px;
|
|
290
|
+
--pk-input-padding-inline: 6px;
|
|
291
|
+
--pk-input-control-gap: 4px;
|
|
292
|
+
--pk-input-decoration-size: 0.625rem;
|
|
258
293
|
}
|
|
259
294
|
|
|
260
295
|
:host([size='xs']) .input {
|
|
261
|
-
padding-block: 4px;
|
|
262
296
|
font-size: 11px;
|
|
263
297
|
}
|
|
264
298
|
|
|
265
|
-
:host([size='sm'])
|
|
266
|
-
|
|
267
|
-
padding-inline: 8px;
|
|
299
|
+
:host([size='sm']) {
|
|
300
|
+
--pk-input-padding-block: 4px;
|
|
301
|
+
--pk-input-padding-inline: 8px;
|
|
302
|
+
--pk-input-control-gap: 4px;
|
|
303
|
+
--pk-input-decoration-size: 0.6875rem;
|
|
268
304
|
}
|
|
269
305
|
|
|
270
306
|
:host([size='sm']) .input {
|
|
271
|
-
padding-block: 4px;
|
|
272
307
|
font-size: 12px;
|
|
273
308
|
}
|
|
274
309
|
|
|
275
|
-
:host([size='lg'])
|
|
276
|
-
|
|
277
|
-
padding-inline: 12px;
|
|
310
|
+
:host([size='lg']) {
|
|
311
|
+
--pk-input-padding-block: 8px;
|
|
312
|
+
--pk-input-padding-inline: 12px;
|
|
313
|
+
--pk-input-control-gap: 8px;
|
|
314
|
+
--pk-input-decoration-size: 0.875rem;
|
|
278
315
|
}
|
|
279
316
|
|
|
280
317
|
:host([size='lg']) .input {
|
|
281
|
-
padding-block: 8px;
|
|
282
318
|
font-size: var(--pk-font-size-base);
|
|
283
319
|
}
|
|
284
320
|
|
|
285
|
-
:host([size='xl'])
|
|
286
|
-
|
|
287
|
-
padding-inline: 16px;
|
|
321
|
+
:host([size='xl']) {
|
|
322
|
+
--pk-input-padding-block: 10px;
|
|
323
|
+
--pk-input-padding-inline: 16px;
|
|
324
|
+
--pk-input-control-gap: 8px;
|
|
325
|
+
--pk-input-decoration-size: 1rem;
|
|
288
326
|
}
|
|
289
327
|
|
|
290
328
|
:host([size='xl']) .input {
|
|
291
|
-
padding-block: 10px;
|
|
292
329
|
font-size: 16px;
|
|
293
330
|
}
|
|
294
331
|
|
|
@@ -411,15 +448,24 @@ var pkInputStyles = i`
|
|
|
411
448
|
border-bottom-width: 0;
|
|
412
449
|
}
|
|
413
450
|
|
|
451
|
+
/*
|
|
452
|
+
* Clear is a flex trailing action (not absolute). Reserves width in the
|
|
453
|
+
* control so values cannot scroll under the glyph — same contract as
|
|
454
|
+
* combobox clear/expand and image-browser clear.
|
|
455
|
+
*/
|
|
414
456
|
.clear-button {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
457
|
+
display: inline-flex;
|
|
458
|
+
flex-shrink: 0;
|
|
459
|
+
align-self: stretch;
|
|
460
|
+
align-items: center;
|
|
461
|
+
justify-content: center;
|
|
462
|
+
box-sizing: border-box;
|
|
463
|
+
width: calc(var(--pk-input-decoration-size) + var(--pk-input-padding-inline));
|
|
464
|
+
margin-block: calc(-1 * var(--pk-input-padding-block));
|
|
465
|
+
/* Match pk-copy-button[slot=end]: pull into padding but leave a 4px glyph inset. */
|
|
466
|
+
margin-inline-end: calc(-1 * var(--pk-input-padding-inline) + 4px);
|
|
467
|
+
font-size: var(--pk-input-decoration-size);
|
|
468
|
+
line-height: 1;
|
|
423
469
|
}
|
|
424
470
|
}
|
|
425
471
|
`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as A, l as n, m as i, p as b, s as e, u as customElement } from "./lit-DpLik9Rf.js";
|
|
2
|
-
import { c as __decorate, i as PkFormAssociatedElement, n as formControlStyles } from "./pk-base-
|
|
2
|
+
import { c as __decorate, i as PkFormAssociatedElement, n as formControlStyles } from "./pk-base-CyzwylQ7.js";
|
|
3
3
|
import { t as MirrorValidator } from "./mirror-validator-C5XrXPaq.js";
|
|
4
4
|
import { t as RequiredValidator } from "./required-validator-0XwZtX9k.js";
|
|
5
5
|
import { t as HasSlotController } from "./has-slot-BGJeJdHr.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as o, f as A, l as n, m as i, p as b, u as customElement } from "./lit-DpLik9Rf.js";
|
|
2
|
-
import { c as __decorate, l as PkElement } from "./pk-base-
|
|
3
|
-
import { m as check } from "./svg-
|
|
4
|
-
import { n as renderIconHtml } from "./render-
|
|
2
|
+
import { c as __decorate, l as PkElement } from "./pk-base-CyzwylQ7.js";
|
|
3
|
+
import { m as check } from "./svg-Bz-bXZn7.js";
|
|
4
|
+
import { n as renderIconHtml } from "./render-Bnzcxfss.js";
|
|
5
5
|
//#region src/utils/highlight-text.ts
|
|
6
6
|
/** Split label text into matched/unmatched segments for typeahead highlighting. */
|
|
7
7
|
function splitHighlightParts(text, search) {
|
|
@@ -168,6 +168,7 @@ var PkOption = class PkOption extends PkElement {
|
|
|
168
168
|
static {
|
|
169
169
|
this.styles = pkOptionStyles;
|
|
170
170
|
}
|
|
171
|
+
/** Focus the option’s inner control (listbox keyboard navigation). */
|
|
171
172
|
focusControl(preventScroll = true) {
|
|
172
173
|
this.shadowRoot?.querySelector(".option")?.focus({ preventScroll });
|
|
173
174
|
}
|
|
@@ -234,7 +235,7 @@ var PkOption = class PkOption extends PkElement {
|
|
|
234
235
|
" ",
|
|
235
236
|
"Escape"
|
|
236
237
|
]).has(event.key)) return;
|
|
237
|
-
const owner = this.closest("pk-select, pk-combobox");
|
|
238
|
+
const owner = this.closest("pk-select, pk-combobox, pk-autocomplete");
|
|
238
239
|
const panel = owner ? null : this.closest("[role=\"listbox\"]");
|
|
239
240
|
if (!owner && !panel) return;
|
|
240
241
|
event.preventDefault();
|