@reforgium/data-grid 2.5.1 → 2.5.2
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/fesm2022/{reforgium-data-grid-grid-overlay-scroll.feature-DlgNSvfN.mjs → reforgium-data-grid-grid-overlay-scroll.feature-HnvU7zek.mjs} +2 -2
- package/fesm2022/{reforgium-data-grid-reforgium-data-grid-D_DDE2E7.mjs → reforgium-data-grid-reforgium-data-grid-BkUQEsdU.mjs} +71 -54
- package/fesm2022/reforgium-data-grid.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as computeScrollbarState, a as clampThumbTop, m as mapThumbTopToScrollTop } from './reforgium-data-grid-reforgium-data-grid-
|
|
1
|
+
import { c as computeScrollbarState, a as clampThumbTop, m as mapThumbTopToScrollTop } from './reforgium-data-grid-reforgium-data-grid-BkUQEsdU.mjs';
|
|
2
2
|
|
|
3
3
|
function createGridOverlayScrollFeature(ctx) {
|
|
4
4
|
const showScrollbar = () => {
|
|
@@ -76,4 +76,4 @@ function createGridOverlayScrollFeature(ctx) {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export { createGridOverlayScrollFeature };
|
|
79
|
-
//# sourceMappingURL=reforgium-data-grid-grid-overlay-scroll.feature-
|
|
79
|
+
//# sourceMappingURL=reforgium-data-grid-grid-overlay-scroll.feature-HnvU7zek.mjs.map
|
|
@@ -1360,6 +1360,7 @@ class DataGridCellComponent {
|
|
|
1360
1360
|
}
|
|
1361
1361
|
return displayValue;
|
|
1362
1362
|
}, ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
1363
|
+
resolvedAlign = computed(() => this.column().align ?? 'left', ...(ngDevMode ? [{ debugName: "resolvedAlign" }] : []));
|
|
1363
1364
|
resolveTypeTemplate(type) {
|
|
1364
1365
|
if (!type) {
|
|
1365
1366
|
return undefined;
|
|
@@ -1374,31 +1375,39 @@ class DataGridCellComponent {
|
|
|
1374
1375
|
@let val = $any(value());
|
|
1375
1376
|
@let pinned = isPinned();
|
|
1376
1377
|
|
|
1377
|
-
@switch (type()) {
|
|
1378
|
-
@case ('tpl') {
|
|
1379
|
-
<
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
}
|
|
1378
|
+
@switch (type()) {
|
|
1379
|
+
@case ('tpl') {
|
|
1380
|
+
<div class="re-dg-cell-template" [style.justify-content]="resolvedAlign()" [style.text-align]="resolvedAlign()">
|
|
1381
|
+
<ng-container
|
|
1382
|
+
[ngTemplateOutlet]="col.renderTemplate"
|
|
1383
|
+
[ngTemplateOutletContext]="{ $implicit: val, value: val, row, col, index: index(), isPinned: pinned }"
|
|
1384
|
+
/>
|
|
1385
|
+
</div>
|
|
1386
|
+
}
|
|
1387
|
+
@case ('globalTypeTpl') {
|
|
1388
|
+
<div class="re-dg-cell-template" [style.justify-content]="resolvedAlign()" [style.text-align]="resolvedAlign()">
|
|
1389
|
+
<ng-container
|
|
1390
|
+
[ngTemplateOutlet]="resolveTypeTemplate(col.type)"
|
|
1391
|
+
[ngTemplateOutletContext]="{ $implicit: val, value: val, row, col, index: index(), isPinned: pinned }"
|
|
1392
|
+
/>
|
|
1393
|
+
</div>
|
|
1394
|
+
}
|
|
1395
|
+
@case ('globalDataTpl') {
|
|
1396
|
+
<div class="re-dg-cell-template" [style.justify-content]="resolvedAlign()" [style.text-align]="resolvedAlign()">
|
|
1397
|
+
<ng-container
|
|
1398
|
+
[ngTemplateOutlet]="vm.globalDataCellTpls.get(col.key)"
|
|
1399
|
+
[ngTemplateOutletContext]="{ $implicit: val, value: val, row, col, index: index(), isPinned: pinned }"
|
|
1400
|
+
/>
|
|
1401
|
+
</div>
|
|
1402
|
+
}
|
|
1403
|
+
@case ('globalRowTpl') {
|
|
1404
|
+
<div class="re-dg-cell-template" [style.justify-content]="resolvedAlign()" [style.text-align]="resolvedAlign()">
|
|
1405
|
+
<ng-container
|
|
1406
|
+
[ngTemplateOutlet]="vm.globalRowCellTpls.get(col.key)"
|
|
1407
|
+
[ngTemplateOutletContext]="{ $implicit: val, value: val, row, col, index: index(), isPinned: pinned }"
|
|
1408
|
+
/>
|
|
1409
|
+
</div>
|
|
1410
|
+
}
|
|
1402
1411
|
@case ('date') {
|
|
1403
1412
|
<span class="re-dg-cell-text">{{ val | date: col?.typeParams }}</span>
|
|
1404
1413
|
}
|
|
@@ -1412,7 +1421,7 @@ class DataGridCellComponent {
|
|
|
1412
1421
|
<span class="re-dg-cell-text">{{ val }}</span>
|
|
1413
1422
|
}
|
|
1414
1423
|
}
|
|
1415
|
-
`, isInline: true, styles: [":host{display:block;width:100%;min-width:0;text-align:inherit}.re-dg-cell-text{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;line-height:var(--re-data-grid-cell-line-height, 1.2);-webkit-box-orient:vertical;-webkit-line-clamp:var(--re-data-grid-cell-max-lines, 2)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "pipe", type: DecimalPipe, name: "number" }] });
|
|
1424
|
+
`, isInline: true, styles: [":host{display:block;width:100%;min-width:0;text-align:inherit}.re-dg-cell-text{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;line-height:var(--re-data-grid-cell-line-height, 1.2);-webkit-box-orient:vertical;-webkit-line-clamp:var(--re-data-grid-cell-max-lines, 2)}.re-dg-cell-template{display:flex;width:100%;min-width:0}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "pipe", type: DecimalPipe, name: "number" }] });
|
|
1416
1425
|
}
|
|
1417
1426
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DataGridCellComponent, decorators: [{
|
|
1418
1427
|
type: Component,
|
|
@@ -1422,31 +1431,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1422
1431
|
@let val = $any(value());
|
|
1423
1432
|
@let pinned = isPinned();
|
|
1424
1433
|
|
|
1425
|
-
@switch (type()) {
|
|
1426
|
-
@case ('tpl') {
|
|
1427
|
-
<
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
}
|
|
1434
|
+
@switch (type()) {
|
|
1435
|
+
@case ('tpl') {
|
|
1436
|
+
<div class="re-dg-cell-template" [style.justify-content]="resolvedAlign()" [style.text-align]="resolvedAlign()">
|
|
1437
|
+
<ng-container
|
|
1438
|
+
[ngTemplateOutlet]="col.renderTemplate"
|
|
1439
|
+
[ngTemplateOutletContext]="{ $implicit: val, value: val, row, col, index: index(), isPinned: pinned }"
|
|
1440
|
+
/>
|
|
1441
|
+
</div>
|
|
1442
|
+
}
|
|
1443
|
+
@case ('globalTypeTpl') {
|
|
1444
|
+
<div class="re-dg-cell-template" [style.justify-content]="resolvedAlign()" [style.text-align]="resolvedAlign()">
|
|
1445
|
+
<ng-container
|
|
1446
|
+
[ngTemplateOutlet]="resolveTypeTemplate(col.type)"
|
|
1447
|
+
[ngTemplateOutletContext]="{ $implicit: val, value: val, row, col, index: index(), isPinned: pinned }"
|
|
1448
|
+
/>
|
|
1449
|
+
</div>
|
|
1450
|
+
}
|
|
1451
|
+
@case ('globalDataTpl') {
|
|
1452
|
+
<div class="re-dg-cell-template" [style.justify-content]="resolvedAlign()" [style.text-align]="resolvedAlign()">
|
|
1453
|
+
<ng-container
|
|
1454
|
+
[ngTemplateOutlet]="vm.globalDataCellTpls.get(col.key)"
|
|
1455
|
+
[ngTemplateOutletContext]="{ $implicit: val, value: val, row, col, index: index(), isPinned: pinned }"
|
|
1456
|
+
/>
|
|
1457
|
+
</div>
|
|
1458
|
+
}
|
|
1459
|
+
@case ('globalRowTpl') {
|
|
1460
|
+
<div class="re-dg-cell-template" [style.justify-content]="resolvedAlign()" [style.text-align]="resolvedAlign()">
|
|
1461
|
+
<ng-container
|
|
1462
|
+
[ngTemplateOutlet]="vm.globalRowCellTpls.get(col.key)"
|
|
1463
|
+
[ngTemplateOutletContext]="{ $implicit: val, value: val, row, col, index: index(), isPinned: pinned }"
|
|
1464
|
+
/>
|
|
1465
|
+
</div>
|
|
1466
|
+
}
|
|
1450
1467
|
@case ('date') {
|
|
1451
1468
|
<span class="re-dg-cell-text">{{ val | date: col?.typeParams }}</span>
|
|
1452
1469
|
}
|
|
@@ -1460,7 +1477,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1460
1477
|
<span class="re-dg-cell-text">{{ val }}</span>
|
|
1461
1478
|
}
|
|
1462
1479
|
}
|
|
1463
|
-
`, imports: [NgTemplateOutlet, DatePipe, DecimalPipe], styles: [":host{display:block;width:100%;min-width:0;text-align:inherit}.re-dg-cell-text{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;line-height:var(--re-data-grid-cell-line-height, 1.2);-webkit-box-orient:vertical;-webkit-line-clamp:var(--re-data-grid-cell-max-lines, 2)}\n"] }]
|
|
1480
|
+
`, imports: [NgTemplateOutlet, DatePipe, DecimalPipe], styles: [":host{display:block;width:100%;min-width:0;text-align:inherit}.re-dg-cell-text{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;line-height:var(--re-data-grid-cell-line-height, 1.2);-webkit-box-orient:vertical;-webkit-line-clamp:var(--re-data-grid-cell-max-lines, 2)}.re-dg-cell-template{display:flex;width:100%;min-width:0}\n"] }]
|
|
1464
1481
|
}], propDecorators: { index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: true }] }], item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: true }] }], isPinned: [{ type: i0.Input, args: [{ isSignal: true, alias: "isPinned", required: false }] }], column: [{ type: i0.Input, args: [{ isSignal: true, alias: "column", required: true }] }] } });
|
|
1465
1482
|
|
|
1466
1483
|
// noinspection ES6PreferShortImport
|
|
@@ -3377,7 +3394,7 @@ class DataGrid {
|
|
|
3377
3394
|
if (this.overlayScrollFeaturePromise) {
|
|
3378
3395
|
return this.overlayScrollFeaturePromise;
|
|
3379
3396
|
}
|
|
3380
|
-
this.overlayScrollFeaturePromise = import('./reforgium-data-grid-grid-overlay-scroll.feature-
|
|
3397
|
+
this.overlayScrollFeaturePromise = import('./reforgium-data-grid-grid-overlay-scroll.feature-HnvU7zek.mjs').then(({ createGridOverlayScrollFeature }) => {
|
|
3381
3398
|
const feature = createGridOverlayScrollFeature({
|
|
3382
3399
|
getScrollElement: () => this.scrollEl()?.nativeElement ?? null,
|
|
3383
3400
|
getThumbTop: () => this.vm.thumbTopPx(),
|
|
@@ -3502,4 +3519,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
3502
3519
|
*/
|
|
3503
3520
|
|
|
3504
3521
|
export { DataGridTypeCellTemplateDirective as D, clampThumbTop as a, DataGridCellTemplateDirective as b, computeScrollbarState as c, DataGridHeaderTemplateDirective as d, DataGridRowDirective as e, DataGridDeclarativeColumn as f, DataGridDeclarativeHeaderDirective as g, DataGridDeclarativeCellDirective as h, DataGridCellEmptyDirective as i, DataGridCellLoadingDirective as j, DataGridStickyRowDirective as k, DataGridSortIconDirective as l, mapThumbTopToScrollTop as m, DataGridExpanderIconDirective as n, DATA_GRID_CONFIG as o, DATA_GRID_TYPE_RENDERERS as p, DATA_GRID_TYPE_TRANSFORMERS as q, DEFAULT_DATA_GRID_DEFAULTS as r, provideDataGridDefaults as s, provideDataGridTypeRenderers as t, provideDataGridTypeTransformers as u, DataGrid as v };
|
|
3505
|
-
//# sourceMappingURL=reforgium-data-grid-reforgium-data-grid-
|
|
3522
|
+
//# sourceMappingURL=reforgium-data-grid-reforgium-data-grid-BkUQEsdU.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { o as DATA_GRID_CONFIG, p as DATA_GRID_TYPE_RENDERERS, q as DATA_GRID_TYPE_TRANSFORMERS, r as DEFAULT_DATA_GRID_DEFAULTS, v as DataGrid, i as DataGridCellEmptyDirective, j as DataGridCellLoadingDirective, b as DataGridCellTemplateDirective, h as DataGridDeclarativeCellDirective, f as DataGridDeclarativeColumn, g as DataGridDeclarativeHeaderDirective, n as DataGridExpanderIconDirective, d as DataGridHeaderTemplateDirective, e as DataGridRowDirective, l as DataGridSortIconDirective, k as DataGridStickyRowDirective, D as DataGridTypeCellTemplateDirective, s as provideDataGridDefaults, t as provideDataGridTypeRenderers, u as provideDataGridTypeTransformers } from './reforgium-data-grid-reforgium-data-grid-
|
|
1
|
+
export { o as DATA_GRID_CONFIG, p as DATA_GRID_TYPE_RENDERERS, q as DATA_GRID_TYPE_TRANSFORMERS, r as DEFAULT_DATA_GRID_DEFAULTS, v as DataGrid, i as DataGridCellEmptyDirective, j as DataGridCellLoadingDirective, b as DataGridCellTemplateDirective, h as DataGridDeclarativeCellDirective, f as DataGridDeclarativeColumn, g as DataGridDeclarativeHeaderDirective, n as DataGridExpanderIconDirective, d as DataGridHeaderTemplateDirective, e as DataGridRowDirective, l as DataGridSortIconDirective, k as DataGridStickyRowDirective, D as DataGridTypeCellTemplateDirective, s as provideDataGridDefaults, t as provideDataGridTypeRenderers, u as provideDataGridTypeTransformers } from './reforgium-data-grid-reforgium-data-grid-BkUQEsdU.mjs';
|
|
2
2
|
//# sourceMappingURL=reforgium-data-grid.mjs.map
|
package/package.json
CHANGED