@ironsource/shared-ui 2.1.8-rc.6 → 2.1.8-rc.8

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 (51) hide show
  1. package/ButtonGroup.vue_vue_type_style_index_0_scoped_5497abe6_lang.css +1 -0
  2. package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +1 -0
  3. package/Chart.vue_vue_type_style_index_0_scoped_df85e0af_lang.css +1 -0
  4. package/ChartHeader.vue_vue_type_style_index_0_scoped_2e3de9c5_lang.css +1 -0
  5. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_fd7a490e_lang.css +1 -0
  6. package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +1 -0
  7. package/components/alert/Alert.vue2.js +3 -2
  8. package/components/button/v4/ButtonGroup.vue.d.ts +46 -0
  9. package/components/button/v4/ButtonGroup.vue.js +7 -0
  10. package/components/button/v4/ButtonGroup.vue2.js +19 -0
  11. package/components/button/v4/ButtonV4.vue.js +3 -3
  12. package/components/button/v4/ButtonV4.vue2.js +1 -1
  13. package/components/button/v4/index.d.ts +72 -224
  14. package/components/button/v4/index.js +4 -2
  15. package/components/chart/Chart.vue.d.ts +15 -2
  16. package/components/chart/Chart.vue.js +3 -3
  17. package/components/chart/Chart.vue2.js +160 -141
  18. package/components/chart/ChartHeader.vue.d.ts +5 -0
  19. package/components/chart/ChartHeader.vue.js +2 -2
  20. package/components/chart/ChartHeader.vue2.js +31 -29
  21. package/components/chart/SettingsHeader.vue.d.ts +30 -0
  22. package/components/chart/SettingsHeader.vue.js +7 -0
  23. package/components/chart/SettingsHeader.vue2.js +57 -0
  24. package/components/chart/consts.d.ts +2 -0
  25. package/components/chart/consts.js +17 -11
  26. package/components/chart/index.d.ts +320 -74
  27. package/components/chart/types.d.ts +4 -0
  28. package/components/dateRange/v4/CalendarMonthV4.vue2.js +21 -20
  29. package/components/dateRange/v4/DateRangeV4.vue2.js +3 -2
  30. package/components/dialog/v4/DialogV4.vue2.js +9 -8
  31. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +5 -4
  32. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +1 -0
  33. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  34. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +33 -31
  35. package/components/dropdown/v4/DropdownV4.vue2.js +3 -2
  36. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +6 -5
  37. package/components/dropdown/v4/index.d.ts +1 -0
  38. package/components/emptyState/v4/EmptyStateV4.vue2.js +15 -14
  39. package/components/forms/FormCard.vue2.js +3 -2
  40. package/components/loader/v4/index.js +6 -0
  41. package/components/multibar/MultiBar.vue2.js +19 -18
  42. package/components/snackbar/v4/SnackbarV4.vue2.js +7 -6
  43. package/components/switch/v4/SwitchV4.vue2.js +8 -7
  44. package/components/table/v4/ExpandRowToggle.vue2.js +9 -8
  45. package/index.d.ts +376 -156
  46. package/index.js +128 -126
  47. package/package.json +5 -1
  48. package/ButtonV4.vue_vue_type_style_index_0_scoped_8c3b0c3f_lang.css +0 -1
  49. package/Chart.vue_vue_type_style_index_0_scoped_f06a4764_lang.css +0 -1
  50. package/ChartHeader.vue_vue_type_style_index_0_scoped_88d4532f_lang.css +0 -1
  51. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_1726ad49_lang.css +0 -1
