@wssto2/vue-core 0.9.4 → 0.10.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/CHANGELOG.md +24 -0
- package/dist/ActionRow.vue_vue_type_script_setup_true_lang-IpcP3Bjc.js +87 -0
- package/dist/Activity-CeAG0ZtJ.js +169 -0
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-DdJOodn8.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-D5i77H6S.js} +147 -159
- package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-BdeOKqz_.js → AsyncSection.vue_vue_type_script_setup_true_lang-DGzQ-Snp.js} +1 -1
- package/dist/BottomDockPortal.vue_vue_type_script_setup_true_lang-DmwR-2SP.js +17 -0
- package/dist/Button.vue_vue_type_script_setup_true_lang-C74hcb0N.js +123 -0
- package/dist/Changes-B9-zpDxG.js +69 -0
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-DHcekGNn.js → CollectionPage.vue_vue_type_script_setup_true_lang-Cn0YOWJF.js} +19 -18
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-8kBsNRuq.js → DataTable.vue_vue_type_script_setup_true_lang-BQRG8bpH.js} +1 -1
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-BhKdCVFn.js → DateField.vue_vue_type_script_setup_true_lang-CeNwBbJT.js} +1 -1
- package/dist/{DeadLetters-Bb5pPlOY.js → DeadLetters-BP03yC4R.js} +5 -6
- package/dist/DrawnCheck.vue_vue_type_script_setup_true_lang-9DzDJlIA.js +38 -0
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-D6jYfNjW.js +427 -0
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-aaNnMIOi.js → FormView.vue_vue_type_script_setup_true_lang-DvbPEiNQ.js} +2 -2
- package/dist/{General-BAG7S6wV.js → General-BDmCJr3H.js} +35 -38
- package/dist/{IncidentRecord-D8aOpNHo.js → IncidentRecord-DEhl6AyA.js} +14 -15
- package/dist/{IncidentsList-C0cFl0Db.js → IncidentsList-COgRPdk3.js} +3 -3
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-BlHhdmMy.js → Modal.vue_vue_type_script_setup_true_lang-DDS0iEnn.js} +9 -8
- package/dist/{NewRolePage-C6Iu-EQJ.js → NewRolePage-DhGFwvk3.js} +4 -4
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-TGGAq8J-.js → NumberField.vue_vue_type_script_setup_true_lang-B3UrXNqH.js} +1 -1
- package/dist/{PersonAccess.vue_vue_type_script_setup_true_lang-qz1tmYpF.js → PersonAccess.vue_vue_type_script_setup_true_lang-DbGZSNQc.js} +56 -56
- package/dist/ProfilePage-BQCK2w8R.js +684 -0
- package/dist/ProgressTrack.vue_vue_type_script_setup_true_lang-DrOm8k--.js +30 -0
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-B9mN7UxZ.js → RecordHeader.vue_vue_type_script_setup_true_lang-DqGc3Jyo.js} +1 -1
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-Cw8mGf_B.js → ResourcePage.vue_vue_type_script_setup_true_lang-DljhsTU4.js} +3 -3
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-CJPvOVDV.js → RoleEditor.vue_vue_type_script_setup_true_lang-C0FIotFA.js} +11 -12
- package/dist/{RolePage-Dj_ocMnM.js → RolePage-DaNv049g.js} +10 -10
- package/dist/{RolesPage-PXrs4O-1.js → RolesPage-6hlzJes_.js} +6 -6
- package/dist/SearchInput.vue_vue_type_script_setup_true_lang-w4eAqyZ9.js +32 -0
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-CtdF1zuv.js → SectionList.vue_vue_type_script_setup_true_lang-DR0_NsqC.js} +1 -1
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-B5ove3rM.js → SectionNavigator.vue_vue_type_script_setup_true_lang-Dh3sXUt_.js} +2 -2
- package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-ChfDFAA2.js → SegmentedField.vue_vue_type_script_setup_true_lang-zv_AxpBn.js} +1 -1
- package/dist/{SelectField.vue_vue_type_script_setup_true_lang-BP8nAQwo.js → SelectField.vue_vue_type_script_setup_true_lang-BZwdANL3.js} +3 -3
- package/dist/{ServiceAccountDialog.vue_vue_type_script_setup_true_lang-aWkKwxNe.js → ServiceAccountDialog.vue_vue_type_script_setup_true_lang-C0OIBrSp.js} +20 -20
- package/dist/{ServiceAccountRecord-bxX9yQkC.js → ServiceAccountRecord-gtlhYaAz.js} +37 -37
- package/dist/{ServiceAccountsList-BXE6htxk.js → ServiceAccountsList-BM7GGcvw.js} +33 -33
- package/dist/{Sessions--Gvc0kxw.js → Sessions-BCDJYuV2.js} +23 -24
- package/dist/{SettingsPage-DzDC7gD-.js → SettingsPage-DUhMsYBf.js} +27 -30
- package/dist/{SignIn-CTI_699e.js → SignIn-4D7WohI8.js} +9 -10
- package/dist/{SignInPage-HKC1bm2E.js → SignInPage-B6B-34GG.js} +4 -4
- package/dist/SignIns-CFoe4hpX.js +64 -0
- package/dist/StatusLine.vue_vue_type_script_setup_true_lang-DsdQmLq6.js +56 -0
- package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-BMA2YXTZ.js → SwitchField.vue_vue_type_script_setup_true_lang-Ds4q0bbl.js} +1 -1
- package/dist/{TextField.vue_vue_type_script_setup_true_lang-BFVsqcBX.js → TextField.vue_vue_type_script_setup_true_lang-CWIeeZRE.js} +2 -2
- package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-Dyh4Hhyl.js → TextareaField.vue_vue_type_script_setup_true_lang-D2j4s96s.js} +1 -1
- package/dist/{TimeField.vue_vue_type_script_setup_true_lang-gGFfQLuK.js → TimeField.vue_vue_type_script_setup_true_lang-D-Em4glH.js} +1 -1
- package/dist/UserRecord-Cd1TCpJZ.js +202 -0
- package/dist/UsersList-GJU5-CTG.js +74 -0
- package/dist/access/index.js +4 -4
- package/dist/app/index.js +1 -1
- package/dist/{application-BmXW6iW_.js → application-CuzT-0vW.js} +1 -1
- package/dist/button/index.js +6 -5
- package/dist/collection/PickerModal.vue.d.ts +26 -0
- package/dist/collection/definition.d.ts +6 -6
- package/dist/collection/http.d.ts +6 -6
- package/dist/collection/index.d.ts +5 -1
- package/dist/collection/index.js +144 -85
- package/dist/collection/picker.d.ts +39 -0
- package/dist/collection/types.d.ts +9 -4
- package/dist/collection/useCollection.d.ts +5 -5
- package/dist/content/ActivityStream.vue.d.ts +62 -0
- package/dist/content/CommentThread.vue.d.ts +52 -0
- package/dist/content/Composer.vue.d.ts +36 -0
- package/dist/content/index.d.ts +3 -0
- package/dist/content/index.js +321 -56
- package/dist/controls/index.js +28 -54
- package/dist/form/index.js +132 -134
- package/dist/format/index.d.ts +1 -0
- package/dist/format/index.js +10 -6
- package/dist/format/slug.d.ts +8 -0
- package/dist/highlight-DnYhLXnu.js +9 -0
- package/dist/http-Dm0uXY9O.js +95 -0
- package/dist/i18n/index.d.ts +14 -0
- package/dist/i18n/index.js +87 -63
- package/dist/i18n/plural.d.ts +23 -0
- package/dist/identity/embed.d.ts +39 -0
- package/dist/identity/index.d.ts +20 -0
- package/dist/identity/index.js +40 -21
- package/dist/identity/session.d.ts +9 -1
- package/dist/identity/shared/ChangeFeed.vue.d.ts +6 -3
- package/dist/identity/users/context.d.ts +8 -0
- package/dist/identity/users/dialogs.d.ts +10 -0
- package/dist/identity/users/ext.d.ts +8 -0
- package/dist/identity/users/feature.d.ts +10 -0
- package/dist/identity/users/list.d.ts +1 -1
- package/dist/identity/users/personSections.d.ts +1 -1
- package/dist/identity/users/replace.d.ts +45 -0
- package/dist/identity/users/words.d.ts +28 -0
- package/dist/incidents/api.d.ts +1 -1
- package/dist/incidents/index.js +1 -1
- package/dist/{index-Dz0LkLM8.js → index-CTkG-acm.js} +4 -4
- package/dist/{index-Dm-sdJJr.js → index-DUs7WSz-.js} +31 -32
- package/dist/index-pJ_eRg80.js +1257 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modal/index.js +3 -3
- package/dist/modules/identity/entities.d.ts +7 -0
- package/dist/modules/identity/routes.d.ts +8 -4
- package/dist/modules/identity/schemas.d.ts +16 -0
- package/dist/{neighbors-DVfU9T0o.js → neighbors-OyvGi233.js} +2 -2
- package/dist/notifications/deadletters/list.d.ts +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/{options-QuOkMKVZ.js → options-B48UiYsG.js} +2 -2
- package/dist/page/index.js +11 -11
- package/dist/phone/index.js +1 -1
- package/dist/pwa/AndroidInstallBanner.vue.d.ts +18 -0
- package/dist/pwa/InstallQrSheet.vue.d.ts +21 -0
- package/dist/pwa/IosInstallGuide.vue.d.ts +19 -0
- package/dist/pwa/QrCode.vue.d.ts +16 -0
- package/dist/pwa/index.d.ts +4 -0
- package/dist/pwa/index.js +244 -24
- package/dist/resource/index.js +1 -1
- package/dist/{rowLayout-CT8vWYgI.js → rowLayout-Il4psyXN.js} +183 -188
- package/dist/shell/DarkModeRow.vue.d.ts +15 -0
- package/dist/shell/OfflineNotice.vue.d.ts +2 -0
- package/dist/shell/QuickSearchButton.vue.d.ts +2 -0
- package/dist/shell/QuickSearchPalette.vue.d.ts +12 -0
- package/dist/shell/darkMode.d.ts +26 -0
- package/dist/shell/index.d.ts +10 -0
- package/dist/shell/index.js +963 -580
- package/dist/shell/offlineNotice.d.ts +3 -0
- package/dist/shell/quickSearch.d.ts +14 -0
- package/dist/shell/quickSearchControl.d.ts +66 -0
- package/dist/shortcut-DUR6yPWA.js +93 -0
- package/dist/state/BackgroundTaskCapsule.vue.d.ts +18 -0
- package/dist/state/backgroundTasks.d.ts +58 -0
- package/dist/state/index.d.ts +4 -0
- package/dist/state/index.js +194 -80
- package/dist/state/useCountUp.d.ts +9 -0
- package/dist/styles.css +1 -1
- package/dist/{suggestions-BVQhoXzS.js → suggestions-q_v3M7G6.js} +1 -1
- package/dist/testing/collection.d.ts +1 -1
- package/dist/{useCommand-Dc8Lgs9h.js → useCommand-Ch_nx1AQ.js} +4 -4
- package/dist/{useGroupSheet-DQ6cVG-z.js → useGroupSheet-CPjHydQV.js} +14 -15
- package/dist/{useRecordDialog-BTsbHY38.js → useRecordDialog-DdkauXnU.js} +1 -1
- package/dist/{useResourceForm-DJ4Q75pq.js → useResourceForm-Dl6YFYyz.js} +1 -1
- package/package.json +3 -2
- package/dist/ActionRow.vue_vue_type_script_setup_true_lang-Cg1lhpcA.js +0 -45
- package/dist/Activity-29hsZ28j.js +0 -156
- package/dist/Button.vue_vue_type_script_setup_true_lang-Dp7OB-eF.js +0 -192
- package/dist/Changes-Dxjdkd_5.js +0 -129
- package/dist/FormErrors.vue_vue_type_script_setup_true_lang-CIggKPtq.js +0 -295
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-B37dixvJ.js +0 -137
- package/dist/PageBar.vue_vue_type_script_setup_true_lang-qI94fjJv.js +0 -47
- package/dist/ProfilePage-BnohZIEg.js +0 -764
- package/dist/ProgressTrack.vue_vue_type_script_setup_true_lang-B6Prw9hi.js +0 -64
- package/dist/SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js +0 -23
- package/dist/SessionList.vue_vue_type_script_setup_true_lang-Cnyt5V8T.js +0 -133
- package/dist/SignIns-BcqBgWgN.js +0 -121
- package/dist/UserRecord-CtUPpbCt.js +0 -267
- package/dist/UsersList-BMkIgIg8.js +0 -155
- package/dist/definition-C7QuyV3i.js +0 -54
- package/dist/fieldMessages-B6GHgi40.js +0 -25
- package/dist/http-nz92KjdS.js +0 -42
- package/dist/index-CdtofdcJ.js +0 -501
- package/dist/languages-BShG9LpE.js +0 -10
- package/dist/signInEvents-DWShrJox.js +0 -30
- package/dist/status-BRA14qwX.js +0 -34
- package/dist/useWaitStatus-fsacMl4W.js +0 -24
package/dist/form/index.js
CHANGED
|
@@ -1,50 +1,48 @@
|
|
|
1
|
-
import { _ as Ue, c as
|
|
2
|
-
import { E as Bo,
|
|
3
|
-
import { f as Te } from "../useCommand-
|
|
4
|
-
import { _ as
|
|
5
|
-
import { ref as P, computed as h, defineComponent as A, openBlock as u, createBlock as D, mergeProps as W, unref as l, createSlots as J, withCtx as f, createElementVNode as y, normalizeClass as I, createElementBlock as g, Fragment as ie, renderList as xe, createVNode as j, createCommentVNode as L, toDisplayString as _, renderSlot as F, mergeDefaults as ue, useModel as re, useId as De, withKeys as Ce, withModifiers as pe, createTextVNode as H, mergeModels as le, useTemplateRef as U, shallowRef as Ee, watch as ye, normalizeProps as ze, guardReactiveProps as Ve, nextTick as he, provide as
|
|
1
|
+
import { a as tt, _ as Ue, c as at, f as lt } from "../FormGroup.vue_vue_type_script_setup_true_lang-D6jYfNjW.js";
|
|
2
|
+
import { E as Fo, b as Bo, d as Lo, p as To, r as zo, u as Vo, e as qo, g as Do } from "../FormGroup.vue_vue_type_script_setup_true_lang-D6jYfNjW.js";
|
|
3
|
+
import { f as Te } from "../useCommand-Ch_nx1AQ.js";
|
|
4
|
+
import { _ as Mo, a as jo, u as Io } from "../useCommand-Ch_nx1AQ.js";
|
|
5
|
+
import { ref as P, computed as h, defineComponent as A, openBlock as u, createBlock as D, mergeProps as W, unref as l, createSlots as J, withCtx as f, createElementVNode as y, normalizeClass as I, createElementBlock as g, Fragment as ie, renderList as xe, createVNode as j, createCommentVNode as L, toDisplayString as _, renderSlot as F, mergeDefaults as ue, useModel as re, useId as De, withKeys as Ce, withModifiers as pe, createTextVNode as H, mergeModels as le, useTemplateRef as U, shallowRef as Ee, watch as ye, normalizeProps as ze, guardReactiveProps as Ve, nextTick as he, provide as ot, inject as Ye, onBeforeUnmount as We, getCurrentScope as nt, onScopeDispose as st, toValue as rt, shallowReactive as Ne, normalizeStyle as it, resolveDynamicComponent as ut } from "vue";
|
|
6
6
|
import { a as Je } from "../leaveGuard-Cc8yeLxM.js";
|
|
7
|
-
import { M as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { u as
|
|
7
|
+
import { M as Eo, c as No, i as Ao, l as Go, u as Ko } from "../leaveGuard-Cc8yeLxM.js";
|
|
8
|
+
import { _ as Ho } from "../LeaveGuardRoot.vue_vue_type_script_setup_true_lang-CIwW7y4j.js";
|
|
9
|
+
import { u as Yo } from "../useResourceForm-Dl6YFYyz.js";
|
|
10
10
|
import { _ as Z } from "../Icon.vue_vue_type_script_lang-BhhsFYwp.js";
|
|
11
|
-
import { u as Ze, _ as ge, f as de, b as ce, a as Xe, e as Re, g as
|
|
12
|
-
import { d as
|
|
11
|
+
import { u as Ze, _ as ge, f as de, b as ce, a as Xe, e as Re, g as dt, j as ct, k as ft } from "../options-B48UiYsG.js";
|
|
12
|
+
import { d as Jo, h as Zo, m as Xo } from "../options-B48UiYsG.js";
|
|
13
13
|
import { useI18n as oe } from "vue-i18n";
|
|
14
|
-
import { b as
|
|
15
|
-
import { a as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { u as
|
|
18
|
-
import { r as
|
|
19
|
-
import { s as $e, u as Ae, i as
|
|
20
|
-
import { u as
|
|
21
|
-
import { _ as
|
|
14
|
+
import { b as mt } from "../controlSurface-t7OEFESJ.js";
|
|
15
|
+
import { a as vt } from "../TextField.vue_vue_type_script_setup_true_lang-CWIeeZRE.js";
|
|
16
|
+
import { _ as en } from "../TextField.vue_vue_type_script_setup_true_lang-CWIeeZRE.js";
|
|
17
|
+
import { u as pt, l as bt } from "../suggestions-q_v3M7G6.js";
|
|
18
|
+
import { r as an } from "../suggestions-q_v3M7G6.js";
|
|
19
|
+
import { s as $e, u as Ae, i as yt, o as _e, e as Se, k as gt, _ as ht, l as kt, c as xt, b as wt, t as Le, g as $t, q as _t } from "../useTypedEntry-C_Bk4sI0.js";
|
|
20
|
+
import { u as Ct, a as St, s as Ft } from "../DateField.vue_vue_type_script_setup_true_lang-CeNwBbJT.js";
|
|
21
|
+
import { _ as on } from "../DateField.vue_vue_type_script_setup_true_lang-CeNwBbJT.js";
|
|
22
22
|
import { _ as Qe } from "../DateButton.vue_vue_type_script_setup_true_lang-CovKG5lN.js";
|
|
23
|
-
import { u as
|
|
23
|
+
import { u as Bt } from "../format-D8KUBmbS.js";
|
|
24
24
|
import { u as Me } from "../mediaQuery-CygcXmFW.js";
|
|
25
25
|
import { _ as je } from "../Popover.vue_vue_type_script_setup_true_lang-C20Hf3Hl.js";
|
|
26
|
-
import { u as
|
|
27
|
-
import { _ as
|
|
28
|
-
import { _ as be } from "../Button.vue_vue_type_script_setup_true_lang-
|
|
29
|
-
import { _ as
|
|
30
|
-
import { a as on, c as nn, p as sn, r as rn, u as un } from "../FormGroup.vue_vue_type_script_setup_true_lang-B37dixvJ.js";
|
|
31
|
-
import { _ as cn } from "../FormView.vue_vue_type_script_setup_true_lang-aaNnMIOi.js";
|
|
26
|
+
import { u as Lt } from "../TimeField.vue_vue_type_script_setup_true_lang-D-Em4glH.js";
|
|
27
|
+
import { _ as sn } from "../TimeField.vue_vue_type_script_setup_true_lang-D-Em4glH.js";
|
|
28
|
+
import { _ as be } from "../Button.vue_vue_type_script_setup_true_lang-C74hcb0N.js";
|
|
29
|
+
import { _ as un } from "../FormView.vue_vue_type_script_setup_true_lang-DvbPEiNQ.js";
|
|
32
30
|
import { i as Tt } from "../intlLocale-CeRU44qJ.js";
|
|
33
31
|
import { a as zt } from "../environment-Dva-SG8D.js";
|
|
34
|
-
import { _ as Vt } from "../NumberField.vue_vue_type_script_setup_true_lang-
|
|
32
|
+
import { _ as Vt } from "../NumberField.vue_vue_type_script_setup_true_lang-B3UrXNqH.js";
|
|
35
33
|
import { _ as qt } from "../Sheet.vue_vue_type_script_setup_true_lang-B91aRD_y.js";
|
|
36
|
-
import { b as Dt, a as Ge } from "../SelectField.vue_vue_type_script_setup_true_lang-
|
|
37
|
-
import { _ as
|
|
38
|
-
import { _ as
|
|
34
|
+
import { b as Dt, a as Ge } from "../SelectField.vue_vue_type_script_setup_true_lang-BZwdANL3.js";
|
|
35
|
+
import { _ as cn, u as fn } from "../SelectField.vue_vue_type_script_setup_true_lang-BZwdANL3.js";
|
|
36
|
+
import { _ as vn, b as pn, a as bn, u as yn } from "../useGroupSheet-CPjHydQV.js";
|
|
39
37
|
import { _ as Ke } from "../PhotoViewer.vue_vue_type_script_setup_true_lang-Bqxj_uJ5.js";
|
|
40
|
-
import { _ as
|
|
41
|
-
import { _ as
|
|
42
|
-
import { _ as
|
|
43
|
-
import {
|
|
44
|
-
import { _ as Mt, a as jt } from "../SectionList.vue_vue_type_script_setup_true_lang-
|
|
38
|
+
import { _ as hn } from "../SegmentedField.vue_vue_type_script_setup_true_lang-zv_AxpBn.js";
|
|
39
|
+
import { _ as xn } from "../SwitchField.vue_vue_type_script_setup_true_lang-Ds4q0bbl.js";
|
|
40
|
+
import { _ as $n } from "../TextareaField.vue_vue_type_script_setup_true_lang-D2j4s96s.js";
|
|
41
|
+
import { _ as Rt } from "../AdaptivePageShell.vue_vue_type_script_setup_true_lang-D5i77H6S.js";
|
|
42
|
+
import { _ as Mt, a as jt } from "../SectionList.vue_vue_type_script_setup_true_lang-DR0_NsqC.js";
|
|
45
43
|
import { p as It } from "../sectionIndex-BS0ic5W7.js";
|
|
46
44
|
import { u as Ot } from "../useSaveChrome-7huA3FzR.js";
|
|
47
|
-
import { u as
|
|
45
|
+
import { u as Cn } from "../useRecordDialog-DdkauXnU.js";
|
|
48
46
|
import { matchedRouteKey as Et, onBeforeRouteLeave as Nt } from "vue-router";
|
|
49
47
|
function At(o) {
|
|
50
48
|
const a = P(null);
|
|
@@ -53,7 +51,7 @@ function At(o) {
|
|
|
53
51
|
markClean: () => a.value = JSON.stringify(o())
|
|
54
52
|
};
|
|
55
53
|
}
|
|
56
|
-
function
|
|
54
|
+
function no(o) {
|
|
57
55
|
const a = P(!1), e = At(o), { confirmDiscard: t } = Je(() => a.value && e.isDirty.value);
|
|
58
56
|
return {
|
|
59
57
|
/** The sheet was just filled: its current values are the baseline. */
|
|
@@ -74,7 +72,7 @@ const Gt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Kt = ["name
|
|
|
74
72
|
key: 1,
|
|
75
73
|
class: "flex size-5 shrink-0 items-center justify-center rounded-full bg-control-on text-white",
|
|
76
74
|
"aria-hidden": "true"
|
|
77
|
-
},
|
|
75
|
+
}, so = /* @__PURE__ */ A({
|
|
78
76
|
__name: "CardSelectField",
|
|
79
77
|
props: /* @__PURE__ */ ue({
|
|
80
78
|
label: {},
|
|
@@ -171,7 +169,7 @@ const Gt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Kt = ["name
|
|
|
171
169
|
}), Wt = ["data-field-error"], Jt = ["aria-checked", "aria-disabled", "aria-describedby", "aria-invalid", "tabindex", "onKeydown"], Zt = { class: "flex min-w-0 flex-1 flex-col items-start" }, Xt = {
|
|
172
170
|
key: 0,
|
|
173
171
|
class: "flex shrink-0 items-center gap-2.5"
|
|
174
|
-
}, Qt = ["id"],
|
|
172
|
+
}, Qt = ["id"], ro = /* @__PURE__ */ A({
|
|
175
173
|
__name: "CheckboxField",
|
|
176
174
|
props: /* @__PURE__ */ le({
|
|
177
175
|
label: {},
|
|
@@ -252,7 +250,7 @@ const Gt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Kt = ["name
|
|
|
252
250
|
}), ea = {
|
|
253
251
|
key: 0,
|
|
254
252
|
class: "text-body text-content-muted"
|
|
255
|
-
}, ta = ["id", "aria-label", "aria-describedby", "aria-invalid"], aa = ["aria-pressed", "disabled", "onClick"],
|
|
253
|
+
}, ta = ["id", "aria-label", "aria-describedby", "aria-invalid"], aa = ["aria-pressed", "disabled", "onClick"], io = /* @__PURE__ */ A({
|
|
256
254
|
__name: "ChoiceChips",
|
|
257
255
|
props: /* @__PURE__ */ le(/* @__PURE__ */ ue({
|
|
258
256
|
label: {},
|
|
@@ -334,7 +332,7 @@ const Gt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Kt = ["name
|
|
|
334
332
|
key: 0,
|
|
335
333
|
class: "flex shrink-0 items-center",
|
|
336
334
|
"data-test": "field-value"
|
|
337
|
-
}, oa = ["id", "value", "name", "placeholder", "disabled", "required", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-required", "aria-invalid", "aria-describedby"], na = { class: "block break-words text-body text-content-strong" },
|
|
335
|
+
}, oa = ["id", "value", "name", "placeholder", "disabled", "required", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-required", "aria-invalid", "aria-describedby"], na = { class: "block break-words text-body text-content-strong" }, uo = /* @__PURE__ */ A({
|
|
338
336
|
__name: "ComboField",
|
|
339
337
|
props: /* @__PURE__ */ le(/* @__PURE__ */ ue({
|
|
340
338
|
label: {},
|
|
@@ -363,7 +361,7 @@ const Gt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Kt = ["name
|
|
|
363
361
|
}),
|
|
364
362
|
emits: /* @__PURE__ */ le(["picked", "focus", "blur"], ["update:modelValue"]),
|
|
365
363
|
setup(o, { expose: a, emit: e }) {
|
|
366
|
-
const t = o, s = re(o, "modelValue"), n = e, { t: c } = oe(), i = !!Xe(), p = Re("text", () => t.error ? "error" : t.disabled ? "locked" : "rest"), k = h(() => t.rowLayout === "stacked"), w = h(() => i && !k.value ?
|
|
364
|
+
const t = o, s = re(o, "modelValue"), n = e, { t: c } = oe(), i = !!Xe(), p = Re("text", () => t.error ? "error" : t.disabled ? "locked" : "rest"), k = h(() => t.rowLayout === "stacked"), w = h(() => i && !k.value ? mt(t.width) : "w-full"), $ = U("input"), r = U("anchor"), m = Ee(null), b = Ee(""), C = pt({
|
|
367
365
|
source: () => t.search ?? t.options,
|
|
368
366
|
minLength: () => t.minLength,
|
|
369
367
|
debounce: () => t.debounce,
|
|
@@ -389,7 +387,7 @@ const Gt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Kt = ["name
|
|
|
389
387
|
function fe(T) {
|
|
390
388
|
C.close(), b.value = M.value?.label ?? "", n("blur", T);
|
|
391
389
|
}
|
|
392
|
-
const me = h(() =>
|
|
390
|
+
const me = h(() => bt(x.value, q.value.length, O.value, !0));
|
|
393
391
|
return a({ focus: () => $.value?.focus() }), (T, G) => (u(), D(ge, W(l(de)(t), {
|
|
394
392
|
value: M.value?.label ?? null,
|
|
395
393
|
"row-layout": t.rowLayout
|
|
@@ -436,7 +434,7 @@ const Gt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Kt = ["name
|
|
|
436
434
|
class: "shrink-0 text-content-muted"
|
|
437
435
|
})
|
|
438
436
|
], 2),
|
|
439
|
-
j(
|
|
437
|
+
j(vt, {
|
|
440
438
|
id: E,
|
|
441
439
|
anchor: r.value,
|
|
442
440
|
open: l(x),
|
|
@@ -504,7 +502,7 @@ const Gt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Kt = ["name
|
|
|
504
502
|
}, fa = { class: "flex w-75 flex-col gap-2.5 border-r border-border-separator p-3.5" }, ma = {
|
|
505
503
|
key: 0,
|
|
506
504
|
class: "border-t border-border-separator pt-2.5"
|
|
507
|
-
}, va = { class: "flex w-48 flex-col gap-2.5 px-3 py-3.5" }, pa = ["for"], ba = ["id", "value", "placeholder", "aria-invalid"], ya = ["onClick"],
|
|
505
|
+
}, va = { class: "flex w-48 flex-col gap-2.5 px-3 py-3.5" }, pa = ["for"], ba = ["id", "value", "placeholder", "aria-invalid"], ya = ["onClick"], co = /* @__PURE__ */ A({
|
|
508
506
|
__name: "DateTimeField",
|
|
509
507
|
props: /* @__PURE__ */ le(/* @__PURE__ */ ue({
|
|
510
508
|
label: {},
|
|
@@ -529,9 +527,9 @@ const Gt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Kt = ["name
|
|
|
529
527
|
}),
|
|
530
528
|
emits: /* @__PURE__ */ le(["focus", "blur"], ["update:modelValue"]),
|
|
531
529
|
setup(o, { expose: a, emit: e }) {
|
|
532
|
-
const t = o, s = re(o, "modelValue"), n = e, { t: c } = oe(), i =
|
|
530
|
+
const t = o, s = re(o, "modelValue"), n = e, { t: c } = oe(), i = Bt(), p = Me(), k = U("input"), w = U("popover"), $ = U("calendar"), r = U("sheet"), m = h(() => ({ min: t.min?.slice(0, 10), max: t.max?.slice(0, 10), disabled: t.disabledDates })), b = h(() => t.min && t.min.length === 10 ? `${t.min}T00:00` : t.min), C = h(() => t.max && t.max.length === 10 ? `${t.max}T23:59` : t.max), q = (B, d) => !$t(d, { disabled: t.disabledDates }) && (!b.value || B >= b.value) && (!C.value || B <= C.value), x = Ct(() => m.value), O = Lt(() => t.minuteStep), R = h(() => $e(s.value));
|
|
533
531
|
function X(B) {
|
|
534
|
-
const { date: d, time: z } =
|
|
532
|
+
const { date: d, time: z } = Ft(B), v = d === null ? R.value.day ?? Se() : x.parse(d);
|
|
535
533
|
if (!v) return { error: x.invalidMessage() };
|
|
536
534
|
let V = R.value.time ?? Le(t.minuteStep);
|
|
537
535
|
if (z !== null) {
|
|
@@ -545,12 +543,12 @@ const Gt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Kt = ["name
|
|
|
545
543
|
const M = Ae({ model: s, display: (B) => `${i.date($e(B).day)} ${$e(B).time ?? ""}`.trim(), parse: X }), ne = h({
|
|
546
544
|
get: () => R.value.time,
|
|
547
545
|
set: (B) => {
|
|
548
|
-
B &&
|
|
546
|
+
B && yt(B) && (s.value = _e(R.value.day ?? Se(), B));
|
|
549
547
|
}
|
|
550
|
-
}), Q = Ae({ model: ne, display: (B) => B, parse: O.parse }), te =
|
|
548
|
+
}), Q = Ae({ model: ne, display: (B) => B, parse: O.parse }), te = St(() => t.quickPicks ?? (p.value ? void 0 : []), () => p.value, () => m.value), fe = h(() => t.error || M.message.value || Q.message.value), me = h(() => s.value ? i.dateTime(s.value) : null), T = Re("date", () => fe.value ? "error" : t.disabled ? "locked" : "rest"), G = h(() => {
|
|
551
549
|
const B = M.typed.value;
|
|
552
550
|
return B ? $e(B).day ?? null : null;
|
|
553
|
-
}), E = h(() => G.value ?? (
|
|
551
|
+
}), E = h(() => G.value ?? (gt(R.value.day) ? R.value.day : null)), ae = h(() => M.typed.value ? $e(M.typed.value).time : R.value.time);
|
|
554
552
|
function se(B) {
|
|
555
553
|
B && M.set(_e(B, R.value.time ?? Le(t.minuteStep)));
|
|
556
554
|
}
|
|
@@ -588,7 +586,7 @@ const Gt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Kt = ["name
|
|
|
588
586
|
]),
|
|
589
587
|
_: 1
|
|
590
588
|
}, 16, ["disabled", "invalid", "placeholder"]),
|
|
591
|
-
j(
|
|
589
|
+
j(ht, {
|
|
592
590
|
ref_key: "sheet",
|
|
593
591
|
ref: r,
|
|
594
592
|
title: t.label ?? l(c)("core.form.date.calendar"),
|
|
@@ -661,7 +659,7 @@ const Gt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Kt = ["name
|
|
|
661
659
|
default: f(({ dismiss: S }) => [
|
|
662
660
|
y("div", ca, [
|
|
663
661
|
y("div", fa, [
|
|
664
|
-
j(
|
|
662
|
+
j(kt, {
|
|
665
663
|
ref_key: "calendar",
|
|
666
664
|
ref: $,
|
|
667
665
|
"model-value": E.value,
|
|
@@ -672,7 +670,7 @@ const Gt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Kt = ["name
|
|
|
672
670
|
"onUpdate:modelValue": se
|
|
673
671
|
}, null, 8, ["model-value", "min", "max", "disabled-dates", "open-on"]),
|
|
674
672
|
l(te).length > 0 ? (u(), g("div", ma, [
|
|
675
|
-
j(
|
|
673
|
+
j(xt, {
|
|
676
674
|
items: l(te),
|
|
677
675
|
selected: E.value,
|
|
678
676
|
onPick: se
|
|
@@ -697,7 +695,7 @@ const Gt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Kt = ["name
|
|
|
697
695
|
onBlur: d[6] || (d[6] = (N) => l(Q).commit()),
|
|
698
696
|
onKeydown: d[7] || (d[7] = Ce(pe((N) => l(Q).commit(), ["prevent"]), ["enter"]))
|
|
699
697
|
}, null, 40, ba),
|
|
700
|
-
j(
|
|
698
|
+
j(wt, {
|
|
701
699
|
"model-value": ae.value,
|
|
702
700
|
step: t.minuteStep,
|
|
703
701
|
"onUpdate:modelValue": ee
|
|
@@ -757,7 +755,7 @@ const ga = { class: "w-full" }, ha = ["id", "accept", "disabled", "aria-describe
|
|
|
757
755
|
key: 0,
|
|
758
756
|
class: "flex items-center gap-3 rounded-group bg-fill p-3",
|
|
759
757
|
"data-test": "file-selected"
|
|
760
|
-
}, xa = { class: "min-w-0 flex-1" }, wa = { class: "truncate text-body font-medium text-content-strong" }, $a = { class: "text-footnote text-content-muted" }, _a = ["disabled", "aria-label", "title"], Ca = ["aria-disabled"], Sa = { class: "font-semibold text-content-link" }, Fa = { class: "text-content-muted" },
|
|
758
|
+
}, xa = { class: "min-w-0 flex-1" }, wa = { class: "truncate text-body font-medium text-content-strong" }, $a = { class: "text-footnote text-content-muted" }, _a = ["disabled", "aria-label", "title"], Ca = ["aria-disabled"], Sa = { class: "font-semibold text-content-link" }, Fa = { class: "text-content-muted" }, fo = /* @__PURE__ */ A({
|
|
761
759
|
__name: "FileField",
|
|
762
760
|
props: /* @__PURE__ */ le(/* @__PURE__ */ ue({
|
|
763
761
|
label: {},
|
|
@@ -888,7 +886,7 @@ const ga = { class: "w-full" }, ha = ["id", "accept", "disabled", "aria-describe
|
|
|
888
886
|
} : void 0
|
|
889
887
|
]), 1040, ["value"]));
|
|
890
888
|
}
|
|
891
|
-
}), Ba = ["disabled"],
|
|
889
|
+
}), Ba = ["disabled"], mo = /* @__PURE__ */ A({
|
|
892
890
|
__name: "FormGroupButton",
|
|
893
891
|
props: {
|
|
894
892
|
label: {},
|
|
@@ -898,9 +896,9 @@ const ga = { class: "w-full" }, ha = ["id", "accept", "disabled", "aria-describe
|
|
|
898
896
|
emits: ["click"],
|
|
899
897
|
setup(o, { emit: a }) {
|
|
900
898
|
const e = o, t = a;
|
|
901
|
-
return (s, n) => (u(), D(
|
|
899
|
+
return (s, n) => (u(), D(tt, null, {
|
|
902
900
|
default: f(() => [
|
|
903
|
-
j(
|
|
901
|
+
j(dt, { layout: "stacked" }, {
|
|
904
902
|
default: f(() => [
|
|
905
903
|
y("button", {
|
|
906
904
|
type: "button",
|
|
@@ -915,10 +913,10 @@ const ga = { class: "w-full" }, ha = ["id", "accept", "disabled", "aria-describe
|
|
|
915
913
|
_: 1
|
|
916
914
|
}));
|
|
917
915
|
}
|
|
918
|
-
}),
|
|
916
|
+
}), vo = /* @__PURE__ */ A({
|
|
919
917
|
__name: "FormIndent",
|
|
920
918
|
setup(o) {
|
|
921
|
-
return
|
|
919
|
+
return ot(ct, ft() + 1), (a, e) => F(a.$slots, "default");
|
|
922
920
|
}
|
|
923
921
|
});
|
|
924
922
|
function La(o, a) {
|
|
@@ -937,7 +935,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
937
935
|
}, Ma = ["aria-label"], ja = ["id", "aria-selected", "tabindex", "aria-controls", "aria-label", "title", "onClick", "onKeydown"], Ia = ["data-state"], Oa = { class: "w-full" }, Ea = { class: "whitespace-pre-line break-words text-body text-content-strong" }, Na = ["aria-expanded"], Aa = { class: "flex-1" }, Ga = {
|
|
938
936
|
key: 0,
|
|
939
937
|
class: "mt-1 flex flex-col gap-1.5"
|
|
940
|
-
}, Ka = ["title"],
|
|
938
|
+
}, Ka = ["title"], po = /* @__PURE__ */ A({
|
|
941
939
|
__name: "I18nField",
|
|
942
940
|
props: /* @__PURE__ */ le(/* @__PURE__ */ ue({
|
|
943
941
|
label: {},
|
|
@@ -1158,10 +1156,10 @@ function qe(o, a, e) {
|
|
|
1158
1156
|
else if (o && typeof o == "object")
|
|
1159
1157
|
for (const [t, s] of Object.entries(o)) qe(s, [...a, t], e);
|
|
1160
1158
|
}
|
|
1161
|
-
function
|
|
1159
|
+
function bo(o, a) {
|
|
1162
1160
|
qe(o, [], a);
|
|
1163
1161
|
}
|
|
1164
|
-
const
|
|
1162
|
+
const yo = /* @__PURE__ */ A({
|
|
1165
1163
|
__name: "MoneyField",
|
|
1166
1164
|
props: /* @__PURE__ */ ue({
|
|
1167
1165
|
label: {},
|
|
@@ -1221,7 +1219,7 @@ const go = /* @__PURE__ */ A({
|
|
|
1221
1219
|
} : void 0
|
|
1222
1220
|
]), 1040, ["model-value", "decimals", "negative", "blank-zero", "suffix", "width"]));
|
|
1223
1221
|
}
|
|
1224
|
-
}), Ya = { class: "flex flex-col gap-2" }, Wa = ["onClick"],
|
|
1222
|
+
}), Ya = { class: "flex flex-col gap-2" }, Wa = ["onClick"], go = /* @__PURE__ */ A({
|
|
1225
1223
|
__name: "MonthYearField",
|
|
1226
1224
|
props: /* @__PURE__ */ le(/* @__PURE__ */ ue({
|
|
1227
1225
|
label: {},
|
|
@@ -1285,7 +1283,7 @@ const go = /* @__PURE__ */ A({
|
|
|
1285
1283
|
]),
|
|
1286
1284
|
default: f(({ dismiss: C }) => [
|
|
1287
1285
|
y("div", Ya, [
|
|
1288
|
-
j(
|
|
1286
|
+
j(_t, {
|
|
1289
1287
|
month: e.value,
|
|
1290
1288
|
year: t.value,
|
|
1291
1289
|
"min-year": a.minYear,
|
|
@@ -1328,7 +1326,7 @@ const go = /* @__PURE__ */ A({
|
|
|
1328
1326
|
} : void 0
|
|
1329
1327
|
]), 1040, ["value"]));
|
|
1330
1328
|
}
|
|
1331
|
-
}), Ja = { class: "flex min-w-0 flex-wrap items-center gap-1.5 py-0.5" }, Za = { class: "truncate" }, Xa = ["disabled", "aria-label", "onClick"], Qa = ["id", "disabled", "aria-expanded", "aria-invalid", "aria-describedby", "aria-busy"], el = ["id", "disabled", "aria-invalid", "aria-describedby", "aria-busy", "onClick"], tl = { class: "max-h-72 overflow-y-auto" }, al = { class: "flex items-center justify-between gap-2" }, Pe = "inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-control bg-fill px-2.5 py-1 text-body text-content-muted hover:bg-fill-strong focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus disabled:cursor-not-allowed disabled:opacity-45",
|
|
1329
|
+
}), Ja = { class: "flex min-w-0 flex-wrap items-center gap-1.5 py-0.5" }, Za = { class: "truncate" }, Xa = ["disabled", "aria-label", "onClick"], Qa = ["id", "disabled", "aria-expanded", "aria-invalid", "aria-describedby", "aria-busy"], el = ["id", "disabled", "aria-invalid", "aria-describedby", "aria-busy", "onClick"], tl = { class: "max-h-72 overflow-y-auto" }, al = { class: "flex items-center justify-between gap-2" }, Pe = "inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-control bg-fill px-2.5 py-1 text-body text-content-muted hover:bg-fill-strong focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus disabled:cursor-not-allowed disabled:opacity-45", ho = /* @__PURE__ */ A({
|
|
1332
1330
|
__name: "MultiSelectField",
|
|
1333
1331
|
props: /* @__PURE__ */ le(/* @__PURE__ */ ue({
|
|
1334
1332
|
label: {},
|
|
@@ -1541,7 +1539,7 @@ const go = /* @__PURE__ */ A({
|
|
|
1541
1539
|
} : void 0
|
|
1542
1540
|
]), 1040, ["value"]));
|
|
1543
1541
|
}
|
|
1544
|
-
}), ll = ["aria-label"], ol = ["src"], nl = { class: "flex flex-wrap items-center gap-3" }, sl = ["id", "accept", "disabled", "aria-describedby", "aria-invalid"], rl = ["aria-label"], il = ["src"],
|
|
1542
|
+
}), ll = ["aria-label"], ol = ["src"], nl = { class: "flex flex-wrap items-center gap-3" }, sl = ["id", "accept", "disabled", "aria-describedby", "aria-invalid"], rl = ["aria-label"], il = ["src"], ko = /* @__PURE__ */ A({
|
|
1545
1543
|
__name: "PhotoField",
|
|
1546
1544
|
props: /* @__PURE__ */ le(/* @__PURE__ */ ue({
|
|
1547
1545
|
label: {},
|
|
@@ -1710,7 +1708,7 @@ function cl(o) {
|
|
|
1710
1708
|
t();
|
|
1711
1709
|
},
|
|
1712
1710
|
{ immediate: !0 }
|
|
1713
|
-
),
|
|
1711
|
+
), nt() && st(() => {
|
|
1714
1712
|
s?.disconnect(), e && cancelAnimationFrame(e);
|
|
1715
1713
|
});
|
|
1716
1714
|
const n = h(() => (a.value, Object.fromEntries(
|
|
@@ -1730,7 +1728,7 @@ const fl = {
|
|
|
1730
1728
|
}, ml = {
|
|
1731
1729
|
key: 0,
|
|
1732
1730
|
class: "sticky top-[calc(var(--app-bar-height)+1.5rem+var(--shell-banner-h,0px))] hidden min-w-0 flex-col gap-4 self-start lg:flex"
|
|
1733
|
-
},
|
|
1731
|
+
}, xo = /* @__PURE__ */ A({
|
|
1734
1732
|
__name: "EditorPage",
|
|
1735
1733
|
props: {
|
|
1736
1734
|
title: {},
|
|
@@ -1838,7 +1836,7 @@ const fl = {
|
|
|
1838
1836
|
} : void 0
|
|
1839
1837
|
]), 1032, ["title", "back"]));
|
|
1840
1838
|
}
|
|
1841
|
-
}), vl = ["value", "aria-label", "disabled", "aria-invalid", "placeholder"],
|
|
1839
|
+
}), vl = ["value", "aria-label", "disabled", "aria-invalid", "placeholder"], wo = /* @__PURE__ */ A({
|
|
1842
1840
|
__name: "NumberCell",
|
|
1843
1841
|
props: /* @__PURE__ */ le({
|
|
1844
1842
|
label: {},
|
|
@@ -1915,8 +1913,8 @@ function yl(o, a) {
|
|
|
1915
1913
|
(s === null || t === null || t === void 0 || typeof s == typeof t && Array.isArray(s) === Array.isArray(t)) && (o[e] = s);
|
|
1916
1914
|
}
|
|
1917
1915
|
}
|
|
1918
|
-
function
|
|
1919
|
-
const { t: e } = oe(), t = h(() =>
|
|
1916
|
+
function $o(o, a) {
|
|
1917
|
+
const { t: e } = oe(), t = h(() => rt(a.steps));
|
|
1920
1918
|
if (t.value.length === 0) throw new Error("useStepForm: a flow needs at least one step.");
|
|
1921
1919
|
const s = P(t.value[0].name), n = Ne(/* @__PURE__ */ new Set()), c = Ne(/* @__PURE__ */ new Set([t.value[0].name])), i = P(null), p = P(!1), k = P(0), w = P(!1), $ = P(!1);
|
|
1922
1920
|
let r = !1, m = 0;
|
|
@@ -1950,7 +1948,7 @@ function _o(o, a) {
|
|
|
1950
1948
|
function Q(d) {
|
|
1951
1949
|
const z = d.fields;
|
|
1952
1950
|
if (!z?.length) return !0;
|
|
1953
|
-
const v = Object.entries(o.errors.all()).filter(([S]) => !z.includes(
|
|
1951
|
+
const v = Object.entries(o.errors.all()).filter(([S]) => !z.includes(lt(S))), V = o.check(d.fields);
|
|
1954
1952
|
return v.length > 0 && o.errors.set({ ...Object.fromEntries(v), ...o.errors.all() }), V;
|
|
1955
1953
|
}
|
|
1956
1954
|
async function te(d) {
|
|
@@ -1998,7 +1996,7 @@ function _o(o, a) {
|
|
|
1998
1996
|
He(G), $.value = !1;
|
|
1999
1997
|
return;
|
|
2000
1998
|
}
|
|
2001
|
-
$.value = bl(G, { values:
|
|
1999
|
+
$.value = bl(G, { values: at(o.values), step: s.value, passed: [...n] });
|
|
2002
2000
|
}
|
|
2003
2001
|
}
|
|
2004
2002
|
function se() {
|
|
@@ -2134,14 +2132,14 @@ const gl = {
|
|
|
2134
2132
|
"aria-label": l(e)("core.steps.label"),
|
|
2135
2133
|
"data-test": "step-bar",
|
|
2136
2134
|
class: "grid min-w-0 gap-2",
|
|
2137
|
-
style:
|
|
2135
|
+
style: it({ gridTemplateColumns: `repeat(${a.flow.count.value}, minmax(0, 1fr))` })
|
|
2138
2136
|
}, [
|
|
2139
2137
|
(u(!0), g(ie, null, xe(a.flow.steps.value, (n) => (u(), g("li", {
|
|
2140
2138
|
key: n.name,
|
|
2141
2139
|
class: "flex min-w-0",
|
|
2142
2140
|
"aria-current": n.state === "current" ? "step" : void 0
|
|
2143
2141
|
}, [
|
|
2144
|
-
(u(), D(
|
|
2142
|
+
(u(), D(ut(n.reachable ? "button" : "div"), {
|
|
2145
2143
|
type: n.reachable ? "button" : void 0,
|
|
2146
2144
|
disabled: n.reachable ? a.flow.busy.value : void 0,
|
|
2147
2145
|
"data-test": `step-${n.name}`,
|
|
@@ -2193,7 +2191,7 @@ const gl = {
|
|
|
2193
2191
|
key: 1,
|
|
2194
2192
|
"data-test": "step-restored",
|
|
2195
2193
|
class: "flex items-center gap-2 text-footnote text-content-muted"
|
|
2196
|
-
},
|
|
2194
|
+
}, _o = /* @__PURE__ */ A({
|
|
2197
2195
|
__name: "StepForm",
|
|
2198
2196
|
props: {
|
|
2199
2197
|
flow: {},
|
|
@@ -2271,81 +2269,81 @@ const gl = {
|
|
|
2271
2269
|
}
|
|
2272
2270
|
});
|
|
2273
2271
|
export {
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2272
|
+
kt as Calendar,
|
|
2273
|
+
so as CardSelectField,
|
|
2274
|
+
ro as CheckboxField,
|
|
2275
|
+
io as ChoiceChips,
|
|
2276
|
+
uo as ComboField,
|
|
2277
|
+
Mo as CommandDialog,
|
|
2278
|
+
on as DateField,
|
|
2279
|
+
co as DateTimeField,
|
|
2280
|
+
xo as EditorPage,
|
|
2281
|
+
Fo as ErrorBag,
|
|
2284
2282
|
ge as Field,
|
|
2285
|
-
|
|
2283
|
+
fo as FileField,
|
|
2286
2284
|
Ue as FormErrors,
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2285
|
+
tt as FormGroup,
|
|
2286
|
+
mo as FormGroupButton,
|
|
2287
|
+
vo as FormIndent,
|
|
2288
|
+
dt as FormRow,
|
|
2289
|
+
un as FormView,
|
|
2290
|
+
Bo as GroupEditAction,
|
|
2291
|
+
vn as GroupSheet,
|
|
2292
|
+
po as I18nField,
|
|
2293
|
+
Ho as LeaveGuardRoot,
|
|
2294
|
+
Eo as MissingLeaveGuardRootError,
|
|
2295
|
+
yo as MoneyField,
|
|
2296
|
+
go as MonthYearField,
|
|
2297
|
+
ho as MultiSelectField,
|
|
2298
|
+
wo as NumberCell,
|
|
2301
2299
|
Vt as NumberField,
|
|
2302
2300
|
Ge as OptionList,
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2301
|
+
pn as OtpInput,
|
|
2302
|
+
ko as PhotoField,
|
|
2303
|
+
bn as RecordGroupScope,
|
|
2304
|
+
hn as SegmentedField,
|
|
2305
|
+
cn as SelectField,
|
|
2306
|
+
_o as StepForm,
|
|
2309
2307
|
hl as StepNavigation,
|
|
2310
2308
|
Sl as StepProgress,
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2309
|
+
xn as SwitchField,
|
|
2310
|
+
en as TextField,
|
|
2311
|
+
$n as TextareaField,
|
|
2312
|
+
sn as TimeField,
|
|
2315
2313
|
et as checkFile,
|
|
2316
|
-
|
|
2317
|
-
|
|
2314
|
+
Lo as createFieldGroups,
|
|
2315
|
+
No as createLeaveGuard,
|
|
2318
2316
|
ce as fieldDefaults,
|
|
2319
|
-
|
|
2317
|
+
jo as fieldKey,
|
|
2320
2318
|
de as fieldProps,
|
|
2321
2319
|
Te as focusFirstError,
|
|
2322
|
-
|
|
2320
|
+
Jo as formEditableKey,
|
|
2323
2321
|
Fe as formatBytes,
|
|
2324
|
-
|
|
2322
|
+
Zo as groupOptions,
|
|
2325
2323
|
Ua as hasUnsupportedCharacters,
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2324
|
+
Ao as installLeaveGuard,
|
|
2325
|
+
Go as leaveGuardKey,
|
|
2326
|
+
Xo as matchOptions,
|
|
2329
2327
|
La as missingLocales,
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2328
|
+
To as provideRecordGroups,
|
|
2329
|
+
an as recentChoicesKey,
|
|
2330
|
+
zo as recordGroupsKey,
|
|
2331
|
+
bo as refineStorableText,
|
|
2334
2332
|
Pa as unsupportedCharactersCode,
|
|
2335
|
-
|
|
2333
|
+
Io as useCommand,
|
|
2336
2334
|
At as useDirtySnapshot,
|
|
2337
2335
|
Ze as useFieldMode,
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2336
|
+
Vo as useForm,
|
|
2337
|
+
yn as useGroupSheet,
|
|
2338
|
+
qo as useHiddenFieldErrors,
|
|
2341
2339
|
Je as useLeaveGuard,
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2340
|
+
Ko as useLeaveGuardContext,
|
|
2341
|
+
fn as useOptions,
|
|
2342
|
+
Cn as useRecordDialog,
|
|
2343
|
+
Do as useRecordGroups,
|
|
2344
|
+
Yo as useResourceForm,
|
|
2347
2345
|
Ot as useSaveChrome,
|
|
2348
2346
|
cl as useSectionStates,
|
|
2349
|
-
|
|
2350
|
-
|
|
2347
|
+
no as useSheetDiscardGuard,
|
|
2348
|
+
$o as useStepForm
|
|
2351
2349
|
};
|
package/dist/format/index.d.ts
CHANGED
package/dist/format/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as o, f as s, i, a as l, t as n, u as g } from "../format-D8KUBmbS.js";
|
|
2
|
+
function e(a) {
|
|
3
|
+
return a.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[đĐ]/g, "d").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
4
|
+
}
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
o as createFormatting,
|
|
4
7
|
s as formattingKey,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
i as installFormatting,
|
|
9
|
+
l as intlFormatters,
|
|
10
|
+
e as slugify,
|
|
11
|
+
n as toDate,
|
|
12
|
+
g as useFormat
|
|
9
13
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A URL-fragment slug for a human title: "Stanje i boja" gives "stanje-i-boja", "Karakteristike
|
|
3
|
+
* vozila" gives "karakteristike-vozila". Diacritics are folded (č ć š ž đ become c c s z d), so
|
|
4
|
+
* links stay readable and copy-paste safe; what is left of nothing is the empty string.
|
|
5
|
+
*
|
|
6
|
+
* <section :id="slugify(group.title)"> // linked as #stanje-i-boja
|
|
7
|
+
*/
|
|
8
|
+
export declare function slugify(text: string): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
function a(e, r) {
|
|
2
|
+
const l = (r ?? "").split(/\s+/).filter((t) => t !== "");
|
|
3
|
+
if (l.length === 0 || e === "") return [{ text: e, match: !1 }];
|
|
4
|
+
const s = new RegExp(`(${l.sort((t, n) => n.length - t.length).map((t) => t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")})`, "giu");
|
|
5
|
+
return e.split(s).flatMap((t, n) => t === "" ? [] : [{ text: t, match: n % 2 === 1 }]);
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
a as h
|
|
9
|
+
};
|