@ironsource/shared-ui 2.1.7-rc.11 → 2.1.7-rc.13

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 (31) hide show
  1. package/DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css +1 -0
  2. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
  3. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
  4. package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
  5. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
  6. package/components/input/v4/TextField.vue.js +3 -3
  7. package/components/input/v4/TextField.vue2.js +1 -1
  8. package/components/table/v4/DataGrid.vue.d.ts +4 -0
  9. package/components/table/v4/DataGrid.vue.js +3 -3
  10. package/components/table/v4/DataGrid.vue2.js +130 -122
  11. package/components/table/v4/MultipleDataGrid.vue.d.ts +11 -0
  12. package/components/table/v4/MultipleDataGrid.vue.js +5 -5
  13. package/components/table/v4/MultipleDataGrid.vue2.js +114 -87
  14. package/components/table/v4/index.d.ts +15 -0
  15. package/components/table-cells/common/Editable.common.js +37 -26
  16. package/components/table-cells/common/EditableContext.d.ts +1 -0
  17. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  18. package/components/table-cells/v4/EditableV4.vue.js +5 -5
  19. package/components/table-cells/v4/EditableV4.vue2.js +18 -17
  20. package/components/table-cells/v4/index.d.ts +20 -1
  21. package/components/tabs/v4/TabsV4.vue.js +4 -4
  22. package/components/tabs/v4/TabsV4.vue2.js +37 -40
  23. package/index.d.ts +70 -2
  24. package/package.json +1 -1
  25. package/DataGrid.vue_vue_type_style_index_0_scoped_ff47417d_lang.css +0 -1
  26. package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
  27. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_29f00d79_lang.css +0 -1
  28. package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
  29. package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +0 -1
  30. package/components/table/v4/utils/utils.d.ts +0 -3
  31. package/components/table/v4/utils/utils.js +0 -5
@@ -0,0 +1 @@
1
+ .sticky[data-v-706b324e]{position:sticky}.table-container[data-v-706b324e]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-706b324e]{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-706b324e]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-706b324e]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-706b324e]{width:13.75rem}.table-header.isStickyHeader[data-v-706b324e]{z-index:calc(var(--6e46e9f4) + 3);top:0}.table-head-container[data-v-706b324e]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-706b324e]{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-706b324e]{display:inline-table}.table-header-actions[data-v-706b324e]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-706b324e]{position:relative}.table-row.loading[data-v-706b324e]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-706b324e]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-706b324e]{border-bottom:none}.expanded-row[data-v-706b324e]{grid-column:var(--bd8b5530);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-706b324e]{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-706b324e]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-706b324e],table th[data-v-706b324e]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-706b324e]:first-of-type,table th[data-v-706b324e]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-706b324e]:last-of-type,table th[data-v-706b324e]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-706b324e],table th.expand-toggle-cell[data-v-706b324e]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-706b324e]{border-bottom:none;z-index:calc(var(--6e46e9f4) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-706b324e]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--03c6ae61)}table>thead>tr>th[data-v-706b324e]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.bordered[data-v-706b324e]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-706b324e]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-706b324e]{justify-content:flex-end}table>thead>tr>th.isSortable[data-v-706b324e]{cursor:pointer}table>thead.sticky[data-v-706b324e]{position:sticky;top:0;background:white}table>thead.isStickyHeader[data-v-706b324e]{z-index:calc(var(--6e46e9f4) + 2);top:calc(var(--spacing-800) - 1px)}table>tbody[data-v-706b324e]{display:block}table>tbody>*>tr[data-v-706b324e]{background-color:var(--background-default);min-height:var(--1c8cc6ae);height:auto;display:grid;align-items:center;grid-template-columns:var(--03c6ae61)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-706b324e]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-706b324e],table>tbody>*>tr.activeMenu>td[data-v-706b324e]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-706b324e]{background-color:var(--background-default);border:none;min-width:0;display:flex;min-height:var(--1c8cc6ae);height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-706b324e]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-706b324e]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-706b324e]{justify-content:flex-end;text-align:right}.section-container[data-v-706b324e]{left:0}.sections[data-v-706b324e]{display:flex}.section[data-v-706b324e]{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-706b324e]{width:100%}.empty-state[data-v-706b324e]{min-height:250px}.floating-row[data-v-706b324e]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--6e46e9f4) + 1)}.floating-row *[data-v-706b324e-s]{pointer-events:auto}
@@ -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
+ .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)}
@@ -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";
@@ -175,6 +175,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
175
175
  row: import("@vueuse/core").UseVirtualListItem<Row>;
