@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.
- package/assets/css/features/media.css +14 -0
- package/assets/css/features/office.css +11 -0
- package/assets/css/global.css +5 -9
- package/assets/css/overlay.css +28 -3
- package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs +16 -2
- package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-command.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-command.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-gallery.mjs +4 -3
- package/fesm2022/shival99-z-ui-components-z-gallery.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-loading.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-loading.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-menu.mjs +4 -4
- package/fesm2022/shival99-z-ui-components-z-menu.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-modal.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-modal.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-overlay.mjs +32 -29
- package/fesm2022/shival99-z-ui-components-z-overlay.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-select.mjs +20 -2
- package/fesm2022/shival99-z-ui-components-z-select.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-table.mjs +7 -7
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-services-excel.mjs +672 -0
- package/fesm2022/shival99-z-ui-services-excel.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-services-office.mjs +123 -0
- package/fesm2022/shival99-z-ui-services-office.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-services.mjs +2 -778
- package/fesm2022/shival99-z-ui-services.mjs.map +1 -1
- package/package.json +22 -6
- package/types/shival99-z-ui-components-z-autocomplete.d.ts +2 -1
- package/types/shival99-z-ui-components-z-calendar.d.ts +4 -4
- package/types/shival99-z-ui-components-z-overlay.d.ts +11 -12
- package/types/shival99-z-ui-components-z-select.d.ts +4 -2
- package/types/shival99-z-ui-components-z-table.d.ts +2 -2
- package/types/shival99-z-ui-services-excel.d.ts +36 -0
- package/types/shival99-z-ui-services-office.d.ts +15 -0
- 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,
|
|
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
|
|
7935
|
-
const groupId = element.dataset
|
|
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
|
-
|
|
8030
|
+
// `isScrolling` là 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) +
|