@anzusystems/common-admin 1.30.0 → 1.31.1

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.
@@ -10,6 +10,7 @@ import dayjs from 'dayjs';
10
10
  import type { DeepReadonly } from 'vue';
11
11
  import { DefineComponent } from 'vue';
12
12
  import { ExtractPropTypes } from 'vue';
13
+ import type { Fn } from '@vueuse/core';
13
14
  import { I18n } from './vue-i18n/dist/vue-i18n.esm-bundler.js';
14
15
  import type { InjectionKey } from 'vue';
15
16
  import { IntlDateTimeFormat } from './vue-i18n/dist/vue-i18n.esm-bundler.js';
@@ -20,6 +21,8 @@ import { Promisify } from '@vueuse/shared';
20
21
  import { PropType } from 'vue';
21
22
  import type { QUnitType } from 'dayjs';
22
23
  import { Ref } from 'vue';
24
+ import { RendererElement } from 'vue';
25
+ import { RendererNode } from 'vue';
23
26
  import type { RouteLocationNormalized } from 'vue-router';
24
27
  import type { RouteLocationRaw } from 'vue-router';
25
28
  import type { Router } from 'vue-router';
@@ -27,6 +30,7 @@ import { UnwrapRef } from 'vue';
27
30
  import { useI18n } from './vue-i18n/dist/vue-i18n.esm-bundler.js';
28
31
  import { ValidationRuleWithoutParams } from '@vuelidate/core';
29
32
  import { ValidationRuleWithParams } from '@vuelidate/core';
33
+ import { VNode } from 'vue';
30
34
  import { VNodeProps } from 'vue';
31
35
 
