@ironsource/shared-ui 2.1.7-test.4 → 2.1.7-test.6

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 (49) hide show
  1. package/DataGrid.vue_vue_type_style_index_0_scoped_5273976b_lang.css +1 -0
  2. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +1 -0
  3. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
  4. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
  5. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
  6. package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
  7. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
  8. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
  9. package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
  10. package/components/ThemeWrapper/ThemeWrapper.vue2.js +5 -5
  11. package/components/input/v4/TextField.vue.js +3 -3
  12. package/components/input/v4/TextField.vue2.js +1 -1
  13. package/components/sortableList/SortableList.vue.d.ts +25 -0
  14. package/components/sortableList/SortableList.vue.js +4 -4
  15. package/components/sortableList/SortableList.vue2.js +129 -89
  16. package/components/sortableList/index.d.ts +88 -2
  17. package/components/table/common/Table.common.js +71 -68
  18. package/components/table/v3/Table.vue.d.ts +2 -2
  19. package/components/table/v3/index.d.ts +39 -39
  20. package/components/table/v4/DataGrid.vue.d.ts +12 -2
  21. package/components/table/v4/DataGrid.vue.js +4 -4
  22. package/components/table/v4/DataGrid.vue2.js +103 -100
  23. package/components/table/v4/DataGridRowsCounter.vue.js +2 -2
  24. package/components/table/v4/DataGridRowsCounter.vue2.js +14 -13
  25. package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
  26. package/components/table/v4/MultipleDataGrid.vue.js +5 -5
  27. package/components/table/v4/MultipleDataGrid.vue2.js +112 -69
  28. package/components/table/v4/index.d.ts +126 -75
  29. package/components/table/v4/storyUtils.d.ts +4 -0
  30. package/components/table-cells/common/Editable.common.js +37 -26
  31. package/components/table-cells/common/EditableContext.d.ts +1 -0
  32. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  33. package/components/table-cells/v4/EditableV4.vue.js +5 -5
  34. package/components/table-cells/v4/EditableV4.vue2.js +18 -17
  35. package/components/table-cells/v4/index.d.ts +20 -1
  36. package/components/tabs/v4/TabsV4.vue.js +4 -4
  37. package/components/tabs/v4/TabsV4.vue2.js +37 -40
  38. package/index.d.ts +546 -234
  39. package/package.json +1 -1
  40. package/utils/formatNumbers.d.ts +4 -0
  41. package/utils/formatNumbers.js +11 -0
  42. package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
  43. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +0 -1
  44. package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
  45. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css +0 -1
  46. package/SortableList.vue_vue_type_style_index_0_scoped_21842d59_lang.css +0 -1
  47. package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
  48. package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +0 -1
  49. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
