@kong-ui-public/forms 4.15.7-pr.2347.a3249204c.0 → 4.15.8-pr.2204.7c67d7cc4.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.
@@ -0,0 +1,228 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldAutoSuggestV2.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/fields/FieldAutoSuggestV2.vue"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldScopedEntitySelect.v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AC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -13,6 +13,13 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
13
13
  [Symbol.hasInstance](value: any): boolean;
14
14
  [Symbol.metadata]: DecoratorMetadata | null;
15
15
  };
16
+ /**
17
+ * renderedTrack tracks makes lazy rendering possible by tracking each index pointed component's render state
18
+ * all unrendered components are set to 0, when the corresponding group got picked it will be set to 1 for good,
19
+ * this retains the local state for each subgroup without initializing early to send unpermitted requests which
20
+ * triggers testing failures
21
+ */
22
+ renderedTrack: never[];
16
23
  fieldSchema: never[];
17
24
  scope: string;
18
25
  }, {}, {
@@ -1 +1 @@
1
- {"version":3,"file":"FieldSelectionGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/fields/FieldSelectionGroup.vue"],"names":[],"mappings":""}
1
+ {"version":3,"file":"FieldSelectionGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/fields/FieldSelectionGroup.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;IA6bM;;;;;OAKG"}
@@ -6,4 +6,10 @@ export declare const REDIS_PARTIAL_INFO = "redis-partial-info";
6
6
  export declare const AUTOFILL_SLOT_NAME = "autofill";
7
7
  /** Used by `provide` and `inject` */
8
8
  export declare const AUTOFILL_SLOT = "autofillSlot";
9
+ export declare const FIELD_STATES: {
10
+ CREATE_NOT_FROM_ENTITY: string;
11
+ CREATE_FROM_ENTITY: string;
12
+ UPDATE_ENTITY: string;
13
+ SET_REFERRAL_VALUE: string;
14
+ };
9
15
  //# sourceMappingURL=const.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../src/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,sBAAsB,CAAA;AAEhD,eAAO,MAAM,YAAY,yBAAyB,CAAA;AAElD,eAAO,MAAM,yBAAyB,mCAAmC,CAAA;AAEzE,eAAO,MAAM,kBAAkB,uBAAuB,CAAA;AAEtD,oCAAoC;AACpC,eAAO,MAAM,kBAAkB,aAAa,CAAA;AAE5C,qCAAqC;AACrC,eAAO,MAAM,aAAa,iBAAiB,CAAA"}
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../src/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,sBAAsB,CAAA;AAEhD,eAAO,MAAM,YAAY,yBAAyB,CAAA;AAElD,eAAO,MAAM,yBAAyB,mCAAmC,CAAA;AAEzE,eAAO,MAAM,kBAAkB,uBAAuB,CAAA;AAEtD,oCAAoC;AACpC,eAAO,MAAM,kBAAkB,aAAa,CAAA;AAE5C,qCAAqC;AACrC,eAAO,MAAM,aAAa,iBAAiB,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;CAKxB,CAAA"}
@@ -0,0 +1,18 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,13 @@
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
@@ -0,0 +1 @@
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"}
@@ -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,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AACvF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wCAAwC,CAAA;AACjF,OAAO,EAAE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OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AACvF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,6CAA6C,CAAA;AAC3F,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wCAAwC,CAAA;AACjF,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yCAAyC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,6CAA6C,CAAA;AAC3F,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sCAAsC,CAAA;AAC7E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AACvF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sCAAsC,CAAA;AAC7E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,8CAA8C,CAAA;AAC7F,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sCAAsC,CAAA;AAC7E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,8CAA8C,CAAA;AAC7F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sCAAsC,CAAA;AAC7E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wCAAwC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/forms",
3
- "version": "4.15.7-pr.2347.a3249204c.0",
3
+ "version": "4.15.8-pr.2204.7c67d7cc4.0",
4
4
  "type": "module",
5
5
  "main": "./dist/forms.umd.js",
6
6
  "module": "./dist/forms.es.js",
@@ -40,16 +40,16 @@
40
40
  "peerDependencies": {
41
41
  "@kong/kongponents": "^9.34.2",
42
42
  "vue": "^3.5.12",
43
- "@kong-ui-public/entities-shared": "^3.27.6-pr.2347.a3249204c.0",
44
- "@kong-ui-public/i18n": "^2.4.4-pr.2347.a3249204c.0"
43
+ "@kong-ui-public/i18n": "^2.4.4",
44
+ "@kong-ui-public/entities-shared": "^3.27.6"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@kong/design-tokens": "1.18.0",
48
48
  "@kong/kongponents": "9.38.3",
49
49
  "@types/lodash-es": "^4.17.12",
50
50
  "pug": "^3.0.3",
51
- "@kong-ui-public/entities-shared": "^3.27.6-pr.2347.a3249204c.0",
52
- "@kong-ui-public/i18n": "^2.4.4-pr.2347.a3249204c.0"
51
+ "@kong-ui-public/entities-shared": "^3.27.6",
52
+ "@kong-ui-public/i18n": "^2.4.4"
53
53
  },
54
54
  "distSizeChecker": {
55
55
  "errorLimit": "1.2MB"
@@ -58,6 +58,7 @@
58
58
  "dev": "cross-env USE_SANDBOX=true vite",
59
59
  "build": "run-s typecheck build:package build:types",
60
60
  "build:package": "vite build -m production",
61
+ "build:package:watch": "vite build -m development --watch",
61
62
  "build:analyzer": "BUILD_VISUALIZER='core/forms' vite build -m production",
62
63
  "build:types": "vue-tsc -p './tsconfig.build.json' --emitDeclarationOnly",
63
64
  "build:sandbox": "cross-env USE_SANDBOX=true vite build -m production",