32
36
  declare type __VLS_WithTemplateSlots<T, S> = T & {
@@ -689,10 +693,6 @@ export declare const AAssetSelect: __VLS_WithTemplateSlots_14<DefineComponent<{
689
693
  type: PropType<boolean>;
690
694
  default: undefined;
691
695
  };
692
- assetType: {
693
- type: PropType<"image" | "audio" | "video" | "document" | DamAssetType>;
694
- required: true;
695
- };
696
696
  minCount: {
697
697
  type: PropType<number>;
698
698
  required: true;
@@ -701,6 +701,10 @@ export declare const AAssetSelect: __VLS_WithTemplateSlots_14<DefineComponent<{
701
701
  type: PropType<number>;
702
702
  required: true;
703
703
  };
704
+ assetType: {
705
+ type: PropType<"image" | "audio" | "video" | "document" | DamAssetType>;
706
+ required: true;
707
+ };
704
708
  assetLicenceId: {
705
709
  type: PropType<number>;
706
710
  default: undefined;
@@ -719,10 +723,6 @@ export declare const AAssetSelect: __VLS_WithTemplateSlots_14<DefineComponent<{
719
723
  type: PropType<boolean>;
720
724
  default: undefined;
721
725
  };
722
- assetType: {
723
- type: PropType<"image" | "audio" | "video" | "document" | DamAssetType>;
724
- required: true;
725
- };
726
726
  minCount: {
727
727
  type: PropType<number>;
728
728
  required: true;
@@ -731,6 +731,10 @@ export declare const AAssetSelect: __VLS_WithTemplateSlots_14<DefineComponent<{
731
731
  type: PropType<number>;
732
732
  required: true;
733
733
  };
734
+ assetType: {
735
+ type: PropType<"image" | "audio" | "video" | "document" | DamAssetType>;
736
+ required: true;
737
+ };
734
738
  assetLicenceId: {
735
739
  type: PropType<number>;
736
740
  default: undefined;
@@ -1120,6 +1124,42 @@ export declare const ACardLoader: DefineComponent<{
1120
1124
  loading: boolean;
1121
1125
  }, {}>;
1122
1126
 
1127
+ export declare const ACheckboxSimple: DefineComponent<{
1128
+ value: {
1129
+ type: PropType<boolean>;
1130
+ default: boolean;
1131
+ };
1132
+ disabled: {
1133
+ type: PropType<boolean>;
1134
+ default: boolean;
1135
+ };
1136
+ size: {
1137
+ type: PropType<string>;
1138
+ default: string;
1139
+ };
1140
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1141
+ onClick: (data: boolean) => void;
1142
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
1143
+ value: {
1144
+ type: PropType<boolean>;
1145
+ default: boolean;
1146
+ };
1147
+ disabled: {
1148
+ type: PropType<boolean>;
1149
+ default: boolean;
1150
+ };
1151
+ size: {
1152
+ type: PropType<string>;
1153
+ default: string;
1154
+ };
1155
+ }>> & {
1156
+ onOnClick?: ((data: boolean) => any) | undefined;
1157
+ }, {
1158
+ value: boolean;
1159
+ disabled: boolean;
1160
+ size: string;
1161
+ }, {}>;
1162
+
1123
1163
  export declare const AChipNoLink: __VLS_WithTemplateSlots_3<DefineComponent<{
1124
1164
  dataCy: {
1125
1165
  type: PropType<string>;
@@ -3682,6 +3722,140 @@ declare enum AssetSelectReturnType {
3682
3722
  Asset = "asset"
3683
3723
  }
3684
3724
 
3725
+ export declare const ASubjectSelect: <TItem>(__VLS_props: {
3726
+ selectedItems: TItem[];
3727
+ pagination: Pagination;
3728
+ submitFilter: Fn;
3729
+ resetFilter: Fn;
3730
+ loading?: boolean | undefined;
3731
+ minCount?: number | undefined;
3732
+ maxCount?: number | undefined;
3733
+ modelValue?: boolean | undefined;
3734
+ dialogTitleT?: string | undefined;
3735
+ paginationMode?: "more" | "standard" | undefined;
3736
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, __VLS_ctx?: Pick<{
3737
+ props: {
3738
+ selectedItems: TItem[];
3739
+ pagination: Pagination;
3740
+ submitFilter: Fn;
3741
+ resetFilter: Fn;
3742
+ loading?: boolean | undefined;
3743
+ minCount?: number | undefined;
3744
+ maxCount?: number | undefined;
3745
+ modelValue?: boolean | undefined;
3746
+ dialogTitleT?: string | undefined;
3747
+ paginationMode?: "more" | "standard" | undefined;
3748
+ };
3749
+ expose(exposed: {
3750
+ open: () => void;
3751
+ }): void;
3752
+ attrs: any;
3753
+ slots: {
3754
+ activator?(_: {
3755
+ props: {
3756
+ onClick: (event: Event, ...args: unknown[]) => any;
3757
+ };
3758
+ }): any;
3759
+ title?(_: {}): any;
3760
+ "second-bar"?(_: {}): any;
3761
+ "second-bar-left"?(_: {}): any;
3762
+ "second-bar-right"?(_: {}): any;
3763
+ filter?(_: {}): any;
3764
+ content?(_: {}): any;
3765
+ "button-confirm-title"?(_: {}): any;
3766
+ };
3767
+ emit: {
3768
+ (e: 'update:modelValue', data: boolean): void;
3769
+ (e: 'update:pagination', data: Pagination): void;
3770
+ (e: 'onOpen'): void;
3771
+ (e: 'onPageChange'): void;
3772
+ (e: 'onConfirm', data: TItem[]): void;
3773
+ (e: 'onFetchNextPage'): void;
3774
+ };
3775
+ }, "attrs" | "slots" | "emit"> | undefined, __VLS_setup?: Promise<{
3776
+ props: {
3777
+ selectedItems: TItem[];
3778
+ pagination: Pagination;
3779
+ submitFilter: Fn;
3780
+ resetFilter: Fn;
3781
+ loading?: boolean | undefined;
3782
+ minCount?: number | undefined;
3783
+ maxCount?: number | undefined;
3784
+ modelValue?: boolean | undefined;
3785
+ dialogTitleT?: string | undefined;
3786
+ paginationMode?: "more" | "standard" | undefined;
3787
+ };
3788
+ expose(exposed: {
3789
+ open: () => void;
3790
+ }): void;
3791
+ attrs: any;
3792
+ slots: {
3793
+ activator?(_: {
3794
+ props: {
3795
+ onClick: (event: Event, ...args: unknown[]) => any;
3796
+ };
3797
+ }): any;
3798
+ title?(_: {}): any;
3799
+ "second-bar"?(_: {}): any;
3800
+ "second-bar-left"?(_: {}): any;
3801
+ "second-bar-right"?(_: {}): any;
3802
+ filter?(_: {}): any;
3803
+ content?(_: {}): any;
3804
+ "button-confirm-title"?(_: {}): any;
3805
+ };
3806
+ emit: {
3807
+ (e: 'update:modelValue', data: boolean): void;
3808
+ (e: 'update:pagination', data: Pagination): void;
3809
+ (e: 'onOpen'): void;
3810
+ (e: 'onPageChange'): void;
3811
+ (e: 'onConfirm', data: TItem[]): void;
3812
+ (e: 'onFetchNextPage'): void;
3813
+ };
3814
+ }>) => VNode<RendererNode, RendererElement, {
3815
+ [key: string]: any;
3816
+ }> & {
3817
+ __ctx?: {
3818
+ props: {
3819
+ selectedItems: TItem[];
3820
+ pagination: Pagination;
3821
+ submitFilter: Fn;
3822
+ resetFilter: Fn;
3823
+ loading?: boolean | undefined;
3824
+ minCount?: number | undefined;
3825
+ maxCount?: number | undefined;
3826
+ modelValue?: boolean | undefined;
3827
+ dialogTitleT?: string | undefined;
3828
+ paginationMode?: "more" | "standard" | undefined;
3829
+ };
3830
+ expose(exposed: {
3831
+ open: () => void;
3832
+ }): void;
3833
+ attrs: any;
3834
+ slots: {
3835
+ activator?(_: {
3836
+ props: {
3837
+ onClick: (event: Event, ...args: unknown[]) => any;
3838
+ };
3839
+ }): any;
3840
+ title?(_: {}): any;
3841
+ "second-bar"?(_: {}): any;
3842
+ "second-bar-left"?(_: {}): any;
3843
+ "second-bar-right"?(_: {}): any;
3844
+ filter?(_: {}): any;
3845
+ content?(_: {}): any;
3846
+ "button-confirm-title"?(_: {}): any;
3847
+ };
3848
+ emit: {
3849
+ (e: 'update:modelValue', data: boolean): void;
3850
+ (e: 'update:pagination', data: Pagination): void;
3851
+ (e: 'onOpen'): void;
3852
+ (e: 'onPageChange'): void;
3853
+ (e: 'onConfirm', data: TItem[]): void;
3854
+ (e: 'onFetchNextPage'): void;
3855
+ };
3856
+ } | undefined;
3857
+ };
3858
+
3685
3859
  export declare const ASystemBar: DefineComponent<{
3686
3860
  currentVersion: {
3687
3861
  type: PropType<string>;
@@ -4143,6 +4317,25 @@ export declare type DatatableOrderingOption = {
4143
4317
 
4144
4318
  export declare type DatatableOrderingOptions = Array<DatatableOrderingOption>;
4145
4319
 
4320
+ declare interface DataTableSelectStrategy {
4321
+ showSelectAll: boolean;
4322
+ allSelected: (data: {
4323
+ allItems: VDatatableSelectableItem[];
4324
+ currentPage: VDatatableSelectableItem[];
4325
+ }) => VDatatableSelectableItem[];
4326
+ select: (data: {
4327
+ items: VDatatableSelectableItem[];
4328
+ value: boolean;
4329
+ selected: Set<unknown>;
4330
+ }) => Set<unknown>;
4331
+ selectAll: (data: {
4332
+ value: boolean;
4333
+ allItems: VDatatableSelectableItem[];
4334
+ currentPage: VDatatableSelectableItem[];
4335
+ selected: Set<unknown>;
4336
+ }) => Set<unknown>;
4337
+ }
4338
+
4146
4339
  export declare type DatatableSortBy = {
4147
4340
  key: string;
4148
4341
  order: 'asc' | 'desc';
@@ -4250,6 +4443,8 @@ export declare interface FilterBag {
4250
4443
 
4251
4444
  export declare type FilterVariant = 'search' | 'lt' | 'in' | 'notIn' | 'endsWith' | 'startsWith' | 'memberOf' | 'contains' | 'neq' | 'gte' | 'gt' | 'eq' | 'lte' | 'custom';
4252
4445
 
4446
+ export declare const generateDatatableMinMaxSelectStrategy: (min: number, max: number) => DataTableSelectStrategy;
4447
+
4253
4448
  export declare const generateUUIDv1: () => any;
4254
4449
 
4255
4450
  export declare const generateUUIDv4: () => any;
@@ -4327,6 +4522,7 @@ export declare const i18n: I18n<{
4327
4522
  refresh: string;
4328
4523
  forwards: string;
4329
4524
  backwards: string;
4525
+ loadMore: string;
4330
4526
  };
4331
4527
  model: {
4332
4528
  system: string;
@@ -4570,10 +4766,6 @@ export declare const i18n: I18n<{
4570
4766
  filter: {
4571
4767
  toggle: string;
4572
4768
  };
4573
- controls: {
4574
- loadMore: string;
4575
- confirm: string;
4576
- };
4577
4769
  texts: {
4578
4770
  title: string;
4579
4771
  noItemsFound: string;
@@ -4588,6 +4780,16 @@ export declare const i18n: I18n<{
4588
4780
  generatedBySystem: string;
4589
4781
  };
4590
4782
  };
4783
+ subjectSelect: {
4784
+ filter: {
4785
+ toggle: string;
4786
+ };
4787
+ texts: {
4788
+ title: string;
4789
+ pickExactCount: string;
4790
+ pickRangeCount: string;
4791
+ };
4792
+ };
4591
4793
  time: {
4592
4794
  long: {
4593
4795
  remainingSeconds: string;
@@ -4984,6 +5186,7 @@ export declare const messagesCs: {
4984
5186
  refresh: string;
4985
5187
  forwards: string;
4986
5188
  backwards: string;
5189
+ loadMore: string;
4987
5190
  };
4988
5191
  model: {
4989
5192
  system: string;
@@ -5227,10 +5430,6 @@ export declare const messagesCs: {
5227
5430
  filter: {
5228
5431
  toggle: string;
5229
5432
  };
5230
- controls: {
5231
- loadMore: string;
5232
- confirm: string;
5233
- };
5234
5433
  texts: {
5235
5434
  title: string;
5236
5435
  noItemsFound: string;
@@ -5245,6 +5444,16 @@ export declare const messagesCs: {
5245
5444
  generatedBySystem: string;
5246
5445
  };
5247
5446
  };
5447
+ subjectSelect: {
5448
+ filter: {
5449
+ toggle: string;
5450
+ };
5451
+ texts: {
5452
+ title: string;
5453
+ pickExactCount: string;
5454
+ pickRangeCount: string;
5455
+ };
5456
+ };
5248
5457
  time: {
5249
5458
  long: {
5250
5459
  remainingSeconds: string;
@@ -5427,6 +5636,7 @@ export declare const messagesEn: {
5427
5636
  refresh: string;
5428
5637
  forwards: string;
5429
5638
  backwards: string;
5639
+ loadMore: string;
5430
5640
  };
5431
5641
  model: {
5432
5642
  system: string;
@@ -5670,10 +5880,6 @@ export declare const messagesEn: {
5670
5880
  filter: {
5671
5881
  toggle: string;
5672
5882
  };
5673
- controls: {
5674
- loadMore: string;
5675
- confirm: string;
5676
- };
5677
5883
  texts: {
5678
5884
  title: string;
5679
5885
  noItemsFound: string;
@@ -5688,6 +5894,16 @@ export declare const messagesEn: {
5688
5894
  generatedBySystem: string;
5689
5895
  };
5690
5896
  };
5897
+ subjectSelect: {
5898
+ filter: {
5899
+ toggle: string;
5900
+ };
5901
+ texts: {
5902
+ title: string;
5903
+ pickExactCount: string;
5904
+ pickRangeCount: string;
5905
+ };
5906
+ };
5691
5907
  time: {
5692
5908
  long: {
5693
5909
  remainingSeconds: string;
@@ -5870,6 +6086,7 @@ export declare const messagesSk: {
5870
6086
  refresh: string;
5871
6087
  forwards: string;
5872
6088
  backwards: string;
6089
+ loadMore: string;
5873
6090
  };
5874
6091
  model: {
5875
6092
  system: string;
@@ -6113,10 +6330,6 @@ export declare const messagesSk: {
6113
6330
  filter: {
6114
6331
  toggle: string;
6115
6332
  };
6116
- controls: {
6117
- loadMore: string;
6118
- confirm: string;
6119
- };
6120
6333
  texts: {
6121
6334
  title: string;
6122
6335
  noItemsFound: string;
@@ -6131,6 +6344,16 @@ export declare const messagesSk: {
6131
6344
  generatedBySystem: string;
6132
6345
  };
6133
6346
  };
6347
+ subjectSelect: {
6348
+ filter: {
6349
+ toggle: string;
6350
+ };
6351
+ texts: {
6352
+ title: string;
6353
+ pickExactCount: string;
6354
+ pickRangeCount: string;
6355
+ };
6356
+ };
6134
6357
  time: {
6135
6358
  long: {
6136
6359
  remainingSeconds: string;
@@ -6788,6 +7011,30 @@ export declare function useRemainingTime(): {
6788
7011
  remainingTimeLong: (seconds: number) => string;
6789
7012
  };
6790
7013
 
7014
+ export declare function useSubjectSelect<TItem>(datatableConfig: any, datatableHiddenColumns: any, system: string, subject: string, fetch: (pag: Pagination, fb: FilterBag) => Promise<Array<TItem>>, filter: FilterBag, maxCount: Ref<number>): {
7015
+ items: Ref<TItem[]>;
7016
+ selected: Ref<TItem[]>;
7017
+ pagination: Pagination;
7018
+ columnsVisible: ComputedRef<any>;
7019
+ columnsHidden: Ref<string[]>;
7020
+ columnsAll: {
7021
+ key: string;
7022
+ title?: string | undefined;
7023
+ sortable: boolean;
7024
+ fixed: boolean;
7025
+ }[];
7026
+ filterTouched: Ref<boolean>;
7027
+ loading: Ref<boolean>;
7028
+ onRowClick: (event: Event) => void;
7029
+ onFetchNextPage: () => Promise<void>;
7030
+ customToggleSelect: (toggle: (item: VDatatableSelectableItem) => void, isSelected: (item: VDatatableSelectableItem) => boolean, internalItem: VDatatableSelectableItem) => boolean;
7031
+ onOpen: () => void;
7032
+ sortByChange: (option: DatatableOrderingOption) => void;
7033
+ getList: () => Promise<void>;
7034
+ resetFilter: () => void;
7035
+ submitFilter: () => void;
7036
+ };
7037
+
6791
7038
  export declare function useTheme(): {
6792
7039
  settings: Readonly<Ref<ThemeSettings>>;
6793
7040
  theme: Readonly<Ref<Theme>>;
@@ -6849,6 +7096,11 @@ export declare interface ValueObjectOption<T> {
6849
7096
  active?: false;
6850
7097
  }
6851
7098
 
7099
+ declare interface VDatatableSelectableItem {
7100
+ value: any;
7101
+ selectable: boolean;
7102
+ }
7103
+
6852
7104
  declare interface VideoFile extends AnzuUserAndTimeTrackingAware {
6853
7105
  id: DocId;
6854
7106
  asset: DocId;