@ironsource/shared-ui 2.1.12-rc.44 → 2.1.12-rc.46
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/ConditionalDropdown.vue_vue_type_style_index_0_scoped_bdd6ee48_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +20 -20
- package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +39 -38
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
- package/components/includeExclude/index.d.ts +70 -70
- package/components/input/v4/TextField.vue.d.ts +12 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +129 -105
- package/components/input/v4/index.d.ts +46 -2
- package/index.d.ts +92 -4
- package/index.js +1 -1
- package/package.json +1 -1
- package/testids/index.d.ts +3 -1
- package/testids/index.js +7 -7
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_7114a241_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.custom-list-area[data-v-bdd6ee48]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 10px}.inline-search[data-v-bdd6ee48]{width:100%}.contain-accept[data-v-bdd6ee48]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-bdd6ee48]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-bdd6ee48]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";.font-tab-label2[data-v-3b7a3661],.font-chart-2[data-v-3b7a3661],.font-chart-1[data-v-3b7a3661]{font-family:Inter,sans-serif;font-weight:700}.font-chip-label[data-v-3b7a3661],.font-table-label[data-v-3b7a3661],.font-button[data-v-3b7a3661],.font-heading-6[data-v-3b7a3661],.font-heading-5[data-v-3b7a3661],.font-heading-4[data-v-3b7a3661],.font-heading-3[data-v-3b7a3661],.font-heading-2[data-v-3b7a3661],.font-heading-1[data-v-3b7a3661],.font-title[data-v-3b7a3661]{font-family:Inter,sans-serif;font-weight:600}.font-tab-label1[data-v-3b7a3661],.font-input-label[data-v-3b7a3661],.font-overline[data-v-3b7a3661],.font-subtitle-2[data-v-3b7a3661],.font-subtitle-1[data-v-3b7a3661]{font-family:Inter,sans-serif;font-weight:500}.font-caption[data-v-3b7a3661],.font-body-2[data-v-3b7a3661],.input-container .input[data-v-3b7a3661],.font-body-1[data-v-3b7a3661]{font-family:Inter,sans-serif;font-weight:400}.font-title[data-v-3b7a3661]{font-size:2.5rem;line-height:3rem;letter-spacing:-.055rem}.font-heading-1[data-v-3b7a3661]{font-size:1.5rem;line-height:1.75rem;letter-spacing:-.0285rem}.font-heading-2[data-v-3b7a3661]{font-size:1.125rem;line-height:1.75rem;letter-spacing:-.01575rem}.font-heading-3[data-v-3b7a3661]{font-size:1rem;line-height:1.5rem;letter-spacing:-.011rem}.font-heading-4[data-v-3b7a3661]{font-size:.875rem;line-height:1rem;letter-spacing:unset}.font-heading-5[data-v-3b7a3661]{font-size:.8125rem;line-height:16px;letter-spacing:unset}.font-heading-6[data-v-3b7a3661]{font-size:.75rem;line-height:.75rem;letter-spacing:0}.input-container .input[data-v-3b7a3661],.font-body-1[data-v-3b7a3661]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-body-2[data-v-3b7a3661]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-subtitle-1[data-v-3b7a3661]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-subtitle-2[data-v-3b7a3661]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-chart-1[data-v-3b7a3661]{font-size:1.5rem;line-height:1.5rem;letter-spacing:-.015rem}.font-chart-2[data-v-3b7a3661]{font-size:1.25rem;line-height:1.25rem;letter-spacing:-.0125rem}.font-button[data-v-3b7a3661]{font-size:.875rem;line-height:1.25rem;letter-spacing:.00875rem}.font-overline[data-v-3b7a3661]{font-size:.75rem;line-height:1rem;letter-spacing:.045rem;text-transform:uppercase}.font-caption[data-v-3b7a3661]{font-size:.75rem;line-height:1rem}.font-table-label[data-v-3b7a3661]{font-size:.8125rem;line-height:1.25rem;letter-spacing:.00813rem}.font-input-label[data-v-3b7a3661]{font-size:.8125rem;line-height:1rem;letter-spacing:.00813rem}.font-tab-label1[data-v-3b7a3661],.font-tab-label2[data-v-3b7a3661]{font-size:.875rem;line-height:1rem}.font-chip-label[data-v-3b7a3661]{font-size:.75rem;line-height:1rem}h1[data-v-3b7a3661],h2[data-v-3b7a3661],h3[data-v-3b7a3661],h4[data-v-3b7a3661],h5[data-v-3b7a3661],h6[data-v-3b7a3661]{margin:0}.disabled .input[data-v-3b7a3661]::placeholder{color:var(--text-disabled)}.disabled .input-container[data-v-3b7a3661]{cursor:no-drop;background-color:var(--action-disabled-background)}.disabled .input-container[data-v-3b7a3661]:hover{outline:1px solid var(--action-outlined-border);background-color:var(--action-disabled-background)}.input-size-small[data-v-3b7a3661]{height:28px}.input-size-medium[data-v-3b7a3661]{height:32px}.input-size-large[data-v-3b7a3661]{height:40px}.input-with-label-container[data-v-3b7a3661]{display:flex;flex-direction:column}.input-container[data-v-3b7a3661]{flex-grow:2;display:flex;flex-direction:row;align-items:center;border-radius:var(--border-radius-md);background:var(--default-main);outline:1px solid var(--action-outlined-border);outline-offset:-1px;padding:0 var(--spacing-100);position:relative;gap:var(--spacing-50)}.input-container[data-v-3b7a3661]:hover{outline:1px solid var(--action-active);background-color:var(--action-hover)}.input-container .input[data-v-3b7a3661]{padding:0;width:100%;border:none;background:transparent;color:var(--text-primary);line-height:normal}.input-container .input[data-v-3b7a3661]:focus{outline:none}.input-container .input[data-v-3b7a3661]:disabled{color:var(--text-disabled);cursor:no-drop}.input-container .input.view-only[data-v-3b7a3661]{color:var(--text-disabled)}.input-container .input[type=number][data-v-3b7a3661]::-webkit-inner-spin-button{opacity:.7;transform:scale(1.1)}.input-container .hide-arrows.input[type=number][data-v-3b7a3661]::-webkit-inner-spin-button,.input-container .hide-arrows.input[type=number][data-v-3b7a3661]::-webkit-outer-spin-button{margin:0;-webkit-appearance:none;appearance:none}.input-container .input[type=password][data-v-3b7a3661]{letter-spacing:4px}.input-container[data-v-3b7a3661] ::placeholder{color:var(--text-secondary);letter-spacing:normal}.input-container .label-inside[data-v-3b7a3661]::placeholder{color:var(--text-primary)}.input-container .icon-container[data-v-3b7a3661]{display:flex;align-items:center;color:var(--text-secondary)}.input-container .icon-before[data-v-3b7a3661]{padding-right:var(--spacing-50)}.input-container .icon-after[data-v-3b7a3661]{padding-left:var(--spacing-50)}.prefix-text[data-v-3b7a3661]{color:var(--text-secondary, #646464);margin-right:var(--spacing-50)}.suffix-text[data-v-3b7a3661]{color:var(--text-secondary, #646464)}.focused[data-v-3b7a3661],.focused[data-v-3b7a3661]:hover{background-color:var(--action-hover);outline:2px solid var(--primary-main);outline-offset:-2px}.error-icon.error-icon[data-v-3b7a3661],.error-icon.error-icon[data-v-3b7a3661]:hover{color:var(--error-main)}.label-direction-left[data-v-3b7a3661]{flex-direction:row;align-items:center;justify-content:space-between}.apply-button[data-v-3b7a3661]{cursor:pointer;color:var(--default-contrast-text);width:var(--spacing-250);height:var(--spacing-250)}.inline-error[data-v-3b7a3661]{cursor:pointer;color:var(--error-main);display:flex;justify-content:center;align-items:center}.footer[data-v-3b7a3661]{display:flex;justify-content:flex-end;margin-top:var(--spacing-50)}.footer.footer-absolute[data-v-3b7a3661]{position:absolute;bottom:calc(0px - var(--spacing-300))}.password-visibility-toggle[data-v-3b7a3661]{cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-secondary)}.clear-button[data-v-3b7a3661]{color:var(--action-active);cursor:pointer}.clear-button[data-v-3b7a3661]:hover{color:var(--text-primary)}.loading-indicator[data-v-3b7a3661]{width:16px;height:16px;color:var(--action-active)}.loading-indicator[data-v-3b7a3661] circle{stroke:var(--action-active)}.variant-success .input-container[data-v-3b7a3661],.variant-success .input-container[data-v-3b7a3661]:hover{outline:2px solid var(--success-dark)}.variant-error .input-container[data-v-3b7a3661],.variant-error .input-container[data-v-3b7a3661]:hover{outline:2px solid var(--error-main)}.variant-warning .input-container[data-v-3b7a3661],.variant-warning .input-container[data-v-3b7a3661]:hover{outline:2px solid var(--warning-dark)}
|
|
@@ -189,6 +189,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
189
189
|
selected: any;
|
|
190
190
|
placeholder: string;
|
|
191
191
|
autoFocus: boolean;
|
|
192
|
+
clearable: boolean;
|
|
192
193
|
multi: boolean;
|
|
193
194
|
defaultOpen: boolean;
|
|
194
195
|
keepOpen: boolean;
|
|
@@ -201,7 +202,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
201
202
|
searchPlaceholder: string;
|
|
202
203
|
helperText: string;
|
|
203
204
|
showButtonOnOpen: boolean;
|
|
204
|
-
clearable: boolean;
|
|
205
205
|
multiOptionsPlaceholderPrefix: string;
|
|
206
206
|
multiOptionsPlaceholderSuffix: string;
|
|
207
207
|
darkTheme: boolean;
|
|
@@ -25,6 +25,7 @@ declare const DropdownTypes: () => (({
|
|
|
25
25
|
selected: any;
|
|
26
26
|
placeholder: string;
|
|
27
27
|
autoFocus: boolean;
|
|
28
|
+
clearable: boolean;
|
|
28
29
|
multi: boolean;
|
|
29
30
|
defaultOpen: boolean;
|
|
30
31
|
keepOpen: boolean;
|
|
@@ -37,7 +38,6 @@ declare const DropdownTypes: () => (({
|
|
|
37
38
|
searchPlaceholder: string;
|
|
38
39
|
helperText: string;
|
|
39
40
|
showButtonOnOpen: boolean;
|
|
40
|
-
clearable: boolean;
|
|
41
41
|
multiOptionsPlaceholderPrefix: string;
|
|
42
42
|
multiOptionsPlaceholderSuffix: string;
|
|
43
43
|
darkTheme: boolean;
|
|
@@ -124,6 +124,10 @@ declare const DropdownTypes: () => (({
|
|
|
124
124
|
type: import("vue").PropType<boolean>;
|
|
125
125
|
default: boolean;
|
|
126
126
|
};
|
|
127
|
+
clearable: {
|
|
128
|
+
type: import("vue").PropType<boolean>;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
127
131
|
multi: {
|
|
128
132
|
type: import("vue").PropType<boolean>;
|
|
129
133
|
default: boolean;
|
|
@@ -179,10 +183,6 @@ declare const DropdownTypes: () => (({
|
|
|
179
183
|
type: import("vue").PropType<boolean>;
|
|
180
184
|
default: boolean;
|
|
181
185
|
};
|
|
182
|
-
clearable: {
|
|
183
|
-
type: import("vue").PropType<boolean>;
|
|
184
|
-
default: boolean;
|
|
185
|
-
};
|
|
186
186
|
multiOptionsPlaceholderPrefix: {
|
|
187
187
|
type: import("vue").PropType<string>;
|
|
188
188
|
default: string;
|
|
@@ -203,7 +203,7 @@ declare const DropdownTypes: () => (({
|
|
|
203
203
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
204
204
|
onOpened?: () => any;
|
|
205
205
|
onClosed?: () => any;
|
|
206
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "error" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "autoFocus" | "multi" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "inlineSearch" | "onSearch" | "noResultsText" | "searchPlaceholder" | "helperText" | "showButtonOnOpen" | "
|
|
206
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "error" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "autoFocus" | "clearable" | "multi" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "inlineSearch" | "onSearch" | "noResultsText" | "searchPlaceholder" | "helperText" | "showButtonOnOpen" | "multiOptionsPlaceholderPrefix" | "multiOptionsPlaceholderSuffix" | "darkTheme">;
|
|
207
207
|
$attrs: {
|
|
208
208
|
[x: string]: unknown;
|
|
209
209
|
};
|
|
@@ -300,6 +300,10 @@ declare const DropdownTypes: () => (({
|
|
|
300
300
|
type: import("vue").PropType<boolean>;
|
|
301
301
|
default: boolean;
|
|
302
302
|
};
|
|
303
|
+
clearable: {
|
|
304
|
+
type: import("vue").PropType<boolean>;
|
|
305
|
+
default: boolean;
|
|
306
|
+
};
|
|
303
307
|
multi: {
|
|
304
308
|
type: import("vue").PropType<boolean>;
|
|
305
309
|
default: boolean;
|
|
@@ -355,10 +359,6 @@ declare const DropdownTypes: () => (({
|
|
|
355
359
|
type: import("vue").PropType<boolean>;
|
|
356
360
|
default: boolean;
|
|
357
361
|
};
|
|
358
|
-
clearable: {
|
|
359
|
-
type: import("vue").PropType<boolean>;
|
|
360
|
-
default: boolean;
|
|
361
|
-
};
|
|
362
362
|
multiOptionsPlaceholderPrefix: {
|
|
363
363
|
type: import("vue").PropType<string>;
|
|
364
364
|
default: string;
|
|
@@ -409,6 +409,7 @@ declare const DropdownTypes: () => (({
|
|
|
409
409
|
selected: any;
|
|
410
410
|
placeholder: string;
|
|
411
411
|
autoFocus: boolean;
|
|
412
|
+
clearable: boolean;
|
|
412
413
|
multi: boolean;
|
|
413
414
|
defaultOpen: boolean;
|
|
414
415
|
keepOpen: boolean;
|
|
@@ -421,7 +422,6 @@ declare const DropdownTypes: () => (({
|
|
|
421
422
|
searchPlaceholder: string;
|
|
422
423
|
helperText: string;
|
|
423
424
|
showButtonOnOpen: boolean;
|
|
424
|
-
clearable: boolean;
|
|
425
425
|
multiOptionsPlaceholderPrefix: string;
|
|
426
426
|
multiOptionsPlaceholderSuffix: string;
|
|
427
427
|
darkTheme: boolean;
|
|
@@ -528,6 +528,10 @@ declare const DropdownTypes: () => (({
|
|
|
528
528
|
type: import("vue").PropType<boolean>;
|
|
529
529
|
default: boolean;
|
|
530
530
|
};
|
|
531
|
+
clearable: {
|
|
532
|
+
type: import("vue").PropType<boolean>;
|
|
533
|
+
default: boolean;
|
|
534
|
+
};
|
|
531
535
|
multi: {
|
|
532
536
|
type: import("vue").PropType<boolean>;
|
|
533
537
|
default: boolean;
|
|
@@ -583,10 +587,6 @@ declare const DropdownTypes: () => (({
|
|
|
583
587
|
type: import("vue").PropType<boolean>;
|
|
584
588
|
default: boolean;
|
|
585
589
|
};
|
|
586
|
-
clearable: {
|
|
587
|
-
type: import("vue").PropType<boolean>;
|
|
588
|
-
default: boolean;
|
|
589
|
-
};
|
|
590
590
|
multiOptionsPlaceholderPrefix: {
|
|
591
591
|
type: import("vue").PropType<string>;
|
|
592
592
|
default: string;
|
|
@@ -697,6 +697,10 @@ declare const DropdownTypes: () => (({
|
|
|
697
697
|
type: import("vue").PropType<boolean>;
|
|
698
698
|
default: boolean;
|
|
699
699
|
};
|
|
700
|
+
clearable: {
|
|
701
|
+
type: import("vue").PropType<boolean>;
|
|
702
|
+
default: boolean;
|
|
703
|
+
};
|
|
700
704
|
multi: {
|
|
701
705
|
type: import("vue").PropType<boolean>;
|
|
702
706
|
default: boolean;
|
|
@@ -752,10 +756,6 @@ declare const DropdownTypes: () => (({
|
|
|
752
756
|
type: import("vue").PropType<boolean>;
|
|
753
757
|
default: boolean;
|
|
754
758
|
};
|
|
755
|
-
clearable: {
|
|
756
|
-
type: import("vue").PropType<boolean>;
|
|
757
|
-
default: boolean;
|
|
758
|
-
};
|
|
759
759
|
multiOptionsPlaceholderPrefix: {
|
|
760
760
|
type: import("vue").PropType<string>;
|
|
761
761
|
default: string;
|
|
@@ -806,6 +806,7 @@ declare const DropdownTypes: () => (({
|
|
|
806
806
|
selected: any;
|
|
807
807
|
placeholder: string;
|
|
808
808
|
autoFocus: boolean;
|
|
809
|
+
clearable: boolean;
|
|
809
810
|
multi: boolean;
|
|
810
811
|
defaultOpen: boolean;
|
|
811
812
|
keepOpen: boolean;
|
|
@@ -818,7 +819,6 @@ declare const DropdownTypes: () => (({
|
|
|
818
819
|
searchPlaceholder: string;
|
|
819
820
|
helperText: string;
|
|
820
821
|
showButtonOnOpen: boolean;
|
|
821
|
-
clearable: boolean;
|
|
822
822
|
multiOptionsPlaceholderPrefix: string;
|
|
823
823
|
multiOptionsPlaceholderSuffix: string;
|
|
824
824
|
darkTheme: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ConditionalDropdown.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../ConditionalDropdown.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_bdd6ee48_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-bdd6ee48"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../ConditionalDropdown.
|
|
2
|
-
import
|
|
1
|
+
import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_bdd6ee48_lang.css"; import { defineComponent as H, computed as b, ref as s, watch as g, onMounted as J, resolveComponent as X, openBlock as B, createBlock as Y, unref as p, createSlots as Z, withCtx as f, createVNode as y, mergeProps as _, createElementVNode as ee, isRef as le, normalizeProps as F, guardReactiveProps as I, createElementBlock as oe, createTextVNode as te, toDisplayString as ne, createCommentVNode as ae, renderSlot as ie } from "vue";
|
|
2
|
+
import U from "./DropdownV4.vue.js";
|
|
3
3
|
import "./DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "./IconButtonDropdownTrigger.vue.js";
|
|
5
5
|
import ue from "./ChipDropdownTrigger.vue.js";
|
|
@@ -42,8 +42,8 @@ const pe = { class: "conditional-container" }, ve = {
|
|
|
42
42
|
triggerShownValuesCount: { default: 1 }
|
|
43
43
|
},
|
|
44
44
|
emits: ["update:selectedCondition", "update:appliedSelections", "clear", "closed"],
|
|
45
|
-
setup(
|
|
46
|
-
const e =
|
|
45
|
+
setup(i, { emit: h }) {
|
|
46
|
+
const e = i, S = b({
|
|
47
47
|
get: () => e.appliedSelections,
|
|
48
48
|
set: (l) => {
|
|
49
49
|
h("update:appliedSelections", l);
|
|
@@ -65,7 +65,7 @@ const pe = { class: "conditional-container" }, ve = {
|
|
|
65
65
|
const A = () => {
|
|
66
66
|
const { appliedSelections: l } = e;
|
|
67
67
|
return l ? Array.isArray(l) ? l : [l] : [];
|
|
68
|
-
}, D = s(null), v = s(!0), t = s([]),
|
|
68
|
+
}, D = s(null), v = s(!0), t = s([]), u = s(A()), N = s(!0), c = s(!1), w = s(!1), r = s(e.searchQuery), M = s(""), C = s(e.label), K = s([]), E = b(() => (!r.value || r.value?.length < e.minCharsToStart) && !t.value.length ? `Enter at least ${e.minCharsToStart} characters to begin` : "No results found"), Q = b(() => {
|
|
69
69
|
const l = v.value ? 4 : 4.5, o = t.value.length > 4 ? t.value.length : l;
|
|
70
70
|
if (e.groupedOptions) {
|
|
71
71
|
let d = 0;
|
|
@@ -75,8 +75,8 @@ const pe = { class: "conditional-container" }, ve = {
|
|
|
75
75
|
}
|
|
76
76
|
return o > l ? o : l;
|
|
77
77
|
}), V = (l, o) => {
|
|
78
|
-
if (e.infiniteLoading && a.value.multi && Array.isArray(
|
|
79
|
-
const d = [], n =
|
|
78
|
+
if (e.infiniteLoading && a.value.multi && Array.isArray(u.value) && u.value.length && l && o.length) {
|
|
79
|
+
const d = [], n = u.value.filter(
|
|
80
80
|
(m) => m[e.optionNameKey].includes(l)
|
|
81
81
|
);
|
|
82
82
|
return o.forEach((m) => {
|
|
@@ -129,7 +129,7 @@ const pe = { class: "conditional-container" }, ve = {
|
|
|
129
129
|
...t.value
|
|
130
130
|
] : t.value.length && t.value[0].conditionalOptions && t.value.shift();
|
|
131
131
|
}, k = () => {
|
|
132
|
-
v.value &&
|
|
132
|
+
v.value && u.value.length === 0 ? C.value = e.label : C.value = `${e.label} ${a.value.label.toLowerCase()}`;
|
|
133
133
|
};
|
|
134
134
|
g(r, () => {
|
|
135
135
|
O(r.value);
|
|
@@ -142,60 +142,60 @@ const pe = { class: "conditional-container" }, ve = {
|
|
|
142
142
|
}
|
|
143
143
|
);
|
|
144
144
|
const z = () => {
|
|
145
|
-
v.value &&
|
|
145
|
+
v.value && u.value.length === 0 ? (S.value = [], a.value = null) : (M.value = r.value, S.value = v.value ? [...u.value] : { ...u.value }, N.value = v.value), h("update:selectedCondition", a.value), k();
|
|
146
146
|
};
|
|
147
147
|
g(a, (l, o) => {
|
|
148
|
-
a.value.multi ? (c.value = !0, !o.multi && l.multi && (Array.isArray(e.appliedSelections) ?
|
|
148
|
+
a.value.multi ? (c.value = !0, !o.multi && l.multi && (Array.isArray(e.appliedSelections) ? u.value = e.appliedSelections : u.value = [e.appliedSelections]), setTimeout(() => {
|
|
149
149
|
c.value = !1, v.value = !0;
|
|
150
150
|
}, 100)) : (!o.multi && !l.multi && (c.value = !0), setTimeout(() => {
|
|
151
151
|
!o.multi && !l.multi && (c.value = !1), v.value = !1;
|
|
152
152
|
}, 100));
|
|
153
153
|
}), g(S, () => {
|
|
154
|
-
|
|
154
|
+
u.value = A();
|
|
155
155
|
});
|
|
156
156
|
const P = (l) => {
|
|
157
157
|
K.value = l;
|
|
158
158
|
}, j = () => {
|
|
159
|
-
|
|
159
|
+
u.value = [], S.value = [], a.value = null, h("update:selectedCondition", null), C.value = e.label, r.value = "", h("clear");
|
|
160
160
|
}, W = (l) => {
|
|
161
|
-
a.value === null && (a.value = e.conditionalOptions[0]), l && a.value.multi && e.infiniteLoading &&
|
|
161
|
+
a.value === null && (a.value = e.conditionalOptions[0]), l && a.value.multi && e.infiniteLoading && u.value && (t.value = u.value, r.value && O(r.value));
|
|
162
162
|
};
|
|
163
163
|
J(() => {
|
|
164
|
-
(e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) && O(e.searchQuery), e.appliedSelections && Array.isArray(e.appliedSelections) && (t.value = e.appliedSelections,
|
|
164
|
+
(e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) && O(e.searchQuery), e.appliedSelections && Array.isArray(e.appliedSelections) && (t.value = e.appliedSelections, u.value = e.appliedSelections, K.value = e.appliedSelections), k();
|
|
165
165
|
});
|
|
166
166
|
const q = () => {
|
|
167
167
|
h("closed");
|
|
168
168
|
};
|
|
169
169
|
return (l, o) => {
|
|
170
170
|
const d = X("ButtonDropdownTrigger");
|
|
171
|
-
return B(), Y(p(
|
|
171
|
+
return B(), Y(p(U), {
|
|
172
172
|
ref_key: "dropdownRef",
|
|
173
173
|
ref: D,
|
|
174
|
-
selected:
|
|
175
|
-
"onUpdate:selected": o[2] || (o[2] = (n) =>
|
|
174
|
+
selected: u.value,
|
|
175
|
+
"onUpdate:selected": o[2] || (o[2] = (n) => u.value = n),
|
|
176
176
|
"predefined-trigger": "chip",
|
|
177
|
-
"display-value": (n) => n?.[
|
|
177
|
+
"display-value": (n) => n?.[i.optionNameKey],
|
|
178
178
|
multi: v.value,
|
|
179
179
|
options: t.value,
|
|
180
180
|
placeholder: C.value,
|
|
181
181
|
"search-placeholder": "Search",
|
|
182
|
-
"option-name-key":
|
|
182
|
+
"option-name-key": i.optionNameKey,
|
|
183
183
|
"with-conditions": "",
|
|
184
184
|
"inline-search": "",
|
|
185
185
|
"custom-number-of-displayed-options": p(Q),
|
|
186
186
|
"options-list-width": "330px",
|
|
187
|
-
loading: c.value ||
|
|
187
|
+
loading: c.value || i.loadingOverride,
|
|
188
188
|
"load-more-loading": w.value,
|
|
189
|
-
"comparing-key":
|
|
190
|
-
"is-open":
|
|
191
|
-
"infinite-loading":
|
|
192
|
-
"show-select-all": !
|
|
193
|
-
"grouped-options":
|
|
194
|
-
"option-flag-key":
|
|
195
|
-
"option-image-key":
|
|
196
|
-
"option-icon-key":
|
|
197
|
-
"option-icon-type":
|
|
198
|
-
"trigger-shown-values-count":
|
|
189
|
+
"comparing-key": i.comparingKey,
|
|
190
|
+
"is-open": i.isOpen,
|
|
191
|
+
"infinite-loading": i.infiniteLoading,
|
|
192
|
+
"show-select-all": !i.infiniteLoading && !r.value,
|
|
193
|
+
"grouped-options": i.groupedOptions,
|
|
194
|
+
"option-flag-key": i.optionFlagKey,
|
|
195
|
+
"option-image-key": i.optionImageKey,
|
|
196
|
+
"option-icon-key": i.optionIconKey,
|
|
197
|
+
"option-icon-type": i.optionIconType,
|
|
198
|
+
"trigger-shown-values-count": i.triggerShownValuesCount,
|
|
199
199
|
"onUpdate:isOpen": W,
|
|
200
200
|
onOnsearch: O,
|
|
201
201
|
onApply: z,
|
|
@@ -209,25 +209,26 @@ const pe = { class: "conditional-container" }, ve = {
|
|
|
209
209
|
"selected-option": p(S),
|
|
210
210
|
multi: N.value,
|
|
211
211
|
"cancel-all-selected-display": "",
|
|
212
|
-
"
|
|
213
|
-
"
|
|
212
|
+
"test-id": i.testId,
|
|
213
|
+
"display-value-in-quotes": !Array.isArray(u.value) && u.value.conditionalOptions,
|
|
214
|
+
"shown-values-count": i.triggerShownValuesCount,
|
|
214
215
|
onClear: j
|
|
215
|
-
}), null, 16, ["label", "selected-option", "multi", "display-value-in-quotes", "shown-values-count"])
|
|
216
|
+
}), null, 16, ["label", "selected-option", "multi", "test-id", "display-value-in-quotes", "shown-values-count"])
|
|
216
217
|
]),
|
|
217
218
|
"dropdown-conditions": f(() => [
|
|
218
219
|
ee("div", pe, [
|
|
219
|
-
y(p(
|
|
220
|
+
y(p(U), {
|
|
220
221
|
selected: p(a),
|
|
221
222
|
"onUpdate:selected": o[0] || (o[0] = (n) => le(a) ? a.value = n : null),
|
|
222
|
-
options:
|
|
223
|
+
options: i.conditionalOptions,
|
|
223
224
|
"option-name-key": "label",
|
|
224
225
|
"display-value": (n) => n?.label,
|
|
225
226
|
container: ".conditional-container",
|
|
226
227
|
size: "small"
|
|
227
228
|
}, {
|
|
228
229
|
"dropdown-trigger": f(({ buttonTriggerProps: n }) => [
|
|
229
|
-
y(d, F(
|
|
230
|
-
y(p(re), F(
|
|
230
|
+
y(d, F(I(n)), null, 16),
|
|
231
|
+
y(p(re), F(I(n)), null, 16)
|
|
231
232
|
]),
|
|
232
233
|
_: 1
|
|
233
234
|
}, 8, ["selected", "options", "display-value"])
|
|
@@ -241,7 +242,7 @@ const pe = { class: "conditional-container" }, ve = {
|
|
|
241
242
|
placeholder: "Search",
|
|
242
243
|
variant: "transparent",
|
|
243
244
|
size: "md",
|
|
244
|
-
"auto-focus":
|
|
245
|
+
"auto-focus": i.autoFocusSearch
|
|
245
246
|
}, null, 8, ["modelValue", "auto-focus"])
|
|
246
247
|
]),
|
|
247
248
|
"custom-list-area": f(() => [
|
|
@@ -84,9 +84,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
84
84
|
searchAttribute: string;
|
|
85
85
|
isLoading: boolean;
|
|
86
86
|
showIcon: boolean;
|
|
87
|
+
clearable: boolean;
|
|
87
88
|
iconKey: string;
|
|
88
89
|
searchPlaceholder: string;
|
|
89
|
-
clearable: boolean;
|
|
90
90
|
titleText: string;
|
|
91
91
|
distanceOffset: number;
|
|
92
92
|
skiddingOffset: number;
|
|
@@ -26,8 +26,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
26
26
|
titleText: string;
|
|
27
27
|
}>>>, {
|
|
28
28
|
disabled: boolean;
|
|
29
|
-
subtitle: string;
|
|
30
29
|
clearable: boolean;
|
|
30
|
+
subtitle: string;
|
|
31
31
|
titleText: string;
|
|
32
32
|
showCheckbox: boolean;
|
|
33
33
|
}>, {
|