176
176
  gridColumnTemplate: any;
177
177
  }): any;
178
+ "floating-row"?(_: {
179
+ row: import("@vueuse/core").UseVirtualListItem<Row>;
180
+ rowIndex: number;
181
+ }): any;
178
182
  "empty-state"?(_: {}): any;
179
183
  footer?(_: {}): any;
180
184
  }>;
@@ -1,7 +1,7 @@
1
1
  import o from "./DataGrid.vue2.js";
2
- /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_ff47417d_lang.css"; //*');
4
- const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-ff47417d"]]);
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css"; //*');
4
+ const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-706b324e"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,35 +1,37 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_ff47417d_lang.css"; import { defineComponent as le, useCssVars as ie, unref as t, useSlots as de, computed as v, openBlock as l, createElementBlock as d, createElementVNode as u, normalizeStyle as C, normalizeClass as f, renderSlot as c, createVNode as h, withCtx as T, createTextVNode as E, toDisplayString as w, isRef as oe, createCommentVNode as r, Fragment as B, renderList as I, createBlock as z, mergeProps as ne } from "vue";
2
- import p from "../../typography/v4/Typography.vue.js";
3
- import ce from "../../skeleton/v4/SkeletonV4.vue.js";
4
- import re from "../../emptyState/v4/EmptyStateV4.vue.js";
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css"; import { defineComponent as ie, useCssVars as de, unref as t, useSlots as oe, computed as v, openBlock as l, createElementBlock as i, createElementVNode as u, normalizeStyle as T, normalizeClass as f, renderSlot as c, createVNode as h, withCtx as E, createTextVNode as w, toDisplayString as I, isRef as ne, createCommentVNode as r, Fragment as B, renderList as p, createBlock as z, mergeProps as ce } from "vue";
2
+ import A from "../../typography/v4/Typography.vue.js";
3
+ import re from "../../skeleton/v4/SkeletonV4.vue.js";
4
+ import ue from "../../emptyState/v4/EmptyStateV4.vue.js";
5
5
  import U from "../../checkbox/v4/CheckboxV4.vue.js";
6
6
  import { TableTestIdModifiers as S } from "../../../testids/index.js";
