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

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 (92) hide show
  1. package/AppHeader.vue_vue_type_style_index_0_scoped_95908b8d_lang.css +1 -0
  2. package/CardPanel.vue_vue_type_style_index_0_scoped_7d0acb11_lang.css +1 -0
  3. package/CheckboxV4.vue_vue_type_style_index_0_scoped_d25514d1_lang.css +1 -0
  4. package/DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css +1 -0
  5. package/DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css +1 -0
  6. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +1 -0
  7. package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +1 -0
  8. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +1 -0
  9. package/FieldLabel.vue_vue_type_style_index_0_scoped_5c2a70ad_lang.css +1 -0
  10. package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +1 -0
  11. package/FormRow.vue_vue_type_style_index_0_scoped_39f48410_lang.css +1 -0
  12. package/InlineCopy.vue_vue_type_style_index_0_scoped_2a9e8782_lang.css +1 -0
  13. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_cb3a12c6_lang.css +1 -0
  14. package/TextArea.vue_vue_type_style_index_0_scoped_eb62e4c0_lang.css +1 -0
  15. package/TextAreaV4.vue_vue_type_style_index_0_scoped_6e91a617_lang.css +1 -0
  16. package/TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css +1 -0
  17. package/components/appHeader/AppHeader.vue.js +3 -3
  18. package/components/appHeader/AppHeader.vue2.js +41 -35
  19. package/components/checkbox/v4/CheckboxV4.vue.js +4 -4
  20. package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
  21. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +11 -12
  22. package/components/checkbox/v4/icons/UncheckedState.vue.js +12 -11
  23. package/components/dropdown/common/Dropdown.common.js +93 -92
  24. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +15 -0
  25. package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
  26. package/components/emptyState/v4/EmptyStateV4.vue2.js +41 -27
  27. package/components/emptyState/v4/index.d.ts +58 -1
  28. package/components/forms/CardPanel.vue.d.ts +20 -0
  29. package/components/forms/CardPanel.vue.js +2 -2
  30. package/components/forms/CardPanel.vue2.js +26 -14
  31. package/components/forms/FormRow.vue.js +4 -4
  32. package/components/forms/FormRow.vue2.js +1 -1
  33. package/components/forms/index.d.ts +77 -1
  34. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  35. package/components/inlineCopy/InlineCopy.vue2.js +2 -2
  36. package/components/input/v4/TextField.vue.d.ts +1 -1
  37. package/components/input/v4/TextField.vue.js +3 -3
  38. package/components/input/v4/TextField.vue2.js +83 -90
  39. package/components/input/v4/index.d.ts +20 -20
  40. package/components/radioButton/v4/RadioButtonV4.vue.js +4 -4
  41. package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
  42. package/components/shared/FieldLabel.vue.d.ts +5 -0
  43. package/components/shared/FieldLabel.vue.js +3 -3
  44. package/components/shared/FieldLabel.vue2.js +63 -46
  45. package/components/shared/FieldMaxLength.vue.d.ts +34 -0
  46. package/components/shared/FieldMaxLength.vue.js +7 -0
  47. package/components/shared/FieldMaxLength.vue2.js +24 -0
  48. package/components/table/common/Table.common.d.ts +1 -0
  49. package/components/table/common/Table.common.js +64 -60
  50. package/components/table/common/TableContext.d.ts +1 -0
  51. package/components/table/v4/DataGrid.vue.js +4 -4
  52. package/components/table/v4/DataGrid.vue2.js +71 -69
  53. package/components/table/v4/DataGridMenu.vue.d.ts +5 -5
  54. package/components/table/v4/DataGridMenu.vue.js +4 -4
  55. package/components/table/v4/DataGridMenu.vue2.js +46 -47
  56. package/components/table/v4/DataGridRowsCounter.vue.d.ts +15 -0
  57. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  58. package/components/table/v4/DataGridRowsCounter.vue2.js +22 -19
  59. package/components/table/v4/index.d.ts +32 -5
  60. package/components/table-cells/common/Editable.common.js +15 -15
  61. package/components/table-cells/v4/EditableV4.vue.d.ts +10 -0
  62. package/components/table-cells/v4/EditableV4.vue.js +3 -3
  63. package/components/table-cells/v4/EditableV4.vue2.js +31 -22
  64. package/components/table-cells/v4/index.d.ts +43 -1
  65. package/components/textArea/v3/TextArea.vue.js +7 -0
  66. package/components/textArea/{TextArea.vue2.js → v3/TextArea.vue2.js} +4 -4
  67. package/components/textArea/v4/TextAreaV4.vue.d.ts +90 -0
  68. package/components/textArea/v4/TextAreaV4.vue.js +7 -0
  69. package/components/textArea/v4/TextAreaV4.vue2.js +74 -0
  70. package/components/textArea/v4/index.d.ts +118 -0
  71. package/components/textArea/v4/index.js +6 -0
  72. package/index.d.ts +538 -55
  73. package/index.js +67 -67
  74. package/package.json +3 -2
  75. package/AppHeader.vue_vue_type_style_index_0_scoped_209ecc03_lang.css +0 -1
  76. package/CardPanel.vue_vue_type_style_index_0_scoped_d2b5d12f_lang.css +0 -1
  77. package/CheckboxV4.vue_vue_type_style_index_0_scoped_ee3e6d82_lang.css +0 -1
  78. package/DataGrid.vue_vue_type_style_index_0_scoped_d5635f1b_lang.css +0 -1
  79. package/DataGridMenu.vue_vue_type_style_index_0_scoped_92d83650_lang.css +0 -1
  80. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_9e366543_lang.css +0 -1
  81. package/EditableV4.vue_vue_type_style_index_0_scoped_df325b51_lang.css +0 -1
  82. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_b8373c2d_lang.css +0 -1
  83. package/FieldLabel.vue_vue_type_style_index_0_scoped_526af548_lang.css +0 -1
  84. package/FormRow.vue_vue_type_style_index_0_scoped_017dc22e_lang.css +0 -1
  85. package/InlineCopy.vue_vue_type_style_index_0_scoped_2f0a0202_lang.css +0 -1
  86. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css +0 -1
  87. package/TextArea.vue_vue_type_style_index_0_scoped_889b62ac_lang.css +0 -1
  88. package/TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css +0 -1
  89. package/components/textArea/TextArea.vue.js +0 -7
  90. /package/components/textArea/{TextArea.vue.d.ts → v3/TextArea.vue.d.ts} +0 -0
  91. /package/components/textArea/{index.d.ts → v3/index.d.ts} +0 -0
  92. /package/components/textArea/{index.js → v3/index.js} +0 -0