@@ -0,0 +1 @@
1
+ .sticky[data-v-5273976b]{position:sticky}.table-container[data-v-5273976b]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-5273976b]{display:flex;align-items:center;height:calc(var(--spacing-800) - 1px);border-bottom:1px solid var(--common-divider);background-color:var(--background-paper-elevation-0);position:sticky;left:0;padding:var(--spacing-300)}.table-header .table-title[data-v-5273976b]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-5273976b]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-5273976b]{width:13.75rem}.table-header.isStickyHeader[data-v-5273976b]{z-index:calc(var(--2d374a62) + 3);top:0}.table-head-container[data-v-5273976b]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-5273976b]{color:var(--text-primary);background-color:var(--background-paper-elevation-0);padding:0 var(--spacing-300);display:flex;align-items:center;min-height:var(--spacing-600);border:1px solid var(--common-divider);border-radius:var(--border-radius-md);border-top-right-radius:0;border-top-left-radius:0}.table-body-wrapper[data-v-5273976b]{display:inline-table}.table-header-actions[data-v-5273976b]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-5273976b]{position:relative}.table-row.loading[data-v-5273976b]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-5273976b]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-5273976b]{border-bottom:none}.expanded-row[data-v-5273976b]{grid-column:var(--7d502b56);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-5273976b]{position:relative;display:block;overflow:auto;background:var(--background-paper-elevation-0);border:1px solid var(--common-divider);color:var(--text-primary);text-align:left;table-layout:fixed;width:100%;max-height:100%;border-radius:var(--border-radius-md);border-collapse:collapse;border-spacing:0}table.hasFooter[data-v-5273976b]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-5273976b],table th[data-v-5273976b]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-5273976b]:first-of-type,table th[data-v-5273976b]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-5273976b]:last-of-type,table th[data-v-5273976b]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-5273976b],table th.expand-toggle-cell[data-v-5273976b]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-5273976b]{border-bottom:none;z-index:calc(var(--2d374a62) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-5273976b]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--31bec0cf)}table>thead>tr>th[data-v-5273976b]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.bordered[data-v-5273976b]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-5273976b]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-5273976b]{justify-content:flex-end}table>thead>tr>th.isSortable[data-v-5273976b]{cursor:pointer}table>thead.sticky[data-v-5273976b]{position:sticky;top:0;background:white}table>thead.isStickyHeader[data-v-5273976b]{z-index:calc(var(--2d374a62) + 2);top:calc(var(--spacing-800) - 1px)}table>tbody[data-v-5273976b]{display:block}table>tbody>*>tr[data-v-5273976b]{background-color:var(--background-default);min-height:var(--93d8ccd2);height:auto;display:grid;align-items:center;grid-template-columns:var(--31bec0cf)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-5273976b]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-5273976b],table>tbody>*>tr.activeMenu>td[data-v-5273976b]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-5273976b]{background-color:var(--background-default);border:none;min-width:0;display:flex;min-height:var(--93d8ccd2);height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-5273976b]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-5273976b]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-5273976b]{justify-content:flex-end;text-align:right}.section-container[data-v-5273976b]{left:0}.sections[data-v-5273976b]{display:flex}.section[data-v-5273976b]{padding:0 1.5rem;background:var(--background-default);left:0;height:32px;display:flex;align-items:flex-end;border-right:1px solid var(--common-divider)}.table-cell[data-v-5273976b]{width:100%}.empty-state[data-v-5273976b]{min-height:250px}
@@ -0,0 +1 @@
1
+ .data-grid-rows-counter[data-v-ef699ec5]{color:var(--text-secondary)}.text-strong[data-v-ef699ec5]{color:var(--text-primary)}
@@ -0,0 +1 @@
1
+ .editable[data-v-e0c047b4]{position:relative;left:calc(var(--spacing-100) * -1);display:flex;align-items:center}.editable-wrapper[data-v-e0c047b4]{display:flex;flex:1 1 auto}.editable-wrapper[data-v-e0c047b4]:hover{cursor:text;background:var(--default-main)}.editable-content[data-v-e0c047b4]{padding:0 var(--spacing-100);height:28px;display:flex;align-items:center;justify-content:space-between;width:100%;border-radius:var(--border-radius-md)}.caret-icon[data-v-e0c047b4]{display:none;color:var(--action-active)}.table-row:hover .editable-wrapper[data-v-e0c047b4]{cursor:text;width:100%}.table-row:hover .editable-content[data-v-e0c047b4]{outline:1px solid var(--action-outlined-border);outline-offset:-1px}.table-row:hover .caret-icon[data-v-e0c047b4]{display:flex}
@@ -0,0 +1 @@
1
+ .multi-table-container[data-v-82ba0e12]{border-radius:var(--border-radius-md);border:1px solid var(--common-divider);display:flex;flex-direction:column;overflow-y:auto;width:100%}.multi-table-container .table-header-container[data-v-82ba0e12]{align-items:center;background-color:var(--background-paper-elevation-0);display:flex;height:calc(var(--spacing-800) - 2px);justify-content:space-between;padding:var(--spacing-300);width:100%}.multi-table-container .table-header-container.sticky[data-v-82ba0e12]{position:sticky;top:0;z-index:calc(var(--5d3fa26e) + 3)}.multi-table-container[data-v-82ba0e12] table{display:table;border:unset;border-radius:unset}.multi-table-container[data-v-82ba0e12] thead{border-top:1px solid var(--common-divider)}.multi-table-container .tables-container[data-v-82ba0e12] thead.sticky{top:62px}.multi-table-container .empty-state[data-v-82ba0e12]{min-height:250px}.multi-table-container .table-header-right[data-v-82ba0e12]{align-items:center;display:flex;height:100%}.multi-table-container .table-header-right .table-header-actions[data-v-82ba0e12]{align-items:center;display:flex;margin-left:var(--spacing-100)}
@@ -0,0 +1 @@
1
+ .list-search[data-v-e9cd63b8]{margin-bottom:var(--spacing-100)}.sortable-list[data-v-e9cd63b8],.locked-list[data-v-e9cd63b8]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:var(--spacing-75);color:var(--text-primary)}.locked-list[data-v-e9cd63b8]{margin-top:var(--spacing-75)}.force-grabbing-cursor *[data-v-e9cd63b8]{cursor:move!important;cursor:-webkit-grabbing!important;cursor:-moz-grabbing!important;cursor:grabbing!important}.empty-state-title[data-v-e9cd63b8]{color:var(--text-disabled);padding:0 8px;width:100%}.loader-bars[data-v-e9cd63b8]{display:flex;flex-direction:column;gap:6px}.loader-bars .loader-bar[data-v-e9cd63b8]{height:40px;width:100%}
@@ -0,0 +1 @@
1
+ .tabs-list[data-v-f9433b11]{position:relative;padding:0;margin:0}.tabs-list--page[data-v-f9433b11]{border-bottom:1px solid var(--common-divider);box-sizing:border-box}.tabs-list--page .tab-item[data-v-f9433b11]{padding:0;margin-right:var(--spacing-200);min-height:calc(var(--spacing-600) - 1px)}.tabs-list--page .tabs-border-line[data-v-f9433b11]{margin-top:-1px}.tabs-border-line[data-v-f9433b11]{left:var(--167b065e);width:var(--8cfadb62);border-bottom:2px solid var(--primary-main);transition:left .2s ease-in-out,width .2s;position:absolute;margin-top:-2px}.tab-item[data-v-f9433b11]{display:inline-flex;flex-direction:row;justify-content:center;align-items:center;color:var(--action-active);gap:var(--spacing-100);vertical-align:middle;padding:0 var(--spacing-300);min-height:var(--spacing-600)}.tab-item[data-v-f9433b11]:hover{cursor:pointer;color:var(--text-primary)}.tab-item--active[data-v-f9433b11]{color:var(--text-primary)}.tab-item--disabled[data-v-f9433b11]{color:var(--action-disabled);cursor:not-allowed;pointer-events:none}
@@ -0,0 +1 @@
1
+ @import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";.font-tab-label2[data-v-4d9bf5b2],.font-chart-2[data-v-4d9bf5b2],.font-chart-1[data-v-4d9bf5b2]{font-family:Inter,sans-serif;font-weight:700}.font-chip-label[data-v-4d9bf5b2],.font-table-label[data-v-4d9bf5b2],.font-button[data-v-4d9bf5b2],.font-heading-6[data-v-4d9bf5b2],.font-heading-5[data-v-4d9bf5b2],.font-heading-4[data-v-4d9bf5b2],.font-heading-3[data-v-4d9bf5b2],.font-heading-2[data-v-4d9bf5b2],.font-heading-1[data-v-4d9bf5b2],.font-title[data-v-4d9bf5b2]{font-family:Inter,sans-serif;font-weight:600}.font-tab-label1[data-v-4d9bf5b2],.font-input-label[data-v-4d9bf5b2],.font-overline[data-v-4d9bf5b2],.font-subtitle-2[data-v-4d9bf5b2],.font-subtitle-1[data-v-4d9bf5b2]{font-family:Inter,sans-serif;font-weight:500}.font-caption[data-v-4d9bf5b2],.font-body-2[data-v-4d9bf5b2],.input-container .input[data-v-4d9bf5b2],.font-body-1[data-v-4d9bf5b2]{font-family:Inter,sans-serif;font-weight:400}.font-title[data-v-4d9bf5b2]{font-size:2.5rem;line-height:3rem;letter-spacing:-.055rem}.font-heading-1[data-v-4d9bf5b2]{font-size:1.5rem;line-height:1.75rem;letter-spacing:-.0285rem}.font-heading-2[data-v-4d9bf5b2]{font-size:1.125rem;line-height:1.75rem;letter-spacing:-.01575rem}.font-heading-3[data-v-4d9bf5b2]{font-size:1rem;line-height:1.5rem;letter-spacing:-.011rem}.font-heading-4[data-v-4d9bf5b2]{font-size:.875rem;line-height:1rem;letter-spacing:unset}.font-heading-5[data-v-4d9bf5b2]{font-size:.8125rem;line-height:16px;letter-spacing:unset}.font-heading-6[data-v-4d9bf5b2]{font-size:.75rem;line-height:.75rem;letter-spacing:0}.input-container .input[data-v-4d9bf5b2],.font-body-1[data-v-4d9bf5b2]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-body-2[data-v-4d9bf5b2]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-subtitle-1[data-v-4d9bf5b2]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-subtitle-2[data-v-4d9bf5b2]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-chart-1[data-v-4d9bf5b2]{font-size:1.5rem;line-height:1.5rem;letter-spacing:-.015rem}.font-chart-2[data-v-4d9bf5b2]{font-size:1.25rem;line-height:1.25rem;letter-spacing:-.0125rem}.font-button[data-v-4d9bf5b2]{font-size:.875rem;line-height:1.25rem;letter-spacing:.00875rem}.font-overline[data-v-4d9bf5b2]{font-size:.75rem;line-height:1rem;letter-spacing:.045rem;text-transform:uppercase}.font-caption[data-v-4d9bf5b2]{font-size:.75rem;line-height:1rem}.font-table-label[data-v-4d9bf5b2]{font-size:.8125rem;line-height:1.25rem;letter-spacing:.00813rem}.font-input-label[data-v-4d9bf5b2]{font-size:.8125rem;line-height:1rem;letter-spacing:.00813rem}.font-tab-label1[data-v-4d9bf5b2],.font-tab-label2[data-v-4d9bf5b2]{font-size:.875rem;line-height:1rem}.font-chip-label[data-v-4d9bf5b2]{font-size:.75rem;line-height:1rem}h1[data-v-4d9bf5b2],h2[data-v-4d9bf5b2],h3[data-v-4d9bf5b2],h4[data-v-4d9bf5b2],h5[data-v-4d9bf5b2],h6[data-v-4d9bf5b2]{margin:0}.disabled .input[data-v-4d9bf5b2]::placeholder{color:var(--text-disabled)}.disabled .input-container[data-v-4d9bf5b2]{cursor:no-drop;background-color:var(--action-disabled-background)}.disabled .input-container[data-v-4d9bf5b2]:hover{outline:1px solid var(--action-outlined-border);background-color:var(--action-disabled-background)}.input-size-small[data-v-4d9bf5b2]{height:28px}.input-size-medium[data-v-4d9bf5b2]{height:32px}.input-size-large[data-v-4d9bf5b2]{height:40px}.input-with-label-container[data-v-4d9bf5b2]{display:flex;flex-direction:column}.input-container[data-v-4d9bf5b2]{flex-grow:2;display:flex;flex-direction:row;align-items:center;border-radius:var(--border-radius-md);background:var(--default-main);outline:1px solid var(--action-outlined-border);outline-offset:-1px;padding:0 var(--spacing-100);position:relative;gap:var(--spacing-50)}.input-container[data-v-4d9bf5b2]:hover{outline:1px solid var(--action-active);background-color:var(--action-hover)}.input-container .input[data-v-4d9bf5b2]{padding:0;width:100%;border:none;background:transparent;color:var(--text-primary);line-height:normal}.input-container .input[data-v-4d9bf5b2]:focus{outline:none}.input-container .input[data-v-4d9bf5b2]:disabled{color:var(--text-disabled);cursor:no-drop}.input-container .input.view-only[data-v-4d9bf5b2]{color:var(--text-disabled)}.input-container .input[type=number][data-v-4d9bf5b2]::-webkit-inner-spin-button{opacity:.7;transform:scale(1.1)}.input-container .hide-arrows.input[type=number][data-v-4d9bf5b2]::-webkit-inner-spin-button,.input-container .hide-arrows.input[type=number][data-v-4d9bf5b2]::-webkit-outer-spin-button{margin:0;-webkit-appearance:none;appearance:none}.input-container .input[type=password][data-v-4d9bf5b2]{letter-spacing:4px}.input-container[data-v-4d9bf5b2] ::placeholder{color:var(--text-secondary);letter-spacing:normal}.input-container .label-inside[data-v-4d9bf5b2]::placeholder{color:var(--text-primary)}.input-container .icon-container[data-v-4d9bf5b2]{display:flex;align-items:center;color:var(--text-secondary)}.input-container .icon-before[data-v-4d9bf5b2]{padding-right:var(--spacing-50)}.input-container .icon-after[data-v-4d9bf5b2]{padding-left:var(--spacing-50)}.prefix-text[data-v-4d9bf5b2]{color:var(--text-secondary, #646464);margin-right:var(--spacing-50)}.suffix-text[data-v-4d9bf5b2]{color:var(--text-secondary, #646464)}.focused[data-v-4d9bf5b2],.focused[data-v-4d9bf5b2]:hover{outline:2px solid var(--primary-main);background-color:var(--action-hover)}.error-icon.error-icon[data-v-4d9bf5b2],.error-icon.error-icon[data-v-4d9bf5b2]:hover{color:var(--error-main)}.label-direction-left[data-v-4d9bf5b2]{flex-direction:row;align-items:center;justify-content:space-between}.apply-button[data-v-4d9bf5b2]{cursor:pointer;color:var(--default-contrast-text);width:var(--spacing-250);height:var(--spacing-250)}.inline-error[data-v-4d9bf5b2]{cursor:pointer;color:var(--error-main);display:flex;justify-content:center;align-items:center}.footer[data-v-4d9bf5b2]{display:flex;justify-content:flex-end;margin-top:var(--spacing-50)}.footer.footer-absolute[data-v-4d9bf5b2]{position:absolute;bottom:calc(0px - var(--spacing-300))}.password-visibility-toggle[data-v-4d9bf5b2]{cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-secondary)}.variant-success .input-container[data-v-4d9bf5b2],.variant-success .input-container[data-v-4d9bf5b2]:hover{outline:2px solid var(--success-dark)}.variant-error .input-container[data-v-4d9bf5b2],.variant-error .input-container[data-v-4d9bf5b2]:hover{outline:2px solid var(--error-main)}.variant-warning .input-container[data-v-4d9bf5b2],.variant-warning .input-container[data-v-4d9bf5b2]:hover{outline:2px solid var(--warning-dark)}
@@ -0,0 +1 @@
1
+ .theme--wrapper-container[data-v-66bd448a]{width:100%}
@@ -1,8 +1,8 @@
1
1
  import e from "./ThemeWrapper.vue2.js";
