@anzusystems/common-admin 2.0.0-rc.13 → 2.0.0-rc.14
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/AnzuSystemsCommonAdmin.d.ts +10 -4
- package/dist/AnzuSystemsCommonAdmin.js.map +1 -1
- package/dist/common-admin.js +255 -254
- package/dist/domains/anzuUser/components/AUserCreateInSystemButton.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/domains/anzuUser/components/AUserCreateInSystemButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/anzuUser/components/AUserManageButton.vue_vue_type_script_setup_true_lang.js +1 -4
- package/dist/domains/anzuUser/components/AUserManageButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/anzuUser/components/AUserSystemOverview.vue_vue_type_script_setup_true_lang.js +93 -86
- package/dist/domains/anzuUser/components/AUserSystemOverview.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 +30 -25
- package/dist/domains/anzuUser/components/AUserSystemPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/api/damAssetApi.d.ts +5 -0
- package/dist/domains/dam/api/damAssetApi.js +39 -34
- package/dist/domains/dam/api/damAssetApi.js.map +1 -1
- package/dist/domains/dam/assetDetail/components/AssetMetadata.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetSelect/api/damPodcastApi.d.ts +2 -2
- package/dist/domains/dam/assetSelect/api/damPodcastApi.js +4 -4
- package/dist/domains/dam/assetSelect/api/damPodcastApi.js.map +1 -1
- package/dist/domains/dam/assetSelect/components/AAssetListInner.vue_vue_type_script_setup_true_lang.js +152 -153
- package/dist/domains/dam/assetSelect/components/AAssetListInner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetSelect/components/AAssetSelect.vue.d.ts +3 -0
- package/dist/domains/dam/assetSelect/components/AAssetSelect.vue_vue_type_script_setup_true_lang.js +80 -72
- package/dist/domains/dam/assetSelect/components/AAssetSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetSelect/components/AAssetSelectMedia.vue.d.ts +3 -0
- package/dist/domains/dam/assetSelect/components/AAssetSelectMedia.vue_vue_type_script_setup_true_lang.js +88 -80
- package/dist/domains/dam/assetSelect/components/AAssetSelectMedia.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetSelect/components/AssetSelectFilter.vue.d.ts +3 -0
- package/dist/domains/dam/assetSelect/components/AssetSelectFilter.vue_vue_type_script_setup_true_lang.js +42 -60
- package/dist/domains/dam/assetSelect/components/AssetSelectFilter.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetSelect/components/AssetSelectFilterForm.vue_vue_type_script_setup_true_lang.js +7 -9
- package/dist/domains/dam/assetSelect/components/AssetSelectFilterForm.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetSelect/components/AssetSelectLicencePresetBar.js +6 -0
- package/dist/domains/dam/assetSelect/components/AssetSelectLicencePresetBar.js.map +1 -0
- package/dist/domains/dam/assetSelect/components/AssetSelectLicencePresetBar.vue.d.ts +3 -0
- package/dist/domains/dam/assetSelect/components/AssetSelectLicencePresetBar.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/domains/dam/assetSelect/components/AssetSelectLicencePresetBar.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/domains/dam/assetSelect/components/AssetSelectListBar.vue_vue_type_script_setup_true_lang.js +127 -106
- package/dist/domains/dam/assetSelect/components/AssetSelectListBar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetSelect/components/AssetSelectListTable.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/domains/dam/assetSelect/components/AssetSelectListTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetSelect/components/FilterPodcastRemoteAutocomplete.vue.d.ts +3 -1
- package/dist/domains/dam/assetSelect/components/FilterPodcastRemoteAutocomplete.vue_vue_type_script_setup_true_lang.js +3 -2
- package/dist/domains/dam/assetSelect/components/FilterPodcastRemoteAutocomplete.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetSelect/composables/assetSelectItemActions.js +32 -30
- package/dist/domains/dam/assetSelect/composables/assetSelectItemActions.js.map +1 -1
- package/dist/domains/dam/assetSelect/composables/assetSelectListActions.js +96 -96
- package/dist/domains/dam/assetSelect/composables/assetSelectListActions.js.map +1 -1
- package/dist/domains/dam/assetSelect/composables/assetSelectPresetControl.d.ts +22 -0
- package/dist/domains/dam/assetSelect/composables/assetSelectPresetControl.js +44 -0
- package/dist/domains/dam/assetSelect/composables/assetSelectPresetControl.js.map +1 -0
- package/dist/domains/dam/assetSelect/composables/assetSelectPresets.d.ts +28 -0
- package/dist/domains/dam/assetSelect/composables/assetSelectPresets.js +32 -0
- package/dist/domains/dam/assetSelect/composables/assetSelectPresets.js.map +1 -0
- package/dist/domains/dam/assetSelect/composables/podcastFilterAndActions.d.ts +19 -6
- package/dist/domains/dam/assetSelect/composables/podcastFilterAndActions.js +9 -5
- package/dist/domains/dam/assetSelect/composables/podcastFilterAndActions.js.map +1 -1
- package/dist/domains/dam/assetSelect/store/assetSelectStore.d.ts +5 -1
- package/dist/domains/dam/assetSelect/store/assetSelectStore.js +97 -80
- package/dist/domains/dam/assetSelect/store/assetSelectStore.js.map +1 -1
- package/dist/domains/dam/composables/commonAdminCoreDamOptions.js +3 -3
- package/dist/domains/dam/composables/commonAdminCoreDamOptions.js.map +1 -1
- package/dist/domains/dam/imageWidget/components/AImageMediaWidget.vue.d.ts +3 -0
- package/dist/domains/dam/imageWidget/components/AImageMediaWidget.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/domains/dam/imageWidget/components/AImageMediaWidget.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/imageWidget/components/AImageWidget.vue.d.ts +3 -0
- package/dist/domains/dam/imageWidget/components/AImageWidget.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/domains/dam/imageWidget/components/AImageWidget.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/imageWidget/components/AImageWidgetMultiple.vue.d.ts +3 -0
- package/dist/domains/dam/imageWidget/components/AImageWidgetMultiple.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/domains/dam/imageWidget/components/AImageWidgetMultiple.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/imageWidget/components/ImageMediaWidgetInner.vue.d.ts +3 -0
- package/dist/domains/dam/imageWidget/components/ImageMediaWidgetInner.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/domains/dam/imageWidget/components/ImageMediaWidgetInner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/imageWidget/components/ImageWidgetInner.vue.d.ts +3 -0
- package/dist/domains/dam/imageWidget/components/ImageWidgetInner.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/domains/dam/imageWidget/components/ImageWidgetInner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/imageWidget/components/ImageWidgetMultipleInner.vue.d.ts +3 -0
- package/dist/domains/dam/imageWidget/components/ImageWidgetMultipleInner.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/domains/dam/imageWidget/components/ImageWidgetMultipleInner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/types/AssetLicence.d.ts +6 -6
- package/dist/domains/dam/types/AssetListView.d.ts +10 -0
- package/dist/domains/dam/types/DamCurrentUser.d.ts +3 -0
- package/dist/domains/dam/user/api/assetListViewApi.d.ts +7 -0
- package/dist/domains/dam/user/api/assetListViewApi.js +21 -0
- package/dist/domains/dam/user/api/assetListViewApi.js.map +1 -0
- package/dist/domains/dam/user/components/DamAssetLicenceGroupRemoteAutocomplete.vue.d.ts +3 -0
- package/dist/domains/dam/user/components/DamAssetLicenceGroupRemoteAutocomplete.vue_vue_type_script_setup_true_lang.js +18 -14
- package/dist/domains/dam/user/components/DamAssetLicenceGroupRemoteAutocomplete.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/user/components/DamAssetLicenceRemoteAutocomplete.vue_vue_type_script_setup_true_lang.js +31 -31
- package/dist/domains/dam/user/components/DamAssetLicenceRemoteAutocomplete.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/user/components/DamAssetListViewRemoteAutocomplete.js +6 -0
- package/dist/domains/dam/user/components/DamAssetListViewRemoteAutocomplete.js.map +1 -0
- package/dist/domains/dam/user/components/DamAssetListViewRemoteAutocomplete.vue.d.ts +36 -0
- package/dist/domains/dam/user/components/DamAssetListViewRemoteAutocomplete.vue_vue_type_script_setup_true_lang.js +83 -0
- package/dist/domains/dam/user/components/DamAssetListViewRemoteAutocomplete.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/domains/dam/user/composables/assetListViewActions.d.ts +10 -0
- package/dist/domains/dam/user/composables/assetListViewActions.js +15 -0
- package/dist/domains/dam/user/composables/assetListViewActions.js.map +1 -0
- package/dist/domains/dam/user/composables/cachedAssetLicences.d.ts +3 -3
- package/dist/domains/dam/user/filter/AssetLicenceGroupFilter.d.ts +14 -4
- package/dist/domains/dam/user/filter/AssetLicenceGroupFilter.js +3 -0
- package/dist/domains/dam/user/filter/AssetLicenceGroupFilter.js.map +1 -1
- package/dist/domains/dam/user/filter/AssetListViewFilter.d.ts +24 -0
- package/dist/domains/dam/user/filter/AssetListViewFilter.js +25 -0
- package/dist/domains/dam/user/filter/AssetListViewFilter.js.map +1 -0
- package/dist/domains/log/components/ALogFilter.vue_vue_type_script_setup_true_lang.js +28 -32
- package/dist/domains/log/components/ALogFilter.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/permission/components/APermissionEditor.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/domains/permission/components/APermissionEditor.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/lib.d.ts +4 -2
- package/dist/locales/cs/common/anzuUser.js +4 -4
- package/dist/locales/cs/common/assetSelect.js +26 -0
- package/dist/locales/cs/common/assetSelect.js.map +1 -1
- package/dist/locales/cs.d.ts +5 -0
- package/dist/locales/en/common/anzuUser.js +4 -4
- package/dist/locales/en/common/assetSelect.js +26 -0
- package/dist/locales/en/common/assetSelect.js.map +1 -1
- package/dist/locales/en.d.ts +5 -0
- package/dist/locales/sk/common/anzuUser.js +4 -4
- package/dist/locales/sk/common/assetSelect.js +26 -0
- package/dist/locales/sk/common/assetSelect.js.map +1 -1
- package/dist/locales/sk.d.ts +5 -0
- package/dist/plugins/i18n.d.ts +5 -0
- package/package.json +7 -7
- package/dist/domains/ui/buttons/action/components/AActionSaveAndCloseButton.js +0 -6
- package/dist/domains/ui/buttons/action/components/AActionSaveAndCloseButton.js.map +0 -1
- package/dist/domains/ui/buttons/action/components/AActionSaveAndCloseButton.vue.d.ts +0 -25
- package/dist/domains/ui/buttons/action/components/AActionSaveAndCloseButton.vue_vue_type_script_setup_true_lang.js +0 -67
- package/dist/domains/ui/buttons/action/components/AActionSaveAndCloseButton.vue_vue_type_script_setup_true_lang.js.map +0 -1
|
@@ -54,8 +54,7 @@ var D = { class: "d-inline-flex" }, O = { class: "mt-2" }, k = {
|
|
|
54
54
|
disabled: u.disabled,
|
|
55
55
|
loading: u.loading,
|
|
56
56
|
size: "small",
|
|
57
|
-
variant: "
|
|
58
|
-
color: "primary",
|
|
57
|
+
variant: "text",
|
|
59
58
|
"data-cy": "user-system-create",
|
|
60
59
|
onClick: r[0] ||= v((e) => I.value = !0, ["stop"])
|
|
61
60
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AUserCreateInSystemButton.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createVNode","_component_VBtn","_withModifiers","_withCtx","_createTextVNode","_toDisplayString","_unref","_component_VDialog","_component_VCard","ADialogToolbar","_component_VCardText","AUserMetadataForm","_createElementVNode","_component_VCardActions","_component_VSpacer","ADialogToolbar_default","AUserMetadataForm_default","useVuelidate","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","AUserCreateInSystemButton_vue_vue_type_script_setup_true_lang_default","__emit","props","__props","emit","useI18n","useAnzuUserFactory","dialog","ref","user","createAnzuUser","v$","open","seed","isNull","cloneDeep","confirm","_component_ABtnTertiary","resolveComponent","_component_ABtnPrimary","openBlock","createElementBlock","createVNode","VBtn","_cache","withModifiers","withCtx","createTextVNode","toDisplayString","unref","t","VDialog","$event","VCard","VCardText","createElementVNode","createCommentVNode","VCardActions","VSpacer"],"sources":["../../../../src/domains/anzuUser/components/AUserCreateInSystemButton.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { ref, watch } from 'vue'\nimport useVuelidate from '@vuelidate/core'\nimport { useI18n } from 'vue-i18n'\nimport ADialogToolbar from '@/domains/ui/components/ADialogToolbar.vue'\nimport AUserMetadataForm from '@/domains/anzuUser/components/AUserMetadataForm.vue'\nimport { useAnzuUserFactory } from '@/domains/anzuUser/factory/AnzuUserFactory'\nimport type { BaseUser } from '@/shared/types/AnzuUser'\nimport type { IntegerIdNullable } from '@/shared/types/common'\nimport { cloneDeep, isNull } from '@/shared/utils/common'\n\nconst props = withDefaults(\n defineProps<{\n systemLabel: string\n /** The system's `createNote`: what is special about having an account there. */\n createNote?: string | undefined\n /**\n * Whether the created account will be switched on.\n * The sentence about a working public account is composed here, not in the descriptor, because it depends on\n * this value. Creating from a panel copies the source's `enabled`; creating after an empty search sends false.\n */\n willBeEnabled?: boolean\n loading?: boolean\n disabled?: boolean\n /** The target system's `requiredMetadata`: the profile the form validates against. */\n requiredMetadata?: boolean\n /** The person's id. Always shown and never editable here, because this path is for a person who already exists. */\n userId?: IntegerIdNullable\n /**\n * Known data used to prefill the form. It is not the posted\n * body: the caller re-reads the source right before the POST.\n * The operator must complete it. A person known only in blog usually has an empty `person`, which\n * the target may require, so a silent copy would create a record the target's form refuses to save.\n */\n source?: BaseUser | null\n }>(),\n {\n createNote: undefined,\n willBeEnabled: false,\n loading: false,\n disabled: false,\n requiredMetadata: false,\n userId: null,\n source: null,\n }\n)\n\nconst emit = defineEmits<{\n (e: 'confirm', user: BaseUser): void\n}>()\n\nconst { t } = useI18n()\nconst { createAnzuUser } = useAnzuUserFactory()\nconst dialog = ref(false)\n\nconst user = ref<BaseUser>(createAnzuUser())\nconst v$ = useVuelidate()\n\n// Seeded on every open, not once. The row is re-probed after\n// each write, and a stale prefill would send outdated values.\nwatch(dialog, (open) => {\n if (!open) return\n const seed = isNull(props.source) ? createAnzuUser() : cloneDeep(props.source)\n if (!isNull(props.userId)) seed.id = props.userId\n user.value = seed\n v$.value.$reset()\n})\n\nconst confirm = async () => {\n if (!(await v$.value.$validate())) return\n dialog.value = false\n emit('confirm', cloneDeep(user.value))\n}\n</script>\n\n<template>\n <div class=\"d-inline-flex\">\n <VBtn\n :disabled=\"disabled\"\n :loading=\"loading\"\n size=\"small\"\n variant=\"
|
|
1
|
+
{"version":3,"file":"AUserCreateInSystemButton.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createVNode","_component_VBtn","_withModifiers","_withCtx","_createTextVNode","_toDisplayString","_unref","_component_VDialog","_component_VCard","ADialogToolbar","_component_VCardText","AUserMetadataForm","_createElementVNode","_component_VCardActions","_component_VSpacer","ADialogToolbar_default","AUserMetadataForm_default","useVuelidate","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","AUserCreateInSystemButton_vue_vue_type_script_setup_true_lang_default","__emit","props","__props","emit","useI18n","useAnzuUserFactory","dialog","ref","user","createAnzuUser","v$","open","seed","isNull","cloneDeep","confirm","_component_ABtnTertiary","resolveComponent","_component_ABtnPrimary","openBlock","createElementBlock","createVNode","VBtn","_cache","withModifiers","withCtx","createTextVNode","toDisplayString","unref","t","VDialog","$event","VCard","VCardText","createElementVNode","createCommentVNode","VCardActions","VSpacer"],"sources":["../../../../src/domains/anzuUser/components/AUserCreateInSystemButton.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { ref, watch } from 'vue'\nimport useVuelidate from '@vuelidate/core'\nimport { useI18n } from 'vue-i18n'\nimport ADialogToolbar from '@/domains/ui/components/ADialogToolbar.vue'\nimport AUserMetadataForm from '@/domains/anzuUser/components/AUserMetadataForm.vue'\nimport { useAnzuUserFactory } from '@/domains/anzuUser/factory/AnzuUserFactory'\nimport type { BaseUser } from '@/shared/types/AnzuUser'\nimport type { IntegerIdNullable } from '@/shared/types/common'\nimport { cloneDeep, isNull } from '@/shared/utils/common'\n\nconst props = withDefaults(\n defineProps<{\n systemLabel: string\n /** The system's `createNote`: what is special about having an account there. */\n createNote?: string | undefined\n /**\n * Whether the created account will be switched on.\n * The sentence about a working public account is composed here, not in the descriptor, because it depends on\n * this value. Creating from a panel copies the source's `enabled`; creating after an empty search sends false.\n */\n willBeEnabled?: boolean\n loading?: boolean\n disabled?: boolean\n /** The target system's `requiredMetadata`: the profile the form validates against. */\n requiredMetadata?: boolean\n /** The person's id. Always shown and never editable here, because this path is for a person who already exists. */\n userId?: IntegerIdNullable\n /**\n * Known data used to prefill the form. It is not the posted\n * body: the caller re-reads the source right before the POST.\n * The operator must complete it. A person known only in blog usually has an empty `person`, which\n * the target may require, so a silent copy would create a record the target's form refuses to save.\n */\n source?: BaseUser | null\n }>(),\n {\n createNote: undefined,\n willBeEnabled: false,\n loading: false,\n disabled: false,\n requiredMetadata: false,\n userId: null,\n source: null,\n }\n)\n\nconst emit = defineEmits<{\n (e: 'confirm', user: BaseUser): void\n}>()\n\nconst { t } = useI18n()\nconst { createAnzuUser } = useAnzuUserFactory()\nconst dialog = ref(false)\n\nconst user = ref<BaseUser>(createAnzuUser())\nconst v$ = useVuelidate()\n\n// Seeded on every open, not once. The row is re-probed after\n// each write, and a stale prefill would send outdated values.\nwatch(dialog, (open) => {\n if (!open) return\n const seed = isNull(props.source) ? createAnzuUser() : cloneDeep(props.source)\n if (!isNull(props.userId)) seed.id = props.userId\n user.value = seed\n v$.value.$reset()\n})\n\nconst confirm = async () => {\n if (!(await v$.value.$validate())) return\n dialog.value = false\n emit('confirm', cloneDeep(user.value))\n}\n</script>\n\n<template>\n <div class=\"d-inline-flex\">\n <VBtn\n :disabled=\"disabled\"\n :loading=\"loading\"\n size=\"small\"\n variant=\"text\"\n data-cy=\"user-system-create\"\n @click.stop=\"dialog = true\"\n >\n {{ t('common.userSystem.button.create') }}\n </VBtn>\n <VDialog\n v-model=\"dialog\"\n :max-width=\"640\"\n >\n <VCard>\n <ADialogToolbar @cancel=\"dialog = false\">\n {{ t('common.userSystem.create.title', { system: systemLabel }) }}\n </ADialogToolbar>\n <VCardText>\n <!-- The id is shown and locked: this gives the existing person's global id an account here. -->\n <AUserMetadataForm\n v-model:user=\"user\"\n :required=\"requiredMetadata\"\n id-input\n is-edit\n />\n <!--\n Stated explicitly because neither is obvious or reversible: the account\n is created with nothing granted, and no admin can delete an AnzuUser.\n -->\n <p class=\"mt-2\">{{ t('common.userSystem.create.note') }}</p>\n <p\n v-if=\"createNote\"\n class=\"mt-2\"\n >\n {{ createNote }}\n </p>\n <p class=\"mt-2\">\n {{\n props.willBeEnabled\n ? t('common.userSystem.create.willBeEnabled')\n : t('common.userSystem.create.willBeDisabled')\n }}\n </p>\n </VCardText>\n <VCardActions>\n <ABtnTertiary @click.stop=\"dialog = false\">\n {{ t('common.button.cancel') }}\n </ABtnTertiary>\n <VSpacer />\n <ABtnPrimary\n :loading=\"loading\"\n data-cy=\"user-system-create-confirm\"\n @click.stop=\"confirm\"\n >\n {{ t('common.button.confirm') }}\n </ABtnPrimary>\n </VCardActions>\n </VCard>\n </VDialog>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWA,IAAM0B,IAAQC,GAoCRC,IAAOH,GAIP,EAAE,SAAMI,EAAQ,GAChB,EAAE,sBAAmBC,EAAmB,GACxCC,IAASC,EAAI,EAAK,GAElBC,IAAOD,EAAcE,EAAe,CAAC,GACrCC,IAAKhB,EAAa;EAIxB,EAAMY,IAAS,MAAS;GACtB,IAAI,CAACK,GAAM;GACX,IAAMC,IAAOC,EAAOZ,EAAM,MAAM,IAAIQ,EAAe,IAAIK,EAAUb,EAAM,MAAM;GAG7E,AAFKY,EAAOZ,EAAM,MAAM,MAAG,EAAK,KAAKA,EAAM,SAC3C,EAAK,QAAQW,GACbF,EAAG,MAAM,OAAO;EAClB,CAAC;EAED,IAAMK,IAAU,YAAY;GAC1B,AAAM,MAAML,EAAG,MAAM,UAAU,MAC/B,EAAO,QAAQ,IACfP,EAAK,WAAWW,EAAUN,EAAK,KAAK,CAAC;EACvC;;;GAIE,OAAAjC,EAAA,GAAAC,EA6DM,OA7DNmB,GA6DM,CA5DJlB,EASOC,GAAA;IARJ,UAAUwB,EAAA;IACV,SAASA,EAAA;IACV,MAAK;IACL,SAAQ;IACR,WAAQ;IACP,SAAK,AAAAqB,EAAA,OAAA5C,GAAA,MAAO,EAAA,QAAM,IAAA,CAAA,MAAA,CAAA;;IAEnB,SAAAC,QAA0C,CAAvCC,EAAAC,EAAAC,EAAA8C,CAAA,CAAC,CAAA,iCAAA,CAAA,GAAA,CAAA,C;;G,gCAENpD,EAiDUO,GAAA;IAhDC,YAAAsB,EAAA;IAAA,uBAAA,AAAAiB,EAAA,QAAA,MAAA,EAAM,QAAAQ;IACd,aAAW;;IAEZ,SAAAnD,QA4CQ,CA5CRH,EA4CQQ,GAAA,MAAA;KA3CN,SAAAL,QAEiB;MAFjBH,EAEiBS,GAAA,EAFA,UAAM,AAAAqC,EAAA,QAAA,MAAE,EAAA,QAAM,G;OAC7B,SAAA3C,QAAkE,CAA/DC,EAAAC,EAAAC,EAAA8C,CAAA,CAAC,CAAA,kCAAA,EAAA,QAA6C3B,EAAA,YAAW,CAAA,CAAA,GAAA,CAAA,C;;;MAE9DzB,EA0BYU,GAAA,MAAA;OAxBV,SAAAP,QAKE;QALFH,EAKEW,GAAA;SAJQ,MAAMoB,EAAA;SAAA,iBAAA,AAAAe,EAAA,QAAA,MAAA,EAAI,QAAAQ;SACjB,UAAU7B,EAAA;SACX,YAAA;SACA,WAAA;;QAMFb,EAA4D,KAA5DO,GAA4Dd,EAAzCC,EAAA8C,CAAA,CAAC,CAAA,+BAAA,CAAA,GAAA,CAAA;QAEZ3B,EAAA,cADR3B,EAAA,GAAAC,EAKI,KALJqB,GAKIf,EADCoB,EAAA,UAAU,GAAA,CAAA,K;QAEfb,EAMI,KANJS,GAMIhB,EAJAmB,EAAM,gBAAgClB,EAAA8C,CAAA,CAAC,CAAA,wCAAA,IAA6D9C,EAAA8C,CAAA,CAAC,CAAA,yCAAA,CAAA,GAAA,CAAA;;;;MAM3GpD,EAYea,GAAA,MAAA;OAXb,SAAAV,QAEe;QAFfH,EAEeuC,GAAA,EAFA,SAAK,AAAAO,EAAA,OAAA5C,GAAA,MAAO,EAAA,QAAM,IAAA,CAAA,MAAA,CAAA,E;SAC/B,SAAAC,QAA+B,CAA5BC,EAAAC,EAAAC,EAAA8C,CAAA,CAAC,CAAA,sBAAA,CAAA,GAAA,CAAA,C;;;QAENpD,EAAWc,CAAA;QACXd,EAMcyC,GAAA;SALX,SAAShB,EAAA;SACV,WAAQ;SACP,SAAKvB,EAAOoC,GAAO,CAAA,MAAA,CAAA;;SAEpB,SAAAnC,QAAgC,CAA7BC,EAAAC,EAAAC,EAAA8C,CAAA,CAAC,CAAA,uBAAA,CAAA,GAAA,CAAA,C"}
|
package/dist/domains/anzuUser/components/AUserManageButton.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -22,8 +22,7 @@ var h = /*@__PURE__*/ a({
|
|
|
22
22
|
target: _.value ? "_blank" : void 0,
|
|
23
23
|
rel: _.value ? "noopener" : void 0,
|
|
24
24
|
"append-icon": _.value ? "mdi-open-in-new" : void 0,
|
|
25
|
-
variant:
|
|
26
|
-
color: _.value ? void 0 : "primary",
|
|
25
|
+
variant: "text",
|
|
27
26
|
disabled: v.value,
|
|
28
27
|
size: "small",
|
|
29
28
|
"data-cy": "user-system-manage"
|
|
@@ -36,8 +35,6 @@ var h = /*@__PURE__*/ a({
|
|
|
36
35
|
"target",
|
|
37
36
|
"rel",
|
|
38
37
|
"append-icon",
|
|
39
|
-
"variant",
|
|
40
|
-
"color",
|
|
41
38
|
"disabled"
|
|
42
39
|
])], 16)]),
|
|
43
40
|
default: d(() => [r(" " + l(u(g)("common.userSystem.manageMissingUrl")), 1)]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AUserManageButton.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_component_VTooltip","_withCtx","_createElementVNode","_normalizeProps","_guardReactiveProps","_createVNode","_component_VBtn","_createTextVNode","_toDisplayString","_unref","AUserManageButton_vue_vue_type_script_setup_true_lang_default","props","__props","useI18n","isExternal","computed","missingUrl","href","to","label","t","openBlock","createBlock","VTooltip","withCtx","tooltipProps","createElementVNode","normalizeProps","guardReactiveProps","createVNode","VBtn","createTextVNode","toDisplayString","unref"],"sources":["../../../../src/domains/anzuUser/components/AUserManageButton.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useI18n } from 'vue-i18n'\nimport type { UserSystemManageTarget } from '@/domains/anzuUser/composables/userSystemDescriptor'\n\nconst props = withDefaults(\n defineProps<{\n target: UserSystemManageTarget\n systemLabel: string\n /** \"Edit\" instead of \"Manage in X\" -- used where the operator is already in that admin. */\n internalLabel?: string | undefined\n }>(),\n {\n internalLabel: undefined,\n }\n)\n\nconst { t } = useI18n()\n\nconst isExternal = computed(() => props.target.kind === 'external')\n\n/** A missing url means the template is configured but absent. Show the reason instead of a silently disabled button. */\nconst missingUrl = computed(() => props.target.kind === 'external' && props.target.href === null)\n\nconst href = computed(() => (props.target.kind === 'external' ? (props.target.href ?? undefined) : undefined))\nconst to = computed(() => (props.target.kind === 'internal' ? props.target.to : undefined))\n\nconst label = computed(() =>\n isExternal.value\n ? t('common.userSystem.button.manageIn', { system: props.systemLabel })\n : (props.internalLabel ?? t('common.userSystem.button.edit'))\n)\n</script>\n\n<template>\n <VTooltip\n :disabled=\"!missingUrl\"\n location=\"top\"\n >\n <template #activator=\"{ props: tooltipProps }\">\n <!--\n An anchor, not a click handler, so middle-click, open in new tab and screen reader announcements work.\n This is also why the tab bar never navigates: `VTab` renders `role=\"tab\"` and cannot carry a link.\n -->\n <span v-bind=\"tooltipProps\">\n <VBtn\n :to=\"to\"\n :href=\"href\"\n :target=\"isExternal ? '_blank' : undefined\"\n :rel=\"isExternal ? 'noopener' : undefined\"\n :append-icon=\"isExternal ? 'mdi-open-in-new' : undefined\"\n
|
|
1
|
+
{"version":3,"file":"AUserManageButton.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_component_VTooltip","_withCtx","_createElementVNode","_normalizeProps","_guardReactiveProps","_createVNode","_component_VBtn","_createTextVNode","_toDisplayString","_unref","AUserManageButton_vue_vue_type_script_setup_true_lang_default","props","__props","useI18n","isExternal","computed","missingUrl","href","to","label","t","openBlock","createBlock","VTooltip","withCtx","tooltipProps","createElementVNode","normalizeProps","guardReactiveProps","createVNode","VBtn","createTextVNode","toDisplayString","unref"],"sources":["../../../../src/domains/anzuUser/components/AUserManageButton.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useI18n } from 'vue-i18n'\nimport type { UserSystemManageTarget } from '@/domains/anzuUser/composables/userSystemDescriptor'\n\nconst props = withDefaults(\n defineProps<{\n target: UserSystemManageTarget\n systemLabel: string\n /** \"Edit\" instead of \"Manage in X\" -- used where the operator is already in that admin. */\n internalLabel?: string | undefined\n }>(),\n {\n internalLabel: undefined,\n }\n)\n\nconst { t } = useI18n()\n\nconst isExternal = computed(() => props.target.kind === 'external')\n\n/** A missing url means the template is configured but absent. Show the reason instead of a silently disabled button. */\nconst missingUrl = computed(() => props.target.kind === 'external' && props.target.href === null)\n\nconst href = computed(() => (props.target.kind === 'external' ? (props.target.href ?? undefined) : undefined))\nconst to = computed(() => (props.target.kind === 'internal' ? props.target.to : undefined))\n\nconst label = computed(() =>\n isExternal.value\n ? t('common.userSystem.button.manageIn', { system: props.systemLabel })\n : (props.internalLabel ?? t('common.userSystem.button.edit'))\n)\n</script>\n\n<template>\n <VTooltip\n :disabled=\"!missingUrl\"\n location=\"top\"\n >\n <template #activator=\"{ props: tooltipProps }\">\n <!--\n An anchor, not a click handler, so middle-click, open in new tab and screen reader announcements work.\n This is also why the tab bar never navigates: `VTab` renders `role=\"tab\"` and cannot carry a link.\n -->\n <span v-bind=\"tooltipProps\">\n <VBtn\n :to=\"to\"\n :href=\"href\"\n :target=\"isExternal ? '_blank' : undefined\"\n :rel=\"isExternal ? 'noopener' : undefined\"\n :append-icon=\"isExternal ? 'mdi-open-in-new' : undefined\"\n variant=\"text\"\n :disabled=\"missingUrl\"\n size=\"small\"\n data-cy=\"user-system-manage\"\n >\n {{ label }}\n </VBtn>\n </span>\n </template>\n {{ t('common.userSystem.manageMissingUrl') }}\n </VTooltip>\n</template>\n"],"mappings":";;;;;;;;;;;;;EAKA,IAAMa,IAAQC,GAYR,EAAE,SAAMC,EAAQ,GAEhBC,IAAaC,QAAeJ,EAAM,OAAO,SAAS,UAAU,GAG5DK,IAAaD,QAAeJ,EAAM,OAAO,SAAS,cAAcA,EAAM,OAAO,SAAS,IAAI,GAE1FM,IAAOF,QAAgBJ,EAAM,OAAO,SAAS,aAAcA,EAAM,OAAO,QAAQ,KAAA,IAAa,KAAA,CAAU,GACvGO,IAAKH,QAAgBJ,EAAM,OAAO,SAAS,aAAaA,EAAM,OAAO,KAAK,KAAA,CAAU,GAEpFQ,IAAQJ,QACZD,EAAW,QACPM,EAAE,qCAAqC,EAAE,QAAQT,EAAM,YAAY,CAAC,IACnEA,EAAM,iBAAiBS,EAAE,+BAA+B,CAC/D;E,kBAIEtB,EAAA,GAAAC,EA0BWC,GAAA;GAzBR,UAAQ,CAAGgB,EAAA;GACZ,UAAS;;GAEE,WAASf,GAmBX,EAAA,OAnBsBwB,QAAY,CAKzCvB,EAcO,QAAAC,EAAAC,EAdOqB,CAAY,CAAA,GAAA,CACxBpB,EAYOC,GAAA;IAXJ,IAAIY,EAAA;IACJ,MAAMD,EAAA;IACN,QAAQH,EAAA,QAAU,WAAc,KAAA;IAChC,KAAKA,EAAA,QAAU,aAAgB,KAAA;IAC/B,eAAaA,EAAA,QAAU,oBAAuB,KAAA;IAC/C,SAAQ;IACP,UAAUE,EAAA;IACX,MAAK;IACL,WAAQ;;IAER,SAAAf,QAAW,CAARM,EAAAC,EAAAW,EAAA,KAAK,GAAA,CAAA,C;;;;;;;;;;GAGH,SAAAlB,QACX,CADWM,EAAA,MACXC,EAAGC,EAAAW,CAAA,CAAC,CAAA,oCAAA,CAAA,GAAA,CAAA,C"}
|
package/dist/domains/anzuUser/components/AUserSystemOverview.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -35,29 +35,29 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
35
35
|
}, Ee = ["data-cy"], De = {
|
|
36
36
|
class: "font-weight-medium",
|
|
37
37
|
style: { "min-width": "8rem" }
|
|
38
|
-
}, Oe = { class: "text-body-small text-medium-emphasis" }, ke = { class: "text-label-large" },
|
|
38
|
+
}, Oe = { class: "text-body-small text-medium-emphasis" }, ke = ["data-cy"], Ae = ["data-cy"], je = { class: "text-label-large" }, Me = {
|
|
39
39
|
key: 4,
|
|
40
40
|
class: "d-flex ga-2 mt-3"
|
|
41
|
-
},
|
|
41
|
+
}, Ne = {
|
|
42
42
|
key: 0,
|
|
43
43
|
class: "text-body-small align-self-center"
|
|
44
|
-
},
|
|
44
|
+
}, Pe = { "data-cy": "cross-system-not-found" }, Fe = { class: "text-body-small mt-2" }, Ie = {
|
|
45
45
|
key: 0,
|
|
46
46
|
class: "mt-2"
|
|
47
|
-
},
|
|
47
|
+
}, Le = { class: "mt-2" }, Re = /*@__PURE__*/ x({
|
|
48
48
|
__name: "AUserSystemOverview",
|
|
49
49
|
props: {
|
|
50
50
|
descriptors: {},
|
|
51
51
|
refreshHook: { type: Function }
|
|
52
52
|
},
|
|
53
53
|
emits: ["searched"],
|
|
54
|
-
setup(x, { expose:
|
|
55
|
-
let A = x,
|
|
54
|
+
setup(x, { expose: Re, emit: ze }) {
|
|
55
|
+
let A = x, Be = ze, { t: j } = me(), { showError: M } = t(), N = c(), { createAnzuUser: P } = n(), F = oe(), Ve = xe(), { search: He, refreshSystem: I, unresolvedSystems: L, cancel: Ue } = ae({
|
|
56
56
|
descriptors: A.descriptors,
|
|
57
57
|
refreshHook: A.refreshHook
|
|
58
58
|
}), R = C(""), z = C(/* @__PURE__ */ new Set()), B = async () => {
|
|
59
59
|
let e = R.value.trim();
|
|
60
|
-
e.length !== 0 && (
|
|
60
|
+
e.length !== 0 && (Be("searched", e), await He(e));
|
|
61
61
|
}, V = m(() => {
|
|
62
62
|
let e = /* @__PURE__ */ new Map();
|
|
63
63
|
for (let t of A.descriptors) {
|
|
@@ -65,19 +65,19 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
65
65
|
n && e.set(t.system, n);
|
|
66
66
|
}
|
|
67
67
|
return e;
|
|
68
|
-
}),
|
|
68
|
+
}), We = m(() => se(V.value)), H = m(() => V.value.size > 0), Ge = m(() => A.descriptors.some((e) => V.value.has(e.system) && l(e, "update"))), U = m(() => N.phase === re.Done), Ke = m(() => ie(N.searchTerm)), qe = m(() => U.value && !H.value && (Ke.value || L.value.length === 0) && A.descriptors.some((e) => e.isEnabled() && l(e, "create"))), W = m(() => N.identityConflict !== null), G = (e) => e.label ?? e.system, Je = (e) => {
|
|
69
69
|
let t = N.results.get(e.system)?.user;
|
|
70
70
|
return f(t) || d(t) || f(e.manage) ? null : e.manage(t);
|
|
71
71
|
}, K = (e) => {
|
|
72
72
|
let t = N.results.get(e.system)?.user;
|
|
73
73
|
return f(t) || d(t) || f(e.extraState) ? null : e.extraState(t);
|
|
74
|
-
},
|
|
74
|
+
}, Ye = {
|
|
75
75
|
ok: "success",
|
|
76
76
|
warn: "warning",
|
|
77
77
|
error: "error"
|
|
78
|
-
},
|
|
78
|
+
}, Xe = (e, t) => {
|
|
79
79
|
t !== s.Done && M(e + ": " + j("common.userSystem.bulk.outcome." + t));
|
|
80
|
-
},
|
|
80
|
+
}, Ze = (e) => f(e) || e.length === 0 ? void 0 : j("common.userSystem.bulk.concurrentChange", { fields: e.join(", ") }), Qe = async (e, t) => {
|
|
81
81
|
z.value = /* @__PURE__ */ new Set([...z.value, e]);
|
|
82
82
|
try {
|
|
83
83
|
await t();
|
|
@@ -85,23 +85,23 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
85
85
|
let t = new Set(z.value);
|
|
86
86
|
t.delete(e), z.value = t;
|
|
87
87
|
}
|
|
88
|
-
},
|
|
88
|
+
}, $e = async (e, t) => {
|
|
89
89
|
let n = N.resolvedId;
|
|
90
|
-
d(n) || await
|
|
90
|
+
d(n) || await Qe(e.system, async () => {
|
|
91
91
|
let r = await F.setEnabled(e, n, t);
|
|
92
|
-
|
|
92
|
+
Xe(G(e), r.outcome), await I(e.system);
|
|
93
93
|
});
|
|
94
|
-
},
|
|
94
|
+
}, et = async (e, t) => {
|
|
95
95
|
let n = N.resolvedId;
|
|
96
96
|
if (d(n)) return;
|
|
97
97
|
let r = A.descriptors.find((e) => V.value.has(e.system));
|
|
98
|
-
f(r) || await
|
|
98
|
+
f(r) || await Qe(e.system, async () => {
|
|
99
99
|
let i = await F.readSourceUser(r, n);
|
|
100
100
|
if (d(i)) {
|
|
101
101
|
M(j("common.userSystem.create.sourceUnreadable", { system: G(r) }));
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
|
-
if (i.enabled !==
|
|
104
|
+
if (i.enabled !== nt.value) {
|
|
105
105
|
await I(r.system), M(j("common.userSystem.create.sourceChanged"));
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
@@ -109,23 +109,23 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
109
109
|
let a = P(e.system);
|
|
110
110
|
a.id = i.id, a.email = t.email, a.person = u(t.person), a.avatar = u(t.avatar), a.enabled = i.enabled;
|
|
111
111
|
let ee = await F.createInSystem(e, a);
|
|
112
|
-
|
|
112
|
+
Xe(G(e), ee.outcome), await I(e.system);
|
|
113
113
|
});
|
|
114
|
-
},
|
|
114
|
+
}, tt = m(() => {
|
|
115
115
|
let e = A.descriptors.find((e) => V.value.has(e.system));
|
|
116
116
|
return f(e) ? null : V.value.get(e.system) ?? null;
|
|
117
|
-
}),
|
|
117
|
+
}), nt = m(() => {
|
|
118
118
|
let e = A.descriptors.find((e) => V.value.has(e.system));
|
|
119
119
|
return !f(e) && N.results.get(e.system)?.user?.enabled === !0;
|
|
120
|
-
}),
|
|
121
|
-
q.value = e,
|
|
122
|
-
},
|
|
120
|
+
}), rt = C(!1), q = C(o.Disable), it = C(!1), at = (e) => {
|
|
121
|
+
q.value = e, rt.value = !0;
|
|
122
|
+
}, ot = (e) => e.filter((e) => {
|
|
123
123
|
let t = A.descriptors.find((t) => t.system === e);
|
|
124
124
|
return !f(t) && l(t, "update");
|
|
125
|
-
}),
|
|
125
|
+
}), st = async (e) => {
|
|
126
126
|
let t = N.resolvedId;
|
|
127
127
|
if (d(t)) return;
|
|
128
|
-
let n =
|
|
128
|
+
let n = ot(e);
|
|
129
129
|
if (n.length === 0) return;
|
|
130
130
|
let r = q.value === o.Enable;
|
|
131
131
|
N.startBulk(q.value, n, t), await Promise.allSettled(n.map(async (e) => {
|
|
@@ -135,10 +135,10 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
135
135
|
let i = await F.setEnabled(n, t, r);
|
|
136
136
|
N.setBulkEntry(e, i.outcome), await I(e);
|
|
137
137
|
})), N.finishBulk();
|
|
138
|
-
},
|
|
138
|
+
}, ct = async (e) => {
|
|
139
139
|
let t = N.resolvedId;
|
|
140
140
|
if (d(t)) return;
|
|
141
|
-
let n =
|
|
141
|
+
let n = ot(e.systems);
|
|
142
142
|
if (n.length === 0) return;
|
|
143
143
|
N.startBulk(o.Metadata, n, t);
|
|
144
144
|
let r = new Map(V.value);
|
|
@@ -147,28 +147,28 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
147
147
|
if (f(i)) return;
|
|
148
148
|
N.setBulkEntry(n, s.Running);
|
|
149
149
|
let a = await F.writeMetadata(i, t, e.target, void 0, r.get(n) ?? null);
|
|
150
|
-
N.setBulkEntry(n, a.outcome,
|
|
150
|
+
N.setBulkEntry(n, a.outcome, Ze(a.concurrentFields)), await I(n);
|
|
151
151
|
})), N.finishBulk();
|
|
152
|
-
}, J = C(!1), Y = C(null), X = C(P()),
|
|
153
|
-
Y.value = A.descriptors.find((e) => e.isEnabled() && l(e, "create"))?.system ?? null, X.value = P(Y.value ?? ""),
|
|
154
|
-
},
|
|
152
|
+
}, J = C(!1), Y = C(null), X = C(P()), lt = C(!1), Z = C([]), Q = C(null), $ = !1, ut = () => {
|
|
153
|
+
Y.value = A.descriptors.find((e) => e.isEnabled() && l(e, "create"))?.system ?? null, X.value = P(Y.value ?? ""), Z.value = [], Q.value = null, J.value = !0;
|
|
154
|
+
}, dt = async () => {
|
|
155
155
|
let e = X.value.id, t = Y.value;
|
|
156
|
-
if (
|
|
157
|
-
if (d(e) || f(e) || !Number.isInteger(e) || e <= 0)
|
|
158
|
-
else if (await
|
|
159
|
-
|
|
156
|
+
if (Z.value = [], Q.value = null, !d(t)) {
|
|
157
|
+
if (d(e) || f(e) || !Number.isInteger(e) || e <= 0) Q.value = j("common.userSystem.create.invalidId");
|
|
158
|
+
else if (await Ve.value.$validate()) {
|
|
159
|
+
lt.value = !0;
|
|
160
160
|
try {
|
|
161
|
-
if (!await
|
|
162
|
-
|
|
161
|
+
if (!await He(String(e))) {
|
|
162
|
+
Q.value = j("common.userSystem.create.invalidId");
|
|
163
163
|
return;
|
|
164
164
|
}
|
|
165
|
-
if (
|
|
165
|
+
if ($) return;
|
|
166
166
|
if (V.value.size > 0) {
|
|
167
|
-
|
|
167
|
+
Z.value = [...V.value.keys()];
|
|
168
168
|
return;
|
|
169
169
|
}
|
|
170
170
|
if (L.value.length > 0) {
|
|
171
|
-
|
|
171
|
+
Z.value = L.value;
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
174
|
let n = A.descriptors.find((e) => e.system === t);
|
|
@@ -176,20 +176,20 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
176
176
|
let r = P(t);
|
|
177
177
|
r.id = e, r.email = X.value.email, r.person = u(X.value.person), r.avatar = u(X.value.avatar), r.enabled = !1;
|
|
178
178
|
let i = await F.createInSystem(n, r);
|
|
179
|
-
if (
|
|
180
|
-
J.value = !1, await
|
|
179
|
+
if (Xe(G(n), i.outcome), i.outcome !== s.Done || $) return;
|
|
180
|
+
J.value = !1, await He(String(e));
|
|
181
181
|
} finally {
|
|
182
|
-
|
|
182
|
+
lt.value = !1;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
},
|
|
186
|
+
}, ft = m(() => A.descriptors.find((e) => e.system === Y.value)?.requiredMetadata ?? !0), pt = m(() => A.descriptors.find((e) => e.system === Y.value)?.createNote), mt = m(() => A.descriptors.filter((e) => e.isEnabled() && l(e, "create")).map((e) => ({
|
|
187
187
|
value: e.system,
|
|
188
188
|
title: G(e)
|
|
189
189
|
})));
|
|
190
190
|
return le(() => {
|
|
191
|
-
|
|
192
|
-
}),
|
|
191
|
+
$ = !0, Ue(), N.reset();
|
|
192
|
+
}), Re({ search: async (e) => {
|
|
193
193
|
R.value = e, await B();
|
|
194
194
|
} }), (t, n) => {
|
|
195
195
|
let s = de("ABtnPrimary"), c = de("ABtnTertiary");
|
|
@@ -260,7 +260,7 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
260
260
|
}, null, 8, ["axes"])) : g("", !0),
|
|
261
261
|
K(e) ? (S(), h(he, {
|
|
262
262
|
key: 1,
|
|
263
|
-
color:
|
|
263
|
+
color: Ye[K(e).tone],
|
|
264
264
|
label: "",
|
|
265
265
|
size: "small"
|
|
266
266
|
}, {
|
|
@@ -269,14 +269,13 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
269
269
|
}, 1032, ["color"])) : g("", !0),
|
|
270
270
|
v("div", Oe, [y(w(T(N).results.get(e.system)?.user?.person.fullName) + " ", 1), T(N).results.get(e.system)?.user ? (S(), _(p, { key: 0 }, [y(" · " + w(T(N).results.get(e.system)?.user?.email), 1)], 64)) : g("", !0)]),
|
|
271
271
|
b(ge),
|
|
272
|
-
T(N).results.get(e.system) && T(ce)(T(N).results.get(e.system).axes) ? (S(), _(p, { key: 2 }, [T(l)(e, "update") ? (S(),
|
|
273
|
-
key: 0,
|
|
272
|
+
T(N).results.get(e.system) && T(ce)(T(N).results.get(e.system).axes) ? (S(), _(p, { key: 2 }, [T(l)(e, "update") ? (S(), _(p, { key: 0 }, [b(ye, {
|
|
274
273
|
size: "small",
|
|
275
274
|
variant: "text",
|
|
276
275
|
loading: z.value.has(e.system),
|
|
277
276
|
disabled: W.value,
|
|
278
277
|
"data-cy": `cross-system-toggle-${e.system}`,
|
|
279
|
-
onClick: (t) =>
|
|
278
|
+
onClick: (t) => $e(e, !T(N).results.get(e.system).user.enabled)
|
|
280
279
|
}, {
|
|
281
280
|
default: E(() => [y(w(T(N).results.get(e.system).user.enabled ? T(j)("common.userSystem.bulk.disable.title") : T(j)("common.userSystem.bulk.enable.title")), 1)]),
|
|
282
281
|
_: 2
|
|
@@ -285,21 +284,25 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
285
284
|
"disabled",
|
|
286
285
|
"data-cy",
|
|
287
286
|
"onClick"
|
|
288
|
-
])
|
|
289
|
-
key:
|
|
290
|
-
target:
|
|
287
|
+
]), Je(e) ? (S(), h(a, {
|
|
288
|
+
key: 0,
|
|
289
|
+
target: Je(e),
|
|
291
290
|
"system-label": G(e)
|
|
292
|
-
}, null, 8, ["target", "system-label"])) : g("", !0)], 64)) :
|
|
293
|
-
key:
|
|
291
|
+
}, null, 8, ["target", "system-label"])) : g("", !0)], 64)) : (S(), _("span", {
|
|
292
|
+
key: 1,
|
|
293
|
+
class: "text-body-small text-medium-emphasis",
|
|
294
|
+
"data-cy": `cross-system-no-write-${e.system}`
|
|
295
|
+
}, w(T(j)("common.userSystem.state.noWriteRight")), 9, ke))], 64)) : H.value && T(N).results.get(e.system) && T(N).results.get(e.system).axes.presence === "absent" ? (S(), _(p, { key: 3 }, [T(l)(e, "create") ? (S(), h(i, {
|
|
296
|
+
key: 0,
|
|
294
297
|
"system-label": G(e),
|
|
295
298
|
"create-note": e.createNote,
|
|
296
|
-
"will-be-enabled":
|
|
299
|
+
"will-be-enabled": nt.value,
|
|
297
300
|
loading: z.value.has(e.system),
|
|
298
301
|
disabled: W.value,
|
|
299
302
|
"required-metadata": e.requiredMetadata,
|
|
300
303
|
"user-id": T(N).resolvedId,
|
|
301
|
-
source:
|
|
302
|
-
onConfirm: (t) =>
|
|
304
|
+
source: tt.value,
|
|
305
|
+
onConfirm: (t) => et(e, t)
|
|
303
306
|
}, null, 8, [
|
|
304
307
|
"system-label",
|
|
305
308
|
"create-note",
|
|
@@ -310,20 +313,24 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
310
313
|
"user-id",
|
|
311
314
|
"source",
|
|
312
315
|
"onConfirm"
|
|
313
|
-
])) :
|
|
316
|
+
])) : (S(), _("span", {
|
|
317
|
+
key: 1,
|
|
318
|
+
class: "text-body-small text-medium-emphasis",
|
|
319
|
+
"data-cy": `cross-system-no-write-${e.system}`
|
|
320
|
+
}, w(T(j)("common.userSystem.state.noWriteRight")), 9, Ae))], 64)) : g("", !0)
|
|
314
321
|
], 8, Ee))), 128))]),
|
|
315
322
|
_: 1
|
|
316
323
|
})]),
|
|
317
324
|
_: 1
|
|
318
325
|
})) : g("", !0),
|
|
319
|
-
|
|
326
|
+
We.value.length > 0 ? (S(), h(O, {
|
|
320
327
|
key: 3,
|
|
321
328
|
variant: "flat",
|
|
322
329
|
class: "mt-3",
|
|
323
330
|
"data-cy": "cross-system-differences"
|
|
324
331
|
}, {
|
|
325
332
|
default: E(() => [b(k, null, {
|
|
326
|
-
default: E(() => [v("div",
|
|
333
|
+
default: E(() => [v("div", je, w(T(j)("common.userSystem.inconsistency.title")), 1), (S(!0), _(p, null, ue(We.value, (e) => (S(), _("div", {
|
|
327
334
|
key: e.field,
|
|
328
335
|
class: "text-body-small"
|
|
329
336
|
}, [v("strong", null, w(e.field), 1), (S(!0), _(p, null, ue(e.values, ([e, t]) => (S(), _("span", {
|
|
@@ -334,11 +341,11 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
334
341
|
})]),
|
|
335
342
|
_: 1
|
|
336
343
|
})) : g("", !0),
|
|
337
|
-
U.value && H.value &&
|
|
344
|
+
U.value && H.value && Ge.value ? (S(), _("div", Me, [
|
|
338
345
|
b(c, {
|
|
339
346
|
disabled: T(N).bulkRunning || W.value,
|
|
340
347
|
"data-cy": "cross-system-bulk-disable",
|
|
341
|
-
onClick: n[1] ||= (e) =>
|
|
348
|
+
onClick: n[1] ||= (e) => at(T(o).Disable)
|
|
342
349
|
}, {
|
|
343
350
|
default: E(() => [y(w(T(j)("common.userSystem.bulk.openDisable")), 1)]),
|
|
344
351
|
_: 1
|
|
@@ -346,7 +353,7 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
346
353
|
b(c, {
|
|
347
354
|
disabled: T(N).bulkRunning || W.value,
|
|
348
355
|
"data-cy": "cross-system-bulk-enable",
|
|
349
|
-
onClick: n[2] ||= (e) =>
|
|
356
|
+
onClick: n[2] ||= (e) => at(T(o).Enable)
|
|
350
357
|
}, {
|
|
351
358
|
default: E(() => [y(w(T(j)("common.userSystem.bulk.openEnable")), 1)]),
|
|
352
359
|
_: 1
|
|
@@ -354,12 +361,12 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
354
361
|
b(c, {
|
|
355
362
|
disabled: T(N).bulkRunning || W.value,
|
|
356
363
|
"data-cy": "cross-system-bulk-metadata",
|
|
357
|
-
onClick: n[3] ||= (e) =>
|
|
364
|
+
onClick: n[3] ||= (e) => it.value = !0
|
|
358
365
|
}, {
|
|
359
366
|
default: E(() => [y(w(T(j)("common.userSystem.bulk.openMetadata")), 1)]),
|
|
360
367
|
_: 1
|
|
361
368
|
}, 8, ["disabled"]),
|
|
362
|
-
T(N).bulkRunning ? (S(), _("div",
|
|
369
|
+
T(N).bulkRunning ? (S(), _("div", Ne, w(T(j)("common.userSystem.bulk.runningElsewhere")), 1)) : g("", !0)
|
|
363
370
|
])) : g("", !0),
|
|
364
371
|
U.value && !H.value ? (S(), h(O, {
|
|
365
372
|
key: 5,
|
|
@@ -367,15 +374,15 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
367
374
|
class: "mt-3"
|
|
368
375
|
}, {
|
|
369
376
|
default: E(() => [b(k, null, {
|
|
370
|
-
default: E(() => [v("div",
|
|
377
|
+
default: E(() => [v("div", Pe, w(T(j)("common.userSystem.search.notFound")), 1), qe.value ? (S(), h(s, {
|
|
371
378
|
key: 0,
|
|
372
379
|
class: "mt-2",
|
|
373
380
|
"data-cy": "cross-system-create-anywhere",
|
|
374
|
-
onClick:
|
|
381
|
+
onClick: ut
|
|
375
382
|
}, {
|
|
376
383
|
default: E(() => [y(w(T(j)("common.userSystem.search.createAnywhere")), 1)]),
|
|
377
384
|
_: 1
|
|
378
|
-
})) : !
|
|
385
|
+
})) : !Ke.value && T(L).length > 0 ? (S(), _(p, { key: 1 }, [v("div", Fe, w(T(j)("common.userSystem.create.notAuthoritative", { systems: T(L).join(", ") })), 1), b(c, {
|
|
379
386
|
class: "mt-2",
|
|
380
387
|
"data-cy": "cross-system-retry-search",
|
|
381
388
|
onClick: B
|
|
@@ -388,21 +395,21 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
388
395
|
_: 1
|
|
389
396
|
})) : g("", !0),
|
|
390
397
|
b(r, {
|
|
391
|
-
open:
|
|
392
|
-
"onUpdate:open": n[4] ||= (e) =>
|
|
398
|
+
open: rt.value,
|
|
399
|
+
"onUpdate:open": n[4] ||= (e) => rt.value = e,
|
|
393
400
|
action: q.value,
|
|
394
401
|
descriptors: x.descriptors,
|
|
395
|
-
onRun:
|
|
402
|
+
onRun: st
|
|
396
403
|
}, null, 8, [
|
|
397
404
|
"open",
|
|
398
405
|
"action",
|
|
399
406
|
"descriptors"
|
|
400
407
|
]),
|
|
401
408
|
b(te, {
|
|
402
|
-
open:
|
|
403
|
-
"onUpdate:open": n[5] ||= (e) =>
|
|
409
|
+
open: it.value,
|
|
410
|
+
"onUpdate:open": n[5] ||= (e) => it.value = e,
|
|
404
411
|
descriptors: x.descriptors,
|
|
405
|
-
onConfirm:
|
|
412
|
+
onConfirm: ct
|
|
406
413
|
}, null, 8, ["open", "descriptors"]),
|
|
407
414
|
b(be, {
|
|
408
415
|
modelValue: J.value,
|
|
@@ -420,7 +427,7 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
420
427
|
b(Se, {
|
|
421
428
|
modelValue: Y.value,
|
|
422
429
|
"onUpdate:modelValue": n[7] ||= (e) => Y.value = e,
|
|
423
|
-
items:
|
|
430
|
+
items: mt.value,
|
|
424
431
|
label: T(j)("common.userSystem.table.system"),
|
|
425
432
|
density: "compact",
|
|
426
433
|
"data-cy": "create-anywhere-system"
|
|
@@ -432,11 +439,11 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
432
439
|
b(ee, {
|
|
433
440
|
user: X.value,
|
|
434
441
|
"onUpdate:user": n[8] ||= (e) => X.value = e,
|
|
435
|
-
required:
|
|
442
|
+
required: ft.value,
|
|
436
443
|
"id-input": ""
|
|
437
444
|
}, null, 8, ["user", "required"]),
|
|
438
|
-
|
|
439
|
-
|
|
445
|
+
pt.value ? (S(), _("p", Ie, w(pt.value), 1)) : g("", !0),
|
|
446
|
+
Q.value ? (S(), h(D, {
|
|
440
447
|
key: 1,
|
|
441
448
|
type: "error",
|
|
442
449
|
variant: "tonal",
|
|
@@ -444,10 +451,10 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
444
451
|
class: "mt-2",
|
|
445
452
|
"data-cy": "create-anywhere-error"
|
|
446
453
|
}, {
|
|
447
|
-
default: E(() => [y(w(
|
|
454
|
+
default: E(() => [y(w(Q.value), 1)]),
|
|
448
455
|
_: 1
|
|
449
456
|
})) : g("", !0),
|
|
450
|
-
|
|
457
|
+
Z.value.length > 0 ? (S(), h(D, {
|
|
451
458
|
key: 2,
|
|
452
459
|
type: "warning",
|
|
453
460
|
variant: "tonal",
|
|
@@ -455,10 +462,10 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
455
462
|
class: "mt-2",
|
|
456
463
|
"data-cy": "create-anywhere-conflict"
|
|
457
464
|
}, {
|
|
458
|
-
default: E(() => [y(w(T(j)("common.userSystem.create.notAuthoritative", { systems:
|
|
465
|
+
default: E(() => [y(w(T(j)("common.userSystem.create.notAuthoritative", { systems: Z.value.join(", ") })), 1)]),
|
|
459
466
|
_: 1
|
|
460
467
|
})) : g("", !0),
|
|
461
|
-
v("p",
|
|
468
|
+
v("p", Le, w(T(j)("common.userSystem.create.note")), 1),
|
|
462
469
|
v("p", null, w(T(j)("common.userSystem.create.willBeDisabled")), 1)
|
|
463
470
|
]),
|
|
464
471
|
_: 1
|
|
@@ -471,9 +478,9 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
471
478
|
}),
|
|
472
479
|
b(ge),
|
|
473
480
|
b(s, {
|
|
474
|
-
loading:
|
|
481
|
+
loading: lt.value,
|
|
475
482
|
"data-cy": "create-anywhere-confirm",
|
|
476
|
-
onClick: pe(
|
|
483
|
+
onClick: pe(dt, ["stop"])
|
|
477
484
|
}, {
|
|
478
485
|
default: E(() => [y(w(T(j)("common.button.confirm")), 1)]),
|
|
479
486
|
_: 1
|
|
@@ -490,6 +497,6 @@ var Ce = { class: "d-flex align-center ga-2" }, we = {
|
|
|
490
497
|
};
|
|
491
498
|
}
|
|
492
499
|
});
|
|
493
|
-
export {
|
|
500
|
+
export { Re as default };
|
|
494
501
|
|
|
495
502
|
//# sourceMappingURL=AUserSystemOverview.vue_vue_type_script_setup_true_lang.js.map
|