@verbb/plugin-kit-web 2.0.7 → 2.0.9
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/dist/a11y/scroll-lock.d.ts +13 -7
- package/dist/a11y/scroll-lock.d.ts.map +1 -1
- package/dist/chunks/{autoloader-DXK9MVuw.js → autoloader-hkX3zcAt.js} +2 -21
- package/dist/chunks/autoloader-hkX3zcAt.js.map +1 -0
- package/dist/chunks/{pk-combobox-DtkXaX67.js → pk-combobox-BqaSsLJb.js} +2 -2
- package/dist/chunks/{pk-combobox-DtkXaX67.js.map → pk-combobox-BqaSsLJb.js.map} +1 -1
- package/dist/chunks/{pk-dialog-DZZd1Tzb.js → pk-dialog-BXJr3iEo.js} +17 -6
- package/dist/chunks/pk-dialog-BXJr3iEo.js.map +1 -0
- package/dist/chunks/{pk-editable-table-DVqOEz3W.js → pk-editable-table-fPL8Zbbg.js} +8 -12
- package/dist/chunks/pk-editable-table-fPL8Zbbg.js.map +1 -0
- package/dist/chunks/{pk-select-odSNU1tN.js → pk-select-BPnO9qgj.js} +2 -2
- package/dist/chunks/{pk-select-odSNU1tN.js.map → pk-select-BPnO9qgj.js.map} +1 -1
- package/dist/chunks/{pk-time-picker-DtX0LtID.js → pk-time-picker-CZGr2dI2.js} +2 -2
- package/dist/chunks/{pk-time-picker-DtX0LtID.js.map → pk-time-picker-CZGr2dI2.js.map} +1 -1
- package/dist/chunks/{pk-tiptap-editor-CdoutapZ.js → pk-tiptap-editor-HemVPILE.js} +2 -2
- package/dist/chunks/{pk-tiptap-editor-CdoutapZ.js.map → pk-tiptap-editor-HemVPILE.js.map} +1 -1
- package/dist/chunks/{register-BYPBQHrq.js → register-bvWnvR5a.js} +7 -7
- package/dist/chunks/{register-BYPBQHrq.js.map → register-bvWnvR5a.js.map} +1 -1
- package/dist/chunks/scroll-lock-Bbh3Sc5g.js +160 -0
- package/dist/chunks/scroll-lock-Bbh3Sc5g.js.map +1 -0
- package/dist/components/combobox/pk-combobox.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/dialog/pk-dialog.d.ts +5 -0
- package/dist/components/dialog/pk-dialog.d.ts.map +1 -1
- package/dist/components/dialog/pk-dialog.js +1 -1
- package/dist/components/dialog/pk-dialog.styles.d.ts.map +1 -1
- package/dist/components/dialog.js +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/icon/pk-icon.d.ts.map +1 -1
- package/dist/components/icon/pk-icon.js +4 -0
- package/dist/components/icon/pk-icon.js.map +1 -1
- package/dist/components/select/pk-select.js +1 -1
- package/dist/components/select.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-editor.js +1 -1
- package/dist/components/tiptap-editor.js +1 -1
- package/dist/index.js +9 -9
- package/dist/plugin-kit.css +2 -5
- package/dist/plugin-kit.js +2 -2
- package/dist/register.js +7 -7
- package/dist/tokens.css +2 -5
- package/dist/utils/config.d.ts +2 -2
- package/dist/utils/config.d.ts.map +1 -1
- package/dist/utils/documentScrollStability.d.ts +3 -7
- package/dist/utils/documentScrollStability.d.ts.map +1 -1
- package/dist-loader/chunks/{pk-a11y-Cx5RZvhu.js → pk-a11y-CjB4-U-R.js} +61 -94
- package/dist-loader/chunks/{pk-button-CK5FZiwP.js → pk-button-Qg2Tot_-.js} +1 -1
- package/dist-loader/chunks/{pk-calendar-CoJWxcxi.js → pk-calendar-CtlUN6iw.js} +2 -2
- package/dist-loader/chunks/{pk-combobox-fXGaY4L0.js → pk-combobox-BpGW0asd.js} +3 -3
- package/dist-loader/chunks/{pk-date-picker-CE4TlRRZ.js → pk-date-picker-DPg627Ad.js} +4 -4
- package/dist-loader/chunks/{pk-dialog-CP1YT85H.js → pk-dialog-DPn2BXOq.js} +18 -7
- package/dist-loader/chunks/{pk-dropdown-item-DkZRcPJ5.js → pk-dropdown-item-CdBLgJoh.js} +2 -2
- package/dist-loader/chunks/{pk-dropdown-menu-CajQAobW.js → pk-dropdown-menu-BX4lGvGe.js} +2 -2
- package/dist-loader/chunks/{pk-field-BbKmQmTF.js → pk-field-CmPZQ86w.js} +3 -3
- package/dist-loader/chunks/{pk-input-CXE7_rTQ.js → pk-input-88DVgoVz.js} +1 -1
- package/dist-loader/chunks/{pk-option-vh8UvSAI.js → pk-option-DL4rxbo2.js} +2 -2
- package/dist-loader/chunks/{pk-select-CbmPJCx8.js → pk-select-D0Ia0Mz3.js} +3 -3
- package/dist-loader/chunks/{pk-textarea-Ch8JpP83.js → pk-textarea-LC_CPUav.js} +1 -1
- package/dist-loader/chunks/{pk-time-picker-DZljwJn9.js → pk-time-picker-CesVpPiv.js} +4 -4
- package/dist-loader/chunks/{pk-tooltip-DHiCn33o.js → pk-tooltip-DRU95AZ6.js} +1 -1
- package/dist-loader/chunks/{render-BCU9WDSk.js → render-B_9MG170.js} +1 -1
- package/dist-loader/chunks/{svg-BCGsRUz7.js → svg-_Mtb7CHx.js} +85 -29
- package/dist-loader/chunks/{tiptap.styles-CDjt6Iz4.js → tiptap.styles-gpE_nQ_B.js} +1 -1
- package/dist-loader/components/button/button.js +1 -1
- package/dist-loader/components/calendar/calendar.js +1 -1
- package/dist-loader/components/combobox/combobox.js +1 -1
- package/dist-loader/components/copy-button/copy-button.js +3 -3
- 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-menu.js +1 -1
- package/dist-loader/components/editable-table/editable-table.js +15 -19
- package/dist-loader/components/field/field.js +1 -1
- package/dist-loader/components/icon/icon.js +5 -1
- package/dist-loader/components/input/input.js +1 -1
- package/dist-loader/components/popover/popover.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/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 +1 -1
- package/dist-loader/components/tiptap/tiptap-editor.js +11 -11
- package/dist-loader/components/tiptap/tiptap-input.js +1 -1
- package/dist-loader/components/tooltip/tooltip.js +1 -1
- package/dist-loader/plugin-kit.css +2 -5
- package/dist-loader/plugin-kit.loader.js +2 -22
- package/dist-loader/tokens.css +2 -5
- package/package.json +8 -7
- package/dist/chunks/autoloader-DXK9MVuw.js.map +0 -1
- package/dist/chunks/pk-dialog-DZZd1Tzb.js.map +0 -1
- package/dist/chunks/pk-editable-table-DVqOEz3W.js.map +0 -1
- package/dist/chunks/scroll-lock-B4o9vdzJ.js +0 -193
- package/dist/chunks/scroll-lock-B4o9vdzJ.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as unlockBodyScrolling, d as registerDismissible, f as unregisterDismissible, o as lockBodyScrolling, u as isTopDismissible } from "./pk-a11y-
|
|
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 t } from "./lit-Dnn7gEi2.js";
|
|
3
3
|
import { c as __decorate, l as PkElement } from "./pk-base-BlxAYXJD.js";
|
|
4
|
-
import {
|
|
5
|
-
import { n as renderIconHtml } from "./render-
|
|
4
|
+
import { Y as xmark } from "./svg-_Mtb7CHx.js";
|
|
5
|
+
import { n as renderIconHtml } from "./render-B_9MG170.js";
|
|
6
6
|
import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-BG4QMRLw.js";
|
|
7
7
|
import { t as animateWithClass } from "./animate-with-class-B2hHgK5M.js";
|
|
8
8
|
//#region src/utils/craft-host-modal.ts
|
|
@@ -79,6 +79,11 @@ var pkDialogStyles = i`
|
|
|
79
79
|
* Controlled dialogs (no slot="trigger") — panel is top-layer / fixed while
|
|
80
80
|
* yielding. An inline-block host still sizes to the open <dialog> box in some
|
|
81
81
|
* engines and expands parents (Formie nested field cards grow a blank gap).
|
|
82
|
+
*
|
|
83
|
+
* Zero box ≠ gone from the tree: Tailwind space-y-* uses :not(:last-child) on
|
|
84
|
+
* DOM siblings, so an in-tree host still steals last-child and margins the
|
|
85
|
+
* previous sibling. Prefer flex/grid gap-* (skips out-of-flow children), or
|
|
86
|
+
* mount overlays outside the spaced stack. True light-DOM portal would also fix it.
|
|
82
87
|
*/
|
|
83
88
|
:host(:not([data-has-trigger])) {
|
|
84
89
|
position: absolute;
|
|
@@ -315,6 +320,7 @@ var PkDialog = class PkDialog extends PkElement {
|
|
|
315
320
|
this.disablePointerDismissal = false;
|
|
316
321
|
this.withoutHeader = false;
|
|
317
322
|
this.withoutBodyPadding = false;
|
|
323
|
+
this.disableScrollLock = false;
|
|
318
324
|
this.size = "default";
|
|
319
325
|
this.triggerElement = null;
|
|
320
326
|
this.previouslyFocused = null;
|
|
@@ -429,7 +435,7 @@ var PkDialog = class PkDialog extends PkElement {
|
|
|
429
435
|
if (this.open) this.show();
|
|
430
436
|
}
|
|
431
437
|
disconnectedCallback() {
|
|
432
|
-
unlockBodyScrolling(this);
|
|
438
|
+
if (!this.disableScrollLock) unlockBodyScrolling(this);
|
|
433
439
|
this.removeOpenListeners();
|
|
434
440
|
super.disconnectedCallback();
|
|
435
441
|
}
|
|
@@ -460,7 +466,7 @@ var PkDialog = class PkDialog extends PkElement {
|
|
|
460
466
|
this.previouslyFocused = document.activeElement;
|
|
461
467
|
this.open = true;
|
|
462
468
|
this.dialogElement.showModal();
|
|
463
|
-
lockBodyScrolling(this);
|
|
469
|
+
if (!this.disableScrollLock) lockBodyScrolling(this);
|
|
464
470
|
requestAnimationFrame(() => {
|
|
465
471
|
const elementToFocus = this.querySelector("[autofocus]");
|
|
466
472
|
if (elementToFocus) {
|
|
@@ -498,7 +504,7 @@ var PkDialog = class PkDialog extends PkElement {
|
|
|
498
504
|
await animateWithClass(this.dialogElement, "hide");
|
|
499
505
|
this.open = false;
|
|
500
506
|
this.dialogElement.close();
|
|
501
|
-
unlockBodyScrolling(this);
|
|
507
|
+
if (!this.disableScrollLock) unlockBodyScrolling(this);
|
|
502
508
|
const restoreFocus = this.previouslyFocused;
|
|
503
509
|
this.previouslyFocused = null;
|
|
504
510
|
if (restoreFocus?.isConnected) window.setTimeout(() => {
|
|
@@ -521,7 +527,7 @@ var PkDialog = class PkDialog extends PkElement {
|
|
|
521
527
|
this.dialogElement.close();
|
|
522
528
|
} catch {}
|
|
523
529
|
this.dialogElement?.classList.remove("hide", "show", "pulse");
|
|
524
|
-
unlockBodyScrolling(this);
|
|
530
|
+
if (!this.disableScrollLock) unlockBodyScrolling(this);
|
|
525
531
|
}
|
|
526
532
|
addOpenListeners() {
|
|
527
533
|
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
@@ -622,6 +628,11 @@ __decorate([n({
|
|
|
622
628
|
type: Boolean,
|
|
623
629
|
reflect: true
|
|
624
630
|
})], PkDialog.prototype, "withoutBodyPadding", void 0);
|
|
631
|
+
__decorate([n({
|
|
632
|
+
attribute: "disable-scroll-lock",
|
|
633
|
+
type: Boolean,
|
|
634
|
+
reflect: true
|
|
635
|
+
})], PkDialog.prototype, "disableScrollLock", void 0);
|
|
625
636
|
__decorate([n({ reflect: true })], PkDialog.prototype, "size", void 0);
|
|
626
637
|
__decorate([e$1("dialog")], PkDialog.prototype, "dialogElement", void 0);
|
|
627
638
|
__decorate([r()], PkDialog.prototype, "triggerElement", void 0);
|
|
@@ -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 t } from "./lit-Dnn7gEi2.js";
|
|
2
2
|
import { c as __decorate, l as PkElement } from "./pk-base-BlxAYXJD.js";
|
|
3
|
-
import { _ as chevronRight, m as check } from "./svg-
|
|
3
|
+
import { _ as chevronRight, m as check } from "./svg-_Mtb7CHx.js";
|
|
4
4
|
import { t as HasSlotController } from "./has-slot-BZDcCpf9.js";
|
|
5
|
-
import { n as renderIconHtml } from "./render-
|
|
5
|
+
import { n as renderIconHtml } from "./render-B_9MG170.js";
|
|
6
6
|
import { i as waitForPopupReposition, r as syncPopupPlacementAnimation } from "./popup-placement-animation-BPjq650B.js";
|
|
7
7
|
import { t as popupContentAnimationStyles } from "./popup-content-animation.styles-C9ffC35f.js";
|
|
8
8
|
//#region src/components/dropdown-menu/dropdown-menu-size.styles.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { d as registerDismissible, f as unregisterDismissible, r as activeElements, u as isTopDismissible } from "./pk-a11y-
|
|
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 t } from "./lit-Dnn7gEi2.js";
|
|
3
3
|
import { c as __decorate, l as PkElement } from "./pk-base-BlxAYXJD.js";
|
|
4
4
|
import { r as buttonGroupCornerRoleStyles } from "./button-group-item.styles-BNc-ksl1.js";
|
|
5
5
|
import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-BG4QMRLw.js";
|
|
6
6
|
import { t as animateWithClass } from "./animate-with-class-B2hHgK5M.js";
|
|
7
7
|
import { i as waitForPopupReposition } from "./popup-placement-animation-BPjq650B.js";
|
|
8
|
-
import { n as dropdownMenuHostSizeStyles, r as dropdownMenuPanelSizeStyles, t as PkDropdownItem } from "./pk-dropdown-item-
|
|
8
|
+
import { n as dropdownMenuHostSizeStyles, r as dropdownMenuPanelSizeStyles, t as PkDropdownItem } from "./pk-dropdown-item-CdBLgJoh.js";
|
|
9
9
|
import { n as resolveElementById } from "./pk-popup-BYFbKaHH.js";
|
|
10
10
|
//#region src/components/dropdown-menu/pk-dropdown-menu.styles.ts
|
|
11
11
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-CzwdidQP.js";
|
|
2
|
-
import { n as uniqueId } from "./pk-a11y-
|
|
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 t } from "./lit-Dnn7gEi2.js";
|
|
4
4
|
import { c as __decorate, l as PkElement, n as formControlStyles, t as inlineMarkdownStyles } from "./pk-base-BlxAYXJD.js";
|
|
5
|
-
import {
|
|
5
|
+
import { P as lightbulb, q as triangleExclamation, u as asterisk } from "./svg-_Mtb7CHx.js";
|
|
6
6
|
import { t as HasSlotController } from "./has-slot-BZDcCpf9.js";
|
|
7
|
-
import { t as createIconElement } from "./render-
|
|
7
|
+
import { t as createIconElement } from "./render-B_9MG170.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 = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as uniqueId } from "./pk-a11y-
|
|
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 t } from "./lit-Dnn7gEi2.js";
|
|
3
3
|
import { c as __decorate, i as PkFormAssociatedElement, n as formControlStyles, o as syncStandaloneControlAria } from "./pk-base-BlxAYXJD.js";
|
|
4
4
|
import { n as buttonGroupCornerRadiusStyles, r as buttonGroupCornerRoleStyles, t as buttonGroupBorderJoinStyles } from "./button-group-item.styles-BNc-ksl1.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 t } from "./lit-Dnn7gEi2.js";
|
|
2
2
|
import { c as __decorate, l as PkElement } from "./pk-base-BlxAYXJD.js";
|
|
3
|
-
import { m as check } from "./svg-
|
|
4
|
-
import { n as renderIconHtml } from "./render-
|
|
3
|
+
import { m as check } from "./svg-_Mtb7CHx.js";
|
|
4
|
+
import { n as renderIconHtml } from "./render-B_9MG170.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) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { d as registerDismissible, f as unregisterDismissible, n as uniqueId, s as scrollIntoView, u as isTopDismissible } from "./pk-a11y-
|
|
1
|
+
import { d as registerDismissible, f as unregisterDismissible, n as uniqueId, s as scrollIntoView, 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 t } from "./lit-Dnn7gEi2.js";
|
|
3
3
|
import { c as __decorate, i as PkFormAssociatedElement, s as iconStyles } from "./pk-base-BlxAYXJD.js";
|
|
4
|
-
import { h as chevronDown } from "./svg-
|
|
4
|
+
import { h as chevronDown } from "./svg-_Mtb7CHx.js";
|
|
5
5
|
import { t as MirrorValidator } from "./mirror-validator-DEz3BsbN.js";
|
|
6
6
|
import { t as HasSlotController } from "./has-slot-BZDcCpf9.js";
|
|
7
7
|
import { t as PkClearEvent } from "./pk-clear-BRS8vkV-.js";
|
|
8
|
-
import { n as renderIconHtml } from "./render-
|
|
8
|
+
import { n as renderIconHtml } from "./render-B_9MG170.js";
|
|
9
9
|
import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-BG4QMRLw.js";
|
|
10
10
|
import { i as waitForPopupReposition, r as syncPopupPlacementAnimation } from "./popup-placement-animation-BPjq650B.js";
|
|
11
11
|
import { t as popupContentAnimationStyles } from "./popup-content-animation.styles-C9ffC35f.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as uniqueId } from "./pk-a11y-
|
|
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 t } from "./lit-Dnn7gEi2.js";
|
|
3
3
|
import { c as __decorate, i as PkFormAssociatedElement, n as formControlStyles, o as syncStandaloneControlAria } from "./pk-base-BlxAYXJD.js";
|
|
4
4
|
import { t as MirrorValidator } from "./mirror-validator-DEz3BsbN.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { m as i, u as t } from "./lit-Dnn7gEi2.js";
|
|
2
2
|
import { c as __decorate } from "./pk-base-BlxAYXJD.js";
|
|
3
|
-
import { v as clock } from "./svg-
|
|
4
|
-
import { t as createIconElement } from "./render-
|
|
5
|
-
import "./pk-option-
|
|
6
|
-
import { n as pkSelectStyles, t as PkSelect } from "./pk-select-
|
|
3
|
+
import { v as clock } from "./svg-_Mtb7CHx.js";
|
|
4
|
+
import { t as createIconElement } from "./render-B_9MG170.js";
|
|
5
|
+
import "./pk-option-DL4rxbo2.js";
|
|
6
|
+
import { n as pkSelectStyles, t as PkSelect } from "./pk-select-D0Ia0Mz3.js";
|
|
7
7
|
//#region src/utils/time-options.ts
|
|
8
8
|
var timeOptionsCache = null;
|
|
9
9
|
function resolveTimepickerOptions() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as uniqueId } from "./pk-a11y-
|
|
1
|
+
import { n as uniqueId } from "./pk-a11y-CjB4-U-R.js";
|
|
2
2
|
import { c as r, f as A, i as e, l as n, m as i, p as b, s as e$1, u as t } from "./lit-Dnn7gEi2.js";
|
|
3
3
|
import { c as __decorate, l as PkElement } from "./pk-base-BlxAYXJD.js";
|
|
4
4
|
import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-BG4QMRLw.js";
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
//#region ../plugin-kit-icons/dist/icons.js
|
|
2
|
-
var add = {
|
|
3
|
-
width: 448,
|
|
4
|
-
height: 512,
|
|
5
|
-
path: "M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"
|
|
6
|
-
};
|
|
7
2
|
var alignCenter = {
|
|
8
3
|
width: 448,
|
|
9
4
|
height: 512,
|
|
@@ -119,6 +114,21 @@ var circle = {
|
|
|
119
114
|
height: 512,
|
|
120
115
|
path: "M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"
|
|
121
116
|
};
|
|
117
|
+
var circleCheck = {
|
|
118
|
+
width: 512,
|
|
119
|
+
height: 512,
|
|
120
|
+
path: "M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zM374 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L221.1 315.2 169 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.8 7.5 18.8 7s13.4-4.1 17.5-9.8L379.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z"
|
|
121
|
+
};
|
|
122
|
+
var circleExclamation = {
|
|
123
|
+
width: 512,
|
|
124
|
+
height: 512,
|
|
125
|
+
path: "M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-192a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.6 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"
|
|
126
|
+
};
|
|
127
|
+
var circleInfo = {
|
|
128
|
+
width: 512,
|
|
129
|
+
height: 512,
|
|
130
|
+
path: "M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"
|
|
131
|
+
};
|
|
122
132
|
var clipboard = {
|
|
123
133
|
width: 384,
|
|
124
134
|
height: 512,
|
|
@@ -169,10 +179,25 @@ var flagCheckered = {
|
|
|
169
179
|
height: 512,
|
|
170
180
|
path: "M32 0C49.7 0 64 14.3 64 32l0 16 69-17.2c38.1-9.5 78.3-5.1 113.5 12.5 46.3 23.2 100.8 23.2 147.1 0l9.6-4.8C423.8 28.1 448 43.1 448 66.1l0 279.7c0 13.3-8.3 25.3-20.8 30l-34.7 13c-46.2 17.3-97.6 14.6-141.7-7.4-37.9-19-81.4-23.7-122.5-13.4L64 384 64 480c0 17.7-14.3 32-32 32S0 497.7 0 480L0 32C0 14.3 14.3 0 32 0zM64 187.1l64-13.9 0 65.5-64 13.9 0 65.5 48.8-12.2c5.1-1.3 10.1-2.4 15.2-3.3l0-63.9 38.9-8.4c8.3-1.8 16.7-2.5 25.1-2.1l0-64c13.6 .4 27.2 2.6 40.4 6.4l23.6 6.9 0 66.7-41.7-12.3c-7.3-2.1-14.8-3.4-22.3-3.8l0 71.4c21.8 1.9 43.3 6.7 64 14.4l0-69.8 22.7 6.7c13.5 4 27.3 6.4 41.3 7.4l0-64.2c-7.8-.8-15.6-2.3-23.2-4.5l-40.8-12 0-62c-13-3.8-25.8-8.8-38.2-15-8.2-4.1-16.9-7-25.8-8.8l0 72.4c-13-.4-26 .8-38.7 3.6l-25.3 5.5 0-75.2-64 16 0 73.1zM320 335.7c16.8 1.5 33.9-.7 50-6.8l14-5.2 0-71.7-7.9 1.8c-18.4 4.3-37.3 5.7-56.1 4.5l0 77.4zm64-149.4l0-70.8c-20.9 6.1-42.4 9.1-64 9.1l0 69.4c13.9 1.4 28 .5 41.7-2.6l22.3-5.2z"
|
|
171
181
|
};
|
|
172
|
-
|
|
182
|
+
/**
|
|
183
|
+
* Craft CP reorder handle (`data-icon="move"` / custom diamond).
|
|
184
|
+
* Four-dot diamond — distinct from `grip-dots` / `grip-dots-vertical`.
|
|
185
|
+
* Prefer for structure/table drag handles.
|
|
186
|
+
*/
|
|
187
|
+
var gripMove = {
|
|
188
|
+
width: 448,
|
|
189
|
+
height: 512,
|
|
190
|
+
path: "M71.3 295.6c-21.9-21.9-21.9-57.3 0-79.2s57.3-21.9 79.2 0 21.9 57.3 0 79.2s-57.4 21.9-79.2 0zM184.4 182.5c-21.9-21.9-21.9-57.3 0-79.2s57.3-21.9 79.2 0 21.9 57.3 0 79.2-57.3 21.8-79.2 0zm0 147c21.9-21.9 57.3-21.9 79.2 0s21.9 57.3 0 79.2s-57.3 21.9-79.2 0c-21.9-21.8-21.9-57.3 0-79.2zM297.5 216.4c21.9-21.9 57.3-21.9 79.2 0s21.9 57.3 0 79.2s-57.3 21.9-79.2 0c-21.8-21.9-21.8-57.3 0-79.2z"
|
|
191
|
+
};
|
|
192
|
+
var gripDots = {
|
|
173
193
|
width: 512,
|
|
174
194
|
height: 512,
|
|
175
|
-
path: "
|
|
195
|
+
path: "M64 224a64 64 0 1 1 0-128 64 64 0 1 1 0 128zM256 96a64 64 0 1 1 0 128 64 64 0 1 1 0-128zm192 0a64 64 0 1 1 0 128 64 64 0 1 1 0-128zm0 192a64 64 0 1 1 0 128 64 64 0 1 1 0-128zM256 416a64 64 0 1 1 0-128 64 64 0 1 1 0 128zM64 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"
|
|
196
|
+
};
|
|
197
|
+
var gripDotsVertical = {
|
|
198
|
+
width: 320,
|
|
199
|
+
height: 512,
|
|
200
|
+
path: "M128 64A64 64 0 1 0 0 64 64 64 0 1 0 128 64zm0 192a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zM0 448c0 35.3 28.7 64 64 64s64-28.7 64-64-28.7-64-64-64-64 28.7-64 64zM320 64a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zM192 256a64 64 0 1 0 128 0 64 64 0 1 0 -128 0zM320 448c0-35.3-28.7-64-64-64s-64 28.7-64 64 28.7 64 64 64 64-28.7 64-64z"
|
|
176
201
|
};
|
|
177
202
|
var h1 = {
|
|
178
203
|
width: 512,
|
|
@@ -229,6 +254,11 @@ var link = {
|
|
|
229
254
|
height: 512,
|
|
230
255
|
path: "M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"
|
|
231
256
|
};
|
|
257
|
+
var lock = {
|
|
258
|
+
width: 384,
|
|
259
|
+
height: 512,
|
|
260
|
+
path: "M128 96l0 64 128 0 0-64c0-35.3-28.7-64-64-64s-64 28.7-64 64zM64 160l0-64C64 25.3 121.3-32 192-32S320 25.3 320 96l0 64c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"
|
|
261
|
+
};
|
|
232
262
|
var list = {
|
|
233
263
|
width: 512,
|
|
234
264
|
height: 512,
|
|
@@ -250,14 +280,14 @@ var minus = {
|
|
|
250
280
|
path: "M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"
|
|
251
281
|
};
|
|
252
282
|
var heading = {
|
|
253
|
-
width:
|
|
254
|
-
height:
|
|
255
|
-
path: "
|
|
283
|
+
width: 448,
|
|
284
|
+
height: 512,
|
|
285
|
+
path: "M0 64C0 46.3 14.3 32 32 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-16 0 0 112 224 0 0-112-16 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-16 0 0 320 16 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l16 0 0-144-224 0 0 144 16 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l16 0 0-320-16 0C14.3 96 0 81.7 0 64z"
|
|
256
286
|
};
|
|
257
287
|
var paragraph = {
|
|
258
|
-
width:
|
|
259
|
-
height:
|
|
260
|
-
path: "
|
|
288
|
+
width: 448,
|
|
289
|
+
height: 512,
|
|
290
|
+
path: "M160 0L416 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0 0 416c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-416-48 0 0 416c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-160-48 0C71.6 320 0 248.4 0 160S71.6 0 160 0z"
|
|
261
291
|
};
|
|
262
292
|
var pen = {
|
|
263
293
|
width: 512,
|
|
@@ -269,17 +299,23 @@ var plus = {
|
|
|
269
299
|
height: 512,
|
|
270
300
|
path: "M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"
|
|
271
301
|
};
|
|
272
|
-
var
|
|
302
|
+
var circlePlus = {
|
|
273
303
|
width: 512,
|
|
274
304
|
height: 512,
|
|
275
|
-
path: "M256
|
|
305
|
+
path: "M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM232 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"
|
|
276
306
|
};
|
|
277
307
|
var quoteRight = {
|
|
278
308
|
width: 448,
|
|
279
309
|
height: 512,
|
|
280
310
|
path: "M448 296c0 66.3-53.7 120-120 120l-8 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l8 0c30.9 0 56-25.1 56-56l0-8-64 0c-35.3 0-64-28.7-64-64l0-64c0-35.3 28.7-64 64-64l64 0c35.3 0 64 28.7 64 64l0 136zm-256 0c0 66.3-53.7 120-120 120l-8 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l8 0c30.9 0 56-25.1 56-56l0-8-64 0c-35.3 0-64-28.7-64-64l0-64c0-35.3 28.7-64 64-64l64 0c35.3 0 64 28.7 64 64l0 136z"
|
|
281
311
|
};
|
|
282
|
-
|
|
312
|
+
/** Dual circular arrows for reload / refresh. Prefer over single-arrow `arrow-rotate-*`. */
|
|
313
|
+
var arrowsRotate = {
|
|
314
|
+
width: 512,
|
|
315
|
+
height: 512,
|
|
316
|
+
path: "M65.9 228.5c13.3-93 93.4-164.5 190.1-164.5 53 0 101 21.5 135.8 56.2 .2 .2 .4 .4 .6 .6l7.6 7.2-47.9 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 53.4-11.3-10.7C390.5 28.6 326.5 0 256 0 127 0 20.3 95.4 2.6 219.5 .1 237 12.2 253.2 29.7 255.7s33.7-9.7 36.2-27.1zm443.5 64c2.5-17.5-9.7-33.7-27.1-36.2s-33.7 9.7-36.2 27.1c-13.3 93-93.4 164.5-190.1 164.5-53 0-101-21.5-135.8-56.2-.2-.2-.4-.4-.6-.6l-7.6-7.2 47.9 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 320c-8.5 0-16.7 3.4-22.7 9.5S-.1 343.7 0 352.3l1 127c.1 17.7 14.6 31.9 32.3 31.7S65.2 496.4 65 478.7l-.4-51.5 10.7 10.1c46.3 46.1 110.2 74.7 180.7 74.7 129 0 235.7-95.4 253.4-219.5z"
|
|
317
|
+
};
|
|
318
|
+
var magnifyingGlass = {
|
|
283
319
|
width: 512,
|
|
284
320
|
height: 512,
|
|
285
321
|
path: "M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"
|
|
@@ -289,6 +325,11 @@ var share = {
|
|
|
289
325
|
height: 512,
|
|
290
326
|
path: "M307.8 18.4c-12 5-19.8 16.6-19.8 29.6l0 80-112 0c-97.2 0-176 78.8-176 176 0 113.3 81.5 163.9 100.2 174.1 2.5 1.4 5.3 1.9 8.1 1.9 10.9 0 19.7-8.9 19.7-19.7 0-7.5-4.3-14.4-9.8-19.5-9.4-8.8-22.2-26.4-22.2-56.7 0-53 43-96 96-96l96 0 0 80c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-9.2-9.2-22.9-11.9-34.9-6.9z"
|
|
291
327
|
};
|
|
328
|
+
var sliders = {
|
|
329
|
+
width: 512,
|
|
330
|
+
height: 512,
|
|
331
|
+
path: "M32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l86.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 128c17.7 0 32-14.3 32-32s-14.3-32-32-32L265.3 64C253 35.7 224.8 16 192 16s-61 19.7-73.3 48L32 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l246.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48l54.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-54.7 0c-12.3-28.3-40.5-48-73.3-48s-61 19.7-73.3 48L32 224zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l54.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-246.7 0c-12.3-28.3-40.5-48-73.3-48s-61 19.7-73.3 48L32 384z"
|
|
332
|
+
};
|
|
292
333
|
var strikethrough = {
|
|
293
334
|
width: 512,
|
|
294
335
|
height: 512,
|
|
@@ -309,11 +350,6 @@ var table = {
|
|
|
309
350
|
height: 512,
|
|
310
351
|
path: "M384 32c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64l-320 0-6.5-.3C25.2 476.4 0 449.1 0 416L0 96C0 60.7 28.7 32 64 32l320 0zM64 320l0 96 128 0 0-96-128 0zm192 0l0 96 128 0 0-96-128 0zM64 256l128 0 0-96-128 0 0 96zm192 0l128 0 0-96-128 0 0 96z"
|
|
311
352
|
};
|
|
312
|
-
var tableRegular = {
|
|
313
|
-
width: 448,
|
|
314
|
-
height: 512,
|
|
315
|
-
path: "M384 32c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64l-320 0-6.5-.3C25.2 476.4 0 449.1 0 416L0 96C0 60.7 28.7 32 64 32l320 0zM48 312l0 104c0 8.8 7.2 16 16 16l136 0 0-120-152 0zm200 0l0 120 136 0c8.8 0 16-7.2 16-16l0-104-152 0zM48 264l152 0 0-104-152 0 0 104zm200 0l152 0 0-104-152 0 0 104z"
|
|
316
|
-
};
|
|
317
353
|
var textSlash = {
|
|
318
354
|
width: 576,
|
|
319
355
|
height: 512,
|
|
@@ -345,7 +381,6 @@ var gear = {
|
|
|
345
381
|
path: "M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 336a80 80 0 1 0 -.6-160 80 80 0 1 0 .6 160z"
|
|
346
382
|
};
|
|
347
383
|
var icons = {
|
|
348
|
-
add,
|
|
349
384
|
alignCenter,
|
|
350
385
|
alignJustify,
|
|
351
386
|
alignLeft,
|
|
@@ -369,6 +404,9 @@ var icons = {
|
|
|
369
404
|
chevronRight,
|
|
370
405
|
chevronUp,
|
|
371
406
|
circle,
|
|
407
|
+
circleCheck,
|
|
408
|
+
circleExclamation,
|
|
409
|
+
circleInfo,
|
|
372
410
|
clipboard,
|
|
373
411
|
clock,
|
|
374
412
|
clone,
|
|
@@ -381,7 +419,9 @@ var icons = {
|
|
|
381
419
|
fileDashedLine,
|
|
382
420
|
flagCheckered,
|
|
383
421
|
gear,
|
|
384
|
-
|
|
422
|
+
gripDots,
|
|
423
|
+
gripDotsVertical,
|
|
424
|
+
gripMove,
|
|
385
425
|
h1,
|
|
386
426
|
h2,
|
|
387
427
|
h3,
|
|
@@ -394,6 +434,7 @@ var icons = {
|
|
|
394
434
|
italic,
|
|
395
435
|
lightbulb,
|
|
396
436
|
link,
|
|
437
|
+
lock,
|
|
397
438
|
list,
|
|
398
439
|
listOl,
|
|
399
440
|
listUl,
|
|
@@ -406,15 +447,16 @@ var icons = {
|
|
|
406
447
|
path: "M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L368 46.1 465.9 144 490.3 119.6c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L432 177.9 334.1 80 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"
|
|
407
448
|
},
|
|
408
449
|
plus,
|
|
409
|
-
|
|
450
|
+
circlePlus,
|
|
410
451
|
quoteRight,
|
|
411
|
-
|
|
452
|
+
arrowsRotate,
|
|
453
|
+
magnifyingGlass,
|
|
412
454
|
share,
|
|
455
|
+
sliders,
|
|
413
456
|
strikethrough,
|
|
414
457
|
subscript,
|
|
415
458
|
superscript,
|
|
416
459
|
table,
|
|
417
|
-
tableRegular,
|
|
418
460
|
textSlash,
|
|
419
461
|
trash: {
|
|
420
462
|
width: 448,
|
|
@@ -430,9 +472,18 @@ var icons = {
|
|
|
430
472
|
var escapeHtml = (value) => {
|
|
431
473
|
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
432
474
|
};
|
|
433
|
-
/**
|
|
475
|
+
/**
|
|
476
|
+
* Build the render `viewBox` for an icon.
|
|
477
|
+
*
|
|
478
|
+
* Glyphs are stored edge-cropped (variable width × canvas height). `<pk-icon>`
|
|
479
|
+
* always paints into a square `1em` host, so we expand the viewBox to a centered
|
|
480
|
+
* square of `max(width, height)` without rewriting path data.
|
|
481
|
+
*/
|
|
434
482
|
var iconViewBox = (icon) => {
|
|
435
|
-
|
|
483
|
+
const { width, height } = icon;
|
|
484
|
+
if (width === height) return `0 0 ${width} ${height}`;
|
|
485
|
+
const canvas = Math.max(width, height);
|
|
486
|
+
return `${(width - canvas) / 2} ${(height - canvas) / 2} ${canvas} ${canvas}`;
|
|
436
487
|
};
|
|
437
488
|
/**
|
|
438
489
|
* Render a {@link PkIcon} to a standalone SVG markup string.
|
|
@@ -440,12 +491,17 @@ var iconViewBox = (icon) => {
|
|
|
440
491
|
* Framework-agnostic: web components pass the result through Lit's `unsafeSVG`,
|
|
441
492
|
* or parse it into an element. React consumers should use their own component
|
|
442
493
|
* (the raw {@link PkIcon} data is exported for that purpose).
|
|
494
|
+
*
|
|
495
|
+
* Sets `overflow="visible"` so glyphs that intentionally extend past the icon
|
|
496
|
+
* canvas (for example slash variants) are not clipped when a parent uses
|
|
497
|
+
* `overflow: hidden`.
|
|
443
498
|
*/
|
|
444
499
|
var iconToSvg = (icon, options = {}) => {
|
|
445
500
|
const { title, className, attributes = {} } = options;
|
|
446
501
|
const attrs = {
|
|
447
502
|
xmlns: "http://www.w3.org/2000/svg",
|
|
448
503
|
viewBox: iconViewBox(icon),
|
|
504
|
+
overflow: "visible",
|
|
449
505
|
...attributes
|
|
450
506
|
};
|
|
451
507
|
if (className) attrs.class = className;
|
|
@@ -459,4 +515,4 @@ var iconToSvg = (icon, options = {}) => {
|
|
|
459
515
|
}).join(" ")}>${title ? `<title>${escapeHtml(title)}</title>` : ""}<path fill="currentColor" d="${escapeHtml(icon.path)}"/></svg>`;
|
|
460
516
|
};
|
|
461
517
|
//#endregion
|
|
462
|
-
export {
|
|
518
|
+
export { heading as A, plus as B, gripMove as C, h4 as D, h3 as E, link as F, table as G, strikethrough as H, listOl as I, underline as J, textSlash as K, listUl as L, icons as M, italic as N, h5 as O, lightbulb as P, minus as R, gear as S, h2 as T, subscript as U, quoteRight as V, superscript as W, xmark as Y, chevronRight as _, alignRight as a, ellipsis as b, arrowRotateRight as c, bold as d, bracketsCurly as f, chevronLeft as g, chevronDown as h, alignLeft as i, highlighter as j, h6 as k, arrowUp as l, check as m, alignCenter as n, arrowDown as o, calendar as p, triangleExclamation as q, alignJustify as r, arrowRotateLeft as s, iconToSvg as t, asterisk as u, clock as v, h1 as w, fileDashedLine as x, code as y, paragraph as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as uniqueId } from "./pk-a11y-
|
|
1
|
+
import { n as uniqueId } from "./pk-a11y-CjB4-U-R.js";
|
|
2
2
|
import { m as i } from "./lit-Dnn7gEi2.js";
|
|
3
3
|
import { A as Node3, C as index_default$10, D as index_default$1, E as index_default$7, F as PluginKey, I as TextSelection, N as NodeSelection, O as index_default, P as Plugin, S as index_default$11, T as index_default$8, _ as index_default$16, a as index_default$5, b as index_default$13, c as index_default$24, d as index_default$21, f as index_default$20, g as index_default$17, h as index_default$6, i as index_default$2, j as getMarkRange, l as Table, m as index_default$18, n as index_default$25, o as index_default$22, p as index_default$19, r as index_default$3, s as index_default$23, t as index_default$26, u as index_default$4, v as index_default$15, w as index_default$9, x as index_default$12, y as index_default$14 } from "./tiptap-_LAjdgeV.js";
|
|
4
4
|
//#region ../plugin-kit-tiptap-core/dist/links/extension.js
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PkButton } from "../../chunks/pk-button-
|
|
1
|
+
import { t as PkButton } from "../../chunks/pk-button-Qg2Tot_-.js";
|
|
2
2
|
export { PkButton };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PkCalendar } from "../../chunks/pk-calendar-
|
|
1
|
+
import { t as PkCalendar } from "../../chunks/pk-calendar-CtlUN6iw.js";
|
|
2
2
|
export { PkCalendar };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PkCombobox } from "../../chunks/pk-combobox-
|
|
1
|
+
import { t as PkCombobox } from "../../chunks/pk-combobox-BpGW0asd.js";
|
|
2
2
|
export { PkCombobox };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as r, l as n, m as i, o, p as b, u as t } from "../../chunks/lit-Dnn7gEi2.js";
|
|
2
2
|
import { c as __decorate, l as PkElement } from "../../chunks/pk-base-BlxAYXJD.js";
|
|
3
|
-
import { m as check } from "../../chunks/svg-
|
|
4
|
-
import "../../chunks/pk-button-
|
|
5
|
-
import { n as renderIconHtml } from "../../chunks/render-
|
|
3
|
+
import { m as check } from "../../chunks/svg-_Mtb7CHx.js";
|
|
4
|
+
import "../../chunks/pk-button-Qg2Tot_-.js";
|
|
5
|
+
import { n as renderIconHtml } from "../../chunks/render-B_9MG170.js";
|
|
6
6
|
//#region src/events/pk-copy.ts
|
|
7
7
|
/** Emitted when copy-button successfully copies text. */
|
|
8
8
|
var PkCopyEvent = class extends Event {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PkDatePicker } from "../../chunks/pk-date-picker-
|
|
1
|
+
import { t as PkDatePicker } from "../../chunks/pk-date-picker-DPg627Ad.js";
|
|
2
2
|
export { PkDatePicker };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PkDialog } from "../../chunks/pk-dialog-
|
|
1
|
+
import { t as PkDialog } from "../../chunks/pk-dialog-DPn2BXOq.js";
|
|
2
2
|
export { PkDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PkDropdownItem } from "../../chunks/pk-dropdown-item-
|
|
1
|
+
import { t as PkDropdownItem } from "../../chunks/pk-dropdown-item-CdBLgJoh.js";
|
|
2
2
|
export { PkDropdownItem };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PkDropdownMenu } from "../../chunks/pk-dropdown-menu-
|
|
1
|
+
import { t as PkDropdownMenu } from "../../chunks/pk-dropdown-menu-BX4lGvGe.js";
|
|
2
2
|
export { PkDropdownMenu };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { c as r, f as A, i as e, l as n, m as i, o, p as b, t as c, u as t } from "../../chunks/lit-Dnn7gEi2.js";
|
|
2
2
|
import { c as __decorate, i as PkFormAssociatedElement } from "../../chunks/pk-base-BlxAYXJD.js";
|
|
3
|
-
import {
|
|
3
|
+
import { B as plus, C as gripMove, S as gear, Y as xmark, b as ellipsis, l as arrowUp, o as arrowDown } from "../../chunks/svg-_Mtb7CHx.js";
|
|
4
4
|
import { t as getIcon } from "../../chunks/registry-CmL0rH9r.js";
|
|
5
|
-
import "../../chunks/pk-button-
|
|
5
|
+
import "../../chunks/pk-button-Qg2Tot_-.js";
|
|
6
6
|
import { t as RequiredValidator } from "../../chunks/required-validator-DXqqPVeW.js";
|
|
7
7
|
import "../../chunks/pk-checkbox-CoDX2G3J.js";
|
|
8
8
|
import "../../chunks/pk-color-input-B73zaGYj.js";
|
|
9
|
-
import "../../chunks/pk-input-
|
|
10
|
-
import "../../chunks/pk-textarea-
|
|
11
|
-
import { n as renderIconHtml } from "../../chunks/render-
|
|
12
|
-
import "../../chunks/pk-dropdown-item-
|
|
13
|
-
import "../../chunks/pk-dropdown-menu-
|
|
9
|
+
import "../../chunks/pk-input-88DVgoVz.js";
|
|
10
|
+
import "../../chunks/pk-textarea-LC_CPUav.js";
|
|
11
|
+
import { n as renderIconHtml } from "../../chunks/render-B_9MG170.js";
|
|
12
|
+
import "../../chunks/pk-dropdown-item-CdBLgJoh.js";
|
|
13
|
+
import "../../chunks/pk-dropdown-menu-BX4lGvGe.js";
|
|
14
14
|
import "../../chunks/pk-lightswitch-BHEOy7aK.js";
|
|
15
|
-
import "../../chunks/pk-option-
|
|
16
|
-
import "../../chunks/pk-select-
|
|
17
|
-
import "../../chunks/pk-date-picker-
|
|
18
|
-
import "../../chunks/pk-combobox-
|
|
19
|
-
import "../../chunks/pk-time-picker-
|
|
15
|
+
import "../../chunks/pk-option-DL4rxbo2.js";
|
|
16
|
+
import "../../chunks/pk-select-D0Ia0Mz3.js";
|
|
17
|
+
import "../../chunks/pk-date-picker-DPg627Ad.js";
|
|
18
|
+
import "../../chunks/pk-combobox-BpGW0asd.js";
|
|
19
|
+
import "../../chunks/pk-time-picker-CesVpPiv.js";
|
|
20
20
|
//#region src/components/editable-table/editable-table-dnd.ts
|
|
21
21
|
/**
|
|
22
22
|
* Table-native pointer drag for `<pk-editable-table>` rows.
|
|
@@ -776,12 +776,8 @@ var isCustomColumn = (column) => {
|
|
|
776
776
|
};
|
|
777
777
|
//#endregion
|
|
778
778
|
//#region src/components/editable-table/pk-editable-table.ts
|
|
779
|
-
/**
|
|
780
|
-
var
|
|
781
|
-
<svg slot="start" viewBox="0 0 448 512" focusable="false" aria-hidden="true">
|
|
782
|
-
<path fill="currentColor" d="M71.3 295.6c-21.9-21.9-21.9-57.3 0-79.2s57.3-21.9 79.2 0 21.9 57.3 0 79.2s-57.4 21.9-79.2 0zM184.4 182.5c-21.9-21.9-21.9-57.3 0-79.2s57.3-21.9 79.2 0 21.9 57.3 0 79.2-57.3 21.8-79.2 0zm0 147c21.9-21.9 57.3-21.9 79.2 0s21.9 57.3 0 79.2s-57.3 21.9-79.2 0c-21.9-21.8-21.9-57.3 0-79.2zM297.5 216.4c21.9-21.9 57.3-21.9 79.2 0s21.9 57.3 0 79.2s-57.3 21.9-79.2 0c-21.8-21.9-21.8-57.3 0-79.2z"></path>
|
|
783
|
-
</svg>
|
|
784
|
-
`;
|
|
779
|
+
/** Craft CP reorder diamond (`grip-move`). */
|
|
780
|
+
var START_GRIP_MOVE_ICON = renderIconHtml(gripMove).replace("<svg", "<svg slot=\"start\" aria-hidden=\"true\"");
|
|
785
781
|
var START_ELLIPSIS_ICON = renderIconHtml(ellipsis).replace("<svg", "<svg slot=\"start\" aria-hidden=\"true\"");
|
|
786
782
|
var START_ARROW_UP_ICON = renderIconHtml(arrowUp).replace("<svg", "<svg slot=\"start\" aria-hidden=\"true\"");
|
|
787
783
|
var START_ARROW_DOWN_ICON = renderIconHtml(arrowDown).replace("<svg", "<svg slot=\"start\" aria-hidden=\"true\"");
|
|
@@ -1408,7 +1404,7 @@ var PkEditableTable = class PkEditableTable extends PkFormAssociatedElement {
|
|
|
1408
1404
|
aria-label="Reorder row"
|
|
1409
1405
|
?disabled=${this.disabled || !this.dndReady}
|
|
1410
1406
|
title=${!this.dndReady && !this.disabled ? "Preparing drag…" : A}
|
|
1411
|
-
>${o(
|
|
1407
|
+
>${o(START_GRIP_MOVE_ICON)}</pk-button>
|
|
1412
1408
|
</span>` : A}
|
|
1413
1409
|
${showRowMenu ? b`<pk-dropdown-menu size="sm" placement="bottom-end" side-offset="2">
|
|
1414
1410
|
<pk-button
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PkField } from "../../chunks/pk-field-
|
|
1
|
+
import { t as PkField } from "../../chunks/pk-field-CmPZQ86w.js";
|
|
2
2
|
export { PkField };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as o, f as A, l as n, m as i, p as b, u as t } from "../../chunks/lit-Dnn7gEi2.js";
|
|
2
2
|
import { c as __decorate, l as PkElement } from "../../chunks/pk-base-BlxAYXJD.js";
|
|
3
|
-
import {
|
|
3
|
+
import { M as icons, t as iconToSvg } from "../../chunks/svg-_Mtb7CHx.js";
|
|
4
4
|
import { n as normalizeIconName, r as registerIcons, t as getIcon } from "../../chunks/registry-CmL0rH9r.js";
|
|
5
5
|
//#region ../plugin-kit-icons/dist/all.js
|
|
6
6
|
/**
|
|
@@ -31,6 +31,8 @@ var PkIcon = class PkIcon extends PkElement {
|
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
33
|
flex: none;
|
|
34
|
+
/* Square em box + slight baseline nudge for inline text. Flex
|
|
35
|
+
* parents (e.g. button slots) should zero vertical-align. */
|
|
34
36
|
width: 1em;
|
|
35
37
|
height: 1em;
|
|
36
38
|
line-height: 1;
|
|
@@ -42,6 +44,8 @@ var PkIcon = class PkIcon extends PkElement {
|
|
|
42
44
|
width: 100%;
|
|
43
45
|
height: 100%;
|
|
44
46
|
fill: currentColor;
|
|
47
|
+
/* Allow intentional path overhang past the icon canvas. */
|
|
48
|
+
overflow: visible;
|
|
45
49
|
}
|
|
46
50
|
`;
|
|
47
51
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PkInput } from "../../chunks/pk-input-
|
|
1
|
+
import { t as PkInput } from "../../chunks/pk-input-88DVgoVz.js";
|
|
2
2
|
export { PkInput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as registerDismissible, f as unregisterDismissible, n as uniqueId, u as isTopDismissible } from "../../chunks/pk-a11y-
|
|
1
|
+
import { d as registerDismissible, f as unregisterDismissible, n as uniqueId, u as isTopDismissible } from "../../chunks/pk-a11y-CjB4-U-R.js";
|
|
2
2
|
import { c as r, f as A, i as e, l as n, m as i, p as b, s as e$1, u as t } from "../../chunks/lit-Dnn7gEi2.js";
|
|
3
3
|
import { c as __decorate, l as PkElement } from "../../chunks/pk-base-BlxAYXJD.js";
|
|
4
4
|
import { r as buttonGroupCornerRoleStyles } from "../../chunks/button-group-item.styles-BNc-ksl1.js";
|