@ironsource/shared-ui 2.0.2-rc.3 → 2.1.0-rc.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/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_a64a46d0_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_38c0ed72_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_c38e97df_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_06dcfe6d_lang.css +1 -0
- package/FormRow.vue_vue_type_style_index_0_scoped_8daca9c2_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_d2743070_lang.css +1 -0
- package/SearchV4.vue_vue_type_style_index_0_scoped_1330ea8b_lang.css +1 -0
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_58a19def_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +23 -20
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +22 -20
- package/components/dropdown/v4/OptionV4.vue.d.ts +2 -2
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +17 -17
- package/components/dropdown/v4/index.d.ts +4 -4
- package/components/forms/FormContainer.vue.d.ts +9 -0
- package/components/forms/FormField.vue.d.ts +24 -0
- package/components/forms/index.d.ts +73 -0
- package/components/forms/validation/utils/scrollToElemets.d.ts +3 -0
- package/components/forms/validation/utils/types.d.ts +25 -0
- package/components/forms/validation/utils/useConvertErrorsSchema.d.ts +1 -0
- package/components/forms/validation/utils/useFormValidation.d.ts +3 -0
- package/components/layout/FormRow.vue.d.ts +46 -0
- package/components/layout/FormRow.vue.js +7 -0
- package/components/layout/FormRow.vue2.js +43 -0
- package/components/layout/index.d.ts +116 -1
- package/components/layout/index.js +4 -2
- package/components/search/v4/SearchV4.vue.d.ts +3 -0
- package/components/search/v4/SearchV4.vue.js +5 -5
- package/components/search/v4/SearchV4.vue2.js +15 -14
- package/components/search/v4/index.d.ts +3 -0
- package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
- package/components/snackbar/v4/SnackbarV4.vue2.js +7 -6
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
- package/index.d.ts +14 -8
- package/index.js +39 -37
- package/mocks/optionsWithIcons.d.ts +5 -0
- package/package.json +8 -3
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_44158e5f_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_cca772e9_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e5202bb9_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c6156fa0_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_17d78416_lang.css +0 -1
- package/SearchV4.vue_vue_type_style_index_0_scoped_215f0f29_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_48311746_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_cde15298_lang.css +0 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import FormField from './FormField.vue';
|
|
2
|
+
import { useFormValidation } from './validation/utils/useFormValidation';
|
|
3
|
+
export type * from './validation/utils/types';
|
|
4
|
+
declare const FormFieldTypes: () => (({
|
|
5
|
+
new (...args: any[]): {
|
|
6
|
+
$: import("vue").ComponentInternalInstance;
|
|
7
|
+
$data: {};
|
|
8
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
validationPath: {
|
|
10
|
+
type: import("vue").PropType<string>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
14
|
+
$attrs: {
|
|
15
|
+
[x: string]: unknown;
|
|
16
|
+
};
|
|
17
|
+
$refs: {
|
|
18
|
+
[x: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
$slots: Readonly<{
|
|
21
|
+
[name: string]: import("vue").Slot;
|
|
22
|
+
}>;
|
|
23
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
24
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
25
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
26
|
+
$el: any;
|
|
27
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
validationPath: {
|
|
29
|
+
type: import("vue").PropType<string>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
33
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
34
|
+
created?: (() => void) | (() => void)[];
|
|
35
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
36
|
+
mounted?: (() => void) | (() => void)[];
|
|
37
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
38
|
+
updated?: (() => void) | (() => void)[];
|
|
39
|
+
activated?: (() => void) | (() => void)[];
|
|
40
|
+
deactivated?: (() => void) | (() => void)[];
|
|
41
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
42
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
43
|
+
destroyed?: (() => void) | (() => void)[];
|
|
44
|
+
unmounted?: (() => void) | (() => void)[];
|
|
45
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
46
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
47
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
|
|
48
|
+
};
|
|
49
|
+
$forceUpdate: () => void;
|
|
50
|
+
$nextTick: typeof import("vue").nextTick;
|
|
51
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
52
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
validationPath: {
|
|
54
|
+
type: import("vue").PropType<string>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
58
|
+
__isFragment?: never;
|
|
59
|
+
__isTeleport?: never;
|
|
60
|
+
__isSuspense?: never;
|
|
61
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
validationPath: {
|
|
63
|
+
type: import("vue").PropType<string>;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
67
|
+
$slots: {
|
|
68
|
+
default?(_: {
|
|
69
|
+
validationPath: string;
|
|
70
|
+
}): any;
|
|
71
|
+
};
|
|
72
|
+
})) | (<T_1 extends object>({ formState, formValidationSchema, }: import("./validation/utils/types").UseFormValidationType<T_1>) => import("./validation/utils/types").UseFormValidationReponseType<T_1>))[];
|
|
73
|
+
export { FormField, useFormValidation, FormFieldTypes };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import * as yup from 'yup';
|
|
3
|
+
export type ValidationErrorsType<T> = Partial<Record<keyof T, string>>;
|
|
4
|
+
export type ValidationStateType<T> = {
|
|
5
|
+
isValid: boolean;
|
|
6
|
+
errors: ValidationErrorsType<T>;
|
|
7
|
+
};
|
|
8
|
+
export declare enum ScrollToAttributes {
|
|
9
|
+
ID = "id",
|
|
10
|
+
CLASS = "class",
|
|
11
|
+
DATA_TESTID = "data-testid"
|
|
12
|
+
}
|
|
13
|
+
type ScrollToElementsSchemaRecordType = Partial<Record<ScrollToAttributes, string>>;
|
|
14
|
+
export type FormValidationScrollElementsSchemaType<T> = Partial<Record<keyof T, ScrollToElementsSchemaRecordType>>;
|
|
15
|
+
export type FormValidationSchemaYupType<T> = Record<keyof T, yup.AnySchema<any, any, any, any>>;
|
|
16
|
+
export type UseFormValidationType<T> = {
|
|
17
|
+
formState: T;
|
|
18
|
+
formValidationSchema: FormValidationSchemaYupType<T>;
|
|
19
|
+
};
|
|
20
|
+
export type UseFormValidationReponseType<T> = {
|
|
21
|
+
validationErrors: ValidationErrorsType<T>;
|
|
22
|
+
isValid: Ref<boolean>;
|
|
23
|
+
validate: (formRef?: Ref<HTMLElement>) => void;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const convertFlatToNested: (flatObject: any) => {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { FormValidationSchemaYupType, ValidationStateType, UseFormValidationType, UseFormValidationReponseType } from './types';
|
|
2
|
+
export declare const yupValidation: <T>(schema: FormValidationSchemaYupType<T>, formState: T) => ValidationStateType<T>;
|
|
3
|
+
export declare const useFormValidation: <T extends object>({ formState, formValidationSchema, }: UseFormValidationType<T>) => UseFormValidationReponseType<T>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
label: string;
|
|
3
|
+
mandatory?: boolean;
|
|
4
|
+
testId?: string;
|
|
5
|
+
}>, {
|
|
6
|
+
label: string;
|
|
7
|
+
mandatory: boolean;
|
|
8
|
+
testId: string;
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
label: string;
|
|
11
|
+
mandatory?: boolean;
|
|
12
|
+
testId?: string;
|
|
13
|
+
}>, {
|
|
14
|
+
label: string;
|
|
15
|
+
mandatory: boolean;
|
|
16
|
+
testId: string;
|
|
17
|
+
}>>>, {
|
|
18
|
+
label: string;
|
|
19
|
+
mandatory: boolean;
|
|
20
|
+
testId: string;
|
|
21
|
+
}>, {
|
|
22
|
+
default?(_: {}): any;
|
|
23
|
+
}>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: import('vue').PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
36
|
+
default: D[K];
|
|
37
|
+
}> : P[K];
|
|
38
|
+
};
|
|
39
|
+
type __VLS_Prettify<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./FormRow.vue2.js";
|
|
2
|
+
/* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../FormRow.vue_vue_type_style_index_0_scoped_8daca9c2_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ _(o, [["__scopeId", "data-v-8daca9c2"]]);
|
|
5
|
+
export {
|
|
6
|
+
t as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import "../../FormRow.vue_vue_type_style_index_0_scoped_8daca9c2_lang.css"; import { defineComponent as c, openBlock as t, createElementBlock as i, createElementVNode as a, createVNode as m, unref as o, withCtx as l, createTextVNode as d, toDisplayString as u, createBlock as f, createCommentVNode as r, renderSlot as y } from "vue";
|
|
2
|
+
import n from "../typography/v4/Typography.vue.js";
|
|
3
|
+
const p = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "form-row"
|
|
6
|
+
}, _ = ["data-testid"], h = { class: "content" }, B = /* @__PURE__ */ c({
|
|
7
|
+
__name: "FormRow",
|
|
8
|
+
props: {
|
|
9
|
+
label: { default: "" },
|
|
10
|
+
mandatory: { type: Boolean, default: !1 },
|
|
11
|
+
testId: { default: "" }
|
|
12
|
+
},
|
|
13
|
+
setup(e) {
|
|
14
|
+
return (s, b) => e.label ? (t(), i("div", p, [
|
|
15
|
+
a("div", {
|
|
16
|
+
"data-testid": e.testId,
|
|
17
|
+
class: "label-container"
|
|
18
|
+
}, [
|
|
19
|
+
m(o(n), { variant: "inputLabel" }, {
|
|
20
|
+
default: l(() => [
|
|
21
|
+
d(u(e.label), 1)
|
|
22
|
+
]),
|
|
23
|
+
_: 1
|
|
24
|
+
}),
|
|
25
|
+
e.mandatory ? (t(), f(o(n), {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "mandatory"
|
|
28
|
+
}, {
|
|
29
|
+
default: l(() => [
|
|
30
|
+
d("*")
|
|
31
|
+
]),
|
|
32
|
+
_: 1
|
|
33
|
+
})) : r("", !0)
|
|
34
|
+
], 8, _),
|
|
35
|
+
a("div", h, [
|
|
36
|
+
y(s.$slots, "default", {}, void 0, !0)
|
|
37
|
+
])
|
|
38
|
+
])) : r("", !0);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
B as default
|
|
43
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import FormCard from './FormCard.vue';
|
|
2
2
|
import CardPanel from './CardPanel.vue';
|
|
3
3
|
import FoldableSection from './FoldableSection.vue';
|
|
4
|
+
import FormRow from './FormRow.vue';
|
|
4
5
|
declare const FormCardTypes: () => (({
|
|
5
6
|
new (...args: any[]): {
|
|
6
7
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -401,5 +402,119 @@ declare const FormCardTypes: () => (({
|
|
|
401
402
|
default?(_: {}): any;
|
|
402
403
|
footer?(_: {}): any;
|
|
403
404
|
};
|
|
405
|
+
})) | ({
|
|
406
|
+
new (...args: any[]): {
|
|
407
|
+
$: import("vue").ComponentInternalInstance;
|
|
408
|
+
$data: {};
|
|
409
|
+
$props: Partial<{
|
|
410
|
+
label: string;
|
|
411
|
+
mandatory: boolean;
|
|
412
|
+
testId: string;
|
|
413
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
414
|
+
label: {
|
|
415
|
+
type: import("vue").PropType<string>;
|
|
416
|
+
required: true;
|
|
417
|
+
default: string;
|
|
418
|
+
};
|
|
419
|
+
mandatory: {
|
|
420
|
+
type: import("vue").PropType<boolean>;
|
|
421
|
+
default: boolean;
|
|
422
|
+
};
|
|
423
|
+
testId: {
|
|
424
|
+
type: import("vue").PropType<string>;
|
|
425
|
+
default: string;
|
|
426
|
+
};
|
|
427
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "mandatory" | "testId">;
|
|
428
|
+
$attrs: {
|
|
429
|
+
[x: string]: unknown;
|
|
430
|
+
};
|
|
431
|
+
$refs: {
|
|
432
|
+
[x: string]: unknown;
|
|
433
|
+
};
|
|
434
|
+
$slots: Readonly<{
|
|
435
|
+
[name: string]: import("vue").Slot;
|
|
436
|
+
}>;
|
|
437
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
438
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
439
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
440
|
+
$el: any;
|
|
441
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
442
|
+
label: {
|
|
443
|
+
type: import("vue").PropType<string>;
|
|
444
|
+
required: true;
|
|
445
|
+
default: string;
|
|
446
|
+
};
|
|
447
|
+
mandatory: {
|
|
448
|
+
type: import("vue").PropType<boolean>;
|
|
449
|
+
default: boolean;
|
|
450
|
+
};
|
|
451
|
+
testId: {
|
|
452
|
+
type: import("vue").PropType<string>;
|
|
453
|
+
default: string;
|
|
454
|
+
};
|
|
455
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
456
|
+
label: string;
|
|
457
|
+
mandatory: boolean;
|
|
458
|
+
testId: string;
|
|
459
|
+
}, {}, string> & {
|
|
460
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
461
|
+
created?: (() => void) | (() => void)[];
|
|
462
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
463
|
+
mounted?: (() => void) | (() => void)[];
|
|
464
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
465
|
+
updated?: (() => void) | (() => void)[];
|
|
466
|
+
activated?: (() => void) | (() => void)[];
|
|
467
|
+
deactivated?: (() => void) | (() => void)[];
|
|
468
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
469
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
470
|
+
destroyed?: (() => void) | (() => void)[];
|
|
471
|
+
unmounted?: (() => void) | (() => void)[];
|
|
472
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
473
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
474
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
|
|
475
|
+
};
|
|
476
|
+
$forceUpdate: () => void;
|
|
477
|
+
$nextTick: typeof import("vue").nextTick;
|
|
478
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
479
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
480
|
+
label: {
|
|
481
|
+
type: import("vue").PropType<string>;
|
|
482
|
+
required: true;
|
|
483
|
+
default: string;
|
|
484
|
+
};
|
|
485
|
+
mandatory: {
|
|
486
|
+
type: import("vue").PropType<boolean>;
|
|
487
|
+
default: boolean;
|
|
488
|
+
};
|
|
489
|
+
testId: {
|
|
490
|
+
type: import("vue").PropType<string>;
|
|
491
|
+
default: string;
|
|
492
|
+
};
|
|
493
|
+
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
494
|
+
__isFragment?: never;
|
|
495
|
+
__isTeleport?: never;
|
|
496
|
+
__isSuspense?: never;
|
|
497
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
498
|
+
label: {
|
|
499
|
+
type: import("vue").PropType<string>;
|
|
500
|
+
required: true;
|
|
501
|
+
default: string;
|
|
502
|
+
};
|
|
503
|
+
mandatory: {
|
|
504
|
+
type: import("vue").PropType<boolean>;
|
|
505
|
+
default: boolean;
|
|
506
|
+
};
|
|
507
|
+
testId: {
|
|
508
|
+
type: import("vue").PropType<string>;
|
|
509
|
+
default: string;
|
|
510
|
+
};
|
|
511
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
512
|
+
label: string;
|
|
513
|
+
mandatory: boolean;
|
|
514
|
+
testId: string;
|
|
515
|
+
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
516
|
+
$slots: {
|
|
517
|
+
default?(_: {}): any;
|
|
518
|
+
};
|
|
404
519
|
})))[];
|
|
405
|
-
export { FormCard, CardPanel, FoldableSection, FormCardTypes };
|
|
520
|
+
export { FormRow, FormCard, CardPanel, FoldableSection, FormCardTypes };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import o from "./FormCard.vue.js";
|
|
2
2
|
import r from "./CardPanel.vue.js";
|
|
3
3
|
import m from "./FoldableSection.vue.js";
|
|
4
|
-
|
|
4
|
+
import t from "./FormRow.vue.js";
|
|
5
|
+
const d = () => [o, r, m, t];
|
|
5
6
|
export {
|
|
6
7
|
r as CardPanel,
|
|
7
8
|
m as FoldableSection,
|
|
8
9
|
o as FormCard,
|
|
9
|
-
|
|
10
|
+
d as FormCardTypes,
|
|
11
|
+
t as FormRow
|
|
10
12
|
};
|
|
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
testId: string;
|
|
10
10
|
autoFocus: boolean;
|
|
11
|
+
placeholder: string;
|
|
11
12
|
}>, {
|
|
12
13
|
inputRef: import("vue").Ref<any>;
|
|
13
14
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -22,11 +23,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
22
23
|
disabled: boolean;
|
|
23
24
|
testId: string;
|
|
24
25
|
autoFocus: boolean;
|
|
26
|
+
placeholder: string;
|
|
25
27
|
}>>> & {
|
|
26
28
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
27
29
|
}, {
|
|
28
30
|
disabled: boolean;
|
|
29
31
|
testId: string;
|
|
32
|
+
placeholder: string;
|
|
30
33
|
autoFocus: boolean;
|
|
31
34
|
}>;
|
|
32
35
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../SearchV4.
|
|
4
|
-
const
|
|
1
|
+
import e from "./SearchV4.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../SearchV4.vue_vue_type_style_index_0_scoped_1330ea8b_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-1330ea8b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import "../../../SearchV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../SearchV4.vue_vue_type_style_index_0_scoped_1330ea8b_lang.css"; import { defineComponent as p, openBlock as h, createElementBlock as V, mergeProps as m, unref as e, createVNode as a, withCtx as x, withDirectives as I, createElementVNode as v, vShow as C } from "vue";
|
|
2
|
+
import u from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import { SearchTestIdModifiers as d } from "../../../testids/index.js";
|
|
4
4
|
import { searchCommon as b } from "../common/Search.common.js";
|
|
5
|
-
import
|
|
6
|
-
import { useTestIdAttrs as
|
|
7
|
-
const
|
|
5
|
+
import y from "../../input/v4/TextField.vue.js";
|
|
6
|
+
import { useTestIdAttrs as B } from "../../../utils/testIds.js";
|
|
7
|
+
const S = /* @__PURE__ */ p({
|
|
8
8
|
__name: "SearchV4",
|
|
9
9
|
props: {
|
|
10
10
|
modelValue: null,
|
|
11
|
-
placeholder:
|
|
11
|
+
placeholder: { default: "Search" },
|
|
12
12
|
disabled: { type: Boolean, default: !1 },
|
|
13
13
|
testId: { default: "" },
|
|
14
14
|
autoFocus: { type: Boolean, default: !1 }
|
|
15
15
|
},
|
|
16
16
|
emits: ["update:modelValue"],
|
|
17
17
|
setup(t, { expose: f, emit: r }) {
|
|
18
|
-
const s = t, { inputRef: i, clearValue: n } = b(s, r),
|
|
18
|
+
const s = t, { inputRef: i, clearValue: n } = b(s, r), c = B(s.testId, d);
|
|
19
19
|
return f({
|
|
20
20
|
inputRef: i
|
|
21
|
-
}), (
|
|
22
|
-
a(e(
|
|
21
|
+
}), (g, o) => (h(), V("div", m({ class: "search-container" }, e(c)[e(d).CONTAINER]), [
|
|
22
|
+
a(e(y), {
|
|
23
23
|
ref_key: "inputRef",
|
|
24
24
|
ref: i,
|
|
25
25
|
"model-value": t.modelValue,
|
|
@@ -31,20 +31,21 @@ const T = /* @__PURE__ */ p({
|
|
|
31
31
|
"onUpdate:modelValue": o[0] || (o[0] = (l) => r("update:modelValue", l))
|
|
32
32
|
}, {
|
|
33
33
|
iconBefore: x(() => [
|
|
34
|
-
a(e(
|
|
34
|
+
a(e(u), {
|
|
35
35
|
name: "magnifying-glass",
|
|
36
36
|
size: "16px"
|
|
37
37
|
})
|
|
38
38
|
]),
|
|
39
39
|
_: 1
|
|
40
40
|
}, 8, ["model-value", "auto-focus", "placeholder", "disabled", "test-id"]),
|
|
41
|
-
I(v("div",
|
|
41
|
+
I(v("div", m({ class: "x-circle-wrapper" }, e(c)[e(d).CLEAR], {
|
|
42
42
|
onClick: o[1] || (o[1] = //@ts-ignore
|
|
43
43
|
(...l) => e(n) && e(n)(...l))
|
|
44
44
|
}), [
|
|
45
|
-
a(e(
|
|
45
|
+
a(e(u), {
|
|
46
46
|
name: "x-circle",
|
|
47
|
-
size: "16px"
|
|
47
|
+
size: "16px",
|
|
48
|
+
type: "fill"
|
|
48
49
|
})
|
|
49
50
|
], 16), [
|
|
50
51
|
[C, !!t.modelValue]
|
|
@@ -53,5 +54,5 @@ const T = /* @__PURE__ */ p({
|
|
|
53
54
|
}
|
|
54
55
|
});
|
|
55
56
|
export {
|
|
56
|
-
|
|
57
|
+
S as default
|
|
57
58
|
};
|
|
@@ -14,6 +14,7 @@ declare const SearchTypes: () => import("vue").DefineComponent<{
|
|
|
14
14
|
placeholder: {
|
|
15
15
|
type: import("vue").PropType<string>;
|
|
16
16
|
required: true;
|
|
17
|
+
default: string;
|
|
17
18
|
};
|
|
18
19
|
autoFocus: {
|
|
19
20
|
type: import("vue").PropType<boolean>;
|
|
@@ -39,6 +40,7 @@ declare const SearchTypes: () => import("vue").DefineComponent<{
|
|
|
39
40
|
placeholder: {
|
|
40
41
|
type: import("vue").PropType<string>;
|
|
41
42
|
required: true;
|
|
43
|
+
default: string;
|
|
42
44
|
};
|
|
43
45
|
autoFocus: {
|
|
44
46
|
type: import("vue").PropType<boolean>;
|
|
@@ -49,6 +51,7 @@ declare const SearchTypes: () => import("vue").DefineComponent<{
|
|
|
49
51
|
}, {
|
|
50
52
|
disabled: boolean;
|
|
51
53
|
testId: string;
|
|
54
|
+
placeholder: string;
|
|
52
55
|
autoFocus: boolean;
|
|
53
56
|
}>[];
|
|
54
57
|
export { default as Search } from './SearchV4.vue';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../SnackbarV4.
|
|
4
|
-
const
|
|
1
|
+
import c from "./SnackbarV4.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(c, [["__scopeId", "data-v-49c5ccea"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../SnackbarV4.
|
|
1
|
+
import "../../../SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css"; import { defineComponent as $, computed as p, openBlock as n, createBlock as c, Transition as A, withCtx as f, withDirectives as g, createElementVNode as a, mergeProps as l, unref as e, createVNode as z, createTextVNode as I, toDisplayString as T, createCommentVNode as d, renderSlot as h, vShow as B, createElementBlock as N, Fragment as O, renderList as V, withModifiers as x } from "vue";
|
|
2
2
|
import U from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import D from "../../button/v4/ButtonV4.vue.js";
|
|
4
4
|
import H from "../../button/v4/IconButtonV4.vue.js";
|
|
@@ -78,10 +78,10 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
78
78
|
class: "title"
|
|
79
79
|
}, e(r)[e(i).TITLE]), {
|
|
80
80
|
default: f(() => [
|
|
81
|
-
|
|
81
|
+
z(e(U), l({
|
|
82
82
|
name: e(y).iconName,
|
|
83
83
|
type: "fill",
|
|
84
|
-
size: "
|
|
84
|
+
size: "20px",
|
|
85
85
|
class: [e(y).class, "icon-container"]
|
|
86
86
|
}, e(r)[e(i).ICON]), null, 16, ["name", "class"]),
|
|
87
87
|
I(" " + T(t.title), 1)
|
|
@@ -106,9 +106,10 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
106
106
|
a("div", J, [
|
|
107
107
|
h(m.$slots, "actions", {}, () => [
|
|
108
108
|
t.actionButtons ? (n(), N("div", K, [
|
|
109
|
-
(n(!0), N(
|
|
109
|
+
(n(!0), N(O, null, V(t.actionButtons, (s, v) => (n(), c(e(D), l({
|
|
110
110
|
key: v,
|
|
111
|
-
"data-testid": t.testId ? `${t.testId}-${e(i).ACTION_BUTTON}-${v}` : ""
|
|
111
|
+
"data-testid": t.testId ? `${t.testId}-${e(i).ACTION_BUTTON}-${v}` : "",
|
|
112
|
+
size: "small"
|
|
112
113
|
}, { ...s }), null, 16, ["data-testid"]))), 128))
|
|
113
114
|
])) : d("", !0)
|
|
114
115
|
], !0)
|
|
@@ -120,7 +121,7 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
120
121
|
"icon-name": "x",
|
|
121
122
|
size: "small"
|
|
122
123
|
}, e(r)[e(i).CLOSE], {
|
|
123
|
-
onClick:
|
|
124
|
+
onClick: x(e(E), ["stop"])
|
|
124
125
|
}), null, 16, ["onClick"])) : d("", !0)
|
|
125
126
|
])
|
|
126
127
|
])
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./TooltipV4.vue2.js";
|
|
2
2
|
/* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TooltipV4.
|
|
3
|
+
// import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_58a19def_lang.css"; //*');
|
|
4
4
|
// import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const l = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
5
|
+
const l = /* @__PURE__ */ e(o, [["__scopeId", "data-v-58a19def"]]);
|
|
6
6
|
export {
|
|
7
7
|
l as default
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../TooltipV4.
|
|
1
|
+
import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_58a19def_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as c, openBlock as l, createBlock as d, unref as t, mergeProps as m, withCtx as r, renderSlot as f, createTextVNode as u, toDisplayString as h, createElementVNode as p } from "vue";
|
|
2
2
|
import y from "./TextWithTitleContent.vue.js";
|
|
3
3
|
import { Tooltip as T } from "floating-vue";
|
|
4
4
|
import { TooltipTestIdModifiers as i } from "../../../testids/index.js";
|