@@ -18,13 +18,13 @@ declare const TextFieldTypes: () => ({
18
18
  hoverHelpTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
19
19
  feedbackText: string;
20
20
  feedbackVariant: "success" | "warning" | "error";
21
+ maxLength: number;
21
22
  viewOnly: boolean;
22
23
  labelDirection: "top" | "inside";
23
24
  hideNumberArrows: boolean;
24
25
  step: number;
25
26
  onlyDigits: boolean;
26
27
  suffix: string;
27
- maxLength: number;
28
28
  showApply: boolean;
29
29
  inlineError: boolean;
30
30
  inlineErrorText: string;
@@ -86,6 +86,10 @@ declare const TextFieldTypes: () => ({
86
86
  type: import("vue").PropType<"success" | "warning" | "error">;
87
87
  default: any;
88
88
  };
89
+ maxLength: {
90
+ type: import("vue").PropType<number>;
91
+ default: any;
92
+ };
89
93
  viewOnly: {
90
94
  type: import("vue").PropType<boolean>;
91
95
  default: boolean;
@@ -110,10 +114,6 @@ declare const TextFieldTypes: () => ({
110
114
  type: import("vue").PropType<string>;
111
115
  default: string;
112
116
  };
113
- maxLength: {
114
- type: import("vue").PropType<number>;
115
- default: any;
116
- };
117
117
  showApply: {
118
118
  type: import("vue").PropType<boolean>;
119
119
  default: boolean;
@@ -133,7 +133,7 @@ declare const TextFieldTypes: () => ({
133
133
  }>> & {
134
134
  "onUpdate:modelValue"?: (value: string | number) => any;
135
135
  onApply?: () => any;
136
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "label" | "disabled" | "size" | "mandatory" | "testId" | "modelValue" | "placeholder" | "autoFocus" | "prefix" | "hoverHelpText" | "hoverHelpTextPlacement" | "feedbackText" | "feedbackVariant" | "viewOnly" | "labelDirection" | "hideNumberArrows" | "step" | "onlyDigits" | "suffix" | "maxLength" | "showApply" | "inlineError" | "inlineErrorText" | "showFeedbackTextIcon">;
136
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "label" | "disabled" | "size" | "mandatory" | "testId" | "modelValue" | "placeholder" | "autoFocus" | "prefix" | "hoverHelpText" | "hoverHelpTextPlacement" | "feedbackText" | "feedbackVariant" | "maxLength" | "viewOnly" | "labelDirection" | "hideNumberArrows" | "step" | "onlyDigits" | "suffix" | "showApply" | "inlineError" | "inlineErrorText" | "showFeedbackTextIcon">;
137
137
  $attrs: {
138
138
  [x: string]: unknown;
139
139
  };
@@ -204,6 +204,10 @@ declare const TextFieldTypes: () => ({
204
204
  type: import("vue").PropType<"success" | "warning" | "error">;
205
205
  default: any;
206
206
  };
207
+ maxLength: {
208
+ type: import("vue").PropType<number>;
209
+ default: any;
210
+ };
207
211
  viewOnly: {
208
212
  type: import("vue").PropType<boolean>;
209
213
  default: boolean;
@@ -228,10 +232,6 @@ declare const TextFieldTypes: () => ({
228
232
  type: import("vue").PropType<string>;
229
233
  default: string;
230
234
  };
231
- maxLength: {
232
- type: import("vue").PropType<number>;
233
- default: any;
234
- };
235
235
  showApply: {
236
236
  type: import("vue").PropType<boolean>;
237
237
  default: boolean;
@@ -271,13 +271,13 @@ declare const TextFieldTypes: () => ({
271
271
  hoverHelpTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
272
272
  feedbackText: string;
273
273
  feedbackVariant: "success" | "warning" | "error";
274
+ maxLength: number;
274
275
  viewOnly: boolean;
275
276
  labelDirection: "top" | "inside";
276
277
  hideNumberArrows: boolean;
277
278
  step: number;
278
279
  onlyDigits: boolean;
279
280
  suffix: string;
280
- maxLength: number;
281
281
  showApply: boolean;
282
282
  inlineError: boolean;
283
283
  inlineErrorText: string;
@@ -359,6 +359,10 @@ declare const TextFieldTypes: () => ({
359
359
  type: import("vue").PropType<"success" | "warning" | "error">;
360
360
  default: any;
361
361
  };
362
+ maxLength: {
363
+ type: import("vue").PropType<number>;
364
+ default: any;
365
+ };
362
366
  viewOnly: {
363
367
  type: import("vue").PropType<boolean>;
364
368
  default: boolean;
@@ -383,10 +387,6 @@ declare const TextFieldTypes: () => ({
383
387
  type: import("vue").PropType<string>;
384
388
  default: string;
385
389
  };
386
- maxLength: {
387
- type: import("vue").PropType<number>;
388
- default: any;
389
- };
390
390
  showApply: {
391
391
  type: import("vue").PropType<boolean>;
392
392
  default: boolean;
@@ -469,6 +469,10 @@ declare const TextFieldTypes: () => ({
469
469
  type: import("vue").PropType<"success" | "warning" | "error">;
470
470
  default: any;
471
471
  };
472
+ maxLength: {
473
+ type: import("vue").PropType<number>;
474
+ default: any;
475
+ };
472
476
  viewOnly: {
473
477
  type: import("vue").PropType<boolean>;
474
478
  default: boolean;
@@ -493,10 +497,6 @@ declare const TextFieldTypes: () => ({
493
497
  type: import("vue").PropType<string>;
494
498
  default: string;
495
499
  };
496
- maxLength: {
497
- type: import("vue").PropType<number>;
498
- default: any;
499
- };
500
500
  showApply: {
501
501
  type: import("vue").PropType<boolean>;
502
502
  default: boolean;
@@ -536,13 +536,13 @@ declare const TextFieldTypes: () => ({
536
536
  hoverHelpTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
537
537
  feedbackText: string;
538
538
  feedbackVariant: "success" | "warning" | "error";
539
+ maxLength: number;
539
540
  viewOnly: boolean;
540
541
  labelDirection: "top" | "inside";
541
542
  hideNumberArrows: boolean;
542
543
  step: number;
543
544
  onlyDigits: boolean;
544
545
  suffix: string;
545
- maxLength: number;
546
546
  showApply: boolean;
547
547
  inlineError: boolean;
548
548
  inlineErrorText: string;
@@ -1,7 +1,7 @@
1
1
  import o from "./RadioButtonV4.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-14be812e"]]);
2
+ /* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../RadioButtonV4.vue_vue_type_style_index_0_scoped_cb3a12c6_lang.css"; //*');
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cb3a12c6"]]);
5
5
  export {
6
- p as default
6
+ s as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css"; import { defineComponent as h, ref as y, inject as g, computed as n, openBlock as I, createElementBlock as R, normalizeClass as p, unref as e, createElementVNode as r, withDirectives as E, mergeProps as v, isRef as k, vModelRadio as B, renderSlot as T, createVNode as w, withCtx as x, createTextVNode as A, toDisplayString as C } from "vue";
1
+ import "../../../RadioButtonV4.vue_vue_type_style_index_0_scoped_cb3a12c6_lang.css"; import { defineComponent as h, ref as y, inject as g, computed as n, openBlock as I, createElementBlock as R, normalizeClass as p, unref as e, createElementVNode as r, withDirectives as E, mergeProps as v, isRef as k, vModelRadio as B, renderSlot as T, createVNode as w, withCtx as x, createTextVNode as A, toDisplayString as C } from "vue";
2
2
  import D from "../../typography/v4/Typography.vue.js";
3
3
  import { radioGroupKey as G } from "../common/useRadio.js";
4
4
  import { RadioTestIdModifiers as u } from "../../../testids/index.js";
@@ -1,6 +1,7 @@
1
1
  import { TooltipPositions } from '@/components/tooltip/common/Tooltip.types';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  label: string;
4
+ description?: string;
4
5
  mandatory?: boolean;
5
6
  disabled?: boolean;
6
7
  hoverHelpText?: string;
@@ -8,6 +9,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
8
9
  testId?: string;
9
10
  }>, {
10
11
  label: string;
12
+ description: string;
11
13
  testId: string;
12
14
  mandatory: boolean;
13
15
  disabled: boolean;
@@ -15,6 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
15
17
  hoverHelpTextPlacement: string;
16
18
  }>, {}, 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<{
17
19
  label: string;
20
+ description?: string;
18
21
  mandatory?: boolean;
19
22
  disabled?: boolean;
20
23
  hoverHelpText?: string;
@@ -22,6 +25,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
22
25
  testId?: string;
23
26
  }>, {
24
27
  label: string;
28
+ description: string;
25
29
  testId: string;
26
30
  mandatory: boolean;
27
31
  disabled: boolean;
@@ -32,6 +36,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
32
36
  disabled: boolean;
33
37
  mandatory: boolean;
34
38
  testId: string;
39
+ description: string;
35
40
  hoverHelpText: string;
36
41
  hoverHelpTextPlacement: TooltipPositions;
37
42
  }>;
@@ -1,7 +1,7 @@
1
1
  import e from "./FieldLabel.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../FieldLabel.vue_vue_type_style_index_0_scoped_526af548_lang.css"; //*');
4
- const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-526af548"]]);
3
+ // import "../../FieldLabel.vue_vue_type_style_index_0_scoped_5c2a70ad_lang.css"; //*');
4
+ const t = /* @__PURE__ */ o(e, [["__scopeId", "data-v-5c2a70ad"]]);
5
5
  export {
6
- a as default
6
+ t as default
7
7
  };
@@ -1,13 +1,17 @@
1
- import "../../FieldLabel.vue_vue_type_style_index_0_scoped_526af548_lang.css"; import { defineComponent as c, openBlock as r, createElementBlock as u, mergeProps as o, unref as e, createVNode as n, withCtx as d, createTextVNode as s, toDisplayString as p, createBlock as i, createCommentVNode as m } from "vue";
2
- import T from "../icon/v3/Icon.vue.js";
3
- import b from "../tooltip/v4/TooltipV4.vue.js";
4
- import f from "../typography/v4/Typography.vue.js";
1
+ import "../../FieldLabel.vue_vue_type_style_index_0_scoped_5c2a70ad_lang.css"; import { defineComponent as p, openBlock as o, createElementBlock as m, Fragment as T, createElementVNode as b, mergeProps as d, unref as e, createVNode as r, withCtx as i, createTextVNode as n, toDisplayString as f, createBlock as u, createCommentVNode as s } from "vue";
2
+ import h from "../icon/v3/Icon.vue.js";
3
+ import y from "../tooltip/v4/TooltipV4.vue.js";
4
+ import c from "../typography/v4/Typography.vue.js";
5
5
  import { FieldLabelTestIdModifiers as a } from "../../testids/index.js";
6
- import { useTestIdAttrs as x } from "../../utils/testIds.js";
7
- const H = /* @__PURE__ */ c({
6
+ import { useTestIdAttrs as v } from "../../utils/testIds.js";
7
+ const x = {
8
+ key: 0,
9
+ class: "description"
10
+ }, L = /* @__PURE__ */ p({
8
11
  __name: "FieldLabel",
9
12
  props: {
10
13
  label: { default: "" },
14
+ description: { default: "" },
11
15
  mandatory: { type: Boolean, default: !1 },
12
16
  disabled: { type: Boolean, default: !1 },
13
17
  hoverHelpText: { default: "" },
@@ -15,47 +19,60 @@ const H = /* @__PURE__ */ c({
15
19
  testId: { default: "" }
16
20
  },
17
21
  setup(t) {
18
- const l = x(t.testId, a);
19
- return (y, v) => (r(), u("div", o({
20
- class: ["field-label", { "field-label--disabled": t.disabled }]
21
- }, e(l)[e(a).CONTAINER]), [
22
- n(e(f), o({
23
- class: "label",
24
- variant: "inputLabel"
25
- }, e(l)[e(a).TEXT]), {
26
- default: d(() => [
27
- s(p(t.label), 1)
28
- ]),
29
- _: 1
30
- }, 16),
31
- t.mandatory ? (r(), i(e(f), o({
32
- key: 0,
33
- variant: "h3",
34
- class: "mandatory"
35
- }, e(l)[e(a).MANDATORY]), {
36
- default: d(() => [
37
- s("*")
38
- ]),
39
- _: 1
40
- }, 16)) : m("", !0),
41
- t.hoverHelpText ? (r(), i(e(b), o({
42
- key: 1,
43
- triggers: ["hover"],
44
- text: t.hoverHelpText,
45
- placement: t.hoverHelpTextPlacement
46
- }, e(l)[e(a).TOOLTIP], { "test-id": t.testId }), {
47
- default: d(() => [
48
- n(e(T), {
49
- class: "info-icon",
50
- name: "question",
51
- "font-size": "sm"
52
- })
53
- ]),
54
- _: 1
55
- }, 16, ["text", "placement", "test-id"])) : m("", !0)
56
- ], 16));
22
+ const l = v(t.testId, a);
23
+ return (N, g) => (o(), m(T, null, [
24
+ b("div", d({
25
+ class: ["field-label", {
26
+ "field-label--disabled": t.disabled,
27
+ "field-label--with-description": !!t.description
28
+ }]
29
+ }, e(l)[e(a).CONTAINER]), [
30
+ r(e(c), d({
31
+ class: "label",
32
+ variant: "inputLabel"
33
+ }, e(l)[e(a).TEXT]), {
34
+ default: i(() => [
35
+ n(f(t.label), 1)
36
+ ]),
37
+ _: 1
38
+ }, 16),
39
+ t.mandatory ? (o(), u(e(c), d({
40
+ key: 0,
41
+ variant: "h3",
42
+ class: "mandatory"
43
+ }, e(l)[e(a).MANDATORY]), {
44
+ default: i(() => [
45
+ n("*")
46
+ ]),
47
+ _: 1
48
+ }, 16)) : s("", !0),
49
+ t.hoverHelpText ? (o(), u(e(y), d({
50
+ key: 1,
51
+ triggers: ["hover"],
52
+ text: t.hoverHelpText,
53
+ placement: t.hoverHelpTextPlacement
54
+ }, e(l)[e(a).TOOLTIP], { "test-id": t.testId }), {
55
+ default: i(() => [
56
+ r(e(h), {
57
+ class: "info-icon",
58
+ name: "question",
59
+ "font-size": "sm"
60
+ })
61
+ ]),
62
+ _: 1
63
+ }, 16, ["text", "placement", "test-id"])) : s("", !0)
64
+ ], 16),
65
+ t.description ? (o(), m("div", x, [
66
+ r(e(c), { variant: "body2" }, {
67
+ default: i(() => [
68
+ n(f(t.description), 1)
69
+ ]),
70
+ _: 1
71
+ })
72
+ ])) : s("", !0)
73
+ ], 64));
57
74
  }
58
75
  });
59
76
  export {
60
- H as default
77
+ L as default
61
78
  };
@@ -0,0 +1,34 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ currentLength: number;
3
+ maxLength?: number;
4
+ }>, {
5
+ currentLength: number;
6
+ maxLength: number;
7
+ }>, {}, 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<{
8
+ currentLength: number;
9
+ maxLength?: number;
10
+ }>, {
11
+ currentLength: number;
12
+ maxLength: number;
13
+ }>>>, {
14
+ currentLength: number;
15
+ maxLength: number;
16
+ }>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -0,0 +1,7 @@
1
+ import e from "./FieldMaxLength.vue2.js";
2
+ /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-f3c4001a"]]);
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,24 @@
1
+ import "../../FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css"; import { defineComponent as n, openBlock as o, createElementBlock as c, createVNode as r, unref as d, withCtx as p, createTextVNode as t, toDisplayString as a, pushScopeId as i, popScopeId as s, createElementVNode as h } from "vue";
2
+ import l from "../typography/v4/Typography.vue.js";
3
+ const m = (e) => (i("data-v-f3c4001a"), e = e(), s(), e), _ = { class: "max-length" }, u = /* @__PURE__ */ m(() => /* @__PURE__ */ h("span", { class: "max-length__divider" }, "/", -1)), v = /* @__PURE__ */ n({
4
+ __name: "FieldMaxLength",
5
+ props: {
6
+ currentLength: { default: 0 },
7
+ maxLength: { default: 100 }
8
+ },
9
+ setup(e) {
10
+ return (f, g) => (o(), c("div", _, [
11
+ r(d(l), { variant: "caption" }, {
12
+ default: p(() => [
13
+ t(a(e.currentLength) + " ", 1),
14
+ u,
15
+ t(" " + a(e.maxLength), 1)
16
+ ]),
17
+ _: 1
18
+ })
19
+ ]));
20
+ }
21
+ });
22
+ export {
23
+ v as default
24
+ };
@@ -32,4 +32,5 @@ export declare const tableCommon: (props: any, emit: any) => {
32
32
  isRowExpanded: (rowIndex: number) => boolean;
33
33
  cssRowHeight: import("vue").ComputedRef<string>;
34
34
  cssExpandGridCol: import("vue").ComputedRef<string>;
35
+ activeMenuRow: import("vue").Ref<number>;
35
36
  };
@@ -1,114 +1,118 @@
1
- import { useSlots as z, ref as a, provide as G, computed as s, onMounted as K, nextTick as N } from "vue";
2
- import { useVirtualList as V, useInfiniteScroll as j } from "@vueuse/core";
3
- import { TableContext as q } from "./TableContext.js";
4
- const F = 46, J = 46, Z = (o, u) => {
5
- const v = z(), c = a([]);
6
- G(q, {
7
- onClose({ rowIndex: t, cellIndex: e, value: n } = {}) {
8
- n && (c.value = [...c.value, t], u("saveRow", {
1
+ import { useSlots as G, ref as c, provide as K, computed as l, onMounted as N, nextTick as V } from "vue";
2
+ import { useVirtualList as j, useInfiniteScroll as q } from "@vueuse/core";
3
+ import { TableContext as F } from "./TableContext.js";
4
+ const J = 46, Q = 46, p = (e, a) => {
5
+ const m = G(), u = c([]);
6
+ K(F, {
7
+ onClose({ rowIndex: t, cellIndex: o, value: n } = {}) {
8
+ n && (u.value = [...u.value, t], a("saveRow", {
9
9
  rowIndex: t,
10
- cellIndex: e,
10
+ cellIndex: o,
11
11
  value: n,
12
12
  confirm: () => {
13
- c.value = c.value.filter(
13
+ u.value = u.value.filter(
14
14
  (i) => i !== t
15
15
  );
16
16
  }
17
17
  }));
18
+ },
19
+ setActiveMenuRow(t) {
20
+ C.value = t;
18
21
  }
19
22
  });
20
- const x = s(() => !!o.selection), T = s(() => {
21
- const t = (x.value ? `${J}px ` : "") + (g.value ? `${F}px ` : "");
22
- return o.columns.reduce((e, n) => {
23
+ const x = l(() => !!e.selection), T = l(() => {
24
+ const t = (x.value ? `${Q}px ` : "") + (g.value ? `${J}px ` : "");
25
+ return e.columns.reduce((o, n) => {
23
26
  const i = n.width ? `${n.width}px` : `${n.colSpan || 1}fr`;
24
- return `${e} ${i}`;
27
+ return `${o} ${i}`;
25
28
  }, t);
26
- }), g = s(() => !!v.expanded), R = a(null), y = s(() => Array(o.loadingRowCount).fill(
27
- Array(o.columns.length).fill("")
28
- )), H = s(() => o.isLoading ? [...o.rows, ...y.value] : o.rows), { list: C, containerProps: l, wrapperProps: $ } = V(H, {
29
- itemHeight: g.value ? (t) => w[t] ?? o.rowHeight : o.rowHeight
30
- }), b = a(null), h = a(0), k = s(() => !!v.search), B = (t) => {
31
- l.onScroll(), h.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, u("onScroll", t.target.scrollTop);
29
+ }), g = l(() => !!m.expanded), y = c(null), C = c(null), H = l(() => Array(e.loadingRowCount).fill(
30
+ Array(e.columns.length).fill("")
31
+ )), $ = l(() => e.isLoading ? [...e.rows, ...H.value] : e.rows), { list: R, containerProps: s, wrapperProps: b } = j($, {
32
+ itemHeight: g.value ? (t) => w[t] ?? e.rowHeight : e.rowHeight
33
+ }), k = c(null), h = c(0), B = l(() => !!m.search), I = (t) => {
34
+ s.onScroll(), h.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, a("onScroll", t.target.scrollTop);
32
35
  };
33
- K(() => {
34
- h.value = l.ref.value?.getBoundingClientRect().width, o.defaultScrollPosition && setTimeout(() => {
35
- l.ref.value?.scrollTo({
36
- top: o.defaultScrollPosition,
36
+ N(() => {
37
+ h.value = s.ref.value?.getBoundingClientRect().width, e.defaultScrollPosition && setTimeout(() => {
38
+ s.ref.value?.scrollTo({
39
+ top: e.defaultScrollPosition,
37
40
  behavior: "smooth"
38
41
  });
39
42
  }, 300);
40
43
  });
41
- const I = s(() => {
42
- const [t] = C.value;
44
+ const O = l(() => {
45
+ const [t] = R.value;
43
46
  return t && t.index > 0;
44
- }), O = s(() => l.style), P = s(() => o.columns.reduce((t, e) => (e.isSticky && (t[e.id] = A(e)), t), {}));
45
- j(
46
- l.ref,
47
+ }), P = l(() => s.style), A = l(() => e.columns.reduce((t, o) => (o.isSticky && (t[o.id] = M(o)), t), {}));
48
+ q(
49
+ s.ref,
47
50
  () => {
48
- o.isInfiniteScroll && u("loadMore");
51
+ e.isInfiniteScroll && a("loadMore");
49
52
  },
50
- { distance: o.infiniteScrollThreshold }
53
+ { distance: e.infiniteScrollThreshold }
51
54
  );
52
55
  function E() {
53
- l.ref.value?.scrollTo({
56
+ s.ref.value?.scrollTo({
54
57
  top: 0,
55
58
  behavior: "smooth"
56
59
  });
57
60
  }
58
61
  function L(t) {
59
- if (!o.sort)
62
+ if (!e.sort)
60
63
  return;
61
- const e = o.sort.sortBy === t.id;
64
+ const o = e.sort.sortBy === t.id;
62
65
  if (!(t.isSortable || t.isSortable === void 0))
63
66
  return;
64
- let i = o.sort.sortOrder, f = o.sort.sortBy;
65
- e ? i = o.sort.sortOrder === "asc" ? "desc" : "asc" : f = t.id, u("update:sort", { sortBy: f, sortOrder: i });
67
+ let i = e.sort.sortOrder, f = e.sort.sortBy;
68
+ o ? i = e.sort.sortOrder === "asc" ? "desc" : "asc" : f = t.id, a("update:sort", { sortBy: f, sortOrder: i });
66
69
  }
67
- function A(t) {
68
- const { isSticky: e, width: n } = t;
69
- if (!e || !n)
70
+ function M(t) {
71
+ const { isSticky: o, width: n } = t;
72
+ if (!o || !n)
70
73
  return null;
71
- const i = o.columns.findIndex((r) => r.id === t.id), f = o.columns.reduce((r, S, m) => m < i ? r + S.width : r, 0), X = o.columns.reduce((r, S, m) => m > i ? r + S.width : r, 0);
74
+ const i = e.columns.findIndex((r) => r.id === t.id), f = e.columns.reduce((r, v, S) => S < i ? r + v.width : r, 0), z = e.columns.reduce((r, v, S) => S > i ? r + v.width : r, 0);
72
75
  return {
73
- ...t.isStickyRight ? { right: `${X}px` } : { left: `${f}px` },
76
+ ...t.isStickyRight ? { right: `${z}px` } : { left: `${f}px` },
74
77
  zIndex: 1
75
78
  };
76
79
  }
77
- const d = a([]), w = {}, _ = (t) => d.value.includes(t), D = async (t, e) => {
80
+ const d = c([]), w = {}, _ = (t) => d.value.includes(t), D = async (t, o) => {
78
81
  const n = d.value.indexOf(t);
79
82
  if (n === -1) {
80
83
  d.value.push(t);
81
- const i = e.target.closest("tr");
82
- await N(), i && (w[t] = i.offsetHeight);
84
+ const i = o.target.closest("tr");
85
+ await V(), i && (w[t] = i.offsetHeight);
83
86
  } else
84
87
  d.value.splice(n, 1), delete w[t];
85
- }, M = s(() => `${o.rowHeight}px`), W = s(
86
- () => `1 / span ${o.columns.length + 1}`
88
+ }, W = l(() => `${e.rowHeight}px`), X = l(
89
+ () => `1 / span ${e.columns.length + 1}`
87
90
  );
88
91
  return {
89
- list: C,
90
- containerProps: l,
91
- wrapperProps: $,
92
- activeRow: R,
92
+ list: R,
93
+ containerProps: s,
94
+ wrapperProps: b,
95
+ activeRow: y,
93
96
  gridColumnTemplate: T,
94
- floatingActionRef: b,
97
+ floatingActionRef: k,
95
98
  scrollToTop: E,
96
99
  toggleSortOrder: L,
97
- columnsStickyPositions: P,
98
- hasSearchSlot: k,
99
- showBackToTopButton: I,
100
- containerStyle: O,
101
- onScroll: B,
102
- savingRows: c,
100
+ columnsStickyPositions: A,
101
+ hasSearchSlot: B,
102
+ showBackToTopButton: O,
103
+ containerStyle: P,
104
+ onScroll: I,
105
+ savingRows: u,
103
106
  floatingActionPosition: h,
104
107
  hasExpandSlot: g,
105
108
  hasCheckboxes: x,
106
109
  toggleExpandRow: D,
107
110
  isRowExpanded: _,
108
- cssRowHeight: M,
109
- cssExpandGridCol: W
111
+ cssRowHeight: W,
112
+ cssExpandGridCol: X,
113
+ activeMenuRow: C
110
114
  };
111
115
  };
112
116
  export {
113
- Z as tableCommon
117
+ p as tableCommon
114
118
  };
@@ -6,6 +6,7 @@ export interface TableContextProps {
6
6
  value?: unknown;
7
7
  error?: string | boolean;
8
8
  }): void;
9
+ setActiveMenuRow?(rowIndex: number | null): void;
9
10
  }
10
11
  export declare const TableContext: InjectionKey<TableContextProps>;
11
12
  export declare function useTableContext(component: string): TableContextProps;
@@ -1,7 +1,7 @@
1
1
  import o from "./DataGrid.vue2.js";
2
- /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_d5635f1b_lang.css"; //*');
4
- const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-d5635f1b"]]);
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"]]);
5
5
  export {
6
- a as default
6
+ s as default
7
7
  };