@ironsource/shared-ui 2.1.3-rc.2 → 2.1.3-rc.21

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 (133) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_72bcdcd0_lang.css +1 -0
  2. package/AppHeader.vue_vue_type_style_index_0_scoped_f9d4e49d_lang.css +1 -0
  3. package/Autocomplete.vue_vue_type_style_index_0_scoped_429e5745_lang.css +1 -0
  4. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css +1 -0
  5. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +1 -0
  6. package/DataGrid.vue_vue_type_style_index_0_scoped_9b108af3_lang.css +1 -0
  7. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c3033d90_lang.css +1 -0
  8. package/DropdownV4.vue_vue_type_style_index_0_scoped_24014c62_lang.css +1 -0
  9. package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +1 -0
  10. package/FormCard.vue_vue_type_style_index_0_scoped_276bd901_lang.css +1 -0
  11. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +1 -0
  12. package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +1 -0
  13. package/TextArea.vue_vue_type_style_index_0_scoped_eb62e4c0_lang.css +1 -0
  14. package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +1 -0
  15. package/TextField.vue_vue_type_style_index_0_scoped_95e25718_lang.css +1 -0
  16. package/components/alert/Alert.vue.d.ts +75 -0
  17. package/components/alert/Alert.vue.js +7 -0
  18. package/components/alert/Alert.vue2.js +87 -0
  19. package/components/alert/index.d.ts +220 -0
  20. package/components/alert/index.js +6 -0
  21. package/components/appHeader/AppHeader.vue.js +3 -3
  22. package/components/appHeader/AppHeader.vue2.js +29 -26
  23. package/components/autocomplete/Autocomplete.vue.d.ts +140 -0
  24. package/components/autocomplete/Autocomplete.vue.js +7 -0
  25. package/components/autocomplete/Autocomplete.vue2.js +99 -0
  26. package/components/autocomplete/index.d.ts +459 -0
  27. package/components/autocomplete/index.js +6 -0
  28. package/components/button/v3/Button.vue.d.ts +6 -6
  29. package/components/button/v3/ButtonBase.vue.d.ts +1 -1
  30. package/components/button/v3/IconButton.vue.d.ts +1 -1
  31. package/components/button/v3/index.d.ts +34 -34
  32. package/components/button/v4/ButtonV4.vue.d.ts +1 -1
  33. package/components/button/v4/IconButtonV4.vue.d.ts +1 -1
  34. package/components/button/v4/index.d.ts +40 -40
  35. package/components/checkbox/v3/index.d.ts +12 -12
  36. package/components/checkbox/v4/index.d.ts +12 -12
  37. package/components/chip/v3/Chip.vue.d.ts +1 -1
  38. package/components/chip/v3/index.d.ts +20 -20
  39. package/components/chip/v4/ChipV4.vue.d.ts +1 -1
  40. package/components/chip/v4/index.d.ts +20 -20
  41. package/components/dialog/v4/index.d.ts +17 -17
  42. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  43. package/components/dropdown/common/Dropdown.common.js +34 -33
  44. package/components/dropdown/v3/Dropdown.vue.d.ts +11 -11
  45. package/components/dropdown/v3/index.d.ts +159 -159
  46. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +4 -4
  47. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +71 -0
  48. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +7 -0
  49. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +36 -0
  50. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.d.ts +66 -0
  51. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +7 -0
  52. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +50 -0
  53. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +1 -1
  54. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +7 -7
  55. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  56. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
  57. package/components/dropdown/v4/DropdownV4.vue.d.ts +29 -22
  58. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  59. package/components/dropdown/v4/DropdownV4.vue2.js +143 -130
  60. package/components/dropdown/v4/dropdownStoryArgs.d.ts +9 -0
  61. package/components/dropdown/v4/index.d.ts +705 -610
  62. package/components/dropdown/v4/index.js +16 -10
  63. package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
  64. package/components/emptyState/v3/index.d.ts +7 -7
  65. package/components/filterDropdown/index.d.ts +8 -8
  66. package/components/forms/FormCard.vue.d.ts +5 -0
  67. package/components/forms/FormCard.vue.js +3 -3
  68. package/components/forms/FormCard.vue2.js +62 -36
  69. package/components/forms/FormRow.vue.d.ts +10 -0
  70. package/components/forms/FormRow.vue.js +3 -3
  71. package/components/forms/FormRow.vue2.js +22 -29
  72. package/components/forms/index.d.ts +59 -2
  73. package/components/includeExclude/IncludeExclude.vue.d.ts +3 -3
  74. package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +2 -2
  75. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +3 -3
  76. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +3 -3
  77. package/components/includeExclude/index.d.ts +168 -168
  78. package/components/input/v3/Input.vue.d.ts +3 -3
  79. package/components/input/v3/index.d.ts +82 -82
  80. package/components/input/v4/TextField.vue.d.ts +7 -7
  81. package/components/input/v4/TextField.vue.js +2 -2
  82. package/components/input/v4/TextField.vue2.js +84 -91
  83. package/components/input/v4/index.d.ts +122 -122
  84. package/components/multibar/MultiBarMenu.vue2.js +13 -11
  85. package/components/search/v3/Search.vue.d.ts +1 -1
  86. package/components/search/v3/index.d.ts +9 -9
  87. package/components/shared/FieldMaxLength.vue.d.ts +34 -0
  88. package/components/shared/FieldMaxLength.vue.js +7 -0
  89. package/components/shared/FieldMaxLength.vue2.js +24 -0
  90. package/components/skeleton/v4/index.d.ts +2 -2
  91. package/components/snackbar/v4/SnackbarV4.vue.d.ts +12 -12
  92. package/components/table/common/Table.types.d.ts +3 -0
  93. package/components/table/v4/DataGrid.vue.d.ts +2 -2
  94. package/components/table/v4/DataGrid.vue.js +3 -3
  95. package/components/table/v4/DataGrid.vue2.js +129 -123
  96. package/components/table/v4/DataGridMenu.vue2.js +13 -11
  97. package/components/table/v4/HelpIcon.vue.d.ts +40 -0
  98. package/components/table/v4/HelpIcon.vue.js +7 -0
  99. package/components/table/v4/HelpIcon.vue2.js +32 -0
  100. package/components/table/v4/index.d.ts +39 -39
  101. package/components/table-cells/v4/EditableV4.vue.d.ts +1 -1
  102. package/components/table-cells/v4/index.d.ts +20 -20
  103. package/components/tabs/v3/Tabs.vue.d.ts +1 -1
  104. package/components/tabs/v3/index.d.ts +20 -20
  105. package/components/textArea/v3/TextArea.vue.js +7 -0
  106. package/components/textArea/{TextArea.vue2.js → v3/TextArea.vue2.js} +4 -4
  107. package/components/textArea/v4/TextAreaV4.vue.d.ts +100 -0
  108. package/components/textArea/v4/TextAreaV4.vue.js +7 -0
  109. package/components/textArea/v4/TextAreaV4.vue2.js +74 -0
  110. package/components/textArea/v4/index.d.ts +136 -0
  111. package/components/textArea/v4/index.js +6 -0
  112. package/components/toggle/v3/Toggle.vue.d.ts +1 -1
  113. package/components/toggle/v3/index.d.ts +9 -9
  114. package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
  115. package/components/toggle/v4/index.d.ts +28 -28
  116. package/components/typography/index.d.ts +12 -12
  117. package/index.d.ts +2479 -1935
  118. package/index.js +131 -123
  119. package/package.json +11 -2
  120. package/testids/index.d.ts +9 -1
  121. package/testids/index.js +25 -24
  122. package/AppHeader.vue_vue_type_style_index_0_scoped_95908b8d_lang.css +0 -1
  123. package/DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css +0 -1
  124. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_f0c4710f_lang.css +0 -1
  125. package/DropdownV4.vue_vue_type_style_index_0_scoped_78c1497e_lang.css +0 -1
  126. package/FormCard.vue_vue_type_style_index_0_scoped_ad5e4be0_lang.css +0 -1
  127. package/FormRow.vue_vue_type_style_index_0_scoped_39f48410_lang.css +0 -1
  128. package/TextArea.vue_vue_type_style_index_0_scoped_889b62ac_lang.css +0 -1
  129. package/TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css +0 -1
  130. package/components/textArea/TextArea.vue.js +0 -7
  131. /package/components/textArea/{TextArea.vue.d.ts → v3/TextArea.vue.d.ts} +0 -0
  132. /package/components/textArea/{index.d.ts → v3/index.d.ts} +0 -0
  133. /package/components/textArea/{index.js → v3/index.js} +0 -0
