@anzusystems/common-admin 1.38.0 → 1.40.0-alpha1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common-admin.es.d.ts +481 -43
- package/dist/common-admin.es.js +196 -182
- package/dist/{lib-98879acf.js → lib-jI94z8l9.js} +5259 -4696
- package/dist/lib-jI94z8l9.js.map +1 -0
- package/dist/{shortcut-buttons-flatpickr-c75833aa.js → shortcut-buttons-flatpickr-VDAqc3Wj.js} +2 -2
- package/dist/{shortcut-buttons-flatpickr-c75833aa.js.map → shortcut-buttons-flatpickr-VDAqc3Wj.js.map} +1 -1
- package/dist/style.css +2 -2
- package/dist/{webfontloader-445dcb5b.js → webfontloader-IcUSkxlQ.js} +2 -2
- package/dist/{webfontloader-445dcb5b.js.map → webfontloader-IcUSkxlQ.js.map} +1 -1
- package/package.json +32 -28
- package/dist/lib-98879acf.js.map +0 -1
|
@@ -12,6 +12,7 @@ import type { DeepReadonly } from 'vue';
|
|
|
12
12
|
import { DefineComponent } from 'vue';
|
|
13
13
|
import { ExtractPropTypes } from 'vue';
|
|
14
14
|
import type { Fn } from '@vueuse/core';
|
|
15
|
+
import { Fn as Fn_2 } from '@vueuse/shared';
|
|
15
16
|
import { I18n } from './vue-i18n/dist/vue-i18n.esm-bundler.js';
|
|
16
17
|
import type { InjectionKey } from 'vue';
|
|
17
18
|
import { IntlDateTimeFormat } from './vue-i18n/dist/vue-i18n.esm-bundler.js';
|
|
@@ -27,6 +28,7 @@ import { RendererNode } from 'vue';
|
|
|
27
28
|
import type { RouteLocationNormalized } from 'vue-router';
|
|
28
29
|
import type { RouteLocationRaw } from 'vue-router';
|
|
29
30
|
import type { Router } from 'vue-router';
|
|
31
|
+
import { ShallowRef } from 'vue';
|
|
30
32
|
import { ShallowUnwrapRef } from 'vue';
|
|
31
33
|
import { UnwrapRef } from 'vue';
|
|
32
34
|
import { useI18n } from './vue-i18n/dist/vue-i18n.esm-bundler.js';
|
|
@@ -1908,10 +1910,12 @@ export declare const AAssetSelect: __VLS_WithTemplateSlots_15<DefineComponent<__
|
|
|
1908
1910
|
maxCount: number;
|
|
1909
1911
|
assetLicenceId?: number | undefined;
|
|
1910
1912
|
returnType?: AssetSelectReturnType | "mainFileId" | "assetId" | "asset" | undefined;
|
|
1913
|
+
configName?: string | undefined;
|
|
1911
1914
|
}>, {
|
|
1912
1915
|
modelValue: undefined;
|
|
1913
1916
|
assetLicenceId: undefined;
|
|
1914
1917
|
returnType: string;
|
|
1918
|
+
configName: string;
|
|
1915
1919
|
}>, {
|
|
1916
1920
|
open: () => void;
|
|
1917
1921
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -1924,10 +1928,12 @@ export declare const AAssetSelect: __VLS_WithTemplateSlots_15<DefineComponent<__
|
|
|
1924
1928
|
maxCount: number;
|
|
1925
1929
|
assetLicenceId?: number | undefined;
|
|
1926
1930
|
returnType?: AssetSelectReturnType | "mainFileId" | "assetId" | "asset" | undefined;
|
|
1931
|
+
configName?: string | undefined;
|
|
1927
1932
|
}>, {
|
|
1928
1933
|
modelValue: undefined;
|
|
1929
1934
|
assetLicenceId: undefined;
|
|
1930
1935
|
returnType: string;
|
|
1936
|
+
configName: string;
|
|
1931
1937
|
}>>> & {
|
|
1932
1938
|
"onUpdate:modelValue"?: ((data: boolean) => any) | undefined;
|
|
1933
1939
|
onOnConfirm?: ((data: AssetSelectReturnData) => any) | undefined;
|
|
@@ -1935,10 +1941,11 @@ export declare const AAssetSelect: __VLS_WithTemplateSlots_15<DefineComponent<__
|
|
|
1935
1941
|
modelValue: boolean;
|
|
1936
1942
|
assetLicenceId: number;
|
|
1937
1943
|
returnType: AssetSelectReturnType | "mainFileId" | "assetId" | "asset";
|
|
1944
|
+
configName: string;
|
|
1938
1945
|
}, {}>, {
|
|
1939
1946
|
activator?(_: {
|
|
1940
1947
|
props: {
|
|
1941
|
-
onClick: (
|
|
1948
|
+
onClick: () => void;
|
|
1942
1949
|
};
|
|
1943
1950
|
}): any;
|
|
1944
1951
|
title?(_: {}): any;
|
|
@@ -3734,7 +3741,7 @@ export declare const ASortable: __VLS_WithTemplateSlots_12<DefineComponent<__VLS
|
|
|
3734
3741
|
}): any;
|
|
3735
3742
|
"add-last-activator"?(_: {
|
|
3736
3743
|
props: {
|
|
3737
|
-
onClick: (
|
|
3744
|
+
onClick: () => void;
|
|
3738
3745
|
};
|
|
3739
3746
|
}): any;
|
|
3740
3747
|
}>;
|
|
@@ -3942,7 +3949,7 @@ export declare enum AssetFileProcessStatus {
|
|
|
3942
3949
|
}
|
|
3943
3950
|
|
|
3944
3951
|
export declare interface AssetFileProperties {
|
|
3945
|
-
distributesInServices:
|
|
3952
|
+
distributesInServices: DamDistributionServiceName[];
|
|
3946
3953
|
slotNames: string[];
|
|
3947
3954
|
fromRss: boolean;
|
|
3948
3955
|
width: number;
|
|
@@ -4010,8 +4017,8 @@ export declare const ASubjectSelect: <TItem>(__VLS_props: {
|
|
|
4010
4017
|
resetFilter: Fn;
|
|
4011
4018
|
pagination: Pagination;
|
|
4012
4019
|
loading?: boolean | undefined;
|
|
4013
|
-
"onUpdate:modelValue"?: ((data: boolean) => any) | undefined;
|
|
4014
4020
|
modelValue?: boolean | undefined;
|
|
4021
|
+
"onUpdate:modelValue"?: ((data: boolean) => any) | undefined;
|
|
4015
4022
|
onOnOpen?: (() => any) | undefined;
|
|
4016
4023
|
onOnConfirm?: ((data: TItem[]) => any) | undefined;
|
|
4017
4024
|
"onUpdate:pagination"?: ((data: Pagination) => any) | undefined;
|
|
@@ -4027,7 +4034,7 @@ export declare const ASubjectSelect: <TItem>(__VLS_props: {
|
|
|
4027
4034
|
slots: {
|
|
4028
4035
|
activator?(_: {
|
|
4029
4036
|
props: {
|
|
4030
|
-
onClick: (
|
|
4037
|
+
onClick: () => void;
|
|
4031
4038
|
};
|
|
4032
4039
|
}): any;
|
|
4033
4040
|
title?(_: {}): any;
|
|
@@ -4054,8 +4061,8 @@ export declare const ASubjectSelect: <TItem>(__VLS_props: {
|
|
|
4054
4061
|
resetFilter: Fn;
|
|
4055
4062
|
pagination: Pagination;
|
|
4056
4063
|
loading?: boolean | undefined;
|
|
4057
|
-
"onUpdate:modelValue"?: ((data: boolean) => any) | undefined;
|
|
4058
4064
|
modelValue?: boolean | undefined;
|
|
4065
|
+
"onUpdate:modelValue"?: ((data: boolean) => any) | undefined;
|
|
4059
4066
|
onOnOpen?: (() => any) | undefined;
|
|
4060
4067
|
onOnConfirm?: ((data: TItem[]) => any) | undefined;
|
|
4061
4068
|
"onUpdate:pagination"?: ((data: Pagination) => any) | undefined;
|
|
@@ -4074,7 +4081,7 @@ export declare const ASubjectSelect: <TItem>(__VLS_props: {
|
|
|
4074
4081
|
slots: {
|
|
4075
4082
|
activator?(_: {
|
|
4076
4083
|
props: {
|
|
4077
|
-
onClick: (
|
|
4084
|
+
onClick: () => void;
|
|
4078
4085
|
};
|
|
4079
4086
|
}): any;
|
|
4080
4087
|
title?(_: {}): any;
|
|
@@ -4102,8 +4109,8 @@ export declare const ASubjectSelect: <TItem>(__VLS_props: {
|
|
|
4102
4109
|
resetFilter: Fn;
|
|
4103
4110
|
pagination: Pagination;
|
|
4104
4111
|
loading?: boolean | undefined;
|
|
4105
|
-
"onUpdate:modelValue"?: ((data: boolean) => any) | undefined;
|
|
4106
4112
|
modelValue?: boolean | undefined;
|
|
4113
|
+
"onUpdate:modelValue"?: ((data: boolean) => any) | undefined;
|
|
4107
4114
|
onOnOpen?: (() => any) | undefined;
|
|
4108
4115
|
onOnConfirm?: ((data: TItem[]) => any) | undefined;
|
|
4109
4116
|
"onUpdate:pagination"?: ((data: Pagination) => any) | undefined;
|
|
@@ -4122,7 +4129,7 @@ export declare const ASubjectSelect: <TItem>(__VLS_props: {
|
|
|
4122
4129
|
slots: {
|
|
4123
4130
|
activator?(_: {
|
|
4124
4131
|
props: {
|
|
4125
|
-
onClick: (
|
|
4132
|
+
onClick: () => void;
|
|
4126
4133
|
};
|
|
4127
4134
|
}): any;
|
|
4128
4135
|
title?(_: {}): any;
|
|
@@ -4391,9 +4398,26 @@ declare type ColumnInternalValues = {
|
|
|
4391
4398
|
|
|
4392
4399
|
export declare const COMMON_CONFIG: Immutable<typeof commonConfig>;
|
|
4393
4400
|
|
|
4401
|
+
declare interface CommonAdminCoreDamConfig {
|
|
4402
|
+
damClient: () => AxiosInstance;
|
|
4403
|
+
defaultLicenceId?: IntegerId;
|
|
4404
|
+
}
|
|
4405
|
+
|
|
4406
|
+
declare type CommonAdminCoreDamOptions = undefined | {
|
|
4407
|
+
configs: {
|
|
4408
|
+
[key: string]: CommonAdminCoreDamConfig;
|
|
4409
|
+
};
|
|
4410
|
+
apiTimeout: number;
|
|
4411
|
+
uploadStatusFallback: boolean;
|
|
4412
|
+
notification: {
|
|
4413
|
+
enabled: boolean;
|
|
4414
|
+
webSocketUrl: string;
|
|
4415
|
+
};
|
|
4416
|
+
};
|
|
4417
|
+
|
|
4394
4418
|
declare interface CommonAdminImageConfig {
|
|
4395
|
-
|
|
4396
|
-
|
|
4419
|
+
imageClient: () => AxiosInstance;
|
|
4420
|
+
previewDomain: string;
|
|
4397
4421
|
width: number;
|
|
4398
4422
|
height: number;
|
|
4399
4423
|
}
|
|
@@ -4491,6 +4515,203 @@ export declare enum DamAssetType {
|
|
|
4491
4515
|
Default = "image"
|
|
4492
4516
|
}
|
|
4493
4517
|
|
|
4518
|
+
export declare interface DamDistributionConfig {
|
|
4519
|
+
distributionServices: Array<DamDistributionServiceName>;
|
|
4520
|
+
distributionRequirements: Record<DamDistributionServiceName, DamDistributionRequirementsConfig>;
|
|
4521
|
+
}
|
|
4522
|
+
|
|
4523
|
+
export declare interface DamDistributionRequirementsCategorySelectConfig {
|
|
4524
|
+
enabled: boolean;
|
|
4525
|
+
required: boolean;
|
|
4526
|
+
}
|
|
4527
|
+
|
|
4528
|
+
export declare interface DamDistributionRequirementsConfig {
|
|
4529
|
+
title: string;
|
|
4530
|
+
requiredAuth: boolean;
|
|
4531
|
+
blockedBy: Array<DamDistributionServiceName>;
|
|
4532
|
+
categorySelect: DamDistributionRequirementsCategorySelectConfig;
|
|
4533
|
+
strategy: DamDistributionRequirementStrategy;
|
|
4534
|
+
}
|
|
4535
|
+
|
|
4536
|
+
export declare enum DamDistributionRequirementStrategy {
|
|
4537
|
+
None = "none",
|
|
4538
|
+
AtLeastOne = "at_least_one",
|
|
4539
|
+
OneFromType = "one_from_type",
|
|
4540
|
+
WaitForAll = "wait_for_all",
|
|
4541
|
+
Default = "none"
|
|
4542
|
+
}
|
|
4543
|
+
|
|
4544
|
+
export declare type DamDistributionServiceName = string;
|
|
4545
|
+
|
|
4546
|
+
export declare enum DamDistributionServiceType {
|
|
4547
|
+
Youtube = "youtubeDistribution",
|
|
4548
|
+
Jw = "jwDistribution",
|
|
4549
|
+
Custom = "customDistribution"
|
|
4550
|
+
}
|
|
4551
|
+
|
|
4552
|
+
export declare enum DamDistributionStatus {
|
|
4553
|
+
Waiting = "waiting",
|
|
4554
|
+
Distributing = "distributing",
|
|
4555
|
+
RemoteProcessing = "remote_processing",
|
|
4556
|
+
Distributed = "distributed",
|
|
4557
|
+
Failed = "failed",
|
|
4558
|
+
Default = "waiting"
|
|
4559
|
+
}
|
|
4560
|
+
|
|
4561
|
+
export declare type DamExternalProviderAssetConfig = Record<DamExternalProviderAssetName, {
|
|
4562
|
+
listingLimit: number;
|
|
4563
|
+
title: string;
|
|
4564
|
+
}>;
|
|
4565
|
+
|
|
4566
|
+
export declare type DamExternalProviderAssetName = string;
|
|
4567
|
+
|
|
4568
|
+
export declare interface DamExtSystemAssetTypeExifMetadata {
|
|
4569
|
+
enabled: boolean;
|
|
4570
|
+
required: boolean;
|
|
4571
|
+
}
|
|
4572
|
+
|
|
4573
|
+
export declare interface DamExtSystemConfig extends Record<DamAssetType, DamExtSystemConfigItem> {
|
|
4574
|
+
assetExternalProviders: DamExternalProviderAssetConfig;
|
|
4575
|
+
audio: DamExtSystemConfigItem;
|
|
4576
|
+
video: DamExtSystemConfigItem;
|
|
4577
|
+
image: DamExtSystemConfigItem;
|
|
4578
|
+
document: DamExtSystemConfigItem;
|
|
4579
|
+
}
|
|
4580
|
+
|
|
4581
|
+
export declare interface DamExtSystemConfigItem {
|
|
4582
|
+
sizeLimit: number;
|
|
4583
|
+
defaultFileVersion: string;
|
|
4584
|
+
versions: Array<string>;
|
|
4585
|
+
mimeTypes: Array<string>;
|
|
4586
|
+
distribution: DamDistributionConfig;
|
|
4587
|
+
authors: DamExtSystemAssetTypeExifMetadata;
|
|
4588
|
+
keywords: DamExtSystemAssetTypeExifMetadata;
|
|
4589
|
+
customMetadataPinnedAmount: number;
|
|
4590
|
+
slots: string[];
|
|
4591
|
+
}
|
|
4592
|
+
|
|
4593
|
+
export declare const damFileTypeFix: (file: File | null | undefined) => string;
|
|
4594
|
+
|
|
4595
|
+
declare type DamNotification = DamNotificationAssetFileProcessed | DamNotificationAssetFileFailed | DamNotificationAssetFileDuplicate | DamNotificationAssetFileUploaded | DamNotificationAssetFileDeleted | DamNotificationAssetMetadataProcessed | DamNotificationAssetDeleted | DamNotificationDistributionDistributing | DamNotificationDistributionRemoteProcessing | DamNotificationDistributionDistributed | DamNotificationDistributionFailed | DamNotificationDistributionAuthorized | DamNotificationUserUpdated;
|
|
4596
|
+
|
|
4597
|
+
declare interface DamNotificationAssetData {
|
|
4598
|
+
asset: DocId;
|
|
4599
|
+
}
|
|
4600
|
+
|
|
4601
|
+
declare type DamNotificationAssetDeleted = DamNotificationEvent<typeof DamNotificationName.AssetDeleted, DamNotificationAssetData>;
|
|
4602
|
+
|
|
4603
|
+
declare interface DamNotificationAssetFileData {
|
|
4604
|
+
id: DocId;
|
|
4605
|
+
asset: DocId;
|
|
4606
|
+
}
|
|
4607
|
+
|
|
4608
|
+
declare type DamNotificationAssetFileDeleted = DamNotificationEvent<typeof DamNotificationName.AssetFileDeleted, DamNotificationAssetFileData>;
|
|
4609
|
+
|
|
4610
|
+
declare type DamNotificationAssetFileDuplicate = DamNotificationEvent<typeof DamNotificationName.AssetFileDuplicate, DamNotificationAssetFileStatusData>;
|
|
4611
|
+
|
|
4612
|
+
declare type DamNotificationAssetFileFailed = DamNotificationEvent<typeof DamNotificationName.AssetFileFailed, DamNotificationAssetFileStatusData>;
|
|
4613
|
+
|
|
4614
|
+
declare type DamNotificationAssetFileProcessed = DamNotificationEvent<typeof DamNotificationName.AssetFileProcessed, DamNotificationAssetFileStatusData>;
|
|
4615
|
+
|
|
4616
|
+
declare interface DamNotificationAssetFileStatusData {
|
|
4617
|
+
id: DocId;
|
|
4618
|
+
asset: DocId;
|
|
4619
|
+
status: AssetFileProcessStatus;
|
|
4620
|
+
failReason: AssetFileFailReason;
|
|
4621
|
+
assetType: DamAssetType;
|
|
4622
|
+
originAssetFile: DocId;
|
|
4623
|
+
}
|
|
4624
|
+
|
|
4625
|
+
declare type DamNotificationAssetFileUploaded = DamNotificationEvent<typeof DamNotificationName.AssetFileUploaded, DamNotificationAssetFileStatusData>;
|
|
4626
|
+
|
|
4627
|
+
declare type DamNotificationAssetMetadataProcessed = DamNotificationEvent<typeof DamNotificationName.AssetMetadataProcessed, DamNotificationAssetFileStatusData>;
|
|
4628
|
+
|
|
4629
|
+
declare type DamNotificationDistributionAuthorized = DamNotificationEvent<typeof DamNotificationName.DistributionAuthorized, {
|
|
4630
|
+
distributionService: DamDistributionServiceName;
|
|
4631
|
+
success: boolean;
|
|
4632
|
+
}>;
|
|
4633
|
+
|
|
4634
|
+
declare interface DamNotificationDistributionData {
|
|
4635
|
+
id: DocId;
|
|
4636
|
+
asset: DocId;
|
|
4637
|
+
assetFile: DocId;
|
|
4638
|
+
status: DamDistributionStatus;
|
|
4639
|
+
}
|
|
4640
|
+
|
|
4641
|
+
declare type DamNotificationDistributionDistributed = DamNotificationEvent<typeof DamNotificationName.DistributionDistributed, DamNotificationDistributionData>;
|
|
4642
|
+
|
|
4643
|
+
declare type DamNotificationDistributionDistributing = DamNotificationEvent<typeof DamNotificationName.DistributionDistributing, DamNotificationDistributionData>;
|
|
4644
|
+
|
|
4645
|
+
declare type DamNotificationDistributionFailed = DamNotificationEvent<typeof DamNotificationName.DistributionFailed, DamNotificationDistributionData>;
|
|
4646
|
+
|
|
4647
|
+
declare type DamNotificationDistributionRemoteProcessing = DamNotificationEvent<typeof DamNotificationName.DistributionRemoteProcessing, DamNotificationDistributionData>;
|
|
4648
|
+
|
|
4649
|
+
declare type DamNotificationEvent<T extends DamNotificationNameType, P> = {
|
|
4650
|
+
name: T;
|
|
4651
|
+
data: P;
|
|
4652
|
+
};
|
|
4653
|
+
|
|
4654
|
+
export declare const DamNotificationName: {
|
|
4655
|
+
readonly AssetFileProcessed: "asset_file_processed";
|
|
4656
|
+
readonly AssetFileFailed: "asset_file_failed";
|
|
4657
|
+
readonly AssetFileDuplicate: "asset_file_duplicate";
|
|
4658
|
+
readonly AssetFileUploaded: "asset_file_uploaded";
|
|
4659
|
+
readonly AssetFileDeleted: "asset_file_deleted";
|
|
4660
|
+
readonly AssetMetadataProcessed: "asset_metadata_processed";
|
|
4661
|
+
readonly AssetDeleted: "asset_deleted";
|
|
4662
|
+
readonly DistributionDistributing: "distribution_distributing";
|
|
4663
|
+
readonly DistributionRemoteProcessing: "distribution_remote_processing";
|
|
4664
|
+
readonly DistributionDistributed: "distribution_distributed";
|
|
4665
|
+
readonly DistributionFailed: "distribution_failed";
|
|
4666
|
+
readonly DistributionAuthorized: "distribution_authorized";
|
|
4667
|
+
readonly UserUpdated: "user_updated";
|
|
4668
|
+
};
|
|
4669
|
+
|
|
4670
|
+
export declare type DamNotificationNameType = (typeof DamNotificationName)[keyof typeof DamNotificationName];
|
|
4671
|
+
|
|
4672
|
+
declare type DamNotificationUserUpdated = DamNotificationEvent<typeof DamNotificationName.UserUpdated, undefined>;
|
|
4673
|
+
|
|
4674
|
+
export declare interface DamPrvConfig {
|
|
4675
|
+
assetExternalProviders: {
|
|
4676
|
+
[key: string]: {
|
|
4677
|
+
title: string;
|
|
4678
|
+
};
|
|
4679
|
+
};
|
|
4680
|
+
distributionServices: {
|
|
4681
|
+
[key: string]: {
|
|
4682
|
+
title: string;
|
|
4683
|
+
iconPath: string;
|
|
4684
|
+
type: DamDistributionServiceType;
|
|
4685
|
+
allowedRedistributeStatuses: Array<DamDistributionStatus>;
|
|
4686
|
+
};
|
|
4687
|
+
};
|
|
4688
|
+
colorSet: {
|
|
4689
|
+
[key: string]: string;
|
|
4690
|
+
};
|
|
4691
|
+
settings: {
|
|
4692
|
+
aclCheckEnabled: boolean;
|
|
4693
|
+
adminAllowListName: string;
|
|
4694
|
+
allowSelectExtSystem: boolean;
|
|
4695
|
+
allowSelectLicenceId: boolean;
|
|
4696
|
+
defaultAssetLicenceId: number;
|
|
4697
|
+
defaultExtSystemId: number;
|
|
4698
|
+
imageChunkConfig: {
|
|
4699
|
+
minSize: number;
|
|
4700
|
+
maxSize: number;
|
|
4701
|
+
};
|
|
4702
|
+
maxBulkItemCount: number;
|
|
4703
|
+
};
|
|
4704
|
+
}
|
|
4705
|
+
|
|
4706
|
+
export declare interface DamPubConfig {
|
|
4707
|
+
userAuthType: UserAuthType;
|
|
4708
|
+
}
|
|
4709
|
+
|
|
4710
|
+
export declare interface DamUploadStartResponse {
|
|
4711
|
+
id: DocId;
|
|
4712
|
+
asset: DocId;
|
|
4713
|
+
}
|
|
4714
|
+
|
|
4494
4715
|
export declare type DatatableOrderingOption = {
|
|
4495
4716
|
id: number;
|
|
4496
4717
|
titleT: string;
|
|
@@ -4574,8 +4795,6 @@ export declare function defineCached<I extends DocId | IntegerId, T extends Reco
|
|
|
4574
4795
|
isLoaded: (id: I | null | undefined) => boolean;
|
|
4575
4796
|
};
|
|
4576
4797
|
|
|
4577
|
-
declare type DistributionServiceName = string;
|
|
4578
|
-
|
|
4579
4798
|
export declare type DocId = string;
|
|
4580
4799
|
|
|
4581
4800
|
export declare type DocIdNullable = string | null;
|
|
@@ -4632,6 +4851,8 @@ export declare const generateUUIDv1: () => any;
|
|
|
4632
4851
|
|
|
4633
4852
|
export declare const generateUUIDv4: () => any;
|
|
4634
4853
|
|
|
4854
|
+
export declare const getAssetTypeByMimeType: (mimeType: string, damConfigExtSystem: DamExtSystemConfig) => DamAssetType | null;
|
|
4855
|
+
|
|
4635
4856
|
export declare enum Grant {
|
|
4636
4857
|
Deny = 0,
|
|
4637
4858
|
AllowOwner = 1,
|
|
@@ -5127,42 +5348,28 @@ declare interface ImageAttributes {
|
|
|
5127
5348
|
animated: boolean;
|
|
5128
5349
|
}
|
|
5129
5350
|
|
|
5130
|
-
declare interface
|
|
5351
|
+
declare interface ImageAware {
|
|
5131
5352
|
id: IntegerId;
|
|
5132
5353
|
texts: {
|
|
5133
|
-
title?: string;
|
|
5134
5354
|
description: string;
|
|
5135
|
-
|
|
5355
|
+
source: string;
|
|
5136
5356
|
};
|
|
5137
5357
|
dam: {
|
|
5138
5358
|
damId: DocId;
|
|
5139
5359
|
regionPosition: number;
|
|
5140
5360
|
};
|
|
5141
|
-
settings: {
|
|
5142
|
-
reviewed: false;
|
|
5143
|
-
};
|
|
5144
5361
|
position: number;
|
|
5145
|
-
imageAuthors: ImageWidgetImageAuthor[];
|
|
5146
|
-
licences: ImageWidgetImageLicence[];
|
|
5147
|
-
}
|
|
5148
|
-
|
|
5149
|
-
declare interface ImageWidgetImageAuthor {
|
|
5150
|
-
id: IntegerId;
|
|
5151
|
-
position: number;
|
|
5152
|
-
customAuthor: string;
|
|
5153
|
-
image: IntegerId;
|
|
5154
|
-
author: IntegerIdNullable;
|
|
5155
|
-
}
|
|
5156
|
-
|
|
5157
|
-
declare interface ImageWidgetImageLicence {
|
|
5158
|
-
name: string;
|
|
5159
|
-
value: IntegerIdNullable;
|
|
5160
5362
|
}
|
|
5161
5363
|
|
|
5162
5364
|
export declare type Immutable<T> = {
|
|
5163
5365
|
readonly [K in keyof T]: Immutable<T[K]>;
|
|
5164
5366
|
};
|
|
5165
5367
|
|
|
5368
|
+
export declare function initDamNotifications(): {
|
|
5369
|
+
openConnection: () => void;
|
|
5370
|
+
damNotificationsInitialized: Ref<boolean>;
|
|
5371
|
+
};
|
|
5372
|
+
|
|
5166
5373
|
export declare type IntegerId = number;
|
|
5167
5374
|
|
|
5168
5375
|
export declare type IntegerIdNullable = number | null;
|
|
@@ -6329,6 +6536,10 @@ export declare const messagesSk: {
|
|
|
6329
6536
|
text: string;
|
|
6330
6537
|
backButton: string;
|
|
6331
6538
|
};
|
|
6539
|
+
dropzone: {
|
|
6540
|
+
dropPossibility: string;
|
|
6541
|
+
dropHere: string;
|
|
6542
|
+
};
|
|
6332
6543
|
};
|
|
6333
6544
|
anzuUser: {
|
|
6334
6545
|
meta: {
|
|
@@ -6546,6 +6757,168 @@ export declare const messagesSk: {
|
|
|
6546
6757
|
unableToAdd: string;
|
|
6547
6758
|
};
|
|
6548
6759
|
};
|
|
6760
|
+
damImage: {
|
|
6761
|
+
image: {
|
|
6762
|
+
model: {
|
|
6763
|
+
texts: {
|
|
6764
|
+
description: string;
|
|
6765
|
+
source: string;
|
|
6766
|
+
};
|
|
6767
|
+
};
|
|
6768
|
+
meta: {
|
|
6769
|
+
edit: string;
|
|
6770
|
+
};
|
|
6771
|
+
button: {
|
|
6772
|
+
options: string;
|
|
6773
|
+
editAsset: string;
|
|
6774
|
+
upload: string;
|
|
6775
|
+
addFromDam: string;
|
|
6776
|
+
replaceFromDam: string;
|
|
6777
|
+
removeImage: string;
|
|
6778
|
+
};
|
|
6779
|
+
};
|
|
6780
|
+
queueItem: {
|
|
6781
|
+
edit: string;
|
|
6782
|
+
displayTitle: string;
|
|
6783
|
+
error: string;
|
|
6784
|
+
copyAssetId: string;
|
|
6785
|
+
};
|
|
6786
|
+
asset: {
|
|
6787
|
+
model: {
|
|
6788
|
+
authors: string;
|
|
6789
|
+
keywords: string;
|
|
6790
|
+
};
|
|
6791
|
+
assetType: {
|
|
6792
|
+
image: string;
|
|
6793
|
+
audio: string;
|
|
6794
|
+
video: string;
|
|
6795
|
+
document: string;
|
|
6796
|
+
};
|
|
6797
|
+
detail: {
|
|
6798
|
+
toggleInfo: string;
|
|
6799
|
+
metadataToggle: {
|
|
6800
|
+
show: string;
|
|
6801
|
+
hide: string;
|
|
6802
|
+
};
|
|
6803
|
+
tabs: {
|
|
6804
|
+
info: string;
|
|
6805
|
+
roi: string;
|
|
6806
|
+
};
|
|
6807
|
+
info: {
|
|
6808
|
+
status: {
|
|
6809
|
+
duplicate: string;
|
|
6810
|
+
draft: string;
|
|
6811
|
+
deleting: string;
|
|
6812
|
+
failed: string;
|
|
6813
|
+
};
|
|
6814
|
+
metadata: string;
|
|
6815
|
+
file: string;
|
|
6816
|
+
field: {
|
|
6817
|
+
id: string;
|
|
6818
|
+
mainFileId: string;
|
|
6819
|
+
type: string;
|
|
6820
|
+
mimeType: string;
|
|
6821
|
+
size: string;
|
|
6822
|
+
dominantColor: string;
|
|
6823
|
+
width: string;
|
|
6824
|
+
height: string;
|
|
6825
|
+
ratio: string;
|
|
6826
|
+
animated: string;
|
|
6827
|
+
};
|
|
6828
|
+
};
|
|
6829
|
+
roi: {
|
|
6830
|
+
title: string;
|
|
6831
|
+
description: string;
|
|
6832
|
+
refresh: string;
|
|
6833
|
+
rotate: {
|
|
6834
|
+
rotateMainFileImage: string;
|
|
6835
|
+
rotateClockwise: string;
|
|
6836
|
+
rotateCounterclockwise: string;
|
|
6837
|
+
};
|
|
6838
|
+
};
|
|
6839
|
+
};
|
|
6840
|
+
massOperations: {
|
|
6841
|
+
title: string;
|
|
6842
|
+
description: string;
|
|
6843
|
+
fillOneEmpty: string;
|
|
6844
|
+
fillAllEmpty: string;
|
|
6845
|
+
replaceOne: string;
|
|
6846
|
+
replaceAll: string;
|
|
6847
|
+
clearForm: string;
|
|
6848
|
+
general: string;
|
|
6849
|
+
};
|
|
6850
|
+
metaIcons: {
|
|
6851
|
+
low: string;
|
|
6852
|
+
slots: string;
|
|
6853
|
+
rss: string;
|
|
6854
|
+
fullHd: string;
|
|
6855
|
+
"2k": string;
|
|
6856
|
+
qhd: string;
|
|
6857
|
+
"4k": string;
|
|
6858
|
+
"8k": string;
|
|
6859
|
+
};
|
|
6860
|
+
assetFileFailReason: {
|
|
6861
|
+
none: string;
|
|
6862
|
+
unknown: string;
|
|
6863
|
+
invalidChecksum: string;
|
|
6864
|
+
invalidMimeType: string;
|
|
6865
|
+
downloadFailed: string;
|
|
6866
|
+
invalidSize: string;
|
|
6867
|
+
};
|
|
6868
|
+
};
|
|
6869
|
+
upload: {
|
|
6870
|
+
waiting: string;
|
|
6871
|
+
processing: string;
|
|
6872
|
+
uploading: string;
|
|
6873
|
+
done: string;
|
|
6874
|
+
stop: string;
|
|
6875
|
+
add: string;
|
|
6876
|
+
save: string;
|
|
6877
|
+
saveAndApply: string;
|
|
6878
|
+
title: string;
|
|
6879
|
+
titleDone: string;
|
|
6880
|
+
stopConfirmQuestion: string;
|
|
6881
|
+
};
|
|
6882
|
+
keyword: {
|
|
6883
|
+
model: {
|
|
6884
|
+
name: string;
|
|
6885
|
+
};
|
|
6886
|
+
button: {
|
|
6887
|
+
add: string;
|
|
6888
|
+
};
|
|
6889
|
+
meta: {
|
|
6890
|
+
create: string;
|
|
6891
|
+
};
|
|
6892
|
+
};
|
|
6893
|
+
author: {
|
|
6894
|
+
model: {
|
|
6895
|
+
name: string;
|
|
6896
|
+
identifier: string;
|
|
6897
|
+
type: string;
|
|
6898
|
+
};
|
|
6899
|
+
authorType: {
|
|
6900
|
+
none: string;
|
|
6901
|
+
internal: string;
|
|
6902
|
+
external: string;
|
|
6903
|
+
agency: string;
|
|
6904
|
+
};
|
|
6905
|
+
button: {
|
|
6906
|
+
add: string;
|
|
6907
|
+
};
|
|
6908
|
+
meta: {
|
|
6909
|
+
create: string;
|
|
6910
|
+
};
|
|
6911
|
+
conflicts: string;
|
|
6912
|
+
};
|
|
6913
|
+
uploadErrors: {
|
|
6914
|
+
unknownError: string;
|
|
6915
|
+
systemError: string;
|
|
6916
|
+
size: string;
|
|
6917
|
+
offset: string;
|
|
6918
|
+
mimeType: string;
|
|
6919
|
+
};
|
|
6920
|
+
notificationsNotConnected: string;
|
|
6921
|
+
};
|
|
6549
6922
|
};
|
|
6550
6923
|
$vuetify: {
|
|
6551
6924
|
badge: string;
|
|
@@ -6777,10 +7150,7 @@ export declare type PluginOptions<T extends AclValue = AclValue> = {
|
|
|
6777
7150
|
default: LanguageCode;
|
|
6778
7151
|
};
|
|
6779
7152
|
customAclResolver?: CustomAclResolver<T>;
|
|
6780
|
-
coreDam?:
|
|
6781
|
-
client: () => AxiosInstance;
|
|
6782
|
-
defaultLicenceId?: IntegerId;
|
|
6783
|
-
};
|
|
7153
|
+
coreDam?: CommonAdminCoreDamOptions;
|
|
6784
7154
|
image?: CommonAdminImageOptions;
|
|
6785
7155
|
};
|
|
6786
7156
|
|
|
@@ -6903,6 +7273,17 @@ export declare const timePretty: (isoDate: DatetimeUTC | DatetimeUTCNullable | s
|
|
|
6903
7273
|
|
|
6904
7274
|
export declare const timestampCurrent: () => number;
|
|
6905
7275
|
|
|
7276
|
+
export declare interface UploadQueue {
|
|
7277
|
+
items: UploadQueueItem[];
|
|
7278
|
+
totalCount: number;
|
|
7279
|
+
processedCount: number;
|
|
7280
|
+
fileInputKey: number;
|
|
7281
|
+
suggestions: {
|
|
7282
|
+
newKeywordNames: Set<string>;
|
|
7283
|
+
newAuthorNames: Set<string>;
|
|
7284
|
+
};
|
|
7285
|
+
}
|
|
7286
|
+
|
|
6906
7287
|
export declare interface UploadQueueItem {
|
|
6907
7288
|
key: string;
|
|
6908
7289
|
file: File | null;
|
|
@@ -6918,7 +7299,7 @@ export declare interface UploadQueueItem {
|
|
|
6918
7299
|
externalProviderAssetId: AssetExternalProviderIdNullable;
|
|
6919
7300
|
externalProviderName: string | null;
|
|
6920
7301
|
externalProviderMetadata: AssetExternalProviderMetadata;
|
|
6921
|
-
|
|
7302
|
+
latestChunkCancelToken: CancelTokenSource | null;
|
|
6922
7303
|
chunkSize: number;
|
|
6923
7304
|
currentChunkIndex: number;
|
|
6924
7305
|
chunkTotalCount: number;
|
|
@@ -6942,10 +7323,7 @@ export declare interface UploadQueueItem {
|
|
|
6942
7323
|
notificationFallbackTimer: ReturnType<typeof setTimeout> | undefined;
|
|
6943
7324
|
notificationFallbackTry: number;
|
|
6944
7325
|
slotName: string | null;
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
declare interface UploadQueueItemChunk {
|
|
6948
|
-
cancelTokenSource: CancelTokenSource;
|
|
7326
|
+
image: undefined | ImageAware;
|
|
6949
7327
|
}
|
|
6950
7328
|
|
|
6951
7329
|
export declare enum UploadQueueItemStatus {
|
|
@@ -7010,6 +7388,11 @@ export declare function useApiQueryBuilder(): {
|
|
|
7010
7388
|
queryBuild: () => string;
|
|
7011
7389
|
};
|
|
7012
7390
|
|
|
7391
|
+
export declare function useAssetSuggestions(): {
|
|
7392
|
+
updateNewNames: (suggestions: AssetMetadataSuggestions, newNames: Set<string>) => void;
|
|
7393
|
+
getAuthorConflicts: (suggestions: AssetMetadataSuggestions) => string[];
|
|
7394
|
+
};
|
|
7395
|
+
|
|
7013
7396
|
declare type UseCachedType = () => {
|
|
7014
7397
|
fetch: any;
|
|
7015
7398
|
add: any;
|
|
@@ -7154,6 +7537,51 @@ export declare function useCustomDataFormElementType(): {
|
|
|
7154
7537
|
} | undefined;
|
|
7155
7538
|
};
|
|
7156
7539
|
|
|
7540
|
+
export declare function useDamAcceptTypeAndSizeHelper(assetType: DamAssetType | undefined, damConfigExtSystem: DamExtSystemConfig): {
|
|
7541
|
+
uploadSizes: ComputedRef<{
|
|
7542
|
+
[x: string]: number;
|
|
7543
|
+
}>;
|
|
7544
|
+
uploadAccept: ComputedRef<string>;
|
|
7545
|
+
};
|
|
7546
|
+
|
|
7547
|
+
export declare function useDamConfigState(client?: undefined | (() => AxiosInstance)): {
|
|
7548
|
+
initialized: {
|
|
7549
|
+
damPubConfig: boolean;
|
|
7550
|
+
damPrvConfig: boolean;
|
|
7551
|
+
damConfigExtSystem: number | null;
|
|
7552
|
+
damConfigAssetCustomFormElements: number | null;
|
|
7553
|
+
};
|
|
7554
|
+
damPubConfig: Ref<DamPubConfig> | ShallowRef<DamPubConfig>;
|
|
7555
|
+
damPrvConfig: Ref<DamPrvConfig> | ShallowRef<DamPrvConfig>;
|
|
7556
|
+
damConfigExtSystem: Ref<DamExtSystemConfig> | ShallowRef<DamExtSystemConfig>;
|
|
7557
|
+
damConfigAssetCustomFormElements: Ref<{
|
|
7558
|
+
image: CustomDataFormElement[];
|
|
7559
|
+
audio: CustomDataFormElement[];
|
|
7560
|
+
video: CustomDataFormElement[];
|
|
7561
|
+
document: CustomDataFormElement[];
|
|
7562
|
+
}> | ShallowRef<{
|
|
7563
|
+
image: CustomDataFormElement[];
|
|
7564
|
+
audio: CustomDataFormElement[];
|
|
7565
|
+
video: CustomDataFormElement[];
|
|
7566
|
+
document: CustomDataFormElement[];
|
|
7567
|
+
}>;
|
|
7568
|
+
damConfigDistributionCustomFormElements: Ref<Record<string, CustomDataFormElement[]>> | ShallowRef<Record<string, CustomDataFormElement[]>>;
|
|
7569
|
+
loadDamPrvConfig: () => Promise<unknown>;
|
|
7570
|
+
loadDamPubConfig: () => Promise<unknown>;
|
|
7571
|
+
loadDamConfigExtSystem: (extSystemId: IntegerId) => Promise<unknown>;
|
|
7572
|
+
loadDamConfigAssetCustomFormElements: (extSystemId: IntegerId) => Promise<unknown>;
|
|
7573
|
+
loadDamConfigDistributionCustomFormElements: (distributionServiceName: DamDistributionServiceName) => Promise<unknown>;
|
|
7574
|
+
};
|
|
7575
|
+
|
|
7576
|
+
export declare function useDamNotifications(): {
|
|
7577
|
+
addDamNotificationListener: (callback: (event: DamNotification) => void) => Fn_2;
|
|
7578
|
+
};
|
|
7579
|
+
|
|
7580
|
+
export declare function useDamUploadChunkSize(apiTimeout?: number): {
|
|
7581
|
+
lastChunkSize: Ref<number>;
|
|
7582
|
+
updateChunkSize: (speed: number | null) => boolean;
|
|
7583
|
+
};
|
|
7584
|
+
|
|
7157
7585
|
export declare function useErrors(): {
|
|
7158
7586
|
isAnzuFatalError: (error: any) => error is AnzuFatalError;
|
|
7159
7587
|
isAnzuApiForbiddenError: (error: any) => error is AnzuApiForbiddenError;
|
|
@@ -7269,6 +7697,12 @@ export declare function usePermissionGroupFactory(): {
|
|
|
7269
7697
|
createPermissionGroup: () => PermissionGroup;
|
|
7270
7698
|
};
|
|
7271
7699
|
|
|
7700
|
+
export declare enum UserAuthType {
|
|
7701
|
+
JsonCredentials = "json_credentials",
|
|
7702
|
+
OAuth2 = "oauth2",
|
|
7703
|
+
Default = "json_credentials"
|
|
7704
|
+
}
|
|
7705
|
+
|
|
7272
7706
|
export declare function useRemainingTime(): {
|
|
7273
7707
|
remainingTimeShort: (seconds: number) => string;
|
|
7274
7708
|
remainingTimeLong: (seconds: number) => string;
|
|
@@ -7307,6 +7741,10 @@ export declare function useTheme(): {
|
|
|
7307
7741
|
setThemeLight: () => void;
|
|
7308
7742
|
};
|
|
7309
7743
|
|
|
7744
|
+
export declare function useUploadQueueItemFactory(): {
|
|
7745
|
+
createDefault: (key: string, type: UploadQueueItemType, status: UploadQueueItemStatus, assetType: DamAssetType, chunkSize: number, licenceId: IntegerId) => UploadQueueItem;
|
|
7746
|
+
};
|
|
7747
|
+
|
|
7310
7748
|
export declare function useValidate(): {
|
|
7311
7749
|
required: ValidationRuleWithoutParams<any>;
|
|
7312
7750
|
requiredIf: (prop: string | boolean | Ref<boolean> | (() => boolean | Promise<boolean>)) => ValidationRuleWithoutParams<any>;
|