@kong-ui-public/entities-plugins 9.18.16 → 9.19.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.
- package/dist/entities-plugins.es.js +7354 -7470
- package/dist/entities-plugins.umd.js +49 -49
- package/dist/style.css +1 -1
- package/dist/types/components/PluginEntityForm.vue.d.ts +6 -6
- package/dist/types/components/PluginEntityForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/RequestCallout/CalloutForm.vue.d.ts +2 -0
- package/dist/types/components/free-form/RequestCallout/CalloutForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/RequestCallout/CalloutsForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/RequestCallout/ConfigForm.vue.d.ts +8 -7
- package/dist/types/components/free-form/RequestCallout/ConfigForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/RequestCallout/RequestCalloutForm.vue.d.ts +6 -5
- package/dist/types/components/free-form/RequestCallout/RequestCalloutForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/RequestCallout/types.d.ts +6 -0
- package/dist/types/components/free-form/RequestCallout/types.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/ArrayField.vue.d.ts +13 -5
- package/dist/types/components/free-form/shared/ArrayField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/BooleanField.vue.d.ts +16 -1
- package/dist/types/components/free-form/shared/BooleanField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/EnumField.vue.d.ts +18 -2
- package/dist/types/components/free-form/shared/EnumField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/Field.vue.d.ts +34 -0
- package/dist/types/components/free-form/shared/Field.vue.d.ts.map +1 -0
- package/dist/types/components/free-form/shared/FieldRenderer.vue.d.ts +34 -0
- package/dist/types/components/free-form/shared/FieldRenderer.vue.d.ts.map +1 -0
- package/dist/types/components/free-form/shared/Form.vue.d.ts +42 -0
- package/dist/types/components/free-form/shared/Form.vue.d.ts.map +1 -0
- package/dist/types/components/free-form/shared/KeyValueField.vue.d.ts +19 -1
- package/dist/types/components/free-form/shared/KeyValueField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/NumberField.vue.d.ts +18 -2
- package/dist/types/components/free-form/shared/NumberField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/ObjectField.vue.d.ts +25 -4
- package/dist/types/components/free-form/shared/ObjectField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/StringField.vue.d.ts +18 -2
- package/dist/types/components/free-form/shared/StringField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/composables.d.ts +64 -4
- package/dist/types/components/free-form/shared/composables.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/types.d.ts +9 -0
- package/dist/types/components/free-form/shared/types.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/utils.d.ts +8 -0
- package/dist/types/components/free-form/shared/utils.d.ts.map +1 -1
- package/dist/types/composables/index.d.ts +1 -1
- package/dist/types/composables/useSchemas.d.ts +2 -1
- package/dist/types/composables/useSchemas.d.ts.map +1 -1
- package/dist/types/types/plugins/form-schema.d.ts +73 -0
- package/dist/types/types/plugins/form-schema.d.ts.map +1 -0
- package/package.json +12 -12
- package/dist/types/components/free-form/RequestCallout/CacheForm.vue.d.ts +0 -3
- package/dist/types/components/free-form/RequestCallout/CacheForm.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/RequestCallout/CalloutRequestForm.vue.d.ts +0 -7
- package/dist/types/components/free-form/RequestCallout/CalloutRequestForm.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/RequestCallout/CalloutResponseForm.vue.d.ts +0 -7
- package/dist/types/components/free-form/RequestCallout/CalloutResponseForm.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/RequestCallout/RedisForm.vue.d.ts +0 -3
- package/dist/types/components/free-form/RequestCallout/RedisForm.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/RequestCallout/UpstreamForm.vue.d.ts +0 -3
- package/dist/types/components/free-form/RequestCallout/UpstreamForm.vue.d.ts.map +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type Slot } from 'vue';
|
|
2
|
+
import type { UnionFieldSchema } from '../../../types/plugins/form-schema';
|
|
3
|
+
export type Match = (opt: {
|
|
4
|
+
path: string;
|
|
5
|
+
schema: UnionFieldSchema;
|
|
6
|
+
}) => boolean;
|
|
7
|
+
export type MatchMap = Map<Match, Slot<{
|
|
8
|
+
name: string;
|
|
9
|
+
}>>;
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
slots: Readonly<Record<string, Slot<{
|
|
12
|
+
name: string;
|
|
13
|
+
}>>> & Record<string, Slot<{
|
|
14
|
+
name: string;
|
|
15
|
+
}>>;
|
|
16
|
+
refs: {};
|
|
17
|
+
attrs: Partial<{}>;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import("vue").DefineComponent<{
|
|
21
|
+
match: Match;
|
|
22
|
+
priority?: number;
|
|
23
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
24
|
+
match: Match;
|
|
25
|
+
priority?: number;
|
|
26
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=FieldRenderer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/FieldRenderer.vue"],"names":[],"mappings":"AAmCA,OAAO,EAAU,KAAK,IAAI,EAAE,MAAM,KAAK,CAAA;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AAG1E,MAAM,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,gBAAgB,CAAA;CACzB,KAAK,OAAO,CAAA;AAEb,MAAM,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAAA;AA2BzD,iBAAS,cAAc;;cAhBqC,MAAM;;cAAN,MAAM;;;WA6CpD,OAAO,IAA6B;EAEjD;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WA9DZ,KAAK;eACD,MAAM;;WADV,KAAK;eACD,MAAM;iGAmEjB,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"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type Slot } from 'vue';
|
|
2
|
+
import type { FormSchema } from '../../../types/plugins/form-schema';
|
|
3
|
+
import type { FormConfig } from './types';
|
|
4
|
+
export type Props<T extends Record<string, any> = Record<string, any>> = {
|
|
5
|
+
tag?: string;
|
|
6
|
+
schema: FormSchema;
|
|
7
|
+
data?: T;
|
|
8
|
+
config?: FormConfig<T>;
|
|
9
|
+
fieldsOrder?: string[];
|
|
10
|
+
};
|
|
11
|
+
declare const _default: <T extends Record<string, any> = Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
12
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
13
|
+
readonly onChange?: ((value: T) => any) | undefined;
|
|
14
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange"> & Props<T>> & import("vue").PublicProps;
|
|
15
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
16
|
+
attrs: any;
|
|
17
|
+
slots: Readonly<{
|
|
18
|
+
default?: Slot;
|
|
19
|
+
"free-form-field-renderers-slot"?: Slot<{
|
|
20
|
+
name: string;
|
|
21
|
+
}>;
|
|
22
|
+
} & Record<string, Slot<{
|
|
23
|
+
name: string;
|
|
24
|
+
}>>> & {
|
|
25
|
+
default?: Slot;
|
|
26
|
+
"free-form-field-renderers-slot"?: Slot<{
|
|
27
|
+
name: string;
|
|
28
|
+
}>;
|
|
29
|
+
} & Record<string, Slot<{
|
|
30
|
+
name: string;
|
|
31
|
+
}>>;
|
|
32
|
+
emit: (evt: "change", value: T) => void;
|
|
33
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}> & {
|
|
36
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_PrettifyLocal<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
42
|
+
//# sourceMappingURL=Form.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/Form.vue"],"names":[],"mappings":"AAAA,OAoGO,EAA+B,KAAK,IAAI,EAA4B,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C,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import type { LabelAttributes } from '@kong/kongponents';
|
|
2
|
-
declare
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: {
|
|
4
|
+
tooltip?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {
|
|
7
|
+
root: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<{
|
|
13
|
+
name: string;
|
|
3
14
|
initialValue?: Record<string, string> | null;
|
|
4
15
|
label?: string;
|
|
5
16
|
required?: boolean;
|
|
@@ -15,6 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
26
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
27
|
change: (args_0: Record<string, string>) => any;
|
|
17
28
|
}, string, import("vue").PublicProps, Readonly<{
|
|
29
|
+
name: string;
|
|
18
30
|
initialValue?: Record<string, string> | null;
|
|
19
31
|
label?: string;
|
|
20
32
|
required?: boolean;
|
|
@@ -29,5 +41,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
41
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
|
|
30
42
|
root: HTMLDivElement;
|
|
31
43
|
}, any>;
|
|
44
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
45
|
export default _default;
|
|
46
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
33
51
|
//# sourceMappingURL=KeyValueField.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueField.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/KeyValueField.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KeyValueField.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/KeyValueField.vue"],"names":[],"mappings":"AA+OA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAoIxD,iBAAS,cAAc;;yBAyLO,GAAG;;;;;WAUnB,OAAO,IAA6B;EAEjD;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;UApVb,MAAM;mBACG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;YACpC,MAAM;eACH,OAAO;qBACD,MAAM;uBACJ,MAAM;iBACZ,MAAM;mBACJ,MAAM;sBACH,eAAe;4BACT,OAAO;;;sBAyFb,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;;;UAlGlC,MAAM;mBACG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;YACpC,MAAM;eACH,OAAO;qBACD,MAAM;uBACJ,MAAM;iBACZ,MAAM;mBACJ,MAAM;sBACH,eAAe;4BACT,OAAO;;;;;OAsV/B,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,12 +1,28 @@
|
|
|
1
1
|
import { type LabelAttributes } from '@kong/kongponents';
|
|
2
2
|
export interface InputProps {
|
|
3
|
+
name: string;
|
|
3
4
|
labelAttributes?: LabelAttributes;
|
|
4
|
-
|
|
5
|
+
max?: number | string;
|
|
6
|
+
min?: number | string;
|
|
5
7
|
}
|
|
6
|
-
declare
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
slots: {
|
|
10
|
+
tooltip?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<InputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
17
|
"update:modelValue": (value: number | null) => any;
|
|
8
18
|
}, string, import("vue").PublicProps, Readonly<InputProps> & Readonly<{
|
|
9
19
|
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
10
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
11
22
|
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
12
28
|
//# sourceMappingURL=NumberField.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberField.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/NumberField.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberField.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/NumberField.vue"],"names":[],"mappings":"AAyFA,OAAO,EAAU,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAQhE,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACtB;AA2CD,iBAAS,cAAc;;yBAmFO,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFASnB,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,21 +1,42 @@
|
|
|
1
1
|
import { type LabelAttributes } from '@kong/kongponents';
|
|
2
|
+
import { type Slot } from 'vue';
|
|
3
|
+
import type { ResetLabelPathRule } from './types';
|
|
2
4
|
declare let __VLS_typeProps: {
|
|
3
|
-
|
|
5
|
+
name: string;
|
|
6
|
+
label?: string;
|
|
4
7
|
labelAttributes?: LabelAttributes;
|
|
5
8
|
required?: boolean;
|
|
6
9
|
defaultExpanded?: boolean;
|
|
7
10
|
defaultAdded?: boolean;
|
|
8
11
|
collapsible?: boolean;
|
|
9
12
|
appearance?: 'card' | 'default';
|
|
13
|
+
omit?: string[];
|
|
14
|
+
asChild?: boolean;
|
|
15
|
+
resetLabelPath?: ResetLabelPathRule;
|
|
16
|
+
fieldsOrder?: string[];
|
|
10
17
|
};
|
|
11
18
|
type __VLS_PublicProps = {
|
|
12
19
|
'added'?: boolean;
|
|
13
20
|
'expanded'?: boolean;
|
|
14
21
|
} & typeof __VLS_typeProps;
|
|
15
22
|
declare function __VLS_template(): {
|
|
16
|
-
slots: {
|
|
17
|
-
default
|
|
18
|
-
|
|
23
|
+
slots: Readonly<{
|
|
24
|
+
default?: Slot;
|
|
25
|
+
tooltip?: Slot;
|
|
26
|
+
"free-form-field-renderers-slot"?: Slot<{
|
|
27
|
+
name: string;
|
|
28
|
+
}>;
|
|
29
|
+
} & Record<string, Slot<{
|
|
30
|
+
name: string;
|
|
31
|
+
}>>> & {
|
|
32
|
+
default?: Slot;
|
|
33
|
+
tooltip?: Slot;
|
|
34
|
+
"free-form-field-renderers-slot"?: Slot<{
|
|
35
|
+
name: string;
|
|
36
|
+
}>;
|
|
37
|
+
} & Record<string, Slot<{
|
|
38
|
+
name: string;
|
|
39
|
+
}>>;
|
|
19
40
|
refs: {};
|
|
20
41
|
attrs: Partial<{}>;
|
|
21
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectField.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/ObjectField.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ObjectField.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/ObjectField.vue"],"names":[],"mappings":"AA6PA,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEzE,OAAO,EAAyC,KAAK,IAAI,EAAE,MAAM,KAAK,CAAA;AAMtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAYjD,QAAA,IAAI,eAAe,EAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,kBAAkB,CAAA;IACnC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB,CAAC;AAoFF,KAAK,iBAAiB,GAAG;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,OAAO,eAAe,CAAC;AAK3B,iBAAS,cAAc;;kBA/GT,IAAI;kBAEJ,IAAI;2CADM,IAAI,CAAC;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;;cAEZ,MAAM;;kBAH1B,IAAI;kBAEJ,IAAI;2CADM,IAAI,CAAC;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;;cAEZ,MAAM;;;WAsT1B,OAAO,IAA6B;EAEjD;AA0BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAOnB,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,14 +1,30 @@
|
|
|
1
1
|
import { type LabelAttributes } from '@kong/kongponents';
|
|
2
2
|
interface StringFieldProps {
|
|
3
|
+
name: string;
|
|
3
4
|
labelAttributes?: LabelAttributes;
|
|
4
|
-
modelValue?: string | null;
|
|
5
5
|
multiline?: boolean;
|
|
6
6
|
showVaultSecretPicker?: boolean;
|
|
7
|
+
showPasswordMaskToggle?: boolean;
|
|
8
|
+
type?: string;
|
|
7
9
|
}
|
|
8
|
-
declare
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
slots: {
|
|
12
|
+
tooltip?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import("vue").DefineComponent<StringFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
19
|
"update:modelValue": (value: string | null) => any;
|
|
10
20
|
}, string, import("vue").PublicProps, Readonly<StringFieldProps> & Readonly<{
|
|
11
21
|
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
12
22
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
24
|
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
14
30
|
//# sourceMappingURL=StringField.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringField.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/StringField.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StringField.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/StringField.vue"],"names":[],"mappings":"AA6IA,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAkB3E,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAuED,iBAAS,cAAc;;yBA0FO,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFASnB,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,20 +1,80 @@
|
|
|
1
|
-
import { type MaybeRefOrGetter } from 'vue';
|
|
1
|
+
import { type ComputedRef, type MaybeRefOrGetter, type Slot } from 'vue';
|
|
2
2
|
import type { LabelAttributes, SelectItem } from '@kong/kongponents';
|
|
3
|
+
import type { FormSchema, UnionFieldSchema } from '../../../types/plugins/form-schema';
|
|
4
|
+
import type { FormConfig, ResetLabelPathRule } from './types';
|
|
3
5
|
export declare const DATA_INJECTION_KEY: unique symbol;
|
|
4
6
|
export declare const SCHEMA_INJECTION_KEY: unique symbol;
|
|
5
|
-
export declare
|
|
6
|
-
|
|
7
|
+
export declare const FIELD_PATH_KEY: unique symbol;
|
|
8
|
+
export declare const FIELD_RENDERER_SLOTS: unique symbol;
|
|
9
|
+
export declare const FIELD_RENDERER_MATCHERS_MAP: unique symbol;
|
|
10
|
+
export declare const FORM_CONFIG: unique symbol;
|
|
11
|
+
export declare const FIELD_RESET_LABEL_PATH_SETTING: unique symbol;
|
|
12
|
+
export declare const FIELD_RENDERERS: "free-form-field-renderers-slot";
|
|
13
|
+
export declare function useSchemaHelpers(schema: MaybeRefOrGetter<FormSchema>): {
|
|
14
|
+
getSchema: {
|
|
15
|
+
(): FormSchema;
|
|
16
|
+
(path: string): UnionFieldSchema | undefined;
|
|
17
|
+
};
|
|
7
18
|
getDefault: (path?: string) => any;
|
|
8
19
|
getSelectItems: (fieldPath: string) => SelectItem[];
|
|
9
20
|
getLabelAttributes: (fieldPath: string) => LabelAttributes;
|
|
10
21
|
getPlaceholder: (fieldPath: string) => string | null;
|
|
11
22
|
};
|
|
12
23
|
export declare function useFormShared<T>(): {
|
|
13
|
-
getSchema:
|
|
24
|
+
getSchema: {
|
|
25
|
+
(): FormSchema;
|
|
26
|
+
(path: string): UnionFieldSchema | undefined;
|
|
27
|
+
};
|
|
14
28
|
getDefault: (path?: string) => any;
|
|
15
29
|
getSelectItems: (fieldPath: string) => SelectItem[];
|
|
16
30
|
getLabelAttributes: (fieldPath: string) => LabelAttributes;
|
|
17
31
|
getPlaceholder: (fieldPath: string) => string | null;
|
|
18
32
|
formData: NonNullable<T>;
|
|
33
|
+
formConfig: FormConfig;
|
|
19
34
|
};
|
|
35
|
+
export declare const useFieldPath: (name: MaybeRefOrGetter<string>) => ComputedRef<string>;
|
|
36
|
+
export declare const useFieldRenderer: (path: MaybeRefOrGetter<string>) => ComputedRef<Slot<any> | Slot<{
|
|
37
|
+
name: string;
|
|
38
|
+
}> | undefined>;
|
|
39
|
+
export declare function useLabelPath(fieldName: string, rule: MaybeRefOrGetter<ResetLabelPathRule | undefined>): import("vue").Ref<string, string>;
|
|
40
|
+
export declare function useFieldLabel(fieldPath: MaybeRefOrGetter<string>, resetLabelPathRule: MaybeRefOrGetter<ResetLabelPathRule | undefined>): ComputedRef<string>;
|
|
41
|
+
export declare function useFieldAttrs(fieldPath: MaybeRefOrGetter<string>, props: MaybeRefOrGetter<{
|
|
42
|
+
label?: string;
|
|
43
|
+
labelAttributes?: LabelAttributes;
|
|
44
|
+
required?: boolean;
|
|
45
|
+
placeholder?: string;
|
|
46
|
+
resetLabelPath?: ResetLabelPathRule;
|
|
47
|
+
}>): ComputedRef<{
|
|
48
|
+
placeholder: string | undefined;
|
|
49
|
+
labelAttributes: LabelAttributes;
|
|
50
|
+
label: string;
|
|
51
|
+
required: boolean | undefined;
|
|
52
|
+
resetLabelPath?: ResetLabelPathRule;
|
|
53
|
+
}>;
|
|
54
|
+
export type Ancestor = {
|
|
55
|
+
path?: string;
|
|
56
|
+
parent: Ancestor | null;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* a.b.c => { parent: { parent: { path: 'a.b', parent: { path: 'a', parent: null } } } }
|
|
60
|
+
*/
|
|
61
|
+
export declare function useFieldAncestors(fieldPath: MaybeRefOrGetter<string>): ComputedRef<Ancestor>;
|
|
62
|
+
export declare function useField<T = unknown>(name: MaybeRefOrGetter<string>): {
|
|
63
|
+
error: Error;
|
|
64
|
+
schema?: undefined;
|
|
65
|
+
path?: undefined;
|
|
66
|
+
renderer?: undefined;
|
|
67
|
+
value?: undefined;
|
|
68
|
+
ancestors?: undefined;
|
|
69
|
+
} | {
|
|
70
|
+
schema: ComputedRef<UnionFieldSchema | undefined>;
|
|
71
|
+
path: ComputedRef<string>;
|
|
72
|
+
renderer: ComputedRef<Slot<any> | Slot<{
|
|
73
|
+
name: string;
|
|
74
|
+
}> | undefined>;
|
|
75
|
+
value: import("vue").WritableComputedRef<T, T>;
|
|
76
|
+
ancestors: ComputedRef<Ancestor>;
|
|
77
|
+
error: null;
|
|
78
|
+
};
|
|
79
|
+
export declare function useIsAutoFocus(fieldAncestors?: MaybeRefOrGetter<Ancestor>): ComputedRef<boolean>;
|
|
20
80
|
//# sourceMappingURL=composables.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composables.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/composables.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"composables.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/composables.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6E,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,IAAI,EAAE,MAAM,KAAK,CAAA;AAGnJ,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACpE,OAAO,KAAK,EAAE,UAAU,EAAqB,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AAGzG,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAG7D,eAAO,MAAM,kBAAkB,eAA2B,CAAA;AAC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AgB,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,kBAAkB,CAAA;CACpC,CAAC;;;;;qBADiB,kBAAkB;GAiBtC;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;CACxB,CAAA;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,gBAAgB,CAAC,MAAM,CAAC,yBAepE;AAED,wBAAgB,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;EAyBnE;AAED,wBAAgB,cAAc,CAAC,cAAc,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,wBAsBzE"}
|
|
@@ -5,5 +5,14 @@ type ComponentPublicInstanceConstructor = {
|
|
|
5
5
|
export type PropType<T extends ComponentPublicInstanceConstructor> = InstanceType<T>['$props'] & {
|
|
6
6
|
[key: string]: unknown;
|
|
7
7
|
};
|
|
8
|
+
export type FormConfig<T extends Record<string, any> = Record<string, any>> = {
|
|
9
|
+
prepareFormData?: (data: any) => any;
|
|
10
|
+
transformLabel?: (label: string, fieldPath: string) => string;
|
|
11
|
+
hasValue?: (data: T | undefined) => boolean;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Defines how the form field's label path should be constructed.
|
|
15
|
+
*/
|
|
16
|
+
export type ResetLabelPathRule = 'inherit' | 'reset' | 'reset-children' | 'isolate' | 'isolate-children';
|
|
8
17
|
export {};
|
|
9
18
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,KAAK,CAAA;AAElD,KAAK,kCAAkC,GAAG;IACxC,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,uBAAuB,CAAC,GAAG,CAAC,CAAA;CACnD,CAAA;AAED,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,kCAAkC,IAC/D,YAAY,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,KAAK,CAAA;AAElD,KAAK,kCAAkC,GAAG;IACxC,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,uBAAuB,CAAC,GAAG,CAAC,CAAA;CACnD,CAAA;AAED,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,kCAAkC,IAC/D,YAAY,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAA;AAGxD,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;IAC5E,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAA;IACpC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,CAAA;IAC7D,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,SAAS,KAAK,OAAO,CAAA;CAC5C,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,OAAO,GACP,gBAAgB,GAChB,SAAS,GACT,kBAAkB,CAAA"}
|
|
@@ -2,4 +2,12 @@ export declare function toSelectItems<T extends string>(items: T[]): {
|
|
|
2
2
|
value: T;
|
|
3
3
|
label: T;
|
|
4
4
|
}[];
|
|
5
|
+
export declare const arraySymbol = "*";
|
|
6
|
+
export declare const rootSymbol = "$";
|
|
7
|
+
export declare const separator = ".";
|
|
8
|
+
export declare function resolve(...args: string[]): string;
|
|
9
|
+
export declare function resolveRoot(...args: string[]): string;
|
|
10
|
+
export declare function isAbsolute(p: string): boolean;
|
|
11
|
+
export declare function toArray(p: string): string[];
|
|
12
|
+
export declare function getName(p: string): string;
|
|
5
13
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAC5C,KAAK,EAAE,CAAC,EAAE,GACT;IAAE,KAAK,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,EAAE,CAE1B"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAC5C,KAAK,EAAE,CAAC,EAAE,GACT;IAAE,KAAK,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,EAAE,CAE1B;AAGD,eAAO,MAAM,WAAW,MAAM,CAAA;AAC9B,eAAO,MAAM,UAAU,MAAM,CAAA;AAC7B,eAAO,MAAM,SAAS,MAAM,CAAA;AAE5B,wBAAgB,OAAO,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAEjD;AAED,wBAAgB,WAAW,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAErD;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAE7C;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAE3C;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAGzC"}
|
|
@@ -53,7 +53,7 @@ declare const _default: {
|
|
|
53
53
|
arrayItems(item: import("..").Item): import("..").ReturnArrayItem;
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
pruneRecord: (config: Record<string, any>, schema:
|
|
56
|
+
pruneRecord: (config: Record<string, any>, schema: import("../types/plugins/form-schema").UnionFieldSchema) => Record<string, any>;
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { FGCollapsibleOptions, FGSlots } from '@kong-ui-public/forms';
|
|
2
2
|
import { type CustomSchemas } from '../types';
|
|
3
|
+
import type { UnionFieldSchema } from 'src/types/plugins/form-schema';
|
|
3
4
|
export interface Field extends Record<string, any> {
|
|
4
5
|
model: string;
|
|
5
6
|
required?: boolean;
|
|
@@ -83,6 +84,6 @@ export declare const useSchemas: (options?: UseSchemasOptions) => {
|
|
|
83
84
|
arrayItems(item: import("../types").Item): import("../types").ReturnArrayItem;
|
|
84
85
|
};
|
|
85
86
|
};
|
|
86
|
-
pruneRecord: (config: Record<string, any>, schema:
|
|
87
|
+
pruneRecord: (config: Record<string, any>, schema: UnionFieldSchema) => Record<string, any>;
|
|
87
88
|
};
|
|
88
89
|
//# sourceMappingURL=useSchemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSchemas.d.ts","sourceRoot":"","sources":["../../../src/composables/useSchemas.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AA6B1E,OAAO,EAAE,KAAK,aAAa,EAA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,GAAG,CAAC,OAAO,MAAM,eAAe,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,aAAa,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,cAAc,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,mBAAmB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;iCA1NrK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,kBAAkB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,mBAAmB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA2crG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,gBAAgB,KAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAyCjG,CAAA"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export type FieldSchemaType = 'string' | 'number' | 'integer' | 'boolean' | 'foreign' | 'array' | 'set' | 'map' | 'record' | 'function' | 'json';
|
|
2
|
+
export type AtLeastOneOfEntityCheck = {
|
|
3
|
+
at_least_one_of: string[];
|
|
4
|
+
};
|
|
5
|
+
export type EntityCheck = AtLeastOneOfEntityCheck;
|
|
6
|
+
export interface FieldSchema {
|
|
7
|
+
type: FieldSchemaType;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
default?: any;
|
|
10
|
+
description?: string;
|
|
11
|
+
referenceable?: boolean;
|
|
12
|
+
one_of?: any[];
|
|
13
|
+
help?: string;
|
|
14
|
+
entity_checks?: EntityCheck[];
|
|
15
|
+
}
|
|
16
|
+
export interface StringFieldSchema extends FieldSchema {
|
|
17
|
+
type: 'string';
|
|
18
|
+
encrypted?: boolean;
|
|
19
|
+
one_of?: string[];
|
|
20
|
+
len_eq?: number;
|
|
21
|
+
len_min?: number;
|
|
22
|
+
len_max?: number;
|
|
23
|
+
match?: string;
|
|
24
|
+
match_none?: {
|
|
25
|
+
pattern: string;
|
|
26
|
+
err: string;
|
|
27
|
+
}[];
|
|
28
|
+
match_all?: {
|
|
29
|
+
pattern: string;
|
|
30
|
+
err: string;
|
|
31
|
+
}[];
|
|
32
|
+
match_any?: {
|
|
33
|
+
patterns: string[];
|
|
34
|
+
err: string;
|
|
35
|
+
};
|
|
36
|
+
pattern?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface NumberLikeFieldSchema extends FieldSchema {
|
|
39
|
+
type: 'number' | 'integer';
|
|
40
|
+
one_of?: number[];
|
|
41
|
+
between?: [min: number, max: number];
|
|
42
|
+
gt?: number;
|
|
43
|
+
}
|
|
44
|
+
export interface BooleanFieldSchema extends FieldSchema {
|
|
45
|
+
type: 'boolean';
|
|
46
|
+
one_of?: boolean[];
|
|
47
|
+
}
|
|
48
|
+
export interface ArrayLikeFieldSchema extends FieldSchema {
|
|
49
|
+
type: 'array' | 'set';
|
|
50
|
+
elements: UnionFieldSchema;
|
|
51
|
+
len_min?: number;
|
|
52
|
+
len_max?: number;
|
|
53
|
+
}
|
|
54
|
+
export interface MapFieldSchema extends FieldSchema {
|
|
55
|
+
type: 'map';
|
|
56
|
+
keys: UnionFieldSchema;
|
|
57
|
+
values: UnionFieldSchema;
|
|
58
|
+
len_min?: number;
|
|
59
|
+
len_max?: number;
|
|
60
|
+
}
|
|
61
|
+
export type UnionFieldSchema = StringFieldSchema | NumberLikeFieldSchema | BooleanFieldSchema | ArrayLikeFieldSchema | MapFieldSchema | RecordFieldSchema;
|
|
62
|
+
export type NamedFieldSchema = {
|
|
63
|
+
[name: string]: UnionFieldSchema;
|
|
64
|
+
};
|
|
65
|
+
export interface RecordFieldSchema extends FieldSchema {
|
|
66
|
+
type: 'record';
|
|
67
|
+
fields: NamedFieldSchema[];
|
|
68
|
+
}
|
|
69
|
+
export interface FormSchema {
|
|
70
|
+
fields: NamedFieldSchema[];
|
|
71
|
+
type: 'record';
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=form-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3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BAAgB,EAAE,CAAA;IAC1B,IAAI,EAAE,QAAQ,CAAA;CACf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-plugins",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.19.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-plugins.umd.js",
|
|
6
6
|
"module": "./dist/entities-plugins.es.js",
|
|
@@ -26,23 +26,23 @@
|
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@kong/icons": "^1.26.0",
|
|
29
|
-
"@kong/kongponents": "^9.
|
|
29
|
+
"@kong/kongponents": "^9.30.0",
|
|
30
30
|
"axios": "^1.7.7",
|
|
31
31
|
"vue": ">= 3.3.13 < 4",
|
|
32
32
|
"vue-router": "^4.4.5",
|
|
33
|
-
"@kong-ui-public/entities-shared": "^3.22.
|
|
33
|
+
"@kong-ui-public/entities-shared": "^3.22.8",
|
|
34
34
|
"@kong-ui-public/i18n": "^2.3.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@kong/design-tokens": "1.17.4",
|
|
38
38
|
"@kong/icons": "^1.26.0",
|
|
39
|
-
"@kong/kongponents": "9.
|
|
39
|
+
"@kong/kongponents": "9.30.0",
|
|
40
40
|
"axios": "^1.7.7",
|
|
41
41
|
"vue": "^3.5.13",
|
|
42
42
|
"vue-router": "^4.4.5",
|
|
43
|
-
"@kong-ui-public/
|
|
44
|
-
"@kong-ui-public/entities-
|
|
45
|
-
"@kong-ui-public/
|
|
43
|
+
"@kong-ui-public/i18n": "^2.3.0",
|
|
44
|
+
"@kong-ui-public/entities-shared": "^3.22.8",
|
|
45
|
+
"@kong-ui-public/entities-vaults": "^3.17.10"
|
|
46
46
|
},
|
|
47
47
|
"repository": {
|
|
48
48
|
"type": "git",
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"marked": "^14.1.3",
|
|
63
|
-
"@kong-ui-public/entities-consumer-groups": "^3.8.
|
|
64
|
-
"@kong-ui-public/entities-consumers": "^3.9.
|
|
63
|
+
"@kong-ui-public/entities-consumer-groups": "^3.8.7",
|
|
64
|
+
"@kong-ui-public/entities-consumers": "^3.9.26",
|
|
65
|
+
"@kong-ui-public/entities-gateway-services": "^3.11.21",
|
|
65
66
|
"@kong-ui-public/entities-plugins-metadata": "^1.3.1",
|
|
66
|
-
"@kong-ui-public/entities-
|
|
67
|
-
"@kong-ui-public/forms": "^4.12.
|
|
68
|
-
"@kong-ui-public/entities-routes": "^3.11.12"
|
|
67
|
+
"@kong-ui-public/entities-routes": "^3.11.13",
|
|
68
|
+
"@kong-ui-public/forms": "^4.12.9"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"dev": "cross-env USE_SANDBOX=true vite",
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
3
|
-
//# sourceMappingURL=CacheForm.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CacheForm.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/RequestCallout/CacheForm.vue"],"names":[],"mappings":";AA+JA,wBAKG"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
calloutIndex: number;
|
|
3
|
-
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
4
|
-
calloutIndex: number;
|
|
5
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
-
export default _default;
|
|
7
|
-
//# sourceMappingURL=CalloutRequestForm.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalloutRequestForm.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/RequestCallout/CalloutRequestForm.vue"],"names":[],"mappings":";kBA2WgB,MAAM;;kBAAN,MAAM;;AA2kBtB,wBAMG"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
calloutIndex: number;
|
|
3
|
-
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
4
|
-
calloutIndex: number;
|
|
5
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
-
export default _default;
|
|
7
|
-
//# sourceMappingURL=CalloutResponseForm.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalloutResponseForm.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/RequestCallout/CalloutResponseForm.vue"],"names":[],"mappings":";kBA+EgB,MAAM;;kBAAN,MAAM;;AAyGtB,wBAMG"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
3
|
-
//# sourceMappingURL=RedisForm.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RedisForm.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/RequestCallout/RedisForm.vue"],"names":[],"mappings":";AA+jBA,wBAKG"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
3
|
-
//# sourceMappingURL=UpstreamForm.vue.d.ts.map
|