@ironsource/shared-ui 2.1.11-test.98 → 2.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css +1 -0
  2. package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +1 -0
  3. package/ChartLoader.vue_vue_type_style_index_0_scoped_ffa4cc66_lang.css +1 -0
  4. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8e026669_lang.css +1 -0
  5. package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +1 -0
  6. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css +1 -0
  7. package/{IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css → IconFlag.vue_vue_type_style_index_0_scoped_6526c390_lang.css} +1 -1
  8. package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +1 -0
  9. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +1 -0
  10. package/Typography.vue_vue_type_style_index_0_scoped_07b259bf_lang.css +1 -0
  11. package/components/chart/Chart.vue.js +4 -4
  12. package/components/chart/Chart.vue2.js +110 -105
  13. package/components/chart/ChartLegend.vue.js +3 -3
  14. package/components/chart/ChartLegend.vue2.js +64 -54
  15. package/components/chart/ChartLoader.vue.js +5 -23
  16. package/components/chart/ChartLoader.vue2.js +15 -0
  17. package/components/chart/mockData.d.ts +8 -0
  18. package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
  19. package/components/dateRange/v4/DateRangeV4.vue2.js +86 -81
  20. package/components/dropdown/common/Dropdown.common.js +65 -65
  21. package/components/dropdown/v4/ConditionalDropdown.vue.js +2 -2
  22. package/components/dropdown/v4/ConditionalDropdown.vue2.js +93 -92
  23. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  24. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +45 -46
  25. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  26. package/components/dropdown/v4/OptionV4.vue2.js +97 -98
  27. package/components/icon/v4/IconFlag.vue.js +3 -3
  28. package/components/icon/v4/IconFlag.vue2.js +1 -1
  29. package/components/sortableList/SortableItem.vue.js +3 -3
  30. package/components/sortableList/SortableItem.vue2.js +14 -14
  31. package/components/typography/v4/Typography.vue.js +3 -3
  32. package/components/typography/v4/Typography.vue2.js +1 -1
  33. package/index.js +1 -1
  34. package/mocks/apps.d.ts +1 -0
  35. package/mocks/randomValue.d.ts +1 -0
  36. package/package.json +3 -3
  37. package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +0 -1
  38. package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +0 -1
  39. package/ChartLoader.vue_vue_type_style_index_0_scoped_142c444a_lang.css +0 -1
  40. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_07fe5cf8_lang.css +0 -1
  41. package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +0 -1
  42. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css +0 -1
  43. package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +0 -1
  44. package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +0 -1
  45. package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +0 -1
  46. package/consts/configs.js +0 -4
