@wssto2/vue-core 0.19.0 → 0.21.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 +31 -0
- package/README.md +5 -1
- package/dist/{AccessGate.vue_vue_type_script_setup_true_lang-Bg8JFAOT.js → AccessGate.vue_vue_type_script_setup_true_lang-Dw_pnsh9.js} +1 -1
- package/dist/{AccountMenuItem.vue_vue_type_script_setup_true_lang-BIYgaihv.js → AccountMenuItem.vue_vue_type_script_setup_true_lang-C2TmmH38.js} +1 -1
- package/dist/{ActionRow.vue_vue_type_script_setup_true_lang-B5IMNnTf.js → ActionRow.vue_vue_type_script_setup_true_lang-BEV0drwF.js} +2 -2
- package/dist/{Activity-CiYn5E6A.js → Activity-CZzAt3SH.js} +9 -9
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-oXWQTfBs.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-BkZzuICH.js} +6 -6
- package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-WuGvAOrj.js → AlertDialog.vue_vue_type_script_setup_true_lang-B0UvzCoE.js} +1 -1
- package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-CX8mpXRE.js → AsyncSection.vue_vue_type_script_setup_true_lang-DuPS_zMX.js} +4 -4
- package/dist/{Banner.vue_vue_type_script_setup_true_lang-sv0phngk.js → Banner.vue_vue_type_script_setup_true_lang-BXZVOhfH.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-JrqhO99l.js → Button.vue_vue_type_script_setup_true_lang-CZkTqGtE.js} +1 -1
- package/dist/{Changes-Cy8STpLX.js → Changes-B0bhSNU3.js} +5 -5
- package/dist/CharacteristicsPage-fGnahf62.js +4 -0
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-Dr6nFNBB.js → CollectionPage.vue_vue_type_script_setup_true_lang-Bf5WXVFZ.js} +12 -12
- package/dist/CollectionTree.vue_vue_type_script_setup_true_lang-DV0OhquO.js +345 -0
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-D372wlxR.js → DataTable.vue_vue_type_script_setup_true_lang-Cw_E8w48.js} +1 -1
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-D0KcfW8R.js → DateField.vue_vue_type_script_setup_true_lang-Cn8CNAwM.js} +4 -4
- package/dist/{DeadLetters-DhJkMpd_.js → DeadLetters--js7aeC6.js} +4 -4
- package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-92szOrYd.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-lnFUie1d.js} +1 -1
- package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-DbZiO2RF.js → EmptyState.vue_vue_type_script_setup_true_lang-DHmu-UG-.js} +1 -1
- package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-lvAuBG-0.js → FormGroup.vue_vue_type_script_setup_true_lang-BUhKKybf.js} +4 -4
- package/dist/{FormRow.vue_vue_type_script_setup_true_lang-CpgNVQF4.js → FormRow.vue_vue_type_script_setup_true_lang-B-uth5RB.js} +1 -1
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-D01Jr4UU.js → FormView.vue_vue_type_script_setup_true_lang-CoQZG-hB.js} +2 -2
- package/dist/{General-CwTPC5UP.js → General-BGT9H69S.js} +8 -8
- package/dist/{HeaderAction.vue_vue_type_script_setup_true_lang-Da59TLBh.js → HeaderAction.vue_vue_type_script_setup_true_lang-Uw0vwV-o.js} +2 -2
- package/dist/{Icon.vue_vue_type_script_lang-BhhsFYwp.js → Icon.vue_vue_type_script_lang-BIzh8LF1.js} +19 -13
- package/dist/{IconTile.vue_vue_type_script_setup_true_lang-BmxCuUZ9.js → IconTile.vue_vue_type_script_setup_true_lang-DRirnJvd.js} +1 -1
- package/dist/{IncidentRecord-hXEGuLGg.js → IncidentRecord-BETFfXbI.js} +17 -17
- package/dist/{IncidentsList-C41VyDwK.js → IncidentsList-BIr3a2To.js} +6 -6
- package/dist/{LeaveGuardRoot.vue_vue_type_script_setup_true_lang-CrGrjrlO.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-DjXYh-p0.js} +1 -1
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-Cqu4Ebsb.js → Menu.vue_vue_type_script_setup_true_lang-D2FsOVYA.js} +1 -1
- package/dist/{MenuButton.vue_vue_type_script_setup_true_lang-C-XRr5f2.js → MenuButton.vue_vue_type_script_setup_true_lang-BNzrYIzR.js} +1 -1
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-CZ7WrDwu.js → Modal.vue_vue_type_script_setup_true_lang-BRRMKXOV.js} +2 -2
- package/dist/{NewRolePage-BYYZJkK7.js → NewRolePage-B0Y5MrTu.js} +4 -4
- package/dist/{NoAccess.vue_vue_type_script_setup_true_lang-BHzZtZ50.js → NoAccess.vue_vue_type_script_setup_true_lang-CnfE_AEl.js} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-BhNZgEW6.js → NumberField.vue_vue_type_script_setup_true_lang-BDZ_0TH7.js} +2 -2
- package/dist/{Panel.vue_vue_type_script_setup_true_lang-D_Wg42hu.js → Panel.vue_vue_type_script_setup_true_lang-CwcJadT7.js} +1 -1
- package/dist/{PersonAccess.vue_vue_type_script_setup_true_lang-mYFuG-Y3.js → PersonAccess.vue_vue_type_script_setup_true_lang-CJMV9BDQ.js} +12 -12
- package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-DmMg1T_V.js → PhotoViewer.vue_vue_type_script_setup_true_lang-BL485L63.js} +1 -1
- package/dist/{ProfilePage-DGEsIycR.js → ProfilePage-CMy2Dkr2.js} +17 -17
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-B3BnYg1x.js → RecordHeader.vue_vue_type_script_setup_true_lang-D4PcZnbo.js} +2 -2
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-1iZtj3rh.js → ResourcePage.vue_vue_type_script_setup_true_lang-CpGwm2tv.js} +4 -4
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-BslSDDiM.js → RoleEditor.vue_vue_type_script_setup_true_lang-CMo8PrO7.js} +12 -12
- package/dist/{RolePage-C08ZUqw1.js → RolePage-DGFISfM1.js} +13 -13
- package/dist/{RolesPage-FOuY1VKg.js → RolesPage-Bq9EVB_3.js} +9 -9
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-CodyVezo.js → SectionList.vue_vue_type_script_setup_true_lang-BdJ11lZo.js} +3 -3
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-DCTFxfPB.js → SectionNavigator.vue_vue_type_script_setup_true_lang-CnzECivO.js} +6 -6
- package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-CLR6EvzO.js → SegmentedField.vue_vue_type_script_setup_true_lang-D3IZil4q.js} +2 -2
- package/dist/{SelectField.vue_vue_type_script_setup_true_lang-D5xYofdb.js → SelectField.vue_vue_type_script_setup_true_lang-DxCEwED6.js} +6 -6
- package/dist/{ServiceAccountDialog.vue_vue_type_script_setup_true_lang-CDr4WNIb.js → ServiceAccountDialog.vue_vue_type_script_setup_true_lang-DtVXUOdP.js} +8 -8
- package/dist/{ServiceAccountRecord-kWwIQGZb.js → ServiceAccountRecord-Dc7Gn52W.js} +18 -18
- package/dist/{ServiceAccountsList-CKy9_YHP.js → ServiceAccountsList-DBUFeka-.js} +10 -10
- package/dist/{Sessions-BDc8gdYH.js → Sessions-BMmqYZrJ.js} +7 -7
- package/dist/{SettingsPage-t-8kmFVT.js → SettingsPage-4Dolsr0t.js} +18 -18
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-BVU5yzXe.js +163 -0
- package/dist/{SignIn-CqtkvtCZ.js → SignIn-uFn1ZWG8.js} +8 -8
- package/dist/{SignInPage-DcdNKZIb.js → SignInPage-DouCg9aD.js} +6 -6
- package/dist/{SignIns-D4-nGu0B.js → SignIns-CqN5UNmh.js} +5 -5
- package/dist/SortableList.vue_vue_type_script_setup_true_lang-D2-5Z_jO.js +112 -0
- package/dist/{StatusLine.vue_vue_type_script_setup_true_lang-DsdQmLq6.js → StatusLine.vue_vue_type_script_setup_true_lang-DBkQueB0.js} +1 -1
- package/dist/{SwipeActions.vue_vue_type_script_setup_true_lang-D8SiC0G7.js → SwipeActions.vue_vue_type_script_setup_true_lang-DUjUWq3G.js} +1 -1
- package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-CLtcuofe.js → SwitchField.vue_vue_type_script_setup_true_lang-CTMjlNid.js} +2 -2
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-7CJto6Mp.js +169 -0
- package/dist/{TextField.vue_vue_type_script_setup_true_lang-CVGh-p3J.js → TextField.vue_vue_type_script_setup_true_lang-B6Q65aQA.js} +4 -4
- package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-YxUlNHSk.js → TextareaField.vue_vue_type_script_setup_true_lang-Cj0LKDdo.js} +2 -2
- package/dist/{TimeField.vue_vue_type_script_setup_true_lang-DHNC_MLt.js → TimeField.vue_vue_type_script_setup_true_lang-TSnnjMn1.js} +4 -4
- package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-d_KuxWjH.js → Timestamp.vue_vue_type_script_setup_true_lang-0WL7PP0j.js} +1 -1
- package/dist/{UserRecord-CwZCr9Im.js → UserRecord-CH5oNRLg.js} +10 -10
- package/dist/{UsersList-Cn19sFgv.js → UsersList-BmxWpt9h.js} +3 -3
- package/dist/{ViewTabs.vue_vue_type_script_setup_true_lang-BjdDXE3T.js → ViewTabs.vue_vue_type_script_setup_true_lang-BKI5DGuS.js} +1 -1
- package/dist/access/index.js +7 -7
- package/dist/app/index.js +2 -2
- package/dist/{application-CDSweJb9.js → application-C5fZyCB9.js} +8 -8
- package/dist/{back-LcLlFodC.js → back-CeozxCgQ.js} +2 -2
- package/dist/button/index.js +1 -1
- package/dist/characteristics/CharacteristicsPage.vue.d.ts +2 -0
- package/dist/characteristics/DeleteDialog.vue.d.ts +22 -0
- package/dist/characteristics/ItemSheet.vue.d.ts +25 -0
- package/dist/characteristics/access.d.ts +3 -0
- package/dist/characteristics/api.d.ts +23 -0
- package/dist/characteristics/context.d.ts +12 -0
- package/dist/characteristics/feature.d.ts +27 -0
- package/dist/characteristics/index.d.ts +10 -0
- package/dist/characteristics/index.js +617 -0
- package/dist/characteristics/model.d.ts +34 -0
- package/dist/characteristics/routes.d.ts +13 -0
- package/dist/collection/CollectionTree.vue.d.ts +51 -0
- package/dist/collection/CollectionTreeBranch.vue.d.ts +12 -0
- package/dist/collection/FileExplorer.vue.d.ts +53 -0
- package/dist/collection/RowMore.vue.d.ts +11 -0
- package/dist/collection/explorer.d.ts +11 -0
- package/dist/collection/index.d.ts +5 -0
- package/dist/collection/index.js +431 -158
- package/dist/collection/tree.d.ts +64 -0
- package/dist/content/DiffView.vue.d.ts +22 -0
- package/dist/content/PreviewFrame.vue.d.ts +46 -0
- package/dist/content/diff.d.ts +27 -0
- package/dist/content/index.d.ts +4 -0
- package/dist/content/index.js +552 -218
- package/dist/content/previewFrame.d.ts +50 -0
- package/dist/{contributions-B0x5x5xD.js → contributions-BSmIRPg1.js} +1 -1
- package/dist/controls/SortableList.vue.d.ts +32 -0
- package/dist/controls/Tabs.vue.d.ts +2 -0
- package/dist/controls/index.d.ts +1 -0
- package/dist/controls/index.js +18 -16
- package/dist/form/CharacteristicField.vue.d.ts +36 -0
- package/dist/form/CodeEditor.vue.d.ts +61 -0
- package/dist/form/I18nField.vue.d.ts +1 -1
- package/dist/form/MarkerList.vue.d.ts +20 -0
- package/dist/form/TextareaField.vue.d.ts +1 -1
- package/dist/form/index.d.ts +3 -0
- package/dist/form/index.js +1769 -1805
- package/dist/{guards-CNJ0ATVC.js → guards-BP9x7CLF.js} +1 -1
- package/dist/i18n/index.js +46 -46
- package/dist/icon/core.d.ts +6 -0
- package/dist/icon/index.js +1 -1
- package/dist/identity/index.js +3 -3
- package/dist/identity/profile/EmailChangeDialog.vue.d.ts +2 -2
- package/dist/incidents/index.js +1 -1
- package/dist/{index-SLJWm40T.js → index-4wyfEeIw.js} +9 -9
- package/dist/{index-BA2w8uwD.js → index-C_ZVaTkR.js} +27 -27
- package/dist/{index-1HS7O2-e.js → index-OVbtHAtG.js} +10 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modal/Sheet.vue.d.ts +13 -0
- package/dist/modal/TabbedSheet.vue.d.ts +46 -0
- package/dist/modal/index.d.ts +1 -0
- package/dist/modal/index.js +123 -41
- package/dist/modules/characteristics/entities.d.ts +67 -0
- package/dist/modules/characteristics/routes.d.ts +55 -0
- package/dist/modules/characteristics/schemas.d.ts +50 -0
- package/dist/modules/identity/entities.d.ts +1 -0
- package/dist/navigation-C05vGEN8.js +55 -0
- package/dist/{neighbors-Dg_LU9ry.js → neighbors-BqfO6zf3.js} +2 -2
- package/dist/notifications/index.js +1 -1
- package/dist/onboarding/index.js +2 -2
- package/dist/{options-mOOX6JSS.js → options-DDCG86OV.js} +2 -2
- package/dist/overlay/index.js +4 -4
- package/dist/page/SectionNavigator.vue.d.ts +1 -1
- package/dist/page/SplitPane.vue.d.ts +54 -0
- package/dist/page/WorkbenchPage.vue.d.ts +72 -0
- package/dist/page/index.d.ts +2 -0
- package/dist/page/index.js +343 -104
- package/dist/phone/index.js +3 -3
- package/dist/platform/index.js +3 -3
- package/dist/platform/navigation.d.ts +10 -0
- package/dist/{platform-DU9QFts8.js → platform-YWfOO7b2.js} +94 -88
- package/dist/pwa/index.js +3 -3
- package/dist/resource/index.js +1 -1
- package/dist/{resources-BZLlAtoS.js → resources-DkI60fHL.js} +1 -1
- package/dist/router/index.js +4 -4
- package/dist/router/navigation.d.ts +2 -0
- package/dist/routes-DC8BWFz8.js +251 -0
- package/dist/{rowLayout-PIuD7MGo.js → rowLayout-zd3Yw6fO.js} +34 -33
- package/dist/{sectionIndex-BS0ic5W7.js → sectionIndex-CSr457Lb.js} +2 -2
- package/dist/{sections-BpiRLntE.js → sections-DXso1JSV.js} +2 -2
- package/dist/shell/NavigationList.vue.d.ts +1 -1
- package/dist/shell/index.js +522 -501
- package/dist/shell/navigationGroups.d.ts +4 -1
- package/dist/state/index.js +8 -8
- package/dist/{state-z1iPF1DT.js → state-DqCZdet7.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{suggestions-DeMgs_ki.js → suggestions-DZ3B5RVH.js} +1 -1
- package/dist/testing/index.js +2 -2
- package/dist/{useCommand-DQKvro1n.js → useCommand-DerEnzIW.js} +4 -4
- package/dist/{useGroupSheet-CRw3MUmX.js → useGroupSheet-B9TCHIKH.js} +5 -5
- package/dist/{usePreferences-DB29UTFD.js → usePreferences-D38x73re.js} +1 -1
- package/dist/{useRecordDialog-0azHxxvm.js → useRecordDialog-DX97ivZD.js} +1 -1
- package/dist/{useResourceForm-zVuWerSn.js → useResourceForm-D8T1snBQ.js} +1 -1
- package/dist/{useTypedEntry-BsMV66Yc.js → useTypedEntry-CTkgM29Y.js} +2 -2
- package/package.json +6 -2
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-BG8HUNfs.js +0 -145
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-tpkGp98F.js +0 -155
- package/dist/navigation-d-JAPBGA.js +0 -53
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { defineComponent as N, useModel as P, useId as $, useTemplateRef as q, ref as S, computed as F, openBlock as c, createElementBlock as d, createElementVNode as v, normalizeClass as b, Fragment as O, renderList as R, normalizeStyle as V, unref as f, createVNode as U, createCommentVNode as j, renderSlot as x, toDisplayString as A, mergeModels as B, nextTick as G } from "vue";
|
|
2
|
+
import { useI18n as H } from "vue-i18n";
|
|
3
|
+
import { _ as J } from "./Icon.vue_vue_type_script_lang-BIzh8LF1.js";
|
|
4
|
+
const Q = ["aria-label"], W = ["aria-label", "aria-describedby", "onKeydown", "onPointerdown"], X = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "w-7 shrink-0",
|
|
7
|
+
"aria-hidden": "true"
|
|
8
|
+
}, Z = ["id"], ee = {
|
|
9
|
+
role: "status",
|
|
10
|
+
"aria-live": "polite",
|
|
11
|
+
class: "sr-only",
|
|
12
|
+
"data-sortable-live": ""
|
|
13
|
+
}, ae = /* @__PURE__ */ N({
|
|
14
|
+
__name: "SortableList",
|
|
15
|
+
props: /* @__PURE__ */ B({
|
|
16
|
+
itemKey: {},
|
|
17
|
+
label: { default: void 0 },
|
|
18
|
+
itemLabel: { type: Function, default: void 0 },
|
|
19
|
+
disabled: { type: Boolean, default: !1 },
|
|
20
|
+
plain: { type: Boolean, default: !1 }
|
|
21
|
+
}, {
|
|
22
|
+
modelValue: { required: !0 },
|
|
23
|
+
modelModifiers: {}
|
|
24
|
+
}),
|
|
25
|
+
emits: /* @__PURE__ */ B(["move"], ["update:modelValue"]),
|
|
26
|
+
setup(g, { emit: C }) {
|
|
27
|
+
const a = g, u = P(g, "modelValue"), I = C, { t: y } = H(), h = $(), _ = q("list"), w = S(""), o = S(null), k = (e) => typeof a.itemKey == "function" ? a.itemKey(e) : e[a.itemKey], L = (e) => a.itemLabel?.(e) ?? String(k(e)), z = F(() => u.value.length);
|
|
28
|
+
function E(e, l) {
|
|
29
|
+
const t = Math.min(Math.max(l, 0), u.value.length - 1);
|
|
30
|
+
if (e === t) return !1;
|
|
31
|
+
const r = [...u.value], [n] = r.splice(e, 1);
|
|
32
|
+
return r.splice(t, 0, n), u.value = r, I("move", n, e, t), w.value = y("core.sortable.moved", { item: L(n), position: t + 1, total: z.value }), !0;
|
|
33
|
+
}
|
|
34
|
+
async function D(e, l) {
|
|
35
|
+
if (!e.altKey || e.key !== "ArrowUp" && e.key !== "ArrowDown") return;
|
|
36
|
+
e.preventDefault();
|
|
37
|
+
const t = e.currentTarget;
|
|
38
|
+
E(l, l + (e.key === "ArrowUp" ? -1 : 1)) && (await G(), document.activeElement !== t && t.focus());
|
|
39
|
+
}
|
|
40
|
+
function T() {
|
|
41
|
+
return Array.from(_.value?.querySelectorAll(":scope > [data-sortable-row]") ?? []);
|
|
42
|
+
}
|
|
43
|
+
function Y(e, l) {
|
|
44
|
+
if (a.disabled || e.button !== 0) return;
|
|
45
|
+
const t = e.currentTarget;
|
|
46
|
+
t.setPointerCapture?.(e.pointerId);
|
|
47
|
+
const r = e.clientY;
|
|
48
|
+
o.value = { from: l, to: l, offset: 0 };
|
|
49
|
+
const n = (s) => {
|
|
50
|
+
const i = T().map((p) => p.getBoundingClientRect()), M = i.findIndex((p) => s < p.top + p.height / 2);
|
|
51
|
+
return M < 0 ? i.length - 1 : M;
|
|
52
|
+
}, K = (s) => {
|
|
53
|
+
o.value && (o.value = { from: l, to: n(s.clientY), offset: s.clientY - r });
|
|
54
|
+
}, m = (s) => {
|
|
55
|
+
t.removeEventListener("pointermove", K), t.removeEventListener("pointerup", m), t.removeEventListener("pointercancel", m);
|
|
56
|
+
const i = s.type === "pointerup" ? o.value : null;
|
|
57
|
+
o.value = null, i && E(i.from, i.to);
|
|
58
|
+
};
|
|
59
|
+
t.addEventListener("pointermove", K), t.addEventListener("pointerup", m), t.addEventListener("pointercancel", m);
|
|
60
|
+
}
|
|
61
|
+
return (e, l) => (c(), d("div", null, [
|
|
62
|
+
v("ul", {
|
|
63
|
+
ref_key: "list",
|
|
64
|
+
ref: _,
|
|
65
|
+
"aria-label": a.label,
|
|
66
|
+
class: b(["flex flex-col", a.plain ? "" : "gap-1.5"]),
|
|
67
|
+
"data-sortable-list": ""
|
|
68
|
+
}, [
|
|
69
|
+
(c(!0), d(O, null, R(u.value, (t, r) => (c(), d("li", {
|
|
70
|
+
key: k(t),
|
|
71
|
+
"data-sortable-row": "",
|
|
72
|
+
class: b(["relative flex items-stretch gap-1", [a.plain ? o.value?.from === r ? "bg-surface-cell" : "" : "rounded-md border border-border-separator bg-surface-cell", o.value?.from === r ? "z-10 shadow-md" : "", o.value && o.value.from !== r && o.value.to === r ? o.value.to > o.value.from ? "border-b-2 border-b-border-focus" : "border-t-2 border-t-border-focus" : ""]]),
|
|
73
|
+
style: V(o.value?.from === r ? { transform: `translateY(${o.value.offset}px)` } : void 0)
|
|
74
|
+
}, [
|
|
75
|
+
a.disabled ? a.plain ? (c(), d("span", X)) : j("", !0) : (c(), d("button", {
|
|
76
|
+
key: 0,
|
|
77
|
+
type: "button",
|
|
78
|
+
"data-sortable-handle": "",
|
|
79
|
+
"aria-label": f(y)("core.sortable.handle", { item: L(t) }),
|
|
80
|
+
"aria-describedby": f(h),
|
|
81
|
+
class: b(["flex w-7 shrink-0 cursor-grab touch-none items-center justify-center text-content-muted hover:bg-fill focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus", a.plain ? "self-start rounded-md" : "rounded-l-md"]),
|
|
82
|
+
style: V(a.plain ? { height: "var(--sortable-row-height, 2.5rem)" } : void 0),
|
|
83
|
+
onKeydown: (n) => D(n, r),
|
|
84
|
+
onPointerdown: (n) => Y(n, r)
|
|
85
|
+
}, [
|
|
86
|
+
U(f(J), {
|
|
87
|
+
name: "draggable",
|
|
88
|
+
size: 16
|
|
89
|
+
})
|
|
90
|
+
], 46, W)),
|
|
91
|
+
v("div", {
|
|
92
|
+
class: b(["min-w-0 flex-1", a.plain ? "" : "py-1.5 pr-2"])
|
|
93
|
+
}, [
|
|
94
|
+
x(e.$slots, "item", {
|
|
95
|
+
item: t,
|
|
96
|
+
index: r,
|
|
97
|
+
dragging: o.value?.from === r
|
|
98
|
+
})
|
|
99
|
+
], 2)
|
|
100
|
+
], 6))), 128))
|
|
101
|
+
], 10, Q),
|
|
102
|
+
v("p", {
|
|
103
|
+
id: f(h),
|
|
104
|
+
class: "sr-only"
|
|
105
|
+
}, A(f(y)("core.sortable.hint")), 9, Z),
|
|
106
|
+
v("p", ee, A(w.value), 1)
|
|
107
|
+
]));
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
export {
|
|
111
|
+
ae as _
|
|
112
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, openBlock as t, createElementBlock as s, createElementVNode as r, createVNode as m, createBlock as p, unref as n, normalizeClass as _, toDisplayString as a, createCommentVNode as l, renderSlot as u } from "vue";
|
|
2
2
|
import { useI18n as f } from "vue-i18n";
|
|
3
|
-
import { _ as x } from "./Icon.vue_vue_type_script_lang-
|
|
3
|
+
import { _ as x } from "./Icon.vue_vue_type_script_lang-BIzh8LF1.js";
|
|
4
4
|
import { _ as k } from "./DrawnCheck.vue_vue_type_script_setup_true_lang-9DzDJlIA.js";
|
|
5
5
|
const h = ["data-done"], y = {
|
|
6
6
|
class: "flex min-w-0 items-center gap-2.5 text-subheadline",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as D, computed as N, ref as p, watch as O, onBeforeUnmount as T, openBlock as f, createElementBlock as d, createElementVNode as b, normalizeStyle as x, Fragment as z, renderList as E, normalizeClass as _, createVNode as X, unref as $, createTextVNode as B, toDisplayString as V, renderSlot as Y } from "vue";
|
|
2
|
-
import { _ as A } from "./Icon.vue_vue_type_script_lang-
|
|
2
|
+
import { _ as A } from "./Icon.vue_vue_type_script_lang-BIzh8LF1.js";
|
|
3
3
|
import { p as I } from "./perDocument-DUuFrdGU.js";
|
|
4
4
|
const R = ["aria-hidden"], W = ["href", "target", "rel", "tabindex", "data-action"], j = Symbol("vue-core:swipe-open-row"), F = () => I(j, () => p(null)), q = /* @__PURE__ */ D({
|
|
5
5
|
__name: "SwipeActions",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as v, useModel as w, computed as y, openBlock as g, createBlock as k, mergeProps as _, unref as t, createSlots as $, withCtx as l, createElementVNode as i, renderSlot as s, normalizeClass as d, normalizeStyle as B, toDisplayString as S, mergeModels as z, mergeDefaults as C } from "vue";
|
|
2
2
|
import { useI18n as M } from "vue-i18n";
|
|
3
|
-
import { _ as V } from "./options-
|
|
4
|
-
import { u as D, f as T, b as E } from "./FormRow.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as V } from "./options-DDCG86OV.js";
|
|
4
|
+
import { u as D, f as T, b as E } from "./FormRow.vue_vue_type_script_setup_true_lang-B-uth5RB.js";
|
|
5
5
|
const F = { class: "flex items-center gap-2" }, I = ["id", "aria-checked", "aria-label", "aria-describedby", "aria-invalid", "disabled"], P = { class: "sr-only" }, j = /* @__PURE__ */ v({
|
|
6
6
|
__name: "SwitchField",
|
|
7
7
|
props: /* @__PURE__ */ z(/* @__PURE__ */ C({
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { defineComponent as A, useModel as B, useId as M, inject as K, useTemplateRef as I, computed as L, openBlock as o, createElementBlock as l, createElementVNode as p, Fragment as S, renderList as T, normalizeClass as c, unref as s, createTextVNode as V, toDisplayString as b, createCommentVNode as i, createBlock as d, renderSlot as R, mergeModels as D } from "vue";
|
|
2
|
+
import { routerKey as W, routeLocationKey as q } from "vue-router";
|
|
3
|
+
import { _ as f } from "./Icon.vue_vue_type_script_lang-BIzh8LF1.js";
|
|
4
|
+
import { u as F } from "./mediaQuery-CygcXmFW.js";
|
|
5
|
+
const G = ["aria-label"], H = ["aria-label"], P = ["id", "aria-selected", "tabindex", "aria-controls", "data-tab", "onClick", "onKeydown"], J = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "text-footnote font-normal tabular-nums"
|
|
8
|
+
}, O = ["aria-label"], Q = ["aria-label"], U = ["id", "aria-selected", "tabindex", "aria-controls", "data-tab", "onClick", "onKeydown"], X = ["id", "aria-labelledby"], ne = /* @__PURE__ */ A({
|
|
9
|
+
__name: "Tabs",
|
|
10
|
+
props: /* @__PURE__ */ D({
|
|
11
|
+
tabs: {},
|
|
12
|
+
presentation: { default: "segmented" },
|
|
13
|
+
alignment: { default: "start" },
|
|
14
|
+
stretch: { type: Boolean, default: !1 },
|
|
15
|
+
label: { default: void 0 }
|
|
16
|
+
}, {
|
|
17
|
+
modelValue: {},
|
|
18
|
+
modelModifiers: {}
|
|
19
|
+
}),
|
|
20
|
+
emits: ["update:modelValue"],
|
|
21
|
+
setup(h) {
|
|
22
|
+
const t = h, w = B(h, "modelValue"), m = M(), k = K(W, null), j = K(q, null);
|
|
23
|
+
function _() {
|
|
24
|
+
if (!k) throw new Error("Tabs: a tab has `to`, but no router is installed in the app.");
|
|
25
|
+
return k;
|
|
26
|
+
}
|
|
27
|
+
const z = F(), g = I("list"), E = L(() => t.presentation === "scope" && z.value);
|
|
28
|
+
function a(n) {
|
|
29
|
+
return n.to !== void 0 ? _().resolve(n.to).name === j?.name : n.value === w.value;
|
|
30
|
+
}
|
|
31
|
+
const $ = L(() => t.tabs.find(a)), v = (n) => `${m}-tab-${String(n.value)}`;
|
|
32
|
+
function y(n) {
|
|
33
|
+
n.to !== void 0 ? _().push(n.to) : w.value = n.value;
|
|
34
|
+
}
|
|
35
|
+
function C(n, x) {
|
|
36
|
+
const e = t.tabs.length - 1, u = { ArrowRight: x + 1, ArrowLeft: x - 1, Home: 0, End: e }[n.key];
|
|
37
|
+
if (u === void 0) return;
|
|
38
|
+
n.preventDefault();
|
|
39
|
+
const r = t.tabs[(u + t.tabs.length) % t.tabs.length];
|
|
40
|
+
r && (y(r), g.value?.querySelector(`[data-tab="${String(r.value)}"]`)?.focus());
|
|
41
|
+
}
|
|
42
|
+
const N = { start: "justify-start", center: "justify-center", end: "justify-end" };
|
|
43
|
+
return (n, x) => (o(), l("div", null, [
|
|
44
|
+
E.value ? (o(), l("nav", {
|
|
45
|
+
key: 0,
|
|
46
|
+
ref_key: "list",
|
|
47
|
+
ref: g,
|
|
48
|
+
class: "-mx-1 overflow-x-auto overflow-y-hidden",
|
|
49
|
+
"aria-label": t.label
|
|
50
|
+
}, [
|
|
51
|
+
p("ul", {
|
|
52
|
+
class: "flex gap-2 p-1",
|
|
53
|
+
role: "tablist",
|
|
54
|
+
"aria-label": t.label
|
|
55
|
+
}, [
|
|
56
|
+
(o(!0), l(S, null, T(t.tabs, (e, u) => (o(), l("li", {
|
|
57
|
+
key: e.value,
|
|
58
|
+
role: "presentation",
|
|
59
|
+
class: "shrink-0"
|
|
60
|
+
}, [
|
|
61
|
+
p("button", {
|
|
62
|
+
id: v(e),
|
|
63
|
+
type: "button",
|
|
64
|
+
role: "tab",
|
|
65
|
+
"aria-selected": a(e),
|
|
66
|
+
tabindex: a(e) ? 0 : -1,
|
|
67
|
+
"aria-controls": `${s(m)}-panel`,
|
|
68
|
+
"data-tab": String(e.value),
|
|
69
|
+
class: c(["flex min-h-[2.125rem] cursor-pointer items-center gap-1.5 whitespace-nowrap rounded-full px-3.5 text-subheadline font-semibold transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus", a(e) ? "bg-tint text-content-on-tint" : "bg-surface-cell text-content-strong shadow-group active:bg-fill"]),
|
|
70
|
+
onClick: (r) => y(e),
|
|
71
|
+
onKeydown: (r) => C(r, u)
|
|
72
|
+
}, [
|
|
73
|
+
V(b(e.shortLabel ?? e.label) + " ", 1),
|
|
74
|
+
e.badge ? (o(), l("span", J, b(e.badge), 1)) : i("", !0),
|
|
75
|
+
e.warning ? (o(), d(s(f), {
|
|
76
|
+
key: 1,
|
|
77
|
+
name: "alertTriangle",
|
|
78
|
+
size: 14,
|
|
79
|
+
label: e.warning
|
|
80
|
+
}, null, 8, ["label"])) : i("", !0),
|
|
81
|
+
e.error ? (o(), d(s(f), {
|
|
82
|
+
key: 2,
|
|
83
|
+
name: "errorWarningLine",
|
|
84
|
+
size: 14,
|
|
85
|
+
label: e.error,
|
|
86
|
+
class: "text-status-danger-content"
|
|
87
|
+
}, null, 8, ["label"])) : i("", !0)
|
|
88
|
+
], 42, P)
|
|
89
|
+
]))), 128))
|
|
90
|
+
], 8, H)
|
|
91
|
+
], 8, G)) : (o(), l("nav", {
|
|
92
|
+
key: 1,
|
|
93
|
+
ref_key: "list",
|
|
94
|
+
ref: g,
|
|
95
|
+
"aria-label": t.label,
|
|
96
|
+
class: c([
|
|
97
|
+
t.presentation === "scope" ? "" : "overflow-y-hidden overflow-x-auto whitespace-nowrap",
|
|
98
|
+
t.presentation === "plain" ? "" : "rounded-control bg-fill p-0.5"
|
|
99
|
+
])
|
|
100
|
+
}, [
|
|
101
|
+
p("ul", {
|
|
102
|
+
class: c(["flex gap-0.5", t.presentation === "scope" ? "flex-wrap whitespace-nowrap" : "", N[t.alignment]]),
|
|
103
|
+
role: "tablist",
|
|
104
|
+
"aria-label": t.label
|
|
105
|
+
}, [
|
|
106
|
+
(o(!0), l(S, null, T(t.tabs, (e, u) => (o(), l("li", {
|
|
107
|
+
key: e.value,
|
|
108
|
+
role: "presentation",
|
|
109
|
+
class: c({ "flex flex-1": t.stretch })
|
|
110
|
+
}, [
|
|
111
|
+
p("button", {
|
|
112
|
+
id: v(e),
|
|
113
|
+
type: "button",
|
|
114
|
+
role: "tab",
|
|
115
|
+
"aria-selected": a(e),
|
|
116
|
+
tabindex: a(e) ? 0 : -1,
|
|
117
|
+
"aria-controls": `${s(m)}-panel`,
|
|
118
|
+
"data-tab": String(e.value),
|
|
119
|
+
class: c([
|
|
120
|
+
"flex min-h-8 cursor-pointer items-center justify-center rounded-control px-3.5 py-1 text-subheadline transition-colors duration-motion-fast ease-motion-standard focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
|
|
121
|
+
a(e) ? "bg-segment-selected font-semibold text-content-strong shadow-sm" : "font-medium text-content hover:text-content-strong",
|
|
122
|
+
t.stretch ? "flex-1" : ""
|
|
123
|
+
]),
|
|
124
|
+
onClick: (r) => y(e),
|
|
125
|
+
onKeydown: (r) => C(r, u)
|
|
126
|
+
}, [
|
|
127
|
+
e.icon ? (o(), d(s(f), {
|
|
128
|
+
key: 0,
|
|
129
|
+
name: e.icon,
|
|
130
|
+
class: c(["mr-2", a(e) ? "text-content-link" : ""])
|
|
131
|
+
}, null, 8, ["name", "class"])) : i("", !0),
|
|
132
|
+
V(" " + b(e.label) + " ", 1),
|
|
133
|
+
e.badge ? (o(), l("span", {
|
|
134
|
+
key: 1,
|
|
135
|
+
class: c(["ml-2 block min-w-[1.125rem] rounded-full px-1.5 text-center text-caption font-semibold tabular-nums", a(e) ? "bg-tint-soft text-content-link" : "bg-surface-cell text-content-muted"])
|
|
136
|
+
}, b(e.badge), 3)) : i("", !0),
|
|
137
|
+
e.warning ? (o(), d(s(f), {
|
|
138
|
+
key: 2,
|
|
139
|
+
name: "alertTriangle",
|
|
140
|
+
size: 16,
|
|
141
|
+
label: e.warning,
|
|
142
|
+
class: "ml-2 text-status-warning-content"
|
|
143
|
+
}, null, 8, ["label"])) : i("", !0),
|
|
144
|
+
e.error ? (o(), d(s(f), {
|
|
145
|
+
key: 3,
|
|
146
|
+
name: "errorWarningLine",
|
|
147
|
+
size: 16,
|
|
148
|
+
label: e.error,
|
|
149
|
+
class: "ml-2 text-status-danger-content"
|
|
150
|
+
}, null, 8, ["label"])) : i("", !0)
|
|
151
|
+
], 42, U)
|
|
152
|
+
], 2))), 128))
|
|
153
|
+
], 10, Q)
|
|
154
|
+
], 10, O)),
|
|
155
|
+
n.$slots.default ? (o(), l("div", {
|
|
156
|
+
key: 2,
|
|
157
|
+
id: `${s(m)}-panel`,
|
|
158
|
+
role: "tabpanel",
|
|
159
|
+
"aria-labelledby": $.value ? v($.value) : void 0,
|
|
160
|
+
class: "mt-4"
|
|
161
|
+
}, [
|
|
162
|
+
R(n.$slots, "default")
|
|
163
|
+
], 8, X)) : i("", !0)
|
|
164
|
+
]));
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
export {
|
|
168
|
+
ne as _
|
|
169
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as K, useTemplateRef as N, computed as v, watch as te, nextTick as oe, openBlock as n, createElementBlock as l, withModifiers as se, normalizeStyle as ne, unref as i, createElementVNode as m, toDisplayString as r, createCommentVNode as p, Fragment as R, renderList as ae, normalizeClass as B, createBlock as P, renderSlot as b, createTextVNode as E, useModel as ie, ref as le, mergeProps as re, createSlots as ce, withCtx as w, withDirectives as de, vModelDynamic as ue, mergeModels as H, mergeDefaults as pe } from "vue";
|
|
2
2
|
import { useI18n as G } from "vue-i18n";
|
|
3
3
|
import { b as me } from "./controlSurface-t7OEFESJ.js";
|
|
4
|
-
import { u as fe, _ as he } from "./options-
|
|
5
|
-
import { a as ve, f as ge, b as ye } from "./FormRow.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as xe } from "./Icon.vue_vue_type_script_lang-
|
|
4
|
+
import { u as fe, _ as he } from "./options-DDCG86OV.js";
|
|
5
|
+
import { a as ve, f as ge, b as ye } from "./FormRow.vue_vue_type_script_setup_true_lang-B-uth5RB.js";
|
|
6
|
+
import { _ as xe } from "./Icon.vue_vue_type_script_lang-BIzh8LF1.js";
|
|
7
7
|
import { u as be, N as ke } from "./anchored-DpuUwf-9.js";
|
|
8
|
-
import { l as U, m as _e, u as we, c as $e } from "./suggestions-
|
|
8
|
+
import { l as U, m as _e, u as we, c as $e } from "./suggestions-DZ3B5RVH.js";
|
|
9
9
|
const Me = ["id", "aria-busy"], qe = { class: "min-h-0 flex-1 overflow-y-auto p-1.5" }, Be = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "px-2.5 pb-1 pt-1.5 text-caption font-semibold uppercase text-content-disabled",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as V, useModel as L, useTemplateRef as M, computed as i, openBlock as p, createBlock as D, mergeProps as F, unref as f, createSlots as S, withCtx as n, createElementVNode as v, normalizeClass as b, withDirectives as z, vModelText as E, createElementBlock as P, toDisplayString as R, createCommentVNode as N, renderSlot as d, mergeModels as y, mergeDefaults as _ } from "vue";
|
|
2
2
|
import { u as j } from "./mediaQuery-CygcXmFW.js";
|
|
3
|
-
import { u as G, _ as H } from "./options-
|
|
4
|
-
import { a as U, u as A, f as I, b as J } from "./FormRow.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as G, _ as H } from "./options-DDCG86OV.js";
|
|
4
|
+
import { a as U, u as A, f as I, b as J } from "./FormRow.vue_vue_type_script_setup_true_lang-B-uth5RB.js";
|
|
5
5
|
const K = ["id", "name", "rows", "placeholder", "maxlength", "autocomplete", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], O = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "mt-1 self-end text-footnote tabular-nums text-content-muted"
|
|
@@ -2,12 +2,12 @@ import { computed as m, defineComponent as G, useModel as J, useTemplateRef as b
|
|
|
2
2
|
import { useI18n as R } from "vue-i18n";
|
|
3
3
|
import { _ as te } from "./DateButton.vue_vue_type_script_setup_true_lang-CovKG5lN.js";
|
|
4
4
|
import { u as oe } from "./format-C_HXlOYQ.js";
|
|
5
|
-
import { _ as le } from "./Icon.vue_vue_type_script_lang-
|
|
5
|
+
import { _ as le } from "./Icon.vue_vue_type_script_lang-BIzh8LF1.js";
|
|
6
6
|
import { u as re } from "./mediaQuery-CygcXmFW.js";
|
|
7
7
|
import { _ as ae } from "./Popover.vue_vue_type_script_setup_true_lang-BK8HL_V0.js";
|
|
8
|
-
import { u as se, _ as ie } from "./options-
|
|
9
|
-
import { d as ne, r as ue, t as I, p as me, u as de, a as ce, i as Q, _ as pe, b as fe, c as ve } from "./useTypedEntry-
|
|
10
|
-
import { f as be, b as ye } from "./FormRow.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { u as se, _ as ie } from "./options-DDCG86OV.js";
|
|
9
|
+
import { d as ne, r as ue, t as I, p as me, u as de, a as ce, i as Q, _ as pe, b as fe, c as ve } from "./useTypedEntry-CTkgM29Y.js";
|
|
10
|
+
import { f as be, b as ye } from "./FormRow.vue_vue_type_script_setup_true_lang-B-uth5RB.js";
|
|
11
11
|
function ke(s) {
|
|
12
12
|
const { t: i } = R(), y = m(() => [i("core.form.time.words.now").toLowerCase(), "now"]);
|
|
13
13
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as x, computed as s, openBlock as n, createElementBlock as o, createVNode as m, createElementVNode as l, toDisplayString as a, unref as u, createTextVNode as f } from "vue";
|
|
2
2
|
import { useI18n as v } from "vue-i18n";
|
|
3
3
|
import { u as h, t as g } from "./format-C_HXlOYQ.js";
|
|
4
|
-
import { _ as w } from "./Icon.vue_vue_type_script_lang-
|
|
4
|
+
import { _ as w } from "./Icon.vue_vue_type_script_lang-BIzh8LF1.js";
|
|
5
5
|
import { _ as y } from "./Avatar.vue_vue_type_script_setup_true_lang-BPj_fkJR.js";
|
|
6
6
|
const k = {
|
|
7
7
|
key: 0,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { defineComponent as E, openBlock as N, createBlock as L, unref as e, withCtx as p, createVNode as n, mergeProps as q, provide as C, computed as _, useTemplateRef as D, createElementVNode as h, toDisplayString as S, createTextVNode as K } from "vue";
|
|
2
2
|
import { useI18n as U } from "vue-i18n";
|
|
3
|
-
import { u as z } from "./neighbors-
|
|
3
|
+
import { u as z } from "./neighbors-BqfO6zf3.js";
|
|
4
4
|
import { _ as G } from "./Avatar.vue_vue_type_script_setup_true_lang-BPj_fkJR.js";
|
|
5
5
|
import { u as I } from "./describeError-B-NMa--w.js";
|
|
6
6
|
import { i as k } from "./preferences-hYhrw8Uy.js";
|
|
7
|
-
import { _ as O } from "./AlertDialog.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as O } from "./AlertDialog.vue_vue_type_script_setup_true_lang-B0UvzCoE.js";
|
|
8
8
|
import { t as $ } from "./toast-CqSDTWRX.js";
|
|
9
|
-
import { _ as j } from "./SectionNavigator.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as V } from "./platform-
|
|
9
|
+
import { _ as j } from "./SectionNavigator.vue_vue_type_script_setup_true_lang-CnzECivO.js";
|
|
10
|
+
import { u as V } from "./platform-YWfOO7b2.js";
|
|
11
11
|
import { a as F } from "./routeResource-DlTsGTg_.js";
|
|
12
|
-
import { a as H } from "./ResourcePage.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { a as H } from "./ResourcePage.vue_vue_type_script_setup_true_lang-CpGwm2tv.js";
|
|
13
13
|
import { A as J } from "./access-DmAceEo5.js";
|
|
14
14
|
import { _ as Q } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
|
|
15
15
|
import { u as W } from "./useLoad-M7V-AVwR.js";
|
|
16
|
-
import { i as X } from "./usePreferences-
|
|
17
|
-
import { P as Y, p as Z, c as ee, d as se, b as ae, M as te, o as oe, s as re } from "./index-
|
|
18
|
-
import { a as ne } from "./FormGroup.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { _ as A } from "./TextField.vue_vue_type_script_setup_true_lang-
|
|
20
|
-
import { u as ie, _ as ce } from "./useCommand-
|
|
16
|
+
import { i as X } from "./usePreferences-D38x73re.js";
|
|
17
|
+
import { P as Y, p as Z, c as ee, d as se, b as ae, M as te, o as oe, s as re } from "./index-C_ZVaTkR.js";
|
|
18
|
+
import { a as ne } from "./FormGroup.vue_vue_type_script_setup_true_lang-BUhKKybf.js";
|
|
19
|
+
import { _ as A } from "./TextField.vue_vue_type_script_setup_true_lang-B6Q65aQA.js";
|
|
20
|
+
import { u as ie, _ as ce } from "./useCommand-DerEnzIW.js";
|
|
21
21
|
import { u as le } from "./serverMessages-C_KkDvpT.js";
|
|
22
22
|
const ue = /* @__PURE__ */ E({
|
|
23
23
|
__name: "SetPasswordDialog",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as C, useTemplateRef as N, computed as a, openBlock as i, createBlock as m, unref as s, withCtx as r, createVNode as d, createTextVNode as R, toDisplayString as l, createCommentVNode as S, createElementBlock as _, normalizeClass as p } from "vue";
|
|
2
2
|
import { useI18n as E } from "vue-i18n";
|
|
3
3
|
import { useRouter as $ } from "vue-router";
|
|
4
|
-
import { u as B, _ as T } from "./CollectionPage.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as B, _ as T } from "./CollectionPage.vue_vue_type_script_setup_true_lang-Bf5WXVFZ.js";
|
|
5
5
|
import { _ as V } from "./Avatar.vue_vue_type_script_setup_true_lang-BPj_fkJR.js";
|
|
6
6
|
import { u as L } from "./format-C_HXlOYQ.js";
|
|
7
|
-
import { u as z } from "./platform-
|
|
7
|
+
import { u as z } from "./platform-YWfOO7b2.js";
|
|
8
8
|
import { _ as A } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
|
|
9
|
-
import { b as D, U as I, c as f, d as M, M as q, s as F } from "./index-
|
|
9
|
+
import { b as D, U as I, c as f, d as M, M as q, s as F } from "./index-C_ZVaTkR.js";
|
|
10
10
|
const G = ["datetime"], Z = /* @__PURE__ */ C({
|
|
11
11
|
__name: "UsersList",
|
|
12
12
|
setup(K) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, useModel as m, computed as d, openBlock as r, createBlock as p, unref as c, mergeModels as i } from "vue";
|
|
2
|
-
import { _ as b } from "./Tabs.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as b } from "./Tabs.vue_vue_type_script_setup_true_lang-7CJto6Mp.js";
|
|
3
3
|
const _ = /* @__PURE__ */ u({
|
|
4
4
|
__name: "ViewTabs",
|
|
5
5
|
props: /* @__PURE__ */ i({
|
package/dist/access/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as Q, a as U, b as W } from "../PersonAccess.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as Q, a as U, b as W } from "../PersonAccess.vue_vue_type_script_setup_true_lang-CJMV9BDQ.js";
|
|
2
2
|
import { d as _, p as x } from "../feature-DdUAfyi4.js";
|
|
3
3
|
import { a as n, b } from "../refusals-DfPzVNNY.js";
|
|
4
4
|
import { d as Y, p as Z, r as ee, c as se, u as te, e as oe, f as ce } from "../refusals-DfPzVNNY.js";
|
|
@@ -6,16 +6,16 @@ import { d as h } from "../defineRoutes-BGAdiIrt.js";
|
|
|
6
6
|
import { defineComponent as w, openBlock as m, createBlock as R, unref as s, withCtx as u, createElementVNode as a, createVNode as d, toDisplayString as o, normalizeClass as g, createElementBlock as k, createTextVNode as r, createCommentVNode as y } from "vue";
|
|
7
7
|
import { useI18n as C } from "vue-i18n";
|
|
8
8
|
import { useRouter as v } from "vue-router";
|
|
9
|
-
import { _ as P } from "../Button.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { _ as B } from "../Panel.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { _ as K } from "../Icon.vue_vue_type_script_lang-
|
|
9
|
+
import { _ as P } from "../Button.vue_vue_type_script_setup_true_lang-CZkTqGtE.js";
|
|
10
|
+
import { _ as B } from "../Panel.vue_vue_type_script_setup_true_lang-CwcJadT7.js";
|
|
11
|
+
import { _ as K } from "../Icon.vue_vue_type_script_lang-BIzh8LF1.js";
|
|
12
12
|
const p = h({
|
|
13
|
-
roles: { name: "access.roles", path: "/iam/roles", component: () => import("../RolesPage-
|
|
14
|
-
newRole: { name: "access.roles.new", path: "/iam/roles/new", component: () => import("../NewRolePage-
|
|
13
|
+
roles: { name: "access.roles", path: "/iam/roles", component: () => import("../RolesPage-Bq9EVB_3.js"), meta: { access: n.viewRoles, titleKey: "core.access.title" } },
|
|
14
|
+
newRole: { name: "access.roles.new", path: "/iam/roles/new", component: () => import("../NewRolePage-B0Y5MrTu.js"), meta: { access: n.manageRoles, titleKey: "core.access.new_title" } },
|
|
15
15
|
role: {
|
|
16
16
|
name: "access.role",
|
|
17
17
|
path: "/iam/roles/:ref",
|
|
18
|
-
component: () => import("../RolePage-
|
|
18
|
+
component: () => import("../RolePage-DGFISfM1.js"),
|
|
19
19
|
// A role's ref (its key, or the id of a custom one) swaps in place when a link leads to another role.
|
|
20
20
|
meta: { access: n.viewRoles, titleKey: "core.access.title", remountOnParam: "ref" }
|
|
21
21
|
}
|
package/dist/app/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as r, c as o } from "../application-
|
|
1
|
+
import { A as r, c as o } from "../application-C5fZyCB9.js";
|
|
2
2
|
import { c as p, a as s } from "../current-CslcEPXp.js";
|
|
3
|
-
import { S as n } from "../contributions-
|
|
3
|
+
import { S as n } from "../contributions-BSmIRPg1.js";
|
|
4
4
|
import { a as l, u } from "../environment-Dva-SG8D.js";
|
|
5
5
|
import { d as x, p as m } from "../feature-DdUAfyi4.js";
|
|
6
6
|
import { k as d, u as S } from "../keepAlive-ClGnsIzT.js";
|
|
@@ -7,20 +7,20 @@ import { createRouter as Ve, isNavigationFailure as Ge } from "vue-router";
|
|
|
7
7
|
import { i as Je } from "./leaveGuard-Cc8yeLxM.js";
|
|
8
8
|
import { c as ze, i as Qe, f as Ue } from "./format-C_HXlOYQ.js";
|
|
9
9
|
import { messageLoaders as Xe, coreMessages as le, createMessageRuntime as Ye } from "./i18n/index.js";
|
|
10
|
-
import { i as Ze, a as et } from "./Icon.vue_vue_type_script_lang-
|
|
10
|
+
import { i as Ze, a as et } from "./Icon.vue_vue_type_script_lang-BIzh8LF1.js";
|
|
11
11
|
import { i as tt, b as st } from "./bottomDock-BZEiOPYZ.js";
|
|
12
12
|
import { i as ot, p as rt } from "./chrome-kMBKIB1N.js";
|
|
13
|
-
import { i as at, g as nt } from "./platform-
|
|
13
|
+
import { i as at, g as nt } from "./platform-YWfOO7b2.js";
|
|
14
14
|
import { c as it, A as ct, r as ue } from "./access-DmAceEo5.js";
|
|
15
|
-
import { c as lt, _ as ut } from "./NoAccess.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { i as ft } from "./guards-
|
|
17
|
-
import { b as dt, c as pt, n as fe } from "./navigation-
|
|
18
|
-
import { c as mt, s as de } from "./contributions-
|
|
15
|
+
import { c as lt, _ as ut } from "./NoAccess.vue_vue_type_script_setup_true_lang-CnfE_AEl.js";
|
|
16
|
+
import { i as ft } from "./guards-BP9x7CLF.js";
|
|
17
|
+
import { b as dt, c as pt, n as fe } from "./navigation-C05vGEN8.js";
|
|
18
|
+
import { c as mt, s as de } from "./contributions-BSmIRPg1.js";
|
|
19
19
|
import { a as pe } from "./environment-Dva-SG8D.js";
|
|
20
20
|
import { b as me, c as he } from "./describeError-B-NMa--w.js";
|
|
21
21
|
import { b as ht } from "./current-CslcEPXp.js";
|
|
22
|
-
import { _ as gt } from "./Button.vue_vue_type_script_setup_true_lang-
|
|
23
|
-
import { _ as wt } from "./EmptyState.vue_vue_type_script_setup_true_lang-
|
|
22
|
+
import { _ as gt } from "./Button.vue_vue_type_script_setup_true_lang-CZkTqGtE.js";
|
|
23
|
+
import { _ as wt } from "./EmptyState.vue_vue_type_script_setup_true_lang-DHmu-UG-.js";
|
|
24
24
|
import { i as vt } from "./feature-DdUAfyi4.js";
|
|
25
25
|
function yt(e) {
|
|
26
26
|
const { platform: n } = e, o = V();
|
package/dist/button/index.js
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CharacteristicNode } from "./model";
|
|
2
|
+
/**
|
|
3
|
+
* Deleting an item, after the server says where it is used (`GET .../usage`): "Used by 2 pages and 1 host", "has 3 items below it", or that where
|
|
4
|
+
* it is used is not known. Each of those means a delete would take something with it, so the dialog offers to deactivate instead (the item
|
|
5
|
+
* stays, and leaves the forms' choices), and deleting needs a second confirmation that sends `force`. An item nothing uses and nothing hangs
|
|
6
|
+
* under is deleted by one click, without `force`. Opened with `show(node)`.
|
|
7
|
+
*/
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
/** Whether the item has a switch: only then can it be deactivated instead. */
|
|
10
|
+
canDeactivate: (node: CharacteristicNode) => boolean;
|
|
11
|
+
};
|
|
12
|
+
declare function show(next: CharacteristicNode): Promise<void>;
|
|
13
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
14
|
+
show: typeof show;
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
deactivate: (node: CharacteristicNode) => any;
|
|
17
|
+
deleted: (node: CharacteristicNode) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
onDeactivate?: ((node: CharacteristicNode) => any) | undefined;
|
|
20
|
+
onDeleted?: ((node: CharacteristicNode) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { DescriptionResponse, ItemResponse } from "../modules/characteristics/entities";
|
|
2
|
+
import { type CharacteristicNode } from "./model";
|
|
3
|
+
/**
|
|
4
|
+
* One item in a sheet, built from the project's description: the name (per language when the level has translations), the switch, and the
|
|
5
|
+
* level's extra fields for the branch the item is in, each by its type (text, number, yes/no, choice). A read-only field shows locked; the
|
|
6
|
+
* ones the item's branch does not have are not there. Nothing here is specific to a project. `editable` false is the same sheet read.
|
|
7
|
+
* Saving creates (`parent` null for a root) or updates; a changed switch is its own call after it. Opened with `show`.
|
|
8
|
+
*/
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
description: DescriptionResponse;
|
|
11
|
+
editable: boolean; /** The title of a new item's sheet: the page's add phrase for its level. */
|
|
12
|
+
createTitle: (parent: CharacteristicNode | null, level: number) => string;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
15
|
+
/** A new item below `parent` (null: a root of level 1). */
|
|
16
|
+
create: (parent: CharacteristicNode | null) => void;
|
|
17
|
+
edit: (node: CharacteristicNode) => void;
|
|
18
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
remove: (node: CharacteristicNode) => any;
|
|
20
|
+
saved: (item: ItemResponse, created: boolean) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
+
onRemove?: ((node: CharacteristicNode) => any) | undefined;
|
|
23
|
+
onSaved?: ((item: ItemResponse, created: boolean) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { HttpClient } from "../client";
|
|
2
|
+
import type { DeleteResponse, DescriptionResponse, ItemResponse, UsageResponse } from "../modules/characteristics/entities";
|
|
3
|
+
import type { CreateInput, UpdateInput } from "../modules/characteristics/schemas";
|
|
4
|
+
type Options = {
|
|
5
|
+
readonly signal?: AbortSignal;
|
|
6
|
+
};
|
|
7
|
+
/** go-core's characteristics routes as calls; `data` of each answer already read. */
|
|
8
|
+
export declare function createCharacteristicsApi(http: HttpClient): {
|
|
9
|
+
tree: (options?: Options) => Promise<readonly ItemResponse[]>;
|
|
10
|
+
description: (options?: Options) => Promise<DescriptionResponse>;
|
|
11
|
+
usage: (level: number, id: number, options?: Options) => Promise<UsageResponse>;
|
|
12
|
+
create: (input: CreateInput, idempotencyKey: string) => Promise<ItemResponse>;
|
|
13
|
+
update: (input: UpdateInput, idempotencyKey: string) => Promise<ItemResponse>;
|
|
14
|
+
setActive: (level: number, id: number, active: boolean) => Promise<ItemResponse>;
|
|
15
|
+
/** `position` counts from 1 among the siblings. */
|
|
16
|
+
move: (level: number, id: number, position: number) => Promise<void>;
|
|
17
|
+
/** Refused with `characteristics.in_use` or `characteristics.has_children` unless `force`. */
|
|
18
|
+
remove: (level: number, id: number, force?: boolean) => Promise<DeleteResponse>;
|
|
19
|
+
};
|
|
20
|
+
export type CharacteristicsApi = ReturnType<typeof createCharacteristicsApi>;
|
|
21
|
+
/** The calls, over the platform's client; call it in `setup`. */
|
|
22
|
+
export declare const useCharacteristicsApi: () => CharacteristicsApi;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** What an application tells the characteristics screen. */
|
|
2
|
+
export interface CharacteristicsContext {
|
|
3
|
+
/**
|
|
4
|
+
* The add phrase of a level, whole ("Dodaj marku"): `parent` is the item the new one goes under (`null`: a root), `level` the new item's level
|
|
5
|
+
* (from 1). Return `undefined` for the library's neutral phrase ("Dodaj skupinu" at the top, "Dodaj stavku" below).
|
|
6
|
+
*/
|
|
7
|
+
readonly addLabel: ((parent: {
|
|
8
|
+
level: number;
|
|
9
|
+
name: string;
|
|
10
|
+
} | null, level: number) => string | null | undefined) | null;
|
|
11
|
+
}
|
|
12
|
+
export declare const characteristicsContextKey: import("vue").InjectionKey<CharacteristicsContext>, useCharacteristicsContext: () => CharacteristicsContext;
|