shared-ritm 1.3.118 → 1.3.120

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.
@@ -16,6 +16,7 @@ export interface TableColumn {
16
16
  };
17
17
  format?: (val: any) => any;
18
18
  html?: boolean;
19
+ checkboxLabel?: string;
19
20
  }
20
21
  export interface FilterOption {
21
22
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.3.118",
3
+ "version": "1.3.120",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -87,7 +87,10 @@ const drawerWidth = computed(() => (isTablet.value ? 250 : 275))
87
87
  const drawerMiniWidth = computed(() => (isTablet.value ? 47 : 72))
88
88
 
89
89
  function toggleSidebarMini(value: boolean): void {
90
- if (!isFixSidebar.value && !isTablet.value) isSidebarMini.value = value
90
+ if (!isFixSidebar.value && !isTablet.value) {
91
+ isSidebarMini.value = value
92
+ window.dispatchEvent(new CustomEvent('toggle-sidebar'))
93
+ }
91
94
  }
92
95
 
93
96
  function openDrawerIsTablet() {
@@ -18,7 +18,7 @@ export function useColumnSelector(allColumns: ColumnConfig[], fixedColumnNames:
18
18
  type: 'checkbox',
19
19
  model: [...selectedColumnNames.value],
20
20
  items: allColumns.map(col => ({
21
- label: col.label,
21
+ label: col.checkboxLabel ?? col.label,
22
22
  value: col.name,
23
23
  disable: fixedColumnNames.includes(col.name),
24
24
  })),
@@ -17,6 +17,7 @@ export interface TableColumn {
17
17
  }
18
18
  format?: (val: any) => any
19
19
  html?: boolean
20
+ checkboxLabel?: string
20
21
  }
21
22
 
22
23
  export interface FilterOption {