@ironsource/shared-ui 2.1.3-rc.1 → 2.1.3-rc.11

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 (160) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_203b6bd1_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_e36c9442_lang.css +1 -0
  4. package/CardPanel.vue_vue_type_style_index_0_scoped_7d0acb11_lang.css +1 -0
  5. package/CheckboxV4.vue_vue_type_style_index_0_scoped_d25514d1_lang.css +1 -0
  6. package/DataGrid.vue_vue_type_style_index_0_scoped_9b108af3_lang.css +1 -0
  7. package/DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css +1 -0
  8. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +1 -0
  9. package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +1 -0
  10. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +1 -0
  11. package/FieldLabel.vue_vue_type_style_index_0_scoped_5c2a70ad_lang.css +1 -0
  12. package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +1 -0
  13. package/FormCard.vue_vue_type_style_index_0_scoped_276bd901_lang.css +1 -0
  14. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +1 -0
  15. package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +1 -0
  16. package/InlineCopy.vue_vue_type_style_index_0_scoped_2a9e8782_lang.css +1 -0
  17. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_cb3a12c6_lang.css +1 -0
  18. package/TextArea.vue_vue_type_style_index_0_scoped_eb62e4c0_lang.css +1 -0
  19. package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +1 -0
  20. package/TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css +1 -0
  21. package/components/alert/Alert.vue.d.ts +68 -0
  22. package/components/alert/Alert.vue.js +7 -0
  23. package/components/alert/Alert.vue2.js +86 -0
  24. package/components/alert/index.d.ts +82 -0
  25. package/components/alert/index.js +6 -0
  26. package/components/appHeader/AppHeader.vue.js +2 -2
  27. package/components/appHeader/AppHeader.vue2.js +44 -35
  28. package/components/autocomplete/Autocomplete.vue.d.ts +117 -0
  29. package/components/autocomplete/Autocomplete.vue.js +7 -0
  30. package/components/autocomplete/Autocomplete.vue2.js +84 -0
  31. package/components/autocomplete/index.d.ts +366 -0
  32. package/components/autocomplete/index.js +6 -0
  33. package/components/button/v3/Button.vue.d.ts +6 -6
  34. package/components/button/v3/ButtonBase.vue.d.ts +1 -1
  35. package/components/button/v3/IconButton.vue.d.ts +1 -1
  36. package/components/button/v3/index.d.ts +34 -34
  37. package/components/button/v4/ButtonV4.vue.d.ts +1 -1
  38. package/components/button/v4/IconButtonV4.vue.d.ts +1 -1
  39. package/components/button/v4/index.d.ts +40 -40
  40. package/components/checkbox/v3/index.d.ts +12 -12
  41. package/components/checkbox/v4/CheckboxV4.vue.js +4 -4
  42. package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
  43. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +11 -12
  44. package/components/checkbox/v4/icons/UncheckedState.vue.js +12 -11
  45. package/components/checkbox/v4/index.d.ts +12 -12
  46. package/components/chip/v3/Chip.vue.d.ts +1 -1
  47. package/components/chip/v3/index.d.ts +20 -20
  48. package/components/chip/v4/ChipV4.vue.d.ts +1 -1
  49. package/components/chip/v4/index.d.ts +20 -20
  50. package/components/dialog/v4/index.d.ts +17 -17
  51. package/components/dropdown/common/Dropdown.common.js +93 -92
  52. package/components/dropdown/v3/Dropdown.vue.d.ts +11 -11
  53. package/components/dropdown/v3/index.d.ts +159 -159
  54. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +4 -4
  55. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +1 -1
  56. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +7 -7
  57. package/components/dropdown/v4/DropdownV4.vue.d.ts +13 -13
  58. package/components/dropdown/v4/index.d.ts +573 -573
  59. package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
  60. package/components/emptyState/v3/index.d.ts +7 -7
  61. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +15 -0
  62. package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
  63. package/components/emptyState/v4/EmptyStateV4.vue2.js +41 -27
  64. package/components/emptyState/v4/index.d.ts +58 -1
  65. package/components/filterDropdown/index.d.ts +8 -8
  66. package/components/forms/CardPanel.vue.d.ts +20 -0
  67. package/components/forms/CardPanel.vue.js +2 -2
  68. package/components/forms/CardPanel.vue2.js +26 -14
  69. package/components/forms/FormCard.vue.d.ts +5 -0
  70. package/components/forms/FormCard.vue.js +3 -3
  71. package/components/forms/FormCard.vue2.js +62 -36
  72. package/components/forms/FormRow.vue.d.ts +10 -0
  73. package/components/forms/FormRow.vue.js +3 -3
  74. package/components/forms/FormRow.vue2.js +22 -29
  75. package/components/forms/index.d.ts +136 -3
  76. package/components/includeExclude/IncludeExclude.vue.d.ts +3 -3
  77. package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +2 -2
  78. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +3 -3
  79. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +3 -3
  80. package/components/includeExclude/index.d.ts +168 -168
  81. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  82. package/components/inlineCopy/InlineCopy.vue2.js +2 -2
  83. package/components/input/v3/Input.vue.d.ts +3 -3
  84. package/components/input/v3/index.d.ts +82 -82
  85. package/components/input/v4/TextField.vue.d.ts +7 -7
  86. package/components/input/v4/TextField.vue.js +3 -3
  87. package/components/input/v4/TextField.vue2.js +83 -90
  88. package/components/input/v4/index.d.ts +122 -122
  89. package/components/radioButton/v4/RadioButtonV4.vue.js +4 -4
  90. package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
  91. package/components/search/v3/Search.vue.d.ts +1 -1
  92. package/components/search/v3/index.d.ts +9 -9
  93. package/components/shared/FieldLabel.vue.d.ts +5 -0
  94. package/components/shared/FieldLabel.vue.js +3 -3
  95. package/components/shared/FieldLabel.vue2.js +63 -46
  96. package/components/shared/FieldMaxLength.vue.d.ts +34 -0
  97. package/components/shared/FieldMaxLength.vue.js +7 -0
  98. package/components/shared/FieldMaxLength.vue2.js +24 -0
  99. package/components/skeleton/v4/index.d.ts +2 -2
  100. package/components/snackbar/v4/SnackbarV4.vue.d.ts +12 -12
  101. package/components/table/common/Table.common.d.ts +1 -0
  102. package/components/table/common/Table.common.js +64 -60
  103. package/components/table/common/Table.types.d.ts +3 -0
  104. package/components/table/common/TableContext.d.ts +1 -0
  105. package/components/table/v4/DataGrid.vue.d.ts +2 -2
  106. package/components/table/v4/DataGrid.vue.js +3 -3
  107. package/components/table/v4/DataGrid.vue2.js +136 -128
  108. package/components/table/v4/DataGridMenu.vue.d.ts +5 -5
  109. package/components/table/v4/DataGridMenu.vue.js +4 -4
  110. package/components/table/v4/DataGridMenu.vue2.js +46 -47
  111. package/components/table/v4/DataGridRowsCounter.vue.d.ts +15 -0
  112. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  113. package/components/table/v4/DataGridRowsCounter.vue2.js +22 -19
  114. package/components/table/v4/HelpIcon.vue.d.ts +40 -0
  115. package/components/table/v4/HelpIcon.vue.js +7 -0
  116. package/components/table/v4/HelpIcon.vue2.js +32 -0
  117. package/components/table/v4/index.d.ts +71 -44
  118. package/components/table-cells/common/Editable.common.js +15 -15
  119. package/components/table-cells/v4/EditableV4.vue.d.ts +10 -0
  120. package/components/table-cells/v4/EditableV4.vue.js +3 -3
  121. package/components/table-cells/v4/EditableV4.vue2.js +31 -22
  122. package/components/table-cells/v4/index.d.ts +43 -1
  123. package/components/tabs/v3/Tabs.vue.d.ts +1 -1
  124. package/components/tabs/v3/index.d.ts +20 -20
  125. package/components/textArea/v3/TextArea.vue.js +7 -0
  126. package/components/textArea/{TextArea.vue2.js → v3/TextArea.vue2.js} +4 -4
  127. package/components/textArea/v4/TextAreaV4.vue.d.ts +100 -0
  128. package/components/textArea/v4/TextAreaV4.vue.js +7 -0
  129. package/components/textArea/v4/TextAreaV4.vue2.js +74 -0
  130. package/components/textArea/v4/index.d.ts +136 -0
  131. package/components/textArea/v4/index.js +6 -0
  132. package/components/toggle/v3/Toggle.vue.d.ts +1 -1
  133. package/components/toggle/v3/index.d.ts +9 -9
  134. package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
  135. package/components/toggle/v4/index.d.ts +28 -28
  136. package/components/typography/index.d.ts +12 -12
  137. package/index.d.ts +2363 -1842
  138. package/index.js +131 -123
  139. package/package.json +11 -2
  140. package/testids/index.d.ts +9 -1
  141. package/testids/index.js +25 -24
  142. package/AppHeader.vue_vue_type_style_index_0_scoped_209ecc03_lang.css +0 -1
  143. package/CardPanel.vue_vue_type_style_index_0_scoped_d2b5d12f_lang.css +0 -1
  144. package/CheckboxV4.vue_vue_type_style_index_0_scoped_ee3e6d82_lang.css +0 -1
  145. package/DataGrid.vue_vue_type_style_index_0_scoped_d5635f1b_lang.css +0 -1
  146. package/DataGridMenu.vue_vue_type_style_index_0_scoped_92d83650_lang.css +0 -1
  147. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_9e366543_lang.css +0 -1
  148. package/EditableV4.vue_vue_type_style_index_0_scoped_df325b51_lang.css +0 -1
  149. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_b8373c2d_lang.css +0 -1
  150. package/FieldLabel.vue_vue_type_style_index_0_scoped_526af548_lang.css +0 -1
  151. package/FormCard.vue_vue_type_style_index_0_scoped_ad5e4be0_lang.css +0 -1
  152. package/FormRow.vue_vue_type_style_index_0_scoped_017dc22e_lang.css +0 -1
  153. package/InlineCopy.vue_vue_type_style_index_0_scoped_2f0a0202_lang.css +0 -1
  154. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css +0 -1
  155. package/TextArea.vue_vue_type_style_index_0_scoped_889b62ac_lang.css +0 -1
  156. package/TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css +0 -1
  157. package/components/textArea/TextArea.vue.js +0 -7
  158. /package/components/textArea/{TextArea.vue.d.ts → v3/TextArea.vue.d.ts} +0 -0
  159. /package/components/textArea/{index.d.ts → v3/index.d.ts} +0 -0
  160. /package/components/textArea/{index.js → v3/index.js} +0 -0