@@ -16,10 +16,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
16
16
  title?: string;
17
17
  zIndex?: number;
18
18
  actionButtons: (Partial<{
19
+ variant: "text" | "contained" | "outlined";
19
20
  disabled: boolean;
20
21
  size: "small" | "medium" | "large" | "extraLarge";
21
22
  color: "default" | "primary" | "danger" | "info" | "success" | "warning";
22
- variant: "text" | "contained" | "outlined";
23
23
  content: string;
24
24
  loading: boolean;
25
25
  testId: string;
@@ -28,6 +28,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
28
28
  startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
29
29
  endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
30
30
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
31
+ variant: {
32
+ type: import("vue").PropType<"text" | "contained" | "outlined">;
33
+ default: string;
34
+ };
31
35
  disabled: {
32
36
  type: import("vue").PropType<boolean>;
33
37
  default: boolean;
@@ -40,10 +44,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
40
44
  type: import("vue").PropType<"default" | "primary" | "danger" | "info" | "success" | "warning">;
41
45
  default: string;
42
46
  };
43
- variant: {
44
- type: import("vue").PropType<"text" | "contained" | "outlined">;
45
- default: string;
46
- };
47
47
  content: {
48
48
  type: import("vue").PropType<string>;
49
49
  default: string;
@@ -72,7 +72,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
72
72
  type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
73
73
  default: string;
74
74
  };
75
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "size" | "color" | "variant" | "content" | "loading" | "testId" | "startIconName" | "endIconName" | "startIconType" | "endIconType">)[];
75
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "variant" | "disabled" | "size" | "color" | "content" | "loading" | "testId" | "startIconName" | "endIconName" | "startIconType" | "endIconType">)[];
76
76
  testId: string;
