@anzusystems/common-admin 0.0.59 → 0.0.61

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.
@@ -15,6 +15,7 @@ import type { InjectionKey } from 'vue';
15
15
  import type { Method } from 'axios';
16
16
  import type { PropType } from 'vue';
17
17
  import type { Ref } from 'vue';
18
+ import type { RouteLocationNormalized } from 'vue-router';
18
19
  import type { RouteLocationRaw } from 'vue-router';
19
20
  import type { Router } from 'vue-router';
20
21
  import type { UnwrapRef } from 'vue';
@@ -1394,42 +1395,89 @@ export declare const AFilterBooleanGroup: DefineComponent<{
1394
1395
  type: PropType<Filter<any>>;
1395
1396
  required: true;
1396
1397
  };
1398
+ dataCyTrue: {
1399
+ type: PropType<string | undefined>;
1400
+ required: false;
1401
+ default: string;
1402
+ };
1403
+ dataCyFalse: {
1404
+ type: PropType<string | undefined>;
1405
+ required: false;
1406
+ default: string;
1407
+ };
1397
1408
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
1398
1409
  modelValue: {
1399
1410
  type: PropType<Filter<any>>;
1400
1411
  required: true;
1401
1412
  };
1413
+ dataCyTrue: {
1414
+ type: PropType<string | undefined>;
1415
+ required: false;
1416
+ default: string;
1417
+ };
1418
+ dataCyFalse: {
1419
+ type: PropType<string | undefined>;
1420
+ required: false;
1421
+ default: string;
1422
+ };
1402
1423
  }>> & {
1403
1424
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1404
- }, {}>;
1425
+ }, {
1426
+ dataCyTrue: string | undefined;
1427
+ dataCyFalse: string | undefined;
1428
+ }>;
1405
1429
 
1406
1430
  export declare const AFilterBooleanSelect: DefineComponent<{
1407
1431
  modelValue: {
1408
1432
  type: PropType<Filter<any>>;
1409
1433
  required: true;
1410
1434
  };
1435
+ dataCy: {
1436
+ type: PropType<string | undefined>;
1437
+ required: false;
1438
+ default: string;
1439
+ };
1411
1440
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
1412
1441
  modelValue: {
1413
1442
  type: PropType<Filter<any>>;
1414
1443
  required: true;
1415
1444
  };
1445
+ dataCy: {
1446
+ type: PropType<string | undefined>;
1447
+ required: false;
1448
+ default: string;
1449
+ };
1416
1450
  }>> & {
1417
1451
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1418
- }, {}>;
1452
+ }, {
1453
+ dataCy: string | undefined;
1454
+ }>;
1419
1455
 
1420
1456
  export declare const AFilterDatetimePicker: DefineComponent<{
1421
1457
  modelValue: {
1422
1458
  type: PropType<Filter<any>>;
1423
1459
  required: true;
1424
1460
  };
1461
+ dataCy: {
1462
+ type: PropType<string | undefined>;
1463
+ required: false;
1464
+ default: string;
1465
+ };
1425
1466
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
1426
1467
  modelValue: {
1427
1468
  type: PropType<Filter<any>>;
1428
1469
  required: true;
1429
1470
  };
1471
+ dataCy: {
1472
+ type: PropType<string | undefined>;
1473
+ required: false;
1474
+ default: string;
1475
+ };
1430
1476
  }>> & {
1431
1477
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1432
- }, {}>;
1478
+ }, {
1479
+ dataCy: string | undefined;
1480
+ }>;
1433
1481
 