@@ -1,36 +1,39 @@
1
- import "../../../DataGridRowsCounter.vue_vue_type_style_index_0_scoped_9e366543_lang.css"; import { defineComponent as l, openBlock as u, createElementBlock as i, createVNode as e, unref as o, withCtx as a, createTextVNode as t, toDisplayString as s } from "vue";
2
- import r from "../../typography/v4/Typography.vue.js";
3
- const c = { class: "data-grid-rows-counter" }, m = /* @__PURE__ */ l({
1
+ import "../../../DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css"; import { defineComponent as r, openBlock as i, createElementBlock as d, createVNode as o, unref as n, withCtx as l, createTextVNode as e, toDisplayString as a } from "vue";
2
+ import u from "../../typography/v4/Typography.vue.js";
3
+ const s = { class: "data-grid-rows-counter" }, m = /* @__PURE__ */ r({
4
4
  __name: "DataGridRowsCounter",
5
5
  props: {
6
6
  count: { default: 0 },
7
- totalCount: { default: 0 }
7
+ totalCount: { default: 0 },
8
+ displayingText: { default: "Displaying" },
9
+ outOfText: { default: "out of" },
10
+ totalText: { default: "total rows" }
8
11
  },
9
- setup(n) {
10
- return (d, f) => (u(), i("div", c, [
11
- e(o(r), { variant: "body2" }, {
12
- default: a(() => [
13
- t(" Displaying "),
14
- e(o(r), {
12
+ setup(t) {
13
+ return (c, f) => (i(), d("div", s, [
14
+ o(n(u), { variant: "body1" }, {
15
+ default: l(() => [
16
+ e(a(t.displayingText) + " ", 1),
17
+ o(n(u), {
15
18
  class: "text-strong",
16
- variant: "subtitle2"
19
+ variant: "subtitle1"
17
20
  }, {
18
- default: a(() => [
19
- t(s(n.count), 1)
21
+ default: l(() => [
22
+ e(a(t.count), 1)
20
23
  ]),
21
24
  _: 1
22
25
  }),
23
- t(" out of "),
24
- e(o(r), {
26
+ e(" " + a(t.outOfText) + " ", 1),
27
+ o(n(u), {
25
28
  class: "text-strong",
26
- variant: "subtitle2"
29
+ variant: "subtitle1"
27
30
  }, {
28
- default: a(() => [
29
- t(s(n.totalCount), 1)
31
+ default: l(() => [
32
+ e(a(t.totalCount), 1)
30
33
  ]),
31
34
  _: 1
32
35
  }),
33
- t(" total rows ")
36
+ e(" " + a(t.totalText), 1)
34
37
  ]),
35
38
  _: 1
36
39
  })
@@ -0,0 +1,40 @@
1
+ import { TooltipPositions } from '@/components/tooltip/common/Tooltip.types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ hoverHelpText?: string;
4
+ hoverHelpTextPlacement?: TooltipPositions;
5
+ testId?: string;
6
+ }>, {
7
+ hoverHelpText: string;
8
+ hoverHelpTextPlacement: string;
9
+ testId: string;
10
+ }>, {}, 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<{
11
+ hoverHelpText?: string;
12
+ hoverHelpTextPlacement?: TooltipPositions;
13
+ testId?: string;
14
+ }>, {
15
+ hoverHelpText: string;
16
+ hoverHelpTextPlacement: string;
17
+ testId: string;
18
+ }>>>, {
19
+ testId: string;
20
+ hoverHelpText: string;
21
+ hoverHelpTextPlacement: TooltipPositions;
22
+ }>;
23
+ export default _default;
24
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ type __VLS_TypePropsToRuntimeProps<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: import('vue').PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
33
+ type __VLS_WithDefaults<P, D> = {
34
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
35
+ default: D[K];
36
+ }> : P[K];
37
+ };
38
+ type __VLS_Prettify<T> = {
39
+ [K in keyof T]: T[K];
40
+ } & {};
@@ -0,0 +1,7 @@
1
+ import o from "./HelpIcon.vue2.js";
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css"; //*');
4
+ const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-7a611779"]]);
5
+ export {
6
+ t as default
7
+ };
@@ -0,0 +1,32 @@
1
+ import "../../../HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css"; import { defineComponent as o, openBlock as n, createBlock as l, unref as t, withCtx as r, createVNode as a } from "vue";
2
+ import c from "../../icon/v3/Icon.vue.js";
3
+ import i from "../../tooltip/v4/TooltipV4.vue.js";
4
+ const u = /* @__PURE__ */ o({
5
+ __name: "HelpIcon",
6
+ props: {
7
+ hoverHelpText: { default: "" },
8
+ hoverHelpTextPlacement: { default: "top" },
9
+ testId: { default: "" }
10
+ },
11
+ setup(e) {
12
+ return (m, p) => (n(), l(t(i), {
13
+ class: "table-help-icon",
14
+ triggers: ["hover"],
15
+ text: e.hoverHelpText,
16
+ placement: e.hoverHelpTextPlacement,
17
+ "test-id": e.testId
18
+ }, {
19
+ default: r(() => [
20
+ a(t(c), {
21
+ class: "info-icon",
22
+ name: "question",
23
+ "font-size": "sm"
24
+ })
25
+ ]),
26
+ _: 1
27
+ }, 8, ["text", "placement", "test-id"]));
28
+ }
29
+ });
30
+ export {
31
+ u as default
32
+ };
@@ -10,10 +10,10 @@ declare const DataGridTypes: () => (({
10
10
  title: string;
11
11
  search: string;
12
12
  testId: string;
13
+ isLoading: boolean;
14
+ searchAutoFocus: boolean;
13
15
  searchPlaceholder: string;
14
16
  selection: unknown[];
15
- searchAutoFocus: boolean;
16
- isLoading: boolean;
17
17
  isSticky: boolean;
18
18
  sections: import("../common/Table.types").Section[];
19
19
  isStickyHeader: boolean;
@@ -50,6 +50,14 @@ declare const DataGridTypes: () => (({
50
50
  type: import("vue").PropType<string>;
51
51
  default: string;
52
52
  };
53
+ isLoading: {
54
+ type: import("vue").PropType<boolean>;
55
+ default: boolean;
56
+ };
57
+ searchAutoFocus: {
58
+ type: import("vue").PropType<boolean>;
59
+ default: boolean;
60
+ };
53
61
  searchPlaceholder: {
54
62
  type: import("vue").PropType<string>;
55
63
  default: string;
@@ -58,14 +66,6 @@ declare const DataGridTypes: () => (({
58
66
  type: import("vue").PropType<unknown[]>;
59
67
  default: any;
60
68
  };
61
- searchAutoFocus: {
62
- type: import("vue").PropType<boolean>;
63
- default: boolean;
64
- };
65
- isLoading: {
66
- type: import("vue").PropType<boolean>;
67
- default: boolean;
68
- };
69
69
  isSticky: {
70
70
  type: import("vue").PropType<boolean>;
71
71
  default: boolean;
@@ -142,7 +142,7 @@ declare const DataGridTypes: () => (({
142
142
  onLoadMore?: () => any;
143
143
  "onUpdate:search"?: (query: string) => any;
144
144
  "onUpdate:selection"?: (selection: unknown[]) => any;
145
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "searchPlaceholder" | "selection" | "searchAutoFocus" | "isLoading" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateTitle" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "loadingRowCount" | "defaultScrollPosition" | "getRowId" | "selectedMatcher" | "emptyStateVariant" | "showSearch" | "zIndexBase">;
145
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateTitle" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "loadingRowCount" | "defaultScrollPosition" | "getRowId" | "selectedMatcher" | "emptyStateVariant" | "showSearch" | "zIndexBase">;
146
146
  $attrs: {
147
147
  [x: string]: unknown;
148
148
  };
@@ -182,6 +182,14 @@ declare const DataGridTypes: () => (({
182
182
  type: import("vue").PropType<string>;
183
183
  default: string;
184
184
  };
185
+ isLoading: {
186
+ type: import("vue").PropType<boolean>;
187
+ default: boolean;
188
+ };
189
+ searchAutoFocus: {
190
+ type: import("vue").PropType<boolean>;
191
+ default: boolean;
192
+ };
185
193
  searchPlaceholder: {
186
194
  type: import("vue").PropType<string>;
187
195
  default: string;
@@ -190,14 +198,6 @@ declare const DataGridTypes: () => (({
190
198
  type: import("vue").PropType<unknown[]>;
191
199
  default: any;
192
200
  };
193
- searchAutoFocus: {
194
- type: import("vue").PropType<boolean>;
195
- default: boolean;
196
- };
197
- isLoading: {
198
- type: import("vue").PropType<boolean>;
199
- default: boolean;
200
- };
201
201
  isSticky: {
202
202
  type: import("vue").PropType<boolean>;
203
203
  default: boolean;
@@ -291,10 +291,10 @@ declare const DataGridTypes: () => (({
291
291
  title: string;
292
292
  search: string;
293
293
  testId: string;
294
+ isLoading: boolean;
295
+ searchAutoFocus: boolean;
294
296
  searchPlaceholder: string;
295
297
  selection: unknown[];
296
- searchAutoFocus: boolean;
297
- isLoading: boolean;
298
298
  isSticky: boolean;
299
299
  sections: import("../common/Table.types").Section[];
300
300
  isStickyHeader: boolean;
@@ -351,6 +351,14 @@ declare const DataGridTypes: () => (({
351
351
  type: import("vue").PropType<string>;
352
352
  default: string;
353
353
  };
354
+ isLoading: {
355
+ type: import("vue").PropType<boolean>;
356
+ default: boolean;
357
+ };
358
+ searchAutoFocus: {
359
+ type: import("vue").PropType<boolean>;
360
+ default: boolean;
361
+ };
354
362
  searchPlaceholder: {
355
363
  type: import("vue").PropType<string>;
356
364
  default: string;
@@ -359,14 +367,6 @@ declare const DataGridTypes: () => (({
359
367
  type: import("vue").PropType<unknown[]>;
360
368
  default: any;
361
369
  };
362
- searchAutoFocus: {
363
- type: import("vue").PropType<boolean>;
364
- default: boolean;
365
- };
366
- isLoading: {
367
- type: import("vue").PropType<boolean>;
368
- default: boolean;
369
- };
370
370
  isSticky: {
371
371
  type: import("vue").PropType<boolean>;
372
372
  default: boolean;
@@ -468,6 +468,14 @@ declare const DataGridTypes: () => (({
468
468
  type: import("vue").PropType<string>;
469
469
  default: string;
470
470
  };
471
+ isLoading: {
472
+ type: import("vue").PropType<boolean>;
473
+ default: boolean;
474
+ };
475
+ searchAutoFocus: {
476
+ type: import("vue").PropType<boolean>;
477
+ default: boolean;
478
+ };
471
479
  searchPlaceholder: {
472
480
  type: import("vue").PropType<string>;
473
481
  default: string;
@@ -476,14 +484,6 @@ declare const DataGridTypes: () => (({
476
484
  type: import("vue").PropType<unknown[]>;
477
485
  default: any;
478
486
  };
479
- searchAutoFocus: {
480
- type: import("vue").PropType<boolean>;
481
- default: boolean;
482
- };
483
- isLoading: {
484
- type: import("vue").PropType<boolean>;
485
- default: boolean;
486
- };
487
487
  isSticky: {
488
488
  type: import("vue").PropType<boolean>;
489
489
  default: boolean;
@@ -577,10 +577,10 @@ declare const DataGridTypes: () => (({
577
577
  title: string;
578
578
  search: string;
579
579
  testId: string;
580
+ isLoading: boolean;
581
+ searchAutoFocus: boolean;
580
582
  searchPlaceholder: string;
581
583
  selection: unknown[];
582
- searchAutoFocus: boolean;
583
- isLoading: boolean;
584
584
  isSticky: boolean;
585
585
  sections: import("../common/Table.types").Section[];
586
586
  isStickyHeader: boolean;
@@ -619,8 +619,8 @@ declare const DataGridTypes: () => (({
619
619
  footer?(_: {}): any;
620
620
  };
621
621
  })) | import("vue").DefineComponent<{
622
- container: {
623
- type: import("vue").PropType<string>;
622
+ rowIndex: {
623
+ type: import("vue").PropType<number>;
624
624
  default: any;
625
625
  };
626
626
  menuItems: {
@@ -631,8 +631,8 @@ declare const DataGridTypes: () => (({
631
631
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
632
632
  selected: (option: unknown) => void;
633
633
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
634
- container: {
635
- type: import("vue").PropType<string>;
634
+ rowIndex: {
635
+ type: import("vue").PropType<number>;
636
636
  default: any;
637
637
  };
638
638
  menuItems: {
@@ -643,7 +643,7 @@ declare const DataGridTypes: () => (({
643
643
  }>> & {
644
644
  onSelected?: (option: unknown) => any;
645
645
  }, {
646
- container: string;
646
+ rowIndex: number;
647
647
  menuItems: import("../common/Table.types").MenuItem[];
648
648
  }> | import("vue").DefineComponent<{
649
649
  count: {
@@ -654,6 +654,18 @@ declare const DataGridTypes: () => (({
654
654
  type: import("vue").PropType<number>;
655
655
  default: number;
656
656
  };
657
+ displayingText: {
658
+ type: import("vue").PropType<string>;
659
+ default: string;
660
+ };
661
+ outOfText: {
662
+ type: import("vue").PropType<string>;
663
+ default: string;
664
+ };
665
+ totalText: {
666
+ type: import("vue").PropType<string>;
667
+ default: string;
668
+ };
657
669
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
658
670
  count: {
659
671
  type: import("vue").PropType<number>;
@@ -663,9 +675,24 @@ declare const DataGridTypes: () => (({
663
675
  type: import("vue").PropType<number>;
664
676
  default: number;
665
677
  };
678
+ displayingText: {
679
+ type: import("vue").PropType<string>;
680
+ default: string;
681
+ };
682
+ outOfText: {
683
+ type: import("vue").PropType<string>;
684
+ default: string;
685
+ };
686
+ totalText: {
687
+ type: import("vue").PropType<string>;
688
+ default: string;
689
+ };
666
690
  }>>, {
667
691
  count: number;
668
692
  totalCount: number;
693
+ displayingText: string;
694
+ outOfText: string;
695
+ totalText: string;
669
696
  }>)[];
670
697
  export type { Column, Sort, MenuItem } from '../common/Table.types';
671
698
  export { DataGrid, DataGridMenu, DataGridRowsCounter, DataGridTypes };
@@ -2,38 +2,38 @@ import { ref as a, provide as v } from "vue";
2
2
  import { useTableContext as s } from "../../table/common/TableContext.js";
3
3
  import { EditableContext as d } from "./EditableContext.js";
4
4
  import { onClickOutside as f } from "@vueuse/core";
5
- const E = (e) => {
6
- const l = a(!1), o = a(e.cell), r = a(null), u = s("Editable"), t = a(null);
5
+ const g = (e) => {
6
+ const l = a(!1), n = a(e.cell), u = a(null), r = s("Editable"), o = a(null);
7
7
  v(d, {
8
8
  focusable: !0,
9
- value: o,
10
- error: t,
9
+ value: n,
10
+ error: o,
11
11
  confirmable: !0,
12
- onChange(n) {
13
- o.value = n, t.value = e.validateFunction?.(o.value);
12
+ onChange(t) {
13
+ n.value = t, o.value = e.validateFunction?.(n.value);
14
14
  },
15
15
  onClose: () => {
16
- const n = e.validateFunction?.(o.value);
17
- t.value = n, !n && (u.onClose({
16
+ const t = e.validateFunction?.(n.value);
17
+ o.value = t, !t && (r.onClose({
18
18
  rowIndex: e.rowIndex,
19
19
  cellIndex: e.cellIndex,
20
- value: o.value
20
+ value: n.value
21
21
  }), l.value = !1);
22
22
  }
23
23
  });
24
24
  const i = () => {
25
- l.value || (l.value = !l.value);
25
+ l.value || e.isLoading || (l.value = !l.value);
26
26
  }, c = () => {
27
- o.value = e.cell, t.value = null;
27
+ n.value = e.cell, o.value = null;
28
28
  };
29
- return f(r, () => {
30
- l.value = !1, c(), u.onClose();
29
+ return f(u, () => {
30
+ l.value = !1, c(), r.onClose();
31
31
  }), {
32
32
  onEdit: i,
33
- target: r,
33
+ target: u,
34
34
  isEditing: l
35
35
  };
36
36
  };
37
37
  export {
38
- E as editableCommon
38
+ g as editableCommon
39
39
  };
@@ -3,25 +3,35 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
3
3
  isLoading?: boolean;
4
4
  rowIndex: number;
5
5
  cellIndex: number;
6
+ type: "input" | "dropdown";
6
7
  validateFunction?: (value: unknown) => string | boolean;
8
+ displayValue?: (option: unknown) => unknown;
7
9
  }>, {
8
10
  cell: string;
9
11
  isLoading: boolean;
12
+ type: string;
10
13
  validateFunction: () => false;
14
+ displayValue: (cell: unknown) => unknown;
11
15
  }>, {}, 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<{
12
16
  cell?: string;
13
17
  isLoading?: boolean;
14
18
  rowIndex: number;
15
19
  cellIndex: number;
20
+ type: "input" | "dropdown";
16
21
  validateFunction?: (value: unknown) => string | boolean;
22
+ displayValue?: (option: unknown) => unknown;
17
23
  }>, {
18
24
  cell: string;
19
25
  isLoading: boolean;
26
+ type: string;
20
27
  validateFunction: () => false;
28
+ displayValue: (cell: unknown) => unknown;
21
29
  }>>>, {
30
+ type: "input" | "dropdown";
22
31
  cell: string;
23
32
  validateFunction: (value: unknown) => string | boolean;
24
33
  isLoading: boolean;
34
+ displayValue: (option: unknown) => unknown;
25
35
  }>, {
26
36
  input?(_: {}): any;
27
37
  content?(_: {}): any;
@@ -1,7 +1,7 @@
1
1
  import o from "./EditableV4.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../EditableV4.vue_vue_type_style_index_0_scoped_df325b51_lang.css"; //*');
4
- const d = /* @__PURE__ */ e(o, [["__scopeId", "data-v-df325b51"]]);
3
+ // import "../../../EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-31bfb722"]]);
5
5
  export {
6
- d as default
6
+ p as default
7
7
  };
@@ -1,39 +1,48 @@
1
- import "../../../EditableV4.vue_vue_type_style_index_0_scoped_df325b51_lang.css"; import { defineComponent as u, openBlock as r, createElementBlock as a, unref as e, createElementVNode as m, renderSlot as i, createVNode as d, withCtx as y, createTextVNode as b, toDisplayString as g } from "vue";
2
- import { editableCommon as k } from "../common/Editable.common.js";
3
- import _ from "../../typography/v4/Typography.vue.js";
4
- import v from "../../input/v4/TextField.vue.js";
5
- const x = { class: "editable-wrapper" }, E = {
1
+ import "../../../EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css"; import { defineComponent as m, openBlock as o, createElementBlock as i, unref as t, createElementVNode as f, renderSlot as r, createVNode as d, withCtx as y, createTextVNode as k, toDisplayString as V, createBlock as b, createCommentVNode as g } from "vue";
2
+ import { editableCommon as x } from "../common/Editable.common.js";
3
+ import v from "../../typography/v4/Typography.vue.js";
4
+ import w from "../../input/v4/TextField.vue.js";
5
+ import C from "../../icon/v4/IconV4.vue.js";
6
+ const E = { class: "editable-wrapper" }, B = {
6
7
  key: 1,
7
8
  class: "editable-content"
8
- }, B = /* @__PURE__ */ u({
9
+ }, S = /* @__PURE__ */ m({
9
10
  __name: "EditableV4",
10
11
  props: {
11
12
  cell: { default: "" },
12
13
  isLoading: { type: Boolean, default: !1 },
13
14
  rowIndex: null,
14
15
  cellIndex: null,
15
- validateFunction: { type: Function, default: () => !1 }
16
+ type: { default: "input" },
17
+ validateFunction: { type: Function, default: () => !1 },
18
+ displayValue: { type: Function, default: (e) => e }
16
19
  },
17
- setup(t) {
18
- const s = t, { onEdit: o, target: c, isEditing: p } = k(s);
19
- return (n, l) => (r(), a("div", {
20
+ setup(e) {
21
+ const c = e, { onEdit: n, target: s, isEditing: p } = x(c);
22
+ return (l, a) => (o(), i("div", {
20
23
  ref_key: "target",
21
- ref: c,
24
+ ref: s,
22
25
  class: "editable",
23
- onClick: l[0] || (l[0] = //@ts-ignore
24
- (...f) => e(o) && e(o)(...f))
26
+ onClick: a[0] || (a[0] = //@ts-ignore
27
+ (...u) => t(n) && t(n)(...u))
25
28
  }, [
26
- m("div", x, [
27
- e(p) ? i(n.$slots, "input", { key: 0 }, () => [
28
- d(e(v))
29
- ], !0) : (r(), a("div", E, [
30
- i(n.$slots, "content", {}, () => [
31
- d(e(_), { variant: "body1" }, {
29
+ f("div", E, [
30
+ t(p) ? r(l.$slots, "input", { key: 0 }, () => [
31
+ d(t(w))
32
+ ], !0) : (o(), i("div", B, [
33
+ r(l.$slots, "content", {}, () => [
34
+ d(t(v), { variant: "body1" }, {
32
35
  default: y(() => [
33
- b(g(t.cell), 1)
36
+ k(V(e.displayValue(e.cell)), 1)
34
37
  ]),
35
38
  _: 1
36
- })
39
+ }),
40
+ e.type === "dropdown" ? (o(), b(t(C), {
41
+ key: 0,
42
+ class: "caret-icon",
43
+ name: "caret-down",
44
+ size: "20px"
45
+ })) : g("", !0)
37
46
  ], !0)
38
47
  ]))
39
48
  ])
@@ -41,5 +50,5 @@ const x = { class: "editable-wrapper" }, E = {
41
50
  }
42
51
  });
43
52
  export {
44
- B as default
53
+ S as default
45
54
  };