@tempots/beatui 0.82.0 → 0.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/ar-CBrjAlIY.cjs +1 -0
- package/dist/ar-DjMvIww5.js +175 -0
- package/dist/{ar-NCCPhOpI.js → ar-DwDxAANU.js} +16 -1
- package/dist/ar-kZBzg02I.cjs +1 -0
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +64 -1351
- package/dist/auth-divider-C3_CgC0l.js +1375 -0
- package/dist/auth-divider-C4WTL71M.cjs +1 -0
- package/dist/beatui.css +11183 -5596
- package/dist/beatui.tailwind.css +11210 -5623
- package/dist/better-auth/index.cjs.js +1 -0
- package/dist/better-auth/index.es.js +741 -0
- package/dist/{colors-B2yrgHSW.cjs → colors-BI0YhONJ.cjs} +1 -1
- package/dist/{colors-DPo9GEJR.js → colors-BmLYKmoH.js} +38 -30
- package/dist/de-B03SM9eF.cjs +1 -0
- package/dist/{de-BVK2MkCk.js → de-CSGSC0xX.js} +18 -3
- package/dist/de-CrBw41po.cjs +1 -0
- package/dist/{de-f2xcEb34.js → de-wChFYqM4.js} +79 -5
- package/dist/deep-merge-CmQoIYPC.js +1689 -0
- package/dist/deep-merge-UghuPcyW.cjs +1 -0
- package/dist/duration-input-BJzKgI15.cjs +1 -0
- package/dist/{duration-input-B3vnnwBZ.js → duration-input-DaB6s0rL.js} +24 -23
- package/dist/editor-toolbar-group-BslfdazC.js +32 -0
- package/dist/editor-toolbar-group-_V1rDM-1.cjs +1 -0
- package/dist/{es-BxBeTRCv.cjs → es-BRa0hV-7.cjs} +1 -1
- package/dist/es-Ca5xT3NE.cjs +1 -0
- package/dist/es-CmPF3IGl.js +175 -0
- package/dist/{es-BQS8PL9j.js → es-dR46FTMF.js} +16 -1
- package/dist/{fa-DxPseW3g.cjs → fa-BxCSKn9j.cjs} +1 -1
- package/dist/fa-D696e75R.js +175 -0
- package/dist/fa-DhZJYuC6.cjs +1 -0
- package/dist/{fa-T-tkJSJr.js → fa-FsHBFjdY.js} +16 -1
- package/dist/fr-1nSKSIlw.cjs +1 -0
- package/dist/{fr-yOW_68YY.js → fr-B0jeX1Hx.js} +83 -9
- package/dist/{fr-CSRRhyCG.js → fr-Di6BT9_V.js} +18 -3
- package/dist/fr-Dq6RAY9s.cjs +1 -0
- package/dist/he-BBX1h9uD.cjs +1 -0
- package/dist/{he-Bxdc4M08.js → he-CXujw1Lw.js} +16 -1
- package/dist/he-DhcurPt5.cjs +1 -0
- package/dist/he-SgAsIYJA.js +175 -0
- package/dist/{hi-CJeFvTBe.js → hi-Bvh4d9bO.js} +16 -1
- package/dist/hi-Cd0YQZTU.cjs +1 -0
- package/dist/hi-CxsIxbfM.cjs +1 -0
- package/dist/hi-s9oiIihq.js +175 -0
- package/dist/{hls.light.min-Bhrf47iR.cjs → hls.light.min-C6xKDzRR.cjs} +1 -1
- package/dist/{hls.light.min-C6VwviEa.js → hls.light.min-hEMf_E8u.js} +1 -1
- package/dist/{index-ChsRjiIp.cjs → index-Bm43lZqE.cjs} +19 -19
- package/dist/{index-C5YCCgnn.cjs → index-C2_iX1um.cjs} +1 -1
- package/dist/{index-DT6-HMMz.js → index-C32iUFIr.js} +1432 -1462
- package/dist/{index-CiAVfKIZ.js → index-CEqc0H3v.js} +1 -1
- package/dist/index-DH37GTQj.cjs +1 -0
- package/dist/{index-DklKfzD4.js → index-Di1_W_7Q.js} +351 -361
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +6310 -3528
- package/dist/input-container-CSi72GI1.cjs +1 -0
- package/dist/input-container-Nx0gMAzS.js +258 -0
- package/dist/it-ByIEk5Cq.cjs +1 -0
- package/dist/it-D_IcaYxp.cjs +1 -0
- package/dist/{it-6e6X-4BB.js → it-Dc4IMciD.js} +80 -6
- package/dist/{it-Zmp0BhIj.js → it-EWhykhHv.js} +18 -3
- package/dist/ja-CMGqpPo7.cjs +1 -0
- package/dist/{ja-BxNuNo2H.js → ja-D2t2g5xj.js} +85 -11
- package/dist/ja-DV6Fpp18.cjs +1 -0
- package/dist/{ja-DWjoA-hQ.js → ja-YZ0P5woj.js} +16 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +212 -205
- package/dist/json-schema-display/index.cjs.js +1 -1
- package/dist/json-schema-display/index.es.js +1 -1
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +623 -762
- package/dist/ko-BPl5rP97.cjs +1 -0
- package/dist/ko-BRylA5JZ.js +175 -0
- package/dist/ko-DR1f0as8.cjs +1 -0
- package/dist/{ko-BOlI-33h.js → ko-U7BSUAxZ.js} +16 -1
- package/dist/lexical/index.cjs.js +46 -0
- package/dist/lexical/index.es.js +21397 -0
- package/dist/lexical.css +1122 -0
- package/dist/menu-CX72LaZ3.cjs +1 -0
- package/dist/menu-D_slbwl8.js +374 -0
- package/dist/modal-DaI1jH-X.js +488 -0
- package/dist/modal-kyZfvVZb.cjs +1 -0
- package/dist/nl-BSfaHFt0.cjs +1 -0
- package/dist/{nl-Dr-l6zUy.cjs → nl-CQF0N7Mc.cjs} +1 -1
- package/dist/{nl-kQNcAdY1.js → nl-CqAxoB4J.js} +18 -3
- package/dist/nl-Dh7LUWAn.js +176 -0
- package/dist/notice-Bc1L4Zpr.cjs +1 -0
- package/dist/{notice-CZHWWwOQ.js → notice-Dz4nX57_.js} +49 -48
- package/dist/{oneof-branch-detection-BVNoKU9d.js → oneof-branch-detection-BED_n2MT.js} +523 -520
- package/dist/{oneof-branch-detection-C8g3eWnx.cjs → oneof-branch-detection-Vov_e3kI.cjs} +4 -4
- package/dist/{pl-CKyPFvss.js → pl-C-weXGCB.js} +16 -1
- package/dist/pl-D-O4sCnr.cjs +1 -0
- package/dist/{pl-Bs4nLJ__.js → pl-XEG-p1Q9.js} +77 -3
- package/dist/{pl-BK0i_yvq.cjs → pl-y_w3DWF3.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-DBmUhaNI.js → pt-BjNGOoZH.js} +18 -3
- package/dist/pt-DYsDA2sZ.js +175 -0
- package/dist/pt-DqaZWmbG.cjs +1 -0
- package/dist/pt-chEEYLlt.cjs +1 -0
- package/dist/ru-B46hVpFF.cjs +1 -0
- package/dist/{ru-Bi1_DEKM.js → ru-BTKBykp-.js} +86 -12
- package/dist/{ru-CsJ_yT-7.js → ru-CFmeZBXK.js} +16 -1
- package/dist/ru-CISMzCHR.cjs +1 -0
- package/dist/session-id-3KiilioY.js +8 -0
- package/dist/session-id-B5lJMzbB.cjs +1 -0
- package/dist/styles-url-CVCcF0ra.cjs +1 -0
- package/dist/styles-url-DUdp56Ts.js +4 -0
- package/dist/tailwind/index.cjs.js +1 -1
- package/dist/tailwind/index.es.js +3 -3
- package/dist/tailwind/preset.cjs.js +1 -1
- package/dist/tailwind/preset.es.js +74 -4
- package/dist/tailwind/vite-plugin.cjs.js +10 -10
- package/dist/tailwind/vite-plugin.es.js +289 -410
- package/dist/text-input-8v79fzEy.cjs +1 -0
- package/dist/text-input-CPJzUC2r.js +45 -0
- package/dist/{toolbar-DR2Zd4Oo.js → toolbar-CjQG7l7X.js} +4 -4
- package/dist/toolbar-D3ZsC0g_.cjs +1 -0
- package/dist/{tr-Bn5ldVJs.js → tr-C5X2gFZS.js} +17 -2
- package/dist/tr-CaMaflJL.cjs +1 -0
- package/dist/{tr-DiYB-FwX.js → tr-Cp8ZCUic.js} +77 -3
- package/dist/{tr-CgJ8uhZu.cjs → tr-mWu2E__o.cjs} +1 -1
- package/dist/{translations-Cq8bUKJP.js → translations-BGblCUBj.js} +144 -70
- package/dist/translations-CZ0KOii3.cjs +1 -0
- package/dist/translations-gVgMyNno.cjs +1 -0
- package/dist/translations-jUYta1_1.js +87 -0
- package/dist/types/auth/index.d.ts +13 -0
- package/dist/types/auth-i18n/default.d.ts +14 -0
- package/dist/types/auth-i18n/locales/ar.d.ts +14 -0
- package/dist/types/auth-i18n/locales/de.d.ts +14 -0
- package/dist/types/auth-i18n/locales/en.d.ts +14 -0
- package/dist/types/auth-i18n/locales/es.d.ts +14 -0
- package/dist/types/auth-i18n/locales/fa.d.ts +14 -0
- package/dist/types/auth-i18n/locales/fr.d.ts +14 -0
- package/dist/types/auth-i18n/locales/he.d.ts +14 -0
- package/dist/types/auth-i18n/locales/hi.d.ts +14 -0
- package/dist/types/auth-i18n/locales/it.d.ts +14 -0
- package/dist/types/auth-i18n/locales/ja.d.ts +14 -0
- package/dist/types/auth-i18n/locales/ko.d.ts +14 -0
- package/dist/types/auth-i18n/locales/nl.d.ts +14 -0
- package/dist/types/auth-i18n/locales/pl.d.ts +14 -0
- package/dist/types/auth-i18n/locales/pt.d.ts +14 -0
- package/dist/types/auth-i18n/locales/ru.d.ts +14 -0
- package/dist/types/auth-i18n/locales/tr.d.ts +14 -0
- package/dist/types/auth-i18n/locales/ur.d.ts +14 -0
- package/dist/types/auth-i18n/locales/vi.d.ts +14 -0
- package/dist/types/auth-i18n/locales/zh.d.ts +14 -0
- package/dist/types/auth-i18n/translations.d.ts +14 -0
- package/dist/types/beatui-i18n/default.d.ts +99 -0
- package/dist/types/beatui-i18n/index.d.ts +11 -0
- package/dist/types/beatui-i18n/locales/en.d.ts +63 -0
- package/dist/types/beatui-i18n/translations.d.ts +87 -0
- package/dist/types/better-auth/bridge.d.ts +2 -0
- package/dist/types/better-auth/callbacks.d.ts +6 -0
- package/dist/types/better-auth/components/authenticated.d.ts +4 -0
- package/dist/types/better-auth/components/better-auth-container.d.ts +4 -0
- package/dist/types/better-auth/components/better-auth-modal.d.ts +4 -0
- package/dist/types/better-auth/components/magic-link-form.d.ts +7 -0
- package/dist/types/better-auth/components/passkey-management.d.ts +6 -0
- package/dist/types/better-auth/components/passkey-signin.d.ts +12 -0
- package/dist/types/better-auth/components/two-factor-setup.d.ts +8 -0
- package/dist/types/better-auth/components/two-factor-verify.d.ts +10 -0
- package/dist/types/better-auth/i18n/default.d.ts +29 -0
- package/dist/types/better-auth/i18n/locales/en.d.ts +28 -0
- package/dist/types/better-auth/i18n/translations.d.ts +27 -0
- package/dist/types/better-auth/index.d.ts +35 -0
- package/dist/types/better-auth/provider.d.ts +39 -0
- package/dist/types/better-auth/session.d.ts +14 -0
- package/dist/types/better-auth/social-mapping.d.ts +2 -0
- package/dist/types/better-auth/types.d.ts +276 -0
- package/dist/types/components/auth/auth-container.d.ts +63 -2
- package/dist/types/components/auth/auth-divider.d.ts +30 -0
- package/dist/types/components/auth/auth-email-prop.d.ts +25 -0
- package/dist/types/components/auth/index.d.ts +9 -0
- package/dist/types/components/auth/password-strength-indicator.d.ts +58 -0
- package/dist/types/components/auth/reset-password-form.d.ts +33 -0
- package/dist/types/components/auth/schemas.d.ts +183 -5
- package/dist/types/components/auth/signin-form.d.ts +33 -0
- package/dist/types/components/auth/signup-form.d.ts +36 -0
- package/dist/types/components/auth/social-login-button.d.ts +213 -0
- package/dist/types/components/auth/social-providers.d.ts +27 -1
- package/dist/types/components/auth/types.d.ts +301 -0
- package/dist/types/components/auth/utils.d.ts +198 -0
- package/dist/types/components/beatui.d.ts +35 -0
- package/dist/types/components/button/button.d.ts +61 -0
- package/dist/types/components/button/close-button.d.ts +32 -1
- package/dist/types/components/button/index.d.ts +2 -0
- package/dist/types/components/button/toggle-button-group.d.ts +95 -0
- package/dist/types/components/button/toggle-button.d.ts +60 -0
- package/dist/types/components/data/avatar-group.d.ts +74 -0
- package/dist/types/components/data/avatar.d.ts +62 -0
- package/dist/types/components/data/badge.d.ts +49 -2
- package/dist/types/components/data/calendar-shared.d.ts +59 -0
- package/dist/types/components/data/calendar.d.ts +107 -0
- package/dist/types/components/data/history-timeline.d.ts +35 -0
- package/dist/types/components/data/icon-badge.d.ts +14 -0
- package/dist/types/components/data/icon.d.ts +55 -4
- package/dist/types/components/data/index.d.ts +9 -0
- package/dist/types/components/data/page-drop-zone.d.ts +61 -8
- package/dist/types/components/data/presence-overlay.d.ts +26 -0
- package/dist/types/components/data/progress-bar.d.ts +81 -0
- package/dist/types/components/data/range-calendar.d.ts +104 -0
- package/dist/types/components/data/skeleton.d.ts +70 -0
- package/dist/types/components/data/table.d.ts +38 -11
- package/dist/types/components/data/tag.d.ts +40 -0
- package/dist/types/components/data/unstyled-drop-zone.d.ts +73 -0
- package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +16 -0
- package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +9 -0
- package/dist/types/components/editor-toolbar/index.d.ts +2 -0
- package/dist/types/components/form/control/control.d.ts +155 -0
- package/dist/types/components/form/control/date-utils.d.ts +81 -0
- package/dist/types/components/form/control/ensure-control.d.ts +28 -0
- package/dist/types/components/form/control/form-status.d.ts +63 -0
- package/dist/types/components/form/control/index.d.ts +10 -0
- package/dist/types/components/form/control/list-control.d.ts +100 -1
- package/dist/types/components/form/control/list-item-controls.d.ts +65 -0
- package/dist/types/components/form/controller/color-controller.d.ts +29 -1
- package/dist/types/components/form/controller/controller-validation.d.ts +31 -0
- package/dist/types/components/form/controller/controller.d.ts +286 -0
- package/dist/types/components/form/controller/index.d.ts +12 -0
- package/dist/types/components/form/controller/path.d.ts +69 -0
- package/dist/types/components/form/controller/union-controller.d.ts +106 -11
- package/dist/types/components/form/controller/utils.d.ts +67 -0
- package/dist/types/components/form/input/advanced-slider.d.ts +143 -0
- package/dist/types/components/form/input/appearance-selector.d.ts +39 -0
- package/dist/types/components/form/input/base64-input.d.ts +34 -0
- package/dist/types/components/form/input/base64s-input.d.ts +47 -0
- package/dist/types/components/form/input/bigint-input.d.ts +27 -0
- package/dist/types/components/form/input/checkbox-input.d.ts +46 -0
- package/dist/types/components/form/input/color-input.d.ts +42 -0
- package/dist/types/components/form/input/color-swatch-input.d.ts +53 -0
- package/dist/types/components/form/input/combobox-input.d.ts +73 -0
- package/dist/types/components/form/input/combobox-tags-input.d.ts +54 -0
- package/dist/types/components/form/input/date-input.d.ts +33 -0
- package/dist/types/components/form/input/date-time-input.d.ts +34 -0
- package/dist/types/components/form/input/dropdown-base.d.ts +52 -0
- package/dist/types/components/form/input/dropdown-input.d.ts +86 -0
- package/dist/types/components/form/input/duration-input.d.ts +18 -0
- package/dist/types/components/form/input/duration-mask.d.ts +24 -0
- package/dist/types/components/form/input/editable-text.d.ts +33 -0
- package/dist/types/components/form/input/email-input.d.ts +34 -0
- package/dist/types/components/form/input/file-input.d.ts +33 -0
- package/dist/types/components/form/input/files-input.d.ts +44 -0
- package/dist/types/components/form/input/index.d.ts +5 -0
- package/dist/types/components/form/input/input-adornment.d.ts +38 -0
- package/dist/types/components/form/input/input-container.d.ts +65 -0
- package/dist/types/components/form/input/input-options.d.ts +70 -0
- package/dist/types/components/form/input/input-wrapper.d.ts +78 -0
- package/dist/types/components/form/input/instant-input.d.ts +18 -0
- package/dist/types/components/form/input/lazy-native-select.d.ts +43 -0
- package/dist/types/components/form/input/list-input.d.ts +50 -0
- package/dist/types/components/form/input/mask-input.d.ts +158 -0
- package/dist/types/components/form/input/native-select.d.ts +50 -0
- package/dist/types/components/form/input/nullable-base64-input.d.ts +25 -0
- package/dist/types/components/form/input/nullable-bigint-input.d.ts +26 -0
- package/dist/types/components/form/input/nullable-date-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-date-time-input.d.ts +19 -0
- package/dist/types/components/form/input/nullable-duration-input.d.ts +19 -0
- package/dist/types/components/form/input/nullable-email-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-instant-input.d.ts +19 -0
- package/dist/types/components/form/input/nullable-mask-input.d.ts +24 -0
- package/dist/types/components/form/input/nullable-number-input.d.ts +29 -0
- package/dist/types/components/form/input/nullable-password-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-plain-date-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-plain-month-day-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-plain-time-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-rating-input.d.ts +33 -0
- package/dist/types/components/form/input/nullable-text-area.d.ts +27 -0
- package/dist/types/components/form/input/nullable-text-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-url-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-utils.d.ts +22 -2
- package/dist/types/components/form/input/nullable-uuid-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-zoned-date-time-input.d.ts +20 -0
- package/dist/types/components/form/input/number-input.d.ts +49 -0
- package/dist/types/components/form/input/option.d.ts +165 -0
- package/dist/types/components/form/input/otp-input.d.ts +77 -0
- package/dist/types/components/form/input/password-input.d.ts +39 -0
- package/dist/types/components/form/input/plain-date-input.d.ts +17 -0
- package/dist/types/components/form/input/plain-date-time-input.d.ts +17 -0
- package/dist/types/components/form/input/plain-month-day-input.d.ts +18 -0
- package/dist/types/components/form/input/plain-time-input.d.ts +17 -0
- package/dist/types/components/form/input/plain-year-month-input.d.ts +17 -0
- package/dist/types/components/form/input/radio-group.d.ts +108 -0
- package/dist/types/components/form/input/rating-input.d.ts +57 -0
- package/dist/types/components/form/input/segmented-input.d.ts +70 -1
- package/dist/types/components/form/input/select-tags-input.d.ts +69 -0
- package/dist/types/components/form/input/slider-input.d.ts +82 -0
- package/dist/types/components/form/input/switch.d.ts +59 -1
- package/dist/types/components/form/input/tag-input.d.ts +19 -0
- package/dist/types/components/form/input/tag-utils.d.ts +111 -0
- package/dist/types/components/form/input/tags-input.d.ts +18 -0
- package/dist/types/components/form/input/text-area.d.ts +42 -0
- package/dist/types/components/form/input/text-input.d.ts +63 -1
- package/dist/types/components/form/input/url-input.d.ts +34 -0
- package/dist/types/components/form/input/uuid-input.d.ts +19 -0
- package/dist/types/components/form/input/zoned-date-time-input.d.ts +20 -0
- package/dist/types/components/form/schema/standard-schema-v1.d.ts +98 -23
- package/dist/types/components/form/use-form.d.ts +146 -2
- package/dist/types/components/i18n/index.d.ts +9 -0
- package/dist/types/components/i18n/locale-direction.d.ts +21 -1
- package/dist/types/components/i18n/locale-selector.d.ts +45 -0
- package/dist/types/components/i18n/make-i18nprovider.d.ts +42 -0
- package/dist/types/components/json-schema/schema-types.d.ts +133 -0
- package/dist/types/components/json-structure/controls/control-utils.d.ts +19 -0
- package/dist/types/components/json-structure/controls/deprecation-utils.d.ts +2 -3
- package/dist/types/components/json-structure/controls/index.d.ts +1 -0
- package/dist/types/components/json-structure/structure-types.d.ts +473 -19
- package/dist/types/components/layout/accordion.d.ts +77 -0
- package/dist/types/components/layout/action-card.d.ts +90 -2
- package/dist/types/components/layout/app-shell.d.ts +76 -0
- package/dist/types/components/layout/card.d.ts +27 -0
- package/dist/types/components/layout/center.d.ts +39 -0
- package/dist/types/components/layout/collapse.d.ts +28 -0
- package/dist/types/components/layout/divider.d.ts +84 -0
- package/dist/types/components/layout/group.d.ts +15 -0
- package/dist/types/components/layout/index.d.ts +2 -0
- package/dist/types/components/layout/nine-slice-scroll-view.d.ts +105 -0
- package/dist/types/components/layout/scrollable-panel.d.ts +54 -0
- package/dist/types/components/layout/sink.d.ts +46 -0
- package/dist/types/components/layout/stack.d.ts +16 -0
- package/dist/types/components/layout/with-breakpoint.d.ts +194 -0
- package/dist/types/components/lexical/bare-editor.d.ts +29 -0
- package/dist/types/components/lexical/code/index.d.ts +1 -0
- package/dist/types/components/lexical/code/language-selector.d.ts +13 -0
- package/dist/types/components/lexical/contextual-editor.d.ts +22 -0
- package/dist/types/components/lexical/docked-editor.d.ts +23 -0
- package/dist/types/components/lexical/floating/block-handle.d.ts +16 -0
- package/dist/types/components/lexical/floating/floating-toolbar.d.ts +12 -0
- package/dist/types/components/lexical/floating/index.d.ts +6 -0
- package/dist/types/components/lexical/floating/slash-command-palette.d.ts +20 -0
- package/dist/types/components/lexical/index.d.ts +8 -0
- package/dist/types/components/lexical/lexical-editor-input.d.ts +30 -0
- package/dist/types/components/lexical/table/index.d.ts +1 -0
- package/dist/types/components/lexical/table/table-controls.d.ts +12 -0
- package/dist/types/components/lexical/toolbar/index.d.ts +6 -0
- package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +12 -0
- package/dist/types/components/lexical/toolbar/toolbar-button.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-group.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +32 -0
- package/dist/types/components/misc/empty-state.d.ts +86 -0
- package/dist/types/components/misc/expando.d.ts +81 -0
- package/dist/types/components/misc/index.d.ts +2 -1
- package/dist/types/components/misc/link-portal.d.ts +40 -2
- package/dist/types/components/misc/notice.d.ts +93 -0
- package/dist/types/components/misc/notification-panel.d.ts +21 -0
- package/dist/types/components/misc/notification-provider.d.ts +141 -0
- package/dist/types/components/misc/notification.d.ts +93 -0
- package/dist/types/components/misc/style-portal.d.ts +31 -1
- package/dist/types/components/monaco/monaco-editor-input.d.ts +59 -2
- package/dist/types/components/navigation/breadcrumbs.d.ts +96 -0
- package/dist/types/components/navigation/flyout.d.ts +118 -16
- package/dist/types/components/navigation/index.d.ts +3 -0
- package/dist/types/components/navigation/link/link.d.ts +100 -0
- package/dist/types/components/navigation/menu.d.ts +155 -35
- package/dist/types/components/navigation/pagination.d.ts +82 -0
- package/dist/types/components/navigation/sidebar/sidebar-group.d.ts +42 -0
- package/dist/types/components/navigation/sidebar/sidebar-link.d.ts +101 -0
- package/dist/types/components/navigation/sidebar/sidebar-separator.d.ts +17 -0
- package/dist/types/components/navigation/sidebar/sidebar.d.ts +57 -0
- package/dist/types/components/navigation/tabs/tabs.d.ts +3 -2
- package/dist/types/components/navigation/toolbar/toolbar.d.ts +125 -0
- package/dist/types/components/navigation/tree-view.d.ts +95 -0
- package/dist/types/components/overlay/announcement-bar.d.ts +41 -2
- package/dist/types/components/overlay/block-command-palette.d.ts +25 -0
- package/dist/types/components/overlay/command-palette.d.ts +17 -0
- package/dist/types/components/overlay/dialogs.d.ts +213 -0
- package/dist/types/components/overlay/drawer.d.ts +76 -12
- package/dist/types/components/overlay/index.d.ts +4 -0
- package/dist/types/components/overlay/lightbox.d.ts +53 -10
- package/dist/types/components/overlay/modal.d.ts +113 -13
- package/dist/types/components/overlay/overlay.d.ts +61 -0
- package/dist/types/components/overlay/popover.d.ts +100 -0
- package/dist/types/components/overlay/ribbon.d.ts +58 -9
- package/dist/types/components/prosemirror/etoolbar-button.d.ts +11 -11
- package/dist/types/components/prosemirror/etoolbar-group.d.ts +11 -4
- package/dist/types/components/prosemirror/link-control.d.ts +43 -2
- package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +46 -6
- package/dist/types/components/prosemirror/utils.d.ts +113 -1
- package/dist/types/components/theme/style-utils.d.ts +95 -0
- package/dist/types/components/theme/theme.d.ts +39 -0
- package/dist/types/components/theme/types.d.ts +133 -1
- package/dist/types/components/typography/index.d.ts +1 -0
- package/dist/types/components/typography/kbd.d.ts +48 -0
- package/dist/types/components/typography/label.d.ts +45 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/json-schema/index.d.ts +13 -0
- package/dist/types/json-schema-display/index.d.ts +12 -0
- package/dist/types/json-structure/index.d.ts +9 -4
- package/dist/types/lexical/commands/index.d.ts +17 -0
- package/dist/types/lexical/headless.d.ts +39 -0
- package/dist/types/lexical/horizontal-rule-node.d.ts +20 -0
- package/dist/types/lexical/index.d.ts +20 -0
- package/dist/types/lexical/lazy-loader.d.ts +35 -0
- package/dist/types/lexical/nodes.d.ts +29 -0
- package/dist/types/lexical/plugins/auto-link.d.ts +7 -0
- package/dist/types/lexical/plugins/clipboard.d.ts +11 -0
- package/dist/types/lexical/plugins/code-shiki.d.ts +11 -0
- package/dist/types/lexical/plugins/code.d.ts +7 -0
- package/dist/types/lexical/plugins/dragon.d.ts +6 -0
- package/dist/types/lexical/plugins/file-io.d.ts +10 -0
- package/dist/types/lexical/plugins/hashtag.d.ts +7 -0
- package/dist/types/lexical/plugins/history.d.ts +7 -0
- package/dist/types/lexical/plugins/horizontal-rule.d.ts +12 -0
- package/dist/types/lexical/plugins/html-io.d.ts +9 -0
- package/dist/types/lexical/plugins/index.d.ts +24 -0
- package/dist/types/lexical/plugins/link.d.ts +6 -0
- package/dist/types/lexical/plugins/list.d.ts +6 -0
- package/dist/types/lexical/plugins/mark.d.ts +15 -0
- package/dist/types/lexical/plugins/markdown-io.d.ts +13 -0
- package/dist/types/lexical/plugins/offset.d.ts +6 -0
- package/dist/types/lexical/plugins/overflow.d.ts +7 -0
- package/dist/types/lexical/plugins/plain-text.d.ts +6 -0
- package/dist/types/lexical/plugins/rich-text.d.ts +6 -0
- package/dist/types/lexical/plugins/selection.d.ts +6 -0
- package/dist/types/lexical/plugins/slash-commands.d.ts +26 -0
- package/dist/types/lexical/plugins/table.d.ts +11 -0
- package/dist/types/lexical/plugins/text.d.ts +13 -0
- package/dist/types/lexical/plugins/yjs.d.ts +9 -0
- package/dist/types/lexical/styles-url.d.ts +2 -0
- package/dist/types/lexical/styles.d.ts +2 -0
- package/dist/types/lexical/types.d.ts +634 -0
- package/dist/types/lexical-i18n/default.d.ts +92 -0
- package/dist/types/lexical-i18n/index.d.ts +21 -0
- package/dist/types/lexical-i18n/locales/ar.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/de.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/en.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/es.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/fa.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/fr.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/he.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/hi.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/it.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ja.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ko.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/nl.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/pl.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/pt.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ru.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/tr.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ur.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/vi.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/zh.d.ts +91 -0
- package/dist/types/lexical-i18n/translations.d.ts +21 -0
- package/dist/types/markdown/index.d.ts +13 -0
- package/dist/types/monaco/index.d.ts +17 -0
- package/dist/types/monaco/lazy-loader.d.ts +79 -0
- package/dist/types/monaco/styles-url.d.ts +11 -0
- package/dist/types/monaco/styles.d.ts +11 -0
- package/dist/types/monaco/types.d.ts +47 -0
- package/dist/types/prosemirror/index.d.ts +12 -0
- package/dist/types/prosemirror/styles-url.d.ts +11 -0
- package/dist/types/prosemirror/styles.d.ts +10 -0
- package/dist/types/tailwind/google-fonts.d.ts +15 -0
- package/dist/types/tailwind/index.d.ts +13 -0
- package/dist/types/tailwind/preset.d.ts +111 -0
- package/dist/types/tailwind/vite-plugin.d.ts +39 -4
- package/dist/types/tokens/base-colors.d.ts +21 -0
- package/dist/types/tokens/breakpoints.d.ts +67 -0
- package/dist/types/tokens/colors.d.ts +213 -4
- package/dist/types/tokens/motion.d.ts +142 -3
- package/dist/types/tokens/radius.d.ts +99 -0
- package/dist/types/tokens/shadows.d.ts +85 -0
- package/dist/types/tokens/spacing.d.ts +111 -0
- package/dist/types/tokens/text-shadows.d.ts +82 -0
- package/dist/types/tokens/typography.d.ts +313 -25
- package/dist/types/tokens/z-index.d.ts +62 -0
- package/dist/types/utils/color.d.ts +297 -28
- package/dist/types/utils/download.d.ts +92 -0
- package/dist/types/utils/focus-trap.d.ts +67 -11
- package/dist/types/utils/format-file-size.d.ts +44 -0
- package/dist/ur-B6yB2JQ7.cjs +1 -0
- package/dist/ur-CvGP14xo.cjs +1 -0
- package/dist/{ur-Bg9eX81v.js → ur-Deo004ME.js} +16 -1
- package/dist/{ur-B69X-xNs.js → ur-DkIYJxsF.js} +82 -8
- package/dist/use-animated-toggle-89fKlXxy.js +195 -0
- package/dist/use-animated-toggle-DrqK7nUS.cjs +1 -0
- package/dist/{use-form-CgZyrACX.js → use-form-BurzbPVV.js} +271 -88
- package/dist/use-form-Uree6QFy.cjs +2 -0
- package/dist/vi-BYk1rJDv.js +53 -0
- package/dist/vi-DKw6PBja.js +175 -0
- package/dist/vi-Df4WZe9y.cjs +1 -0
- package/dist/vi-DneuUbkq.cjs +1 -0
- package/dist/{widget-customization-DRA7E9Zf.js → widget-customization-0is7oTeP.js} +233 -231
- package/dist/widget-customization-B-LmxkPE.cjs +1 -0
- package/dist/zh-C5a9NGFW.cjs +1 -0
- package/dist/zh-CaKHseXJ.js +175 -0
- package/dist/zh-DFHuW_5g.cjs +1 -0
- package/dist/{zh-BIykcEu9.js → zh-DR7QaM65.js} +16 -1
- package/package.json +48 -3
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
- package/dist/ar-BsUm-TCn.cjs +0 -1
- package/dist/ar-D7CXDmVZ.cjs +0 -1
- package/dist/ar-nOSKXpIW.js +0 -101
- package/dist/de-BUFLEyKr.cjs +0 -1
- package/dist/de-WzsOu9Gn.cjs +0 -1
- package/dist/deep-merge-CiOwVWn8.js +0 -1619
- package/dist/deep-merge-DxZqCkE5.cjs +0 -1
- package/dist/duration-input-Dg5SX3lM.cjs +0 -1
- package/dist/es-CDqqzpCw.js +0 -101
- package/dist/es-Ds2Xf3wV.cjs +0 -1
- package/dist/fa-C7tE_hR3.js +0 -101
- package/dist/fa-Ct1UtDB7.cjs +0 -1
- package/dist/fr-Cdyopuz3.cjs +0 -1
- package/dist/fr-CzAkRFed.cjs +0 -1
- package/dist/he-D2oUloCJ.js +0 -101
- package/dist/he-DarDNPn0.cjs +0 -1
- package/dist/he-DlXALrK7.cjs +0 -1
- package/dist/hi-3dBhLwDs.cjs +0 -1
- package/dist/hi-D5ZlZoQq.js +0 -101
- package/dist/hi-tATwsXJ6.cjs +0 -1
- package/dist/index-DE2tjivA.cjs +0 -1
- package/dist/it-BmFag7j0.cjs +0 -1
- package/dist/it-DohtcWi9.cjs +0 -1
- package/dist/ja-Dj-bAKLf.cjs +0 -1
- package/dist/ja-eyTArrgS.cjs +0 -1
- package/dist/ko-BFLCDMMs.cjs +0 -1
- package/dist/ko-BomUE-yQ.cjs +0 -1
- package/dist/ko-Ch0jFsBV.js +0 -101
- package/dist/modal-D2xE47kr.cjs +0 -1
- package/dist/modal-hkQD1bqZ.js +0 -655
- package/dist/nl-Bx2ACvr4.cjs +0 -1
- package/dist/nl-NuTdZO1s.js +0 -102
- package/dist/notice-C0SmlheE.cjs +0 -1
- package/dist/pl-QHl6sl8f.cjs +0 -1
- package/dist/pt-BETjHZrL.js +0 -101
- package/dist/pt-DZGw2Z-1.cjs +0 -1
- package/dist/pt-oBMmVYcu.cjs +0 -1
- package/dist/ru-CtxMmoa6.cjs +0 -1
- package/dist/ru-D03IuLqh.cjs +0 -1
- package/dist/text-input-CByq5OIo.cjs +0 -1
- package/dist/text-input-CFJntP7G.js +0 -287
- package/dist/toolbar-TPWYzoiF.cjs +0 -1
- package/dist/tr-B_-_1wua.cjs +0 -1
- package/dist/translations-B4-Zd2LM.cjs +0 -1
- package/dist/translations-D62qqNV9.cjs +0 -1
- package/dist/translations-DPr6c05Z.js +0 -67
- package/dist/ur-DvqAg9gW.cjs +0 -1
- package/dist/ur-DyUSmIbo.cjs +0 -1
- package/dist/use-form-JjeKCINk.cjs +0 -2
- package/dist/vi-BdzxA60L.js +0 -101
- package/dist/vi-CBmPaHxg.cjs +0 -1
- package/dist/vi-D5R3YcU0.cjs +0 -1
- package/dist/vi-DhdsHHf_.js +0 -38
- package/dist/widget-customization-G-QLB1rw.cjs +0 -1
- package/dist/zh-CCGXcj5r.cjs +0 -1
- package/dist/zh-Cb1b8uik.cjs +0 -1
- package/dist/zh-Dn1UJiZa.js +0 -101
|
@@ -1,1619 +0,0 @@
|
|
|
1
|
-
import { Use as F, Value as p, prop as ae, html as v, attr as l, on as D, WithElement as te, Empty as z, aria as G, bind as oe, computedOf as M, style as we, OnDispose as ne, When as U, NotEmpty as Oe, Fragment as E, ForEach as K, coalesce as Fe, Ensure as Ne, OneOfType as Re, Repeat as Pe, signal as _e, input as le, emitValue as P, emitValueAsNumber as ke, Task as Ce } from "@tempots/dom";
|
|
2
|
-
import { l as je } from "./colors-DPo9GEJR.js";
|
|
3
|
-
import { g as We } from "./timer-Rd2sKnvH.js";
|
|
4
|
-
import { ElementRect as Ze } from "@tempots/ui";
|
|
5
|
-
import { a as W, C as Y, I as He, g as Ye, B as pe } from "./text-input-CFJntP7G.js";
|
|
6
|
-
import { B as N, f as De, I as O, d as ge } from "./translations-Cq8bUKJP.js";
|
|
7
|
-
import { C as ce, m as qe, c as Ge, I as Be, d as fe, O as Q, e as Ie } from "./use-form-CgZyrACX.js";
|
|
8
|
-
import { S as ee } from "./stack-BJgsPJ9A.js";
|
|
9
|
-
function de({
|
|
10
|
-
onChange: t,
|
|
11
|
-
value: e,
|
|
12
|
-
accept: n = "*/*",
|
|
13
|
-
enableClick: s = !0,
|
|
14
|
-
content: r,
|
|
15
|
-
disabled: g = !1,
|
|
16
|
-
allowMultiple: i
|
|
17
|
-
}) {
|
|
18
|
-
return F(N, (m) => {
|
|
19
|
-
const f = p.deriveProp(e ?? []), b = ae(!1), a = (c) => {
|
|
20
|
-
c.preventDefault(), c.stopPropagation(), b.value = !0;
|
|
21
|
-
}, h = (c) => {
|
|
22
|
-
c.preventDefault(), c.stopPropagation(), (!c.currentTarget || !c.currentTarget.contains(c.relatedTarget)) && (b.value = !1);
|
|
23
|
-
}, _ = (c) => {
|
|
24
|
-
c.preventDefault(), c.stopPropagation(), b.value = !1;
|
|
25
|
-
const d = Array.from(c.dataTransfer?.files || []);
|
|
26
|
-
d.length > 0 && (f.value = d, t(d, "dragdrop"));
|
|
27
|
-
}, u = (c) => {
|
|
28
|
-
p.get(s) && c.currentTarget.querySelector(
|
|
29
|
-
'input[type="file"]'
|
|
30
|
-
)?.click();
|
|
31
|
-
};
|
|
32
|
-
let x = null;
|
|
33
|
-
const y = () => {
|
|
34
|
-
if (x == null) return;
|
|
35
|
-
const c = Array.from(x.files ?? []);
|
|
36
|
-
c.length > 0 && (f.value = c, t(c, "click")), x.value = "";
|
|
37
|
-
}, I = (c) => {
|
|
38
|
-
p.get(s) && (c.key === "Enter" || c.key === " ") && (c.preventDefault(), u(c));
|
|
39
|
-
};
|
|
40
|
-
return v.div(
|
|
41
|
-
l.role("button"),
|
|
42
|
-
l.tabindex(
|
|
43
|
-
p.map(s, (c) => c ? 0 : -1)
|
|
44
|
-
),
|
|
45
|
-
l.style("position: relative;"),
|
|
46
|
-
D.dragover(a),
|
|
47
|
-
D.dragleave(h),
|
|
48
|
-
D.drop(_),
|
|
49
|
-
D.click(u),
|
|
50
|
-
D.keydown(I),
|
|
51
|
-
// Hidden file input
|
|
52
|
-
v.input(
|
|
53
|
-
l.type("file"),
|
|
54
|
-
l.disabled(g),
|
|
55
|
-
l.accept(n),
|
|
56
|
-
l.multiple(i),
|
|
57
|
-
l.style(
|
|
58
|
-
"position: absolute; left: -9999px; opacity: 0; pointer-events: none;"
|
|
59
|
-
),
|
|
60
|
-
D.change(y),
|
|
61
|
-
te((c) => (x = c, f.on((d) => {
|
|
62
|
-
const $ = globalThis.DataTransfer;
|
|
63
|
-
if ($ != null) {
|
|
64
|
-
const T = new $();
|
|
65
|
-
d.forEach((A) => T.items.add(A)), c.files = T.files;
|
|
66
|
-
}
|
|
67
|
-
}), z))
|
|
68
|
-
),
|
|
69
|
-
// Screen reader instructions
|
|
70
|
-
G.label(oe(m.$.dropZoneInstructions)(s)),
|
|
71
|
-
// Content
|
|
72
|
-
r({ files: f, clear: () => f.value = [], change: f.set })
|
|
73
|
-
);
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
function Je(t, e) {
|
|
77
|
-
return t.length === e.length && t.every((n, s) => n === e[s]);
|
|
78
|
-
}
|
|
79
|
-
function Xe(t, e) {
|
|
80
|
-
const n = ["bc-segmented-input", `bc-segmented-input--size-${t}`];
|
|
81
|
-
return e && n.push("bc-segmented-input--disabled"), n.join(" ");
|
|
82
|
-
}
|
|
83
|
-
function _t({
|
|
84
|
-
options: t,
|
|
85
|
-
value: e,
|
|
86
|
-
onChange: n,
|
|
87
|
-
size: s = "md",
|
|
88
|
-
disabled: r = !1
|
|
89
|
-
}, ...g) {
|
|
90
|
-
const i = je(t).map(([m, f]) => ({
|
|
91
|
-
key: m,
|
|
92
|
-
label: f
|
|
93
|
-
}));
|
|
94
|
-
return te(() => {
|
|
95
|
-
const m = Object.fromEntries(
|
|
96
|
-
i.map((b, a) => [b.key, a])
|
|
97
|
-
), f = ae(
|
|
98
|
-
i.map(() => ({ left: 0, width: 0 })),
|
|
99
|
-
Je
|
|
100
|
-
);
|
|
101
|
-
return v.div(
|
|
102
|
-
l.class(
|
|
103
|
-
M(
|
|
104
|
-
s,
|
|
105
|
-
r
|
|
106
|
-
)(
|
|
107
|
-
(b, a) => Xe(b ?? "md", a ?? !1)
|
|
108
|
-
)
|
|
109
|
-
),
|
|
110
|
-
v.div(
|
|
111
|
-
l.class("bc-segmented-input__container"),
|
|
112
|
-
v.div(
|
|
113
|
-
l.class("bc-segmented-input__indicator"),
|
|
114
|
-
we.width(
|
|
115
|
-
M(
|
|
116
|
-
e,
|
|
117
|
-
f
|
|
118
|
-
)((b, a) => {
|
|
119
|
-
const { width: h } = a[m[b] ?? 0];
|
|
120
|
-
return `${h}px`;
|
|
121
|
-
})
|
|
122
|
-
),
|
|
123
|
-
we.left(
|
|
124
|
-
M(
|
|
125
|
-
e,
|
|
126
|
-
f
|
|
127
|
-
)((b, a) => {
|
|
128
|
-
const { left: h } = a[m[b] ?? 0];
|
|
129
|
-
return `${h}px`;
|
|
130
|
-
})
|
|
131
|
-
)
|
|
132
|
-
),
|
|
133
|
-
// clickable buttons
|
|
134
|
-
i.map(({ label: b, key: a }, h) => v.button(
|
|
135
|
-
l.type("button"),
|
|
136
|
-
D.click((_) => {
|
|
137
|
-
_.preventDefault(), p.get(r) || n?.(a);
|
|
138
|
-
}),
|
|
139
|
-
l.disabled(r),
|
|
140
|
-
l.class("bc-segmented-input__segment"),
|
|
141
|
-
l.class(
|
|
142
|
-
p.map(e, (_) => _ === a ? "bc-segmented-input__segment--active" : "bc-segmented-input__segment--inactive")
|
|
143
|
-
),
|
|
144
|
-
Ze((_) => {
|
|
145
|
-
function u() {
|
|
146
|
-
f.update((y) => {
|
|
147
|
-
const I = [...y];
|
|
148
|
-
return I[h] = {
|
|
149
|
-
width: _.value.width,
|
|
150
|
-
left: _.value.localLeft
|
|
151
|
-
}, I;
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
const x = We(u);
|
|
155
|
-
return ne(x, _.on(u));
|
|
156
|
-
}),
|
|
157
|
-
b
|
|
158
|
-
))
|
|
159
|
-
),
|
|
160
|
-
...g
|
|
161
|
-
);
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
function Qe(t) {
|
|
165
|
-
const e = t.type.toLowerCase();
|
|
166
|
-
return e.startsWith("image/") && (e.includes("jpeg") || e.includes("jpg") || e.includes("png") || e.includes("gif") || e.includes("webp") || e.includes("svg"));
|
|
167
|
-
}
|
|
168
|
-
function Ke(t) {
|
|
169
|
-
const e = t.type.toLowerCase();
|
|
170
|
-
return e.startsWith("image/") ? "vscode-icons:file-type-image" : e.startsWith("video/") ? "vscode-icons:file-type-video" : e.startsWith("audio/") ? "vscode-icons:file-type-audio" : e.includes("pdf") ? "vscode-icons:file-type-pdf2" : e.includes("word") || e.includes("document") ? "vscode-icons:file-type-word" : e.includes("excel") || e.includes("spreadsheet") ? "vscode-icons:file-type-excel" : e.includes("powerpoint") || e.includes("presentation") ? "vscode-icons:file-type-powerpoint" : e.includes("zip") || e.includes("archive") ? "vscode-icons:file-type-zip" : e.includes("text") ? "vscode-icons:file-type-text" : e.includes("json") ? "vscode-icons:file-type-json-official" : e.includes("csv") ? "vscode-icons:file-type-csv" : e.includes("xml") ? "vscode-icons:file-type-xml" : e.includes("yaml") ? "vscode-icons:file-type-yaml-official" : "vscode-icons:file-type-binary";
|
|
171
|
-
}
|
|
172
|
-
function me(t) {
|
|
173
|
-
return U(
|
|
174
|
-
t.map(Qe),
|
|
175
|
-
() => {
|
|
176
|
-
const e = ae(null);
|
|
177
|
-
return t.on((n) => {
|
|
178
|
-
e.value && URL.revokeObjectURL(e.value);
|
|
179
|
-
const s = URL.createObjectURL(n);
|
|
180
|
-
e.value = s;
|
|
181
|
-
}), v.div(
|
|
182
|
-
ne(() => {
|
|
183
|
-
e.value && URL.revokeObjectURL(e.value);
|
|
184
|
-
}),
|
|
185
|
-
l.class("bc-file-input__thumbnail-container"),
|
|
186
|
-
v.img(
|
|
187
|
-
l.src(e),
|
|
188
|
-
l.alt(t.map((n) => n.name)),
|
|
189
|
-
l.class("bc-file-input__thumbnail")
|
|
190
|
-
)
|
|
191
|
-
);
|
|
192
|
-
},
|
|
193
|
-
() => O({ icon: t.map(Ke) })
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
const kt = (t, ...e) => {
|
|
197
|
-
const {
|
|
198
|
-
value: n = ae([]),
|
|
199
|
-
accept: s = "*/*",
|
|
200
|
-
maxFiles: r,
|
|
201
|
-
maxFileSize: g,
|
|
202
|
-
onChange: i,
|
|
203
|
-
onBlur: m,
|
|
204
|
-
disabled: f,
|
|
205
|
-
hasError: b,
|
|
206
|
-
mode: a = "default",
|
|
207
|
-
showFileList: h = !0,
|
|
208
|
-
..._
|
|
209
|
-
} = t, u = n, x = p.map(a, (C) => C === "input"), y = p.map(a, (C) => C === "compact"), I = (C) => {
|
|
210
|
-
let o = C;
|
|
211
|
-
if (r != null) {
|
|
212
|
-
const w = p.get(r);
|
|
213
|
-
o = o.slice(0, w);
|
|
214
|
-
}
|
|
215
|
-
if (g) {
|
|
216
|
-
const w = p.get(g);
|
|
217
|
-
o = o.filter((S) => S.size <= w);
|
|
218
|
-
}
|
|
219
|
-
i?.(o);
|
|
220
|
-
}, c = (C) => {
|
|
221
|
-
const w = u.value.filter((S, V) => V !== C);
|
|
222
|
-
i?.(w);
|
|
223
|
-
}, d = () => {
|
|
224
|
-
i?.([]);
|
|
225
|
-
}, $ = ({
|
|
226
|
-
files: C,
|
|
227
|
-
clear: o,
|
|
228
|
-
change: w
|
|
229
|
-
}) => F(
|
|
230
|
-
N,
|
|
231
|
-
(S) => v.div(
|
|
232
|
-
l.class("bc-file-input__drop-zone"),
|
|
233
|
-
v.div(
|
|
234
|
-
l.class(
|
|
235
|
-
"bc-file-input__drop-zone-content bc-file-input__drop-zone-content--empty"
|
|
236
|
-
),
|
|
237
|
-
O({ icon: "mdi:cloud-upload-outline", size: "xl" }),
|
|
238
|
-
v.div(
|
|
239
|
-
l.class("bc-file-input__drop-zone-text"),
|
|
240
|
-
oe(S.$.filesInputInstructions)(
|
|
241
|
-
r,
|
|
242
|
-
g,
|
|
243
|
-
S.$.fileSizeUnits.value
|
|
244
|
-
)
|
|
245
|
-
)
|
|
246
|
-
)
|
|
247
|
-
)
|
|
248
|
-
), T = ({
|
|
249
|
-
files: C
|
|
250
|
-
}) => F(
|
|
251
|
-
N,
|
|
252
|
-
(o) => v.div(
|
|
253
|
-
l.class("bc-file-input__compact-drop-zone"),
|
|
254
|
-
U(
|
|
255
|
-
C.map((w) => w.length > 0),
|
|
256
|
-
() => v.div(
|
|
257
|
-
l.class("bc-file-input__compact-file-list"),
|
|
258
|
-
K(C, (w, S) => {
|
|
259
|
-
const V = S.index;
|
|
260
|
-
return v.div(
|
|
261
|
-
l.class("bc-file-input__compact-file-item"),
|
|
262
|
-
v.div(
|
|
263
|
-
l.class("bc-file-input__compact-file-icon"),
|
|
264
|
-
me(w)
|
|
265
|
-
),
|
|
266
|
-
v.div(
|
|
267
|
-
l.class("bc-file-input__compact-file-info"),
|
|
268
|
-
v.div(
|
|
269
|
-
l.class("bc-file-input__compact-file-name"),
|
|
270
|
-
l.title(w.$.name),
|
|
271
|
-
w.$.name
|
|
272
|
-
),
|
|
273
|
-
v.div(
|
|
274
|
-
l.class("bc-file-input__compact-file-meta"),
|
|
275
|
-
M(
|
|
276
|
-
w.$.size,
|
|
277
|
-
o.$.fileSizeUnits
|
|
278
|
-
)((k, B) => De(k, { units: B })),
|
|
279
|
-
" • ",
|
|
280
|
-
M(
|
|
281
|
-
w.$.type,
|
|
282
|
-
o.$.unknownType
|
|
283
|
-
)((k, B) => k || B)
|
|
284
|
-
)
|
|
285
|
-
),
|
|
286
|
-
ce(
|
|
287
|
-
{
|
|
288
|
-
size: "sm",
|
|
289
|
-
label: o.$.removeFile,
|
|
290
|
-
disabled: f,
|
|
291
|
-
onClick: () => c(V)
|
|
292
|
-
},
|
|
293
|
-
l.class("bc-file-input__compact-remove-button")
|
|
294
|
-
)
|
|
295
|
-
);
|
|
296
|
-
})
|
|
297
|
-
),
|
|
298
|
-
() => v.div(
|
|
299
|
-
l.class("bc-file-input__compact-placeholder"),
|
|
300
|
-
O({ icon: "mdi:cloud-upload-outline", size: "lg" }),
|
|
301
|
-
v.div(
|
|
302
|
-
l.class("bc-file-input__compact-placeholder-text"),
|
|
303
|
-
oe(o.$.filesInputInstructions)(
|
|
304
|
-
r,
|
|
305
|
-
g,
|
|
306
|
-
o.$.fileSizeUnits.value
|
|
307
|
-
)
|
|
308
|
-
)
|
|
309
|
-
)
|
|
310
|
-
)
|
|
311
|
-
)
|
|
312
|
-
), A = ({
|
|
313
|
-
files: C
|
|
314
|
-
}) => F(
|
|
315
|
-
N,
|
|
316
|
-
(o) => v.div(
|
|
317
|
-
l.class("bc-file-input__compact-input"),
|
|
318
|
-
U(
|
|
319
|
-
C.map((w) => w.length > 0),
|
|
320
|
-
() => v.span(
|
|
321
|
-
l.class("bc-file-input__compact-value"),
|
|
322
|
-
K(
|
|
323
|
-
C,
|
|
324
|
-
(w) => v.span(
|
|
325
|
-
l.class("bc-file-input__compact-value-item"),
|
|
326
|
-
me(w),
|
|
327
|
-
v.span(
|
|
328
|
-
l.class("bc-file-input__compact-value-item-name"),
|
|
329
|
-
w.$.name
|
|
330
|
-
)
|
|
331
|
-
)
|
|
332
|
-
)
|
|
333
|
-
),
|
|
334
|
-
() => v.span(
|
|
335
|
-
l.class("bc-file-input__compact-placeholder"),
|
|
336
|
-
O({ icon: "mdi:cloud-upload-outline", size: "md" }),
|
|
337
|
-
" ",
|
|
338
|
-
oe(o.$.filesInputInstructions)(
|
|
339
|
-
r,
|
|
340
|
-
g,
|
|
341
|
-
o.$.fileSizeUnits.value
|
|
342
|
-
)
|
|
343
|
-
)
|
|
344
|
-
)
|
|
345
|
-
)
|
|
346
|
-
);
|
|
347
|
-
return F(
|
|
348
|
-
N,
|
|
349
|
-
(C) => W(
|
|
350
|
-
{
|
|
351
|
-
baseContainer: p.map(x, (o) => !o),
|
|
352
|
-
disabled: f,
|
|
353
|
-
hasError: b,
|
|
354
|
-
after: U(
|
|
355
|
-
x,
|
|
356
|
-
() => U(
|
|
357
|
-
u.map(({ length: o }) => o > 0),
|
|
358
|
-
() => ce(
|
|
359
|
-
{
|
|
360
|
-
size: "sm",
|
|
361
|
-
label: C.$.clearAllFiles,
|
|
362
|
-
disabled: f,
|
|
363
|
-
onClick: d
|
|
364
|
-
},
|
|
365
|
-
l.class("bc-file-input__compact-clear")
|
|
366
|
-
)
|
|
367
|
-
)
|
|
368
|
-
),
|
|
369
|
-
..._,
|
|
370
|
-
input: U(
|
|
371
|
-
x,
|
|
372
|
-
() => v.div(
|
|
373
|
-
l.class("bc-file-input bc-file-input--input"),
|
|
374
|
-
de({
|
|
375
|
-
value: u,
|
|
376
|
-
accept: s,
|
|
377
|
-
enableClick: !0,
|
|
378
|
-
allowMultiple: p.map(r ?? 1 / 0, (o) => o > 1),
|
|
379
|
-
disabled: f,
|
|
380
|
-
onChange: I,
|
|
381
|
-
content: A
|
|
382
|
-
})
|
|
383
|
-
),
|
|
384
|
-
() => U(
|
|
385
|
-
y,
|
|
386
|
-
() => v.div(
|
|
387
|
-
l.class("bc-file-input bc-file-input--compact"),
|
|
388
|
-
de({
|
|
389
|
-
value: u,
|
|
390
|
-
accept: s,
|
|
391
|
-
enableClick: !0,
|
|
392
|
-
allowMultiple: p.map(r ?? 1 / 0, (o) => o > 1),
|
|
393
|
-
disabled: f,
|
|
394
|
-
onChange: I,
|
|
395
|
-
content: T
|
|
396
|
-
})
|
|
397
|
-
),
|
|
398
|
-
() => v.div(
|
|
399
|
-
l.class("bc-file-input"),
|
|
400
|
-
de({
|
|
401
|
-
value: u,
|
|
402
|
-
accept: s,
|
|
403
|
-
enableClick: !0,
|
|
404
|
-
allowMultiple: p.map(r ?? 1 / 0, (o) => o > 1),
|
|
405
|
-
disabled: f,
|
|
406
|
-
onChange: I,
|
|
407
|
-
content: $
|
|
408
|
-
}),
|
|
409
|
-
U(
|
|
410
|
-
h,
|
|
411
|
-
() => Oe(
|
|
412
|
-
u,
|
|
413
|
-
() => E(
|
|
414
|
-
v.div(
|
|
415
|
-
l.class("bc-file-input__file-list"),
|
|
416
|
-
K(u, (o, w) => {
|
|
417
|
-
const S = w.index;
|
|
418
|
-
return v.div(
|
|
419
|
-
l.class("bc-file-input__file-item"),
|
|
420
|
-
v.div(
|
|
421
|
-
l.class("bc-file-input__file-icon"),
|
|
422
|
-
me(o)
|
|
423
|
-
),
|
|
424
|
-
v.div(
|
|
425
|
-
l.class("bc-file-input__file-info"),
|
|
426
|
-
v.div(
|
|
427
|
-
l.class("bc-file-input__file-name"),
|
|
428
|
-
l.title(o.$.name),
|
|
429
|
-
o.$.name
|
|
430
|
-
),
|
|
431
|
-
v.div(
|
|
432
|
-
l.class("bc-file-input__file-meta"),
|
|
433
|
-
M(
|
|
434
|
-
o.$.size,
|
|
435
|
-
C.$.fileSizeUnits
|
|
436
|
-
)(
|
|
437
|
-
(V, k) => De(V, { units: k })
|
|
438
|
-
),
|
|
439
|
-
" • ",
|
|
440
|
-
M(
|
|
441
|
-
o.$.type,
|
|
442
|
-
C.$.unknownType
|
|
443
|
-
)((V, k) => V || k)
|
|
444
|
-
)
|
|
445
|
-
),
|
|
446
|
-
ce(
|
|
447
|
-
{
|
|
448
|
-
size: "sm",
|
|
449
|
-
label: C.$.removeFile,
|
|
450
|
-
disabled: f,
|
|
451
|
-
onClick: () => c(S)
|
|
452
|
-
},
|
|
453
|
-
l.class("bc-file-input__remove-button")
|
|
454
|
-
)
|
|
455
|
-
);
|
|
456
|
-
})
|
|
457
|
-
),
|
|
458
|
-
U(
|
|
459
|
-
u.map(({ length: o }) => o > 1),
|
|
460
|
-
() => v.div(
|
|
461
|
-
l.class(
|
|
462
|
-
"bc-file-input__clear-all-button-container"
|
|
463
|
-
),
|
|
464
|
-
v.button(
|
|
465
|
-
l.type("button"),
|
|
466
|
-
l.class("bc-file-input__clear-all-button"),
|
|
467
|
-
l.disabled(f),
|
|
468
|
-
C.$.clearAllFiles,
|
|
469
|
-
D.click((o) => {
|
|
470
|
-
o.preventDefault(), o.stopPropagation(), d();
|
|
471
|
-
})
|
|
472
|
-
)
|
|
473
|
-
)
|
|
474
|
-
)
|
|
475
|
-
)
|
|
476
|
-
)
|
|
477
|
-
)
|
|
478
|
-
)
|
|
479
|
-
)
|
|
480
|
-
)
|
|
481
|
-
},
|
|
482
|
-
...e
|
|
483
|
-
)
|
|
484
|
-
);
|
|
485
|
-
}, ve = "$$tts-exp-", et = (t, e) => te((n) => {
|
|
486
|
-
const s = `${ve}${t}`;
|
|
487
|
-
return ne(p.on(e, (r) => Reflect.set(n, s, r)));
|
|
488
|
-
}), Ct = (t, e) => {
|
|
489
|
-
const n = `${ve}${t}`;
|
|
490
|
-
return (s) => {
|
|
491
|
-
e(Reflect.get(s.target, n));
|
|
492
|
-
};
|
|
493
|
-
}, tt = (t, e) => {
|
|
494
|
-
const n = `${ve}${t}`;
|
|
495
|
-
return (s) => {
|
|
496
|
-
const r = s.target, g = r.selectedIndex, i = r.options[g];
|
|
497
|
-
e(Reflect.get(i, n));
|
|
498
|
-
};
|
|
499
|
-
};
|
|
500
|
-
function re(...t) {
|
|
501
|
-
return v.div(l.class("bc-group"), ...t);
|
|
502
|
-
}
|
|
503
|
-
const Me = (t, e, n) => Ne(
|
|
504
|
-
t,
|
|
505
|
-
(s) => Re(s, {
|
|
506
|
-
value: (r) => {
|
|
507
|
-
const g = M(
|
|
508
|
-
r,
|
|
509
|
-
n
|
|
510
|
-
)((i, m) => e(i.value, m));
|
|
511
|
-
return v.option(
|
|
512
|
-
l.selected(g),
|
|
513
|
-
et("value", r.$.value),
|
|
514
|
-
r.$.label
|
|
515
|
-
);
|
|
516
|
-
},
|
|
517
|
-
group: (r) => v.optgroup(
|
|
518
|
-
l.label(r.$.group),
|
|
519
|
-
K(
|
|
520
|
-
r.$.options,
|
|
521
|
-
(g) => Me(
|
|
522
|
-
g,
|
|
523
|
-
e,
|
|
524
|
-
n
|
|
525
|
-
)
|
|
526
|
-
)
|
|
527
|
-
),
|
|
528
|
-
break: () => v.hr()
|
|
529
|
-
})
|
|
530
|
-
), nt = (t) => {
|
|
531
|
-
const {
|
|
532
|
-
value: e,
|
|
533
|
-
onBlur: n,
|
|
534
|
-
onChange: s,
|
|
535
|
-
options: r,
|
|
536
|
-
unselectedLabel: g,
|
|
537
|
-
equality: i = (b, a) => b === a,
|
|
538
|
-
after: m
|
|
539
|
-
} = t;
|
|
540
|
-
let f;
|
|
541
|
-
return W(
|
|
542
|
-
{
|
|
543
|
-
...t,
|
|
544
|
-
after: E(
|
|
545
|
-
He({
|
|
546
|
-
icon: "ph:caret-down-bold",
|
|
547
|
-
color: "neutral",
|
|
548
|
-
size: "sm"
|
|
549
|
-
}),
|
|
550
|
-
m
|
|
551
|
-
),
|
|
552
|
-
input: v.select(
|
|
553
|
-
te((b) => {
|
|
554
|
-
f = b;
|
|
555
|
-
const a = new MutationObserver((h) => {
|
|
556
|
-
const { removedNodes: _ } = h[0];
|
|
557
|
-
_.length > 0 && (f.selectedIndex = 0);
|
|
558
|
-
});
|
|
559
|
-
return a.observe(b, { childList: !0 }), ne(() => a.disconnect());
|
|
560
|
-
}),
|
|
561
|
-
Y(t),
|
|
562
|
-
l.class("bc-native-select bc-input"),
|
|
563
|
-
F(
|
|
564
|
-
N,
|
|
565
|
-
(b) => v.option(
|
|
566
|
-
l.hidden("hidden"),
|
|
567
|
-
Fe(g, b.$.selectOne)
|
|
568
|
-
)
|
|
569
|
-
),
|
|
570
|
-
K(r, (b) => Me(b, i, e)),
|
|
571
|
-
n != null ? D.blur(n) : z,
|
|
572
|
-
s != null ? D.change(tt("value", (b) => s(b))) : z
|
|
573
|
-
)
|
|
574
|
-
},
|
|
575
|
-
D.click(() => {
|
|
576
|
-
if (f?.focus(), typeof f?.showPicker == "function")
|
|
577
|
-
try {
|
|
578
|
-
f.showPicker();
|
|
579
|
-
} catch {
|
|
580
|
-
}
|
|
581
|
-
})
|
|
582
|
-
);
|
|
583
|
-
};
|
|
584
|
-
function lt(t) {
|
|
585
|
-
const { controller: e, onChange: n, onBlur: s, ...r } = t;
|
|
586
|
-
return nt({
|
|
587
|
-
...r,
|
|
588
|
-
value: e.signal,
|
|
589
|
-
onChange: Ge(e, n),
|
|
590
|
-
onBlur: qe(e, s)
|
|
591
|
-
});
|
|
592
|
-
}
|
|
593
|
-
function Dt(t) {
|
|
594
|
-
return Be({
|
|
595
|
-
...t,
|
|
596
|
-
content: lt(t)
|
|
597
|
-
});
|
|
598
|
-
}
|
|
599
|
-
function st(t, e, n) {
|
|
600
|
-
const s = t.length.map((r) => r);
|
|
601
|
-
return E(
|
|
602
|
-
Pe(
|
|
603
|
-
s,
|
|
604
|
-
(r) => {
|
|
605
|
-
const g = t.item(r.index), i = [];
|
|
606
|
-
return E(
|
|
607
|
-
ne(() => {
|
|
608
|
-
i.forEach((m) => m());
|
|
609
|
-
}),
|
|
610
|
-
e({
|
|
611
|
-
list: t,
|
|
612
|
-
item: g,
|
|
613
|
-
position: r,
|
|
614
|
-
remove: () => t.removeAt(r.index),
|
|
615
|
-
move: (m) => {
|
|
616
|
-
switch (m) {
|
|
617
|
-
case "up":
|
|
618
|
-
if (r.index === 0) return;
|
|
619
|
-
t.move(r.index, r.index - 1);
|
|
620
|
-
break;
|
|
621
|
-
case "down":
|
|
622
|
-
if (r.index === t.length.value - 1) return;
|
|
623
|
-
t.move(r.index, r.index + 1);
|
|
624
|
-
break;
|
|
625
|
-
case "first":
|
|
626
|
-
t.move(r.index, 0);
|
|
627
|
-
break;
|
|
628
|
-
case "last":
|
|
629
|
-
t.move(r.index, t.length.value - 1);
|
|
630
|
-
}
|
|
631
|
-
},
|
|
632
|
-
canMove: (m) => {
|
|
633
|
-
const f = (() => {
|
|
634
|
-
switch (m) {
|
|
635
|
-
case "up":
|
|
636
|
-
return _e(r.index > 0);
|
|
637
|
-
case "down":
|
|
638
|
-
return t.length.map((b) => r.index < b - 1);
|
|
639
|
-
}
|
|
640
|
-
})();
|
|
641
|
-
return i.push(() => f.dispose()), f;
|
|
642
|
-
},
|
|
643
|
-
cannotMove: (m) => {
|
|
644
|
-
const f = (() => {
|
|
645
|
-
switch (m) {
|
|
646
|
-
case "up":
|
|
647
|
-
return _e(r.index === 0);
|
|
648
|
-
case "down":
|
|
649
|
-
return t.length.map((b) => r.index === b - 1);
|
|
650
|
-
}
|
|
651
|
-
})();
|
|
652
|
-
return i.push(() => f.dispose()), f;
|
|
653
|
-
}
|
|
654
|
-
})
|
|
655
|
-
);
|
|
656
|
-
},
|
|
657
|
-
n
|
|
658
|
-
)
|
|
659
|
-
);
|
|
660
|
-
}
|
|
661
|
-
const $e = {
|
|
662
|
-
9: { pattern: /^[0-9]$/ },
|
|
663
|
-
A: { pattern: /^[A-Za-z]$/, transform: (t) => t.toUpperCase() },
|
|
664
|
-
"*": { pattern: /^.$/ }
|
|
665
|
-
}, rt = (t) => t instanceof RegExp;
|
|
666
|
-
function Ae(t, e, n) {
|
|
667
|
-
if (t == null) return [];
|
|
668
|
-
const s = n ? { ...$e, ...e } : e ?? $e, r = (i, m) => {
|
|
669
|
-
const f = s[m];
|
|
670
|
-
f ? i.push({ type: "pattern", name: m, ...f }) : i.push({ type: "literal", char: m });
|
|
671
|
-
}, g = [];
|
|
672
|
-
if (typeof t == "string") {
|
|
673
|
-
for (const i of t) r(g, i);
|
|
674
|
-
return g;
|
|
675
|
-
}
|
|
676
|
-
for (const i of t)
|
|
677
|
-
if (typeof i == "string")
|
|
678
|
-
if (i.length <= 1) r(g, i);
|
|
679
|
-
else for (const m of i) r(g, m);
|
|
680
|
-
else rt(i) ? g.push({ type: "pattern", pattern: i }) : typeof i == "object" && i && g.push(i);
|
|
681
|
-
return g;
|
|
682
|
-
}
|
|
683
|
-
function it(t, e) {
|
|
684
|
-
return (n) => {
|
|
685
|
-
switch (t) {
|
|
686
|
-
case "digits":
|
|
687
|
-
return /[0-9]/.test(n);
|
|
688
|
-
case "letters":
|
|
689
|
-
return /[A-Za-z]/.test(n);
|
|
690
|
-
case "alphanumeric":
|
|
691
|
-
return /[A-Za-z0-9]/.test(n);
|
|
692
|
-
case "custom":
|
|
693
|
-
return e?.(n) ?? !0;
|
|
694
|
-
default:
|
|
695
|
-
return !0;
|
|
696
|
-
}
|
|
697
|
-
};
|
|
698
|
-
}
|
|
699
|
-
function Te(t, e, n, s, r, g) {
|
|
700
|
-
const i = {
|
|
701
|
-
raw: t,
|
|
702
|
-
previousConformed: e,
|
|
703
|
-
cursor: r ?? t.length,
|
|
704
|
-
completed: !1
|
|
705
|
-
}, m = s.definitions ?? {}, f = typeof n == "function" ? n(t, i) : n, b = Ae(
|
|
706
|
-
f,
|
|
707
|
-
m,
|
|
708
|
-
s.useDefaultDefinitions ?? !0
|
|
709
|
-
), a = it(s.allowMode, s.allow), h = /* @__PURE__ */ new Set();
|
|
710
|
-
for (const k of b) k.type === "literal" && h.add(k.char);
|
|
711
|
-
if (s.prefix) for (const k of s.prefix) h.add(k);
|
|
712
|
-
if (s.suffix) for (const k of s.suffix) h.add(k);
|
|
713
|
-
const _ = Array.from(t).filter((k) => a(k) && !h.has(k));
|
|
714
|
-
if (_.length === 0) return { value: "", cursor: 0, completed: !1 };
|
|
715
|
-
const u = [], x = [];
|
|
716
|
-
let y = 0, I = 0, c = 0, d = -1;
|
|
717
|
-
for (const k of b) {
|
|
718
|
-
if (k.type === "literal") {
|
|
719
|
-
u.push(k.char), x.push({ kind: "literal", filled: !0 });
|
|
720
|
-
continue;
|
|
721
|
-
}
|
|
722
|
-
I += k.optional ? 0 : 1;
|
|
723
|
-
const B = _[y];
|
|
724
|
-
if (B == null)
|
|
725
|
-
break;
|
|
726
|
-
if (k.type === "any") {
|
|
727
|
-
c++, u.push(k.transform ? k.transform(B) : B), x.push({ kind: "slot", filled: !0 }), d = x.length - 1, y++;
|
|
728
|
-
continue;
|
|
729
|
-
}
|
|
730
|
-
if (k.type === "pattern")
|
|
731
|
-
if (k.pattern.test(B)) {
|
|
732
|
-
c++;
|
|
733
|
-
const R = k.transform ? k.transform(B) : B;
|
|
734
|
-
u.push(R), x.push({ kind: "slot", filled: !0 }), d = x.length - 1, y++;
|
|
735
|
-
} else {
|
|
736
|
-
y++;
|
|
737
|
-
continue;
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
const $ = u.join(""), T = (s.prefix ?? "") + $ + (s.suffix ?? "");
|
|
741
|
-
let C = (s.prefix ?? "").length;
|
|
742
|
-
if (d >= 0) {
|
|
743
|
-
let k = d + 1;
|
|
744
|
-
if ((g?.policy ?? "smart") !== "sticky")
|
|
745
|
-
for (; k < x.length && x[k].kind === "literal"; ) k++;
|
|
746
|
-
C += k;
|
|
747
|
-
}
|
|
748
|
-
const o = s.completion?.mode === "min" ? (s.completion.minChars ?? 0) <= c : s.completion?.mode === "custom" ? !!s.completion.isComplete?.(T) : I > 0 && c >= I, w = s.pipe?.(T, { ...i, completed: o });
|
|
749
|
-
let S, V = C;
|
|
750
|
-
return w === !1 ? (S = e, V = e.length) : typeof w == "string" ? (S = w, V = w.length) : typeof w == "object" && w ? (S = w.value, V = w.cursor ?? w.value.length) : S = T, { value: S, cursor: V, completed: o };
|
|
751
|
-
}
|
|
752
|
-
function ot(t, e) {
|
|
753
|
-
const n = e?.strategy ?? "none";
|
|
754
|
-
return n === "custom" && e?.unmask ? e.unmask(t) : n === "strip" ? t.replace(/[^A-Za-z0-9]/g, "") : t;
|
|
755
|
-
}
|
|
756
|
-
const Le = (t) => {
|
|
757
|
-
const {
|
|
758
|
-
value: e,
|
|
759
|
-
onBlur: n,
|
|
760
|
-
onChange: s,
|
|
761
|
-
onInput: r,
|
|
762
|
-
onAccept: g,
|
|
763
|
-
onComplete: i,
|
|
764
|
-
mask: m,
|
|
765
|
-
definitions: f,
|
|
766
|
-
useDefaultDefinitions: b,
|
|
767
|
-
extraLiterals: a,
|
|
768
|
-
prefix: h,
|
|
769
|
-
suffix: _,
|
|
770
|
-
autofix: u,
|
|
771
|
-
pipe: x,
|
|
772
|
-
completion: y,
|
|
773
|
-
unmask: I,
|
|
774
|
-
allowMode: c,
|
|
775
|
-
allow: d,
|
|
776
|
-
placeholder: $,
|
|
777
|
-
placeholderOptions: T
|
|
778
|
-
} = t, A = M(
|
|
779
|
-
e,
|
|
780
|
-
m,
|
|
781
|
-
f,
|
|
782
|
-
b,
|
|
783
|
-
a,
|
|
784
|
-
h,
|
|
785
|
-
_,
|
|
786
|
-
u,
|
|
787
|
-
y,
|
|
788
|
-
I,
|
|
789
|
-
c,
|
|
790
|
-
$,
|
|
791
|
-
T
|
|
792
|
-
)((o, w, S, V, k, B, R, J, X, q, Z, se, j) => w ? Te(o ?? "", "", w, {
|
|
793
|
-
definitions: S ?? {},
|
|
794
|
-
useDefaultDefinitions: V ?? !0,
|
|
795
|
-
extraLiterals: k ?? [],
|
|
796
|
-
autofix: J ?? "none",
|
|
797
|
-
completion: X ?? { mode: "mask" },
|
|
798
|
-
pipe: x ?? ((L) => L),
|
|
799
|
-
unmask: q ?? { strategy: "none" },
|
|
800
|
-
allowMode: Z ?? "all",
|
|
801
|
-
allow: d,
|
|
802
|
-
prefix: B,
|
|
803
|
-
suffix: R
|
|
804
|
-
}).value : o ?? ""), C = (o, w) => {
|
|
805
|
-
const S = o.value ?? "", V = p.get(e) ?? "", k = m != null ? p.get(m) : null, B = f != null ? p.get(f) : void 0, R = b != null ? p.get(b) : void 0, J = a != null ? p.get(a) : void 0, X = u != null ? p.get(u) : void 0, q = y != null ? p.get(y) : void 0, Z = I != null ? p.get(I) : void 0, se = c != null ? p.get(c) : void 0, j = h != null ? p.get(h) : void 0, L = _ != null ? p.get(_) : void 0, {
|
|
806
|
-
value: H,
|
|
807
|
-
cursor: ue,
|
|
808
|
-
completed: xe
|
|
809
|
-
} = k ? Te(
|
|
810
|
-
S,
|
|
811
|
-
V,
|
|
812
|
-
k,
|
|
813
|
-
{
|
|
814
|
-
definitions: B ?? {},
|
|
815
|
-
useDefaultDefinitions: R ?? !0,
|
|
816
|
-
extraLiterals: J ?? [],
|
|
817
|
-
autofix: X ?? "none",
|
|
818
|
-
completion: q ?? { mode: "mask" },
|
|
819
|
-
pipe: x ?? ((Ee) => Ee),
|
|
820
|
-
unmask: Z ?? { strategy: "none" },
|
|
821
|
-
allowMode: se ?? "all",
|
|
822
|
-
allow: d,
|
|
823
|
-
prefix: j,
|
|
824
|
-
suffix: L
|
|
825
|
-
},
|
|
826
|
-
o.selectionStart ?? S.length,
|
|
827
|
-
t.cursor ? p.get(t.cursor) : void 0
|
|
828
|
-
) : { value: S, cursor: S.length, completed: !0 };
|
|
829
|
-
if (H !== S) {
|
|
830
|
-
o.value = H;
|
|
831
|
-
try {
|
|
832
|
-
o.setSelectionRange(ue, ue);
|
|
833
|
-
} catch {
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
const ye = ot(H, Z);
|
|
837
|
-
g?.({
|
|
838
|
-
raw: ye,
|
|
839
|
-
conformed: H,
|
|
840
|
-
completed: xe,
|
|
841
|
-
cursor: ue
|
|
842
|
-
}), w === "input" ? r?.(H) : (s?.(H), xe && i?.({ raw: ye, conformed: H }));
|
|
843
|
-
};
|
|
844
|
-
return E(
|
|
845
|
-
W({
|
|
846
|
-
...t,
|
|
847
|
-
input: le.text(
|
|
848
|
-
Y(t),
|
|
849
|
-
l.value(A),
|
|
850
|
-
l.class("bc-input"),
|
|
851
|
-
n != null ? D.blur(n) : z,
|
|
852
|
-
te(
|
|
853
|
-
(o) => o instanceof HTMLInputElement ? E(
|
|
854
|
-
D.input(() => C(o, "input")),
|
|
855
|
-
D.change(() => C(o, "change")),
|
|
856
|
-
D.keydown((w) => {
|
|
857
|
-
if (w.key !== "Backspace" || !(t.cursor ? p.get(t.cursor)?.backspaceRubberBand ?? !0 : !0)) return;
|
|
858
|
-
const V = o.selectionStart ?? 0, k = o.selectionEnd ?? V;
|
|
859
|
-
if (V !== k || V <= 0) return;
|
|
860
|
-
const B = o.value ?? "", R = m != null ? p.get(m) : null;
|
|
861
|
-
if (!R) return;
|
|
862
|
-
const J = f != null ? p.get(f) : void 0, X = b != null ? p.get(b) : !0, q = h != null ? p.get(h) : void 0, Z = _ != null ? p.get(_) : void 0, se = Ae(
|
|
863
|
-
typeof R == "function" ? R(B, {
|
|
864
|
-
raw: B,
|
|
865
|
-
previousConformed: B,
|
|
866
|
-
cursor: V,
|
|
867
|
-
completed: !1
|
|
868
|
-
}) : R,
|
|
869
|
-
J ?? {},
|
|
870
|
-
X ?? !0
|
|
871
|
-
), j = /* @__PURE__ */ new Set();
|
|
872
|
-
for (const L of se)
|
|
873
|
-
L.type === "literal" && j.add(L.char);
|
|
874
|
-
if (q) for (const L of q) j.add(L);
|
|
875
|
-
if (Z) for (const L of Z) j.add(L);
|
|
876
|
-
if (j.has(B[V - 1])) {
|
|
877
|
-
let L = V - 1;
|
|
878
|
-
for (; L >= 0 && j.has(B[L]); ) L--;
|
|
879
|
-
L >= 0 && (w.preventDefault(), w.stopPropagation(), o.value = B.slice(0, L) + B.slice(L + 1), C(o, "input"));
|
|
880
|
-
}
|
|
881
|
-
})
|
|
882
|
-
) : z
|
|
883
|
-
)
|
|
884
|
-
)
|
|
885
|
-
})
|
|
886
|
-
);
|
|
887
|
-
};
|
|
888
|
-
function Ue(t, e, n) {
|
|
889
|
-
const s = p.map(t, (i) => i != null), r = M(
|
|
890
|
-
s,
|
|
891
|
-
e ?? !1
|
|
892
|
-
)((i, m) => !i || m), g = ge.clearValue;
|
|
893
|
-
return v.button(
|
|
894
|
-
l.type("button"),
|
|
895
|
-
l.class("bc-input-container__reset"),
|
|
896
|
-
G.label(g),
|
|
897
|
-
l.title(g),
|
|
898
|
-
l.disabled(r),
|
|
899
|
-
O({ icon: "mdi:close", size: "sm" }),
|
|
900
|
-
D.click((i) => {
|
|
901
|
-
i.stopPropagation(), n?.(null);
|
|
902
|
-
})
|
|
903
|
-
);
|
|
904
|
-
}
|
|
905
|
-
const It = (t) => {
|
|
906
|
-
const { value: e, onBlur: n, onChange: s, onInput: r, rows: g } = t;
|
|
907
|
-
return W({
|
|
908
|
-
baseContainer: !0,
|
|
909
|
-
...t,
|
|
910
|
-
input: v.textarea(
|
|
911
|
-
l.class(
|
|
912
|
-
M(t.size ?? "md")(
|
|
913
|
-
(i) => Ye(
|
|
914
|
-
!1,
|
|
915
|
-
i ?? "md"
|
|
916
|
-
)
|
|
917
|
-
)
|
|
918
|
-
),
|
|
919
|
-
Y(t),
|
|
920
|
-
l.rows(g ?? 3),
|
|
921
|
-
l.value(e),
|
|
922
|
-
l.class("bc-input"),
|
|
923
|
-
n != null ? D.blur(P(n)) : z,
|
|
924
|
-
s != null ? D.change(P(s)) : z,
|
|
925
|
-
r != null ? D.input(P(r)) : z
|
|
926
|
-
)
|
|
927
|
-
});
|
|
928
|
-
}, $t = (t) => {
|
|
929
|
-
const { value: e, step: n, min: s, max: r, onBlur: g, onChange: i, onInput: m, after: f } = t, b = (_) => {
|
|
930
|
-
const u = s != null ? p.get(s) : void 0, x = r != null ? p.get(r) : void 0;
|
|
931
|
-
return u != null && _ < u ? u : x != null && _ > x ? x : _;
|
|
932
|
-
}, a = n != null ? F(N, (_) => {
|
|
933
|
-
const u = M(
|
|
934
|
-
e,
|
|
935
|
-
s
|
|
936
|
-
)((c, d) => d == null ? !0 : (c ?? 0) > d), x = M(
|
|
937
|
-
e,
|
|
938
|
-
r
|
|
939
|
-
)((c, d) => d == null ? !0 : (c ?? 0) < d), y = (c) => {
|
|
940
|
-
const d = p.get(e) ?? 0, $ = p.get(n), T = c?.shiftKey ? 10 : 1, A = d - $ * T, C = s != null ? p.get(s) : void 0;
|
|
941
|
-
if (C != null && A < C)
|
|
942
|
-
return;
|
|
943
|
-
const o = b(A);
|
|
944
|
-
o !== d && i && i(o);
|
|
945
|
-
}, I = (c) => {
|
|
946
|
-
const d = p.get(e) ?? 0, $ = p.get(n), T = c?.shiftKey ? 10 : 1, A = d + $ * T, C = r != null ? p.get(r) : void 0;
|
|
947
|
-
if (C != null && A > C)
|
|
948
|
-
return;
|
|
949
|
-
const o = b(A);
|
|
950
|
-
o !== d && i && i(o);
|
|
951
|
-
};
|
|
952
|
-
return ee(
|
|
953
|
-
l.class("bc-number-input-steppers"),
|
|
954
|
-
// Increment second
|
|
955
|
-
v.button(
|
|
956
|
-
l.type("button"),
|
|
957
|
-
l.class(
|
|
958
|
-
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
|
|
959
|
-
),
|
|
960
|
-
l.disabled(
|
|
961
|
-
M(
|
|
962
|
-
x,
|
|
963
|
-
t.disabled ?? !1
|
|
964
|
-
)((c, d) => !c || d)
|
|
965
|
-
),
|
|
966
|
-
D.click((c) => I(c)),
|
|
967
|
-
G.label(_.$.incrementValue),
|
|
968
|
-
O({ icon: "line-md:plus", size: "xs" })
|
|
969
|
-
),
|
|
970
|
-
// Decrement first (matches tests expecting first button to be decrement)
|
|
971
|
-
v.button(
|
|
972
|
-
l.type("button"),
|
|
973
|
-
l.class(
|
|
974
|
-
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
|
|
975
|
-
),
|
|
976
|
-
l.disabled(
|
|
977
|
-
M(
|
|
978
|
-
u,
|
|
979
|
-
t.disabled ?? !1
|
|
980
|
-
)((c, d) => !c || d)
|
|
981
|
-
),
|
|
982
|
-
D.click((c) => y(c)),
|
|
983
|
-
G.label(_.$.decrementValue),
|
|
984
|
-
O({ icon: "line-md:minus", size: "xs" })
|
|
985
|
-
)
|
|
986
|
-
);
|
|
987
|
-
}) : null, h = f != null && a != null ? E(a, f) : f ?? a;
|
|
988
|
-
return W({
|
|
989
|
-
...t,
|
|
990
|
-
input: le.number(
|
|
991
|
-
s != null ? l.min(s) : z,
|
|
992
|
-
r != null ? l.max(r) : z,
|
|
993
|
-
Y(t),
|
|
994
|
-
l.valueAsNumber(e),
|
|
995
|
-
l.step(n),
|
|
996
|
-
l.class("bc-input bc-number-input"),
|
|
997
|
-
g != null ? D.blur(P(g)) : z,
|
|
998
|
-
i != null ? D.change(ke(i)) : z,
|
|
999
|
-
m != null ? D.input(ke(m)) : z,
|
|
1000
|
-
// Add wheel event support when step is defined
|
|
1001
|
-
n != null ? D.wheel((_) => {
|
|
1002
|
-
_.preventDefault();
|
|
1003
|
-
const u = p.get(e) ?? 0, x = p.get(n), y = _.shiftKey ? 10 : 1, I = _.deltaY < 0 ? x * y : -x * y, c = b(u + I);
|
|
1004
|
-
c !== u && i && i(c);
|
|
1005
|
-
}) : z
|
|
1006
|
-
),
|
|
1007
|
-
after: h
|
|
1008
|
-
});
|
|
1009
|
-
}, ze = (t) => {
|
|
1010
|
-
if (t == null || t === "") return null;
|
|
1011
|
-
const e = Number(t);
|
|
1012
|
-
return Number.isNaN(e) ? null : e;
|
|
1013
|
-
}, Tt = (t) => {
|
|
1014
|
-
const { value: e, step: n, min: s, max: r, onBlur: g, onChange: i, onInput: m, after: f } = t, b = (u) => {
|
|
1015
|
-
const x = s != null ? p.get(s) : void 0, y = r != null ? p.get(r) : void 0;
|
|
1016
|
-
return x != null && u < x ? x : y != null && u > y ? y : u;
|
|
1017
|
-
}, a = (() => {
|
|
1018
|
-
if (n == null) return null;
|
|
1019
|
-
const u = M(
|
|
1020
|
-
e,
|
|
1021
|
-
s
|
|
1022
|
-
)((d, $) => {
|
|
1023
|
-
const T = d ?? 0;
|
|
1024
|
-
return $ == null ? !0 : T > $;
|
|
1025
|
-
}), x = M(
|
|
1026
|
-
e,
|
|
1027
|
-
r
|
|
1028
|
-
)((d, $) => {
|
|
1029
|
-
const T = d ?? 0;
|
|
1030
|
-
return $ == null ? !0 : T < $;
|
|
1031
|
-
}), y = (d) => {
|
|
1032
|
-
const $ = p.get(e) ?? 0, T = p.get(n), A = d?.shiftKey ? 10 : 1, C = $ - T * A, o = s != null ? p.get(s) : void 0;
|
|
1033
|
-
if (o != null && C < o) return;
|
|
1034
|
-
const w = b(C);
|
|
1035
|
-
w !== $ && i && i(w);
|
|
1036
|
-
}, I = (d) => {
|
|
1037
|
-
const $ = p.get(e) ?? 0, T = p.get(n), A = d?.shiftKey ? 10 : 1, C = $ + T * A, o = r != null ? p.get(r) : void 0;
|
|
1038
|
-
if (o != null && C > o) return;
|
|
1039
|
-
const w = b(C);
|
|
1040
|
-
w !== $ && i && i(w);
|
|
1041
|
-
};
|
|
1042
|
-
return ((d, $) => ee(
|
|
1043
|
-
l.class("bc-number-input-steppers"),
|
|
1044
|
-
v.button(
|
|
1045
|
-
l.type("button"),
|
|
1046
|
-
l.class(
|
|
1047
|
-
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
|
|
1048
|
-
),
|
|
1049
|
-
l.disabled(
|
|
1050
|
-
M(
|
|
1051
|
-
x,
|
|
1052
|
-
t.disabled ?? !1
|
|
1053
|
-
)((T, A) => !T || A)
|
|
1054
|
-
),
|
|
1055
|
-
D.click((T) => I(T)),
|
|
1056
|
-
G.label(d),
|
|
1057
|
-
O({ icon: "line-md:plus", size: "xs" })
|
|
1058
|
-
),
|
|
1059
|
-
v.button(
|
|
1060
|
-
l.type("button"),
|
|
1061
|
-
l.class(
|
|
1062
|
-
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
|
|
1063
|
-
),
|
|
1064
|
-
l.disabled(
|
|
1065
|
-
M(
|
|
1066
|
-
u,
|
|
1067
|
-
t.disabled ?? !1
|
|
1068
|
-
)((T, A) => !T || A)
|
|
1069
|
-
),
|
|
1070
|
-
D.click((T) => y(T)),
|
|
1071
|
-
G.label($),
|
|
1072
|
-
O({ icon: "line-md:minus", size: "xs" })
|
|
1073
|
-
)
|
|
1074
|
-
))(
|
|
1075
|
-
ge.incrementValue,
|
|
1076
|
-
ge.decrementValue
|
|
1077
|
-
);
|
|
1078
|
-
})(), h = Ue(
|
|
1079
|
-
e,
|
|
1080
|
-
t.disabled,
|
|
1081
|
-
i ?? m
|
|
1082
|
-
), _ = f != null && a != null ? E(a, h, f) : f != null ? E(h, f) : a != null ? E(a, h) : h;
|
|
1083
|
-
return W({
|
|
1084
|
-
...t,
|
|
1085
|
-
input: le.number(
|
|
1086
|
-
// min/max attributes and reactive watchers (no forced correction)
|
|
1087
|
-
s != null ? l.min(s) : z,
|
|
1088
|
-
r != null ? l.max(r) : z,
|
|
1089
|
-
Y(t),
|
|
1090
|
-
// Represent null as empty string so the field can be cleared
|
|
1091
|
-
l.value(p.map(e, (u) => u == null ? "" : String(u))),
|
|
1092
|
-
l.step(n),
|
|
1093
|
-
l.class("bc-input bc-number-input"),
|
|
1094
|
-
g != null ? D.blur(P(g)) : z,
|
|
1095
|
-
i != null ? D.change(
|
|
1096
|
-
P((u) => {
|
|
1097
|
-
const x = ze(u);
|
|
1098
|
-
i(x);
|
|
1099
|
-
})
|
|
1100
|
-
) : z,
|
|
1101
|
-
m != null ? D.input(
|
|
1102
|
-
P((u) => {
|
|
1103
|
-
const x = ze(u);
|
|
1104
|
-
m(x);
|
|
1105
|
-
})
|
|
1106
|
-
) : z,
|
|
1107
|
-
// Wheel support when step is defined
|
|
1108
|
-
n != null ? D.wheel((u) => {
|
|
1109
|
-
u.preventDefault();
|
|
1110
|
-
const x = p.get(e) ?? 0, y = p.get(n), I = u.shiftKey ? 10 : 1, c = u.deltaY < 0 ? y * I : -y * I, d = b(x + c);
|
|
1111
|
-
d !== x && i && i(d);
|
|
1112
|
-
}) : z
|
|
1113
|
-
),
|
|
1114
|
-
after: _
|
|
1115
|
-
});
|
|
1116
|
-
}, zt = (t) => {
|
|
1117
|
-
const e = {
|
|
1118
|
-
type: "pattern",
|
|
1119
|
-
pattern: /[0-9A-Fa-f]/,
|
|
1120
|
-
transform: (s) => s.toLowerCase()
|
|
1121
|
-
};
|
|
1122
|
-
return Le({
|
|
1123
|
-
...t,
|
|
1124
|
-
mask: [
|
|
1125
|
-
e,
|
|
1126
|
-
e,
|
|
1127
|
-
e,
|
|
1128
|
-
e,
|
|
1129
|
-
e,
|
|
1130
|
-
e,
|
|
1131
|
-
e,
|
|
1132
|
-
e,
|
|
1133
|
-
"-",
|
|
1134
|
-
e,
|
|
1135
|
-
e,
|
|
1136
|
-
e,
|
|
1137
|
-
e,
|
|
1138
|
-
"-",
|
|
1139
|
-
e,
|
|
1140
|
-
e,
|
|
1141
|
-
e,
|
|
1142
|
-
e,
|
|
1143
|
-
"-",
|
|
1144
|
-
e,
|
|
1145
|
-
e,
|
|
1146
|
-
e,
|
|
1147
|
-
e,
|
|
1148
|
-
"-",
|
|
1149
|
-
e,
|
|
1150
|
-
e,
|
|
1151
|
-
e,
|
|
1152
|
-
e,
|
|
1153
|
-
e,
|
|
1154
|
-
e,
|
|
1155
|
-
e,
|
|
1156
|
-
e,
|
|
1157
|
-
e,
|
|
1158
|
-
e,
|
|
1159
|
-
e,
|
|
1160
|
-
e
|
|
1161
|
-
],
|
|
1162
|
-
// Sensible default placeholder; can be overridden via options.placeholder
|
|
1163
|
-
placeholder: t.placeholder ?? "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
1164
|
-
});
|
|
1165
|
-
};
|
|
1166
|
-
let be = null;
|
|
1167
|
-
async function he() {
|
|
1168
|
-
const t = globalThis;
|
|
1169
|
-
return t.Temporal ? t.Temporal : (be || (be = import("./index.esm-ChUrm4xR.js").then((e) => {
|
|
1170
|
-
const n = e.Temporal;
|
|
1171
|
-
return t.Temporal || (t.Temporal = n), n;
|
|
1172
|
-
})), be);
|
|
1173
|
-
}
|
|
1174
|
-
const ct = (t, e) => e ? Ce(he, {
|
|
1175
|
-
then: t,
|
|
1176
|
-
pending: e.pending,
|
|
1177
|
-
error: e.error
|
|
1178
|
-
}) : Ce(he, t), at = /^P(\d+([YMWD]|$)){0,4}(T(\d+([HMS]|$)){0,3})?$/i, ut = /^P(?:(\d+Y)?(\d+M)?(\d+W)?(\d+D)?)(T(\d+H)?(\d+M)?(\d+S)?)?$/i;
|
|
1179
|
-
function pt(t) {
|
|
1180
|
-
return {
|
|
1181
|
-
mask: null,
|
|
1182
|
-
allowMode: "custom",
|
|
1183
|
-
allow: (e) => /[0-9ptwdhms]/i.test(e),
|
|
1184
|
-
pipe: (e) => {
|
|
1185
|
-
const n = e.toUpperCase();
|
|
1186
|
-
return n.length === 0 ? n : !n.startsWith("P") || !at.test(n) ? !1 : n;
|
|
1187
|
-
},
|
|
1188
|
-
completion: {
|
|
1189
|
-
mode: "custom",
|
|
1190
|
-
isComplete: (e) => {
|
|
1191
|
-
const n = e.toUpperCase();
|
|
1192
|
-
if (!ut.test(n)) return !1;
|
|
1193
|
-
try {
|
|
1194
|
-
return t(n), !0;
|
|
1195
|
-
} catch {
|
|
1196
|
-
return !1;
|
|
1197
|
-
}
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
};
|
|
1201
|
-
}
|
|
1202
|
-
const Se = (t, e) => {
|
|
1203
|
-
if (t == null) return null;
|
|
1204
|
-
try {
|
|
1205
|
-
return t.Duration.from(e);
|
|
1206
|
-
} catch {
|
|
1207
|
-
return null;
|
|
1208
|
-
}
|
|
1209
|
-
}, St = (t) => {
|
|
1210
|
-
const { value: e, onChange: n, onInput: s, after: r, disabled: g, onBlur: i } = t, m = () => {
|
|
1211
|
-
const a = Ue(e, g, n ?? s);
|
|
1212
|
-
return r != null ? E(a, r) : a;
|
|
1213
|
-
}, f = t.placeholder != null ? z : l.placeholder("P0DT0H0M0S");
|
|
1214
|
-
return ct(
|
|
1215
|
-
(a) => Le({
|
|
1216
|
-
...t,
|
|
1217
|
-
value: p.map(e, (h) => h?.toString() ?? ""),
|
|
1218
|
-
onChange: n ? (h) => n(h === "" ? null : a.Duration.from(h)) : void 0,
|
|
1219
|
-
onInput: void 0,
|
|
1220
|
-
...pt(a.Duration.from),
|
|
1221
|
-
placeholder: "P0DT0H0M0S",
|
|
1222
|
-
after: m()
|
|
1223
|
-
}),
|
|
1224
|
-
{ pending: () => {
|
|
1225
|
-
const a = (h) => (_) => {
|
|
1226
|
-
const x = _.currentTarget?.value ?? "";
|
|
1227
|
-
if (x === "") {
|
|
1228
|
-
h(null);
|
|
1229
|
-
return;
|
|
1230
|
-
}
|
|
1231
|
-
const y = globalThis.Temporal, I = Se(y, x);
|
|
1232
|
-
if (I != null) {
|
|
1233
|
-
h(I);
|
|
1234
|
-
return;
|
|
1235
|
-
}
|
|
1236
|
-
he().then((c) => {
|
|
1237
|
-
const d = Se(c, x);
|
|
1238
|
-
d != null && h(d);
|
|
1239
|
-
}).catch(() => {
|
|
1240
|
-
});
|
|
1241
|
-
};
|
|
1242
|
-
return W({
|
|
1243
|
-
...t,
|
|
1244
|
-
input: le.text(
|
|
1245
|
-
Y(t),
|
|
1246
|
-
l.value(p.map(e, (h) => h?.toString() ?? "")),
|
|
1247
|
-
l.class("bc-input"),
|
|
1248
|
-
f,
|
|
1249
|
-
i != null ? D.blur(() => i()) : z,
|
|
1250
|
-
n != null ? D.change(a(n)) : z,
|
|
1251
|
-
s != null ? D.input(a(s)) : z
|
|
1252
|
-
),
|
|
1253
|
-
after: m()
|
|
1254
|
-
});
|
|
1255
|
-
} }
|
|
1256
|
-
);
|
|
1257
|
-
}, Vt = (t) => {
|
|
1258
|
-
const { value: e, onBlur: n, onChange: s, onInput: r } = t;
|
|
1259
|
-
return W({
|
|
1260
|
-
...t,
|
|
1261
|
-
input: le.url(
|
|
1262
|
-
Y(t),
|
|
1263
|
-
l.value(e),
|
|
1264
|
-
l.class("bc-input"),
|
|
1265
|
-
n != null ? D.blur(P(n)) : z,
|
|
1266
|
-
s != null ? D.change(P(s)) : z,
|
|
1267
|
-
r != null ? D.input(P(r)) : z
|
|
1268
|
-
)
|
|
1269
|
-
});
|
|
1270
|
-
}, ft = (t) => {
|
|
1271
|
-
const {
|
|
1272
|
-
controller: e,
|
|
1273
|
-
element: n,
|
|
1274
|
-
separator: s,
|
|
1275
|
-
showMove: r = !0,
|
|
1276
|
-
showRemove: g = !0,
|
|
1277
|
-
showAdd: i = !0,
|
|
1278
|
-
createItem: m,
|
|
1279
|
-
addLabel: f,
|
|
1280
|
-
controlsLayout: b = "aside",
|
|
1281
|
-
removeDisabled: a,
|
|
1282
|
-
addDisabled: h
|
|
1283
|
-
} = t, _ = p.toSignal(b).map((y) => y === "aside"), u = (y) => {
|
|
1284
|
-
const I = U(
|
|
1285
|
-
r ?? !1,
|
|
1286
|
-
() => v.div(
|
|
1287
|
-
l.class("bc-group--align-center"),
|
|
1288
|
-
l.class(
|
|
1289
|
-
_.map(
|
|
1290
|
-
(d) => d ? "bc-group--direction-column bc-group--gap-1" : "bc-group--direction-row bc-group--gap-1"
|
|
1291
|
-
)
|
|
1292
|
-
),
|
|
1293
|
-
pe(
|
|
1294
|
-
{
|
|
1295
|
-
size: "xs",
|
|
1296
|
-
roundedness: "full",
|
|
1297
|
-
variant: "text",
|
|
1298
|
-
onClick: () => y.move("up"),
|
|
1299
|
-
disabled: y.cannotMove("up")
|
|
1300
|
-
},
|
|
1301
|
-
F(
|
|
1302
|
-
N,
|
|
1303
|
-
(d) => O({
|
|
1304
|
-
size: "xs",
|
|
1305
|
-
icon: "line-md:arrow-up",
|
|
1306
|
-
title: d.$.incrementValue
|
|
1307
|
-
})
|
|
1308
|
-
)
|
|
1309
|
-
),
|
|
1310
|
-
pe(
|
|
1311
|
-
{
|
|
1312
|
-
size: "xs",
|
|
1313
|
-
roundedness: "full",
|
|
1314
|
-
variant: "text",
|
|
1315
|
-
onClick: () => y.move("down"),
|
|
1316
|
-
disabled: y.cannotMove("down")
|
|
1317
|
-
},
|
|
1318
|
-
F(
|
|
1319
|
-
N,
|
|
1320
|
-
(d) => O({
|
|
1321
|
-
size: "xs",
|
|
1322
|
-
icon: "line-md:arrow-down",
|
|
1323
|
-
title: d.$.decrementValue
|
|
1324
|
-
})
|
|
1325
|
-
)
|
|
1326
|
-
)
|
|
1327
|
-
)
|
|
1328
|
-
), c = U(
|
|
1329
|
-
g,
|
|
1330
|
-
() => F(
|
|
1331
|
-
N,
|
|
1332
|
-
(d) => ce({
|
|
1333
|
-
size: "xs",
|
|
1334
|
-
// Use a lowercase label to satisfy tests that query with [aria-label*="remove"]
|
|
1335
|
-
label: p.map(d.$.removeItem, ($) => $.toLowerCase()),
|
|
1336
|
-
color: "danger",
|
|
1337
|
-
disabled: a,
|
|
1338
|
-
onClick: y.remove
|
|
1339
|
-
})
|
|
1340
|
-
)
|
|
1341
|
-
);
|
|
1342
|
-
return (d) => U(
|
|
1343
|
-
_,
|
|
1344
|
-
() => re(
|
|
1345
|
-
l.class("bc-group--gap-1 bc-group--align-center"),
|
|
1346
|
-
ee(l.class("bc-stack--grow"), d),
|
|
1347
|
-
ee(
|
|
1348
|
-
l.class("bc-stack--align-center"),
|
|
1349
|
-
U(
|
|
1350
|
-
e.signal.map(($) => $.length > 1),
|
|
1351
|
-
() => I
|
|
1352
|
-
),
|
|
1353
|
-
c
|
|
1354
|
-
)
|
|
1355
|
-
),
|
|
1356
|
-
() => ee(
|
|
1357
|
-
l.class("bc-stack--gap-2"),
|
|
1358
|
-
d,
|
|
1359
|
-
re(
|
|
1360
|
-
l.class("bc-group--gap-2 bc-group--justify-between"),
|
|
1361
|
-
U(
|
|
1362
|
-
e.signal.map(($) => $.length > 1),
|
|
1363
|
-
() => I,
|
|
1364
|
-
() => v.div()
|
|
1365
|
-
),
|
|
1366
|
-
c
|
|
1367
|
-
)
|
|
1368
|
-
)
|
|
1369
|
-
);
|
|
1370
|
-
}, x = U(
|
|
1371
|
-
M(i, m)((y, I) => y && I != null),
|
|
1372
|
-
() => re(
|
|
1373
|
-
l.class(
|
|
1374
|
-
"bc-group--gap-2 bc-group--align-center bc-group--justify-center"
|
|
1375
|
-
),
|
|
1376
|
-
pe(
|
|
1377
|
-
{
|
|
1378
|
-
size: "sm",
|
|
1379
|
-
variant: "filled",
|
|
1380
|
-
onClick: () => e.push(m()),
|
|
1381
|
-
disabled: M(
|
|
1382
|
-
e.disabled,
|
|
1383
|
-
h ?? !1
|
|
1384
|
-
)(
|
|
1385
|
-
(y, I) => y || I
|
|
1386
|
-
)
|
|
1387
|
-
},
|
|
1388
|
-
F(
|
|
1389
|
-
N,
|
|
1390
|
-
(y) => re(
|
|
1391
|
-
l.class("bc-group--gap-2"),
|
|
1392
|
-
O({ icon: "line-md:plus" }),
|
|
1393
|
-
f ?? y.$.addLabel
|
|
1394
|
-
)
|
|
1395
|
-
)
|
|
1396
|
-
)
|
|
1397
|
-
)
|
|
1398
|
-
);
|
|
1399
|
-
return E(
|
|
1400
|
-
st(
|
|
1401
|
-
e,
|
|
1402
|
-
(y) => u(y)(n(y)),
|
|
1403
|
-
s
|
|
1404
|
-
),
|
|
1405
|
-
x
|
|
1406
|
-
);
|
|
1407
|
-
}, Bt = (t, ...e) => {
|
|
1408
|
-
const {
|
|
1409
|
-
controller: n,
|
|
1410
|
-
element: s,
|
|
1411
|
-
separator: r,
|
|
1412
|
-
showMove: g,
|
|
1413
|
-
showRemove: i,
|
|
1414
|
-
showAdd: m,
|
|
1415
|
-
createItem: f,
|
|
1416
|
-
addLabel: b,
|
|
1417
|
-
controlsLayout: a,
|
|
1418
|
-
removeDisabled: h,
|
|
1419
|
-
addDisabled: _,
|
|
1420
|
-
...u
|
|
1421
|
-
} = t;
|
|
1422
|
-
return Be(
|
|
1423
|
-
{
|
|
1424
|
-
...u,
|
|
1425
|
-
content: ft({
|
|
1426
|
-
controller: n,
|
|
1427
|
-
element: s,
|
|
1428
|
-
separator: r,
|
|
1429
|
-
showMove: g,
|
|
1430
|
-
showRemove: i,
|
|
1431
|
-
showAdd: m,
|
|
1432
|
-
createItem: f,
|
|
1433
|
-
addLabel: b,
|
|
1434
|
-
controlsLayout: a,
|
|
1435
|
-
removeDisabled: h,
|
|
1436
|
-
addDisabled: _
|
|
1437
|
-
})
|
|
1438
|
-
},
|
|
1439
|
-
...e
|
|
1440
|
-
);
|
|
1441
|
-
};
|
|
1442
|
-
class Mt extends fe {
|
|
1443
|
-
branches;
|
|
1444
|
-
activeBranch;
|
|
1445
|
-
#t;
|
|
1446
|
-
#e = /* @__PURE__ */ new Map();
|
|
1447
|
-
constructor(e, n, s, r, g, i, m = Q) {
|
|
1448
|
-
super(e, n, s, r, g, m), this.branches = i;
|
|
1449
|
-
const f = (a) => {
|
|
1450
|
-
for (const h of i)
|
|
1451
|
-
if (h.detect(a))
|
|
1452
|
-
return h.key;
|
|
1453
|
-
return i[0]?.key ?? "unknown";
|
|
1454
|
-
};
|
|
1455
|
-
this.activeBranch = s.map(f, Q);
|
|
1456
|
-
const b = (a) => {
|
|
1457
|
-
if (this.#e.has(a))
|
|
1458
|
-
return this.#e.get(a);
|
|
1459
|
-
const h = i.find((u) => u.key === a);
|
|
1460
|
-
if (!h)
|
|
1461
|
-
throw new Error(`Unknown branch: ${a}`);
|
|
1462
|
-
const _ = new fe(
|
|
1463
|
-
[...e, a],
|
|
1464
|
-
(u) => {
|
|
1465
|
-
this.change(u);
|
|
1466
|
-
},
|
|
1467
|
-
this.signal.map(
|
|
1468
|
-
(u) => h.detect(u) ? u : h.defaultValue(),
|
|
1469
|
-
m
|
|
1470
|
-
),
|
|
1471
|
-
r.map(Ie([a])),
|
|
1472
|
-
{
|
|
1473
|
-
disabled: this.disabled,
|
|
1474
|
-
validationMode: this.parent.validationMode
|
|
1475
|
-
},
|
|
1476
|
-
m
|
|
1477
|
-
);
|
|
1478
|
-
return this.#e.set(a, _), _;
|
|
1479
|
-
};
|
|
1480
|
-
this.#t = this.activeBranch.map(
|
|
1481
|
-
(a) => b(a),
|
|
1482
|
-
Q
|
|
1483
|
-
), this.onDispose(() => {
|
|
1484
|
-
for (const a of this.#e.values())
|
|
1485
|
-
a.dispose();
|
|
1486
|
-
this.#e.clear(), this.activeBranch.dispose(), this.#t.dispose();
|
|
1487
|
-
});
|
|
1488
|
-
}
|
|
1489
|
-
/**
|
|
1490
|
-
* Get the controller for the currently active branch
|
|
1491
|
-
*/
|
|
1492
|
-
get activeController() {
|
|
1493
|
-
return p.get(this.#t);
|
|
1494
|
-
}
|
|
1495
|
-
/**
|
|
1496
|
-
* Get a controller for a specific branch
|
|
1497
|
-
*/
|
|
1498
|
-
getBranchController(e) {
|
|
1499
|
-
const n = this.branches.find((r) => r.key === e);
|
|
1500
|
-
if (!n)
|
|
1501
|
-
throw new Error(`Unknown branch: ${e}`);
|
|
1502
|
-
if (this.#e.has(e))
|
|
1503
|
-
return this.#e.get(e);
|
|
1504
|
-
const s = new fe(
|
|
1505
|
-
[...this.path, e],
|
|
1506
|
-
(r) => {
|
|
1507
|
-
this.change(r);
|
|
1508
|
-
},
|
|
1509
|
-
this.signal.map(
|
|
1510
|
-
(r) => n.detect(r) ? r : n.defaultValue(),
|
|
1511
|
-
Q
|
|
1512
|
-
),
|
|
1513
|
-
this.status.map(Ie([e])),
|
|
1514
|
-
{
|
|
1515
|
-
disabled: this.disabled,
|
|
1516
|
-
validationMode: this.parent.validationMode
|
|
1517
|
-
},
|
|
1518
|
-
Q
|
|
1519
|
-
);
|
|
1520
|
-
return this.#e.set(e, s), s;
|
|
1521
|
-
}
|
|
1522
|
-
/**
|
|
1523
|
-
* Switch to a different branch
|
|
1524
|
-
*/
|
|
1525
|
-
switchToBranch(e, n = !1) {
|
|
1526
|
-
const s = this.branches.find((i) => i.key === e);
|
|
1527
|
-
if (!s)
|
|
1528
|
-
throw new Error(`Unknown branch: ${e}`);
|
|
1529
|
-
const r = p.get(this.signal);
|
|
1530
|
-
if (s.detect(r))
|
|
1531
|
-
return !0;
|
|
1532
|
-
if (s.convert) {
|
|
1533
|
-
const i = s.convert(r);
|
|
1534
|
-
if (i.ok)
|
|
1535
|
-
return this.change(i.value), !0;
|
|
1536
|
-
}
|
|
1537
|
-
if (n && typeof window == "object" && typeof window.confirm == "function" && !window.confirm(
|
|
1538
|
-
"Changing type will clear the current value. Continue?"
|
|
1539
|
-
))
|
|
1540
|
-
return !1;
|
|
1541
|
-
const g = s.defaultValue();
|
|
1542
|
-
return this.change(g), !0;
|
|
1543
|
-
}
|
|
1544
|
-
/**
|
|
1545
|
-
* Get the current active branch definition
|
|
1546
|
-
*/
|
|
1547
|
-
get activeBranchDefinition() {
|
|
1548
|
-
const e = p.get(this.activeBranch);
|
|
1549
|
-
return this.branches.find((n) => n.key === e);
|
|
1550
|
-
}
|
|
1551
|
-
}
|
|
1552
|
-
function At(t) {
|
|
1553
|
-
return t.transform(
|
|
1554
|
-
(e) => e ?? null,
|
|
1555
|
-
(e) => e ?? void 0
|
|
1556
|
-
);
|
|
1557
|
-
}
|
|
1558
|
-
function Lt(t) {
|
|
1559
|
-
return t.transform(
|
|
1560
|
-
(e) => e ?? "",
|
|
1561
|
-
(e) => e === "" ? void 0 : e
|
|
1562
|
-
);
|
|
1563
|
-
}
|
|
1564
|
-
function Ut(t) {
|
|
1565
|
-
return t.transform(
|
|
1566
|
-
(e) => e ?? void 0,
|
|
1567
|
-
(e) => e ?? null
|
|
1568
|
-
);
|
|
1569
|
-
}
|
|
1570
|
-
function ie(t) {
|
|
1571
|
-
return t !== null && typeof t == "object" && !Array.isArray(t) && Object.prototype.toString.call(t) === "[object Object]";
|
|
1572
|
-
}
|
|
1573
|
-
function dt(t, e) {
|
|
1574
|
-
if (e == null)
|
|
1575
|
-
return Ve(t);
|
|
1576
|
-
if (t == null)
|
|
1577
|
-
return e;
|
|
1578
|
-
if (ie(t) && ie(e)) {
|
|
1579
|
-
const n = { ...e };
|
|
1580
|
-
for (const s of Object.keys(t))
|
|
1581
|
-
n[s] === void 0 ? n[s] = Ve(t[s]) : ie(t[s]) && ie(n[s]) && (n[s] = dt(t[s], n[s]));
|
|
1582
|
-
return n;
|
|
1583
|
-
}
|
|
1584
|
-
return e;
|
|
1585
|
-
}
|
|
1586
|
-
function Ve(t) {
|
|
1587
|
-
return typeof structuredClone == "function" ? structuredClone(t) : JSON.parse(JSON.stringify(t));
|
|
1588
|
-
}
|
|
1589
|
-
export {
|
|
1590
|
-
ft as B,
|
|
1591
|
-
et as E,
|
|
1592
|
-
kt as F,
|
|
1593
|
-
re as G,
|
|
1594
|
-
Bt as L,
|
|
1595
|
-
Le as M,
|
|
1596
|
-
Ue as N,
|
|
1597
|
-
_t as S,
|
|
1598
|
-
It as T,
|
|
1599
|
-
zt as U,
|
|
1600
|
-
ct as W,
|
|
1601
|
-
Vt as a,
|
|
1602
|
-
Tt as b,
|
|
1603
|
-
$t as c,
|
|
1604
|
-
pt as d,
|
|
1605
|
-
St as e,
|
|
1606
|
-
nt as f,
|
|
1607
|
-
Dt as g,
|
|
1608
|
-
Mt as h,
|
|
1609
|
-
dt as i,
|
|
1610
|
-
At as j,
|
|
1611
|
-
de as k,
|
|
1612
|
-
Ut as l,
|
|
1613
|
-
st as m,
|
|
1614
|
-
lt as n,
|
|
1615
|
-
Ct as o,
|
|
1616
|
-
tt as p,
|
|
1617
|
-
he as q,
|
|
1618
|
-
Lt as t
|
|
1619
|
-
};
|