@@ -0,0 +1 @@
1
+ .chart-container[data-v-026d82c5]{border:1px solid var(--common-divider);background:var(--background-paper);display:flex;height:388px;border-radius:0 0 6px 6px;width:100%}.header-wrapper[data-v-026d82c5]{height:76px}.chart-content[data-v-026d82c5]{width:100%}.chart-content.with-legend[data-v-026d82c5]{width:calc(100% - 221px)}.chart-sidebar[data-v-026d82c5]{border-left:1px solid var(--common-divider)}.chart[data-v-026d82c5]{width:100%;height:312px;position:relative}.chart__canvas[data-v-026d82c5]{width:100%;height:100%}.chart__tooltip[data-v-026d82c5]{position:absolute;pointer-events:none;transition:all .1s ease;min-width:214px;max-width:270px}
@@ -0,0 +1 @@
1
+ .disabled-tooltip[data-v-4fe1c7d1],.disabled-tooltip[data-v-4fe1c7d1] .container{width:100%}.chart-legend[data-v-4fe1c7d1]{display:flex;flex-direction:column;width:220px;height:100%;padding:0 8px 8px}.search-box[data-v-4fe1c7d1]{padding:12px 0 4px}.legend[data-v-4fe1c7d1]{overflow-y:auto;color:var(--text-primary);height:100%;overflow-x:hidden}.legend__list[data-v-4fe1c7d1]{list-style:none;padding:0}.legend__list>li[data-v-4fe1c7d1]{display:flex;align-items:center;gap:8px;padding:6px 8px}.legend__list>li[data-v-4fe1c7d1]:hover{background-color:var(--action-hover);border-radius:8px;cursor:pointer}.legend__list>li.disabled-item[data-v-4fe1c7d1]{cursor:not-allowed!important;opacity:.5;background:var(--background-paper)}.legend__list>li.empty-list[data-v-4fe1c7d1]{display:flex;align-items:center;justify-content:flex-start;height:32px;color:var(--text-disabled)}.legend__list>li.empty-list[data-v-4fe1c7d1]:hover{background-color:transparent;cursor:default}.legend__list>li .item-wrapper[data-v-4fe1c7d1]{display:flex;align-items:center;gap:8px;width:100%}.legend__list>li .item-wrapper .legend-label[data-v-4fe1c7d1]{width:80%}.legend__list>li .item-wrapper .icon-color[data-v-4fe1c7d1]{color:var(--action-active)}.legend__list>li .item-wrapper .label-container[data-v-4fe1c7d1]{display:flex;flex-direction:column;width:100%}.legend__list>li .item-wrapper .label-container .legend-caption[data-v-4fe1c7d1]{color:var(--text-secondary)}
@@ -0,0 +1 @@
1
+ .label[data-v-ffa4cc66]{color:#41454d}.chart-loader[data-v-ffa4cc66]{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.chart-loader .chart-loader-wrapper[data-v-ffa4cc66]{width:40px;height:40px;display:flex;align-items:center;justify-content:center}
@@ -0,0 +1 @@
1
+ .custom-list-area[data-v-8e026669]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 43px}.inline-search[data-v-8e026669]{width:100%}.contain-accept[data-v-8e026669]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-8e026669]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-8e026669]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
@@ -0,0 +1 @@
1
+ .label[data-v-8a2714eb]{color:#41454d}.pop-up[data-v-8a2714eb]{width:668px;position:absolute;z-index:1000;top:32px;left:1px;overflow:hidden;border-radius:8px;border:1px solid var(--common-divider, #e4e4e4);background:var(--background-modelElevation, #fff);box-shadow:var(--elevation-lg)}.pop-up.open-on-top[data-v-8a2714eb]{top:0}.pop-up.hide-presets[data-v-8a2714eb],.pop-up.hide-presets .calendar-wrap[data-v-8a2714eb]{width:520px}.pop-up.hide-presets .date-picker-calendar[data-v-8a2714eb]{padding:15px 16px}.pop-up .date-picker-menu[data-v-8a2714eb]{width:164px;background:#ffffff;vertical-align:top;border-right:1px solid var(--common-divider-elevation-0, #e4e4e4);background:var(--background-paper, #fcfcfc)}.pop-up .date-picker-menu .preset-element[data-v-8a2714eb]{padding-left:8px;height:32px;border-radius:8px;color:var(--text-primary, #202020);line-height:32px}.pop-up .date-picker-menu .preset-element[data-v-8a2714eb]:hover{background:var(--action-hover, rgba(0, 0, 0, .05))}.pop-up .date-picker-menu .selected-preset[data-v-8a2714eb]{border-radius:8px;background:var(--action-selected, #ebebeb)}.pop-up .date-picker-menu li[data-v-8a2714eb]{cursor:pointer;margin-bottom:2px}.pop-up .left-box[data-v-8a2714eb]{left:-1px}.pop-up .date-picker-calendar[data-v-8a2714eb]{box-sizing:border-box;height:100%;padding:16px;display:grid;grid-template-columns:1fr 1fr;grid-gap:24px}.pop-up .calendars-wrapper[data-v-8a2714eb]{padding-left:6px}.pop-up .preset-dropdown ul[data-v-8a2714eb]{list-style:none;margin:0;padding:8px;line-height:32px}.pop-up .buttons-cover[data-v-8a2714eb]{height:48px;position:absolute;bottom:0;width:100%;right:0;box-sizing:border-box;border-top:1px solid var(--common-divider-elevation-0, #e4e4e4);background:var(--background-modelElevation, #fff);align-items:center;display:flex;justify-content:space-between;padding:12px 16px}.pop-up .buttons-cover .text-container[data-v-8a2714eb]{flex:1;color:var(--text-secondary, #646464)}.pop-up button[data-v-8a2714eb]{float:right;margin-left:8px}.pop-up .error[data-v-8a2714eb]{display:none;position:absolute;left:270px;top:22px}.pop-up .inline-block[data-v-8a2714eb]{display:inline-block}.pop-up.right[data-v-8a2714eb]{left:initial;right:1px}.calendar-wrap[data-v-8a2714eb]{width:504px;height:372px;position:relative;border-bottom-right-radius:8px;border-top-right-radius:8px;vertical-align:top}.type-picker[data-v-8a2714eb]{height:60px;line-height:60px;padding-left:15px;box-shadow:0 1px 3px #0000003b}.range-type[data-v-8a2714eb]{color:#8e959d;padding-left:15px;padding-right:15px;cursor:pointer}.selected-range-type[data-v-8a2714eb]{color:#fff;background-color:#3083ff;border-radius:20px;padding:6px 15px;cursor:default}.date-range-field[data-v-8a2714eb]{display:inline-block;width:100%;height:30px;position:relative;cursor:pointer;border-radius:3px}.date-range-field.selected-item-as-title[data-v-8a2714eb]{left:0;border:none;background-image:none;max-width:100%;height:22px;color:#3083ff;overflow:visible}.date-range-field.selected-item-as-title .small-triangle[data-v-8a2714eb]{right:-25px}.date-range-field.selected-item-as-title .small-triangle[data-v-8a2714eb]:after{border-top-color:currentColor}.date-range-field.selected-item-as-title span[data-v-8a2714eb]{padding-left:12px}.date-range-field.no-button-limit[data-v-8a2714eb]{overflow:visible}.date-range-field.no-button-limit span[data-v-8a2714eb]{width:100%;line-height:22px}.date-range-field span[data-v-8a2714eb]{line-height:28px;padding-left:15px;overflow:hidden;text-overflow:ellipsis;display:inline-block;width:calc(100% - 26px);white-space:nowrap;position:relative}.date-range-disabled .date-range-field[data-v-8a2714eb]{cursor:default;color:#8e959d;pointer-events:none}.date-range-disabled .small-triangle[data-v-8a2714eb]:after{border-top-color:#8e959d}.pop-up-content[data-v-8a2714eb]{margin-top:1px}.type-message[data-v-8a2714eb]{color:#8e959d;padding:10px 20px;line-height:1.5}.relative-wrap[data-v-8a2714eb]{position:relative}.space-right[data-v-8a2714eb]{margin-right:13px}.space-left[data-v-8a2714eb]{margin-left:9px}.top-date[data-v-8a2714eb]{line-height:13px}.flex[data-v-8a2714eb]{display:flex}
@@ -0,0 +1 @@
1
+ .default-dropdown-wrapper[data-v-73bf9b5b]{position:relative}.dropdown-trigger[data-v-73bf9b5b]{width:100%;padding:.3125rem .4375rem;display:flex;column-gap:.25rem;max-width:100%;box-sizing:border-box;border-radius:var(--border-radius-md);border:1px solid var(--action-outlined-border);background:var(--default-main);cursor:pointer;user-select:none;position:relative}.dropdown-trigger[data-v-73bf9b5b]:hover{border:1px solid var(--action-active);background:var(--action-hover)}.dropdown-trigger.small[data-v-73bf9b5b]{padding:.1875rem .4375rem}.dropdown-trigger.large[data-v-73bf9b5b]{padding:.5625rem .4375rem}.dropdown-trigger.disabled[data-v-73bf9b5b]{border:1px solid var(--action-outlined-border, #bbb);background:var(--action-disabled-background, #f1f1f1);cursor:not-allowed}.dropdown-trigger.disabled .displayed-value[data-v-73bf9b5b],.dropdown-trigger.disabled .caret-down[data-v-73bf9b5b]{color:var(--text-disabled)}.dropdown-trigger.open[data-v-73bf9b5b]{padding:.25rem .375rem;border:2px solid var(--primary-main)}.dropdown-trigger.open.small[data-v-73bf9b5b]{padding:.125rem .375rem}.dropdown-trigger.open.large[data-v-73bf9b5b]{padding:.5rem .375rem}.dropdown-trigger.state-error[data-v-73bf9b5b],.dropdown-trigger.state-success[data-v-73bf9b5b],.dropdown-trigger.state-warning[data-v-73bf9b5b]{padding:4px 6px}.dropdown-trigger.state-error.small[data-v-73bf9b5b],.dropdown-trigger.state-success.small[data-v-73bf9b5b],.dropdown-trigger.state-warning.small[data-v-73bf9b5b]{padding:.1875rem .4375rem}.dropdown-trigger.state-error.large[data-v-73bf9b5b],.dropdown-trigger.state-success.large[data-v-73bf9b5b],.dropdown-trigger.state-warning.large[data-v-73bf9b5b]{padding:.5625rem .4375rem}.dropdown-trigger.state-error[data-v-73bf9b5b]{border:2px solid var(--error-main)}.dropdown-trigger.state-success[data-v-73bf9b5b]{border:2px solid var(--success-main)}.dropdown-trigger.state-warning[data-v-73bf9b5b]{border:2px solid var(--warning-dark)}.dropdown-trigger .caret-down[data-v-73bf9b5b]{color:var(--action-active)}.content[data-v-73bf9b5b]{display:flex;flex:1;gap:.25rem;align-items:center;color:var(--text-primary)}.content .displayed-value[data-v-73bf9b5b]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.content .image[data-v-73bf9b5b]{width:20px;height:20px;flex:none}.content .image img[data-v-73bf9b5b]{border-radius:4px;width:100%;height:100%}.content .start-icon[data-v-73bf9b5b]{display:flex;color:var(--action-active)}.content .status-dot[data-v-73bf9b5b]{padding-right:.25rem}.content .status-dot>div[data-v-73bf9b5b]{position:relative;top:-1px}.dropdown-field-label[data-v-73bf9b5b]{color:var(--text-primary)}.dropdown-field-help-text[data-v-73bf9b5b]{margin-top:4px;position:absolute}.flag[data-v-73bf9b5b]{width:16px;height:16px}.flag img[data-v-73bf9b5b]{width:16px;height:16px;border-radius:50%}
@@ -1 +1 @@
1
- .icon-flag[data-v-be9dc7bb]{border-radius:50%;border:2px solid var(--common-divider);display:inline-flex;height:16px;min-width:16px;user-select:none;width:16px}
1
+ .icon-flag[data-v-6526c390]{border-radius:50%;border:1px solid var(--common-divider);display:inline-flex;height:16px;min-width:16px;user-select:none;width:16px}
@@ -0,0 +1 @@
1
+ .label[data-v-1e8837dc]{color:#41454d}.item-container[data-v-1e8837dc]{width:100%;display:flex;align-items:center;cursor:pointer;border-radius:var(--border-radius-lg);margin-bottom:.25rem;color:var(--text-primary);padding:6px 8px}.item-container--disabled[data-v-1e8837dc]{cursor:initial;color:var(--text-disabled)}.item-container[data-v-1e8837dc]:hover:not(.item-container--disabled){background-color:var(--action-hover)}.item-container--active[data-v-1e8837dc],.item-container[data-v-1e8837dc]:active{background-color:var(--action-selected)}.item-container:not(.item-container--multi).item-container--selected[data-v-1e8837dc]{background-color:var(--action-selected)}.subtitle[data-v-1e8837dc]{color:#7b838c;line-height:1rem}.clear-button[data-v-1e8837dc]{display:flex;padding:0 4px;color:#7b838c;align-items:center;height:auto;background-image:none;min-width:auto;border:none;background-color:transparent}.clear-button[data-v-1e8837dc]:hover{color:#3083ff}.item[data-v-1e8837dc]{width:100%;display:flex;gap:.5rem;align-items:center}.item--with-icon[data-v-1e8837dc],.item--multi[data-v-1e8837dc]{display:flex;flex-direction:row;align-items:center;justify-content:start}.item .image[data-v-1e8837dc]{width:20px;height:20px;flex:none}.item .image img[data-v-1e8837dc]{width:20px;height:20px;border-radius:4px}.item .flag[data-v-1e8837dc]{width:16px;height:16px}.item .flag img[data-v-1e8837dc]{width:16px;height:16px;border-radius:50%}.item .start-icon[data-v-1e8837dc],.item .end-icon[data-v-1e8837dc]{display:flex;color:var(--action-active)}.item .end-text-icon[data-v-1e8837dc]{display:inline-flex}.item .option-text[data-v-1e8837dc]{line-height:1.1875rem}.text-container[data-v-1e8837dc]{width:100%;text-overflow:ellipsis;overflow:hidden}.v4-tooltip.tooltip-option[data-v-1e8837dc]{display:block}.tooltip-option[data-v-1e8837dc] .container{width:100%}.app-trigger--icon[data-v-1e8837dc]{color:var(--action-active);transform:rotate(-90deg);transition:transform .2s}.app-trigger--icon.expanded[data-v-1e8837dc]{transform:rotate(0)}.option-content[data-v-1e8837dc]{display:flex}.option-content[data-v-1e8837dc]:not(.option-content-vertical){gap:.5rem;align-items:center}.option-content-horizontal[data-v-1e8837dc]{justify-content:space-between;gap:.5rem}.option-content-vertical[data-v-1e8837dc]{flex-direction:column}.option-text .main-text[data-v-1e8837dc]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}.option-text .main-text .conditional-option-label[data-v-1e8837dc]{color:var(--text-secondary);display:inline-flex}.option-text .main-text .conditional-option-value[data-v-1e8837dc]{margin-left:4px;display:inline-flex;color:var(--primary-main)}.option-text .caption-text[data-v-1e8837dc]{color:var(--text-secondary)}.multiline-tooltip[data-v-1e8837dc]{display:flex;flex-direction:column}
@@ -0,0 +1 @@
1
+ .sortable-item[data-v-48542664]{display:flex;position:relative;flex-direction:column;border:1px solid var(--common-divider);border-radius:var(--border-radius-sm);background:var(--background-paper)}.sortable-item--selected[data-v-48542664]{outline:2px solid var(--primary-main);outline-offset:-2px}.sortable-item--hovered[data-v-48542664]{border-color:var(--action-active)}.sortable-item.sortable-drag[data-v-48542664]{border-color:var(--common-divider)!important}.sortable-item.sortable-drag .child-list[data-v-48542664]{display:none}.sortable-item--hovered .drag-allowed .draggable-handle[data-v-48542664],.sortable-item.sortable-drag .drag-allowed .draggable-handle[data-v-48542664]{display:flex}.sortable-item--hovered .drag-allowed .order-num[data-v-48542664],.sortable-item.sortable-drag .drag-allowed .order-num[data-v-48542664]{display:none}.item[data-v-48542664]{align-items:center;border-radius:var(--border-radius-sm);display:flex;height:40px}.item--selected[data-v-48542664],.item[data-v-48542664]:hover{background:var(--background-paper-elevation-1)}.item__prefix[data-v-48542664]{width:36px;display:flex;align-items:center;justify-content:center}.item__text[data-v-48542664]{flex:1;height:40px;display:flex;align-items:center}.item__text[data-v-48542664]:hover{cursor:pointer}.item__menu[data-v-48542664]{width:26px}.country-flag[data-v-48542664]{margin-right:var(--spacing-100)}.child-list[data-v-48542664]{display:flex;max-height:var(--480cd4cc);width:100%}.child-list ul[data-v-48542664]{list-style:none;display:flex;flex-direction:column;margin-bottom:8px;padding-left:16px;padding-right:8px;padding-top:4px;gap:2px;overflow:hidden}.child-list li[data-v-48542664]{min-height:32px;display:flex;align-items:center;border-radius:var(--border-radius-lg);padding:0 8px;width:100%}.child-list li[data-v-48542664]:hover{cursor:pointer;background:var(--action-hover)}.child-list li.selected[data-v-48542664]{background:var(--action-selected)}.child-list .country-title[data-v-48542664]{padding-right:1rem}.expand-icon[data-v-48542664]{cursor:pointer;padding-right:7px;padding-left:1px;height:40px;display:flex;justify-content:center;align-items:center;color:var(--action-active)}.expand-icon[data-v-48542664]:hover{color:var(--text-primary)}.locked-icon[data-v-48542664]{color:var(--action-active)}.draggable-handle[data-v-48542664]{display:none;align-items:center;justify-content:center;position:absolute;left:0;top:0;width:36px;height:40px;color:var(--action-active)}.draggable-handle[data-v-48542664]:hover{cursor:grab;color:var(--text-primary)}.sortable-ghost[data-v-48542664]{position:relative;outline:none}.sortable-ghost[data-v-48542664]:after{content:"";display:block;position:absolute;z-index:10;inset:-1px;background:rgb(242,242,242);border-radius:var(--border-radius-sm)}
@@ -0,0 +1 @@
1
+ @import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";.font-tab-label2[data-v-07b259bf],.font-chart-2[data-v-07b259bf],.font-chart-1[data-v-07b259bf]{font-family:Inter,sans-serif;font-weight:700}.font-chip-label[data-v-07b259bf],.font-table-label[data-v-07b259bf],.font-button[data-v-07b259bf],.font-heading-6[data-v-07b259bf],.font-heading-5[data-v-07b259bf],.font-heading-4[data-v-07b259bf],.font-heading-3[data-v-07b259bf],.font-heading-2[data-v-07b259bf],.font-heading-1[data-v-07b259bf],.font-title[data-v-07b259bf]{font-family:Inter,sans-serif;font-weight:600}.font-tab-label1[data-v-07b259bf],.font-input-label[data-v-07b259bf],.font-overline[data-v-07b259bf],.font-subtitle-2[data-v-07b259bf],.font-subtitle-1[data-v-07b259bf]{font-family:Inter,sans-serif;font-weight:500}.font-caption[data-v-07b259bf],.font-body-2[data-v-07b259bf],.font-body-1[data-v-07b259bf]{font-family:Inter,sans-serif;font-weight:400}.font-title[data-v-07b259bf]{font-size:2.5rem;line-height:3rem;letter-spacing:-.055rem}.font-heading-1[data-v-07b259bf]{font-size:1.5rem;line-height:1.75rem;letter-spacing:-.0285rem}.font-heading-2[data-v-07b259bf]{font-size:1.125rem;line-height:1.75rem;letter-spacing:-.01575rem}.font-heading-3[data-v-07b259bf]{font-size:1rem;line-height:1.5rem;letter-spacing:-.011rem}.font-heading-4[data-v-07b259bf]{font-size:.875rem;line-height:1rem;letter-spacing:unset}.font-heading-5[data-v-07b259bf]{font-size:.8125rem;line-height:16px;letter-spacing:unset}.font-heading-6[data-v-07b259bf]{font-size:.75rem;line-height:.75rem;letter-spacing:0}.font-body-1[data-v-07b259bf]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-body-2[data-v-07b259bf]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-subtitle-1[data-v-07b259bf]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-subtitle-2[data-v-07b259bf]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-chart-1[data-v-07b259bf]{font-size:1.5rem;line-height:1.5rem;letter-spacing:-.015rem}.font-chart-2[data-v-07b259bf]{font-size:1.25rem;line-height:1.25rem;letter-spacing:-.0125rem}.font-button[data-v-07b259bf]{font-size:.875rem;line-height:1.25rem;letter-spacing:.00875rem}.font-overline[data-v-07b259bf]{font-size:.75rem;line-height:1rem;letter-spacing:.045rem;text-transform:uppercase}.font-caption[data-v-07b259bf]{font-size:.75rem;line-height:1rem}.font-table-label[data-v-07b259bf]{font-size:.8125rem;line-height:1.25rem;letter-spacing:.00813rem}.font-input-label[data-v-07b259bf]{font-size:.8125rem;line-height:1rem;letter-spacing:.00813rem}.font-tab-label1[data-v-07b259bf],.font-tab-label2[data-v-07b259bf]{font-size:.875rem;line-height:1rem}.font-chip-label[data-v-07b259bf]{font-size:.75rem;line-height:1rem}h1[data-v-07b259bf],h2[data-v-07b259bf],h3[data-v-07b259bf],h4[data-v-07b259bf],h5[data-v-07b259bf],h6[data-v-07b259bf]{margin:0}.antialiased[data-v-07b259bf]{-webkit-font-smoothing:antialiased}.truncate[data-v-07b259bf]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block}.typography-tooltip[data-v-07b259bf]{display:block;width:100%}
@@ -1,7 +1,7 @@
1
1
  import o from "./Chart.vue2.js";
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"]]);
2
+ /* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css"; //*');
4
+ const c = /* @__PURE__ */ _(o, [["__scopeId", "data-v-026d82c5"]]);
5
5
  export {
6
- p as default
6
+ c as default
7
7
  };
@@ -1,23 +1,23 @@
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";
1
+ import "../../Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css"; import { defineComponent as J, computed as i, ref as T, onMounted as Q, watch as C, nextTick as Y, openBlock as d, createElementBlock as k, Fragment as F, createBlock as v, unref as u, isRef as N, withCtx as x, renderSlot as L, createCommentVNode as y, createElementVNode as p, normalizeClass as _, createVNode as H, normalizeStyle as ee } from "vue";
2
+ import { useVModel as te } from "@vueuse/core";
3
+ import { Chart as P, ArcElement as ae, LineElement as oe, BarElement as ie, PointElement as le, LineController as re, BarController as ne, PieController as se, ScatterController as de, CategoryScale as ue, LinearScale as ce, Filler as pe, Tooltip as he } from "chart.js";
4
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";
5
+ import { formatValue as U, calcStepSize as fe } from "./utils/utils.js";
6
+ import { DEFAULT_TICK_COUNT as ve, DEFAULT_MIN_VISIBLE as ye, DEFAULT_MAX_VISIBLE as be, COLOR_PALETTE as ge, POINT_BORDER_COLOR as Te, TICK_LABEL_COLOR as z, TICK_LABEL_FONT as M, GRID_LINE_COLOR as $ } from "./consts.js";
7
7
  import { ChartType as n } from "./types.js";
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 = {
8
+ import { useTooltipPosition as Ce } from "./composables/useTooltipPosition.js";
9
+ import ke from "./ChartTooltip.vue.js";
10
+ import xe from "./ChartLegend.vue.js";
11
+ import Le from "./ChartHeader.vue.js";
12
+ import { hexColorToRgba as Se } from "../../utils/color.js";
13
+ import { useChartValues as we } from "./composables/useChartValues.js";
14
+ import Be from "./ChartLoader.vue.js";
15
+ import Ie from "../emptyState/v4/EmptyStateV4.vue.js";
16
+ import Ae from "./SettingsHeader.vue.js";
17
+ const Ee = { class: "chart-container" }, Ve = { class: "header-wrapper" }, Re = { class: "chart" }, De = {
18
18
  key: 0,
19
19
  class: "chart-sidebar"
20
- }, qe = /* @__PURE__ */ q({
20
+ }, Je = /* @__PURE__ */ J({
21
21
  __name: "Chart",
22
22
  props: {
23
23
  dataSets: { default: () => [] },
@@ -26,13 +26,13 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
26
26
  parsing: { default: void 0 },
27
27
  xAxisFormat: { default: "string" },
28
28
  yAxisFormat: { default: "number" },
29
- tickCount: { default: fe },
29
+ tickCount: { default: ve },
30
30
  header: { default: "" },
31
31
  subheader: { default: "" },
32
32
  withSubheaderTooltip: { type: Boolean, default: !1 },
33
33
  hideLegend: { type: Boolean, default: !1 },
34
- minVisible: { default: ve },
35
- maxVisible: { default: ye },
34
+ minVisible: { default: ye },
35
+ maxVisible: { default: be },
36
36
  loading: { type: Boolean, default: !1 },
37
37
  noDataIcon: { default: "file-x" },
38
38
  noDataTitle: { default: "No data to display" },
@@ -42,10 +42,9 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
42
42
  withAnimation: { type: Boolean, default: !0 }
43
43
  },
44
44
  emits: ["update:chartType", "update:visibleIds"],
45
- setup(a, { emit: L }) {
45
+ setup(a, { emit: S }) {
46
46
  const t = a;
47
- N.register(
48
- te,
47
+ P.register(
49
48
  ae,
50
49
  oe,
51
50
  ie,
@@ -57,50 +56,55 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
57
56
  ue,
58
57
  ce,
59
58
  pe,
59
+ he,
60
60
  me
61
61
  );
62
- const c = ee(t, "chartType", L), M = l(
62
+ const c = te(t, "chartType", S), K = i(
63
63
  () => t.withAnimation ? "" : "none"
64
- ), m = g(null);
64
+ ), h = T(null);
65
65
  let s = null;
66
- const S = l(() => t.dataSets.length === 0), w = l(() => !t.loading && !S.value), y = () => {
67
- m.value && (s && s.destroy(), s = new N(m.value, I.value));
68
- }, $ = () => {
69
- s && (s.data.datasets = b.value, s.options = I.value.options, s.update(M.value));
66
+ const w = i(() => t.dataSets.length === 0), B = i(() => !t.loading && !w.value), b = () => {
67
+ h.value && (s && s.destroy(), s = new P(h.value, E.value));
68
+ }, W = () => {
69
+ s && (s.data.datasets = g.value, s.options = E.value.options, s.update(K.value));
70
70
  };
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(
71
+ Q(b), C(() => t.chartType, b), C(B, async (e) => {
72
+ e && (await Y(), b());
73
+ }), C([() => t.visibleIds, () => t.dataSets], W);
74
+ const m = i(
75
75
  () => t.chartType === n.StackedLine || t.chartType === n.StackedBar
76
- ), K = l(
76
+ ), I = i(
77
77
  () => t.chartType === n.Line || t.chartType === n.StackedLine
78
- ), B = l(
78
+ ), f = i(
79
79
  () => t.dataSets.filter((e) => t.visibleIds.includes(e.id))
80
- ), b = l(() => B.value.map((e, o) => {
81
- const i = e.color || be[o] || "#000000";
80
+ ), g = i(() => f.value.map((e, o) => {
81
+ const l = e.color || ge[o] || "#000000";
82
82
  return {
83
83
  ...e,
84
- fill: h.value ? "start" : void 0,
85
- backgroundColor: Le(
86
- i,
84
+ fill: m.value ? "start" : void 0,
85
+ backgroundColor: Se(
86
+ l,
87
87
  t.chartType === n.StackedLine ? 10 : 70
88
88
  ),
89
- borderColor: i,
90
- pointBackgroundColor: i,
91
- pointHoverBorderColor: i,
89
+ borderColor: l,
90
+ pointBackgroundColor: l,
91
+ pointHoverBorderColor: l,
92
92
  maxBarThickness: 50,
93
93
  clip: 5,
94
94
  // draw a bit outside the chart area
95
95
  icon: e.icon || null,
96
96
  iconType: e.iconType || "branded"
97
97
  };
98
- })), I = l(
98
+ })), A = i(
99
+ () => f.value.length && f.value.every(
100
+ (e) => e.data.length === 1
101
+ )
102
+ ), E = i(
99
103
  () => ({
100
104
  type: t.chartType == n.Bar || t.chartType === n.StackedBar ? "bar" : "line",
101
105
  // Chart Data
102
106
  data: {
103
- datasets: b.value
107
+ datasets: g.value
104
108
  },
105
109
  // Chart Options
106
110
  options: {
@@ -114,7 +118,7 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
114
118
  plugins: {
115
119
  legend: { display: !1 },
116
120
  title: { display: !1 },
117
- hoverVerticalLine: K.value,
121
+ hoverVerticalLine: I.value,
118
122
  // tooltip
119
123
  tooltip: {
120
124
  enabled: !1,
@@ -124,7 +128,7 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
124
128
  },
125
129
  callbacks: {
126
130
  footer: (e) => {
127
- const o = e.reduce((i, j) => i + (j.parsed.y || 0), 0);
131
+ const o = e.reduce((l, q) => l + (q.parsed.y || 0), 0);
128
132
  return ["Total", String(o)];
129
133
  }
130
134
  }
@@ -147,12 +151,12 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
147
151
  tension: 0.3
148
152
  },
149
153
  point: {
150
- radius: 1,
154
+ radius: A.value ? 3 : 1,
151
155
  hitRadius: 8,
152
156
  borderWidth: 0,
153
157
  hoverRadius: 4,
154
158
  hoverBorderWidth: 2,
155
- pointHoverBackgroundColor: ge
159
+ pointHoverBackgroundColor: Te
156
160
  },
157
161
  bar: {
158
162
  borderRadius: 4
@@ -162,16 +166,17 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
162
166
  // Horizontal Axis (X)
163
167
  x: {
164
168
  beginAtZero: !0,
169
+ offset: !I.value || A.value,
165
170
  border: { display: !1 },
166
- stacked: h.value,
171
+ stacked: m.value,
167
172
  // stack on top of each other
168
173
  // ticks
169
174
  ticks: {
170
- color: U,
171
- font: P,
175
+ color: z,
176
+ font: M,
172
177
  padding: 4,
173
178
  callback: function(e) {
174
- return H(
179
+ return U(
175
180
  this.getLabelForValue(e),
176
181
  t.xAxisFormat
177
182
  );
@@ -179,7 +184,7 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
179
184
  },
180
185
  // grid lines
181
186
  grid: {
182
- color: z,
187
+ color: $,
183
188
  drawOnChartArea: !1,
184
189
  drawTicks: !0,
185
190
  drawBorder: !1,
@@ -191,21 +196,21 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
191
196
  beginAtZero: !0,
192
197
  border: { display: !1 },
193
198
  // hide left borderline
194
- stacked: h.value,
199
+ stacked: m.value,
195
200
  // stack on top of each other
196
201
  // ticks
197
202
  ticks: {
198
- color: U,
199
- font: P,
203
+ color: z,
204
+ font: M,
200
205
  padding: 8,
201
- stepSize: R.value,
202
- min: V.value,
203
- max: R.value * t.tickCount,
204
- callback: (e) => H(e, t.yAxisFormat)
206
+ stepSize: O.value,
207
+ min: D.value,
208
+ max: O.value * t.tickCount,
209
+ callback: (e) => U(e, t.yAxisFormat)
205
210
  },
206
211
  // grid lines
207
212
  grid: {
208
- color: z,
213
+ color: $,
209
214
  drawOnChartArea: !0,
210
215
  drawTicks: !1
211
216
  }
@@ -213,78 +218,78 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
213
218
  }
214
219
  }
215
220
  })
216
- ), W = l(
217
- () => b.value.reduce((e, o) => (e[o.id] = o.borderColor, e), {})
218
- ), Z = l(() => t.dataSets.map((e) => ({
221
+ ), Z = i(
222
+ () => g.value.reduce((e, o) => (e[o.id] = o.borderColor, e), {})
223
+ ), G = i(() => t.dataSets.map((e) => ({
219
224
  id: e.id,
220
225
  label: e.label,
221
226
  caption: e.caption || null,
222
- color: W.value[e.id] || null,
227
+ color: Z.value[e.id] || null,
223
228
  icon: e.icon || null,
224
229
  iconType: e.iconType || "branded"
225
- }))), A = g(null), r = g(null), { position: E } = Te(
226
- m,
227
- A,
230
+ }))), V = T(null), r = T(null), { position: R } = Ce(
231
+ h,
232
+ V,
228
233
  r
229
- ), G = l(() => ({
230
- left: `${E.value.left}px`,
231
- top: `${E.value.top}px`,
234
+ ), X = i(() => ({
235
+ left: `${R.value.left}px`,
236
+ top: `${R.value.top}px`,
232
237
  opacity: r.value?.opacity || 0
233
- })), { minValue: V, maxValue: X } = Se({
238
+ })), { minValue: D, maxValue: j } = we({
234
239
  parsingConfig: t.parsing,
235
- dataSets: B,
236
- isStacked: h
237
- }), R = l(
238
- () => he(V.value, X.value, t.tickCount)
240
+ dataSets: f,
241
+ isStacked: m
242
+ }), O = i(
243
+ () => fe(D.value, j.value, t.tickCount)
239
244
  );
240
- return (e, o) => (d(), C(O, null, [
241
- a.withSettingsHeader ? (d(), f(Ie, {
245
+ return (e, o) => (d(), k(F, null, [
246
+ a.withSettingsHeader ? (d(), v(Ae, {
242
247
  key: 0,
243
248
  "chart-type": u(c),
244
- "onUpdate:chart-type": o[0] || (o[0] = (i) => D(c) ? c.value = i : null),
249
+ "onUpdate:chart-type": o[0] || (o[0] = (l) => N(c) ? c.value = l : null),
245
250
  "hide-legend": a.hideLegend
246
251
  }, {
247
- metric: k(() => [
248
- x(e.$slots, "metric", {}, void 0, !0)
252
+ metric: x(() => [
253
+ L(e.$slots, "metric", {}, void 0, !0)
249
254
  ]),
250
- breakdowns: k(() => [
251
- x(e.$slots, "breakdowns", {}, void 0, !0)
255
+ breakdowns: x(() => [
256
+ L(e.$slots, "breakdowns", {}, void 0, !0)
252
257
  ]),
253
258
  _: 3
254
- }, 8, ["chart-type", "hide-legend"])) : v("", !0),
255
- p("div", Ae, [
256
- u(w) ? (d(), C(O, { key: 0 }, [
259
+ }, 8, ["chart-type", "hide-legend"])) : y("", !0),
260
+ p("div", Ee, [
261
+ u(B) ? (d(), k(F, { key: 0 }, [
257
262
  p("section", {
258
- class: Y(["chart-content", [{ "with-legend": !a.hideLegend }]])
263
+ class: _(["chart-content", [{ "with-legend": !a.hideLegend }]])
259
264
  }, [
260
- p("div", Ee, [
261
- F(xe, {
265
+ p("div", Ve, [
266
+ H(Le, {
262
267
  "chart-type": u(c),
263
- "onUpdate:chart-type": o[1] || (o[1] = (i) => D(c) ? c.value = i : null),
268
+ "onUpdate:chart-type": o[1] || (o[1] = (l) => N(c) ? c.value = l : null),
264
269
  "with-settings-header": a.withSettingsHeader,
265
270
  header: a.header,
266
271
  subheader: a.subheader,
267
272
  "with-subheader-tooltip": a.withSubheaderTooltip
268
273
  }, {
269
- "subheader-tooltip": k(() => [
270
- x(e.$slots, "subheader-tooltip", {}, void 0, !0)
274
+ "subheader-tooltip": x(() => [
275
+ L(e.$slots, "subheader-tooltip", {}, void 0, !0)
271
276
  ]),
272
277
  _: 3
273
278
  }, 8, ["chart-type", "with-settings-header", "header", "subheader", "with-subheader-tooltip"])
274
279
  ]),
275
- p("div", Ve, [
280
+ p("div", Re, [
276
281
  p("canvas", {
277
282
  ref_key: "chartRef",
278
- ref: m,
283
+ ref: h,
279
284
  class: "chart__canvas"
280
285
  }, null, 512),
281
286
  p("div", {
282
287
  ref_key: "tooltipRef",
283
- ref: A,
288
+ ref: V,
284
289
  class: "chart__tooltip",
285
- style: _(u(G))
290
+ style: ee(u(X))
286
291
  }, [
287
- r.value ? (d(), f(Ce, {
292
+ r.value ? (d(), v(ke, {
288
293
  key: 0,
289
294
  title: String(r.value.title),
290
295
  "data-points": r.value.dataPoints,
@@ -292,28 +297,28 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
292
297
  "y-axis-format": a.yAxisFormat,
293
298
  "total-label": r.value.footer[0],
294
299
  "total-value": Number(r.value.footer[1])
295
- }, null, 8, ["title", "data-points", "x-axis-format", "y-axis-format", "total-label", "total-value"])) : v("", !0)
300
+ }, null, 8, ["title", "data-points", "x-axis-format", "y-axis-format", "total-label", "total-value"])) : y("", !0)
296
301
  ], 4)
297
302
  ])
298
303
  ], 2),
299
- a.hideLegend ? v("", !0) : (d(), C("section", Re, [
300
- F(ke, {
301
- items: u(Z),
304
+ a.hideLegend ? y("", !0) : (d(), k("section", De, [
305
+ H(xe, {
306
+ items: u(G),
302
307
  "visible-ids": a.visibleIds,
303
308
  "max-limit-tooltip-text": a.maxLimitTooltipText,
304
- "onUpdate:visibleIds": o[2] || (o[2] = (i) => L("update:visibleIds", i))
309
+ "onUpdate:visibleIds": o[2] || (o[2] = (l) => S("update:visibleIds", l))
305
310
  }, null, 8, ["items", "visible-ids", "max-limit-tooltip-text"])
306
311
  ]))
307
- ], 64)) : a.loading ? (d(), f(we, { key: 1 })) : u(S) ? (d(), f(u(Be), {
312
+ ], 64)) : a.loading ? (d(), v(Be, { key: 1 })) : u(w) ? (d(), v(u(Ie), {
308
313
  key: 2,
309
314
  title: a.noDataTitle,
310
315
  subtitle: a.noDataSubtitle,
311
316
  "icon-name": a.noDataIcon
312
- }, null, 8, ["title", "subtitle", "icon-name"])) : v("", !0)
317
+ }, null, 8, ["title", "subtitle", "icon-name"])) : y("", !0)
313
318
  ])
314
319
  ], 64));
315
320
  }
316
321
  });
317
322
  export {
318
- qe as default
323
+ Je as default
319
324
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./ChartLegend.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-a1c626cd"]]);
3
+ // import "../../ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css"; //*');
4
+ const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-4fe1c7d1"]]);
5
5
  export {
6
- s as default
6
+ c as default
7
7
  };