@nanahoshi/mona-ui 0.33.0 → 0.34.0
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/docs/api/grid.md +46 -13
- package/docs/grid-columns.md +121 -17
- package/docs/grid-state-export.md +24 -7
- package/docs/grid.md +1 -1
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-colgroup.component-C62HvK-w.mjs → nanahoshi-mona-ui-grid-grid-colgroup.component-Lv3GunpV.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-BpsJwMkQ.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-BYH9XbCV.mjs} +8 -3
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-BVpGUjA7.mjs → nanahoshi-mona-ui-grid-grid-list.component-S2iCn8TV.mjs} +10 -6
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-D0T8kfdm.mjs → nanahoshi-mona-ui-grid-grid-row.component-BUJvgihp.mjs} +21 -6
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-5D2BjGx4.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-Wndy-_Bt.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-grid.styles-62LTuPhD.mjs → nanahoshi-mona-ui-grid-grid.styles-aPD3c2A6.mjs} +228 -16
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +422 -29
- package/llms.txt +3 -3
- package/package.json +1 -1
- package/types/nanahoshi-mona-ui-grid.d.ts +142 -64
|
@@ -357,6 +357,9 @@ var GridNavigationService = class GridNavigationService {
|
|
|
357
357
|
this.#defaultTabStop = snapshot == null;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
+
#findCellCovering(rowCells, colIndex) {
|
|
361
|
+
return rowCells.find((e) => e.value.colIndex <= colIndex && colIndex < e.value.colIndex + (e.value.colSpan ?? 1));
|
|
362
|
+
}
|
|
360
363
|
#findCellsInRow(rowIndex, section) {
|
|
361
364
|
return this.#cells().where((e) => e.value.section === section && e.value.rowIndex === rowIndex).orderBy((e) => e.value.colIndex).toArray();
|
|
362
365
|
}
|
|
@@ -380,7 +383,7 @@ var GridNavigationService = class GridNavigationService {
|
|
|
380
383
|
return this.#cells().orderBy((d) => this.#sectionOrder(d.value.section)).thenBy((d) => d.value.rowIndex).thenBy((d) => d.value.colIndex).firstOrDefault();
|
|
381
384
|
}
|
|
382
385
|
#findFirstHeaderCell() {
|
|
383
|
-
return this.#cells().where((d) => d.value.section === "header").orderBy((d) => d.value.colIndex).firstOrDefault();
|
|
386
|
+
return this.#cells().where((d) => d.value.section === "header").orderBy((d) => d.value.colIndex).thenByDescending((d) => d.value.rowIndex).firstOrDefault();
|
|
384
387
|
}
|
|
385
388
|
#findNextRow(section, rowIndex, direction) {
|
|
386
389
|
const current = [this.#sectionOrder(section), rowIndex];
|
|
@@ -447,6 +450,9 @@ var GridNavigationService = class GridNavigationService {
|
|
|
447
450
|
const lastNonGroupCellKey = this.#lastNonGroupCellKey();
|
|
448
451
|
return (lastNonGroupCellKey ? this.#cellElementDict().get(lastNonGroupCellKey) : null)?.colIndex ?? 0;
|
|
449
452
|
}
|
|
453
|
+
#isColumnGroupRow(row) {
|
|
454
|
+
return row.section === "header" && row.rowIndex < -1;
|
|
455
|
+
}
|
|
450
456
|
#navigateByPage(direction, cellKey) {
|
|
451
457
|
const data = this.#cellElementDict().get(cellKey);
|
|
452
458
|
if (!data || data.section !== "body") return false;
|
|
@@ -493,7 +499,7 @@ var GridNavigationService = class GridNavigationService {
|
|
|
493
499
|
#navigateVertically(direction, cellKey) {
|
|
494
500
|
const data = this.#cellElementDict().get(cellKey);
|
|
495
501
|
if (!data) return false;
|
|
496
|
-
if (!data.groupHeader) this.#lastNonGroupCellKey.set(cellKey);
|
|
502
|
+
if (!data.groupHeader && !this.#spansColumn(data, this.#getTargetColumn())) this.#lastNonGroupCellKey.set(cellKey);
|
|
497
503
|
const targetColIndex = this.#getTargetColumn();
|
|
498
504
|
if (data.section === "body" && this.#rowScroller != null) {
|
|
499
505
|
const step = direction === "down" ? 1 : -1;
|
|
@@ -501,10 +507,14 @@ var GridNavigationService = class GridNavigationService {
|
|
|
501
507
|
if (nextRow != null) return this.#focusRow(nextRow, targetColIndex);
|
|
502
508
|
if (direction === "down") return false;
|
|
503
509
|
}
|
|
504
|
-
|
|
510
|
+
let nextRow = this.#findNextRow(data.section, data.rowIndex, direction);
|
|
511
|
+
let targetRowCells = nextRow == null ? [] : this.#findCellsInRow(nextRow.rowIndex, nextRow.section);
|
|
512
|
+
while (nextRow != null && this.#isColumnGroupRow(nextRow) && this.#findCellCovering(targetRowCells, targetColIndex) == null) {
|
|
513
|
+
nextRow = this.#findNextRow(nextRow.section, nextRow.rowIndex, direction);
|
|
514
|
+
targetRowCells = nextRow == null ? [] : this.#findCellsInRow(nextRow.rowIndex, nextRow.section);
|
|
515
|
+
}
|
|
505
516
|
if (nextRow == null) return false;
|
|
506
517
|
if (nextRow.section === "body") return this.#focusRow(nextRow.rowIndex, targetColIndex);
|
|
507
|
-
const targetRowCells = this.#findCellsInRow(nextRow.rowIndex, nextRow.section);
|
|
508
518
|
const targetCell = this.#pickCellInRow(targetRowCells, targetColIndex);
|
|
509
519
|
this.#focusCell(targetCell.key, targetCell.value);
|
|
510
520
|
return true;
|
|
@@ -518,7 +528,7 @@ var GridNavigationService = class GridNavigationService {
|
|
|
518
528
|
return null;
|
|
519
529
|
}
|
|
520
530
|
#navigationDataEqual(left, right) {
|
|
521
|
-
return left.cellKind === right.cellKind && left.colIndex === right.colIndex && left.columnId === right.columnId && left.editable === right.editable && left.element === right.element && left.firstInRow === right.firstInRow && left.groupHeader === right.groupHeader && left.groupKey === right.groupKey && left.lastInRow === right.lastInRow && left.rowIndex === right.rowIndex && left.rowUid === right.rowUid && left.section === right.section && left.startEdit === right.startEdit;
|
|
531
|
+
return left.cellKind === right.cellKind && left.colIndex === right.colIndex && left.colSpan === right.colSpan && left.columnId === right.columnId && left.editable === right.editable && left.element === right.element && left.firstInRow === right.firstInRow && left.groupHeader === right.groupHeader && left.groupKey === right.groupKey && left.lastInRow === right.lastInRow && left.rowIndex === right.rowIndex && left.rowUid === right.rowUid && left.section === right.section && left.startEdit === right.startEdit;
|
|
522
532
|
}
|
|
523
533
|
#pageRows(element) {
|
|
524
534
|
const scrollElement = this.#viewport?.scrollElement() ?? null;
|
|
@@ -528,7 +538,7 @@ var GridNavigationService = class GridNavigationService {
|
|
|
528
538
|
}
|
|
529
539
|
#pickCellInRow(rowCells, colIndex) {
|
|
530
540
|
if (colIndex === "last" || rowCells[0].value.groupHeader) return colIndex === "last" ? rowCells[rowCells.length - 1] : rowCells[0];
|
|
531
|
-
return rowCells
|
|
541
|
+
return this.#findCellCovering(rowCells, colIndex) ?? rowCells.find((e) => e.value.colIndex >= colIndex) ?? rowCells[rowCells.length - 1];
|
|
532
542
|
}
|
|
533
543
|
#registeredRowNear(rowIndex, direction) {
|
|
534
544
|
const rows = this.#cells().where((e) => e.value.section === "body").select((e) => e.value.rowIndex).distinct().orderBy((index) => index).toArray();
|
|
@@ -583,6 +593,10 @@ var GridNavigationService = class GridNavigationService {
|
|
|
583
593
|
this.#lastFocusedCellKey.set(key);
|
|
584
594
|
this.#lastFocusedCellSnapshot.set(this.#createSnapshot(data));
|
|
585
595
|
}
|
|
596
|
+
#spansColumn(data, colIndex) {
|
|
597
|
+
const colSpan = data.colSpan ?? 1;
|
|
598
|
+
return colSpan > 1 && data.colIndex <= colIndex && colIndex < data.colIndex + colSpan;
|
|
599
|
+
}
|
|
586
600
|
static {
|
|
587
601
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
588
602
|
minVersion: "12.0.0",
|
|
@@ -660,6 +674,152 @@ var RowReorderEvent = class extends PreventableEvent {
|
|
|
660
674
|
return this.#options.rowData;
|
|
661
675
|
}
|
|
662
676
|
};
|
|
677
|
+
function buildHeaderGroupRows(layout) {
|
|
678
|
+
const depth = getColumnGroupDepth(layout.flatMap((layoutColumn) => layoutColumn.kind === "column" ? [layoutColumn.column] : []));
|
|
679
|
+
const rows = [];
|
|
680
|
+
for (let level = 0; level < depth; level++) {
|
|
681
|
+
const row = [];
|
|
682
|
+
let run = [];
|
|
683
|
+
let runGroup = null;
|
|
684
|
+
let runStart = 0;
|
|
685
|
+
const closeRun = () => {
|
|
686
|
+
if (runGroup != null && run.length !== 0) row.push(createTitleCell(runGroup, run, runStart));
|
|
687
|
+
run = [];
|
|
688
|
+
runGroup = null;
|
|
689
|
+
};
|
|
690
|
+
for (const [index, layoutColumn] of layout.entries()) {
|
|
691
|
+
const group = layoutColumn.kind === "column" ? getColumnGroups(layoutColumn.column)[level] : void 0;
|
|
692
|
+
if (layoutColumn.kind !== "column" || group == null) {
|
|
693
|
+
closeRun();
|
|
694
|
+
row.push({
|
|
695
|
+
key: `spacer:${layoutColumn.key}`,
|
|
696
|
+
kind: "spacer",
|
|
697
|
+
layoutKey: layoutColumn.key,
|
|
698
|
+
width: layoutColumn.width
|
|
699
|
+
});
|
|
700
|
+
continue;
|
|
701
|
+
}
|
|
702
|
+
if (runGroup?.id !== group.id || run.at(-1)?.sticky?.side !== layoutColumn.sticky?.side) {
|
|
703
|
+
closeRun();
|
|
704
|
+
runGroup = group;
|
|
705
|
+
runStart = index;
|
|
706
|
+
}
|
|
707
|
+
run.push(layoutColumn);
|
|
708
|
+
}
|
|
709
|
+
closeRun();
|
|
710
|
+
const titleIndices = row.flatMap((cell, index) => cell.kind === "group" ? [index] : []);
|
|
711
|
+
rows.push(row.map((cell, index) => cell.kind === "group" ? {
|
|
712
|
+
...cell,
|
|
713
|
+
firstInRow: index === titleIndices[0],
|
|
714
|
+
lastInRow: index === titleIndices.at(-1)
|
|
715
|
+
} : cell));
|
|
716
|
+
}
|
|
717
|
+
return rows;
|
|
718
|
+
}
|
|
719
|
+
function getColumnGroupDepth(columns) {
|
|
720
|
+
let depth = 0;
|
|
721
|
+
for (const column of columns) depth = Math.max(depth, getColumnGroups(column).length);
|
|
722
|
+
return depth;
|
|
723
|
+
}
|
|
724
|
+
function getColumnGroups(column) {
|
|
725
|
+
return column.groups ?? [];
|
|
726
|
+
}
|
|
727
|
+
function getColumnStepTarget(columns, column, step) {
|
|
728
|
+
const index = columns.findIndex((candidate) => candidate.id === column.id);
|
|
729
|
+
if (index < 0) return null;
|
|
730
|
+
const runs = getSiblingRuns(columns, columns[index]);
|
|
731
|
+
const ownRun = runs.findIndex((run) => run.start <= index && index < run.end);
|
|
732
|
+
for (let runIndex = ownRun + step; runIndex >= 0 && runIndex < runs.length; runIndex += step) {
|
|
733
|
+
const run = runs[runIndex];
|
|
734
|
+
const visible = columns.slice(run.start, run.end).filter((candidate) => !candidate.hidden);
|
|
735
|
+
if (visible.length === 0) continue;
|
|
736
|
+
return step === 1 ? {
|
|
737
|
+
beforeIndex: run.end,
|
|
738
|
+
neighbor: visible[visible.length - 1]
|
|
739
|
+
} : {
|
|
740
|
+
beforeIndex: run.start,
|
|
741
|
+
neighbor: visible[0]
|
|
742
|
+
};
|
|
743
|
+
}
|
|
744
|
+
return null;
|
|
745
|
+
}
|
|
746
|
+
function getSiblingRuns(columns, column) {
|
|
747
|
+
const parents = getColumnGroups(column);
|
|
748
|
+
const depth = parents.length;
|
|
749
|
+
const runs = [];
|
|
750
|
+
let current = null;
|
|
751
|
+
for (const [index, candidate] of columns.entries()) {
|
|
752
|
+
const groups = getColumnGroups(candidate);
|
|
753
|
+
const key = groups.length >= depth && parents.every((group, level) => groups[level].id === group.id) ? groups[depth]?.id ?? `column:${candidate.id}` : null;
|
|
754
|
+
if (current != null && current.key !== key) {
|
|
755
|
+
runs.push({
|
|
756
|
+
end: index,
|
|
757
|
+
start: current.start
|
|
758
|
+
});
|
|
759
|
+
current = null;
|
|
760
|
+
}
|
|
761
|
+
if (key != null && current == null) current = {
|
|
762
|
+
key,
|
|
763
|
+
start: index
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
if (current != null) runs.push({
|
|
767
|
+
end: columns.length,
|
|
768
|
+
start: current.start
|
|
769
|
+
});
|
|
770
|
+
return runs;
|
|
771
|
+
}
|
|
772
|
+
function orderColumnsByGroup(columns) {
|
|
773
|
+
return columns.some((column) => getColumnGroups(column).length !== 0) ? clusterColumns(columns, 0) : [...columns];
|
|
774
|
+
}
|
|
775
|
+
function resolveColumnMoveIndex(columns, column, beforeIndex) {
|
|
776
|
+
const boundaries = new Set(getSiblingRuns(columns, column).flatMap((run) => [run.start, run.end]));
|
|
777
|
+
if (boundaries.has(beforeIndex)) return beforeIndex;
|
|
778
|
+
for (let index = beforeIndex; index > 0 && columns[index - 1].hidden;) {
|
|
779
|
+
index--;
|
|
780
|
+
if (boundaries.has(index)) return index;
|
|
781
|
+
}
|
|
782
|
+
for (let index = beforeIndex; index < columns.length && columns[index].hidden;) {
|
|
783
|
+
index++;
|
|
784
|
+
if (boundaries.has(index)) return index;
|
|
785
|
+
}
|
|
786
|
+
return null;
|
|
787
|
+
}
|
|
788
|
+
function clusterColumns(columns, depth) {
|
|
789
|
+
const runs = /* @__PURE__ */ new Map();
|
|
790
|
+
for (const column of columns) {
|
|
791
|
+
const group = getColumnGroups(column)[depth];
|
|
792
|
+
const key = group == null ? `column:${column.id}` : `group:${group.id}`;
|
|
793
|
+
const run = runs.get(key);
|
|
794
|
+
if (run == null) runs.set(key, [column]);
|
|
795
|
+
else run.push(column);
|
|
796
|
+
}
|
|
797
|
+
const ordered = [];
|
|
798
|
+
for (const [key, run] of runs) ordered.push(...key.startsWith("group:") ? clusterColumns(run, depth + 1) : run);
|
|
799
|
+
return ordered;
|
|
800
|
+
}
|
|
801
|
+
function createTitleCell(group, run, layoutIndex) {
|
|
802
|
+
const first = run[0];
|
|
803
|
+
const last = run[run.length - 1];
|
|
804
|
+
const widths = run.map((layoutColumn) => layoutColumn.width);
|
|
805
|
+
const side = first.sticky?.side ?? null;
|
|
806
|
+
let sticky = null;
|
|
807
|
+
if (side != null) sticky = {
|
|
808
|
+
edge: run.some((layoutColumn) => layoutColumn.sticky?.edge === true),
|
|
809
|
+
offset: (side === "start" ? first.sticky?.offset : last.sticky?.offset) ?? 0,
|
|
810
|
+
side
|
|
811
|
+
};
|
|
812
|
+
return {
|
|
813
|
+
ariaColIndex: layoutIndex + 1,
|
|
814
|
+
colIndex: first.logicalIndex,
|
|
815
|
+
colSpan: run.length,
|
|
816
|
+
group,
|
|
817
|
+
key: `group:${group.id}:${first.key}`,
|
|
818
|
+
kind: "group",
|
|
819
|
+
sticky,
|
|
820
|
+
width: widths.every((width) => width != null) ? widths.reduce((total, width) => total + (width ?? 0), 0) : null
|
|
821
|
+
};
|
|
822
|
+
}
|
|
663
823
|
const FILTER_OPERATORS = /* @__PURE__ */ new Set([
|
|
664
824
|
"between",
|
|
665
825
|
"contains",
|
|
@@ -1185,7 +1345,9 @@ var GridService = class GridService {
|
|
|
1185
1345
|
this.hasFooter = computed(() => this.aggregateColumns().any(), ...ngDevMode ? [{ debugName: "hasFooter" }] : /* istanbul ignore next */ []);
|
|
1186
1346
|
this.hasLeftLockedColumns = computed(() => this.rowReorderColumnVisible() || this.selectionColumnVisible() || this.visibleColumns().any((column) => column.locked && column.lockedPosition === "left"), ...ngDevMode ? [{ debugName: "hasLeftLockedColumns" }] : /* istanbul ignore next */ []);
|
|
1187
1347
|
this.hasLiveScrollbarGutterWidth = computed(() => this.#scrollbarGutterMeasurementSource() === "body", ...ngDevMode ? [{ debugName: "hasLiveScrollbarGutterWidth" }] : /* istanbul ignore next */ []);
|
|
1188
|
-
this.
|
|
1348
|
+
this.headerGroupDepth = computed(() => this.headerGroupRows().length, ...ngDevMode ? [{ debugName: "headerGroupDepth" }] : /* istanbul ignore next */ []);
|
|
1349
|
+
this.headerGroupRows = computed(() => buildHeaderGroupRows(this.layout()), ...ngDevMode ? [{ debugName: "headerGroupRows" }] : /* istanbul ignore next */ []);
|
|
1350
|
+
this.headerRowCount = computed(() => this.headerGroupDepth() + (this.filterRowEnabled() ? 2 : 1), ...ngDevMode ? [{ debugName: "headerRowCount" }] : /* istanbul ignore next */ []);
|
|
1189
1351
|
this.headerTableElement = signal(null, ...ngDevMode ? [{ debugName: "headerTableElement" }] : /* istanbul ignore next */ []);
|
|
1190
1352
|
this.horizontalScrollLeft = this.#horizontalScrollLeft.asReadonly();
|
|
1191
1353
|
this.isInEditMode = computed(() => this.#editSession() != null, ...ngDevMode ? [{ debugName: "isInEditMode" }] : /* istanbul ignore next */ []);
|
|
@@ -1842,14 +2004,17 @@ var GridService = class GridService {
|
|
|
1842
2004
|
}
|
|
1843
2005
|
reorderColumn(column, beforeIndex) {
|
|
1844
2006
|
if (!this.reorderableOptions().enabled) return false;
|
|
1845
|
-
const
|
|
2007
|
+
const columns = this.columns().toArray();
|
|
2008
|
+
const columnIds = columns.map((candidate) => candidate.id);
|
|
1846
2009
|
const oldIndex = columnIds.indexOf(column.id);
|
|
1847
|
-
if (oldIndex < 0 || beforeIndex < 0 || beforeIndex > columnIds.length
|
|
1848
|
-
const
|
|
2010
|
+
if (oldIndex < 0 || beforeIndex < 0 || beforeIndex > columnIds.length) return false;
|
|
2011
|
+
const targetIndex = resolveColumnMoveIndex(columns, columns[oldIndex], beforeIndex);
|
|
2012
|
+
if (targetIndex == null || targetIndex === oldIndex || targetIndex === oldIndex + 1) return false;
|
|
2013
|
+
const event = new ColumnReorderEvent(column, oldIndex, targetIndex);
|
|
1849
2014
|
this.columnReorder$.next(event);
|
|
1850
2015
|
if (event.isDefaultPrevented()) return false;
|
|
1851
2016
|
const [columnId] = columnIds.splice(oldIndex, 1);
|
|
1852
|
-
columnIds.splice(
|
|
2017
|
+
columnIds.splice(targetIndex > oldIndex ? targetIndex - 1 : targetIndex, 0, columnId);
|
|
1853
2018
|
this.setColumnOrder(columnIds);
|
|
1854
2019
|
return true;
|
|
1855
2020
|
}
|
|
@@ -2519,9 +2684,10 @@ var GridService = class GridService {
|
|
|
2519
2684
|
return gutterWidth;
|
|
2520
2685
|
}
|
|
2521
2686
|
orderColumnsByLockBucket(columns) {
|
|
2522
|
-
const
|
|
2523
|
-
const
|
|
2524
|
-
const
|
|
2687
|
+
const groupedColumns = orderColumnsByGroup(columns);
|
|
2688
|
+
const leftLockedColumns = groupedColumns.filter((column) => this.getColumnLockBucket(column) === "left");
|
|
2689
|
+
const unlockedColumns = groupedColumns.filter((column) => this.getColumnLockBucket(column) === "unlocked");
|
|
2690
|
+
const rightLockedColumns = groupedColumns.filter((column) => this.getColumnLockBucket(column) === "right");
|
|
2525
2691
|
return [
|
|
2526
2692
|
...leftLockedColumns,
|
|
2527
2693
|
...unlockedColumns,
|
|
@@ -2777,6 +2943,8 @@ var GridLockedCellDirective = class GridLockedCellDirective {
|
|
|
2777
2943
|
return state?.side === "start" ? state.offset : null;
|
|
2778
2944
|
}, ...ngDevMode ? [{ debugName: "startOffset" }] : /* istanbul ignore next */ []);
|
|
2779
2945
|
this.state = computed(() => {
|
|
2946
|
+
const stickyState = this.stickyState();
|
|
2947
|
+
if (stickyState !== void 0) return stickyState;
|
|
2780
2948
|
const layoutKey = this.layoutKey();
|
|
2781
2949
|
return layoutKey ? this.#gridService.layoutColumnByKey().get(layoutKey)?.sticky ?? null : null;
|
|
2782
2950
|
}, ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
@@ -2790,6 +2958,7 @@ var GridLockedCellDirective = class GridLockedCellDirective {
|
|
|
2790
2958
|
alias: "monaGridLockedCell"
|
|
2791
2959
|
});
|
|
2792
2960
|
this.lockedCellHeader = input(false, ...ngDevMode ? [{ debugName: "lockedCellHeader" }] : /* istanbul ignore next */ []);
|
|
2961
|
+
this.stickyState = input(void 0, ...ngDevMode ? [{ debugName: "stickyState" }] : /* istanbul ignore next */ []);
|
|
2793
2962
|
}
|
|
2794
2963
|
#gridService;
|
|
2795
2964
|
#hostElementRef;
|
|
@@ -2824,6 +2993,13 @@ var GridLockedCellDirective = class GridLockedCellDirective {
|
|
|
2824
2993
|
isSignal: true,
|
|
2825
2994
|
isRequired: false,
|
|
2826
2995
|
transformFunction: null
|
|
2996
|
+
},
|
|
2997
|
+
stickyState: {
|
|
2998
|
+
classPropertyName: "stickyState",
|
|
2999
|
+
publicName: "stickyState",
|
|
3000
|
+
isSignal: true,
|
|
3001
|
+
isRequired: false,
|
|
3002
|
+
transformFunction: null
|
|
2827
3003
|
}
|
|
2828
3004
|
},
|
|
2829
3005
|
host: { properties: {
|
|
@@ -2877,6 +3053,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2877
3053
|
alias: "lockedCellHeader",
|
|
2878
3054
|
required: false
|
|
2879
3055
|
}]
|
|
3056
|
+
}],
|
|
3057
|
+
stickyState: [{
|
|
3058
|
+
type: i0.Input,
|
|
3059
|
+
args: [{
|
|
3060
|
+
isSignal: true,
|
|
3061
|
+
alias: "stickyState",
|
|
3062
|
+
required: false
|
|
3063
|
+
}]
|
|
2880
3064
|
}]
|
|
2881
3065
|
}
|
|
2882
3066
|
});
|
|
@@ -2952,6 +3136,7 @@ var GridLogicalCellDirective = class GridLogicalCellDirective {
|
|
|
2952
3136
|
return {
|
|
2953
3137
|
cellKind: this.resolvedCellKind(),
|
|
2954
3138
|
colIndex: this.colIndex(),
|
|
3139
|
+
colSpan: this.columnSpan(),
|
|
2955
3140
|
columnId: this.columnId(),
|
|
2956
3141
|
editable: this.editable(),
|
|
2957
3142
|
element: this.#hostElementRef.nativeElement,
|
|
@@ -2996,6 +3181,7 @@ var GridLogicalCellDirective = class GridLogicalCellDirective {
|
|
|
2996
3181
|
this.cellKind = input(null, ...ngDevMode ? [{ debugName: "cellKind" }] : /* istanbul ignore next */ []);
|
|
2997
3182
|
this.colIndex = input.required(...ngDevMode ? [{ debugName: "colIndex" }] : /* istanbul ignore next */ []);
|
|
2998
3183
|
this.columnId = input(...ngDevMode ? [void 0, { debugName: "columnId" }] : /* istanbul ignore next */ []);
|
|
3184
|
+
this.columnSpan = input(1, ...ngDevMode ? [{ debugName: "columnSpan" }] : /* istanbul ignore next */ []);
|
|
2999
3185
|
this.edit = output();
|
|
3000
3186
|
this.editable = input(false, ...ngDevMode ? [{ debugName: "editable" }] : /* istanbul ignore next */ []);
|
|
3001
3187
|
this.expanded = input(null, ...ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []);
|
|
@@ -3265,6 +3451,13 @@ var GridLogicalCellDirective = class GridLogicalCellDirective {
|
|
|
3265
3451
|
isRequired: false,
|
|
3266
3452
|
transformFunction: null
|
|
3267
3453
|
},
|
|
3454
|
+
columnSpan: {
|
|
3455
|
+
classPropertyName: "columnSpan",
|
|
3456
|
+
publicName: "columnSpan",
|
|
3457
|
+
isSignal: true,
|
|
3458
|
+
isRequired: false,
|
|
3459
|
+
transformFunction: null
|
|
3460
|
+
},
|
|
3268
3461
|
editable: {
|
|
3269
3462
|
classPropertyName: "editable",
|
|
3270
3463
|
publicName: "editable",
|
|
@@ -3400,6 +3593,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3400
3593
|
required: false
|
|
3401
3594
|
}]
|
|
3402
3595
|
}],
|
|
3596
|
+
columnSpan: [{
|
|
3597
|
+
type: i0.Input,
|
|
3598
|
+
args: [{
|
|
3599
|
+
isSignal: true,
|
|
3600
|
+
alias: "columnSpan",
|
|
3601
|
+
required: false
|
|
3602
|
+
}]
|
|
3603
|
+
}],
|
|
3403
3604
|
edit: [{
|
|
3404
3605
|
type: i0.Output,
|
|
3405
3606
|
args: ["edit"]
|
|
@@ -3673,6 +3874,17 @@ const gridHeaderTableThemeVariants = cva(`
|
|
|
3673
3874
|
border-separate border-spacing-0 table-fixed
|
|
3674
3875
|
`);
|
|
3675
3876
|
const gridHeaderTableRowThemeVariants = cva(`relative inline-flex not-first:border-t not-first:border-t-border-subtle [&>th:last-child]:border-e-0`);
|
|
3877
|
+
const gridHeaderGroupTableRowThemeVariants = cva(`relative inline-flex [&>th:last-child]:border-e-0`);
|
|
3878
|
+
const gridHeaderGroupCellThemeVariants = cva(`
|
|
3879
|
+
relative select-none
|
|
3880
|
+
text-start overflow-clip
|
|
3881
|
+
outline-none focus-visible:outline-hidden
|
|
3882
|
+
border-e border-e-border-subtle border-b border-b-border-subtle
|
|
3883
|
+
after:absolute after:inset-0 after:pointer-events-none
|
|
3884
|
+
focus-visible:after:ring-2 focus-visible:after:ring-inset focus-visible:after:ring-focus-indicator
|
|
3885
|
+
`);
|
|
3886
|
+
const gridHeaderGroupSpacerCellThemeVariants = cva(`border-e border-e-border-subtle`);
|
|
3887
|
+
const gridHeaderGroupTitleThemeVariants = cva(`sticky block w-fit max-w-full px-2 py-2 truncate font-medium`);
|
|
3676
3888
|
const gridHeaderTableCellThemeVariants = cva(`
|
|
3677
3889
|
relative select-none
|
|
3678
3890
|
text-start overflow-visible
|
|
@@ -3761,6 +3973,6 @@ const gridNoDataThemeVariants = cva(`
|
|
|
3761
3973
|
flex items-center justify-center h-full
|
|
3762
3974
|
text-muted-foreground border-t border-t-border-subtle
|
|
3763
3975
|
`);
|
|
3764
|
-
export {
|
|
3976
|
+
export { GridSaveEvent as $, gridHeaderThemeVariants as A, GridLogicalCellDirective as B, gridHeaderGroupTableRowThemeVariants as C, gridHeaderTableColumnWrapThemeVariants as D, gridHeaderTableColumnTitleThemeVariants as E, gridNoDataThemeVariants as F, GridService as G, isKeyboardEntryElement as H, gridRowDragPreviewThemeVariants as I, getColumnStepTarget as J, getColumnGroupDepth as K, gridRowReorderHandleThemeVariants as L, gridListTableCellThemeVariants as M, gridListTableRowThemeVariants as N, gridHeaderTableRowThemeVariants as O, gridListTableThemeVariants as P, GRID_DEFAULT_MESSAGES as Q, gridSelectAllCellThemeVariants as R, gridHeaderGroupSpacerCellThemeVariants as S, gridHeaderTableCellThemeVariants as T, observeGridCellTabStops as U, GRID_CELL_FOCUSABLE_SELECTOR as V, GridLockedCellDirective as W, RowReorderEvent as X, getSiblingRuns as Y, GridNavigationService as Z, gridFooterThemeVariants as _, gridCellEditorBaseThemeVariants as a, CellEditEvent as at, gridGroupRowThemeVariants as b, gridColumnActionsThemeVariants as c, gridColumnResizerThemeVariants as d, GridRemoveEvent as et, gridFilterRowCellThemeVariants as f, gridFooterTableThemeVariants as g, gridFooterTableRowThemeVariants as h, gridCellDirtyIndicatorThemeVariants as i, RowEditEvent as it, gridListBaseThemeVariants as j, gridHeaderTableThemeVariants as k, gridColumnDragPreviewThemeVariants as l, gridFooterTableCellThemeVariants as m, gridCellBaseThemeVariants as n, GridCancelEvent as nt, gridCellEditorInputThemeVariants as o, gridFilterRowHeaderCellThemeVariants as p, getColumnGroups as q, gridCellContainerThemeVariants as r, GridAddEvent as rt, gridCellTextThemeVariants as s, gridBaseThemeVariants as t, GridEditEvent as tt, gridColumnDropHintThemeVariants as u, gridGroupPanelPlaceholderThemeVariants as v, gridHeaderGroupTitleThemeVariants as w, gridHeaderGroupCellThemeVariants as x, gridGroupPanelThemeVariants as y, gridSelectionCellThemeVariants as z };
|
|
3765
3977
|
|
|
3766
|
-
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid.styles-
|
|
3978
|
+
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid.styles-aPD3c2A6.mjs.map
|