@anzusystems/common-admin 1.39.0 → 1.40.0-alpha10

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.
@@ -7,11 +7,13 @@ import type { CancelTokenSource } from 'axios';
7
7
  import { ComponentCustomProps } from 'vue';
8
8
  import { ComponentOptionsMixin } from 'vue';
9
9
  import { ComputedRef } from 'vue';
10
+ import { default as Cropper_2 } from 'cropperjs';
10
11
  import dayjs from 'dayjs';
11
12
  import type { DeepReadonly } from 'vue';
12
13
  import { DefineComponent } from 'vue';
13
14
  import { ExtractPropTypes } from 'vue';
14
15
  import type { Fn } from '@vueuse/core';
16
+ import { Fn as Fn_2 } from '@vueuse/shared';
15
17
  import { I18n } from './vue-i18n/dist/vue-i18n.esm-bundler.js';
16
18
  import type { InjectionKey } from 'vue';
17
19
  import { IntlDateTimeFormat } from './vue-i18n/dist/vue-i18n.esm-bundler.js';
@@ -27,6 +29,7 @@ import { RendererNode } from 'vue';
27
29
  import type { RouteLocationNormalized } from 'vue-router';
28
30
  import type { RouteLocationRaw } from 'vue-router';
29
31
  import type { Router } from 'vue-router';
32
+ import { ShallowRef } from 'vue';
30
33
  import { ShallowUnwrapRef } from 'vue';
31
34
  import { UnwrapRef } from 'vue';
32
35
  import { useI18n } from './vue-i18n/dist/vue-i18n.esm-bundler.js';
@@ -169,6 +172,14 @@ declare type __VLS_NonUndefinedable_69<T> = T extends undefined ? never : T;
169
172
 
170
173
  declare type __VLS_NonUndefinedable_7<T> = T extends undefined ? never : T;
171
174
 
175
+ declare type __VLS_NonUndefinedable_70<T> = T extends undefined ? never : T;
176
+
177
+ declare type __VLS_NonUndefinedable_71<T> = T extends undefined ? never : T;
178
+
179
+ declare type __VLS_NonUndefinedable_72<T> = T extends undefined ? never : T;
180
+
181
+ declare type __VLS_NonUndefinedable_73<T> = T extends undefined ? never : T;
182
+
172
183
  declare type __VLS_NonUndefinedable_8<T> = T extends undefined ? never : T;
173
184
 
174
185
  declare type __VLS_NonUndefinedable_9<T> = T extends undefined ? never : T;
@@ -425,10 +436,26 @@ declare type __VLS_Prettify_66<T> = {
425
436
  [K in keyof T]: T[K];
426
437
  } & {};
427
438
 
439
+ declare type __VLS_Prettify_67<T> = {
440
+ [K in keyof T]: T[K];
441
+ } & {};
442
+
443
+ declare type __VLS_Prettify_68<T> = {
444
+ [K in keyof T]: T[K];
445
+ } & {};
446
+
447
+ declare type __VLS_Prettify_69<T> = {
448
+ [K in keyof T]: T[K];
449
+ } & {};
450
+
428
451
  declare type __VLS_Prettify_7<T> = {
429
452
  [K in keyof T]: T[K];
430
453
  } & {};
431
454
 
455
+ declare type __VLS_Prettify_70<T> = {
456
+ [K in keyof T]: T[K];
457
+ } & {};
458
+
432
459
  declare type __VLS_Prettify_8<T> = {
433
460
  [K in keyof T]: T[K];
434
461
  } & {};
@@ -1040,6 +1067,42 @@ declare type __VLS_TypePropsToRuntimeProps_7<T> = {
1040
1067
  };
1041
1068
  };
1042
1069
 
