@kong-ui-public/forms 4.17.10-pr.2517.b55586458.0 → 4.17.10

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.
@@ -0,0 +1,232 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ t: (translationKey: "general" | "post-function" | "exit-transformer" | "rla" | "validators" | "redis" | "fields" | "vfg" | "general.packageName" | "general.disable_global_radio" | "general.disable_source_scope_change" | "post-function.tags" | "post-function.enabled" | "post-function.selectionGroup" | "post-function.instance_name" | "post-function.name" | "post-function.config-certificate" | "post-function.config-access" | "post-function.config-body_filter" | "post-function.config-header_filter" | "post-function.config-functions" | "post-function.config-log" | "post-function.config-rewrite" | "post-function.config-ws_client_frame" | "post-function.config-ws_close" | "post-function.config-ws_handshake" | "post-function.config-ws_upstream_frame" | "post-function.tags.hint" | "post-function.tags.newElementButtonLabel" | "post-function.enabled.newElementButtonLabel" | "post-function.selectionGroup.newElementButtonLabel" | "post-function.instance_name.newElementButtonLabel" | "post-function.name.newElementButtonLabel" | "post-function.config-certificate.newElementButtonLabel" | "post-function.config-certificate.help" | "post-function.config-access.newElementButtonLabel" | "post-function.config-access.help" | "post-function.config-body_filter.newElementButtonLabel" | "post-function.config-body_filter.help" | "post-function.config-header_filter.newElementButtonLabel" | "post-function.config-header_filter.help" | "post-function.config-functions.newElementButtonLabel" | "post-function.config-log.newElementButtonLabel" | "post-function.config-rewrite.newElementButtonLabel" | "post-function.config-ws_client_frame.newElementButtonLabel" | "post-function.config-ws_close.newElementButtonLabel" | "post-function.config-ws_handshake.newElementButtonLabel" | "post-function.config-ws_upstream_frame.newElementButtonLabel" | "exit-transformer.config-functions" | "exit-transformer.config-functions.newElementButtonLabel" | "redis.title" | "rla.redis" | "rla.view_advanced" | "rla.window_type" | "rla.request_limits" | "rla.start_with_a_use_case" | "rla.use_case_index" | "rla.error_message" | "rla.identifiers" | "rla.redis.title" | "rla.redis.address_example" | "rla.window_type.options" | "rla.window_type.help" | "rla.window_type.label" | "rla.window_type.options.fixed" | "rla.window_type.options.sliding" | "rla.request_limits.title" | "rla.request_limits.label" | "rla.request_limits.subtitle" | "rla.request_limits.label_index" | "rla.request_limits.request_number" | "rla.request_limits.time_interval" | "rla.request_limits.interval_determiner" | "rla.request_limits.seconds" | "rla.error_message.help" | "rla.error_message.label" | "rla.error_message.code_placeholder" | "rla.error_message.message_placeholder" | "rla.identifiers.options" | "rla.identifiers.label" | "rla.identifiers.options.ip" | "rla.identifiers.options.credential" | "rla.identifiers.options.consumer" | "rla.identifiers.options.service" | "rla.identifiers.options.header" | "rla.identifiers.options.path" | "rla.identifiers.options.consumer-group" | "validators.field_is_required" | "validators.invalid_format" | "validators.number_too_small" | "validators.number_too_large" | "validators.invalid_number" | "validators.invalid_integer" | "validators.text_too_short" | "validators.text_too_long" | "validators.this_not_text" | "validators.this_not_array" | "validators.select_min_items" | "validators.select_max_items" | "validators.invalid_date" | "validators.date_is_early" | "validators.date_is_late" | "validators.invalid_email" | "validators.invalid_url" | "validators.invalid_card" | "validators.invalid_card_number" | "validators.invalid_text_contain_number" | "validators.invalid_tex_contain_spec" | "redis.shared_configuration" | "redis.dedicated_configuration" | "redis.config_card" | "redis.custom_plugin" | "redis.shared_configuration.error" | "redis.shared_configuration.title" | "redis.shared_configuration.label" | "redis.shared_configuration.description" | "redis.shared_configuration.tooltip" | "redis.shared_configuration.configuration_selector_label" | "redis.shared_configuration.configuration_selector_placeholder" | "redis.shared_configuration.create_new_configuration" | "redis.shared_configuration.empty_state" | "redis.shared_configuration.badge" | "redis.shared_configuration.selector" | "redis.shared_configuration.selector.title" | "redis.shared_configuration.selector.description" | "redis.shared_configuration.selector.placeholder" | "redis.dedicated_configuration.title" | "redis.dedicated_configuration.label" | "redis.dedicated_configuration.description" | "redis.config_card.common_fields" | "redis.config_card.common_fields.created_at_label" | "redis.config_card.common_fields.updated_at_label" | "redis.config_card.common_fields.type_label" | "redis.custom_plugin.tooltip" | "redis.custom_plugin.alert" | "fields.auto_suggest" | "fields.auto_suggest.error" | "fields.auto_suggest.recently_created" | "fields.auto_suggest.items_count" | "fields.auto_suggest.no_results" | "fields.auto_suggest.loading" | "fields.auto_suggest.error.load_entity" | "vfg.labels" | "vfg.labels.on" | "vfg.labels.off", values?: Record<string, import("@kong-ui-public/i18n").MessageFormatPrimitiveValue> | undefined, opts?: import("@kong-ui-public/i18n").IntlMessageFormatOptions) => string;
3
+ KUI_ICON_SIZE_40: "20px";
4
+ KUI_COLOR_TEXT_NEUTRAL: "#6c7489";
5
+ EMPTY_VALUE_PLACEHOLDER: string;
6
+ }, {
7
+ suggestions: never[];
8
+ idValue: string;
9
+ message: string;
10
+ items: never[];
11
+ initialItem: null;
12
+ selectedItem: null;
13
+ loading: boolean;
14
+ dataDrained: boolean;
15
+ }, {
16
+ fieldState(): string;
17
+ associatedEntity(): string | string[];
18
+ entity(): any;
19
+ scope(): any;
20
+ bypassSearch(): import("vue-router").LocationQueryValue | import("vue-router").LocationQueryValue[];
21
+ inputFields(): any;
22
+ allowUuidSearch(): any;
23
+ inputFieldsWithoutId(): any;
24
+ initialValueSelected(): boolean;
25
+ }, {
26
+ getPartial(size: any): any;
27
+ getAll(query: any, signal: any): Promise<any>;
28
+ getOne(id: any): Promise<any>;
29
+ transformItem(item: any): any;
30
+ getItem(data: any): any;
31
+ fetchUntilLimit(params: any, signal: any): Promise<any>;
32
+ fetchSuggestions(query: any, field: any, signal: any): Promise<any>;
33
+ getSuggestionLabel(item: any): any;
34
+ updateModel(value: any): void;
35
+ onSelected(item: any): void;
36
+ getReturnValue(item: any): any;
37
+ }, {
38
+ name: string;
39
+ props: string[];
40
+ emits: string[];
41
+ data(): {
42
+ errors: never[];
43
+ debouncedValidateFunc: null;
44
+ debouncedFormatFunc: null;
45
+ };
46
+ directives: {
47
+ attributes: {
48
+ beforeMount: (el: any, binding: any, vnode: any) => void;
49
+ updated: (el: any, binding: any, vnode: any) => void;
50
+ componentUpdated: (el: any, binding: any, vnode: any) => void;
51
+ };
52
+ };
53
+ computed: {
54
+ value: {
55
+ cache: boolean;
56
+ get(): any;
57
+ set(newValue: any): void;
58
+ };
59
+ };
60
+ methods: {
61
+ validate(calledParent: any): any[] | Promise<any[]>;
62
+ debouncedValidate(): void;
63
+ updateModelValue(newValue: any, oldValue: any): void;
64
+ clearValidationErrors(): void;
65
+ setModelValueByPath(path: any, value: any): void;
66
+ getFieldID(schema: any, unique?: boolean): string;
67
+ getLabelId(schema: any): string;
68
+ getFieldClasses(): any;
69
+ formatValueToField(value: any): any;
70
+ formatValueToModel(value: any): any;
71
+ };
72
+ }, import("vue").ComponentOptionsMixin, "model-updated"[], "model-updated", import("vue").PublicProps, Readonly<{}> & Readonly<{
73
+ "onModel-updated"?: ((...args: any[]) => any) | undefined;
74
+ }>, {}, {}, {
75
+ FieldScopedEntitySelect: {
76
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
77
+ transformItem?: import("../../types/form-autosuggest").AutoSuggestItemTransformer;
78
+ allowUuidSearch?: boolean;
79
+ placeholder?: string;
80
+ fields: string[];
81
+ selectedItem?: import("@kong/kongponents").SelectItem<string>;
82
+ selectedItemLoading?: boolean;
83
+ initialItemSelected?: boolean;
84
+ domId: string;
85
+ id: string;
86
+ entity: string;
87
+ disabled?: boolean;
88
+ fieldDisabled?: boolean;
89
+ } & import("../../types/form-autosuggest").AutoSuggestInjection> & Readonly<{
90
+ onChange?: ((item: import("@kong/kongponents").SelectItem<string> | null) => any) | undefined;
91
+ }>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
92
+ change: (item: import("@kong/kongponents").SelectItem<string> | null) => any;
93
+ }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
94
+ P: {};
95
+ B: {};
96
+ D: {};
97
+ C: {};
98
+ M: {};
99
+ Defaults: {};
100
+ }, Readonly<{
101
+ transformItem?: import("../../types/form-autosuggest").AutoSuggestItemTransformer;
102
+ allowUuidSearch?: boolean;
103
+ placeholder?: string;
104
+ fields: string[];
105
+ selectedItem?: import("@kong/kongponents").SelectItem<string>;
106
+ selectedItemLoading?: boolean;
107
+ initialItemSelected?: boolean;
108
+ domId: string;
109
+ id: string;
110
+ entity: string;
111
+ disabled?: boolean;
112
+ fieldDisabled?: boolean;
113
+ } & import("../../types/form-autosuggest").AutoSuggestInjection> & Readonly<{
114
+ onChange?: ((item: import("@kong/kongponents").SelectItem<string> | null) => any) | undefined;
115
+ }>, {}, {}, {}, {}, {}>;
116
+ __isFragment?: never;
117
+ __isTeleport?: never;
118
+ __isSuspense?: never;
119
+ } & import("vue").ComponentOptionsBase<Readonly<{
120
+ transformItem?: import("../../types/form-autosuggest").AutoSuggestItemTransformer;
121
+ allowUuidSearch?: boolean;
122
+ placeholder?: string;
123
+ fields: string[];
124
+ selectedItem?: import("@kong/kongponents").SelectItem<string>;
125
+ selectedItemLoading?: boolean;
126
+ initialItemSelected?: boolean;
127
+ domId: string;
128
+ id: string;
129
+ entity: string;
130
+ disabled?: boolean;
131
+ fieldDisabled?: boolean;
132
+ } & import("../../types/form-autosuggest").AutoSuggestInjection> & Readonly<{
133
+ onChange?: ((item: import("@kong/kongponents").SelectItem<string> | null) => any) | undefined;
134
+ }>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
135
+ change: (item: import("@kong/kongponents").SelectItem<string> | null) => any;
136
+ }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
137
+ $slots: {
138
+ before?: (props: {}) => any;
139
+ } & {
140
+ 'selected-item'?: (props: {
141
+ item: import("@kong/kongponents").SelectItem<string>;
142
+ }) => any;
143
+ } & {
144
+ item?: (props: {
145
+ item: import("@kong/kongponents").SelectItem<string>;
146
+ }) => any;
147
+ };
148
+ });
149
+ SearchIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
150
+ title: {
151
+ type: StringConstructor;
152
+ required: false;
153
+ default: string;
154
+ };
155
+ color: {
156
+ type: StringConstructor;
157
+ required: false;
158
+ default: string;
159
+ };
160
+ display: {
161
+ type: StringConstructor;
162
+ required: false;
163
+ default: string;
164
+ };
165
+ decorative: {
166
+ type: BooleanConstructor;
167
+ required: false;
168
+ default: boolean;
169
+ };
170
+ size: {
171
+ type: (StringConstructor | NumberConstructor)[];
172
+ required: false;
173
+ default: "24px";
174
+ validator: (sizeValue: number | string) => boolean;
175
+ };
176
+ as: {
177
+ type: StringConstructor;
178
+ required: false;
179
+ default: string;
180
+ };
181
+ staticIds: {
182
+ type: BooleanConstructor;
183
+ default: boolean;
184
+ };
185
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
186
+ title: {
187
+ type: StringConstructor;
188
+ required: false;
189
+ default: string;
190
+ };
191
+ color: {
192
+ type: StringConstructor;
193
+ required: false;
194
+ default: string;
195
+ };
196
+ display: {
197
+ type: StringConstructor;
198
+ required: false;
199
+ default: string;
200
+ };
201
+ decorative: {
202
+ type: BooleanConstructor;
203
+ required: false;
204
+ default: boolean;
205
+ };
206
+ size: {
207
+ type: (StringConstructor | NumberConstructor)[];
208
+ required: false;
209
+ default: "24px";
210
+ validator: (sizeValue: number | string) => boolean;
211
+ };
212
+ as: {
213
+ type: StringConstructor;
214
+ required: false;
215
+ default: string;
216
+ };
217
+ staticIds: {
218
+ type: BooleanConstructor;
219
+ default: boolean;
220
+ };
221
+ }>> & Readonly<{}>, {
222
+ title: string;
223
+ color: string;
224
+ display: string;
225
+ decorative: boolean;
226
+ size: string | number;
227
+ as: string;
228
+ staticIds: boolean;
229
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
230
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
231
+ export default _default;
232
+ //# sourceMappingURL=FieldAutoSuggestV2.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldAutoSuggestV2.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/fields/FieldAutoSuggestV2.vue"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=FieldAutoSuggest.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldAutoSuggest.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/fields/__tests__/FieldAutoSuggest.spec.js"],"names":[],"mappings":""}
@@ -4,6 +4,7 @@ export { default as FieldArrayCardContainer } from '../components/fields/FieldAr
4
4
  export { default as FieldArrayItem } from '../components/fields/FieldArrayItem.vue';
5
5
  export { default as FieldArrayMultiItem } from '../components/fields/FieldArrayMultiItem.vue';
6
6
  export { default as FieldAutoSuggest } from '../components/fields/FieldAutoSuggest.vue';
7
+ export { default as FieldAutoSuggestV2 } from '../components/fields/FieldAutoSuggestV2.vue';
7
8
  export { default as FieldCheckbox } from '../components/fields/FieldCheckbox.vue';
8
9
  export { default as FieldChecklist } from '../components/fields/FieldChecklist.vue';
9
10
  export { default as FieldInput } from '../components/fields/FieldInput.vue';
@@ -1 +1 @@
1
- {"version":3,"file":"fieldsLoader.d.ts","sourceRoot":"","sources":["../../../src/utils/fieldsLoader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wCAAwC,CAAA;AACjF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,kDAAkD,CAAA;AACrG,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yCAAyC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,8CAA8C,CAAA;AAC7F,OA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"version": "4.17.10-pr.2517.b55586458.0",
3
+ "version": "4.17.10",
4
4
  "type": "module",
5
5
  "main": "./dist/forms.umd.js",
6
6
  "module": "./dist/forms.es.js",
@@ -48,8 +48,8 @@
48
48
  "@kong/kongponents": "9.41.1",
49
49
  "@types/lodash-es": "^4.17.12",
50
50
  "pug": "^3.0.3",
51
- "@kong-ui-public/entities-shared": "^3.31.0",
52
- "@kong-ui-public/i18n": "^2.4.4"
51
+ "@kong-ui-public/i18n": "^2.4.4",
52
+ "@kong-ui-public/entities-shared": "^3.31.0"
53
53
  },
54
54
  "distSizeChecker": {
55
55
  "errorLimit": "1.2MB"