@anzusystems/common-admin 2.0.0-rc.8 → 2.0.0-rc.9
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 +9 -0
- package/dist/AnzuSystemsCommonAdmin.js.map +1 -1
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.js +170 -169
- package/dist/domains/dam/assetDetail/components/AssetFileInfoPanel.js.map +1 -1
- package/dist/domains/dam/assetDetail/components/AssetFileInfoPanel.vue.d.ts +5 -1
- package/dist/domains/dam/assetDetail/components/AssetFileInfoPanel.vue_vue_type_script_setup_true_lang.js +94 -67
- package/dist/domains/dam/assetDetail/components/AssetFileInfoPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetDetail/components/AssetImage.js.map +1 -1
- package/dist/domains/dam/assetDetail/components/AssetImage.vue.d.ts +7 -0
- package/dist/domains/dam/assetDetail/components/AssetImage.vue_vue_type_script_setup_true_lang.js +27 -13
- package/dist/domains/dam/assetDetail/components/AssetImage.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetDetail/components/AssetImageMetaIcons.js.map +1 -1
- package/dist/domains/dam/assetDetail/components/AssetImageMetaIcons.vue.d.ts +7 -0
- package/dist/domains/dam/assetDetail/components/AssetImageMetaIcons.vue_vue_type_script_setup_true_lang.js +56 -28
- package/dist/domains/dam/assetDetail/components/AssetImageMetaIcons.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetDetail/components/AssetMetadata.js.map +1 -1
- package/dist/domains/dam/assetDetail/components/AssetMetadata.vue_vue_type_script_setup_true_lang.js +107 -89
- package/dist/domains/dam/assetDetail/components/AssetMetadata.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetDetail/composables/autoDeleteTimeLeft.d.ts +9 -0
- package/dist/domains/dam/assetDetail/composables/autoDeleteTimeLeft.js +18 -0
- package/dist/domains/dam/assetDetail/composables/autoDeleteTimeLeft.js.map +1 -0
- package/dist/domains/dam/assetDetail/store/assetDetailStore.d.ts +4 -2
- package/dist/domains/dam/assetSelect/components/AAssetListInner.vue.d.ts +4 -2
- package/dist/domains/dam/assetSelect/components/AAssetSelect.vue.d.ts +2 -1
- package/dist/domains/dam/assetSelect/components/AssetImagePreview.js.map +1 -1
- package/dist/domains/dam/assetSelect/components/AssetImagePreview.vue.d.ts +3 -0
- package/dist/domains/dam/assetSelect/components/AssetImagePreview.vue_vue_type_script_setup_true_lang.js +16 -5
- package/dist/domains/dam/assetSelect/components/AssetImagePreview.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetSelect/components/AssetSelectTableRowItem.js.map +1 -1
- package/dist/domains/dam/assetSelect/components/AssetSelectTableRowItem.vue_vue_type_script_setup_true_lang.js +8 -3
- package/dist/domains/dam/assetSelect/components/AssetSelectTableRowItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetSelect/components/AssetSelectTilesItem.js.map +1 -1
- package/dist/domains/dam/assetSelect/components/AssetSelectTilesItem.vue_vue_type_script_setup_true_lang.js +5 -3
- package/dist/domains/dam/assetSelect/components/AssetSelectTilesItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetSelect/composables/assetSelectItemActions.d.ts +2 -0
- package/dist/domains/dam/assetSelect/composables/assetSelectItemActions.js +37 -31
- package/dist/domains/dam/assetSelect/composables/assetSelectItemActions.js.map +1 -1
- package/dist/domains/dam/assetSelect/composables/assetSelectListActions.d.ts +4 -2
- package/dist/domains/dam/assetSelect/store/assetSelectStore.d.ts +8 -4
- package/dist/domains/dam/composables/commonAdminCoreDamOptions.d.ts +3 -0
- package/dist/domains/dam/composables/commonAdminCoreDamOptions.js +3 -0
- package/dist/domains/dam/composables/commonAdminCoreDamOptions.js.map +1 -1
- package/dist/domains/dam/cropper/store/imageRoiStore.d.ts +2 -2
- package/dist/domains/dam/imageWidget/components/ImageWidgetInner.vue.d.ts +2 -1
- package/dist/domains/dam/imageWidget/components/ImageWidgetMultipleInner.vue.d.ts +2 -1
- package/dist/domains/dam/imageWidget/composables/imageDialogDamAuthors.d.ts +2 -1
- package/dist/domains/dam/types/Asset.d.ts +3 -1
- package/dist/domains/dam/types/Asset.js.map +1 -1
- package/dist/domains/dam/types/AssetFile.d.ts +1 -1
- package/dist/domains/dam/types/AssetFile.js.map +1 -1
- package/dist/domains/dam/types/AssetLicence.d.ts +7 -0
- package/dist/domains/dam/user/api/assetLicenceApi.d.ts +2 -1
- package/dist/domains/dam/user/api/assetLicenceApi.js +4 -4
- package/dist/domains/dam/user/api/assetLicenceApi.js.map +1 -1
- package/dist/domains/dam/user/composables/cachedAssetLicences.d.ts +17 -0
- package/dist/domains/dam/user/composables/cachedAssetLicences.js +35 -0
- package/dist/domains/dam/user/composables/cachedAssetLicences.js.map +1 -0
- package/dist/lib.d.ts +3 -2
- package/dist/locales/cs/common/damImage.js +29 -0
- package/dist/locales/cs/common/damImage.js.map +1 -1
- package/dist/locales/cs.d.ts +3 -0
- package/dist/locales/en/common/damImage.js +29 -0
- package/dist/locales/en/common/damImage.js.map +1 -1
- package/dist/locales/en.d.ts +3 -0
- package/dist/locales/sk/common/damImage.js +29 -0
- package/dist/locales/sk/common/damImage.js.map +1 -1
- package/dist/locales/sk.d.ts +3 -0
- package/dist/plugins/i18n.d.ts +3 -0
- package/package.json +2 -2
|
@@ -286,7 +286,7 @@ export declare const useAssetSelectStore: import('pinia').SetupStoreDefinition<"
|
|
|
286
286
|
};
|
|
287
287
|
} | undefined;
|
|
288
288
|
metadata: {
|
|
289
|
-
exifData:
|
|
289
|
+
exifData: Record<string, string | number | boolean | null>;
|
|
290
290
|
id: string;
|
|
291
291
|
createdAt: string;
|
|
292
292
|
modifiedAt: string;
|
|
@@ -575,6 +575,7 @@ export declare const useAssetSelectStore: import('pinia').SetupStoreDefinition<"
|
|
|
575
575
|
mainFileSingleUse: Readonly<boolean | null>;
|
|
576
576
|
mainFileInternal: Readonly<boolean | null>;
|
|
577
577
|
mainFileOverrideInternal: Readonly<boolean | null>;
|
|
578
|
+
autoDeleteAt: Readonly<import('../../../../shared/types/common').DatetimeUTCNullable>;
|
|
578
579
|
createdAt: import('../../../../shared/types/common').DatetimeUTC;
|
|
579
580
|
modifiedAt: import('../../../../shared/types/common').DatetimeUTC;
|
|
580
581
|
modifiedBy: import('../../../../shared/types/common').IntegerIdNullable;
|
|
@@ -668,7 +669,7 @@ export declare const useAssetSelectStore: import('pinia').SetupStoreDefinition<"
|
|
|
668
669
|
};
|
|
669
670
|
} | undefined;
|
|
670
671
|
metadata: {
|
|
671
|
-
exifData:
|
|
672
|
+
exifData: Record<string, string | number | boolean | null>;
|
|
672
673
|
id: string;
|
|
673
674
|
createdAt: string;
|
|
674
675
|
modifiedAt: string;
|
|
@@ -957,6 +958,7 @@ export declare const useAssetSelectStore: import('pinia').SetupStoreDefinition<"
|
|
|
957
958
|
mainFileSingleUse: Readonly<boolean | null>;
|
|
958
959
|
mainFileInternal: Readonly<boolean | null>;
|
|
959
960
|
mainFileOverrideInternal: Readonly<boolean | null>;
|
|
961
|
+
autoDeleteAt: Readonly<import('../../../../shared/types/common').DatetimeUTCNullable>;
|
|
960
962
|
createdAt: import('../../../../shared/types/common').DatetimeUTC;
|
|
961
963
|
modifiedAt: import('../../../../shared/types/common').DatetimeUTC;
|
|
962
964
|
modifiedBy: import('../../../../shared/types/common').IntegerIdNullable;
|
|
@@ -1052,7 +1054,7 @@ export declare const useAssetSelectStore: import('pinia').SetupStoreDefinition<"
|
|
|
1052
1054
|
};
|
|
1053
1055
|
} | undefined;
|
|
1054
1056
|
metadata: {
|
|
1055
|
-
exifData:
|
|
1057
|
+
exifData: Record<string, string | number | boolean | null>;
|
|
1056
1058
|
id: string;
|
|
1057
1059
|
createdAt: string;
|
|
1058
1060
|
modifiedAt: string;
|
|
@@ -1341,6 +1343,7 @@ export declare const useAssetSelectStore: import('pinia').SetupStoreDefinition<"
|
|
|
1341
1343
|
mainFileSingleUse: Readonly<boolean | null>;
|
|
1342
1344
|
mainFileInternal: Readonly<boolean | null>;
|
|
1343
1345
|
mainFileOverrideInternal: Readonly<boolean | null>;
|
|
1346
|
+
autoDeleteAt: Readonly<import('../../../../shared/types/common').DatetimeUTCNullable>;
|
|
1344
1347
|
createdAt: import('../../../../shared/types/common').DatetimeUTC;
|
|
1345
1348
|
modifiedAt: import('../../../../shared/types/common').DatetimeUTC;
|
|
1346
1349
|
modifiedBy: import('../../../../shared/types/common').IntegerIdNullable;
|
|
@@ -1434,7 +1437,7 @@ export declare const useAssetSelectStore: import('pinia').SetupStoreDefinition<"
|
|
|
1434
1437
|
};
|
|
1435
1438
|
} | undefined;
|
|
1436
1439
|
metadata: {
|
|
1437
|
-
exifData:
|
|
1440
|
+
exifData: Record<string, string | number | boolean | null>;
|
|
1438
1441
|
id: string;
|
|
1439
1442
|
createdAt: string;
|
|
1440
1443
|
modifiedAt: string;
|
|
@@ -1723,6 +1726,7 @@ export declare const useAssetSelectStore: import('pinia').SetupStoreDefinition<"
|
|
|
1723
1726
|
mainFileSingleUse: Readonly<boolean | null>;
|
|
1724
1727
|
mainFileInternal: Readonly<boolean | null>;
|
|
1725
1728
|
mainFileOverrideInternal: Readonly<boolean | null>;
|
|
1729
|
+
autoDeleteAt: Readonly<import('../../../../shared/types/common').DatetimeUTCNullable>;
|
|
1726
1730
|
createdAt: import('../../../../shared/types/common').DatetimeUTC;
|
|
1727
1731
|
modifiedAt: import('../../../../shared/types/common').DatetimeUTC;
|
|
1728
1732
|
modifiedBy: import('../../../../shared/types/common').IntegerIdNullable;
|
|
@@ -27,6 +27,9 @@ export declare function useCommonAdminCoreDamOptions(configName: string): {
|
|
|
27
27
|
copyToLicenceEnabled: boolean | undefined;
|
|
28
28
|
showSourceEnabled: boolean;
|
|
29
29
|
showFileInfoEnabled: boolean;
|
|
30
|
+
showAutoDeleteEnabled: boolean;
|
|
31
|
+
showLicenceEnabled: boolean;
|
|
32
|
+
showLicenceBadgeEnabled: boolean;
|
|
30
33
|
sourceLabel: string;
|
|
31
34
|
editAssetLabel: string;
|
|
32
35
|
addFromDamLabel: string;
|
|
@@ -45,6 +45,9 @@ function m(e) {
|
|
|
45
45
|
copyToLicenceEnabled: r.value.configs[e].copyToLicenceEnabled,
|
|
46
46
|
showSourceEnabled: r.value.configs[e].showSourceEnabled ?? !0,
|
|
47
47
|
showFileInfoEnabled: r.value.configs[e].showFileInfoEnabled ?? !0,
|
|
48
|
+
showAutoDeleteEnabled: r.value.configs[e].showAutoDeleteEnabled ?? !1,
|
|
49
|
+
showLicenceEnabled: r.value.configs[e].showLicenceEnabled ?? !1,
|
|
50
|
+
showLicenceBadgeEnabled: r.value.configs[e].showLicenceBadgeEnabled ?? !1,
|
|
48
51
|
sourceLabel: r.value.configs[e].sourceLabel || i("common.damImage.image.model.texts.source"),
|
|
49
52
|
editAssetLabel: r.value.configs[e].editAssetLabel || i("common.damImage.image.button.editAsset"),
|
|
50
53
|
addFromDamLabel: r.value.configs[e].addFromDamLabel || i("common.damImage.image.button.addFromDam"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonAdminCoreDamOptions.js","names":["commonAdminCoreDamOptions","t","commonT","defaultDescriptionValidation","defaultSourceValidation","DEFAULT_END_POINT_ROI","DEFAULT_END_POINT_IMAGE","DEFAULT_END_POINT_AUTHOR","DEFAULT_END_POINT_KEYWORD","resolveRoiUpdateAcl","isUndefined","config","resolveImageRotateAcl","damEndPointsOf","configs","coreDamOptions","configName","useCommonAdminCoreDamOptions","normalizeDamNotificationOptions","webSocketUrl","isString","raw","damNotificationSockets","useCommonAdminCoreDamOptionsGlobal","sockets","notification","name","options","shared","socket"],"sources":["../../../../src/domains/dam/composables/commonAdminCoreDamOptions.ts"],"sourcesContent":["import type { CommonAdminCoreDamConfig, ImageFieldValidationConfig } from '@/AnzuSystemsCommonAdmin'\nimport type { AclValue } from '@/domains/auth/types/Permission'\nimport { coreDamOptions as commonAdminCoreDamOptions } from '@/plugins/pluginOptions'\nimport { SYSTEM_DAM } from '@/domains/dam/api/damConstants'\nimport {\n DAM_END_POINT_ASSET_CUSTOM_FORM,\n DAM_END_POINT_ASSET_LICENCE,\n DAM_END_POINT_CMS_ASSET,\n DAM_END_POINT_CONFIGURATION,\n DAM_END_POINT_PODCAST,\n DAM_END_POINT_PUB_CONFIGURATION,\n DAM_END_POINT_USER,\n} from '@/domains/dam/api/damEndPoints'\nimport { isString, isUndefined } from '@/shared/utils/common'\nimport { commonT } from '@/plugins/i18n'\n\nconst t = commonT\n\nconst defaultDescriptionValidation: ImageFieldValidationConfig = {\n required: false,\n min: 0,\n max: 2000,\n}\nconst defaultSourceValidation: ImageFieldValidationConfig = { required: true, min: 0, max: 255 }\n\nexport { initCommonAdminCoreDamOptions } from '@/plugins/pluginOptions'\n\nconst DEFAULT_END_POINT_ROI = '/adm/v1/roi'\nconst DEFAULT_END_POINT_IMAGE = '/adm/v1/image'\nconst DEFAULT_END_POINT_AUTHOR = '/adm/v1/author'\nconst DEFAULT_END_POINT_KEYWORD = '/adm/v1/keyword'\n\nconst resolveRoiUpdateAcl = (config: CommonAdminCoreDamConfig): AclValue | null => {\n if (!isUndefined(config.roiUpdateAcl)) return config.roiUpdateAcl\n const endPointRoi = config.endPointRoi || DEFAULT_END_POINT_ROI\n\n return endPointRoi === DEFAULT_END_POINT_ROI ? 'dam_regionOfInterest_update' : null\n}\n\nconst resolveImageRotateAcl = (config: CommonAdminCoreDamConfig): AclValue | null => {\n if (!isUndefined(config.imageRotateAcl)) return config.imageRotateAcl\n const endPointImage = config.endPointImage || DEFAULT_END_POINT_IMAGE\n\n return endPointImage === DEFAULT_END_POINT_IMAGE ? 'dam_image_update' : null\n}\n\n/**\n * Keyed endpoints of configuration `configName`, each falling back to its default.\n * Never throws: without a configured plugin or that configuration, all are defaults.\n * Apps call the config loaders at startup (admin-dam's `useDamConfigState(damClient)`).\n */\nexport function damEndPointsOf(configName: string) {\n const configs = commonAdminCoreDamOptions.value?.configs\n const config = configs && Object.hasOwn(configs, configName) ? configs[configName] : undefined\n\n return {\n endPointConfiguration: config?.endPointConfiguration || DAM_END_POINT_CONFIGURATION,\n endPointPubConfiguration: config?.endPointPubConfiguration || DAM_END_POINT_PUB_CONFIGURATION,\n endPointAssetLicence: config?.endPointAssetLicence || DAM_END_POINT_ASSET_LICENCE,\n endPointAssetCustomForm: config?.endPointAssetCustomForm || DAM_END_POINT_ASSET_CUSTOM_FORM,\n endPointUser: config?.endPointUser || DAM_END_POINT_USER,\n endPointPodcast: config?.endPointPodcast || DAM_END_POINT_PODCAST,\n endPointCmsAsset: config?.endPointCmsAsset || DAM_END_POINT_CMS_ASSET,\n }\n}\n\n/**\n * Options of DAM configuration `configName`. Internal. The name is required so a call cannot fall back to `default`.\n */\nexport function useCommonAdminCoreDamOptions(configName: string) {\n if (\n isUndefined(commonAdminCoreDamOptions.value) ||\n isUndefined(commonAdminCoreDamOptions.value.configs) ||\n // Own keys only. Inherited names like `constructor` are not configurations.\n !Object.hasOwn(commonAdminCoreDamOptions.value.configs, configName) ||\n isUndefined(commonAdminCoreDamOptions.value.configs[configName])\n ) {\n throw new Error(\"Composable can't be used without properly configured common admin.\")\n }\n\n return {\n damClient: commonAdminCoreDamOptions.value.configs[configName].damClient,\n endPointImage: commonAdminCoreDamOptions.value.configs[configName].endPointImage || DEFAULT_END_POINT_IMAGE,\n imageRotateAcl: resolveImageRotateAcl(commonAdminCoreDamOptions.value.configs[configName]),\n endPointAsset: commonAdminCoreDamOptions.value.configs[configName].endPointAsset || '/adm/v1/asset',\n endPointRoi: commonAdminCoreDamOptions.value.configs[configName].endPointRoi || DEFAULT_END_POINT_ROI,\n endPointAuthor: commonAdminCoreDamOptions.value.configs[configName].endPointAuthor || DEFAULT_END_POINT_AUTHOR,\n endPointKeyword: commonAdminCoreDamOptions.value.configs[configName].endPointKeyword || DEFAULT_END_POINT_KEYWORD,\n ...damEndPointsOf(configName),\n // The system whose user decides the licences. `false` means every licence.\n currentUser: commonAdminCoreDamOptions.value.configs[configName].currentUser ?? SYSTEM_DAM,\n adminDomain:\n commonAdminCoreDamOptions.value.configs[configName].adminDomain ?? commonAdminCoreDamOptions.value.adminDomain,\n apiTimeout:\n commonAdminCoreDamOptions.value.configs[configName].apiTimeout ?? commonAdminCoreDamOptions.value.apiTimeout,\n roiUpdateAcl: resolveRoiUpdateAcl(commonAdminCoreDamOptions.value.configs[configName]),\n keywordCreateAcl: commonAdminCoreDamOptions.value.configs[configName].keywordCreateAcl,\n authorCreateAcl: commonAdminCoreDamOptions.value.configs[configName].authorCreateAcl,\n mainFileSingleUseEnabled: commonAdminCoreDamOptions.value.configs[configName].mainFileSingleUseEnabled ?? true,\n // Passed as configured. Readers treat it as on unless `false`.\n copyToLicenceEnabled: commonAdminCoreDamOptions.value.configs[configName].copyToLicenceEnabled,\n showSourceEnabled: commonAdminCoreDamOptions.value.configs[configName].showSourceEnabled ?? true,\n showFileInfoEnabled: commonAdminCoreDamOptions.value.configs[configName].showFileInfoEnabled ?? true,\n sourceLabel:\n commonAdminCoreDamOptions.value.configs[configName].sourceLabel || t('common.damImage.image.model.texts.source'),\n editAssetLabel:\n commonAdminCoreDamOptions.value.configs[configName].editAssetLabel || t('common.damImage.image.button.editAsset'),\n addFromDamLabel:\n commonAdminCoreDamOptions.value.configs[configName].addFromDamLabel ||\n t('common.damImage.image.button.addFromDam'),\n replaceFromDamLabel:\n commonAdminCoreDamOptions.value.configs[configName].replaceFromDamLabel ||\n t('common.damImage.image.button.replaceFromDam'),\n descriptionValidation: {\n ...defaultDescriptionValidation,\n ...commonAdminCoreDamOptions.value.configs[configName].descriptionValidation,\n },\n sourceValidation: {\n ...defaultSourceValidation,\n ...commonAdminCoreDamOptions.value.configs[configName].sourceValidation,\n },\n customUploadMetadataToImageMap: commonAdminCoreDamOptions.value.configs[configName].customUploadMetadataToImageMap,\n customAssetSelectMetadataToImageMap:\n commonAdminCoreDamOptions.value.configs[configName].customAssetSelectMetadataToImageMap,\n // undefined means all filters\n assetListEnabledFilters: commonAdminCoreDamOptions.value.configs[configName].assetListEnabledFilters,\n simpleAssetSidebarEnabled: commonAdminCoreDamOptions.value.configs[configName].simpleAssetSidebar ?? false,\n }\n}\n\nexport interface DamNotificationOptions {\n enabled: boolean\n webSocketUrl: string\n}\n\n// A deployment template quotes the value and renders booleans as `True`.\n// So the string \"true\" also enables it, in any case and with\n// surrounding whitespace. Any other string, including \"false\", is off.\nexport const normalizeDamNotificationOptions = (\n raw: { enabled?: boolean | string; webSocketUrl?: string } | undefined\n): DamNotificationOptions => {\n const webSocketUrl = isString(raw?.webSocketUrl) ? raw.webSocketUrl.trim() : ''\n const on = raw?.enabled === true || (isString(raw?.enabled) && raw.enabled.trim().toLowerCase() === 'true')\n\n return { enabled: on && webSocketUrl.length > 0, webSocketUrl }\n}\n\n/** One notification socket of the page and the DAM configurations that use it. */\nexport interface DamNotificationSocketOptions {\n options: DamNotificationOptions\n configNames: string[]\n}\n\n/**\n * One socket per distinct service, shared by the configurations that name it.\n * `default`'s comes first, even when off: its own `notification`, else the root one.\n * Other configurations get one only with their own enabled `notification`.\n */\nexport function damNotificationSockets(): DamNotificationSocketOptions[] {\n const { notification } = useCommonAdminCoreDamOptionsGlobal()\n const configs = commonAdminCoreDamOptions.value?.configs ?? {}\n const ofDefault = isUndefined(configs.default?.notification)\n ? notification\n : normalizeDamNotificationOptions(configs.default.notification)\n const sockets: DamNotificationSocketOptions[] = [{ options: ofDefault, configNames: ['default'] }]\n for (const [name, config] of Object.entries(configs)) {\n if (name === 'default' || isUndefined(config?.notification)) continue\n const options = normalizeDamNotificationOptions(config.notification)\n if (!options.enabled) continue\n const shared = sockets.find(\n (socket) => socket.options.enabled && socket.options.webSocketUrl === options.webSocketUrl\n )\n if (shared) shared.configNames.push(name)\n else sockets.push({ options, configNames: [name] })\n }\n return sockets\n}\n\nexport function useCommonAdminCoreDamOptionsGlobal() {\n if (isUndefined(commonAdminCoreDamOptions.value) || isUndefined(commonAdminCoreDamOptions.value.configs)) {\n throw new Error(\"Composable can't be used without properly configured common admin.\")\n }\n\n return {\n apiTimeout: commonAdminCoreDamOptions.value.apiTimeout,\n notification: normalizeDamNotificationOptions(commonAdminCoreDamOptions.value.notification),\n adminDomain: commonAdminCoreDamOptions.value.adminDomain,\n }\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"commonAdminCoreDamOptions.js","names":["commonAdminCoreDamOptions","t","commonT","defaultDescriptionValidation","defaultSourceValidation","DEFAULT_END_POINT_ROI","DEFAULT_END_POINT_IMAGE","DEFAULT_END_POINT_AUTHOR","DEFAULT_END_POINT_KEYWORD","resolveRoiUpdateAcl","isUndefined","config","resolveImageRotateAcl","damEndPointsOf","configs","coreDamOptions","configName","useCommonAdminCoreDamOptions","normalizeDamNotificationOptions","webSocketUrl","isString","raw","damNotificationSockets","useCommonAdminCoreDamOptionsGlobal","sockets","notification","name","options","shared","socket"],"sources":["../../../../src/domains/dam/composables/commonAdminCoreDamOptions.ts"],"sourcesContent":["import type { CommonAdminCoreDamConfig, ImageFieldValidationConfig } from '@/AnzuSystemsCommonAdmin'\nimport type { AclValue } from '@/domains/auth/types/Permission'\nimport { coreDamOptions as commonAdminCoreDamOptions } from '@/plugins/pluginOptions'\nimport { SYSTEM_DAM } from '@/domains/dam/api/damConstants'\nimport {\n DAM_END_POINT_ASSET_CUSTOM_FORM,\n DAM_END_POINT_ASSET_LICENCE,\n DAM_END_POINT_CMS_ASSET,\n DAM_END_POINT_CONFIGURATION,\n DAM_END_POINT_PODCAST,\n DAM_END_POINT_PUB_CONFIGURATION,\n DAM_END_POINT_USER,\n} from '@/domains/dam/api/damEndPoints'\nimport { isString, isUndefined } from '@/shared/utils/common'\nimport { commonT } from '@/plugins/i18n'\n\nconst t = commonT\n\nconst defaultDescriptionValidation: ImageFieldValidationConfig = {\n required: false,\n min: 0,\n max: 2000,\n}\nconst defaultSourceValidation: ImageFieldValidationConfig = { required: true, min: 0, max: 255 }\n\nexport { initCommonAdminCoreDamOptions } from '@/plugins/pluginOptions'\n\nconst DEFAULT_END_POINT_ROI = '/adm/v1/roi'\nconst DEFAULT_END_POINT_IMAGE = '/adm/v1/image'\nconst DEFAULT_END_POINT_AUTHOR = '/adm/v1/author'\nconst DEFAULT_END_POINT_KEYWORD = '/adm/v1/keyword'\n\nconst resolveRoiUpdateAcl = (config: CommonAdminCoreDamConfig): AclValue | null => {\n if (!isUndefined(config.roiUpdateAcl)) return config.roiUpdateAcl\n const endPointRoi = config.endPointRoi || DEFAULT_END_POINT_ROI\n\n return endPointRoi === DEFAULT_END_POINT_ROI ? 'dam_regionOfInterest_update' : null\n}\n\nconst resolveImageRotateAcl = (config: CommonAdminCoreDamConfig): AclValue | null => {\n if (!isUndefined(config.imageRotateAcl)) return config.imageRotateAcl\n const endPointImage = config.endPointImage || DEFAULT_END_POINT_IMAGE\n\n return endPointImage === DEFAULT_END_POINT_IMAGE ? 'dam_image_update' : null\n}\n\n/**\n * Keyed endpoints of configuration `configName`, each falling back to its default.\n * Never throws: without a configured plugin or that configuration, all are defaults.\n * Apps call the config loaders at startup (admin-dam's `useDamConfigState(damClient)`).\n */\nexport function damEndPointsOf(configName: string) {\n const configs = commonAdminCoreDamOptions.value?.configs\n const config = configs && Object.hasOwn(configs, configName) ? configs[configName] : undefined\n\n return {\n endPointConfiguration: config?.endPointConfiguration || DAM_END_POINT_CONFIGURATION,\n endPointPubConfiguration: config?.endPointPubConfiguration || DAM_END_POINT_PUB_CONFIGURATION,\n endPointAssetLicence: config?.endPointAssetLicence || DAM_END_POINT_ASSET_LICENCE,\n endPointAssetCustomForm: config?.endPointAssetCustomForm || DAM_END_POINT_ASSET_CUSTOM_FORM,\n endPointUser: config?.endPointUser || DAM_END_POINT_USER,\n endPointPodcast: config?.endPointPodcast || DAM_END_POINT_PODCAST,\n endPointCmsAsset: config?.endPointCmsAsset || DAM_END_POINT_CMS_ASSET,\n }\n}\n\n/**\n * Options of DAM configuration `configName`. Internal. The name is required so a call cannot fall back to `default`.\n */\nexport function useCommonAdminCoreDamOptions(configName: string) {\n if (\n isUndefined(commonAdminCoreDamOptions.value) ||\n isUndefined(commonAdminCoreDamOptions.value.configs) ||\n // Own keys only. Inherited names like `constructor` are not configurations.\n !Object.hasOwn(commonAdminCoreDamOptions.value.configs, configName) ||\n isUndefined(commonAdminCoreDamOptions.value.configs[configName])\n ) {\n throw new Error(\"Composable can't be used without properly configured common admin.\")\n }\n\n return {\n damClient: commonAdminCoreDamOptions.value.configs[configName].damClient,\n endPointImage: commonAdminCoreDamOptions.value.configs[configName].endPointImage || DEFAULT_END_POINT_IMAGE,\n imageRotateAcl: resolveImageRotateAcl(commonAdminCoreDamOptions.value.configs[configName]),\n endPointAsset: commonAdminCoreDamOptions.value.configs[configName].endPointAsset || '/adm/v1/asset',\n endPointRoi: commonAdminCoreDamOptions.value.configs[configName].endPointRoi || DEFAULT_END_POINT_ROI,\n endPointAuthor: commonAdminCoreDamOptions.value.configs[configName].endPointAuthor || DEFAULT_END_POINT_AUTHOR,\n endPointKeyword: commonAdminCoreDamOptions.value.configs[configName].endPointKeyword || DEFAULT_END_POINT_KEYWORD,\n ...damEndPointsOf(configName),\n // The system whose user decides the licences. `false` means every licence.\n currentUser: commonAdminCoreDamOptions.value.configs[configName].currentUser ?? SYSTEM_DAM,\n adminDomain:\n commonAdminCoreDamOptions.value.configs[configName].adminDomain ?? commonAdminCoreDamOptions.value.adminDomain,\n apiTimeout:\n commonAdminCoreDamOptions.value.configs[configName].apiTimeout ?? commonAdminCoreDamOptions.value.apiTimeout,\n roiUpdateAcl: resolveRoiUpdateAcl(commonAdminCoreDamOptions.value.configs[configName]),\n keywordCreateAcl: commonAdminCoreDamOptions.value.configs[configName].keywordCreateAcl,\n authorCreateAcl: commonAdminCoreDamOptions.value.configs[configName].authorCreateAcl,\n mainFileSingleUseEnabled: commonAdminCoreDamOptions.value.configs[configName].mainFileSingleUseEnabled ?? true,\n // Passed as configured. Readers treat it as on unless `false`.\n copyToLicenceEnabled: commonAdminCoreDamOptions.value.configs[configName].copyToLicenceEnabled,\n showSourceEnabled: commonAdminCoreDamOptions.value.configs[configName].showSourceEnabled ?? true,\n showFileInfoEnabled: commonAdminCoreDamOptions.value.configs[configName].showFileInfoEnabled ?? true,\n showAutoDeleteEnabled: commonAdminCoreDamOptions.value.configs[configName].showAutoDeleteEnabled ?? false,\n showLicenceEnabled: commonAdminCoreDamOptions.value.configs[configName].showLicenceEnabled ?? false,\n showLicenceBadgeEnabled: commonAdminCoreDamOptions.value.configs[configName].showLicenceBadgeEnabled ?? false,\n sourceLabel:\n commonAdminCoreDamOptions.value.configs[configName].sourceLabel || t('common.damImage.image.model.texts.source'),\n editAssetLabel:\n commonAdminCoreDamOptions.value.configs[configName].editAssetLabel || t('common.damImage.image.button.editAsset'),\n addFromDamLabel:\n commonAdminCoreDamOptions.value.configs[configName].addFromDamLabel ||\n t('common.damImage.image.button.addFromDam'),\n replaceFromDamLabel:\n commonAdminCoreDamOptions.value.configs[configName].replaceFromDamLabel ||\n t('common.damImage.image.button.replaceFromDam'),\n descriptionValidation: {\n ...defaultDescriptionValidation,\n ...commonAdminCoreDamOptions.value.configs[configName].descriptionValidation,\n },\n sourceValidation: {\n ...defaultSourceValidation,\n ...commonAdminCoreDamOptions.value.configs[configName].sourceValidation,\n },\n customUploadMetadataToImageMap: commonAdminCoreDamOptions.value.configs[configName].customUploadMetadataToImageMap,\n customAssetSelectMetadataToImageMap:\n commonAdminCoreDamOptions.value.configs[configName].customAssetSelectMetadataToImageMap,\n // undefined means all filters\n assetListEnabledFilters: commonAdminCoreDamOptions.value.configs[configName].assetListEnabledFilters,\n simpleAssetSidebarEnabled: commonAdminCoreDamOptions.value.configs[configName].simpleAssetSidebar ?? false,\n }\n}\n\nexport interface DamNotificationOptions {\n enabled: boolean\n webSocketUrl: string\n}\n\n// A deployment template quotes the value and renders booleans as `True`.\n// So the string \"true\" also enables it, in any case and with\n// surrounding whitespace. Any other string, including \"false\", is off.\nexport const normalizeDamNotificationOptions = (\n raw: { enabled?: boolean | string; webSocketUrl?: string } | undefined\n): DamNotificationOptions => {\n const webSocketUrl = isString(raw?.webSocketUrl) ? raw.webSocketUrl.trim() : ''\n const on = raw?.enabled === true || (isString(raw?.enabled) && raw.enabled.trim().toLowerCase() === 'true')\n\n return { enabled: on && webSocketUrl.length > 0, webSocketUrl }\n}\n\n/** One notification socket of the page and the DAM configurations that use it. */\nexport interface DamNotificationSocketOptions {\n options: DamNotificationOptions\n configNames: string[]\n}\n\n/**\n * One socket per distinct service, shared by the configurations that name it.\n * `default`'s comes first, even when off: its own `notification`, else the root one.\n * Other configurations get one only with their own enabled `notification`.\n */\nexport function damNotificationSockets(): DamNotificationSocketOptions[] {\n const { notification } = useCommonAdminCoreDamOptionsGlobal()\n const configs = commonAdminCoreDamOptions.value?.configs ?? {}\n const ofDefault = isUndefined(configs.default?.notification)\n ? notification\n : normalizeDamNotificationOptions(configs.default.notification)\n const sockets: DamNotificationSocketOptions[] = [{ options: ofDefault, configNames: ['default'] }]\n for (const [name, config] of Object.entries(configs)) {\n if (name === 'default' || isUndefined(config?.notification)) continue\n const options = normalizeDamNotificationOptions(config.notification)\n if (!options.enabled) continue\n const shared = sockets.find(\n (socket) => socket.options.enabled && socket.options.webSocketUrl === options.webSocketUrl\n )\n if (shared) shared.configNames.push(name)\n else sockets.push({ options, configNames: [name] })\n }\n return sockets\n}\n\nexport function useCommonAdminCoreDamOptionsGlobal() {\n if (isUndefined(commonAdminCoreDamOptions.value) || isUndefined(commonAdminCoreDamOptions.value.configs)) {\n throw new Error(\"Composable can't be used without properly configured common admin.\")\n }\n\n return {\n apiTimeout: commonAdminCoreDamOptions.value.apiTimeout,\n notification: normalizeDamNotificationOptions(commonAdminCoreDamOptions.value.notification),\n adminDomain: commonAdminCoreDamOptions.value.adminDomain,\n }\n}\n"],"mappings":"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"}
|
|
@@ -81,7 +81,7 @@ export declare const useImageRoiStore: import('pinia').SetupStoreDefinition<"com
|
|
|
81
81
|
};
|
|
82
82
|
} | undefined;
|
|
83
83
|
metadata: {
|
|
84
|
-
exifData:
|
|
84
|
+
exifData: Record<string, string | number | boolean | null>;
|
|
85
85
|
id: string;
|
|
86
86
|
createdAt: string;
|
|
87
87
|
modifiedAt: string;
|
|
@@ -176,7 +176,7 @@ export declare const useImageRoiStore: import('pinia').SetupStoreDefinition<"com
|
|
|
176
176
|
};
|
|
177
177
|
} | undefined;
|
|
178
178
|
metadata: {
|
|
179
|
-
exifData:
|
|
179
|
+
exifData: Record<string, string | number | boolean | null>;
|
|
180
180
|
id: string;
|
|
181
181
|
createdAt: string;
|
|
182
182
|
modifiedAt: string;
|
|
@@ -137,7 +137,7 @@ declare const __VLS_template: () => {
|
|
|
137
137
|
};
|
|
138
138
|
} | undefined;
|
|
139
139
|
metadata: {
|
|
140
|
-
exifData:
|
|
140
|
+
exifData: Record<string, string | number | boolean | null>;
|
|
141
141
|
id: string;
|
|
142
142
|
createdAt: string;
|
|
143
143
|
modifiedAt: string;
|
|
@@ -435,6 +435,7 @@ declare const __VLS_template: () => {
|
|
|
435
435
|
mainFileSingleUse: Readonly<boolean | null>;
|
|
436
436
|
mainFileInternal: Readonly<boolean | null>;
|
|
437
437
|
mainFileOverrideInternal: Readonly<boolean | null>;
|
|
438
|
+
autoDeleteAt: Readonly<import('../../../../shared/types/common').DatetimeUTCNullable>;
|
|
438
439
|
createdAt: import('../../../../shared/types/common').DatetimeUTC;
|
|
439
440
|
modifiedAt: import('../../../../shared/types/common').DatetimeUTC;
|
|
440
441
|
modifiedBy: IntegerIdNullable;
|
|
@@ -101,7 +101,7 @@ declare const __VLS_template: () => {
|
|
|
101
101
|
};
|
|
102
102
|
} | undefined;
|
|
103
103
|
metadata: {
|
|
104
|
-
exifData:
|
|
104
|
+
exifData: Record<string, string | number | boolean | null>;
|
|
105
105
|
id: string;
|
|
106
106
|
createdAt: string;
|
|
107
107
|
modifiedAt: string;
|
|
@@ -399,6 +399,7 @@ declare const __VLS_template: () => {
|
|
|
399
399
|
mainFileSingleUse: Readonly<boolean | null>;
|
|
400
400
|
mainFileInternal: Readonly<boolean | null>;
|
|
401
401
|
mainFileOverrideInternal: Readonly<boolean | null>;
|
|
402
|
+
autoDeleteAt: Readonly<import('../../../../shared/types/common').DatetimeUTCNullable>;
|
|
402
403
|
createdAt: import('../../../../shared/types/common').DatetimeUTC;
|
|
403
404
|
modifiedAt: import('../../../../shared/types/common').DatetimeUTC;
|
|
404
405
|
modifiedBy: import('../../../../shared/types/common').IntegerIdNullable;
|
|
@@ -112,7 +112,7 @@ export declare function useImageDialogDamAuthors(configName: string, shownImage:
|
|
|
112
112
|
};
|
|
113
113
|
} | undefined;
|
|
114
114
|
metadata: {
|
|
115
|
-
exifData:
|
|
115
|
+
exifData: Record<string, string | number | boolean | null>;
|
|
116
116
|
id: string;
|
|
117
117
|
createdAt: string;
|
|
118
118
|
modifiedAt: string;
|
|
@@ -410,6 +410,7 @@ export declare function useImageDialogDamAuthors(configName: string, shownImage:
|
|
|
410
410
|
mainFileSingleUse: Readonly<boolean | null>;
|
|
411
411
|
mainFileInternal: Readonly<boolean | null>;
|
|
412
412
|
mainFileOverrideInternal: Readonly<boolean | null>;
|
|
413
|
+
autoDeleteAt: Readonly<import('../../../../shared/types/common').DatetimeUTCNullable>;
|
|
413
414
|
createdAt: import('../../../../shared/types/common').DatetimeUTC;
|
|
414
415
|
modifiedAt: import('../../../../shared/types/common').DatetimeUTC;
|
|
415
416
|
modifiedBy: import('../../../../shared/types/common').IntegerIdNullable;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocId, DocIdNullable, IntegerId } from '../../../shared/types/common';
|
|
1
|
+
import { DatetimeUTCNullable, DocId, DocIdNullable, IntegerId } from '../../../shared/types/common';
|
|
2
2
|
import { AnzuUserAndTimeTrackingAware } from '../../../shared/types/AnzuUserAndTimeTrackingAware';
|
|
3
3
|
import { ResourceNameSystemAware } from '../../../shared/types/ResourceNameSystemAware';
|
|
4
4
|
import { AssetFile } from './AssetFile';
|
|
@@ -58,6 +58,7 @@ export interface AssetSearchListItemDto extends AnzuUserAndTimeTrackingAware, Re
|
|
|
58
58
|
mainFileSingleUse: Readonly<boolean | null>;
|
|
59
59
|
mainFileInternal: Readonly<boolean | null>;
|
|
60
60
|
mainFileOverrideInternal: Readonly<boolean | null>;
|
|
61
|
+
autoDeleteAt: Readonly<DatetimeUTCNullable>;
|
|
61
62
|
}
|
|
62
63
|
export interface AssetDetailItemDto extends AnzuUserAndTimeTrackingAware, ResourceNameSystemAware {
|
|
63
64
|
id: DocId;
|
|
@@ -76,6 +77,7 @@ export interface AssetDetailItemDto extends AnzuUserAndTimeTrackingAware, Resour
|
|
|
76
77
|
mainFileSingleUse: Readonly<boolean | null>;
|
|
77
78
|
mainFileInternal: Readonly<boolean | null>;
|
|
78
79
|
mainFileOverrideInternal: Readonly<boolean | null>;
|
|
80
|
+
autoDeleteAt: Readonly<DatetimeUTCNullable>;
|
|
79
81
|
}
|
|
80
82
|
export interface AssetMetadataDto extends AnzuUserAndTimeTrackingAware, ResourceNameSystemAware, Metadata {
|
|
81
83
|
id: DocId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Asset.js","names":["DamAssetStatus","DamAssetStatusDefault","DamAssetType","DamAssetTypeDefault"],"sources":["../../../../src/domains/dam/types/Asset.ts"],"sourcesContent":["import type { DocId, DocIdNullable, IntegerId } from '@/shared/types/common'\nimport type { AnzuUserAndTimeTrackingAware } from '@/shared/types/AnzuUserAndTimeTrackingAware'\nimport type { ResourceNameSystemAware } from '@/shared/types/ResourceNameSystemAware'\nimport type { AssetFile } from '@/domains/dam/types/AssetFile'\n\ninterface Texts {\n displayTitle: string\n}\n\nexport type DamDistributionServiceName = string\n\nexport const DamAssetStatus = {\n Draft: 'draft',\n WithFile: 'with_file',\n Deleting: 'deleting',\n} as const\nexport type DamAssetStatusType = (typeof DamAssetStatus)[keyof typeof DamAssetStatus]\nexport const DamAssetStatusDefault = DamAssetStatus.Draft\n\nexport const DamAssetType = {\n Image: 'image',\n Audio: 'audio',\n Video: 'video',\n Document: 'document',\n} as const\nexport type DamAssetTypeType = (typeof DamAssetType)[keyof typeof DamAssetType]\nexport const DamAssetTypeDefault = DamAssetType.Image\n\ninterface Attributes {\n assetType: DamAssetTypeType\n assetStatus: DamAssetStatusType\n}\n\nexport interface AssetFileProperties {\n distributesInServices: DamDistributionServiceName[]\n slotNames: string[]\n fromRss: boolean\n width: number\n height: number\n /** A synthesized (TTS) audio. Not every backend sends it. */\n ttsAudio?: boolean\n}\n\ninterface Flags {\n described: boolean\n visible: boolean\n}\n\nexport interface AssetMetadataSuggestions extends Record<string, Array<string>> {}\n\nexport type AssetCustomData = Record<string, any>\n\ninterface Metadata {\n authorSuggestions: AssetMetadataSuggestions\n keywordSuggestions: AssetMetadataSuggestions\n customData: any\n}\n\nexport interface AssetSearchListItemDto extends AnzuUserAndTimeTrackingAware, ResourceNameSystemAware {\n id: DocId\n texts: Texts\n attributes: Attributes\n flags: Flags\n licence: IntegerId\n mainFile: null | AssetFile\n podcasts: DocId[]\n assetFileProperties: AssetFileProperties\n mainFileSingleUse: Readonly<boolean | null>\n mainFileInternal: Readonly<boolean | null>\n mainFileOverrideInternal: Readonly<boolean | null>\n}\n\nexport interface AssetDetailItemDto extends AnzuUserAndTimeTrackingAware, ResourceNameSystemAware {\n id: DocId\n texts: Texts\n attributes: Attributes\n flags: Flags\n licence: IntegerId\n mainFile: null | AssetFile\n keywords: DocId[]\n authors: DocId[]\n podcasts: DocId[]\n metadata: Metadata\n siblingToAsset: DocIdNullable\n distributionCategory: DocIdNullable\n assetFileProperties: AssetFileProperties\n mainFileSingleUse: Readonly<boolean | null>\n mainFileInternal: Readonly<boolean | null>\n mainFileOverrideInternal: Readonly<boolean | null>\n}\n\nexport interface AssetMetadataDto extends AnzuUserAndTimeTrackingAware, ResourceNameSystemAware, Metadata {\n id: DocId\n customData: AssetCustomData\n}\n\nexport type AssetExternalProviderId = string | number\nexport type AssetExternalProviderIdNullable = AssetExternalProviderId | null\n\nexport type AssetExternalProviderMetadata = Record<string, string | number | number[] | string[] | boolean>\n\nexport interface DamImageCopyToLicenceRequestItem {\n asset: DocId\n targetAssetLicence: IntegerId\n}\n\nexport type DamImageCopyToLicenceRequest = Array<DamImageCopyToLicenceRequestItem>\n\nexport interface DamImageCopyToLicenceResponseItem {\n asset: DocId\n targetAsset: DocId\n targetMainFile: DocId\n targetAssetLicence: IntegerId\n result: 'exists' | 'copy' | 'notAllowed' | 'unassigned'\n assetConflicts: DocId[]\n}\n\nexport type DamImageCopyToLicenceResponse = Array<DamImageCopyToLicenceResponseItem>\n"],"mappings":";AAWA,IAAaA,IAAiB;CAC5B,OAAO;CACP,UAAU;CACV,UAAU;AACZ,GAEaC,IAAwBD,EAAe,OAEvCE,IAAe;CAC1B,OAAO;CACP,OAAO;CACP,OAAO;CACP,UAAU;AACZ,GAEaC,IAAsBD,EAAa"}
|
|
1
|
+
{"version":3,"file":"Asset.js","names":["DamAssetStatus","DamAssetStatusDefault","DamAssetType","DamAssetTypeDefault"],"sources":["../../../../src/domains/dam/types/Asset.ts"],"sourcesContent":["import type { DatetimeUTCNullable, DocId, DocIdNullable, IntegerId } from '@/shared/types/common'\nimport type { AnzuUserAndTimeTrackingAware } from '@/shared/types/AnzuUserAndTimeTrackingAware'\nimport type { ResourceNameSystemAware } from '@/shared/types/ResourceNameSystemAware'\nimport type { AssetFile } from '@/domains/dam/types/AssetFile'\n\ninterface Texts {\n displayTitle: string\n}\n\nexport type DamDistributionServiceName = string\n\nexport const DamAssetStatus = {\n Draft: 'draft',\n WithFile: 'with_file',\n Deleting: 'deleting',\n} as const\nexport type DamAssetStatusType = (typeof DamAssetStatus)[keyof typeof DamAssetStatus]\nexport const DamAssetStatusDefault = DamAssetStatus.Draft\n\nexport const DamAssetType = {\n Image: 'image',\n Audio: 'audio',\n Video: 'video',\n Document: 'document',\n} as const\nexport type DamAssetTypeType = (typeof DamAssetType)[keyof typeof DamAssetType]\nexport const DamAssetTypeDefault = DamAssetType.Image\n\ninterface Attributes {\n assetType: DamAssetTypeType\n assetStatus: DamAssetStatusType\n}\n\nexport interface AssetFileProperties {\n distributesInServices: DamDistributionServiceName[]\n slotNames: string[]\n fromRss: boolean\n width: number\n height: number\n /** A synthesized (TTS) audio. Not every backend sends it. */\n ttsAudio?: boolean\n}\n\ninterface Flags {\n described: boolean\n visible: boolean\n}\n\nexport interface AssetMetadataSuggestions extends Record<string, Array<string>> {}\n\nexport type AssetCustomData = Record<string, any>\n\ninterface Metadata {\n authorSuggestions: AssetMetadataSuggestions\n keywordSuggestions: AssetMetadataSuggestions\n customData: any\n}\n\nexport interface AssetSearchListItemDto extends AnzuUserAndTimeTrackingAware, ResourceNameSystemAware {\n id: DocId\n texts: Texts\n attributes: Attributes\n flags: Flags\n licence: IntegerId\n mainFile: null | AssetFile\n podcasts: DocId[]\n assetFileProperties: AssetFileProperties\n mainFileSingleUse: Readonly<boolean | null>\n mainFileInternal: Readonly<boolean | null>\n mainFileOverrideInternal: Readonly<boolean | null>\n autoDeleteAt: Readonly<DatetimeUTCNullable>\n}\n\nexport interface AssetDetailItemDto extends AnzuUserAndTimeTrackingAware, ResourceNameSystemAware {\n id: DocId\n texts: Texts\n attributes: Attributes\n flags: Flags\n licence: IntegerId\n mainFile: null | AssetFile\n keywords: DocId[]\n authors: DocId[]\n podcasts: DocId[]\n metadata: Metadata\n siblingToAsset: DocIdNullable\n distributionCategory: DocIdNullable\n assetFileProperties: AssetFileProperties\n mainFileSingleUse: Readonly<boolean | null>\n mainFileInternal: Readonly<boolean | null>\n mainFileOverrideInternal: Readonly<boolean | null>\n autoDeleteAt: Readonly<DatetimeUTCNullable>\n}\n\nexport interface AssetMetadataDto extends AnzuUserAndTimeTrackingAware, ResourceNameSystemAware, Metadata {\n id: DocId\n customData: AssetCustomData\n}\n\nexport type AssetExternalProviderId = string | number\nexport type AssetExternalProviderIdNullable = AssetExternalProviderId | null\n\nexport type AssetExternalProviderMetadata = Record<string, string | number | number[] | string[] | boolean>\n\nexport interface DamImageCopyToLicenceRequestItem {\n asset: DocId\n targetAssetLicence: IntegerId\n}\n\nexport type DamImageCopyToLicenceRequest = Array<DamImageCopyToLicenceRequestItem>\n\nexport interface DamImageCopyToLicenceResponseItem {\n asset: DocId\n targetAsset: DocId\n targetMainFile: DocId\n targetAssetLicence: IntegerId\n result: 'exists' | 'copy' | 'notAllowed' | 'unassigned'\n assetConflicts: DocId[]\n}\n\nexport type DamImageCopyToLicenceResponse = Array<DamImageCopyToLicenceResponseItem>\n"],"mappings":";AAWA,IAAaA,IAAiB;CAC5B,OAAO;CACP,UAAU;CACV,UAAU;AACZ,GAEaC,IAAwBD,EAAe,OAEvCE,IAAe;CAC1B,OAAO;CACP,OAAO;CACP,OAAO;CACP,UAAU;AACZ,GAEaC,IAAsBD,EAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssetFile.js","names":["AssetFileProcessStatus","AssetFileFailReason","AssetFileFailReasonDefault","AssetFileRouteStatus","AssetFileLinkType","assetFileIsImageFile","value","assetFileIsVideoFile","assetFileIsAudioFile"],"sources":["../../../../src/domains/dam/types/AssetFile.ts"],"sourcesContent":["import type { DatetimeUTC, DocId, DocIdNullable } from '@/shared/types/common'\nimport type { AnzuUserAndTimeTrackingAware } from '@/shared/types/AnzuUserAndTimeTrackingAware'\n\nexport const AssetFileProcessStatus = {\n Uploading: 'uploading', // file entity created and ready to receive chunks\n Uploaded: 'uploaded', // all chunks were sent\n Stored: 'stored', // File is stored and ready to processing\n Duplicate: 'duplicate', // AssetFile is duplicate of another asset\n Processed: 'processed', // file processed and ready to serve\n Failed: 'failed',\n} as const\nexport type AssetFileProcessStatusType = (typeof AssetFileProcessStatus)[keyof typeof AssetFileProcessStatus]\n\nexport const AssetFileFailReason = {\n None: 'none',\n Unknown: 'unknown',\n InvalidChecksum: 'invalid_checksum',\n InvalidMimeType: 'invalid_mime_type',\n DownloadFailed: 'download_failed',\n InvalidSize: 'invalid_size',\n} as const\nexport type AssetFileFailReasonType = (typeof AssetFileFailReason)[keyof typeof AssetFileFailReason]\nexport const AssetFileFailReasonDefault = AssetFileFailReason.None\n\nexport const AssetFileRouteStatus = {\n Disabled: 'disabled',\n Active: 'active',\n} as const\nexport type AssetFileRouteStatusType = (typeof AssetFileRouteStatus)[keyof typeof AssetFileRouteStatus]\n\ninterface FileAttributes {\n status: AssetFileProcessStatusType\n mimeType: string\n size: number\n originFileName: string\n originUrl: string\n failReason: AssetFileFailReasonType\n}\n\nexport const AssetFileLinkType = {\n Image: 'image',\n Audio: 'audio',\n} as const\nexport type AssetFileLinkTypeType = (typeof AssetFileLinkType)[keyof typeof AssetFileLinkType]\n\nexport interface AssetFileLink {\n width: number\n height: number\n requestedWidth: number\n requestedHeight: number\n url: string\n title: string\n type: AssetFileLinkTypeType\n}\n\nexport interface AssetFileRoute {\n id: DocId\n status: AssetFileRouteStatusType\n main: boolean\n publicUrl: string\n _resourceName: 'assetFileRoute'\n}\n\nexport interface AssetFileMainRouteAware {\n mainRoute?: AssetFileRoute\n}\n\nexport type AssetFileLinks =\n | Record<'image_list' | 'image_table' | 'image_detail' | 'image_animated' | 'audio', AssetFileLink>\n | Record<string, never>\n\nexport interface AssetFileAware {\n flags: {\n public: boolean\n singleUse: boolean\n overrideInternal: boolean\n internal: boolean\n }\n}\n\nexport interface AssetFileImage extends AssetFileAware, AnzuUserAndTimeTrackingAware, AssetFileMainRouteAware {\n id: DocId\n asset: DocId\n fileAttributes: FileAttributes\n imageAttributes: ImageAttributes\n originAssetFile: DocIdNullable\n links?: AssetFileLinks\n metadata: Metadata\n manipulatedAt: DatetimeUTC\n _resourceName: 'imageFile'\n}\n\nexport interface AssetFileAudio extends AssetFileAware, AnzuUserAndTimeTrackingAware, AssetFileMainRouteAware {\n id: DocId\n asset: DocId\n fileAttributes: FileAttributes\n audioAttributes: AudioAttributes\n originAssetFile: DocIdNullable\n links?: AssetFileLinks\n imagePreview: AssetFileImagePreviewNullable\n _resourceName: 'audioFile'\n}\n\nexport interface AssetFileVideo extends AssetFileAware, AnzuUserAndTimeTrackingAware {\n id: DocId\n asset: DocId\n fileAttributes: FileAttributes\n videoAttributes: VideoAttributes\n originAssetFile: DocIdNullable\n links?: AssetFileLinks\n imagePreview: AssetFileImagePreviewNullable\n _resourceName: 'videoFile'\n}\n\nexport interface AssetFileDocument extends AssetFileAware, AnzuUserAndTimeTrackingAware, AssetFileMainRouteAware {\n id: DocId\n asset: DocId\n fileAttributes: FileAttributes\n documentAttributes: DocumentAttributes\n originAssetFile: DocIdNullable\n links?: AssetFileLinks\n _resourceName: 'documentFile'\n}\n\nexport interface AssetFileDownloadLink extends AnzuUserAndTimeTrackingAware {\n id: DocId\n link: string\n _system: string\n _resourceName: 'imageFile'\n}\n\nexport type AssetFile = AssetFileImage | AssetFileAudio | AssetFileVideo | AssetFileDocument\n\nexport type AssetFileNullable = AssetFileImage | AssetFileAudio | AssetFileVideo | AssetFileDocument | null\n\nexport const assetFileIsImageFile = (value: any): value is AssetFileImage => {\n if (!value || !value._resourceName) return false\n return value._resourceName === 'imageFile'\n}\n\nexport const assetFileIsVideoFile = (value: any): value is AssetFileVideo => {\n if (!value || !value._resourceName) return false\n return value._resourceName === 'videoFile'\n}\n\nexport const assetFileIsAudioFile = (value: any): value is AssetFileAudio => {\n if (!value || !value._resourceName) return false\n return value._resourceName === 'audioFile'\n}\n\ninterface ImageAttributes {\n ratioWidth: number\n ratioHeight: number\n width: number\n height: number\n rotation: number\n mostDominantColor: string\n animated: boolean\n}\n\ninterface Metadata {\n exifData:
|
|
1
|
+
{"version":3,"file":"AssetFile.js","names":["AssetFileProcessStatus","AssetFileFailReason","AssetFileFailReasonDefault","AssetFileRouteStatus","AssetFileLinkType","assetFileIsImageFile","value","assetFileIsVideoFile","assetFileIsAudioFile"],"sources":["../../../../src/domains/dam/types/AssetFile.ts"],"sourcesContent":["import type { DatetimeUTC, DocId, DocIdNullable } from '@/shared/types/common'\nimport type { AnzuUserAndTimeTrackingAware } from '@/shared/types/AnzuUserAndTimeTrackingAware'\n\nexport const AssetFileProcessStatus = {\n Uploading: 'uploading', // file entity created and ready to receive chunks\n Uploaded: 'uploaded', // all chunks were sent\n Stored: 'stored', // File is stored and ready to processing\n Duplicate: 'duplicate', // AssetFile is duplicate of another asset\n Processed: 'processed', // file processed and ready to serve\n Failed: 'failed',\n} as const\nexport type AssetFileProcessStatusType = (typeof AssetFileProcessStatus)[keyof typeof AssetFileProcessStatus]\n\nexport const AssetFileFailReason = {\n None: 'none',\n Unknown: 'unknown',\n InvalidChecksum: 'invalid_checksum',\n InvalidMimeType: 'invalid_mime_type',\n DownloadFailed: 'download_failed',\n InvalidSize: 'invalid_size',\n} as const\nexport type AssetFileFailReasonType = (typeof AssetFileFailReason)[keyof typeof AssetFileFailReason]\nexport const AssetFileFailReasonDefault = AssetFileFailReason.None\n\nexport const AssetFileRouteStatus = {\n Disabled: 'disabled',\n Active: 'active',\n} as const\nexport type AssetFileRouteStatusType = (typeof AssetFileRouteStatus)[keyof typeof AssetFileRouteStatus]\n\ninterface FileAttributes {\n status: AssetFileProcessStatusType\n mimeType: string\n size: number\n originFileName: string\n originUrl: string\n failReason: AssetFileFailReasonType\n}\n\nexport const AssetFileLinkType = {\n Image: 'image',\n Audio: 'audio',\n} as const\nexport type AssetFileLinkTypeType = (typeof AssetFileLinkType)[keyof typeof AssetFileLinkType]\n\nexport interface AssetFileLink {\n width: number\n height: number\n requestedWidth: number\n requestedHeight: number\n url: string\n title: string\n type: AssetFileLinkTypeType\n}\n\nexport interface AssetFileRoute {\n id: DocId\n status: AssetFileRouteStatusType\n main: boolean\n publicUrl: string\n _resourceName: 'assetFileRoute'\n}\n\nexport interface AssetFileMainRouteAware {\n mainRoute?: AssetFileRoute\n}\n\nexport type AssetFileLinks =\n | Record<'image_list' | 'image_table' | 'image_detail' | 'image_animated' | 'audio', AssetFileLink>\n | Record<string, never>\n\nexport interface AssetFileAware {\n flags: {\n public: boolean\n singleUse: boolean\n overrideInternal: boolean\n internal: boolean\n }\n}\n\nexport interface AssetFileImage extends AssetFileAware, AnzuUserAndTimeTrackingAware, AssetFileMainRouteAware {\n id: DocId\n asset: DocId\n fileAttributes: FileAttributes\n imageAttributes: ImageAttributes\n originAssetFile: DocIdNullable\n links?: AssetFileLinks\n metadata: Metadata\n manipulatedAt: DatetimeUTC\n _resourceName: 'imageFile'\n}\n\nexport interface AssetFileAudio extends AssetFileAware, AnzuUserAndTimeTrackingAware, AssetFileMainRouteAware {\n id: DocId\n asset: DocId\n fileAttributes: FileAttributes\n audioAttributes: AudioAttributes\n originAssetFile: DocIdNullable\n links?: AssetFileLinks\n imagePreview: AssetFileImagePreviewNullable\n _resourceName: 'audioFile'\n}\n\nexport interface AssetFileVideo extends AssetFileAware, AnzuUserAndTimeTrackingAware {\n id: DocId\n asset: DocId\n fileAttributes: FileAttributes\n videoAttributes: VideoAttributes\n originAssetFile: DocIdNullable\n links?: AssetFileLinks\n imagePreview: AssetFileImagePreviewNullable\n _resourceName: 'videoFile'\n}\n\nexport interface AssetFileDocument extends AssetFileAware, AnzuUserAndTimeTrackingAware, AssetFileMainRouteAware {\n id: DocId\n asset: DocId\n fileAttributes: FileAttributes\n documentAttributes: DocumentAttributes\n originAssetFile: DocIdNullable\n links?: AssetFileLinks\n _resourceName: 'documentFile'\n}\n\nexport interface AssetFileDownloadLink extends AnzuUserAndTimeTrackingAware {\n id: DocId\n link: string\n _system: string\n _resourceName: 'imageFile'\n}\n\nexport type AssetFile = AssetFileImage | AssetFileAudio | AssetFileVideo | AssetFileDocument\n\nexport type AssetFileNullable = AssetFileImage | AssetFileAudio | AssetFileVideo | AssetFileDocument | null\n\nexport const assetFileIsImageFile = (value: any): value is AssetFileImage => {\n if (!value || !value._resourceName) return false\n return value._resourceName === 'imageFile'\n}\n\nexport const assetFileIsVideoFile = (value: any): value is AssetFileVideo => {\n if (!value || !value._resourceName) return false\n return value._resourceName === 'videoFile'\n}\n\nexport const assetFileIsAudioFile = (value: any): value is AssetFileAudio => {\n if (!value || !value._resourceName) return false\n return value._resourceName === 'audioFile'\n}\n\ninterface ImageAttributes {\n ratioWidth: number\n ratioHeight: number\n width: number\n height: number\n rotation: number\n mostDominantColor: string\n animated: boolean\n}\n\ninterface Metadata {\n exifData: Record<string, string | number | boolean | null>\n id: string\n createdAt: string\n modifiedAt: string\n createdBy: number\n modifiedBy: number\n}\n\ninterface AudioAttributes {\n duration: number\n codecName: string\n bitrate: number\n}\n\ninterface DocumentAttributes {\n pageCount: number\n}\n\ninterface VideoAttributes {\n bitrate: number\n codecName: string\n duration: number\n height: number\n ratioHeight: number\n ratioWidth: number\n rotation: number\n width: number\n}\n\nexport interface AssetFileImagePreview {\n imageFile: DocId\n position: number\n}\n\nexport type AssetFileImagePreviewNullable = AssetFileImagePreview | null\n"],"mappings":";AAGA,IAAaA,IAAyB;CACpC,WAAW;CACX,UAAU;CACV,QAAQ;CACR,WAAW;CACX,WAAW;CACX,QAAQ;AACV,GAGaC,IAAsB;CACjC,MAAM;CACN,SAAS;CACT,iBAAiB;CACjB,iBAAiB;CACjB,gBAAgB;CAChB,aAAa;AACf,GAEaC,IAA6BD,EAAoB,MAEjDE,IAAuB;CAClC,UAAU;CACV,QAAQ;AACV,GAYaC,IAAoB;CAC/B,OAAO;CACP,OAAO;AACT,GA6FaC,KAAwB,MAC/B,CAACC,KAAS,CAACA,EAAM,gBAAsB,KACpCA,EAAM,kBAAkB,aAGpBC,KAAwB,MAC/B,CAACD,KAAS,CAACA,EAAM,gBAAsB,KACpCA,EAAM,kBAAkB,aAGpBE,KAAwB,MAC/B,CAACF,KAAS,CAACA,EAAM,gBAAsB,KACpCA,EAAM,kBAAkB"}
|
|
@@ -9,3 +9,10 @@ export interface DamAssetLicence extends DamAssetLicenceMinimal, AnzuUserAndTime
|
|
|
9
9
|
extSystem: IntegerIdNullable;
|
|
10
10
|
extId: string;
|
|
11
11
|
}
|
|
12
|
+
export interface DamAssetLicenceSelectFields {
|
|
13
|
+
/** Up to four characters `A-Z0-9` that mark the licence's assets, empty when it has none. */
|
|
14
|
+
badge: string;
|
|
15
|
+
}
|
|
16
|
+
export type DamAssetLicenceCached = DamAssetLicenceMinimal & DamAssetLicenceSelectFields;
|
|
17
|
+
export interface DamAssetLicenceExtended extends DamAssetLicence, DamAssetLicenceSelectFields {
|
|
18
|
+
}
|
|
@@ -2,5 +2,6 @@ import { AxiosInstance } from 'axios';
|
|
|
2
2
|
import { DamAssetLicence } from '../../types/AssetLicence';
|
|
3
3
|
import { IntegerId } from '../../../../shared/types/common';
|
|
4
4
|
export declare const ENTITY = "assetLicence";
|
|
5
|
-
|
|
5
|
+
/** `endPoint`: the licences endpoint from a configuration (`endPointAssetLicence`). Defaults to `/adm/v1/asset-licence`. */
|
|
6
|
+
export declare const fetchDamAssetLicenceListByIds: (client: () => AxiosInstance, ids: IntegerId[], endPoint?: string) => Promise<DamAssetLicence[]>;
|
|
6
7
|
export declare const useFetchDamAssetLicenceList: (client: () => AxiosInstance) => import('../../../api/composables/useApiFetchList').UseApiFetchListReturnType<DamAssetLicence>;
|
|
@@ -2,14 +2,14 @@ import { SYSTEM_CORE_DAM as e } from "../../api/damConstants.js";
|
|
|
2
2
|
import { useApiFetchList as t } from "../../../api/composables/useApiFetchList.js";
|
|
3
3
|
import { useApiFetchByIds as n } from "../../../api/composables/useApiFetchByIds.js";
|
|
4
4
|
// src/domains/dam/user/api/assetLicenceApi.ts
|
|
5
|
-
var r = "/adm/v1/asset-licence", i = "assetLicence", a = (t, a) => {
|
|
6
|
-
let { execute:
|
|
5
|
+
var r = "/adm/v1/asset-licence", i = "assetLicence", a = (t, a, o = r) => {
|
|
6
|
+
let { execute: s } = n({
|
|
7
7
|
client: t,
|
|
8
8
|
system: e,
|
|
9
9
|
entity: i,
|
|
10
|
-
urlTemplate:
|
|
10
|
+
urlTemplate: o
|
|
11
11
|
});
|
|
12
|
-
return
|
|
12
|
+
return s(a);
|
|
13
13
|
}, o = (n) => t({
|
|
14
14
|
client: n,
|
|
15
15
|
system: e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetLicenceApi.js","names":["END_POINT","ENTITY","fetchDamAssetLicenceListByIds","useApiFetchByIds","SYSTEM_CORE_DAM","execute","ids","useFetchDamAssetLicenceList","useApiFetchList"],"sources":["../../../../../src/domains/dam/user/api/assetLicenceApi.ts"],"sourcesContent":["import type { AxiosInstance } from 'axios'\nimport { SYSTEM_CORE_DAM } from '@/domains/dam/api/damConstants'\nimport type { DamAssetLicence } from '@/domains/dam/types/AssetLicence'\nimport type { IntegerId } from '@/shared/types/common'\nimport { useApiFetchList } from '@/domains/api/composables/useApiFetchList'\nimport { useApiFetchByIds } from '@/domains/api/composables/useApiFetchByIds'\n\nconst END_POINT = '/adm/v1/asset-licence'\nexport const ENTITY = 'assetLicence'\n\nexport const fetchDamAssetLicenceListByIds = (client: () => AxiosInstance
|
|
1
|
+
{"version":3,"file":"assetLicenceApi.js","names":["END_POINT","ENTITY","fetchDamAssetLicenceListByIds","useApiFetchByIds","SYSTEM_CORE_DAM","endPoint","execute","ids","useFetchDamAssetLicenceList","useApiFetchList"],"sources":["../../../../../src/domains/dam/user/api/assetLicenceApi.ts"],"sourcesContent":["import type { AxiosInstance } from 'axios'\nimport { SYSTEM_CORE_DAM } from '@/domains/dam/api/damConstants'\nimport type { DamAssetLicence } from '@/domains/dam/types/AssetLicence'\nimport type { IntegerId } from '@/shared/types/common'\nimport { useApiFetchList } from '@/domains/api/composables/useApiFetchList'\nimport { useApiFetchByIds } from '@/domains/api/composables/useApiFetchByIds'\n\nconst END_POINT = '/adm/v1/asset-licence'\nexport const ENTITY = 'assetLicence'\n\n/** `endPoint`: the licences endpoint from a configuration (`endPointAssetLicence`). Defaults to `/adm/v1/asset-licence`. */\nexport const fetchDamAssetLicenceListByIds = (\n client: () => AxiosInstance,\n ids: IntegerId[],\n endPoint: string = END_POINT\n) => {\n const { execute } = useApiFetchByIds<DamAssetLicence>({\n client,\n system: SYSTEM_CORE_DAM,\n entity: ENTITY,\n urlTemplate: endPoint,\n })\n\n return execute(ids)\n}\n\nexport const useFetchDamAssetLicenceList = (client: () => AxiosInstance) =>\n useApiFetchList<DamAssetLicence>({\n client,\n system: SYSTEM_CORE_DAM,\n entity: ENTITY,\n urlTemplate: END_POINT,\n })\n"],"mappings":";;;;AAOA,IAAMA,IAAY,yBACLC,IAAS,gBAGTC,KACX,GACA,GACA,IAAmBF,MAChB;CACH,IAAM,EAAE,eAAYG,EAAkC;EACpD;EACA,QAAQC;EACR,QAAQH;EACR,aAAaI;CACf,CAAC;CAED,OAAOC,EAAQC,CAAG;AACpB,GAEaC,KAA+B,MAC1CC,EAAiC;CAC/B;CACA,QAAQL;CACR,QAAQH;CACR,aAAaD;AACf,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DamAssetLicenceCached, DamAssetLicenceExtended } from '../../types/AssetLicence';
|
|
2
|
+
/**
|
|
3
|
+
* Licence cache of the DAM configuration `configName`.
|
|
4
|
+
* Without a name, uses the inherited one during component setup,
|
|
5
|
+
* render or a lifecycle hook (not after an `await`), else `default`.
|
|
6
|
+
* After the plugin sets options, an unknown configuration throws
|
|
7
|
+
* on every call. Before that, the first request checks it.
|
|
8
|
+
*/
|
|
9
|
+
export declare const useDamCachedAssetLicences: (configName?: string) => {
|
|
10
|
+
addManualToCachedAssetLicences: (data: DamAssetLicenceExtended) => void;
|
|
11
|
+
addToCachedAssetLicences: (...args: import('../../../cached/composables/defineCached').AddToCachedArgs<number>) => void;
|
|
12
|
+
fetchCachedAssetLicences: () => import('@vueuse/shared').Promisify<Promise<DamAssetLicenceExtended[]>>;
|
|
13
|
+
cachedAssetLicences: import('vue').Ref<Map<number, import('../../../cached/composables/defineCached').CachedItem<DamAssetLicenceCached>>, Map<number, import('../../../cached/composables/defineCached').CachedItem<DamAssetLicenceCached>>>;
|
|
14
|
+
hasCachedAssetLicence: (id: number | null | undefined) => boolean;
|
|
15
|
+
getCachedAssetLicence: (id: number | null | undefined) => import('../../../cached/composables/defineCached').CachedItem<DamAssetLicenceCached> | undefined;
|
|
16
|
+
isLoadedCachedAssetLicence: (id: number | null | undefined) => boolean;
|
|
17
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useCommonAdminCoreDamOptions as e } from "../../composables/commonAdminCoreDamOptions.js";
|
|
2
|
+
import { checkDamConfigName as t, inheritedDamConfigName as n } from "../../composables/damConfigName.js";
|
|
3
|
+
import { defineCached as r } from "../../../cached/composables/defineCached.js";
|
|
4
|
+
import { fetchDamAssetLicenceListByIds as i } from "../api/assetLicenceApi.js";
|
|
5
|
+
// src/domains/dam/user/composables/cachedAssetLicences.ts
|
|
6
|
+
var a = (e) => ({
|
|
7
|
+
id: e.id,
|
|
8
|
+
name: e.name,
|
|
9
|
+
badge: e.badge ?? ""
|
|
10
|
+
}), o = (e) => ({
|
|
11
|
+
id: e,
|
|
12
|
+
name: "",
|
|
13
|
+
badge: ""
|
|
14
|
+
}), s = (t) => r(a, o, (n) => {
|
|
15
|
+
let { damClient: r, endPointAssetLicence: a } = e(t);
|
|
16
|
+
return i(r, n, a);
|
|
17
|
+
}, "id", 1e3, { retryNotFound: !1 }), c = /* @__PURE__ */ new Map([["default", s("default")]]), l = (e) => {
|
|
18
|
+
let r = n(e);
|
|
19
|
+
t(r);
|
|
20
|
+
let i = c.get(r);
|
|
21
|
+
i || (i = s(r), c.set(r, i));
|
|
22
|
+
let { cache: a, fetch: o, add: l, addManual: u, has: d, get: f, isLoaded: p } = i;
|
|
23
|
+
return {
|
|
24
|
+
addManualToCachedAssetLicences: u,
|
|
25
|
+
addToCachedAssetLicences: l,
|
|
26
|
+
fetchCachedAssetLicences: o,
|
|
27
|
+
cachedAssetLicences: a,
|
|
28
|
+
hasCachedAssetLicence: d,
|
|
29
|
+
getCachedAssetLicence: f,
|
|
30
|
+
isLoadedCachedAssetLicence: p
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export { l as useDamCachedAssetLicences };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=cachedAssetLicences.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cachedAssetLicences.js","names":["mapFullToMinimal","assetLicence","mapIdToMinimal","defineCachedAssetLicences","defineCached","useCommonAdminCoreDamOptions","configName","fetchDamAssetLicenceListByIds","damClient","ids","endPointAssetLicence","caches","useDamCachedAssetLicences","name","inheritedDamConfigName","named","addManual","add","fetch","cache","has","get","isLoaded"],"sources":["../../../../../src/domains/dam/user/composables/cachedAssetLicences.ts"],"sourcesContent":["import type { IntegerId } from '@/shared/types/common'\nimport type { DamAssetLicenceCached, DamAssetLicenceExtended } from '@/domains/dam/types/AssetLicence'\nimport { defineCached } from '@/domains/cached/composables/defineCached'\nimport { fetchDamAssetLicenceListByIds } from '@/domains/dam/user/api/assetLicenceApi'\nimport { useCommonAdminCoreDamOptions } from '@/domains/dam/composables/commonAdminCoreDamOptions'\nimport { checkDamConfigName, inheritedDamConfigName } from '@/domains/dam/composables/damConfigName'\n\nconst mapFullToMinimal = (assetLicence: DamAssetLicenceExtended): DamAssetLicenceCached => ({\n id: assetLicence.id,\n name: assetLicence.name,\n // A DAM without licence badges sends none.\n badge: assetLicence.badge ?? '',\n})\n\nconst mapIdToMinimal = (id: IntegerId): DamAssetLicenceCached => ({\n id: id,\n name: '',\n badge: '',\n})\n\n// Licence cache per DAM configuration. It uses that configuration's client and `endPointAssetLicence`.\nconst defineCachedAssetLicences = (configName: string) =>\n defineCached<IntegerId, DamAssetLicenceExtended, DamAssetLicenceCached>(\n mapFullToMinimal,\n mapIdToMinimal,\n (ids) => {\n const { damClient, endPointAssetLicence } = useCommonAdminCoreDamOptions(configName)\n return fetchDamAssetLicenceListByIds(damClient, ids, endPointAssetLicence) as Promise<DamAssetLicenceExtended[]>\n },\n 'id',\n 1000,\n // A licence missing from the answer is not requested again on every tile or detail that shows it.\n { retryNotFound: false }\n )\n\n// One cache per configuration name, created on first use. The `default` one is created with the module.\nconst caches = new Map([['default', defineCachedAssetLicences('default')]])\n\n/**\n * Licence cache of the DAM configuration `configName`.\n * Without a name, uses the inherited one during component setup,\n * render or a lifecycle hook (not after an `await`), else `default`.\n * After the plugin sets options, an unknown configuration throws\n * on every call. Before that, the first request checks it.\n */\nexport const useDamCachedAssetLicences = (configName?: string) => {\n const name = inheritedDamConfigName(configName)\n // Checked on every call: options set again (a test, a hot update) may have removed the name.\n checkDamConfigName(name)\n let named = caches.get(name)\n if (!named) {\n named = defineCachedAssetLicences(name)\n caches.set(name, named)\n }\n const { cache, fetch, add, addManual, has, get, isLoaded } = named\n return {\n addManualToCachedAssetLicences: addManual,\n addToCachedAssetLicences: add,\n fetchCachedAssetLicences: fetch,\n cachedAssetLicences: cache,\n hasCachedAssetLicence: has,\n getCachedAssetLicence: get,\n isLoadedCachedAssetLicence: isLoaded,\n }\n}\n"],"mappings":";;;;;AAOA,IAAMA,KAAoB,OAAkE;CAC1F,IAAIC,EAAa;CACjB,MAAMA,EAAa;CAEnB,OAAOA,EAAa,SAAS;AAC/B,IAEMC,KAAkB,OAA0C;CAC5D;CACJ,MAAM;CACN,OAAO;AACT,IAGMC,KAA6B,MACjCC,EACEJ,GACAE,IACC,MAAQ;CACP,IAAM,EAAE,cAAW,4BAAyBG,EAA6BC,CAAU;CACnF,OAAOC,EAA8BC,GAAWC,GAAKC,CAAoB;AAC3E,GACA,MACA,KAEA,EAAE,eAAe,GAAM,CACzB,GAGIC,oBAAS,IAAI,IAAI,CAAC,CAAC,WAAWR,EAA0B,SAAS,CAAC,CAAC,CAAC,GAS7DS,KAA6B,MAAwB;CAChE,IAAMC,IAAOC,EAAuBR,CAAU;CAE9C,EAAmBO,CAAI;CACvB,IAAIE,IAAQJ,EAAO,IAAIE,CAAI;CAC3B,AAAKE,MACH,IAAQZ,EAA0BU,CAAI,GACtCF,EAAO,IAAIE,GAAME,CAAK;CAExB,IAAM,EAAE,UAAO,UAAO,QAAK,cAAW,QAAK,QAAK,gBAAaA;CAC7D,OAAO;EACL,gCAAgCC;EAChC,0BAA0BC;EAC1B,0BAA0BC;EAC1B,qBAAqBC;EACrB,uBAAuBC;EACvB,uBAAuBC;EACvB,4BAA4BC;CAC9B;AACF"}
|
package/dist/lib.d.ts
CHANGED
|
@@ -180,7 +180,7 @@ import { DamAuthorType, DamAuthorTypeType, useDamAuthorType } from './domains/da
|
|
|
180
180
|
import { useDamKeywordFactory } from './domains/dam/keyword/factory/KeywordFactory';
|
|
181
181
|
import { useDamAuthorFactory } from './domains/dam/author/factory/AuthorFactory';
|
|
182
182
|
import { DamCurrentUserDto } from './domains/dam/types/DamCurrentUser';
|
|
183
|
-
import { DamAssetLicence, DamAssetLicenceMinimal } from './domains/dam/types/AssetLicence';
|
|
183
|
+
import { DamAssetLicence, DamAssetLicenceCached, DamAssetLicenceExtended, DamAssetLicenceMinimal, DamAssetLicenceSelectFields } from './domains/dam/types/AssetLicence';
|
|
184
184
|
import { DamAssetLicenceGroup } from './domains/dam/types/AssetLicenceGroup';
|
|
185
185
|
import { useCollabInit } from './domains/collab/composables/collabInit';
|
|
186
186
|
import { useCommonAdminCollabOptions } from './domains/collab/composables/commonAdminCollabOptions';
|
|
@@ -220,6 +220,7 @@ import { default as ADamUserFilterRemoteAutocomplete } from './domains/dam/user/
|
|
|
220
220
|
import { default as ADamUserRemoteAutocomplete } from './domains/dam/user/components/DamUserRemoteAutocomplete.vue';
|
|
221
221
|
import { default as ADamAdminAssetLink } from './domains/dam/components/DamAdminAssetLink.vue';
|
|
222
222
|
import { useDamCachedUsers } from './domains/dam/author/composables/cachedUsers';
|
|
223
|
+
import { useDamCachedAssetLicences } from './domains/dam/user/composables/cachedAssetLicences';
|
|
223
224
|
import { useImageStore } from './domains/dam/imageWidget/store/imageStore';
|
|
224
225
|
import { isImageCreateUpdateAware, isMediaAware } from './domains/dam/imageWidget/store/imageMediaWidgetStore';
|
|
225
226
|
import { DamMediaFromDam, ImageMediaCollabValue, MediaAware, DamMedia, DamMediaType, DamMediaTypeType } from './domains/dam/types/MediaAware';
|
|
@@ -298,7 +299,7 @@ import { default as AUserTabsShell } from './domains/anzuUser/components/AUserTa
|
|
|
298
299
|
import { OTHER_SYSTEMS_TAB } from './domains/anzuUser/utils/userTabs';
|
|
299
300
|
import { USER_PROBE_ENTITY, UserSystemRefreshHook } from './domains/anzuUser/composables/userSystemProbe';
|
|
300
301
|
import { default as AUserSystemOverview } from './domains/anzuUser/components/AUserSystemOverview.vue';
|
|
301
|
-
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, AActionSaveAndCloseButton, 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, 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, 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 DamAssetLicenceMinimal, 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, 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, };
|
|
302
|
+
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, AActionSaveAndCloseButton, 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, 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 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, 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, };
|
|
302
303
|
export { createCachedChip } from './domains/cached/composables/createCachedChip';
|
|
303
304
|
export type { CreateCachedChipOptions } from './domains/cached/composables/createCachedChip';
|
|
304
305
|
export { createUserAndTimeTrackingFields } from './domains/cached/composables/createUserAndTimeTrackingFields';
|
|
@@ -307,6 +307,14 @@ var e = {
|
|
|
307
307
|
i: [{ t: 3 }],
|
|
308
308
|
s: "Jednorázová licence"
|
|
309
309
|
}
|
|
310
|
+
},
|
|
311
|
+
autoDelete: {
|
|
312
|
+
t: 0,
|
|
313
|
+
b: {
|
|
314
|
+
t: 2,
|
|
315
|
+
i: [{ t: 3 }],
|
|
316
|
+
s: "Automatické smazání"
|
|
317
|
+
}
|
|
310
318
|
}
|
|
311
319
|
},
|
|
312
320
|
assetType: {
|
|
@@ -535,6 +543,14 @@ var e = {
|
|
|
535
543
|
i: [{ t: 3 }],
|
|
536
544
|
s: "Animované"
|
|
537
545
|
}
|
|
546
|
+
},
|
|
547
|
+
licence: {
|
|
548
|
+
t: 0,
|
|
549
|
+
b: {
|
|
550
|
+
t: 2,
|
|
551
|
+
i: [{ t: 3 }],
|
|
552
|
+
s: "Licence"
|
|
553
|
+
}
|
|
538
554
|
}
|
|
539
555
|
}
|
|
540
556
|
},
|
|
@@ -755,6 +771,19 @@ var e = {
|
|
|
755
771
|
i: [{ t: 3 }],
|
|
756
772
|
s: "8K"
|
|
757
773
|
}
|
|
774
|
+
},
|
|
775
|
+
autoDeleteAt: {
|
|
776
|
+
t: 0,
|
|
777
|
+
b: {
|
|
778
|
+
t: 2,
|
|
779
|
+
i: [{
|
|
780
|
+
t: 3,
|
|
781
|
+
v: "Automatické smazání "
|
|
782
|
+
}, {
|
|
783
|
+
t: 4,
|
|
784
|
+
k: "date"
|
|
785
|
+
}]
|
|
786
|
+
}
|
|
758
787
|
}
|
|
759
788
|
},
|
|
760
789
|
assetFileFailReason: {
|