@anzusystems/common-admin 0.0.9 → 0.0.11

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.
Files changed (82) hide show
  1. package/dist/common-admin.es.d.ts +1847 -1
  2. package/dist/common-admin.es.js +2990 -2761
  3. package/dist/common-admin.es.js.map +1 -1
  4. package/dist/style.css +1 -1
  5. package/package.json +16 -16
  6. package/dist/components/ABooleanValue.vue.d.ts +0 -41
  7. package/dist/components/ACard.vue.d.ts +0 -49
  8. package/dist/components/ADatatable.vue.d.ts +0 -110
  9. package/dist/components/ADatatableColumn.vue.d.ts +0 -66
  10. package/dist/components/ADatatablePagination.vue.d.ts +0 -60
  11. package/dist/components/ADatetime.vue.d.ts +0 -27
  12. package/dist/components/ADatetimePicker.vue.d.ts +0 -2520
  13. package/dist/components/ARow.vue.d.ts +0 -38
  14. package/dist/components/buttons/filter/AFilterAdvancedButton.vue.d.ts +0 -34
  15. package/dist/components/buttons/filter/AFilterResetButton.vue.d.ts +0 -43
  16. package/dist/components/buttons/filter/AFilterSubmitButton.vue.d.ts +0 -44
  17. package/dist/components/filter/AFilterBooleanGroup.vue.d.ts +0 -24
  18. package/dist/components/filter/AFilterRemoteAutocomplete.vue.d.ts +0 -87
  19. package/dist/components/filter/AFilterString.vue.d.ts +0 -34
  20. package/dist/components/filter/AFilterValueObjectOptionsSelect.vue.d.ts +0 -34
  21. package/dist/components/filter/AFilterWrapper.vue.d.ts +0 -163
  22. package/dist/components/form/ABooleanToggle.vue.d.ts +0 -71
  23. package/dist/components/form/ARemoteAutocomplete.vue.d.ts +0 -233
  24. package/dist/components/form/ASystemEntityScope.vue.d.ts +0 -22
  25. package/dist/components/form/ATextField.vue.d.ts +0 -142
  26. package/dist/components/form/ATextarea.vue.d.ts +0 -131
  27. package/dist/components/form/AValueObjectOptionsSelect.vue.d.ts +0 -138
  28. package/dist/components/injectionKeys.d.ts +0 -3
  29. package/dist/components/job/JobStatusChip.vue.d.ts +0 -17
  30. package/dist/components/permission/APermissionGrantEditor.vue.d.ts +0 -28
  31. package/dist/components/permission/APermissionValueChip.vue.d.ts +0 -29
  32. package/dist/composables/filter/filterHelpers.d.ts +0 -20
  33. package/dist/composables/statusCodes.d.ts +0 -7
  34. package/dist/composables/system/alerts.d.ts +0 -17
  35. package/dist/composables/system/error.d.ts +0 -25
  36. package/dist/composables/system/pagination.d.ts +0 -14
  37. package/dist/composables/system/tableColumns.d.ts +0 -14
  38. package/dist/create.d.ts +0 -11
  39. package/dist/lib.d.ts +0 -188
  40. package/dist/locales/index.d.ts +0 -1
  41. package/dist/model/error/AnzuApiResponseCodeError.d.ts +0 -4
  42. package/dist/model/error/AnzuApiValidationError.d.ts +0 -4
  43. package/dist/model/error/AnzuFatalError.d.ts +0 -4
  44. package/dist/model/factory/AnzuUserFactory.d.ts +0 -4
  45. package/dist/model/factory/PermissionConfigFactory.d.ts +0 -4
  46. package/dist/model/factory/PermissionGroupFactory.d.ts +0 -4
  47. package/dist/model/valueObject/Grant.d.ts +0 -16
  48. package/dist/model/valueObject/GrantOrigin.d.ts +0 -17
  49. package/dist/model/valueObject/JobResource.d.ts +0 -11
  50. package/dist/model/valueObject/JobStatus.d.ts +0 -18
  51. package/dist/services/api/apiAnyRequest.d.ts +0 -7
  52. package/dist/services/api/apiCreateOne.d.ts +0 -7
  53. package/dist/services/api/apiDeleteOne.d.ts +0 -7
  54. package/dist/services/api/apiFetchByIds.d.ts +0 -3
  55. package/dist/services/api/apiFetchList.d.ts +0 -9
  56. package/dist/services/api/apiFetchOne.d.ts +0 -6
  57. package/dist/services/api/apiHelper.d.ts +0 -4
  58. package/dist/services/api/apiUpdateOne.d.ts +0 -7
  59. package/dist/services/api/job/jobApi.d.ts +0 -11
  60. package/dist/services/api/queryBuilder.d.ts +0 -13
  61. package/dist/types/AnzuUser.d.ts +0 -14
  62. package/dist/types/AnzuUserAndTimeTrackingAware.d.ts +0 -7
  63. package/dist/types/CreatedByAware.d.ts +0 -5
  64. package/dist/types/Filter.d.ts +0 -15
  65. package/dist/types/Job.d.ts +0 -16
  66. package/dist/types/OwnerAware.d.ts +0 -5
  67. package/dist/types/Pagination.d.ts +0 -10
  68. package/dist/types/Permission.d.ts +0 -6
  69. package/dist/types/PermissionConfig.d.ts +0 -30
  70. package/dist/types/PermissionGroup.d.ts +0 -13
  71. package/dist/types/ValueObject.d.ts +0 -6
  72. package/dist/types/Vuetify.d.ts +0 -1
  73. package/dist/types/common.d.ts +0 -6
  74. package/dist/utils/common.d.ts +0 -13
  75. package/dist/utils/datetime.d.ts +0 -14
  76. package/dist/utils/event.d.ts +0 -1
  77. package/dist/utils/file.d.ts +0 -1
  78. package/dist/utils/object.d.ts +0 -8
  79. package/dist/utils/response.d.ts +0 -1
  80. package/dist/utils/string.d.ts +0 -23
  81. package/dist/validators/vuelidate/useRequiredIf.d.ts +0 -1
  82. package/dist/vite-env.d.ts +0 -1
