@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,17 +1,18 @@
|
|
|
1
|
-
import { g as Ae, B as mt, N as
|
|
2
|
-
import { o as
|
|
3
|
-
import { c as Te, m as be, g as Me, a as We, r as $e, e as It, f as je, b as Nt, S as Rt, h as ve, i as Vt, A as Et } from "../oneof-branch-detection-
|
|
4
|
-
import { n as
|
|
5
|
-
import { attr as j, Value as O, Fragment as W, WithElement as Le, Empty as Be, html as I, When as
|
|
1
|
+
import { g as Ae, B as mt, N as H, a as ce, b as yt, C as gt, c as ht, d as bt, e as vt, f as wt, h as St, i as At, S as jt, j as Ot, R as kt, k as Ct, E as Fe, W as Pt } from "../widget-customization-0is7oTeP.js";
|
|
2
|
+
import { o as Ir, m as Nr, n as Rr, l as Vr } from "../widget-customization-0is7oTeP.js";
|
|
3
|
+
import { c as Te, m as be, g as Me, a as We, r as $e, e as It, f as je, b as Nt, S as Rt, h as ve, i as Vt, A as Et } from "../oneof-branch-detection-BED_n2MT.js";
|
|
4
|
+
import { n as Fr, l as Tr, k as Mr, o as Wr, p as $r, q as Lr, j as Br } from "../oneof-branch-detection-BED_n2MT.js";
|
|
5
|
+
import { attr as j, Value as O, Fragment as W, WithElement as Le, Empty as Be, Use as K, html as I, When as ne, computedOf as M, prop as X, style as De, Ensure as xe, MapSignal as ie, Async as Ft, OnDispose as Tt } from "@tempots/dom";
|
|
6
6
|
import { _ as _e } from "../string-DYyMxBl-.js";
|
|
7
|
-
import { S as Mt,
|
|
8
|
-
import { S as U, L as
|
|
9
|
-
import { I as
|
|
7
|
+
import { S as Mt, b as Wt, N as Ue, t as te, W as $t, c as Lt, e as Q, T as Bt, U as Dt, f as de, g as xt, M as oe, h as _t, G as Ut, L as Kt, i as qt, j as Jt } from "../deep-merge-CmQoIYPC.js";
|
|
8
|
+
import { S as U, L as ee, M as zt, i as L } from "../stack-BJgsPJ9A.js";
|
|
9
|
+
import { I as se, b as A, M as fe, a as Oe, C as Ke, f as Ht, A as Gt, g as Xt } from "../use-form-BurzbPVV.js";
|
|
10
10
|
import { r as V } from "../utils-DEbsp9Q9.js";
|
|
11
|
-
import { T as Yt
|
|
12
|
-
import { P as Zt, E as Qt, N as
|
|
13
|
-
import { B as
|
|
14
|
-
import { l as
|
|
11
|
+
import { T as Yt } from "../text-input-CPJzUC2r.js";
|
|
12
|
+
import { P as Zt, E as Qt, N as qe } from "../notice-Dz4nX57_.js";
|
|
13
|
+
import { B as q } from "../translations-BGblCUBj.js";
|
|
14
|
+
import { l as Je } from "../colors-BmLYKmoH.js";
|
|
15
|
+
import { B as ze } from "../input-container-Nx0gMAzS.js";
|
|
15
16
|
function en(e) {
|
|
16
17
|
if (!e || typeof e != "object") return !1;
|
|
17
18
|
const t = e;
|
|
@@ -84,7 +85,7 @@ function He(e, t, n) {
|
|
|
84
85
|
}
|
|
85
86
|
return null;
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
+
function G(e, t, n) {
|
|
88
89
|
const r = /* @__PURE__ */ new Set();
|
|
89
90
|
if (!t || typeof t != "object")
|
|
90
91
|
return r;
|
|
@@ -113,15 +114,15 @@ function z(e, t, n) {
|
|
|
113
114
|
});
|
|
114
115
|
}
|
|
115
116
|
e.allOf && e.allOf.forEach((a) => {
|
|
116
|
-
typeof a == "object" &&
|
|
117
|
+
typeof a == "object" && G(a, t, n).forEach((l) => r.add(l));
|
|
117
118
|
});
|
|
118
119
|
const i = He(e, t, n);
|
|
119
|
-
i &&
|
|
120
|
+
i && G(i, t, n).forEach((o) => r.add(o));
|
|
120
121
|
const s = e.dependentSchemas;
|
|
121
122
|
return s && Object.keys(s).forEach((a) => {
|
|
122
123
|
if (a in t) {
|
|
123
124
|
const o = s[a];
|
|
124
|
-
typeof o == "object" &&
|
|
125
|
+
typeof o == "object" && G(
|
|
125
126
|
o,
|
|
126
127
|
t,
|
|
127
128
|
n
|
|
@@ -130,7 +131,7 @@ function z(e, t, n) {
|
|
|
130
131
|
}), e.dependencies && Object.keys(e.dependencies).forEach((a) => {
|
|
131
132
|
if (a in t) {
|
|
132
133
|
const o = e.dependencies[a];
|
|
133
|
-
typeof o == "object" && !Array.isArray(o) &&
|
|
134
|
+
typeof o == "object" && !Array.isArray(o) && G(o, t, n).forEach((u) => r.add(u));
|
|
134
135
|
}
|
|
135
136
|
}), r;
|
|
136
137
|
}
|
|
@@ -152,7 +153,7 @@ function B({
|
|
|
152
153
|
layout: e.horizontal ? "horizontal" : "vertical"
|
|
153
154
|
};
|
|
154
155
|
}
|
|
155
|
-
function
|
|
156
|
+
function re(e, t) {
|
|
156
157
|
if (e.default != null)
|
|
157
158
|
return t(e.default);
|
|
158
159
|
if (Array.isArray(e.examples))
|
|
@@ -163,10 +164,10 @@ function te(e, t) {
|
|
|
163
164
|
function Ge(e) {
|
|
164
165
|
return e == null ? 1 : Math.round(e);
|
|
165
166
|
}
|
|
166
|
-
function
|
|
167
|
+
function we(e) {
|
|
167
168
|
return e.isWriteOnly && !e.shouldShowWriteOnly;
|
|
168
169
|
}
|
|
169
|
-
function
|
|
170
|
+
function Se(e) {
|
|
170
171
|
return e.isReadOnly && !e.shouldIgnoreReadOnly || e.isDeprecated;
|
|
171
172
|
}
|
|
172
173
|
function E({
|
|
@@ -238,7 +239,7 @@ function Ye({
|
|
|
238
239
|
selector: n,
|
|
239
240
|
inner: r
|
|
240
241
|
}) {
|
|
241
|
-
return e.isRoot ? t ? U(j.class("bc-stack--gap-2"), n, r) : r :
|
|
242
|
+
return e.isRoot ? t ? U(j.class("bc-stack--gap-2"), n, r) : r : se({
|
|
242
243
|
...B({ ctx: e }),
|
|
243
244
|
content: t ? U(
|
|
244
245
|
j.class("bc-stack--gap-2 bc-stack--align-start"),
|
|
@@ -385,15 +386,15 @@ function ke({
|
|
|
385
386
|
options: t,
|
|
386
387
|
controller: n
|
|
387
388
|
}) {
|
|
388
|
-
const r = ln(e), i = !e.isNullable, s = () => i ?
|
|
389
|
+
const r = ln(e), i = !e.isNullable, s = () => i ? te(n) : n;
|
|
389
390
|
switch (r?.format) {
|
|
390
391
|
case "email":
|
|
391
|
-
return A(
|
|
392
|
+
return A(St, {
|
|
392
393
|
...t,
|
|
393
394
|
controller: s()
|
|
394
395
|
});
|
|
395
396
|
case "date":
|
|
396
|
-
return fe(
|
|
397
|
+
return fe(wt, {
|
|
397
398
|
...t,
|
|
398
399
|
controller: s(),
|
|
399
400
|
toInput: (a) => a == null ? null : new Date(a),
|
|
@@ -407,7 +408,7 @@ function ke({
|
|
|
407
408
|
fromInput: (a) => a?.toISOString() ?? null
|
|
408
409
|
});
|
|
409
410
|
case "time":
|
|
410
|
-
return A(
|
|
411
|
+
return A(H, {
|
|
411
412
|
...t,
|
|
412
413
|
controller: s(),
|
|
413
414
|
placeholder: "HH:MM:SS"
|
|
@@ -441,25 +442,25 @@ function ke({
|
|
|
441
442
|
placeholder: "https://example.com"
|
|
442
443
|
});
|
|
443
444
|
case "uri-reference":
|
|
444
|
-
return A(
|
|
445
|
+
return A(H, {
|
|
445
446
|
...t,
|
|
446
447
|
controller: s(),
|
|
447
448
|
placeholder: "Enter URL..."
|
|
448
449
|
});
|
|
449
450
|
case "hostname":
|
|
450
|
-
return A(
|
|
451
|
+
return A(H, {
|
|
451
452
|
...t,
|
|
452
453
|
controller: s(),
|
|
453
454
|
placeholder: "example.com"
|
|
454
455
|
});
|
|
455
456
|
case "ipv4":
|
|
456
|
-
return A(
|
|
457
|
+
return A(H, {
|
|
457
458
|
...t,
|
|
458
459
|
controller: s(),
|
|
459
460
|
placeholder: "192.168.1.1"
|
|
460
461
|
});
|
|
461
462
|
case "ipv6":
|
|
462
|
-
return A(
|
|
463
|
+
return A(H, {
|
|
463
464
|
...t,
|
|
464
465
|
controller: s(),
|
|
465
466
|
placeholder: "2001:db8::1"
|
|
@@ -497,7 +498,7 @@ function ke({
|
|
|
497
498
|
controller: s()
|
|
498
499
|
});
|
|
499
500
|
default:
|
|
500
|
-
return A(
|
|
501
|
+
return A(H, {
|
|
501
502
|
...t,
|
|
502
503
|
controller: s()
|
|
503
504
|
});
|
|
@@ -507,7 +508,7 @@ function pe({
|
|
|
507
508
|
ctx: e,
|
|
508
509
|
controller: t
|
|
509
510
|
}) {
|
|
510
|
-
if (
|
|
511
|
+
if (we(e))
|
|
511
512
|
return W();
|
|
512
513
|
const n = V(e.definition, e.name), r = n?.widget, i = E({
|
|
513
514
|
ctx: e,
|
|
@@ -518,8 +519,8 @@ function pe({
|
|
|
518
519
|
return i;
|
|
519
520
|
const s = {
|
|
520
521
|
...B({ ctx: e }),
|
|
521
|
-
placeholder:
|
|
522
|
-
disabled:
|
|
522
|
+
placeholder: re(e.definition, String),
|
|
523
|
+
disabled: Se(e)
|
|
523
524
|
};
|
|
524
525
|
if ((e.isNullable || e.isOptional) && !e.shouldShowPresenceToggle)
|
|
525
526
|
return ke({ ctx: e, options: s, controller: t });
|
|
@@ -542,27 +543,27 @@ function pe({
|
|
|
542
543
|
case "email":
|
|
543
544
|
return A(Qt, {
|
|
544
545
|
...s,
|
|
545
|
-
controller:
|
|
546
|
+
controller: Q(t)
|
|
546
547
|
});
|
|
547
548
|
case "password":
|
|
548
549
|
return A(Zt, {
|
|
549
550
|
...s,
|
|
550
|
-
controller:
|
|
551
|
+
controller: Q(t)
|
|
551
552
|
});
|
|
552
553
|
case "uuid":
|
|
553
554
|
return A(Dt, {
|
|
554
555
|
...s,
|
|
555
|
-
controller:
|
|
556
|
+
controller: Q(t)
|
|
556
557
|
});
|
|
557
558
|
case "textarea":
|
|
558
559
|
return A(Bt, {
|
|
559
560
|
...s,
|
|
560
|
-
controller:
|
|
561
|
+
controller: Q(t)
|
|
561
562
|
});
|
|
562
563
|
default:
|
|
563
564
|
return A(Yt, {
|
|
564
565
|
...s,
|
|
565
|
-
controller:
|
|
566
|
+
controller: Q(t)
|
|
566
567
|
});
|
|
567
568
|
}
|
|
568
569
|
}
|
|
@@ -584,7 +585,7 @@ function le({
|
|
|
584
585
|
ctx: e,
|
|
585
586
|
controller: t
|
|
586
587
|
}) {
|
|
587
|
-
if (
|
|
588
|
+
if (we(e))
|
|
588
589
|
return W();
|
|
589
590
|
const n = e.definition, r = cn(e), i = V(e.definition, e.name), s = E({
|
|
590
591
|
ctx: e,
|
|
@@ -595,11 +596,11 @@ function le({
|
|
|
595
596
|
return s;
|
|
596
597
|
const a = {
|
|
597
598
|
...B({ ctx: e }),
|
|
598
|
-
placeholder:
|
|
599
|
+
placeholder: re(e.definition, String),
|
|
599
600
|
min: n.minimum,
|
|
600
601
|
max: n.maximum,
|
|
601
602
|
step: n.multipleOf,
|
|
602
|
-
disabled:
|
|
603
|
+
disabled: Se(e)
|
|
603
604
|
}, o = (e.isNullable || e.isOptional) && !e.shouldShowPresenceToggle, l = o && !e.isNullable;
|
|
604
605
|
switch (r.widget) {
|
|
605
606
|
case "rating":
|
|
@@ -607,7 +608,7 @@ function le({
|
|
|
607
608
|
return o ? A(Ot, {
|
|
608
609
|
...a,
|
|
609
610
|
max: u,
|
|
610
|
-
controller: l ?
|
|
611
|
+
controller: l ? te(
|
|
611
612
|
t
|
|
612
613
|
) : t
|
|
613
614
|
}) : A(kt, {
|
|
@@ -618,7 +619,7 @@ function le({
|
|
|
618
619
|
case "slider":
|
|
619
620
|
return o ? A(At, {
|
|
620
621
|
...a,
|
|
621
|
-
controller: l ?
|
|
622
|
+
controller: l ? te(
|
|
622
623
|
t
|
|
623
624
|
) : t
|
|
624
625
|
}) : A(jt, {
|
|
@@ -649,7 +650,7 @@ function le({
|
|
|
649
650
|
default:
|
|
650
651
|
return o ? A(de, {
|
|
651
652
|
...a,
|
|
652
|
-
controller: l ?
|
|
653
|
+
controller: l ? te(
|
|
653
654
|
t
|
|
654
655
|
) : t
|
|
655
656
|
}) : A(xt, {
|
|
@@ -694,7 +695,7 @@ function ye({
|
|
|
694
695
|
ctx: e,
|
|
695
696
|
controller: t
|
|
696
697
|
}) {
|
|
697
|
-
if (
|
|
698
|
+
if (we(e))
|
|
698
699
|
return W();
|
|
699
700
|
const n = V(e.definition, e.name), r = E({
|
|
700
701
|
ctx: e,
|
|
@@ -705,7 +706,7 @@ function ye({
|
|
|
705
706
|
return r;
|
|
706
707
|
const i = {
|
|
707
708
|
...B({ ctx: e }),
|
|
708
|
-
disabled:
|
|
709
|
+
disabled: Se(e)
|
|
709
710
|
}, s = A(Oe, {
|
|
710
711
|
...i,
|
|
711
712
|
controller: t
|
|
@@ -739,25 +740,28 @@ function Ze({
|
|
|
739
740
|
function dn({
|
|
740
741
|
conflicts: e
|
|
741
742
|
}) {
|
|
742
|
-
return e.length === 0 ? Be :
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
(
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
743
|
+
return e.length === 0 ? Be : K(
|
|
744
|
+
q,
|
|
745
|
+
(t) => qe(
|
|
746
|
+
{
|
|
747
|
+
variant: "warning",
|
|
748
|
+
tone: "prominent",
|
|
749
|
+
title: t.value.schemaConflictsDetected,
|
|
750
|
+
class: "bc-schema-conflicts-banner"
|
|
751
|
+
},
|
|
752
|
+
I.ul(
|
|
753
|
+
j.style("margin: 0; padding-left: 1.25rem; list-style-type: disc;"),
|
|
754
|
+
...e.map(
|
|
755
|
+
(n) => I.li(
|
|
756
|
+
j.style("margin-bottom: 0.25rem;"),
|
|
757
|
+
n.message,
|
|
758
|
+
n.path.length > 0 ? I.code(
|
|
759
|
+
j.style(
|
|
760
|
+
"margin-left: 0.5rem; font-size: 0.75rem; opacity: 0.7;"
|
|
761
|
+
),
|
|
762
|
+
` (${n.path.join(".")})`
|
|
763
|
+
) : null
|
|
764
|
+
)
|
|
761
765
|
)
|
|
762
766
|
)
|
|
763
767
|
)
|
|
@@ -766,25 +770,28 @@ function dn({
|
|
|
766
770
|
function pn({
|
|
767
771
|
violations: e
|
|
768
772
|
}) {
|
|
769
|
-
return e.length === 0 ? Be :
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
(
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
773
|
+
return e.length === 0 ? Be : K(
|
|
774
|
+
q,
|
|
775
|
+
(t) => qe(
|
|
776
|
+
{
|
|
777
|
+
variant: "danger",
|
|
778
|
+
tone: "prominent",
|
|
779
|
+
title: t.value.schemaViolationsDetected,
|
|
780
|
+
class: "bc-not-violations-banner"
|
|
781
|
+
},
|
|
782
|
+
I.ul(
|
|
783
|
+
j.style("margin: 0; padding-left: 1.25rem; list-style-type: disc;"),
|
|
784
|
+
...e.map(
|
|
785
|
+
(n) => I.li(
|
|
786
|
+
j.style("margin-bottom: 0.25rem;"),
|
|
787
|
+
n.message,
|
|
788
|
+
n.path.length > 0 ? I.code(
|
|
789
|
+
j.style(
|
|
790
|
+
"margin-left: 0.5rem; font-size: 0.75rem; opacity: 0.7;"
|
|
791
|
+
),
|
|
792
|
+
` (${n.path.join(".")})`
|
|
793
|
+
) : null
|
|
794
|
+
)
|
|
788
795
|
)
|
|
789
796
|
)
|
|
790
797
|
)
|
|
@@ -810,7 +817,7 @@ function mn({
|
|
|
810
817
|
return U(
|
|
811
818
|
I.div(
|
|
812
819
|
j.class("bc-presence-toggle"),
|
|
813
|
-
|
|
820
|
+
se({
|
|
814
821
|
layout: "horizontal",
|
|
815
822
|
label: `Include ${i}`,
|
|
816
823
|
content: Ct({
|
|
@@ -820,7 +827,7 @@ function mn({
|
|
|
820
827
|
})
|
|
821
828
|
})
|
|
822
829
|
),
|
|
823
|
-
|
|
830
|
+
ne(r, () => n)
|
|
824
831
|
);
|
|
825
832
|
}
|
|
826
833
|
function N(e, t, n) {
|
|
@@ -969,19 +976,19 @@ function vn({
|
|
|
969
976
|
const i = Qe(e.definition);
|
|
970
977
|
if (!i)
|
|
971
978
|
return n;
|
|
972
|
-
const s = { ...Ne, ...r }, a =
|
|
979
|
+
const s = { ...Ne, ...r }, a = wn(t), o = bn(i, a);
|
|
973
980
|
switch (s.clearOnHide && o.on((l) => {
|
|
974
981
|
!l && t.signal.value !== void 0 && t.change(void 0);
|
|
975
982
|
}), s.behavior) {
|
|
976
983
|
case "unmount":
|
|
977
|
-
return
|
|
984
|
+
return ne(
|
|
978
985
|
o,
|
|
979
986
|
() => n,
|
|
980
987
|
() => W()
|
|
981
988
|
);
|
|
982
989
|
case "hide":
|
|
983
990
|
default:
|
|
984
|
-
return
|
|
991
|
+
return ne(
|
|
985
992
|
o,
|
|
986
993
|
() => n,
|
|
987
994
|
() => W(
|
|
@@ -994,10 +1001,10 @@ function vn({
|
|
|
994
1001
|
);
|
|
995
1002
|
}
|
|
996
1003
|
}
|
|
997
|
-
function
|
|
1004
|
+
function wn(e) {
|
|
998
1005
|
return e.signal;
|
|
999
1006
|
}
|
|
1000
|
-
function
|
|
1007
|
+
function Sn({
|
|
1001
1008
|
ctx: e,
|
|
1002
1009
|
controller: t
|
|
1003
1010
|
}) {
|
|
@@ -1009,7 +1016,7 @@ function wn({
|
|
|
1009
1016
|
if (r)
|
|
1010
1017
|
return r;
|
|
1011
1018
|
const s = e.definition.enum ?? [], a = (e.isNullable || e.isOptional) && !s.includes(null), o = !e.isNullable;
|
|
1012
|
-
return
|
|
1019
|
+
return K(q, (l) => {
|
|
1013
1020
|
const u = s.map((p) => ({
|
|
1014
1021
|
type: "value",
|
|
1015
1022
|
value: p,
|
|
@@ -1021,7 +1028,7 @@ function wn({
|
|
|
1021
1028
|
// We use null as the sentinel value internally
|
|
1022
1029
|
label: O.get(l.$.selectNone)
|
|
1023
1030
|
});
|
|
1024
|
-
const m = a && o ?
|
|
1031
|
+
const m = a && o ? te(
|
|
1025
1032
|
t
|
|
1026
1033
|
) : t;
|
|
1027
1034
|
return _t({
|
|
@@ -1049,7 +1056,7 @@ function An({
|
|
|
1049
1056
|
Le(() => {
|
|
1050
1057
|
O.get(t.signal) !== i.const && t.change(i.const);
|
|
1051
1058
|
}),
|
|
1052
|
-
Ut(zt(e.widgetLabel, ": "),
|
|
1059
|
+
Ut(zt(e.widgetLabel, ": "), ee(String(i.const)))
|
|
1053
1060
|
);
|
|
1054
1061
|
}
|
|
1055
1062
|
function tt(e, t, n) {
|
|
@@ -1061,7 +1068,7 @@ function tt(e, t, n) {
|
|
|
1061
1068
|
canRemove: o,
|
|
1062
1069
|
lockKeyAfterSet: l,
|
|
1063
1070
|
validatePropertyName: u
|
|
1064
|
-
} = n, m = r.field(e), p =
|
|
1071
|
+
} = n, m = r.field(e), p = X(e), c = X(null);
|
|
1065
1072
|
let h = a;
|
|
1066
1073
|
if (t) {
|
|
1067
1074
|
const v = Object.keys(s).find((g) => {
|
|
@@ -1089,10 +1096,10 @@ function tt(e, t, n) {
|
|
|
1089
1096
|
return;
|
|
1090
1097
|
}
|
|
1091
1098
|
c.set(null);
|
|
1092
|
-
const
|
|
1093
|
-
delete
|
|
1094
|
-
}, f =
|
|
1095
|
-
|
|
1099
|
+
const w = { ...O.get(r.signal) ?? {} }, S = w[e];
|
|
1100
|
+
delete w[e], w[g] = S, r.change(w);
|
|
1101
|
+
}, f = K(
|
|
1102
|
+
q,
|
|
1096
1103
|
(v) => Ke({
|
|
1097
1104
|
size: "xs",
|
|
1098
1105
|
label: v.$.removeItem,
|
|
@@ -1113,7 +1120,7 @@ function tt(e, t, n) {
|
|
|
1113
1120
|
return I.div(
|
|
1114
1121
|
j.class("bc-object-helpers__row"),
|
|
1115
1122
|
De.gridTemplateColumns("2fr 3fr min-content"),
|
|
1116
|
-
|
|
1123
|
+
se({
|
|
1117
1124
|
content: Fe({
|
|
1118
1125
|
value: p,
|
|
1119
1126
|
onChange: b,
|
|
@@ -1151,7 +1158,7 @@ function nt(e, t, n) {
|
|
|
1151
1158
|
canRemove: l,
|
|
1152
1159
|
lockKeyAfterSet: u,
|
|
1153
1160
|
validatePropertyName: m
|
|
1154
|
-
} = n, p = r.field(e), c =
|
|
1161
|
+
} = n, p = r.field(e), c = X(e), h = X(null);
|
|
1155
1162
|
let b;
|
|
1156
1163
|
if (o && typeof o == "object")
|
|
1157
1164
|
b = o;
|
|
@@ -1177,16 +1184,16 @@ function nt(e, t, n) {
|
|
|
1177
1184
|
y
|
|
1178
1185
|
))
|
|
1179
1186
|
return;
|
|
1180
|
-
const
|
|
1181
|
-
if (!
|
|
1182
|
-
h.set(
|
|
1187
|
+
const w = m(y);
|
|
1188
|
+
if (!w.ok) {
|
|
1189
|
+
h.set(w.message);
|
|
1183
1190
|
return;
|
|
1184
1191
|
}
|
|
1185
1192
|
h.set(null);
|
|
1186
|
-
const
|
|
1187
|
-
delete
|
|
1188
|
-
}, d =
|
|
1189
|
-
|
|
1193
|
+
const S = { ...O.get(r.signal) ?? {} }, C = S[e];
|
|
1194
|
+
delete S[e], S[y] = C, r.change(S);
|
|
1195
|
+
}, d = K(
|
|
1196
|
+
q,
|
|
1190
1197
|
(g) => Ke({
|
|
1191
1198
|
size: "xs",
|
|
1192
1199
|
label: g.$.removeItem,
|
|
@@ -1196,8 +1203,8 @@ function nt(e, t, n) {
|
|
|
1196
1203
|
onClick: () => {
|
|
1197
1204
|
const y = Object.keys(O.get(r.signal) ?? {}).length;
|
|
1198
1205
|
if (!l(y)) return;
|
|
1199
|
-
const
|
|
1200
|
-
delete
|
|
1206
|
+
const w = { ...O.get(r.signal) ?? {} };
|
|
1207
|
+
delete w[e], r.change(w);
|
|
1201
1208
|
}
|
|
1202
1209
|
})
|
|
1203
1210
|
), v = O.map(
|
|
@@ -1207,7 +1214,7 @@ function nt(e, t, n) {
|
|
|
1207
1214
|
return I.div(
|
|
1208
1215
|
j.class("bc-object-helpers__row"),
|
|
1209
1216
|
De.gridTemplateColumns("2fr 3fr min-content"),
|
|
1210
|
-
|
|
1217
|
+
se({
|
|
1211
1218
|
content: Fe({
|
|
1212
1219
|
value: c,
|
|
1213
1220
|
onChange: f,
|
|
@@ -1295,7 +1302,7 @@ function it(e, t) {
|
|
|
1295
1302
|
function st(e) {
|
|
1296
1303
|
const { minProps: t, apSchema: n, unevaluatedProps: r } = e;
|
|
1297
1304
|
return { canRemove: (o) => o > t, makeDefaultFor: (o) => {
|
|
1298
|
-
const l =
|
|
1305
|
+
const l = re(o, (m) => m);
|
|
1299
1306
|
if (l !== void 0) return l;
|
|
1300
1307
|
const u = o.type;
|
|
1301
1308
|
if (u === "string") return "";
|
|
@@ -1311,7 +1318,7 @@ function jn({
|
|
|
1311
1318
|
config: n,
|
|
1312
1319
|
effective: r
|
|
1313
1320
|
}) {
|
|
1314
|
-
const i =
|
|
1321
|
+
const i = Je(n.knownProps).filter(
|
|
1315
1322
|
([, o]) => o !== !1
|
|
1316
1323
|
), s = i.map(([o]) => o);
|
|
1317
1324
|
return { children: i.map(([o, l]) => {
|
|
@@ -1340,9 +1347,9 @@ function On({
|
|
|
1340
1347
|
for (; a.has(o + u) || !l(o + u); ) u++;
|
|
1341
1348
|
return o + u;
|
|
1342
1349
|
};
|
|
1343
|
-
return
|
|
1344
|
-
|
|
1345
|
-
(s) =>
|
|
1350
|
+
return K(
|
|
1351
|
+
q,
|
|
1352
|
+
(s) => ze(
|
|
1346
1353
|
{
|
|
1347
1354
|
variant: "outline",
|
|
1348
1355
|
disabled: O.map(
|
|
@@ -1369,7 +1376,7 @@ function at({
|
|
|
1369
1376
|
containerLayout: t,
|
|
1370
1377
|
content: n
|
|
1371
1378
|
}) {
|
|
1372
|
-
return !e.suppressLabel && e.name != null && (!t || !["fieldset", "group"].includes(t.format || "")) ?
|
|
1379
|
+
return !e.suppressLabel && e.name != null && (!t || !["fieldset", "group"].includes(t.format || "")) ? se({
|
|
1373
1380
|
...B({ ctx: e }),
|
|
1374
1381
|
content: n
|
|
1375
1382
|
}) : n;
|
|
@@ -1384,11 +1391,11 @@ function kn({
|
|
|
1384
1391
|
controller: t,
|
|
1385
1392
|
config: r,
|
|
1386
1393
|
effective: n
|
|
1387
|
-
}), l =
|
|
1394
|
+
}), l = ie(t.signal, (h) => {
|
|
1388
1395
|
const f = Object.keys(h ?? {}).filter((y) => !r.knownKeys.has(y));
|
|
1389
1396
|
if (f.length === 0)
|
|
1390
1397
|
return W();
|
|
1391
|
-
const d =
|
|
1398
|
+
const d = G(
|
|
1392
1399
|
n,
|
|
1393
1400
|
h ?? {},
|
|
1394
1401
|
e.ajv
|
|
@@ -1397,8 +1404,8 @@ function kn({
|
|
|
1397
1404
|
);
|
|
1398
1405
|
return W(
|
|
1399
1406
|
...g.map((y) => {
|
|
1400
|
-
const
|
|
1401
|
-
return tt(y,
|
|
1407
|
+
const w = r.patternList.some((S) => S.test(y));
|
|
1408
|
+
return tt(y, w, {
|
|
1402
1409
|
controller: t,
|
|
1403
1410
|
effCtx: e,
|
|
1404
1411
|
patternProps: r.patternProps,
|
|
@@ -1409,8 +1416,8 @@ function kn({
|
|
|
1409
1416
|
});
|
|
1410
1417
|
}),
|
|
1411
1418
|
...v.map((y) => {
|
|
1412
|
-
const
|
|
1413
|
-
return nt(y,
|
|
1419
|
+
const w = r.patternList.some((S) => S.test(y));
|
|
1420
|
+
return nt(y, w, {
|
|
1414
1421
|
controller: t,
|
|
1415
1422
|
effCtx: e,
|
|
1416
1423
|
patternProps: r.patternProps,
|
|
@@ -1442,7 +1449,7 @@ function Cn({
|
|
|
1442
1449
|
controller: t,
|
|
1443
1450
|
baseDef: n
|
|
1444
1451
|
}) {
|
|
1445
|
-
return
|
|
1452
|
+
return ie(t.signal, (r) => {
|
|
1446
1453
|
const { effective: i, conflicts: s } = nn(
|
|
1447
1454
|
n,
|
|
1448
1455
|
r,
|
|
@@ -1451,21 +1458,21 @@ function Cn({
|
|
|
1451
1458
|
), a = e.with({
|
|
1452
1459
|
definition: i,
|
|
1453
1460
|
schemaConflicts: [...e.schemaConflicts, ...s]
|
|
1454
|
-
}), o = rt(i), l = it(o, e.ajv), u = st(o), m = Object.keys(r ?? {}), p = m.filter((k) => !o.knownKeys.has(k)), c =
|
|
1461
|
+
}), o = rt(i), l = it(o, e.ajv), u = st(o), m = Object.keys(r ?? {}), p = m.filter((k) => !o.knownKeys.has(k)), c = G(
|
|
1455
1462
|
i,
|
|
1456
1463
|
r ?? {},
|
|
1457
1464
|
e.ajv
|
|
1458
1465
|
), h = p.filter((k) => !c.has(k)), b = p.filter(
|
|
1459
1466
|
(k) => c.has(k)
|
|
1460
1467
|
), f = o.apAllowed && o.canAddUnevaluated && m.length < o.maxProps, d = (k, F) => {
|
|
1461
|
-
const P = k, _ = (
|
|
1468
|
+
const P = k, _ = (z) => F.has(z) ? !1 : l(z).ok;
|
|
1462
1469
|
if (_(P)) return P;
|
|
1463
1470
|
let D = 1;
|
|
1464
1471
|
for (; F.has(P + D) || !_(P + D); ) D++;
|
|
1465
1472
|
return P + D;
|
|
1466
|
-
}, v =
|
|
1467
|
-
|
|
1468
|
-
(k) =>
|
|
1473
|
+
}, v = K(
|
|
1474
|
+
q,
|
|
1475
|
+
(k) => ze(
|
|
1469
1476
|
{
|
|
1470
1477
|
variant: "outline",
|
|
1471
1478
|
disabled: !f,
|
|
@@ -1475,9 +1482,9 @@ function Cn({
|
|
|
1475
1482
|
Object.keys(O.get(t.signal) ?? {})
|
|
1476
1483
|
), P = d("property", F);
|
|
1477
1484
|
if (!l(P).ok) return;
|
|
1478
|
-
const D = u.getValueSchemaForNew(),
|
|
1485
|
+
const D = u.getValueSchemaForNew(), z = u.makeDefaultFor(D), ae = {
|
|
1479
1486
|
...O.get(t.signal) ?? {},
|
|
1480
|
-
[P]:
|
|
1487
|
+
[P]: z
|
|
1481
1488
|
};
|
|
1482
1489
|
t.change(ae);
|
|
1483
1490
|
}
|
|
@@ -1485,9 +1492,9 @@ function Cn({
|
|
|
1485
1492
|
j.title(o.unevaluatedTooltip),
|
|
1486
1493
|
k.$.addLabel
|
|
1487
1494
|
)
|
|
1488
|
-
), g = Me(a), y =
|
|
1495
|
+
), g = Me(a), y = Je(o.knownProps).filter(
|
|
1489
1496
|
([, k]) => k !== !1
|
|
1490
|
-
),
|
|
1497
|
+
), S = [
|
|
1491
1498
|
...y.map(([k]) => k),
|
|
1492
1499
|
...b,
|
|
1493
1500
|
...h
|
|
@@ -1533,13 +1540,13 @@ function Cn({
|
|
|
1533
1540
|
}),
|
|
1534
1541
|
// Add affordance
|
|
1535
1542
|
o.apAllowed ? v : null
|
|
1536
|
-
].filter(Boolean),
|
|
1543
|
+
].filter(Boolean), J = We(
|
|
1537
1544
|
g,
|
|
1538
1545
|
a,
|
|
1539
1546
|
C,
|
|
1540
|
-
|
|
1547
|
+
S
|
|
1541
1548
|
);
|
|
1542
|
-
return at({ ctx: a, containerLayout: g, content:
|
|
1549
|
+
return at({ ctx: a, containerLayout: g, content: J });
|
|
1543
1550
|
});
|
|
1544
1551
|
}
|
|
1545
1552
|
function ot({
|
|
@@ -1664,7 +1671,7 @@ function Vn({
|
|
|
1664
1671
|
const i = e.definition.oneOf;
|
|
1665
1672
|
return lt({ ctx: e, controller: t, kind: "oneOf", variants: i });
|
|
1666
1673
|
}
|
|
1667
|
-
function
|
|
1674
|
+
function jr({
|
|
1668
1675
|
ctx: e,
|
|
1669
1676
|
controller: t
|
|
1670
1677
|
}) {
|
|
@@ -1707,7 +1714,7 @@ function lt({
|
|
|
1707
1714
|
return je(e, f, d);
|
|
1708
1715
|
}
|
|
1709
1716
|
return je(e, f, d);
|
|
1710
|
-
}), o = O.get(a), l =
|
|
1717
|
+
}), o = O.get(a), l = X(o >= 0 ? o : 0);
|
|
1711
1718
|
t.onDispose(l.dispose);
|
|
1712
1719
|
let u = !1;
|
|
1713
1720
|
const m = a.on((f) => {
|
|
@@ -1724,7 +1731,7 @@ function lt({
|
|
|
1724
1731
|
selected: l,
|
|
1725
1732
|
onChange: c
|
|
1726
1733
|
// auto mode chooses segmented for <=3
|
|
1727
|
-
}) : "", b =
|
|
1734
|
+
}) : "", b = ie(l, (f) => x({
|
|
1728
1735
|
ctx: e.with({
|
|
1729
1736
|
definition: r[O.get(f)],
|
|
1730
1737
|
// Suppress inner labels only when combinator is nested (non-root)
|
|
@@ -1788,7 +1795,7 @@ function x({
|
|
|
1788
1795
|
t,
|
|
1789
1796
|
N(
|
|
1790
1797
|
i,
|
|
1791
|
-
|
|
1798
|
+
Sn({
|
|
1792
1799
|
ctx: i,
|
|
1793
1800
|
controller: t
|
|
1794
1801
|
}),
|
|
@@ -2105,26 +2112,26 @@ function ut({
|
|
|
2105
2112
|
} catch {
|
|
2106
2113
|
}
|
|
2107
2114
|
else {
|
|
2108
|
-
const g = i.contains, y = (
|
|
2115
|
+
const g = i.contains, y = (w) => {
|
|
2109
2116
|
if (typeof g == "boolean") return g;
|
|
2110
2117
|
if (typeof g != "object" || g == null) return !1;
|
|
2111
|
-
const
|
|
2118
|
+
const S = g, C = S.type;
|
|
2112
2119
|
if (C === "integer" || C === "number")
|
|
2113
|
-
return !(typeof
|
|
2120
|
+
return !(typeof w != "number" || !Number.isFinite(w) || C === "integer" && !Number.isInteger(w) || typeof S.minimum == "number" && w < S.minimum || typeof S.exclusiveMinimum == "number" && w <= S.exclusiveMinimum || typeof S.maximum == "number" && w > S.maximum || typeof S.exclusiveMaximum == "number" && w >= S.exclusiveMaximum || typeof S.multipleOf == "number" && w % S.multipleOf !== 0);
|
|
2114
2121
|
if (C === "string") {
|
|
2115
|
-
if (typeof
|
|
2122
|
+
if (typeof w != "string" || typeof S.minLength == "number" && w.length < S.minLength || typeof S.maxLength == "number" && w.length > S.maxLength)
|
|
2116
2123
|
return !1;
|
|
2117
|
-
if (typeof
|
|
2124
|
+
if (typeof S.pattern == "string")
|
|
2118
2125
|
try {
|
|
2119
|
-
if (!new RegExp(
|
|
2126
|
+
if (!new RegExp(S.pattern).test(w)) return !1;
|
|
2120
2127
|
} catch {
|
|
2121
2128
|
}
|
|
2122
2129
|
return !0;
|
|
2123
2130
|
}
|
|
2124
2131
|
return !1;
|
|
2125
2132
|
};
|
|
2126
|
-
for (let
|
|
2127
|
-
y(c[
|
|
2133
|
+
for (let w = 0; w < c.length; w++)
|
|
2134
|
+
y(c[w]) && (h.add(w), b++);
|
|
2128
2135
|
}
|
|
2129
2136
|
const f = i.minContains ?? (i.contains ? 1 : 0), d = i.maxContains, v = b >= f && (d == null || b <= d);
|
|
2130
2137
|
return { matchingIndices: h, count: b, isValid: v, minContains: f, maxContains: d };
|
|
@@ -2143,10 +2150,10 @@ function ut({
|
|
|
2143
2150
|
const c = t.signal.value?.length ?? 0;
|
|
2144
2151
|
if (s.isTuple && c < s.prefixItems.length) {
|
|
2145
2152
|
const h = s.prefixItems[c];
|
|
2146
|
-
return
|
|
2153
|
+
return re(h, () => {
|
|
2147
2154
|
});
|
|
2148
2155
|
} else
|
|
2149
|
-
return
|
|
2156
|
+
return re(
|
|
2150
2157
|
s.additionalItemsSchema,
|
|
2151
2158
|
() => {
|
|
2152
2159
|
}
|
|
@@ -2168,40 +2175,40 @@ function ut({
|
|
|
2168
2175
|
}), g = l.map((C) => C.has(b)), y = u.map(
|
|
2169
2176
|
(C) => C.matchingIndices.has(b)
|
|
2170
2177
|
);
|
|
2171
|
-
let
|
|
2172
|
-
d && s.isTuple && (
|
|
2178
|
+
let w = v;
|
|
2179
|
+
d && s.isTuple && (w = U(
|
|
2173
2180
|
j.class("bc-stack--gap-1"),
|
|
2174
|
-
|
|
2175
|
-
|
|
2181
|
+
ee(j.class("bc-array-control__item-label"), d),
|
|
2182
|
+
w
|
|
2176
2183
|
));
|
|
2177
|
-
const
|
|
2178
|
-
return i.uniqueItems &&
|
|
2179
|
-
|
|
2184
|
+
const S = [];
|
|
2185
|
+
return i.uniqueItems && S.push(
|
|
2186
|
+
ne(
|
|
2180
2187
|
g,
|
|
2181
|
-
() =>
|
|
2188
|
+
() => ee(
|
|
2182
2189
|
j.class(
|
|
2183
2190
|
"bc-array-control__indicator bc-array-control__indicator--error"
|
|
2184
2191
|
),
|
|
2185
2192
|
"⚠️ Duplicate value"
|
|
2186
2193
|
)
|
|
2187
2194
|
)
|
|
2188
|
-
), i.contains &&
|
|
2189
|
-
|
|
2195
|
+
), i.contains && S.push(
|
|
2196
|
+
ne(
|
|
2190
2197
|
y,
|
|
2191
|
-
() =>
|
|
2198
|
+
() => ee(
|
|
2192
2199
|
j.class(
|
|
2193
2200
|
"bc-array-control__indicator bc-array-control__indicator--success"
|
|
2194
2201
|
),
|
|
2195
2202
|
"✓ Matches required pattern"
|
|
2196
2203
|
)
|
|
2197
2204
|
)
|
|
2198
|
-
),
|
|
2205
|
+
), S.length > 0 ? U(j.class("bc-stack--gap-1"), w, ...S) : w;
|
|
2199
2206
|
}
|
|
2200
2207
|
});
|
|
2201
2208
|
return i.contains && m ? U(
|
|
2202
2209
|
j.class("bc-stack--gap-2"),
|
|
2203
2210
|
p,
|
|
2204
|
-
|
|
2211
|
+
ie(
|
|
2205
2212
|
M(
|
|
2206
2213
|
u,
|
|
2207
2214
|
m
|
|
@@ -2209,7 +2216,7 @@ function ut({
|
|
|
2209
2216
|
info: c,
|
|
2210
2217
|
summary: h
|
|
2211
2218
|
})),
|
|
2212
|
-
({ info: c, summary: h }) =>
|
|
2219
|
+
({ info: c, summary: h }) => ee(
|
|
2213
2220
|
j.class(
|
|
2214
2221
|
c.isValid ? "bc-array-control__summary bc-array-control__summary--success" : "bc-array-control__summary bc-array-control__summary--error"
|
|
2215
2222
|
),
|
|
@@ -2260,7 +2267,7 @@ function ct({
|
|
|
2260
2267
|
mode: a.selector ?? "auto"
|
|
2261
2268
|
}), h = (f) => {
|
|
2262
2269
|
p.switchToBranch(f, a.confirmBranchChange);
|
|
2263
|
-
}, b =
|
|
2270
|
+
}, b = ie(p.activeBranch, (f) => {
|
|
2264
2271
|
const d = O.get(f), v = p.getBranchController(d);
|
|
2265
2272
|
if (u && (d === "number" || d === "integer")) {
|
|
2266
2273
|
const y = i;
|
|
@@ -2590,7 +2597,7 @@ class Kn {
|
|
|
2590
2597
|
getValidationState(t) {
|
|
2591
2598
|
return this.validationStates.has(t) || this.validationStates.set(
|
|
2592
2599
|
t,
|
|
2593
|
-
|
|
2600
|
+
X({
|
|
2594
2601
|
isValidating: !1,
|
|
2595
2602
|
result: L.valid,
|
|
2596
2603
|
lastValidatedValue: void 0,
|
|
@@ -2696,7 +2703,7 @@ class Kn {
|
|
|
2696
2703
|
this.validationStates.clear();
|
|
2697
2704
|
}
|
|
2698
2705
|
}
|
|
2699
|
-
function
|
|
2706
|
+
function Y(e) {
|
|
2700
2707
|
if (typeof e != "boolean")
|
|
2701
2708
|
return qn(e);
|
|
2702
2709
|
}
|
|
@@ -2716,7 +2723,7 @@ function qn(e) {
|
|
|
2716
2723
|
const t = e.oneOf ?? e.anyOf;
|
|
2717
2724
|
if (t && Array.isArray(t))
|
|
2718
2725
|
for (const n of t) {
|
|
2719
|
-
const r =
|
|
2726
|
+
const r = Y(n);
|
|
2720
2727
|
if (r !== void 0)
|
|
2721
2728
|
return r;
|
|
2722
2729
|
}
|
|
@@ -2726,7 +2733,7 @@ function Jn(e) {
|
|
|
2726
2733
|
const t = {};
|
|
2727
2734
|
let n = !1;
|
|
2728
2735
|
for (const r of e) {
|
|
2729
|
-
const i =
|
|
2736
|
+
const i = Y(r);
|
|
2730
2737
|
i !== void 0 && typeof i == "object" && i !== null && (Object.assign(t, i), n = !0);
|
|
2731
2738
|
}
|
|
2732
2739
|
return n ? t : void 0;
|
|
@@ -2758,7 +2765,7 @@ function Hn(e) {
|
|
|
2758
2765
|
for (const [i, s] of Object.entries(e.properties)) {
|
|
2759
2766
|
if (!t.has(i) || typeof s == "boolean")
|
|
2760
2767
|
continue;
|
|
2761
|
-
const a =
|
|
2768
|
+
const a = Y(s);
|
|
2762
2769
|
a !== void 0 && (n[i] = a, r = !0);
|
|
2763
2770
|
}
|
|
2764
2771
|
return r ? n : {};
|
|
@@ -2771,8 +2778,8 @@ function Gn(e) {
|
|
|
2771
2778
|
if (!n || typeof n == "boolean")
|
|
2772
2779
|
return Array(t).fill(null);
|
|
2773
2780
|
if (Array.isArray(n))
|
|
2774
|
-
return n.slice(0, t).map((i) =>
|
|
2775
|
-
const r =
|
|
2781
|
+
return n.slice(0, t).map((i) => Y(i) ?? null);
|
|
2782
|
+
const r = Y(n);
|
|
2776
2783
|
return Array(t).fill(r ?? null);
|
|
2777
2784
|
}
|
|
2778
2785
|
function Xn(e) {
|
|
@@ -2852,7 +2859,7 @@ function ir(e) {
|
|
|
2852
2859
|
}
|
|
2853
2860
|
return t;
|
|
2854
2861
|
}
|
|
2855
|
-
function
|
|
2862
|
+
function Or({
|
|
2856
2863
|
schema: e,
|
|
2857
2864
|
initialValue: t,
|
|
2858
2865
|
externalSchemas: n,
|
|
@@ -2864,7 +2871,7 @@ function jr({
|
|
|
2864
2871
|
applySchemaDefaults: l = !0,
|
|
2865
2872
|
submitting: u
|
|
2866
2873
|
}, m) {
|
|
2867
|
-
const p = t !== void 0 ? O.get(t) : void 0, c =
|
|
2874
|
+
const p = t !== void 0 ? O.get(t) : void 0, c = Y(e);
|
|
2868
2875
|
let h;
|
|
2869
2876
|
return t === void 0 ? h = c ?? {} : l ? h = Jt(
|
|
2870
2877
|
c,
|
|
@@ -2877,10 +2884,10 @@ function jr({
|
|
|
2877
2884
|
}),
|
|
2878
2885
|
(b) => {
|
|
2879
2886
|
if (b.ok) {
|
|
2880
|
-
const { ajv: f, validate: d } = b.value, v = Ln(e), g = Un(e), y = g.length > 0 ? new Kn() : null,
|
|
2887
|
+
const { ajv: f, validate: d } = b.value, v = Ln(e), g = Un(e), y = g.length > 0 ? new Kn() : null, w = s ?? "onTouched", S = (T) => {
|
|
2881
2888
|
const $ = d(T);
|
|
2882
|
-
let
|
|
2883
|
-
return $ ?
|
|
2889
|
+
let Z;
|
|
2890
|
+
return $ ? Z = L.valid : Z = ve(
|
|
2884
2891
|
d.errors ?? []
|
|
2885
2892
|
), v ? Dn(
|
|
2886
2893
|
T,
|
|
@@ -2888,12 +2895,12 @@ function jr({
|
|
|
2888
2895
|
// formData is the same as value for root-level validation
|
|
2889
2896
|
v,
|
|
2890
2897
|
d
|
|
2891
|
-
) :
|
|
2892
|
-
}, { controller: C, setStatus:
|
|
2898
|
+
) : Z;
|
|
2899
|
+
}, { controller: C, setStatus: J } = Xt({
|
|
2893
2900
|
initialValue: h,
|
|
2894
|
-
validationMode:
|
|
2901
|
+
validationMode: w,
|
|
2895
2902
|
validateDebounceMs: a,
|
|
2896
|
-
validate:
|
|
2903
|
+
validate: w === "onSubmit" ? void 0 : S
|
|
2897
2904
|
}), k = v ? _n(v) : null, F = i !== !1;
|
|
2898
2905
|
let P = !1;
|
|
2899
2906
|
const _ = F ? C.signal.on((T) => {
|
|
@@ -2904,15 +2911,15 @@ function jr({
|
|
|
2904
2911
|
}, D = k ? C.signal.on((T, $) => {
|
|
2905
2912
|
$ != null && JSON.stringify(T) !== JSON.stringify($) && setTimeout(() => {
|
|
2906
2913
|
const pt = C.status.value;
|
|
2907
|
-
|
|
2914
|
+
J(pt);
|
|
2908
2915
|
}, 10);
|
|
2909
2916
|
}) : () => {
|
|
2910
|
-
},
|
|
2917
|
+
}, z = y && g.length > 0 ? C.signal.on((T) => {
|
|
2911
2918
|
for (const $ of g)
|
|
2912
2919
|
y.validateField($, T, T);
|
|
2913
2920
|
}) : () => {
|
|
2914
2921
|
}, ae = () => {
|
|
2915
|
-
_(), D(),
|
|
2922
|
+
_(), D(), z(), y?.dispose(), C.dispose();
|
|
2916
2923
|
}, ft = o ? ir(o) : void 0, dt = W(
|
|
2917
2924
|
Tt(ae),
|
|
2918
2925
|
En({
|
|
@@ -2920,19 +2927,19 @@ function jr({
|
|
|
2920
2927
|
controller: C,
|
|
2921
2928
|
ajv: f,
|
|
2922
2929
|
widgetRegistry: ft,
|
|
2923
|
-
setStatus:
|
|
2930
|
+
setStatus: J,
|
|
2924
2931
|
formValue: C.signal,
|
|
2925
|
-
validationMode:
|
|
2932
|
+
validationMode: w,
|
|
2926
2933
|
submitting: u
|
|
2927
2934
|
})
|
|
2928
2935
|
);
|
|
2929
|
-
return m({ Form: dt, controller: C, setStatus:
|
|
2936
|
+
return m({ Form: dt, controller: C, setStatus: J });
|
|
2930
2937
|
}
|
|
2931
2938
|
return I.div(j.class("bc-json-schema-form__error"), b.error);
|
|
2932
2939
|
}
|
|
2933
2940
|
);
|
|
2934
2941
|
}
|
|
2935
|
-
function
|
|
2942
|
+
function kr(e, t) {
|
|
2936
2943
|
const r = (t?.ajv ?? new Et({ allErrors: !0 })).compile(e);
|
|
2937
2944
|
return {
|
|
2938
2945
|
"~standard": {
|
|
@@ -2975,15 +2982,15 @@ function ur(e) {
|
|
|
2975
2982
|
return /^\d+$/.test(e);
|
|
2976
2983
|
}
|
|
2977
2984
|
export {
|
|
2978
|
-
|
|
2985
|
+
jr as JSONSchemaAllOf,
|
|
2979
2986
|
ue as JSONSchemaAny,
|
|
2980
2987
|
Rn as JSONSchemaAnyOf,
|
|
2981
2988
|
ut as JSONSchemaArray,
|
|
2982
2989
|
ye as JSONSchemaBoolean,
|
|
2983
2990
|
An as JSONSchemaConst,
|
|
2984
2991
|
En as JSONSchemaControl,
|
|
2985
|
-
|
|
2986
|
-
|
|
2992
|
+
Sn as JSONSchemaEnum,
|
|
2993
|
+
Or as JSONSchemaForm,
|
|
2987
2994
|
x as JSONSchemaGenericControl,
|
|
2988
2995
|
me as JSONSchemaInteger,
|
|
2989
2996
|
Ze as JSONSchemaNull,
|
|
@@ -2994,25 +3001,25 @@ export {
|
|
|
2994
3001
|
ct as JSONSchemaUnion,
|
|
2995
3002
|
Rt as SchemaContext,
|
|
2996
3003
|
ve as ajvErrorsToControllerValidation,
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3004
|
+
Fr as ajvErrorsToDependencies,
|
|
3005
|
+
Tr as buildMessage,
|
|
3006
|
+
Mr as buildPath,
|
|
3007
|
+
Wr as clearCaches,
|
|
3008
|
+
$r as clearCachesForAjv,
|
|
3002
3009
|
Te as compileWithCache,
|
|
3003
3010
|
nn as composeEffectiveObjectSchema,
|
|
3004
|
-
|
|
3005
|
-
|
|
3011
|
+
kr as createAJVStandardSchema,
|
|
3012
|
+
Ir as createDiagnosticWidget,
|
|
3006
3013
|
He as evaluateIfThenElseOverlay,
|
|
3007
3014
|
tn as evaluateNotViolation,
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3015
|
+
Y as extractSchemaDefaults,
|
|
3016
|
+
Nr as forFormat,
|
|
3017
|
+
Rr as forTypeAndFormat,
|
|
3018
|
+
Vr as forXUI,
|
|
3012
3019
|
Vt as getAjvForSchema,
|
|
3013
|
-
|
|
3014
|
-
|
|
3020
|
+
Lr as getCacheStats,
|
|
3021
|
+
G as getEvaluatedProperties,
|
|
3015
3022
|
en as hasConditionalFeatures,
|
|
3016
|
-
|
|
3023
|
+
Br as jsonPointerToSegments,
|
|
3017
3024
|
be as mergeAllOf
|
|
3018
3025
|
};
|