1434
1482
  export declare const AFilterInteger: DefineComponent<{
1435
1483
  modelValue: {
@@ -1593,7 +1641,7 @@ export declare const AFilterString: DefineComponent<{
1593
1641
  dataCy: {
1594
1642
  type: PropType<string | undefined>;
1595
1643
  required: false;
1596
- default: undefined;
1644
+ default: string;
1597
1645
  };
1598
1646
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
1599
1647
  modelValue: {
@@ -1608,7 +1656,7 @@ export declare const AFilterString: DefineComponent<{
1608
1656
  dataCy: {
1609
1657
  type: PropType<string | undefined>;
1610
1658
  required: false;
1611
- default: undefined;
1659
+ default: string;
1612
1660
  };
1613
1661
  }>> & {
1614
1662
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -2877,6 +2925,11 @@ export declare const ALoginView: DefineComponent<{
2877
2925
  required: false;
2878
2926
  default: undefined;
2879
2927
  };
2928
+ dataCy: {
2929
+ type: PropType<string | undefined>;
2930
+ required: false;
2931
+ default: string;
2932
+ };
2880
2933
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
2881
2934
  title: {
2882
2935
  type: PropType<string | undefined>;
@@ -2893,8 +2946,14 @@ export declare const ALoginView: DefineComponent<{
2893
2946
  required: false;
2894
2947
  default: undefined;
2895
2948
  };
2949
+ dataCy: {
2950
+ type: PropType<string | undefined>;
2951
+ required: false;
2952
+ default: string;
2953
+ };
2896
2954
  }>>, {
2897
2955
  title: string | undefined;
2956
+ dataCy: string | undefined;
2898
2957
  logoUrl: string | undefined;
2899
2958
  loginUrl: (() => string) | undefined;
2900
2959
  }>;
@@ -3143,6 +3202,8 @@ export declare const arrayFromArgs: <T>(args_0: T[]) => T[];
3143
3202
 
3144
3203
  export declare const arrayItemToggle: <T>(array: T[], value: T) => void;
3145
3204
 
3205
+ export declare const arraysHaveSameElements: <T>(array1: T[], array2: T[]) => boolean;
3206
+
3146
3207
  export declare const arrayToString: (values: Array<string | number>, separator?: string) => string;
3147
3208
 
3148
3209
  export declare const ASystemBar: DefineComponent<{
@@ -3613,10 +3674,14 @@ export declare type DatatableSortBy = {
3613
3674
  order: 'asc' | 'desc';
3614
3675
  } | null | undefined;
3615
3676
 
3677
+ export declare const dateDiff: (isoDate1: Date, isoDate2: Date) => number;
3678
+
3616
3679
  export declare const dateModifyMinutes: (minutes?: number, date?: null | Date) => Date | undefined;
3617
3680
 
3618
3681
  export declare const dateNow: () => Date;
3619
3682
 
3683
+ export declare const datePretty: (isoDate: DatetimeUTC | DatetimeUTCNullable | string | null, edgeDateValue?: string) => string;
3684
+
3620
3685
  export declare const DATETIME_MAX = "2100-01-01T00:00:00.000000Z";
3621
3686
 
3622
3687
  export declare const DATETIME_MIN = "1970-01-01T00:00:00.000000Z";
@@ -3688,6 +3753,8 @@ export declare interface FilterBag {
3688
3753
 
3689
3754
  export declare type FilterVariant = 'search' | 'lt' | 'in' | 'notIn' | 'endsWith' | 'startsWith' | 'memberOf' | 'contains' | 'neq' | 'gte' | 'gt' | 'eq' | 'lte';
3690
3755
 
3756
+ export declare const generateUUIDv1: () => any;
3757
+
3691
3758
  export declare enum Grant {
3692
3759
  Deny = 0,
3693
3760
  AllowOwner = 1,
@@ -4716,7 +4783,7 @@ export declare const prettyBytes: (bytes: number, decimals?: number) => string;
4716
4783
 
4717
4784
  declare type Prev = [never, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ...0[]];
4718
4785
 
4719
- declare type RecordWasType = 'created' | 'deleted' | 'updated' | 'published' | 'unpublished' | 'enabled' | 'disabled';
4786
+ export declare type RecordWasType = 'created' | 'deleted' | 'updated' | 'published' | 'unpublished' | 'enabled' | 'disabled';
4720
4787
 
4721
4788
  export declare interface ResourceNameSystemAware {
4722
4789
  _resourceName: string;
@@ -4776,9 +4843,11 @@ declare enum ThemeSettings {
4776
4843
  Auto = "auto"
4777
4844
  }
4778
4845
 
4846
+ export declare const timePretty: (isoDate: DatetimeUTC | DatetimeUTCNullable | string | null, edgeDateValue?: string) => string;
4847
+
4779
4848
  export declare const timestampCurrent: () => number;
4780
4849
 
4781
- declare type UrlParams = {
4850
+ export declare type UrlParams = {
4782
4851
  [key: string]: number | string;
4783
4852
  };
4784
4853
 
@@ -5014,6 +5083,15 @@ export declare function useLanguageSettings(): {
5014
5083
  currentLanguageCode: Readonly<Ref<LanguageCode | "default">>;
5015
5084
  };
5016
5085
 
5086
+ export declare function useLoginStatus(to: RouteLocationNormalized): {
5087
+ status: Readonly<Ref<string | null>>;
5088
+ isStatusNotDefined: () => boolean;
5089
+ isStatusLoginSuccess: () => boolean;
5090
+ isStatusSsoCommunicationFailure: () => boolean;
5091
+ isStatusInternalErrorFailure: () => boolean;
5092
+ isStatusUnauthorized: () => boolean;
5093
+ };
5094
+
5017
5095
  export declare function useLogLevel(): {
5018
5096
  logLevelOptions: Ref<{
5019
5097
  value: LogLevel;