@anzusystems/common-admin 2.0.0-rc.14 → 2.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common-admin.js +38 -35
- package/dist/domains/anzuUser/api/anzuUserApi.d.ts +1 -1
- package/dist/domains/anzuUser/api/anzuUserApi.js +2 -2
- package/dist/domains/anzuUser/api/anzuUserApi.js.map +1 -1
- package/dist/domains/anzuUser/components/AUserManageButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/anzuUser/components/AUserMissingAccount.js +6 -0
- package/dist/domains/anzuUser/components/AUserMissingAccount.js.map +1 -0
- package/dist/domains/anzuUser/components/AUserMissingAccount.vue.d.ts +20 -0
- package/dist/domains/anzuUser/components/AUserMissingAccount.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/domains/anzuUser/components/AUserMissingAccount.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/domains/anzuUser/components/AUserOtherSystemsTable.vue.d.ts +56 -11
- package/dist/domains/anzuUser/components/AUserOtherSystemsTable.vue_vue_type_script_setup_true_lang.js +38 -27
- package/dist/domains/anzuUser/components/AUserOtherSystemsTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/anzuUser/components/AUserSystemPanel.vue_vue_type_script_setup_true_lang.js +64 -63
- package/dist/domains/anzuUser/components/AUserSystemPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/anzuUser/components/AUserTabsShell.vue.d.ts +15 -33
- package/dist/domains/anzuUser/components/AUserTabsShell.vue_vue_type_script_setup_true_lang.js +54 -155
- package/dist/domains/anzuUser/components/AUserTabsShell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/anzuUser/composables/anzuUserActions.d.ts +2 -0
- package/dist/domains/anzuUser/composables/anzuUserActions.js +74 -71
- package/dist/domains/anzuUser/composables/anzuUserActions.js.map +1 -1
- package/dist/domains/anzuUser/composables/userCreateFromSource.d.ts +70 -0
- package/dist/domains/anzuUser/composables/userCreateFromSource.js +62 -0
- package/dist/domains/anzuUser/composables/userCreateFromSource.js.map +1 -0
- package/dist/domains/anzuUser/utils/userTabs.d.ts +7 -1
- package/dist/domains/anzuUser/utils/userTabs.js.map +1 -1
- package/dist/lib.d.ts +5 -2
- package/package.json +2 -2
|
@@ -1,103 +1,106 @@
|
|
|
1
1
|
import { useAlerts as e } from "../../system/composables/alerts.js";
|
|
2
2
|
import { handleRecordLoadError as t } from "../../system/composables/recordPage.js";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
3
|
+
import { USER_PROBE_ENTITY as n, apiErrorStatus as r } from "../../api/utils/apiErrors.js";
|
|
4
|
+
import "../../../shared/statusCodes.js";
|
|
5
|
+
import { ANZU_USER_ENDPOINT as i, ANZU_USER_ENTITY as a, useAnzuUserApi as o } from "../api/anzuUserApi.js";
|
|
6
|
+
import { useAnzuUserOneStore as s } from "../store/anzuUserStore.js";
|
|
7
|
+
import { AnzuFatalError as c } from "../../../shared/error/AnzuFatalError.js";
|
|
8
|
+
import { isNull as l, isUndefined as u } from "../../../shared/utils/common.js";
|
|
9
|
+
import { syncUserAndTimeTracking as d } from "../../../shared/utils/userAndTimeTracking.js";
|
|
10
|
+
import { computed as f, nextTick as p, ref as m } from "vue";
|
|
11
|
+
import h from "@vuelidate/core";
|
|
12
|
+
import { storeToRefs as g } from "pinia";
|
|
11
13
|
// src/domains/anzuUser/composables/anzuUserActions.ts
|
|
12
|
-
var
|
|
13
|
-
let { client:
|
|
14
|
-
client:
|
|
15
|
-
system:
|
|
16
|
-
entity:
|
|
17
|
-
validationSystem:
|
|
18
|
-
validationEntity:
|
|
19
|
-
endPoint:
|
|
20
|
-
}), { execute:
|
|
21
|
-
let r = ++
|
|
22
|
-
|
|
14
|
+
var _ = 0, v = (v) => {
|
|
15
|
+
let { client: y, system: b, entity: x = a, endPoint: S = i } = v, { showErrorsDefault: C, showRecordWas: w, showValidationError: T } = e(), { useFetchAnzuUserList: E, useFetchAnzuUser: D, useCreateAnzuUser: O, useUpdateAnzuUser: k } = o({
|
|
16
|
+
client: y,
|
|
17
|
+
system: b,
|
|
18
|
+
entity: x,
|
|
19
|
+
validationSystem: v.validationSystem,
|
|
20
|
+
validationEntity: v.validationEntity,
|
|
21
|
+
endPoint: S
|
|
22
|
+
}), { execute: A, abort: j } = E(), M = m([]), N = m(!1), P = m([]), F = 0, I = async (e, t, n) => {
|
|
23
|
+
let r = ++F;
|
|
24
|
+
N.value = !0;
|
|
23
25
|
try {
|
|
24
|
-
let i = await
|
|
25
|
-
if (r !==
|
|
26
|
-
|
|
26
|
+
let i = await A(e, t, n);
|
|
27
|
+
if (r !== F) return;
|
|
28
|
+
M.value = i;
|
|
27
29
|
} catch (e) {
|
|
28
|
-
if (r !==
|
|
29
|
-
|
|
30
|
+
if (r !== F) return;
|
|
31
|
+
M.value = [], C(e);
|
|
30
32
|
} finally {
|
|
31
|
-
r ===
|
|
33
|
+
r === F && (N.value = !1);
|
|
32
34
|
}
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
let
|
|
39
|
-
|
|
35
|
+
}, L = () => {
|
|
36
|
+
F++, j();
|
|
37
|
+
}, R = s(), { anzuUser: z, loadingAnzuUser: B } = g(R), V = m(""), H = () => {
|
|
38
|
+
V.value = JSON.stringify(R.anzuUser);
|
|
39
|
+
}, U = f(() => V.value !== "" && V.value !== JSON.stringify(z.value)), W = m(!1), G = async (e, i = {}) => {
|
|
40
|
+
let a = ++_, o = () => _ === a;
|
|
41
|
+
R.setLoadingAnzuUser(!0);
|
|
40
42
|
try {
|
|
41
|
-
let { execute: t } =
|
|
43
|
+
let { execute: t } = D(i.keepOnNotFound ? n : void 0), r = await t({
|
|
42
44
|
urlParams: { id: e },
|
|
43
|
-
signal:
|
|
45
|
+
signal: i.signal
|
|
44
46
|
});
|
|
45
|
-
return
|
|
47
|
+
return o() ? (W.value = !1, R.setAnzuUser(r), await p(), H(), !0) : void 0;
|
|
46
48
|
} catch (e) {
|
|
47
|
-
return
|
|
49
|
+
return (!o() || (R.reset(b), V.value = "", W.value = i.keepOnNotFound === !0 && r(e) === 404, W.value) || !t(e)) && void 0;
|
|
48
50
|
} finally {
|
|
49
|
-
|
|
51
|
+
o() && R.setLoadingAnzuUser(!1);
|
|
50
52
|
}
|
|
51
|
-
},
|
|
53
|
+
}, K = v.validationScope ? h({}, {}, { $scope: v.validationScope }) : h(), q = m(!1), J = async () => {
|
|
52
54
|
try {
|
|
53
|
-
if (
|
|
54
|
-
let { execute: e } =
|
|
55
|
-
return
|
|
55
|
+
if (q.value = !0, K.value.$touch(), K.value.$invalid) return T(), null;
|
|
56
|
+
let { execute: e } = O(), t = await e({ body: R.anzuUser });
|
|
57
|
+
return w("created"), H(), t;
|
|
56
58
|
} catch (e) {
|
|
57
|
-
return
|
|
59
|
+
return C(e), null;
|
|
58
60
|
} finally {
|
|
59
|
-
|
|
61
|
+
q.value = !1;
|
|
60
62
|
}
|
|
61
|
-
},
|
|
63
|
+
}, Y = m(!1);
|
|
62
64
|
return {
|
|
63
|
-
isDirty:
|
|
64
|
-
markPristine:
|
|
65
|
-
anzuUserList:
|
|
66
|
-
loadingAnzuUserList:
|
|
67
|
-
datatableHiddenColumns:
|
|
68
|
-
fetchAnzuUserList:
|
|
69
|
-
cancelAnzuUserList:
|
|
70
|
-
anzuUser:
|
|
71
|
-
loadingAnzuUser:
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
isDirty: U,
|
|
66
|
+
markPristine: H,
|
|
67
|
+
anzuUserList: M,
|
|
68
|
+
loadingAnzuUserList: N,
|
|
69
|
+
datatableHiddenColumns: P,
|
|
70
|
+
fetchAnzuUserList: I,
|
|
71
|
+
cancelAnzuUserList: L,
|
|
72
|
+
anzuUser: z,
|
|
73
|
+
loadingAnzuUser: B,
|
|
74
|
+
anzuUserNotFound: W,
|
|
75
|
+
fetchAnzuUser: G,
|
|
76
|
+
createAnzuUser: J,
|
|
74
77
|
updateAnzuUser: async () => {
|
|
75
78
|
try {
|
|
76
|
-
if (
|
|
77
|
-
let e =
|
|
78
|
-
if (
|
|
79
|
-
let { execute: t } =
|
|
79
|
+
if (Y.value = !0, K.value.$touch(), K.value.$invalid) return T(), !1;
|
|
80
|
+
let e = R.anzuUser.id;
|
|
81
|
+
if (l(e) || u(e)) throw new c(void 0, "[useAnzuUserActions] update called on a record with no id.");
|
|
82
|
+
let { execute: t } = k(), n = _, r = R.anzuUser, i = await t({
|
|
80
83
|
urlParams: { id: e },
|
|
81
|
-
body:
|
|
84
|
+
body: R.anzuUser
|
|
82
85
|
});
|
|
83
|
-
if (
|
|
84
|
-
|
|
85
|
-
let a =
|
|
86
|
-
for (let e of
|
|
87
|
-
return
|
|
86
|
+
if (w("updated"), n !== _ || R.anzuUser !== r) return !0;
|
|
87
|
+
d(R.anzuUser, i);
|
|
88
|
+
let a = R.anzuUser, o = i;
|
|
89
|
+
for (let e of v.updateResponseFields ?? []) u(o[e]) || (a[e] = o[e]);
|
|
90
|
+
return H(), !0;
|
|
88
91
|
} catch (e) {
|
|
89
|
-
return
|
|
92
|
+
return C(e), !1;
|
|
90
93
|
} finally {
|
|
91
|
-
|
|
94
|
+
Y.value = !1;
|
|
92
95
|
}
|
|
93
96
|
},
|
|
94
|
-
loadingCreateAnzuUser:
|
|
95
|
-
loadingUpdateAnzuUser:
|
|
97
|
+
loadingCreateAnzuUser: q,
|
|
98
|
+
loadingUpdateAnzuUser: Y,
|
|
96
99
|
resetAnzuUserStore: (...e) => {
|
|
97
|
-
|
|
100
|
+
_++, R.reset(...e);
|
|
98
101
|
}
|
|
99
102
|
};
|
|
100
103
|
};
|
|
101
|
-
export {
|
|
104
|
+
export { v as useAnzuUserActions };
|
|
102
105
|
|
|
103
106
|
//# sourceMappingURL=anzuUserActions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anzuUserActions.js","names":["useVuelidate","fetchGeneration","useAnzuUserActions","ANZU_USER_ENTITY","ANZU_USER_ENDPOINT","params","useAlerts","useAnzuUserApi","executeList","abortList","useFetchAnzuUserList","anzuUserList","ref","loadingAnzuUserList","datatableHiddenColumns","listGeneration","fetchAnzuUserList","token","items","pagination","filterData","filterConfig","error","showErrorsDefault","cancelAnzuUserList","anzuUserOneStore","useAnzuUserOneStore","storeToRefs","pristine","snapshot","isDirty","computed","anzuUser","fetchAnzuUser","generation","isLatest","useFetchAnzuUser","res","execute","options","nextTick","system","v$","loadingCreateAnzuUser","createAnzuUser","showValidationError","useCreateAnzuUser","created","showRecordWas","loadingUpdateAnzuUser","id","isNull","isUndefined","AnzuFatalError","useUpdateAnzuUser","sent","record","answer","field","args"],"sources":["../../../../src/domains/anzuUser/composables/anzuUserActions.ts"],"sourcesContent":["import { computed, nextTick, ref, type Ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport useVuelidate from '@vuelidate/core'\nimport { useAlerts } from '@/domains/system/composables/alerts'\nimport { handleRecordLoadError } from '@/domains/system/composables/recordPage'\nimport type { AxiosClientFn } from '@/domains/api/utils/client'\nimport type { FilterConfig, FilterData } from '@/domains/filters/composables/filterFactory'\nimport type { Pagination } from '@/domains/api/composables/pagination'\nimport { ANZU_USER_ENDPOINT, ANZU_USER_ENTITY, useAnzuUserApi } from '@/domains/anzuUser/api/anzuUserApi'\nimport { useAnzuUserOneStore } from '@/domains/anzuUser/store/anzuUserStore'\nimport type { AnzuUser } from '@/shared/types/AnzuUser'\nimport type { IntegerId } from '@/shared/types/common'\nimport { AnzuFatalError } from '@/shared/error/AnzuFatalError'\nimport { isNull, isUndefined } from '@/shared/utils/common'\nimport { syncUserAndTimeTracking } from '@/shared/utils/userAndTimeTracking'\n\nexport interface AnzuUserActionsParams {\n client: AxiosClientFn\n system: string\n entity?: string\n /**\n * i18n scope for server-side validation errors, independent of which backend answered.\n * `AnzuApiValidationError` builds `<system>.<entity>.model.<field>` keys, so this pair\n * must name where the labels live. Defaults to `common` + `anzuUser`. An admin whose\n * form adds system fields passes its own pair and keeps the base keys alongside.\n */\n validationSystem?: string\n validationEntity?: string\n endPoint?: string\n /** Vuelidate scope, when the page collects its fields under one of its own. */\n validationScope?: string | symbol\n /**\n * Fields of the update's answer copied into the form besides the tracking: the ones the backend\n * recalculates on save and the form only shows (DAM's `userToExtSystems`, \"User in external systems\").\n * The rest of the form keeps what the user filled in.\n */\n updateResponseFields?: string[]\n}\n\n// The record store is shared by every page and system, and requests are not\n// aborted when a page goes. Only the latest fetch may write or reset the record.\n// A store reset (page teardown, create page mount) also counts as newer.\nlet fetchGeneration = 0\n\n/** Per instance, like the other actions composables. The admins' versions kept loading flags at module scope. */\nexport const useAnzuUserActions = (params: AnzuUserActionsParams) => {\n const { client, system, entity = ANZU_USER_ENTITY, endPoint = ANZU_USER_ENDPOINT } = params\n\n const { showErrorsDefault, showRecordWas, showValidationError } = useAlerts()\n const { useFetchAnzuUserList, useFetchAnzuUser, useCreateAnzuUser, useUpdateAnzuUser } = useAnzuUserApi({\n client,\n system,\n entity,\n validationSystem: params.validationSystem,\n validationEntity: params.validationEntity,\n endPoint,\n })\n\n const { execute: executeList, abort: abortList } = useFetchAnzuUserList()\n\n const anzuUserList = ref<AnzuUser[]>([])\n const loadingAnzuUserList = ref(false)\n const datatableHiddenColumns = ref<Array<string>>([])\n\n let listGeneration = 0\n\n const fetchAnzuUserList = async (\n pagination: Ref<Pagination>,\n filterData: FilterData<any>,\n filterConfig: FilterConfig<any>\n ) => {\n const token = ++listGeneration\n loadingAnzuUserList.value = true\n try {\n const items = await executeList(pagination, filterData, filterConfig)\n if (token !== listGeneration) return\n anzuUserList.value = items\n } catch (error) {\n if (token !== listGeneration) return\n anzuUserList.value = []\n showErrorsDefault(error)\n } finally {\n if (token === listGeneration) loadingAnzuUserList.value = false\n }\n }\n\n const cancelAnzuUserList = () => {\n listGeneration++\n abortList()\n }\n\n const anzuUserOneStore = useAnzuUserOneStore()\n const { anzuUser, loadingAnzuUser } = storeToRefs(anzuUserOneStore)\n\n /**\n * What the server last returned, used to detect edits.\n * It drives the dot on the owning tab and the leave guard. Switching tabs is not\n * navigation, so the form stays dirty and the actual leave happens through a panel button.\n */\n const pristine = ref<string>('')\n const snapshot = () => {\n pristine.value = JSON.stringify(anzuUserOneStore.anzuUser)\n }\n\n const isDirty = computed(() => pristine.value !== '' && pristine.value !== JSON.stringify(anzuUser.value))\n\n /**\n * `true` once loaded, `false` when the page should leave (`handleRecordLoadError`), `undefined`\n * when a newer fetch took over or the request was stopped.\n */\n const fetchAnzuUser = async (id: IntegerId, options: { signal?: AbortSignal } = {}): Promise<boolean | undefined> => {\n const generation = ++fetchGeneration\n const isLatest = () => fetchGeneration === generation\n anzuUserOneStore.setLoadingAnzuUser(true)\n try {\n const { execute } = useFetchAnzuUser()\n const res = await execute({ urlParams: { id }, signal: options.signal })\n if (!isLatest()) return undefined\n anzuUserOneStore.setAnzuUser(res)\n // Snapshot after the form settles. Derived fields recompute in a watcher, and an earlier\n // baseline would mark an account with an empty stored full name as edited on open.\n await nextTick()\n snapshot()\n return true\n } catch (error) {\n // A newer fetch owns the record now, possibly another page's: leave it alone.\n if (!isLatest()) return undefined\n // Not the previous record: Save would PUT it back to its own id from a page opened for another.\n anzuUserOneStore.reset(system)\n pristine.value = ''\n return handleRecordLoadError(error) ? false : undefined\n } finally {\n if (isLatest()) anzuUserOneStore.setLoadingAnzuUser(false)\n }\n }\n\n // Collects what the form's children registered. With a scope it collects\n // only that scope, which lets an app keep its system fields separate.\n const v$ = params.validationScope ? useVuelidate({}, {}, { $scope: params.validationScope }) : useVuelidate()\n\n const loadingCreateAnzuUser = ref(false)\n /**\n * The body is the store's record from the library factory, with `roles: []` and `enabled: false`.\n * A hand-assembled body would make the backend add `ROLE_USER`, a role nobody granted.\n */\n const createAnzuUser = async (): Promise<AnzuUser | null> => {\n try {\n loadingCreateAnzuUser.value = true\n v$.value.$touch()\n if (v$.value.$invalid) {\n showValidationError()\n return null\n }\n const { execute } = useCreateAnzuUser()\n const created = await execute({ body: anzuUserOneStore.anzuUser })\n showRecordWas('created')\n snapshot()\n return created\n } catch (error) {\n showErrorsDefault(error)\n return null\n } finally {\n loadingCreateAnzuUser.value = false\n }\n }\n\n const loadingUpdateAnzuUser = ref(false)\n /**\n * Sends the whole record from the preceding GET with only edited fields changed.\n * An omitted field is destructive. `UserDto` defaults `roles` to `[ROLE_USER]`, `enabled` to `true`\n * and both permission collections to empty, and the manager writes all four. A metadata-only body\n * resets roles, wipes grants, detaches groups and re-enables a disabled account.\n */\n const updateAnzuUser = async (): Promise<boolean> => {\n try {\n loadingUpdateAnzuUser.value = true\n v$.value.$touch()\n if (v$.value.$invalid) {\n showValidationError()\n return false\n }\n const id = anzuUserOneStore.anzuUser.id\n if (isNull(id) || isUndefined(id)) {\n throw new AnzuFatalError(undefined, '[useAnzuUserActions] update called on a record with no id.')\n }\n const { execute } = useUpdateAnzuUser()\n const generation = fetchGeneration\n const sent = anzuUserOneStore.anzuUser\n const res = await execute({\n urlParams: { id },\n body: anzuUserOneStore.anzuUser,\n })\n showRecordWas('updated')\n // The store holds another record: the page was left meanwhile, or a fetch already loading when the save\n // went out has landed. Fetch and reset put a new object in the store, the form edits the one there.\n if (generation !== fetchGeneration || anzuUserOneStore.anzuUser !== sent) return true\n // Before the snapshot: `isDirty` compares the whole record, so a write after it would\n // mark the form as unsaved.\n syncUserAndTimeTracking(anzuUserOneStore.anzuUser, res)\n const record = anzuUserOneStore.anzuUser as unknown as Record<string, unknown>\n const answer = res as unknown as Record<string, unknown>\n for (const field of params.updateResponseFields ?? []) {\n if (!isUndefined(answer[field])) record[field] = answer[field]\n }\n snapshot()\n return true\n } catch (error) {\n showErrorsDefault(error)\n return false\n } finally {\n loadingUpdateAnzuUser.value = false\n }\n }\n\n return {\n isDirty,\n /** Takes the record as it stands as the new baseline; the page calls it after it seeds one. */\n markPristine: snapshot,\n anzuUserList,\n loadingAnzuUserList,\n datatableHiddenColumns,\n fetchAnzuUserList,\n cancelAnzuUserList,\n anzuUser,\n loadingAnzuUser,\n fetchAnzuUser,\n createAnzuUser,\n updateAnzuUser,\n loadingCreateAnzuUser,\n loadingUpdateAnzuUser,\n resetAnzuUserStore: (...args: Parameters<typeof anzuUserOneStore.reset>) => {\n fetchGeneration++\n anzuUserOneStore.reset(...args)\n },\n }\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"anzuUserActions.js","names":["useVuelidate","fetchGeneration","useAnzuUserActions","ANZU_USER_ENTITY","ANZU_USER_ENDPOINT","params","useAlerts","useAnzuUserApi","executeList","abortList","useFetchAnzuUserList","anzuUserList","ref","loadingAnzuUserList","datatableHiddenColumns","listGeneration","fetchAnzuUserList","token","items","pagination","filterData","filterConfig","error","showErrorsDefault","cancelAnzuUserList","anzuUserOneStore","useAnzuUserOneStore","storeToRefs","pristine","snapshot","isDirty","computed","anzuUser","anzuUserNotFound","fetchAnzuUser","generation","isLatest","useFetchAnzuUser","options","USER_PROBE_ENTITY","res","execute","nextTick","system","apiErrorStatus","v$","loadingCreateAnzuUser","createAnzuUser","showValidationError","useCreateAnzuUser","created","showRecordWas","loadingUpdateAnzuUser","id","isNull","isUndefined","AnzuFatalError","useUpdateAnzuUser","sent","record","answer","field","args"],"sources":["../../../../src/domains/anzuUser/composables/anzuUserActions.ts"],"sourcesContent":["import { computed, nextTick, ref, type Ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport useVuelidate from '@vuelidate/core'\nimport { useAlerts } from '@/domains/system/composables/alerts'\nimport { handleRecordLoadError } from '@/domains/system/composables/recordPage'\nimport { apiErrorStatus, USER_PROBE_ENTITY } from '@/domains/api/utils/apiErrors'\nimport { HTTP_STATUS_NOT_FOUND } from '@/shared/statusCodes'\nimport type { AxiosClientFn } from '@/domains/api/utils/client'\nimport type { FilterConfig, FilterData } from '@/domains/filters/composables/filterFactory'\nimport type { Pagination } from '@/domains/api/composables/pagination'\nimport { ANZU_USER_ENDPOINT, ANZU_USER_ENTITY, useAnzuUserApi } from '@/domains/anzuUser/api/anzuUserApi'\nimport { useAnzuUserOneStore } from '@/domains/anzuUser/store/anzuUserStore'\nimport type { AnzuUser } from '@/shared/types/AnzuUser'\nimport type { IntegerId } from '@/shared/types/common'\nimport { AnzuFatalError } from '@/shared/error/AnzuFatalError'\nimport { isNull, isUndefined } from '@/shared/utils/common'\nimport { syncUserAndTimeTracking } from '@/shared/utils/userAndTimeTracking'\n\nexport interface AnzuUserActionsParams {\n client: AxiosClientFn\n system: string\n entity?: string\n /**\n * i18n scope for server-side validation errors, independent of which backend answered.\n * `AnzuApiValidationError` builds `<system>.<entity>.model.<field>` keys, so this pair\n * must name where the labels live. Defaults to `common` + `anzuUser`. An admin whose\n * form adds system fields passes its own pair and keeps the base keys alongside.\n */\n validationSystem?: string\n validationEntity?: string\n endPoint?: string\n /** Vuelidate scope, when the page collects its fields under one of its own. */\n validationScope?: string | symbol\n /**\n * Fields of the update's answer copied into the form besides the tracking: the ones the backend\n * recalculates on save and the form only shows (DAM's `userToExtSystems`, \"User in external systems\").\n * The rest of the form keeps what the user filled in.\n */\n updateResponseFields?: string[]\n}\n\n// The record store is shared by every page and system, and requests are not\n// aborted when a page goes. Only the latest fetch may write or reset the record.\n// A store reset (page teardown, create page mount) also counts as newer.\nlet fetchGeneration = 0\n\n/** Per instance, like the other actions composables. The admins' versions kept loading flags at module scope. */\nexport const useAnzuUserActions = (params: AnzuUserActionsParams) => {\n const { client, system, entity = ANZU_USER_ENTITY, endPoint = ANZU_USER_ENDPOINT } = params\n\n const { showErrorsDefault, showRecordWas, showValidationError } = useAlerts()\n const { useFetchAnzuUserList, useFetchAnzuUser, useCreateAnzuUser, useUpdateAnzuUser } = useAnzuUserApi({\n client,\n system,\n entity,\n validationSystem: params.validationSystem,\n validationEntity: params.validationEntity,\n endPoint,\n })\n\n const { execute: executeList, abort: abortList } = useFetchAnzuUserList()\n\n const anzuUserList = ref<AnzuUser[]>([])\n const loadingAnzuUserList = ref(false)\n const datatableHiddenColumns = ref<Array<string>>([])\n\n let listGeneration = 0\n\n const fetchAnzuUserList = async (\n pagination: Ref<Pagination>,\n filterData: FilterData<any>,\n filterConfig: FilterConfig<any>\n ) => {\n const token = ++listGeneration\n loadingAnzuUserList.value = true\n try {\n const items = await executeList(pagination, filterData, filterConfig)\n if (token !== listGeneration) return\n anzuUserList.value = items\n } catch (error) {\n if (token !== listGeneration) return\n anzuUserList.value = []\n showErrorsDefault(error)\n } finally {\n if (token === listGeneration) loadingAnzuUserList.value = false\n }\n }\n\n const cancelAnzuUserList = () => {\n listGeneration++\n abortList()\n }\n\n const anzuUserOneStore = useAnzuUserOneStore()\n const { anzuUser, loadingAnzuUser } = storeToRefs(anzuUserOneStore)\n\n /** What the server last returned, used to detect edits. It drives the dot on the active tab and the leave guard. */\n const pristine = ref<string>('')\n const snapshot = () => {\n pristine.value = JSON.stringify(anzuUserOneStore.anzuUser)\n }\n\n const isDirty = computed(() => pristine.value !== '' && pristine.value !== JSON.stringify(anzuUser.value))\n\n /** Raised by a fetch with `keepOnNotFound` that found no record: the person has no account in this system. */\n const anzuUserNotFound = ref(false)\n\n /**\n * `true` once loaded, `false` when the page should leave (`handleRecordLoadError`), `undefined`\n * when a newer fetch took over or the request was stopped.\n * With `keepOnNotFound` a 404 shows no alert and returns `undefined`, so the page stays, and raises `anzuUserNotFound`.\n * The read is then named `USER_PROBE_ENTITY`, so the app's error logger skips the 404 as it does a probe's.\n */\n const fetchAnzuUser = async (\n id: IntegerId,\n options: { signal?: AbortSignal; keepOnNotFound?: boolean } = {}\n ): Promise<boolean | undefined> => {\n const generation = ++fetchGeneration\n const isLatest = () => fetchGeneration === generation\n anzuUserOneStore.setLoadingAnzuUser(true)\n try {\n const { execute } = useFetchAnzuUser(options.keepOnNotFound ? USER_PROBE_ENTITY : undefined)\n const res = await execute({ urlParams: { id }, signal: options.signal })\n if (!isLatest()) return undefined\n anzuUserNotFound.value = false\n anzuUserOneStore.setAnzuUser(res)\n // Snapshot after the form settles. Derived fields recompute in a watcher, and an earlier\n // baseline would mark an account with an empty stored full name as edited on open.\n await nextTick()\n snapshot()\n return true\n } catch (error) {\n // A newer fetch owns the record now, possibly another page's: leave it alone.\n if (!isLatest()) return undefined\n // Not the previous record: Save would PUT it back to its own id from a page opened for another.\n anzuUserOneStore.reset(system)\n pristine.value = ''\n anzuUserNotFound.value = options.keepOnNotFound === true && apiErrorStatus(error) === HTTP_STATUS_NOT_FOUND\n if (anzuUserNotFound.value) return undefined\n return handleRecordLoadError(error) ? false : undefined\n } finally {\n if (isLatest()) anzuUserOneStore.setLoadingAnzuUser(false)\n }\n }\n\n // Collects what the form's children registered. With a scope it collects\n // only that scope, which lets an app keep its system fields separate.\n const v$ = params.validationScope ? useVuelidate({}, {}, { $scope: params.validationScope }) : useVuelidate()\n\n const loadingCreateAnzuUser = ref(false)\n /**\n * The body is the store's record from the library factory, with `roles: []` and `enabled: false`.\n * A hand-assembled body would make the backend add `ROLE_USER`, a role nobody granted.\n */\n const createAnzuUser = async (): Promise<AnzuUser | null> => {\n try {\n loadingCreateAnzuUser.value = true\n v$.value.$touch()\n if (v$.value.$invalid) {\n showValidationError()\n return null\n }\n const { execute } = useCreateAnzuUser()\n const created = await execute({ body: anzuUserOneStore.anzuUser })\n showRecordWas('created')\n snapshot()\n return created\n } catch (error) {\n showErrorsDefault(error)\n return null\n } finally {\n loadingCreateAnzuUser.value = false\n }\n }\n\n const loadingUpdateAnzuUser = ref(false)\n /**\n * Sends the whole record from the preceding GET with only edited fields changed.\n * An omitted field is destructive. `UserDto` defaults `roles` to `[ROLE_USER]`, `enabled` to `true`\n * and both permission collections to empty, and the manager writes all four. A metadata-only body\n * resets roles, wipes grants, detaches groups and re-enables a disabled account.\n */\n const updateAnzuUser = async (): Promise<boolean> => {\n try {\n loadingUpdateAnzuUser.value = true\n v$.value.$touch()\n if (v$.value.$invalid) {\n showValidationError()\n return false\n }\n const id = anzuUserOneStore.anzuUser.id\n if (isNull(id) || isUndefined(id)) {\n throw new AnzuFatalError(undefined, '[useAnzuUserActions] update called on a record with no id.')\n }\n const { execute } = useUpdateAnzuUser()\n const generation = fetchGeneration\n const sent = anzuUserOneStore.anzuUser\n const res = await execute({\n urlParams: { id },\n body: anzuUserOneStore.anzuUser,\n })\n showRecordWas('updated')\n // The store holds another record: the page was left meanwhile, or a fetch already loading when the save\n // went out has landed. Fetch and reset put a new object in the store, the form edits the one there.\n if (generation !== fetchGeneration || anzuUserOneStore.anzuUser !== sent) return true\n // Before the snapshot: `isDirty` compares the whole record, so a write after it would\n // mark the form as unsaved.\n syncUserAndTimeTracking(anzuUserOneStore.anzuUser, res)\n const record = anzuUserOneStore.anzuUser as unknown as Record<string, unknown>\n const answer = res as unknown as Record<string, unknown>\n for (const field of params.updateResponseFields ?? []) {\n if (!isUndefined(answer[field])) record[field] = answer[field]\n }\n snapshot()\n return true\n } catch (error) {\n showErrorsDefault(error)\n return false\n } finally {\n loadingUpdateAnzuUser.value = false\n }\n }\n\n return {\n isDirty,\n /** Takes the record as it stands as the new baseline; the page calls it after it seeds one. */\n markPristine: snapshot,\n anzuUserList,\n loadingAnzuUserList,\n datatableHiddenColumns,\n fetchAnzuUserList,\n cancelAnzuUserList,\n anzuUser,\n loadingAnzuUser,\n anzuUserNotFound,\n fetchAnzuUser,\n createAnzuUser,\n updateAnzuUser,\n loadingCreateAnzuUser,\n loadingUpdateAnzuUser,\n resetAnzuUserStore: (...args: Parameters<typeof anzuUserOneStore.reset>) => {\n fetchGeneration++\n anzuUserOneStore.reset(...args)\n },\n }\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import { AnyUserSystemDescriptor } from './userSystemDescriptor';
|
|
3
|
+
import { AnzuUser, BaseUser } from '../../../shared/types/AnzuUser';
|
|
4
|
+
import { IntegerId } from '../../../shared/types/common';
|
|
5
|
+
export interface UseUserCreateFromSourceOptions {
|
|
6
|
+
userId: MaybeRefOrGetter<IntegerId>;
|
|
7
|
+
/**
|
|
8
|
+
* The systems a new account copies from, in order of preference. The first one holding the person is the source.
|
|
9
|
+
* The other-systems page puts the system the operator came from first. A page whose own system has no
|
|
10
|
+
* account for the person passes the admin's other systems.
|
|
11
|
+
*/
|
|
12
|
+
sources: MaybeRefOrGetter<AnyUserSystemDescriptor[]>;
|
|
13
|
+
}
|
|
14
|
+
/** Creates this person's account in another system, copying the source system's record. */
|
|
15
|
+
export declare const useUserCreateFromSource: (options: UseUserCreateFromSourceOptions) => {
|
|
16
|
+
source: import('vue').Ref<{
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
locale: import('../../../lib').LanguageCode | null;
|
|
19
|
+
roles: string[];
|
|
20
|
+
permissionGroups: IntegerId[];
|
|
21
|
+
permissions: import('../../../lib').Permissions;
|
|
22
|
+
resolvedPermissions: import('../../../lib').Permissions;
|
|
23
|
+
_resourceName: string;
|
|
24
|
+
_system: string;
|
|
25
|
+
createdAt: import('../../../shared/types/common').DatetimeUTC;
|
|
26
|
+
modifiedAt: import('../../../shared/types/common').DatetimeUTC;
|
|
27
|
+
modifiedBy: import('../../../shared/types/common').IntegerIdNullable;
|
|
28
|
+
createdBy: import('../../../shared/types/common').IntegerIdNullable;
|
|
29
|
+
id?: import('../../../shared/types/common').IntegerIdNullable | undefined;
|
|
30
|
+
email: string;
|
|
31
|
+
person: {
|
|
32
|
+
firstName: string;
|
|
33
|
+
lastName: string;
|
|
34
|
+
fullName: string;
|
|
35
|
+
};
|
|
36
|
+
avatar: {
|
|
37
|
+
color: string;
|
|
38
|
+
text: string;
|
|
39
|
+
};
|
|
40
|
+
} | null, AnzuUser | {
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
locale: import('../../../lib').LanguageCode | null;
|
|
43
|
+
roles: string[];
|
|
44
|
+
permissionGroups: IntegerId[];
|
|
45
|
+
permissions: import('../../../lib').Permissions;
|
|
46
|
+
resolvedPermissions: import('../../../lib').Permissions;
|
|
47
|
+
_resourceName: string;
|
|
48
|
+
_system: string;
|
|
49
|
+
createdAt: import('../../../shared/types/common').DatetimeUTC;
|
|
50
|
+
modifiedAt: import('../../../shared/types/common').DatetimeUTC;
|
|
51
|
+
modifiedBy: import('../../../shared/types/common').IntegerIdNullable;
|
|
52
|
+
createdBy: import('../../../shared/types/common').IntegerIdNullable;
|
|
53
|
+
id?: import('../../../shared/types/common').IntegerIdNullable | undefined;
|
|
54
|
+
email: string;
|
|
55
|
+
person: {
|
|
56
|
+
firstName: string;
|
|
57
|
+
lastName: string;
|
|
58
|
+
fullName: string;
|
|
59
|
+
};
|
|
60
|
+
avatar: {
|
|
61
|
+
color: string;
|
|
62
|
+
text: string;
|
|
63
|
+
};
|
|
64
|
+
} | null>;
|
|
65
|
+
sourceDescriptor: import('vue').ShallowRef<AnyUserSystemDescriptor | null, AnyUserSystemDescriptor | null>;
|
|
66
|
+
createEnabled: import('vue').ComputedRef<boolean>;
|
|
67
|
+
creatingSystem: import('vue').Ref<string | null, string | null>;
|
|
68
|
+
loadSource: () => Promise<void>;
|
|
69
|
+
create: (target: AnyUserSystemDescriptor, metadata: BaseUser) => Promise<boolean>;
|
|
70
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { useAlerts as e } from "../../system/composables/alerts.js";
|
|
2
|
+
import { useAnzuUserFactory as t } from "../factory/AnzuUserFactory.js";
|
|
3
|
+
import { BulkOutcome as n } from "../store/userCrossSystemStore.js";
|
|
4
|
+
import { useUserCrossSystemWrites as r } from "./userCrossSystemWrites.js";
|
|
5
|
+
import { descriptorMayWrite as i } from "./userSystemDescriptor.js";
|
|
6
|
+
import { cloneDeep as a, isNull as o } from "../../../shared/utils/common.js";
|
|
7
|
+
import { computed as s, ref as c, shallowRef as l, toValue as u } from "vue";
|
|
8
|
+
import { useI18n as d } from "vue-i18n";
|
|
9
|
+
// src/domains/anzuUser/composables/userCreateFromSource.ts
|
|
10
|
+
var f = (f) => {
|
|
11
|
+
let { t: p } = d(), m = r(), { createAnzuUser: h } = t(), { showError: g, showRecordWas: _ } = e(), v = c(null), y = l(null), b = c(null), x = s(() => v.value?.enabled === !0), S = (e) => e.label ?? e.system, C = async () => {
|
|
12
|
+
let e = u(f.userId);
|
|
13
|
+
for (let t of u(f.sources)) {
|
|
14
|
+
if (!t.isEnabled()) continue;
|
|
15
|
+
let n = await m.readSourceUser(t, e);
|
|
16
|
+
if (!o(n)) return {
|
|
17
|
+
descriptor: t,
|
|
18
|
+
user: n
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}, w = 0, T = async () => {
|
|
23
|
+
let e = ++w, t = await C();
|
|
24
|
+
e === w && (v.value = t?.user ?? null, y.value = t?.descriptor ?? null);
|
|
25
|
+
}, E = async () => {
|
|
26
|
+
let e = y.value;
|
|
27
|
+
if (o(e)) return C();
|
|
28
|
+
let t = await m.readSourceUser(e, u(f.userId));
|
|
29
|
+
return o(t) ? null : {
|
|
30
|
+
descriptor: e,
|
|
31
|
+
user: t
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
source: v,
|
|
36
|
+
sourceDescriptor: y,
|
|
37
|
+
createEnabled: x,
|
|
38
|
+
creatingSystem: b,
|
|
39
|
+
loadSource: T,
|
|
40
|
+
create: async (e, t) => {
|
|
41
|
+
b.value = e.system;
|
|
42
|
+
try {
|
|
43
|
+
let r = await E();
|
|
44
|
+
if (o(r)) {
|
|
45
|
+
let e = o(y.value) ? u(f.sources).filter((e) => e.isEnabled()) : [y.value];
|
|
46
|
+
return g(p("common.userSystem.create.sourceUnreadable", { system: e.map(S).join(", ") })), !1;
|
|
47
|
+
}
|
|
48
|
+
if (r.user.enabled !== x.value) return v.value = r.user, y.value = r.descriptor, g(p("common.userSystem.create.sourceChanged")), !1;
|
|
49
|
+
if (!i(e, "create")) return !1;
|
|
50
|
+
let s = h(e.system);
|
|
51
|
+
s.id = r.user.id, s.email = t.email, s.person = a(t.person), s.avatar = a(t.avatar), s.enabled = r.user.enabled;
|
|
52
|
+
let c = await m.createInSystem(e, s);
|
|
53
|
+
return c.outcome === n.Done ? (_("created"), !0) : (g(S(e) + ": " + p("common.userSystem.bulk.outcome." + c.outcome)), !1);
|
|
54
|
+
} finally {
|
|
55
|
+
b.value = null;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export { f as useUserCreateFromSource };
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=userCreateFromSource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userCreateFromSource.js","names":["useUserCreateFromSource","useI18n","writes","useUserCrossSystemWrites","useAnzuUserFactory","useAlerts","source","ref","sourceDescriptor","shallowRef","creatingSystem","createEnabled","computed","labelOf","descriptor","findSource","id","toValue","options","user","isNull","generation","loadSource","token","found","readAgain","known","target","tried","showError","t","descriptorMayWrite","body","createAnzuUser","metadata","cloneDeep","result","BulkOutcome","showRecordWas"],"sources":["../../../../src/domains/anzuUser/composables/userCreateFromSource.ts"],"sourcesContent":["import { computed, ref, shallowRef, toValue, type MaybeRefOrGetter } from 'vue'\nimport { useI18n } from 'vue-i18n'\nimport { useAlerts } from '@/domains/system/composables/alerts'\nimport { useAnzuUserFactory } from '@/domains/anzuUser/factory/AnzuUserFactory'\nimport { BulkOutcome } from '@/domains/anzuUser/store/userCrossSystemStore'\nimport { useUserCrossSystemWrites } from '@/domains/anzuUser/composables/userCrossSystemWrites'\nimport { type AnyUserSystemDescriptor, descriptorMayWrite } from '@/domains/anzuUser/composables/userSystemDescriptor'\nimport type { AnzuUser, BaseUser } from '@/shared/types/AnzuUser'\nimport type { IntegerId } from '@/shared/types/common'\nimport { cloneDeep, isNull } from '@/shared/utils/common'\n\nexport interface UseUserCreateFromSourceOptions {\n userId: MaybeRefOrGetter<IntegerId>\n /**\n * The systems a new account copies from, in order of preference. The first one holding the person is the source.\n * The other-systems page puts the system the operator came from first. A page whose own system has no\n * account for the person passes the admin's other systems.\n */\n sources: MaybeRefOrGetter<AnyUserSystemDescriptor[]>\n}\n\ninterface FoundSource {\n descriptor: AnyUserSystemDescriptor\n user: AnzuUser\n}\n\n/** Creates this person's account in another system, copying the source system's record. */\nexport const useUserCreateFromSource = (options: UseUserCreateFromSourceOptions) => {\n const { t } = useI18n()\n const writes = useUserCrossSystemWrites()\n const { createAnzuUser } = useAnzuUserFactory()\n const { showError, showRecordWas } = useAlerts()\n\n /**\n * The source record as the server holds it, not as a form does.\n * Read again before each POST. An unsaved switch in a form must not be copied,\n * because in blog and forum it would mean a working public account.\n */\n const source = ref<AnzuUser | null>(null)\n const sourceDescriptor = shallowRef<AnyUserSystemDescriptor | null>(null)\n const creatingSystem = ref<string | null>(null)\n\n /** Copying a person into another system copies whether they are switched on. Roles stay empty. */\n const createEnabled = computed(() => source.value?.enabled === true)\n\n const labelOf = (descriptor: AnyUserSystemDescriptor) => descriptor.label ?? descriptor.system\n\n const findSource = async (): Promise<FoundSource | null> => {\n const id = toValue(options.userId)\n for (const descriptor of toValue(options.sources)) {\n if (!descriptor.isEnabled()) continue\n const user = await writes.readSourceUser(descriptor, id)\n if (!isNull(user)) return { descriptor, user }\n }\n return null\n }\n\n let generation = 0\n\n const loadSource = async () => {\n const token = ++generation\n const found = await findSource()\n if (token !== generation) return\n source.value = found?.user ?? null\n sourceDescriptor.value = found?.descriptor ?? null\n }\n\n const readAgain = async (): Promise<FoundSource | null> => {\n const known = sourceDescriptor.value\n if (isNull(known)) return findSource()\n const user = await writes.readSourceUser(known, toValue(options.userId))\n return isNull(user) ? null : { descriptor: known, user }\n }\n\n /** Resolves whether the account was created. Every failure is reported here. */\n const create = async (target: AnyUserSystemDescriptor, metadata: BaseUser): Promise<boolean> => {\n creatingSystem.value = target.system\n try {\n const found = await readAgain()\n if (isNull(found)) {\n const tried = isNull(sourceDescriptor.value)\n ? toValue(options.sources).filter((descriptor) => descriptor.isEnabled())\n : [sourceDescriptor.value]\n showError(t('common.userSystem.create.sourceUnreadable', { system: tried.map(labelOf).join(', ') }))\n return false\n }\n // The dialog already promised \"created ready to use\" or \"created switched off\" from the earlier read. If the\n // server now disagrees, the promise was wrong, and in blog and forum that means a working public account.\n // Usually the first read failed, leaving `source` null and the dialog saying \"disabled\"\n // for an enabled account. Nothing is written until the corrected row is confirmed again.\n if (found.user.enabled !== createEnabled.value) {\n source.value = found.user\n sourceDescriptor.value = found.descriptor\n showError(t('common.userSystem.create.sourceChanged'))\n return false\n }\n // The create right may have been lost while the source was read. Nothing is offered then, so nothing is reported.\n if (!descriptorMayWrite(target, 'create')) return false\n // Built by the library factory, never by hand. A body of base fields\n // alone makes the backend add `ROLE_USER`, a role nobody granted.\n // Metadata comes from the dialog, validated against the target's profile. The source may leave fields empty\n // (blog never fills `person`) that the target requires. The id and `enabled` come from the fresh read.\n const body = createAnzuUser(target.system)\n body.id = found.user.id\n body.email = metadata.email\n body.person = cloneDeep(metadata.person)\n body.avatar = cloneDeep(metadata.avatar)\n body.enabled = found.user.enabled\n const result = await writes.createInSystem(target, body)\n if (result.outcome !== BulkOutcome.Done) {\n // Without this message the failure looked like success: the\n // re-probed row still said \"absent\" with no explanation.\n showError(labelOf(target) + ': ' + t('common.userSystem.bulk.outcome.' + result.outcome))\n return false\n }\n showRecordWas('created')\n return true\n } finally {\n creatingSystem.value = null\n }\n }\n\n return {\n source,\n sourceDescriptor,\n createEnabled,\n creatingSystem,\n loadSource,\n create,\n }\n}\n"],"mappings":";;;;;;;;;AA2BA,IAAaA,KAA2B,MAA4C;CAClF,IAAM,EAAE,SAAMC,EAAQ,GAChBC,IAASC,EAAyB,GAClC,EAAE,sBAAmBC,EAAmB,GACxC,EAAE,cAAW,qBAAkBC,EAAU,GAOzCC,IAASC,EAAqB,IAAI,GAClCC,IAAmBC,EAA2C,IAAI,GAClEC,IAAiBH,EAAmB,IAAI,GAGxCI,IAAgBC,QAAeN,EAAO,OAAO,YAAY,EAAI,GAE7DO,KAAW,MAAwCC,EAAW,SAASA,EAAW,QAElFC,IAAa,YAAyC;EAC1D,IAAMC,IAAKC,EAAQC,EAAQ,MAAM;EACjC,KAAK,IAAMJ,KAAcG,EAAQC,EAAQ,OAAO,GAAG;GACjD,IAAI,CAACJ,EAAW,UAAU,GAAG;GAC7B,IAAMK,IAAO,MAAMjB,EAAO,eAAeY,GAAYE,CAAE;GACvD,IAAI,CAACI,EAAOD,CAAI,GAAG,OAAO;IAAE;IAAY;GAAK;EAC/C;EACA,OAAO;CACT,GAEIE,IAAa,GAEXC,IAAa,YAAY;EAC7B,IAAMC,IAAQ,EAAEF,GACVG,IAAQ,MAAMT,EAAW;EAC/B,AAAIQ,MAAUF,MACd,EAAO,QAAQG,GAAO,QAAQ,MAC9B,EAAiB,QAAQA,GAAO,cAAc;CAChD,GAEMC,IAAY,YAAyC;EACzD,IAAMC,IAAQlB,EAAiB;EAC/B,IAAIY,EAAOM,CAAK,GAAG,OAAOX,EAAW;EACrC,IAAMI,IAAO,MAAMjB,EAAO,eAAewB,GAAOT,EAAQC,EAAQ,MAAM,CAAC;EACvE,OAAOE,EAAOD,CAAI,IAAI,OAAO;GAAE,YAAYO;GAAO;EAAK;CACzD;CAkDA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA,eArDoB,GAAiC,MAAyC;GAC9F,EAAe,QAAQC,EAAO;GAC9B,IAAI;IACF,IAAMH,IAAQ,MAAMC,EAAU;IAC9B,IAAIL,EAAOI,CAAK,GAAG;KACjB,IAAMI,IAAQR,EAAOZ,EAAiB,KAAK,IACvCS,EAAQC,EAAQ,OAAO,CAAC,CAAC,QAAQ,MAAeJ,EAAW,UAAU,CAAC,IACtE,CAACN,EAAiB,KAAK;KAE3B,OADAqB,EAAUC,EAAE,6CAA6C,EAAE,QAAQF,EAAM,IAAIf,CAAO,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAC5F;IACT;IAKA,IAAIW,EAAM,KAAK,YAAYb,EAAc,OAIvC,OAHA,EAAO,QAAQa,EAAM,MACrB,EAAiB,QAAQA,EAAM,YAC/BK,EAAUC,EAAE,wCAAwC,CAAC,GAC9C;IAGT,IAAI,CAACC,EAAmBJ,GAAQ,QAAQ,GAAG,OAAO;IAKlD,IAAMK,IAAOC,EAAeN,EAAO,MAAM;IAKzC,AAJA,EAAK,KAAKH,EAAM,KAAK,IACrB,EAAK,QAAQU,EAAS,OACtB,EAAK,SAASC,EAAUD,EAAS,MAAM,GACvC,EAAK,SAASC,EAAUD,EAAS,MAAM,GACvC,EAAK,UAAUV,EAAM,KAAK;IAC1B,IAAMY,IAAS,MAAMlC,EAAO,eAAeyB,GAAQK,CAAI;IAQvD,OAPII,EAAO,YAAYC,EAAY,QAMnCC,EAAc,SAAS,GAChB,OAJLT,EAAUhB,EAAQc,CAAM,IAAI,OAAOG,EAAE,oCAAoCM,EAAO,OAAO,CAAC,GACjF;GAIX,UAAU;IACR,EAAe,QAAQ;GACzB;EACF;CASA;AACF"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
1
2
|
/**
|
|
2
3
|
* The one tab that is not a system.
|
|
3
|
-
* Its own module because `<script setup>` cannot export, and both the shell and the pages
|
|
4
|
+
* Its own module because `<script setup>` cannot export, and both the shell and the pages naming the active tab need it.
|
|
4
5
|
*/
|
|
5
6
|
export declare const OTHER_SYSTEMS_TAB = "__otherSystems";
|
|
7
|
+
/** A tab of `AUserTabsShell`: a system this admin manages and the address of its user page here. */
|
|
8
|
+
export interface UserSystemTab {
|
|
9
|
+
system: string;
|
|
10
|
+
to: RouteLocationRaw;
|
|
11
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userTabs.js","names":["OTHER_SYSTEMS_TAB"],"sources":["../../../../src/domains/anzuUser/utils/userTabs.ts"],"sourcesContent":["/**\n * The one tab that is not a system.\n * Its own module because `<script setup>` cannot export, and both the shell and the pages
|
|
1
|
+
{"version":3,"file":"userTabs.js","names":["OTHER_SYSTEMS_TAB"],"sources":["../../../../src/domains/anzuUser/utils/userTabs.ts"],"sourcesContent":["import type { RouteLocationRaw } from 'vue-router'\n\n/**\n * The one tab that is not a system.\n * Its own module because `<script setup>` cannot export, and both the shell and the pages naming the active tab need it.\n */\nexport const OTHER_SYSTEMS_TAB = '__otherSystems'\n\n/** A tab of `AUserTabsShell`: a system this admin manages and the address of its user page here. */\nexport interface UserSystemTab {\n system: string\n to: RouteLocationRaw\n}\n"],"mappings":";AAMA,IAAaA,IAAoB"}
|
package/dist/lib.d.ts
CHANGED
|
@@ -298,10 +298,13 @@ import { default as AUserCopyPermissionsDialog } from './domains/anzuUser/compon
|
|
|
298
298
|
import { useAnzuUserActions, AnzuUserActionsParams } from './domains/anzuUser/composables/anzuUserActions';
|
|
299
299
|
import { defineUserSystemDescriptor, descriptorMayWrite, resolveCreateEndpoint, resolveEnabledWrite, resolveMetadataWrite, resolveProbeEndpoint, AnyUserSystemDescriptor, AnzuUserEndpointPair, BaseUserEndpointPair, UserSystemDescriptor, UserSystemEndpoints, UserSystemExtraState, UserSystemManageTarget, UserSystemWriteAction } from './domains/anzuUser/composables/userSystemDescriptor';
|
|
300
300
|
import { default as AUserTabsShell } from './domains/anzuUser/components/AUserTabsShell.vue';
|
|
301
|
-
import {
|
|
301
|
+
import { default as AUserOtherSystemsTable } from './domains/anzuUser/components/AUserOtherSystemsTable.vue';
|
|
302
|
+
import { default as AUserMissingAccount } from './domains/anzuUser/components/AUserMissingAccount.vue';
|
|
303
|
+
import { OTHER_SYSTEMS_TAB, UserSystemTab } from './domains/anzuUser/utils/userTabs';
|
|
304
|
+
import { useUserCreateFromSource, UseUserCreateFromSourceOptions } from './domains/anzuUser/composables/userCreateFromSource';
|
|
302
305
|
import { USER_PROBE_ENTITY, UserSystemRefreshHook } from './domains/anzuUser/composables/userSystemProbe';
|
|
303
306
|
import { default as AUserSystemOverview } from './domains/anzuUser/components/AUserSystemOverview.vue';
|
|
304
|
-
export { ACard, AProgress, ARow, AChipNoLink, AAlerts, AActionbar, AActionbarTarget, ALayoutLoader, ALayoutSwitch, actionbarSlot, createTeleportSlot, type TeleportSlot, ABooleanValue, ASystemEntityScope, AFormTextField, AFormTextarea, AFormDatetimePicker, AFormFlagDatetimePicker, AFormRemoteCheckbox, AFormRemoteSwitch, AFormSwitch, AFormValueObjectOptionsSelect, ADatetime, ADatetimePicker, ADatatableConfigButton, ADialogToolbar, ACreateDialog, AJobStatusChip, ACachedChip, ACachedUserChip, AAdminSwitcher, ATimeTrackingFields, Acl, ACopyText, AIconGroup, AUserAndTimeTrackingFields, AActionCloseButtonHistory, AActionCreateButton, AActionDeleteButton, AActionEditButton, AActionSaveButton, ATableCopyIdButton, ATableDetailButton, ATableEditButton, ABtnSplit, AThemeSelect, ALanguageSelect, ASystemBar, AAnzuUserAvatar, AAvatarColorPicker, ACurrentUserDropdown, AJobDetailCommon, AJobPriorityChip, AJobBaseCreateForm, ACustomDataForm, ACustomDataFormElement, AImageWidget, AImageWidgetInner, AImageMediaWidget, AImageWidgetSimple, AMediaWidgetSimple, AImageWidgetMultiple, AImageWidgetMultipleInner, AImageWidgetMultipleSimple, AImageMassOperations, AImagePublicInput, ADamAssetImageRoiSelect, ACollabLockedByUser, ACollabManagement, AFileInput, AAssetSelect, AAssetListInner, ABooleanSelect, ADamExtSystemRemoteAutocomplete, ADamExternalProviderAssetSelect, ADamDistributionServiceSelect, ADamAssetLicenceRemoteAutocomplete, ADamAssetListViewRemoteAutocomplete, ADamAssetLicenceGroupRemoteAutocomplete, ADamAuthorFilterRemoteAutocomplete, ADamKeywordFilterRemoteAutocomplete, ADamUserFilterRemoteAutocomplete, ADamUserRemoteAutocomplete, ADamAdminAssetLink, ALoginView, ALogoutView, AUnauthorizedView, ANotFoundView, AGenericView, useRouteHistory, type NavigateBackOptions, type NavigateBackTarget, type RouteHistoryEntry, handleRecordLoadError, useRecordPage, type UseRecordPageOptions, type UseRecordPageReturn, defineRecordLoader, defineRecordSave, trackNavigation, isNavigationPending, usePageNavigation, type UsePageNavigationReturn, createNavigationErrorHandler, type NavigationErrorHandlerOptions, useRemainingTime, useAlerts, useTheme, defineCached, useCachedItem, Theme, type ThemeType, useLanguageSettings, modifyLanguageSettings, useLoginStatus, generateDatatableMinMaxSelectStrategy, useCustomDataFormElementType, useDamConfigState, useUploadQueueItemFactory, useDamUploadChunkSize, useDamAcceptTypeAndSizeHelper, useAssetSuggestions, destroyDamNotifications, initDamNotifications, useDamNotifications, useDamNotificationsConnection, createUploadSettlement, uploadSettlementRuntime, UPLOAD_POLL_SCHEDULE, useDropzoneGlobalDragState, useDamKeywordFactory, useDamAuthorFactory, useDamAuthorType, useDamDistributionServiceType, useDamAssetLicenceInnerFilter, useImageActions, useCommonAdminImageOptions, defineAuth, useAclAllowed, AuthUnavailableError, type AuthCookieState, createRefreshRequestInterceptor, createRefreshSession, isInCauseChain, type RefreshResult, SessionExpiredError, defineBreadcrumbs, useDamCachedUsers, useDamCachedAssetLicences, useUnreleasedFeatures, useDebugFeatures, useSentry, useUserActivity, type GrantType, Grant, useGrant, type GrantOriginType, GrantOrigin, GrantOriginDefault, useGrantOrigin, LogLevel, type LogLevelType, type IntegerId, type IntegerIdNullable, type DocId, type DocIdNullable, type DatetimeUTCNullable, type DatetimeUTC, type DateUTC, type DatetimePickerType, type AnzuUser, type BaseUser, type AnzuUserMinimal, type AnzuUserAndTimeTrackingAware, type ValueObjectOption, type CreatedByAware, type PermissionConfig, type PermissionTranslationGroup, type PermissionGroup, type PermissionGroupMinimal, type VuetifyIconValue, type JobBase, type JobUserDataDelete, JOB_RESOURCE_USER_DATA_DELETE, JobStatus, JobStatusDefault, type JobStatusType, type JobBaseResource, useCommonJobFactory, type AclValue, type AclRegistry, type AclValueOf, type RegisteredAclValue, type Permissions, type PluginOptions, type CommonAdminImageOptions, type CommonAdminCoreDamOptions, type CommonAdminCollabOptions, type LanguageCode, type Immutable, type ResourceNameSystemAware, type ValidationScope, type AFormFieldValidation, type CommonAdminGlobalComponents, type ACreateDialogValidation, type Log, type ApiInfiniteResponseList, type DatatableOrderingOption, type DatatableOrderingOptions, type DatatableSortBy, type SortOrderType, type ObjectLeaves, type UniqueValues, ensureUniqueValues, type CachedItem, type AddToCachedArgs, type CachedUnresolvedReason, type DefineCachedOptions, type RecordWasType, type UrlParams, type AssetSelectReturnData, AssetSelectReturnType, type AssetSelectReturnTypeType, type SortableItemDataAware, type AssetFileProperties, type AssetSearchListItemDto, type AssetDetailItemDto, type AssetMetadataDto, type AssetCustomData, type AssetMetadataSuggestions, AssetFileFailReason, type AssetFileFailReasonType, AssetFileProcessStatus, type AssetFileProcessStatusType, AssetFileLinkType, type AssetFileLinkTypeType, type AssetFile, type AssetFileDocument, type AssetFileVideo, type AssetFileAudio, type AssetFileImage, type AssetFileNullable, type AssetFileLink, type AssetFileLinks, type AssetFileRoute, AssetFileRouteStatus, type AssetFileRouteStatusType, type AssetFileMainRouteAware, type AssetFileDownloadLink, type AssetFileImagePreviewNullable, assetFileIsImageFile, assetFileIsVideoFile, assetFileIsAudioFile, type UploadQueue, type UploadQueueItem, UploadQueueItemStatus, type UploadQueueItemStatusType, UploadQueueItemType, type UploadQueueItemTypeType, type CustomDataAware, type CustomDataValue, type CustomDataFormElement, type CustomDataFormElementAttributes, CustomDataFormElementType, CustomDataFormElementTypeDefault, type CustomDataFormElementTypeType, DamAssetType, DamAssetTypeDefault, type DamAssetTypeType, DamAssetStatus, DamAssetStatusDefault, type DamAssetStatusType, type DamPubConfig, type DamPrvConfig, type DamExtSystemConfig, type DamDistributionServiceName, type DamExtSystemConfigItem, type DamExtSystemConfigItemImage, type DamExternalProviderAssetConfig, type DamExternalProviderAssetName, type DamDistributionConfig, type DamDistributionRequirementsConfig, DamDistributionRequirementStrategy, type DamDistributionRequirementStrategyType, type DamDistributionRequirementsCategorySelectConfig, type DamExtSystemAssetTypeExifMetadata, DamDistributionServiceType, type DamDistributionServiceTypeType, DamDistributionStatus, type DamDistributionStatusType, UserAuthType, type UserAuthTypeType, type DamUploadStartResponse, type DamNotificationNameType, DamNotificationName, type DamNotificationListenerOptions, UploadRowRole, type UploadRowRoleType, type UploadSettlement, type UploadSettlementProfile, type UploadSettlementEvent, type UploadSettlementTarget, type UploadSettlePolicy, type UploadRefreshOutcome, type UploadReadOptions, type UploadSettlementScheduler, type UploadSettlementVisibility, type ImageAware, type ImageCreateUpdateAware, type ImageCreateUpdateAwareKeyed, type UploadMetadataToImageMapFn, type UploadMetadataToImageMapItem, type AssetSelectMetadataToImageMapFn, isImageCreateUpdateAware, type ImageMediaCollabValue, type MediaAware, isMediaAware, type DamMediaFromDam, type DamMedia, DamMediaType, type DamMediaTypeType, type DamAuthor, type DamAuthorMinimal, type DamKeyword, type DamKeywordMinimal, DamAuthorType, type DamAuthorTypeType, type DamExtSystem, type DamExtSystemMinimal, type DamCurrentUserDto, type DamAssetLicence, type DamAssetLicenceCached, type DamAssetLicenceExtended, type DamAssetLicenceMinimal, type DamAssetLicenceSelectFields, type DamAssetListViewMinimal, type DamAssetListViewResolved, type DamAssetLicenceGroup, type DamUserUpdateDto, type DamUser, type BreadcrumbItem, type Breadcrumbs, type UploadQueueKey, type DamConfigLicenceExtSystemReturnType, useAnzuUserFactory, usePermissionConfigFactory, usePermissionGroupFactory, cloneDeep, isEmpty, isEmptyObject, isObject, isArray, isFunction, isBoolean, isDocId, isNull, isUndefined, isDefined, isInt, isString, isNumber, objectGetValueByPath, objectSetValueByPath, objectDeletePropertyByPath, objectDeepFreeze, stringToInt, stringToFloat, stringToSlug, stringSplitOnFirstOccurrence, stringToKebabCase, stringIsValidEmail, stringToBooleanExact, DATETIME_MIN, DATETIME_MAX, dateTimeEndOfDay, dateTimeStartOfDay, dateTimeNow, dateTimeFriendly, dateTimePretty, dateModifyMinutes, dateToUtc, dateNow, dateTimeToDate, datePretty, dateUtcPretty, dateUtcToday, timePretty, dateDiff, type DateDiffUnit, prettyBytes, prettyDuration, booleanToInteger, arrayItemToggle, arrayFromArgs, arrayFlatten, type NestedArray, arraysHaveSameElements, browserHistoryReplaceUrlByRouter, eventClickBlur, generateUUIDv1, generateUUIDv4, isOneOf, useJobBaseResource, useJobStatus, fetchDamAssetLicenceListByIds, fetchDamAssetListViewListByIds, useFetchDamAssetLicenceList, fetchDamAssetLicenceGroupListByIds, fetchDamExtSystemListByIds, fetchDamUserListByIds, useFetchDamUserList, updateDamUser, fetchDamUser, fetchAssetAndCheckForSingleUseByFileIds, fetchAsset, fetchAssetAsCmsMedia, fetchAssetByFileId, type IdsGroupedByLicences, messagesCs, messagesEn, messagesSk, SystemScopeKey, SubjectScopeKey, HTTP_STATUS_OK, HTTP_STATUS_CREATED, HTTP_STATUS_NO_CONTENT, HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_UNAUTHORIZED, HTTP_STATUS_FORBIDDEN, HTTP_STATUS_NOT_FOUND, HTTP_STATUS_UNPROCESSABLE_ENTITY, ROLE_SUPER_ADMIN, NEW_LINE_MARK, COMMON_CONFIG, SORT_BY_SCORE, SORT_BY_SCORE_BEST, SORT_BY_SCORE_DATE, SORT_BY_ID, SortOrder, ImageWidgetUploadConfigKey, useValidate, useCollabInit, useCommonAdminCollabOptions, useCollabCurrentUserId, useCollabState, useCollabField, useCollabRoom, useCollabHelpers, useCollabAnyDataChange, type CollabGatheringBufferDataEvent, useCollabReconnectEventBus, useCollabGatheringBufferDataEventBus, CollabFieldLockType, type CollabFieldLockTypeType, CollabFieldLockStatus, type CollabFieldLockStatusType, type CollabFieldLockStatusPayload, type CollabUserId, type CollabUserIdNullable, type CollabRoom, CollabStatus, type CollabStatusType, CollabConnectionState, type CollabConnectionStateType, CollabReconnectVerdict, type CollabReconnectVerdictType, type CollabRoomInfo, type CollabRoomsInfo, type CollabFieldDataEnvelope, type CollabFieldData, type CollabFieldName, type CollabFieldLock, type CollabRoomLocks, type CollabRoomData, type CollabRoomPlainData, CollabAccessRoomStatus, type CollabAccessRoomStatusType, CollabChangeRoomLockStatus, type CollabChangeRoomLockStatusType, type CollabFieldLockOptions, CollabRoomJoinStrategy, type CollabRoomJoinStrategyType, type CollabJoinAckOptions, type CollabRoomOptions, CollabRequestToTakeModerationStatus, type CollabRequestToTakeModerationStatusType, CollabRequestToJoinStatus, type CollabRequestToJoinStatusType, type CollabCachedUsersMap, type CollabComponentConfig, COLLAB_FIELD_PREFIX_COMMENT, COLLAB_FIELD_PREFIX_EMBED, useDamConfigStore, useDamConfigStoreOf, type DamConfigStore, useImageStore, type CommonAdminI18n, slovakPluralizationRule, isAnzuApiForbiddenError, axiosErrorResponseIsForbidden, AnzuApiForbiddenError, isAnzuApiResponseCodeError, AnzuApiResponseCodeError, isAnzuApiForbiddenOperationError, axiosErrorResponseHasForbiddenOperationData, AnzuApiForbiddenOperationError, isAnzuApiValidationError, hasAnzuApiValidationErrorSpecific, axiosErrorResponseHasValidationData, AnzuApiValidationError, isAnzuFatalError, AnzuFatalError, isAnzuApiTimeoutError, AnzuApiTimeoutError, AnzuApiCancelledError, isAnzuApiCancelledError, AnzuError, isAnzuError, isAnzuApiAxiosError, AnzuApiAxiosError, type ValidationError, type AnzuApiValidationResponseData, isAnzuApiDependencyExistsError, axiosErrorResponseHasDependencyExistsData, AnzuApiDependencyExistsError, AnzuSystemsCommonAdmin, useCommonVuetifyConfig, createAnzuVuetify, type CreateAnzuVuetifyOptions, loadCommonFonts, getAssetTypeByMimeType, damFileTypeFix, localTimeShiftInSeconds, useSystemBar, AFilterWrapper, AFilterWrapperSidebar, AFilterWrapperSubjectSelect, AFiltersSelected, AFilterBooleanSelect, AFilterInteger, AFilterRemoteAutocomplete, AFilterString, AFilterTimeInterval, AFilterValueObjectOptionsSelect, FilterConfigKey, FilterDataKey, FilterInnerConfigKey, FilterInnerDataKey, ADatatableOrdering, ADatatablePagination, DatatablePaginationKey, AFormRemoteAutocomplete, createFilterRemoteAutocomplete, createRemoteAutocomplete, type CreateRemoteAutocompleteOptions, type RemoteAutocompleteScope, type FilterRemoteAutocompleteComponent, type FilterRemoteAutocompleteProps, type RemoteAutocompleteComponent, type RemoteAutocompleteProps, type RemoteInnerFilter, type RemoteSelectActions, AFormRemoteAutocompleteWithCached, buildFilterHash, createFilter, createFilterStore, isRouterSafeHash, useFilterHelpers, useDatatableList, type FilterHelpersMoreOptions, type FilterConfig, type FilterData, type FilterStoreIdentifier, type MakeFilterOption, type AllowedFilterValues, type FilterField, type FilterType, type FilterVariant, TimeIntervalSpecialOptions, type TimeIntervalToolsValue, type TimeIntervalSpecialOptionsType, type Pagination, useApiFetchByIds, useApiFetchItems, useApiFetchList, useApiCommand, useApiRequest, defineApiClient, startWithEnvConfig, checkForNewVersion, requestAppReload, RELOAD_VETO_GRACE, skipUrlPrefixes, type ApiClientSetup, type ApiClientRequestInterceptor, type ApiClientResponseInterceptor, type UseApiRequestParams, type ExecuteRequestParams, type UseApiRequestReturnType, type UseApiFetchListParams, type FetchListParams, type UseApiFetchListReturnType, type UseApiFetchByIdsParams, type FetchByIdsParams, type UseApiFetchByIdsReturnType, type UseApiFetchItemsParams, type FetchItemsParams, type ItemsShape, type UseApiFetchItemsReturnType, type UseApiFetchListBatchParams, type FetchListBatchParams, type UseApiFetchListBatchReturnType, defaultApiErrorLogger, apiErrorStatus, apiErrorIsReported, setApiErrorLogger, type ApiErrorContext, type ApiErrorLogger, useApiFetchListBatch, useApiQueryBuilder, generateListQuery, usePagination, createDatatableColumnsConfig, useSubjectSelect, ASubjectSelect, AListEditor, ASortableListEditor, ANestedSortableListEditor, AUnsavedConfirmDialog, useUnsavedChangesGuard, useUnsavedSection, type UnsavedSectionDescriptor, type UnsavedSectionSource, useListEditorController, type ListEditorHandle, type ExposedListEditorHandle, type UseListEditorControllerOptions, type ListEditorChanges, type ListEditorValidationResult, type GetKey, type PositionOption, type PositionStrategy, type PositionAction, renumberPositions, sortByPosition, sortByPositionDeep, type RenumberPositionsOptions, nextListEditorTempId, type NestedViewItem, useNestedListEditorController, type NestedListEditorHandle, type ExposedNestedListEditorHandle, type ExposedNestedSortableListEditorHandle, type NestedSortableListEditorExtras, type UseNestedListEditorControllerOptions, type NestedListEditorChanges, type ListEditorKey, type ListEditorValidationState, type ListViewItem, type NestedPositionHint, type NestedTree, type NestedTreeNode, type PositionHint, useJobApi, type AxiosClientFn, useUserAdminConfigApi, type UserAdminConfig, UserAdminConfigType, type UserAdminConfigTypeType, UserAdminConfigLayoutType, type UserAdminConfigLayoutTypeType, type UserAdminConfigDataFilterBookmark, type UserAdminConfigDataPinnedWidgets, useUserAdminConfigFactory, ALogListView, ALogDetailView, LogType, LogTypeDefault, type LogTypeType, isLogType, DEFAULT_LOG_PATHS, type LogPaths, type LogTimeWindow, APermissionGroupDatatable, APermissionGroupDetail, APermissionGroupManage, usePermissionGroupActions, type PermissionGroupActionsParams, AAnzuUserDatatable, AAnzuUserForm, AUserCopyPermissionsDialog, useAnzuUserActions, type AnzuUserActionsParams, defineUserSystemDescriptor, descriptorMayWrite, type UserSystemWriteAction, resolveProbeEndpoint, resolveMetadataWrite, resolveEnabledWrite, resolveCreateEndpoint, type UserSystemDescriptor, type AnyUserSystemDescriptor, type UserSystemEndpoints, type AnzuUserEndpointPair, type BaseUserEndpointPair, type UserSystemExtraState, type UserSystemManageTarget, AUserTabsShell, OTHER_SYSTEMS_TAB, USER_PROBE_ENTITY, type UserSystemRefreshHook, AUserSystemOverview, };
|
|
307
|
+
export { ACard, AProgress, ARow, AChipNoLink, AAlerts, AActionbar, AActionbarTarget, ALayoutLoader, ALayoutSwitch, actionbarSlot, createTeleportSlot, type TeleportSlot, ABooleanValue, ASystemEntityScope, AFormTextField, AFormTextarea, AFormDatetimePicker, AFormFlagDatetimePicker, AFormRemoteCheckbox, AFormRemoteSwitch, AFormSwitch, AFormValueObjectOptionsSelect, ADatetime, ADatetimePicker, ADatatableConfigButton, ADialogToolbar, ACreateDialog, AJobStatusChip, ACachedChip, ACachedUserChip, AAdminSwitcher, ATimeTrackingFields, Acl, ACopyText, AIconGroup, AUserAndTimeTrackingFields, AActionCloseButtonHistory, AActionCreateButton, AActionDeleteButton, AActionEditButton, AActionSaveButton, ATableCopyIdButton, ATableDetailButton, ATableEditButton, ABtnSplit, AThemeSelect, ALanguageSelect, ASystemBar, AAnzuUserAvatar, AAvatarColorPicker, ACurrentUserDropdown, AJobDetailCommon, AJobPriorityChip, AJobBaseCreateForm, ACustomDataForm, ACustomDataFormElement, AImageWidget, AImageWidgetInner, AImageMediaWidget, AImageWidgetSimple, AMediaWidgetSimple, AImageWidgetMultiple, AImageWidgetMultipleInner, AImageWidgetMultipleSimple, AImageMassOperations, AImagePublicInput, ADamAssetImageRoiSelect, ACollabLockedByUser, ACollabManagement, AFileInput, AAssetSelect, AAssetListInner, ABooleanSelect, ADamExtSystemRemoteAutocomplete, ADamExternalProviderAssetSelect, ADamDistributionServiceSelect, ADamAssetLicenceRemoteAutocomplete, ADamAssetListViewRemoteAutocomplete, ADamAssetLicenceGroupRemoteAutocomplete, ADamAuthorFilterRemoteAutocomplete, ADamKeywordFilterRemoteAutocomplete, ADamUserFilterRemoteAutocomplete, ADamUserRemoteAutocomplete, ADamAdminAssetLink, ALoginView, ALogoutView, AUnauthorizedView, ANotFoundView, AGenericView, useRouteHistory, type NavigateBackOptions, type NavigateBackTarget, type RouteHistoryEntry, handleRecordLoadError, useRecordPage, type UseRecordPageOptions, type UseRecordPageReturn, defineRecordLoader, defineRecordSave, trackNavigation, isNavigationPending, usePageNavigation, type UsePageNavigationReturn, createNavigationErrorHandler, type NavigationErrorHandlerOptions, useRemainingTime, useAlerts, useTheme, defineCached, useCachedItem, Theme, type ThemeType, useLanguageSettings, modifyLanguageSettings, useLoginStatus, generateDatatableMinMaxSelectStrategy, useCustomDataFormElementType, useDamConfigState, useUploadQueueItemFactory, useDamUploadChunkSize, useDamAcceptTypeAndSizeHelper, useAssetSuggestions, destroyDamNotifications, initDamNotifications, useDamNotifications, useDamNotificationsConnection, createUploadSettlement, uploadSettlementRuntime, UPLOAD_POLL_SCHEDULE, useDropzoneGlobalDragState, useDamKeywordFactory, useDamAuthorFactory, useDamAuthorType, useDamDistributionServiceType, useDamAssetLicenceInnerFilter, useImageActions, useCommonAdminImageOptions, defineAuth, useAclAllowed, AuthUnavailableError, type AuthCookieState, createRefreshRequestInterceptor, createRefreshSession, isInCauseChain, type RefreshResult, SessionExpiredError, defineBreadcrumbs, useDamCachedUsers, useDamCachedAssetLicences, useUnreleasedFeatures, useDebugFeatures, useSentry, useUserActivity, type GrantType, Grant, useGrant, type GrantOriginType, GrantOrigin, GrantOriginDefault, useGrantOrigin, LogLevel, type LogLevelType, type IntegerId, type IntegerIdNullable, type DocId, type DocIdNullable, type DatetimeUTCNullable, type DatetimeUTC, type DateUTC, type DatetimePickerType, type AnzuUser, type BaseUser, type AnzuUserMinimal, type AnzuUserAndTimeTrackingAware, type ValueObjectOption, type CreatedByAware, type PermissionConfig, type PermissionTranslationGroup, type PermissionGroup, type PermissionGroupMinimal, type VuetifyIconValue, type JobBase, type JobUserDataDelete, JOB_RESOURCE_USER_DATA_DELETE, JobStatus, JobStatusDefault, type JobStatusType, type JobBaseResource, useCommonJobFactory, type AclValue, type AclRegistry, type AclValueOf, type RegisteredAclValue, type Permissions, type PluginOptions, type CommonAdminImageOptions, type CommonAdminCoreDamOptions, type CommonAdminCollabOptions, type LanguageCode, type Immutable, type ResourceNameSystemAware, type ValidationScope, type AFormFieldValidation, type CommonAdminGlobalComponents, type ACreateDialogValidation, type Log, type ApiInfiniteResponseList, type DatatableOrderingOption, type DatatableOrderingOptions, type DatatableSortBy, type SortOrderType, type ObjectLeaves, type UniqueValues, ensureUniqueValues, type CachedItem, type AddToCachedArgs, type CachedUnresolvedReason, type DefineCachedOptions, type RecordWasType, type UrlParams, type AssetSelectReturnData, AssetSelectReturnType, type AssetSelectReturnTypeType, type SortableItemDataAware, type AssetFileProperties, type AssetSearchListItemDto, type AssetDetailItemDto, type AssetMetadataDto, type AssetCustomData, type AssetMetadataSuggestions, AssetFileFailReason, type AssetFileFailReasonType, AssetFileProcessStatus, type AssetFileProcessStatusType, AssetFileLinkType, type AssetFileLinkTypeType, type AssetFile, type AssetFileDocument, type AssetFileVideo, type AssetFileAudio, type AssetFileImage, type AssetFileNullable, type AssetFileLink, type AssetFileLinks, type AssetFileRoute, AssetFileRouteStatus, type AssetFileRouteStatusType, type AssetFileMainRouteAware, type AssetFileDownloadLink, type AssetFileImagePreviewNullable, assetFileIsImageFile, assetFileIsVideoFile, assetFileIsAudioFile, type UploadQueue, type UploadQueueItem, UploadQueueItemStatus, type UploadQueueItemStatusType, UploadQueueItemType, type UploadQueueItemTypeType, type CustomDataAware, type CustomDataValue, type CustomDataFormElement, type CustomDataFormElementAttributes, CustomDataFormElementType, CustomDataFormElementTypeDefault, type CustomDataFormElementTypeType, DamAssetType, DamAssetTypeDefault, type DamAssetTypeType, DamAssetStatus, DamAssetStatusDefault, type DamAssetStatusType, type DamPubConfig, type DamPrvConfig, type DamExtSystemConfig, type DamDistributionServiceName, type DamExtSystemConfigItem, type DamExtSystemConfigItemImage, type DamExternalProviderAssetConfig, type DamExternalProviderAssetName, type DamDistributionConfig, type DamDistributionRequirementsConfig, DamDistributionRequirementStrategy, type DamDistributionRequirementStrategyType, type DamDistributionRequirementsCategorySelectConfig, type DamExtSystemAssetTypeExifMetadata, DamDistributionServiceType, type DamDistributionServiceTypeType, DamDistributionStatus, type DamDistributionStatusType, UserAuthType, type UserAuthTypeType, type DamUploadStartResponse, type DamNotificationNameType, DamNotificationName, type DamNotificationListenerOptions, UploadRowRole, type UploadRowRoleType, type UploadSettlement, type UploadSettlementProfile, type UploadSettlementEvent, type UploadSettlementTarget, type UploadSettlePolicy, type UploadRefreshOutcome, type UploadReadOptions, type UploadSettlementScheduler, type UploadSettlementVisibility, type ImageAware, type ImageCreateUpdateAware, type ImageCreateUpdateAwareKeyed, type UploadMetadataToImageMapFn, type UploadMetadataToImageMapItem, type AssetSelectMetadataToImageMapFn, isImageCreateUpdateAware, type ImageMediaCollabValue, type MediaAware, isMediaAware, type DamMediaFromDam, type DamMedia, DamMediaType, type DamMediaTypeType, type DamAuthor, type DamAuthorMinimal, type DamKeyword, type DamKeywordMinimal, DamAuthorType, type DamAuthorTypeType, type DamExtSystem, type DamExtSystemMinimal, type DamCurrentUserDto, type DamAssetLicence, type DamAssetLicenceCached, type DamAssetLicenceExtended, type DamAssetLicenceMinimal, type DamAssetLicenceSelectFields, type DamAssetListViewMinimal, type DamAssetListViewResolved, type DamAssetLicenceGroup, type DamUserUpdateDto, type DamUser, type BreadcrumbItem, type Breadcrumbs, type UploadQueueKey, type DamConfigLicenceExtSystemReturnType, useAnzuUserFactory, usePermissionConfigFactory, usePermissionGroupFactory, cloneDeep, isEmpty, isEmptyObject, isObject, isArray, isFunction, isBoolean, isDocId, isNull, isUndefined, isDefined, isInt, isString, isNumber, objectGetValueByPath, objectSetValueByPath, objectDeletePropertyByPath, objectDeepFreeze, stringToInt, stringToFloat, stringToSlug, stringSplitOnFirstOccurrence, stringToKebabCase, stringIsValidEmail, stringToBooleanExact, DATETIME_MIN, DATETIME_MAX, dateTimeEndOfDay, dateTimeStartOfDay, dateTimeNow, dateTimeFriendly, dateTimePretty, dateModifyMinutes, dateToUtc, dateNow, dateTimeToDate, datePretty, dateUtcPretty, dateUtcToday, timePretty, dateDiff, type DateDiffUnit, prettyBytes, prettyDuration, booleanToInteger, arrayItemToggle, arrayFromArgs, arrayFlatten, type NestedArray, arraysHaveSameElements, browserHistoryReplaceUrlByRouter, eventClickBlur, generateUUIDv1, generateUUIDv4, isOneOf, useJobBaseResource, useJobStatus, fetchDamAssetLicenceListByIds, fetchDamAssetListViewListByIds, useFetchDamAssetLicenceList, fetchDamAssetLicenceGroupListByIds, fetchDamExtSystemListByIds, fetchDamUserListByIds, useFetchDamUserList, updateDamUser, fetchDamUser, fetchAssetAndCheckForSingleUseByFileIds, fetchAsset, fetchAssetAsCmsMedia, fetchAssetByFileId, type IdsGroupedByLicences, messagesCs, messagesEn, messagesSk, SystemScopeKey, SubjectScopeKey, HTTP_STATUS_OK, HTTP_STATUS_CREATED, HTTP_STATUS_NO_CONTENT, HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_UNAUTHORIZED, HTTP_STATUS_FORBIDDEN, HTTP_STATUS_NOT_FOUND, HTTP_STATUS_UNPROCESSABLE_ENTITY, ROLE_SUPER_ADMIN, NEW_LINE_MARK, COMMON_CONFIG, SORT_BY_SCORE, SORT_BY_SCORE_BEST, SORT_BY_SCORE_DATE, SORT_BY_ID, SortOrder, ImageWidgetUploadConfigKey, useValidate, useCollabInit, useCommonAdminCollabOptions, useCollabCurrentUserId, useCollabState, useCollabField, useCollabRoom, useCollabHelpers, useCollabAnyDataChange, type CollabGatheringBufferDataEvent, useCollabReconnectEventBus, useCollabGatheringBufferDataEventBus, CollabFieldLockType, type CollabFieldLockTypeType, CollabFieldLockStatus, type CollabFieldLockStatusType, type CollabFieldLockStatusPayload, type CollabUserId, type CollabUserIdNullable, type CollabRoom, CollabStatus, type CollabStatusType, CollabConnectionState, type CollabConnectionStateType, CollabReconnectVerdict, type CollabReconnectVerdictType, type CollabRoomInfo, type CollabRoomsInfo, type CollabFieldDataEnvelope, type CollabFieldData, type CollabFieldName, type CollabFieldLock, type CollabRoomLocks, type CollabRoomData, type CollabRoomPlainData, CollabAccessRoomStatus, type CollabAccessRoomStatusType, CollabChangeRoomLockStatus, type CollabChangeRoomLockStatusType, type CollabFieldLockOptions, CollabRoomJoinStrategy, type CollabRoomJoinStrategyType, type CollabJoinAckOptions, type CollabRoomOptions, CollabRequestToTakeModerationStatus, type CollabRequestToTakeModerationStatusType, CollabRequestToJoinStatus, type CollabRequestToJoinStatusType, type CollabCachedUsersMap, type CollabComponentConfig, COLLAB_FIELD_PREFIX_COMMENT, COLLAB_FIELD_PREFIX_EMBED, useDamConfigStore, useDamConfigStoreOf, type DamConfigStore, useImageStore, type CommonAdminI18n, slovakPluralizationRule, isAnzuApiForbiddenError, axiosErrorResponseIsForbidden, AnzuApiForbiddenError, isAnzuApiResponseCodeError, AnzuApiResponseCodeError, isAnzuApiForbiddenOperationError, axiosErrorResponseHasForbiddenOperationData, AnzuApiForbiddenOperationError, isAnzuApiValidationError, hasAnzuApiValidationErrorSpecific, axiosErrorResponseHasValidationData, AnzuApiValidationError, isAnzuFatalError, AnzuFatalError, isAnzuApiTimeoutError, AnzuApiTimeoutError, AnzuApiCancelledError, isAnzuApiCancelledError, AnzuError, isAnzuError, isAnzuApiAxiosError, AnzuApiAxiosError, type ValidationError, type AnzuApiValidationResponseData, isAnzuApiDependencyExistsError, axiosErrorResponseHasDependencyExistsData, AnzuApiDependencyExistsError, AnzuSystemsCommonAdmin, useCommonVuetifyConfig, createAnzuVuetify, type CreateAnzuVuetifyOptions, loadCommonFonts, getAssetTypeByMimeType, damFileTypeFix, localTimeShiftInSeconds, useSystemBar, AFilterWrapper, AFilterWrapperSidebar, AFilterWrapperSubjectSelect, AFiltersSelected, AFilterBooleanSelect, AFilterInteger, AFilterRemoteAutocomplete, AFilterString, AFilterTimeInterval, AFilterValueObjectOptionsSelect, FilterConfigKey, FilterDataKey, FilterInnerConfigKey, FilterInnerDataKey, ADatatableOrdering, ADatatablePagination, DatatablePaginationKey, AFormRemoteAutocomplete, createFilterRemoteAutocomplete, createRemoteAutocomplete, type CreateRemoteAutocompleteOptions, type RemoteAutocompleteScope, type FilterRemoteAutocompleteComponent, type FilterRemoteAutocompleteProps, type RemoteAutocompleteComponent, type RemoteAutocompleteProps, type RemoteInnerFilter, type RemoteSelectActions, AFormRemoteAutocompleteWithCached, buildFilterHash, createFilter, createFilterStore, isRouterSafeHash, useFilterHelpers, useDatatableList, type FilterHelpersMoreOptions, type FilterConfig, type FilterData, type FilterStoreIdentifier, type MakeFilterOption, type AllowedFilterValues, type FilterField, type FilterType, type FilterVariant, TimeIntervalSpecialOptions, type TimeIntervalToolsValue, type TimeIntervalSpecialOptionsType, type Pagination, useApiFetchByIds, useApiFetchItems, useApiFetchList, useApiCommand, useApiRequest, defineApiClient, startWithEnvConfig, checkForNewVersion, requestAppReload, RELOAD_VETO_GRACE, skipUrlPrefixes, type ApiClientSetup, type ApiClientRequestInterceptor, type ApiClientResponseInterceptor, type UseApiRequestParams, type ExecuteRequestParams, type UseApiRequestReturnType, type UseApiFetchListParams, type FetchListParams, type UseApiFetchListReturnType, type UseApiFetchByIdsParams, type FetchByIdsParams, type UseApiFetchByIdsReturnType, type UseApiFetchItemsParams, type FetchItemsParams, type ItemsShape, type UseApiFetchItemsReturnType, type UseApiFetchListBatchParams, type FetchListBatchParams, type UseApiFetchListBatchReturnType, defaultApiErrorLogger, apiErrorStatus, apiErrorIsReported, setApiErrorLogger, type ApiErrorContext, type ApiErrorLogger, useApiFetchListBatch, useApiQueryBuilder, generateListQuery, usePagination, createDatatableColumnsConfig, useSubjectSelect, ASubjectSelect, AListEditor, ASortableListEditor, ANestedSortableListEditor, AUnsavedConfirmDialog, useUnsavedChangesGuard, useUnsavedSection, type UnsavedSectionDescriptor, type UnsavedSectionSource, useListEditorController, type ListEditorHandle, type ExposedListEditorHandle, type UseListEditorControllerOptions, type ListEditorChanges, type ListEditorValidationResult, type GetKey, type PositionOption, type PositionStrategy, type PositionAction, renumberPositions, sortByPosition, sortByPositionDeep, type RenumberPositionsOptions, nextListEditorTempId, type NestedViewItem, useNestedListEditorController, type NestedListEditorHandle, type ExposedNestedListEditorHandle, type ExposedNestedSortableListEditorHandle, type NestedSortableListEditorExtras, type UseNestedListEditorControllerOptions, type NestedListEditorChanges, type ListEditorKey, type ListEditorValidationState, type ListViewItem, type NestedPositionHint, type NestedTree, type NestedTreeNode, type PositionHint, useJobApi, type AxiosClientFn, useUserAdminConfigApi, type UserAdminConfig, UserAdminConfigType, type UserAdminConfigTypeType, UserAdminConfigLayoutType, type UserAdminConfigLayoutTypeType, type UserAdminConfigDataFilterBookmark, type UserAdminConfigDataPinnedWidgets, useUserAdminConfigFactory, ALogListView, ALogDetailView, LogType, LogTypeDefault, type LogTypeType, isLogType, DEFAULT_LOG_PATHS, type LogPaths, type LogTimeWindow, APermissionGroupDatatable, APermissionGroupDetail, APermissionGroupManage, usePermissionGroupActions, type PermissionGroupActionsParams, AAnzuUserDatatable, AAnzuUserForm, AUserCopyPermissionsDialog, useAnzuUserActions, type AnzuUserActionsParams, defineUserSystemDescriptor, descriptorMayWrite, type UserSystemWriteAction, resolveProbeEndpoint, resolveMetadataWrite, resolveEnabledWrite, resolveCreateEndpoint, type UserSystemDescriptor, type AnyUserSystemDescriptor, type UserSystemEndpoints, type AnzuUserEndpointPair, type BaseUserEndpointPair, type UserSystemExtraState, type UserSystemManageTarget, AUserTabsShell, AUserOtherSystemsTable, AUserMissingAccount, OTHER_SYSTEMS_TAB, type UserSystemTab, useUserCreateFromSource, type UseUserCreateFromSourceOptions, USER_PROBE_ENTITY, type UserSystemRefreshHook, AUserSystemOverview, };
|
|
305
308
|
export { createCachedChip } from './domains/cached/composables/createCachedChip';
|
|
306
309
|
export type { CreateCachedChipOptions } from './domains/cached/composables/createCachedChip';
|
|
307
310
|
export { createUserAndTimeTrackingFields } from './domains/cached/composables/createUserAndTimeTrackingFields';
|
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"./package.json": "./package.json"
|
|
42
42
|
},
|
|
43
|
-
"version": "2.0.0-rc.
|
|
43
|
+
"version": "2.0.0-rc.16",
|
|
44
44
|
"license": "Apache-2.0",
|
|
45
45
|
"repository": {
|
|
46
46
|
"type": "git",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"release:cleanup": "npx -y --allow-git=all github:anzusystems/release-tools#main cleanup"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@anzusystems/common-admin": "2.0.0-rc.
|
|
83
|
+
"@anzusystems/common-admin": "2.0.0-rc.16",
|
|
84
84
|
"@intlify/unplugin-vue-i18n": "^11.2.8",
|
|
85
85
|
"@mdi/font": "^7.4.47",
|
|
86
86
|
"@sentry/vite-plugin": "11.12.0",
|