@kong-ui-public/forms 4.27.3-pr.3470.87bb970d7.0 → 4.27.3

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 (128) hide show
  1. package/dist/forms.es.js +8028 -0
  2. package/dist/forms.umd.js +5 -0
  3. package/dist/style.css +1 -0
  4. package/dist/types/components/FormGenerator.vue.d.ts +553 -0
  5. package/dist/types/components/FormGenerator.vue.d.ts.map +1 -0
  6. package/dist/types/components/FormGroup.vue.d.ts +89 -0
  7. package/dist/types/components/FormGroup.vue.d.ts.map +1 -0
  8. package/dist/types/components/FormMixin.vue.d.ts +17 -0
  9. package/dist/types/components/FormMixin.vue.d.ts.map +1 -0
  10. package/dist/types/components/FormRedis.vue.d.ts +111 -0
  11. package/dist/types/components/FormRedis.vue.d.ts.map +1 -0
  12. package/dist/types/components/RedisConfigCard.vue.d.ts +55 -0
  13. package/dist/types/components/RedisConfigCard.vue.d.ts.map +1 -0
  14. package/dist/types/components/RedisConfigSelect.vue.d.ts +99 -0
  15. package/dist/types/components/RedisConfigSelect.vue.d.ts.map +1 -0
  16. package/dist/types/components/fields/AutoSuggest.vue.d.ts +44 -0
  17. package/dist/types/components/fields/AutoSuggest.vue.d.ts.map +1 -0
  18. package/dist/types/components/fields/FieldAdvanced.vue.d.ts +4 -0
  19. package/dist/types/components/fields/FieldAdvanced.vue.d.ts.map +1 -0
  20. package/dist/types/components/fields/FieldArray.vue.d.ts +954 -0
  21. package/dist/types/components/fields/FieldArray.vue.d.ts.map +1 -0
  22. package/dist/types/components/fields/FieldArrayCardContainer.vue.d.ts +48 -0
  23. package/dist/types/components/fields/FieldArrayCardContainer.vue.d.ts.map +1 -0
  24. package/dist/types/components/fields/FieldArrayItem.vue.d.ts +32 -0
  25. package/dist/types/components/fields/FieldArrayItem.vue.d.ts.map +1 -0
  26. package/dist/types/components/fields/FieldArrayMultiItem.vue.d.ts +18 -0
  27. package/dist/types/components/fields/FieldArrayMultiItem.vue.d.ts.map +1 -0
  28. package/dist/types/components/fields/FieldAutoSuggest.vue.d.ts +143 -0
  29. package/dist/types/components/fields/FieldAutoSuggest.vue.d.ts.map +1 -0
  30. package/dist/types/components/fields/FieldAutoSuggestLegacy.vue.d.ts +68 -0
  31. package/dist/types/components/fields/FieldAutoSuggestLegacy.vue.d.ts.map +1 -0
  32. package/dist/types/components/fields/FieldCheckbox.vue.d.ts +83 -0
  33. package/dist/types/components/fields/FieldCheckbox.vue.d.ts.map +1 -0
  34. package/dist/types/components/fields/FieldChecklist.vue.d.ts +51 -0
  35. package/dist/types/components/fields/FieldChecklist.vue.d.ts.map +1 -0
  36. package/dist/types/components/fields/FieldInput.vue.d.ts +83 -0
  37. package/dist/types/components/fields/FieldInput.vue.d.ts.map +1 -0
  38. package/dist/types/components/fields/FieldKeyValuePairs.vue.d.ts +128 -0
  39. package/dist/types/components/fields/FieldKeyValuePairs.vue.d.ts.map +1 -0
  40. package/dist/types/components/fields/FieldLabel.vue.d.ts +51 -0
  41. package/dist/types/components/fields/FieldLabel.vue.d.ts.map +1 -0
  42. package/dist/types/components/fields/FieldMetric.vue.d.ts +206 -0
  43. package/dist/types/components/fields/FieldMetric.vue.d.ts.map +1 -0
  44. package/dist/types/components/fields/FieldMultiselect.vue.d.ts +83 -0
  45. package/dist/types/components/fields/FieldMultiselect.vue.d.ts.map +1 -0
  46. package/dist/types/components/fields/FieldObject.vue.d.ts +4 -0
  47. package/dist/types/components/fields/FieldObject.vue.d.ts.map +1 -0
  48. package/dist/types/components/fields/FieldObjectAdvanced.vue.d.ts +4 -0
  49. package/dist/types/components/fields/FieldObjectAdvanced.vue.d.ts.map +1 -0
  50. package/dist/types/components/fields/FieldRadio.vue.d.ts +83 -0
  51. package/dist/types/components/fields/FieldRadio.vue.d.ts.map +1 -0
  52. package/dist/types/components/fields/FieldScopedEntitySelect.vue.d.ts +64 -0
  53. package/dist/types/components/fields/FieldScopedEntitySelect.vue.d.ts.map +1 -0
  54. package/dist/types/components/fields/FieldSelect.vue.d.ts +83 -0
  55. package/dist/types/components/fields/FieldSelect.vue.d.ts.map +1 -0
  56. package/dist/types/components/fields/FieldSelectionGroup.vue.d.ts +4 -0
  57. package/dist/types/components/fields/FieldSelectionGroup.vue.d.ts.map +1 -0
  58. package/dist/types/components/fields/FieldStringArray.vue.d.ts +15 -0
  59. package/dist/types/components/fields/FieldStringArray.vue.d.ts.map +1 -0
  60. package/dist/types/components/fields/FieldSwitch.vue.d.ts +83 -0
  61. package/dist/types/components/fields/FieldSwitch.vue.d.ts.map +1 -0
  62. package/dist/types/components/fields/FieldTextArea.vue.d.ts +83 -0
  63. package/dist/types/components/fields/FieldTextArea.vue.d.ts.map +1 -0
  64. package/dist/types/components/fields/__tests__/FieldAutoSuggestLegacy.spec.d.ts +2 -0
  65. package/dist/types/components/fields/__tests__/FieldAutoSuggestLegacy.spec.d.ts.map +1 -0
  66. package/dist/types/components/fields/abstractField.d.ts +39 -0
  67. package/dist/types/components/fields/abstractField.d.ts.map +1 -0
  68. package/dist/types/components/fields/exports.d.ts +2 -0
  69. package/dist/types/components/fields/exports.d.ts.map +1 -0
  70. package/dist/types/components/forms/ACMEForm.vue.d.ts +49 -0
  71. package/dist/types/components/forms/ACMEForm.vue.d.ts.map +1 -0
  72. package/dist/types/components/forms/ExitTransformer.vue.d.ts +49 -0
  73. package/dist/types/components/forms/ExitTransformer.vue.d.ts.map +1 -0
  74. package/dist/types/components/forms/OIDCForm.vue.d.ts +1638 -0
  75. package/dist/types/components/forms/OIDCForm.vue.d.ts.map +1 -0
  76. package/dist/types/components/forms/OIDCPrincipals.vue.d.ts +979 -0
  77. package/dist/types/components/forms/OIDCPrincipals.vue.d.ts.map +1 -0
  78. package/dist/types/components/forms/PostFunction.vue.d.ts +49 -0
  79. package/dist/types/components/forms/PostFunction.vue.d.ts.map +1 -0
  80. package/dist/types/components/forms/RLAForm.vue.d.ts +15 -0
  81. package/dist/types/components/forms/RLAForm.vue.d.ts.map +1 -0
  82. package/dist/types/components/forms/__tests__/OIDCSchema.d.ts +2452 -0
  83. package/dist/types/components/forms/__tests__/OIDCSchema.d.ts.map +1 -0
  84. package/dist/types/components/forms/__tests__/RLASchema.d.ts +1132 -0
  85. package/dist/types/components/forms/__tests__/RLASchema.d.ts.map +1 -0
  86. package/dist/types/components/forms/index.d.ts +6 -0
  87. package/dist/types/components/forms/index.d.ts.map +1 -0
  88. package/dist/types/components/forms/schemas/ACMECommon.d.ts +19 -0
  89. package/dist/types/components/forms/schemas/ACMECommon.d.ts.map +1 -0
  90. package/dist/types/composables/index.d.ts +10 -0
  91. package/dist/types/composables/index.d.ts.map +1 -0
  92. package/dist/types/composables/useAbstractFields.d.ts +29 -0
  93. package/dist/types/composables/useAbstractFields.d.ts.map +1 -0
  94. package/dist/types/composables/useRedisNonStandardFields.d.ts +9 -0
  95. package/dist/types/composables/useRedisNonStandardFields.d.ts.map +1 -0
  96. package/dist/types/composables/useRedisPartial.d.ts +23 -0
  97. package/dist/types/composables/useRedisPartial.d.ts.map +1 -0
  98. package/dist/types/const.d.ts +16 -0
  99. package/dist/types/const.d.ts.map +1 -0
  100. package/dist/types/external-links.d.ts +9 -0
  101. package/dist/types/external-links.d.ts.map +1 -0
  102. package/dist/types/index.d.ts +11 -0
  103. package/dist/types/index.d.ts.map +1 -0
  104. package/dist/types/types/form-autosuggest.d.ts +18 -0
  105. package/dist/types/types/form-autosuggest.d.ts.map +1 -0
  106. package/dist/types/types/form-fields.d.ts +25 -0
  107. package/dist/types/types/form-fields.d.ts.map +1 -0
  108. package/dist/types/types/form-generator.d.ts +27 -0
  109. package/dist/types/types/form-generator.d.ts.map +1 -0
  110. package/dist/types/types/form-redis-partial.d.ts +90 -0
  111. package/dist/types/types/form-redis-partial.d.ts.map +1 -0
  112. package/dist/types/types/index.d.ts +5 -0
  113. package/dist/types/types/index.d.ts.map +1 -0
  114. package/dist/types/utils/autoSuggest.d.ts +13 -0
  115. package/dist/types/utils/autoSuggest.d.ts.map +1 -0
  116. package/dist/types/utils/fieldsLoader.d.ts +23 -0
  117. package/dist/types/utils/fieldsLoader.d.ts.map +1 -0
  118. package/dist/types/utils/isValidUuid.d.ts +8 -0
  119. package/dist/types/utils/isValidUuid.d.ts.map +1 -0
  120. package/dist/types/utils/redisPartial.d.ts +15 -0
  121. package/dist/types/utils/redisPartial.d.ts.map +1 -0
  122. package/dist/types/utils/redisPartialManagedSource.d.ts +13 -0
  123. package/dist/types/utils/redisPartialManagedSource.d.ts.map +1 -0
  124. package/dist/types/utils/schema.d.ts +6 -0
  125. package/dist/types/utils/schema.d.ts.map +1 -0
  126. package/dist/types/utils/validators.d.ts +3 -0
  127. package/dist/types/utils/validators.d.ts.map +1 -0
  128. package/package.json +3 -3
