@kong-ui-public/forms 0.1.0
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/LICENSE +201 -0
- package/README.md +15 -0
- package/dist/forms.es.js +10713 -0
- package/dist/forms.es.js.map +1 -0
- package/dist/forms.umd.js +49 -0
- package/dist/forms.umd.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/const.d.ts +2 -0
- package/dist/types/const.d.ts.map +1 -0
- package/dist/types/forms/OIDCForm.vue.d.ts +68 -0
- package/dist/types/forms/OIDCForm.vue.d.ts.map +1 -0
- package/dist/types/forms/PostFunction.vue.d.ts +48 -0
- package/dist/types/forms/PostFunction.vue.d.ts.map +1 -0
- package/dist/types/forms/index.d.ts +3 -0
- package/dist/types/forms/index.d.ts.map +1 -0
- package/dist/types/forms/schemas/ExitTransformer.d.ts +9 -0
- package/dist/types/forms/schemas/ExitTransformer.d.ts.map +1 -0
- package/dist/types/forms/schemas/OIDCAuth.d.ts +40 -0
- package/dist/types/forms/schemas/OIDCAuth.d.ts.map +1 -0
- package/dist/types/forms/schemas/OIDCCommon.d.ts +19 -0
- package/dist/types/forms/schemas/OIDCCommon.d.ts.map +1 -0
- package/dist/types/generator/FormGenerator.vue.d.ts +252 -0
- package/dist/types/generator/FormGenerator.vue.d.ts.map +1 -0
- package/dist/types/generator/FormGroup.vue.d.ts +74 -0
- package/dist/types/generator/FormGroup.vue.d.ts.map +1 -0
- package/dist/types/generator/FormMixin.vue.d.ts +10 -0
- package/dist/types/generator/FormMixin.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/abstractField.d.ts +38 -0
- package/dist/types/generator/fields/abstractField.d.ts.map +1 -0
- package/dist/types/generator/fields/advanced/FieldAdvanced.vue.d.ts +48 -0
- package/dist/types/generator/fields/advanced/FieldAdvanced.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/advanced/FieldArray.vue.d.ts +64 -0
- package/dist/types/generator/fields/advanced/FieldArray.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/advanced/FieldArrayCardContainer.vue.d.ts +26 -0
- package/dist/types/generator/fields/advanced/FieldArrayCardContainer.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/advanced/FieldArrayItem.vue.d.ts +19 -0
- package/dist/types/generator/fields/advanced/FieldArrayItem.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/advanced/FieldArrayMultiItem.vue.d.ts +7 -0
- package/dist/types/generator/fields/advanced/FieldArrayMultiItem.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/advanced/FieldAutoSuggest.vue.d.ts +63 -0
- package/dist/types/generator/fields/advanced/FieldAutoSuggest.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/advanced/FieldMetric.vue.d.ts +19 -0
- package/dist/types/generator/fields/advanced/FieldMetric.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/advanced/FieldObject.vue.d.ts +45 -0
- package/dist/types/generator/fields/advanced/FieldObject.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/advanced/FieldObjectAdvanced.vue.d.ts +71 -0
- package/dist/types/generator/fields/advanced/FieldObjectAdvanced.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/advanced/FieldRadio.vue.d.ts +43 -0
- package/dist/types/generator/fields/advanced/FieldRadio.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/advanced/FieldSchema.vue.d.ts +19 -0
- package/dist/types/generator/fields/advanced/FieldSchema.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/advanced/FieldSelectionGroup.vue.d.ts +56 -0
- package/dist/types/generator/fields/advanced/FieldSelectionGroup.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/advanced/exports.d.ts +2 -0
- package/dist/types/generator/fields/advanced/exports.d.ts.map +1 -0
- package/dist/types/generator/fields/core/fieldCheckbox.vue.d.ts +37 -0
- package/dist/types/generator/fields/core/fieldCheckbox.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/core/fieldChecklist.vue.d.ts +49 -0
- package/dist/types/generator/fields/core/fieldChecklist.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/core/fieldInput.vue.d.ts +47 -0
- package/dist/types/generator/fields/core/fieldInput.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/core/fieldLabel.vue.d.ts +37 -0
- package/dist/types/generator/fields/core/fieldLabel.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/core/fieldRadios.vue.d.ts +47 -0
- package/dist/types/generator/fields/core/fieldRadios.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/core/fieldSelect.vue.d.ts +46 -0
- package/dist/types/generator/fields/core/fieldSelect.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/core/fieldSubmit.vue.d.ts +39 -0
- package/dist/types/generator/fields/core/fieldSubmit.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/core/fieldTextArea.vue.d.ts +37 -0
- package/dist/types/generator/fields/core/fieldTextArea.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/core/fieldUpload.vue.d.ts +39 -0
- package/dist/types/generator/fields/core/fieldUpload.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/optional/fieldCleave.vue.d.ts +41 -0
- package/dist/types/generator/fields/optional/fieldCleave.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/optional/fieldDateTimePicker.vue.d.ts +41 -0
- package/dist/types/generator/fields/optional/fieldDateTimePicker.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/optional/fieldGoogleAddress.vue.d.ts +59 -0
- package/dist/types/generator/fields/optional/fieldGoogleAddress.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/optional/fieldImage.vue.d.ts +52 -0
- package/dist/types/generator/fields/optional/fieldImage.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/optional/fieldMasked.vue.d.ts +37 -0
- package/dist/types/generator/fields/optional/fieldMasked.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/optional/fieldNoUiSlider.vue.d.ts +47 -0
- package/dist/types/generator/fields/optional/fieldNoUiSlider.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/optional/fieldPikaday.vue.d.ts +45 -0
- package/dist/types/generator/fields/optional/fieldPikaday.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/optional/fieldRangeSlider.vue.d.ts +39 -0
- package/dist/types/generator/fields/optional/fieldRangeSlider.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/optional/fieldSelectEx.vue.d.ts +42 -0
- package/dist/types/generator/fields/optional/fieldSelectEx.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/optional/fieldSpectrum.vue.d.ts +39 -0
- package/dist/types/generator/fields/optional/fieldSpectrum.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/optional/fieldStaticMap.vue.d.ts +39 -0
- package/dist/types/generator/fields/optional/fieldStaticMap.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/optional/fieldSwitch.vue.d.ts +40 -0
- package/dist/types/generator/fields/optional/fieldSwitch.vue.d.ts.map +1 -0
- package/dist/types/generator/fields/optional/fieldVueMultiSelect.vue.d.ts +49 -0
- package/dist/types/generator/fields/optional/fieldVueMultiSelect.vue.d.ts.map +1 -0
- package/dist/types/generator/utils/dateFieldHelper.d.ts +6 -0
- package/dist/types/generator/utils/dateFieldHelper.d.ts.map +1 -0
- package/dist/types/generator/utils/fieldsLoader.d.ts +35 -0
- package/dist/types/generator/utils/fieldsLoader.d.ts.map +1 -0
- package/dist/types/generator/utils/isValidUuid.d.ts +8 -0
- package/dist/types/generator/utils/isValidUuid.d.ts.map +1 -0
- package/dist/types/generator/utils/schema.d.ts +6 -0
- package/dist/types/generator/utils/schema.d.ts.map +1 -0
- package/dist/types/generator/utils/validators.d.ts +3 -0
- package/dist/types/generator/utils/validators.d.ts.map +1 -0
- package/dist/types/index.d.ts +22 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
2
|
+
picker: null;
|
|
3
|
+
options: null;
|
|
4
|
+
}, {}, {
|
|
5
|
+
initialize(options: any): void;
|
|
6
|
+
formatValueToField(value: any): any;
|
|
7
|
+
formatValueToModel(value: any): any;
|
|
8
|
+
getDateFormat(): any;
|
|
9
|
+
}, {
|
|
10
|
+
name: string;
|
|
11
|
+
props: string[];
|
|
12
|
+
emits: string[];
|
|
13
|
+
data(): {
|
|
14
|
+
errors: never[];
|
|
15
|
+
debouncedValidateFunc: null;
|
|
16
|
+
debouncedFormatFunc: null;
|
|
17
|
+
};
|
|
18
|
+
directives: {
|
|
19
|
+
attributes: {
|
|
20
|
+
beforeMount: (el: any, binding: any, vnode: any) => void;
|
|
21
|
+
updated: (el: any, binding: any, vnode: any) => void;
|
|
22
|
+
componentUpdated: (el: any, binding: any, vnode: any) => void;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
computed: {
|
|
26
|
+
value: {
|
|
27
|
+
cache: boolean;
|
|
28
|
+
get(): any;
|
|
29
|
+
set(newValue: any): void;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
methods: {
|
|
33
|
+
validate(calledParent: any): any[] | Promise<any[]>;
|
|
34
|
+
debouncedValidate(): void;
|
|
35
|
+
updateModelValue(newValue: any, oldValue: any): void;
|
|
36
|
+
clearValidationErrors(): void;
|
|
37
|
+
setModelValueByPath(path: any, value: any): void;
|
|
38
|
+
getFieldID(schema: any, unique?: boolean): string;
|
|
39
|
+
getFieldClasses(): any;
|
|
40
|
+
formatValueToField(value: any): any;
|
|
41
|
+
formatValueToModel(value: any): any;
|
|
42
|
+
};
|
|
43
|
+
}, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=fieldPikaday.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldPikaday.vue.d.ts","sourceRoot":"","sources":["../../../../../src/generator/fields/optional/fieldPikaday.vue.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
2
|
+
slider: null;
|
|
3
|
+
}, {}, {}, {
|
|
4
|
+
name: string;
|
|
5
|
+
props: string[];
|
|
6
|
+
emits: string[];
|
|
7
|
+
data(): {
|
|
8
|
+
errors: never[];
|
|
9
|
+
debouncedValidateFunc: null;
|
|
10
|
+
debouncedFormatFunc: null;
|
|
11
|
+
};
|
|
12
|
+
directives: {
|
|
13
|
+
attributes: {
|
|
14
|
+
beforeMount: (el: any, binding: any, vnode: any) => void;
|
|
15
|
+
updated: (el: any, binding: any, vnode: any) => void;
|
|
16
|
+
componentUpdated: (el: any, binding: any, vnode: any) => void;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
computed: {
|
|
20
|
+
value: {
|
|
21
|
+
cache: boolean;
|
|
22
|
+
get(): any;
|
|
23
|
+
set(newValue: any): void;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
methods: {
|
|
27
|
+
validate(calledParent: any): any[] | Promise<any[]>;
|
|
28
|
+
debouncedValidate(): void;
|
|
29
|
+
updateModelValue(newValue: any, oldValue: any): void;
|
|
30
|
+
clearValidationErrors(): void;
|
|
31
|
+
setModelValueByPath(path: any, value: any): void;
|
|
32
|
+
getFieldID(schema: any, unique?: boolean): string;
|
|
33
|
+
getFieldClasses(): any;
|
|
34
|
+
formatValueToField(value: any): any;
|
|
35
|
+
formatValueToModel(value: any): any;
|
|
36
|
+
};
|
|
37
|
+
}, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
38
|
+
export default _default;
|
|
39
|
+
//# sourceMappingURL=fieldRangeSlider.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldRangeSlider.vue.d.ts","sourceRoot":"","sources":["../../../../../src/generator/fields/optional/fieldRangeSlider.vue.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {
|
|
2
|
+
items(): any;
|
|
3
|
+
}, {
|
|
4
|
+
getItemValue(item: any): any;
|
|
5
|
+
getItemName(item: any): any;
|
|
6
|
+
}, {
|
|
7
|
+
name: string;
|
|
8
|
+
props: string[];
|
|
9
|
+
emits: string[];
|
|
10
|
+
data(): {
|
|
11
|
+
errors: never[];
|
|
12
|
+
debouncedValidateFunc: null;
|
|
13
|
+
debouncedFormatFunc: null;
|
|
14
|
+
};
|
|
15
|
+
directives: {
|
|
16
|
+
attributes: {
|
|
17
|
+
beforeMount: (el: any, binding: any, vnode: any) => void;
|
|
18
|
+
updated: (el: any, binding: any, vnode: any) => void;
|
|
19
|
+
componentUpdated: (el: any, binding: any, vnode: any) => void;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
computed: {
|
|
23
|
+
value: {
|
|
24
|
+
cache: boolean;
|
|
25
|
+
get(): any;
|
|
26
|
+
set(newValue: any): void;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
methods: {
|
|
30
|
+
validate(calledParent: any): any[] | Promise<any[]>;
|
|
31
|
+
debouncedValidate(): void;
|
|
32
|
+
updateModelValue(newValue: any, oldValue: any): void;
|
|
33
|
+
clearValidationErrors(): void;
|
|
34
|
+
setModelValueByPath(path: any, value: any): void;
|
|
35
|
+
getFieldID(schema: any, unique?: boolean): string;
|
|
36
|
+
getFieldClasses(): any;
|
|
37
|
+
formatValueToField(value: any): any;
|
|
38
|
+
formatValueToModel(value: any): any;
|
|
39
|
+
};
|
|
40
|
+
}, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
41
|
+
export default _default;
|
|
42
|
+
//# sourceMappingURL=fieldSelectEx.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldSelectEx.vue.d.ts","sourceRoot":"","sources":["../../../../../src/generator/fields/optional/fieldSelectEx.vue.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
2
|
+
picker: null;
|
|
3
|
+
}, {}, {}, {
|
|
4
|
+
name: string;
|
|
5
|
+
props: string[];
|
|
6
|
+
emits: string[];
|
|
7
|
+
data(): {
|
|
8
|
+
errors: never[];
|
|
9
|
+
debouncedValidateFunc: null;
|
|
10
|
+
debouncedFormatFunc: null;
|
|
11
|
+
};
|
|
12
|
+
directives: {
|
|
13
|
+
attributes: {
|
|
14
|
+
beforeMount: (el: any, binding: any, vnode: any) => void;
|
|
15
|
+
updated: (el: any, binding: any, vnode: any) => void;
|
|
16
|
+
componentUpdated: (el: any, binding: any, vnode: any) => void;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
computed: {
|
|
20
|
+
value: {
|
|
21
|
+
cache: boolean;
|
|
22
|
+
get(): any;
|
|
23
|
+
set(newValue: any): void;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
methods: {
|
|
27
|
+
validate(calledParent: any): any[] | Promise<any[]>;
|
|
28
|
+
debouncedValidate(): void;
|
|
29
|
+
updateModelValue(newValue: any, oldValue: any): void;
|
|
30
|
+
clearValidationErrors(): void;
|
|
31
|
+
setModelValueByPath(path: any, value: any): void;
|
|
32
|
+
getFieldID(schema: any, unique?: boolean): string;
|
|
33
|
+
getFieldClasses(): any;
|
|
34
|
+
formatValueToField(value: any): any;
|
|
35
|
+
formatValueToModel(value: any): any;
|
|
36
|
+
};
|
|
37
|
+
}, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
38
|
+
export default _default;
|
|
39
|
+
//# sourceMappingURL=fieldSpectrum.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldSpectrum.vue.d.ts","sourceRoot":"","sources":["../../../../../src/generator/fields/optional/fieldSpectrum.vue.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {
|
|
2
|
+
mapLink(): any;
|
|
3
|
+
}, {}, {
|
|
4
|
+
name: string;
|
|
5
|
+
props: string[];
|
|
6
|
+
emits: string[];
|
|
7
|
+
data(): {
|
|
8
|
+
errors: never[];
|
|
9
|
+
debouncedValidateFunc: null;
|
|
10
|
+
debouncedFormatFunc: null;
|
|
11
|
+
};
|
|
12
|
+
directives: {
|
|
13
|
+
attributes: {
|
|
14
|
+
beforeMount: (el: any, binding: any, vnode: any) => void;
|
|
15
|
+
updated: (el: any, binding: any, vnode: any) => void;
|
|
16
|
+
componentUpdated: (el: any, binding: any, vnode: any) => void;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
computed: {
|
|
20
|
+
value: {
|
|
21
|
+
cache: boolean;
|
|
22
|
+
get(): any;
|
|
23
|
+
set(newValue: any): void;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
methods: {
|
|
27
|
+
validate(calledParent: any): any[] | Promise<any[]>;
|
|
28
|
+
debouncedValidate(): void;
|
|
29
|
+
updateModelValue(newValue: any, oldValue: any): void;
|
|
30
|
+
clearValidationErrors(): void;
|
|
31
|
+
setModelValueByPath(path: any, value: any): void;
|
|
32
|
+
getFieldID(schema: any, unique?: boolean): string;
|
|
33
|
+
getFieldClasses(): any;
|
|
34
|
+
formatValueToField(value: any): any;
|
|
35
|
+
formatValueToModel(value: any): any;
|
|
36
|
+
};
|
|
37
|
+
}, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
38
|
+
export default _default;
|
|
39
|
+
//# sourceMappingURL=fieldStaticMap.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldStaticMap.vue.d.ts","sourceRoot":"","sources":["../../../../../src/generator/fields/optional/fieldStaticMap.vue.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
2
|
+
formatValueToField(value: any): any;
|
|
3
|
+
formatValueToModel(value: any): any;
|
|
4
|
+
}, {
|
|
5
|
+
name: string;
|
|
6
|
+
props: string[];
|
|
7
|
+
emits: string[];
|
|
8
|
+
data(): {
|
|
9
|
+
errors: never[];
|
|
10
|
+
debouncedValidateFunc: null;
|
|
11
|
+
debouncedFormatFunc: null;
|
|
12
|
+
};
|
|
13
|
+
directives: {
|
|
14
|
+
attributes: {
|
|
15
|
+
beforeMount: (el: any, binding: any, vnode: any) => void;
|
|
16
|
+
updated: (el: any, binding: any, vnode: any) => void;
|
|
17
|
+
componentUpdated: (el: any, binding: any, vnode: any) => void;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
computed: {
|
|
21
|
+
value: {
|
|
22
|
+
cache: boolean;
|
|
23
|
+
get(): any;
|
|
24
|
+
set(newValue: any): void;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
methods: {
|
|
28
|
+
validate(calledParent: any): any[] | Promise<any[]>;
|
|
29
|
+
debouncedValidate(): void;
|
|
30
|
+
updateModelValue(newValue: any, oldValue: any): void;
|
|
31
|
+
clearValidationErrors(): void;
|
|
32
|
+
setModelValueByPath(path: any, value: any): void;
|
|
33
|
+
getFieldID(schema: any, unique?: boolean): string;
|
|
34
|
+
getFieldClasses(): any;
|
|
35
|
+
formatValueToField(value: any): any;
|
|
36
|
+
formatValueToModel(value: any): any;
|
|
37
|
+
};
|
|
38
|
+
}, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
39
|
+
export default _default;
|
|
40
|
+
//# sourceMappingURL=fieldSwitch.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldSwitch.vue.d.ts","sourceRoot":"","sources":["../../../../../src/generator/fields/optional/fieldSwitch.vue.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {
|
|
2
|
+
selectOptions(): any;
|
|
3
|
+
options(): any;
|
|
4
|
+
customLabel(): any;
|
|
5
|
+
}, {
|
|
6
|
+
updateSelected(value: any): void;
|
|
7
|
+
addTag(newTag: any, id: any): void;
|
|
8
|
+
onSearchChange(searchQuery: any, id: any): void;
|
|
9
|
+
onSelect(): void;
|
|
10
|
+
onRemove(): void;
|
|
11
|
+
onOpen(): void;
|
|
12
|
+
onClose(): void;
|
|
13
|
+
}, {
|
|
14
|
+
name: string;
|
|
15
|
+
props: string[];
|
|
16
|
+
emits: string[];
|
|
17
|
+
data(): {
|
|
18
|
+
errors: never[];
|
|
19
|
+
debouncedValidateFunc: null;
|
|
20
|
+
debouncedFormatFunc: null;
|
|
21
|
+
};
|
|
22
|
+
directives: {
|
|
23
|
+
attributes: {
|
|
24
|
+
beforeMount: (el: any, binding: any, vnode: any) => void;
|
|
25
|
+
updated: (el: any, binding: any, vnode: any) => void;
|
|
26
|
+
componentUpdated: (el: any, binding: any, vnode: any) => void;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
computed: {
|
|
30
|
+
value: {
|
|
31
|
+
cache: boolean;
|
|
32
|
+
get(): any;
|
|
33
|
+
set(newValue: any): void;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
methods: {
|
|
37
|
+
validate(calledParent: any): any[] | Promise<any[]>;
|
|
38
|
+
debouncedValidate(): void;
|
|
39
|
+
updateModelValue(newValue: any, oldValue: any): void;
|
|
40
|
+
clearValidationErrors(): void;
|
|
41
|
+
setModelValueByPath(path: any, value: any): void;
|
|
42
|
+
getFieldID(schema: any, unique?: boolean): string;
|
|
43
|
+
getFieldClasses(): any;
|
|
44
|
+
formatValueToField(value: any): any;
|
|
45
|
+
formatValueToModel(value: any): any;
|
|
46
|
+
};
|
|
47
|
+
}, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
48
|
+
export default _default;
|
|
49
|
+
//# sourceMappingURL=fieldVueMultiSelect.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldVueMultiSelect.vue.d.ts","sourceRoot":"","sources":["../../../../../src/generator/fields/optional/fieldVueMultiSelect.vue.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dateFieldHelper.d.ts","sourceRoot":"","sources":["../../../../src/generator/utils/dateFieldHelper.ts"],"names":[],"mappings":";8BAI2B,GAAG;;;AAD9B,wBAsBC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { default as FieldCheckbox } from '../fields/core/fieldCheckbox.vue';
|
|
2
|
+
export { default as FieldChecklist } from '../fields/core/fieldChecklist.vue';
|
|
3
|
+
export { default as FieldInput } from '../fields/core/fieldInput.vue';
|
|
4
|
+
export { default as FieldLabel } from '../fields/core/fieldLabel.vue';
|
|
5
|
+
export { default as FieldRadios } from '../fields/core/fieldRadios.vue';
|
|
6
|
+
export { default as FieldSelect } from '../fields/core/fieldSelect.vue';
|
|
7
|
+
export { default as FieldSubmit } from '../fields/core/fieldSubmit.vue';
|
|
8
|
+
export { default as FieldTextArea } from '../fields/core/fieldTextArea.vue';
|
|
9
|
+
export { default as FieldUpload } from '../fields/core/fieldUpload.vue';
|
|
10
|
+
export { default as FieldCleave } from '../fields/optional/fieldCleave.vue';
|
|
11
|
+
export { default as FieldDateTimePicker } from '../fields/optional/fieldDateTimePicker.vue';
|
|
12
|
+
export { default as FieldGoogleAddress } from '../fields/optional/fieldGoogleAddress.vue';
|
|
13
|
+
export { default as FieldImage } from '../fields/optional/fieldImage.vue';
|
|
14
|
+
export { default as FieldMasked } from '../fields/optional/fieldMasked.vue';
|
|
15
|
+
export { default as FieldNoUiSlider } from '../fields/optional/fieldNoUiSlider.vue';
|
|
16
|
+
export { default as FieldPikaday } from '../fields/optional/fieldPikaday.vue';
|
|
17
|
+
export { default as FieldRangeSlider } from '../fields/optional/fieldRangeSlider.vue';
|
|
18
|
+
export { default as FieldSelectEx } from '../fields/optional/fieldSelectEx.vue';
|
|
19
|
+
export { default as FieldSpectrum } from '../fields/optional/fieldSpectrum.vue';
|
|
20
|
+
export { default as FieldStaticMap } from '../fields/optional/fieldStaticMap.vue';
|
|
21
|
+
export { default as fieldSwitch } from '../fields/optional/fieldSwitch.vue';
|
|
22
|
+
export { default as FieldVueMultiSelect } from '../fields/optional/fieldVueMultiSelect.vue';
|
|
23
|
+
export { default as FieldObject } from '../fields/advanced/FieldObject.vue';
|
|
24
|
+
export { default as FieldObjectAdvanced } from '../fields/advanced/FieldObjectAdvanced.vue';
|
|
25
|
+
export { default as FieldArray } from '../fields/advanced/FieldArray.vue';
|
|
26
|
+
export { default as FieldSchema } from '../fields/advanced/FieldSchema.vue';
|
|
27
|
+
export { default as FieldMetric } from '../fields/advanced/FieldMetric.vue';
|
|
28
|
+
export { default as FieldArrayItem } from '../fields/advanced/FieldArrayItem.vue';
|
|
29
|
+
export { default as FieldArrayMultiItem } from '../fields/advanced/FieldArrayMultiItem.vue';
|
|
30
|
+
export { default as FieldAdvanced } from '../fields/advanced/FieldAdvanced.vue';
|
|
31
|
+
export { default as FieldAutoSuggest } from '../fields/advanced/FieldAutoSuggest.vue';
|
|
32
|
+
export { default as FieldSelectionGroup } from '../fields/advanced/FieldSelectionGroup.vue';
|
|
33
|
+
export { default as FieldRadio } from '../fields/advanced/FieldRadio.vue';
|
|
34
|
+
export { default as FieldArrayCardContainer } from '../fields/advanced/FieldArrayCardContainer.vue';
|
|
35
|
+
//# sourceMappingURL=fieldsLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldsLoader.d.ts","sourceRoot":"","sources":["../../../../src/generator/utils/fieldsLoader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAC7E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAA;AACrE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAA;AACrE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,4CAA4C,CAAA;AAC3F,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,2CAA2C,CAAA;AACzF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,wCAAwC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAC7E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yCAAyC,CAAA;AACrF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,uCAAuC,CAAA;AACjF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,4CAA4C,CAAA;AAE3F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,4CAA4C,CAAA;AAC3F,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,uCAAuC,CAAA;AACjF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,4CAA4C,CAAA;AAC3F,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yCAAyC,CAAA;AACrF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,4CAA4C,CAAA;AAC3F,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,gDAAgD,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test if a string is a valid uuid
|
|
3
|
+
* @param {String} str - the string to test
|
|
4
|
+
* @returns {boolean}
|
|
5
|
+
*/
|
|
6
|
+
export declare const uuidRegEx = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
|
|
7
|
+
export declare function isValidUuid(str: string): boolean;
|
|
8
|
+
//# sourceMappingURL=isValidUuid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isValidUuid.d.ts","sourceRoot":"","sources":["../../../../src/generator/utils/isValidUuid.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,SAAS,iEAAiE,CAAA;AAEvF,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,WAItC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const createDefaultObject: (schema: any, obj?: {}) => {};
|
|
2
|
+
export declare const getMultipleFields: (schema: any) => any;
|
|
3
|
+
export declare const mergeMultiObjectFields: (schema: any, objs: any) => {};
|
|
4
|
+
export declare const slugifyFormID: (schema: any, prefix?: any) => any;
|
|
5
|
+
export declare const slugify: (name?: any) => any;
|
|
6
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/generator/utils/schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,WAAY,GAAG,QAAO,EAAE,OAWvD,CAAA;AAGD,eAAO,MAAM,iBAAiB,WAAY,GAAG,QAO5C,CAAA;AAGD,eAAO,MAAM,sBAAsB,WAAY,GAAG,QAAQ,GAAG,OAwB5D,CAAA;AAED,eAAO,MAAM,aAAa,WAAY,GAAG,WAAU,GAAG,QA0BrD,CAAA;AAED,eAAO,MAAM,OAAO,UAAU,GAAG,QAkBhC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/generator/utils/validators.ts"],"names":[],"mappings":"AAwDA,eAAO,MAAM,UAAU,EAAE,GAsNxB,CAAA;AAUD,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import VueFormGenerator from './generator/FormGenerator.vue';
|
|
3
|
+
import * as sharedForms from './forms';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
install: (app: App, options?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
name?: string | undefined;
|
|
8
|
+
}) => void;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export { customFields } from './generator/fields/advanced/exports';
|
|
12
|
+
export declare const vfgPlugin: {
|
|
13
|
+
install(app: App, options?: {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
name?: string | undefined;
|
|
16
|
+
}): void;
|
|
17
|
+
};
|
|
18
|
+
export { VueFormGenerator, sharedForms };
|
|
19
|
+
export declare const getSharedFormName: (modelName: string) => string;
|
|
20
|
+
export * from './const';
|
|
21
|
+
export * as abstractField from './generator/fields/abstractField';
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B,OAAO,gBAAgB,MAAM,+BAA+B,CAAA;AAC5D,OAAO,KAAK,WAAW,MAAM,SAAS,CAAA;;mBAQrB,GAAG;;;UAAwD,IAAI;;AAJhF,wBAOC;AAED,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAGlE,eAAO,MAAM,SAAS;iBACP,GAAG;;;;CAajB,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAA;AAExC,eAAO,MAAM,iBAAiB,cAAe,MAAM,KAAG,MASrD,CAAA;AAED,cAAc,SAAS,CAAA;AACvB,OAAO,KAAK,aAAa,MAAM,kCAAkC,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kong-ui-public/forms",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/forms.umd.js",
|
|
6
|
+
"module": "./dist/forms.es.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/forms.es.js",
|
|
14
|
+
"require": "./dist/forms.umd.js"
|
|
15
|
+
},
|
|
16
|
+
"./package.json": "./package.json",
|
|
17
|
+
"./dist/*": "./dist/*"
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"@kong/kongponents": "^8.21.5",
|
|
24
|
+
"vue": "^3.2.45"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@kong/kongponents": "^8.21.5",
|
|
28
|
+
"@types/lodash": "^4.14.191",
|
|
29
|
+
"pug": "^3.0.2",
|
|
30
|
+
"vue": "^3.2.45"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@kong-ui-public/i18n": "^0.2.5",
|
|
34
|
+
"fecha": "^4.2.3",
|
|
35
|
+
"lodash": "^4.17.21"
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/Kong/public-ui-components.git",
|
|
40
|
+
"directory": "packages/core/forms"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://github.com/Kong/public-ui-components/tree/main/packages/core/forms",
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://github.com/Kong/public-ui-components/issues"
|
|
45
|
+
},
|
|
46
|
+
"author": "Kong, Inc.",
|
|
47
|
+
"license": "Apache-2.0",
|
|
48
|
+
"volta": {
|
|
49
|
+
"extends": "../../../package.json"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"dev": "cross-env USE_SANDBOX=true vite",
|
|
53
|
+
"build": "run-s typecheck build:package build:types",
|
|
54
|
+
"build:package": "vite build",
|
|
55
|
+
"build:types": "vue-tsc -p './tsconfig.build.json' --emitDeclarationOnly",
|
|
56
|
+
"build:visualize": "BUILD_VISUALIZER='core/forms' vite build -m production",
|
|
57
|
+
"preview:package": "vite preview --port 4173",
|
|
58
|
+
"preview": "cross-env USE_SANDBOX=true PREVIEW_SANDBOX=true run-s build:package preview:package",
|
|
59
|
+
"lint": "eslint '**/*.{js,jsx,ts,tsx,vue}' --ignore-path '../../../.eslintignore'",
|
|
60
|
+
"lint:fix": "eslint '**/*.{js,jsx,ts,tsx,vue}' --ignore-path '../../../.eslintignore' --fix",
|
|
61
|
+
"stylelint": "stylelint --allow-empty-input './src/**/*.{css,scss,sass,less,styl,vue}'",
|
|
62
|
+
"stylelint:fix": "stylelint --allow-empty-input './src/**/*.{css,scss,sass,less,styl,vue}' --fix",
|
|
63
|
+
"typecheck": "vue-tsc -p './tsconfig.build.json' --noEmit",
|
|
64
|
+
"test:component": "BABEL_ENV=cypress cross-env FORCE_COLOR=1 cypress run --component -b chrome --spec './src/**/*.cy.ts' --project '../../../.'",
|
|
65
|
+
"test:component:open": "BABEL_ENV=cypress cross-env FORCE_COLOR=1 cypress open --component -b chrome --project '../../../.'",
|
|
66
|
+
"test:unit": "cross-env FORCE_COLOR=1 vitest run",
|
|
67
|
+
"test:unit:open": "cross-env FORCE_COLOR=1 vitest --ui"
|
|
68
|
+
}
|
|
69
|
+
}
|