@ironsource/shared-ui 2.1.6-test.13 → 2.1.6-test.15

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.
Files changed (112) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_06e0871a_lang.css +1 -0
  2. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +1 -0
  3. package/ChipV4.vue_vue_type_style_index_0_scoped_12c0f396_lang.css +1 -0
  4. package/DataGrid.vue_vue_type_style_index_0_scoped_057abdf5_lang.css +1 -0
  5. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +1 -0
  6. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +1 -0
  7. package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +1 -0
  8. package/FoldableSection.vue_vue_type_style_index_0_scoped_1a5f0e2e_lang.css +1 -0
  9. package/HelpIcon.vue_vue_type_style_index_0_scoped_06fce2e3_lang.css +1 -0
  10. package/IconV4.vue_vue_type_style_index_0_scoped_9d3c9cda_lang.css +1 -0
  11. package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +1 -0
  12. package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +1 -0
  13. package/README.md +35 -0
  14. package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +1 -0
  15. package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +1 -0
  16. package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +1 -0
  17. package/components/alert/Alert.vue.d.ts +28 -0
  18. package/components/alert/Alert.vue.js +4 -4
  19. package/components/alert/Alert.vue2.js +67 -46
  20. package/components/alert/index.d.ts +104 -2
  21. package/components/autocomplete/Autocomplete.vue.d.ts +1 -0
  22. package/components/autocomplete/Autocomplete.vue2.js +6 -5
  23. package/components/autocomplete/index.d.ts +1 -0
  24. package/components/button/v4/ButtonV4.vue.d.ts +7 -7
  25. package/components/button/v4/IconButtonV4.vue.d.ts +4 -4
  26. package/components/button/v4/index.d.ts +61 -61
  27. package/components/chip/v4/Chip.types.d.ts +6 -0
  28. package/components/chip/v4/ChipV4.vue.d.ts +28 -35
  29. package/components/chip/v4/ChipV4.vue.js +3 -3
  30. package/components/chip/v4/ChipV4.vue2.js +28 -59
  31. package/components/chip/v4/index.d.ts +45 -148
  32. package/components/datePicker/common/DatePicker.common.js +14 -14
  33. package/components/datePicker/v4/DatePickerV4.vue2.js +3 -2
  34. package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
  35. package/components/dateRange/v4/DateRangeV4.vue2.js +4 -3
  36. package/components/dialog/v3/Dialog.vue.d.ts +1 -1
  37. package/components/dialog/v3/index.d.ts +20 -20
  38. package/components/dropdown/common/Dropdown.common.js +80 -75
  39. package/components/dropdown/common/Option.common.d.ts +1 -1
  40. package/components/dropdown/common/Option.common.js +9 -9
  41. package/components/dropdown/composables/useChildOptions.d.ts +7 -0
  42. package/components/dropdown/composables/useChildOptions.js +14 -0
  43. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +14 -3
  44. package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
  45. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +102 -61
  46. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +8 -3
  47. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  48. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +22 -21
  49. package/components/dropdown/v4/DropdownV4.vue.d.ts +22 -6
  50. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  51. package/components/dropdown/v4/DropdownV4.vue2.js +81 -73
  52. package/components/dropdown/v4/OptionV4.vue.d.ts +6 -6
  53. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  54. package/components/dropdown/v4/OptionV4.vue2.js +51 -45
  55. package/components/dropdown/v4/TreeDropdown.vue.d.ts +112 -0
  56. package/components/dropdown/v4/TreeDropdown.vue.js +7 -0
  57. package/components/dropdown/v4/TreeDropdown.vue2.js +122 -0
  58. package/components/dropdown/v4/dropdownStoryArgs.d.ts +1 -1
  59. package/components/dropdown/v4/index.d.ts +332 -49
  60. package/components/dropdown/v4/index.js +7 -4
  61. package/components/emptyState/v3/EmptyState.vue.d.ts +2 -2
  62. package/components/emptyState/v3/index.d.ts +47 -47
  63. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
  64. package/components/emptyState/v4/index.d.ts +7 -7
  65. package/components/icon/v4/Icon.types.d.ts +1 -1
  66. package/components/icon/v4/IconV4.vue.d.ts +16 -6
  67. package/components/icon/v4/IconV4.vue.js +4 -4
  68. package/components/icon/v4/IconV4.vue2.js +36 -33
  69. package/components/icon/v4/index.d.ts +53 -15
  70. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  71. package/components/inlineCopy/InlineCopy.vue2.js +1 -1
  72. package/components/layout/FoldableSection.vue.js +5 -5
  73. package/components/layout/FoldableSection.vue2.js +1 -1
  74. package/components/multibar/MultiBarMenu.vue2.js +12 -11
  75. package/components/snackbar/v4/SnackbarV4.vue.d.ts +20 -20
  76. package/components/table/common/Table.common.d.ts +1 -0
  77. package/components/table/common/Table.common.js +65 -61
  78. package/components/table/v4/DataGrid.vue.d.ts +5 -1
  79. package/components/table/v4/DataGrid.vue.js +3 -3
  80. package/components/table/v4/DataGrid.vue2.js +166 -162
  81. package/components/table/v4/DataGridMenu.vue2.js +3 -2
  82. package/components/table/v4/HelpIcon.vue.js +5 -5
  83. package/components/table/v4/HelpIcon.vue2.js +5 -5
  84. package/components/table/v4/index.d.ts +16 -4
  85. package/components/textArea/v4/TextAreaV4.vue.js +3 -3
  86. package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
  87. package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
  88. package/components/toggle/v4/ToggleV4.vue.js +3 -3
  89. package/components/toggle/v4/ToggleV4.vue2.js +12 -12
  90. package/components/toggle/v4/index.d.ts +20 -20
  91. package/composables/useFormValidation.js +19 -13
  92. package/design-foundation.stories/icons/iconsData.d.ts +5 -1
  93. package/index.d.ts +1091 -632
  94. package/mocks/apps.d.ts +1 -0
  95. package/mocks/options.d.ts +12 -0
  96. package/package.json +1 -1
  97. package/utils/text.d.ts +1 -0
  98. package/utils/text.js +9 -0
  99. package/Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css +0 -1
  100. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css +0 -1
  101. package/ChipV4.vue_vue_type_style_index_0_scoped_78d7c9c0_lang.css +0 -1
  102. package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +0 -1
  103. package/DateRangeV4.vue_vue_type_style_index_0_scoped_1cc45a5d_lang.css +0 -1
  104. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css +0 -1
  105. package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +0 -1
  106. package/FoldableSection.vue_vue_type_style_index_0_scoped_8d0fd203_lang.css +0 -1
  107. package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +0 -1
  108. package/IconV4.vue_vue_type_style_index_0_scoped_a78f8a3e_lang.css +0 -1
  109. package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +0 -1
  110. package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +0 -1
  111. package/TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css +0 -1
  112. package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +0 -1
