@ironsource/shared-ui 2.1.11-test.47 → 2.1.11-test.49

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 (159) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
  2. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
  3. package/components/alert/Alert.stories.d.ts +8 -0
  4. package/components/appHeader/AppHeader.stories.d.ts +98 -0
  5. package/components/appIcon/AppIcon.spec.d.ts +1 -0
  6. package/components/appIcon/AppIcon.stories.d.ts +32 -0
  7. package/components/appTrigger/AppTrigger.spec.d.ts +1 -0
  8. package/components/appTrigger/AppTrigger.stories.d.ts +163 -0
  9. package/components/autocomplete/Autocomplete.stories.d.ts +9 -0
  10. package/components/autocompleteDropdown/AutocompleteDropdown.spec.d.ts +1 -0
  11. package/components/autocompleteDropdown/AutocompleteDropdown.stories.d.ts +232 -0
  12. package/components/banner/Banner.spec.d.ts +1 -0
  13. package/components/banner/Banner.stories.d.ts +122 -0
  14. package/components/button/v3/Button.spec.d.ts +1 -0
  15. package/components/button/v3/Button.stories.d.ts +155 -0
  16. package/components/button/v3/Button.vue.d.ts +6 -6
  17. package/components/button/v3/ButtonBase.spec.d.ts +1 -0
  18. package/components/button/v3/IconButton.stories.d.ts +150 -0
  19. package/components/button/v3/ScrollButton.stories.d.ts +55 -0
  20. package/components/button/v3/index.d.ts +14 -14
  21. package/components/button/v4/Button.stories.d.ts +275 -0
  22. package/components/button/v4/ButtonGroup.stories.d.ts +120 -0
  23. package/components/button/v4/IconButton.stories.d.ts +206 -0
  24. package/components/button/v4/ToggleButtonGroupAB.stories.d.ts +182 -0
  25. package/components/chart/Chart.stories.d.ts +17 -0
  26. package/components/chart/Chart.vue.d.ts +6 -1
  27. package/components/chart/Chart.vue.js +3 -3
  28. package/components/chart/Chart.vue2.js +69 -66
  29. package/components/chart/index.d.ts +39 -20
  30. package/components/checkbox/v3/Checkbox.spec.d.ts +1 -0
  31. package/components/checkbox/v3/Checkbox.stories.d.ts +187 -0
  32. package/components/checkbox/v4/CheckboxV4.stories.d.ts +7 -0
  33. package/components/chip/v3/Chip.spec.d.ts +1 -0
  34. package/components/chip/v3/Chip.stories.d.ts +170 -0
  35. package/components/chip/v4/ChipV4.stories.d.ts +7 -0
  36. package/components/datePicker/v3/DatePicker.stories.d.ts +189 -0
  37. package/components/datePicker/v4/DatePicker.stories.d.ts +261 -0
  38. package/components/dateRange/v3/DateRange.stories.d.ts +415 -0
  39. package/components/dateRange/v4/DateRange.stories.d.ts +412 -0
  40. package/components/dialog/v3/Dialog.spec.d.ts +1 -0
  41. package/components/dialog/v3/Dialog.stories.d.ts +374 -0
  42. package/components/dialog/v4/DialogV4.stories.d.ts +9 -0
  43. package/components/dropdown/v3/Dropdown.spec.d.ts +1 -0
  44. package/components/dropdown/v3/Dropdown.stories.d.ts +1161 -0
  45. package/components/dropdown/v4/AppDropdownTrigger.stories.d.ts +487 -0
  46. package/components/dropdown/v4/ButtonDropdownTrigger.stories.d.ts +10 -0
  47. package/components/dropdown/v4/ButtonFilterDropdownTrigger.stories.d.ts +8 -0
  48. package/components/dropdown/v4/ChipDropdownTrigger.stories.d.ts +135 -0
  49. package/components/dropdown/v4/Conditional.stories.d.ts +711 -0
  50. package/components/dropdown/v4/DefaultDropdownTrigger.stories.d.ts +598 -0
  51. package/components/dropdown/v4/IconButtonDropdownTrigger.stories.d.ts +20 -0
  52. package/components/dropdown/v4/MultiSelection.stories.d.ts +3769 -0
  53. package/components/dropdown/v4/SingleSelection.stories.d.ts +5688 -0
  54. package/components/dropdown/v4/TreeDropdown.stories.d.ts +9 -0
  55. package/components/dropdown/v4/TreeDropdown.vue.d.ts +0 -5
  56. package/components/dropdown/v4/TreeDropdown.vue.js +3 -3
  57. package/components/dropdown/v4/TreeDropdown.vue2.js +186 -193
  58. package/components/dropdown/v4/index.d.ts +1 -24
  59. package/components/emptyState/v3/EmptyState.spec.d.ts +1 -0
  60. package/components/emptyState/v3/EmptyState.stories.d.ts +295 -0
  61. package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
  62. package/components/emptyState/v3/index.d.ts +7 -7
  63. package/components/emptyState/v4/EmptyStateV4.stories.d.ts +6 -0
  64. package/components/filterDropdown/AddFilterButton.spec.d.ts +1 -0
  65. package/components/filterDropdown/AddFilterButton.stories.d.ts +108 -0
  66. package/components/filterDropdown/FilterDropdown.spec.d.ts +1 -0
  67. package/components/filterDropdown/FilterDropdown.stories.d.ts +70 -0
  68. package/components/filtersPanel/v3/FiltersPanel.spec.d.ts +1 -0
  69. package/components/filtersPanel/v3/FiltersPanel.stories.d.ts +8 -0
  70. package/components/filtersPanel/v4/FiltersPanelV4.stories.d.ts +4 -0
  71. package/components/floatingToolbar/FloatingToolbar.spec.d.ts +1 -0
  72. package/components/floatingToolbar/FloatingToolbar.stories.d.ts +127 -0
  73. package/components/forms/CardPanel.stories.d.ts +6 -0
  74. package/components/forms/FormCard.stories.d.ts +9 -0
  75. package/components/forms/FormRow.stories.d.ts +4 -0
  76. package/components/forms/validation/Validation.stories.d.ts +4 -0
  77. package/components/forms/validation/examples/dynamicForm/DynamicForm.stories.d.ts +7 -0
  78. package/components/forms/validation/examples/simpleForm/SimpleForm.stories.d.ts +7 -0
  79. package/components/icon/v3/Icon.spec.d.ts +1 -0
  80. package/components/icon/v3/Icon.stories.d.ts +112 -0
  81. package/components/icon/v4/IconFlag.stories.d.ts +5 -0
  82. package/components/icon/v4/IconV4.spec.d.ts +1 -0
  83. package/components/icon/v4/IconV4.stories.d.ts +195 -0
  84. package/components/includeExclude/EditColumns.stories.d.ts +490 -0
  85. package/components/includeExclude/IncludeExclude.spec.d.ts +1 -0
  86. package/components/includeExclude/IncludeExclude.stories.d.ts +456 -0
  87. package/components/inlineCopy/InlineCopy.stories.d.ts +112 -0
  88. package/components/input/v3/DollarInput.spec.d.ts +1 -0
  89. package/components/input/v3/DollarInput.stories.d.ts +275 -0
  90. package/components/input/v3/Input.spec.d.ts +1 -0
  91. package/components/input/v3/Input.stories.d.ts +1182 -0
  92. package/components/input/v3/PasswordInput.stories.d.ts +272 -0
  93. package/components/input/v3/PercentageInput.stories.d.ts +281 -0
  94. package/components/input/v4/TextField.stories.d.ts +14 -0
  95. package/components/layout/FoldableSection.stories.d.ts +4 -0
  96. package/components/loader/v4/Loader.stories.d.ts +136 -0
  97. package/components/menu/Menu.stories.d.ts +175 -0
  98. package/components/menuItem/MenuItem.spec.d.ts +1 -0
  99. package/components/menuItem/MenuItem.stories.d.ts +55 -0
  100. package/components/multibar/MultiBar.stories.d.ts +7 -0
  101. package/components/popover/v3/Popover.spec.d.ts +1 -0
  102. package/components/popover/v3/Popover.stories.d.ts +214 -0
  103. package/components/popover/v4/Popover.stories.d.ts +271 -0
  104. package/components/radioButton/v3/RadioButton.spec.d.ts +1 -0
  105. package/components/radioButton/v3/RadioButton.stories.d.ts +368 -0
  106. package/components/radioButton/v4/RadioButtonV4.stories.d.ts +7 -0
  107. package/components/search/v3/Search.spec.d.ts +1 -0
  108. package/components/search/v3/Search.stories.d.ts +75 -0
  109. package/components/search/v4/Search.stories.d.ts +63 -0
  110. package/components/skeleton/v3/Skeleton.spec.d.ts +1 -0
  111. package/components/skeleton/v3/Skeleton.stories.d.ts +83 -0
  112. package/components/skeleton/v4/SkeletonV4.stories.d.ts +5 -0
  113. package/components/snackbar/v3/Snackbar.spec.d.ts +1 -0
  114. package/components/snackbar/v3/Snackbar.stories.d.ts +22 -0
  115. package/components/snackbar/v4/Snackbar.stories.d.ts +24 -0
  116. package/components/sortableList/SortableList.stories.d.ts +5 -0
  117. package/components/statusDot/StatusDot.stories.d.ts +21 -0
  118. package/components/switch/v3/Switch.spec.d.ts +1 -0
  119. package/components/switch/v3/Switch.stories.d.ts +147 -0
  120. package/components/switch/v4/Switch.spec.d.ts +1 -0
  121. package/components/switch/v4/Switch.stories.d.ts +48 -0
  122. package/components/table/v3/Table.spec.d.ts +1 -0
  123. package/components/table/v3/Table.stories.d.ts +1227 -0
  124. package/components/table/v3/TableCheckbox.stories.d.ts +814 -0
  125. package/components/table/v4/DataGrid.stories.d.ts +24 -0
  126. package/components/table/v4/DataGrid.vue.d.ts +1 -1
  127. package/components/table/v4/MultipleDataGrid.stories.d.ts +4 -0
  128. package/components/table/v4/index.d.ts +20 -20
  129. package/components/tabs/v3/Tabs.spec.d.ts +1 -0
  130. package/components/tabs/v3/Tabs.stories.d.ts +172 -0
  131. package/components/tabs/v4/TabsV4.stories.d.ts +8 -0
  132. package/components/textArea/v3/TextArea.spec.d.ts +1 -0
  133. package/components/textArea/v3/TextArea.stories.d.ts +89 -0
  134. package/components/textArea/v4/TextAreaV4.stories.d.ts +9 -0
  135. package/components/toggle/v3/Toggle.spec.d.ts +1 -0
  136. package/components/toggle/v3/Toggle.stories.d.ts +107 -0
  137. package/components/toggle/v4/ToggleV4.stories.d.ts +9 -0
  138. package/components/tooltip/v3/TextWithTitleContent.spec.d.ts +1 -0
  139. package/components/tooltip/v3/Tooltip.spec.d.ts +1 -0
  140. package/components/tooltip/v3/Tooltip.stories.d.ts +253 -0
  141. package/components/tooltip/v4/Tooltip.stories.d.ts +336 -0
  142. package/components/typography/Heading.spec.d.ts +1 -0
  143. package/components/typography/Heading.stories.d.ts +119 -0
  144. package/components/typography/Text.stories.d.ts +131 -0
  145. package/components/typography/v4/Typography.spec.d.ts +1 -0
  146. package/components/typography/v4/Typography.stories.d.ts +179 -0
  147. package/composables/useFormValidation.d.ts +1 -1
  148. package/design-foundation.stories/border-radius/BorderRadius.stories.d.ts +4 -0
  149. package/design-foundation.stories/breakpoints/Breakpoints.stories.d.ts +4 -0
  150. package/design-foundation.stories/colors/Colors.stories.d.ts +4 -0
  151. package/design-foundation.stories/elevations/Elevations.stories.d.ts +4 -0
  152. package/design-foundation.stories/grid-layout/GridLayout.stories.d.ts +13 -0
  153. package/design-foundation.stories/spacing/Spacing.stories.d.ts +4 -0
  154. package/design-foundation.stories/typography/Typography.stories.d.ts +4 -0
  155. package/index.d.ts +42 -88
  156. package/index.js +1 -1
  157. package/package.json +2 -239
  158. package/Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css +0 -1
  159. package/TreeDropdown.vue_vue_type_style_index_0_scoped_46aae9ba_lang.css +0 -1
