@zambon-dev/ui 1.2.0 → 1.2.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/CHANGELOG.md +52 -0
- package/fesm2022/zambon-dev-ui-library.mjs +65 -14
- package/fesm2022/zambon-dev-ui-library.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-shared.mjs +6 -6
- package/fesm2022/zambon-dev-ui-shared.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/theme.css +5 -0
- package/types/zambon-dev-ui-library.d.ts +23 -0
package/CHANGELOG.md
CHANGED
|
@@ -23,6 +23,58 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
23
23
|
|
|
24
24
|
### ⚠ Breaking Changes / Migration
|
|
25
25
|
|
|
26
|
+
## [1.2.2] - 2026-10-30
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- **A field shows the server's validation message as soon as the answer arrives.**
|
|
31
|
+
`lib-form-input-group` read its control's errors and touched state straight from the control,
|
|
32
|
+
which is not a signal. Under `OnPush` nothing told it when they changed from outside the field.
|
|
33
|
+
So when a save came back with a 400, the input turned red, but the message stayed hidden until
|
|
34
|
+
the user typed in the field again. The group now follows the control's events. This also covers
|
|
35
|
+
`lib-catalog-select`, which draws its field inside the group.
|
|
36
|
+
- **A save that marks every field as touched shows the required messages.** Same cause, same fix.
|
|
37
|
+
|
|
38
|
+
## [1.2.1] - 2026-10-27
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
|
|
42
|
+
- **`--color-line-selected`**, the rule around a selected row. It is the rung of the selection
|
|
43
|
+
wash at full strength: `primary-200` in the light theme, `primary-300` in the dark one.
|
|
44
|
+
- **`DataGridRowComponent.rowIndex`**, the row's index in the data. The data grid sets it; the
|
|
45
|
+
zebra stripe follows it.
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
|
|
49
|
+
- **The multi-editor's add and remove buttons sit at the two ends of their row.** Add stays at
|
|
50
|
+
the start, where it always is. Remove lines up with the form's right edge, apart from add.
|
|
51
|
+
|
|
52
|
+
### Fixed
|
|
53
|
+
|
|
54
|
+
- **The sign-in card is centred on the screen, both ways.**
|
|
55
|
+
- _Horizontally:_ the login layout's wrapper was called `.container`, which is also a Tailwind
|
|
56
|
+
utility. An application that scans this package generates it, and it caps the width at each
|
|
57
|
+
breakpoint without centring, so on any screen wider than 1280px the card sat left of centre --
|
|
58
|
+
by 192px at 1920px. The wrapper is now `.login-container`.
|
|
59
|
+
- _Vertically:_ the card and the footer under it were centred as one block, which left the card
|
|
60
|
+
half a footer above the middle -- 28px on a laptop, where the footer wraps to two lines. The
|
|
61
|
+
footer now hangs below a card that is centred on its own. On a screen too short for both, the
|
|
62
|
+
card moves up first and the footer stays readable.
|
|
63
|
+
- **A selected grid row is framed in blue, not near-black.** The rule around it used the accent,
|
|
64
|
+
a fill colour, which as a 1px line around a pale wash read as black in the light theme. It now
|
|
65
|
+
uses `--color-line-selected`. The dark theme looks the same as before.
|
|
66
|
+
- **The multi-editor's buttons no longer split the pane in two.** Each sat in half of a grid, and a
|
|
67
|
+
`lib-button` keeps its own width, so add hugged the left of one half and remove began in the
|
|
68
|
+
middle and stopped short of the edge.
|
|
69
|
+
- **Grid stripes hold still while you scroll.** The zebra stripe was `:nth-child(even)` over the
|
|
70
|
+
rows the virtual scroll had rendered. That window moves, so whenever it moved by an odd number of
|
|
71
|
+
rows every stripe swapped -- on a long list, constantly. It now follows each row's index in the
|
|
72
|
+
data.
|
|
73
|
+
|
|
74
|
+
### ⚠ Breaking Changes / Migration
|
|
75
|
+
|
|
76
|
+
- None.
|
|
77
|
+
|
|
26
78
|
## [1.2.0] - 2026-10-27
|
|
27
79
|
|
|
28
80
|
### Added
|
|
@@ -1833,6 +1833,19 @@ var FormInputGroupComponent = class FormInputGroupComponent extends BaseComponen
|
|
|
1833
1833
|
formGroupName = inject(FormGroupName, { optional: true });
|
|
1834
1834
|
formService = inject(FormService);
|
|
1835
1835
|
loadingField = signal(false, ...ngDevMode ? [{ debugName: "loadingField" }] : /* istanbul ignore next */ []);
|
|
1836
|
+
controlChanged = signal(0, ...ngDevMode ? [{ debugName: "controlChanged" }] : /* istanbul ignore next */ []);
|
|
1837
|
+
errors = computed(() => {
|
|
1838
|
+
this.controlChanged();
|
|
1839
|
+
return this.formControl?.errors ?? null;
|
|
1840
|
+
}, ...ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []);
|
|
1841
|
+
isInvalid = computed(() => {
|
|
1842
|
+
this.controlChanged();
|
|
1843
|
+
return this.formControl?.invalid ?? false;
|
|
1844
|
+
}, ...ngDevMode ? [{ debugName: "isInvalid" }] : /* istanbul ignore next */ []);
|
|
1845
|
+
isTouched = computed(() => {
|
|
1846
|
+
this.controlChanged();
|
|
1847
|
+
return this.formControl?.touched ?? false;
|
|
1848
|
+
}, ...ngDevMode ? [{ debugName: "isTouched" }] : /* istanbul ignore next */ []);
|
|
1836
1849
|
get formControl() {
|
|
1837
1850
|
return this.controlName() ? this.formGroup.get(this.controlName()) : null;
|
|
1838
1851
|
}
|
|
@@ -1851,6 +1864,7 @@ var FormInputGroupComponent = class FormInputGroupComponent extends BaseComponen
|
|
|
1851
1864
|
super();
|
|
1852
1865
|
}
|
|
1853
1866
|
ngOnInit() {
|
|
1867
|
+
this.formControl?.events.pipe(takeUntil(this.destroy$)).subscribe(() => this.controlChanged.update((count) => count + 1));
|
|
1854
1868
|
this.formControl?.statusChanges.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
1855
1869
|
this.loadingField.set(false);
|
|
1856
1870
|
});
|
|
@@ -2012,7 +2026,7 @@ var FormInputGroupComponent = class FormInputGroupComponent extends BaseComponen
|
|
|
2012
2026
|
} },
|
|
2013
2027
|
usesInheritance: true,
|
|
2014
2028
|
ngImport: i0,
|
|
2015
|
-
template: "@if (showLabel()) {\n <label [attr.for]=\"controlName()\"> {{ label() | translate }}: </label>\n}\n\n<div class=\"field\" [class.col-span-2]=\"!showLabel()\" [ngStyle]=\"{ 'align-content': alignContent() }\">\n @if (loadingField() || (formService.loading && formService.model === null)) {\n <div class=\"loading\">\n <div></div>\n </div>\n } @else {\n <ng-container *ngTemplateOutlet=\"template() ?? defaultTemplate\"> </ng-container>\n @if (
|
|
2029
|
+
template: "@if (showLabel()) {\n <label [attr.for]=\"controlName()\"> {{ label() | translate }}: </label>\n}\n\n<div class=\"field\" [class.col-span-2]=\"!showLabel()\" [ngStyle]=\"{ 'align-content': alignContent() }\">\n @if (loadingField() || (formService.loading && formService.model === null)) {\n <div class=\"loading\">\n <div></div>\n </div>\n } @else {\n <ng-container *ngTemplateOutlet=\"template() ?? defaultTemplate\"> </ng-container>\n @if (isTouched()) {\n <div class=\"validations\" [class.show]=\"isInvalid()\">\n @for (error of errors() | keyvalue; track error) {\n @if (hasValidation(error.key)) {\n <span>{{ validations()[error.key] | translate }}</span>\n }\n <ng-template #defaultValidationError>{{ error.key }}</ng-template>\n }\n </div>\n }\n <ng-template #defaultTemplate>\n <lib-form-input\n #formInput\n [autofocus]=\"autofocus()\"\n [controlName]=\"controlName()\"\n [fixedValue]=\"fixedValue()\"\n [format]=\"format()\"\n [isDisabled]=\"isDisabled()\"\n [isFullHeight]=\"isFullHeight()\"\n [min]=\"min()\"\n [maxLength]=\"maxLength()\"\n [readOnly]=\"readOnly()\"\n [rows]=\"rows()!\"\n [step]=\"step()\"\n [type]=\"type()\"\n >\n </lib-form-input>\n </ng-template>\n @if (hasNotes) {\n <span class=\"text-sm italic\"> *{{ notes() | translate }} </span>\n }\n }\n</div>\n",
|
|
2016
2030
|
styles: ["@layer properties;:host{grid-column:span 2 / span 2;display:grid;grid-template-columns:subgrid;gap:calc(var(--spacing, .25rem) * 3)}:host.full-height{max-height:100%;overflow:auto}label{padding-block:var(--spacing, .25rem);white-space:nowrap;text-align:right;--tw-leading: calc(var(--spacing, .25rem) * 6);line-height:calc(var(--spacing, .25rem) * 6);font-size:var(--text-caption);font-weight:var(--font-weight-emphasis);color:var(--color-content-secondary)}.field .validations{flex-basis:100%;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:var(--color-danger)}.field .validations.show{margin-top:var(--spacing, .25rem)}.field .validations span{display:block}.field .loading{max-width:var(--container-sm, 24rem);animation:var(--animate-pulse, pulse 2s cubic-bezier(.4, 0, .6, 1) infinite)}.field .loading *{height:calc(var(--spacing, .25rem) * 2.5);width:100%;border-radius:calc(infinity * 1px);background-color:var(--color-surface-inset)}@property --tw-leading{syntax: \"*\"; inherits: false;}@keyframes pulse{50%{opacity:.5}}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
2017
2031
|
dependencies: [
|
|
2018
2032
|
{
|
|
@@ -2095,7 +2109,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2095
2109
|
"[class.full-height]": "isFullHeight()",
|
|
2096
2110
|
"[attr.type]": "null"
|
|
2097
2111
|
},
|
|
2098
|
-
template: "@if (showLabel()) {\n <label [attr.for]=\"controlName()\"> {{ label() | translate }}: </label>\n}\n\n<div class=\"field\" [class.col-span-2]=\"!showLabel()\" [ngStyle]=\"{ 'align-content': alignContent() }\">\n @if (loadingField() || (formService.loading && formService.model === null)) {\n <div class=\"loading\">\n <div></div>\n </div>\n } @else {\n <ng-container *ngTemplateOutlet=\"template() ?? defaultTemplate\"> </ng-container>\n @if (
|
|
2112
|
+
template: "@if (showLabel()) {\n <label [attr.for]=\"controlName()\"> {{ label() | translate }}: </label>\n}\n\n<div class=\"field\" [class.col-span-2]=\"!showLabel()\" [ngStyle]=\"{ 'align-content': alignContent() }\">\n @if (loadingField() || (formService.loading && formService.model === null)) {\n <div class=\"loading\">\n <div></div>\n </div>\n } @else {\n <ng-container *ngTemplateOutlet=\"template() ?? defaultTemplate\"> </ng-container>\n @if (isTouched()) {\n <div class=\"validations\" [class.show]=\"isInvalid()\">\n @for (error of errors() | keyvalue; track error) {\n @if (hasValidation(error.key)) {\n <span>{{ validations()[error.key] | translate }}</span>\n }\n <ng-template #defaultValidationError>{{ error.key }}</ng-template>\n }\n </div>\n }\n <ng-template #defaultTemplate>\n <lib-form-input\n #formInput\n [autofocus]=\"autofocus()\"\n [controlName]=\"controlName()\"\n [fixedValue]=\"fixedValue()\"\n [format]=\"format()\"\n [isDisabled]=\"isDisabled()\"\n [isFullHeight]=\"isFullHeight()\"\n [min]=\"min()\"\n [maxLength]=\"maxLength()\"\n [readOnly]=\"readOnly()\"\n [rows]=\"rows()!\"\n [step]=\"step()\"\n [type]=\"type()\"\n >\n </lib-form-input>\n </ng-template>\n @if (hasNotes) {\n <span class=\"text-sm italic\"> *{{ notes() | translate }} </span>\n }\n }\n</div>\n",
|
|
2099
2113
|
styles: ["@layer properties;:host{grid-column:span 2 / span 2;display:grid;grid-template-columns:subgrid;gap:calc(var(--spacing, .25rem) * 3)}:host.full-height{max-height:100%;overflow:auto}label{padding-block:var(--spacing, .25rem);white-space:nowrap;text-align:right;--tw-leading: calc(var(--spacing, .25rem) * 6);line-height:calc(var(--spacing, .25rem) * 6);font-size:var(--text-caption);font-weight:var(--font-weight-emphasis);color:var(--color-content-secondary)}.field .validations{flex-basis:100%;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:var(--color-danger)}.field .validations.show{margin-top:var(--spacing, .25rem)}.field .validations span{display:block}.field .loading{max-width:var(--container-sm, 24rem);animation:var(--animate-pulse, pulse 2s cubic-bezier(.4, 0, .6, 1) infinite)}.field .loading *{height:calc(var(--spacing, .25rem) * 2.5);width:100%;border-radius:calc(infinity * 1px);background-color:var(--color-surface-inset)}@property --tw-leading{syntax: \"*\"; inherits: false;}@keyframes pulse{50%{opacity:.5}}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
2100
2114
|
}]
|
|
2101
2115
|
}],
|
|
@@ -3040,6 +3054,7 @@ var DataGridRowComponent = class DataGridRowComponent extends BaseComponent {
|
|
|
3040
3054
|
this._rowData = value;
|
|
3041
3055
|
this.refreshSelection();
|
|
3042
3056
|
}
|
|
3057
|
+
rowIndex = input(0, ...ngDevMode ? [{ debugName: "rowIndex" }] : /* istanbul ignore next */ []);
|
|
3043
3058
|
selectionResized = new EventEmitter();
|
|
3044
3059
|
setFocus() {
|
|
3045
3060
|
if (!this.disabled) {
|
|
@@ -3111,16 +3126,42 @@ var DataGridRowComponent = class DataGridRowComponent extends BaseComponent {
|
|
|
3111
3126
|
isStandalone: true,
|
|
3112
3127
|
selector: "lib-data-grid-row",
|
|
3113
3128
|
inputs: {
|
|
3114
|
-
disabled:
|
|
3115
|
-
|
|
3116
|
-
|
|
3129
|
+
disabled: {
|
|
3130
|
+
classPropertyName: "disabled",
|
|
3131
|
+
publicName: "disabled",
|
|
3132
|
+
isSignal: false,
|
|
3133
|
+
isRequired: false,
|
|
3134
|
+
transformFunction: null
|
|
3135
|
+
},
|
|
3136
|
+
isFirstRow: {
|
|
3137
|
+
classPropertyName: "isFirstRow",
|
|
3138
|
+
publicName: "isFirstRow",
|
|
3139
|
+
isSignal: false,
|
|
3140
|
+
isRequired: false,
|
|
3141
|
+
transformFunction: null
|
|
3142
|
+
},
|
|
3143
|
+
rowData: {
|
|
3144
|
+
classPropertyName: "rowData",
|
|
3145
|
+
publicName: "rowData",
|
|
3146
|
+
isSignal: false,
|
|
3147
|
+
isRequired: false,
|
|
3148
|
+
transformFunction: null
|
|
3149
|
+
},
|
|
3150
|
+
rowIndex: {
|
|
3151
|
+
classPropertyName: "rowIndex",
|
|
3152
|
+
publicName: "rowIndex",
|
|
3153
|
+
isSignal: true,
|
|
3154
|
+
isRequired: false,
|
|
3155
|
+
transformFunction: null
|
|
3156
|
+
}
|
|
3117
3157
|
},
|
|
3118
3158
|
outputs: { selectionResized: "selectionResized" },
|
|
3119
3159
|
host: {
|
|
3120
3160
|
listeners: { "click": "setFocus()" },
|
|
3121
3161
|
properties: {
|
|
3122
3162
|
"class.focused": "dataGridDataset.focusedRowKey === rowData",
|
|
3123
|
-
"class.selected": "dataGridDataset.isKeySelected(rowKey)"
|
|
3163
|
+
"class.selected": "dataGridDataset.isKeySelected(rowKey)",
|
|
3164
|
+
"class.striped": "rowIndex() % 2 === 1"
|
|
3124
3165
|
}
|
|
3125
3166
|
},
|
|
3126
3167
|
usesInheritance: true,
|
|
@@ -3197,7 +3238,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3197
3238
|
selector: "lib-data-grid-row",
|
|
3198
3239
|
host: {
|
|
3199
3240
|
"[class.focused]": "dataGridDataset.focusedRowKey === rowData",
|
|
3200
|
-
"[class.selected]": "dataGridDataset.isKeySelected(rowKey)"
|
|
3241
|
+
"[class.selected]": "dataGridDataset.isKeySelected(rowKey)",
|
|
3242
|
+
"[class.striped]": "rowIndex() % 2 === 1"
|
|
3201
3243
|
},
|
|
3202
3244
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3203
3245
|
imports: [
|
|
@@ -3215,6 +3257,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3215
3257
|
disabled: [{ type: Input }],
|
|
3216
3258
|
isFirstRow: [{ type: Input }],
|
|
3217
3259
|
rowData: [{ type: Input }],
|
|
3260
|
+
rowIndex: [{
|
|
3261
|
+
type: i0.Input,
|
|
3262
|
+
args: [{
|
|
3263
|
+
isSignal: true,
|
|
3264
|
+
alias: "rowIndex",
|
|
3265
|
+
required: false
|
|
3266
|
+
}]
|
|
3267
|
+
}],
|
|
3218
3268
|
selectionResized: [{ type: Output }],
|
|
3219
3269
|
setFocus: [{
|
|
3220
3270
|
type: HostListener,
|
|
@@ -3427,8 +3477,8 @@ var DataGridComponent = class DataGridComponent extends BaseComponent {
|
|
|
3427
3477
|
}],
|
|
3428
3478
|
usesInheritance: true,
|
|
3429
3479
|
ngImport: i0,
|
|
3430
|
-
template: "@if (showButtons()) {\n <div class=\"buttons\">\n <ng-content select=\"[buttons]\"></ng-content>\n </div>\n}\n\n<div class=\"header\" [class.hide]=\"isHideColumns\" [style.padding-right.px]=\"headerRightMargin()\">\n <!-- Translated by however far the body is scrolled sideways. The rows scroll inside the CDK\n viewport and the header sits outside it, so without this the headings simply stay put\n while the cells move away from them. -->\n <div class=\"header-row\" [style.transform]=\"headerScrollLeft() ? 'translateX(-' + headerScrollLeft() + 'px)' : null\">\n @if (isShowMultiSelect) {\n <div\n class=\"header-cell selection\"\n [ngStyle]=\"{\n width: selectionColWidth ? selectionColWidth : null,\n }\"\n >\n \n </div>\n }\n\n <!-- A measured zero is a width, not the absence of one: it is a 1fr column that collapsed,\n and its heading has to collapse too.\n\n Such a heading is removed rather than merely made zero wide, because a flex item still\n takes a gap on each side while the body grid allows the collapsed track only one, and\n that spare gap pushed every heading to its right out by 16px. -->\n @for (column of columns; track column) {\n <div\n class=\"header-cell\"\n [ngStyle]=\"{\n display: column.realSize === 0 ? 'none' : null,\n 'width.px': column.realSize ?? null,\n }\"\n >\n <span>{{ column.headerName | translate }}</span>\n </div>\n }\n </div>\n</div>\n\n<div #body class=\"body\" [style.min-height.px]=\"bodyMinHeight\">\n <cdk-virtual-scroll-viewport [itemSize]=\"configs.rowHeight\" [style.grid-template-columns]=\"gridColumns\">\n <lib-data-grid-row\n #row\n *cdkVirtualFor=\"let row of dataGridDataset.loadedRows; index as i; trackBy: trackByFn\"\n [disabled]=\"disabled()\"\n [isFirstRow]=\"isFirstVisibleRow(i)\"\n [rowData]=\"row\"\n [style.height.px]=\"configs.rowHeight\"\n (selectionResized)=\"onSelectionResized($event)\"\n >\n </lib-data-grid-row>\n\n @if (loading()) {\n <div class=\"loading\" [style.height.px]=\"configs.rowHeight\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <circle class=\"opacity-25\" cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"4\"></circle>\n <path\n class=\"opacity-75\"\n fill=\"currentColor\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n ></path>\n </svg>\n <span>\n {{ dataGridDataset.configs.loadingDisplayText ?? '' | translate }}\n </span>\n </div>\n }\n @if (!loading() && !hasBeenLoaded && lazyLoadRows()) {\n <div class=\"message\" [style.height.px]=\"configs.rowHeight\">\n <span>\n {{ messageToDisplayWhenLazyLoad | translate }}\n </span>\n </div>\n }\n @if (!loading() && hasBeenLoaded && (!hasLoadedRows || hasFailed())) {\n @if (!hasFailed() && !hasLoadedRows && hasMessageToDisplayWhenEmpty && shouldDisplayMessageWhenEmpty) {\n <div class=\"message\" [style.height.px]=\"configs.rowHeight\">\n <span>\n {{ messageToDisplayWhenEmpty | translate }}\n </span>\n </div>\n }\n @if (hasFailed()) {\n <div class=\"message\" [style.height.px]=\"configs.rowHeight\">\n <span>\n <i class=\"fas fa-exclamation-triangle mr-2 text-yellow-600\"></i>{{ messageToDisplayWhenFailed | translate }}\n </span>\n </div>\n }\n }\n </cdk-virtual-scroll-viewport>\n</div>\n",
|
|
3431
|
-
styles: ["@charset \"UTF-8\";@layer properties;:host{display:flex;flex-direction:column;overflow:hidden;-webkit-user-select:none;user-select:none}:host:not(.no-borders){border-style:var(--tw-border-style);border-width:1px;background-color:var(--color-surface-solid);border-color:var(--color-line);border-radius:var(--surface-radius, .5rem)}:host.no-borders .header .header-row{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.no-borders .body lib-data-grid-row{padding-block:var(--spacing, .25rem)}.header-row,lib-data-grid-row,.loading,.message{gap:calc(var(--spacing, .25rem) * 4);padding-inline:calc(var(--spacing, .25rem) * 4)}.header{overflow:hidden;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700);background-color:color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent);border-color:var(--color-line)}@supports (color: color-mix(in lab,red,red)){.header{background-color:color-mix(in srgb,var(--color-content-primary) 14%,transparent)}}.header.hide{display:none}.header .header-row{display:flex;flex-direction:row;padding-block:calc(var(--spacing, .25rem) * 3)}.header .header-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header .header-cell:not(.selection){flex:none}.body{position:relative;flex-grow:1}.body cdk-virtual-scroll-viewport{position:absolute;inset:0}.body cdk-virtual-scroll-viewport ::ng-deep .cdk-virtual-scroll-content-wrapper{display:grid;grid-template-columns:inherit}.body lib-data-grid-row{margin-top:-1px;cursor:pointer;border-block-style:var(--tw-border-style);border-block-width:1px;padding-block:calc(var(--spacing, .25rem) * 2);border-color:var(--color-line)}.body lib-data-grid-row
|
|
3480
|
+
template: "@if (showButtons()) {\n <div class=\"buttons\">\n <ng-content select=\"[buttons]\"></ng-content>\n </div>\n}\n\n<div class=\"header\" [class.hide]=\"isHideColumns\" [style.padding-right.px]=\"headerRightMargin()\">\n <!-- Translated by however far the body is scrolled sideways. The rows scroll inside the CDK\n viewport and the header sits outside it, so without this the headings simply stay put\n while the cells move away from them. -->\n <div class=\"header-row\" [style.transform]=\"headerScrollLeft() ? 'translateX(-' + headerScrollLeft() + 'px)' : null\">\n @if (isShowMultiSelect) {\n <div\n class=\"header-cell selection\"\n [ngStyle]=\"{\n width: selectionColWidth ? selectionColWidth : null,\n }\"\n >\n \n </div>\n }\n\n <!-- A measured zero is a width, not the absence of one: it is a 1fr column that collapsed,\n and its heading has to collapse too.\n\n Such a heading is removed rather than merely made zero wide, because a flex item still\n takes a gap on each side while the body grid allows the collapsed track only one, and\n that spare gap pushed every heading to its right out by 16px. -->\n @for (column of columns; track column) {\n <div\n class=\"header-cell\"\n [ngStyle]=\"{\n display: column.realSize === 0 ? 'none' : null,\n 'width.px': column.realSize ?? null,\n }\"\n >\n <span>{{ column.headerName | translate }}</span>\n </div>\n }\n </div>\n</div>\n\n<div #body class=\"body\" [style.min-height.px]=\"bodyMinHeight\">\n <cdk-virtual-scroll-viewport [itemSize]=\"configs.rowHeight\" [style.grid-template-columns]=\"gridColumns\">\n <lib-data-grid-row\n #row\n *cdkVirtualFor=\"let row of dataGridDataset.loadedRows; index as i; trackBy: trackByFn\"\n [disabled]=\"disabled()\"\n [isFirstRow]=\"isFirstVisibleRow(i)\"\n [rowData]=\"row\"\n [rowIndex]=\"i\"\n [style.height.px]=\"configs.rowHeight\"\n (selectionResized)=\"onSelectionResized($event)\"\n >\n </lib-data-grid-row>\n\n @if (loading()) {\n <div class=\"loading\" [style.height.px]=\"configs.rowHeight\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <circle class=\"opacity-25\" cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"4\"></circle>\n <path\n class=\"opacity-75\"\n fill=\"currentColor\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n ></path>\n </svg>\n <span>\n {{ dataGridDataset.configs.loadingDisplayText ?? '' | translate }}\n </span>\n </div>\n }\n @if (!loading() && !hasBeenLoaded && lazyLoadRows()) {\n <div class=\"message\" [style.height.px]=\"configs.rowHeight\">\n <span>\n {{ messageToDisplayWhenLazyLoad | translate }}\n </span>\n </div>\n }\n @if (!loading() && hasBeenLoaded && (!hasLoadedRows || hasFailed())) {\n @if (!hasFailed() && !hasLoadedRows && hasMessageToDisplayWhenEmpty && shouldDisplayMessageWhenEmpty) {\n <div class=\"message\" [style.height.px]=\"configs.rowHeight\">\n <span>\n {{ messageToDisplayWhenEmpty | translate }}\n </span>\n </div>\n }\n @if (hasFailed()) {\n <div class=\"message\" [style.height.px]=\"configs.rowHeight\">\n <span>\n <i class=\"fas fa-exclamation-triangle mr-2 text-yellow-600\"></i>{{ messageToDisplayWhenFailed | translate }}\n </span>\n </div>\n }\n }\n </cdk-virtual-scroll-viewport>\n</div>\n",
|
|
3481
|
+
styles: ["@charset \"UTF-8\";@layer properties;:host{display:flex;flex-direction:column;overflow:hidden;-webkit-user-select:none;user-select:none}:host:not(.no-borders){border-style:var(--tw-border-style);border-width:1px;background-color:var(--color-surface-solid);border-color:var(--color-line);border-radius:var(--surface-radius, .5rem)}:host.no-borders .header .header-row{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.no-borders .body lib-data-grid-row{padding-block:var(--spacing, .25rem)}.header-row,lib-data-grid-row,.loading,.message{gap:calc(var(--spacing, .25rem) * 4);padding-inline:calc(var(--spacing, .25rem) * 4)}.header{overflow:hidden;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700);background-color:color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent);border-color:var(--color-line)}@supports (color: color-mix(in lab,red,red)){.header{background-color:color-mix(in srgb,var(--color-content-primary) 14%,transparent)}}.header.hide{display:none}.header .header-row{display:flex;flex-direction:row;padding-block:calc(var(--spacing, .25rem) * 3)}.header .header-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header .header-cell:not(.selection){flex:none}.body{position:relative;flex-grow:1}.body cdk-virtual-scroll-viewport{position:absolute;inset:0}.body cdk-virtual-scroll-viewport ::ng-deep .cdk-virtual-scroll-content-wrapper{display:grid;grid-template-columns:inherit}.body lib-data-grid-row{margin-top:-1px;cursor:pointer;border-block-style:var(--tw-border-style);border-block-width:1px;padding-block:calc(var(--spacing, .25rem) * 2);border-color:var(--color-line)}.body lib-data-grid-row.striped{background-color:var(--state-hover)}.body lib-data-grid-row:hover{background-color:var(--state-selected)}.body lib-data-grid-row.focused{z-index:1;border-color:var(--color-line-strong)}.body lib-data-grid-row.selected{position:relative;z-index:10;background-color:var(--state-selected);border-color:var(--color-line-selected)}.body lib-data-grid-row.selected:hover{background-color:var(--state-selected)}.body .loading,.body .message{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2);white-space:nowrap;height:calc(var(--spacing, .25rem) * 10);border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-line);grid-column:1 / -1}.body .loading span,.body .message span{overflow:hidden;text-overflow:ellipsis}.body .loading svg{height:calc(var(--spacing, .25rem) * 6);min-height:calc(var(--spacing, .25rem) * 6);width:calc(var(--spacing, .25rem) * 6);min-width:calc(var(--spacing, .25rem) * 6);animation:var(--animate-spin, spin 1s linear infinite);transition-property:opacity;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));transition-duration:var(--duration-short);transition-timing-function:var(--ease-standard)}.buttons{display:flex;border-top-style:var(--tw-border-style);border-top-width:1px;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;padding:var(--spacing, .25rem);border-color:var(--color-line)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@keyframes spin{to{transform:rotate(360deg)}}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
3432
3482
|
dependencies: [
|
|
3433
3483
|
{
|
|
3434
3484
|
kind: "component",
|
|
@@ -3437,7 +3487,8 @@ var DataGridComponent = class DataGridComponent extends BaseComponent {
|
|
|
3437
3487
|
inputs: [
|
|
3438
3488
|
"disabled",
|
|
3439
3489
|
"isFirstRow",
|
|
3440
|
-
"rowData"
|
|
3490
|
+
"rowData",
|
|
3491
|
+
"rowIndex"
|
|
3441
3492
|
],
|
|
3442
3493
|
outputs: ["selectionResized"]
|
|
3443
3494
|
},
|
|
@@ -3503,8 +3554,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3503
3554
|
ScrollingModule,
|
|
3504
3555
|
TranslatePipe
|
|
3505
3556
|
],
|
|
3506
|
-
template: "@if (showButtons()) {\n <div class=\"buttons\">\n <ng-content select=\"[buttons]\"></ng-content>\n </div>\n}\n\n<div class=\"header\" [class.hide]=\"isHideColumns\" [style.padding-right.px]=\"headerRightMargin()\">\n <!-- Translated by however far the body is scrolled sideways. The rows scroll inside the CDK\n viewport and the header sits outside it, so without this the headings simply stay put\n while the cells move away from them. -->\n <div class=\"header-row\" [style.transform]=\"headerScrollLeft() ? 'translateX(-' + headerScrollLeft() + 'px)' : null\">\n @if (isShowMultiSelect) {\n <div\n class=\"header-cell selection\"\n [ngStyle]=\"{\n width: selectionColWidth ? selectionColWidth : null,\n }\"\n >\n \n </div>\n }\n\n <!-- A measured zero is a width, not the absence of one: it is a 1fr column that collapsed,\n and its heading has to collapse too.\n\n Such a heading is removed rather than merely made zero wide, because a flex item still\n takes a gap on each side while the body grid allows the collapsed track only one, and\n that spare gap pushed every heading to its right out by 16px. -->\n @for (column of columns; track column) {\n <div\n class=\"header-cell\"\n [ngStyle]=\"{\n display: column.realSize === 0 ? 'none' : null,\n 'width.px': column.realSize ?? null,\n }\"\n >\n <span>{{ column.headerName | translate }}</span>\n </div>\n }\n </div>\n</div>\n\n<div #body class=\"body\" [style.min-height.px]=\"bodyMinHeight\">\n <cdk-virtual-scroll-viewport [itemSize]=\"configs.rowHeight\" [style.grid-template-columns]=\"gridColumns\">\n <lib-data-grid-row\n #row\n *cdkVirtualFor=\"let row of dataGridDataset.loadedRows; index as i; trackBy: trackByFn\"\n [disabled]=\"disabled()\"\n [isFirstRow]=\"isFirstVisibleRow(i)\"\n [rowData]=\"row\"\n [style.height.px]=\"configs.rowHeight\"\n (selectionResized)=\"onSelectionResized($event)\"\n >\n </lib-data-grid-row>\n\n @if (loading()) {\n <div class=\"loading\" [style.height.px]=\"configs.rowHeight\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <circle class=\"opacity-25\" cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"4\"></circle>\n <path\n class=\"opacity-75\"\n fill=\"currentColor\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n ></path>\n </svg>\n <span>\n {{ dataGridDataset.configs.loadingDisplayText ?? '' | translate }}\n </span>\n </div>\n }\n @if (!loading() && !hasBeenLoaded && lazyLoadRows()) {\n <div class=\"message\" [style.height.px]=\"configs.rowHeight\">\n <span>\n {{ messageToDisplayWhenLazyLoad | translate }}\n </span>\n </div>\n }\n @if (!loading() && hasBeenLoaded && (!hasLoadedRows || hasFailed())) {\n @if (!hasFailed() && !hasLoadedRows && hasMessageToDisplayWhenEmpty && shouldDisplayMessageWhenEmpty) {\n <div class=\"message\" [style.height.px]=\"configs.rowHeight\">\n <span>\n {{ messageToDisplayWhenEmpty | translate }}\n </span>\n </div>\n }\n @if (hasFailed()) {\n <div class=\"message\" [style.height.px]=\"configs.rowHeight\">\n <span>\n <i class=\"fas fa-exclamation-triangle mr-2 text-yellow-600\"></i>{{ messageToDisplayWhenFailed | translate }}\n </span>\n </div>\n }\n }\n </cdk-virtual-scroll-viewport>\n</div>\n",
|
|
3507
|
-
styles: ["@charset \"UTF-8\";@layer properties;:host{display:flex;flex-direction:column;overflow:hidden;-webkit-user-select:none;user-select:none}:host:not(.no-borders){border-style:var(--tw-border-style);border-width:1px;background-color:var(--color-surface-solid);border-color:var(--color-line);border-radius:var(--surface-radius, .5rem)}:host.no-borders .header .header-row{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.no-borders .body lib-data-grid-row{padding-block:var(--spacing, .25rem)}.header-row,lib-data-grid-row,.loading,.message{gap:calc(var(--spacing, .25rem) * 4);padding-inline:calc(var(--spacing, .25rem) * 4)}.header{overflow:hidden;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700);background-color:color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent);border-color:var(--color-line)}@supports (color: color-mix(in lab,red,red)){.header{background-color:color-mix(in srgb,var(--color-content-primary) 14%,transparent)}}.header.hide{display:none}.header .header-row{display:flex;flex-direction:row;padding-block:calc(var(--spacing, .25rem) * 3)}.header .header-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header .header-cell:not(.selection){flex:none}.body{position:relative;flex-grow:1}.body cdk-virtual-scroll-viewport{position:absolute;inset:0}.body cdk-virtual-scroll-viewport ::ng-deep .cdk-virtual-scroll-content-wrapper{display:grid;grid-template-columns:inherit}.body lib-data-grid-row{margin-top:-1px;cursor:pointer;border-block-style:var(--tw-border-style);border-block-width:1px;padding-block:calc(var(--spacing, .25rem) * 2);border-color:var(--color-line)}.body lib-data-grid-row
|
|
3557
|
+
template: "@if (showButtons()) {\n <div class=\"buttons\">\n <ng-content select=\"[buttons]\"></ng-content>\n </div>\n}\n\n<div class=\"header\" [class.hide]=\"isHideColumns\" [style.padding-right.px]=\"headerRightMargin()\">\n <!-- Translated by however far the body is scrolled sideways. The rows scroll inside the CDK\n viewport and the header sits outside it, so without this the headings simply stay put\n while the cells move away from them. -->\n <div class=\"header-row\" [style.transform]=\"headerScrollLeft() ? 'translateX(-' + headerScrollLeft() + 'px)' : null\">\n @if (isShowMultiSelect) {\n <div\n class=\"header-cell selection\"\n [ngStyle]=\"{\n width: selectionColWidth ? selectionColWidth : null,\n }\"\n >\n \n </div>\n }\n\n <!-- A measured zero is a width, not the absence of one: it is a 1fr column that collapsed,\n and its heading has to collapse too.\n\n Such a heading is removed rather than merely made zero wide, because a flex item still\n takes a gap on each side while the body grid allows the collapsed track only one, and\n that spare gap pushed every heading to its right out by 16px. -->\n @for (column of columns; track column) {\n <div\n class=\"header-cell\"\n [ngStyle]=\"{\n display: column.realSize === 0 ? 'none' : null,\n 'width.px': column.realSize ?? null,\n }\"\n >\n <span>{{ column.headerName | translate }}</span>\n </div>\n }\n </div>\n</div>\n\n<div #body class=\"body\" [style.min-height.px]=\"bodyMinHeight\">\n <cdk-virtual-scroll-viewport [itemSize]=\"configs.rowHeight\" [style.grid-template-columns]=\"gridColumns\">\n <lib-data-grid-row\n #row\n *cdkVirtualFor=\"let row of dataGridDataset.loadedRows; index as i; trackBy: trackByFn\"\n [disabled]=\"disabled()\"\n [isFirstRow]=\"isFirstVisibleRow(i)\"\n [rowData]=\"row\"\n [rowIndex]=\"i\"\n [style.height.px]=\"configs.rowHeight\"\n (selectionResized)=\"onSelectionResized($event)\"\n >\n </lib-data-grid-row>\n\n @if (loading()) {\n <div class=\"loading\" [style.height.px]=\"configs.rowHeight\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <circle class=\"opacity-25\" cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"4\"></circle>\n <path\n class=\"opacity-75\"\n fill=\"currentColor\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n ></path>\n </svg>\n <span>\n {{ dataGridDataset.configs.loadingDisplayText ?? '' | translate }}\n </span>\n </div>\n }\n @if (!loading() && !hasBeenLoaded && lazyLoadRows()) {\n <div class=\"message\" [style.height.px]=\"configs.rowHeight\">\n <span>\n {{ messageToDisplayWhenLazyLoad | translate }}\n </span>\n </div>\n }\n @if (!loading() && hasBeenLoaded && (!hasLoadedRows || hasFailed())) {\n @if (!hasFailed() && !hasLoadedRows && hasMessageToDisplayWhenEmpty && shouldDisplayMessageWhenEmpty) {\n <div class=\"message\" [style.height.px]=\"configs.rowHeight\">\n <span>\n {{ messageToDisplayWhenEmpty | translate }}\n </span>\n </div>\n }\n @if (hasFailed()) {\n <div class=\"message\" [style.height.px]=\"configs.rowHeight\">\n <span>\n <i class=\"fas fa-exclamation-triangle mr-2 text-yellow-600\"></i>{{ messageToDisplayWhenFailed | translate }}\n </span>\n </div>\n }\n }\n </cdk-virtual-scroll-viewport>\n</div>\n",
|
|
3558
|
+
styles: ["@charset \"UTF-8\";@layer properties;:host{display:flex;flex-direction:column;overflow:hidden;-webkit-user-select:none;user-select:none}:host:not(.no-borders){border-style:var(--tw-border-style);border-width:1px;background-color:var(--color-surface-solid);border-color:var(--color-line);border-radius:var(--surface-radius, .5rem)}:host.no-borders .header .header-row{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.no-borders .body lib-data-grid-row{padding-block:var(--spacing, .25rem)}.header-row,lib-data-grid-row,.loading,.message{gap:calc(var(--spacing, .25rem) * 4);padding-inline:calc(var(--spacing, .25rem) * 4)}.header{overflow:hidden;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700);background-color:color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent);border-color:var(--color-line)}@supports (color: color-mix(in lab,red,red)){.header{background-color:color-mix(in srgb,var(--color-content-primary) 14%,transparent)}}.header.hide{display:none}.header .header-row{display:flex;flex-direction:row;padding-block:calc(var(--spacing, .25rem) * 3)}.header .header-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header .header-cell:not(.selection){flex:none}.body{position:relative;flex-grow:1}.body cdk-virtual-scroll-viewport{position:absolute;inset:0}.body cdk-virtual-scroll-viewport ::ng-deep .cdk-virtual-scroll-content-wrapper{display:grid;grid-template-columns:inherit}.body lib-data-grid-row{margin-top:-1px;cursor:pointer;border-block-style:var(--tw-border-style);border-block-width:1px;padding-block:calc(var(--spacing, .25rem) * 2);border-color:var(--color-line)}.body lib-data-grid-row.striped{background-color:var(--state-hover)}.body lib-data-grid-row:hover{background-color:var(--state-selected)}.body lib-data-grid-row.focused{z-index:1;border-color:var(--color-line-strong)}.body lib-data-grid-row.selected{position:relative;z-index:10;background-color:var(--state-selected);border-color:var(--color-line-selected)}.body lib-data-grid-row.selected:hover{background-color:var(--state-selected)}.body .loading,.body .message{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2);white-space:nowrap;height:calc(var(--spacing, .25rem) * 10);border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-line);grid-column:1 / -1}.body .loading span,.body .message span{overflow:hidden;text-overflow:ellipsis}.body .loading svg{height:calc(var(--spacing, .25rem) * 6);min-height:calc(var(--spacing, .25rem) * 6);width:calc(var(--spacing, .25rem) * 6);min-width:calc(var(--spacing, .25rem) * 6);animation:var(--animate-spin, spin 1s linear infinite);transition-property:opacity;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));transition-duration:var(--duration-short);transition-timing-function:var(--ease-standard)}.buttons{display:flex;border-top-style:var(--tw-border-style);border-top-width:1px;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;padding:var(--spacing, .25rem);border-color:var(--color-line)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@keyframes spin{to{transform:rotate(360deg)}}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
3508
3559
|
}]
|
|
3509
3560
|
}],
|
|
3510
3561
|
ctorParameters: () => [],
|
|
@@ -4354,7 +4405,7 @@ var MultiEditorComponent = class MultiEditorComponent extends ModalComponent {
|
|
|
4354
4405
|
usesInheritance: true,
|
|
4355
4406
|
ngImport: i0,
|
|
4356
4407
|
template: "<lib-modal\n [closeButtonText]=\"closeButtonText() | translate\"\n [dialog]=\"dialog()\"\n [modalProcessing]=\"modalProcessing()\"\n [position]=\"position()\"\n [size]=\"size()\"\n [title]=\"title() ?? ''\"\n>\n <!-- `.body-content` exists to be the query container and nothing else; `.panes` is the grid it\n controls. A grid cannot query itself, and the host is `display: contents` so it has no box\n of its own to contain anything. -->\n <div body class=\"body-content\">\n <div class=\"panes\">\n <div class=\"data-grid\">\n <lib-data-grid [disabled]=\"modalProcessing()\" [lazyLoadRows]=\"true\"></lib-data-grid>\n </div>\n\n <div class=\"data\">\n <div class=\"buttons\">\n @if (showAddButton()) {\n <lib-button\n intent=\"secondary\"\n [disabled]=\"modalProcessing() || gridLoading() || formLoading || formGroup().invalid\"\n (click)=\"onNewClick()\"\n >\n {{ addButtonLabel() }}\n </lib-button>\n }\n @if (showDeleteButton() && hasSelectedKey()) {\n <lib-button\n intent=\"danger\"\n [disabled]=\"modalProcessing() || gridLoading() || formLoading\"\n (click)=\"onDeleteClick()\"\n >\n {{ removeButtonLabel() }}\n </lib-button>\n }\n </div>\n\n <lib-form-group>\n <ng-content></ng-content>\n </lib-form-group>\n </div>\n </div>\n </div>\n\n <div footer>\n <lib-button\n intent=\"primary\"\n [disabled]=\"gridLoading() || formLoading\"\n [loading]=\"modalProcessing()\"\n (click)=\"onSaveClick()\"\n >\n {{ 'Button-Modal-MultiEditor-Confirm' | translate }}\n </lib-button>\n </div>\n</lib-modal>\n",
|
|
4357
|
-
styles: [":host{display:contents}.body-content{display:grid;height:100%;container-type:inline-size;container-name:modal-body}.panes{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:calc(var(--spacing, .25rem) * 4);overflow:clip;overflow-clip-margin:4px}.data-grid{display:grid;overflow:hidden;-webkit-user-select:none;user-select:none}.data{display:grid;-webkit-user-select:none;user-select:none;overflow:clip;overflow-clip-margin:4px;min-height:24rem;grid-template-rows:min-content minmax(0,1fr);gap:calc(var(--spacing, .25rem) * 2)}.data .buttons{display:
|
|
4408
|
+
styles: [":host{display:contents}.body-content{display:grid;height:100%;container-type:inline-size;container-name:modal-body}.panes{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:calc(var(--spacing, .25rem) * 4);overflow:clip;overflow-clip-margin:4px}.data-grid{display:grid;overflow:hidden;-webkit-user-select:none;user-select:none}.data{display:grid;-webkit-user-select:none;user-select:none;overflow:clip;overflow-clip-margin:4px;min-height:24rem;grid-template-rows:min-content minmax(0,1fr);gap:calc(var(--spacing, .25rem) * 2)}.data .buttons{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2)}@container modal-body (max-width: 36rem){.panes{grid-auto-flow:row;grid-template-rows:minmax(11rem,1fr) minmax(11rem,1fr)}.data-grid,.data{min-height:0px;overflow-y:auto}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
4358
4409
|
dependencies: [
|
|
4359
4410
|
{
|
|
4360
4411
|
kind: "component",
|
|
@@ -4430,7 +4481,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4430
4481
|
TranslatePipe
|
|
4431
4482
|
],
|
|
4432
4483
|
template: "<lib-modal\n [closeButtonText]=\"closeButtonText() | translate\"\n [dialog]=\"dialog()\"\n [modalProcessing]=\"modalProcessing()\"\n [position]=\"position()\"\n [size]=\"size()\"\n [title]=\"title() ?? ''\"\n>\n <!-- `.body-content` exists to be the query container and nothing else; `.panes` is the grid it\n controls. A grid cannot query itself, and the host is `display: contents` so it has no box\n of its own to contain anything. -->\n <div body class=\"body-content\">\n <div class=\"panes\">\n <div class=\"data-grid\">\n <lib-data-grid [disabled]=\"modalProcessing()\" [lazyLoadRows]=\"true\"></lib-data-grid>\n </div>\n\n <div class=\"data\">\n <div class=\"buttons\">\n @if (showAddButton()) {\n <lib-button\n intent=\"secondary\"\n [disabled]=\"modalProcessing() || gridLoading() || formLoading || formGroup().invalid\"\n (click)=\"onNewClick()\"\n >\n {{ addButtonLabel() }}\n </lib-button>\n }\n @if (showDeleteButton() && hasSelectedKey()) {\n <lib-button\n intent=\"danger\"\n [disabled]=\"modalProcessing() || gridLoading() || formLoading\"\n (click)=\"onDeleteClick()\"\n >\n {{ removeButtonLabel() }}\n </lib-button>\n }\n </div>\n\n <lib-form-group>\n <ng-content></ng-content>\n </lib-form-group>\n </div>\n </div>\n </div>\n\n <div footer>\n <lib-button\n intent=\"primary\"\n [disabled]=\"gridLoading() || formLoading\"\n [loading]=\"modalProcessing()\"\n (click)=\"onSaveClick()\"\n >\n {{ 'Button-Modal-MultiEditor-Confirm' | translate }}\n </lib-button>\n </div>\n</lib-modal>\n",
|
|
4433
|
-
styles: [":host{display:contents}.body-content{display:grid;height:100%;container-type:inline-size;container-name:modal-body}.panes{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:calc(var(--spacing, .25rem) * 4);overflow:clip;overflow-clip-margin:4px}.data-grid{display:grid;overflow:hidden;-webkit-user-select:none;user-select:none}.data{display:grid;-webkit-user-select:none;user-select:none;overflow:clip;overflow-clip-margin:4px;min-height:24rem;grid-template-rows:min-content minmax(0,1fr);gap:calc(var(--spacing, .25rem) * 2)}.data .buttons{display:
|
|
4484
|
+
styles: [":host{display:contents}.body-content{display:grid;height:100%;container-type:inline-size;container-name:modal-body}.panes{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:calc(var(--spacing, .25rem) * 4);overflow:clip;overflow-clip-margin:4px}.data-grid{display:grid;overflow:hidden;-webkit-user-select:none;user-select:none}.data{display:grid;-webkit-user-select:none;user-select:none;overflow:clip;overflow-clip-margin:4px;min-height:24rem;grid-template-rows:min-content minmax(0,1fr);gap:calc(var(--spacing, .25rem) * 2)}.data .buttons{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2)}@container modal-body (max-width: 36rem){.panes{grid-auto-flow:row;grid-template-rows:minmax(11rem,1fr) minmax(11rem,1fr)}.data-grid,.data{min-height:0px;overflow-y:auto}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
4434
4485
|
}]
|
|
4435
4486
|
}],
|
|
4436
4487
|
ctorParameters: () => [],
|