@@ -0,0 +1,128 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {
4
+ pairs: never[];
5
+ }, {}, {
6
+ onInput(e: any, index: any, type: any): void;
7
+ updateValue(): void;
8
+ addPair(): void;
9
+ removePair(index: any): void;
10
+ }, {
11
+ name: string;
12
+ props: string[];
13
+ emits: string[];
14
+ data(): {
15
+ errors: never[];
16
+ debouncedValidateFunc: null;
17
+ debouncedFormatFunc: null;
18
+ };
19
+ directives: {
20
+ attributes: {
21
+ beforeMount: (el: any, binding: any, vnode: any) => void;
22
+ updated: (el: any, binding: any, vnode: any) => void;
23
+ componentUpdated: (el: any, binding: any, vnode: any) => void;
24
+ };
25
+ };
26
+ computed: {
27
+ value: {
28
+ cache: boolean;
29
+ get(): any;
30
+ set(newValue: any): void;
31
+ };
32
+ };
33
+ methods: {
34
+ validate(calledParent: any): any[] | Promise<any[]>;
35
+ debouncedValidate(): void;
36
+ updateModelValue(newValue: any, oldValue: any): void;
37
+ clearValidationErrors(): void;
38
+ setModelValueByPath(path: any, value: any): void;
39
+ getFieldID(schema: any, unique?: boolean): string;
40
+ getLabelId(schema: any): string;
41
+ getFieldClasses(): any;
42
+ formatValueToField(value: any): any;
43
+ formatValueToModel(value: any): any;
44
+ };
45
+ }, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
46
+ TrashIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
47
+ title: {
48
+ type: StringConstructor;
49
+ required: false;
50
+ default: string;
51
+ };
52
+ color: {
53
+ type: StringConstructor;
54
+ required: false;
55
+ default: string;
56
+ };
57
+ display: {
58
+ type: StringConstructor;
59
+ required: false;
60
+ default: string;
61
+ };
62
+ decorative: {
63
+ type: BooleanConstructor;
64
+ required: false;
65
+ default: boolean;
66
+ };
67
+ size: {
68
+ type: (StringConstructor | NumberConstructor)[];
69
+ required: false;
70
+ default: "24px";
71
+ validator: (sizeValue: number | string) => boolean;
72
+ };
73
+ as: {
74
+ type: StringConstructor;
75
+ required: false;
76
+ default: string;
77
+ };
78
+ staticIds: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
83
+ title: {
84
+ type: StringConstructor;
85
+ required: false;
86
+ default: string;
87
+ };
88
+ color: {
89
+ type: StringConstructor;
90
+ required: false;
91
+ default: string;
92
+ };
93
+ display: {
94
+ type: StringConstructor;
95
+ required: false;
96
+ default: string;
97
+ };
98
+ decorative: {
99
+ type: BooleanConstructor;
100
+ required: false;
101
+ default: boolean;
102
+ };
103
+ size: {
104
+ type: (StringConstructor | NumberConstructor)[];
105
+ required: false;
106
+ default: "24px";
107
+ validator: (sizeValue: number | string) => boolean;
108
+ };
109
+ as: {
110
+ type: StringConstructor;
111
+ required: false;
112
+ default: string;
113
+ };
114
+ staticIds: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ }>> & Readonly<{}>, {
119
+ title: string;
120
+ color: string;
121
+ display: string;
122
+ decorative: boolean;
123
+ size: string | number;
124
+ as: string;
125
+ staticIds: boolean;
126
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
127
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
128
+ //# sourceMappingURL=FieldKeyValuePairs.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldKeyValuePairs.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/fields/FieldKeyValuePairs.vue"],"names":[],"mappings":"wBAsKqB,OAAO,YAAY;;AA6IxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAmEG"}
@@ -0,0 +1,51 @@
1
+ import { type PropType } from 'vue';
2
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ disabled: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ formOptions: {
8
+ type: PropType<Record<string, any>>;
9
+ default: () => undefined;
10
+ };
11
+ model: {
12
+ type: PropType<Record<string, any>>;
13
+ default: () => undefined;
14
+ };
15
+ schema: {
16
+ type: PropType<Record<string, any>>;
17
+ required: true;
18
+ };
19
+ vfg: {
20
+ type: ObjectConstructor;
21
+ required: true;
22
+ };
23
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
+ disabled: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ formOptions: {
29
+ type: PropType<Record<string, any>>;
30
+ default: () => undefined;
31
+ };
32
+ model: {
33
+ type: PropType<Record<string, any>>;
34
+ default: () => undefined;
35
+ };
36
+ schema: {
37
+ type: PropType<Record<string, any>>;
38
+ required: true;
39
+ };
40
+ vfg: {
41
+ type: ObjectConstructor;
42
+ required: true;
43
+ };
44
+ }>> & Readonly<{}>, {
45
+ model: Record<string, any>;
46
+ formOptions: Record<string, any>;
47
+ disabled: boolean;
48
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
49
+ declare const _default: typeof __VLS_export;
50
+ export default _default;
51
+ //# sourceMappingURL=FieldLabel.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldLabel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/fields/FieldLabel.vue"],"names":[],"mappings":"AAsDA,OAAO,EAAU,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAA;AA4E3C,QAAA,MAAM,YAAY;;;;;;cAOE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAI7B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAI7B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;;;;;;;;;;cAR7B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAI7B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAI7B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;;;;;;;;4EAQ/C,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,206 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {
4
+ contentVisible: boolean;
5
+ }, {}, {}, {
6
+ name: string;
7
+ props: string[];
8
+ emits: string[];
9
+ data(): {
10
+ errors: never[];
11
+ debouncedValidateFunc: null;
12
+ debouncedFormatFunc: null;
13
+ };
14
+ directives: {
15
+ attributes: {
16
+ beforeMount: (el: any, binding: any, vnode: any) => void;
17
+ updated: (el: any, binding: any, vnode: any) => void;
18
+ componentUpdated: (el: any, binding: any, vnode: any) => void;
19
+ };
20
+ };
21
+ computed: {
22
+ value: {
23
+ cache: boolean;
24
+ get(): any;
25
+ set(newValue: any): void;
26
+ };
27
+ };
28
+ methods: {
29
+ validate(calledParent: any): any[] | Promise<any[]>;
30
+ debouncedValidate(): void;
31
+ updateModelValue(newValue: any, oldValue: any): void;
32
+ clearValidationErrors(): void;
33
+ setModelValueByPath(path: any, value: any): void;
34
+ getFieldID(schema: any, unique?: boolean): string;
35
+ getLabelId(schema: any): string;
36
+ getFieldClasses(): any;
37
+ formatValueToField(value: any): any;
38
+ formatValueToModel(value: any): any;
39
+ };
40
+ }, import("vue").ComponentOptionsMixin, "remove-item"[], "remove-item", import("vue").PublicProps, Readonly<{}> & Readonly<{
41
+ "onRemove-item"?: ((...args: any[]) => any) | undefined;
42
+ }>, {}, {}, {
43
+ AddIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
44
+ title: {
45
+ type: StringConstructor;
46
+ required: false;
47
+ default: string;
48
+ };
49
+ color: {
50
+ type: StringConstructor;
51
+ required: false;
52
+ default: string;
53
+ };
54
+ display: {
55
+ type: StringConstructor;
56
+ required: false;
57
+ default: string;
58
+ };
59
+ decorative: {
60
+ type: BooleanConstructor;
61
+ required: false;
62
+ default: boolean;
63
+ };
64
+ size: {
65
+ type: (StringConstructor | NumberConstructor)[];
66
+ required: false;
67
+ default: "24px";
68
+ validator: (sizeValue: number | string) => boolean;
69
+ };
70
+ as: {
71
+ type: StringConstructor;
72
+ required: false;
73
+ default: string;
74
+ };
75
+ staticIds: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
80
+ title: {
81
+ type: StringConstructor;
82
+ required: false;
83
+ default: string;
84
+ };
85
+ color: {
86
+ type: StringConstructor;
87
+ required: false;
88
+ default: string;
89
+ };
90
+ display: {
91
+ type: StringConstructor;
92
+ required: false;
93
+ default: string;
94
+ };
95
+ decorative: {
96
+ type: BooleanConstructor;
97
+ required: false;
98
+ default: boolean;
99
+ };
100
+ size: {
101
+ type: (StringConstructor | NumberConstructor)[];
102
+ required: false;
103
+ default: "24px";
104
+ validator: (sizeValue: number | string) => boolean;
105
+ };
106
+ as: {
107
+ type: StringConstructor;
108
+ required: false;
109
+ default: string;
110
+ };
111
+ staticIds: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ };
115
+ }>> & Readonly<{}>, {
116
+ title: string;
117
+ color: string;
118
+ display: string;
119
+ decorative: boolean;
120
+ size: string | number;
121
+ as: string;
122
+ staticIds: boolean;
123
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
124
+ TrashIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
125
+ title: {
126
+ type: StringConstructor;
127
+ required: false;
128
+ default: string;
129
+ };
130
+ color: {
131
+ type: StringConstructor;
132
+ required: false;
133
+ default: string;
134
+ };
135
+ display: {
136
+ type: StringConstructor;
137
+ required: false;
138
+ default: string;
139
+ };
140
+ decorative: {
141
+ type: BooleanConstructor;
142
+ required: false;
143
+ default: boolean;
144
+ };
145
+ size: {
146
+ type: (StringConstructor | NumberConstructor)[];
147
+ required: false;
148
+ default: "24px";
149
+ validator: (sizeValue: number | string) => boolean;
150
+ };
151
+ as: {
152
+ type: StringConstructor;
153
+ required: false;
154
+ default: string;
155
+ };
156
+ staticIds: {
157
+ type: BooleanConstructor;
158
+ default: boolean;
159
+ };
160
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
161
+ title: {
162
+ type: StringConstructor;
163
+ required: false;
164
+ default: string;
165
+ };
166
+ color: {
167
+ type: StringConstructor;
168
+ required: false;
169
+ default: string;
170
+ };
171
+ display: {
172
+ type: StringConstructor;
173
+ required: false;
174
+ default: string;
175
+ };
176
+ decorative: {
177
+ type: BooleanConstructor;
178
+ required: false;
179
+ default: boolean;
180
+ };
181
+ size: {
182
+ type: (StringConstructor | NumberConstructor)[];
183
+ required: false;
184
+ default: "24px";
185
+ validator: (sizeValue: number | string) => boolean;
186
+ };
187
+ as: {
188
+ type: StringConstructor;
189
+ required: false;
190
+ default: string;
191
+ };
192
+ staticIds: {
193
+ type: BooleanConstructor;
194
+ default: boolean;
195
+ };
196
+ }>> & Readonly<{}>, {
197
+ title: string;
198
+ color: string;
199
+ display: string;
200
+ decorative: boolean;
201
+ size: string | number;
202
+ as: string;
203
+ staticIds: boolean;
204
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
205
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
206
+ //# sourceMappingURL=FieldMetric.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldMetric.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/fields/FieldMetric.vue"],"names":[],"mappings":"wBAwHqB,OAAO,YAAY;;AAwGxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAWG"}
@@ -0,0 +1,83 @@
1
+ import { type PropType } from 'vue';
2
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ disabled: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ formOptions: {
8
+ type: PropType<Record<string, any>>;
9
+ default: () => undefined;
10
+ };
11
+ model: {
12
+ type: PropType<Record<string, any>>;
13
+ default: () => undefined;
14
+ };
15
+ schema: {
16
+ type: PropType<Record<string, any>>;
17
+ required: true;
18
+ };
19
+ vfg: {
20
+ type: ObjectConstructor;
21
+ required: true;
22
+ };
23
+ /**
24
+ * TODO: stronger type
25
+ * TODO: pass this down to KInput error and errorMessage
26
+ */
27
+ errors: {
28
+ type: ArrayConstructor;
29
+ default: () => never[];
30
+ };
31
+ hint: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ }>, {
36
+ clearValidationErrors: () => void;
37
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
38
+ modelUpdated: (value: any, model: Record<string, any>) => any;
39
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
+ disabled: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ formOptions: {
45
+ type: PropType<Record<string, any>>;
46
+ default: () => undefined;
47
+ };
48
+ model: {
49
+ type: PropType<Record<string, any>>;
50
+ default: () => undefined;
51
+ };
52
+ schema: {
53
+ type: PropType<Record<string, any>>;
54
+ required: true;
55
+ };
56
+ vfg: {
57
+ type: ObjectConstructor;
58
+ required: true;
59
+ };
60
+ /**
61
+ * TODO: stronger type
62
+ * TODO: pass this down to KInput error and errorMessage
63
+ */
64
+ errors: {
65
+ type: ArrayConstructor;
66
+ default: () => never[];
67
+ };
68
+ hint: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ }>> & Readonly<{
73
+ onModelUpdated?: ((value: any, model: Record<string, any>) => any) | undefined;
74
+ }>, {
75
+ errors: unknown[];
76
+ model: Record<string, any>;
77
+ hint: string;
78
+ formOptions: Record<string, any>;
79
+ disabled: boolean;
80
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
81
+ declare const _default: typeof __VLS_export;
82
+ export default _default;
83
+ //# sourceMappingURL=FieldMultiselect.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldMultiselect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/fields/FieldMultiselect.vue"],"names":[],"mappings":"AA4FA,OAAO,EAAmB,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAA;AAqIpD,QAAA,MAAM,YAAY;;;;;;cASE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAI7B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAI7B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;;;;IAO/C;;;OAGG;;;;;;;;;;;;;;;;;;;cAlBe,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAI7B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAI7B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;;;;IAO/C;;;OAGG;;;;;;;;;;;;;;;;;4EAUH,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,4 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
+ //# sourceMappingURL=FieldObject.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldObject.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/fields/FieldObject.vue"],"names":[],"mappings":"wBA2JqB,OAAO,YAAY;;AA6DxC,0SAyHK"}
@@ -0,0 +1,4 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
+ //# sourceMappingURL=FieldObjectAdvanced.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldObjectAdvanced.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/fields/FieldObjectAdvanced.vue"],"names":[],"mappings":"wBA+SqB,OAAO,YAAY;;AA8IxC,0SAgOK"}
@@ -0,0 +1,83 @@
1
+ import { type PropType } from 'vue';
2
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ disabled: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ formOptions: {
8
+ type: PropType<Record<string, any>>;
9
+ default: () => undefined;
10
+ };
11
+ model: {
12
+ type: PropType<Record<string, any>>;
13
+ default: () => undefined;
14
+ };
15
+ schema: {
16
+ type: PropType<Record<string, any>>;
17
+ required: true;
18
+ };
19
+ vfg: {
20
+ type: ObjectConstructor;
21
+ required: true;
22
+ };
23
+ /**
24
+ * TODO: stronger type
25
+ * TODO: pass this down to KInput error and errorMessage
26
+ */
27
+ errors: {
28
+ type: ArrayConstructor;
29
+ default: () => never[];
30
+ };
31
+ hint: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ }>, {
36
+ clearValidationErrors: () => void;
37
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
38
+ modelUpdated: (value: any, model: Record<string, any>) => any;
39
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
+ disabled: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ formOptions: {
45
+ type: PropType<Record<string, any>>;
46
+ default: () => undefined;
47
+ };
48
+ model: {
49
+ type: PropType<Record<string, any>>;
50
+ default: () => undefined;
51
+ };
52
+ schema: {
53
+ type: PropType<Record<string, any>>;
54
+ required: true;
55
+ };
56
+ vfg: {
57
+ type: ObjectConstructor;
58
+ required: true;
59
+ };
60
+ /**
61
+ * TODO: stronger type
62
+ * TODO: pass this down to KInput error and errorMessage
63
+ */
64
+ errors: {
65
+ type: ArrayConstructor;
66
+ default: () => never[];
67
+ };
68
+ hint: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ }>> & Readonly<{
73
+ onModelUpdated?: ((value: any, model: Record<string, any>) => any) | undefined;
74
+ }>, {
75
+ errors: unknown[];
76
+ model: Record<string, any>;
77
+ hint: string;
78
+ formOptions: Record<string, any>;
79
+ disabled: boolean;
80
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
81
+ declare const _default: typeof __VLS_export;
82
+ export default _default;
83
+ //# sourceMappingURL=FieldRadio.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldRadio.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/fields/FieldRadio.vue"],"names":[],"mappings":"AAsGA,OAAO,EAAU,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAA;AA0I3C,QAAA,MAAM,YAAY;;;;;;cASE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAI7B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAI7B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;;;;IAO/C;;;OAGG;;;;;;;;;;;;;;;;;;;cAlBe,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAI7B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;cAI7B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;;;;;IAO/C;;;OAGG;;;;;;;;;;;;;;;;;4EAUH,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,64 @@
1
+ import type { SelectItem } from '@kong/kongponents';
2
+ import type { AutoSuggestItemTransformer } from '../../types/form-autosuggest';
3
+ /**
4
+ * How this component works
5
+ * This component utilizes `KSelect` with prefetch suggestions to improve user experience
6
+ * With `fieldDisabled` as a flag for controlling whether requests should be dispatched this was controlled by the upstream host apps,
7
+ * most likely permissions to list entities.
8
+ * By default when mounting the component, it will prefetch 50 records against the entity type `route/consumer/service/consumer_group`
9
+ * where `consumer_group` cannot be fuzzy queried with keywords which can only perform a client filtering with keywords.
10
+ * After data was fetched, the suggestions will be constructed using the `transformItem` function. When `selectedItem` is passed, in order to
11
+ * allow the option to be selected, it must be appended to the suggestions if the current suggestions list does not contain `selectedItem`
12
+ * When querying, if the data was exhausted when prefetching, the flag `dataDrainedFromPeeking` will be marked as `true` which indicates the
13
+ * upcoming querying will be delegated to inline search, otherwise, it performs a `fuzzy` search with `1000` items size capacity.
14
+ *
15
+ * A noticeable fact about the component KSelect, when the component has a selected item, then user opens the select dropdown, the component
16
+ * will set `query` to `''` where triggers a `query-change` event, thus the handler in our component `onQueryChange` will be triggered, when
17
+ * this happens, we tend to show the `prefetched` data when this happens, when user types, we introduces `debounce` for
18
+ * the query input to avoid excessive API calls.
19
+ *
20
+ * When `getAll`/`getOne`/`getPartial` props are not provided, the component falls back to injecting
21
+ * `FORMS_API_KEY` and building the API adapters internally.
22
+ */
23
+ type __VLS_Props = {
24
+ transformItem?: AutoSuggestItemTransformer;
25
+ allowUuidSearch?: boolean;
26
+ placeholder?: string;
27
+ fields?: string[];
28
+ selectedItem?: SelectItem<string>;
29
+ selectedItemLoading?: boolean;
30
+ domId: string;
31
+ id: string;
32
+ entity: string;
33
+ disabled?: boolean;
34
+ fieldDisabled?: boolean;
35
+ error?: string | null;
36
+ /** Field key to use as the display label in dropdown items. Default: 'name' */
37
+ labelField?: string;
38
+ };
39
+ declare var __VLS_12: {}, __VLS_20: {
40
+ item: SelectItem<string>;
41
+ }, __VLS_23: {
42
+ item: SelectItem<string>;
43
+ };
44
+ type __VLS_Slots = {} & {
45
+ before?: (props: typeof __VLS_12) => any;
46
+ } & {
47
+ 'selected-item'?: (props: typeof __VLS_20) => any;
48
+ } & {
49
+ item?: (props: typeof __VLS_23) => any;
50
+ };
51
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
52
+ change: (item: SelectItem<string> | null) => any;
53
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
54
+ onChange?: ((item: SelectItem<string> | null) => any) | undefined;
55
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
56
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
57
+ declare const _default: typeof __VLS_export;
58
+ export default _default;
59
+ type __VLS_WithSlots<T, S> = T & {
60
+ new (): {
61
+ $slots: S;
62
+ };
63
+ };
64
+ //# sourceMappingURL=FieldScopedEntitySelect.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldScopedEntitySelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/fields/FieldScopedEntitySelect.vue"],"names":[],"mappings":"AA8WA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAA8B,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAM1G;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,0BAA0B,CAAA;IAC1C,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,YAAY,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IACjC,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,+EAA+E;IAC/E,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;AAuWF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ;;CAAY,CAAE;AACpE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK7C,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}