@kong-ui-public/forms 4.15.8-pr.2204.7c67d7cc4.0 → 4.15.8-pr.2337.1185e499b.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,228 +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
- }>, void, {}, {}, {}, 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
- }>, void, {}, {}, {}, 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?: (props: {}) => any;
135
- } & {
136
- 'selected-item'?: (props: {
137
- item: import("@kong/kongponents").SelectItem<string>;
138
- }) => any;
139
- } & {
140
- item?: (props: {
141
- item: import("@kong/kongponents").SelectItem<string>;
142
- }) => any;
143
- };
144
- });
145
- SearchIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
146
- title: {
147
- type: StringConstructor;
148
- required: false;
149
- default: string;
150
- };
151
- color: {
152
- type: StringConstructor;
153
- required: false;
154
- default: string;
155
- };
156
- display: {
157
- type: StringConstructor;
158
- required: false;
159
- default: string;
160
- };
161
- decorative: {
162
- type: BooleanConstructor;
163
- required: false;
164
- default: boolean;
165
- };
166
- size: {
167
- type: (StringConstructor | NumberConstructor)[];
168
- required: false;
169
- default: "24px";
170
- validator: (sizeValue: number | string) => boolean;
171
- };
172
- as: {
173
- type: StringConstructor;
174
- required: false;
175
- default: string;
176
- };
177
- staticIds: {
178
- type: BooleanConstructor;
179
- default: boolean;
180
- };
181
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
182
- title: {
183
- type: StringConstructor;
184
- required: false;
185
- default: string;
186
- };
187
- color: {
188
- type: StringConstructor;
189
- required: false;
190
- default: string;
191
- };
192
- display: {
193
- type: StringConstructor;
194
- required: false;
195
- default: string;
196
- };
197
- decorative: {
198
- type: BooleanConstructor;
199
- required: false;
200
- default: boolean;
201
- };
202
- size: {
203
- type: (StringConstructor | NumberConstructor)[];
204
- required: false;
205
- default: "24px";
206
- validator: (sizeValue: number | string) => boolean;
207
- };
208
- as: {
209
- type: StringConstructor;
210
- required: false;
211
- default: string;
212
- };
213
- staticIds: {
214
- type: BooleanConstructor;
215
- default: boolean;
216
- };
217
- }>> & Readonly<{}>, {
218
- title: string;
219
- color: string;
220
- display: string;
221
- decorative: boolean;
222
- size: string | number;
223
- as: string;
224
- staticIds: boolean;
225
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
226
- }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
227
- export default _default;
228
- //# 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,40 +0,0 @@
1
- import type { SelectItem } from '@kong/kongponents';
2
- import type { AutoSuggestInjection, AutoSuggestItemTransformer } from '../../types/form-autosuggest';
3
- type __VLS_Props = {
4
- transformItem?: AutoSuggestItemTransformer;
5
- allowUuidSearch?: boolean;
6
- placeholder?: string;
7
- fields: string[];
8
- initialItem?: SelectItem<string>;
9
- initialItemSelected?: boolean;
10
- domId: string;
11
- id: string;
12
- entity: string;
13
- disabled?: boolean;
14
- fieldDisabled?: boolean;
15
- } & AutoSuggestInjection;
16
- declare var __VLS_11: {}, __VLS_14: {
17
- item: SelectItem<string>;
18
- }, __VLS_17: {
19
- item: SelectItem<string>;
20
- };
21
- type __VLS_Slots = {} & {
22
- before?: (props: typeof __VLS_11) => any;
23
- } & {
24
- 'selected-item'?: (props: typeof __VLS_14) => any;
25
- } & {
26
- item?: (props: typeof __VLS_17) => any;
27
- };
28
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
- change: (item: SelectItem<string> | null) => any;
30
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
31
- onChange?: ((item: SelectItem<string> | null) => any) | undefined;
32
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
34
- export default _default;
35
- type __VLS_WithSlots<T, S> = T & {
36
- new (): {
37
- $slots: S;
38
- };
39
- };
40
- //# 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":"AAqOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAc,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAKhH,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,0BAA0B,CAAA;IAC1C,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,WAAW,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAChC,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;CACxB,GAAG,oBAAoB,CAAC;AA2OzB,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;AAwB7C,QAAA,MAAM,eAAe;;;;kFAKnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,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,GAAI,MAAM,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"}