@anzusystems/common-admin 1.40.0-alpha7 → 1.40.0-alpha9

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.
@@ -178,6 +178,8 @@ declare type __VLS_NonUndefinedable_71<T> = T extends undefined ? never : T;
178
178
 
179
179
  declare type __VLS_NonUndefinedable_72<T> = T extends undefined ? never : T;
180
180
 
181
+ declare type __VLS_NonUndefinedable_73<T> = T extends undefined ? never : T;
182
+
181
183
  declare type __VLS_NonUndefinedable_8<T> = T extends undefined ? never : T;
182
184
 
183
185
  declare type __VLS_NonUndefinedable_9<T> = T extends undefined ? never : T;
@@ -450,6 +452,10 @@ declare type __VLS_Prettify_7<T> = {
450
452
  [K in keyof T]: T[K];
451
453
  } & {};
452
454
 
455
+ declare type __VLS_Prettify_70<T> = {
456
+ [K in keyof T]: T[K];
457
+ } & {};
458
+
453
459
  declare type __VLS_Prettify_8<T> = {
454
460
  [K in keyof T]: T[K];
455
461
  } & {};
@@ -1088,6 +1094,15 @@ declare type __VLS_TypePropsToRuntimeProps_72<T> = {
1088
1094
  };
1089
1095
  };
