@tempots/beatui 0.82.1 → 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/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 +33 -32
- package/dist/{auth-divider-Wr-S16kF.js → auth-divider-C3_CgC0l.js} +589 -569
- package/dist/auth-divider-C4WTL71M.cjs +1 -0
- package/dist/beatui.css +5678 -1438
- package/dist/beatui.tailwind.css +5662 -1422
- package/dist/better-auth/index.cjs.js +1 -1
- package/dist/better-auth/index.es.js +18 -31
- 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-B9UNmUCh.cjs → duration-input-BJzKgI15.cjs} +1 -1
- package/dist/{duration-input-DqcJbxKD.js → duration-input-DaB6s0rL.js} +4 -4
- 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/{index-Bt7FYl80.cjs → index-Bm43lZqE.cjs} +2 -2
- package/dist/{index-05UbKOYe.cjs → index-C2_iX1um.cjs} +1 -1
- package/dist/{index-C2Lq1m45.js → index-C32iUFIr.js} +5 -5
- package/dist/{index-lYhXnu6I.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 +6220 -3084
- package/dist/input-container-CSi72GI1.cjs +1 -0
- package/dist/{input-container-DiCjOzR2.js → input-container-Nx0gMAzS.js} +86 -75
- 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 +191 -185
- 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 +679 -660
- 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 +31 -31
- package/dist/lexical/index.es.js +5248 -5221
- package/dist/lexical.css +5 -7
- package/dist/menu-CX72LaZ3.cjs +1 -0
- package/dist/menu-D_slbwl8.js +374 -0
- package/dist/{modal-v3u2Fpnd.js → modal-DaI1jH-X.js} +4 -4
- package/dist/{modal-I5srcntN.cjs → modal-kyZfvVZb.cjs} +1 -1
- 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-CLDdy1MW.cjs → notice-Bc1L4Zpr.cjs} +1 -1
- package/dist/{notice-BuZvdvZh.js → notice-Dz4nX57_.js} +4 -4
- package/dist/{oneof-branch-detection-Dt8ss9lc.js → oneof-branch-detection-BED_n2MT.js} +522 -519
- package/dist/{oneof-branch-detection-DsM1K5xc.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/{styles-url-B2dzXrYt.cjs → styles-url-CVCcF0ra.cjs} +1 -1
- package/dist/{styles-url-Cw_mxshe.js → styles-url-DUdp56Ts.js} +1 -1
- 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-D994_E_s.js → toolbar-CjQG7l7X.js} +1 -1
- package/dist/{toolbar-x0_8lmKu.cjs → toolbar-D3ZsC0g_.cjs} +1 -1
- 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/components/authenticated.d.ts +2 -2
- package/dist/types/better-auth/components/better-auth-container.d.ts +1 -1
- package/dist/types/better-auth/components/better-auth-modal.d.ts +1 -1
- package/dist/types/better-auth/index.d.ts +13 -0
- package/dist/types/better-auth/provider.d.ts +33 -0
- package/dist/types/better-auth/types.d.ts +112 -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 +299 -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/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/deprecation-utils.d.ts +2 -3
- 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/code/language-selector.d.ts +2 -2
- package/dist/types/components/lexical/floating/block-handle.d.ts +2 -2
- package/dist/types/components/lexical/floating/floating-toolbar.d.ts +2 -2
- package/dist/types/components/lexical/floating/slash-command-palette.d.ts +2 -2
- package/dist/types/components/lexical/table/table-controls.d.ts +2 -2
- package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +2 -2
- package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +4 -2
- 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 +10 -0
- package/dist/types/components/prosemirror/etoolbar-group.d.ts +10 -0
- 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/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-B56E_x5Y.js → use-form-BurzbPVV.js} +190 -2
- package/dist/{use-form-Cnp3XQ5X.cjs → use-form-Uree6QFy.cjs} +1 -1
- 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-Ds9sicAg.js → widget-customization-0is7oTeP.js} +205 -204
- 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 +1 -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/auth-divider-BqZPH1-z.cjs +0 -1
- package/dist/de-BUFLEyKr.cjs +0 -1
- package/dist/de-WzsOu9Gn.cjs +0 -1
- package/dist/deep-merge-BYm0y62g.js +0 -1620
- package/dist/deep-merge-d7sf0xmN.cjs +0 -1
- package/dist/editor-toolbar-group--a-xgsJw.cjs +0 -1
- package/dist/editor-toolbar-group-CVpl5mxF.js +0 -31
- 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/input-container-C6qEIjcA.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/menu-CZzRsQP_.js +0 -372
- package/dist/menu-ClrU72xH.cjs +0 -1
- package/dist/nl-Bx2ACvr4.cjs +0 -1
- package/dist/nl-NuTdZO1s.js +0 -102
- 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-B3VBat1k.js +0 -44
- package/dist/text-input-Ds8e7Z1G.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-animated-toggle-ChycsEoj.js +0 -175
- package/dist/use-animated-toggle-DR6CyMac.cjs +0 -1
- 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-Dk7XcVly.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,18 +1,18 @@
|
|
|
1
|
-
import { g as Ae, B as mt, N as
|
|
2
|
-
import { o as Ir, m as Nr, n as Rr, l as Vr } from "../widget-customization-
|
|
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 Fr, l as Tr, k as Mr, o as Wr, p as $r, q as Lr, j as Br } from "../oneof-branch-detection-
|
|
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, b as Wt, N as Ue, t as
|
|
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 } from "../text-input-
|
|
12
|
-
import { P as Zt, E as Qt, N as qe } from "../notice-
|
|
13
|
-
import { B as
|
|
14
|
-
import { l as Je } from "../colors-
|
|
15
|
-
import { B as ze } from "../input-container-
|
|
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";
|
|
16
16
|
function en(e) {
|
|
17
17
|
if (!e || typeof e != "object") return !1;
|
|
18
18
|
const t = e;
|
|
@@ -85,7 +85,7 @@ function He(e, t, n) {
|
|
|
85
85
|
}
|
|
86
86
|
return null;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function G(e, t, n) {
|
|
89
89
|
const r = /* @__PURE__ */ new Set();
|
|
90
90
|
if (!t || typeof t != "object")
|
|
91
91
|
return r;
|
|
@@ -114,15 +114,15 @@ function z(e, t, n) {
|
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
e.allOf && e.allOf.forEach((a) => {
|
|
117
|
-
typeof a == "object" &&
|
|
117
|
+
typeof a == "object" && G(a, t, n).forEach((l) => r.add(l));
|
|
118
118
|
});
|
|
119
119
|
const i = He(e, t, n);
|
|
120
|
-
i &&
|
|
120
|
+
i && G(i, t, n).forEach((o) => r.add(o));
|
|
121
121
|
const s = e.dependentSchemas;
|
|
122
122
|
return s && Object.keys(s).forEach((a) => {
|
|
123
123
|
if (a in t) {
|
|
124
124
|
const o = s[a];
|
|
125
|
-
typeof o == "object" &&
|
|
125
|
+
typeof o == "object" && G(
|
|
126
126
|
o,
|
|
127
127
|
t,
|
|
128
128
|
n
|
|
@@ -131,7 +131,7 @@ function z(e, t, n) {
|
|
|
131
131
|
}), e.dependencies && Object.keys(e.dependencies).forEach((a) => {
|
|
132
132
|
if (a in t) {
|
|
133
133
|
const o = e.dependencies[a];
|
|
134
|
-
typeof o == "object" && !Array.isArray(o) &&
|
|
134
|
+
typeof o == "object" && !Array.isArray(o) && G(o, t, n).forEach((u) => r.add(u));
|
|
135
135
|
}
|
|
136
136
|
}), r;
|
|
137
137
|
}
|
|
@@ -153,7 +153,7 @@ function B({
|
|
|
153
153
|
layout: e.horizontal ? "horizontal" : "vertical"
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function re(e, t) {
|
|
157
157
|
if (e.default != null)
|
|
158
158
|
return t(e.default);
|
|
159
159
|
if (Array.isArray(e.examples))
|
|
@@ -164,10 +164,10 @@ function te(e, t) {
|
|
|
164
164
|
function Ge(e) {
|
|
165
165
|
return e == null ? 1 : Math.round(e);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function we(e) {
|
|
168
168
|
return e.isWriteOnly && !e.shouldShowWriteOnly;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function Se(e) {
|
|
171
171
|
return e.isReadOnly && !e.shouldIgnoreReadOnly || e.isDeprecated;
|
|
172
172
|
}
|
|
173
173
|
function E({
|
|
@@ -239,7 +239,7 @@ function Ye({
|
|
|
239
239
|
selector: n,
|
|
240
240
|
inner: r
|
|
241
241
|
}) {
|
|
242
|
-
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({
|
|
243
243
|
...B({ ctx: e }),
|
|
244
244
|
content: t ? U(
|
|
245
245
|
j.class("bc-stack--gap-2 bc-stack--align-start"),
|
|
@@ -386,15 +386,15 @@ function ke({
|
|
|
386
386
|
options: t,
|
|
387
387
|
controller: n
|
|
388
388
|
}) {
|
|
389
|
-
const r = ln(e), i = !e.isNullable, s = () => i ?
|
|
389
|
+
const r = ln(e), i = !e.isNullable, s = () => i ? te(n) : n;
|
|
390
390
|
switch (r?.format) {
|
|
391
391
|
case "email":
|
|
392
|
-
return A(
|
|
392
|
+
return A(St, {
|
|
393
393
|
...t,
|
|
394
394
|
controller: s()
|
|
395
395
|
});
|
|
396
396
|
case "date":
|
|
397
|
-
return fe(
|
|
397
|
+
return fe(wt, {
|
|
398
398
|
...t,
|
|
399
399
|
controller: s(),
|
|
400
400
|
toInput: (a) => a == null ? null : new Date(a),
|
|
@@ -408,7 +408,7 @@ function ke({
|
|
|
408
408
|
fromInput: (a) => a?.toISOString() ?? null
|
|
409
409
|
});
|
|
410
410
|
case "time":
|
|
411
|
-
return A(
|
|
411
|
+
return A(H, {
|
|
412
412
|
...t,
|
|
413
413
|
controller: s(),
|
|
414
414
|
placeholder: "HH:MM:SS"
|
|
@@ -442,25 +442,25 @@ function ke({
|
|
|
442
442
|
placeholder: "https://example.com"
|
|
443
443
|
});
|
|
444
444
|
case "uri-reference":
|
|
445
|
-
return A(
|
|
445
|
+
return A(H, {
|
|
446
446
|
...t,
|
|
447
447
|
controller: s(),
|
|
448
448
|
placeholder: "Enter URL..."
|
|
449
449
|
});
|
|
450
450
|
case "hostname":
|
|
451
|
-
return A(
|
|
451
|
+
return A(H, {
|
|
452
452
|
...t,
|
|
453
453
|
controller: s(),
|
|
454
454
|
placeholder: "example.com"
|
|
455
455
|
});
|
|
456
456
|
case "ipv4":
|
|
457
|
-
return A(
|
|
457
|
+
return A(H, {
|
|
458
458
|
...t,
|
|
459
459
|
controller: s(),
|
|
460
460
|
placeholder: "192.168.1.1"
|
|
461
461
|
});
|
|
462
462
|
case "ipv6":
|
|
463
|
-
return A(
|
|
463
|
+
return A(H, {
|
|
464
464
|
...t,
|
|
465
465
|
controller: s(),
|
|
466
466
|
placeholder: "2001:db8::1"
|
|
@@ -498,7 +498,7 @@ function ke({
|
|
|
498
498
|
controller: s()
|
|
499
499
|
});
|
|
500
500
|
default:
|
|
501
|
-
return A(
|
|
501
|
+
return A(H, {
|
|
502
502
|
...t,
|
|
503
503
|
controller: s()
|
|
504
504
|
});
|
|
@@ -508,7 +508,7 @@ function pe({
|
|
|
508
508
|
ctx: e,
|
|
509
509
|
controller: t
|
|
510
510
|
}) {
|
|
511
|
-
if (
|
|
511
|
+
if (we(e))
|
|
512
512
|
return W();
|
|
513
513
|
const n = V(e.definition, e.name), r = n?.widget, i = E({
|
|
514
514
|
ctx: e,
|
|
@@ -519,8 +519,8 @@ function pe({
|
|
|
519
519
|
return i;
|
|
520
520
|
const s = {
|
|
521
521
|
...B({ ctx: e }),
|
|
522
|
-
placeholder:
|
|
523
|
-
disabled:
|
|
522
|
+
placeholder: re(e.definition, String),
|
|
523
|
+
disabled: Se(e)
|
|
524
524
|
};
|
|
525
525
|
if ((e.isNullable || e.isOptional) && !e.shouldShowPresenceToggle)
|
|
526
526
|
return ke({ ctx: e, options: s, controller: t });
|
|
@@ -543,27 +543,27 @@ function pe({
|
|
|
543
543
|
case "email":
|
|
544
544
|
return A(Qt, {
|
|
545
545
|
...s,
|
|
546
|
-
controller:
|
|
546
|
+
controller: Q(t)
|
|
547
547
|
});
|
|
548
548
|
case "password":
|
|
549
549
|
return A(Zt, {
|
|
550
550
|
...s,
|
|
551
|
-
controller:
|
|
551
|
+
controller: Q(t)
|
|
552
552
|
});
|
|
553
553
|
case "uuid":
|
|
554
554
|
return A(Dt, {
|
|
555
555
|
...s,
|
|
556
|
-
controller:
|
|
556
|
+
controller: Q(t)
|
|
557
557
|
});
|
|
558
558
|
case "textarea":
|
|
559
559
|
return A(Bt, {
|
|
560
560
|
...s,
|
|
561
|
-
controller:
|
|
561
|
+
controller: Q(t)
|
|
562
562
|
});
|
|
563
563
|
default:
|
|
564
564
|
return A(Yt, {
|
|
565
565
|
...s,
|
|
566
|
-
controller:
|
|
566
|
+
controller: Q(t)
|
|
567
567
|
});
|
|
568
568
|
}
|
|
569
569
|
}
|
|
@@ -585,7 +585,7 @@ function le({
|
|
|
585
585
|
ctx: e,
|
|
586
586
|
controller: t
|
|
587
587
|
}) {
|
|
588
|
-
if (
|
|
588
|
+
if (we(e))
|
|
589
589
|
return W();
|
|
590
590
|
const n = e.definition, r = cn(e), i = V(e.definition, e.name), s = E({
|
|
591
591
|
ctx: e,
|
|
@@ -596,11 +596,11 @@ function le({
|
|
|
596
596
|
return s;
|
|
597
597
|
const a = {
|
|
598
598
|
...B({ ctx: e }),
|
|
599
|
-
placeholder:
|
|
599
|
+
placeholder: re(e.definition, String),
|
|
600
600
|
min: n.minimum,
|
|
601
601
|
max: n.maximum,
|
|
602
602
|
step: n.multipleOf,
|
|
603
|
-
disabled:
|
|
603
|
+
disabled: Se(e)
|
|
604
604
|
}, o = (e.isNullable || e.isOptional) && !e.shouldShowPresenceToggle, l = o && !e.isNullable;
|
|
605
605
|
switch (r.widget) {
|
|
606
606
|
case "rating":
|
|
@@ -608,7 +608,7 @@ function le({
|
|
|
608
608
|
return o ? A(Ot, {
|
|
609
609
|
...a,
|
|
610
610
|
max: u,
|
|
611
|
-
controller: l ?
|
|
611
|
+
controller: l ? te(
|
|
612
612
|
t
|
|
613
613
|
) : t
|
|
614
614
|
}) : A(kt, {
|
|
@@ -619,7 +619,7 @@ function le({
|
|
|
619
619
|
case "slider":
|
|
620
620
|
return o ? A(At, {
|
|
621
621
|
...a,
|
|
622
|
-
controller: l ?
|
|
622
|
+
controller: l ? te(
|
|
623
623
|
t
|
|
624
624
|
) : t
|
|
625
625
|
}) : A(jt, {
|
|
@@ -650,7 +650,7 @@ function le({
|
|
|
650
650
|
default:
|
|
651
651
|
return o ? A(de, {
|
|
652
652
|
...a,
|
|
653
|
-
controller: l ?
|
|
653
|
+
controller: l ? te(
|
|
654
654
|
t
|
|
655
655
|
) : t
|
|
656
656
|
}) : A(xt, {
|
|
@@ -695,7 +695,7 @@ function ye({
|
|
|
695
695
|
ctx: e,
|
|
696
696
|
controller: t
|
|
697
697
|
}) {
|
|
698
|
-
if (
|
|
698
|
+
if (we(e))
|
|
699
699
|
return W();
|
|
700
700
|
const n = V(e.definition, e.name), r = E({
|
|
701
701
|
ctx: e,
|
|
@@ -706,7 +706,7 @@ function ye({
|
|
|
706
706
|
return r;
|
|
707
707
|
const i = {
|
|
708
708
|
...B({ ctx: e }),
|
|
709
|
-
disabled:
|
|
709
|
+
disabled: Se(e)
|
|
710
710
|
}, s = A(Oe, {
|
|
711
711
|
...i,
|
|
712
712
|
controller: t
|
|
@@ -740,25 +740,28 @@ function Ze({
|
|
|
740
740
|
function dn({
|
|
741
741
|
conflicts: e
|
|
742
742
|
}) {
|
|
743
|
-
return e.length === 0 ? Be :
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
(
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
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
|
+
)
|
|
762
765
|
)
|
|
763
766
|
)
|
|
764
767
|
)
|
|
@@ -767,25 +770,28 @@ function dn({
|
|
|
767
770
|
function pn({
|
|
768
771
|
violations: e
|
|
769
772
|
}) {
|
|
770
|
-
return e.length === 0 ? Be :
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
(
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
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
|
+
)
|
|
789
795
|
)
|
|
790
796
|
)
|
|
791
797
|
)
|
|
@@ -811,7 +817,7 @@ function mn({
|
|
|
811
817
|
return U(
|
|
812
818
|
I.div(
|
|
813
819
|
j.class("bc-presence-toggle"),
|
|
814
|
-
|
|
820
|
+
se({
|
|
815
821
|
layout: "horizontal",
|
|
816
822
|
label: `Include ${i}`,
|
|
817
823
|
content: Ct({
|
|
@@ -821,7 +827,7 @@ function mn({
|
|
|
821
827
|
})
|
|
822
828
|
})
|
|
823
829
|
),
|
|
824
|
-
|
|
830
|
+
ne(r, () => n)
|
|
825
831
|
);
|
|
826
832
|
}
|
|
827
833
|
function N(e, t, n) {
|
|
@@ -970,19 +976,19 @@ function vn({
|
|
|
970
976
|
const i = Qe(e.definition);
|
|
971
977
|
if (!i)
|
|
972
978
|
return n;
|
|
973
|
-
const s = { ...Ne, ...r }, a =
|
|
979
|
+
const s = { ...Ne, ...r }, a = wn(t), o = bn(i, a);
|
|
974
980
|
switch (s.clearOnHide && o.on((l) => {
|
|
975
981
|
!l && t.signal.value !== void 0 && t.change(void 0);
|
|
976
982
|
}), s.behavior) {
|
|
977
983
|
case "unmount":
|
|
978
|
-
return
|
|
984
|
+
return ne(
|
|
979
985
|
o,
|
|
980
986
|
() => n,
|
|
981
987
|
() => W()
|
|
982
988
|
);
|
|
983
989
|
case "hide":
|
|
984
990
|
default:
|
|
985
|
-
return
|
|
991
|
+
return ne(
|
|
986
992
|
o,
|
|
987
993
|
() => n,
|
|
988
994
|
() => W(
|
|
@@ -995,10 +1001,10 @@ function vn({
|
|
|
995
1001
|
);
|
|
996
1002
|
}
|
|
997
1003
|
}
|
|
998
|
-
function
|
|
1004
|
+
function wn(e) {
|
|
999
1005
|
return e.signal;
|
|
1000
1006
|
}
|
|
1001
|
-
function
|
|
1007
|
+
function Sn({
|
|
1002
1008
|
ctx: e,
|
|
1003
1009
|
controller: t
|
|
1004
1010
|
}) {
|
|
@@ -1010,7 +1016,7 @@ function wn({
|
|
|
1010
1016
|
if (r)
|
|
1011
1017
|
return r;
|
|
1012
1018
|
const s = e.definition.enum ?? [], a = (e.isNullable || e.isOptional) && !s.includes(null), o = !e.isNullable;
|
|
1013
|
-
return
|
|
1019
|
+
return K(q, (l) => {
|
|
1014
1020
|
const u = s.map((p) => ({
|
|
1015
1021
|
type: "value",
|
|
1016
1022
|
value: p,
|
|
@@ -1022,7 +1028,7 @@ function wn({
|
|
|
1022
1028
|
// We use null as the sentinel value internally
|
|
1023
1029
|
label: O.get(l.$.selectNone)
|
|
1024
1030
|
});
|
|
1025
|
-
const m = a && o ?
|
|
1031
|
+
const m = a && o ? te(
|
|
1026
1032
|
t
|
|
1027
1033
|
) : t;
|
|
1028
1034
|
return _t({
|
|
@@ -1050,7 +1056,7 @@ function An({
|
|
|
1050
1056
|
Le(() => {
|
|
1051
1057
|
O.get(t.signal) !== i.const && t.change(i.const);
|
|
1052
1058
|
}),
|
|
1053
|
-
Ut(zt(e.widgetLabel, ": "),
|
|
1059
|
+
Ut(zt(e.widgetLabel, ": "), ee(String(i.const)))
|
|
1054
1060
|
);
|
|
1055
1061
|
}
|
|
1056
1062
|
function tt(e, t, n) {
|
|
@@ -1062,7 +1068,7 @@ function tt(e, t, n) {
|
|
|
1062
1068
|
canRemove: o,
|
|
1063
1069
|
lockKeyAfterSet: l,
|
|
1064
1070
|
validatePropertyName: u
|
|
1065
|
-
} = n, m = r.field(e), p =
|
|
1071
|
+
} = n, m = r.field(e), p = X(e), c = X(null);
|
|
1066
1072
|
let h = a;
|
|
1067
1073
|
if (t) {
|
|
1068
1074
|
const v = Object.keys(s).find((g) => {
|
|
@@ -1090,10 +1096,10 @@ function tt(e, t, n) {
|
|
|
1090
1096
|
return;
|
|
1091
1097
|
}
|
|
1092
1098
|
c.set(null);
|
|
1093
|
-
const
|
|
1094
|
-
delete
|
|
1095
|
-
}, f =
|
|
1096
|
-
|
|
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,
|
|
1097
1103
|
(v) => Ke({
|
|
1098
1104
|
size: "xs",
|
|
1099
1105
|
label: v.$.removeItem,
|
|
@@ -1114,7 +1120,7 @@ function tt(e, t, n) {
|
|
|
1114
1120
|
return I.div(
|
|
1115
1121
|
j.class("bc-object-helpers__row"),
|
|
1116
1122
|
De.gridTemplateColumns("2fr 3fr min-content"),
|
|
1117
|
-
|
|
1123
|
+
se({
|
|
1118
1124
|
content: Fe({
|
|
1119
1125
|
value: p,
|
|
1120
1126
|
onChange: b,
|
|
@@ -1152,7 +1158,7 @@ function nt(e, t, n) {
|
|
|
1152
1158
|
canRemove: l,
|
|
1153
1159
|
lockKeyAfterSet: u,
|
|
1154
1160
|
validatePropertyName: m
|
|
1155
|
-
} = n, p = r.field(e), c =
|
|
1161
|
+
} = n, p = r.field(e), c = X(e), h = X(null);
|
|
1156
1162
|
let b;
|
|
1157
1163
|
if (o && typeof o == "object")
|
|
1158
1164
|
b = o;
|
|
@@ -1178,16 +1184,16 @@ function nt(e, t, n) {
|
|
|
1178
1184
|
y
|
|
1179
1185
|
))
|
|
1180
1186
|
return;
|
|
1181
|
-
const
|
|
1182
|
-
if (!
|
|
1183
|
-
h.set(
|
|
1187
|
+
const w = m(y);
|
|
1188
|
+
if (!w.ok) {
|
|
1189
|
+
h.set(w.message);
|
|
1184
1190
|
return;
|
|
1185
1191
|
}
|
|
1186
1192
|
h.set(null);
|
|
1187
|
-
const
|
|
1188
|
-
delete
|
|
1189
|
-
}, d =
|
|
1190
|
-
|
|
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,
|
|
1191
1197
|
(g) => Ke({
|
|
1192
1198
|
size: "xs",
|
|
1193
1199
|
label: g.$.removeItem,
|
|
@@ -1197,8 +1203,8 @@ function nt(e, t, n) {
|
|
|
1197
1203
|
onClick: () => {
|
|
1198
1204
|
const y = Object.keys(O.get(r.signal) ?? {}).length;
|
|
1199
1205
|
if (!l(y)) return;
|
|
1200
|
-
const
|
|
1201
|
-
delete
|
|
1206
|
+
const w = { ...O.get(r.signal) ?? {} };
|
|
1207
|
+
delete w[e], r.change(w);
|
|
1202
1208
|
}
|
|
1203
1209
|
})
|
|
1204
1210
|
), v = O.map(
|
|
@@ -1208,7 +1214,7 @@ function nt(e, t, n) {
|
|
|
1208
1214
|
return I.div(
|
|
1209
1215
|
j.class("bc-object-helpers__row"),
|
|
1210
1216
|
De.gridTemplateColumns("2fr 3fr min-content"),
|
|
1211
|
-
|
|
1217
|
+
se({
|
|
1212
1218
|
content: Fe({
|
|
1213
1219
|
value: c,
|
|
1214
1220
|
onChange: f,
|
|
@@ -1296,7 +1302,7 @@ function it(e, t) {
|
|
|
1296
1302
|
function st(e) {
|
|
1297
1303
|
const { minProps: t, apSchema: n, unevaluatedProps: r } = e;
|
|
1298
1304
|
return { canRemove: (o) => o > t, makeDefaultFor: (o) => {
|
|
1299
|
-
const l =
|
|
1305
|
+
const l = re(o, (m) => m);
|
|
1300
1306
|
if (l !== void 0) return l;
|
|
1301
1307
|
const u = o.type;
|
|
1302
1308
|
if (u === "string") return "";
|
|
@@ -1341,8 +1347,8 @@ function On({
|
|
|
1341
1347
|
for (; a.has(o + u) || !l(o + u); ) u++;
|
|
1342
1348
|
return o + u;
|
|
1343
1349
|
};
|
|
1344
|
-
return
|
|
1345
|
-
|
|
1350
|
+
return K(
|
|
1351
|
+
q,
|
|
1346
1352
|
(s) => ze(
|
|
1347
1353
|
{
|
|
1348
1354
|
variant: "outline",
|
|
@@ -1370,7 +1376,7 @@ function at({
|
|
|
1370
1376
|
containerLayout: t,
|
|
1371
1377
|
content: n
|
|
1372
1378
|
}) {
|
|
1373
|
-
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({
|
|
1374
1380
|
...B({ ctx: e }),
|
|
1375
1381
|
content: n
|
|
1376
1382
|
}) : n;
|
|
@@ -1385,11 +1391,11 @@ function kn({
|
|
|
1385
1391
|
controller: t,
|
|
1386
1392
|
config: r,
|
|
1387
1393
|
effective: n
|
|
1388
|
-
}), l =
|
|
1394
|
+
}), l = ie(t.signal, (h) => {
|
|
1389
1395
|
const f = Object.keys(h ?? {}).filter((y) => !r.knownKeys.has(y));
|
|
1390
1396
|
if (f.length === 0)
|
|
1391
1397
|
return W();
|
|
1392
|
-
const d =
|
|
1398
|
+
const d = G(
|
|
1393
1399
|
n,
|
|
1394
1400
|
h ?? {},
|
|
1395
1401
|
e.ajv
|
|
@@ -1398,8 +1404,8 @@ function kn({
|
|
|
1398
1404
|
);
|
|
1399
1405
|
return W(
|
|
1400
1406
|
...g.map((y) => {
|
|
1401
|
-
const
|
|
1402
|
-
return tt(y,
|
|
1407
|
+
const w = r.patternList.some((S) => S.test(y));
|
|
1408
|
+
return tt(y, w, {
|
|
1403
1409
|
controller: t,
|
|
1404
1410
|
effCtx: e,
|
|
1405
1411
|
patternProps: r.patternProps,
|
|
@@ -1410,8 +1416,8 @@ function kn({
|
|
|
1410
1416
|
});
|
|
1411
1417
|
}),
|
|
1412
1418
|
...v.map((y) => {
|
|
1413
|
-
const
|
|
1414
|
-
return nt(y,
|
|
1419
|
+
const w = r.patternList.some((S) => S.test(y));
|
|
1420
|
+
return nt(y, w, {
|
|
1415
1421
|
controller: t,
|
|
1416
1422
|
effCtx: e,
|
|
1417
1423
|
patternProps: r.patternProps,
|
|
@@ -1443,7 +1449,7 @@ function Cn({
|
|
|
1443
1449
|
controller: t,
|
|
1444
1450
|
baseDef: n
|
|
1445
1451
|
}) {
|
|
1446
|
-
return
|
|
1452
|
+
return ie(t.signal, (r) => {
|
|
1447
1453
|
const { effective: i, conflicts: s } = nn(
|
|
1448
1454
|
n,
|
|
1449
1455
|
r,
|
|
@@ -1452,20 +1458,20 @@ function Cn({
|
|
|
1452
1458
|
), a = e.with({
|
|
1453
1459
|
definition: i,
|
|
1454
1460
|
schemaConflicts: [...e.schemaConflicts, ...s]
|
|
1455
|
-
}), 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(
|
|
1456
1462
|
i,
|
|
1457
1463
|
r ?? {},
|
|
1458
1464
|
e.ajv
|
|
1459
1465
|
), h = p.filter((k) => !c.has(k)), b = p.filter(
|
|
1460
1466
|
(k) => c.has(k)
|
|
1461
1467
|
), f = o.apAllowed && o.canAddUnevaluated && m.length < o.maxProps, d = (k, F) => {
|
|
1462
|
-
const P = k, _ = (
|
|
1468
|
+
const P = k, _ = (z) => F.has(z) ? !1 : l(z).ok;
|
|
1463
1469
|
if (_(P)) return P;
|
|
1464
1470
|
let D = 1;
|
|
1465
1471
|
for (; F.has(P + D) || !_(P + D); ) D++;
|
|
1466
1472
|
return P + D;
|
|
1467
|
-
}, v =
|
|
1468
|
-
|
|
1473
|
+
}, v = K(
|
|
1474
|
+
q,
|
|
1469
1475
|
(k) => ze(
|
|
1470
1476
|
{
|
|
1471
1477
|
variant: "outline",
|
|
@@ -1476,9 +1482,9 @@ function Cn({
|
|
|
1476
1482
|
Object.keys(O.get(t.signal) ?? {})
|
|
1477
1483
|
), P = d("property", F);
|
|
1478
1484
|
if (!l(P).ok) return;
|
|
1479
|
-
const D = u.getValueSchemaForNew(),
|
|
1485
|
+
const D = u.getValueSchemaForNew(), z = u.makeDefaultFor(D), ae = {
|
|
1480
1486
|
...O.get(t.signal) ?? {},
|
|
1481
|
-
[P]:
|
|
1487
|
+
[P]: z
|
|
1482
1488
|
};
|
|
1483
1489
|
t.change(ae);
|
|
1484
1490
|
}
|
|
@@ -1488,7 +1494,7 @@ function Cn({
|
|
|
1488
1494
|
)
|
|
1489
1495
|
), g = Me(a), y = Je(o.knownProps).filter(
|
|
1490
1496
|
([, k]) => k !== !1
|
|
1491
|
-
),
|
|
1497
|
+
), S = [
|
|
1492
1498
|
...y.map(([k]) => k),
|
|
1493
1499
|
...b,
|
|
1494
1500
|
...h
|
|
@@ -1534,13 +1540,13 @@ function Cn({
|
|
|
1534
1540
|
}),
|
|
1535
1541
|
// Add affordance
|
|
1536
1542
|
o.apAllowed ? v : null
|
|
1537
|
-
].filter(Boolean),
|
|
1543
|
+
].filter(Boolean), J = We(
|
|
1538
1544
|
g,
|
|
1539
1545
|
a,
|
|
1540
1546
|
C,
|
|
1541
|
-
|
|
1547
|
+
S
|
|
1542
1548
|
);
|
|
1543
|
-
return at({ ctx: a, containerLayout: g, content:
|
|
1549
|
+
return at({ ctx: a, containerLayout: g, content: J });
|
|
1544
1550
|
});
|
|
1545
1551
|
}
|
|
1546
1552
|
function ot({
|
|
@@ -1708,7 +1714,7 @@ function lt({
|
|
|
1708
1714
|
return je(e, f, d);
|
|
1709
1715
|
}
|
|
1710
1716
|
return je(e, f, d);
|
|
1711
|
-
}), o = O.get(a), l =
|
|
1717
|
+
}), o = O.get(a), l = X(o >= 0 ? o : 0);
|
|
1712
1718
|
t.onDispose(l.dispose);
|
|
1713
1719
|
let u = !1;
|
|
1714
1720
|
const m = a.on((f) => {
|
|
@@ -1725,7 +1731,7 @@ function lt({
|
|
|
1725
1731
|
selected: l,
|
|
1726
1732
|
onChange: c
|
|
1727
1733
|
// auto mode chooses segmented for <=3
|
|
1728
|
-
}) : "", b =
|
|
1734
|
+
}) : "", b = ie(l, (f) => x({
|
|
1729
1735
|
ctx: e.with({
|
|
1730
1736
|
definition: r[O.get(f)],
|
|
1731
1737
|
// Suppress inner labels only when combinator is nested (non-root)
|
|
@@ -1789,7 +1795,7 @@ function x({
|
|
|
1789
1795
|
t,
|
|
1790
1796
|
N(
|
|
1791
1797
|
i,
|
|
1792
|
-
|
|
1798
|
+
Sn({
|
|
1793
1799
|
ctx: i,
|
|
1794
1800
|
controller: t
|
|
1795
1801
|
}),
|
|
@@ -2106,26 +2112,26 @@ function ut({
|
|
|
2106
2112
|
} catch {
|
|
2107
2113
|
}
|
|
2108
2114
|
else {
|
|
2109
|
-
const g = i.contains, y = (
|
|
2115
|
+
const g = i.contains, y = (w) => {
|
|
2110
2116
|
if (typeof g == "boolean") return g;
|
|
2111
2117
|
if (typeof g != "object" || g == null) return !1;
|
|
2112
|
-
const
|
|
2118
|
+
const S = g, C = S.type;
|
|
2113
2119
|
if (C === "integer" || C === "number")
|
|
2114
|
-
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);
|
|
2115
2121
|
if (C === "string") {
|
|
2116
|
-
if (typeof
|
|
2122
|
+
if (typeof w != "string" || typeof S.minLength == "number" && w.length < S.minLength || typeof S.maxLength == "number" && w.length > S.maxLength)
|
|
2117
2123
|
return !1;
|
|
2118
|
-
if (typeof
|
|
2124
|
+
if (typeof S.pattern == "string")
|
|
2119
2125
|
try {
|
|
2120
|
-
if (!new RegExp(
|
|
2126
|
+
if (!new RegExp(S.pattern).test(w)) return !1;
|
|
2121
2127
|
} catch {
|
|
2122
2128
|
}
|
|
2123
2129
|
return !0;
|
|
2124
2130
|
}
|
|
2125
2131
|
return !1;
|
|
2126
2132
|
};
|
|
2127
|
-
for (let
|
|
2128
|
-
y(c[
|
|
2133
|
+
for (let w = 0; w < c.length; w++)
|
|
2134
|
+
y(c[w]) && (h.add(w), b++);
|
|
2129
2135
|
}
|
|
2130
2136
|
const f = i.minContains ?? (i.contains ? 1 : 0), d = i.maxContains, v = b >= f && (d == null || b <= d);
|
|
2131
2137
|
return { matchingIndices: h, count: b, isValid: v, minContains: f, maxContains: d };
|
|
@@ -2144,10 +2150,10 @@ function ut({
|
|
|
2144
2150
|
const c = t.signal.value?.length ?? 0;
|
|
2145
2151
|
if (s.isTuple && c < s.prefixItems.length) {
|
|
2146
2152
|
const h = s.prefixItems[c];
|
|
2147
|
-
return
|
|
2153
|
+
return re(h, () => {
|
|
2148
2154
|
});
|
|
2149
2155
|
} else
|
|
2150
|
-
return
|
|
2156
|
+
return re(
|
|
2151
2157
|
s.additionalItemsSchema,
|
|
2152
2158
|
() => {
|
|
2153
2159
|
}
|
|
@@ -2169,40 +2175,40 @@ function ut({
|
|
|
2169
2175
|
}), g = l.map((C) => C.has(b)), y = u.map(
|
|
2170
2176
|
(C) => C.matchingIndices.has(b)
|
|
2171
2177
|
);
|
|
2172
|
-
let
|
|
2173
|
-
d && s.isTuple && (
|
|
2178
|
+
let w = v;
|
|
2179
|
+
d && s.isTuple && (w = U(
|
|
2174
2180
|
j.class("bc-stack--gap-1"),
|
|
2175
|
-
|
|
2176
|
-
|
|
2181
|
+
ee(j.class("bc-array-control__item-label"), d),
|
|
2182
|
+
w
|
|
2177
2183
|
));
|
|
2178
|
-
const
|
|
2179
|
-
return i.uniqueItems &&
|
|
2180
|
-
|
|
2184
|
+
const S = [];
|
|
2185
|
+
return i.uniqueItems && S.push(
|
|
2186
|
+
ne(
|
|
2181
2187
|
g,
|
|
2182
|
-
() =>
|
|
2188
|
+
() => ee(
|
|
2183
2189
|
j.class(
|
|
2184
2190
|
"bc-array-control__indicator bc-array-control__indicator--error"
|
|
2185
2191
|
),
|
|
2186
2192
|
"⚠️ Duplicate value"
|
|
2187
2193
|
)
|
|
2188
2194
|
)
|
|
2189
|
-
), i.contains &&
|
|
2190
|
-
|
|
2195
|
+
), i.contains && S.push(
|
|
2196
|
+
ne(
|
|
2191
2197
|
y,
|
|
2192
|
-
() =>
|
|
2198
|
+
() => ee(
|
|
2193
2199
|
j.class(
|
|
2194
2200
|
"bc-array-control__indicator bc-array-control__indicator--success"
|
|
2195
2201
|
),
|
|
2196
2202
|
"✓ Matches required pattern"
|
|
2197
2203
|
)
|
|
2198
2204
|
)
|
|
2199
|
-
),
|
|
2205
|
+
), S.length > 0 ? U(j.class("bc-stack--gap-1"), w, ...S) : w;
|
|
2200
2206
|
}
|
|
2201
2207
|
});
|
|
2202
2208
|
return i.contains && m ? U(
|
|
2203
2209
|
j.class("bc-stack--gap-2"),
|
|
2204
2210
|
p,
|
|
2205
|
-
|
|
2211
|
+
ie(
|
|
2206
2212
|
M(
|
|
2207
2213
|
u,
|
|
2208
2214
|
m
|
|
@@ -2210,7 +2216,7 @@ function ut({
|
|
|
2210
2216
|
info: c,
|
|
2211
2217
|
summary: h
|
|
2212
2218
|
})),
|
|
2213
|
-
({ info: c, summary: h }) =>
|
|
2219
|
+
({ info: c, summary: h }) => ee(
|
|
2214
2220
|
j.class(
|
|
2215
2221
|
c.isValid ? "bc-array-control__summary bc-array-control__summary--success" : "bc-array-control__summary bc-array-control__summary--error"
|
|
2216
2222
|
),
|
|
@@ -2261,7 +2267,7 @@ function ct({
|
|
|
2261
2267
|
mode: a.selector ?? "auto"
|
|
2262
2268
|
}), h = (f) => {
|
|
2263
2269
|
p.switchToBranch(f, a.confirmBranchChange);
|
|
2264
|
-
}, b =
|
|
2270
|
+
}, b = ie(p.activeBranch, (f) => {
|
|
2265
2271
|
const d = O.get(f), v = p.getBranchController(d);
|
|
2266
2272
|
if (u && (d === "number" || d === "integer")) {
|
|
2267
2273
|
const y = i;
|
|
@@ -2591,7 +2597,7 @@ class Kn {
|
|
|
2591
2597
|
getValidationState(t) {
|
|
2592
2598
|
return this.validationStates.has(t) || this.validationStates.set(
|
|
2593
2599
|
t,
|
|
2594
|
-
|
|
2600
|
+
X({
|
|
2595
2601
|
isValidating: !1,
|
|
2596
2602
|
result: L.valid,
|
|
2597
2603
|
lastValidatedValue: void 0,
|
|
@@ -2697,7 +2703,7 @@ class Kn {
|
|
|
2697
2703
|
this.validationStates.clear();
|
|
2698
2704
|
}
|
|
2699
2705
|
}
|
|
2700
|
-
function
|
|
2706
|
+
function Y(e) {
|
|
2701
2707
|
if (typeof e != "boolean")
|
|
2702
2708
|
return qn(e);
|
|
2703
2709
|
}
|
|
@@ -2717,7 +2723,7 @@ function qn(e) {
|
|
|
2717
2723
|
const t = e.oneOf ?? e.anyOf;
|
|
2718
2724
|
if (t && Array.isArray(t))
|
|
2719
2725
|
for (const n of t) {
|
|
2720
|
-
const r =
|
|
2726
|
+
const r = Y(n);
|
|
2721
2727
|
if (r !== void 0)
|
|
2722
2728
|
return r;
|
|
2723
2729
|
}
|
|
@@ -2727,7 +2733,7 @@ function Jn(e) {
|
|
|
2727
2733
|
const t = {};
|
|
2728
2734
|
let n = !1;
|
|
2729
2735
|
for (const r of e) {
|
|
2730
|
-
const i =
|
|
2736
|
+
const i = Y(r);
|
|
2731
2737
|
i !== void 0 && typeof i == "object" && i !== null && (Object.assign(t, i), n = !0);
|
|
2732
2738
|
}
|
|
2733
2739
|
return n ? t : void 0;
|
|
@@ -2759,7 +2765,7 @@ function Hn(e) {
|
|
|
2759
2765
|
for (const [i, s] of Object.entries(e.properties)) {
|
|
2760
2766
|
if (!t.has(i) || typeof s == "boolean")
|
|
2761
2767
|
continue;
|
|
2762
|
-
const a =
|
|
2768
|
+
const a = Y(s);
|
|
2763
2769
|
a !== void 0 && (n[i] = a, r = !0);
|
|
2764
2770
|
}
|
|
2765
2771
|
return r ? n : {};
|
|
@@ -2772,8 +2778,8 @@ function Gn(e) {
|
|
|
2772
2778
|
if (!n || typeof n == "boolean")
|
|
2773
2779
|
return Array(t).fill(null);
|
|
2774
2780
|
if (Array.isArray(n))
|
|
2775
|
-
return n.slice(0, t).map((i) =>
|
|
2776
|
-
const r =
|
|
2781
|
+
return n.slice(0, t).map((i) => Y(i) ?? null);
|
|
2782
|
+
const r = Y(n);
|
|
2777
2783
|
return Array(t).fill(r ?? null);
|
|
2778
2784
|
}
|
|
2779
2785
|
function Xn(e) {
|
|
@@ -2865,7 +2871,7 @@ function Or({
|
|
|
2865
2871
|
applySchemaDefaults: l = !0,
|
|
2866
2872
|
submitting: u
|
|
2867
2873
|
}, m) {
|
|
2868
|
-
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);
|
|
2869
2875
|
let h;
|
|
2870
2876
|
return t === void 0 ? h = c ?? {} : l ? h = Jt(
|
|
2871
2877
|
c,
|
|
@@ -2878,10 +2884,10 @@ function Or({
|
|
|
2878
2884
|
}),
|
|
2879
2885
|
(b) => {
|
|
2880
2886
|
if (b.ok) {
|
|
2881
|
-
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) => {
|
|
2882
2888
|
const $ = d(T);
|
|
2883
|
-
let
|
|
2884
|
-
return $ ?
|
|
2889
|
+
let Z;
|
|
2890
|
+
return $ ? Z = L.valid : Z = ve(
|
|
2885
2891
|
d.errors ?? []
|
|
2886
2892
|
), v ? Dn(
|
|
2887
2893
|
T,
|
|
@@ -2889,12 +2895,12 @@ function Or({
|
|
|
2889
2895
|
// formData is the same as value for root-level validation
|
|
2890
2896
|
v,
|
|
2891
2897
|
d
|
|
2892
|
-
) :
|
|
2893
|
-
}, { controller: C, setStatus:
|
|
2898
|
+
) : Z;
|
|
2899
|
+
}, { controller: C, setStatus: J } = Xt({
|
|
2894
2900
|
initialValue: h,
|
|
2895
|
-
validationMode:
|
|
2901
|
+
validationMode: w,
|
|
2896
2902
|
validateDebounceMs: a,
|
|
2897
|
-
validate:
|
|
2903
|
+
validate: w === "onSubmit" ? void 0 : S
|
|
2898
2904
|
}), k = v ? _n(v) : null, F = i !== !1;
|
|
2899
2905
|
let P = !1;
|
|
2900
2906
|
const _ = F ? C.signal.on((T) => {
|
|
@@ -2905,15 +2911,15 @@ function Or({
|
|
|
2905
2911
|
}, D = k ? C.signal.on((T, $) => {
|
|
2906
2912
|
$ != null && JSON.stringify(T) !== JSON.stringify($) && setTimeout(() => {
|
|
2907
2913
|
const pt = C.status.value;
|
|
2908
|
-
|
|
2914
|
+
J(pt);
|
|
2909
2915
|
}, 10);
|
|
2910
2916
|
}) : () => {
|
|
2911
|
-
},
|
|
2917
|
+
}, z = y && g.length > 0 ? C.signal.on((T) => {
|
|
2912
2918
|
for (const $ of g)
|
|
2913
2919
|
y.validateField($, T, T);
|
|
2914
2920
|
}) : () => {
|
|
2915
2921
|
}, ae = () => {
|
|
2916
|
-
_(), D(),
|
|
2922
|
+
_(), D(), z(), y?.dispose(), C.dispose();
|
|
2917
2923
|
}, ft = o ? ir(o) : void 0, dt = W(
|
|
2918
2924
|
Tt(ae),
|
|
2919
2925
|
En({
|
|
@@ -2921,13 +2927,13 @@ function Or({
|
|
|
2921
2927
|
controller: C,
|
|
2922
2928
|
ajv: f,
|
|
2923
2929
|
widgetRegistry: ft,
|
|
2924
|
-
setStatus:
|
|
2930
|
+
setStatus: J,
|
|
2925
2931
|
formValue: C.signal,
|
|
2926
|
-
validationMode:
|
|
2932
|
+
validationMode: w,
|
|
2927
2933
|
submitting: u
|
|
2928
2934
|
})
|
|
2929
2935
|
);
|
|
2930
|
-
return m({ Form: dt, controller: C, setStatus:
|
|
2936
|
+
return m({ Form: dt, controller: C, setStatus: J });
|
|
2931
2937
|
}
|
|
2932
2938
|
return I.div(j.class("bc-json-schema-form__error"), b.error);
|
|
2933
2939
|
}
|
|
@@ -2983,7 +2989,7 @@ export {
|
|
|
2983
2989
|
ye as JSONSchemaBoolean,
|
|
2984
2990
|
An as JSONSchemaConst,
|
|
2985
2991
|
En as JSONSchemaControl,
|
|
2986
|
-
|
|
2992
|
+
Sn as JSONSchemaEnum,
|
|
2987
2993
|
Or as JSONSchemaForm,
|
|
2988
2994
|
x as JSONSchemaGenericControl,
|
|
2989
2995
|
me as JSONSchemaInteger,
|
|
@@ -3006,13 +3012,13 @@ export {
|
|
|
3006
3012
|
Ir as createDiagnosticWidget,
|
|
3007
3013
|
He as evaluateIfThenElseOverlay,
|
|
3008
3014
|
tn as evaluateNotViolation,
|
|
3009
|
-
|
|
3015
|
+
Y as extractSchemaDefaults,
|
|
3010
3016
|
Nr as forFormat,
|
|
3011
3017
|
Rr as forTypeAndFormat,
|
|
3012
3018
|
Vr as forXUI,
|
|
3013
3019
|
Vt as getAjvForSchema,
|
|
3014
3020
|
Lr as getCacheStats,
|
|
3015
|
-
|
|
3021
|
+
G as getEvaluatedProperties,
|
|
3016
3022
|
en as hasConditionalFeatures,
|
|
3017
3023
|
Br as jsonPointerToSegments,
|
|
3018
3024
|
be as mergeAllOf
|