@nanahoshi/mona-ui 0.27.2 → 0.28.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/chart.md +2 -2
- package/docs/api/popup.md +1 -1
- package/docs/api/theme.md +2 -2
- package/docs/chart.md +14 -0
- package/docs/editor.md +2 -0
- package/docs/installation.md +147 -15
- package/docs/introduction.md +37 -15
- package/docs/theming-built-in-themes.md +67 -0
- package/docs/theming-custom-colors.md +274 -0
- package/docs/theming-custom-themes.md +168 -0
- package/docs/theming.md +164 -248
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1089 -603
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +369 -184
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +658 -371
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +513 -359
- package/fesm2022/nanahoshi-mona-ui-button.mjs +622 -517
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +2070 -1573
- package/fesm2022/nanahoshi-mona-ui-card.mjs +620 -316
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +61151 -64921
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +646 -317
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +737 -516
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +441 -242
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +443 -390
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +1138 -814
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +1114 -959
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +858 -504
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1181 -742
- package/fesm2022/nanahoshi-mona-ui-command.mjs +1454 -853
- package/fesm2022/nanahoshi-mona-ui-common.mjs +569 -743
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +978 -532
- package/fesm2022/nanahoshi-mona-ui-date-input.mjs +283 -266
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +973 -451
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +1203 -658
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +1415 -936
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +1165 -568
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1142 -677
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +1018 -734
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +3589 -2122
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +577 -359
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +311 -151
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +1086 -718
- package/fesm2022/nanahoshi-mona-ui-grid-grid-colgroup.component-NhONCVIX.mjs +77 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs +480 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-WbXAzGCa.mjs +470 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-DkWTD3pN.mjs +2115 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-DAHqTwBJ.mjs +330 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs +3766 -0
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +5418 -2
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +1379 -1079
- package/fesm2022/nanahoshi-mona-ui-i18n.mjs +4451 -5077
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +344 -143
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +257 -127
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +2080 -1829
- package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +103 -141
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +2498 -2706
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +722 -1007
- package/fesm2022/nanahoshi-mona-ui-label.mjs +313 -202
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1308 -1009
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1411 -677
- package/fesm2022/nanahoshi-mona-ui-list.mjs +1 -6
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +556 -577
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +530 -573
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +530 -573
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +533 -576
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +530 -571
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +530 -571
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +576 -591
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +530 -565
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales.mjs +59 -77
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +1411 -829
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +1326 -702
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +763 -675
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1306 -826
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +1122 -897
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +1110 -651
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +95 -53
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +559 -397
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2323 -1694
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +1657 -1455
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +441 -267
- package/fesm2022/nanahoshi-mona-ui-query.mjs +211 -340
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +1017 -548
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +874 -624
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +1130 -917
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +705 -455
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +461 -283
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +2791 -2449
- package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +145 -90
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +1563 -1103
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +738 -673
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +1287 -647
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +1313 -909
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +761 -540
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +611 -280
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +1393 -841
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +142 -73
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +876 -374
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +1465 -1449
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +897 -443
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +1100 -703
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +789 -538
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +1361 -805
- package/fesm2022/nanahoshi-mona-ui-window.mjs +2145 -1531
- package/fesm2022/nanahoshi-mona-ui.mjs +1 -8
- package/llms.txt +6 -2
- package/package.json +62 -23
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +367 -233
- package/types/nanahoshi-mona-ui-avatar.d.ts +722 -649
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +134 -103
- package/types/nanahoshi-mona-ui-button-group.d.ts +213 -152
- package/types/nanahoshi-mona-ui-button.d.ts +227 -166
- package/types/nanahoshi-mona-ui-calendar.d.ts +324 -259
- package/types/nanahoshi-mona-ui-card.d.ts +125 -111
- package/types/nanahoshi-mona-ui-chart.d.ts +10483 -7326
- package/types/nanahoshi-mona-ui-check-box.d.ts +293 -180
- package/types/nanahoshi-mona-ui-chip.d.ts +208 -141
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +194 -133
- package/types/nanahoshi-mona-ui-collapsible.d.ts +103 -87
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +281 -213
- package/types/nanahoshi-mona-ui-color-palette.d.ts +201 -138
- package/types/nanahoshi-mona-ui-color-picker.d.ts +283 -194
- package/types/nanahoshi-mona-ui-combo-box.d.ts +401 -262
- package/types/nanahoshi-mona-ui-command.d.ts +279 -191
- package/types/nanahoshi-mona-ui-common.d.ts +354 -385
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +142 -117
- package/types/nanahoshi-mona-ui-date-input.d.ts +79 -96
- package/types/nanahoshi-mona-ui-date-picker.d.ts +338 -208
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +413 -259
- package/types/nanahoshi-mona-ui-dialog.d.ts +470 -381
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +216 -168
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +369 -243
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +231 -217
- package/types/nanahoshi-mona-ui-editor.d.ts +302 -235
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +140 -109
- package/types/nanahoshi-mona-ui-fieldset.d.ts +98 -68
- package/types/nanahoshi-mona-ui-filter.d.ts +150 -124
- package/types/nanahoshi-mona-ui-grid.d.ts +1956 -1678
- package/types/nanahoshi-mona-ui-i18n-icu.d.ts +25 -34
- package/types/nanahoshi-mona-ui-i18n.d.ts +987 -1052
- package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +118 -71
- package/types/nanahoshi-mona-ui-internal-indicator-icon.d.ts +56 -27
- package/types/nanahoshi-mona-ui-internal-list.d.ts +474 -408
- package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +143 -150
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +493 -506
- package/types/nanahoshi-mona-ui-internal.d.ts +195 -213
- package/types/nanahoshi-mona-ui-label.d.ts +108 -78
- package/types/nanahoshi-mona-ui-list-box.d.ts +392 -322
- package/types/nanahoshi-mona-ui-list-view.d.ts +423 -282
- package/types/nanahoshi-mona-ui-list.d.ts +2 -1
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales.d.ts +17 -19
- package/types/nanahoshi-mona-ui-menubar.d.ts +210 -181
- package/types/nanahoshi-mona-ui-multi-select.d.ts +416 -276
- package/types/nanahoshi-mona-ui-notification.d.ts +140 -151
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +407 -270
- package/types/nanahoshi-mona-ui-otp-input.d.ts +364 -241
- package/types/nanahoshi-mona-ui-pager.d.ts +379 -301
- package/types/nanahoshi-mona-ui-placeholder.d.ts +35 -28
- package/types/nanahoshi-mona-ui-popover.d.ts +176 -134
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +488 -344
- package/types/nanahoshi-mona-ui-popup.d.ts +698 -560
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +197 -137
- package/types/nanahoshi-mona-ui-query.d.ts +82 -88
- package/types/nanahoshi-mona-ui-radio-button.d.ts +434 -269
- package/types/nanahoshi-mona-ui-rating.d.ts +348 -254
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +244 -172
- package/types/nanahoshi-mona-ui-segmented.d.ts +250 -175
- package/types/nanahoshi-mona-ui-sheet.d.ts +115 -63
- package/types/nanahoshi-mona-ui-sidebar.d.ts +653 -493
- package/types/nanahoshi-mona-ui-skeleton.d.ts +55 -39
- package/types/nanahoshi-mona-ui-slider.d.ts +503 -354
- package/types/nanahoshi-mona-ui-spinner.d.ts +125 -112
- package/types/nanahoshi-mona-ui-split-button.d.ts +241 -196
- package/types/nanahoshi-mona-ui-splitter.d.ts +124 -78
- package/types/nanahoshi-mona-ui-stepper.d.ts +206 -181
- package/types/nanahoshi-mona-ui-switch.d.ts +197 -131
- package/types/nanahoshi-mona-ui-tabs.d.ts +349 -248
- package/types/nanahoshi-mona-ui-text-area.d.ts +52 -36
- package/types/nanahoshi-mona-ui-text-box.d.ts +349 -218
- package/types/nanahoshi-mona-ui-theme.d.ts +415 -408
- package/types/nanahoshi-mona-ui-time-picker.d.ts +357 -217
- package/types/nanahoshi-mona-ui-time-selector.d.ts +255 -170
- package/types/nanahoshi-mona-ui-tooltip.d.ts +222 -144
- package/types/nanahoshi-mona-ui-tree-view.d.ts +466 -308
- package/types/nanahoshi-mona-ui-window.d.ts +494 -399
- package/types/nanahoshi-mona-ui.d.ts +1 -2
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs +0 -181
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs +0 -208
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs +0 -1082
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs +0 -186
- package/fesm2022/nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs +0 -7568
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
import { A as gridListTableThemeVariants, B as GridLockedCellDirective, D as gridListBaseThemeVariants, M as gridRowDragPreviewThemeVariants, V as GridService } from "./nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs";
|
|
2
|
+
import { i as GridCellDirective, n as GridGroupRowComponent, r as GridAddRowComponent, t as GridRowComponent } from "./nanahoshi-mona-ui-grid-grid-row.component-DkWTD3pN.mjs";
|
|
3
|
+
import { t as GridColgroupComponent } from "./nanahoshi-mona-ui-grid-grid-colgroup.component-NhONCVIX.mjs";
|
|
4
|
+
import { GridFooterRowComponent } from "./nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import { Component, DestroyRef, ElementRef, afterNextRender, afterRenderEffect, computed, effect, inject, input, untracked, viewChild } from "@angular/core";
|
|
7
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
8
|
+
import { ImmutableList } from "@mirei/ts-collections";
|
|
9
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
10
|
+
import { ContextMenuComponent } from "@nanahoshi/mona-ui/contextmenu";
|
|
11
|
+
import { CdkDrag, CdkDragPreview, CdkDropList } from "@angular/cdk/drag-drop";
|
|
12
|
+
import { LucideGripVertical } from "@lucide/angular";
|
|
13
|
+
var GridDetailRowComponent = class GridDetailRowComponent {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.contentColIndex = computed(() => this.gridService.layout().filter((layoutColumn) => layoutColumn.kind !== "column").length + 1, ...ngDevMode ? [{ debugName: "contentColIndex" }] : /* istanbul ignore next */ []);
|
|
16
|
+
this.contentColspan = computed(() => Math.max(this.gridService.visibleColumns().length, 1), ...ngDevMode ? [{ debugName: "contentColspan" }] : /* istanbul ignore next */ []);
|
|
17
|
+
this.gridService = inject(GridService);
|
|
18
|
+
this.grouped = computed(() => this.gridService.groupColumns().length !== 0, ...ngDevMode ? [{ debugName: "grouped" }] : /* istanbul ignore next */ []);
|
|
19
|
+
this.ariaRowIndex = input(null, ...ngDevMode ? [{ debugName: "ariaRowIndex" }] : /* istanbul ignore next */ []);
|
|
20
|
+
this.row = input.required(...ngDevMode ? [{ debugName: "row" }] : /* istanbul ignore next */ []);
|
|
21
|
+
}
|
|
22
|
+
static {
|
|
23
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
24
|
+
minVersion: "12.0.0",
|
|
25
|
+
version: "22.2.6",
|
|
26
|
+
ngImport: i0,
|
|
27
|
+
type: GridDetailRowComponent,
|
|
28
|
+
deps: [],
|
|
29
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
static {
|
|
33
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
34
|
+
minVersion: "17.0.0",
|
|
35
|
+
version: "22.2.6",
|
|
36
|
+
type: GridDetailRowComponent,
|
|
37
|
+
isStandalone: true,
|
|
38
|
+
selector: "tr[monaGridDetailRow]",
|
|
39
|
+
inputs: {
|
|
40
|
+
ariaRowIndex: {
|
|
41
|
+
classPropertyName: "ariaRowIndex",
|
|
42
|
+
publicName: "ariaRowIndex",
|
|
43
|
+
isSignal: true,
|
|
44
|
+
isRequired: false,
|
|
45
|
+
transformFunction: null
|
|
46
|
+
},
|
|
47
|
+
row: {
|
|
48
|
+
classPropertyName: "row",
|
|
49
|
+
publicName: "row",
|
|
50
|
+
isSignal: true,
|
|
51
|
+
isRequired: true,
|
|
52
|
+
transformFunction: null
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
host: {
|
|
56
|
+
attributes: { "role": "row" },
|
|
57
|
+
properties: {
|
|
58
|
+
"attr.aria-rowindex": "ariaRowIndex()",
|
|
59
|
+
"attr.aria-level": "grouped() ? gridService.groupColumns().length + 1 : null",
|
|
60
|
+
"style.width.px": "gridService.masterDetailRowWidth()"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
ngImport: i0,
|
|
64
|
+
template: "@for (layoutColumn of gridService.layout(); track layoutColumn.key) {\n @if (layoutColumn.kind === \"group\") {\n <td monaGridCell [monaGridLockedCell]=\"layoutColumn.key\" [lockedCellHeader]=\"true\" [groupIndent]=\"true\"></td>\n } @else if (layoutColumn.kind === \"reorder\") {\n <td monaGridCell [monaGridLockedCell]=\"layoutColumn.key\" [groupIndent]=\"grouped()\"></td>\n } @else if (layoutColumn.kind !== \"column\") {\n <td monaGridCell [monaGridLockedCell]=\"layoutColumn.key\"></td>\n }\n}\n<td monaGridCell [lastInRow]=\"true\" [attr.colspan]=\"contentColspan()\" [attr.aria-colindex]=\"contentColIndex()\">\n <ng-container\n [ngTemplateOutlet]=\"gridService.masterDetailTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: row().data }\" />\n</td>\n",
|
|
65
|
+
dependencies: [
|
|
66
|
+
{
|
|
67
|
+
kind: "directive",
|
|
68
|
+
type: GridCellDirective,
|
|
69
|
+
selector: "td[monaGridCell]",
|
|
70
|
+
inputs: [
|
|
71
|
+
"groupHeader",
|
|
72
|
+
"groupIndent",
|
|
73
|
+
"lastInRow"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
kind: "directive",
|
|
78
|
+
type: GridLockedCellDirective,
|
|
79
|
+
selector: "td[monaGridLockedCell], th[monaGridLockedCell]",
|
|
80
|
+
inputs: ["monaGridLockedCell", "lockedCellHeader"]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
kind: "directive",
|
|
84
|
+
type: NgTemplateOutlet,
|
|
85
|
+
selector: "[ngTemplateOutlet]",
|
|
86
|
+
inputs: [
|
|
87
|
+
"ngTemplateOutletContext",
|
|
88
|
+
"ngTemplateOutlet",
|
|
89
|
+
"ngTemplateOutletInjector"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
97
|
+
minVersion: "12.0.0",
|
|
98
|
+
version: "22.2.6",
|
|
99
|
+
ngImport: i0,
|
|
100
|
+
type: GridDetailRowComponent,
|
|
101
|
+
decorators: [{
|
|
102
|
+
type: Component,
|
|
103
|
+
args: [{
|
|
104
|
+
selector: "tr[monaGridDetailRow]",
|
|
105
|
+
imports: [
|
|
106
|
+
GridCellDirective,
|
|
107
|
+
GridLockedCellDirective,
|
|
108
|
+
NgTemplateOutlet
|
|
109
|
+
],
|
|
110
|
+
host: {
|
|
111
|
+
role: "row",
|
|
112
|
+
"[attr.aria-rowindex]": "ariaRowIndex()",
|
|
113
|
+
"[attr.aria-level]": "grouped() ? gridService.groupColumns().length + 1 : null",
|
|
114
|
+
"[style.width.px]": "gridService.masterDetailRowWidth()"
|
|
115
|
+
},
|
|
116
|
+
template: "@for (layoutColumn of gridService.layout(); track layoutColumn.key) {\n @if (layoutColumn.kind === \"group\") {\n <td monaGridCell [monaGridLockedCell]=\"layoutColumn.key\" [lockedCellHeader]=\"true\" [groupIndent]=\"true\"></td>\n } @else if (layoutColumn.kind === \"reorder\") {\n <td monaGridCell [monaGridLockedCell]=\"layoutColumn.key\" [groupIndent]=\"grouped()\"></td>\n } @else if (layoutColumn.kind !== \"column\") {\n <td monaGridCell [monaGridLockedCell]=\"layoutColumn.key\"></td>\n }\n}\n<td monaGridCell [lastInRow]=\"true\" [attr.colspan]=\"contentColspan()\" [attr.aria-colindex]=\"contentColIndex()\">\n <ng-container\n [ngTemplateOutlet]=\"gridService.masterDetailTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: row().data }\" />\n</td>\n"
|
|
117
|
+
}]
|
|
118
|
+
}],
|
|
119
|
+
propDecorators: {
|
|
120
|
+
ariaRowIndex: [{
|
|
121
|
+
type: i0.Input,
|
|
122
|
+
args: [{
|
|
123
|
+
isSignal: true,
|
|
124
|
+
alias: "ariaRowIndex",
|
|
125
|
+
required: false
|
|
126
|
+
}]
|
|
127
|
+
}],
|
|
128
|
+
row: [{
|
|
129
|
+
type: i0.Input,
|
|
130
|
+
args: [{
|
|
131
|
+
isSignal: true,
|
|
132
|
+
alias: "row",
|
|
133
|
+
required: true
|
|
134
|
+
}]
|
|
135
|
+
}]
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
const ROW_MOVE_DURATION = 200;
|
|
139
|
+
const ROW_MOVE_EASING = "cubic-bezier(0.2, 0, 0, 1)";
|
|
140
|
+
const ROW_MOVE_SNAPSHOT_LIFETIME = 1e3;
|
|
141
|
+
var GridListComponent = class GridListComponent {
|
|
142
|
+
#destroyRef;
|
|
143
|
+
#hostElementRef;
|
|
144
|
+
#rowMoveAnimations;
|
|
145
|
+
#dropping;
|
|
146
|
+
#rowPositionsBeforeMove;
|
|
147
|
+
constructor() {
|
|
148
|
+
this.#destroyRef = inject(DestroyRef);
|
|
149
|
+
this.#hostElementRef = inject(ElementRef);
|
|
150
|
+
this.#rowMoveAnimations = /* @__PURE__ */ new Map();
|
|
151
|
+
this.#dropping = false;
|
|
152
|
+
this.#rowPositionsBeforeMove = null;
|
|
153
|
+
this.bodyTableElementRef = viewChild.required("bodyTable", ...ngDevMode ? [{ debugName: "bodyTableElementRef" }] : /* istanbul ignore next */ []);
|
|
154
|
+
this.ariaRows = computed(() => this.gridService.getBodyAriaRowIndices(this.bodyRows()), ...ngDevMode ? [{ debugName: "ariaRows" }] : /* istanbul ignore next */ []);
|
|
155
|
+
this.baseClass = gridListBaseThemeVariants({ virtual: false });
|
|
156
|
+
this.bodyRows = computed(() => this.gridService.createBodyRows(this.data()), ...ngDevMode ? [{ debugName: "bodyRows" }] : /* istanbul ignore next */ []);
|
|
157
|
+
this.dropListData = computed(() => this.data().toArray(), ...ngDevMode ? [{ debugName: "dropListData" }] : /* istanbul ignore next */ []);
|
|
158
|
+
this.gridService = inject(GridService);
|
|
159
|
+
this.rowDragPreviewClass = gridRowDragPreviewThemeVariants();
|
|
160
|
+
this.tableClass = gridListTableThemeVariants();
|
|
161
|
+
this.data = input(ImmutableList.create(), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
162
|
+
effect(() => {
|
|
163
|
+
const count = this.ariaRows().count;
|
|
164
|
+
untracked(() => this.gridService.renderedBodyRowCount.set(count));
|
|
165
|
+
});
|
|
166
|
+
afterNextRender({ read: () => {
|
|
167
|
+
const bodyTableElement = this.bodyTableElementRef().nativeElement;
|
|
168
|
+
const bodyScrollElement = this.#hostElementRef.nativeElement;
|
|
169
|
+
this.gridService.bodyTableElement.set(bodyTableElement);
|
|
170
|
+
this.gridService.bodyScrollElement.set(bodyScrollElement);
|
|
171
|
+
this.setSubscriptions();
|
|
172
|
+
this.#destroyRef.onDestroy(() => {
|
|
173
|
+
if (this.gridService.bodyTableElement() === bodyTableElement) this.gridService.bodyTableElement.set(null);
|
|
174
|
+
if (this.gridService.bodyScrollElement() === bodyScrollElement) this.gridService.bodyScrollElement.set(null);
|
|
175
|
+
});
|
|
176
|
+
} });
|
|
177
|
+
afterRenderEffect({
|
|
178
|
+
earlyRead: () => {
|
|
179
|
+
this.bodyRows();
|
|
180
|
+
return this.#measureRowMoves();
|
|
181
|
+
},
|
|
182
|
+
write: (moves) => this.#playRowMoves(moves())
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
onRowDragEnded(_event) {
|
|
186
|
+
this.gridService.draggingRowUid.set(null);
|
|
187
|
+
}
|
|
188
|
+
onRowDragStarted(event) {
|
|
189
|
+
this.gridService.draggingRowUid.set(event.source.data.uid);
|
|
190
|
+
}
|
|
191
|
+
onRowDrop(event) {
|
|
192
|
+
this.gridService.draggingRowUid.set(null);
|
|
193
|
+
this.#dropping = true;
|
|
194
|
+
try {
|
|
195
|
+
this.gridService.requestRowReorder(event.item.data, event.previousIndex, event.currentIndex);
|
|
196
|
+
} finally {
|
|
197
|
+
this.#dropping = false;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
#canAnimateRowMoves() {
|
|
201
|
+
const view = this.#hostElementRef.nativeElement.ownerDocument.defaultView;
|
|
202
|
+
if (view == null || typeof this.#hostElementRef.nativeElement.animate !== "function") return false;
|
|
203
|
+
return !view.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
204
|
+
}
|
|
205
|
+
#measureRowMoves() {
|
|
206
|
+
const snapshot = this.#rowPositionsBeforeMove;
|
|
207
|
+
this.#rowPositionsBeforeMove = null;
|
|
208
|
+
if (snapshot == null || performance.now() - snapshot.time > ROW_MOVE_SNAPSHOT_LIFETIME) return [];
|
|
209
|
+
for (const animation of this.#rowMoveAnimations.values()) animation.cancel();
|
|
210
|
+
this.#rowMoveAnimations.clear();
|
|
211
|
+
const moves = [];
|
|
212
|
+
for (const [uid, position] of this.#readRowPositions()) {
|
|
213
|
+
const previousTop = snapshot.positions.get(uid);
|
|
214
|
+
if (previousTop != null && Math.abs(previousTop - position.top) >= .5) moves.push({
|
|
215
|
+
element: position.element,
|
|
216
|
+
offset: previousTop - position.top
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
return moves;
|
|
220
|
+
}
|
|
221
|
+
#playRowMoves(moves) {
|
|
222
|
+
for (const { element, offset } of moves) {
|
|
223
|
+
const animation = element.animate([{ transform: `translateY(${offset}px)` }, { transform: "translateY(0)" }], {
|
|
224
|
+
duration: ROW_MOVE_DURATION,
|
|
225
|
+
easing: ROW_MOVE_EASING
|
|
226
|
+
});
|
|
227
|
+
this.#rowMoveAnimations.set(element, animation);
|
|
228
|
+
animation.addEventListener("finish", () => {
|
|
229
|
+
if (this.#rowMoveAnimations.get(element) === animation) this.#rowMoveAnimations.delete(element);
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
#readRowPositions() {
|
|
234
|
+
const table = this.bodyTableElementRef().nativeElement;
|
|
235
|
+
const tableTop = table.getBoundingClientRect().top;
|
|
236
|
+
const positions = /* @__PURE__ */ new Map();
|
|
237
|
+
for (const element of table.querySelectorAll(":scope > tbody > tr[data-ruid]")) {
|
|
238
|
+
const uid = element.dataset["ruid"];
|
|
239
|
+
if (uid != null) positions.set(uid, {
|
|
240
|
+
element,
|
|
241
|
+
top: element.getBoundingClientRect().top - tableTop
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
return positions;
|
|
245
|
+
}
|
|
246
|
+
setSubscriptions() {
|
|
247
|
+
this.gridService.rowReorder$.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe(() => {
|
|
248
|
+
if (this.#dropping || !this.#canAnimateRowMoves()) return;
|
|
249
|
+
const positions = /* @__PURE__ */ new Map();
|
|
250
|
+
for (const [uid, position] of this.#readRowPositions()) positions.set(uid, position.top);
|
|
251
|
+
this.#rowPositionsBeforeMove = {
|
|
252
|
+
positions,
|
|
253
|
+
time: performance.now()
|
|
254
|
+
};
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
static {
|
|
258
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
259
|
+
minVersion: "12.0.0",
|
|
260
|
+
version: "22.2.6",
|
|
261
|
+
ngImport: i0,
|
|
262
|
+
type: GridListComponent,
|
|
263
|
+
deps: [],
|
|
264
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
static {
|
|
268
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
269
|
+
minVersion: "17.0.0",
|
|
270
|
+
version: "22.2.6",
|
|
271
|
+
type: GridListComponent,
|
|
272
|
+
isStandalone: true,
|
|
273
|
+
selector: "mona-grid-list",
|
|
274
|
+
inputs: { data: {
|
|
275
|
+
classPropertyName: "data",
|
|
276
|
+
publicName: "data",
|
|
277
|
+
isSignal: true,
|
|
278
|
+
isRequired: false,
|
|
279
|
+
transformFunction: null
|
|
280
|
+
} },
|
|
281
|
+
host: { properties: { "class": "baseClass" } },
|
|
282
|
+
viewQueries: [{
|
|
283
|
+
propertyName: "bodyTableElementRef",
|
|
284
|
+
first: true,
|
|
285
|
+
predicate: ["bodyTable"],
|
|
286
|
+
descendants: true,
|
|
287
|
+
isSignal: true
|
|
288
|
+
}],
|
|
289
|
+
ngImport: i0,
|
|
290
|
+
template: "<table role=\"presentation\" #bodyTable [class]=\"tableClass\" [style.width.px]=\"gridService.tableWidth()\">\n <colgroup monaGridColgroup></colgroup>\n <tbody\n role=\"rowgroup\"\n #bodyElement\n cdkDropList\n [cdkDropListData]=\"dropListData()\"\n [cdkDropListDisabled]=\"!gridService.rowReorderInteractionEnabled()\"\n (cdkDropListDropped)=\"onRowDrop($event)\">\n @if (gridService.addRowVisible()) {\n <tr monaGridAddRow></tr>\n }\n @for (bodyRow of bodyRows(); track bodyRow.key; let rowIndex = $index) {\n @let ariaRowIndex = ariaRows().indices[rowIndex];\n @if (bodyRow.type === \"group\") {\n <tr monaGridGroupRow [group]=\"bodyRow\" [rowIndex]=\"rowIndex\" [ariaRowIndex]=\"ariaRowIndex\"></tr>\n } @else if (bodyRow.type === \"groupFooter\") {\n <tr\n monaGridFooterRow\n [groupKey]=\"bodyRow.groupAggregate.groupKey\"\n [rowIndex]=\"rowIndex\"\n [section]=\"'body'\"\n [ariaLevel]=\"bodyRow.depth + 2\"\n [ariaRowIndex]=\"ariaRowIndex\"></tr>\n } @else if (!gridService.rowReorderColumnVisible()) {\n <tr monaGridRow [row]=\"bodyRow.row\" [index]=\"rowIndex\" [ariaRowIndex]=\"ariaRowIndex\"></tr>\n @if (gridService.isRowExpanded(bodyRow.row)) {\n <tr monaGridDetailRow [row]=\"bodyRow.row\" [ariaRowIndex]=\"ariaRowIndex + 1\"></tr>\n }\n } @else {\n <tr\n monaGridRow\n [row]=\"bodyRow.row\"\n [index]=\"rowIndex\"\n [ariaRowIndex]=\"ariaRowIndex\"\n cdkDrag\n cdkDragLockAxis=\"y\"\n [cdkDragData]=\"bodyRow.row\"\n [cdkDragDisabled]=\"!gridService.canReorderRow(bodyRow.row)\"\n (cdkDragStarted)=\"onRowDragStarted($event)\"\n (cdkDragEnded)=\"onRowDragEnded($event)\">\n <ng-template cdkDragPreview>\n <div [class]=\"rowDragPreviewClass\">\n <svg lucideGripVertical [size]=\"16\" aria-hidden=\"true\"></svg>\n <span>{{\n gridService.getRowReorderAriaLabel(\n bodyRow.row,\n rowIndex + gridService.paginationState().skip\n )\n }}</span>\n </div>\n </ng-template>\n </tr>\n @if (gridService.isRowExpanded(bodyRow.row) && !gridService.rowDragInProgress()) {\n <tr monaGridDetailRow [row]=\"bodyRow.row\" [ariaRowIndex]=\"ariaRowIndex + 1\"></tr>\n }\n }\n }\n </tbody>\n</table>\n@if (gridService.contextMenuItems().length !== 0) {\n <mona-contextmenu [target]=\"bodyElement\" [items]=\"gridService.contextMenuItems()\" />\n}\n",
|
|
291
|
+
dependencies: [
|
|
292
|
+
{
|
|
293
|
+
kind: "component",
|
|
294
|
+
type: ContextMenuComponent,
|
|
295
|
+
selector: "mona-contextmenu",
|
|
296
|
+
inputs: [
|
|
297
|
+
"aria-label",
|
|
298
|
+
"items",
|
|
299
|
+
"minWidth",
|
|
300
|
+
"rounded",
|
|
301
|
+
"size",
|
|
302
|
+
"target",
|
|
303
|
+
"width"
|
|
304
|
+
],
|
|
305
|
+
outputs: ["menuClick"]
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
kind: "component",
|
|
309
|
+
type: LucideGripVertical,
|
|
310
|
+
selector: "svg[lucideGripVertical]"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
kind: "component",
|
|
314
|
+
type: GridAddRowComponent,
|
|
315
|
+
selector: "tr[monaGridAddRow]"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
kind: "component",
|
|
319
|
+
type: GridColgroupComponent,
|
|
320
|
+
selector: "colgroup[monaGridColgroup]"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
kind: "component",
|
|
324
|
+
type: GridDetailRowComponent,
|
|
325
|
+
selector: "tr[monaGridDetailRow]",
|
|
326
|
+
inputs: ["ariaRowIndex", "row"]
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
kind: "component",
|
|
330
|
+
type: GridFooterRowComponent,
|
|
331
|
+
selector: "tr[monaGridFooterRow]",
|
|
332
|
+
inputs: [
|
|
333
|
+
"ariaLevel",
|
|
334
|
+
"ariaRowIndex",
|
|
335
|
+
"groupKey",
|
|
336
|
+
"rowIndex",
|
|
337
|
+
"section"
|
|
338
|
+
]
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
kind: "component",
|
|
342
|
+
type: GridGroupRowComponent,
|
|
343
|
+
selector: "tr[monaGridGroupRow]",
|
|
344
|
+
inputs: [
|
|
345
|
+
"ariaRowIndex",
|
|
346
|
+
"group",
|
|
347
|
+
"rowIndex"
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
kind: "component",
|
|
352
|
+
type: GridRowComponent,
|
|
353
|
+
selector: "tr[monaGridRow]",
|
|
354
|
+
inputs: [
|
|
355
|
+
"ariaRowIndex",
|
|
356
|
+
"index",
|
|
357
|
+
"row"
|
|
358
|
+
],
|
|
359
|
+
exportAs: ["monaGridRow"]
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
kind: "directive",
|
|
363
|
+
type: CdkDropList,
|
|
364
|
+
selector: "[cdkDropList], cdk-drop-list",
|
|
365
|
+
inputs: [
|
|
366
|
+
"cdkDropListConnectedTo",
|
|
367
|
+
"cdkDropListData",
|
|
368
|
+
"cdkDropListOrientation",
|
|
369
|
+
"id",
|
|
370
|
+
"cdkDropListLockAxis",
|
|
371
|
+
"cdkDropListDisabled",
|
|
372
|
+
"cdkDropListSortingDisabled",
|
|
373
|
+
"cdkDropListEnterPredicate",
|
|
374
|
+
"cdkDropListSortPredicate",
|
|
375
|
+
"cdkDropListAutoScrollDisabled",
|
|
376
|
+
"cdkDropListAutoScrollStep",
|
|
377
|
+
"cdkDropListElementContainer",
|
|
378
|
+
"cdkDropListHasAnchor"
|
|
379
|
+
],
|
|
380
|
+
outputs: [
|
|
381
|
+
"cdkDropListDropped",
|
|
382
|
+
"cdkDropListEntered",
|
|
383
|
+
"cdkDropListExited",
|
|
384
|
+
"cdkDropListSorted"
|
|
385
|
+
],
|
|
386
|
+
exportAs: ["cdkDropList"]
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
kind: "directive",
|
|
390
|
+
type: CdkDrag,
|
|
391
|
+
selector: "[cdkDrag]",
|
|
392
|
+
inputs: [
|
|
393
|
+
"cdkDragData",
|
|
394
|
+
"cdkDragLockAxis",
|
|
395
|
+
"cdkDragRootElement",
|
|
396
|
+
"cdkDragBoundary",
|
|
397
|
+
"cdkDragStartDelay",
|
|
398
|
+
"cdkDragFreeDragPosition",
|
|
399
|
+
"cdkDragDisabled",
|
|
400
|
+
"cdkDragConstrainPosition",
|
|
401
|
+
"cdkDragPreviewClass",
|
|
402
|
+
"cdkDragPreviewContainer",
|
|
403
|
+
"cdkDragScale"
|
|
404
|
+
],
|
|
405
|
+
outputs: [
|
|
406
|
+
"cdkDragStarted",
|
|
407
|
+
"cdkDragReleased",
|
|
408
|
+
"cdkDragEnded",
|
|
409
|
+
"cdkDragEntered",
|
|
410
|
+
"cdkDragExited",
|
|
411
|
+
"cdkDragDropped",
|
|
412
|
+
"cdkDragMoved"
|
|
413
|
+
],
|
|
414
|
+
exportAs: ["cdkDrag"]
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
kind: "directive",
|
|
418
|
+
type: CdkDragPreview,
|
|
419
|
+
selector: "ng-template[cdkDragPreview]",
|
|
420
|
+
inputs: ["data", "matchSize"]
|
|
421
|
+
}
|
|
422
|
+
]
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
427
|
+
minVersion: "12.0.0",
|
|
428
|
+
version: "22.2.6",
|
|
429
|
+
ngImport: i0,
|
|
430
|
+
type: GridListComponent,
|
|
431
|
+
decorators: [{
|
|
432
|
+
type: Component,
|
|
433
|
+
args: [{
|
|
434
|
+
selector: "mona-grid-list",
|
|
435
|
+
imports: [
|
|
436
|
+
ContextMenuComponent,
|
|
437
|
+
LucideGripVertical,
|
|
438
|
+
GridAddRowComponent,
|
|
439
|
+
GridColgroupComponent,
|
|
440
|
+
GridDetailRowComponent,
|
|
441
|
+
GridFooterRowComponent,
|
|
442
|
+
GridGroupRowComponent,
|
|
443
|
+
GridRowComponent,
|
|
444
|
+
CdkDropList,
|
|
445
|
+
CdkDrag,
|
|
446
|
+
CdkDragPreview
|
|
447
|
+
],
|
|
448
|
+
host: { "[class]": "baseClass" },
|
|
449
|
+
template: "<table role=\"presentation\" #bodyTable [class]=\"tableClass\" [style.width.px]=\"gridService.tableWidth()\">\n <colgroup monaGridColgroup></colgroup>\n <tbody\n role=\"rowgroup\"\n #bodyElement\n cdkDropList\n [cdkDropListData]=\"dropListData()\"\n [cdkDropListDisabled]=\"!gridService.rowReorderInteractionEnabled()\"\n (cdkDropListDropped)=\"onRowDrop($event)\">\n @if (gridService.addRowVisible()) {\n <tr monaGridAddRow></tr>\n }\n @for (bodyRow of bodyRows(); track bodyRow.key; let rowIndex = $index) {\n @let ariaRowIndex = ariaRows().indices[rowIndex];\n @if (bodyRow.type === \"group\") {\n <tr monaGridGroupRow [group]=\"bodyRow\" [rowIndex]=\"rowIndex\" [ariaRowIndex]=\"ariaRowIndex\"></tr>\n } @else if (bodyRow.type === \"groupFooter\") {\n <tr\n monaGridFooterRow\n [groupKey]=\"bodyRow.groupAggregate.groupKey\"\n [rowIndex]=\"rowIndex\"\n [section]=\"'body'\"\n [ariaLevel]=\"bodyRow.depth + 2\"\n [ariaRowIndex]=\"ariaRowIndex\"></tr>\n } @else if (!gridService.rowReorderColumnVisible()) {\n <tr monaGridRow [row]=\"bodyRow.row\" [index]=\"rowIndex\" [ariaRowIndex]=\"ariaRowIndex\"></tr>\n @if (gridService.isRowExpanded(bodyRow.row)) {\n <tr monaGridDetailRow [row]=\"bodyRow.row\" [ariaRowIndex]=\"ariaRowIndex + 1\"></tr>\n }\n } @else {\n <tr\n monaGridRow\n [row]=\"bodyRow.row\"\n [index]=\"rowIndex\"\n [ariaRowIndex]=\"ariaRowIndex\"\n cdkDrag\n cdkDragLockAxis=\"y\"\n [cdkDragData]=\"bodyRow.row\"\n [cdkDragDisabled]=\"!gridService.canReorderRow(bodyRow.row)\"\n (cdkDragStarted)=\"onRowDragStarted($event)\"\n (cdkDragEnded)=\"onRowDragEnded($event)\">\n <ng-template cdkDragPreview>\n <div [class]=\"rowDragPreviewClass\">\n <svg lucideGripVertical [size]=\"16\" aria-hidden=\"true\"></svg>\n <span>{{\n gridService.getRowReorderAriaLabel(\n bodyRow.row,\n rowIndex + gridService.paginationState().skip\n )\n }}</span>\n </div>\n </ng-template>\n </tr>\n @if (gridService.isRowExpanded(bodyRow.row) && !gridService.rowDragInProgress()) {\n <tr monaGridDetailRow [row]=\"bodyRow.row\" [ariaRowIndex]=\"ariaRowIndex + 1\"></tr>\n }\n }\n }\n </tbody>\n</table>\n@if (gridService.contextMenuItems().length !== 0) {\n <mona-contextmenu [target]=\"bodyElement\" [items]=\"gridService.contextMenuItems()\" />\n}\n"
|
|
450
|
+
}]
|
|
451
|
+
}],
|
|
452
|
+
ctorParameters: () => [],
|
|
453
|
+
propDecorators: {
|
|
454
|
+
bodyTableElementRef: [{
|
|
455
|
+
type: i0.ViewChild,
|
|
456
|
+
args: ["bodyTable", { isSignal: true }]
|
|
457
|
+
}],
|
|
458
|
+
data: [{
|
|
459
|
+
type: i0.Input,
|
|
460
|
+
args: [{
|
|
461
|
+
isSignal: true,
|
|
462
|
+
alias: "data",
|
|
463
|
+
required: false
|
|
464
|
+
}]
|
|
465
|
+
}]
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
export { GridListComponent };
|
|
469
|
+
|
|
470
|
+
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-list.component-WbXAzGCa.mjs.map
|