1090
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
+
1091
1106
  declare type __VLS_TypePropsToRuntimeProps_8<T> = {
1092
1107
  [K in keyof T]-?: {} extends Pick<T, K> ? {
1093
1108
  type: PropType<__VLS_NonUndefinedable_8<T[K]>>;
@@ -1508,6 +1523,12 @@ declare type __VLS_WithDefaults_7<P, D> = {
1508
1523
  }> : P[K];
1509
1524
  };
1510
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
+
1511
1532
  declare type __VLS_WithDefaults_8<P, D> = {
1512
1533
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_8<P[K] & {
1513
1534
  default: D[K];
@@ -1973,7 +1994,7 @@ export declare const AAnzuUserAvatar: DefineComponent<__VLS_WithDefaults_53<__VL
1973
1994
  containerClass: string;
1974
1995
  }, {}>;
1975
1996
 
1976
- export declare const AAssetSelect: __VLS_WithTemplateSlots_16<DefineComponent<__VLS_WithDefaults_65<__VLS_TypePropsToRuntimeProps_68<{
1997
+ export declare const AAssetSelect: __VLS_WithTemplateSlots_16<DefineComponent<__VLS_WithDefaults_66<__VLS_TypePropsToRuntimeProps_69<{
1977
1998
  modelValue?: boolean | undefined;
1978
1999
  assetType: "image" | "audio" | "video" | DamAssetType | "document";
1979
2000
  minCount: number;
@@ -1991,7 +2012,7 @@ export declare const AAssetSelect: __VLS_WithTemplateSlots_16<DefineComponent<__
1991
2012
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1992
2013
  "update:modelValue": (data: boolean) => void;
1993
2014
  onConfirm: (data: AssetSelectReturnData) => void;
1994
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_65<__VLS_TypePropsToRuntimeProps_68<{
2015
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_66<__VLS_TypePropsToRuntimeProps_69<{
1995
2016
  modelValue?: boolean | undefined;
1996
2017
  assetType: "image" | "audio" | "video" | DamAssetType | "document";
1997
2018
  minCount: number;
@@ -3760,14 +3781,67 @@ export declare const AImageWidgetMultiple: DefineComponent<__VLS_WithDefaults_64
3760
3781
  callDeleteApiOnRemove: boolean;
3761
3782
  }, {}>;
3762
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
+
3763
3835
  export declare const AImageWidgetSimple: __VLS_WithTemplateSlots_15<DefineComponent<__VLS_WithDefaults_63<__VLS_TypePropsToRuntimeProps_66<{
3764
3836
  modelValue: IntegerIdNullable | undefined;
3765
- image?: ImageAware | ImageCreateUpdateAware | undefined;
3837
+ image?: ImageAware | ImageCreateUpdateAware | null | undefined;
3766
3838
  configName?: string | undefined;
3767
3839
  label?: string | undefined;
3768
3840
  width?: number | undefined;
3769
3841
  disableAspectRatio?: boolean | undefined;
3770
3842
  aspectRatio?: string | number | undefined;
3843
+ showDescription?: boolean | undefined;
3844
+ showSource?: boolean | undefined;
3771
3845
  }>, {
3772
3846
  configName: string;
3773
3847
  label: undefined;
@@ -3775,14 +3849,18 @@ export declare const AImageWidgetSimple: __VLS_WithTemplateSlots_15<DefineCompon
3775
3849
  width: undefined;
3776
3850
  disableAspectRatio: boolean;
3777
3851
  aspectRatio: number;
3852
+ showDescription: boolean;
3853
+ showSource: boolean;
3778
3854
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_63<__VLS_TypePropsToRuntimeProps_66<{
3779
3855
  modelValue: IntegerIdNullable | undefined;
3780
- image?: ImageAware | ImageCreateUpdateAware | undefined;
3856
+ image?: ImageAware | ImageCreateUpdateAware | null | undefined;
3781
3857
  configName?: string | undefined;
3782
3858
  label?: string | undefined;
3783
3859
  width?: number | undefined;
3784
3860
  disableAspectRatio?: boolean | undefined;
3785
3861
  aspectRatio?: string | number | undefined;
3862
+ showDescription?: boolean | undefined;
3863
+ showSource?: boolean | undefined;
3786
3864
  }>, {
3787
3865
  configName: string;
3788
3866
  label: undefined;
@@ -3790,13 +3868,17 @@ export declare const AImageWidgetSimple: __VLS_WithTemplateSlots_15<DefineCompon
3790
3868
  width: undefined;
3791
3869
  disableAspectRatio: boolean;
3792
3870
  aspectRatio: number;
3871
+ showDescription: boolean;
3872
+ showSource: boolean;
3793
3873
  }>>>, {
3794
3874
  width: number;
3795
- image: ImageAware | ImageCreateUpdateAware;
3875
+ image: ImageAware | ImageCreateUpdateAware | null;
3796
3876
  label: string;
3797
3877
  configName: string;
3798
3878
  disableAspectRatio: boolean;
3799
3879
  aspectRatio: string | number;
3880
+ showDescription: boolean;
3881
+ showSource: boolean;
3800
3882
  }, {}>, {
3801
3883
  append?(_: {
3802
3884
  image: {
@@ -3859,7 +3941,7 @@ export declare const ALogData: DefineComponent<__VLS_WithDefaults_29<__VLS_TypeP
3859
3941
  data: any;
3860
3942
  }>, {}>>>, {}, {}>;
3861
3943
 
3862
- export declare const ALoginView: DefineComponent<__VLS_WithDefaults_66<__VLS_TypePropsToRuntimeProps_69<{
3944
+ export declare const ALoginView: DefineComponent<__VLS_WithDefaults_67<__VLS_TypePropsToRuntimeProps_70<{
3863
3945
  title?: string | undefined;
3864
3946
  logoUrl?: string | undefined;
3865
3947
  loginUrl?: undefined | (() => string);
@@ -3869,7 +3951,7 @@ export declare const ALoginView: DefineComponent<__VLS_WithDefaults_66<__VLS_Typ
3869
3951
  logoUrl: undefined;
3870
3952
  loginUrl: undefined;
3871
3953
  dataCy: string;
3872
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_66<__VLS_TypePropsToRuntimeProps_69<{
3954
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_67<__VLS_TypePropsToRuntimeProps_70<{
3873
3955
  title?: string | undefined;
3874
3956
  logoUrl?: string | undefined;
3875
3957
  loginUrl?: undefined | (() => string);
@@ -3892,11 +3974,11 @@ export declare const ALogLevelChip: DefineComponent<__VLS_WithDefaults_52<__VLS_
3892
3974
  level: LogLevel;
3893
3975
  }>, {}>>>, {}, {}>;
3894
3976
 
3895
- export declare const ALogoutView: DefineComponent<__VLS_WithDefaults_67<__VLS_TypePropsToRuntimeProps_70<{
3977
+ export declare const ALogoutView: DefineComponent<__VLS_WithDefaults_68<__VLS_TypePropsToRuntimeProps_71<{
3896
3978
  logoutUrl?: undefined | (() => string);
3897
3979
  }>, {
3898
3980
  logoutUrl: undefined;
3899
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_67<__VLS_TypePropsToRuntimeProps_70<{
3981
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_68<__VLS_TypePropsToRuntimeProps_71<{
3900
3982
  logoutUrl?: undefined | (() => string);
3901
3983
  }>, {
3902
3984
  logoutUrl: undefined;
@@ -3904,9 +3986,9 @@ export declare const ALogoutView: DefineComponent<__VLS_WithDefaults_67<__VLS_Ty
3904
3986
  logoutUrl: () => string;
3905
3987
  }, {}>;
3906
3988
 
3907
- export declare const ANotFoundView: DefineComponent<__VLS_WithDefaults_69<__VLS_TypePropsToRuntimeProps_72<{
3989
+ export declare const ANotFoundView: DefineComponent<__VLS_WithDefaults_70<__VLS_TypePropsToRuntimeProps_73<{
3908
3990
  returnRouteName: string;
3909
- }>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_69<__VLS_TypePropsToRuntimeProps_72<{
3991
+ }>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_70<__VLS_TypePropsToRuntimeProps_73<{
3910
3992
  returnRouteName: string;
3911
3993
  }>, {}>>>, {}, {}>;
3912
3994
 
@@ -4768,9 +4850,9 @@ declare interface AudioAttributes {
4768
4850
  bitrate: number;
4769
4851
  }
4770
4852
 
4771
- export declare const AUnauthorizedView: DefineComponent<__VLS_WithDefaults_68<__VLS_TypePropsToRuntimeProps_71<{
4853
+ export declare const AUnauthorizedView: DefineComponent<__VLS_WithDefaults_69<__VLS_TypePropsToRuntimeProps_72<{
4772
4854
  returnRouteName: string;
4773
- }>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_68<__VLS_TypePropsToRuntimeProps_71<{
4855
+ }>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_69<__VLS_TypePropsToRuntimeProps_72<{
4774
4856
  returnRouteName: string;
4775
4857
  }>, {}>>>, {}, {}>;
4776
4858
 
@@ -4906,6 +4988,8 @@ export declare interface CreatedByAware {
4906
4988
  createdBy: IntegerIdNullable;
4907
4989
  }
4908
4990
 
4991
+ export declare const cropToRegion: (cropper: Cropper_2, regionOfInterest: RegionOfInterest, originalImageWidth: number, originalImageHeight: number) => RegionOfInterest;
4992
+
4909
4993
  export declare type CurrentUserType = DeepReadonly<Ref<UnwrapRef<AnzuUser | undefined>>>;
4910
4994
 
4911
4995
  export declare type CustomAclResolver<T extends AclValue = AclValue> = undefined | {
@@ -4964,6 +5048,26 @@ export declare enum DamAssetType {
4964
5048
  Default = "image"
4965
5049
  }
4966
5050
 
5051
+ export declare interface DamAuthor extends DamAuthorMinimal, AnzuUserAndTimeTrackingAware, ResourceNameSystemAware {
5052
+ extSystem: IntegerId;
5053
+ flags: Flags_3;
5054
+ type: DamAuthorType;
5055
+ }
5056
+
5057
+ export declare interface DamAuthorMinimal {
5058
+ id: DocId;
5059
+ name: string;
5060
+ identifier: string;
5061
+ }
5062
+
5063
+ export declare enum DamAuthorType {
5064
+ None = "none",
5065
+ Internal = "internal",
5066
+ External = "external",
5067
+ Agency = "agency",
5068
+ Default = "none"
5069
+ }
5070
+
4967
5071
  export declare interface DamDistributionConfig {
4968
5072
  distributionServices: Array<DamDistributionServiceName>;
4969
5073
  distributionRequirements: Record<DamDistributionServiceName, DamDistributionRequirementsConfig>;
@@ -5014,6 +5118,13 @@ export declare type DamExternalProviderAssetConfig = Record<DamExternalProviderA
5014
5118
 
5015
5119
  export declare type DamExternalProviderAssetName = string;
5016
5120
 
5121
+ export declare interface DamExtSystem extends AnzuUserAndTimeTrackingAware, ResourceNameSystemAware {
5122
+ id: IntegerId;
5123
+ name: string;
5124
+ slug: string;
5125
+ adminUsers: IntegerId[];
5126
+ }
5127
+
5017
5128
  export declare interface DamExtSystemAssetTypeExifMetadata {
5018
5129
  enabled: boolean;
5019
5130
  required: boolean;
@@ -5039,8 +5150,23 @@ export declare interface DamExtSystemConfigItem {
5039
5150
  slots: string[];
5040
5151
  }
5041
5152
 
5153
+ export declare interface DamExtSystemMinimal extends Pick<DamExtSystem, 'id' | 'name'> {
5154
+ }
5155
+
5042
5156
  export declare const damFileTypeFix: (file: File | null | undefined) => string;
5043
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
+
5044
5170
  declare type DamNotification = DamNotificationAssetFileProcessed | DamNotificationAssetFileFailed | DamNotificationAssetFileDuplicate | DamNotificationAssetFileUploaded | DamNotificationAssetFileDeleted | DamNotificationAssetMetadataProcessed | DamNotificationAssetDeleted | DamNotificationDistributionDistributing | DamNotificationDistributionRemoteProcessing | DamNotificationDistributionDistributed | DamNotificationDistributionFailed | DamNotificationDistributionAuthorized | DamNotificationUserUpdated;
5045
5171
 
5046
5172
  declare interface DamNotificationAssetData {
@@ -5294,6 +5420,14 @@ declare interface Flags {
5294
5420
  visible: boolean;
5295
5421
  }
5296
5422
 
5423
+ declare interface Flags_2 {
5424
+ reviewed: boolean;
5425
+ }
5426
+
5427
+ declare interface Flags_3 {
5428
+ reviewed: boolean;
5429
+ }
5430
+
5297
5431
  export declare const generateDatatableMinMaxSelectStrategy: (min: number, max: number) => DataTableSelectStrategy;
5298
5432
 
5299
5433
  export declare const generateUUIDv1: () => any;
@@ -5797,7 +5931,7 @@ declare interface ImageAttributes {
5797
5931
  animated: boolean;
5798
5932
  }
5799
5933
 
5800
- declare interface ImageAware {
5934
+ export declare interface ImageAware {
5801
5935
  id: IntegerId;
5802
5936
  texts: {
5803
5937
  description: string;
@@ -5810,10 +5944,14 @@ declare interface ImageAware {
5810
5944
  position: number;
5811
5945
  }
5812
5946
 
5813
- declare interface ImageCreateUpdateAware extends Omit<ImageAware, 'id'> {
5947
+ export declare interface ImageCreateUpdateAware extends Omit<ImageAware, 'id'> {
5814
5948
  id?: IntegerId;
5815
5949
  }
5816
5950
 
5951
+ export declare interface ImageCreateUpdateAwareKeyed extends ImageCreateUpdateAware {
5952
+ key: string;
5953
+ }
5954
+
5817
5955
  export declare type Immutable<T> = {
5818
5956
  readonly [K in keyof T]: Immutable<T[K]>;
5819
5957
  };
@@ -7617,6 +7755,30 @@ declare type Prev = [never, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ...0[]];
7617
7755
 
7618
7756
  export declare type RecordWasType = 'created' | 'deleted' | 'updated' | 'published' | 'unpublished' | 'enabled' | 'disabled';
7619
7757
 
7758
+ declare interface RegionOfInterest extends AnzuUserAndTimeTrackingAware, ResourceNameSystemAware {
7759
+ id: DocId;
7760
+ title: string;
7761
+ position: number;
7762
+ image: DocId;
7763
+ pointX: number;
7764
+ pointY: number;
7765
+ percentageWidth: number;
7766
+ percentageHeight: number;
7767
+ links: {
7768
+ image_roi_example: AssetFileLink[];
7769
+ };
7770
+ }
7771
+
7772
+ export declare const regionToCrop: (cropper: Cropper_2, regionOfInterest: RegionOfInterest, originalImageWidth: number, originalImageHeight: number) => {
7773
+ x: number;
7774
+ y: number;
7775
+ width: number;
7776
+ height: number;
7777
+ rotate: number;
7778
+ scaleX: number;
7779
+ scaleY: number;
7780
+ };
7781
+
7620
7782
  export declare interface ResourceNameSystemAware {
7621
7783
  _resourceName: string;
7622
7784
  _system: string;
@@ -7999,6 +8161,25 @@ export declare function useDamAcceptTypeAndSizeHelper(assetType: DamAssetType |
7999
8161
  uploadAccept: ComputedRef<string>;
8000
8162
  };
8001
8163
 
8164
+ export declare function useDamAuthorFactory(): {
8165
+ createDefault: (extSystemId: number, reviewed?: boolean) => DamAuthor;
8166
+ };
8167
+
8168
+ export declare function useDamAuthorType(): {
8169
+ authorTypeOptions: Ref<{
8170
+ value: DamAuthorType;
8171
+ title: string;
8172
+ color?: string | undefined;
8173
+ active?: false | undefined;
8174
+ }[]>;
8175
+ getAuthorTypeOption: (value: DamAuthorType) => {
8176
+ value: DamAuthorType;
8177
+ title: string;
8178
+ color?: string | undefined;
8179
+ active?: false | undefined;
8180
+ } | undefined;
8181
+ };
8182
+
8002
8183
  export declare function useDamConfigState(client?: undefined | (() => AxiosInstance)): {
8003
8184
  initialized: {
8004
8185
  damPubConfig: boolean;
@@ -8028,6 +8209,10 @@ export declare function useDamConfigState(client?: undefined | (() => AxiosInsta
8028
8209
  loadDamConfigDistributionCustomFormElements: (distributionServiceName: DamDistributionServiceName) => Promise<unknown>;
8029
8210
  };
8030
8211
 
8212
+ export declare function useDamKeywordFactory(): {
8213
+ createDefault: (extSystemId: number, reviewed?: boolean) => DamKeyword;
8214
+ };
8215
+
8031
8216
  export declare function useDamNotifications(): {
8032
8217
  addDamNotificationListener: (callback: (event: DamNotification) => void) => Fn_2;
8033
8218
  };