@wssto2/vue-core 0.5.4 → 0.7.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 +46 -0
- package/README.md +6 -1
- package/dist/{AccessGate.vue_vue_type_script_setup_true_lang-DZ9GcLC1.js → AccessGate.vue_vue_type_script_setup_true_lang-CkomzGrt.js} +1 -1
- package/dist/{AccountMenuItem.vue_vue_type_script_setup_true_lang-CPeNxh5K.js → AccountMenuItem.vue_vue_type_script_setup_true_lang-BIYgaihv.js} +1 -1
- package/dist/{ActionRow.vue_vue_type_script_setup_true_lang-Bv-APkGf.js → ActionRow.vue_vue_type_script_setup_true_lang-Cg1lhpcA.js} +2 -2
- package/dist/{Activity-DUjDaPfP.js → Activity-CW2TOQAY.js} +9 -9
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-GUTIXuNd.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-9Lt1XggN.js} +3 -3
- package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-whA4WLdl.js → AlertDialog.vue_vue_type_script_setup_true_lang-BvGc1Rfl.js} +1 -1
- package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-B0NfvG3B.js → AsyncSection.vue_vue_type_script_setup_true_lang-GxAsImnO.js} +4 -4
- package/dist/{Banner.vue_vue_type_script_setup_true_lang-DSStj_5z.js → Banner.vue_vue_type_script_setup_true_lang-sv0phngk.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js → Button.vue_vue_type_script_setup_true_lang-DQq_0P0p.js} +1 -1
- package/dist/{Changes-B0tZO6BZ.js → Changes-BCaVkeZg.js} +8 -8
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-o_Pj-JcD.js → CollectionPage.vue_vue_type_script_setup_true_lang-BmXnfM5f.js} +17 -16
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-BEvz5zqo.js → DataTable.vue_vue_type_script_setup_true_lang-DRWrCRLr.js} +1 -1
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-CDg31ZU7.js → DateField.vue_vue_type_script_setup_true_lang-DmYp54mq.js} +3 -3
- package/dist/{DeadLetters-IgVHao84.js → DeadLetters-DUM_bsL-.js} +8 -7
- package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-D1arePCZ.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-DcihJfpk.js} +1 -1
- package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp8I.js → EmptyState.vue_vue_type_script_setup_true_lang-DbZiO2RF.js} +1 -1
- package/dist/{FormErrors.vue_vue_type_script_setup_true_lang-D7edzNTL.js → FormErrors.vue_vue_type_script_setup_true_lang-DJiK8iqo.js} +1 -1
- package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-CSgT4ITL.js → FormGroup.vue_vue_type_script_setup_true_lang-BTADNpwB.js} +2 -2
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-D31Hk3pJ.js → FormView.vue_vue_type_script_setup_true_lang-Ncl9DmFB.js} +2 -2
- package/dist/{General-C40HxupS.js → General-Dsh0TJ5w.js} +8 -8
- package/dist/{HeaderAction.vue_vue_type_script_setup_true_lang-Cgji-Jrr.js → HeaderAction.vue_vue_type_script_setup_true_lang-Da59TLBh.js} +2 -2
- package/dist/{Icon.vue_vue_type_script_lang-D7oC-d-S.js → Icon.vue_vue_type_script_lang-BhhsFYwp.js} +45 -42
- package/dist/{IconTile.vue_vue_type_script_setup_true_lang-_FXvaj93.js → IconTile.vue_vue_type_script_setup_true_lang-BmxCuUZ9.js} +1 -1
- package/dist/IncidentRecord-C9zrjNrp.js +405 -0
- package/dist/IncidentsList-ClQOjd5c.js +140 -0
- package/dist/KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js +35 -0
- package/dist/{LeaveGuardRoot.vue_vue_type_script_setup_true_lang-Cv7KlA5y.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-ChIsmnts.js} +1 -1
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-DsFOeCVe.js → Menu.vue_vue_type_script_setup_true_lang-ldLdJ5Q-.js} +1 -1
- package/dist/{MenuButton.vue_vue_type_script_setup_true_lang-AGbN9r5q.js → MenuButton.vue_vue_type_script_setup_true_lang-C-XRr5f2.js} +1 -1
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-DpBb8ans.js → Modal.vue_vue_type_script_setup_true_lang-4MsnTWyx.js} +2 -2
- package/dist/{NewRolePage-Bhy8KJO1.js → NewRolePage-Bw2_jXcQ.js} +9 -8
- package/dist/{NoAccess.vue_vue_type_script_setup_true_lang-DWxq-MTM.js → NoAccess.vue_vue_type_script_setup_true_lang-BHzZtZ50.js} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-BdS7BxuS.js → NumberField.vue_vue_type_script_setup_true_lang-C3nw944P.js} +1 -1
- package/dist/{PageBar.vue_vue_type_script_setup_true_lang-B7qdEeej.js → PageBar.vue_vue_type_script_setup_true_lang-DPpcZxuT.js} +1 -1
- package/dist/{Panel.vue_vue_type_script_setup_true_lang-BA0u_DtS.js → Panel.vue_vue_type_script_setup_true_lang-D_Wg42hu.js} +1 -1
- package/dist/PersonAccess.vue_vue_type_script_setup_true_lang-07pq4SrY.js +600 -0
- package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-CY5EZiyK.js → PhotoViewer.vue_vue_type_script_setup_true_lang-Cj0hSMk9.js} +1 -1
- package/dist/{ProfilePage-Bf7dFzGd.js → ProfilePage-CJIztbx3.js} +19 -19
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-fmx0f8xi.js → RecordHeader.vue_vue_type_script_setup_true_lang-DPm9q1P_.js} +2 -2
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-BFBGvevP.js → ResourcePage.vue_vue_type_script_setup_true_lang-Cm3tx76N.js} +5 -5
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-C6oloGIh.js → RoleEditor.vue_vue_type_script_setup_true_lang-DuQR8hFf.js} +35 -34
- package/dist/{RolePage-BjbvciTg.js → RolePage-Yv6m6u7o.js} +43 -41
- package/dist/{RolesPage-DzVOgF4z.js → RolesPage-TibtzxzQ.js} +34 -32
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-wyW7n3Uq.js → SectionList.vue_vue_type_script_setup_true_lang-DAnZbfWA.js} +3 -3
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-Ci04hApd.js → SectionNavigator.vue_vue_type_script_setup_true_lang-ivdGWUeF.js} +5 -5
- package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-DXe_iOS8.js → SegmentedField.vue_vue_type_script_setup_true_lang-ChfDFAA2.js} +1 -1
- package/dist/{SelectField.vue_vue_type_script_setup_true_lang-BN4vzvV9.js → SelectField.vue_vue_type_script_setup_true_lang-iJm8qmjT.js} +7 -7
- package/dist/ServiceAccountDialog.vue_vue_type_script_setup_true_lang-D2Xj5mr7.js +126 -0
- package/dist/ServiceAccountRecord-Ct3TrSqZ.js +511 -0
- package/dist/ServiceAccountsList-CaXEp73j.js +137 -0
- package/dist/{SessionList.vue_vue_type_script_setup_true_lang-PuWIK-Wa.js → SessionList.vue_vue_type_script_setup_true_lang-BEKTaL0g.js} +4 -4
- package/dist/{Sessions-CRUObe5G.js → Sessions-Bg4Zk9Gf.js} +6 -6
- package/dist/{SettingsPage-C0qEC0uI.js → SettingsPage-Brq9U4tJ.js} +19 -19
- package/dist/{Sheet.vue_vue_type_script_setup_true_lang-DgOFV4fa.js → Sheet.vue_vue_type_script_setup_true_lang-sh9YD0Pm.js} +1 -1
- package/dist/{SignIn-Uy0Jujzz.js → SignIn-DB5LRNlB.js} +7 -7
- package/dist/{SignInPage-CpVZfrLZ.js → SignInPage-Ts-iTaC1.js} +6 -6
- package/dist/{SignIns-Cp5Gx2dk.js → SignIns-bCvvmCHF.js} +6 -6
- package/dist/{SwipeActions.vue_vue_type_script_setup_true_lang-BJIA2JfI.js → SwipeActions.vue_vue_type_script_setup_true_lang-D8SiC0G7.js} +1 -1
- package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-Dj5Aq8QT.js → SwitchField.vue_vue_type_script_setup_true_lang-BMA2YXTZ.js} +1 -1
- package/dist/{Tabs.vue_vue_type_script_setup_true_lang-CcMcE38r.js → Tabs.vue_vue_type_script_setup_true_lang-tpkGp98F.js} +1 -1
- package/dist/{TextField.vue_vue_type_script_setup_true_lang-BwfNNQEz.js → TextField.vue_vue_type_script_setup_true_lang-7IAl4eAE.js} +3 -3
- package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-aT1P8Xqr.js → TextareaField.vue_vue_type_script_setup_true_lang-Dyh4Hhyl.js} +1 -1
- package/dist/{TimeField.vue_vue_type_script_setup_true_lang-jPKPE1hc.js → TimeField.vue_vue_type_script_setup_true_lang-BwoE08jT.js} +3 -3
- package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-CutyQkJb.js → Timestamp.vue_vue_type_script_setup_true_lang-u53rHMFG.js} +1 -1
- package/dist/{UserRecord-DbSMnTbj.js → UserRecord-DgK9FsvV.js} +30 -30
- package/dist/{UsersList-9MicE2pG.js → UsersList-Due2ZkbO.js} +14 -14
- package/dist/{ViewTabs.vue_vue_type_script_setup_true_lang-BJIoZAlH.js → ViewTabs.vue_vue_type_script_setup_true_lang-BjdDXE3T.js} +1 -1
- package/dist/access/api.d.ts +7 -8
- package/dist/access/context.d.ts +2 -7
- package/dist/access/feature.d.ts +0 -8
- package/dist/access/index.js +47 -15
- package/dist/app/application.d.ts +2 -0
- package/dist/app/index.js +13 -427
- package/dist/application-D8Nm17zA.js +420 -0
- package/dist/button/index.js +1 -1
- package/dist/client/client.d.ts +7 -0
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +5 -4
- package/dist/client-CZgikXPG.js +151 -0
- package/dist/collection/index.js +55 -63
- package/dist/content/index.js +37 -66
- package/dist/{contributions-fx5q5n1u.js → contributions-BQ9dZoRw.js} +1 -1
- package/dist/controls/index.js +4 -4
- package/dist/datePresets-DB13HHHd.js +17 -0
- package/dist/definition-C7QuyV3i.js +54 -0
- package/dist/form/index.js +590 -615
- package/dist/{guards-D4mXf_2X.js → guards-BFCulig0.js} +1 -1
- package/dist/http-nz92KjdS.js +42 -0
- package/dist/i18n/index.js +36 -36
- package/dist/icon/core.d.ts +3 -0
- package/dist/icon/index.js +1 -1
- package/dist/identity/index.d.ts +7 -0
- package/dist/identity/index.js +19 -15
- package/dist/identity/serviceaccounts/ApiKeysPanel.vue.d.ts +17 -0
- package/dist/identity/serviceaccounts/CreatedApiKeyDialog.vue.d.ts +53 -0
- package/dist/identity/serviceaccounts/NewApiKeyDialog.vue.d.ts +24 -0
- package/dist/identity/serviceaccounts/ServiceAccountDialog.vue.d.ts +22 -0
- package/dist/identity/serviceaccounts/ServiceAccountRecord.vue.d.ts +2 -0
- package/dist/identity/serviceaccounts/ServiceAccountsList.vue.d.ts +2 -0
- package/dist/identity/serviceaccounts/access.d.ts +4 -0
- package/dist/identity/serviceaccounts/api.d.ts +27 -0
- package/dist/identity/serviceaccounts/context.d.ts +14 -0
- package/dist/identity/serviceaccounts/feature.d.ts +23 -0
- package/dist/identity/serviceaccounts/form.d.ts +4 -0
- package/dist/identity/serviceaccounts/messages.d.ts +11 -0
- package/dist/identity/serviceaccounts/routes.d.ts +22 -0
- package/dist/incidents/IncidentRecord.vue.d.ts +2 -0
- package/dist/incidents/IncidentsList.vue.d.ts +2 -0
- package/dist/incidents/Person.vue.d.ts +7 -0
- package/dist/incidents/ReportDialog.vue.d.ts +21 -0
- package/dist/incidents/ReportHost.vue.d.ts +2 -0
- package/dist/incidents/ReportMenuItem.vue.d.ts +2 -0
- package/dist/incidents/access.d.ts +6 -0
- package/dist/incidents/api.d.ts +27 -0
- package/dist/incidents/clientErrorReporter.d.ts +38 -0
- package/dist/incidents/context.d.ts +7 -0
- package/dist/incidents/feature.d.ts +20 -0
- package/dist/incidents/form.d.ts +16 -0
- package/dist/incidents/index.d.ts +9 -0
- package/dist/incidents/index.js +8 -0
- package/dist/incidents/look.d.ts +6 -0
- package/dist/incidents/routes.d.ts +21 -0
- package/dist/{index-Ok29ucE3.js → index-CXTJ_1NV.js} +191 -168
- package/dist/index-D5_GAqjA.js +340 -0
- package/dist/{index-C-oM_Mnf.js → index-i-cTTVxo.js} +10 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/copyText.d.ts +5 -0
- package/dist/modal/index.js +5 -5
- package/dist/modules/incident/entities.d.ts +84 -0
- package/dist/modules/incident/routes.d.ts +54 -0
- package/dist/modules/incident/schemas.d.ts +48 -0
- package/dist/modules/serviceaccount/entities.d.ts +127 -0
- package/dist/modules/serviceaccount/routes.d.ts +58 -0
- package/dist/modules/serviceaccount/schemas.d.ts +49 -0
- package/dist/{navigation-Bc5EQ_Si.js → navigation-BSC9X7FM.js} +1 -1
- package/dist/{neighbors-Bv6vnWlW.js → neighbors-BKzihEGQ.js} +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/{options-Bu0XbEpN.js → options-QuOkMKVZ.js} +4 -4
- package/dist/overlay/index.js +4 -4
- package/dist/page/index.js +7 -7
- package/dist/phone/index.js +2 -2
- package/dist/platform/index.js +3 -3
- package/dist/{platform-Dx6STiwY.js → platform-Dr4iY3b8.js} +1 -1
- package/dist/refusals-COPr15XZ.js +135 -0
- package/dist/resource/index.js +1 -1
- package/dist/router/index.js +4 -4
- package/dist/routes-CVckt7Pj.js +19 -0
- package/dist/{rowLayout-BBFyLbOl.js → rowLayout-Cz-K7jeo.js} +5 -5
- package/dist/{sections-B0HxIOC2.js → sections-BXg4_ZhO.js} +1 -1
- package/dist/shell/index.js +9 -9
- package/dist/state/index.js +4 -4
- package/dist/state-ChVIjayU.js +102 -0
- package/dist/{status-C78NpXyB.js → status-DZ4eSnAS.js} +9 -8
- package/dist/styles.css +1 -1
- package/dist/{suggestions-ClyLexMO.js → suggestions-niXd1oOl.js} +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/{useCommand-DyuPTosF.js → useCommand-BIZX1ReM.js} +4 -4
- package/dist/{useGroupSheet-C2NyqWRp.js → useGroupSheet-DxXzdKo3.js} +5 -5
- package/dist/useRecordDialog-BLVSz7g3.js +30 -0
- package/dist/{useResourceForm-CJfl8rj_.js → useResourceForm-DYuYT_on.js} +1 -1
- package/dist/{useTypedEntry-C7k7Dyl-.js → useTypedEntry-CKuGqWT8.js} +2 -2
- package/package.json +6 -2
- package/dist/client-BHPFfBj3.js +0 -147
- package/dist/http-CdQowFlW.js +0 -194
- package/dist/index-BdGnA1Jh.js +0 -765
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as Z, computed as g, inject as ee, watch as P, onBeforeUnmount as W, useTemplateRef as te, ref as ae, onMounted as se, openBlock as t, createElementBlock as a, createBlock as F, resolveDynamicComponent as oe, unref as l, createElementVNode as s, renderSlot as $, Fragment as y, renderList as w, normalizeClass as d, toDisplayString as c, createCommentVNode as u, createVNode as v, withCtx as C, nextTick as ne } from "vue";
|
|
2
2
|
import { useI18n as le } from "vue-i18n";
|
|
3
3
|
import { RouterLink as z } from "vue-router";
|
|
4
|
-
import { _ as q } from "./IconTile.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as G } from "./Icon.vue_vue_type_script_lang-
|
|
4
|
+
import { _ as q } from "./IconTile.vue_vue_type_script_setup_true_lang-BmxCuUZ9.js";
|
|
5
|
+
import { _ as G } from "./Icon.vue_vue_type_script_lang-BhhsFYwp.js";
|
|
6
6
|
import { a as re } from "./mediaQuery-CygcXmFW.js";
|
|
7
7
|
import { u as ie } from "./access-DmAceEo5.js";
|
|
8
|
-
import { u as ce, a as ue } from "./sections-
|
|
9
|
-
import { p as de } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { u as ce, a as ue } from "./sections-BXg4_ZhO.js";
|
|
9
|
+
import { p as de } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-9Lt1XggN.js";
|
|
10
10
|
import { p as me } from "./sectionIndex-BS0ic5W7.js";
|
|
11
|
-
import { _ as K, a as pe } from "./SectionList.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { _ as K, a as pe } from "./SectionList.vue_vue_type_script_setup_true_lang-DAnZbfWA.js";
|
|
12
12
|
const fe = {
|
|
13
13
|
key: 0,
|
|
14
14
|
"data-test": "section-navigator",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as w, openBlock as a, createBlock as k, mergeProps as x, unref as r, createSlots as V, withCtx as o, createElementVNode as h, normalizeClass as n, createElementBlock as s, Fragment as _, renderList as $, createTextVNode as B, toDisplayString as d, createCommentVNode as C, renderSlot as i, mergeDefaults as L } from "vue";
|
|
2
|
-
import { u as F, a as S, _ as T, f as D, b as N } from "./options-
|
|
2
|
+
import { u as F, a as S, _ as T, f as D, b as N } from "./options-QuOkMKVZ.js";
|
|
3
3
|
const E = ["id", "aria-label", "aria-describedby", "aria-invalid"], P = ["disabled", "aria-pressed", "onClick"], H = /* @__PURE__ */ w({
|
|
4
4
|
__name: "SegmentedField",
|
|
5
5
|
props: /* @__PURE__ */ L({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as X, shallowRef as ee, ref as M, useId as te, useTemplateRef as Y, computed as g, watch as N, nextTick as oe, openBlock as n, createElementBlock as b, normalizeClass as k, createElementVNode as i, createVNode as O, unref as t, withDirectives as le, vModelText as ae, createCommentVNode as h, toDisplayString as L, createBlock as z, Fragment as U, renderList as G, renderSlot as V, onScopeDispose as ne, mergeProps as K, createSlots as E, withCtx as $, createTextVNode as H, normalizeProps as W, guardReactiveProps as J, mergeDefaults as se } from "vue";
|
|
2
2
|
import { useI18n as Z } from "vue-i18n";
|
|
3
|
-
import { _ as re } from "./Button.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as T } from "./Icon.vue_vue_type_script_lang-
|
|
3
|
+
import { _ as re } from "./Button.vue_vue_type_script_setup_true_lang-DQq_0P0p.js";
|
|
4
|
+
import { _ as T } from "./Icon.vue_vue_type_script_lang-BhhsFYwp.js";
|
|
5
5
|
import { u as ie } from "./mediaQuery-CygcXmFW.js";
|
|
6
6
|
import { _ as I } from "./ToneDot.vue_vue_type_script_setup_true_lang-99rNn-L5.js";
|
|
7
|
-
import { _ as ue } from "./Sheet.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as ue } from "./Sheet.vue_vue_type_script_setup_true_lang-sh9YD0Pm.js";
|
|
8
8
|
import { _ as de } from "./Popover.vue_vue_type_script_setup_true_lang-C70GrCP7.js";
|
|
9
|
-
import { i as ce, m as pe, a as me,
|
|
10
|
-
import { a as ye } from "./suggestions-
|
|
9
|
+
import { i as ce, m as pe, a as me, e as ve, _ as fe, f as be, b as ge } from "./options-QuOkMKVZ.js";
|
|
10
|
+
import { a as ye } from "./suggestions-niXd1oOl.js";
|
|
11
11
|
const he = { class: "flex min-h-9 items-center gap-1.5 rounded-control bg-fill px-2.5 text-content-muted focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-border-focus" }, ke = ["aria-label", "placeholder"], xe = ["aria-multiselectable", "aria-busy"], we = {
|
|
12
12
|
key: 0,
|
|
13
13
|
role: "presentation"
|
|
@@ -509,6 +509,6 @@ const Ee = ["id", "disabled", "aria-expanded", "aria-required", "aria-invalid",
|
|
|
509
509
|
export {
|
|
510
510
|
et as _,
|
|
511
511
|
Q as a,
|
|
512
|
-
|
|
513
|
-
|
|
512
|
+
Re as b,
|
|
513
|
+
Ze as u
|
|
514
514
|
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { defineComponent as I, computed as K, ref as V, openBlock as A, createBlock as k, unref as e, withCtx as b, createElementVNode as B, createVNode as p, mergeProps as f, createCommentVNode as D } from "vue";
|
|
2
|
+
import { useI18n as G } from "vue-i18n";
|
|
3
|
+
import { f as T, u as U } from "./refusals-COPr15XZ.js";
|
|
4
|
+
import { _ as x } from "./FormGroup.vue_vue_type_script_setup_true_lang-BTADNpwB.js";
|
|
5
|
+
import { u as M, _ as N } from "./SelectField.vue_vue_type_script_setup_true_lang-iJm8qmjT.js";
|
|
6
|
+
import { _ as Z } from "./TextareaField.vue_vue_type_script_setup_true_lang-Dyh4Hhyl.js";
|
|
7
|
+
import { _ as j } from "./TextField.vue_vue_type_script_setup_true_lang-7IAl4eAE.js";
|
|
8
|
+
import { _ as F } from "./useCommand-BIZX1ReM.js";
|
|
9
|
+
import { u as H } from "./useRecordDialog-BLVSz7g3.js";
|
|
10
|
+
import { t as J } from "./toast-CqSDTWRX.js";
|
|
11
|
+
import { u as S } from "./platform-Dr4iY3b8.js";
|
|
12
|
+
import { i as Q, f as W, M as X } from "./index-CXTJ_1NV.js";
|
|
13
|
+
import { r as Y } from "./http-nz92KjdS.js";
|
|
14
|
+
import { s as l } from "./routes-CVckt7Pj.js";
|
|
15
|
+
import { u as ee } from "./fieldMessages-DTXpWnBd.js";
|
|
16
|
+
const y = (o) => ({ headers: { "Idempotency-Key": o } }), O = 500;
|
|
17
|
+
function ae(o) {
|
|
18
|
+
return {
|
|
19
|
+
list: async (s) => (await o.request(l.index, void 0, s)).data.service_accounts,
|
|
20
|
+
show: async (s, t) => (await o.request(l.show, { id: s }, t)).data,
|
|
21
|
+
create: async (s, t) => (await o.request(l.create, s, y(t))).data,
|
|
22
|
+
update: async (s, t, c) => (await o.request(l.update, { ...t, id: s }, y(c))).data,
|
|
23
|
+
deactivate: async (s) => (await o.request(l.deactivate, { id: s })).data,
|
|
24
|
+
keys: async (s, t) => (await o.request(l.keys, { id: s }, t)).data.keys,
|
|
25
|
+
/** The secret is in the answer, and only there. */
|
|
26
|
+
createKey: async (s, t, c) => (await o.request(l.createkey, { ...t, id: s }, y(c))).data,
|
|
27
|
+
revokeKey: async (s, t) => void await o.request(l.revokekey, { id: s, keyID: t }),
|
|
28
|
+
/** The people who can answer for an account: the active ones of the users list (its largest page). */
|
|
29
|
+
people: async (s) => Y(await o.request(Q.usersList, { view: "active", order_col: "name", order_dir: "asc", page: 1, per_page: O }, s), { page: 1, pageSize: O }).rows.map((t) => ({ id: t.id, name: t.name }))
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const se = () => ae(S().http);
|
|
33
|
+
function te() {
|
|
34
|
+
const o = ee(), s = T();
|
|
35
|
+
return { ...o, failureMessage: (t, c) => s(t, c) ?? o.failureMessage(t, c) };
|
|
36
|
+
}
|
|
37
|
+
const ne = {
|
|
38
|
+
class: "flex min-w-0 flex-col gap-group-gap",
|
|
39
|
+
"data-test": "service-account-form"
|
|
40
|
+
}, h = 0, he = /* @__PURE__ */ I({
|
|
41
|
+
__name: "ServiceAccountDialog",
|
|
42
|
+
emits: ["saved"],
|
|
43
|
+
setup(o, { expose: s, emit: t }) {
|
|
44
|
+
const c = t, { t: r } = G(), { access: C } = S(), L = U(), _ = se(), { tenants: u } = W(), P = te(), v = K(() => {
|
|
45
|
+
const a = C.held(X);
|
|
46
|
+
return a !== null && a.scope.id === void 0;
|
|
47
|
+
}), R = (a) => a.trim() === "", d = H({
|
|
48
|
+
...P,
|
|
49
|
+
defaults: () => ({ name: "", description: "", tenant_id: u !== null && v.value ? h : null, owner_id: null }),
|
|
50
|
+
validator: {
|
|
51
|
+
safeParse(a) {
|
|
52
|
+
const n = a, i = [], w = r("core.account.validation.required"), q = r("core.serviceaccounts.errors.too_long");
|
|
53
|
+
return R(n.name) ? i.push({ path: ["name"], message: w }) : n.name.trim().length > 100 && i.push({ path: ["name"], message: q }), n.description.length > 500 && i.push({ path: ["description"], message: q }), n.owner_id === null && i.push({ path: ["owner_id"], message: w }), u !== null && n.tenant_id === null && i.push({ path: ["tenant_id"], message: w }), i.length > 0 || n.owner_id === null ? { success: !1, error: { issues: i } } : { success: !0, data: { name: n.name.trim(), description: n.description, tenant_id: u === null ? null : n.tenant_id || null, owner_id: n.owner_id } };
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
toValues: (a) => ({ name: a.name, description: a.description, tenant_id: a.tenant?.id ?? (v.value ? h : null), owner_id: a.owner.id }),
|
|
57
|
+
create: (a, { idempotencyKey: n }) => _.create(a, n),
|
|
58
|
+
update: (a, n, { idempotencyKey: i }) => _.update(a.id, n, i),
|
|
59
|
+
done: (a) => {
|
|
60
|
+
J.success(r("core.serviceaccounts.toasts.saved")), c("saved", a);
|
|
61
|
+
}
|
|
62
|
+
}), m = d.form, g = V(!1), $ = M({
|
|
63
|
+
for: () => g.value && u !== null ? !0 : null,
|
|
64
|
+
load: async (a, { signal: n }) => [
|
|
65
|
+
...v.value ? [{ value: h, label: L.levelLabel("organization") }] : [],
|
|
66
|
+
...(await (u?.options(n) ?? [])).map((i) => ({ value: i.id, label: i.name }))
|
|
67
|
+
]
|
|
68
|
+
}), z = M({
|
|
69
|
+
for: () => g.value ? !0 : null,
|
|
70
|
+
load: async (a, { signal: n }) => (await _.people({ signal: n })).map((i) => ({ value: i.id, label: i.name }))
|
|
71
|
+
});
|
|
72
|
+
function E(a) {
|
|
73
|
+
g.value = !0, a ? d.edit(a) : d.create();
|
|
74
|
+
}
|
|
75
|
+
return s({ show: E, form: m }), (a, n) => (A(), k(e(F), {
|
|
76
|
+
command: e(d).command,
|
|
77
|
+
size: "md",
|
|
78
|
+
title: e(d).editing.value ? e(r)("core.serviceaccounts.edit_title") : e(r)("core.serviceaccounts.create_title"),
|
|
79
|
+
subtitle: e(r)("core.serviceaccounts.no_password"),
|
|
80
|
+
"confirm-label": e(r)("core.serviceaccounts.save")
|
|
81
|
+
}, {
|
|
82
|
+
default: b(() => [
|
|
83
|
+
B("div", ne, [
|
|
84
|
+
p(e(x), null, {
|
|
85
|
+
default: b(() => [
|
|
86
|
+
p(e(j), f(e(m).bind("name"), {
|
|
87
|
+
label: e(r)("core.serviceaccounts.fields.name"),
|
|
88
|
+
"max-length": 100,
|
|
89
|
+
required: ""
|
|
90
|
+
}), null, 16, ["label"]),
|
|
91
|
+
p(e(Z), f(e(m).bind("description"), {
|
|
92
|
+
label: e(r)("core.serviceaccounts.fields.description"),
|
|
93
|
+
rows: 2,
|
|
94
|
+
"max-length": 500
|
|
95
|
+
}), null, 16, ["label"])
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
}),
|
|
99
|
+
p(e(x), {
|
|
100
|
+
footer: e(r)("core.serviceaccounts.fields.owner_hint")
|
|
101
|
+
}, {
|
|
102
|
+
default: b(() => [
|
|
103
|
+
e(u) ? (A(), k(e(N), f({ key: 0 }, e(m).bind("tenant_id"), {
|
|
104
|
+
label: e(r)(e(u).labelKey),
|
|
105
|
+
options: e($),
|
|
106
|
+
required: ""
|
|
107
|
+
}), null, 16, ["label", "options"])) : D("", !0),
|
|
108
|
+
p(e(N), f(e(m).bind("owner_id"), {
|
|
109
|
+
label: e(r)("core.serviceaccounts.fields.owner"),
|
|
110
|
+
options: e(z),
|
|
111
|
+
required: ""
|
|
112
|
+
}), null, 16, ["label", "options"])
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, ["footer"])
|
|
116
|
+
])
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
}, 8, ["command", "title", "subtitle", "confirm-label"]));
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
export {
|
|
123
|
+
he as _,
|
|
124
|
+
te as a,
|
|
125
|
+
se as u
|
|
126
|
+
};
|