@@ -1,21 +1,27 @@
1
- const E = "#fcfcfc", L = "#E4E4E4", _ = "#646464", C = {
1
+ import { ChartType as L } from "./types.js";
2
+ const _ = "#fcfcfc", n = "#E4E4E4", t = "#646464", O = {
2
3
  size: 12,
3
4
  weight: 400,
4
5
  family: "Inter"
5
- }, I = [
6
+ }, c = [
6
7
  "#80BCFE",
7
8
  "#9999FF",
8
9
  "#5883E4",
9
10
  "#80CBC4",
10
11
  "#FFC670"
11
- ], O = 4, c = 1, t = 5;
12
+ ], T = 4, C = 1, I = 5, e = [
13
+ { id: L.Line, name: "Line" },
14
+ { id: L.StackedLine, name: "Stack" },
15
+ { id: L.Bar, name: "Bar" }
16
+ ];
12
17
  export {
13
- I as COLOR_PALETTE,
14
- t as DEFAULT_MAX_VISIBLE,
15
- c as DEFAULT_MIN_VISIBLE,
16
- O as DEFAULT_TICK_COUNT,
17
- L as GRID_LINE_COLOR,
18
- E as POINT_BORDER_COLOR,
19
- _ as TICK_LABEL_COLOR,
20
- C as TICK_LABEL_FONT
18
+ c as COLOR_PALETTE,
19
+ I as DEFAULT_MAX_VISIBLE,
20
+ C as DEFAULT_MIN_VISIBLE,
21
+ T as DEFAULT_TICK_COUNT,
22
+ e as DROPDOWN_TYPE_OPTIONS,
23
+ n as GRID_LINE_COLOR,
24
+ _ as POINT_BORDER_COLOR,
25
+ t as TICK_LABEL_COLOR,
26
+ O as TICK_LABEL_FONT
21
27
  };
@@ -1,5 +1,308 @@
1
1
  import Chart from './Chart.vue';
