@kong-ui-public/forms 4.13.12-pr.2204.f7dcccb9c.0 → 4.13.12-pr.2274.8dc697361.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.
@@ -1,226 +0,0 @@
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_fields" | "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
- }, {
6
- suggestions: never[];
7
- idValue: string;
8
- message: string;
9
- items: never[];
10
- initialItem: null;
11
- loading: boolean;
12
- dataDrained: boolean;
13
- }, {
14
- fieldState(): string;
15
- associatedEntity(): string | string[];
16
- entity(): any;
17
- scope(): any;
18
- bypassSearch(): import("vue-router").LocationQueryValue | import("vue-router").LocationQueryValue[];
19
- inputFields(): any;
20
- allowUuidSearch(): any;
21
- inputFieldsWithoutId(): any;
22
- initialValueSelected(): boolean;
23
- }, {
24
- getPartial(size: any): any;
25
- getAll(query: any, signal: any): Promise<any[]>;
26
- getOne(id: any): Promise<any>;
27
- transformItem(item: any): any;
28
- dedupeSuggestions(items: any, filteredIds: any): any[];
29
- getItem(data: any): any;
30
- fetchUntilLimit(params: any, signal: any): Promise<any>;
31
- fetchSuggestions(query: any, field: any, signal: any): Promise<any>;
32
- getSuggestionLabel(item: any): any;
33
- updateModel(value: any): void;
34
- onSelected(item: any): void;
35
- getReturnValue(item: any): any;
36
- }, {
37
- name: string;
38
- props: string[];
39
- emits: string[];
40
- data(): {
41
- errors: never[];
42
- debouncedValidateFunc: null;
43
- debouncedFormatFunc: null;
44
- };
45
- directives: {
46
- attributes: {
47
- beforeMount: (el: any, binding: any, vnode: any) => void;
48
- updated: (el: any, binding: any, vnode: any) => void;
49
- componentUpdated: (el: any, binding: any, vnode: any) => void;
50
- };
51
- };
52
- computed: {
53
- value: {
54
- cache: boolean;
55
- get(): any;
56
- set(newValue: any): void;
57
- };
58
- };
59
- methods: {
60
- validate(calledParent: any): any[] | Promise<any[]>;
61
- debouncedValidate(): void;
62
- updateModelValue(newValue: any, oldValue: any): void;
63
- clearValidationErrors(): void;
64
- setModelValueByPath(path: any, value: any): void;
65
- getFieldID(schema: any, unique?: boolean): string;
66
- getLabelId(schema: any): string;
67
- getFieldClasses(): any;
68
- formatValueToField(value: any): any;
69
- formatValueToModel(value: any): any;
70
- };
71
- }, import("vue").ComponentOptionsMixin, "model-updated"[], "model-updated", import("vue").PublicProps, Readonly<{}> & Readonly<{
72
- "onModel-updated"?: ((...args: any[]) => any) | undefined;
73
- }>, {}, {}, {
74
- FieldScopedEntitySelect: {
75
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
76
- transformItem?: import("../../types/form-autosuggest").AutoSuggestItemTransformer;
77
- allowUuidSearch?: boolean;
78
- placeholder?: string;
79
- fields: string[];
80
- initialItem?: import("@kong/kongponents").SelectItem<string>;
81
- initialItemSelected?: boolean;
82
- domId: string;
83
- id: string;
84
- entity: string;
85
- disabled?: boolean;
86
- fieldDisabled?: boolean;
87
- } & import("../../types/form-autosuggest").AutoSuggestInjection> & Readonly<{
88
- onChange?: ((item: import("@kong/kongponents").SelectItem<string> | null) => any) | undefined;
89
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
90
- change: (item: import("@kong/kongponents").SelectItem<string> | null) => any;
91
- }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
92
- P: {};
93
- B: {};
94
- D: {};
95
- C: {};
96
- M: {};
97
- Defaults: {};
98
- }, Readonly<{
99
- transformItem?: import("../../types/form-autosuggest").AutoSuggestItemTransformer;
100
- allowUuidSearch?: boolean;
101
- placeholder?: string;
102
- fields: string[];
103
- initialItem?: import("@kong/kongponents").SelectItem<string>;
104
- initialItemSelected?: boolean;
105
- domId: string;
106
- id: string;
107
- entity: string;
108
- disabled?: boolean;
109
- fieldDisabled?: boolean;
110
- } & import("../../types/form-autosuggest").AutoSuggestInjection> & Readonly<{
111
- onChange?: ((item: import("@kong/kongponents").SelectItem<string> | null) => any) | undefined;
112
- }>, {}, {}, {}, {}, {}>;
113
- __isFragment?: never;
114
- __isTeleport?: never;
115
- __isSuspense?: never;
116
- } & import("vue").ComponentOptionsBase<Readonly<{
117
- transformItem?: import("../../types/form-autosuggest").AutoSuggestItemTransformer;
118
- allowUuidSearch?: boolean;
119
- placeholder?: string;
120
- fields: string[];
121
- initialItem?: import("@kong/kongponents").SelectItem<string>;
122
- initialItemSelected?: boolean;
123
- domId: string;
124
- id: string;
125
- entity: string;
126
- disabled?: boolean;
127
- fieldDisabled?: boolean;
128
- } & import("../../types/form-autosuggest").AutoSuggestInjection> & Readonly<{
129
- onChange?: ((item: import("@kong/kongponents").SelectItem<string> | null) => any) | undefined;
130
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
131
- change: (item: import("@kong/kongponents").SelectItem<string> | null) => any;
132
- }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
133
- $slots: {
134
- before?(_: {}): any;
135
- "selected-item"?(_: {
136
- item: import("@kong/kongponents").SelectItem<string>;
137
- }): any;
138
- item?(_: {
139
- item: import("@kong/kongponents").SelectItem<string>;
140
- }): any;
141
- };
142
- });
143
- SearchIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
144
- title: {
145
- type: StringConstructor;
146
- required: false;
147
- default: string;
148
- };
149
- color: {
150
- type: StringConstructor;
151
- required: false;
152
- default: string;
153
- };
154
- display: {
155
- type: StringConstructor;
156
- required: false;
157
- default: string;
158
- };
159
- decorative: {
160
- type: BooleanConstructor;
161
- required: false;
162
- default: boolean;
163
- };
164
- size: {
165
- type: (StringConstructor | NumberConstructor)[];
166
- required: false;
167
- default: "24px";
168
- validator: (sizeValue: number | string) => boolean;
169
- };
170
- as: {
171
- type: StringConstructor;
172
- required: false;
173
- default: string;
174
- };
175
- staticIds: {
176
- type: BooleanConstructor;
177
- default: boolean;
178
- };
179
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
180
- title: {
181
- type: StringConstructor;
182
- required: false;
183
- default: string;
184
- };
185
- color: {
186
- type: StringConstructor;
187
- required: false;
188
- default: string;
189
- };
190
- display: {
191
- type: StringConstructor;
192
- required: false;
193
- default: string;
194
- };
195
- decorative: {
196
- type: BooleanConstructor;
197
- required: false;
198
- default: boolean;
199
- };
200
- size: {
201
- type: (StringConstructor | NumberConstructor)[];
202
- required: false;
203
- default: "24px";
204
- validator: (sizeValue: number | string) => boolean;
205
- };
206
- as: {
207
- type: StringConstructor;
208
- required: false;
209
- default: string;
210
- };
211
- staticIds: {
212
- type: BooleanConstructor;
213
- default: boolean;
214
- };
215
- }>> & Readonly<{}>, {
216
- title: string;
217
- color: string;
218
- display: string;
219
- decorative: boolean;
220
- size: string | number;
221
- as: string;
222
- staticIds: boolean;
223
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
224
- }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
225
- export default _default;
226
- //# sourceMappingURL=FieldAutoSuggestV2.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FieldAutoSuggestV2.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/fields/FieldAutoSuggestV2.vue"],"names":[],"mappings":""}
@@ -1,53 +0,0 @@
1
- import type { SelectItem } from '@kong/kongponents';
2
- import type { AutoSuggestInjection, AutoSuggestItemTransformer } from '../../types/form-autosuggest';
3
- declare function __VLS_template(): {
4
- slots: {
5
- before?(_: {}): any;
6
- "selected-item"?(_: {
7
- item: SelectItem<string>;
8
- }): any;
9
- item?(_: {
10
- item: SelectItem<string>;
11
- }): any;
12
- };
13
- refs: {};
14
- attrs: Partial<{}>;
15
- };
16
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: import("vue").DefineComponent<{
18
- transformItem?: AutoSuggestItemTransformer;
19
- allowUuidSearch?: boolean;
20
- placeholder?: string;
21
- fields: string[];
22
- initialItem?: SelectItem<string>;
23
- initialItemSelected?: boolean;
24
- domId: string;
25
- id: string;
26
- entity: string;
27
- disabled?: boolean;
28
- fieldDisabled?: boolean;
29
- } & AutoSuggestInjection, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
- change: (item: SelectItem<string> | null) => any;
31
- }, string, import("vue").PublicProps, Readonly<{
32
- transformItem?: AutoSuggestItemTransformer;
33
- allowUuidSearch?: boolean;
34
- placeholder?: string;
35
- fields: string[];
36
- initialItem?: SelectItem<string>;
37
- initialItemSelected?: boolean;
38
- domId: string;
39
- id: string;
40
- entity: string;
41
- disabled?: boolean;
42
- fieldDisabled?: boolean;
43
- } & AutoSuggestInjection> & Readonly<{
44
- onChange?: ((item: SelectItem<string> | null) => any) | undefined;
45
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
46
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
47
- export default _default;
48
- type __VLS_WithTemplateSlots<T, S> = T & {
49
- new (): {
50
- $slots: S;
51
- };
52
- };
53
- //# sourceMappingURL=FieldScopedEntitySelect.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FieldScopedEntitySelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/fields/FieldScopedEntitySelect.vue"],"names":[],"mappings":"AA8MA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAc,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAkKhH,iBAAS,cAAc;;wBAoFK,GAAG;;;YACM,GAAG;;;YACb,GAAG;;;WAShB,OAAO,IAA6B;EAEjD;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;oBA/QH,0BAA0B;sBACxB,OAAO;kBACX,MAAM;YACZ,MAAM,EAAE;kBACF,UAAU,CAAC,MAAM,CAAC;0BACV,OAAO;WACtB,MAAM;QACT,MAAM;YACF,MAAM;eACH,OAAO;oBACF,OAAO;;;;oBAVP,0BAA0B;sBACxB,OAAO;kBACX,MAAM;YACZ,MAAM,EAAE;kBACF,UAAU,CAAC,MAAM,CAAC;0BACV,OAAO;WACtB,MAAM;QACT,MAAM;YACF,MAAM;eACH,OAAO;oBACF,OAAO;;;kFA8QvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,18 +0,0 @@
1
- import type { AxiosResponse } from 'axios';
2
- import type { SelectItem } from '@kong/kongponents';
3
- export interface EntityData {
4
- [key: string]: any;
5
- id: string;
6
- }
7
- export interface EntityResponse {
8
- data: EntityData[];
9
- next?: string;
10
- offset?: string;
11
- }
12
- export interface AutoSuggestInjection {
13
- getAll: (query: string, signal?: AbortSignal) => Promise<EntityData[]>;
14
- getPartial: (size: number) => Promise<AxiosResponse<EntityResponse>>;
15
- getOne: (id: string) => Promise<AxiosResponse<EntityData>>;
16
- }
17
- export type AutoSuggestItemTransformer = (item: EntityData) => SelectItem<string>;
18
- //# sourceMappingURL=form-autosuggest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form-autosuggest.d.ts","sourceRoot":"","sources":["../../../src/types/form-autosuggest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IAClB,EAAE,EAAE,MAAM,CAAA;CACX;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,UAAU,EAAE,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,UAAU,EAAE,CAAC,CAAA;IACtE,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC,CAAA;IACpE,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAA;CAC3D;AAED,MAAM,MAAM,0BAA0B,GAAG,CAAC,IAAI,EAAE,UAAU,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA"}
@@ -1,13 +0,0 @@
1
- import { FIELD_STATES } from '../const';
2
- import type { SelectItem } from '@kong/kongponents';
3
- import type { EntityData } from '../types/form-autosuggest';
4
- export declare const defaultItemTransformer: (item: EntityData) => SelectItem<string>;
5
- /**
6
- * 1. Look up current state using current model and entity from router (if exists)
7
- * 2. If Updating, look up object from ID
8
- * 3. If Creating & from referral (ie. service -> route) set value with entity object from params
9
- * TODO: mark model to a specific type when we can.
10
- * @returns {Object} Object to set current search text
11
- */
12
- export declare function getFieldState(model: any, associatedEntity: boolean, bypassSearch: boolean): typeof FIELD_STATES[keyof typeof FIELD_STATES];
13
- //# sourceMappingURL=autoSuggest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"autoSuggest.d.ts","sourceRoot":"","sources":["../../../src/utils/autoSuggest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAE3D,eAAO,MAAM,sBAAsB,SAAU,UAAU,KAAG,UAAU,CAAC,MAAM,CAM1E,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,EAAE,gBAAgB,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,GAAG,OAAO,YAAY,CAAC,MAAM,OAAO,YAAY,CAAC,CAU1I"}