@ironsource/shared-ui 2.1.8-test.1 → 2.1.9

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 (37) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +1 -0
  2. package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +1 -0
  3. package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +1 -0
  4. package/DropdownV4.vue_vue_type_style_index_0_scoped_62a620ee_lang.css +1 -0
  5. package/GroupOption.vue_vue_type_style_index_0_scoped_5f372a81_lang.css +1 -0
  6. package/components/chart/Chart.vue.d.ts +5 -0
  7. package/components/chart/Chart.vue.js +4 -4
  8. package/components/chart/Chart.vue2.js +51 -49
  9. package/components/chart/ChartHeader.vue.d.ts +5 -0
  10. package/components/chart/ChartHeader.vue.js +2 -2
  11. package/components/chart/ChartHeader.vue2.js +35 -22
  12. package/components/chart/ChartLegend.vue.js +3 -3
  13. package/components/chart/ChartLegend.vue2.js +35 -28
  14. package/components/chart/index.d.ts +20 -1
  15. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  16. package/components/dropdown/common/Dropdown.common.js +207 -178
  17. package/components/dropdown/common/consts.d.ts +1 -0
  18. package/components/dropdown/common/consts.js +4 -0
  19. package/components/dropdown/common/useGroupedOptions.d.ts +10 -0
  20. package/components/dropdown/common/useGroupedOptions.js +57 -0
  21. package/components/dropdown/v4/DropdownV4.vue.d.ts +6 -0
  22. package/components/dropdown/v4/DropdownV4.vue.js +4 -4
  23. package/components/dropdown/v4/DropdownV4.vue2.js +136 -125
  24. package/components/dropdown/v4/GroupOption.vue.d.ts +9 -0
  25. package/components/dropdown/v4/GroupOption.vue.js +7 -0
  26. package/components/dropdown/v4/GroupOption.vue2.js +29 -0
  27. package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
  28. package/components/dropdown/v4/index.d.ts +21 -1
  29. package/index.d.ts +42 -3
  30. package/index.js +111 -116
  31. package/mocks/apps.d.ts +7 -0
  32. package/package.json +1 -1
  33. package/utils/formatNumbers.js +7 -15
  34. package/Chart.vue_vue_type_style_index_0_scoped_df85e0af_lang.css +0 -1
  35. package/ChartHeader.vue_vue_type_style_index_0_scoped_2e3de9c5_lang.css +0 -1
  36. package/ChartLegend.vue_vue_type_style_index_0_scoped_efc608f9_lang.css +0 -1
  37. package/DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css +0 -1
