@shival99/z-ui 2.5.2 → 2.5.4

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 (39) hide show
  1. package/assets/css/features/media.css +14 -0
  2. package/assets/css/features/office.css +11 -0
  3. package/assets/css/global.css +5 -9
  4. package/assets/css/overlay.css +28 -3
  5. package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs +16 -2
  6. package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs.map +1 -1
  7. package/fesm2022/shival99-z-ui-components-z-command.mjs +2 -2
  8. package/fesm2022/shival99-z-ui-components-z-command.mjs.map +1 -1
  9. package/fesm2022/shival99-z-ui-components-z-drawer.mjs +2 -2
  10. package/fesm2022/shival99-z-ui-components-z-drawer.mjs.map +1 -1
  11. package/fesm2022/shival99-z-ui-components-z-gallery.mjs +4 -3
  12. package/fesm2022/shival99-z-ui-components-z-gallery.mjs.map +1 -1
  13. package/fesm2022/shival99-z-ui-components-z-loading.mjs +2 -2
  14. package/fesm2022/shival99-z-ui-components-z-loading.mjs.map +1 -1
  15. package/fesm2022/shival99-z-ui-components-z-menu.mjs +4 -4
  16. package/fesm2022/shival99-z-ui-components-z-menu.mjs.map +1 -1
  17. package/fesm2022/shival99-z-ui-components-z-modal.mjs +2 -2
  18. package/fesm2022/shival99-z-ui-components-z-modal.mjs.map +1 -1
  19. package/fesm2022/shival99-z-ui-components-z-overlay.mjs +32 -29
  20. package/fesm2022/shival99-z-ui-components-z-overlay.mjs.map +1 -1
  21. package/fesm2022/shival99-z-ui-components-z-select.mjs +20 -2
  22. package/fesm2022/shival99-z-ui-components-z-select.mjs.map +1 -1
  23. package/fesm2022/shival99-z-ui-components-z-table.mjs +7 -7
  24. package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
  25. package/fesm2022/shival99-z-ui-services-excel.mjs +672 -0
  26. package/fesm2022/shival99-z-ui-services-excel.mjs.map +1 -0
  27. package/fesm2022/shival99-z-ui-services-office.mjs +123 -0
  28. package/fesm2022/shival99-z-ui-services-office.mjs.map +1 -0
  29. package/fesm2022/shival99-z-ui-services.mjs +2 -778
  30. package/fesm2022/shival99-z-ui-services.mjs.map +1 -1
  31. package/package.json +22 -6
  32. package/types/shival99-z-ui-components-z-autocomplete.d.ts +2 -1
  33. package/types/shival99-z-ui-components-z-calendar.d.ts +4 -4
  34. package/types/shival99-z-ui-components-z-overlay.d.ts +11 -12
  35. package/types/shival99-z-ui-components-z-select.d.ts +4 -2
  36. package/types/shival99-z-ui-components-z-table.d.ts +2 -2
  37. package/types/shival99-z-ui-services-excel.d.ts +36 -0
  38. package/types/shival99-z-ui-services-office.d.ts +15 -0
  39. package/types/shival99-z-ui-services.d.ts +151 -194
@@ -19,7 +19,8 @@ import { ZPopoverDirective } from '@shival99/z-ui/components/z-popover';
19
19
  import { ZSkeletonComponent } from '@shival99/z-ui/components/z-skeleton';
20
20
  import { ZTooltipDirective } from '@shival99/z-ui/components/z-tooltip';
21
21
  import { ZSafeHtmlPipe, ZFormatNumPipe } from '@shival99/z-ui/pipes';
22
- import { ZTranslateService, ZExcelService, ZCacheService } from '@shival99/z-ui/services';
22
+ import { ZTranslateService, ZCacheService } from '@shival99/z-ui/services';
23
+ import { ZExcelService } from '@shival99/z-ui/services/excel';
23
24
  import { zMergeClasses } from '@shival99/z-ui/utils';
24
25
  import { tableFeatures, createSortedRowModel, createPaginatedRowModel, createFilteredRowModel, createFacetedUniqueValues, createFacetedRowModel, createFacetedMinMaxValues, createExpandedRowModel, stockFeatures, injectTable, FlexRenderDirective } from '@tanstack/angular-table';
25
26
  import { injectVirtualizer, defaultRangeExtractor, elementScroll } from '@tanstack/angular-virtual';
@@ -7931,8 +7932,8 @@ class ZTableComponent {
7931
7932
  let shadowId = null;
7932
7933
  let shadowTop = -1;
7933
7934
  for (const groupRow of groupRows) {
7934
- const element = groupRow.nativeElement;
7935
- const groupId = element.dataset['groupId'];
7935
+ const { nativeElement: element } = groupRow;
7936
+ const { groupId } = element.dataset;
7936
7937
  if (!groupId) {
7937
7938
  continue;
7938
7939
  }
@@ -8026,7 +8027,8 @@ class ZTableComponent {
8026
8027
  return;
8027
8028
  }
8028
8029
  // measure() rebuilds every offset, so never re-broadcast mid-scroll.
8029
- if (Math.abs(nextEstimate - currentEstimate) >= 1 && !this.virtualizer.isScrolling) {
8030
+ // `isScrolling` signal thiếu cặp ngoặc thì `!fn` luôn false và cả nhánh này thành code chết.
8031
+ if (Math.abs(nextEstimate - currentEstimate) >= 1 && !this.virtualizer.isScrolling()) {
8030
8032
  this._dynamicEstimateHeight = nextEstimate;
8031
8033
  this.virtualizer.measure();
8032
8034
  }
@@ -10788,9 +10790,7 @@ class ZTableComponent {
10788
10790
  element.style.setProperty('white-space', 'nowrap', 'important');
10789
10791
  }
10790
10792
  measurementContainer.appendChild(clone);
10791
- const intrinsicWidth = cloneElements.reduce((maxWidth, element) => {
10792
- return Math.max(maxWidth, element.scrollWidth);
10793
- }, 0);
10793
+ const intrinsicWidth = cloneElements.reduce((maxWidth, element) => Math.max(maxWidth, element.scrollWidth), 0);
10794
10794
  const cellStyle = getComputedStyle(cell);
10795
10795
  const horizontalInset = Number.parseFloat(cellStyle.paddingLeft) +
10796
10796
  Number.parseFloat(cellStyle.paddingRight) +