@@ -0,0 +1,182 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: {
4
+ new (...args: any[]): {
5
+ $: import('vue').ComponentInternalInstance;
6
+ $data: {};
7
+ $props: Partial<{
8
+ testId: string;
9
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
10
+ testId: {
11
+ type: import('vue').PropType<string>;
12
+ default: string;
13
+ };
14
+ modelValue: {
15
+ type: import('vue').PropType<"a" | "b">;
16
+ required: true;
17
+ };
18
+ withPopover: {
19
+ type: import('vue').PropType<boolean>;
20
+ required: true;
21
+ };
22
+ popoverProps: {
23
+ type: import('vue').PropType<{
24
+ autoHide?: boolean;
25
+ trigger?: "hover" | "click" | "focus" | "touch" | "managed";
26
+ disabled?: boolean;
27
+ placement?: import('floating-vue').Placement;
28
+ distance?: number;
29
+ skidding?: number;
30
+ testId?: string;
31
+ popperClass?: string;
32
+ }>;
33
+ required: true;
34
+ };
35
+ }>> & {
36
+ "onUpdate:modelValue"?: (...args: any[]) => any;
37
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "testId">;
38
+ $attrs: {
39
+ [x: string]: unknown;
40
+ };
41
+ $refs: {
42
+ [x: string]: unknown;
43
+ };
44
+ $slots: Readonly<{
45
+ [name: string]: import('vue').Slot;
46
+ }>;
47
+ $root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
48
+ $parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
49
+ $emit: (event: "update:modelValue", ...args: any[]) => void;
50
+ $el: any;
51
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
52
+ testId: {
53
+ type: import('vue').PropType<string>;
54
+ default: string;
55
+ };
56
+ modelValue: {
57
+ type: import('vue').PropType<"a" | "b">;
58
+ required: true;
59
+ };
60
+ withPopover: {
61
+ type: import('vue').PropType<boolean>;
62
+ required: true;
63
+ };
64
+ popoverProps: {
65
+ type: import('vue').PropType<{
66
+ autoHide?: boolean;
67
+ trigger?: "hover" | "click" | "focus" | "touch" | "managed";
68
+ disabled?: boolean;
69
+ placement?: import('floating-vue').Placement;
70
+ distance?: number;
71
+ skidding?: number;
72
+ testId?: string;
73
+ popperClass?: string;
74
+ }>;
75
+ required: true;
76
+ };
77
+ }>> & {
78
+ "onUpdate:modelValue"?: (...args: any[]) => any;
79
+ }, {
80
+ toggle: import('vue').ComputedRef<(value?: boolean) => boolean>;
81
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
82
+ "update:modelValue": (...args: any[]) => void;
83
+ }, string, {
84
+ testId: string;
85
+ }, {}, string> & {
86
+ beforeCreate?: (() => void) | (() => void)[];
87
+ created?: (() => void) | (() => void)[];
88
+ beforeMount?: (() => void) | (() => void)[];
89
+ mounted?: (() => void) | (() => void)[];
90
+ beforeUpdate?: (() => void) | (() => void)[];
91
+ updated?: (() => void) | (() => void)[];
92
+ activated?: (() => void) | (() => void)[];
93
+ deactivated?: (() => void) | (() => void)[];
94
+ beforeDestroy?: (() => void) | (() => void)[];
95
+ beforeUnmount?: (() => void) | (() => void)[];
96
+ destroyed?: (() => void) | (() => void)[];
97
+ unmounted?: (() => void) | (() => void)[];
98
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
99
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
100
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
101
+ };
102
+ $forceUpdate: () => void;
103
+ $nextTick: typeof import('vue').nextTick;
104
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import('vue').WatchOptions<boolean>): import('vue').WatchStopHandle;
105
+ } & Readonly<import('vue').ExtractPropTypes<{
106
+ testId: {
107
+ type: import('vue').PropType<string>;
108
+ default: string;
109
+ };
110
+ modelValue: {
111
+ type: import('vue').PropType<"a" | "b">;
112
+ required: true;
113
+ };
114
+ withPopover: {
115
+ type: import('vue').PropType<boolean>;
116
+ required: true;
117
+ };
118
+ popoverProps: {
119
+ type: import('vue').PropType<{
120
+ autoHide?: boolean;
121
+ trigger?: "hover" | "click" | "focus" | "touch" | "managed";
122
+ disabled?: boolean;
123
+ placement?: import('floating-vue').Placement;
124
+ distance?: number;
125
+ skidding?: number;
126
+ testId?: string;
127
+ popperClass?: string;
128
+ }>;
129
+ required: true;
130
+ };
131
+ }>> & {
132
+ "onUpdate:modelValue"?: (...args: any[]) => any;
133
+ } & import('vue').ShallowUnwrapRef<{
134
+ toggle: import('vue').ComputedRef<(value?: boolean) => boolean>;
135
+ }> & {} & import('vue').ComponentCustomProperties & {};
136
+ __isFragment?: never;
137
+ __isTeleport?: never;
138
+ __isSuspense?: never;
139
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
140
+ testId: {
141
+ type: import('vue').PropType<string>;
142
+ default: string;
143
+ };
144
+ modelValue: {
145
+ type: import('vue').PropType<"a" | "b">;
146
+ required: true;
147
+ };
148
+ withPopover: {
149
+ type: import('vue').PropType<boolean>;
150
+ required: true;
151
+ };
152
+ popoverProps: {
153
+ type: import('vue').PropType<{
154
+ autoHide?: boolean;
155
+ trigger?: "hover" | "click" | "focus" | "touch" | "managed";
156
+ disabled?: boolean;
157
+ placement?: import('floating-vue').Placement;
158
+ distance?: number;
159
+ skidding?: number;
160
+ testId?: string;
161
+ popperClass?: string;
162
+ }>;
163
+ required: true;
164
+ };
165
+ }>> & {
166
+ "onUpdate:modelValue"?: (...args: any[]) => any;
167
+ }, {
168
+ toggle: import('vue').ComputedRef<(value?: boolean) => boolean>;
169
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
170
+ "update:modelValue": (...args: any[]) => void;
171
+ }, string, {
172
+ testId: string;
173
+ }, {}, string> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
174
+ $slots: {
175
+ "popover-content"?(_: {}): any;
176
+ };
177
+ });
178
+ argTypes: any;
179
+ };
180
+ export default _default;
181
+ export declare const Basic: any;
182
+ export declare const WithoutPopover: any;
@@ -0,0 +1,17 @@
1
+ import { Meta } from '@storybook/vue3';
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const Default: any;
5
+ export declare const TotalBar: any;
6
+ export declare const TotalStacked: any;
7
+ export declare const MultipleLineWithoutAnimation: any;
8
+ export declare const MultipleLine: any;
9
+ export declare const MultipleBar: any;
10
+ export declare const MultipleStack: any;
11
+ export declare const MultipleStackBars: any;
12
+ export declare const TotalsChart: any;
13
+ export declare const LotsOfData: any;
14
+ export declare const Loading: any;
15
+ export declare const SinglePoint: any;
16
+ export declare const EmptyChart: any;
17
+ export declare const LoadDataExample: any;
@@ -19,6 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
19
19
  noDataSubtitle?: string;