77
77
  }>, {
78
78
  type: string;
@@ -101,10 +101,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
101
101
  title?: string;
102
102
  zIndex?: number;
103
103
  actionButtons: (Partial<{
104
+ variant: "text" | "contained" | "outlined";
104
105
  disabled: boolean;
105
106
  size: "small" | "medium" | "large" | "extraLarge";
106
107
  color: "default" | "primary" | "danger" | "info" | "success" | "warning";
107
- variant: "text" | "contained" | "outlined";
108
108
  content: string;
109
109
  loading: boolean;
110
110
  testId: string;
@@ -113,6 +113,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
113
113
  startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
114
114
  endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
115
115
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
116
+ variant: {
117
+ type: import("vue").PropType<"text" | "contained" | "outlined">;
118
+ default: string;
119
+ };
116
120
  disabled: {
117
121
  type: import("vue").PropType<boolean>;
118
122
  default: boolean;
@@ -125,10 +129,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
125
129
  type: import("vue").PropType<"default" | "primary" | "danger" | "info" | "success" | "warning">;
126
130
  default: string;
127
131
  };
128
- variant: {
129
- type: import("vue").PropType<"text" | "contained" | "outlined">;
130
- default: string;
131
- };
132
132
  content: {
133
133
  type: import("vue").PropType<string>;
134
134
  default: string;
@@ -157,7 +157,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
157
157
  type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
158
158
  default: string;
159
159
  };
160
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "size" | "color" | "variant" | "content" | "loading" | "testId" | "startIconName" | "endIconName" | "startIconType" | "endIconType">)[];
160
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "variant" | "disabled" | "size" | "color" | "content" | "loading" | "testId" | "startIconName" | "endIconName" | "startIconType" | "endIconType">)[];
161
161
  testId: string;
162
162
  }>, {
163
163
  type: string;
@@ -1,3 +1,4 @@
1
+ import { TooltipPositions } from '@/components/tooltip/common/Tooltip.types';
1
2
  export type Row = unknown[];
2
3
  export type Column = {
3
4
  id: string;
@@ -9,6 +10,8 @@ export type Column = {
9
10
  width?: number;
10
11
  isTextRight?: boolean;
11
12
  isStickyRight?: boolean;
13
+ helpText?: string;
14
+ helpTextPlacement?: TooltipPositions;
12
15
  };
13
16
  export type Section = {
14
17
  id: string;
@@ -128,10 +128,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
128
128
  title: string;
129
129
  search: string;
130
130
  testId: string;
131
+ isLoading: boolean;
132
+ searchAutoFocus: boolean;
131
133
  searchPlaceholder: string;
132
134
  selection: unknown[];
133
- searchAutoFocus: boolean;
134
- isLoading: boolean;
135
135
  isSticky: boolean;
136
136
  sections: Section[];
137
137
  isStickyHeader: boolean;
@@ -1,7 +1,7 @@
1
1
  import o from "./DataGrid.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-4baf9e57"]]);
2
+ /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_9b108af3_lang.css"; //*');
4
+ const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-9b108af3"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,33 +1,34 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css"; import { defineComponent as te, useCssVars as se, unref as e, useSlots as ae, computed as g, openBlock as i, createElementBlock as l, createElementVNode as r, normalizeStyle as T, normalizeClass as y, renderSlot as c, createVNode as u, withCtx as C, createTextVNode as x, toDisplayString as E, isRef as ie, createCommentVNode as h, Fragment as B, renderList as I, createBlock as le, mergeProps as de } from "vue";
2
- import w from "../../typography/v4/Typography.vue.js";
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_9b108af3_lang.css"; import { defineComponent as se, useCssVars as ae, unref as e, useSlots as ie, computed as g, openBlock as i, createElementBlock as l, createElementVNode as u, normalizeStyle as x, normalizeClass as y, renderSlot as c, createVNode as h, withCtx as T, createTextVNode as C, toDisplayString as E, isRef as le, createCommentVNode as r, Fragment as B, renderList as I, createBlock as z, mergeProps as de } from "vue";
2
+ import p from "../../typography/v4/Typography.vue.js";
3
3
  import oe from "../../skeleton/v4/SkeletonV4.vue.js";