2
- declare const ChartTypes: () => import("vue").DefineComponent<{
2
+ declare const ChartTypes: () => ({
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{
7
+ header: string;
8
+ loading: boolean;
9
+ xAxisFormat: import("./types").ValueFormat;
10
+ yAxisFormat: import("./types").ValueFormat;
11
+ parsing: import("./types").ChartParsingConfig;
12
+ visibleIds: unknown[];
13
+ minVisible: number;
14
+ maxVisible: number;
15
+ chartType: import("./types").ChartType;
16
+ withSettingsHeader: boolean;
17
+ subheader: string;
18
+ dataSets: import("./types").ChartDataSet[];
19
+ hideLegend: boolean;
20
+ tickCount: number;
21
+ noDataIcon: string;
22
+ noDataTitle: string;
23
+ noDataSubtitle: string;
24
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
25
+ header: {
26
+ type: import("vue").PropType<string>;
27
+ default: string;
28
+ };
29
+ loading: {
30
+ type: import("vue").PropType<boolean>;
31
+ default: boolean;
32
+ };
33
+ xAxisFormat: {
34
+ type: import("vue").PropType<import("./types").ValueFormat>;
35
+ default: string;
36
+ };
37
+ yAxisFormat: {
38
+ type: import("vue").PropType<import("./types").ValueFormat>;
39
+ default: string;
40
+ };
41
+ parsing: {
42
+ type: import("vue").PropType<import("./types").ChartParsingConfig>;
43
+ default: any;
44
+ };
45
+ visibleIds: {
46
+ type: import("vue").PropType<unknown[]>;
47
+ required: true;
48
+ default: () => any[];
49
+ };
50
+ minVisible: {
51
+ type: import("vue").PropType<number>;
52
+ default: number;
53
+ };
54
+ maxVisible: {
55
+ type: import("vue").PropType<number>;
56
+ default: number;
57
+ };
58
+ chartType: {
59
+ type: import("vue").PropType<import("./types").ChartType>;
60
+ default: import("./types").ChartType;
61
+ };
62
+ withSettingsHeader: {
63
+ type: import("vue").PropType<boolean>;
64
+ default: boolean;
65
+ };
66
+ subheader: {
67
+ type: import("vue").PropType<string>;
68
+ default: string;
69
+ };
70
+ dataSets: {
71
+ type: import("vue").PropType<import("./types").ChartDataSet[]>;
72
+ required: true;
73
+ default: () => any[];
74
+ };
75
+ hideLegend: {
76
+ type: import("vue").PropType<boolean>;
77
+ default: boolean;
78
+ };
79
+ tickCount: {
80
+ type: import("vue").PropType<number>;
81
+ default: number;
82
+ };
83
+ noDataIcon: {
84
+ type: import("vue").PropType<string>;
85
+ default: string;
86
+ };
87
+ noDataTitle: {
88
+ type: import("vue").PropType<string>;
89
+ default: string;
90
+ };
91
+ noDataSubtitle: {
92
+ type: import("vue").PropType<string>;
93
+ default: string;
94
+ };
95
+ }>> & {
96
+ "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
97
+ "onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
98
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "loading" | "xAxisFormat" | "yAxisFormat" | "parsing" | "visibleIds" | "minVisible" | "maxVisible" | "chartType" | "withSettingsHeader" | "subheader" | "dataSets" | "hideLegend" | "tickCount" | "noDataIcon" | "noDataTitle" | "noDataSubtitle">;
99
+ $attrs: {
100
+ [x: string]: unknown;
101
+ };
102
+ $refs: {
103
+ [x: string]: unknown;
104
+ };
105
+ $slots: Readonly<{
106
+ [name: string]: import("vue").Slot;
107
+ }>;
108
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
109
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
110
+ $emit: ((event: "update:visibleIds", visibleIds: unknown[]) => void) & ((event: "update:chartType", chartType: import("./types").ChartType) => void);
111
+ $el: any;
112
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
113
+ header: {
114
+ type: import("vue").PropType<string>;
115
+ default: string;
116
+ };
117
+ loading: {
118
+ type: import("vue").PropType<boolean>;
119
+ default: boolean;
120
+ };
121
+ xAxisFormat: {
122
+ type: import("vue").PropType<import("./types").ValueFormat>;
123
+ default: string;
124
+ };
125
+ yAxisFormat: {
126
+ type: import("vue").PropType<import("./types").ValueFormat>;
127
+ default: string;
128
+ };
129
+ parsing: {
130
+ type: import("vue").PropType<import("./types").ChartParsingConfig>;
131
+ default: any;
132
+ };
133
+ visibleIds: {
134
+ type: import("vue").PropType<unknown[]>;
135
+ required: true;
136
+ default: () => any[];
137
+ };
138
+ minVisible: {
139
+ type: import("vue").PropType<number>;
140
+ default: number;
141
+ };
142
+ maxVisible: {
143
+ type: import("vue").PropType<number>;
144
+ default: number;
145
+ };
146
+ chartType: {
147
+ type: import("vue").PropType<import("./types").ChartType>;
148
+ default: import("./types").ChartType;
149
+ };
150
+ withSettingsHeader: {
151
+ type: import("vue").PropType<boolean>;
152
+ default: boolean;
153
+ };
154
+ subheader: {
155
+ type: import("vue").PropType<string>;
156
+ default: string;
157
+ };
158
+ dataSets: {
159
+ type: import("vue").PropType<import("./types").ChartDataSet[]>;
160
+ required: true;
161
+ default: () => any[];
162
+ };
163
+ hideLegend: {
164
+ type: import("vue").PropType<boolean>;
165
+ default: boolean;
166
+ };
167
+ tickCount: {
168
+ type: import("vue").PropType<number>;
169
+ default: number;
170
+ };
171
+ noDataIcon: {
172
+ type: import("vue").PropType<string>;
173
+ default: string;
174
+ };
175
+ noDataTitle: {
176
+ type: import("vue").PropType<string>;
177
+ default: string;
178
+ };
179
+ noDataSubtitle: {
180
+ type: import("vue").PropType<string>;
181
+ default: string;
182
+ };
183
+ }>> & {
184
+ "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
185
+ "onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
186
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
187
+ "update:chartType": (chartType: import("./types").ChartType) => void;
188
+ "update:visibleIds": (visibleIds: unknown[]) => void;
189
+ }, string, {
190
+ header: string;
191
+ loading: boolean;
192
+ xAxisFormat: import("./types").ValueFormat;
193
+ yAxisFormat: import("./types").ValueFormat;
194
+ parsing: import("./types").ChartParsingConfig;
195
+ visibleIds: unknown[];
196
+ minVisible: number;
197
+ maxVisible: number;
198
+ chartType: import("./types").ChartType;
199
+ withSettingsHeader: boolean;
200
+ subheader: string;
201
+ dataSets: import("./types").ChartDataSet[];
202
+ hideLegend: boolean;
203
+ tickCount: number;
204
+ noDataIcon: string;
205
+ noDataTitle: string;
206
+ noDataSubtitle: string;
207
+ }, {}, string> & {
208
+ beforeCreate?: (() => void) | (() => void)[];
209
+ created?: (() => void) | (() => void)[];
210
+ beforeMount?: (() => void) | (() => void)[];
211
+ mounted?: (() => void) | (() => void)[];
212
+ beforeUpdate?: (() => void) | (() => void)[];
213
+ updated?: (() => void) | (() => void)[];
214
+ activated?: (() => void) | (() => void)[];
215
+ deactivated?: (() => void) | (() => void)[];
216
+ beforeDestroy?: (() => void) | (() => void)[];
217
+ beforeUnmount?: (() => void) | (() => void)[];
218
+ destroyed?: (() => void) | (() => void)[];
219
+ unmounted?: (() => void) | (() => void)[];
220
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
221
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
222
+ 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)[];
223
+ };
224
+ $forceUpdate: () => void;
225
+ $nextTick: typeof import("vue").nextTick;
226
+ $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;
227
+ } & Readonly<import("vue").ExtractPropTypes<{
228
+ header: {
229
+ type: import("vue").PropType<string>;
230
+ default: string;
231
+ };
232
+ loading: {
233
+ type: import("vue").PropType<boolean>;
234
+ default: boolean;
235
+ };
236
+ xAxisFormat: {
237
+ type: import("vue").PropType<import("./types").ValueFormat>;
238
+ default: string;
239
+ };
240
+ yAxisFormat: {
241
+ type: import("vue").PropType<import("./types").ValueFormat>;
242
+ default: string;
243
+ };
244
+ parsing: {
245
+ type: import("vue").PropType<import("./types").ChartParsingConfig>;
246
+ default: any;
247
+ };
248
+ visibleIds: {
249
+ type: import("vue").PropType<unknown[]>;
250
+ required: true;
251
+ default: () => any[];
252
+ };
253
+ minVisible: {
254
+ type: import("vue").PropType<number>;
255
+ default: number;
256
+ };
257
+ maxVisible: {
258
+ type: import("vue").PropType<number>;
259
+ default: number;
260
+ };
261
+ chartType: {
262
+ type: import("vue").PropType<import("./types").ChartType>;
263
+ default: import("./types").ChartType;
264
+ };
265
+ withSettingsHeader: {
266
+ type: import("vue").PropType<boolean>;
267
+ default: boolean;
268
+ };
269
+ subheader: {
270
+ type: import("vue").PropType<string>;
271
+ default: string;
272
+ };
273
+ dataSets: {
274
+ type: import("vue").PropType<import("./types").ChartDataSet[]>;
275
+ required: true;
276
+ default: () => any[];
277
+ };
278
+ hideLegend: {
279
+ type: import("vue").PropType<boolean>;
280
+ default: boolean;
281
+ };
282
+ tickCount: {
283
+ type: import("vue").PropType<number>;
284
+ default: number;
285
+ };
286
+ noDataIcon: {
287
+ type: import("vue").PropType<string>;
288
+ default: string;
289
+ };
290
+ noDataTitle: {
291
+ type: import("vue").PropType<string>;
292
+ default: string;
293
+ };
294
+ noDataSubtitle: {
295
+ type: import("vue").PropType<string>;
296
+ default: string;
297
+ };
298
+ }>> & {
299
+ "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
300
+ "onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
301
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
302
+ __isFragment?: never;
303
+ __isTeleport?: never;
304
+ __isSuspense?: never;
305
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
3
306
  header: {
4
307
  type: import("vue").PropType<string>;
5
308
  default: string;
@@ -37,6 +340,10 @@ declare const ChartTypes: () => import("vue").DefineComponent<{
37
340
  type: import("vue").PropType<import("./types").ChartType>;
38
341
  default: import("./types").ChartType;
39
342
  };
343
+ withSettingsHeader: {
344
+ type: import("vue").PropType<boolean>;
345
+ default: boolean;
346
+ };
40
347
  subheader: {
41
348
  type: import("vue").PropType<string>;
42
349
  default: string;
@@ -46,84 +353,14 @@ declare const ChartTypes: () => import("vue").DefineComponent<{
46
353
  required: true;
47
354
  default: () => any[];
48
355
  };
49
- tickCount: {
50
- type: import("vue").PropType<number>;
51
- default: number;
52
- };
53
356
  hideLegend: {
54
357
  type: import("vue").PropType<boolean>;
55
358
  default: boolean;
56
359
  };
57
- noDataIcon: {
58
- type: import("vue").PropType<string>;
59
- default: string;
60
- };
61
- noDataTitle: {
62
- type: import("vue").PropType<string>;
63
- default: string;
64
- };
65
- noDataSubtitle: {
66
- type: import("vue").PropType<string>;
67
- default: string;
68
- };
69
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
70
- "update:chartType": (chartType: import("./types").ChartType) => void;
71
- "update:visibleIds": (visibleIds: unknown[]) => void;
72
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
73
- header: {
74
- type: import("vue").PropType<string>;
75
- default: string;
76
- };
77
- loading: {
78
- type: import("vue").PropType<boolean>;
79
- default: boolean;
80
- };
81
- xAxisFormat: {
82
- type: import("vue").PropType<import("./types").ValueFormat>;
83
- default: string;
84
- };
85
- yAxisFormat: {
86
- type: import("vue").PropType<import("./types").ValueFormat>;
87
- default: string;
88
- };
89
- parsing: {
90
- type: import("vue").PropType<import("./types").ChartParsingConfig>;
91
- default: any;
92
- };
93
- visibleIds: {
94
- type: import("vue").PropType<unknown[]>;
95
- required: true;
96
- default: () => any[];
97
- };
98
- minVisible: {
99
- type: import("vue").PropType<number>;
100
- default: number;
101
- };
102
- maxVisible: {
103
- type: import("vue").PropType<number>;
104
- default: number;
105
- };
106
- chartType: {
107
- type: import("vue").PropType<import("./types").ChartType>;
108
- default: import("./types").ChartType;
109
- };
110
- subheader: {
111
- type: import("vue").PropType<string>;
112
- default: string;
113
- };
114
- dataSets: {
115
- type: import("vue").PropType<import("./types").ChartDataSet[]>;
116
- required: true;
117
- default: () => any[];
118
- };
119
360
  tickCount: {
120
361
  type: import("vue").PropType<number>;
121
362
  default: number;
122
363
  };
123
- hideLegend: {
124
- type: import("vue").PropType<boolean>;
125
- default: boolean;
126
- };
127
364
  noDataIcon: {
128
365
  type: import("vue").PropType<string>;
129
366
  default: string;
@@ -139,7 +376,10 @@ declare const ChartTypes: () => import("vue").DefineComponent<{
139
376
  }>> & {
140
377
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
141
378
  "onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
142
- }, {
379
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
380
+ "update:chartType": (chartType: import("./types").ChartType) => void;
381
+ "update:visibleIds": (visibleIds: unknown[]) => void;
382
+ }, string, {
143
383
  header: string;
144
384
  loading: boolean;
145
385
  xAxisFormat: import("./types").ValueFormat;
@@ -149,13 +389,19 @@ declare const ChartTypes: () => import("vue").DefineComponent<{
149
389
  minVisible: number;
150
390
  maxVisible: number;
151
391
  chartType: import("./types").ChartType;
392
+ withSettingsHeader: boolean;
152
393
  subheader: string;
153
394
  dataSets: import("./types").ChartDataSet[];
154
- tickCount: number;
155
395
  hideLegend: boolean;
396
+ tickCount: number;
156
397
  noDataIcon: string;
157
398
  noDataTitle: string;
158
399
  noDataSubtitle: string;
159
- }>[];
400
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
401
+ $slots: {
402
+ metric?(_: {}): any;
403
+ breakdowns?(_: {}): any;
404
+ };
405
+ }))[];
160
406
  export type { ChartType, ChartDataRecord, ChartDataSet, ChartParsingConfig, } from './types';
161
407
  export { Chart, ChartTypes };
@@ -37,3 +37,7 @@ export type UseVirtualListResult = {
37
37
  };
38
38
  }>;
39
39
  };
40
+ export type DropdownTypeOption = {
41
+ id: ChartType;
42
+ name: string;
43
+ };
@@ -1,11 +1,12 @@
1
- import "../../../CalendarMonthV4.vue_vue_type_style_index_0_scoped_b0d3ea50_lang.css"; import { defineComponent as V, openBlock as n, createElementBlock as l, unref as t, createElementVNode as i, createBlock as c, createCommentVNode as D, createVNode as E, withCtx as m, createTextVNode as v, toDisplayString as o, Fragment as $, renderList as f, normalizeClass as C } from "vue";
1
+ import "../../../CalendarMonthV4.vue_vue_type_style_index_0_scoped_b0d3ea50_lang.css"; import { defineComponent as V, openBlock as n, createElementBlock as l, unref as t, createElementVNode as s, createBlock as c, createCommentVNode as D, createVNode as E, withCtx as m, createTextVNode as v, toDisplayString as o, Fragment as $, renderList as f, normalizeClass as C } from "vue";
2
2
  import { navigatePrev as I, navigateNext as N } from "../common/consts.common.js";
3
3
  import { calendarMonthCommon as B } from "../common/CalendarMonth.common.js";
4
4
  import "../../button/v4/ButtonV4.vue.js";
5
5
  import A from "../../button/v4/IconButtonV4.vue.js";
6
+ import "../../button/v4/ButtonGroup.vue.js";
6
7
  import y from "../../typography/v4/Typography.vue.js";
7
8
  import { CalendarMonthTestIdModifiers as d } from "../../../testids/index.js";
8
- const H = ["id", "data-testid"], S = ["data-testid"], z = ["data-testid"], F = ["data-testid"], J = /* @__PURE__ */ V({
9
+ const H = ["id", "data-testid"], S = ["data-testid"], z = ["data-testid"], F = ["data-testid"], K = /* @__PURE__ */ V({
9
10
  __name: "CalendarMonthV4",
10
11
  props: {
11
12
  year: null,
@@ -22,23 +23,23 @@ const H = ["id", "data-testid"], S = ["data-testid"], z = ["data-testid"], F = [
22
23
  },
23
24
  emits: ["selectionChanged", "navigation"],
24
25
  setup(e, { emit: T }) {
25
- const M = e, {
26
+ const p = e, {
26
27
  isEndDay: k,
27
28
  isStartDay: g,
28
29
  navigate: h,
29
- selectDay: R,
30
- monthName: p,
30
+ selectDay: M,
31
+ monthName: R,
31
32
  dayNames: x,
32
33
  selectedDaysMap: w,
33
34
  inBetweenMap: b
34
- } = B(M, T);
35
+ } = B(p, T);
35
36
  return (O, r) => (n(), l("div", {
36
37
  id: "datepickerCalendar" + e.id,
37
38
  class: "calendar-month",
38
39
  "data-testid": `${e.testId}-${t(d).WRAPPER}`
39
40
  }, [
40
- i("span", {
41
- onClick: r[0] || (r[0] = (s) => t(h)(t(I)))
41
+ s("span", {
42
+ onClick: r[0] || (r[0] = (i) => t(h)(t(I)))
42
43
  }, [
43
44
  e.navigation === t(I) || e.navigation === "all" ? (n(), c(t(A), {
44
45
  key: 0,
@@ -48,8 +49,8 @@ const H = ["id", "data-testid"], S = ["data-testid"], z = ["data-testid"], F = [
48
49
  "icon-name": "caret-left"
49
50
  }, null, 8, ["data-testid"])) : D("", !0)
50
51
  ]),
51
- i("span", {
52
- onClick: r[1] || (r[1] = (s) => t(h)(t(N)))
52
+ s("span", {
53
+ onClick: r[1] || (r[1] = (i) => t(h)(t(N)))
53
54
  }, [
54
55
  e.navigation === t(N) || e.navigation === "all" ? (n(), c(t(A), {
55
56
  key: 0,
@@ -59,7 +60,7 @@ const H = ["id", "data-testid"], S = ["data-testid"], z = ["data-testid"], F = [
59
60
  "data-testid": `${e.testId}-${t(d).NEXT}`
60
61
  }, null, 8, ["data-testid"])) : D("", !0)
61
62
  ]),
62
- i("div", {
63
+ s("div", {
63
64
  class: "month-header",
64
65
  "data-testid": `${e.testId}-${t(d).MONTH_HEADER}`
65
66
  }, [
@@ -69,32 +70,32 @@ const H = ["id", "data-testid"], S = ["data-testid"], z = ["data-testid"], F = [
69
70
  "test-id": `${e.testId}-${t(d).MONTH_HEADER_TEXT}`
70
71
  }, {
71
72
  default: m(() => [
72
- v(o(t(p)) + " " + o(e.year), 1)
73
+ v(o(t(R)) + " " + o(e.year), 1)
73
74
  ]),
74
75
  _: 1
75
76
  }, 8, ["test-id"])
76
77
  ], 8, S),
77
- i("div", {
78
+ s("div", {
78
79
  class: "days-header",
79
80
  "data-testid": `${e.testId}-${t(d).DAYS_HEADER}`
80
81
  }, [
81
- (n(!0), l($, null, f(t(x), (s, u) => (n(), c(t(y), {
82
+ (n(!0), l($, null, f(t(x), (i, u) => (n(), c(t(y), {
82
83
  key: u,
83
84
  variant: "caption",
84
85
  class: "week-day"
85
86
  }, {
86
87
  default: m(() => [
87
- v(o(s), 1)
88
+ v(o(i), 1)
88
89
  ]),
89
90
  _: 2
90
91
  }, 1024))), 128))
91
92
  ], 8, z),
92
- i("div", {
93
+ s("div", {
93
94
  class: "days-wrapper",
94
95
  "data-testid": `${e.testId}-${t(d).DAYS_WRAPPER}`
95
96
  }, [
96
- (n(!0), l($, null, f(e.weeks, (s, u) => (n(), l("div", { key: u }, [
97
- (n(!0), l($, null, f(s, (a, P) => (n(), l("span", {
97
+ (n(!0), l($, null, f(e.weeks, (i, u) => (n(), l("div", { key: u }, [
98
+ (n(!0), l($, null, f(i, (a, P) => (n(), l("span", {
98
99
  key: P,
99
100
  class: C(["date-wrapper", {
100
101
  "selected-day-wrapper": t(w)[a.value],
@@ -114,7 +115,7 @@ const H = ["id", "data-testid"], S = ["data-testid"], z = ["data-testid"], F = [
114
115
  }]),
115
116
  variant: "body1",
116
117
  "data-testid": `${e.testId}-${t(d).DAY}-${a.value}`,
117
- onClick: (Y) => a.disabled || a.isFuture || t(R)(a)
118
+ onClick: (Y) => a.disabled || a.isFuture || t(M)(a)
118
119
  }, {
119
120
  default: m(() => [
120
121
  v(o(a.value), 1)
@@ -128,5 +129,5 @@ const H = ["id", "data-testid"], S = ["data-testid"], z = ["data-testid"], F = [
128
129
  }
129
130
  });
130
131
  export {
131
- J as default
132
+ K as default
132
133
  };
@@ -3,6 +3,7 @@ import X from "./CalendarMonthV4.vue.js";
3
3
  import { typeToName as Z, messagePerType as _ } from "../common/consts.common.js";
4
4
  import R from "../../button/v4/ButtonV4.vue.js";
5
5
  import "../../button/v4/IconButtonV4.vue.js";
6
+ import "../../button/v4/ButtonGroup.vue.js";
6
7
  import "../../dropdown/v4/DropdownV4.vue.js";
7
8
  import "../../dropdown/v4/DefaultDropdownTrigger.vue.js";
8
9
  import "../../dropdown/v4/IconButtonDropdownTrigger.vue.js";
@@ -18,7 +19,7 @@ import p from "../../typography/v4/Typography.vue.js";
18
19
  const de = ["id", "data-testid"], ne = ["data-testid"], se = ["id", "data-testid"], ie = {
19
20
  key: 0,
20
21
  class: "type-picker"
21
- }, oe = ["onClick"], le = ["data-testid"], re = ["id"], ue = ["id"], ce = ["onClick"], me = { class: "dropdown-rightTriangle" }, pe = ["data-testid"], ye = { class: "date-picker-calendar left-box" }, ge = { class: "buttons-cover" }, fe = { class: "range" }, he = { class: "text-container" }, Se = /* @__PURE__ */ J({
22
+ }, oe = ["onClick"], le = ["data-testid"], re = ["id"], ue = ["id"], ce = ["onClick"], me = { class: "dropdown-rightTriangle" }, pe = ["data-testid"], ye = { class: "date-picker-calendar left-box" }, ge = { class: "buttons-cover" }, fe = { class: "range" }, he = { class: "text-container" }, qe = /* @__PURE__ */ J({
22
23
  __name: "DateRangeV4",
23
24
  props: {
24
25
  range: null,
@@ -259,5 +260,5 @@ const de = ["id", "data-testid"], ne = ["data-testid"], se = ["id", "data-testid
259
260
  }
260
261
  });
261
262
  export {
262
- Se as default
263
+ qe as default
263
264
  };