7
- import { tableCommon as ue } from "../common/Table.common.js";
8
- import he from "./SortIcon.vue.js";
9
- import ye from "./HelpIcon.vue.js";
10
- import fe from "./ExpandRowToggle.vue.js";
11
- import Se from "../../search/v4/SearchV4.vue.js";
12
- import { useVModel as ke } from "@vueuse/core";
13
- import { getEmptyVariant as me, getEmptySubtitle as ge } from "./utils/utils.js";
14
- const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], xe = ["data-testid"], Ce = { class: "search-wrapper" }, Te = ["data-testid"], Ee = ["data-testid"], we = {
7
+ import { tableCommon as he } from "../common/Table.common.js";
8
+ import ye from "./SortIcon.vue.js";
9
+ import fe from "./HelpIcon.vue.js";
10
+ import Se from "./ExpandRowToggle.vue.js";
11
+ import ke from "../../search/v4/SearchV4.vue.js";
12
+ import { useVModel as ge } from "@vueuse/core";
13
+ const me = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], xe = { class: "search-wrapper" }, Ce = ["data-testid"], Te = ["data-testid"], Ee = {
15
14
  key: 0,
16
15
  class: "checkbox-cell"
17
- }, Be = {
16
+ }, we = {
18
17
  key: 1,
19
18
  class: "expand-toggle-cell"
20
- }, Ie = ["onClick"], pe = { class: "table-head-container" }, Ae = ["data-testid"], Ve = ["onMouseenter", "onClick"], Me = {
19
+ }, Ie = ["onClick"], Be = { class: "table-head-container" }, pe = ["data-testid"], Ae = ["onMouseenter", "onClick"], Le = {
21
20
  key: 0,
22
21
  class: "checkbox-cell"
23
- }, Pe = {
22
+ }, Me = {
24
23
  key: 1,
25
24
  class: "expand-toggle-cell"
26
- }, He = {
25
+ }, Pe = {
27
26
  key: 2,
28
27
  class: "expanded-row"
29
- }, Le = { key: 1 }, Ne = {
28
+ }, Ve = {
29
+ key: 3,
30
+ class: "floating-row"
31
+ }, He = { key: 1 }, Ne = {
30
32
  key: 0,
31
33
  class: "table-footer"
32
- }, Xe = /* @__PURE__ */ le({
34
+ }, Ke = /* @__PURE__ */ ie({
33
35
  __name: "DataGrid",
34
36
  props: {
35
37
  title: { default: "" },
@@ -38,8 +40,8 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
38
40
  sections: { default: null },
39
41
  sort: { default: null },
40
42
  selection: { default: null },
41
- getRowId: { type: Function, default: (s, m) => m },
42
- selectedMatcher: { type: Function, default: (s, m) => s === m },
43
+ getRowId: { type: Function, default: (s, g) => g },
44
+ selectedMatcher: { type: Function, default: (s, g) => s === g },
43
45
  isSticky: { type: Boolean, default: !0 },
44
46
  isStickyHeader: { type: Boolean, default: !1 },
45
47
  isLoading: { type: Boolean, default: !1 },
@@ -59,75 +61,75 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
59
61
  zIndexBase: { default: 100 }
60
62
  },
61
63
  emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
62
- setup(s, { expose: m, emit: y }) {
64
+ setup(s, { expose: g, emit: y }) {
63
65
  const o = s;
64
- ie((a) => ({
65
- "2370adac": s.zIndexBase,
66
- "78406f20": t(K),
67
- "31ad3a19": t(H),
68
- "03815261": t(J)
66
+ de((a) => ({
67
+ "6e46e9f4": s.zIndexBase,
68
+ bd8b5530: t(K),
69
+ "03c6ae61": t(V),
70
+ "1c8cc6ae": t(J)
69
71
  }));
70
- const b = de(), {
72
+ const b = oe(), {
71
73
  list: P,
72
74
  containerProps: G,
73
75
  wrapperProps: Y,
74
- activeRow: A,
75
- gridColumnTemplate: H,
76
+ activeRow: $,
77
+ gridColumnTemplate: V,
76
78
  toggleSortOrder: Q,
77
- columnsStickyPositions: L,
79
+ columnsStickyPositions: H,
78
80
  hasSearchSlot: W,
79
81
  containerStyle: j,
80
82
  onScroll: N,
81
83
  savingRows: F,
82
- hasExpandSlot: $,
84
+ hasExpandSlot: R,
83
85
  toggleExpandRow: q,
84
86
  cssRowHeight: J,
85
87
  cssExpandGridCol: K,
86
- isRowExpanded: V,
88
+ isRowExpanded: L,
87
89
  hasCheckboxes: O,
88
90
  activeMenuRow: X,
89
91
  scrollTo: Z
90
- } = ue(o, y), D = v(() => !!b.footer), g = ke(o, "search", y), _ = v(() => o.selection.length || 0), M = v(() => {
91
- const a = o.rows.map((i, e) => o.getRowId(i, e));
92
- return a.length && a.every((i) => R(i));
93
- }), R = (a) => o.selection.findIndex((i) => o.selectedMatcher(a, i)) !== -1, ee = (a) => {
94
- R(a) ? (x(
92
+ } = he(o, y), D = v(() => !!b.footer), m = ge(o, "search", y), _ = v(() => o.selection.length || 0), M = v(() => {
93
+ const a = o.rows.map((d, e) => o.getRowId(d, e));
94
+ return a.length && a.every((d) => x(d));
95
+ }), x = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1, ee = (a) => {
96
+ x(a) ? (C(
95
97
  o.selection.filter(
96
- (i) => !o.selectedMatcher(a, i)
98
+ (d) => !o.selectedMatcher(a, d)
97
99
  )
98
- ), y("selectRow", !1)) : (x([...o.selection, a]), y("selectRow", !0));
100
+ ), y("selectRow", !1)) : (C([...o.selection, a]), y("selectRow", !0));
99
101
  }, te = () => {
100
102
  if (M.value)
101
- x([]), y("selectAll", !1);
103
+ C([]), y("selectAll", !1);
102
104
  else {
103
- const a = o.rows.map((i, e) => o.getRowId(i, e)).filter((i) => !R(i));
104
- x([...o.selection, ...a]), y("selectAll", !0);
105
+ const a = o.rows.map((d, e) => o.getRowId(d, e)).filter((d) => !x(d));
106
+ C([...o.selection, ...a]), y("selectAll", !0);
105
107
  }
106
- }, x = (a) => {
108
+ }, C = (a) => {
107
109
  y("update:selection", a);
108
- }, se = v(
109
- () => me(o.emptyStateVariant, g.value)
110
- ), ae = v(
111
- () => ge(o.emptyStateSubtitle, g.value)
110
+ }, se = (a) => !o.isLoading && $.value === a, ae = v(
111
+ () => o.emptyStateVariant ?? (m.value ? "no-results" : "no-data")
112
+ ), le = v(
113
+ () => o.emptyStateSubtitle ? o.emptyStateSubtitle : m.value ? "Search again with different filters" : void 0
112
114
  );
113
- return m({
115
+ return g({
114
116
  scrollTo: Z
115
- }), (a, i) => (l(), d("div", {
117
+ }), (a, d) => (l(), i("div", {
116
118
  class: "table-container",
117
119
  "data-testid": `${s.testId}-${t(S).CONTAINER}`,
118
- onMouseleave: i[3] || (i[3] = (e) => A.value = null)
120
+ onMouseleave: d[3] || (d[3] = (e) => $.value = null)
119
121
  }, [
120
122
  u("table", {
121
123
  ref: t(G).ref,
122
- style: C(t(j)),
124
+ style: T(t(j)),
123
125
  class: f({
124
126
  hasFooter: t(D)
125
127
  }),
126
128
  "data-testid": `${s.testId}-${t(S).TABLE}`,
127
- onScrollPassive: i[2] || (i[2] = //@ts-ignore
129
+ onScrollPassive: d[2] || (d[2] = //@ts-ignore
128
130
  (...e) => t(N) && t(N)(...e))
129
131
  }, [
130
- s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (l(), d("div", {
132
+ s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (l(), i("div", {
131
133
  key: 0,
132
134
  class: f(["table-header", { isStickyHeader: s.isStickyHeader }]),
133
135
  "data-testid": `${s.testId}-${t(S).HEADER}`
@@ -137,39 +139,39 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
137
139
  "data-testid": `${s.testId}-${t(S).TITLE}`
138
140
  }, [
139
141
  c(a.$slots, "title", {}, () => [
140
- h(t(p), { variant: "h3" }, {
141
- default: T(() => [
142
- E(w(s.title), 1)
142
+ h(t(A), { variant: "h3" }, {
143
+ default: E(() => [
144
+ w(I(s.title), 1)
143
145
  ]),
144
146
  _: 1
145
147
  })
146
- ], !0)
147
- ], 8, Re),
148
+ ])
149
+ ], 8, $e),
148
150
  u("div", {
149
151
  class: "table-header-right",
150
152
  "data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
151
153
  }, [
152
154
  s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
153
- u("div", Ce, [
154
- h(t(Se), {
155
- modelValue: t(g),
156
- "onUpdate:modelValue": i[0] || (i[0] = (e) => oe(g) ? g.value = e : null),
155
+ u("div", xe, [
156
+ h(t(ke), {
157
+ modelValue: t(m),
158
+ "onUpdate:modelValue": d[0] || (d[0] = (e) => ne(m) ? m.value = e : null),
157
159
  placeholder: s.searchPlaceholder,
158
160
  "auto-focus": s.searchAutoFocus,
159
161
  "test-id": s.testId,
160
- onOnClear: i[1] || (i[1] = (e) => y("onClearSearch"))
162
+ onOnClear: d[1] || (d[1] = (e) => y("onClearSearch"))
161
163
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
162
164
  ])
163
- ], !0) : r("", !0)
164
- ], 8, xe),
165
- t(b)["table-header-actions"] ? (l(), d("div", {
165
+ ]) : r("", !0)
166
+ ], 8, Re),
167
+ t(b)["table-header-actions"] ? (l(), i("div", {
166
168
  key: 0,
167
169
  class: "table-header-actions",
168
170
  "data-testid": `${s.testId}-${t(S).ACTIONS}`
169
171
  }, [
170
- c(a.$slots, "table-header-actions", {}, void 0, !0)
171
- ], 8, Te)) : r("", !0)
172
- ], 10, $e)) : r("", !0),
172
+ c(a.$slots, "table-header-actions")
173
+ ], 8, Ce)) : r("", !0)
174
+ ], 10, be)) : r("", !0),
173
175
  u("thead", {
174
176
  class: f({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
175
177
  }, [
@@ -177,27 +179,27 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
177
179
  class: "sections",
178
180
  "data-testid": `${s.testId}-${t(S).SECTIONS}`
179
181
  }, [
180
- (l(!0), d(B, null, I(s.sections, (e) => (l(), d("div", {
182
+ (l(!0), i(B, null, p(s.sections, (e) => (l(), i("div", {
181
183
  key: e.id,
182
184
  class: f(["section-container", { sticky: e.isSticky }])
183
185
  }, [
184
186
  c(a.$slots, `section-${e.id}`, {}, () => [
185
187
  u("div", {
186
- style: C({ width: e.width + "px" }),
188
+ style: T({ width: e.width + "px" }),
187
189
  class: f({ section: !0 })
188
190
  }, [
189
- h(t(p), { variant: "body2" }, {
190
- default: T(() => [
191
- E(w(e.title), 1)
191
+ h(t(A), { variant: "body2" }, {
192
+ default: E(() => [
193
+ w(I(e.title), 1)
192
194
  ]),
193
195
  _: 2
194
196
  }, 1024)
195
197
  ], 4)
196
- ], !0)
198
+ ])
197
199
  ], 2))), 128))
198
- ], 8, Ee),
200
+ ], 8, Te),
199
201
  u("tr", null, [
200
- t(O) ? (l(), d("th", we, [
202
+ t(O) ? (l(), i("th", Ee, [
201
203
  c(a.$slots, "select-all-checkbox", {}, () => [
202
204
  h(t(U), {
203
205
  disabled: s.isLoading,
@@ -205,10 +207,10 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
205
207
  "is-indeterminate": !t(M) && t(_) > 0,
206
208
  "onUpdate:isChecked": te
207
209
  }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
208
- ], !0)
210
+ ])
209
211
  ])) : r("", !0),
210
- t($) ? (l(), d("th", Be)) : r("", !0),
211
- (l(!0), d(B, null, I(s.columns, (e) => (l(), d("th", {
212
+ t(R) ? (l(), i("th", we)) : r("", !0),
213
+ (l(!0), i(B, null, p(s.columns, (e) => (l(), i("th", {
212
214
  key: e.id,
213
215
  class: f({
214
216
  sticky: e.isSticky,
@@ -218,24 +220,24 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
218
220
  isSortable: e.isSortable,
219
221
  [`column-${e.id}`]: !0
220
222
  }),
221
- style: C(e.isSticky ? t(L)[e.id] : null),
223
+ style: T(e.isSticky ? t(H)[e.id] : null),
222
224
  onClick: (k) => e.isSortable ? t(Q)(e) : null
223
225
  }, [
224
- u("div", pe, [
226
+ u("div", Be, [
225
227
  c(a.$slots, `header-${e.id}`, { column: e }, () => [
226
- h(t(p), { variant: "tableLabel" }, {
227
- default: T(() => [
228
- E(w(e.title), 1)
228
+ h(t(A), { variant: "tableLabel" }, {
229
+ default: E(() => [
230
+ w(I(e.title), 1)
229
231
  ]),
230
232
  _: 2
231
233
  }, 1024)
232
- ], !0),
233
- e.helpText ? (l(), z(ye, {
234
+ ]),
235
+ e.helpText ? (l(), z(fe, {
234
236
  key: 0,
235
237
  "hover-help-text": e.helpText,
236
238
  "hover-help-text-placement": e.helpTextPlacement
237
239
  }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
238
- e.isSortable && e.id === s.sort?.sortBy ? (l(), z(he, {
240
+ e.isSortable && e.id === s.sort?.sortBy ? (l(), z(ye, {
239
241
  key: 1,
240
242
  "sort-order": s.sort.sortOrder
241
243
  }, null, 8, ["sort-order"])) : r("", !0)
@@ -244,35 +246,35 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
244
246
  ])
245
247
  ], 2),
246
248
  u("tbody", null, [
247
- t(P).length > 0 ? (l(), d("div", ne({
249
+ t(P).length > 0 ? (l(), i("div", ce({
248
250
  key: 0,
249
251
  class: "table-body-wrapper",
250
252
  "data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
251
253
  }, t(Y)), [
252
- (l(!0), d(B, null, I(t(P), (e) => (l(), d("tr", {
254
+ (l(!0), i(B, null, p(t(P), (e) => (l(), i("tr", {
253
255
  key: e.index,
254
256
  class: f(["table-row", {
255
257
  loading: s.isLoading || s.isLoading && !e.data || t(F).includes(e.index),
256
- active: t(A) === e.index,
258
+ active: t($) === e.index,
257
259
  activeMenu: t(X) === e.index,
258
- expanded: t($) && t(V)(e.index)
260
+ expanded: t(R) && t(L)(e.index)
259
261
  }]),
260
- onMouseenter: (k) => A.value = e.index,
262
+ onMouseenter: (k) => $.value = e.index,
261
263
  onClick: (k) => y("clickRow", e.index)
262
264
  }, [
263
- t(O) ? (l(), d("td", Me, [
265
+ t(O) ? (l(), i("td", Le, [
264
266
  h(t(U), {
265
- "is-checked": R(s.getRowId(e.data, e.index)),
267
+ "is-checked": x(s.getRowId(e.data, e.index)),
266
268
  "onUpdate:isChecked": (k) => ee(s.getRowId(e.data, e.index))
267
269
  }, null, 8, ["is-checked", "onUpdate:isChecked"])
268
270
  ])) : r("", !0),
269
- t($) ? (l(), d("td", Pe, [
270
- h(fe, {
271
- expanded: t(V)(e.index),
271
+ t(R) ? (l(), i("td", Me, [
272
+ h(Se, {
273
+ expanded: t(L)(e.index),
272
274
  onClick: (k) => t(q)(e.index, k)
273
275
  }, null, 8, ["expanded", "onClick"])
274
276
  ])) : r("", !0),
275
- (l(!0), d(B, null, I(s.columns, (k, n) => (l(), d("td", {
277
+ (l(!0), i(B, null, p(s.columns, (k, n) => (l(), i("td", {
276
278
  key: n,
277
279
  class: f({
278
280
  sticky: s.columns[n].isSticky,
@@ -281,11 +283,11 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
281
283
  isTextRight: s.columns[n].isTextRight,
282
284
  [`column-${s.columns[n].id}`]: !0
283
285
  }),
284
- style: C(
285
- s.columns[n].isSticky ? t(L)[s.columns[n].id] : null
286
+ style: T(
287
+ s.columns[n].isSticky ? t(H)[s.columns[n].id] : null
286
288
  )
287
289
  }, [
288
- !s.isLoading || s.isLoading && e.data[n] ? (l(), d("div", {
290
+ !s.isLoading || s.isLoading && e.data[n] ? (l(), i("div", {
289
291
  key: 0,
290
292
  class: f(["table-cell", { last: n === e.data.length - 1 }])
291
293
  }, [
@@ -296,43 +298,49 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
296
298
  row: e,
297
299
  rowIndex: e.index
298
300
  }, () => [
299
- h(t(p), { variant: "body1" }, {
300
- default: T(() => [
301
- E(w(e.data[n]), 1)
301
+ h(t(A), { variant: "body1" }, {
302
+ default: E(() => [
303
+ w(I(e.data[n]), 1)
302
304
  ]),
303
305
  _: 2
304
306
  }, 1024)
305
- ], !0)
307
+ ])
306
308
  ], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
307
- h(t(ce), { round: "" })
308
- ], !0)
309
+ h(t(re), { round: "" })
310
+ ])
309
311
  ], 6))), 128)),
310
- t($) && t(V)(e.index) ? (l(), d("div", He, [
312
+ t(R) && t(L)(e.index) ? (l(), i("div", Pe, [
311
313
  c(a.$slots, "expanded", {
312
314
  row: e,
313
- gridColumnTemplate: t(H)
314
- }, void 0, !0)
315
+ gridColumnTemplate: t(V)
316
+ })
317
+ ])) : r("", !0),
318
+ se(e.index) ? (l(), i("div", Ve, [
319
+ c(a.$slots, "floating-row", {
320
+ row: e,
321
+ rowIndex: e.index
322
+ })
315
323
  ])) : r("", !0)
316
- ], 42, Ve))), 128))
317
- ], 16, Ae)) : (l(), d("div", Le, [
324
+ ], 42, Ae))), 128))
325
+ ], 16, pe)) : (l(), i("div", He, [
318
326
  c(a.$slots, "empty-state", {}, () => [
319
- h(t(re), {
327
+ h(t(ue), {
320
328
  class: "empty-state",
321
329
  title: s.emptyStateTitle,
322
- subtitle: t(ae),
323
- variant: t(se),
330
+ subtitle: t(le),
331
+ variant: t(ae),
324
332
  "test-id": `${s.testId}-${t(S).EMPTY_STATE}`
325
333
  }, null, 8, ["title", "subtitle", "variant", "test-id"])
326
- ], !0)
334
+ ])
327
335
  ]))
328
336
  ])
329
- ], 46, be),
330
- t(D) ? (l(), d("div", Ne, [
331
- c(a.$slots, "footer", {}, void 0, !0)
337
+ ], 46, ve),
338
+ t(D) ? (l(), i("div", Ne, [
339
+ c(a.$slots, "footer")
332
340
  ])) : r("", !0)
333
- ], 40, ve));
341
+ ], 40, me));
334
342
  }
335
343
  });
336
344
  export {
337
- Xe as default
345
+ Ke as default
338
346
  };
@@ -106,12 +106,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
106
106
  tablesSettings: TableSettings[];
107
107
  loadingAndEmptyStatesColumns: Column[];
108
108
  }>, Partial<Record<string, (_: {
109
+ column: Column;
110
+ }) => any>> & Partial<Record<string, (_: {
109
111
  cell: any;
110
112
  isLoading: any;
111
113
  cellIndex: any;
112
114
  row: any;
113
115
  rowIndex: any;
116
+ }) => any>> & Partial<Record<string, (_: {
117
+ column: Column;
114
118
  }) => any>> & {
119
+ title?(_: {}): any;
120
+ search?(_: {}): any;
121
+ "table-header-actions"?(_: {}): any;
122
+ "floating-row"?(_: {
123
+ row: import("@vueuse/core").UseVirtualListItem<import("@is-ssp/table/common/Table.types").Row>;
124
+ rowIndex: number;
125
+ }): any;
115
126
  "empty-state"?(_: {}): any;
116
127
  }>;
117
128
  export default _default;
@@ -1,7 +1,7 @@
1
- import o from "./MultipleDataGrid.vue2.js";
2
- /* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_29f00d79_lang.css"; //*');
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-29f00d79"]]);
1
+ import e from "./MultipleDataGrid.vue2.js";
2
+ /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css"; //*');
4
+ const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-82ba0e12"]]);
5
5
  export {
6
- s as default
6
+ p as default
7
7
  };