@@ -1633,6 +1633,7 @@ declare const DropdownTypes: () => (({
1633
1633
  disabledOptionKey: string;
1634
1634
  optionTwoLinesVariant: "horizontal" | "vertical";
1635
1635
  optionTwoLinesKey: string;
1636
+ groupedOptions: boolean;
1636
1637
  fullWidth: boolean;
1637
1638
  optionsListWidth: string;
1638
1639
  statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
@@ -1829,6 +1830,10 @@ declare const DropdownTypes: () => (({
1829
1830
  type: import("vue").PropType<string>;
1830
1831
  default: any;
1831
1832
  };
1833
+ groupedOptions: {
1834
+ type: import("vue").PropType<boolean>;
1835
+ default: boolean;
1836
+ };
1832
1837
  fullWidth: {
1833
1838
  type: import("vue").PropType<boolean>;
1834
1839
  default: boolean;
@@ -1859,7 +1864,7 @@ declare const DropdownTypes: () => (({
1859
1864
  onOnsearch?: (value: string) => any;
1860
1865
  onOpened?: () => any;
1861
1866
  onClosed?: () => any;
1862
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "selected" | "onClear" | "modelValue" | "placeholder" | "multi" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "skidding" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "valueToCopy" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation">;
1867
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "selected" | "onClear" | "modelValue" | "placeholder" | "multi" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "skidding" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "valueToCopy" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation">;
1863
1868
  $attrs: {
1864
1869
  [x: string]: unknown;
1865
1870
  };
@@ -2064,6 +2069,10 @@ declare const DropdownTypes: () => (({
2064
2069
  type: import("vue").PropType<string>;
2065
2070
  default: any;
2066
2071
  };
2072
+ groupedOptions: {
2073
+ type: import("vue").PropType<boolean>;
2074
+ default: boolean;
2075
+ };
2067
2076
  fullWidth: {
2068
2077
  type: import("vue").PropType<boolean>;
2069
2078
  default: boolean;
@@ -2152,6 +2161,7 @@ declare const DropdownTypes: () => (({
2152
2161
  disabledOptionKey: string;
2153
2162
  optionTwoLinesVariant: "horizontal" | "vertical";
2154
2163
  optionTwoLinesKey: string;
2164
+ groupedOptions: boolean;
2155
2165
  fullWidth: boolean;
2156
2166
  optionsListWidth: string;
2157
2167
  statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
@@ -2368,6 +2378,10 @@ declare const DropdownTypes: () => (({
2368
2378
  type: import("vue").PropType<string>;
2369
2379
  default: any;
2370
2380
  };
2381
+ groupedOptions: {
2382
+ type: import("vue").PropType<boolean>;
2383
+ default: boolean;
2384
+ };
2371
2385
  fullWidth: {
2372
2386
  type: import("vue").PropType<boolean>;
2373
2387
  default: boolean;
@@ -2596,6 +2610,10 @@ declare const DropdownTypes: () => (({
2596
2610
  type: import("vue").PropType<string>;
2597
2611
  default: any;
2598
2612
  };
2613
+ groupedOptions: {
2614
+ type: import("vue").PropType<boolean>;
2615
+ default: boolean;
2616
+ };
2599
2617
  fullWidth: {
2600
2618
  type: import("vue").PropType<boolean>;
2601
2619
  default: boolean;
@@ -2684,6 +2702,7 @@ declare const DropdownTypes: () => (({
2684
2702
  disabledOptionKey: string;
2685
2703
  optionTwoLinesVariant: "horizontal" | "vertical";
2686
2704
  optionTwoLinesKey: string;
2705
+ groupedOptions: boolean;
2687
2706
  fullWidth: boolean;
2688
2707
  optionsListWidth: string;
2689
2708
  statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
@@ -2730,6 +2749,7 @@ declare const DropdownTypes: () => (({
2730
2749
  "input-list"?(_: {
2731
2750
  open: true;
2732
2751
  }): any;
2752
+ "group-option"?(_: {}): any;
2733
2753
  default?(_: {
2734
2754
  option: unknown;
2735
2755
  index: number;
package/index.d.ts CHANGED
@@ -15542,6 +15542,7 @@ declare const _default: {
15542
15542
  disabledOptionKey: string;
15543
15543
  optionTwoLinesVariant: "horizontal" | "vertical";
15544
15544
  optionTwoLinesKey: string;
15545
+ groupedOptions: boolean;
15545
15546
  fullWidth: boolean;
15546
15547
  optionsListWidth: string;
15547
15548
  statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
@@ -15738,6 +15739,10 @@ declare const _default: {
15738
15739
  type: import("vue").PropType<string>;
15739
15740
  default: any;
15740
15741
  };
15742
+ groupedOptions: {
15743
+ type: import("vue").PropType<boolean>;
15744
+ default: boolean;
15745
+ };
15741
15746
  fullWidth: {
15742
15747
  type: import("vue").PropType<boolean>;
15743
15748
  default: boolean;
@@ -15768,7 +15773,7 @@ declare const _default: {
15768
15773
  onOnsearch?: (value: string) => any;
15769
15774
  onOpened?: () => any;
15770
15775
  onClosed?: () => any;
15771
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "selected" | "onClear" | "modelValue" | "placeholder" | "multi" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "skidding" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "valueToCopy" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation">;
15776
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "selected" | "onClear" | "modelValue" | "placeholder" | "multi" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "skidding" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "valueToCopy" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation">;
15772
15777
  $attrs: {
15773
15778
  [x: string]: unknown;
15774
15779
  };
@@ -15973,6 +15978,10 @@ declare const _default: {
15973
15978
  type: import("vue").PropType<string>;
15974
15979
  default: any;
15975
15980
  };
15981
+ groupedOptions: {
15982
+ type: import("vue").PropType<boolean>;
15983
+ default: boolean;
15984
+ };
15976
15985
  fullWidth: {
15977
15986
  type: import("vue").PropType<boolean>;
15978
15987
  default: boolean;
@@ -16061,6 +16070,7 @@ declare const _default: {
16061
16070
  disabledOptionKey: string;
16062
16071
  optionTwoLinesVariant: "horizontal" | "vertical";
16063
16072
  optionTwoLinesKey: string;
16073
+ groupedOptions: boolean;
16064
16074
  fullWidth: boolean;
16065
16075
  optionsListWidth: string;
16066
16076
  statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
@@ -16277,6 +16287,10 @@ declare const _default: {
16277
16287
  type: import("vue").PropType<string>;
16278
16288
  default: any;
16279
16289
  };
16290
+ groupedOptions: {
16291
+ type: import("vue").PropType<boolean>;
16292
+ default: boolean;
16293
+ };
16280
16294
  fullWidth: {
16281
16295
  type: import("vue").PropType<boolean>;
16282
16296
  default: boolean;
@@ -16505,6 +16519,10 @@ declare const _default: {
16505
16519
  type: import("vue").PropType<string>;
16506
16520
  default: any;
16507
16521
  };
16522
+ groupedOptions: {
16523
+ type: import("vue").PropType<boolean>;
16524
+ default: boolean;
16525
+ };
16508
16526
  fullWidth: {
16509
16527
  type: import("vue").PropType<boolean>;
16510
16528
  default: boolean;
@@ -16593,6 +16611,7 @@ declare const _default: {
16593
16611
  disabledOptionKey: string;
16594
16612
  optionTwoLinesVariant: "horizontal" | "vertical";
16595
16613
  optionTwoLinesKey: string;
16614
+ groupedOptions: boolean;
16596
16615
  fullWidth: boolean;
16597
16616
  optionsListWidth: string;
16598
16617
  statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
@@ -16639,6 +16658,7 @@ declare const _default: {
16639
16658
  "input-list"?(_: {
16640
16659
  open: true;
16641
16660
  }): any;
16661
+ "group-option"?(_: {}): any;
16642
16662
  default?(_: {
16643
16663
  option: unknown;
16644
16664
  index: number;
@@ -19581,6 +19601,7 @@ declare const _default: {
19581
19601
  disabledOptionKey: string;
19582
19602
  optionTwoLinesVariant: "horizontal" | "vertical";
19583
19603
  optionTwoLinesKey: string;
19604
+ groupedOptions: boolean;
19584
19605
  fullWidth: boolean;
19585
19606
  optionsListWidth: string;
19586
19607
  statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
@@ -19777,6 +19798,10 @@ declare const _default: {
19777
19798
  type: import("vue").PropType<string>;
19778
19799
  default: any;
19779
19800
  };
19801
+ groupedOptions: {
19802
+ type: import("vue").PropType<boolean>;
19803
+ default: boolean;
19804
+ };
19780
19805
  fullWidth: {
19781
19806
  type: import("vue").PropType<boolean>;
19782
19807
  default: boolean;
@@ -19807,7 +19832,7 @@ declare const _default: {
19807
19832
  onOnsearch?: (value: string) => any;
19808
19833
  onOpened?: () => any;
19809
19834
  onClosed?: () => any;
19810
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "selected" | "onClear" | "modelValue" | "placeholder" | "multi" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "skidding" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "valueToCopy" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation">;
19835
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "selected" | "onClear" | "modelValue" | "placeholder" | "multi" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "skidding" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "valueToCopy" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation">;
19811
19836
  $attrs: {
19812
19837
  [x: string]: unknown;
19813
19838
  };
@@ -20012,6 +20037,10 @@ declare const _default: {
20012
20037
  type: import("vue").PropType<string>;
20013
20038
  default: any;
20014
20039
  };
20040
+ groupedOptions: {
20041
+ type: import("vue").PropType<boolean>;
20042
+ default: boolean;
20043
+ };
20015
20044
  fullWidth: {
20016
20045
  type: import("vue").PropType<boolean>;
20017
20046
  default: boolean;
@@ -20100,6 +20129,7 @@ declare const _default: {
20100
20129
  disabledOptionKey: string;
20101
20130
  optionTwoLinesVariant: "horizontal" | "vertical";
20102
20131
  optionTwoLinesKey: string;
20132
+ groupedOptions: boolean;
20103
20133
  fullWidth: boolean;
20104
20134
  optionsListWidth: string;
20105
20135
  statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
@@ -20316,6 +20346,10 @@ declare const _default: {
20316
20346
  type: import("vue").PropType<string>;
20317
20347
  default: any;
20318
20348
  };
20349
+ groupedOptions: {
20350
+ type: import("vue").PropType<boolean>;
20351
+ default: boolean;
20352
+ };
20319
20353
  fullWidth: {
20320
20354
  type: import("vue").PropType<boolean>;
20321
20355
  default: boolean;
@@ -20544,6 +20578,10 @@ declare const _default: {
20544
20578
  type: import("vue").PropType<string>;
20545
20579
  default: any;
20546
20580
  };
20581
+ groupedOptions: {
20582
+ type: import("vue").PropType<boolean>;
20583
+ default: boolean;
20584
+ };
20547
20585
  fullWidth: {
20548
20586
  type: import("vue").PropType<boolean>;
20549
20587
  default: boolean;
@@ -20632,6 +20670,7 @@ declare const _default: {
20632
20670
  disabledOptionKey: string;
20633
20671
  optionTwoLinesVariant: "horizontal" | "vertical";
20634
20672
  optionTwoLinesKey: string;
20673
+ groupedOptions: boolean;
20635
20674
  fullWidth: boolean;
20636
20675
  optionsListWidth: string;
20637
20676
  statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
@@ -20678,6 +20717,7 @@ declare const _default: {
20678
20717
  "input-list"?(_: {
20679
20718
  open: true;
20680
20719
  }): any;
20720
+ "group-option"?(_: {}): any;
20681
20721
  default?(_: {
20682
20722
  option: unknown;
20683
20723
  index: number;
@@ -23466,4 +23506,3 @@ export * from '@/components/banner';
23466
23506
  export * from '@/components/alert';
23467
23507
  export * from '@/components/autocomplete';
23468
23508
  export * from '@/components/chart';
23469
- export * from '@/utils';
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './AutocompleteDropdown.vue_vue_type_style_index_0_scoped_214ddaf4_lang.css';
1
+ import './Text.vue_vue_type_style_index_0_scoped_94bd409b_lang.css';
2
2
  import { AppTriggerTypes as ro } from "./components/appTrigger/index.js";
3
3
  import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
4
4
  import { MenuItemTypes as po } from "./components/menuItem/index.js";
@@ -7,12 +7,12 @@ import { AppIconTypes as xo } from "./components/appIcon/index.js";
7
7
  import { FloatingToolbarTypes as no } from "./components/floatingToolbar/index.js";
8
8
  import { IncludeExcludeTypes as uo } from "./components/includeExclude/index.js";
9
9
  import { ID_INJECTION_KEY as To, useId as co } from "./composables/useId.js";
10
- import { FilterDropdownTypes as Fo } from "./components/filterDropdown/index.js";
10
+ import { FilterDropdownTypes as go } from "./components/filterDropdown/index.js";
11
11
  import { TypographyTypes as Io } from "./components/typography/index.js";
12
12
  import { TypographyTypesV4 as Eo } from "./components/typography/v4/index.js";
13
13
  import { MultiBarTypes as Do } from "./components/multibar/index.js";
14
14
  import { FoldableSectionTypes as Bo } from "./components/layout/index.js";
15
- import { FormCardTypes as Mo, FormFieldTypes as wo } from "./components/forms/index.js";
15
+ import { FormCardTypes as bo, FormFieldTypes as wo } from "./components/forms/index.js";
16
16
  import * as o from "./components/button/v3/index.js";
17
17
  import * as r from "./components/button/v4/index.js";
18
18
  import * as e from "./components/chip/v3/index.js";
@@ -32,8 +32,8 @@ import * as $ from "./components/icon/v4/index.js";
32
32
  import * as T from "./components/input/v3/index.js";
33
33
  import * as c from "./components/input/v4/index.js";
34
34
  import * as y from "./components/tabs/v3/index.js";
35
- import * as F from "./components/tabs/v4/index.js";
36
- import * as g from "./components/dialog/v3/index.js";
35
+ import * as g from "./components/tabs/v4/index.js";
36
+ import * as F from "./components/dialog/v3/index.js";
37
37
  import * as I from "./components/dialog/v4/index.js";
38
38
  import * as A from "./components/toggle/v3/index.js";
39
39
  import * as E from "./components/toggle/v4/index.js";
@@ -41,66 +41,65 @@ import * as C from "./components/tooltip/v3/index.js";
41
41
  import * as D from "./components/tooltip/v4/index.js";
42
42
  import * as h from "./components/table/v3/index.js";
43
43
  import * as B from "./components/table/v4/index.js";
44
- import * as b from "./components/table-cells/v3/index.js";
45
- import * as M from "./components/table-cells/v4/index.js";
44
+ import * as M from "./components/table-cells/v3/index.js";
45
+ import * as b from "./components/table-cells/v4/index.js";
46
46
  import * as w from "./components/skeleton/v3/index.js";
47
- import * as L from "./components/skeleton/v4/index.js";
48
- import * as N from "./components/loader/v4/index.js";
49
- import * as O from "./components/emptyState/v3/index.js";
50
- import * as H from "./components/emptyState/v4/index.js";
51
- import * as K from "./components/snackbar/v3/index.js";
52
- import * as P from "./components/snackbar/v4/index.js";
53
- import * as S from "./components/radioButton/v3/index.js";
54
- import * as V from "./components/radioButton/v4/index.js";
55
- import * as _ from "./components/textArea/v3/index.js";
56
- import * as v from "./components/textArea/v4/index.js";
57
- import * as J from "./components/ThemeWrapper/index.js";
58
- import * as j from "./components/appHeader/index.js";
59
- import * as k from "./components/inlineCopy/index.js";
60
- import * as q from "./components/statusDot/index.js";
61
- import * as z from "./components/sortableList/index.js";
62
- import * as G from "./components/datePicker/v3/index.js";
47
+ import * as O from "./components/skeleton/v4/index.js";
48
+ import * as H from "./components/loader/v4/index.js";
49
+ import * as N from "./components/emptyState/v3/index.js";
50
+ import * as S from "./components/emptyState/v4/index.js";
51
+ import * as V from "./components/snackbar/v3/index.js";
52
+ import * as v from "./components/snackbar/v4/index.js";
53
+ import * as J from "./components/radioButton/v3/index.js";
54
+ import * as K from "./components/radioButton/v4/index.js";
55
+ import * as P from "./components/textArea/v3/index.js";
56
+ import * as _ from "./components/textArea/v4/index.js";
57
+ import * as j from "./components/ThemeWrapper/index.js";
58
+ import * as k from "./components/appHeader/index.js";
59
+ import * as q from "./components/inlineCopy/index.js";
60
+ import * as z from "./components/statusDot/index.js";
61
+ import * as G from "./components/sortableList/index.js";
62
+ import * as L from "./components/datePicker/v3/index.js";
63
63
  import * as Q from "./components/datePicker/v4/index.js";
64
64
  import * as R from "./components/dateRange/v3/index.js";
65
- import * as U from "./components/dateRange/v4/index.js";
66
- import * as W from "./components/popover/v3/index.js";
67
- import * as Y from "./components/popover/v4/index.js";
68
- import { useToggle as No } from "./composables/useToggle.js";
69
- import { useSearch as Ho } from "./composables/useSearch.js";
70
- import { scrollToElementByClass as Po, scrollToFirstInvalidElement as So, useFormValidation as Vo, yupValidation as _o } from "./composables/useFormValidation.js";
71
- import { BannerTypes as Jo } from "./components/banner/index.js";
72
- import { AlertTypes as ko } from "./components/alert/index.js";
73
- import { AutocompleteTypes as zo } from "./components/autocomplete/index.js";
65
+ import * as Y from "./components/dateRange/v4/index.js";
66
+ import * as U from "./components/popover/v3/index.js";
67
+ import * as W from "./components/popover/v4/index.js";
68
+ import { useToggle as Ho } from "./composables/useToggle.js";
69
+ import { useSearch as So } from "./composables/useSearch.js";
70
+ import { scrollToElementByClass as vo, scrollToFirstInvalidElement as Jo, useFormValidation as Ko, yupValidation as Po } from "./composables/useFormValidation.js";
71
+ import { BannerTypes as jo } from "./components/banner/index.js";
72
+ import { AlertTypes as qo } from "./components/alert/index.js";
73
+ import { AutocompleteTypes as Go } from "./components/autocomplete/index.js";
74
74
  import { ChartTypes as Qo } from "./components/chart/index.js";
75
- import { DEFAULT_FALLBACK as Uo, diffInPersentage as Wo, formatNumberWithCommas as Yo, nFormatter as Xo } from "./utils/formatNumbers.js";
76
- import { default as or } from "./components/appTrigger/AppTrigger.vue.js";
77
- import { default as er } from "./components/autocompleteDropdown/AutocompleteDropdown.vue.js";
78
- import { default as tr } from "./components/menuItem/MenuItem.vue.js";
79
- import { default as ar } from "./components/menu/Menu.vue.js";
80
- import { default as ir } from "./components/appIcon/AppIcon.vue.js";
81
- import { default as xr } from "./components/floatingToolbar/FloatingToolbar.vue.js";
82
- import { default as nr } from "./components/includeExclude/IncludeExclude.vue.js";
83
- import { default as ur } from "./components/includeExclude/IncludeExcludeDragDrop.vue.js";
84
- import { default as Tr } from "./components/includeExclude/IncludeExcludeOption.vue.js";
85
- import { default as yr } from "./components/includeExclude/IncludeExcludeOptionDraggable.vue.js";
86
- import { default as gr } from "./components/includeExclude/IncludeExcludeAppTrigger.vue.js";
87
- import { default as Ar } from "./components/includeExclude/IncludeExcludeAppHeader.vue.js";
88
- import { default as Cr } from "./components/includeExclude/IncludeExcludeChipFilter.vue.js";
89
- import { default as hr } from "./components/filterDropdown/FilterDropdown.vue.js";
90
- import { default as br } from "./components/filterDropdown/AddFilterButton.vue.js";
91
- import { default as wr } from "./components/typography/Heading.vue.js";
92
- import { default as Nr } from "./components/typography/Text.vue.js";
93
- import { default as Hr } from "./components/typography/v4/Typography.vue.js";
94
- import { default as Pr } from "./components/multibar/MultiBar.vue.js";
95
- import { default as Vr } from "./components/layout/FoldableSection.vue.js";
96
- import { default as vr } from "./components/forms/FormRow.vue.js";
97
- import { default as jr } from "./components/forms/FormCard.vue.js";
98
- import { default as qr } from "./components/forms/CardPanel.vue.js";
99
- import { default as Gr } from "./components/forms/FormField.vue.js";
100
- import { default as Rr } from "./components/banner/Banner.vue.js";
101
- import { default as Wr } from "./components/alert/Alert.vue.js";
102
- import { default as Xr } from "./components/autocomplete/Autocomplete.vue.js";
103
- import { default as oe } from "./components/chart/Chart.vue.js";
75
+ import { default as Yo } from "./components/appTrigger/AppTrigger.vue.js";
76
+ import { default as Wo } from "./components/autocompleteDropdown/AutocompleteDropdown.vue.js";
77
+ import { default as Zo } from "./components/menuItem/MenuItem.vue.js";
78
+ import { default as rr } from "./components/menu/Menu.vue.js";
79
+ import { default as mr } from "./components/appIcon/AppIcon.vue.js";
80
+ import { default as pr } from "./components/floatingToolbar/FloatingToolbar.vue.js";
81
+ import { default as fr } from "./components/includeExclude/IncludeExclude.vue.js";
82
+ import { default as dr } from "./components/includeExclude/IncludeExcludeDragDrop.vue.js";
83
+ import { default as sr } from "./components/includeExclude/IncludeExcludeOption.vue.js";
84
+ import { default as lr } from "./components/includeExclude/IncludeExcludeOptionDraggable.vue.js";
85
+ import { default as $r } from "./components/includeExclude/IncludeExcludeAppTrigger.vue.js";
86
+ import { default as cr } from "./components/includeExclude/IncludeExcludeAppHeader.vue.js";
87
+ import { default as gr } from "./components/includeExclude/IncludeExcludeChipFilter.vue.js";
88
+ import { default as Ir } from "./components/filterDropdown/FilterDropdown.vue.js";
89
+ import { default as Er } from "./components/filterDropdown/AddFilterButton.vue.js";
90
+ import { default as Dr } from "./components/typography/Heading.vue.js";
91
+ import { default as Br } from "./components/typography/Text.vue.js";
92
+ import { default as br } from "./components/typography/v4/Typography.vue.js";
93
+ import { default as Or } from "./components/multibar/MultiBar.vue.js";
94
+ import { default as Nr } from "./components/layout/FoldableSection.vue.js";
95
+ import { default as Vr } from "./components/forms/FormRow.vue.js";
96
+ import { default as Jr } from "./components/forms/FormCard.vue.js";
97
+ import { default as Pr } from "./components/forms/CardPanel.vue.js";
98
+ import { default as jr } from "./components/forms/FormField.vue.js";
99
+ import { default as qr } from "./components/banner/Banner.vue.js";
100
+ import { default as Gr } from "./components/alert/Alert.vue.js";
101
+ import { default as Qr } from "./components/autocomplete/Autocomplete.vue.js";
102
+ import { default as Yr } from "./components/chart/Chart.vue.js";
104
103
  const X = {
105
104
  ...e,
106
105
  ...m,
@@ -119,8 +118,8 @@ const X = {
119
118
  ...u,
120
119
  ...$,
121
120
  ...y,
122
- ...F,
123
121
  ...g,
122
+ ...F,
124
123
  ...I,
125
124
  ...C,
126
125
  ...D,
@@ -128,91 +127,87 @@ const X = {
128
127
  ...E,
129
128
  ...h,
130
129
  ...B,
131
- ...b,
132
130
  ...M,
131
+ ...b,
132
+ ...N,
133
+ ...S,
134
+ ...w,
133
135
  ...O,
134
136
  ...H,
135
- ...w,
136
- ...L,
137
- ...N,
138
- ...K,
139
- ...P,
137
+ ...V,
138
+ ...v,
140
139
  ...n,
141
140
  ...l,
141
+ ...P,
142
142
  ..._,
143
- ...v,
144
- ...S,
145
- ...V,
146
143
  ...J,
144
+ ...K,
147
145
  ...j,
148
146
  ...k,
149
147
  ...q,
150
148
  ...z,
151
149
  ...G,
150
+ ...L,
152
151
  ...Q,
153
152
  ...R,
153
+ ...Y,
154
154
  ...U,
155
- ...W,
156
- ...Y
155
+ ...W
157
156
  };
158
157
  export {
159
- br as AddFilterButton,
160
- Wr as Alert,
161
- ko as AlertTypes,
162
- ir as AppIcon,
158
+ Er as AddFilterButton,
159
+ Gr as Alert,
160
+ qo as AlertTypes,
161
+ mr as AppIcon,
163
162
  xo as AppIconTypes,
164
- or as AppTrigger,
163
+ Yo as AppTrigger,
165
164
  ro as AppTriggerTypes,
166
- Xr as Autocomplete,
167
- er as AutocompleteDropdown,
165
+ Qr as Autocomplete,
166
+ Wo as AutocompleteDropdown,
168
167
  mo as AutocompleteDropdownTypes,
169
- zo as AutocompleteTypes,
170
- Rr as Banner,
171
- Jo as BannerTypes,
172
- qr as CardPanel,
173
- oe as Chart,
168
+ Go as AutocompleteTypes,
169
+ qr as Banner,
170
+ jo as BannerTypes,
171
+ Pr as CardPanel,
172
+ Yr as Chart,
174
173
  Qo as ChartTypes,
175
- Uo as DEFAULT_FALLBACK,
176
- hr as FilterDropdown,
177
- Fo as FilterDropdownTypes,
178
- xr as FloatingToolbar,
174
+ Ir as FilterDropdown,
175
+ go as FilterDropdownTypes,
176
+ pr as FloatingToolbar,
179
177
  no as FloatingToolbarTypes,
180
- Vr as FoldableSection,
178
+ Nr as FoldableSection,
181
179
  Bo as FoldableSectionTypes,
182
- jr as FormCard,
183
- Mo as FormCardTypes,
184
- Gr as FormField,
180
+ Jr as FormCard,
181
+ bo as FormCardTypes,
182
+ jr as FormField,
185
183
  wo as FormFieldTypes,
186
- vr as FormRow,
187
- wr as Heading,
184
+ Vr as FormRow,
185
+ Dr as Heading,
188
186
  To as ID_INJECTION_KEY,
189
- nr as IncludeExclude,
190
- Ar as IncludeExcludeAppHeader,
191
- gr as IncludeExcludeAppTrigger,
192
- Cr as IncludeExcludeChipFilter,
193
- ur as IncludeExcludeDragDrop,
194
- Tr as IncludeExcludeOption,
195
- yr as IncludeExcludeOptionDraggable,
187
+ fr as IncludeExclude,
188
+ cr as IncludeExcludeAppHeader,
189
+ $r as IncludeExcludeAppTrigger,
190
+ gr as IncludeExcludeChipFilter,
191
+ dr as IncludeExcludeDragDrop,
192
+ sr as IncludeExcludeOption,
193
+ lr as IncludeExcludeOptionDraggable,
196
194
  uo as IncludeExcludeTypes,
197
- ar as Menu,
198
- tr as MenuItem,
195
+ rr as Menu,
196
+ Zo as MenuItem,
199
197
  po as MenuItemTypes,
200
198
  fo as MenuTypes,
201
- Pr as MultiBar,
199
+ Or as MultiBar,
202
200
  Do as MultiBarTypes,
203
- Nr as Text,
204
- Hr as Typography,
201
+ Br as Text,
202
+ br as Typography,
205
203
  Io as TypographyTypes,
206
204
  Eo as TypographyTypesV4,
207
205
  X as default,
208
- Wo as diffInPersentage,
209
- Yo as formatNumberWithCommas,
210
- Xo as nFormatter,
211
- Po as scrollToElementByClass,
212
- So as scrollToFirstInvalidElement,
213
- Vo as useFormValidation,
206
+ vo as scrollToElementByClass,
207
+ Jo as scrollToFirstInvalidElement,
208
+ Ko as useFormValidation,
214
209
  co as useId,
215
- Ho as useSearch,
216
- No as useToggle,
217
- _o as yupValidation
210
+ So as useSearch,
211
+ Ho as useToggle,
212
+ Po as yupValidation
218
213
  };
package/mocks/apps.d.ts CHANGED
@@ -6,3 +6,10 @@ export type Application = {
6
6
  abIcon?: string;
7
7
  };
8
8
  export declare const appMocks: Application[];
9
+ export declare const optionsWithGroups: {
10
+ label: string;
11
+ options: {
12
+ id: number;
13
+ label: string;
14
+ }[];
15
+ }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.8-test.1",
3
+ "version": "2.1.9",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1,19 +1,11 @@
1
- const i = "N/A", n = (s, e, r) => s.toLocaleString("en", {
1
+ const s = "N/A", r = (n, e, t) => n.toLocaleString("en", {
2
2
  minimumFractionDigits: e,
3
- maximumFractionDigits: r
4
- }), a = (s, e = i) => {
5
- const r = Number(s), t = r % 1 !== 0;
6
- return isNaN(r) && e ? e : Math.abs(r) >= 1e12 ? "∞" : Math.abs(r) >= 1e9 ? `${n(r / 1e9, 0, 1)}B` : Math.abs(r) >= 1e6 ? `${n(r / 1e6, 0, 1)}M` : Math.abs(r) >= 1e3 ? `${n(r / 1e3, 0, 1)}K` : t && Math.abs(r) >= 100 ? n(r, 0, 0) : t && Math.abs(r) >= 10 ? n(r, 0, 1) : t ? n(r, 2, 2) : n(r, 0, 0);
7
- }, o = (s, e, r = i) => {
8
- const t = Number(s), u = Number(e);
9
- return r && (isNaN(t) || isNaN(u)) ? r : t >= u ? (u - t) / t * 100 : (t - u) / t * -100;
10
- }, N = (s, e = i) => {
11
- const r = Number(s);
12
- return isNaN(r) && e ? e : n(r, 0, 2);
3
+ maximumFractionDigits: t
4
+ }), u = (n, e = s) => {
5
+ const t = Number(n), a = t % 1 !== 0;
6
+ return isNaN(t) && e ? e : Math.abs(t) >= 1e12 ? "∞" : Math.abs(t) >= 1e9 ? `${r(t / 1e9, 0, 1)}B` : Math.abs(t) >= 1e6 ? `${r(t / 1e6, 0, 1)}M` : Math.abs(t) >= 1e3 ? `${r(t / 1e3, 0, 1)}K` : a && Math.abs(t) >= 100 ? r(t, 0, 0) : a && Math.abs(t) >= 10 ? r(t, 0, 1) : a ? r(t, 2, 2) : r(t, 0, 0);
13
7
  };
14
8
  export {
15
- i as DEFAULT_FALLBACK,
16
- o as diffInPersentage,
17
- N as formatNumberWithCommas,
18
- a as nFormatter
9
+ s as DEFAULT_FALLBACK,
10
+ u as nFormatter
19
11
  };
@@ -1 +0,0 @@
1
- .chart-container[data-v-df85e0af]{border:1px solid var(--common-divider);background:var(--background-paper);display:flex;height:388px;border-radius:0 0 6px 6px}.header-wrapper[data-v-df85e0af]{height:76px}.chart-content[data-v-df85e0af]{flex:1}.chart-sidebar[data-v-df85e0af]{border-left:1px solid var(--common-divider)}.chart[data-v-df85e0af]{width:100%;height:312px;position:relative}.chart__canvas[data-v-df85e0af]{width:100%;height:100%}.chart__tooltip[data-v-df85e0af]{position:absolute;pointer-events:none;transition:all .1s ease;min-width:214px;max-width:270px}
@@ -1 +0,0 @@
1
- .chart-header[data-v-2e3de9c5]{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 0}.header-texts[data-v-2e3de9c5]{display:flex;flex-direction:column;color:var(--text-primary);gap:4px}.type-switch[data-v-2e3de9c5]{display:flex;align-items:center;gap:4px}
@@ -1 +0,0 @@
1
- .chart-legend[data-v-efc608f9]{display:flex;flex-direction:column;width:220px;height:100%;padding-bottom:8px}.search-box[data-v-efc608f9]{padding:12px 12px 4px}.legend[data-v-efc608f9]{overflow-y:auto;color:var(--text-primary)}.legend__list[data-v-efc608f9]{list-style:none;padding:0 12px 0 20px}.legend__list>li[data-v-efc608f9]{display:flex;align-items:center;gap:8px;height:32px}
@@ -1 +0,0 @@
1
- .v-enter-active[data-v-00ccab6b],.v-leave-active[data-v-00ccab6b]{transition:opacity .25s ease}ol[data-v-00ccab6b],ul[data-v-00ccab6b],menu[data-v-00ccab6b]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-00ccab6b],.dropdown.full-width .button__container[data-v-00ccab6b]{width:100%}.dropdown-list-wrapper[data-v-00ccab6b]{display:flex;flex-direction:column;padding:.5rem .5rem .25rem}.dropdown-list-wrapper--multi[data-v-00ccab6b]{padding:.5rem}.list-container--multi[data-v-00ccab6b]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-00ccab6b]{padding-bottom:.25rem}.inline-search .list-container[data-v-00ccab6b]{padding-top:0}.no-result-container[data-v-00ccab6b]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-00ccab6b]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-00ccab6b]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-00ccab6b]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.image-slot[data-v-00ccab6b]{margin-right:.5rem}.actions-wrapper[data-v-00ccab6b]{display:flex;width:100%;padding:.5rem .5rem .5rem .125rem;padding-bottom:0;border-top:1px solid var(--common-divider);justify-content:space-between;margin-top:.25rem}.apply-button[data-v-00ccab6b]{margin-left:.5rem}