@skyworx/dynamic-ui 1.0.50 → 1.0.52
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/{NavigatedViewer-B7H9ZJOh.js → NavigatedViewer-DYe4UutC.js} +1961 -1945
- package/dist/{docx-preview-DV_9Mutt.js → docx-preview-CctU29AC.js} +1 -1
- package/dist/dynamic-ui.css +1 -1
- package/dist/dynamic-ui.es.js +1 -1
- package/dist/dynamic-ui.umd.js +222 -222
- package/dist/{index-CL9_NvAY.js → index-BY2tirMn.js} +28399 -27938
- package/dist/{jszip.min-BmOvfk1n.js → jszip.min-DxaFB6FW.js} +1 -1
- package/dist/{pptx-preview.es-D80K11jK.js → pptx-preview.es-DVKvnNdf.js} +9820 -9836
- package/dist/types/components/base/DCodeAutoComplete.vue.d.ts +2 -2
- package/dist/types/components/base/DCodeCardCheckboxList.vue.d.ts +1 -1
- package/dist/types/components/base/DCodeDynamicCollapse.vue.d.ts +1 -1
- package/dist/types/components/base/DCodeFileResult.vue.d.ts +2 -0
- package/dist/types/components/base/DCodeHistoryLog.vue.d.ts +4 -0
- package/dist/types/components/base/DCodeImageResult.vue.d.ts +2 -0
- package/dist/types/components/base/DCodeInfiniteAutoComplete.vue.d.ts +1 -1
- package/dist/types/components/base/DCodeMapField.vue.d.ts +1 -1
- package/dist/types/components/base/DCodeSlider.vue.d.ts +1 -1
- package/dist/types/components/base/DCodeStaticImage.vue.d.ts +1 -1
- package/dist/types/components/base/DCodeWorkflowBpmn.vue.d.ts +1 -1
- package/dist/types/components/base/DCodeWorkflowDiagram.vue.d.ts +1 -1
- package/dist/types/components/base/datatable/DataTable.vue.d.ts +4 -4
- package/dist/types/components/dynamic/DynamicForm.vue.d.ts +5 -5
- package/dist/types/components/dynamic/DynamicFormField.vue.d.ts +2 -2
- package/dist/types/components/dynamic/DynamicWizard.vue.d.ts +5 -5
- package/dist/types/composables/__tests__/useResolvedImagePreview.test.d.ts +1 -0
- package/dist/types/composables/dynamic-form/logic/useFormLogic.options-filter-exclude.test.d.ts +1 -0
- package/dist/types/composables/dynamic-form/types/form.types.d.ts +1 -1
- package/dist/types/composables/dynamic-form/useDynamicForm.d.ts +2 -267
- package/dist/types/composables/useResolvedImagePreview.d.ts +31 -0
- package/dist/types/types/form.d.ts +6 -4
- package/dist/types/utils/documentViewer/sourceResolver.d.ts +2 -0
- package/dist/types/utils/helpers.d.ts +6 -0
- package/dist/types/utils/pdfPreview.d.ts +1 -1
- package/dist/{viewer-Bk7OBy9_.js → viewer-BmyrY2UC.js} +1 -1
- package/dist/{xlsx-BSxXi4Js.js → xlsx-CpN2fY5t.js} +4 -4
- package/package.json +1 -1
|
@@ -62,14 +62,15 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
62
62
|
required: boolean;
|
|
63
63
|
error: string | null;
|
|
64
64
|
visible: boolean;
|
|
65
|
+
apiParams: Record<string, any>;
|
|
65
66
|
returnObject: boolean;
|
|
67
|
+
excludeValues: any[];
|
|
66
68
|
itemTitle: string | ((item: any) => string);
|
|
67
69
|
itemValue: string | ((item: any) => any);
|
|
68
70
|
clearable: boolean;
|
|
69
71
|
skeleton: boolean;
|
|
70
72
|
autoFetchOnOpen: boolean;
|
|
71
73
|
autoFetchOnMount: boolean;
|
|
72
|
-
apiParams: Record<string, any>;
|
|
73
74
|
openOnFocus: boolean;
|
|
74
75
|
pageSize: number;
|
|
75
76
|
threshold: number;
|
|
@@ -78,7 +79,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
78
79
|
labelPosition: "top" | "bottom" | "left" | "right";
|
|
79
80
|
labelWidth: string;
|
|
80
81
|
searchable: boolean;
|
|
81
|
-
excludeValues: any[];
|
|
82
82
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
83
83
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
84
84
|
export default _default;
|
|
@@ -49,12 +49,12 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
49
49
|
items: any[];
|
|
50
50
|
apiUrl: string;
|
|
51
51
|
visible: boolean;
|
|
52
|
+
apiParams: Record<string, any>;
|
|
52
53
|
model: string;
|
|
53
54
|
options: any[];
|
|
54
55
|
itemTitle: string;
|
|
55
56
|
itemValue: string;
|
|
56
57
|
skeleton: boolean;
|
|
57
|
-
apiParams: Record<string, any>;
|
|
58
58
|
apiMethod: "GET" | "POST";
|
|
59
59
|
dataPath: string;
|
|
60
60
|
layout: boolean;
|
|
@@ -239,12 +239,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
239
239
|
labelEN: string;
|
|
240
240
|
formData: Record<string, any>;
|
|
241
241
|
labelKR: string;
|
|
242
|
+
selectedTokenCore: Record<string, any>;
|
|
242
243
|
isEditMode: boolean;
|
|
243
244
|
dummyMode: boolean;
|
|
244
245
|
itemTitle: string;
|
|
245
246
|
itemValue: string;
|
|
246
247
|
endpointReference: Record<string, any>;
|
|
247
|
-
selectedTokenCore: Record<string, any>;
|
|
248
248
|
accordion: string | boolean;
|
|
249
249
|
renderSubForm: boolean;
|
|
250
250
|
subLayoutCodeKey: string;
|
|
@@ -19,11 +19,13 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
19
19
|
remove: () => any;
|
|
20
20
|
edit: () => any;
|
|
21
21
|
preview: () => any;
|
|
22
|
+
"blob-loaded": (blob: Blob) => any;
|
|
22
23
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
24
|
onReplace?: (() => any) | undefined;
|
|
24
25
|
onRemove?: (() => any) | undefined;
|
|
25
26
|
onEdit?: (() => any) | undefined;
|
|
26
27
|
onPreview?: (() => any) | undefined;
|
|
28
|
+
"onBlob-loaded"?: ((blob: Blob) => any) | undefined;
|
|
27
29
|
}>, {
|
|
28
30
|
flat: boolean;
|
|
29
31
|
title: string;
|
|
@@ -16,6 +16,8 @@ type __VLS_Props = {
|
|
|
16
16
|
dataPath?: string;
|
|
17
17
|
dateFormat?: "short" | "long" | "time" | "datetime" | string;
|
|
18
18
|
locale?: string;
|
|
19
|
+
durationLabel?: string;
|
|
20
|
+
showDuration?: boolean;
|
|
19
21
|
level?: 1 | 2 | 3;
|
|
20
22
|
shadow?: boolean;
|
|
21
23
|
border?: boolean;
|
|
@@ -37,6 +39,8 @@ type __VLS_Slots = {} & {
|
|
|
37
39
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
38
40
|
label: string;
|
|
39
41
|
title: string;
|
|
42
|
+
showDuration: boolean;
|
|
43
|
+
durationLabel: string;
|
|
40
44
|
description: string;
|
|
41
45
|
endpoint: {
|
|
42
46
|
apiUrl?: string;
|
|
@@ -18,11 +18,13 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
18
18
|
remove: () => any;
|
|
19
19
|
edit: () => any;
|
|
20
20
|
preview: () => any;
|
|
21
|
+
"blob-loaded": (blob: Blob) => any;
|
|
21
22
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
23
|
onReplace?: (() => any) | undefined;
|
|
23
24
|
onRemove?: (() => any) | undefined;
|
|
24
25
|
onEdit?: (() => any) | undefined;
|
|
25
26
|
onPreview?: (() => any) | undefined;
|
|
27
|
+
"onBlob-loaded"?: ((blob: Blob) => any) | undefined;
|
|
26
28
|
}>, {
|
|
27
29
|
flat: boolean;
|
|
28
30
|
title: string;
|
|
@@ -73,6 +73,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
73
73
|
error: string | null;
|
|
74
74
|
visible: boolean;
|
|
75
75
|
returnObject: boolean;
|
|
76
|
+
excludeValues: any[];
|
|
76
77
|
itemTitle: string | ((item: any) => string);
|
|
77
78
|
itemValue: string | ((item: any) => any);
|
|
78
79
|
clearable: boolean;
|
|
@@ -83,7 +84,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
83
84
|
threshold: number;
|
|
84
85
|
searchParamName: string;
|
|
85
86
|
debounceMs: number;
|
|
86
|
-
excludeValues: any[];
|
|
87
87
|
refreshOnOpen: boolean;
|
|
88
88
|
inputType: string;
|
|
89
89
|
helperText: string;
|
|
@@ -37,9 +37,9 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
37
37
|
height: string;
|
|
38
38
|
required: boolean;
|
|
39
39
|
error: string | null;
|
|
40
|
+
zoom: number;
|
|
40
41
|
visible: boolean;
|
|
41
42
|
valueFormat: ValueFormat;
|
|
42
|
-
zoom: number;
|
|
43
43
|
skeleton: boolean;
|
|
44
44
|
defaultLat: number;
|
|
45
45
|
defaultLng: number;
|
|
@@ -34,6 +34,7 @@ declare const _default: import("vue").DefineComponent<DCodeBaseProps<number> & {
|
|
|
34
34
|
onInput?: ((value: number) => any) | undefined;
|
|
35
35
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
|
+
min: number;
|
|
37
38
|
label: string;
|
|
38
39
|
size: "sm" | "md" | "lg";
|
|
39
40
|
placeholder: string;
|
|
@@ -41,7 +42,6 @@ declare const _default: import("vue").DefineComponent<DCodeBaseProps<number> & {
|
|
|
41
42
|
modelValue: number;
|
|
42
43
|
color: string;
|
|
43
44
|
max: number;
|
|
44
|
-
min: number;
|
|
45
45
|
required: boolean;
|
|
46
46
|
step: number;
|
|
47
47
|
error: string | null;
|
|
@@ -62,8 +62,8 @@ type __VLS_Props = {
|
|
|
62
62
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
63
63
|
rounded: boolean;
|
|
64
64
|
title: string;
|
|
65
|
-
dummyMode: boolean;
|
|
66
65
|
apiParams: Record<string, any>;
|
|
66
|
+
dummyMode: boolean;
|
|
67
67
|
apiMethod: "GET" | "POST";
|
|
68
68
|
columns: number;
|
|
69
69
|
aspectRatio: string;
|
|
@@ -61,8 +61,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
61
61
|
modelValue: string | null;
|
|
62
62
|
height: string;
|
|
63
63
|
xml: string | null;
|
|
64
|
-
dummyMode: boolean;
|
|
65
64
|
apiParams: Record<string, any>;
|
|
65
|
+
dummyMode: boolean;
|
|
66
66
|
apiMethod: string;
|
|
67
67
|
showToolbar: boolean;
|
|
68
68
|
xmlBefore: string | null;
|
|
@@ -21,8 +21,8 @@ interface Props {
|
|
|
21
21
|
}
|
|
22
22
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
23
23
|
height: string;
|
|
24
|
-
dummyMode: boolean;
|
|
25
24
|
apiParams: Record<string, any>;
|
|
25
|
+
dummyMode: boolean;
|
|
26
26
|
apiMethod: string;
|
|
27
27
|
baseUrl: string;
|
|
28
28
|
withAuth: boolean;
|
|
@@ -155,10 +155,13 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
155
155
|
nested: boolean;
|
|
156
156
|
data: any[];
|
|
157
157
|
loading: boolean;
|
|
158
|
+
checkPermission: (permission: string) => boolean;
|
|
159
|
+
userPermissions: any;
|
|
160
|
+
selectedTokenCore: any;
|
|
161
|
+
apiParams: Record<string, any>;
|
|
158
162
|
perPage: number;
|
|
159
163
|
dummyMode: boolean;
|
|
160
164
|
apiAction: string;
|
|
161
|
-
apiParams: Record<string, any>;
|
|
162
165
|
collapsible: boolean;
|
|
163
166
|
defaultCollapsed: boolean;
|
|
164
167
|
columns: TableColumn[];
|
|
@@ -166,15 +169,12 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
166
169
|
baseUrl: string;
|
|
167
170
|
permissions: string[];
|
|
168
171
|
socketParams: Record<string, any>;
|
|
169
|
-
selectedTokenCore: any;
|
|
170
172
|
hasActions: boolean;
|
|
171
173
|
freezeActionColumn: boolean;
|
|
172
174
|
dynamicColumns: boolean;
|
|
173
175
|
enableQuickSearch: boolean;
|
|
174
176
|
ignorePermissions: boolean;
|
|
175
|
-
userPermissions: any;
|
|
176
177
|
permissionChecker: (path: string, action: string) => boolean;
|
|
177
|
-
checkPermission: (permission: string) => boolean;
|
|
178
178
|
menuPermissions: any[];
|
|
179
179
|
controlled: boolean;
|
|
180
180
|
tokenCores: any[];
|
|
@@ -30,17 +30,17 @@ declare const _default: import("vue").DefineComponent<DynamicFormProps, {
|
|
|
30
30
|
}>, {
|
|
31
31
|
loading: boolean;
|
|
32
32
|
router: any;
|
|
33
|
+
permissionBase: string;
|
|
34
|
+
checkPermission: (permission: string) => boolean;
|
|
35
|
+
userPermissions: any;
|
|
36
|
+
selectedTokenCore: any;
|
|
37
|
+
apiParams: Record<string, any>;
|
|
33
38
|
isEditMode: boolean;
|
|
34
39
|
dummyMode: boolean;
|
|
35
40
|
model: Record<string, any>;
|
|
36
|
-
apiParams: Record<string, any>;
|
|
37
41
|
baseUrl: string;
|
|
38
|
-
selectedTokenCore: any;
|
|
39
42
|
hideBackButton: boolean;
|
|
40
43
|
isWizard: boolean;
|
|
41
|
-
permissionBase: string;
|
|
42
|
-
userPermissions: any;
|
|
43
|
-
checkPermission: (permission: string) => boolean;
|
|
44
44
|
tokenCores: any[];
|
|
45
45
|
hideActions: boolean;
|
|
46
46
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -11,10 +11,11 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
11
11
|
error: string | null;
|
|
12
12
|
loading: boolean;
|
|
13
13
|
formData: Record<string, any>;
|
|
14
|
+
selectedTokenCore: any;
|
|
14
15
|
dummyMode: boolean;
|
|
16
|
+
excludeValues: any[];
|
|
15
17
|
options: any[];
|
|
16
18
|
skeleton: boolean;
|
|
17
|
-
excludeValues: any[];
|
|
18
19
|
baseUrl: string;
|
|
19
20
|
dynamicLabels: {
|
|
20
21
|
labelEN?: string;
|
|
@@ -32,6 +33,5 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
32
33
|
maxLength?: number | string | null;
|
|
33
34
|
} | null;
|
|
34
35
|
viewOnly: boolean;
|
|
35
|
-
selectedTokenCore: any;
|
|
36
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
37
|
export default _default;
|
|
@@ -30,15 +30,15 @@ declare const _default: import("vue").DefineComponent<DynamicWizardProps, {}, {}
|
|
|
30
30
|
}>, {
|
|
31
31
|
loading: boolean;
|
|
32
32
|
router: any;
|
|
33
|
+
permissionBase: string;
|
|
34
|
+
checkPermission: (permission: string) => boolean;
|
|
35
|
+
userPermissions: any;
|
|
36
|
+
selectedTokenCore: any;
|
|
37
|
+
apiParams: Record<string, any>;
|
|
33
38
|
isEditMode: boolean;
|
|
34
39
|
dummyMode: boolean;
|
|
35
40
|
model: Record<string, any>;
|
|
36
|
-
apiParams: Record<string, any>;
|
|
37
41
|
baseUrl: string;
|
|
38
|
-
selectedTokenCore: any;
|
|
39
|
-
permissionBase: string;
|
|
40
|
-
userPermissions: any;
|
|
41
|
-
checkPermission: (permission: string) => boolean;
|
|
42
42
|
tokenCores: any[];
|
|
43
43
|
hideActions: boolean;
|
|
44
44
|
activeStepKey: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/composables/dynamic-form/logic/useFormLogic.options-filter-exclude.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -74,7 +74,7 @@ export interface LogicComposables {
|
|
|
74
74
|
evaluateLogic: (rule: any, data: Record<string, any>, debugTag?: string, contextPath?: string) => any;
|
|
75
75
|
resolveActiveRule: (rules: any, data: Record<string, any>, debugTag: any, contextPath?: string) => any;
|
|
76
76
|
resolveValueIdentifier: (modelName: string, value: any, fieldOverride?: any, contextObj?: any) => any;
|
|
77
|
-
getFilteredItems: (field: any, customData?: Record<string, any
|
|
77
|
+
getFilteredItems: (field: any, customData?: Record<string, any>, contextPath?: string) => any[];
|
|
78
78
|
getExcludedValues: (field: any, customData?: Record<string, any>) => string[];
|
|
79
79
|
isFieldVisible: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
80
80
|
isFieldRequired: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
@@ -1,267 +1,2 @@
|
|
|
1
|
-
import { DynamicFormProps
|
|
2
|
-
|
|
3
|
-
export declare function useDynamicForm(props: DynamicFormProps, emit: any): {
|
|
4
|
-
resolveKeyParams: (keyParams: any[], contextPath?: string, currentField?: any, localData?: any) => Record<string, any>;
|
|
5
|
-
navigation: {
|
|
6
|
-
navigationState: import("vue").Ref<{
|
|
7
|
-
currentContext: string | null;
|
|
8
|
-
history: {
|
|
9
|
-
sectionKey: string;
|
|
10
|
-
hiddenStates: Record<string, boolean>;
|
|
11
|
-
timestamp: number;
|
|
12
|
-
sourceAction?: string | undefined;
|
|
13
|
-
context?: any;
|
|
14
|
-
backButtonConfig?: {
|
|
15
|
-
labelEN?: string | undefined;
|
|
16
|
-
labelID?: string | undefined;
|
|
17
|
-
labelKR?: string | undefined;
|
|
18
|
-
icon?: string | undefined;
|
|
19
|
-
variant?: string | undefined;
|
|
20
|
-
position?: "left" | "right" | undefined;
|
|
21
|
-
} | undefined;
|
|
22
|
-
enableBackButton?: boolean | undefined;
|
|
23
|
-
}[];
|
|
24
|
-
hiddenStates: Record<string, boolean>;
|
|
25
|
-
navigationEnabled: Set<string> & Omit<Set<string>, keyof Set<any>>;
|
|
26
|
-
maxHistoryDepth: number;
|
|
27
|
-
parentRowContext?: {
|
|
28
|
-
parentArrayKey: string;
|
|
29
|
-
rowIndex: number;
|
|
30
|
-
childArrayKey?: string | undefined;
|
|
31
|
-
} | null | undefined;
|
|
32
|
-
}, import("./navigation/navigation.types").NavigationState | {
|
|
33
|
-
currentContext: string | null;
|
|
34
|
-
history: {
|
|
35
|
-
sectionKey: string;
|
|
36
|
-
hiddenStates: Record<string, boolean>;
|
|
37
|
-
timestamp: number;
|
|
38
|
-
sourceAction?: string | undefined;
|
|
39
|
-
context?: any;
|
|
40
|
-
backButtonConfig?: {
|
|
41
|
-
labelEN?: string | undefined;
|
|
42
|
-
labelID?: string | undefined;
|
|
43
|
-
labelKR?: string | undefined;
|
|
44
|
-
icon?: string | undefined;
|
|
45
|
-
variant?: string | undefined;
|
|
46
|
-
position?: "left" | "right" | undefined;
|
|
47
|
-
} | undefined;
|
|
48
|
-
enableBackButton?: boolean | undefined;
|
|
49
|
-
}[];
|
|
50
|
-
hiddenStates: Record<string, boolean>;
|
|
51
|
-
navigationEnabled: Set<string> & Omit<Set<string>, keyof Set<any>>;
|
|
52
|
-
maxHistoryDepth: number;
|
|
53
|
-
parentRowContext?: {
|
|
54
|
-
parentArrayKey: string;
|
|
55
|
-
rowIndex: number;
|
|
56
|
-
childArrayKey?: string | undefined;
|
|
57
|
-
} | null | undefined;
|
|
58
|
-
}>;
|
|
59
|
-
hasHistory: import("vue").ComputedRef<boolean>;
|
|
60
|
-
isBackButtonEnabled: import("vue").ComputedRef<boolean>;
|
|
61
|
-
currentContext: import("vue").ComputedRef<string | null>;
|
|
62
|
-
history: import("vue").ComputedRef<{
|
|
63
|
-
sectionKey: string;
|
|
64
|
-
hiddenStates: Record<string, boolean>;
|
|
65
|
-
timestamp: number;
|
|
66
|
-
sourceAction?: string | undefined;
|
|
67
|
-
context?: any;
|
|
68
|
-
backButtonConfig?: {
|
|
69
|
-
labelEN?: string | undefined;
|
|
70
|
-
labelID?: string | undefined;
|
|
71
|
-
labelKR?: string | undefined;
|
|
72
|
-
icon?: string | undefined;
|
|
73
|
-
variant?: string | undefined;
|
|
74
|
-
position?: "left" | "right" | undefined;
|
|
75
|
-
} | undefined;
|
|
76
|
-
enableBackButton?: boolean | undefined;
|
|
77
|
-
}[]>;
|
|
78
|
-
hiddenStates: import("vue").ComputedRef<{
|
|
79
|
-
[x: string]: boolean;
|
|
80
|
-
}>;
|
|
81
|
-
parentRowContext: import("vue").ComputedRef<{
|
|
82
|
-
parentArrayKey: string;
|
|
83
|
-
rowIndex: number;
|
|
84
|
-
childArrayKey?: string | undefined;
|
|
85
|
-
} | null | undefined>;
|
|
86
|
-
navigateTo: (config: import("./navigation/navigation.types").NavigationConfig, context?: any) => void;
|
|
87
|
-
navigateBack: () => void;
|
|
88
|
-
applyHiddenRules: (rules: Record<string, boolean | any>, context?: any) => void;
|
|
89
|
-
getCurrentBackButton: () => import("./navigation/navigation.types").BackButtonConfig | null;
|
|
90
|
-
isSectionHidden: (sectionKey: string) => boolean;
|
|
91
|
-
setSectionHidden: (sectionKey: string, hidden: boolean) => void;
|
|
92
|
-
clearHistory: () => void;
|
|
93
|
-
reset: () => void;
|
|
94
|
-
registerNavigationSection: (sectionKey: string) => void;
|
|
95
|
-
};
|
|
96
|
-
tableDialogOpen: import("vue").Ref<boolean, boolean>;
|
|
97
|
-
tableDialogTitle: import("vue").Ref<string, string>;
|
|
98
|
-
tableDialogIcon: import("vue").Ref<string, string>;
|
|
99
|
-
tableDialogFields: import("vue").Ref<any[], any[]>;
|
|
100
|
-
tableRowFormData: any;
|
|
101
|
-
tableRowErrors: any;
|
|
102
|
-
activeTableKey: import("vue").Ref<string, string>;
|
|
103
|
-
editingRowIndex: import("vue").Ref<number | null, number | null>;
|
|
104
|
-
tableDialogViewOnly: import("vue").Ref<boolean, boolean>;
|
|
105
|
-
confirmDeletePending: import("vue").Ref<{
|
|
106
|
-
propsTable: any;
|
|
107
|
-
row: any;
|
|
108
|
-
} | null, {
|
|
109
|
-
propsTable: any;
|
|
110
|
-
row: any;
|
|
111
|
-
} | {
|
|
112
|
-
propsTable: any;
|
|
113
|
-
row: any;
|
|
114
|
-
} | null>;
|
|
115
|
-
confirmDeleteOpen: import("vue").Ref<boolean, boolean>;
|
|
116
|
-
tableDialogSize: import("vue").Ref<string, string>;
|
|
117
|
-
isTemporaryTable: (pt: any) => boolean;
|
|
118
|
-
isActionViewOnly: (action: any) => any;
|
|
119
|
-
tableRows: (pt: any) => any[];
|
|
120
|
-
resolveTableFields: (pt: any) => any[];
|
|
121
|
-
confirmTableDelete: (pt: any, row: any) => void;
|
|
122
|
-
executeTableDelete: () => void;
|
|
123
|
-
handleTableRowUpdate: (model: string, value: any) => void;
|
|
124
|
-
openTableRowDialog: (pt: any, tAction: any, rowData?: any) => void;
|
|
125
|
-
handleDataTableAction: (pt: any, payload: {
|
|
126
|
-
action: string;
|
|
127
|
-
row: any;
|
|
128
|
-
selection?: any[];
|
|
129
|
-
isLocalSave?: boolean;
|
|
130
|
-
modelDatatable?: string;
|
|
131
|
-
actionType?: string;
|
|
132
|
-
originalRow?: any;
|
|
133
|
-
rowIndex?: number | null;
|
|
134
|
-
}) => void;
|
|
135
|
-
saveTableRow: () => void;
|
|
136
|
-
isActionVisible: (action: any) => boolean;
|
|
137
|
-
getVisibleGroupButtons: (action: any) => any;
|
|
138
|
-
handleGlobalButtonClick: (action: any) => void;
|
|
139
|
-
confirmAction: () => void;
|
|
140
|
-
performAction: (action: any) => Promise<void>;
|
|
141
|
-
handleSubmit: () => Promise<void>;
|
|
142
|
-
handleCancel: () => any;
|
|
143
|
-
handleFieldUpdate: (model: string, value: any, sectionKey?: string, scopedPath?: string) => void;
|
|
144
|
-
getCleanPayload: () => Record<string, any>;
|
|
145
|
-
applyFieldMapping: (data: Record<string, any>, mapping: Record<string, any>) => Record<string, any>;
|
|
146
|
-
handleResponseMapping: (res: any, mapping: Record<string, any>, basePath?: string) => void;
|
|
147
|
-
handleClearMapping: (mapping: Record<string, any>, basePath?: string) => void;
|
|
148
|
-
getFormArrayModels: () => import("./types/form.types").FormArrayModel[];
|
|
149
|
-
normalizedData: import("vue").ComputedRef<Record<string, any>>;
|
|
150
|
-
getNormalizedData: (data: Record<string, any>, contextPath?: string, debugTag?: string) => Record<string, any>;
|
|
151
|
-
evaluateLogic: (rule: any, customData?: Record<string, any>, debugTag?: string, contextPath?: string) => any;
|
|
152
|
-
resolveActiveRule: (rules: any, data: Record<string, any>, debugTag: any, contextPath?: string) => any;
|
|
153
|
-
resolveValueIdentifier: (modelName: string, value: any, fieldOverride?: any, contextObj?: any) => any;
|
|
154
|
-
getFilteredItems: (field: any, customData?: Record<string, any>, contextPath?: string) => any[];
|
|
155
|
-
getExcludedValues: (field: any, customData?: Record<string, any>) => string[];
|
|
156
|
-
isFieldVisible: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
157
|
-
isFieldRequired: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
158
|
-
isFieldDisabled: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
159
|
-
isFieldReadonly: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
160
|
-
isFieldHidden: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
161
|
-
isSectionVisible: (section: any, customData?: Record<string, any>) => boolean;
|
|
162
|
-
isSectionEffectivelyVisible: (section: any, customData?: Record<string, any>) => boolean;
|
|
163
|
-
isSectionHidden: (section: any, customData?: Record<string, any>) => boolean;
|
|
164
|
-
resolveSectionLabels: (section: any) => {
|
|
165
|
-
title: any;
|
|
166
|
-
description: any;
|
|
167
|
-
};
|
|
168
|
-
resolveFieldLabels: (field: any, customData?: Record<string, any>) => any;
|
|
169
|
-
resolveFieldLength: (field: any, customData?: Record<string, any>) => any;
|
|
170
|
-
resolveDefaultValue: (field: any, customData?: Record<string, any>, contextPath?: string) => any;
|
|
171
|
-
getWizardTabs: (section: any) => any;
|
|
172
|
-
applyCalculations: () => void;
|
|
173
|
-
isSubmitDisabled: import("vue").ComputedRef<any>;
|
|
174
|
-
resolveSectionGridClass: (layout: any) => string;
|
|
175
|
-
resolveFieldColumnClass: (field: any, parentLayout?: string) => string;
|
|
176
|
-
resolveSectionSpan12: (val: any) => number;
|
|
177
|
-
resolveSectionColumnClass: (sectionOrSpan: any) => string;
|
|
178
|
-
groupSectionsIntoGrid: (sections: any[], checkVisible?: (sec: any) => boolean) => {
|
|
179
|
-
usedCols: number;
|
|
180
|
-
columns: Array<{
|
|
181
|
-
colSpan: number;
|
|
182
|
-
colClass: string;
|
|
183
|
-
usedRows: number;
|
|
184
|
-
items: Array<{
|
|
185
|
-
section: any;
|
|
186
|
-
sIdx: number;
|
|
187
|
-
colSpan: number;
|
|
188
|
-
rowSpan: number;
|
|
189
|
-
}>;
|
|
190
|
-
}>;
|
|
191
|
-
}[];
|
|
192
|
-
t: import("vue-i18n").ComposerTranslation<{
|
|
193
|
-
[x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
|
|
194
|
-
}, string, import("@intlify/core-base").RemoveIndexSignature<{
|
|
195
|
-
[x: string]: import("vue-i18n").LocaleMessageValue<import("vue-i18n").VueMessageType>;
|
|
196
|
-
}>, never, never, never>;
|
|
197
|
-
locale: import("vue").ComputedRef<string>;
|
|
198
|
-
i18nLocale: import("vue").WritableComputedRef<string, string>;
|
|
199
|
-
apiUrl: any;
|
|
200
|
-
router: any;
|
|
201
|
-
isSubmitting: import("vue").Ref<boolean, boolean>;
|
|
202
|
-
internalSchema: import("vue").Ref<any, any>;
|
|
203
|
-
activeSchema: import("vue").ComputedRef<any>;
|
|
204
|
-
resolvedBaseUrl: import("vue").ComputedRef<any>;
|
|
205
|
-
permissionBase: import("vue").ComputedRef<any>;
|
|
206
|
-
checkPermission: ((permission: string) => boolean) | undefined;
|
|
207
|
-
userPermissions: any;
|
|
208
|
-
selectedTokenCore: any;
|
|
209
|
-
radioGroups: import("vue").ComputedRef<Record<string, any[]>>;
|
|
210
|
-
confirmDialog: {
|
|
211
|
-
visible: boolean;
|
|
212
|
-
title: string;
|
|
213
|
-
message: string;
|
|
214
|
-
action: any;
|
|
215
|
-
showCancel?: boolean;
|
|
216
|
-
okText?: string;
|
|
217
|
-
cancelText?: string;
|
|
218
|
-
isBlocking?: boolean;
|
|
219
|
-
redirectUrl?: string;
|
|
220
|
-
};
|
|
221
|
-
fieldMap: import("vue").ComputedRef<FieldMap>;
|
|
222
|
-
rawItemsCache: Record<string, any[]>;
|
|
223
|
-
revision: import("vue").Ref<number, number>;
|
|
224
|
-
formData: Record<string, any>;
|
|
225
|
-
originalData: Record<string, any>;
|
|
226
|
-
errors: Record<string, string>;
|
|
227
|
-
touched: Record<string, boolean>;
|
|
228
|
-
isSubmitted: import("vue").Ref<boolean, boolean>;
|
|
229
|
-
fieldErrors: Record<string, string | null>;
|
|
230
|
-
inlineState: Record<string, boolean>;
|
|
231
|
-
wizardState: Record<string, number>;
|
|
232
|
-
wizardResponses: Record<string, any>;
|
|
233
|
-
sectionLoading: Record<string, boolean>;
|
|
234
|
-
fieldLoading: Record<string, boolean>;
|
|
235
|
-
sectionPagination: Record<string, {
|
|
236
|
-
page: number;
|
|
237
|
-
perPage: number;
|
|
238
|
-
totalData?: number;
|
|
239
|
-
maxPage?: number;
|
|
240
|
-
filters?: Record<string, any>;
|
|
241
|
-
}>;
|
|
242
|
-
validation: import("./types/form.types").ValidationComposables;
|
|
243
|
-
apiParams: Record<string, any> | undefined;
|
|
244
|
-
getSectionKey: typeof getSectionKey;
|
|
245
|
-
sortedFields: (fields: any[]) => any[];
|
|
246
|
-
prefetchFieldItems: (field: any, force?: boolean, contextPath?: string, localData?: any) => Promise<void>;
|
|
247
|
-
fetchFormData: (force?: boolean) => Promise<void>;
|
|
248
|
-
fetchSectionData: (sectionKey: string, sectionObj?: any, contextPathOverride?: string) => Promise<void>;
|
|
249
|
-
getDeepValue: (obj: any, path: string) => any;
|
|
250
|
-
setDeepValue: (obj: any, path: string, val: any) => void;
|
|
251
|
-
triggerFetchRule: (field: any, rule: any, contextPath?: string, localData?: any) => Promise<{
|
|
252
|
-
success: boolean;
|
|
253
|
-
res: any;
|
|
254
|
-
message?: undefined;
|
|
255
|
-
err?: undefined;
|
|
256
|
-
} | {
|
|
257
|
-
success: boolean;
|
|
258
|
-
message: any;
|
|
259
|
-
res: any;
|
|
260
|
-
err?: undefined;
|
|
261
|
-
} | {
|
|
262
|
-
success: boolean;
|
|
263
|
-
message: any;
|
|
264
|
-
err: any;
|
|
265
|
-
res?: undefined;
|
|
266
|
-
} | undefined>;
|
|
267
|
-
};
|
|
1
|
+
import { DynamicFormProps } from "./types/form.types";
|
|
2
|
+
export declare function useDynamicForm(props: DynamicFormProps, emit: any): Record<string, any>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface UseResolvedImagePreviewOptions {
|
|
2
|
+
file: () => File | Blob | string | Record<string, any> | null | undefined;
|
|
3
|
+
enabled?: () => boolean;
|
|
4
|
+
onBlobLoaded?: (blob: Blob) => void;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Resolves an image source into a CSP-safe `blob:` URL before mounting `<img :src>`,
|
|
8
|
+
* fetching remote images via `loadBinaryBlob` so cross-origin `http://` URLs never violate `img-src`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useResolvedImagePreview(options: UseResolvedImagePreviewOptions): {
|
|
11
|
+
previewUrl: import("vue").Ref<string | null, string | null>;
|
|
12
|
+
resolvedBlob: import("vue").Ref<{
|
|
13
|
+
readonly size: number;
|
|
14
|
+
readonly type: string;
|
|
15
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
16
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
17
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
18
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
19
|
+
text: () => Promise<string>;
|
|
20
|
+
} | null, Blob | {
|
|
21
|
+
readonly size: number;
|
|
22
|
+
readonly type: string;
|
|
23
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
24
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
25
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
26
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
27
|
+
text: () => Promise<string>;
|
|
28
|
+
} | null>;
|
|
29
|
+
isLoadingPreview: import("vue").Ref<boolean, boolean>;
|
|
30
|
+
imgError: import("vue").Ref<boolean, boolean>;
|
|
31
|
+
};
|
|
@@ -10,8 +10,9 @@ export interface LogicRule {
|
|
|
10
10
|
requiredRule?: string | Record<string, any>;
|
|
11
11
|
calculateRule?: Record<string, any>;
|
|
12
12
|
optionsFilterRule?: Array<{
|
|
13
|
-
condition
|
|
14
|
-
values
|
|
13
|
+
condition?: Record<string, any>;
|
|
14
|
+
values?: any[];
|
|
15
|
+
excludeValues?: any[];
|
|
15
16
|
}>;
|
|
16
17
|
labelingRule?: Array<{
|
|
17
18
|
condition: Record<string, any>;
|
|
@@ -552,8 +553,9 @@ export interface FormFieldBuilderLogic {
|
|
|
552
553
|
visibleRule?: string | Record<string, any> | boolean;
|
|
553
554
|
disabledRule?: string | Record<string, any>;
|
|
554
555
|
optionsFilterRule?: Array<{
|
|
555
|
-
condition
|
|
556
|
-
values
|
|
556
|
+
condition?: Record<string, any>;
|
|
557
|
+
values?: any[];
|
|
558
|
+
excludeValues?: any[];
|
|
557
559
|
}>;
|
|
558
560
|
labelingRule?: Array<{
|
|
559
561
|
condition: Record<string, any>;
|
|
@@ -17,3 +17,5 @@ export declare const normalizeDocumentUrl: (rawUrl: string, baseUrl?: string) =>
|
|
|
17
17
|
*/
|
|
18
18
|
export declare const resolveDocumentSource: (input: DocumentSourceInput) => ResolvedDocumentSource;
|
|
19
19
|
export declare const isMixedContentUrl: (url: string | null | undefined) => boolean;
|
|
20
|
+
export declare const shouldFetchImageAsBlob: (url: string | null | undefined) => boolean;
|
|
21
|
+
export declare const isInsecureDirectImageUrl: (url: string | null | undefined) => boolean;
|
|
@@ -7,6 +7,12 @@ export declare const formatByCurrency: (value: any, currencyCode?: string) => st
|
|
|
7
7
|
export declare const formatTanggalIndonesia: (date: Date | string | number, withDay?: boolean) => string;
|
|
8
8
|
export declare const formatDate: (date: string | Date, format?: "short" | "long" | "time" | "datetime", locale?: string) => string;
|
|
9
9
|
export declare const formatCustomDate: (date: string | Date, formatStr: string) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Format duration in seconds to human-readable string based on units:
|
|
12
|
+
* seconds (detik), minutes (menit), hours (jam), days (hari), months (bulan), years (tahun).
|
|
13
|
+
* Supports locales: 'id' (Indonesian), 'en' (English), 'kr'/'ko' (Korean).
|
|
14
|
+
*/
|
|
15
|
+
export declare const formatDuration: (value: unknown, locale?: string, maxUnits?: number) => string;
|
|
10
16
|
export declare const formatAccountNumber: (accountNumber: string) => string;
|
|
11
17
|
export declare const generateId: () => string;
|
|
12
18
|
export declare const debounce: <T extends (...args: any[]) => any>(func: T, delay: number) => ((...args: Parameters<T>) => void);
|
|
@@ -94,7 +94,7 @@ export declare const readAndValidatePdfBytes: (blob: Blob) => Promise<Uint8Array
|
|
|
94
94
|
* Lazily loads PDF.js together with its worker module wired onto `globalThis.pdfjsWorker`
|
|
95
95
|
* so rendering executes safely in-process without needing `worker-src blob:` or external worker URLs.
|
|
96
96
|
*/
|
|
97
|
-
export declare const loadPdfJs: () => Promise<typeof import("pdfjs-dist/legacy/build/pdf.
|
|
97
|
+
export declare const loadPdfJs: () => Promise<typeof import("pdfjs-dist/legacy/build/pdf.d.mts")>;
|
|
98
98
|
/**
|
|
99
99
|
* Loads, validates, and opens a reusable PDF document session supporting full rendering,
|
|
100
100
|
* per-page lazy rendering, TextLayer extraction/selection, thumbnails, and printing.
|