@anzusystems/common-admin 0.0.42 → 0.0.44
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.
- package/dist/common-admin.es.d.ts +77 -40
- package/dist/common-admin.es.js +344 -336
- package/dist/common-admin.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +7 -7
|
@@ -2802,10 +2802,15 @@ export declare const ANotFoundView: DefineComponent<{
|
|
|
2802
2802
|
};
|
|
2803
2803
|
}>>, {}>;
|
|
2804
2804
|
|
|
2805
|
-
declare class AnzuApiForbiddenError extends Error {
|
|
2805
|
+
export declare class AnzuApiForbiddenError extends Error {
|
|
2806
2806
|
constructor(cause?: Error, message?: string);
|
|
2807
2807
|
}
|
|
2808
2808
|
|
|
2809
|
+
export declare class AnzuApiForbiddenOperationError extends Error {
|
|
2810
|
+
detail: string;
|
|
2811
|
+
constructor(axiosError: AxiosError, cause?: Error, message?: string);
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2809
2814
|
export declare class AnzuApiResponseCodeError extends Error {
|
|
2810
2815
|
code: number;
|
|
2811
2816
|
constructor(code: number, cause?: Error, message?: string);
|
|
@@ -2816,6 +2821,12 @@ export declare class AnzuApiValidationError extends Error {
|
|
|
2816
2821
|
constructor(axiosError: AxiosError, system: string, entity: string, cause?: Error, message?: string);
|
|
2817
2822
|
}
|
|
2818
2823
|
|
|
2824
|
+
export declare interface AnzuApiValidationResponseData {
|
|
2825
|
+
contextId: string;
|
|
2826
|
+
error: string;
|
|
2827
|
+
fields: ValidationResponseDataFields;
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2819
2830
|
export declare class AnzuFatalError extends Error {
|
|
2820
2831
|
constructor(cause?: Error, message?: string);
|
|
2821
2832
|
}
|
|
@@ -3132,25 +3143,26 @@ export declare const ATableCopyIdButton: DefineComponent<{
|
|
|
3132
3143
|
}>;
|
|
3133
3144
|
|
|
3134
3145
|
export declare const ATableDetailButton: DefineComponent<{
|
|
3135
|
-
recordId: {
|
|
3136
|
-
type: PropType<string | number>;
|
|
3137
|
-
required: true;
|
|
3138
|
-
};
|
|
3139
3146
|
routeName: {
|
|
3140
3147
|
type: PropType<string>;
|
|
3141
3148
|
required: true;
|
|
3142
3149
|
};
|
|
3143
|
-
|
|
3144
|
-
type: PropType<string | undefined>;
|
|
3150
|
+
recordId: {
|
|
3151
|
+
type: PropType<string | number | undefined>;
|
|
3145
3152
|
required: false;
|
|
3146
|
-
default:
|
|
3153
|
+
default: undefined;
|
|
3147
3154
|
};
|
|
3148
|
-
|
|
3155
|
+
routeParams: {
|
|
3156
|
+
type: PropType<any>;
|
|
3157
|
+
required: false;
|
|
3158
|
+
default: undefined;
|
|
3159
|
+
};
|
|
3160
|
+
buttonT: {
|
|
3149
3161
|
type: PropType<string | undefined>;
|
|
3150
3162
|
required: false;
|
|
3151
3163
|
default: string;
|
|
3152
3164
|
};
|
|
3153
|
-
|
|
3165
|
+
buttonClass: {
|
|
3154
3166
|
type: PropType<string | undefined>;
|
|
3155
3167
|
required: false;
|
|
3156
3168
|
default: string;
|
|
@@ -3161,25 +3173,26 @@ export declare const ATableDetailButton: DefineComponent<{
|
|
|
3161
3173
|
default: string;
|
|
3162
3174
|
};
|
|
3163
3175
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
3164
|
-
recordId: {
|
|
3165
|
-
type: PropType<string | number>;
|
|
3166
|
-
required: true;
|
|
3167
|
-
};
|
|
3168
3176
|
routeName: {
|
|
3169
3177
|
type: PropType<string>;
|
|
3170
3178
|
required: true;
|
|
3171
3179
|
};
|
|
3172
|
-
|
|
3173
|
-
type: PropType<string | undefined>;
|
|
3180
|
+
recordId: {
|
|
3181
|
+
type: PropType<string | number | undefined>;
|
|
3174
3182
|
required: false;
|
|
3175
|
-
default:
|
|
3183
|
+
default: undefined;
|
|
3176
3184
|
};
|
|
3177
|
-
|
|
3185
|
+
routeParams: {
|
|
3186
|
+
type: PropType<any>;
|
|
3187
|
+
required: false;
|
|
3188
|
+
default: undefined;
|
|
3189
|
+
};
|
|
3190
|
+
buttonT: {
|
|
3178
3191
|
type: PropType<string | undefined>;
|
|
3179
3192
|
required: false;
|
|
3180
3193
|
default: string;
|
|
3181
3194
|
};
|
|
3182
|
-
|
|
3195
|
+
buttonClass: {
|
|
3183
3196
|
type: PropType<string | undefined>;
|
|
3184
3197
|
required: false;
|
|
3185
3198
|
default: string;
|
|
@@ -3193,29 +3206,31 @@ export declare const ATableDetailButton: DefineComponent<{
|
|
|
3193
3206
|
dataCy: string | undefined;
|
|
3194
3207
|
buttonT: string | undefined;
|
|
3195
3208
|
buttonClass: string | undefined;
|
|
3196
|
-
|
|
3209
|
+
recordId: string | number | undefined;
|
|
3210
|
+
routeParams: any;
|
|
3197
3211
|
}>;
|
|
3198
3212
|
|
|
3199
3213
|
export declare const ATableEditButton: DefineComponent<{
|
|
3200
|
-
recordId: {
|
|
3201
|
-
type: PropType<string | number>;
|
|
3202
|
-
required: true;
|
|
3203
|
-
};
|
|
3204
3214
|
routeName: {
|
|
3205
3215
|
type: PropType<string>;
|
|
3206
3216
|
required: true;
|
|
3207
3217
|
};
|
|
3208
|
-
|
|
3209
|
-
type: PropType<string | undefined>;
|
|
3218
|
+
recordId: {
|
|
3219
|
+
type: PropType<string | number | undefined>;
|
|
3210
3220
|
required: false;
|
|
3211
|
-
default:
|
|
3221
|
+
default: undefined;
|
|
3212
3222
|
};
|
|
3213
|
-
|
|
3223
|
+
routeParams: {
|
|
3224
|
+
type: PropType<any>;
|
|
3225
|
+
required: false;
|
|
3226
|
+
default: undefined;
|
|
3227
|
+
};
|
|
3228
|
+
buttonT: {
|
|
3214
3229
|
type: PropType<string | undefined>;
|
|
3215
3230
|
required: false;
|
|
3216
3231
|
default: string;
|
|
3217
3232
|
};
|
|
3218
|
-
|
|
3233
|
+
buttonClass: {
|
|
3219
3234
|
type: PropType<string | undefined>;
|
|
3220
3235
|
required: false;
|
|
3221
3236
|
default: string;
|
|
@@ -3226,25 +3241,26 @@ export declare const ATableEditButton: DefineComponent<{
|
|
|
3226
3241
|
default: string;
|
|
3227
3242
|
};
|
|
3228
3243
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
3229
|
-
recordId: {
|
|
3230
|
-
type: PropType<string | number>;
|
|
3231
|
-
required: true;
|
|
3232
|
-
};
|
|
3233
3244
|
routeName: {
|
|
3234
3245
|
type: PropType<string>;
|
|
3235
3246
|
required: true;
|
|
3236
3247
|
};
|
|
3237
|
-
|
|
3238
|
-
type: PropType<string | undefined>;
|
|
3248
|
+
recordId: {
|
|
3249
|
+
type: PropType<string | number | undefined>;
|
|
3239
3250
|
required: false;
|
|
3240
|
-
default:
|
|
3251
|
+
default: undefined;
|
|
3241
3252
|
};
|
|
3242
|
-
|
|
3253
|
+
routeParams: {
|
|
3254
|
+
type: PropType<any>;
|
|
3255
|
+
required: false;
|
|
3256
|
+
default: undefined;
|
|
3257
|
+
};
|
|
3258
|
+
buttonT: {
|
|
3243
3259
|
type: PropType<string | undefined>;
|
|
3244
3260
|
required: false;
|
|
3245
3261
|
default: string;
|
|
3246
3262
|
};
|
|
3247
|
-
|
|
3263
|
+
buttonClass: {
|
|
3248
3264
|
type: PropType<string | undefined>;
|
|
3249
3265
|
required: false;
|
|
3250
3266
|
default: string;
|
|
@@ -3258,7 +3274,8 @@ export declare const ATableEditButton: DefineComponent<{
|
|
|
3258
3274
|
dataCy: string | undefined;
|
|
3259
3275
|
buttonT: string | undefined;
|
|
3260
3276
|
buttonClass: string | undefined;
|
|
3261
|
-
|
|
3277
|
+
recordId: string | number | undefined;
|
|
3278
|
+
routeParams: any;
|
|
3262
3279
|
}>;
|
|
3263
3280
|
|
|
3264
3281
|
export declare const AThemeSelect: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
|
|
@@ -3369,6 +3386,12 @@ export declare const AUserAndTimeTrackingFields: DefineComponent<{
|
|
|
3369
3386
|
|
|
3370
3387
|
export declare const AvailableLanguagesSymbol: unique symbol;
|
|
3371
3388
|
|
|
3389
|
+
export declare const axiosErrorResponseHasForbiddenOperationData: (error: Error) => any;
|
|
3390
|
+
|
|
3391
|
+
export declare const axiosErrorResponseHasValidationData: (error: Error) => any;
|
|
3392
|
+
|
|
3393
|
+
export declare const axiosErrorResponseIsForbidden: (error: Error) => boolean;
|
|
3394
|
+
|
|
3372
3395
|
export declare const booleanToInteger: (value: boolean) => 1 | 0;
|
|
3373
3396
|
|
|
3374
3397
|
export declare const browserHistoryReplaceUrlByRouter: (router: Router, to: RouteLocationRaw) => void;
|
|
@@ -3565,6 +3588,16 @@ export declare type IntegerId = number;
|
|
|
3565
3588
|
|
|
3566
3589
|
export declare type IntegerIdNullable = number | null;
|
|
3567
3590
|
|
|
3591
|
+
export declare const isAnzuApiForbiddenError: (error: any) => error is AnzuApiForbiddenError;
|
|
3592
|
+
|
|
3593
|
+
export declare const isAnzuApiForbiddenOperationError: (error: any) => error is AnzuApiForbiddenOperationError;
|
|
3594
|
+
|
|
3595
|
+
export declare const isAnzuApiResponseCodeError: (error: any) => error is AnzuApiResponseCodeError;
|
|
3596
|
+
|
|
3597
|
+
export declare const isAnzuApiValidationError: (error: any) => error is AnzuApiValidationError;
|
|
3598
|
+
|
|
3599
|
+
export declare const isAnzuFatalError: (error: any) => error is AnzuFatalError;
|
|
3600
|
+
|
|
3568
3601
|
/**
|
|
3569
3602
|
* @template T Type used for request payload, by default same as Response type
|
|
3570
3603
|
* @template R Response type override, optional
|
|
@@ -4892,11 +4925,15 @@ export declare function useValidate(): {
|
|
|
4892
4925
|
};
|
|
4893
4926
|
};
|
|
4894
4927
|
|
|
4895
|
-
declare interface ValidationError {
|
|
4928
|
+
export declare interface ValidationError {
|
|
4896
4929
|
field: string;
|
|
4897
4930
|
errors: string[];
|
|
4898
4931
|
}
|
|
4899
4932
|
|
|
4933
|
+
declare interface ValidationResponseDataFields {
|
|
4934
|
+
[key: string]: string[];
|
|
4935
|
+
}
|
|
4936
|
+
|
|
4900
4937
|
export declare type ValidationScope = string | number | boolean | symbol | undefined;
|
|
4901
4938
|
|
|
4902
4939
|
export declare interface ValueObjectOption<T> {
|