1070
+ declare type __VLS_TypePropsToRuntimeProps_70<T> = {
1071
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1072
+ type: PropType<__VLS_NonUndefinedable_70<T[K]>>;
1073
+ } : {
1074
+ type: PropType<T[K]>;
1075
+ required: true;
1076
+ };
1077
+ };
1078
+
1079
+ declare type __VLS_TypePropsToRuntimeProps_71<T> = {
1080
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1081
+ type: PropType<__VLS_NonUndefinedable_71<T[K]>>;
1082
+ } : {
1083
+ type: PropType<T[K]>;
1084
+ required: true;
1085
+ };
1086
+ };
1087
+
1088
+ declare type __VLS_TypePropsToRuntimeProps_72<T> = {
1089
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1090
+ type: PropType<__VLS_NonUndefinedable_72<T[K]>>;
1091
+ } : {
1092
+ type: PropType<T[K]>;
1093
+ required: true;
1094
+ };
1095
+ };
1096
+
1097
+ declare type __VLS_TypePropsToRuntimeProps_73<T> = {
1098
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1099
+ type: PropType<__VLS_NonUndefinedable_73<T[K]>>;
1100
+ } : {
1101
+ type: PropType<T[K]>;
1102
+ required: true;
1103
+ };
1104
+ };
1105
+
1043
1106
  declare type __VLS_TypePropsToRuntimeProps_8<T> = {
1044
1107
  [K in keyof T]-?: {} extends Pick<T, K> ? {
1045
1108
  type: PropType<__VLS_NonUndefinedable_8<T[K]>>;
@@ -1436,12 +1499,36 @@ declare type __VLS_WithDefaults_66<P, D> = {
1436
1499
  }> : P[K];
1437
1500
  };
1438
1501
 
1502
+ declare type __VLS_WithDefaults_67<P, D> = {
1503
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_67<P[K] & {
1504
+ default: D[K];
1505
+ }> : P[K];
1506
+ };
1507
+
1508
+ declare type __VLS_WithDefaults_68<P, D> = {
1509
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_68<P[K] & {
1510
+ default: D[K];
1511
+ }> : P[K];
1512
+ };
1513
+
1514
+ declare type __VLS_WithDefaults_69<P, D> = {
1515
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_69<P[K] & {
1516
+ default: D[K];
1517
+ }> : P[K];
1518
+ };
1519
+
1439
1520
  declare type __VLS_WithDefaults_7<P, D> = {
1440
1521
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_7<P[K] & {
1441
1522
  default: D[K];
1442
1523
  }> : P[K];
1443
1524
  };
1444
1525
 
1526
+ declare type __VLS_WithDefaults_70<P, D> = {
1527
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_70<P[K] & {
1528
+ default: D[K];
1529
+ }> : P[K];
1530
+ };
1531
+
1445
1532
  declare type __VLS_WithDefaults_8<P, D> = {
1446
1533
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_8<P[K] & {
1447
1534
  default: D[K];
@@ -1496,6 +1583,12 @@ declare type __VLS_WithTemplateSlots_15<T, S> = T & {
1496
1583
  };
1497
1584
  };
1498
1585
 
1586
+ declare type __VLS_WithTemplateSlots_16<T, S> = T & {
1587
+ new (): {
1588
+ $slots: S;
1589
+ };
1590
+ };
1591
+
1499
1592
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
1500
1593
  new (): {
1501
1594
  $slots: S;
@@ -1901,44 +1994,49 @@ export declare const AAnzuUserAvatar: DefineComponent<__VLS_WithDefaults_53<__VL
1901
1994
  containerClass: string;
1902
1995
  }, {}>;
1903
1996
 
1904
- export declare const AAssetSelect: __VLS_WithTemplateSlots_15<DefineComponent<__VLS_WithDefaults_62<__VLS_TypePropsToRuntimeProps_65<{
1997
+ export declare const AAssetSelect: __VLS_WithTemplateSlots_16<DefineComponent<__VLS_WithDefaults_66<__VLS_TypePropsToRuntimeProps_69<{
1905
1998
  modelValue?: boolean | undefined;
1906
- assetType: "image" | "audio" | "video" | DamAssetType | "document";
1999
+ assetType: "image" | "audio" | "video" | "document" | DamAssetType;
1907
2000
  minCount: number;
1908
2001
  maxCount: number;
1909
2002
  assetLicenceId?: number | undefined;
1910
- returnType?: AssetSelectReturnType | "mainFileId" | "assetId" | "asset" | undefined;
2003
+ returnType?: "asset" | "mainFileId" | "assetId" | AssetSelectReturnType | undefined;
2004
+ configName?: string | undefined;
1911
2005
  }>, {
1912
2006
  modelValue: undefined;
1913
2007
  assetLicenceId: undefined;
1914
2008
  returnType: string;
2009
+ configName: string;
1915
2010
  }>, {
1916
2011
  open: () => void;
1917
2012
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1918
2013
  "update:modelValue": (data: boolean) => void;
1919
2014
  onConfirm: (data: AssetSelectReturnData) => void;
1920
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_62<__VLS_TypePropsToRuntimeProps_65<{
2015
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_66<__VLS_TypePropsToRuntimeProps_69<{
1921
2016
  modelValue?: boolean | undefined;
1922
- assetType: "image" | "audio" | "video" | DamAssetType | "document";
2017
+ assetType: "image" | "audio" | "video" | "document" | DamAssetType;
1923
2018
  minCount: number;
1924
2019
  maxCount: number;
1925
2020
  assetLicenceId?: number | undefined;
1926
- returnType?: AssetSelectReturnType | "mainFileId" | "assetId" | "asset" | undefined;
2021
+ returnType?: "asset" | "mainFileId" | "assetId" | AssetSelectReturnType | undefined;
2022
+ configName?: string | undefined;
1927
2023
  }>, {
1928
2024
  modelValue: undefined;
1929
2025
  assetLicenceId: undefined;
1930
2026
  returnType: string;
2027
+ configName: string;
1931
2028
  }>>> & {
1932
2029
  "onUpdate:modelValue"?: ((data: boolean) => any) | undefined;
1933
2030
  onOnConfirm?: ((data: AssetSelectReturnData) => any) | undefined;
1934
2031
  }, {
1935
2032
  modelValue: boolean;
2033
+ configName: string;
1936
2034
  assetLicenceId: number;
1937
- returnType: AssetSelectReturnType | "mainFileId" | "assetId" | "asset";
2035
+ returnType: "asset" | "mainFileId" | "assetId" | AssetSelectReturnType;
1938
2036
  }, {}>, {
1939
2037
  activator?(_: {
1940
2038
  props: {
1941
- onClick: (event: Event, ...args: unknown[]) => any;
2039
+ onClick: () => void;
1942
2040
  };
1943
2041
  }): any;
1944
2042
  title?(_: {}): any;
@@ -2299,6 +2397,193 @@ export declare const ACreateDialog: __VLS_WithTemplateSlots_7<DefineComponent<__
2299
2397
  "button-confirm-title"?(_: {}): any;
2300
2398
  }>;
2301
2399
 
2400
+ export declare const ACropperjs: <T extends EventTarget = EventTarget>(__VLS_props: {
2401
+ modal?: boolean | undefined;
2402
+ center?: boolean | undefined;
2403
+ data?: Cropper_2.SetDataOptions | null | undefined;
2404
+ src?: string | undefined;
2405
+ alt?: string | undefined;
2406
+ background?: boolean | undefined;
2407
+ aspectRatio?: number | undefined;
2408
+ containerStyle?: {
2409
+ [key: string]: string;
2410
+ } | undefined;
2411
+ imgStyle?: {
2412
+ [key: string]: string;
2413
+ } | undefined;
2414
+ autoCrop?: boolean | undefined;
2415
+ autoCropArea?: number | undefined;
2416
+ checkCrossOrigin?: boolean | undefined;
2417
+ checkOrientation?: boolean | undefined;
2418
+ cropBoxMovable?: boolean | undefined;
2419
+ cropBoxResizable?: boolean | undefined;
2420
+ dragMode?: Cropper_2.DragMode | undefined;
2421
+ guides?: boolean | undefined;
2422
+ highlight?: boolean | undefined;
2423
+ initialAspectRatio?: number | undefined;
2424
+ movable?: boolean | undefined;
2425
+ preview?: string | HTMLElement | HTMLElement[] | NodeListOf<HTMLElement> | undefined;
2426
+ responsive?: boolean | undefined;
2427
+ restore?: boolean | undefined;
2428
+ rotatable?: boolean | undefined;
2429
+ scalable?: boolean | undefined;
2430
+ toggleDragModeOnDblclick?: boolean | undefined;
2431
+ viewMode?: Cropper_2.ViewMode | undefined;
2432
+ wheelZoomRatio?: number | undefined;
2433
+ zoomOnTouch?: boolean | undefined;
2434
+ zoomOnWheel?: boolean | undefined;
2435
+ zoomable?: boolean | undefined;
2436
+ minCanvasWidth?: number | undefined;
2437
+ minCanvasHeight?: number | undefined;
2438
+ minContainerWidth?: number | undefined;
2439
+ minContainerHeight?: number | undefined;
2440
+ minCropBoxWidth?: number | undefined;
2441
+ minCropBoxHeight?: number | undefined;
2442
+ ready?: ((event: Cropper_2.ReadyEvent<T>) => void) | null | undefined;
2443
+ crop?: ((event: Cropper_2.CropEvent<T>) => void) | null | undefined;
2444
+ cropend?: ((event: Cropper_2.CropEndEvent<T>) => void) | null | undefined;
2445
+ cropmove?: ((event: Cropper_2.CropMoveEvent<T>) => void) | null | undefined;
2446
+ cropstart?: ((event: Cropper_2.CropStartEvent<T>) => void) | null | undefined;
2447
+ zoom?: ((event: Cropper_2.ZoomEvent<T>) => void) | null | undefined;
2448
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, __VLS_ctx?: {
2449
+ attrs: any;
2450
+ slots: {};
2451
+ emit: any;
2452
+ } | undefined, __VLS_expose?: ((exposed: ShallowUnwrapRef<{
2453
+ enable: () => void;
2454
+ disable: () => void;
2455
+ destroy: () => void;
2456
+ getImageData: () => Cropper_2.ImageData | undefined;
2457
+ getData: () => Cropper_2.Data | undefined;
2458
+ setData: (data: Cropper_2.SetDataOptions) => Cropper_2 | undefined;
2459
+ }>) => void) | undefined, __VLS_setup?: Promise<{
2460
+ props: {
2461
+ modal?: boolean | undefined;
2462
+ center?: boolean | undefined;
2463
+ data?: Cropper_2.SetDataOptions | null | undefined;
2464
+ src?: string | undefined;
2465
+ alt?: string | undefined;
2466
+ background?: boolean | undefined;
2467
+ aspectRatio?: number | undefined;
2468
+ containerStyle?: {
2469
+ [key: string]: string;
2470
+ } | undefined;
2471
+ imgStyle?: {
2472
+ [key: string]: string;
2473
+ } | undefined;
2474
+ autoCrop?: boolean | undefined;
2475
+ autoCropArea?: number | undefined;
2476
+ checkCrossOrigin?: boolean | undefined;
2477
+ checkOrientation?: boolean | undefined;
2478
+ cropBoxMovable?: boolean | undefined;
2479
+ cropBoxResizable?: boolean | undefined;
2480
+ dragMode?: Cropper_2.DragMode | undefined;
2481
+ guides?: boolean | undefined;
2482
+ highlight?: boolean | undefined;
2483
+ initialAspectRatio?: number | undefined;
2484
+ movable?: boolean | undefined;
2485
+ preview?: string | HTMLElement | HTMLElement[] | NodeListOf<HTMLElement> | undefined;
2486
+ responsive?: boolean | undefined;
2487
+ restore?: boolean | undefined;
2488
+ rotatable?: boolean | undefined;
2489
+ scalable?: boolean | undefined;
2490
+ toggleDragModeOnDblclick?: boolean | undefined;
2491
+ viewMode?: Cropper_2.ViewMode | undefined;
2492
+ wheelZoomRatio?: number | undefined;
2493
+ zoomOnTouch?: boolean | undefined;
2494
+ zoomOnWheel?: boolean | undefined;
2495
+ zoomable?: boolean | undefined;
2496
+ minCanvasWidth?: number | undefined;
2497
+ minCanvasHeight?: number | undefined;
2498
+ minContainerWidth?: number | undefined;
2499
+ minContainerHeight?: number | undefined;
2500
+ minCropBoxWidth?: number | undefined;
2501
+ minCropBoxHeight?: number | undefined;
2502
+ ready?: ((event: Cropper_2.ReadyEvent<T>) => void) | null | undefined;
2503
+ crop?: ((event: Cropper_2.CropEvent<T>) => void) | null | undefined;
2504
+ cropend?: ((event: Cropper_2.CropEndEvent<T>) => void) | null | undefined;
2505
+ cropmove?: ((event: Cropper_2.CropMoveEvent<T>) => void) | null | undefined;
2506
+ cropstart?: ((event: Cropper_2.CropStartEvent<T>) => void) | null | undefined;
2507
+ zoom?: ((event: Cropper_2.ZoomEvent<T>) => void) | null | undefined;
2508
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
2509
+ expose(exposed: ShallowUnwrapRef<{
2510
+ enable: () => void;
2511
+ disable: () => void;
2512
+ destroy: () => void;
2513
+ getImageData: () => Cropper_2.ImageData | undefined;
2514
+ getData: () => Cropper_2.Data | undefined;
2515
+ setData: (data: Cropper_2.SetDataOptions) => Cropper_2 | undefined;
2516
+ }>): void;
2517
+ attrs: any;
2518
+ slots: {};
2519
+ emit: any;
2520
+ }>) => VNode<RendererNode, RendererElement, {
2521
+ [key: string]: any;
2522
+ }> & {
2523
+ __ctx?: {
2524
+ props: {
2525
+ modal?: boolean | undefined;
2526
+ center?: boolean | undefined;
2527
+ data?: Cropper_2.SetDataOptions | null | undefined;
2528
+ src?: string | undefined;
2529
+ alt?: string | undefined;
2530
+ background?: boolean | undefined;
2531
+ aspectRatio?: number | undefined;
2532
+ containerStyle?: {
2533
+ [key: string]: string;
2534
+ } | undefined;
2535
+ imgStyle?: {
2536
+ [key: string]: string;
2537
+ } | undefined;
2538
+ autoCrop?: boolean | undefined;
2539
+ autoCropArea?: number | undefined;
2540
+ checkCrossOrigin?: boolean | undefined;
2541
+ checkOrientation?: boolean | undefined;
2542
+ cropBoxMovable?: boolean | undefined;
2543
+ cropBoxResizable?: boolean | undefined;
2544
+ dragMode?: Cropper_2.DragMode | undefined;
2545
+ guides?: boolean | undefined;
2546
+ highlight?: boolean | undefined;
2547
+ initialAspectRatio?: number | undefined;
2548
+ movable?: boolean | undefined;
2549
+ preview?: string | HTMLElement | HTMLElement[] | NodeListOf<HTMLElement> | undefined;
2550
+ responsive?: boolean | undefined;
2551
+ restore?: boolean | undefined;
2552
+ rotatable?: boolean | undefined;
2553
+ scalable?: boolean | undefined;
2554
+ toggleDragModeOnDblclick?: boolean | undefined;
2555
+ viewMode?: Cropper_2.ViewMode | undefined;
2556
+ wheelZoomRatio?: number | undefined;
2557
+ zoomOnTouch?: boolean | undefined;
2558
+ zoomOnWheel?: boolean | undefined;
2559
+ zoomable?: boolean | undefined;
2560
+ minCanvasWidth?: number | undefined;
2561
+ minCanvasHeight?: number | undefined;
2562
+ minContainerWidth?: number | undefined;
2563
+ minContainerHeight?: number | undefined;
2564
+ minCropBoxWidth?: number | undefined;
2565
+ minCropBoxHeight?: number | undefined;
2566
+ ready?: ((event: Cropper_2.ReadyEvent<T>) => void) | null | undefined;
2567
+ crop?: ((event: Cropper_2.CropEvent<T>) => void) | null | undefined;
2568
+ cropend?: ((event: Cropper_2.CropEndEvent<T>) => void) | null | undefined;
2569
+ cropmove?: ((event: Cropper_2.CropMoveEvent<T>) => void) | null | undefined;
2570
+ cropstart?: ((event: Cropper_2.CropStartEvent<T>) => void) | null | undefined;
2571
+ zoom?: ((event: Cropper_2.ZoomEvent<T>) => void) | null | undefined;
2572
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
2573
+ expose(exposed: ShallowUnwrapRef<{
2574
+ enable: () => void;
2575
+ disable: () => void;
2576
+ destroy: () => void;
2577
+ getImageData: () => Cropper_2.ImageData | undefined;
2578
+ getData: () => Cropper_2.Data | undefined;
2579
+ setData: (data: Cropper_2.SetDataOptions) => Cropper_2 | undefined;
2580
+ }>): void;
2581
+ attrs: any;
2582
+ slots: {};
2583
+ emit: any;
2584
+ } | undefined;
2585
+ };
2586
+
2302
2587
  export declare const ACurrentUserDropdown: DefineComponent<__VLS_WithDefaults_55<__VLS_TypePropsToRuntimeProps_58<{
2303
2588
  currentUser: AnzuUserMinimal | undefined | null;
2304
2589
  settingsRouteName: string;
@@ -3369,6 +3654,259 @@ export declare const AIconGroup: DefineComponent<__VLS_WithDefaults_35<__VLS_Typ
3369
3654
  secondaryText: null | string;
3370
3655
  }, {}>;
3371
3656
 
3657
+ export declare const AImageWidget: DefineComponent<__VLS_WithDefaults_62<__VLS_TypePropsToRuntimeProps_65<{
3658
+ modelValue: IntegerIdNullable;
3659
+ queueKey: UploadQueueKey;
3660
+ licenceId: IntegerId;
3661
+ extSystem: IntegerId;
3662
+ image?: ImageAware | undefined;
3663
+ configName?: string | undefined;
3664
+ label?: string | undefined;
3665
+ readonly?: boolean | undefined;
3666
+ dataCy?: string | undefined;
3667
+ expandOptions?: boolean | undefined;
3668
+ disableOnClickMenu?: boolean | undefined;
3669
+ width?: number | undefined;
3670
+ callDeleteApiOnRemove?: boolean | undefined;
3671
+ }>, {
3672
+ configName: string;
3673
+ label: undefined;
3674
+ image: undefined;
3675
+ readonly: boolean;
3676
+ lockable: boolean;
3677
+ lockedById: undefined;
3678
+ dataCy: undefined;
3679
+ expandOptions: boolean;
3680
+ disableOnClickMenu: boolean;
3681
+ width: undefined;
3682
+ callDeleteApiOnRemove: boolean;
3683
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3684
+ "update:modelValue": (data: IntegerIdNullable) => void;
3685
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_62<__VLS_TypePropsToRuntimeProps_65<{
3686
+ modelValue: IntegerIdNullable;
3687
+ queueKey: UploadQueueKey;
3688
+ licenceId: IntegerId;
3689
+ extSystem: IntegerId;
3690
+ image?: ImageAware | undefined;
3691
+ configName?: string | undefined;
3692
+ label?: string | undefined;
3693
+ readonly?: boolean | undefined;
3694
+ dataCy?: string | undefined;
3695
+ expandOptions?: boolean | undefined;
3696
+ disableOnClickMenu?: boolean | undefined;
3697
+ width?: number | undefined;
3698
+ callDeleteApiOnRemove?: boolean | undefined;
3699
+ }>, {
3700
+ configName: string;
3701
+ label: undefined;
3702
+ image: undefined;
3703
+ readonly: boolean;
3704
+ lockable: boolean;
3705
+ lockedById: undefined;
3706
+ dataCy: undefined;
3707
+ expandOptions: boolean;
3708
+ disableOnClickMenu: boolean;
3709
+ width: undefined;
3710
+ callDeleteApiOnRemove: boolean;
3711
+ }>>> & {
3712
+ "onUpdate:modelValue"?: ((data: IntegerIdNullable) => any) | undefined;
3713
+ }, {
3714
+ width: number;
3715
+ image: ImageAware;
3716
+ label: string;
3717
+ dataCy: string;
3718
+ readonly: boolean;
3719
+ configName: string;
3720
+ expandOptions: boolean;
3721
+ disableOnClickMenu: boolean;
3722
+ callDeleteApiOnRemove: boolean;
3723
+ }, {}>;
3724
+
3725
+ export declare const AImageWidgetMultiple: DefineComponent<__VLS_WithDefaults_64<__VLS_TypePropsToRuntimeProps_67<{
3726
+ modelValue: IntegerId[];
3727
+ queueKey: UploadQueueKey;
3728
+ licenceId: IntegerId;
3729
+ extSystem: IntegerId;
3730
+ configName?: string | undefined;
3731
+ label?: string | undefined;
3732
+ readonly?: boolean | undefined;
3733
+ dataCy?: string | undefined;
3734
+ width?: number | undefined;
3735
+ callDeleteApiOnRemove?: boolean | undefined;
3736
+ }>, {
3737
+ configName: string;
3738
+ label: undefined;
3739
+ image: undefined;
3740
+ readonly: boolean;
3741
+ lockable: boolean;
3742
+ lockedById: undefined;
3743
+ dataCy: undefined;
3744
+ expandOptions: boolean;
3745
+ width: undefined;
3746
+ callDeleteApiOnRemove: boolean;
3747
+ }>, {
3748
+ saveImages: () => Promise<boolean>;
3749
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3750
+ "update:modelValue": (data: number[]) => void;
3751
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_64<__VLS_TypePropsToRuntimeProps_67<{
3752
+ modelValue: IntegerId[];
3753
+ queueKey: UploadQueueKey;
3754
+ licenceId: IntegerId;
3755
+ extSystem: IntegerId;
3756
+ configName?: string | undefined;
3757
+ label?: string | undefined;
3758
+ readonly?: boolean | undefined;
3759
+ dataCy?: string | undefined;
3760
+ width?: number | undefined;
3761
+ callDeleteApiOnRemove?: boolean | undefined;
3762
+ }>, {
3763
+ configName: string;
3764
+ label: undefined;
3765
+ image: undefined;
3766
+ readonly: boolean;
3767
+ lockable: boolean;
3768
+ lockedById: undefined;
3769
+ dataCy: undefined;
3770
+ expandOptions: boolean;
3771
+ width: undefined;
3772
+ callDeleteApiOnRemove: boolean;
3773
+ }>>> & {
3774
+ "onUpdate:modelValue"?: ((data: number[]) => any) | undefined;
3775
+ }, {
3776
+ width: number;
3777
+ label: string;
3778
+ dataCy: string;
3779
+ readonly: boolean;
3780
+ configName: string;
3781
+ callDeleteApiOnRemove: boolean;
3782
+ }, {}>;
3783
+
3784
+ export declare const AImageWidgetMultipleSimple: DefineComponent<__VLS_WithDefaults_65<__VLS_TypePropsToRuntimeProps_68<{
3785
+ modelValue: IntegerId[];
3786
+ images?: ImageAware[] | undefined;
3787
+ configName?: string | undefined;
3788
+ label?: string | undefined;
3789
+ width?: number | undefined;
3790
+ disableAspectRatio?: boolean | undefined;
3791
+ aspectRatio?: string | number | undefined;
3792
+ showDescription?: boolean | undefined;
3793
+ showSource?: boolean | undefined;
3794
+ }>, {
3795
+ images: () => never[];
3796
+ configName: string;
3797
+ label: undefined;
3798
+ image: undefined;
3799
+ width: undefined;
3800
+ disableAspectRatio: boolean;
3801
+ aspectRatio: number;
3802
+ showDescription: boolean;
3803
+ showSource: boolean;
3804
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_65<__VLS_TypePropsToRuntimeProps_68<{
3805
+ modelValue: IntegerId[];
3806
+ images?: ImageAware[] | undefined;
3807
+ configName?: string | undefined;
3808
+ label?: string | undefined;
3809
+ width?: number | undefined;
3810
+ disableAspectRatio?: boolean | undefined;
3811
+ aspectRatio?: string | number | undefined;
3812
+ showDescription?: boolean | undefined;
3813
+ showSource?: boolean | undefined;
3814
+ }>, {
3815
+ images: () => never[];
3816
+ configName: string;
3817
+ label: undefined;
3818
+ image: undefined;
3819
+ width: undefined;
3820
+ disableAspectRatio: boolean;
3821
+ aspectRatio: number;
3822
+ showDescription: boolean;
3823
+ showSource: boolean;
3824
+ }>>>, {
3825
+ width: number;
3826
+ label: string;
3827
+ configName: string;
3828
+ disableAspectRatio: boolean;
3829
+ aspectRatio: number | string;
3830
+ showDescription: boolean;
3831
+ showSource: boolean;
3832
+ images: ImageAware[];
3833
+ }, {}>;
3834
+
3835
+ export declare const AImageWidgetSimple: __VLS_WithTemplateSlots_15<DefineComponent<__VLS_WithDefaults_63<__VLS_TypePropsToRuntimeProps_66<{
3836
+ modelValue: IntegerIdNullable | undefined;
3837
+ image?: ImageAware | ImageCreateUpdateAware | null | undefined;
3838
+ configName?: string | undefined;
3839
+ label?: string | undefined;
3840
+ width?: number | undefined;
3841
+ disableAspectRatio?: boolean | undefined;
3842
+ aspectRatio?: string | number | undefined;
3843
+ showDescription?: boolean | undefined;
3844
+ showSource?: boolean | undefined;
3845
+ }>, {
3846
+ configName: string;
3847
+ label: undefined;
3848
+ image: undefined;
3849
+ width: undefined;
3850
+ disableAspectRatio: boolean;
3851
+ aspectRatio: number;
3852
+ showDescription: boolean;
3853
+ showSource: boolean;
3854
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_63<__VLS_TypePropsToRuntimeProps_66<{
3855
+ modelValue: IntegerIdNullable | undefined;
3856
+ image?: ImageAware | ImageCreateUpdateAware | null | undefined;
3857
+ configName?: string | undefined;
3858
+ label?: string | undefined;
3859
+ width?: number | undefined;
3860
+ disableAspectRatio?: boolean | undefined;
3861
+ aspectRatio?: string | number | undefined;
3862
+ showDescription?: boolean | undefined;
3863
+ showSource?: boolean | undefined;
3864
+ }>, {
3865
+ configName: string;
3866
+ label: undefined;
3867
+ image: undefined;
3868
+ width: undefined;
3869
+ disableAspectRatio: boolean;
3870
+ aspectRatio: number;
3871
+ showDescription: boolean;
3872
+ showSource: boolean;
3873
+ }>>>, {
3874
+ width: number;
3875
+ image: ImageAware | ImageCreateUpdateAware | null;
3876
+ label: string;
3877
+ configName: string;
3878
+ disableAspectRatio: boolean;
3879
+ aspectRatio: string | number;
3880
+ showDescription: boolean;
3881
+ showSource: boolean;
3882
+ }, {}>, {
3883
+ append?(_: {
3884
+ image: {
3885
+ id: number;
3886
+ texts: {
3887
+ description: string;
3888
+ source: string;
3889
+ };
3890
+ dam: {
3891
+ damId: string;
3892
+ regionPosition: number;
3893
+ };
3894
+ position: number;
3895
+ } | {
3896
+ id?: number | undefined;
3897
+ texts: {
3898
+ description: string;
3899
+ source: string;
3900
+ };
3901
+ position: number;
3902
+ dam: {
3903
+ damId: string;
3904
+ regionPosition: number;
3905
+ };
3906
+ } | null;
3907
+ }): any;
3908
+ }>;
3909
+
3372
3910
  export declare const AJobDetailCommon: __VLS_WithTemplateSlots_11<DefineComponent<__VLS_WithDefaults_57<__VLS_TypePropsToRuntimeProps_60<{
3373
3911
  job: JobBase<`job${string}`>;
3374
3912
  loading?: boolean | undefined;
@@ -3403,7 +3941,7 @@ export declare const ALogData: DefineComponent<__VLS_WithDefaults_29<__VLS_TypeP
3403
3941
  data: any;
3404
3942
  }>, {}>>>, {}, {}>;
3405
3943
 
3406
- export declare const ALoginView: DefineComponent<__VLS_WithDefaults_63<__VLS_TypePropsToRuntimeProps_66<{
3944
+ export declare const ALoginView: DefineComponent<__VLS_WithDefaults_67<__VLS_TypePropsToRuntimeProps_70<{
3407
3945
  title?: string | undefined;
3408
3946
  logoUrl?: string | undefined;
3409
3947
  loginUrl?: undefined | (() => string);
@@ -3413,7 +3951,7 @@ export declare const ALoginView: DefineComponent<__VLS_WithDefaults_63<__VLS_Typ
3413
3951
  logoUrl: undefined;
3414
3952
  loginUrl: undefined;
3415
3953
  dataCy: string;
3416
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_63<__VLS_TypePropsToRuntimeProps_66<{
3954
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_67<__VLS_TypePropsToRuntimeProps_70<{
3417
3955
  title?: string | undefined;
3418
3956
  logoUrl?: string | undefined;
3419
3957
  loginUrl?: undefined | (() => string);
@@ -3436,11 +3974,11 @@ export declare const ALogLevelChip: DefineComponent<__VLS_WithDefaults_52<__VLS_
3436
3974
  level: LogLevel;
3437
3975
  }>, {}>>>, {}, {}>;
3438
3976
 
3439
- export declare const ALogoutView: DefineComponent<__VLS_WithDefaults_64<__VLS_TypePropsToRuntimeProps_67<{
3977
+ export declare const ALogoutView: DefineComponent<__VLS_WithDefaults_68<__VLS_TypePropsToRuntimeProps_71<{
3440
3978
  logoutUrl?: undefined | (() => string);
3441
3979
  }>, {
3442
3980
  logoutUrl: undefined;
3443
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_64<__VLS_TypePropsToRuntimeProps_67<{
3981
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_68<__VLS_TypePropsToRuntimeProps_71<{
3444
3982
  logoutUrl?: undefined | (() => string);
3445
3983
  }>, {
3446
3984
  logoutUrl: undefined;
@@ -3448,9 +3986,9 @@ export declare const ALogoutView: DefineComponent<__VLS_WithDefaults_64<__VLS_Ty
3448
3986
  logoutUrl: () => string;
3449
3987
  }, {}>;
3450
3988
 
3451
- export declare const ANotFoundView: DefineComponent<__VLS_WithDefaults_66<__VLS_TypePropsToRuntimeProps_69<{
3989
+ export declare const ANotFoundView: DefineComponent<__VLS_WithDefaults_70<__VLS_TypePropsToRuntimeProps_73<{
3452
3990
  returnRouteName: string;
3453
- }>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_66<__VLS_TypePropsToRuntimeProps_69<{
3991
+ }>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_70<__VLS_TypePropsToRuntimeProps_73<{
3454
3992
  returnRouteName: string;
3455
3993
  }>, {}>>>, {}, {}>;
3456
3994
 
@@ -3734,7 +4272,7 @@ export declare const ASortable: __VLS_WithTemplateSlots_12<DefineComponent<__VLS
3734
4272
  }): any;
3735
4273
  "add-last-activator"?(_: {
3736
4274
  props: {
3737
- onClick: (event: Event, ...args: unknown[]) => any;
4275
+ onClick: () => void;
3738
4276
  };
3739
4277
  }): any;
3740
4278
  }>;
@@ -3942,7 +4480,7 @@ export declare enum AssetFileProcessStatus {
3942
4480
  }
3943
4481
 
3944
4482
  export declare interface AssetFileProperties {
3945
- distributesInServices: DistributionServiceName[];
4483
+ distributesInServices: DamDistributionServiceName[];
3946
4484
  slotNames: string[];
3947
4485
  fromRss: boolean;
3948
4486
  width: number;
@@ -4010,8 +4548,8 @@ export declare const ASubjectSelect: <TItem>(__VLS_props: {
4010
4548
  resetFilter: Fn;
4011
4549
  pagination: Pagination;
4012
4550
  loading?: boolean | undefined;
4013
- "onUpdate:modelValue"?: ((data: boolean) => any) | undefined;
4014
4551
  modelValue?: boolean | undefined;
4552
+ "onUpdate:modelValue"?: ((data: boolean) => any) | undefined;
4015
4553
  onOnOpen?: (() => any) | undefined;
4016
4554
  onOnConfirm?: ((data: TItem[]) => any) | undefined;
4017
4555
  "onUpdate:pagination"?: ((data: Pagination) => any) | undefined;
@@ -4027,7 +4565,7 @@ export declare const ASubjectSelect: <TItem>(__VLS_props: {
4027
4565
  slots: {
4028
4566
  activator?(_: {
4029
4567
  props: {
4030
- onClick: (event: Event, ...args: unknown[]) => any;
4568
+ onClick: () => void;
4031
4569
  };
4032
4570
  }): any;
4033
4571
  title?(_: {}): any;
@@ -4054,8 +4592,8 @@ export declare const ASubjectSelect: <TItem>(__VLS_props: {
4054
4592
  resetFilter: Fn;
4055
4593
  pagination: Pagination;
4056
4594
  loading?: boolean | undefined;
4057
- "onUpdate:modelValue"?: ((data: boolean) => any) | undefined;
4058
4595
  modelValue?: boolean | undefined;
4596
+ "onUpdate:modelValue"?: ((data: boolean) => any) | undefined;
4059
4597
  onOnOpen?: (() => any) | undefined;
4060
4598
  onOnConfirm?: ((data: TItem[]) => any) | undefined;
4061
4599
  "onUpdate:pagination"?: ((data: Pagination) => any) | undefined;
@@ -4074,7 +4612,7 @@ export declare const ASubjectSelect: <TItem>(__VLS_props: {
4074
4612
  slots: {
4075
4613
  activator?(_: {
4076
4614
  props: {
4077
- onClick: (event: Event, ...args: unknown[]) => any;
4615
+ onClick: () => void;
4078
4616
  };
4079
4617
  }): any;
4080
4618
  title?(_: {}): any;
@@ -4102,8 +4640,8 @@ export declare const ASubjectSelect: <TItem>(__VLS_props: {
4102
4640
  resetFilter: Fn;
4103
4641
  pagination: Pagination;
4104
4642
  loading?: boolean | undefined;
4105
- "onUpdate:modelValue"?: ((data: boolean) => any) | undefined;
4106
4643
  modelValue?: boolean | undefined;
4644
+ "onUpdate:modelValue"?: ((data: boolean) => any) | undefined;
4107
4645
  onOnOpen?: (() => any) | undefined;
4108
4646
  onOnConfirm?: ((data: TItem[]) => any) | undefined;
4109
4647
  "onUpdate:pagination"?: ((data: Pagination) => any) | undefined;
@@ -4122,7 +4660,7 @@ export declare const ASubjectSelect: <TItem>(__VLS_props: {
4122
4660
  slots: {
4123
4661
  activator?(_: {
4124
4662
  props: {
4125
- onClick: (event: Event, ...args: unknown[]) => any;
4663
+ onClick: () => void;
4126
4664
  };
4127
4665
  }): any;
4128
4666
  title?(_: {}): any;
@@ -4312,9 +4850,9 @@ declare interface AudioAttributes {
4312
4850
  bitrate: number;
4313
4851
  }
4314
4852
 
4315
- export declare const AUnauthorizedView: DefineComponent<__VLS_WithDefaults_65<__VLS_TypePropsToRuntimeProps_68<{
4853
+ export declare const AUnauthorizedView: DefineComponent<__VLS_WithDefaults_69<__VLS_TypePropsToRuntimeProps_72<{
4316
4854
  returnRouteName: string;
4317
- }>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_65<__VLS_TypePropsToRuntimeProps_68<{
4855
+ }>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_69<__VLS_TypePropsToRuntimeProps_72<{
4318
4856
  returnRouteName: string;
4319
4857
  }>, {}>>>, {}, {}>;
4320
4858
 
@@ -4391,9 +4929,26 @@ declare type ColumnInternalValues = {
4391
4929
 
4392
4930
  export declare const COMMON_CONFIG: Immutable<typeof commonConfig>;
4393
4931
 
4932
+ declare interface CommonAdminCoreDamConfig {
4933
+ damClient: () => AxiosInstance;
4934
+ defaultLicenceId?: IntegerId;
4935
+ }
4936
+
4937
+ declare type CommonAdminCoreDamOptions = undefined | {
4938
+ configs: {
4939
+ [key: string]: CommonAdminCoreDamConfig;
4940
+ };
4941
+ apiTimeout: number;
4942
+ uploadStatusFallback: boolean;
4943
+ notification: {
4944
+ enabled: boolean;
4945
+ webSocketUrl: string;
4946
+ };
4947
+ };
4948
+
4394
4949
  declare interface CommonAdminImageConfig {
4395
- getImage: (id: IntegerId) => Promise<ImageWidgetImage>;
4396
- imageUrl: string;
4950
+ imageClient: () => AxiosInstance;
4951
+ previewDomain: string;
4397
4952
  width: number;
4398
4953
  height: number;
4399
4954
  }
@@ -4433,6 +4988,8 @@ export declare interface CreatedByAware {
4433
4988
  createdBy: IntegerIdNullable;
4434
4989
  }
4435
4990
 
4991
+ export declare const cropToRegion: (cropper: Cropper_2, regionOfInterest: RegionOfInterest, originalImageWidth: number, originalImageHeight: number) => RegionOfInterest;
4992
+
4436
4993
  export declare type CurrentUserType = DeepReadonly<Ref<UnwrapRef<AnzuUser | undefined>>>;
4437
4994
 
4438
4995
  export declare type CustomAclResolver<T extends AclValue = AclValue> = undefined | {
@@ -4491,60 +5048,299 @@ export declare enum DamAssetType {
4491
5048
  Default = "image"
4492
5049
  }
4493
5050
 
4494
- export declare type DatatableOrderingOption = {
4495
- id: number;
4496
- titleT: string;
4497
- sortBy?: DatatableSortBy;
4498
- customData?: any;
4499
- };
5051
+ export declare interface DamAuthor extends DamAuthorMinimal, AnzuUserAndTimeTrackingAware, ResourceNameSystemAware {
5052
+ extSystem: IntegerId;
5053
+ flags: Flags_3;
5054
+ type: DamAuthorType;
5055
+ }
4500
5056
 
4501
- export declare type DatatableOrderingOptions = Array<DatatableOrderingOption>;
5057
+ export declare interface DamAuthorMinimal {
5058
+ id: DocId;
5059
+ name: string;
5060
+ identifier: string;
5061
+ }
4502
5062
 
4503
- declare interface DataTableSelectStrategy {
4504
- showSelectAll: boolean;
4505
- allSelected: (data: {
4506
- allItems: VDatatableSelectableItem[];
4507
- currentPage: VDatatableSelectableItem[];
4508
- }) => VDatatableSelectableItem[];
4509
- select: (data: {
4510
- items: VDatatableSelectableItem[];
4511
- value: boolean;
4512
- selected: Set<unknown>;
4513
- }) => Set<unknown>;
4514
- selectAll: (data: {
4515
- value: boolean;
4516
- allItems: VDatatableSelectableItem[];
4517
- currentPage: VDatatableSelectableItem[];
4518
- selected: Set<unknown>;
4519
- }) => Set<unknown>;
5063
+ export declare enum DamAuthorType {
5064
+ None = "none",
5065
+ Internal = "internal",
5066
+ External = "external",
5067
+ Agency = "agency",
5068
+ Default = "none"
4520
5069
  }
4521
5070
 
4522
- export declare type DatatableSortBy = {
4523
- key: string;
4524
- order: 'asc' | 'desc';
4525
- } | null | undefined;
5071
+ export declare interface DamDistributionConfig {
5072
+ distributionServices: Array<DamDistributionServiceName>;
5073
+ distributionRequirements: Record<DamDistributionServiceName, DamDistributionRequirementsConfig>;
5074
+ }
4526
5075
 
4527
- export declare const dateDiff: (date1: Date, date2: Date, unit?: QUnitType | OpUnitType) => number;
5076
+ export declare interface DamDistributionRequirementsCategorySelectConfig {
5077
+ enabled: boolean;
5078
+ required: boolean;
5079
+ }
4528
5080
 
4529
- export declare const dateModifyMinutes: (minutes?: number, date?: null | Date) => Date;
5081
+ export declare interface DamDistributionRequirementsConfig {
5082
+ title: string;
5083
+ requiredAuth: boolean;
5084
+ blockedBy: Array<DamDistributionServiceName>;
5085
+ categorySelect: DamDistributionRequirementsCategorySelectConfig;
5086
+ strategy: DamDistributionRequirementStrategy;
5087
+ }
4530
5088
 
4531
- export declare const dateNow: () => Date;
5089
+ export declare enum DamDistributionRequirementStrategy {
5090
+ None = "none",
5091
+ AtLeastOne = "at_least_one",
5092
+ OneFromType = "one_from_type",
5093
+ WaitForAll = "wait_for_all",
5094
+ Default = "none"
5095
+ }
4532
5096
 
4533
- export declare const datePretty: (isoDate: DatetimeUTC | DatetimeUTCNullable | string | null, edgeDateValue?: string) => string;
5097
+ export declare type DamDistributionServiceName = string;
4534
5098
 
4535
- export declare const DATETIME_MAX = "2100-01-01T00:00:00.000000Z";
5099
+ export declare enum DamDistributionServiceType {
5100
+ Youtube = "youtubeDistribution",
5101
+ Jw = "jwDistribution",
5102
+ Custom = "customDistribution"
5103
+ }
4536
5104
 
4537
- export declare const DATETIME_MIN = "1970-01-01T00:00:00.000000Z";
5105
+ export declare enum DamDistributionStatus {
5106
+ Waiting = "waiting",
5107
+ Distributing = "distributing",
5108
+ RemoteProcessing = "remote_processing",
5109
+ Distributed = "distributed",
5110
+ Failed = "failed",
5111
+ Default = "waiting"
5112
+ }
4538
5113
 
4539
- export declare const dateTimeEndOfDay: (days?: number) => string;
5114
+ export declare type DamExternalProviderAssetConfig = Record<DamExternalProviderAssetName, {
5115
+ listingLimit: number;
5116
+ title: string;
5117
+ }>;
4540
5118
 
4541
- export declare const dateTimeFriendly: (isoDate: DatetimeUTC | DatetimeUTCNullable | string | null, edgeDateValue?: string) => string;
5119
+ export declare type DamExternalProviderAssetName = string;
4542
5120
 
4543
- export declare const dateTimeNow: (ignoreFractionalSeconds?: boolean, ignoreSeconds?: boolean) => string;
5121
+ export declare interface DamExtSystem extends AnzuUserAndTimeTrackingAware, ResourceNameSystemAware {
5122
+ id: IntegerId;
5123
+ name: string;
5124
+ slug: string;
5125
+ adminUsers: IntegerId[];
5126
+ }
4544
5127
 
4545
- export declare const dateTimePretty: (isoDate: DatetimeUTC | DatetimeUTCNullable | string | null, edgeDateValue?: string) => string;
5128
+ export declare interface DamExtSystemAssetTypeExifMetadata {
5129
+ enabled: boolean;
5130
+ required: boolean;
5131
+ }
4546
5132
 
4547
- export declare const dateTimeStartOfDay: (days?: number) => string;
5133
+ export declare interface DamExtSystemConfig extends Record<DamAssetType, DamExtSystemConfigItem> {
5134
+ assetExternalProviders: DamExternalProviderAssetConfig;
5135
+ audio: DamExtSystemConfigItem;
5136
+ video: DamExtSystemConfigItem;
5137
+ image: DamExtSystemConfigItem;
5138
+ document: DamExtSystemConfigItem;
5139
+ }
5140
+
5141
+ export declare interface DamExtSystemConfigItem {
5142
+ sizeLimit: number;
5143
+ defaultFileVersion: string;
5144
+ versions: Array<string>;
5145
+ mimeTypes: Array<string>;
5146
+ distribution: DamDistributionConfig;
5147
+ authors: DamExtSystemAssetTypeExifMetadata;
5148
+ keywords: DamExtSystemAssetTypeExifMetadata;
5149
+ customMetadataPinnedAmount: number;
5150
+ slots: string[];
5151
+ }
5152
+
5153
+ export declare interface DamExtSystemMinimal extends Pick<DamExtSystem, 'id' | 'name'> {
5154
+ }
5155
+
5156
+ export declare const damFileTypeFix: (file: File | null | undefined) => string;
5157
+
5158
+ export declare interface DamKeyword extends AnzuUserAndTimeTrackingAware, ResourceNameSystemAware {
5159
+ id: DocId;
5160
+ name: string;
5161
+ extSystem: IntegerId;
5162
+ flags: Flags_2;
5163
+ }
5164
+
5165
+ export declare interface DamKeywordMinimal {
5166
+ id: DocId;
5167
+ name: string;
5168
+ }
5169
+
5170
+ declare type DamNotification = DamNotificationAssetFileProcessed | DamNotificationAssetFileFailed | DamNotificationAssetFileDuplicate | DamNotificationAssetFileUploaded | DamNotificationAssetFileDeleted | DamNotificationAssetMetadataProcessed | DamNotificationAssetDeleted | DamNotificationDistributionDistributing | DamNotificationDistributionRemoteProcessing | DamNotificationDistributionDistributed | DamNotificationDistributionFailed | DamNotificationDistributionAuthorized | DamNotificationUserUpdated;
5171
+
5172
+ declare interface DamNotificationAssetData {
5173
+ asset: DocId;
5174
+ }
5175
+
5176
+ declare type DamNotificationAssetDeleted = DamNotificationEvent<typeof DamNotificationName.AssetDeleted, DamNotificationAssetData>;
5177
+
5178
+ declare interface DamNotificationAssetFileData {
5179
+ id: DocId;
5180
+ asset: DocId;
5181
+ }
5182
+
5183
+ declare type DamNotificationAssetFileDeleted = DamNotificationEvent<typeof DamNotificationName.AssetFileDeleted, DamNotificationAssetFileData>;
5184
+
5185
+ declare type DamNotificationAssetFileDuplicate = DamNotificationEvent<typeof DamNotificationName.AssetFileDuplicate, DamNotificationAssetFileStatusData>;
5186
+
5187
+ declare type DamNotificationAssetFileFailed = DamNotificationEvent<typeof DamNotificationName.AssetFileFailed, DamNotificationAssetFileStatusData>;
5188
+
5189
+ declare type DamNotificationAssetFileProcessed = DamNotificationEvent<typeof DamNotificationName.AssetFileProcessed, DamNotificationAssetFileStatusData>;
5190
+
5191
+ declare interface DamNotificationAssetFileStatusData {
5192
+ id: DocId;
5193
+ asset: DocId;
5194
+ status: AssetFileProcessStatus;
5195
+ failReason: AssetFileFailReason;
5196
+ assetType: DamAssetType;
5197
+ originAssetFile: DocId;
5198
+ }
5199
+
5200
+ declare type DamNotificationAssetFileUploaded = DamNotificationEvent<typeof DamNotificationName.AssetFileUploaded, DamNotificationAssetFileStatusData>;
5201
+
5202
+ declare type DamNotificationAssetMetadataProcessed = DamNotificationEvent<typeof DamNotificationName.AssetMetadataProcessed, DamNotificationAssetFileStatusData>;
5203
+
5204
+ declare type DamNotificationDistributionAuthorized = DamNotificationEvent<typeof DamNotificationName.DistributionAuthorized, {
5205
+ distributionService: DamDistributionServiceName;
5206
+ success: boolean;
5207
+ }>;
5208
+
5209
+ declare interface DamNotificationDistributionData {
5210
+ id: DocId;
5211
+ asset: DocId;
5212
+ assetFile: DocId;
5213
+ status: DamDistributionStatus;
5214
+ }
5215
+
5216
+ declare type DamNotificationDistributionDistributed = DamNotificationEvent<typeof DamNotificationName.DistributionDistributed, DamNotificationDistributionData>;
5217
+
5218
+ declare type DamNotificationDistributionDistributing = DamNotificationEvent<typeof DamNotificationName.DistributionDistributing, DamNotificationDistributionData>;
5219
+
5220
+ declare type DamNotificationDistributionFailed = DamNotificationEvent<typeof DamNotificationName.DistributionFailed, DamNotificationDistributionData>;
5221
+
5222
+ declare type DamNotificationDistributionRemoteProcessing = DamNotificationEvent<typeof DamNotificationName.DistributionRemoteProcessing, DamNotificationDistributionData>;
5223
+
5224
+ declare type DamNotificationEvent<T extends DamNotificationNameType, P> = {
5225
+ name: T;
5226
+ data: P;
5227
+ };
5228
+
5229
+ export declare const DamNotificationName: {
5230
+ readonly AssetFileProcessed: "asset_file_processed";
5231
+ readonly AssetFileFailed: "asset_file_failed";
5232
+ readonly AssetFileDuplicate: "asset_file_duplicate";
5233
+ readonly AssetFileUploaded: "asset_file_uploaded";
5234
+ readonly AssetFileDeleted: "asset_file_deleted";
5235
+ readonly AssetMetadataProcessed: "asset_metadata_processed";
5236
+ readonly AssetDeleted: "asset_deleted";
5237
+ readonly DistributionDistributing: "distribution_distributing";
5238
+ readonly DistributionRemoteProcessing: "distribution_remote_processing";
5239
+ readonly DistributionDistributed: "distribution_distributed";
5240
+ readonly DistributionFailed: "distribution_failed";
5241
+ readonly DistributionAuthorized: "distribution_authorized";
5242
+ readonly UserUpdated: "user_updated";
5243
+ };
5244
+
5245
+ export declare type DamNotificationNameType = (typeof DamNotificationName)[keyof typeof DamNotificationName];
5246
+
5247
+ declare type DamNotificationUserUpdated = DamNotificationEvent<typeof DamNotificationName.UserUpdated, undefined>;
5248
+
5249
+ export declare interface DamPrvConfig {
5250
+ assetExternalProviders: {
5251
+ [key: string]: {
5252
+ title: string;
5253
+ };
5254
+ };
5255
+ distributionServices: {
5256
+ [key: string]: {
5257
+ title: string;
5258
+ iconPath: string;
5259
+ type: DamDistributionServiceType;
5260
+ allowedRedistributeStatuses: Array<DamDistributionStatus>;
5261
+ };
5262
+ };
5263
+ colorSet: {
5264
+ [key: string]: string;
5265
+ };
5266
+ settings: {
5267
+ aclCheckEnabled: boolean;
5268
+ adminAllowListName: string;
5269
+ allowSelectExtSystem: boolean;
5270
+ allowSelectLicenceId: boolean;
5271
+ defaultAssetLicenceId: number;
5272
+ defaultExtSystemId: number;
5273
+ imageChunkConfig: {
5274
+ minSize: number;
5275
+ maxSize: number;
5276
+ };
5277
+ maxBulkItemCount: number;
5278
+ };
5279
+ }
5280
+
5281
+ export declare interface DamPubConfig {
5282
+ userAuthType: UserAuthType;
5283
+ }
5284
+
5285
+ export declare interface DamUploadStartResponse {
5286
+ id: DocId;
5287
+ asset: DocId;
5288
+ }
5289
+
5290
+ export declare type DatatableOrderingOption = {
5291
+ id: number;
5292
+ titleT: string;
5293
+ sortBy?: DatatableSortBy;
5294
+ customData?: any;
5295
+ };
5296
+
5297
+ export declare type DatatableOrderingOptions = Array<DatatableOrderingOption>;
5298
+
5299
+ declare interface DataTableSelectStrategy {
5300
+ showSelectAll: boolean;
5301
+ allSelected: (data: {
5302
+ allItems: VDatatableSelectableItem[];
5303
+ currentPage: VDatatableSelectableItem[];
5304
+ }) => VDatatableSelectableItem[];
5305
+ select: (data: {
5306
+ items: VDatatableSelectableItem[];
5307
+ value: boolean;
5308
+ selected: Set<unknown>;
5309
+ }) => Set<unknown>;
5310
+ selectAll: (data: {
5311
+ value: boolean;
5312
+ allItems: VDatatableSelectableItem[];
5313
+ currentPage: VDatatableSelectableItem[];
5314
+ selected: Set<unknown>;
5315
+ }) => Set<unknown>;
5316
+ }
5317
+
5318
+ export declare type DatatableSortBy = {
5319
+ key: string;
5320
+ order: 'asc' | 'desc';
5321
+ } | null | undefined;
5322
+
5323
+ export declare const dateDiff: (date1: Date, date2: Date, unit?: QUnitType | OpUnitType) => number;
5324
+
5325
+ export declare const dateModifyMinutes: (minutes?: number, date?: null | Date) => Date;
5326
+
5327
+ export declare const dateNow: () => Date;
5328
+
5329
+ export declare const datePretty: (isoDate: DatetimeUTC | DatetimeUTCNullable | string | null, edgeDateValue?: string) => string;
5330
+
5331
+ export declare const DATETIME_MAX = "2100-01-01T00:00:00.000000Z";
5332
+
5333
+ export declare const DATETIME_MIN = "1970-01-01T00:00:00.000000Z";
5334
+
5335
+ export declare const dateTimeEndOfDay: (days?: number) => string;
5336
+
5337
+ export declare const dateTimeFriendly: (isoDate: DatetimeUTC | DatetimeUTCNullable | string | null, edgeDateValue?: string) => string;
5338
+
5339
+ export declare const dateTimeNow: (ignoreFractionalSeconds?: boolean, ignoreSeconds?: boolean) => string;
5340
+
5341
+ export declare const dateTimePretty: (isoDate: DatetimeUTC | DatetimeUTCNullable | string | null, edgeDateValue?: string) => string;
5342
+
5343
+ export declare const dateTimeStartOfDay: (days?: number) => string;
4548
5344
 
4549
5345
  export declare const dateTimeToDate: (isoDate: DatetimeUTC | DatetimeUTCNullable | string) => Date;
4550
5346
 
@@ -4574,8 +5370,6 @@ export declare function defineCached<I extends DocId | IntegerId, T extends Reco
4574
5370
  isLoaded: (id: I | null | undefined) => boolean;
4575
5371
  };
4576
5372
 
4577
- declare type DistributionServiceName = string;
4578
-
4579
5373
  export declare type DocId = string;
4580
5374
 
4581
5375
  export declare type DocIdNullable = string | null;
@@ -4626,12 +5420,22 @@ declare interface Flags {
4626
5420
  visible: boolean;
4627
5421
  }
4628
5422
 
5423
+ declare interface Flags_2 {
5424
+ reviewed: boolean;
5425
+ }
5426
+
5427
+ declare interface Flags_3 {
5428
+ reviewed: boolean;
5429
+ }
5430
+
4629
5431
  export declare const generateDatatableMinMaxSelectStrategy: (min: number, max: number) => DataTableSelectStrategy;
4630
5432
 
4631
5433
  export declare const generateUUIDv1: () => any;
4632
5434
 
4633
5435
  export declare const generateUUIDv4: () => any;
4634
5436
 
5437
+ export declare const getAssetTypeByMimeType: (mimeType: string, damConfigExtSystem: DamExtSystemConfig) => DamAssetType | null;
5438
+
4635
5439
  export declare enum Grant {
4636
5440
  Deny = 0,
4637
5441
  AllowOwner = 1,
@@ -4999,6 +5803,168 @@ export declare const i18n: I18n<{
4999
5803
  unableToAdd: string;
5000
5804
  };
5001
5805
  };
5806
+ damImage: {
5807
+ image: {
5808
+ model: {
5809
+ texts: {
5810
+ description: string;
5811
+ source: string;
5812
+ };
5813
+ };
5814
+ meta: {
5815
+ edit: string;
5816
+ };
5817
+ button: {
5818
+ options: string;
5819
+ editAsset: string;
5820
+ upload: string;
5821
+ addFromDam: string;
5822
+ replaceFromDam: string;
5823
+ removeImage: string;
5824
+ };
5825
+ };
5826
+ queueItem: {
5827
+ edit: string;
5828
+ displayTitle: string;
5829
+ error: string;
5830
+ copyAssetId: string;
5831
+ };
5832
+ asset: {
5833
+ model: {
5834
+ authors: string;
5835
+ keywords: string;
5836
+ };
5837
+ assetType: {
5838
+ image: string;
5839
+ audio: string;
5840
+ video: string;
5841
+ document: string;
5842
+ };
5843
+ detail: {
5844
+ toggleInfo: string;
5845
+ metadataToggle: {
5846
+ show: string;
5847
+ hide: string;
5848
+ };
5849
+ tabs: {
5850
+ info: string;
5851
+ roi: string;
5852
+ };
5853
+ info: {
5854
+ status: {
5855
+ duplicate: string;
5856
+ draft: string;
5857
+ deleting: string;
5858
+ failed: string;
5859
+ };
5860
+ metadata: string;
5861
+ file: string;
5862
+ field: {
5863
+ id: string;
5864
+ mainFileId: string;
5865
+ type: string;
5866
+ mimeType: string;
5867
+ size: string;
5868
+ dominantColor: string;
5869
+ width: string;
5870
+ height: string;
5871
+ ratio: string;
5872
+ animated: string;
5873
+ };
5874
+ };
5875
+ roi: {
5876
+ title: string;
5877
+ description: string;
5878
+ refresh: string;
5879
+ rotate: {
5880
+ rotateMainFileImage: string;
5881
+ rotateClockwise: string;
5882
+ rotateCounterclockwise: string;
5883
+ };
5884
+ };
5885
+ };
5886
+ massOperations: {
5887
+ title: string;
5888
+ description: string;
5889
+ fillOneEmpty: string;
5890
+ fillAllEmpty: string;
5891
+ replaceOne: string;
5892
+ replaceAll: string;
5893
+ clearForm: string;
5894
+ general: string;
5895
+ };
5896
+ metaIcons: {
5897
+ low: string;
5898
+ slots: string;
5899
+ rss: string;
5900
+ fullHd: string;
5901
+ "2k": string;
5902
+ qhd: string;
5903
+ "4k": string;
5904
+ "8k": string;
5905
+ };
5906
+ assetFileFailReason: {
5907
+ none: string;
5908
+ unknown: string;
5909
+ invalidChecksum: string;
5910
+ invalidMimeType: string;
5911
+ downloadFailed: string;
5912
+ invalidSize: string;
5913
+ };
5914
+ };
5915
+ upload: {
5916
+ waiting: string;
5917
+ processing: string;
5918
+ uploading: string;
5919
+ done: string;
5920
+ stop: string;
5921
+ add: string;
5922
+ save: string;
5923
+ saveAndApply: string;
5924
+ title: string;
5925
+ titleDone: string;
5926
+ stopConfirmQuestion: string;
5927
+ };
5928
+ keyword: {
5929
+ model: {
5930
+ name: string;
5931
+ };
5932
+ button: {
5933
+ add: string;
5934
+ };
5935
+ meta: {
5936
+ create: string;
5937
+ };
5938
+ };
5939
+ author: {
5940
+ model: {
5941
+ name: string;
5942
+ identifier: string;
5943
+ type: string;
5944
+ };
5945
+ authorType: {
5946
+ none: string;
5947
+ internal: string;
5948
+ external: string;
5949
+ agency: string;
5950
+ };
5951
+ button: {
5952
+ add: string;
5953
+ };
5954
+ meta: {
5955
+ create: string;
5956
+ };
5957
+ conflicts: string;
5958
+ };
5959
+ uploadErrors: {
5960
+ unknownError: string;
5961
+ systemError: string;
5962
+ size: string;
5963
+ offset: string;
5964
+ mimeType: string;
5965
+ };
5966
+ notificationsNotConnected: string;
5967
+ };
5002
5968
  };
5003
5969
  $vuetify: {
5004
5970
  badge: string;
@@ -5127,42 +6093,36 @@ declare interface ImageAttributes {
5127
6093
  animated: boolean;
5128
6094
  }
5129
6095
 
5130
- declare interface ImageWidgetImage {
6096
+ export declare interface ImageAware {
5131
6097
  id: IntegerId;
5132
6098
  texts: {
5133
- title?: string;
5134
6099
  description: string;
5135
- author?: string;
6100
+ source: string;
5136
6101
  };
5137
6102
  dam: {
5138
6103
  damId: DocId;
5139
6104
  regionPosition: number;
5140
6105
  };
5141
- settings: {
5142
- reviewed: false;
5143
- };
5144
6106
  position: number;
5145
- imageAuthors: ImageWidgetImageAuthor[];
5146
- licences: ImageWidgetImageLicence[];
5147
6107
  }
5148
6108
 
5149
- declare interface ImageWidgetImageAuthor {
5150
- id: IntegerId;
5151
- position: number;
5152
- customAuthor: string;
5153
- image: IntegerId;
5154
- author: IntegerIdNullable;
6109
+ export declare interface ImageCreateUpdateAware extends Omit<ImageAware, 'id'> {
6110
+ id?: IntegerId;
5155
6111
  }
5156
6112
 
5157
- declare interface ImageWidgetImageLicence {
5158
- name: string;
5159
- value: IntegerIdNullable;
6113
+ export declare interface ImageCreateUpdateAwareKeyed extends ImageCreateUpdateAware {
6114
+ key: string;
5160
6115
  }
5161
6116
 
5162
6117
  export declare type Immutable<T> = {
5163
6118
  readonly [K in keyof T]: Immutable<T[K]>;
5164
6119
  };
5165
6120
 
6121
+ export declare function initDamNotifications(): {
6122
+ openConnection: () => void;
6123
+ damNotificationsInitialized: Ref<boolean>;
6124
+ };
6125
+
5166
6126
  export declare type IntegerId = number;
5167
6127
 
5168
6128
  export declare type IntegerIdNullable = number | null;
@@ -5646,6 +6606,168 @@ export declare const messagesCs: {
5646
6606
  unableToAdd: string;
5647
6607
  };
5648
6608
  };
6609
+ damImage: {
6610
+ image: {
6611
+ model: {
6612
+ texts: {
6613
+ description: string;
6614
+ source: string;
6615
+ };
6616
+ };
6617
+ meta: {
6618
+ edit: string;
6619
+ };
6620
+ button: {
6621
+ options: string;
6622
+ editAsset: string;
6623
+ upload: string;
6624
+ addFromDam: string;
6625
+ replaceFromDam: string;
6626
+ removeImage: string;
6627
+ };
6628
+ };
6629
+ queueItem: {
6630
+ edit: string;
6631
+ displayTitle: string;
6632
+ error: string;
6633
+ copyAssetId: string;
6634
+ };
6635
+ asset: {
6636
+ model: {
6637
+ authors: string;
6638
+ keywords: string;
6639
+ };
6640
+ assetType: {
6641
+ image: string;
6642
+ audio: string;
6643
+ video: string;
6644
+ document: string;
6645
+ };
6646
+ detail: {
6647
+ toggleInfo: string;
6648
+ metadataToggle: {
6649
+ show: string;
6650
+ hide: string;
6651
+ };
6652
+ tabs: {
6653
+ info: string;
6654
+ roi: string;
6655
+ };
6656
+ info: {
6657
+ status: {
6658
+ duplicate: string;
6659
+ draft: string;
6660
+ deleting: string;
6661
+ failed: string;
6662
+ };
6663
+ metadata: string;
6664
+ file: string;
6665
+ field: {
6666
+ id: string;
6667
+ mainFileId: string;
6668
+ type: string;
6669
+ mimeType: string;
6670
+ size: string;
6671
+ dominantColor: string;
6672
+ width: string;
6673
+ height: string;
6674
+ ratio: string;
6675
+ animated: string;
6676
+ };
6677
+ };
6678
+ roi: {
6679
+ title: string;
6680
+ description: string;
6681
+ refresh: string;
6682
+ rotate: {
6683
+ rotateMainFileImage: string;
6684
+ rotateClockwise: string;
6685
+ rotateCounterclockwise: string;
6686
+ };
6687
+ };
6688
+ };
6689
+ massOperations: {
6690
+ title: string;
6691
+ description: string;
6692
+ fillOneEmpty: string;
6693
+ fillAllEmpty: string;
6694
+ replaceOne: string;
6695
+ replaceAll: string;
6696
+ clearForm: string;
6697
+ general: string;
6698
+ };
6699
+ metaIcons: {
6700
+ low: string;
6701
+ slots: string;
6702
+ rss: string;
6703
+ fullHd: string;
6704
+ "2k": string;
6705
+ qhd: string;
6706
+ "4k": string;
6707
+ "8k": string;
6708
+ };
6709
+ assetFileFailReason: {
6710
+ none: string;
6711
+ unknown: string;
6712
+ invalidChecksum: string;
6713
+ invalidMimeType: string;
6714
+ downloadFailed: string;
6715
+ invalidSize: string;
6716
+ };
6717
+ };
6718
+ upload: {
6719
+ waiting: string;
6720
+ processing: string;
6721
+ uploading: string;
6722
+ done: string;
6723
+ stop: string;
6724
+ add: string;
6725
+ save: string;
6726
+ saveAndApply: string;
6727
+ title: string;
6728
+ titleDone: string;
6729
+ stopConfirmQuestion: string;
6730
+ };
6731
+ keyword: {
6732
+ model: {
6733
+ name: string;
6734
+ };
6735
+ button: {
6736
+ add: string;
6737
+ };
6738
+ meta: {
6739
+ create: string;
6740
+ };
6741
+ };
6742
+ author: {
6743
+ model: {
6744
+ name: string;
6745
+ identifier: string;
6746
+ type: string;
6747
+ };
6748
+ authorType: {
6749
+ none: string;
6750
+ internal: string;
6751
+ external: string;
6752
+ agency: string;
6753
+ };
6754
+ button: {
6755
+ add: string;
6756
+ };
6757
+ meta: {
6758
+ create: string;
6759
+ };
6760
+ conflicts: string;
6761
+ };
6762
+ uploadErrors: {
6763
+ unknownError: string;
6764
+ systemError: string;
6765
+ size: string;
6766
+ offset: string;
6767
+ mimeType: string;
6768
+ };
6769
+ notificationsNotConnected: string;
6770
+ };
5649
6771
  };
5650
6772
  $vuetify: {
5651
6773
  badge: string;
@@ -6096,6 +7218,168 @@ export declare const messagesEn: {
6096
7218
  unableToAdd: string;
6097
7219
  };
6098
7220
  };
7221
+ damImage: {
7222
+ image: {
7223
+ model: {
7224
+ texts: {
7225
+ description: string;
7226
+ source: string;
7227
+ };
7228
+ };
7229
+ meta: {
7230
+ edit: string;
7231
+ };
7232
+ button: {
7233
+ options: string;
7234
+ editAsset: string;
7235
+ upload: string;
7236
+ addFromDam: string;
7237
+ replaceFromDam: string;
7238
+ removeImage: string;
7239
+ };
7240
+ };
7241
+ queueItem: {
7242
+ edit: string;
7243
+ displayTitle: string;
7244
+ error: string;
7245
+ copyAssetId: string;
7246
+ };
7247
+ asset: {
7248
+ model: {
7249
+ authors: string;
7250
+ keywords: string;
7251
+ };
7252
+ assetType: {
7253
+ image: string;
7254
+ audio: string;
7255
+ video: string;
7256
+ document: string;
7257
+ };
7258
+ detail: {
7259
+ toggleInfo: string;
7260
+ metadataToggle: {
7261
+ show: string;
7262
+ hide: string;
7263
+ };
7264
+ tabs: {
7265
+ info: string;
7266
+ roi: string;
7267
+ };
7268
+ info: {
7269
+ status: {
7270
+ duplicate: string;
7271
+ draft: string;
7272
+ deleting: string;
7273
+ failed: string;
7274
+ };
7275
+ metadata: string;
7276
+ file: string;
7277
+ field: {
7278
+ id: string;
7279
+ mainFileId: string;
7280
+ type: string;
7281
+ mimeType: string;
7282
+ size: string;
7283
+ dominantColor: string;
7284
+ width: string;
7285
+ height: string;
7286
+ ratio: string;
7287
+ animated: string;
7288
+ };
7289
+ };
7290
+ roi: {
7291
+ title: string;
7292
+ description: string;
7293
+ refresh: string;
7294
+ rotate: {
7295
+ rotateMainFileImage: string;
7296
+ rotateClockwise: string;
7297
+ rotateCounterclockwise: string;
7298
+ };
7299
+ };
7300
+ };
7301
+ massOperations: {
7302
+ title: string;
7303
+ description: string;
7304
+ fillOneEmpty: string;
7305
+ fillAllEmpty: string;
7306
+ replaceOne: string;
7307
+ replaceAll: string;
7308
+ clearForm: string;
7309
+ general: string;
7310
+ };
7311
+ metaIcons: {
7312
+ low: string;
7313
+ slots: string;
7314
+ rss: string;
7315
+ fullHd: string;
7316
+ "2k": string;
7317
+ qhd: string;
7318
+ "4k": string;
7319
+ "8k": string;
7320
+ };
7321
+ assetFileFailReason: {
7322
+ none: string;
7323
+ unknown: string;
7324
+ invalidChecksum: string;
7325
+ invalidMimeType: string;
7326
+ downloadFailed: string;
7327
+ invalidSize: string;
7328
+ };
7329
+ };
7330
+ upload: {
7331
+ waiting: string;
7332
+ processing: string;
7333
+ uploading: string;
7334
+ done: string;
7335
+ stop: string;
7336
+ add: string;
7337
+ save: string;
7338
+ saveAndApply: string;
7339
+ title: string;
7340
+ titleDone: string;
7341
+ stopConfirmQuestion: string;
7342
+ };
7343
+ keyword: {
7344
+ model: {
7345
+ name: string;
7346
+ };
7347
+ button: {
7348
+ add: string;
7349
+ };
7350
+ meta: {
7351
+ create: string;
7352
+ };
7353
+ };
7354
+ author: {
7355
+ model: {
7356
+ name: string;
7357
+ identifier: string;
7358
+ type: string;
7359
+ };
7360
+ authorType: {
7361
+ none: string;
7362
+ internal: string;
7363
+ external: string;
7364
+ agency: string;
7365
+ };
7366
+ button: {
7367
+ add: string;
7368
+ };
7369
+ meta: {
7370
+ create: string;
7371
+ };
7372
+ conflicts: string;
7373
+ };
7374
+ uploadErrors: {
7375
+ unknownError: string;
7376
+ systemError: string;
7377
+ size: string;
7378
+ offset: string;
7379
+ mimeType: string;
7380
+ };
7381
+ notificationsNotConnected: string;
7382
+ };
6099
7383
  };
6100
7384
  $vuetify: {
6101
7385
  badge: string;
@@ -6329,6 +7613,10 @@ export declare const messagesSk: {
6329
7613
  text: string;
6330
7614
  backButton: string;
6331
7615
  };
7616
+ dropzone: {
7617
+ dropPossibility: string;
7618
+ dropHere: string;
7619
+ };
6332
7620
  };
6333
7621
  anzuUser: {
6334
7622
  meta: {
@@ -6546,6 +7834,168 @@ export declare const messagesSk: {
6546
7834
  unableToAdd: string;
6547
7835
  };
6548
7836
  };
7837
+ damImage: {
7838
+ image: {
7839
+ model: {
7840
+ texts: {
7841
+ description: string;
7842
+ source: string;
7843
+ };
7844
+ };
7845
+ meta: {
7846
+ edit: string;
7847
+ };
7848
+ button: {
7849
+ options: string;
7850
+ editAsset: string;
7851
+ upload: string;
7852
+ addFromDam: string;
7853
+ replaceFromDam: string;
7854
+ removeImage: string;
7855
+ };
7856
+ };
7857
+ queueItem: {
7858
+ edit: string;
7859
+ displayTitle: string;
7860
+ error: string;
7861
+ copyAssetId: string;
7862
+ };
7863
+ asset: {
7864
+ model: {
7865
+ authors: string;
7866
+ keywords: string;
7867
+ };
7868
+ assetType: {
7869
+ image: string;
7870
+ audio: string;
7871
+ video: string;
7872
+ document: string;
7873
+ };
7874
+ detail: {
7875
+ toggleInfo: string;
7876
+ metadataToggle: {
7877
+ show: string;
7878
+ hide: string;
7879
+ };
7880
+ tabs: {
7881
+ info: string;
7882
+ roi: string;
7883
+ };
7884
+ info: {
7885
+ status: {
7886
+ duplicate: string;
7887
+ draft: string;
7888
+ deleting: string;
7889
+ failed: string;
7890
+ };
7891
+ metadata: string;
7892
+ file: string;
7893
+ field: {
7894
+ id: string;
7895
+ mainFileId: string;
7896
+ type: string;
7897
+ mimeType: string;
7898
+ size: string;
7899
+ dominantColor: string;
7900
+ width: string;
7901
+ height: string;
7902
+ ratio: string;
7903
+ animated: string;
7904
+ };
7905
+ };
7906
+ roi: {
7907
+ title: string;
7908
+ description: string;
7909
+ refresh: string;
7910
+ rotate: {
7911
+ rotateMainFileImage: string;
7912
+ rotateClockwise: string;
7913
+ rotateCounterclockwise: string;
7914
+ };
7915
+ };
7916
+ };
7917
+ massOperations: {
7918
+ title: string;
7919
+ description: string;
7920
+ fillOneEmpty: string;
7921
+ fillAllEmpty: string;
7922
+ replaceOne: string;
7923
+ replaceAll: string;
7924
+ clearForm: string;
7925
+ general: string;
7926
+ };
7927
+ metaIcons: {
7928
+ low: string;
7929
+ slots: string;
7930
+ rss: string;
7931
+ fullHd: string;
7932
+ "2k": string;
7933
+ qhd: string;
7934
+ "4k": string;
7935
+ "8k": string;
7936
+ };
7937
+ assetFileFailReason: {
7938
+ none: string;
7939
+ unknown: string;
7940
+ invalidChecksum: string;
7941
+ invalidMimeType: string;
7942
+ downloadFailed: string;
7943
+ invalidSize: string;
7944
+ };
7945
+ };
7946
+ upload: {
7947
+ waiting: string;
7948
+ processing: string;
7949
+ uploading: string;
7950
+ done: string;
7951
+ stop: string;
7952
+ add: string;
7953
+ save: string;
7954
+ saveAndApply: string;
7955
+ title: string;
7956
+ titleDone: string;
7957
+ stopConfirmQuestion: string;
7958
+ };
7959
+ keyword: {
7960
+ model: {
7961
+ name: string;
7962
+ };
7963
+ button: {
7964
+ add: string;
7965
+ };
7966
+ meta: {
7967
+ create: string;
7968
+ };
7969
+ };
7970
+ author: {
7971
+ model: {
7972
+ name: string;
7973
+ identifier: string;
7974
+ type: string;
7975
+ };
7976
+ authorType: {
7977
+ none: string;
7978
+ internal: string;
7979
+ external: string;
7980
+ agency: string;
7981
+ };
7982
+ button: {
7983
+ add: string;
7984
+ };
7985
+ meta: {
7986
+ create: string;
7987
+ };
7988
+ conflicts: string;
7989
+ };
7990
+ uploadErrors: {
7991
+ unknownError: string;
7992
+ systemError: string;
7993
+ size: string;
7994
+ offset: string;
7995
+ mimeType: string;
7996
+ };
7997
+ notificationsNotConnected: string;
7998
+ };
6549
7999
  };
6550
8000
  $vuetify: {
6551
8001
  badge: string;
@@ -6777,10 +8227,7 @@ export declare type PluginOptions<T extends AclValue = AclValue> = {
6777
8227
  default: LanguageCode;
6778
8228
  };
6779
8229
  customAclResolver?: CustomAclResolver<T>;
6780
- coreDam?: {
6781
- client: () => AxiosInstance;
6782
- defaultLicenceId?: IntegerId;
6783
- };
8230
+ coreDam?: CommonAdminCoreDamOptions;
6784
8231
  image?: CommonAdminImageOptions;
6785
8232
  };
6786
8233
 
@@ -6794,6 +8241,30 @@ declare type Prev = [never, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ...0[]];
6794
8241
 
6795
8242
  export declare type RecordWasType = 'created' | 'deleted' | 'updated' | 'published' | 'unpublished' | 'enabled' | 'disabled';
6796
8243
 
8244
+ declare interface RegionOfInterest extends AnzuUserAndTimeTrackingAware, ResourceNameSystemAware {
8245
+ id: DocId;
8246
+ title: string;
8247
+ position: number;
8248
+ image: DocId;
8249
+ pointX: number;
8250
+ pointY: number;
8251
+ percentageWidth: number;
8252
+ percentageHeight: number;
8253
+ links: {
8254
+ image_roi_example: AssetFileLink[];
8255
+ };
8256
+ }
8257
+
8258
+ export declare const regionToCrop: (cropper: Cropper_2, regionOfInterest: RegionOfInterest, originalImageWidth: number, originalImageHeight: number) => {
8259
+ x: number;
8260
+ y: number;
8261
+ width: number;
8262
+ height: number;
8263
+ rotate: number;
8264
+ scaleX: number;
8265
+ scaleY: number;
8266
+ };
8267
+
6797
8268
  export declare interface ResourceNameSystemAware {
6798
8269
  _resourceName: string;
6799
8270
  _system: string;
@@ -6903,6 +8374,17 @@ export declare const timePretty: (isoDate: DatetimeUTC | DatetimeUTCNullable | s
6903
8374
 
6904
8375
  export declare const timestampCurrent: () => number;
6905
8376
 
8377
+ export declare interface UploadQueue {
8378
+ items: UploadQueueItem[];
8379
+ totalCount: number;
8380
+ processedCount: number;
8381
+ fileInputKey: number;
8382
+ suggestions: {
8383
+ newKeywordNames: Set<string>;
8384
+ newAuthorNames: Set<string>;
8385
+ };
8386
+ }
8387
+
6906
8388
  export declare interface UploadQueueItem {
6907
8389
  key: string;
6908
8390
  file: File | null;
@@ -6918,7 +8400,7 @@ export declare interface UploadQueueItem {
6918
8400
  externalProviderAssetId: AssetExternalProviderIdNullable;
6919
8401
  externalProviderName: string | null;
6920
8402
  externalProviderMetadata: AssetExternalProviderMetadata;
6921
- chunks: UploadQueueItemChunk[];
8403
+ latestChunkCancelToken: CancelTokenSource | null;
6922
8404
  chunkSize: number;
6923
8405
  currentChunkIndex: number;
6924
8406
  chunkTotalCount: number;
@@ -6942,10 +8424,7 @@ export declare interface UploadQueueItem {
6942
8424
  notificationFallbackTimer: ReturnType<typeof setTimeout> | undefined;
6943
8425
  notificationFallbackTry: number;
6944
8426
  slotName: string | null;
6945
- }
6946
-
6947
- declare interface UploadQueueItemChunk {
6948
- cancelTokenSource: CancelTokenSource;
8427
+ image: undefined | ImageAware;
6949
8428
  }
6950
8429
 
6951
8430
  export declare enum UploadQueueItemStatus {
@@ -6965,6 +8444,8 @@ export declare enum UploadQueueItemType {
6965
8444
  SlotFile = "slotFile"
6966
8445
  }
6967
8446
 
8447
+ declare type UploadQueueKey = string;
8448
+
6968
8449
  export declare type UrlParams = {
6969
8450
  [key: string]: number | string;
6970
8451
  };
@@ -7010,6 +8491,11 @@ export declare function useApiQueryBuilder(): {
7010
8491
  queryBuild: () => string;
7011
8492
  };
7012
8493
 
8494
+ export declare function useAssetSuggestions(): {
8495
+ updateNewNames: (suggestions: AssetMetadataSuggestions, newNames: Set<string>) => void;
8496
+ getAuthorConflicts: (suggestions: AssetMetadataSuggestions) => string[];
8497
+ };
8498
+
7013
8499
  declare type UseCachedType = () => {
7014
8500
  fetch: any;
7015
8501
  add: any;
@@ -7154,6 +8640,80 @@ export declare function useCustomDataFormElementType(): {
7154
8640
  } | undefined;
7155
8641
  };
7156
8642
 
8643
+ export declare function useDamAcceptTypeAndSizeHelper(assetType: DamAssetType | undefined, damConfigExtSystem: DamExtSystemConfig): {
8644
+ uploadSizes: ComputedRef<{
8645
+ [x: string]: number;
8646
+ }>;
8647
+ uploadAccept: ComputedRef<string>;
8648
+ };
8649
+
8650
+ export declare function useDamAuthorFactory(): {
8651
+ createDefault: (extSystemId: number, reviewed?: boolean) => DamAuthor;
8652
+ };
8653
+
8654
+ export declare function useDamAuthorType(): {
8655
+ authorTypeOptions: Ref<{
8656
+ value: DamAuthorType;
8657
+ title: string;
8658
+ color?: string | undefined;
8659
+ active?: false | undefined;
8660
+ }[]>;
8661
+ getAuthorTypeOption: (value: DamAuthorType) => {
8662
+ value: DamAuthorType;
8663
+ title: string;
8664
+ color?: string | undefined;
8665
+ active?: false | undefined;
8666
+ } | undefined;
8667
+ };
8668
+
8669
+ export declare function useDamConfigState(client?: undefined | (() => AxiosInstance)): {
8670
+ initialized: {
8671
+ damPubConfig: boolean;
8672
+ damPrvConfig: boolean;
8673
+ damConfigExtSystem: number | null;
8674
+ damConfigAssetCustomFormElements: number | null;
8675
+ };
8676
+ damPubConfig: Ref<DamPubConfig> | ShallowRef<DamPubConfig>;
8677
+ damPrvConfig: Ref<DamPrvConfig> | ShallowRef<DamPrvConfig>;
8678
+ damConfigExtSystem: Ref<DamExtSystemConfig> | ShallowRef<DamExtSystemConfig>;
8679
+ damConfigAssetCustomFormElements: Ref<{
8680
+ image: CustomDataFormElement[];
8681
+ audio: CustomDataFormElement[];
8682
+ video: CustomDataFormElement[];
8683
+ document: CustomDataFormElement[];
8684
+ }> | ShallowRef<{
8685
+ image: CustomDataFormElement[];
8686
+ audio: CustomDataFormElement[];
8687
+ video: CustomDataFormElement[];
8688
+ document: CustomDataFormElement[];
8689
+ }>;
8690
+ damConfigDistributionCustomFormElements: Ref<Record<string, CustomDataFormElement[]>> | ShallowRef<Record<string, CustomDataFormElement[]>>;
8691
+ loadDamPrvConfig: () => Promise<unknown>;
8692
+ loadDamPubConfig: () => Promise<unknown>;
8693
+ loadDamConfigExtSystem: (extSystemId: IntegerId) => Promise<unknown>;
8694
+ loadDamConfigAssetCustomFormElements: (extSystemId: IntegerId) => Promise<unknown>;
8695
+ loadDamConfigDistributionCustomFormElements: (distributionServiceName: DamDistributionServiceName) => Promise<unknown>;
8696
+ };
8697
+
8698
+ export declare function useDamKeywordFactory(): {
8699
+ createDefault: (extSystemId: number, reviewed?: boolean) => DamKeyword;
8700
+ };
8701
+
8702
+ export declare function useDamNotifications(): {
8703
+ addDamNotificationListener: (callback: (event: DamNotification) => void) => Fn_2;
8704
+ };
8705
+
8706
+ export declare function useDamUploadChunkSize(apiTimeout?: number): {
8707
+ lastChunkSize: Ref<number>;
8708
+ updateChunkSize: (speed: number | null) => boolean;
8709
+ };
8710
+
8711
+ export declare function useDropzoneGlobalDragState(): {
8712
+ isDraggingFile: Ref<boolean>;
8713
+ initGlobalDragState: () => void;
8714
+ destroyGlobalDragState: () => void;
8715
+ };
8716
+
7157
8717
  export declare function useErrors(): {
7158
8718
  isAnzuFatalError: (error: any) => error is AnzuFatalError;
7159
8719
  isAnzuApiForbiddenError: (error: any) => error is AnzuApiForbiddenError;
@@ -7269,6 +8829,12 @@ export declare function usePermissionGroupFactory(): {
7269
8829
  createPermissionGroup: () => PermissionGroup;
7270
8830
  };
7271
8831
 
8832
+ export declare enum UserAuthType {
8833
+ JsonCredentials = "json_credentials",
8834
+ OAuth2 = "oauth2",
8835
+ Default = "json_credentials"
8836
+ }
8837
+
7272
8838
  export declare function useRemainingTime(): {
7273
8839
  remainingTimeShort: (seconds: number) => string;
7274
8840
  remainingTimeLong: (seconds: number) => string;
@@ -7307,6 +8873,10 @@ export declare function useTheme(): {
7307
8873
  setThemeLight: () => void;
7308
8874
  };
7309
8875
 
8876
+ export declare function useUploadQueueItemFactory(): {
8877
+ createDefault: (key: string, type: UploadQueueItemType, status: UploadQueueItemStatus, assetType: DamAssetType, chunkSize: number, licenceId: IntegerId) => UploadQueueItem;
8878
+ };
8879
+
7310
8880
  export declare function useValidate(): {
7311
8881
  required: ValidationRuleWithoutParams<any>;
7312
8882
  requiredIf: (prop: string | boolean | Ref<boolean> | (() => boolean | Promise<boolean>)) => ValidationRuleWithoutParams<any>;