@@ -1,16 +0,0 @@
1
- import type { DatetimeUTCNullable, IntegerId, IntegerIdNullable } from '../types/common';
2
- import { AnzuUserAndTimeTrackingAware } from '../types/AnzuUserAndTimeTrackingAware';
3
- import type { JobResource } from '../model/valueObject/JobResource';
4
- export interface Job<T extends JobResource = JobResource> extends AnzuUserAndTimeTrackingAware {
5
- readonly id: IntegerId;
6
- readonly status: string;
7
- readonly startedAt: DatetimeUTCNullable;
8
- readonly finishedAt: DatetimeUTCNullable;
9
- readonly lastBatchProcessedRecord: string;
10
- readonly batchProcessedIterationCount: number;
11
- targetUserId: IntegerIdNullable;
12
- anonymizeUser: boolean;
13
- readonly result: string;
14
- _resourceName: T;
15
- readonly _system: string;
16
- }
@@ -1,5 +0,0 @@
1
- import type { IntegerId } from '../types/common';
2
- export interface OwnerAware {
3
- owners: IntegerId[];
4
- }
5
- export declare const isOwnerAware: (value: unknown) => value is OwnerAware;
@@ -1,10 +0,0 @@
1
- export interface Pagination {
2
- sortBy: string | null;
3
- descending: boolean;
4
- page: number;
5
- rowsPerPage: number;
6
- rowsNumber: number;
7
- hasNextPage: null | boolean;
8
- currentViewCount: number;
9
- totalCount: number;
10
- }
@@ -1,6 +0,0 @@
1
- import type { Grant } from '../model/valueObject/Grant';
2
- export type AclKey = string;
3
- export type AclValue = string;
4
- export type Permissions = {
5
- [key in AclValue]?: Grant;
6
- };
@@ -1,30 +0,0 @@
1
- import { Grant } from '../model/valueObject/Grant';
2
- export interface PermissionConfig {
3
- roles: string[];
4
- defaultGrants: Grant[];
5
- config: {
6
- [subject: string]: {
7
- [action: string]: {
8
- grants?: Grant[];
9
- };
10
- };
11
- };
12
- translation: {
13
- subjects: {
14
- [subject: string]: {
15
- [lang: string]: string;
16
- };
17
- };
18
- actions: {
19
- [action: string]: {
20
- [lang: string]: string;
21
- };
22
- };
23
- roles: {
24
- [role: string]: {
25
- [lang: string]: string;
26
- };
27
- };
28
- };
29
- }
30
- export type PermissionTranslationGroup = 'subjects' | 'actions' | 'roles';
@@ -1,13 +0,0 @@
1
- import type { IntegerId } from '../types/common';
2
- import type { Permissions } from '../types/Permission';
3
- import { AnzuUserAndTimeTrackingAware } from '../types/AnzuUserAndTimeTrackingAware';
4
- export interface PermissionGroupMinimal {
5
- id: IntegerId;
6
- title: string;
7
- permissions: Permissions;
8
- }
9
- export interface PermissionGroup extends PermissionGroupMinimal, AnzuUserAndTimeTrackingAware {
10
- description: string;
11
- _system: string;
12
- _resourceName: 'permissionGroup';
13
- }
@@ -1,6 +0,0 @@
1
- export interface ValueObjectOption<T> {
2
- value: T;
3
- title: string;
4
- color?: string;
5
- active?: false;
6
- }
@@ -1 +0,0 @@
1
- export type VuetifyIconValue = string;
@@ -1,6 +0,0 @@
1
- export type DatetimeUTC = string;
2
- export type DatetimeUTCNullable = string | null;
3
- export type IntegerId = number;
4
- export type IntegerIdNullable = number | null;
5
- export type DocId = string;
6
- export type DocIdNullable = string | null;
@@ -1,13 +0,0 @@
1
- export declare const isUndefined: (value: unknown) => value is undefined;
2
- export declare const isNotUndefined: (value: unknown) => boolean;
3
- export declare const isNull: (value: unknown) => value is null;
4
- export declare const isNumber: (value: any) => value is number;
5
- export declare const isString: (value: any) => value is string;
6
- export declare const isArray: (value: any) => value is any[];
7
- export declare const isBoolean: (value: any) => value is boolean;
8
- export declare const isDocId: (value: any) => value is string;
9
- export declare const isInt: (value: any) => value is number;
10
- export declare const isObject: (value: any) => value is object;
11
- export declare const isEmptyObject: (value: any) => value is object;
12
- export declare const isEmptyArray: (value: any) => value is any[];
13
- export declare const isEmpty: (value: any) => boolean;
@@ -1,14 +0,0 @@
1
- import dayjs from 'dayjs';
2
- import type { DatetimeUTC, DatetimeUTCNullable } from '../types/common';
3
- export declare const DATETIME_MIN = "1970-01-01T00:00:00.000000Z";
4
- export declare const DATETIME_MAX = "2100-01-01T00:00:00.000000Z";
5
- export declare const newDateNow: () => Date;
6
- export declare const currentTimestamp: () => number;
7
- export declare const dateTimeNow: (ignoreFractionalSeconds?: boolean, ignoreSeconds?: boolean) => string;
8
- export declare const dateTimeStartOfDay: (days?: number) => string;
9
- export declare const dateTimeEndOfDay: (days?: number) => string;
10
- export declare const modifyMinutesOfDate: (minutes?: number, date?: null | Date) => Date | undefined;
11
- export declare const dateToUtc: (date: dayjs.ConfigType) => string;
12
- export declare const yearNow: () => string;
13
- export declare const prettyDateTime: (isoDate: DatetimeUTC | DatetimeUTCNullable | string | null, edgeDateValue?: string) => string;
14
- export declare const friendlyDateTime: (isoDate: DatetimeUTC | DatetimeUTCNullable | string | null, edgeDateValue?: string) => string;
@@ -1 +0,0 @@
1
- export declare const clickBlur: (event?: Event) => void;
@@ -1 +0,0 @@
1
- export declare const prettyBytes: (bytes: number, decimals?: number) => string;
@@ -1,8 +0,0 @@
1
- export declare const deepFreeze: <T>(obj: T) => Readonly<T>;
2
- export declare const getValueByPath: (obj: any, path: string, splitChar?: string) => any;
3
- export declare const setValueByPath: (obj: any, path: string, value: any, splitChar?: string) => void;
4
- export declare function deletePropertyByPath<T>(obj: T, path: string, splitChar?: string): T;
5
- /**
6
- * Use only for objects with some primitives like number, string, boolean, null. Not supported: function, undefined, symbol, ...
7
- */
8
- export declare const simpleCloneObject: <T>(object: T) => T;
@@ -1 +0,0 @@
1
- export declare const isValidHTTPStatus: (statusCode: number) => boolean;
@@ -1,23 +0,0 @@
1
- import { UrlParams } from '../services/api/apiHelper';
2
- export declare const toInt: (value: any, fallbackValue?: number) => number;
3
- export declare const toFloat: (value: any, fallbackValue?: number) => number;
4
- export declare const splitOnFirstOccurrence: (value: string, delimiter?: string) => {
5
- start: string;
6
- end: string;
7
- };
8
- export declare const slugify: (value: string) => string;
9
- type Kebab<T extends string, A extends string = ''> = T extends `${infer F}${infer R}` ? Kebab<R, `${A}${F extends Lowercase<F> ? '' : '-'}${Lowercase<F>}`> : A;
10
- export declare const toKebabCase: <T extends string>(value: T) => Kebab<T, "">;
11
- export declare const trimLength: (value: string, maxLength?: number) => string;
12
- /**
13
- * Converts colon parameters to real values.
14
- *
15
- * @param template url containing colon parameters, example: '/:id/edit'
16
- * @param params object containing real values to be replaced, example: { id:5 }
17
- */
18
- export declare const urlTemplateReplace: (template: string, params: UrlParams) => string;
19
- /**
20
- * Slot names with dots are not valid, Vue takes dots as modifiers, so we must replace dots with dash.
21
- */
22
- export declare const normalizeForSlotName: (name: string) => string;
23
- export {};
@@ -1 +0,0 @@
1
- export declare function useRequiredIf(i18nTranslate: any): (prop: string | boolean | import("vue").Ref<boolean> | (() => boolean | Promise<boolean>)) => import("@vuelidate/core").ValidationRuleWithoutParams<any>;
@@ -1 +0,0 @@
1
- /// <reference types="vite/client" />