20
20
  withSettingsHeader?: boolean;
21
21
  maxLimitTooltipText?: string;
22
+ withAnimation?: boolean;
22
23
  }>, {
23
24
  chartType: ChartType;
24
25
  dataSets: () => any[];
@@ -40,6 +41,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
40
41
  withSettingsHeader: boolean;
41
42
  withSubheaderTooltip: boolean;
42
43
  maxLimitTooltipText: string;
44
+ withAnimation: boolean;
43
45
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
44
46
  "update:chartType": (chartType: ChartType) => void;
45
47
  "update:visibleIds": (visibleIds: unknown[]) => void;
@@ -63,6 +65,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
63
65
  noDataSubtitle?: string;
64
66
  withSettingsHeader?: boolean;
65
67
  maxLimitTooltipText?: string;
68
+ withAnimation?: boolean;
66
69
  }>, {
67
70
  chartType: ChartType;
68
71
  dataSets: () => any[];
@@ -84,15 +87,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
84
87
  withSettingsHeader: boolean;
85
88
  withSubheaderTooltip: boolean;
86
89
  maxLimitTooltipText: string;
90
+ withAnimation: boolean;
87
91
  }>>> & {
88
92
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
89
93
  "onUpdate:chartType"?: (chartType: ChartType) => any;
90
94
  }, {
91
95
  header: string;
92
96
  loading: boolean;
97
+ parsing: ChartParsingConfig;
93
98
  xAxisFormat: ValueFormat;
94
99
  yAxisFormat: ValueFormat;
95
- parsing: ChartParsingConfig;
96
100
  visibleIds: unknown[];
97
101
  minVisible: number;
98
102
  maxVisible: number;
@@ -107,6 +111,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
107
111
  noDataIcon: string;
108
112
  noDataTitle: string;
109
113
  noDataSubtitle: string;
114
+ withAnimation: boolean;
110
115
  }>, {
111
116
  metric?(_: {}): any;
112
117
  breakdowns?(_: {}): any;
@@ -1,7 +1,7 @@
1
1
  import o from "./Chart.vue2.js";
2
- /* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css"; //*');
4
- const p = /* @__PURE__ */ _(o, [["__scopeId", "data-v-04b9d6b3"]]);
2
+ /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-277fde76"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,23 +1,23 @@
1
- import "../../Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css"; import { defineComponent as j, ref as g, computed as l, onMounted as q, watch as T, nextTick as J, openBlock as d, createElementBlock as C, Fragment as O, createBlock as h, unref as u, isRef as D, withCtx as k, renderSlot as x, createCommentVNode as v, createElementVNode as p, normalizeClass as Q, createVNode as F, normalizeStyle as Y } from "vue";
2
- import { useVModel as _ } from "@vueuse/core";
3
- import { Chart as N, ArcElement as ee, LineElement as te, BarElement as ae, PointElement as oe, LineController as ie, BarController as le, PieController as re, ScatterController as ne, CategoryScale as se, LinearScale as de, Filler as ue, Tooltip as ce } from "chart.js";
4
- import { HoverVerticalLine as pe } from "./plugins/HoverVerticalLine.js";
5
- import { formatValue as H, calcStepSize as me } from "./utils/utils.js";
6
- import { DEFAULT_TICK_COUNT as fe, DEFAULT_MIN_VISIBLE as he, DEFAULT_MAX_VISIBLE as ve, COLOR_PALETTE as ye, POINT_BORDER_COLOR as be, TICK_LABEL_COLOR as P, TICK_LABEL_FONT as U, GRID_LINE_COLOR as z } from "./consts.js";
1
+ import "../../Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css"; import { defineComponent as q, computed as l, ref as g, onMounted as J, watch as T, nextTick as Q, openBlock as d, createElementBlock as C, Fragment as O, createBlock as f, unref as u, isRef as D, withCtx as k, renderSlot as x, createCommentVNode as v, createElementVNode as p, normalizeClass as Y, createVNode as F, normalizeStyle as _ } from "vue";
2
+ import { useVModel as ee } from "@vueuse/core";
3
+ import { Chart as N, ArcElement as te, LineElement as ae, BarElement as oe, PointElement as ie, LineController as le, BarController as re, PieController as ne, ScatterController as se, CategoryScale as de, LinearScale as ue, Filler as ce, Tooltip as pe } from "chart.js";
4
+ import { HoverVerticalLine as me } from "./plugins/HoverVerticalLine.js";
5
+ import { formatValue as H, calcStepSize as he } from "./utils/utils.js";
6
+ import { DEFAULT_TICK_COUNT as fe, DEFAULT_MIN_VISIBLE as ve, DEFAULT_MAX_VISIBLE as ye, COLOR_PALETTE as be, POINT_BORDER_COLOR as ge, TICK_LABEL_COLOR as U, TICK_LABEL_FONT as P, GRID_LINE_COLOR as z } from "./consts.js";
7
7
  import { ChartType as n } from "./types.js";
8
- import { useTooltipPosition as ge } from "./composables/useTooltipPosition.js";
9
- import Te from "./ChartTooltip.vue.js";
10
- import Ce from "./ChartLegend.vue.js";
11
- import ke from "./ChartHeader.vue.js";
12
- import { hexColorToRgba as xe } from "../../utils/color.js";
13
- import { useChartValues as Le } from "./composables/useChartValues.js";
14
- import Se from "./ChartLoader.vue.js";
15
- import we from "../emptyState/v4/EmptyStateV4.vue.js";
16
- import Be from "./SettingsHeader.vue.js";
17
- const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee = { class: "chart" }, Re = {
8
+ import { useTooltipPosition as Te } from "./composables/useTooltipPosition.js";
9
+ import Ce from "./ChartTooltip.vue.js";
10
+ import ke from "./ChartLegend.vue.js";
11
+ import xe from "./ChartHeader.vue.js";
12
+ import { hexColorToRgba as Le } from "../../utils/color.js";
13
+ import { useChartValues as Se } from "./composables/useChartValues.js";
14
+ import we from "./ChartLoader.vue.js";
15
+ import Be from "../emptyState/v4/EmptyStateV4.vue.js";
16
+ import Ie from "./SettingsHeader.vue.js";
17
+ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve = { class: "chart" }, Re = {
18
18
  key: 0,
19
19
  class: "chart-sidebar"
20
- }, je = /* @__PURE__ */ j({
20
+ }, qe = /* @__PURE__ */ q({
21
21
  __name: "Chart",
22
22
  props: {
23
23
  dataSets: { default: () => [] },
@@ -31,20 +31,20 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
31
31
  subheader: { default: "" },
32
32
  withSubheaderTooltip: { type: Boolean, default: !1 },
33
33
  hideLegend: { type: Boolean, default: !1 },
34
- minVisible: { default: he },
35
- maxVisible: { default: ve },
34
+ minVisible: { default: ve },
35
+ maxVisible: { default: ye },
36
36
  loading: { type: Boolean, default: !1 },
37
37
  noDataIcon: { default: "file-x" },
38
38
  noDataTitle: { default: "No data to display" },
39
39
  noDataSubtitle: { default: "Search again with different filters" },
40
40
  withSettingsHeader: { type: Boolean, default: !0 },
41
- maxLimitTooltipText: { default: "" }
41
+ maxLimitTooltipText: { default: "" },
42
+ withAnimation: { type: Boolean, default: !0 }
42
43
  },
43
44
  emits: ["update:chartType", "update:visibleIds"],
44
45
  setup(a, { emit: L }) {
45
46
  const t = a;
46
47
  N.register(
47
- ee,
48
48
  te,
49
49
  ae,
50
50
  oe,
@@ -56,30 +56,33 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
56
56
  de,
57
57
  ue,
58
58
  ce,
59
- pe
59
+ pe,
60
+ me
60
61
  );
61
- const c = _(t, "chartType", L), m = g(null);
62
+ const c = ee(t, "chartType", L), M = l(
63
+ () => t.withAnimation ? "" : "none"
64
+ ), m = g(null);
62
65
  let s = null;
63
66
  const S = l(() => t.dataSets.length === 0), w = l(() => !t.loading && !S.value), y = () => {
64
67
  m.value && (s && s.destroy(), s = new N(m.value, I.value));
65
- }, M = () => {
66
- s && (s.data.datasets = b.value, s.options = I.value.options, s.update());
68
+ }, $ = () => {
69
+ s && (s.data.datasets = b.value, s.options = I.value.options, s.update(M.value));
67
70
  };
68
- q(y), T(() => t.chartType, y), T(w, async (e) => {
69
- e && (await J(), y());
70
- }), T([() => t.visibleIds, () => t.dataSets], M);
71
- const f = l(
71
+ J(y), T(() => t.chartType, y), T(w, async (e) => {
72
+ e && (await Q(), y());
73
+ }), T([() => t.visibleIds, () => t.dataSets], $);
74
+ const h = l(
72
75
  () => t.chartType === n.StackedLine || t.chartType === n.StackedBar
73
- ), $ = l(
76
+ ), K = l(
74
77
  () => t.chartType === n.Line || t.chartType === n.StackedLine
75
78
  ), B = l(
76
79
  () => t.dataSets.filter((e) => t.visibleIds.includes(e.id))
77
80
  ), b = l(() => B.value.map((e, o) => {
78
- const i = e.color || ye[o] || "#000000";
81
+ const i = e.color || be[o] || "#000000";
79
82
  return {
80
83
  ...e,
81
- fill: f.value ? "start" : void 0,
82
- backgroundColor: xe(
84
+ fill: h.value ? "start" : void 0,
85
+ backgroundColor: Le(
83
86
  i,
84
87
  t.chartType === n.StackedLine ? 10 : 70
85
88
  ),
@@ -111,7 +114,7 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
111
114
  plugins: {
112
115
  legend: { display: !1 },
113
116
  title: { display: !1 },
114
- hoverVerticalLine: $.value,
117
+ hoverVerticalLine: K.value,
115
118
  // tooltip
116
119
  tooltip: {
117
120
  enabled: !1,
@@ -121,7 +124,7 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
121
124
  },
122
125
  callbacks: {
123
126
  footer: (e) => {
124
- const o = e.reduce((i, X) => i + (X.parsed.y || 0), 0);
127
+ const o = e.reduce((i, j) => i + (j.parsed.y || 0), 0);
125
128
  return ["Total", String(o)];
126
129
  }
127
130
  }
@@ -149,7 +152,7 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
149
152
  borderWidth: 0,
150
153
  hoverRadius: 4,
151
154
  hoverBorderWidth: 2,
152
- pointHoverBackgroundColor: be
155
+ pointHoverBackgroundColor: ge
153
156
  },
154
157
  bar: {
155
158
  borderRadius: 4
@@ -160,12 +163,12 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
160
163
  x: {
161
164
  beginAtZero: !0,
162
165
  border: { display: !1 },
163
- stacked: f.value,
166
+ stacked: h.value,
164
167
  // stack on top of each other
165
168
  // ticks
166
169
  ticks: {
167
- color: P,
168
- font: U,
170
+ color: U,
171
+ font: P,
169
172
  padding: 4,
170
173
  callback: function(e) {
171
174
  return H(
@@ -188,16 +191,16 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
188
191
  beginAtZero: !0,
189
192
  border: { display: !1 },
190
193
  // hide left borderline
191
- stacked: f.value,
194
+ stacked: h.value,
192
195
  // stack on top of each other
193
196
  // ticks
194
197
  ticks: {
195
- color: P,
196
- font: U,
198
+ color: U,
199
+ font: P,
197
200
  padding: 8,
198
- stepSize: V.value,
199
- min: R.value,
200
- max: V.value * t.tickCount,
201
+ stepSize: R.value,
202
+ min: V.value,
203
+ max: R.value * t.tickCount,
201
204
  callback: (e) => H(e, t.yAxisFormat)
202
205
  },
203
206
  // grid lines
@@ -210,32 +213,32 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
210
213
  }
211
214
  }
212
215
  })
213
- ), K = l(
216
+ ), W = l(
214
217
  () => b.value.reduce((e, o) => (e[o.id] = o.borderColor, e), {})
215
- ), W = l(() => t.dataSets.map((e) => ({
218
+ ), Z = l(() => t.dataSets.map((e) => ({
216
219
  id: e.id,
217
220
  label: e.label,
218
221
  caption: e.caption || null,
219
- color: K.value[e.id] || null,
222
+ color: W.value[e.id] || null,
220
223
  icon: e.icon || null,
221
224
  iconType: e.iconType || "branded"
222
- }))), A = g(null), r = g(null), { position: E } = ge(
225
+ }))), A = g(null), r = g(null), { position: E } = Te(
223
226
  m,
224
227
  A,
225
228
  r
226
- ), Z = l(() => ({
229
+ ), G = l(() => ({
227
230
  left: `${E.value.left}px`,
228
231
  top: `${E.value.top}px`,
229
232
  opacity: r.value?.opacity || 0
230
- })), { minValue: R, maxValue: G } = Le({
233
+ })), { minValue: V, maxValue: X } = Se({
231
234
  parsingConfig: t.parsing,
232
235
  dataSets: B,
233
- isStacked: f
234
- }), V = l(
235
- () => me(R.value, G.value, t.tickCount)
236
+ isStacked: h
237
+ }), R = l(
238
+ () => he(V.value, X.value, t.tickCount)
236
239
  );
237
240
  return (e, o) => (d(), C(O, null, [
238
- a.withSettingsHeader ? (d(), h(Be, {
241
+ a.withSettingsHeader ? (d(), f(Ie, {
239
242
  key: 0,
240
243
  "chart-type": u(c),
241
244
  "onUpdate:chart-type": o[0] || (o[0] = (i) => D(c) ? c.value = i : null),
@@ -249,13 +252,13 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
249
252
  ]),
250
253
  _: 3
251
254
  }, 8, ["chart-type", "hide-legend"])) : v("", !0),
252
- p("div", Ie, [
255
+ p("div", Ae, [
253
256
  u(w) ? (d(), C(O, { key: 0 }, [
254
257
  p("section", {
255
- class: Q(["chart-content", [{ "with-legend": !a.hideLegend }]])
258
+ class: Y(["chart-content", [{ "with-legend": !a.hideLegend }]])
256
259
  }, [
257
- p("div", Ae, [
258
- F(ke, {
260
+ p("div", Ee, [
261
+ F(xe, {
259
262
  "chart-type": u(c),
260
263
  "onUpdate:chart-type": o[1] || (o[1] = (i) => D(c) ? c.value = i : null),
261
264
  "with-settings-header": a.withSettingsHeader,
@@ -269,7 +272,7 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
269
272
  _: 3
270
273
  }, 8, ["chart-type", "with-settings-header", "header", "subheader", "with-subheader-tooltip"])
271
274
  ]),
272
- p("div", Ee, [
275
+ p("div", Ve, [
273
276
  p("canvas", {
274
277
  ref_key: "chartRef",
275
278
  ref: m,
@@ -279,9 +282,9 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
279
282
  ref_key: "tooltipRef",
280
283
  ref: A,
281
284
  class: "chart__tooltip",
282
- style: Y(u(Z))
285
+ style: _(u(G))
283
286
  }, [
284
- r.value ? (d(), h(Te, {
287
+ r.value ? (d(), f(Ce, {
285
288
  key: 0,
286
289
  title: String(r.value.title),
287
290
  "data-points": r.value.dataPoints,
@@ -294,14 +297,14 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
294
297
  ])
295
298
  ], 2),
296
299
  a.hideLegend ? v("", !0) : (d(), C("section", Re, [
297
- F(Ce, {
298
- items: u(W),
300
+ F(ke, {
301
+ items: u(Z),
299
302
  "visible-ids": a.visibleIds,
300
303
  "max-limit-tooltip-text": a.maxLimitTooltipText,
301
304
  "onUpdate:visibleIds": o[2] || (o[2] = (i) => L("update:visibleIds", i))
302
305
  }, null, 8, ["items", "visible-ids", "max-limit-tooltip-text"])
303
306
  ]))
304
- ], 64)) : a.loading ? (d(), h(Se, { key: 1 })) : u(S) ? (d(), h(u(we), {
307
+ ], 64)) : a.loading ? (d(), f(we, { key: 1 })) : u(S) ? (d(), f(u(Be), {
305
308
  key: 2,
306
309
  title: a.noDataTitle,
307
310
  subtitle: a.noDataSubtitle,
@@ -312,5 +315,5 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
312
315
  }
313
316
  });
314
317
  export {
315
- je as default
318
+ qe as default
316
319
  };