@@ -0,0 +1,112 @@
1
+ import { IconTypes } from '@is-ssp/icon/v4/Icon.types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ options: unknown[];
4
+ selected?: unknown[];
5
+ isOpen?: boolean;
6
+ placeholder?: string;
7
+ inlineSearchPlaceholder?: string;
8
+ size?: 'small' | 'medium' | 'large';
9
+ disabled?: boolean;
10
+ testId?: string;
11
+ displayValue: (option: unknown) => string;
12
+ optionNameKey?: string;
13
+ optionIconKey?: string;
14
+ optionImageKey?: string;
15
+ optionIconType?: IconTypes;
16
+ optionEndIconKey?: string;
17
+ optionEndIconType?: IconTypes;
18
+ valueToCopy?: string;
19
+ disabledOptionKey?: string;
20
+ optionChildrenKey?: string;
21
+ }>, {
22
+ selected: any;
23
+ placeholder: string;
24
+ inlineSearchPlaceholder: string;
25
+ size: string;
26
+ disabled: boolean;
27
+ testId: string;
28
+ optionNameKey: string;
29
+ optionIconKey: string;
30
+ optionImageKey: string;
31
+ optionIconType: any;
32
+ optionEndIconKey: string;
33
+ optionEndIconType: any;
34
+ valueToCopy: any;
35
+ disabledOptionKey: string;
36
+ optionChildrenKey: string;
37
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
+ "update:selected": (value: unknown) => void;
39
+ "update:isOpen": (value: unknown) => void;
40
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
41
+ options: unknown[];
42
+ selected?: unknown[];
43
+ isOpen?: boolean;
44
+ placeholder?: string;
45
+ inlineSearchPlaceholder?: string;
46
+ size?: 'small' | 'medium' | 'large';
47
+ disabled?: boolean;
48
+ testId?: string;
49
+ displayValue: (option: unknown) => string;
50
+ optionNameKey?: string;
51
+ optionIconKey?: string;
52
+ optionImageKey?: string;
53
+ optionIconType?: IconTypes;
54
+ optionEndIconKey?: string;
55
+ optionEndIconType?: IconTypes;
56
+ valueToCopy?: string;
57
+ disabledOptionKey?: string;
58
+ optionChildrenKey?: string;
59
+ }>, {
60
+ selected: any;
61
+ placeholder: string;
62
+ inlineSearchPlaceholder: string;
63
+ size: string;
64
+ disabled: boolean;
65
+ testId: string;
66
+ optionNameKey: string;
67
+ optionIconKey: string;
68
+ optionImageKey: string;
69
+ optionIconType: any;
70
+ optionEndIconKey: string;
71
+ optionEndIconType: any;
72
+ valueToCopy: any;
73
+ disabledOptionKey: string;
74
+ optionChildrenKey: string;
75
+ }>>> & {
76
+ "onUpdate:selected"?: (value: unknown) => any;
77
+ "onUpdate:isOpen"?: (value: unknown) => any;
78
+ }, {
79
+ disabled: boolean;
80
+ size: 'small' | 'medium' | 'large';
81
+ testId: string;
82
+ selected: unknown[];
83
+ placeholder: string;
84
+ inlineSearchPlaceholder: string;
85
+ optionNameKey: string;
86
+ optionIconKey: string;
87
+ optionImageKey: string;
88
+ optionIconType: IconTypes;
89
+ optionEndIconKey: string;
90
+ optionEndIconType: IconTypes;
91
+ valueToCopy: string;
92
+ disabledOptionKey: string;
93
+ optionChildrenKey: string;
94
+ }>;
95
+ export default _default;
96
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
97
+ type __VLS_TypePropsToRuntimeProps<T> = {
98
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
99
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
100
+ } : {
101
+ type: import('vue').PropType<T[K]>;
102
+ required: true;
103
+ };
104
+ };
105
+ type __VLS_WithDefaults<P, D> = {
106
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
107
+ default: D[K];
108
+ }> : P[K];
109
+ };
110
+ type __VLS_Prettify<T> = {
111
+ [K in keyof T]: T[K];
112
+ } & {};
@@ -0,0 +1,7 @@
1
+ import o from "./TreeDropdown.vue2.js";
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-142eab98"]]);
5
+ export {
6
+ s as default
7
+ };
@@ -0,0 +1,122 @@
1
+ import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css"; import { defineComponent as w, ref as S, watch as T, openBlock as u, createBlock as f, unref as o, withCtx as E, createVNode as N, withModifiers as k, createElementBlock as h, Fragment as B, renderList as x, createCommentVNode as z } from "vue";
2
+ import V from "./DropdownV4.vue.js";
3
+ import "./DefaultDropdownTrigger.vue.js";
4
+ import "./IconButtonDropdownTrigger.vue.js";
5
+ import "./ChipDropdownTrigger.vue.js";
6
+ import "./AppDropdownTrigger.vue.js";
7
+ import "./ButtonDropdownTrigger.vue.js";
8
+ import "./ButtonFilterDropdownTrigger.vue.js";
9
+ import "./TreeDropdown.vue.js";
10
+ import v from "./OptionV4.vue.js";
11
+ import { useChildOptions as D } from "../composables/useChildOptions.js";
12
+ const P = {
13
+ key: 0,
14
+ class: "child-options"
15
+ }, Q = /* @__PURE__ */ w({
16
+ __name: "TreeDropdown",
17
+ props: {
18
+ options: null,
19
+ selected: { default: null },
20
+ isOpen: { type: Boolean },
21
+ placeholder: { default: "Select" },
22
+ inlineSearchPlaceholder: { default: "Search" },
23
+ size: { default: "medium" },
24
+ disabled: { type: Boolean, default: !1 },
25
+ testId: { default: "" },
26
+ displayValue: null,
27
+ optionNameKey: { default: "" },
28
+ optionIconKey: { default: "" },
29
+ optionImageKey: { default: "" },
30
+ optionIconType: { default: null },
31
+ optionEndIconKey: { default: "" },
32
+ optionEndIconType: { default: null },
33
+ valueToCopy: { default: null },
34
+ disabledOptionKey: { default: "disabled" },
35
+ optionChildrenKey: { default: "" }
36
+ },
37
+ emits: ["update:selected", "update:isOpen"],
38
+ setup(e, { emit: y }) {
39
+ const a = e, l = S(a.selected);
40
+ T(
41
+ () => a.selected,
42
+ () => {
43
+ l.value = [...a.selected];
44
+ }
45
+ );
46
+ const { hasChildren: c, getChildren: d, allChildrenSelected: r, someChildrenSelected: K } = D(l, a.optionChildrenKey), p = (n) => {
47
+ if (c(n)) {
48
+ r(n) ? l.value = l.value.filter(
49
+ (i) => !d(n).includes(i)
50
+ ) : l.value = [
51
+ ...l.value.filter((i) => !d(n).includes(i)),
52
+ ...d(n)
53
+ ];
54
+ return;
55
+ }
56
+ l.value.includes(n) ? l.value = l.value.filter(
57
+ (i) => i !== n
58
+ ) : l.value = [...l.value, n];
59
+ }, m = (n) => l.value.includes(n), C = (n) => 1 + (c(n) ? d(n).length : 0), I = () => {
60
+ y("update:selected", l.value);
61
+ }, g = () => {
62
+ l.value = [];
63
+ };
64
+ return (n, i) => (u(), f(o(V), {
65
+ multi: "",
66
+ class: "tree-dropdown",
67
+ "show-select-all": !1,
68
+ "is-open": e.isOpen,
69
+ options: e.options,
70
+ selected: e.selected,
71
+ "display-value": e.displayValue,
72
+ placeholder: e.placeholder,
73
+ "inline-search-placeholder": e.inlineSearchPlaceholder,
74
+ "option-name-key": e.optionNameKey,
75
+ size: e.size,
76
+ "test-id": e.testId,
77
+ disabled: e.disabled,
78
+ "disable-virtual-scroll": "",
79
+ "override-option-count-calculation": C,
80
+ "trigger-show-all-selected-text": !1,
81
+ "onUpdate:selected": i[0] || (i[0] = (t) => y("update:selected", t)),
82
+ "onUpdate:isOpen": i[1] || (i[1] = (t) => y("update:isOpen", t)),
83
+ onApply: I,
84
+ onClear: g
85
+ }, {
86
+ default: E(({ option: t, index: b }) => [
87
+ N(o(v), {
88
+ option: t,
89
+ "selected-prop": o(c)(t) ? o(r)(t) : m(t),
90
+ "is-indeterminate": !o(r)(t) && o(K)(t),
91
+ disabled: t[e.disabledOptionKey],
92
+ "name-key": e.optionNameKey,
93
+ "image-key": e.optionImageKey,
94
+ "icon-key": e.optionIconKey,
95
+ "icon-type": e.optionIconType,
96
+ "end-icon-key": e.optionEndIconKey,
97
+ "end-icon-type": e.optionEndIconType,
98
+ onClick: k(() => p(t), ["stop"])
99
+ }, null, 8, ["option", "selected-prop", "is-indeterminate", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "onClick"]),
100
+ o(c)(t) ? (u(), h("div", P, [
101
+ (u(!0), h(B, null, x(o(d)(t), (s, O) => (u(), f(o(v), {
102
+ key: `${b}-${O}`,
103
+ option: s,
104
+ "selected-prop": m(s),
105
+ disabled: s[e.disabledOptionKey],
106
+ "name-key": e.optionNameKey,
107
+ "image-key": e.optionImageKey,
108
+ "icon-key": e.optionIconKey,
109
+ "icon-type": e.optionIconType,
110
+ "end-icon-key": e.optionEndIconKey,
111
+ "end-icon-type": e.optionEndIconType,
112
+ onClick: k(() => p(s), ["stop"])
113
+ }, null, 8, ["option", "selected-prop", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "onClick"]))), 128))
114
+ ])) : z("", !0)
115
+ ]),
116
+ _: 1
117
+ }, 8, ["is-open", "options", "selected", "display-value", "placeholder", "inline-search-placeholder", "option-name-key", "size", "test-id", "disabled"]));
118
+ }
119
+ });
120
+ export {
121
+ Q as default
122
+ };
@@ -220,7 +220,7 @@ export declare const dropDownStoryArgs: {
220
220
  };
221
221
  };
222
222
  optionIconType: {
223
- options: ("fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test")[];
223
+ options: ("fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat")[];
224
224
  table: {
225
225
  category: string;
226
226
  };