@kong-ui-public/forms 4.13.8-pr.2204.3ebe40e80.0 → 4.13.8-pr.2236.1589c8405.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,218 +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.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_30: "16px";
4
- }, {
5
- suggestions: never[];
6
- idValue: string;
7
- message: string;
8
- items: never[];
9
- initialItem: null;
10
- loading: boolean;
11
- dataDrained: boolean;
12
- }, {
13
- fieldState(): string;
14
- associatedEntity(): string | string[];
15
- entity(): any;
16
- scope(): any;
17
- bypassSearch(): import("vue-router").LocationQueryValue | import("vue-router").LocationQueryValue[];
18
- inputFields(): any;
19
- allowUuidSearch(): any;
20
- inputFieldsWithoutId(): any;
21
- }, {
22
- getPartial(size: any): any;
23
- getAll(query: any): Promise<any[]>;
24
- getOne(id: any): Promise<any>;
25
- transformItem(item: any): any;
26
- dedupeSuggestions(items: any, filteredIds: any): any[];
27
- getItem(data: any): any;
28
- fetchUntilLimit(params: any): Promise<any[]>;
29
- fetchSuggestions(query: any, field: any): Promise<any[]>;
30
- getSuggestionLabel(item: any): any;
31
- updateModel(value: any): void;
32
- onSelected(item: any): void;
33
- getReturnValue(item: any): any;
34
- }, {
35
- name: string;
36
- props: string[];
37
- emits: string[];
38
- data(): {
39
- errors: never[];
40
- debouncedValidateFunc: null;
41
- debouncedFormatFunc: null;
42
- };
43
- directives: {
44
- attributes: {
45
- beforeMount: (el: any, binding: any, vnode: any) => void;
46
- updated: (el: any, binding: any, vnode: any) => void;
47
- componentUpdated: (el: any, binding: any, vnode: any) => void;
48
- };
49
- };
50
- computed: {
51
- value: {
52
- cache: boolean;
53
- get(): any;
54
- set(newValue: any): void;
55
- };
56
- };
57
- methods: {
58
- validate(calledParent: any): any[] | Promise<any[]>;
59
- debouncedValidate(): void;
60
- updateModelValue(newValue: any, oldValue: any): void;
61
- clearValidationErrors(): void;
62
- setModelValueByPath(path: any, value: any): void;
63
- getFieldID(schema: any, unique?: boolean): string;
64
- getLabelId(schema: any): string;
65
- getFieldClasses(): any;
66
- formatValueToField(value: any): any;
67
- formatValueToModel(value: any): any;
68
- };
69
- }, import("vue").ComponentOptionsMixin, "model-updated"[], "model-updated", import("vue").PublicProps, Readonly<{}> & Readonly<{
70
- "onModel-updated"?: ((...args: any[]) => any) | undefined;
71
- }>, {}, {}, {
72
- FieldScopedEntitySelect: {
73
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
74
- transformItem?: import("../../types/form-autosuggest").AutoSuggestItemTransformer;
75
- allowUuidSearch?: boolean;
76
- placeholder?: string;
77
- fields: string[];
78
- initialItem?: import("@kong/kongponents").SelectItem<string>;
79
- domId: string;
80
- id: string;
81
- disabled?: boolean;
82
- fieldDisabled?: boolean;
83
- } & import("../../types/form-autosuggest").AutoSuggestInjection> & Readonly<{
84
- onChange?: ((item: import("@kong/kongponents").SelectItem<string> | null) => any) | undefined;
85
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
86
- change: (item: import("@kong/kongponents").SelectItem<string> | null) => any;
87
- }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
88
- P: {};
89
- B: {};
90
- D: {};
91
- C: {};
92
- M: {};
93
- Defaults: {};
94
- }, Readonly<{
95
- transformItem?: import("../../types/form-autosuggest").AutoSuggestItemTransformer;
96
- allowUuidSearch?: boolean;
97
- placeholder?: string;
98
- fields: string[];
99
- initialItem?: import("@kong/kongponents").SelectItem<string>;
100
- domId: string;
101
- id: string;
102
- disabled?: boolean;
103
- fieldDisabled?: boolean;
104
- } & import("../../types/form-autosuggest").AutoSuggestInjection> & Readonly<{
105
- onChange?: ((item: import("@kong/kongponents").SelectItem<string> | null) => any) | undefined;
106
- }>, {}, {}, {}, {}, {}>;
107
- __isFragment?: never;
108
- __isTeleport?: never;
109
- __isSuspense?: never;
110
- } & import("vue").ComponentOptionsBase<Readonly<{
111
- transformItem?: import("../../types/form-autosuggest").AutoSuggestItemTransformer;
112
- allowUuidSearch?: boolean;
113
- placeholder?: string;
114
- fields: string[];
115
- initialItem?: import("@kong/kongponents").SelectItem<string>;
116
- domId: string;
117
- id: string;
118
- disabled?: boolean;
119
- fieldDisabled?: boolean;
120
- } & import("../../types/form-autosuggest").AutoSuggestInjection> & Readonly<{
121
- onChange?: ((item: import("@kong/kongponents").SelectItem<string> | null) => any) | undefined;
122
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
123
- change: (item: import("@kong/kongponents").SelectItem<string> | null) => any;
124
- }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
125
- $slots: {
126
- before?(_: {}): any;
127
- "selected-item"?(_: {
128
- item: import("@kong/kongponents").SelectItem<string>;
129
- }): any;
130
- item?(_: {
131
- item: import("@kong/kongponents").SelectItem<string>;
132
- }): any;
133
- };
134
- });
135
- ProgressIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
136
- title: {
137
- type: StringConstructor;
138
- required: false;
139
- default: string;
140
- };
141
- color: {
142
- type: StringConstructor;
143
- required: false;
144
- default: string;
145
- };
146
- display: {
147
- type: StringConstructor;
148
- required: false;
149
- default: string;
150
- };
151
- decorative: {
152
- type: BooleanConstructor;
153
- required: false;
154
- default: boolean;
155
- };
156
- size: {
157
- type: (StringConstructor | NumberConstructor)[];
158
- required: false;
159
- default: "24px";
160
- validator: (sizeValue: number | string) => boolean;
161
- };
162
- as: {
163
- type: StringConstructor;
164
- required: false;
165
- default: string;
166
- };
167
- staticIds: {
168
- type: BooleanConstructor;
169
- default: boolean;
170
- };
171
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
172
- title: {
173
- type: StringConstructor;
174
- required: false;
175
- default: string;
176
- };
177
- color: {
178
- type: StringConstructor;
179
- required: false;
180
- default: string;
181
- };
182
- display: {
183
- type: StringConstructor;
184
- required: false;
185
- default: string;
186
- };
187
- decorative: {
188
- type: BooleanConstructor;
189
- required: false;
190
- default: boolean;
191
- };
192
- size: {
193
- type: (StringConstructor | NumberConstructor)[];
194
- required: false;
195
- default: "24px";
196
- validator: (sizeValue: number | string) => boolean;
197
- };
198
- as: {
199
- type: StringConstructor;
200
- required: false;
201
- default: string;
202
- };
203
- staticIds: {
204
- type: BooleanConstructor;
205
- default: boolean;
206
- };
207
- }>> & Readonly<{}>, {
208
- title: string;
209
- color: string;
210
- display: string;
211
- decorative: boolean;
212
- size: string | number;
213
- as: string;
214
- staticIds: boolean;
215
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
216
- }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
217
- export default _default;
218
- //# 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,49 +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
- domId: string;
24
- id: string;
25
- disabled?: boolean;
26
- fieldDisabled?: boolean;
27
- } & AutoSuggestInjection, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
- change: (item: SelectItem<string> | null) => any;
29
- }, string, import("vue").PublicProps, Readonly<{
30
- transformItem?: AutoSuggestItemTransformer;
31
- allowUuidSearch?: boolean;
32
- placeholder?: string;
33
- fields: string[];
34
- initialItem?: SelectItem<string>;
35
- domId: string;
36
- id: string;
37
- disabled?: boolean;
38
- fieldDisabled?: boolean;
39
- } & AutoSuggestInjection> & Readonly<{
40
- onChange?: ((item: SelectItem<string> | null) => any) | undefined;
41
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
42
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
43
- export default _default;
44
- type __VLS_WithTemplateSlots<T, S> = T & {
45
- new (): {
46
- $slots: S;
47
- };
48
- };
49
- //# 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":"AAwLA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAc,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAgJhH,iBAAS,cAAc;;wBAoFK,GAAG;;;YACM,GAAG;;;YACb,GAAG;;;WAShB,OAAO,IAA6B;EAEjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;oBA3PH,0BAA0B;sBACxB,OAAO;kBACX,MAAM;YACZ,MAAM,EAAE;kBACF,UAAU,CAAC,MAAM,CAAC;WACzB,MAAM;QACT,MAAM;eACC,OAAO;oBACF,OAAO;;;;oBARP,0BAA0B;sBACxB,OAAO;kBACX,MAAM;YACZ,MAAM,EAAE;kBACF,UAAU,CAAC,MAAM,CAAC;WACzB,MAAM;QACT,MAAM;eACC,OAAO;oBACF,OAAO;;;kFA4PvB,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) => 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,KAAK,OAAO,CAAC,UAAU,EAAE,CAAC,CAAA;IAChD,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"}