4
4
  import ne from "../../emptyState/v4/EmptyStateV4.vue.js";
5
5
  import D from "../../checkbox/v4/CheckboxV4.vue.js";
6
6
  import { TableTestIdModifiers as f } from "../../../testids/index.js";
7
7
  import { tableCommon as ce } from "../common/Table.common.js";
8
8
  import re from "./SortIcon.vue.js";
9
- import ue from "./ExpandRowToggle.vue.js";
10
- import he from "../../search/v4/SearchV4.vue.js";
11
- import { useVModel as ye } from "@vueuse/core";
12
- const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["data-testid"], be = { class: "search-wrapper" }, ve = ["data-testid"], $e = ["data-testid"], Re = {
9
+ import ue from "./HelpIcon.vue.js";
10
+ import he from "./ExpandRowToggle.vue.js";
11
+ import ye from "../../search/v4/SearchV4.vue.js";
12
+ import { useVModel as fe } from "@vueuse/core";
13
+ const Se = ["data-testid"], me = ["data-testid"], ke = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = { class: "search-wrapper" }, $e = ["data-testid"], Re = ["data-testid"], xe = {
13
14
  key: 0,
14
15
  class: "checkbox-cell"
15
16
  }, Te = {
16
17
  key: 1,
17
18
  class: "expand-toggle-cell"
18
- }, Ce = ["onClick"], xe = { class: "table-head-container" }, Ee = ["data-testid"], Be = ["onMouseenter"], Ie = {
19
+ }, Ce = ["onClick"], Ee = { class: "table-head-container" }, Be = ["data-testid"], Ie = ["onMouseenter"], pe = {
19
20
  key: 0,
20
21
  class: "checkbox-cell"
21
22
  }, we = {
22
23
  key: 1,
23
24
  class: "expand-toggle-cell"
24
- }, Ve = {
25
+ }, Pe = {
25
26
  key: 2,
26
27
  class: "expanded-row"
27
- }, Le = { key: 1 }, Me = {
28
+ }, Ve = { key: 1 }, He = {
28
29
  key: 0,
29
30
  class: "table-footer"
30
- }, Ye = /* @__PURE__ */ te({
31
+ }, We = /* @__PURE__ */ se({
31
32
  __name: "DataGrid",
32
33
  props: {
33
34
  title: { default: "" },
@@ -59,38 +60,38 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
59
60
  emits: ["update:sort", "update:search", "update:selection", "onScroll", "saveRow", "loadMore"],
60
61
  setup(s, { emit: S }) {
61
62
  const o = s;
62
- se((a) => ({
63
- 42931960: s.zIndexBase,
64
- baef7858: e(q),
65
- "2d5a9c66": e(A),
66
- "3890bdd6": e(j)
63
+ ae((a) => ({
64
+ "634e78fd": s.zIndexBase,
65
+ "279a8c9e": e(J),
66
+ "7237246a": e(L),
67
+ "79cce51c": e(q)
67
68
  }));
68
- const b = ae(), {
69
- list: P,
69
+ const v = ie(), {
70
+ list: H,
70
71
  containerProps: U,
71
72
  wrapperProps: G,
72
- activeRow: V,
73
- gridColumnTemplate: A,
74
- toggleSortOrder: p,
75
- columnsStickyPositions: H,
76
- hasSearchSlot: Y,
77
- containerStyle: Q,
78
- onScroll: N,
79
- savingRows: F,
80
- hasExpandSlot: v,
81
- toggleExpandRow: W,
82
- cssRowHeight: j,
83
- cssExpandGridCol: q,
84
- isRowExpanded: L,
85
- hasCheckboxes: O,
86
- activeMenuRow: J
87
- } = ce(o, S), z = g(() => !!b.footer), k = ye(o, "search", S), K = g(() => o.selection.length || 0), M = g(() => {
73
+ activeRow: w,
74
+ gridColumnTemplate: L,
75
+ toggleSortOrder: Y,
76
+ columnsStickyPositions: M,
77
+ hasSearchSlot: Q,
78
+ containerStyle: W,
79
+ onScroll: A,
80
+ savingRows: N,
81
+ hasExpandSlot: b,
82
+ toggleExpandRow: j,
83
+ cssRowHeight: q,
84
+ cssExpandGridCol: J,
85
+ isRowExpanded: P,
86
+ hasCheckboxes: F,
87
+ activeMenuRow: K
88
+ } = ce(o, S), O = g(() => !!v.footer), m = fe(o, "search", S), X = g(() => o.selection.length || 0), V = g(() => {
88
89
  const a = o.rows.map((d, t) => o.getRowId(d, t));
89
90
  return a.length && a.every((d) => $(d));
90
- }), $ = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1, X = (a) => {
91
+ }), $ = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1, Z = (a) => {
91
92
  $(a) ? R(o.selection.filter((d) => d !== a)) : R([...o.selection, a]);
92
- }, Z = () => {
93
- if (M.value)
93
+ }, _ = () => {
94
+ if (V.value)
94
95
  R([]);
95
96
  else {
96
97
  const a = o.rows.map((d, t) => o.getRowId(d, t)).filter((d) => !$(d));
@@ -98,72 +99,72 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
98
99
  }
99
100
  }, R = (a) => {
100
101
  S("update:selection", a);
101
- }, _ = g(
102
- () => o.emptyStateVariant ?? (k.value ? "no-results" : "no-data")
103
- ), ee = g(
104
- () => o.emptyStateSubtitle ? o.emptyStateSubtitle : k.value ? "Search again with different filters" : void 0
102
+ }, ee = g(
103
+ () => o.emptyStateVariant ?? (m.value ? "no-results" : "no-data")
104
+ ), te = g(
105
+ () => o.emptyStateSubtitle ? o.emptyStateSubtitle : m.value ? "Search again with different filters" : void 0
105
106
  );
106
107
  return (a, d) => (i(), l("div", {
107
108
  class: "table-container",
108
109
  "data-testid": `${s.testId}-${e(f).CONTAINER}`,
109
- onMouseleave: d[2] || (d[2] = (t) => V.value = null)
110
+ onMouseleave: d[2] || (d[2] = (t) => w.value = null)
110
111
  }, [
111
- r("table", {
112
+ u("table", {
112
113
  ref: e(U).ref,
113
- style: T(e(Q)),
114
+ style: x(e(W)),
114
115
  class: y({
115
- hasFooter: e(z)
116
+ hasFooter: e(O)
116
117
  }),
117
118
  "data-testid": `${s.testId}-${e(f).TABLE}`,
118
119
  onScrollPassive: d[1] || (d[1] = //@ts-ignore
119
- (...t) => e(N) && e(N)(...t))
120
+ (...t) => e(A) && e(A)(...t))
120
121
  }, [
121
- s.title || e(b).title || e(Y) || e(b)["table-header-actions"] ? (i(), l("div", {
122
+ s.title || e(v).title || e(Q) || e(v)["table-header-actions"] ? (i(), l("div", {
122
123
  key: 0,
123
124
  class: y(["table-header", { isStickyHeader: s.isStickyHeader }]),
124
125
  "data-testid": `${s.testId}-${e(f).HEADER}`
125
126
  }, [
126
- r("div", {
127
+ u("div", {
127
128
  class: "table-title",
128
129
  "data-testid": `${s.testId}-${e(f).TITLE}`
129
130
  }, [
130
131
  c(a.$slots, "title", {}, () => [
131
- u(e(w), { variant: "h3" }, {
132
- default: C(() => [
133
- x(E(s.title), 1)
132
+ h(e(p), { variant: "h3" }, {
133
+ default: T(() => [
134
+ C(E(s.title), 1)
134
135
  ]),
135
136
  _: 1
136
137
  })
137
138
  ], !0)
138
- ], 8, me),
139
- r("div", {
139
+ ], 8, ge),
140
+ u("div", {
140
141
  class: "table-header-right",
141
142
  "data-testid": `${s.testId}-${e(f).HEADER_RIGHT}`
142
143
  }, [
143
144
  s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
144
- r("div", be, [
145
- u(e(he), {
146
- modelValue: e(k),
147
- "onUpdate:modelValue": d[0] || (d[0] = (t) => ie(k) ? k.value = t : null),
145
+ u("div", be, [
146
+ h(e(ye), {
147
+ modelValue: e(m),
148
+ "onUpdate:modelValue": d[0] || (d[0] = (t) => le(m) ? m.value = t : null),
148
149
  placeholder: s.searchPlaceholder,
149
150
  "auto-focus": s.searchAutoFocus,
150
151
  "test-id": s.testId
151
152
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
152
153
  ])
153
- ], !0) : h("", !0)
154
- ], 8, ge),
155
- e(b)["table-header-actions"] ? (i(), l("div", {
154
+ ], !0) : r("", !0)
155
+ ], 8, ve),
156
+ e(v)["table-header-actions"] ? (i(), l("div", {
156
157
  key: 0,
157
158
  class: "table-header-actions",
158
159
  "data-testid": `${s.testId}-${e(f).ACTIONS}`
159
160
  }, [
160
161
  c(a.$slots, "table-header-actions", {}, void 0, !0)
161
- ], 8, ve)) : h("", !0)
162
- ], 10, ke)) : h("", !0),
163
- r("thead", {
162
+ ], 8, $e)) : r("", !0)
163
+ ], 10, ke)) : r("", !0),
164
+ u("thead", {
164
165
  class: y({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
165
166
  }, [
166
- r("div", {
167
+ u("div", {
167
168
  class: "sections",
168
169
  "data-testid": `${s.testId}-${e(f).SECTIONS}`
169
170
  }, [
@@ -172,32 +173,32 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
172
173
  class: y(["section-container", { sticky: t.isSticky }])
173
174
  }, [
174
175
  c(a.$slots, `section-${t.id}`, {}, () => [
175
- r("div", {
176
- style: T({ width: t.width + "px" }),
176
+ u("div", {
177
+ style: x({ width: t.width + "px" }),
177
178
  class: y({ section: !0 })
178
179
  }, [
179
- u(e(w), { variant: "body2" }, {
180
- default: C(() => [
181
- x(E(t.title), 1)
180
+ h(e(p), { variant: "body2" }, {
181
+ default: T(() => [
182
+ C(E(t.title), 1)
182
183
  ]),
183
184
  _: 2
184
185
  }, 1024)
185
186
  ], 4)
186
187
  ], !0)
187
188
  ], 2))), 128))
188
- ], 8, $e),
189
- r("tr", null, [
190
- e(O) ? (i(), l("th", Re, [
189
+ ], 8, Re),
190
+ u("tr", null, [
191
+ e(F) ? (i(), l("th", xe, [
191
192
  c(a.$slots, "select-all-checkbox", {}, () => [
192
- u(e(D), {
193
+ h(e(D), {
193
194
  disabled: s.isLoading,
194
- "is-checked": e(M),
195
- "is-indeterminate": !e(M) && e(K) > 0,
196
- "onUpdate:isChecked": Z
195
+ "is-checked": e(V),
196
+ "is-indeterminate": !e(V) && e(X) > 0,
197
+ "onUpdate:isChecked": _
197
198
  }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
198
199
  ], !0)
199
- ])) : h("", !0),
200
- e(v) ? (i(), l("th", Te)) : h("", !0),
200
+ ])) : r("", !0),
201
+ e(b) ? (i(), l("th", Te)) : r("", !0),
201
202
  (i(!0), l(B, null, I(s.columns, (t) => (i(), l("th", {
202
203
  key: t.id,
203
204
  class: y({
@@ -208,56 +209,61 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
208
209
  isSortable: t.isSortable,
209
210
  [`column-${t.id}`]: !0
210
211
  }),
211
- style: T(t.isSticky ? e(H)[t.id] : null),
212
- onClick: (m) => t.isSortable ? e(p)(t) : null
212
+ style: x(t.isSticky ? e(M)[t.id] : null),
213
+ onClick: (k) => t.isSortable ? e(Y)(t) : null
213
214
  }, [
214
- r("div", xe, [
215
+ u("div", Ee, [
215
216
  c(a.$slots, `header-${t.id}`, { column: t }, () => [
216
- u(e(w), { variant: "tableLabel" }, {
217
- default: C(() => [
218
- x(E(t.title), 1)
217
+ h(e(p), { variant: "tableLabel" }, {
218
+ default: T(() => [
219
+ C(E(t.title), 1)
219
220
  ]),
220
221
  _: 2
221
222
  }, 1024)
222
223
  ], !0),
223
- t.isSortable && t.id === s.sort?.sortBy ? (i(), le(re, {
224
+ t.helpText ? (i(), z(ue, {
224
225
  key: 0,
226
+ "hover-help-text": t.helpText,
227
+ "hover-help-text-placement": t.helpTextPlacement
228
+ }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
229
+ t.isSortable && t.id === s.sort?.sortBy ? (i(), z(re, {
230
+ key: 1,
225
231
  "sort-order": s.sort.sortOrder
226
- }, null, 8, ["sort-order"])) : h("", !0)
232
+ }, null, 8, ["sort-order"])) : r("", !0)
227
233
  ])
228
234
  ], 14, Ce))), 128))
229
235
  ])
230
236
  ], 2),
231
- r("tbody", null, [
232
- e(P).length > 0 ? (i(), l("div", de({
237
+ u("tbody", null, [
238
+ e(H).length > 0 ? (i(), l("div", de({
233
239
  key: 0,
234
240
  class: "table-body-wrapper",
235
241
  "data-testid": `${s.testId}-${e(f).BODY_WRAPPER}`
236
242
  }, e(G)), [
237
- (i(!0), l(B, null, I(e(P), (t) => (i(), l("tr", {
243
+ (i(!0), l(B, null, I(e(H), (t) => (i(), l("tr", {
238
244
  key: t.index,
239
245
  class: y(["table-row", {
240
- loading: s.isLoading || s.isLoading && !t.data || e(F).includes(t.index),
241
- active: e(V) === t.index,
242
- activeMenu: e(J) === t.index,
243
- expanded: e(v) && e(L)(t.index)
246
+ loading: s.isLoading || s.isLoading && !t.data || e(N).includes(t.index),
247
+ active: e(w) === t.index,
248
+ activeMenu: e(K) === t.index,
249
+ expanded: e(b) && e(P)(t.index)
244
250
  }]),
245
- onMouseenter: (m) => V.value = t.index
251
+ onMouseenter: (k) => w.value = t.index
246
252
  }, [
247
- e(O) ? (i(), l("td", Ie, [
248
- u(e(D), {
253
+ e(F) ? (i(), l("td", pe, [
254
+ h(e(D), {
249
255
  "is-checked": $(s.getRowId(t.data, t.index)),
250
256
  size: "sm",
251
- "onUpdate:isChecked": (m) => X(s.getRowId(t.data, t.index))
257
+ "onUpdate:isChecked": (k) => Z(s.getRowId(t.data, t.index))
252
258
  }, null, 8, ["is-checked", "onUpdate:isChecked"])
253
- ])) : h("", !0),
254
- e(v) ? (i(), l("td", we, [
255
- u(ue, {
256
- expanded: e(L)(t.index),
257
- onClick: (m) => e(W)(t.index, m)
259
+ ])) : r("", !0),
260
+ e(b) ? (i(), l("td", we, [
261
+ h(he, {
262
+ expanded: e(P)(t.index),
263
+ onClick: (k) => e(j)(t.index, k)
258
264
  }, null, 8, ["expanded", "onClick"])
259
- ])) : h("", !0),
260
- (i(!0), l(B, null, I(s.columns, (m, n) => (i(), l("td", {
265
+ ])) : r("", !0),
266
+ (i(!0), l(B, null, I(s.columns, (k, n) => (i(), l("td", {
261
267
  key: n,
262
268
  class: y({
263
269
  sticky: s.columns[n].isSticky,
@@ -266,8 +272,8 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
266
272
  isTextRight: s.columns[n].isTextRight,
267
273
  [`column-${s.columns[n].id}`]: !0
268
274
  }),
269
- style: T(
270
- s.columns[n].isSticky ? e(H)[s.columns[n].id] : null
275
+ style: x(
276
+ s.columns[n].isSticky ? e(M)[s.columns[n].id] : null
271
277
  )
272
278
  }, [
273
279
  !s.isLoading || s.isLoading && t.data[n] ? (i(), l("div", {
@@ -276,48 +282,48 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
276
282
  }, [
277
283
  c(a.$slots, `cell-${s.columns[n].id}`, {
278
284
  cell: t.data[n],
279
- isLoading: e(F).includes(t.index),
285
+ isLoading: e(N).includes(t.index),
280
286
  cellIndex: n,
281
287
  row: t,
282
288
  rowIndex: t.index
283
289
  }, () => [
284
- u(e(w), { variant: "body1" }, {
285
- default: C(() => [
286
- x(E(t.data[n]), 1)
290
+ h(e(p), { variant: "body1" }, {
291
+ default: T(() => [
292
+ C(E(t.data[n]), 1)
287
293
  ]),
288
294
  _: 2
289
295
  }, 1024)
290
296
  ], !0)
291
297
  ], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
292
- u(e(oe), { round: "" })
298
+ h(e(oe), { round: "" })
293
299
  ], !0)
294
300
  ], 6))), 128)),
295
- e(v) && e(L)(t.index) ? (i(), l("div", Ve, [
301
+ e(b) && e(P)(t.index) ? (i(), l("div", Pe, [
296
302
  c(a.$slots, "expanded", {
297
303
  row: t,
298
- gridColumnTemplate: e(A)
304
+ gridColumnTemplate: e(L)
299
305
  }, void 0, !0)
300
- ])) : h("", !0)
301
- ], 42, Be))), 128))
302
- ], 16, Ee)) : (i(), l("div", Le, [
306
+ ])) : r("", !0)
307
+ ], 42, Ie))), 128))
308
+ ], 16, Be)) : (i(), l("div", Ve, [
303
309
  c(a.$slots, "empty-state", {}, () => [
304
- u(e(ne), {
310
+ h(e(ne), {
305
311
  class: "empty-state",
306
312
  title: s.emptyStateTitle,
307
- subtitle: e(ee),
308
- variant: e(_),
313
+ subtitle: e(te),
314
+ variant: e(ee),
309
315
  "test-id": `${s.testId}-${e(f).EMPTY_STATE}`
310
316
  }, null, 8, ["title", "subtitle", "variant", "test-id"])
311
317
  ], !0)
312
318
  ]))
313
319
  ])
314
- ], 46, Se),
315
- e(z) ? (i(), l("div", Me, [
320
+ ], 46, me),
321
+ e(O) ? (i(), l("div", He, [
316
322
  c(a.$slots, "footer", {}, void 0, !0)
317
- ])) : h("", !0)
318
- ], 40, fe));
323
+ ])) : r("", !0)
324
+ ], 40, Se));
319
325
  }
320
326
  });
321
327
  export {
322
- Ye as default
328
+ We as default
323
329
  };
@@ -1,13 +1,15 @@
1
- import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css"; import { defineComponent as p, onBeforeUnmount as f, openBlock as x, createBlock as w, unref as n, withCtx as o, createVNode as m, createSlots as I, createTextVNode as v, toDisplayString as M } from "vue";
1
+ import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css"; import { defineComponent as p, onBeforeUnmount as f, openBlock as x, createBlock as w, unref as o, withCtx as n, createVNode as l, createSlots as I, createTextVNode as v, toDisplayString as M } from "vue";
2
2
  import g from "../../dropdown/v4/DropdownV4.vue.js";
3
3
  import "../../dropdown/v4/DefaultDropdownTrigger.vue.js";
4
4
  import "../../dropdown/v4/IconButtonDropdownTrigger.vue.js";
5
5
  import "../../dropdown/v4/ChipDropdownTrigger.vue.js";
6
6
  import "../../dropdown/v4/AppDropdownTrigger.vue.js";
7
+ import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
8
+ import "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
7
9
  import C from "../../dropdown/v4/OptionV4.vue.js";
8
10
  import k from "../../icon/v4/IconV4.vue.js";
9
11
  import { useTableContext as y } from "../common/TableContext.js";
10
- const O = /* @__PURE__ */ p({
12
+ const T = /* @__PURE__ */ p({
11
13
  __name: "DataGridMenu",
12
14
  props: {
13
15
  menuItems: { default: () => [] },
@@ -15,33 +17,33 @@ const O = /* @__PURE__ */ p({
15
17
  },
16
18
  emits: ["selected"],
17
19
  setup(r, { emit: u }) {
18
- const t = r, i = y("DataGridMenu"), s = (d) => d.text, c = () => {
20
+ const t = r, i = y("DataGridMenu"), s = (m) => m.text, c = () => {
19
21
  t.rowIndex && i.setActiveMenuRow(t.rowIndex);
20
22
  }, a = () => {
21
23
  t.rowIndex && i.setActiveMenuRow(null);
22
24
  };
23
- return f(a), (d, l) => (x(), w(n(g), {
25
+ return f(a), (m, d) => (x(), w(o(g), {
24
26
  class: "data-grid-menu",
25
27
  options: r.menuItems,
26
28
  "display-value": s,
27
29
  "predefined-trigger": "icon-button",
28
30
  placement: "left-start",
29
31
  skidding: -4,
30
- "onUpdate:selected": l[0] || (l[0] = (e) => u("selected", e)),
32
+ "onUpdate:selected": d[0] || (d[0] = (e) => u("selected", e)),
31
33
  onOpened: c,
32
34
  onClosed: a
33
35
  }, {
34
- default: o(({ option: e }) => [
35
- m(n(C), { option: e }, I({
36
- default: o(() => [
36
+ default: n(({ option: e }) => [
37
+ l(o(C), { option: e }, I({
38
+ default: n(() => [
37
39
  v(" " + M(s(e)), 1)
38
40
  ]),
39
41
  _: 2
40
42
  }, [
41
43
  e.icon ? {
42
44
  name: "icon-start",
43
- fn: o(() => [
44
- m(n(k), {
45
+ fn: n(() => [
46
+ l(o(k), {
45
47
  class: "menu-icon",
46
48
  name: e.icon,
47
49
  size: "20px"
@@ -56,5 +58,5 @@ const O = /* @__PURE__ */ p({
56
58
  }
57
59
  });
58
60
  export {
59
- O as default
61
+ T as default
60
62
  };