2
2
  /* empty css *//* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css"; //*');
3
+ // import "../../ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css"; //*');
4
4
  // import "../../ThemeWrapper.vue_vue_type_style_index_1_lang.css"; //');
5
- const t = /* @__PURE__ */ o(e, [["__scopeId", "data-v-b62ee695"]]);
5
+ const t = /* @__PURE__ */ o(e, [["__scopeId", "data-v-66bd448a"]]);
6
6
  export {
7
7
  t as default
8
8
  };
@@ -1,4 +1,4 @@
1
- import "../../ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css"; import "../../ThemeWrapper.vue_vue_type_style_index_1_lang.css"; import { defineComponent as a, computed as l, openBlock as m, createElementBlock as c, normalizeClass as p, unref as u, renderSlot as h } from "vue";
1
+ import "../../ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css"; import "../../ThemeWrapper.vue_vue_type_style_index_1_lang.css"; import { defineComponent as a, computed as m, openBlock as l, createElementBlock as p, normalizeClass as c, unref as u, renderSlot as h } from "vue";
2
2
  import { useThemeStore as i } from "./ThemeStrore.js";
3
3
  const v = /* @__PURE__ */ a({
4
4
  __name: "ThemeWrapper",
@@ -6,12 +6,12 @@ const v = /* @__PURE__ */ a({
6
6
  version: { default: "v4" }
7
7
  },
8
8
  setup(o) {
9
- const s = o, r = l(() => {
9
+ const r = o, s = m(() => {
10
10
  const e = [], { theme: t } = i(), n = t.value === "light" ? "light-theme" : "dark-theme";
11
- return e.push(n), e.push(s.version), e.join("-");
11
+ return e.push(n), e.push(r.version), e.join("-");
12
12
  });
13
- return (e, t) => (m(), c("div", {
14
- class: p(u(r))
13
+ return (e, t) => (l(), p("div", {
14
+ class: c(["theme--wrapper-container", u(s)])
15
15
  }, [
16
16
  h(e.$slots, "default", {}, void 0, !0)
17
17
  ], 2));
@@ -1,7 +1,7 @@
1
1
  import e from "./TextField.vue2.js";
2
2
  /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css"; //*');
4
- const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-eb472aa3"]]);
3
+ // import "../../../TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css"; //*');
4
+ const d = /* @__PURE__ */ o(e, [["__scopeId", "data-v-4d9bf5b2"]]);
5
5
  export {
6
- a as default
6
+ d as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css"; import { defineComponent as J, computed as f, ref as Q, openBlock as l, createElementBlock as d, mergeProps as c, unref as t, createBlock as r, createCommentVNode as n, createElementVNode as A, normalizeClass as E, renderSlot as F, withCtx as b, createTextVNode as V, toDisplayString as $, withKeys as U, withModifiers as z, normalizeProps as O, createVNode as p } from "vue";
1
+ import "../../../TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css"; import { defineComponent as J, computed as f, ref as Q, openBlock as l, createElementBlock as d, mergeProps as c, unref as t, createBlock as r, createCommentVNode as n, createElementVNode as A, normalizeClass as E, renderSlot as F, withCtx as b, createTextVNode as V, toDisplayString as $, withKeys as U, withModifiers as z, normalizeProps as O, createVNode as p } from "vue";
2
2
  import v from "../../icon/v4/IconV4.vue.js";
3
3
  import "../../icon/v4/IconFlag.vue.js";
4
4
  import X from "../../tooltip/v4/TooltipV4.vue.js";
@@ -9,6 +9,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
9
9
  showSearch?: boolean;
10
10
  searchPlaceholder?: string;
11
11
  searchHandler?: (item: SortableListItem, searchQuery: string) => boolean;
12
+ isLoading?: boolean;
13
+ loadingRowCount?: number;
14
+ emptyStateTitle?: string;
12
15
  testId?: string;
13
16
  }>, {
14
17
  items: () => any[];
@@ -20,8 +23,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
20
23
  showSearch: boolean;
21
24
  searchPlaceholder: string;
22
25
  searchHandler: any;
26
+ isLoading: boolean;
27
+ loadingRowCount: number;
28
+ emptyStateTitle: string;
23
29
  testId: string;
24
30
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
+ sortableItemDragged: (event: {
32
+ id: string;
33
+ newIndex: number;
34
+ }) => void;
25
35
  "update:items": (items: SortableListItem[]) => void;
26
36
  "update:openId": (id: string | number) => void;
27
37
  "update:selectedId": (id: string | number) => void;
@@ -38,6 +48,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
38
48
  showSearch?: boolean;
39
49
  searchPlaceholder?: string;
40
50
  searchHandler?: (item: SortableListItem, searchQuery: string) => boolean;
51
+ isLoading?: boolean;
52
+ loadingRowCount?: number;
53
+ emptyStateTitle?: string;
41
54
  testId?: string;
42
55
  }>, {
43
56
  items: () => any[];
@@ -49,8 +62,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
49
62
  showSearch: boolean;
50
63
  searchPlaceholder: string;
51
64
  searchHandler: any;
65
+ isLoading: boolean;
66
+ loadingRowCount: number;
67
+ emptyStateTitle: string;
52
68
  testId: string;
53
69
  }>>> & {
70
+ onSortableItemDragged?: (event: {
71
+ id: string;
72
+ newIndex: number;
73
+ }) => any;
54
74
  "onUpdate:items"?: (items: SortableListItem[]) => any;
55
75
  "onUpdate:openId"?: (id: string | number) => any;
56
76
  "onUpdate:selectedId"?: (id: string | number) => any;
@@ -60,6 +80,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
60
80
  }, {
61
81
  search: string;
62
82
  testId: string;
83
+ isLoading: boolean;
63
84
  displayValue: (item: SortableListItem) => string;
64
85
  searchPlaceholder: string;
65
86
  items: SortableListItem[];
@@ -68,10 +89,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
68
89
  openId: string | number;
69
90
  selectedId: string | number;
70
91
  showSearch: boolean;
92
+ loadingRowCount: number;
93
+ emptyStateTitle: string;
71
94
  }>, {
72
95
  menu?(_: {
73
96
  item: SortableListItem;
74
97
  }): any;
98
+ loader?(_: {}): any;
99
+ "empty-state"?(_: {}): any;
75
100
  }>;
76
101
  export default _default;
77
102
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import o from "./SortableList.vue2.js";
2
- /* empty css */import t from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../SortableList.vue_vue_type_style_index_0_scoped_21842d59_lang.css"; //*');
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-21842d59"]]);
2
+ /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css"; //*');
4
+ const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e9cd63b8"]]);
5
5
  export {
6
- p as default
6
+ c as default
7
7
  };
@@ -1,13 +1,21 @@
1
- import "../../SortableList.vue_vue_type_style_index_0_scoped_21842d59_lang.css"; import { defineComponent as $, computed as p, ref as F, openBlock as c, createElementBlock as m, mergeProps as v, unref as t, createBlock as y, isRef as E, createCommentVNode as P, createVNode as w, withCtx as C, Fragment as x, renderList as B, renderSlot as D, createElementVNode as G } from "vue";
2
- import { VueDraggable as U } from "vue-draggable-plus";
3
- import R from "./SortableItem.vue.js";
4
- import M from "../search/v4/SearchV4.vue.js";
5
- import { useVModel as K } from "@vueuse/core";
6
- import { matchString as q } from "../../utils/search.js";
7
- import { useTestIdAttrs as Q } from "../../utils/testIds.js";
8
- import { SortableListTestIdModifiers as f } from "../../testids/index.js";
9
- import { DRAG_CURSOR_CSS_CLASS as H } from "./consts.js";
10
- const le = /* @__PURE__ */ $({
1
+ import "../../SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css"; import { defineComponent as F, computed as f, ref as P, openBlock as s, createElementBlock as i, mergeProps as T, unref as l, createBlock as g, isRef as N, createCommentVNode as y, withCtx as m, Fragment as V, renderList as D, renderSlot as S, createElementVNode as G, createVNode as $, createTextVNode as U, toDisplayString as M } from "vue";
2
+ import { VueDraggable as K } from "vue-draggable-plus";
3
+ import w from "./SortableItem.vue.js";
4
+ import Q from "../search/v4/SearchV4.vue.js";
5
+ import j from "../typography/v4/Typography.vue.js";
6
+ import z from "../skeleton/v4/SkeletonV4.vue.js";
7
+ import { useVModel as J } from "@vueuse/core";
8
+ import { matchString as x } from "../../utils/search.js";
9
+ import { useTestIdAttrs as W } from "../../utils/testIds.js";
10
+ import { SortableListTestIdModifiers as I } from "../../testids/index.js";
11
+ import { DRAG_CURSOR_CSS_CLASS as q } from "./consts.js";
12
+ const X = {
13
+ key: 1,
14
+ class: "sortable-list-container"
15
+ }, Y = { class: "loader-bars" }, Z = {
16
+ key: 3,
17
+ class: "empty-state-title"
18
+ }, ue = /* @__PURE__ */ F({
11
19
  __name: "SortableList",
12
20
  props: {
13
21
  items: { default: () => [] },
@@ -19,102 +27,134 @@ const le = /* @__PURE__ */ $({
19
27
  showSearch: { type: Boolean, default: !1 },
20
28
  searchPlaceholder: { default: "Search" },
21
29
  searchHandler: { type: Function, default: null },
30
+ isLoading: { type: Boolean, default: !1 },
31
+ loadingRowCount: { default: 3 },
32
+ emptyStateTitle: { default: "No results" },
22
33
  testId: { default: "" }
23
34
  },
24
- emits: ["update:items", "update:openId", "update:selectedId", "update:selectedChildId", "update:search", "clearSearch"],
25
- setup(d, { emit: s }) {
26
- const r = d, o = K(r, "search", s), S = p(() => !!o.value?.trim()), L = p(() => S.value ? r.items.filter((l) => {
27
- const a = l.children || [], e = o.value;
28
- return r.searchHandler ? r.searchHandler(l, e) : q(l.displayText, e) || // match parent item
29
- a.some((n) => q(n.displayText, e));
30
- }) : r.items), u = p({
35
+ emits: ["sortableItemDragged", "update:items", "update:openId", "update:selectedId", "update:selectedChildId", "update:search", "clearSearch"],
36
+ setup(d, { emit: o }) {
37
+ const n = d, u = J(n, "search", o), v = f(() => !!u.value?.trim()), C = f(() => v.value ? n.items.filter((t) => {
38
+ const a = t.children || [], e = u.value;
39
+ return n.searchHandler ? n.searchHandler(t, e) : x(t.displayText, e) || // match parent item
40
+ a.some((r) => x(r.displayText, e));
41
+ }) : n.items), h = f({
31
42
  get() {
32
- return L.value.filter((l) => !l.isLocked);
43
+ return C.value.filter((t) => !t.isLocked);
33
44
  },
34
- set(l) {
35
- s("update:items", [...l, ...V.value]);
45
+ set(t) {
46
+ o("update:items", [...t, ...b.value]);
36
47
  }
37
- }), V = p(
38
- () => L.value.filter((l) => l.isLocked)
39
- ), I = F(!1), N = (l) => {
40
- I.value = !0, setTimeout(() => l.target.classList.add(H), 50);
41
- }, O = (l) => {
42
- I.value = !1, l.target.classList.remove(H);
43
- }, T = (l) => (S.value || l.id === r.openId) && !I.value, b = (l, a) => {
44
- a ? s("update:openId", l.id) : s("update:openId", null);
45
- }, i = (l) => l.id === r.selectedId, k = (l) => {
46
- s("update:selectedId", l.id), s("update:selectedChildId", null);
47
- }, A = (l, a) => {
48
- s("update:selectedChildId", l.id), s("update:selectedId", a.id), s("update:openId", a.id);
49
- }, g = Q(r.testId, f);
50
- return (l, a) => (c(), m("div", v({ class: "sortable-list-container" }, t(g)[t(f).CONTAINER]), [
51
- d.showSearch ? (c(), y(t(M), {
48
+ }), b = f(
49
+ () => C.value.filter((t) => t.isLocked)
50
+ ), k = P(!1), H = (t) => {
51
+ k.value = !0, setTimeout(() => t.target.classList.add(q), 50);
52
+ }, O = (t) => {
53
+ const { target: a, item: e, newIndex: r } = t;
54
+ k.value = !1, a.classList.remove(q);
55
+ const c = e.attributes["data-id"]?.value;
56
+ o("sortableItemDragged", { id: c, newIndex: r });
57
+ }, R = (t) => (v.value || t.id === n.openId) && !k.value, A = (t, a) => {
58
+ a ? o("update:openId", t.id) : o("update:openId", null);
59
+ }, p = (t) => t.id === n.selectedId, B = (t) => {
60
+ o("update:selectedId", t.id), o("update:selectedChildId", null);
61
+ }, E = (t, a) => {
62
+ o("update:selectedChildId", t.id), o("update:selectedId", a.id), o("update:openId", a.id);
63
+ }, L = W(n.testId, I);
64
+ return (t, a) => (s(), i("div", T({ class: "sortable-list-and-search-container" }, l(L)[l(I).CONTAINER]), [
65
+ d.showSearch ? (s(), g(l(Q), {
52
66
  key: 0,
53
- modelValue: t(o),
54
- "onUpdate:modelValue": a[0] || (a[0] = (e) => E(o) ? o.value = e : null),
67
+ modelValue: l(u),
68
+ "onUpdate:modelValue": a[0] || (a[0] = (e) => N(u) ? u.value = e : null),
55
69
  class: "list-search",
56
70
  placeholder: d.searchPlaceholder,
57
71
  "test-id": d.testId,
58
- onOnClear: a[1] || (a[1] = (e) => s("clearSearch"))
59
- }, null, 8, ["modelValue", "placeholder", "test-id"])) : P("", !0),
60
- w(t(U), v({
61
- modelValue: t(u),
62
- "onUpdate:modelValue": a[2] || (a[2] = (e) => E(u) ? u.value = e : null),
63
- class: "sortable-list",
64
- filter: ".expand-icon",
65
- animation: 150,
66
- handle: ".draggable-handle",
67
- disabled: t(S)
68
- }, t(g)[t(f).DRAGGABLE_LIST], {
69
- onStart: N,
70
- onEnd: O
71
- }), {
72
- default: C(() => [
73
- (c(!0), m(x, null, B(t(u), (e, n) => (c(), y(R, {
72
+ onOnClear: a[1] || (a[1] = (e) => o("clearSearch"))
73
+ }, null, 8, ["modelValue", "placeholder", "test-id"])) : y("", !0),
74
+ d.isLoading ? S(t.$slots, "loader", { key: 2 }, () => [
75
+ G("div", Y, [
76
+ (s(!0), i(V, null, D(d.loadingRowCount, (e) => (s(), i("div", { key: e }, [
77
+ $(l(z), {
78
+ round: "",
79
+ class: "loader-bar"
80
+ })
81
+ ]))), 128))
82
+ ])
83
+ ], !0) : (s(), i("div", X, [
84
+ l(h).length ? (s(), g(l(K), T({
85
+ key: 0,
86
+ modelValue: l(h),
87
+ "onUpdate:modelValue": a[2] || (a[2] = (e) => N(h) ? h.value = e : null),
88
+ class: "sortable-list",
89
+ filter: ".expand-icon",
90
+ animation: 150,
91
+ handle: ".draggable-handle",
92
+ disabled: l(v)
93
+ }, l(L)[l(I).DRAGGABLE_LIST], {
94
+ onStart: H,
95
+ onEnd: O
96
+ }), {
97
+ default: m(() => [
98
+ (s(!0), i(V, null, D(l(h), (e, r) => (s(), g(w, {
99
+ key: e.id,
100
+ "data-id": e.id,
101
+ item: e,
102
+ index: r,
103
+ "is-open": R(e),
104
+ "is-selected": p(e),
105
+ "selected-child-id": p(e) ? d.selectedChildId : null,
106
+ "display-value": d.displayValue,
107
+ "search-query": l(u),
108
+ "search-handler": d.searchHandler,
109
+ onToggle: (c) => A(e, c),
110
+ onSelect: (c) => B(e),
111
+ onSelectChild: (c) => E(c, e)
112
+ }, {
113
+ menu: m(() => [
114
+ S(t.$slots, "menu", { item: e }, void 0, !0)
115
+ ]),
116
+ _: 2
117
+ }, 1032, ["data-id", "item", "index", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "search-handler", "onToggle", "onSelect", "onSelectChild"]))), 128))
118
+ ]),
119
+ _: 3
120
+ }, 16, ["modelValue", "disabled"])) : y("", !0),
121
+ l(b).length ? (s(), i("div", T({
122
+ key: 1,
123
+ class: "locked-list"
124
+ }, l(L)[l(I).LOCKED_LIST]), [
125
+ (s(!0), i(V, null, D(l(b), (e) => (s(), g(w, {
74
126
  key: e.id,
75
127
  item: e,
76
- index: n,
77
- "is-open": T(e),
78
- "is-selected": i(e),
79
- "selected-child-id": i(e) ? d.selectedChildId : null,
128
+ "is-open": R(e),
129
+ "is-selected": p(e),
130
+ "selected-child-id": p(e) ? d.selectedChildId : null,
80
131
  "display-value": d.displayValue,
81
- "search-query": t(o),
82
- "search-handler": d.searchHandler,
83
- onToggle: (h) => b(e, h),
84
- onSelect: (h) => k(e),
85
- onSelectChild: (h) => A(h, e)
132
+ "search-query": l(u),
133
+ "on-search": d.searchHandler,
134
+ onToggle: (r) => A(e, r),
135
+ onSelect: (r) => B(e),
136
+ onSelectChild: (r) => E(r, e)
86
137
  }, {
87
- menu: C(() => [
88
- D(l.$slots, "menu", { item: e }, void 0, !0)
138
+ menu: m(() => [
139
+ S(t.$slots, "menu", { item: e }, void 0, !0)
89
140
  ]),
90
141
  _: 2
91
- }, 1032, ["item", "index", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "search-handler", "onToggle", "onSelect", "onSelectChild"]))), 128))
92
- ]),
93
- _: 3
94
- }, 16, ["modelValue", "disabled"]),
95
- G("div", v({ class: "locked-list" }, t(g)[t(f).LOCKED_LIST]), [
96
- (c(!0), m(x, null, B(t(V), (e) => (c(), y(R, {
97
- key: e.id,
98
- item: e,
99
- "is-open": T(e),
100
- "is-selected": i(e),
101
- "selected-child-id": i(e) ? d.selectedChildId : null,
102
- "display-value": d.displayValue,
103
- "search-query": t(o),
104
- "on-search": d.searchHandler,
105
- onToggle: (n) => b(e, n),
106
- onSelect: (n) => k(e),
107
- onSelectChild: (n) => A(n, e)
108
- }, {
109
- menu: C(() => [
110
- D(l.$slots, "menu", { item: e }, void 0, !0)
111
- ]),
112
- _: 2
113
- }, 1032, ["item", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "on-search", "onToggle", "onSelect", "onSelectChild"]))), 128))
114
- ], 16)
142
+ }, 1032, ["item", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "on-search", "onToggle", "onSelect", "onSelectChild"]))), 128))
143
+ ], 16)) : y("", !0)
144
+ ])),
145
+ !l(C).length && !d.isLoading ? (s(), i("div", Z, [
146
+ S(t.$slots, "empty-state", {}, () => [
147
+ $(l(j), { variant: "body2" }, {
148
+ default: m(() => [
149
+ U(M(d.emptyStateTitle), 1)
150
+ ]),
151
+ _: 1
152
+ })
153
+ ], !0)
154
+ ])) : y("", !0)
115
155
  ], 16));
116
156
  }
117
157
  });
118
158
  export {
119
- le as default
159
+ ue as default
120
160
  };