@zambon-dev/ui 1.1.1 → 1.2.1
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 +111 -0
- package/fesm2022/zambon-dev-ui-library.mjs +77 -26
- 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 +31 -0
package/CHANGELOG.md
CHANGED
|
@@ -23,6 +23,117 @@ 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.1] - 2026-10-27
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- **`--color-line-selected`**, the rule around a selected row. It is the rung of the selection
|
|
31
|
+
wash at full strength: `primary-200` in the light theme, `primary-300` in the dark one.
|
|
32
|
+
- **`DataGridRowComponent.rowIndex`**, the row's index in the data. The data grid sets it; the
|
|
33
|
+
zebra stripe follows it.
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- **The multi-editor's add and remove buttons sit at the two ends of their row.** Add stays at
|
|
38
|
+
the start, where it always is. Remove lines up with the form's right edge, apart from add.
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- **The sign-in card is centred on the screen, both ways.**
|
|
43
|
+
- _Horizontally:_ the login layout's wrapper was called `.container`, which is also a Tailwind
|
|
44
|
+
utility. An application that scans this package generates it, and it caps the width at each
|
|
45
|
+
breakpoint without centring, so on any screen wider than 1280px the card sat left of centre --
|
|
46
|
+
by 192px at 1920px. The wrapper is now `.login-container`.
|
|
47
|
+
- _Vertically:_ the card and the footer under it were centred as one block, which left the card
|
|
48
|
+
half a footer above the middle -- 28px on a laptop, where the footer wraps to two lines. The
|
|
49
|
+
footer now hangs below a card that is centred on its own. On a screen too short for both, the
|
|
50
|
+
card moves up first and the footer stays readable.
|
|
51
|
+
- **A selected grid row is framed in blue, not near-black.** The rule around it used the accent,
|
|
52
|
+
a fill colour, which as a 1px line around a pale wash read as black in the light theme. It now
|
|
53
|
+
uses `--color-line-selected`. The dark theme looks the same as before.
|
|
54
|
+
- **The multi-editor's buttons no longer split the pane in two.** Each sat in half of a grid, and a
|
|
55
|
+
`lib-button` keeps its own width, so add hugged the left of one half and remove began in the
|
|
56
|
+
middle and stopped short of the edge.
|
|
57
|
+
- **Grid stripes hold still while you scroll.** The zebra stripe was `:nth-child(even)` over the
|
|
58
|
+
rows the virtual scroll had rendered. That window moves, so whenever it moved by an odd number of
|
|
59
|
+
rows every stripe swapped -- on a long list, constantly. It now follows each row's index in the
|
|
60
|
+
data.
|
|
61
|
+
|
|
62
|
+
### ⚠ Breaking Changes / Migration
|
|
63
|
+
|
|
64
|
+
- None.
|
|
65
|
+
|
|
66
|
+
## [1.2.0] - 2026-10-27
|
|
67
|
+
|
|
68
|
+
### Added
|
|
69
|
+
|
|
70
|
+
- **Ribbon buttons carry an accessible name.** `lib-ribbon-button` sets `aria-label` from its
|
|
71
|
+
label whether or not the label is on screen, falling back to `tooltip` when there is no label.
|
|
72
|
+
The dropdown chevron, which had no name at all, borrows the button's through `aria-labelledby`.
|
|
73
|
+
No new translation key: the chevron reuses the name the button already has.
|
|
74
|
+
- **`title` falls back to the label.** A button with no `tooltip` now explains itself on hover
|
|
75
|
+
using its label, which matters once a narrow screen has taken that label away.
|
|
76
|
+
|
|
77
|
+
### Changed
|
|
78
|
+
|
|
79
|
+
- **The ribbon adapts to narrow screens.** Below `36rem` of the bar's **own** width — not the
|
|
80
|
+
window's — buttons drop their labels and their glyph shrinks, and group captions are hidden.
|
|
81
|
+
Whatever still does not fit scrolls horizontally, at any width. Measured at 375px: the bar is
|
|
82
|
+
58px tall instead of 110px, and a six-button bar that previously lost two buttons outright now
|
|
83
|
+
reaches all of them.
|
|
84
|
+
- **The ribbon no longer shrinks vertically.** It is a flex item in the views' full-height
|
|
85
|
+
column and was being squeezed on short screens, which pushed its group captions outside the bar.
|
|
86
|
+
- **The `[right]` slot joins the row when the bar scrolls.** `justify-between` packs from the
|
|
87
|
+
start once the content overflows, so the slot stops being pinned opposite the groups and sits
|
|
88
|
+
at the end of the scrolling row. Visible on every detail view at phone width.
|
|
89
|
+
- **Two-pane modals stack when narrow.** `lib-multi-select` and `lib-multi-editor` put one pane
|
|
90
|
+
per row below `36rem` of the **modal's** width, each pane scrolling inside a minimum height.
|
|
91
|
+
Keyed on the modal because its width comes from its `size` input: a `size-sm` modal is narrow on
|
|
92
|
+
a desktop too. `lib-modal` itself is unchanged.
|
|
93
|
+
|
|
94
|
+
### Fixed
|
|
95
|
+
|
|
96
|
+
- **Ribbon actions were unreachable on a narrow screen.** The bar neither wrapped nor scrolled, so
|
|
97
|
+
anything past the edge was clipped by an ancestor with nothing on screen saying so. At 375px a
|
|
98
|
+
typical list view silently lost its Refresh and Export buttons.
|
|
99
|
+
- **The data grid's header was nearly the same colour as its striped rows.** The header and the
|
|
100
|
+
zebra stripe were drawn from two different ramps that converged: measured over white, the header
|
|
101
|
+
landed 7.5 apart from a striped row while the two row colours are 23.7 apart, so the header read
|
|
102
|
+
as a third, fainter stripe rather than as a heading. In the dark theme both ramps lighten and the
|
|
103
|
+
gap was 3.7 — no difference at all. The header now sits on the same ink as the stripe, several
|
|
104
|
+
rungs up, so it is always the strongest of the three and inverts with the theme on its own.
|
|
105
|
+
|
|
106
|
+
### ⚠ Breaking Changes / Migration
|
|
107
|
+
|
|
108
|
+
- **A ribbon inside a parent that sizes to its own contents now collapses.** The ribbon host is a
|
|
109
|
+
CSS container query container, and a contained element contributes no width to its parent, so an
|
|
110
|
+
`inline-block`, float or grid auto column around a `lib-ribbon` shrinks to nothing and takes the
|
|
111
|
+
bar with it — measured at 10px, padding and border only.
|
|
112
|
+
|
|
113
|
+
**Migration:** give the parent a width. Make it a block, a grid cell, or a stretched flex item,
|
|
114
|
+
which is what a full-width toolbar wants anyway. Every usage in this package already satisfies
|
|
115
|
+
this. The `Library/Ribbon/Ribbon → CollapsesInAContentSizedParent` story shows the failure.
|
|
116
|
+
|
|
117
|
+
- **Anything you project into a `lib-ribbon` that used to escape the bar no longer does.** The
|
|
118
|
+
host is now a horizontal scroll container, so an in-place popover, a `position: sticky` child or
|
|
119
|
+
an absolutely positioned badge is clipped or scrolled by it instead of painting outside. The
|
|
120
|
+
ribbon button's own options list is unaffected: it already renders through a CDK overlay, and
|
|
121
|
+
that is the pattern to follow.
|
|
122
|
+
|
|
123
|
+
**Migration:** render anything that must escape the bar through a CDK overlay.
|
|
124
|
+
|
|
125
|
+
- **`position: fixed` and `position: absolute` inside a `lib-ribbon` now resolve against the
|
|
126
|
+
ribbon**, not the viewport or an outer ancestor, because containment makes the host a
|
|
127
|
+
containing block.
|
|
128
|
+
|
|
129
|
+
- **A `lib-ribbon` inside a flex _row_ now overflows instead of shrinking.** The host declares
|
|
130
|
+
`width: 100%` and `flex-shrink: 0` — the latter because it was being squeezed on short screens
|
|
131
|
+
and its group captions were painting outside the bar — so in a row there is nothing left to
|
|
132
|
+
give. In a flex column, which is how every view in this package uses it, nothing changes.
|
|
133
|
+
|
|
134
|
+
**Migration:** give a row-flex parent room, or let the ribbon shrink by overriding
|
|
135
|
+
`flex-shrink` on it.
|
|
136
|
+
|
|
26
137
|
## [1.1.1] - 2026-10-25
|
|
27
138
|
|
|
28
139
|
### Changed
|
|
@@ -3040,6 +3040,7 @@ var DataGridRowComponent = class DataGridRowComponent extends BaseComponent {
|
|
|
3040
3040
|
this._rowData = value;
|
|
3041
3041
|
this.refreshSelection();
|
|
3042
3042
|
}
|
|
3043
|
+
rowIndex = input(0, ...ngDevMode ? [{ debugName: "rowIndex" }] : /* istanbul ignore next */ []);
|
|
3043
3044
|
selectionResized = new EventEmitter();
|
|
3044
3045
|
setFocus() {
|
|
3045
3046
|
if (!this.disabled) {
|
|
@@ -3111,16 +3112,42 @@ var DataGridRowComponent = class DataGridRowComponent extends BaseComponent {
|
|
|
3111
3112
|
isStandalone: true,
|
|
3112
3113
|
selector: "lib-data-grid-row",
|
|
3113
3114
|
inputs: {
|
|
3114
|
-
disabled:
|
|
3115
|
-
|
|
3116
|
-
|
|
3115
|
+
disabled: {
|
|
3116
|
+
classPropertyName: "disabled",
|
|
3117
|
+
publicName: "disabled",
|
|
3118
|
+
isSignal: false,
|
|
3119
|
+
isRequired: false,
|
|
3120
|
+
transformFunction: null
|
|
3121
|
+
},
|
|
3122
|
+
isFirstRow: {
|
|
3123
|
+
classPropertyName: "isFirstRow",
|
|
3124
|
+
publicName: "isFirstRow",
|
|
3125
|
+
isSignal: false,
|
|
3126
|
+
isRequired: false,
|
|
3127
|
+
transformFunction: null
|
|
3128
|
+
},
|
|
3129
|
+
rowData: {
|
|
3130
|
+
classPropertyName: "rowData",
|
|
3131
|
+
publicName: "rowData",
|
|
3132
|
+
isSignal: false,
|
|
3133
|
+
isRequired: false,
|
|
3134
|
+
transformFunction: null
|
|
3135
|
+
},
|
|
3136
|
+
rowIndex: {
|
|
3137
|
+
classPropertyName: "rowIndex",
|
|
3138
|
+
publicName: "rowIndex",
|
|
3139
|
+
isSignal: true,
|
|
3140
|
+
isRequired: false,
|
|
3141
|
+
transformFunction: null
|
|
3142
|
+
}
|
|
3117
3143
|
},
|
|
3118
3144
|
outputs: { selectionResized: "selectionResized" },
|
|
3119
3145
|
host: {
|
|
3120
3146
|
listeners: { "click": "setFocus()" },
|
|
3121
3147
|
properties: {
|
|
3122
3148
|
"class.focused": "dataGridDataset.focusedRowKey === rowData",
|
|
3123
|
-
"class.selected": "dataGridDataset.isKeySelected(rowKey)"
|
|
3149
|
+
"class.selected": "dataGridDataset.isKeySelected(rowKey)",
|
|
3150
|
+
"class.striped": "rowIndex() % 2 === 1"
|
|
3124
3151
|
}
|
|
3125
3152
|
},
|
|
3126
3153
|
usesInheritance: true,
|
|
@@ -3197,7 +3224,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3197
3224
|
selector: "lib-data-grid-row",
|
|
3198
3225
|
host: {
|
|
3199
3226
|
"[class.focused]": "dataGridDataset.focusedRowKey === rowData",
|
|
3200
|
-
"[class.selected]": "dataGridDataset.isKeySelected(rowKey)"
|
|
3227
|
+
"[class.selected]": "dataGridDataset.isKeySelected(rowKey)",
|
|
3228
|
+
"[class.striped]": "rowIndex() % 2 === 1"
|
|
3201
3229
|
},
|
|
3202
3230
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3203
3231
|
imports: [
|
|
@@ -3215,6 +3243,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3215
3243
|
disabled: [{ type: Input }],
|
|
3216
3244
|
isFirstRow: [{ type: Input }],
|
|
3217
3245
|
rowData: [{ type: Input }],
|
|
3246
|
+
rowIndex: [{
|
|
3247
|
+
type: i0.Input,
|
|
3248
|
+
args: [{
|
|
3249
|
+
isSignal: true,
|
|
3250
|
+
alias: "rowIndex",
|
|
3251
|
+
required: false
|
|
3252
|
+
}]
|
|
3253
|
+
}],
|
|
3218
3254
|
selectionResized: [{ type: Output }],
|
|
3219
3255
|
setFocus: [{
|
|
3220
3256
|
type: HostListener,
|
|
@@ -3427,8 +3463,8 @@ var DataGridComponent = class DataGridComponent extends BaseComponent {
|
|
|
3427
3463
|
}],
|
|
3428
3464
|
usesInheritance: true,
|
|
3429
3465
|
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:var(--color-
|
|
3466
|
+
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",
|
|
3467
|
+
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
3468
|
dependencies: [
|
|
3433
3469
|
{
|
|
3434
3470
|
kind: "component",
|
|
@@ -3437,7 +3473,8 @@ var DataGridComponent = class DataGridComponent extends BaseComponent {
|
|
|
3437
3473
|
inputs: [
|
|
3438
3474
|
"disabled",
|
|
3439
3475
|
"isFirstRow",
|
|
3440
|
-
"rowData"
|
|
3476
|
+
"rowData",
|
|
3477
|
+
"rowIndex"
|
|
3441
3478
|
],
|
|
3442
3479
|
outputs: ["selectionResized"]
|
|
3443
3480
|
},
|
|
@@ -3503,8 +3540,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3503
3540
|
ScrollingModule,
|
|
3504
3541
|
TranslatePipe
|
|
3505
3542
|
],
|
|
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:var(--color-
|
|
3543
|
+
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",
|
|
3544
|
+
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
3545
|
}]
|
|
3509
3546
|
}],
|
|
3510
3547
|
ctorParameters: () => [],
|
|
@@ -4353,8 +4390,8 @@ var MultiEditorComponent = class MultiEditorComponent extends ModalComponent {
|
|
|
4353
4390
|
}],
|
|
4354
4391
|
usesInheritance: true,
|
|
4355
4392
|
ngImport: i0,
|
|
4356
|
-
template: "<lib-modal\n [closeButtonText]=\"closeButtonText() | translate\"\n [dialog]=\"dialog()\"\n [modalProcessing]=\"modalProcessing()\"\n [position]=\"position()\"\n [size]=\"size()\"\n [title]=\"title() ?? ''\"\n>\n <div body class=\"body-content\">\n <div class=\"data-grid\">\n
|
|
4357
|
-
styles: [":host{display:contents}.body-content{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:
|
|
4393
|
+
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",
|
|
4394
|
+
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
4395
|
dependencies: [
|
|
4359
4396
|
{
|
|
4360
4397
|
kind: "component",
|
|
@@ -4429,8 +4466,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4429
4466
|
FormGroupComponent,
|
|
4430
4467
|
TranslatePipe
|
|
4431
4468
|
],
|
|
4432
|
-
template: "<lib-modal\n [closeButtonText]=\"closeButtonText() | translate\"\n [dialog]=\"dialog()\"\n [modalProcessing]=\"modalProcessing()\"\n [position]=\"position()\"\n [size]=\"size()\"\n [title]=\"title() ?? ''\"\n>\n <div body class=\"body-content\">\n <div class=\"data-grid\">\n
|
|
4433
|
-
styles: [":host{display:contents}.body-content{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:
|
|
4469
|
+
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",
|
|
4470
|
+
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
4471
|
}]
|
|
4435
4472
|
}],
|
|
4436
4473
|
ctorParameters: () => [],
|
|
@@ -4724,8 +4761,8 @@ var MultiSelectComponent = class MultiSelectComponent extends ModalComponent {
|
|
|
4724
4761
|
}],
|
|
4725
4762
|
usesInheritance: true,
|
|
4726
4763
|
ngImport: i0,
|
|
4727
|
-
template: "<lib-modal\n [closeButtonText]=\"closeButtonText() | translate\"\n [dialog]=\"dialog()\"\n [modalProcessing]=\"modalProcessing()\"\n [position]=\"position()\"\n [size]=\"size()\"\n [title]=\"title() ?? ''\"\n>\n <div body class=\"body-content\">\n <div class=\"search-grid\">\n
|
|
4728
|
-
styles: [":host{display:contents}.body-content{display:grid;height:100%;grid-auto-columns:minmax(0,1fr);
|
|
4764
|
+
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=\"search-grid\">\n <div class=\"search\">\n <input\n class=\"form-input\"\n placeholder=\"Search...\"\n type=\"text\"\n [(ngModel)]=\"searchCriteria\"\n [disabled]=\"modalProcessing() || isSearchGridLoading()\"\n (keydown.enter)=\"onSearch($event)\"\n />\n </div>\n\n <lib-data-grid\n [disabled]=\"modalProcessing() || isSearchGridLoading() || isResultGridLoading()\"\n [lazyLoadRows]=\"true\"\n >\n </lib-data-grid>\n </div>\n\n <lib-multi-select-result-grid\n [isDisabled]=\"modalProcessing() || isSearchGridLoading() || isResultGridLoading()\"\n [template]=\"itemTemplate()!\"\n >\n </lib-multi-select-result-grid>\n </div>\n </div>\n\n <div footer>\n <lib-button intent=\"primary\" [loading]=\"modalProcessing()\" (click)=\"onSave()\">\n {{ 'Button-Modal-MultiSelect-Confirm' | translate }}\n </lib-button>\n </div>\n</lib-modal>\n",
|
|
4765
|
+
styles: [":host{display:contents}.body-content{display:grid;height:100%;container-type:inline-size;container-name:modal-body}.panes{display:grid;height:100%;grid-auto-columns:minmax(0,1fr);gap:calc(var(--spacing, .25rem) * 4);grid-template-rows:min-content minmax(0,1fr);grid-auto-flow:row!important;overflow:clip;overflow-clip-margin:4px}.search-grid{display:grid;grid-template-rows:subgrid}.search-grid,lib-multi-select-result-grid{grid-row:1 / -1}lib-multi-select-result-grid{min-height:24rem}@container modal-body (max-width: 36rem){.panes{grid-template-rows:minmax(11rem,1fr) minmax(11rem,1fr)}.search-grid,lib-multi-select-result-grid{grid-row:span 1 / span 1;min-height:0px;overflow-y:auto}.search-grid{grid-template-rows:min-content minmax(0,1fr)}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
4729
4766
|
dependencies: [
|
|
4730
4767
|
{
|
|
4731
4768
|
kind: "component",
|
|
@@ -4828,8 +4865,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4828
4865
|
MultiSelectResultGridComponent,
|
|
4829
4866
|
TranslatePipe
|
|
4830
4867
|
],
|
|
4831
|
-
template: "<lib-modal\n [closeButtonText]=\"closeButtonText() | translate\"\n [dialog]=\"dialog()\"\n [modalProcessing]=\"modalProcessing()\"\n [position]=\"position()\"\n [size]=\"size()\"\n [title]=\"title() ?? ''\"\n>\n <div body class=\"body-content\">\n <div class=\"search-grid\">\n
|
|
4832
|
-
styles: [":host{display:contents}.body-content{display:grid;height:100%;grid-auto-columns:minmax(0,1fr);
|
|
4868
|
+
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=\"search-grid\">\n <div class=\"search\">\n <input\n class=\"form-input\"\n placeholder=\"Search...\"\n type=\"text\"\n [(ngModel)]=\"searchCriteria\"\n [disabled]=\"modalProcessing() || isSearchGridLoading()\"\n (keydown.enter)=\"onSearch($event)\"\n />\n </div>\n\n <lib-data-grid\n [disabled]=\"modalProcessing() || isSearchGridLoading() || isResultGridLoading()\"\n [lazyLoadRows]=\"true\"\n >\n </lib-data-grid>\n </div>\n\n <lib-multi-select-result-grid\n [isDisabled]=\"modalProcessing() || isSearchGridLoading() || isResultGridLoading()\"\n [template]=\"itemTemplate()!\"\n >\n </lib-multi-select-result-grid>\n </div>\n </div>\n\n <div footer>\n <lib-button intent=\"primary\" [loading]=\"modalProcessing()\" (click)=\"onSave()\">\n {{ 'Button-Modal-MultiSelect-Confirm' | translate }}\n </lib-button>\n </div>\n</lib-modal>\n",
|
|
4869
|
+
styles: [":host{display:contents}.body-content{display:grid;height:100%;container-type:inline-size;container-name:modal-body}.panes{display:grid;height:100%;grid-auto-columns:minmax(0,1fr);gap:calc(var(--spacing, .25rem) * 4);grid-template-rows:min-content minmax(0,1fr);grid-auto-flow:row!important;overflow:clip;overflow-clip-margin:4px}.search-grid{display:grid;grid-template-rows:subgrid}.search-grid,lib-multi-select-result-grid{grid-row:1 / -1}lib-multi-select-result-grid{min-height:24rem}@container modal-body (max-width: 36rem){.panes{grid-template-rows:minmax(11rem,1fr) minmax(11rem,1fr)}.search-grid,lib-multi-select-result-grid{grid-row:span 1 / span 1;min-height:0px;overflow-y:auto}.search-grid{grid-template-rows:min-content minmax(0,1fr)}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
4833
4870
|
}]
|
|
4834
4871
|
}],
|
|
4835
4872
|
ctorParameters: () => [],
|
|
@@ -5260,11 +5297,25 @@ var RibbonButtonComponent = class RibbonButtonComponent {
|
|
|
5260
5297
|
}
|
|
5261
5298
|
showDropdown = signal(false, ...ngDevMode ? [{ debugName: "showDropdown" }] : /* istanbul ignore next */ []);
|
|
5262
5299
|
status = signal(null, ...ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []);
|
|
5300
|
+
static instances = 0;
|
|
5301
|
+
instanceId = `ribbon-button-${RibbonButtonComponent.instances++}`;
|
|
5263
5302
|
clickedOutside = false;
|
|
5264
5303
|
overlay = inject(Overlay);
|
|
5265
5304
|
overlayRef;
|
|
5266
5305
|
positionBuilder = inject(OverlayPositionBuilder);
|
|
5267
5306
|
viewContainerRef = inject(ViewContainerRef);
|
|
5307
|
+
get accessibleName() {
|
|
5308
|
+
return this.label() || this.tooltip();
|
|
5309
|
+
}
|
|
5310
|
+
get labelId() {
|
|
5311
|
+
return `${this.instanceId}-label`;
|
|
5312
|
+
}
|
|
5313
|
+
get chevronLabelledBy() {
|
|
5314
|
+
return this.label() ? this.labelId : null;
|
|
5315
|
+
}
|
|
5316
|
+
get chevronAriaLabel() {
|
|
5317
|
+
return this.label() ? null : this.tooltip() || null;
|
|
5318
|
+
}
|
|
5268
5319
|
get buttonIcon() {
|
|
5269
5320
|
switch (this.status()) {
|
|
5270
5321
|
case "success": return "fa-check";
|
|
@@ -5462,8 +5513,8 @@ var RibbonButtonComponent = class RibbonButtonComponent {
|
|
|
5462
5513
|
isSignal: true
|
|
5463
5514
|
}],
|
|
5464
5515
|
ngImport: i0,
|
|
5465
|
-
template: "<div #buttonContainer class=\"button-container\" [attr.title]=\"tooltip() || null\">\n <a\n class=\"button\"\n role=\"button\"\n [attr.tabindex]=\"isButtonDisabled ? -1 : 0\"\n [attr.aria-disabled]=\"isButtonDisabled\"\n [class.disabled]=\"isButtonDisabled\"\n [class.success]=\"status() === 'success'\"\n [class.warning]=\"status() === 'warning'\"\n [class.failure]=\"status() === 'failure'\"\n [class.small]=\"iconSize() === 'small'\"\n (click)=\"onButtonClicked()\"\n (keydown.enter)=\"onButtonClicked()\"\n (keydown.space)=\"onButtonClicked(); $event.preventDefault()\"\n >\n <span class=\"icon\" [class.loading]=\"loading()\">\n <i class=\"fas fa-fw\" [ngClass]=\"[buttonIcon, color()]\"></i>\n\n <svg [ngClass]=\"[color()]\" 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\n <span class=\"label\" [class.text-white]=\"status() !== null\">\n {{ label() | translate }}\n </span>\n </a>\n\n @if (options().length > 0) {\n <a\n class=\"button-dropdown\"\n role=\"button\"\n [attr.tabindex]=\"isButtonDisabled ? -1 : 0\"\n [attr.aria-disabled]=\"isButtonDisabled\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"showDropdown()\"\n [class.disabled]=\"isButtonDisabled\"\n [class.success]=\"status() === 'success'\"\n [class.warning]=\"status() === 'warning'\"\n [class.failure]=\"status() === 'failure'\"\n [class.small]=\"iconSize() === 'small'\"\n (click)=\"onShowHideDropdown()\"\n (keydown.enter)=\"onShowHideDropdown()\"\n (keydown.space)=\"onShowHideDropdown(); $event.preventDefault()\"\n >\n <i class=\"fas fa-chevron-down\" [ngClass]=\"[color()]\"></i>\n </a>\n }\n</div>\n\n<!-- Rendered into a CDK overlay rather than here, so the list is not cut off by an ancestor that\n clips -- lib-data-grid does, and its buttons bar sits at the top of it. The `open` class is\n what the styles key on now that the list is no longer inside this component's `.show` host. -->\n<ng-template #optionsDropdown>\n <ul class=\"options-dropdown open\" role=\"menu\">\n @for (option of options(); track option; let i = $index) {\n <li\n role=\"menuitem\"\n [attr.tabindex]=\"isOptionDisabled(option) || !isOptionVisible(option) ? -1 : 0\"\n [attr.aria-disabled]=\"isOptionDisabled(option)\"\n [class.default-option]=\"i === defaultOption()\"\n [class.disabled]=\"isOptionDisabled(option)\"\n [class.hidden]=\"!isOptionVisible(option)\"\n (click)=\"onOptionClicked(option)\"\n (keydown.enter)=\"onOptionClicked(option)\"\n (keydown.space)=\"onOptionClicked(option); $event.preventDefault()\"\n >\n @if (!!option.icon) {\n <i class=\"fas fa-fw\" [ngClass]=\"[option.icon, color()]\"></i>\n }\n {{ option.label | translate }}\n </li>\n }\n </ul>\n</ng-template>\n",
|
|
5466
|
-
styles: ["@layer properties;:host.dropdown .button{border-top-right-radius:0;border-bottom-right-radius:0}.button-container{display:flex}.button{padding-inline:calc(var(--spacing, .25rem) * 3);border-radius:var(--radius-control)}.button.success .icon i,.button.success .label,.button.warning .icon i,.button.warning .label,.button.failure .icon i,.button.failure .label{color:var(--color-white, #fff)}.button.small{padding-inline:calc(var(--spacing, .25rem) * 2)}.button.small .icon i{height:calc(var(--spacing, .25rem) * 7);font-size:var(--text-2xl, 1.5rem);line-height:var(--tw-leading, var(--text-2xl--line-height, calc(2 / 1.5)))}@media(width>=48rem){.button.small .icon i{font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)))}}.button.small .icon svg{height:calc(var(--spacing, .25rem) * 6)}.button.small .label{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}.button .icon{position:relative;display:flex;height:calc(var(--spacing, .25rem) * 8);flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:var(--text-4xl, 2.25rem);line-height:var(--tw-leading, var(--text-4xl--line-height, calc(2.5 / 2.25)))}@media(width>=48rem){.button .icon{font-size:var(--text-3xl, 1.875rem);line-height:var(--tw-leading, var(--text-3xl--line-height, 1.2 ))}}.button .icon i{transition-property:all;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));--tw-duration: .2s;transition-duration:.2s;--tw-ease: var(--ease-in-out, cubic-bezier(.4, 0, .2, 1));transition-timing-function:var(--ease-in-out, cubic-bezier(.4, 0, .2, 1))}.button .icon svg{position:absolute;height:calc(var(--spacing, .25rem) * 8);width:calc(var(--spacing, .25rem) * 8);animation:var(--animate-spin, spin 1s linear infinite);opacity:0%;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));--tw-duration: .2s;transition-duration:.2s;--tw-ease: var(--ease-in-out, cubic-bezier(.4, 0, .2, 1));transition-timing-function:var(--ease-in-out, cubic-bezier(.4, 0, .2, 1))}.button .icon.loading i{opacity:0%}.button .icon.loading svg{opacity:100%}.button .label{margin-top:calc(var(--spacing, .25rem) * 2);text-align:center;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;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));color:var(--color-content-primary);transition-duration:var(--duration-short);transition-timing-function:var(--ease-standard)}.button-dropdown{justify-content:center;padding-inline:var(--spacing, .25rem);border-top-right-radius:var(--radius-control);border-bottom-right-radius:var(--radius-control)}.button-dropdown.success i,.button-dropdown.warning i,.button-dropdown.failure i{color:var(--color-white, #fff)}.button-dropdown.small{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}@media(width>=48rem){.button-dropdown.small{font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ))}}.button,.button-dropdown{display:flex;cursor:pointer;flex-direction:column;padding-block:calc(var(--spacing, .25rem) * 2);-webkit-user-select:none;user-select:none;transition-property:all;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));--tw-duration: .2s;transition-duration:.2s;--tw-ease: var(--ease-in-out, cubic-bezier(.4, 0, .2, 1));transition-timing-function:var(--ease-in-out, cubic-bezier(.4, 0, .2, 1))}.button:hover,.button:focus-visible,.button-dropdown:hover,.button-dropdown:focus-visible{background-color:var(--state-hover)}.button:active,.button-dropdown:active{background-color:var(--state-pressed)}.button:disabled,.button.disabled,.button-dropdown:disabled,.button-dropdown.disabled{pointer-events:none;opacity:.6}.button.success,.button-dropdown.success{background-color:var(--color-success-surface)}.button.warning,.button-dropdown.warning{background-color:var(--color-warning-surface)}.button.failure,.button-dropdown.failure{background-color:var(--color-danger-surface)}.button.small,.button-dropdown.small{padding-block:var(--spacing, .25rem)}ul.options-dropdown{display:block;min-width:fit-content;padding-block:var(--spacing, .25rem);-webkit-user-select:none;user-select:none;border-style:var(--tw-border-style);border-width:1px;border-radius:var(--radius-control);border-color:var(--color-line);background-color:var(--color-surface-solid);box-shadow:var(--shadow-overlay);backdrop-filter:blur(var(--blur-popover));-webkit-backdrop-filter:blur(var(--blur-popover))}ul.options-dropdown li{cursor:pointer;padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 2);white-space:nowrap}ul.options-dropdown li.default-option{display:none}ul.options-dropdown li.disabled{pointer-events:none;opacity:.6}ul.options-dropdown li:hover{background-color:var(--state-selected)}ul.options-dropdown li i{margin-right:var(--spacing, .25rem)}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-ease{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@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-duration: initial;--tw-ease: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
5516
|
+
template: "<!-- The title falls back to the label so a button that gives no tooltip still explains itself on\n hover once compact mode has taken its label away. -->\n<div #buttonContainer class=\"button-container\" [attr.title]=\"tooltip() || (label() | translate) || null\">\n <!-- aria-label is carried whether or not the label is on screen, because compact mode hides it\n below 36rem of ribbon width and the icon alone names nothing. Null rather than an empty\n string when there is neither label nor tooltip: an empty aria-label names the control\n nothing at all, which suppresses the fallback a screen reader would otherwise use. -->\n <a\n class=\"button\"\n role=\"button\"\n [attr.tabindex]=\"isButtonDisabled ? -1 : 0\"\n [attr.aria-disabled]=\"isButtonDisabled\"\n [attr.aria-label]=\"accessibleName ? (accessibleName | translate) : null\"\n [class.disabled]=\"isButtonDisabled\"\n [class.success]=\"status() === 'success'\"\n [class.warning]=\"status() === 'warning'\"\n [class.failure]=\"status() === 'failure'\"\n [class.small]=\"iconSize() === 'small'\"\n (click)=\"onButtonClicked()\"\n (keydown.enter)=\"onButtonClicked()\"\n (keydown.space)=\"onButtonClicked(); $event.preventDefault()\"\n >\n <span class=\"icon\" [class.loading]=\"loading()\">\n <i class=\"fas fa-fw\" [ngClass]=\"[buttonIcon, color()]\"></i>\n\n <svg [ngClass]=\"[color()]\" 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\n <span class=\"label\" [id]=\"labelId\" [class.text-white]=\"status() !== null\">\n {{ label() | translate }}\n </span>\n </a>\n\n @if (options().length > 0) {\n <a\n class=\"button-dropdown\"\n role=\"button\"\n [attr.tabindex]=\"isButtonDisabled ? -1 : 0\"\n [attr.aria-disabled]=\"isButtonDisabled\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"showDropdown()\"\n [attr.aria-labelledby]=\"chevronLabelledBy\"\n [attr.aria-label]=\"chevronAriaLabel ? (chevronAriaLabel | translate) : null\"\n [class.disabled]=\"isButtonDisabled\"\n [class.success]=\"status() === 'success'\"\n [class.warning]=\"status() === 'warning'\"\n [class.failure]=\"status() === 'failure'\"\n [class.small]=\"iconSize() === 'small'\"\n (click)=\"onShowHideDropdown()\"\n (keydown.enter)=\"onShowHideDropdown()\"\n (keydown.space)=\"onShowHideDropdown(); $event.preventDefault()\"\n >\n <i class=\"fas fa-chevron-down\" [ngClass]=\"[color()]\"></i>\n </a>\n }\n</div>\n\n<!-- Rendered into a CDK overlay rather than here, so the list is not cut off by an ancestor that\n clips -- lib-data-grid does, and its buttons bar sits at the top of it. The `open` class is\n what the styles key on now that the list is no longer inside this component's `.show` host. -->\n<ng-template #optionsDropdown>\n <ul class=\"options-dropdown open\" role=\"menu\">\n @for (option of options(); track option; let i = $index) {\n <li\n role=\"menuitem\"\n [attr.tabindex]=\"isOptionDisabled(option) || !isOptionVisible(option) ? -1 : 0\"\n [attr.aria-disabled]=\"isOptionDisabled(option)\"\n [class.default-option]=\"i === defaultOption()\"\n [class.disabled]=\"isOptionDisabled(option)\"\n [class.hidden]=\"!isOptionVisible(option)\"\n (click)=\"onOptionClicked(option)\"\n (keydown.enter)=\"onOptionClicked(option)\"\n (keydown.space)=\"onOptionClicked(option); $event.preventDefault()\"\n >\n @if (!!option.icon) {\n <i class=\"fas fa-fw\" [ngClass]=\"[option.icon, color()]\"></i>\n }\n {{ option.label | translate }}\n </li>\n }\n </ul>\n</ng-template>\n",
|
|
5517
|
+
styles: ["@layer properties;:host.dropdown .button{border-top-right-radius:0;border-bottom-right-radius:0}.button-container{display:flex}.button{padding-inline:calc(var(--spacing, .25rem) * 3);border-radius:var(--radius-control)}.button.success .icon i,.button.success .label,.button.warning .icon i,.button.warning .label,.button.failure .icon i,.button.failure .label{color:var(--color-white, #fff)}.button.small{padding-inline:calc(var(--spacing, .25rem) * 2)}.button.small .icon i{height:calc(var(--spacing, .25rem) * 7);font-size:var(--text-2xl, 1.5rem);line-height:var(--tw-leading, var(--text-2xl--line-height, calc(2 / 1.5)))}@media(width>=48rem){.button.small .icon i{font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)))}}.button.small .icon svg{height:calc(var(--spacing, .25rem) * 6)}.button.small .label{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}.button .icon{position:relative;display:flex;height:calc(var(--spacing, .25rem) * 8);flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:var(--text-4xl, 2.25rem);line-height:var(--tw-leading, var(--text-4xl--line-height, calc(2.5 / 2.25)))}@media(width>=48rem){.button .icon{font-size:var(--text-3xl, 1.875rem);line-height:var(--tw-leading, var(--text-3xl--line-height, 1.2 ))}}.button .icon i{transition-property:all;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));--tw-duration: .2s;transition-duration:.2s;--tw-ease: var(--ease-in-out, cubic-bezier(.4, 0, .2, 1));transition-timing-function:var(--ease-in-out, cubic-bezier(.4, 0, .2, 1))}.button .icon svg{position:absolute;height:calc(var(--spacing, .25rem) * 8);width:calc(var(--spacing, .25rem) * 8);animation:var(--animate-spin, spin 1s linear infinite);opacity:0%;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));--tw-duration: .2s;transition-duration:.2s;--tw-ease: var(--ease-in-out, cubic-bezier(.4, 0, .2, 1));transition-timing-function:var(--ease-in-out, cubic-bezier(.4, 0, .2, 1))}.button .icon.loading i{opacity:0%}.button .icon.loading svg{opacity:100%}.button .label{margin-top:calc(var(--spacing, .25rem) * 2);text-align:center;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;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));color:var(--color-content-primary);transition-duration:var(--duration-short);transition-timing-function:var(--ease-standard)}.button-dropdown{justify-content:center;padding-inline:var(--spacing, .25rem);border-top-right-radius:var(--radius-control);border-bottom-right-radius:var(--radius-control)}.button-dropdown.success i,.button-dropdown.warning i,.button-dropdown.failure i{color:var(--color-white, #fff)}.button-dropdown.small{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}@media(width>=48rem){.button-dropdown.small{font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ))}}.button,.button-dropdown{display:flex;cursor:pointer;flex-direction:column;padding-block:calc(var(--spacing, .25rem) * 2);-webkit-user-select:none;user-select:none;transition-property:all;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));--tw-duration: .2s;transition-duration:.2s;--tw-ease: var(--ease-in-out, cubic-bezier(.4, 0, .2, 1));transition-timing-function:var(--ease-in-out, cubic-bezier(.4, 0, .2, 1))}.button:hover,.button:focus-visible,.button-dropdown:hover,.button-dropdown:focus-visible{background-color:var(--state-hover)}.button:active,.button-dropdown:active{background-color:var(--state-pressed)}.button:disabled,.button.disabled,.button-dropdown:disabled,.button-dropdown.disabled{pointer-events:none;opacity:.6}.button.success,.button-dropdown.success{background-color:var(--color-success-surface)}.button.warning,.button-dropdown.warning{background-color:var(--color-warning-surface)}.button.failure,.button-dropdown.failure{background-color:var(--color-danger-surface)}.button.small,.button-dropdown.small{padding-block:var(--spacing, .25rem)}ul.options-dropdown{display:block;min-width:fit-content;padding-block:var(--spacing, .25rem);-webkit-user-select:none;user-select:none;border-style:var(--tw-border-style);border-width:1px;border-radius:var(--radius-control);border-color:var(--color-line);background-color:var(--color-surface-solid);box-shadow:var(--shadow-overlay);backdrop-filter:blur(var(--blur-popover));-webkit-backdrop-filter:blur(var(--blur-popover))}ul.options-dropdown li{cursor:pointer;padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 2);white-space:nowrap}ul.options-dropdown li.default-option{display:none}ul.options-dropdown li.disabled{pointer-events:none;opacity:.6}ul.options-dropdown li:hover{background-color:var(--state-selected)}ul.options-dropdown li i{margin-right:var(--spacing, .25rem)}@container ribbon (max-width: 36rem){.button{padding-inline:calc(var(--spacing, .25rem) * 2)}.button .icon i{height:calc(var(--spacing, .25rem) * 7);font-size:var(--text-2xl, 1.5rem);line-height:var(--tw-leading, var(--text-2xl--line-height, calc(2 / 1.5)))}.button .icon svg{height:calc(var(--spacing, .25rem) * 6)}.button .label{display:none}.button-dropdown{padding-inline:calc(var(--spacing, .25rem) * .5);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-ease{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@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-duration: initial;--tw-ease: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
5467
5518
|
dependencies: [{
|
|
5468
5519
|
kind: "directive",
|
|
5469
5520
|
type: NgClass,
|
|
@@ -5490,8 +5541,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5490
5541
|
"[class.show]": "showDropdown()"
|
|
5491
5542
|
},
|
|
5492
5543
|
imports: [NgClass, TranslatePipe],
|
|
5493
|
-
template: "<div #buttonContainer class=\"button-container\" [attr.title]=\"tooltip() || null\">\n <a\n class=\"button\"\n role=\"button\"\n [attr.tabindex]=\"isButtonDisabled ? -1 : 0\"\n [attr.aria-disabled]=\"isButtonDisabled\"\n [class.disabled]=\"isButtonDisabled\"\n [class.success]=\"status() === 'success'\"\n [class.warning]=\"status() === 'warning'\"\n [class.failure]=\"status() === 'failure'\"\n [class.small]=\"iconSize() === 'small'\"\n (click)=\"onButtonClicked()\"\n (keydown.enter)=\"onButtonClicked()\"\n (keydown.space)=\"onButtonClicked(); $event.preventDefault()\"\n >\n <span class=\"icon\" [class.loading]=\"loading()\">\n <i class=\"fas fa-fw\" [ngClass]=\"[buttonIcon, color()]\"></i>\n\n <svg [ngClass]=\"[color()]\" 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\n <span class=\"label\" [class.text-white]=\"status() !== null\">\n {{ label() | translate }}\n </span>\n </a>\n\n @if (options().length > 0) {\n <a\n class=\"button-dropdown\"\n role=\"button\"\n [attr.tabindex]=\"isButtonDisabled ? -1 : 0\"\n [attr.aria-disabled]=\"isButtonDisabled\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"showDropdown()\"\n [class.disabled]=\"isButtonDisabled\"\n [class.success]=\"status() === 'success'\"\n [class.warning]=\"status() === 'warning'\"\n [class.failure]=\"status() === 'failure'\"\n [class.small]=\"iconSize() === 'small'\"\n (click)=\"onShowHideDropdown()\"\n (keydown.enter)=\"onShowHideDropdown()\"\n (keydown.space)=\"onShowHideDropdown(); $event.preventDefault()\"\n >\n <i class=\"fas fa-chevron-down\" [ngClass]=\"[color()]\"></i>\n </a>\n }\n</div>\n\n<!-- Rendered into a CDK overlay rather than here, so the list is not cut off by an ancestor that\n clips -- lib-data-grid does, and its buttons bar sits at the top of it. The `open` class is\n what the styles key on now that the list is no longer inside this component's `.show` host. -->\n<ng-template #optionsDropdown>\n <ul class=\"options-dropdown open\" role=\"menu\">\n @for (option of options(); track option; let i = $index) {\n <li\n role=\"menuitem\"\n [attr.tabindex]=\"isOptionDisabled(option) || !isOptionVisible(option) ? -1 : 0\"\n [attr.aria-disabled]=\"isOptionDisabled(option)\"\n [class.default-option]=\"i === defaultOption()\"\n [class.disabled]=\"isOptionDisabled(option)\"\n [class.hidden]=\"!isOptionVisible(option)\"\n (click)=\"onOptionClicked(option)\"\n (keydown.enter)=\"onOptionClicked(option)\"\n (keydown.space)=\"onOptionClicked(option); $event.preventDefault()\"\n >\n @if (!!option.icon) {\n <i class=\"fas fa-fw\" [ngClass]=\"[option.icon, color()]\"></i>\n }\n {{ option.label | translate }}\n </li>\n }\n </ul>\n</ng-template>\n",
|
|
5494
|
-
styles: ["@layer properties;:host.dropdown .button{border-top-right-radius:0;border-bottom-right-radius:0}.button-container{display:flex}.button{padding-inline:calc(var(--spacing, .25rem) * 3);border-radius:var(--radius-control)}.button.success .icon i,.button.success .label,.button.warning .icon i,.button.warning .label,.button.failure .icon i,.button.failure .label{color:var(--color-white, #fff)}.button.small{padding-inline:calc(var(--spacing, .25rem) * 2)}.button.small .icon i{height:calc(var(--spacing, .25rem) * 7);font-size:var(--text-2xl, 1.5rem);line-height:var(--tw-leading, var(--text-2xl--line-height, calc(2 / 1.5)))}@media(width>=48rem){.button.small .icon i{font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)))}}.button.small .icon svg{height:calc(var(--spacing, .25rem) * 6)}.button.small .label{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}.button .icon{position:relative;display:flex;height:calc(var(--spacing, .25rem) * 8);flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:var(--text-4xl, 2.25rem);line-height:var(--tw-leading, var(--text-4xl--line-height, calc(2.5 / 2.25)))}@media(width>=48rem){.button .icon{font-size:var(--text-3xl, 1.875rem);line-height:var(--tw-leading, var(--text-3xl--line-height, 1.2 ))}}.button .icon i{transition-property:all;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));--tw-duration: .2s;transition-duration:.2s;--tw-ease: var(--ease-in-out, cubic-bezier(.4, 0, .2, 1));transition-timing-function:var(--ease-in-out, cubic-bezier(.4, 0, .2, 1))}.button .icon svg{position:absolute;height:calc(var(--spacing, .25rem) * 8);width:calc(var(--spacing, .25rem) * 8);animation:var(--animate-spin, spin 1s linear infinite);opacity:0%;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));--tw-duration: .2s;transition-duration:.2s;--tw-ease: var(--ease-in-out, cubic-bezier(.4, 0, .2, 1));transition-timing-function:var(--ease-in-out, cubic-bezier(.4, 0, .2, 1))}.button .icon.loading i{opacity:0%}.button .icon.loading svg{opacity:100%}.button .label{margin-top:calc(var(--spacing, .25rem) * 2);text-align:center;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;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));color:var(--color-content-primary);transition-duration:var(--duration-short);transition-timing-function:var(--ease-standard)}.button-dropdown{justify-content:center;padding-inline:var(--spacing, .25rem);border-top-right-radius:var(--radius-control);border-bottom-right-radius:var(--radius-control)}.button-dropdown.success i,.button-dropdown.warning i,.button-dropdown.failure i{color:var(--color-white, #fff)}.button-dropdown.small{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}@media(width>=48rem){.button-dropdown.small{font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ))}}.button,.button-dropdown{display:flex;cursor:pointer;flex-direction:column;padding-block:calc(var(--spacing, .25rem) * 2);-webkit-user-select:none;user-select:none;transition-property:all;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));--tw-duration: .2s;transition-duration:.2s;--tw-ease: var(--ease-in-out, cubic-bezier(.4, 0, .2, 1));transition-timing-function:var(--ease-in-out, cubic-bezier(.4, 0, .2, 1))}.button:hover,.button:focus-visible,.button-dropdown:hover,.button-dropdown:focus-visible{background-color:var(--state-hover)}.button:active,.button-dropdown:active{background-color:var(--state-pressed)}.button:disabled,.button.disabled,.button-dropdown:disabled,.button-dropdown.disabled{pointer-events:none;opacity:.6}.button.success,.button-dropdown.success{background-color:var(--color-success-surface)}.button.warning,.button-dropdown.warning{background-color:var(--color-warning-surface)}.button.failure,.button-dropdown.failure{background-color:var(--color-danger-surface)}.button.small,.button-dropdown.small{padding-block:var(--spacing, .25rem)}ul.options-dropdown{display:block;min-width:fit-content;padding-block:var(--spacing, .25rem);-webkit-user-select:none;user-select:none;border-style:var(--tw-border-style);border-width:1px;border-radius:var(--radius-control);border-color:var(--color-line);background-color:var(--color-surface-solid);box-shadow:var(--shadow-overlay);backdrop-filter:blur(var(--blur-popover));-webkit-backdrop-filter:blur(var(--blur-popover))}ul.options-dropdown li{cursor:pointer;padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 2);white-space:nowrap}ul.options-dropdown li.default-option{display:none}ul.options-dropdown li.disabled{pointer-events:none;opacity:.6}ul.options-dropdown li:hover{background-color:var(--state-selected)}ul.options-dropdown li i{margin-right:var(--spacing, .25rem)}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-ease{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@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-duration: initial;--tw-ease: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
5544
|
+
template: "<!-- The title falls back to the label so a button that gives no tooltip still explains itself on\n hover once compact mode has taken its label away. -->\n<div #buttonContainer class=\"button-container\" [attr.title]=\"tooltip() || (label() | translate) || null\">\n <!-- aria-label is carried whether or not the label is on screen, because compact mode hides it\n below 36rem of ribbon width and the icon alone names nothing. Null rather than an empty\n string when there is neither label nor tooltip: an empty aria-label names the control\n nothing at all, which suppresses the fallback a screen reader would otherwise use. -->\n <a\n class=\"button\"\n role=\"button\"\n [attr.tabindex]=\"isButtonDisabled ? -1 : 0\"\n [attr.aria-disabled]=\"isButtonDisabled\"\n [attr.aria-label]=\"accessibleName ? (accessibleName | translate) : null\"\n [class.disabled]=\"isButtonDisabled\"\n [class.success]=\"status() === 'success'\"\n [class.warning]=\"status() === 'warning'\"\n [class.failure]=\"status() === 'failure'\"\n [class.small]=\"iconSize() === 'small'\"\n (click)=\"onButtonClicked()\"\n (keydown.enter)=\"onButtonClicked()\"\n (keydown.space)=\"onButtonClicked(); $event.preventDefault()\"\n >\n <span class=\"icon\" [class.loading]=\"loading()\">\n <i class=\"fas fa-fw\" [ngClass]=\"[buttonIcon, color()]\"></i>\n\n <svg [ngClass]=\"[color()]\" 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\n <span class=\"label\" [id]=\"labelId\" [class.text-white]=\"status() !== null\">\n {{ label() | translate }}\n </span>\n </a>\n\n @if (options().length > 0) {\n <a\n class=\"button-dropdown\"\n role=\"button\"\n [attr.tabindex]=\"isButtonDisabled ? -1 : 0\"\n [attr.aria-disabled]=\"isButtonDisabled\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"showDropdown()\"\n [attr.aria-labelledby]=\"chevronLabelledBy\"\n [attr.aria-label]=\"chevronAriaLabel ? (chevronAriaLabel | translate) : null\"\n [class.disabled]=\"isButtonDisabled\"\n [class.success]=\"status() === 'success'\"\n [class.warning]=\"status() === 'warning'\"\n [class.failure]=\"status() === 'failure'\"\n [class.small]=\"iconSize() === 'small'\"\n (click)=\"onShowHideDropdown()\"\n (keydown.enter)=\"onShowHideDropdown()\"\n (keydown.space)=\"onShowHideDropdown(); $event.preventDefault()\"\n >\n <i class=\"fas fa-chevron-down\" [ngClass]=\"[color()]\"></i>\n </a>\n }\n</div>\n\n<!-- Rendered into a CDK overlay rather than here, so the list is not cut off by an ancestor that\n clips -- lib-data-grid does, and its buttons bar sits at the top of it. The `open` class is\n what the styles key on now that the list is no longer inside this component's `.show` host. -->\n<ng-template #optionsDropdown>\n <ul class=\"options-dropdown open\" role=\"menu\">\n @for (option of options(); track option; let i = $index) {\n <li\n role=\"menuitem\"\n [attr.tabindex]=\"isOptionDisabled(option) || !isOptionVisible(option) ? -1 : 0\"\n [attr.aria-disabled]=\"isOptionDisabled(option)\"\n [class.default-option]=\"i === defaultOption()\"\n [class.disabled]=\"isOptionDisabled(option)\"\n [class.hidden]=\"!isOptionVisible(option)\"\n (click)=\"onOptionClicked(option)\"\n (keydown.enter)=\"onOptionClicked(option)\"\n (keydown.space)=\"onOptionClicked(option); $event.preventDefault()\"\n >\n @if (!!option.icon) {\n <i class=\"fas fa-fw\" [ngClass]=\"[option.icon, color()]\"></i>\n }\n {{ option.label | translate }}\n </li>\n }\n </ul>\n</ng-template>\n",
|
|
5545
|
+
styles: ["@layer properties;:host.dropdown .button{border-top-right-radius:0;border-bottom-right-radius:0}.button-container{display:flex}.button{padding-inline:calc(var(--spacing, .25rem) * 3);border-radius:var(--radius-control)}.button.success .icon i,.button.success .label,.button.warning .icon i,.button.warning .label,.button.failure .icon i,.button.failure .label{color:var(--color-white, #fff)}.button.small{padding-inline:calc(var(--spacing, .25rem) * 2)}.button.small .icon i{height:calc(var(--spacing, .25rem) * 7);font-size:var(--text-2xl, 1.5rem);line-height:var(--tw-leading, var(--text-2xl--line-height, calc(2 / 1.5)))}@media(width>=48rem){.button.small .icon i{font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)))}}.button.small .icon svg{height:calc(var(--spacing, .25rem) * 6)}.button.small .label{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}.button .icon{position:relative;display:flex;height:calc(var(--spacing, .25rem) * 8);flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:var(--text-4xl, 2.25rem);line-height:var(--tw-leading, var(--text-4xl--line-height, calc(2.5 / 2.25)))}@media(width>=48rem){.button .icon{font-size:var(--text-3xl, 1.875rem);line-height:var(--tw-leading, var(--text-3xl--line-height, 1.2 ))}}.button .icon i{transition-property:all;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));--tw-duration: .2s;transition-duration:.2s;--tw-ease: var(--ease-in-out, cubic-bezier(.4, 0, .2, 1));transition-timing-function:var(--ease-in-out, cubic-bezier(.4, 0, .2, 1))}.button .icon svg{position:absolute;height:calc(var(--spacing, .25rem) * 8);width:calc(var(--spacing, .25rem) * 8);animation:var(--animate-spin, spin 1s linear infinite);opacity:0%;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));--tw-duration: .2s;transition-duration:.2s;--tw-ease: var(--ease-in-out, cubic-bezier(.4, 0, .2, 1));transition-timing-function:var(--ease-in-out, cubic-bezier(.4, 0, .2, 1))}.button .icon.loading i{opacity:0%}.button .icon.loading svg{opacity:100%}.button .label{margin-top:calc(var(--spacing, .25rem) * 2);text-align:center;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;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));color:var(--color-content-primary);transition-duration:var(--duration-short);transition-timing-function:var(--ease-standard)}.button-dropdown{justify-content:center;padding-inline:var(--spacing, .25rem);border-top-right-radius:var(--radius-control);border-bottom-right-radius:var(--radius-control)}.button-dropdown.success i,.button-dropdown.warning i,.button-dropdown.failure i{color:var(--color-white, #fff)}.button-dropdown.small{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}@media(width>=48rem){.button-dropdown.small{font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ))}}.button,.button-dropdown{display:flex;cursor:pointer;flex-direction:column;padding-block:calc(var(--spacing, .25rem) * 2);-webkit-user-select:none;user-select:none;transition-property:all;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));--tw-duration: .2s;transition-duration:.2s;--tw-ease: var(--ease-in-out, cubic-bezier(.4, 0, .2, 1));transition-timing-function:var(--ease-in-out, cubic-bezier(.4, 0, .2, 1))}.button:hover,.button:focus-visible,.button-dropdown:hover,.button-dropdown:focus-visible{background-color:var(--state-hover)}.button:active,.button-dropdown:active{background-color:var(--state-pressed)}.button:disabled,.button.disabled,.button-dropdown:disabled,.button-dropdown.disabled{pointer-events:none;opacity:.6}.button.success,.button-dropdown.success{background-color:var(--color-success-surface)}.button.warning,.button-dropdown.warning{background-color:var(--color-warning-surface)}.button.failure,.button-dropdown.failure{background-color:var(--color-danger-surface)}.button.small,.button-dropdown.small{padding-block:var(--spacing, .25rem)}ul.options-dropdown{display:block;min-width:fit-content;padding-block:var(--spacing, .25rem);-webkit-user-select:none;user-select:none;border-style:var(--tw-border-style);border-width:1px;border-radius:var(--radius-control);border-color:var(--color-line);background-color:var(--color-surface-solid);box-shadow:var(--shadow-overlay);backdrop-filter:blur(var(--blur-popover));-webkit-backdrop-filter:blur(var(--blur-popover))}ul.options-dropdown li{cursor:pointer;padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 2);white-space:nowrap}ul.options-dropdown li.default-option{display:none}ul.options-dropdown li.disabled{pointer-events:none;opacity:.6}ul.options-dropdown li:hover{background-color:var(--state-selected)}ul.options-dropdown li i{margin-right:var(--spacing, .25rem)}@container ribbon (max-width: 36rem){.button{padding-inline:calc(var(--spacing, .25rem) * 2)}.button .icon i{height:calc(var(--spacing, .25rem) * 7);font-size:var(--text-2xl, 1.5rem);line-height:var(--tw-leading, var(--text-2xl--line-height, calc(2 / 1.5)))}.button .icon svg{height:calc(var(--spacing, .25rem) * 6)}.button .label{display:none}.button-dropdown{padding-inline:calc(var(--spacing, .25rem) * .5);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-ease{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@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-duration: initial;--tw-ease: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
5495
5546
|
}]
|
|
5496
5547
|
}],
|
|
5497
5548
|
propDecorators: {
|
|
@@ -5613,7 +5664,7 @@ var RibbonComponent = class RibbonComponent {
|
|
|
5613
5664
|
selector: "lib-ribbon",
|
|
5614
5665
|
ngImport: i0,
|
|
5615
5666
|
template: "<div>\n <ng-content></ng-content>\n</div>\n\n<ng-content select=\"[right]\"></ng-content>\n",
|
|
5616
|
-
styles: ["@charset \"UTF-8\";@layer properties;::ng-deep lib-ribbon:not(:has(lib-ribbon-group:not(.hidden))):not(:has(>div>*:not(lib-ribbon-group))){display:none}:host{position:relative;display:flex;flex-direction:row;border-style:var(--tw-border-style);border-width:1px;padding:var(--spacing, .25rem);border-radius:var(--radius-control);background-color:var(--color-surface-inset);border-color:var(--color-line);justify-content:space-between}:host div{display:inline-flex;gap:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep *[right]{display:flex}:host ::ng-deep *[right] lib-ribbon-group{margin-right:calc(var(--spacing, .25rem) * 2);margin-left:0}:host ::ng-deep *[right] lib-ribbon-group:first-child{margin-right:0;padding-right:0;padding-left:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep *[right] lib-ribbon-group:after{left:calc(var(--spacing, .25rem) * -1)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@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}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
5667
|
+
styles: ["@charset \"UTF-8\";@layer properties;::ng-deep lib-ribbon:not(:has(lib-ribbon-group:not(.hidden))):not(:has(>div>*:not(lib-ribbon-group))){display:none}:host{position:relative;display:flex;flex-direction:row;border-style:var(--tw-border-style);border-width:1px;padding:var(--spacing, .25rem);border-radius:var(--radius-control);background-color:var(--color-surface-inset);border-color:var(--color-line);justify-content:space-between;container-type:inline-size;container-name:ribbon;width:100%;overflow-x:auto;flex-shrink:0}:host div{display:inline-flex;gap:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep *[right]{display:flex}:host ::ng-deep *[right] lib-ribbon-group{margin-right:calc(var(--spacing, .25rem) * 2);margin-left:0}:host ::ng-deep *[right] lib-ribbon-group:first-child{margin-right:0;padding-right:0;padding-left:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep *[right] lib-ribbon-group:after{left:calc(var(--spacing, .25rem) * -1)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@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}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
5617
5668
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
5618
5669
|
});
|
|
5619
5670
|
};
|
|
@@ -5628,7 +5679,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5628
5679
|
selector: "lib-ribbon",
|
|
5629
5680
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5630
5681
|
template: "<div>\n <ng-content></ng-content>\n</div>\n\n<ng-content select=\"[right]\"></ng-content>\n",
|
|
5631
|
-
styles: ["@charset \"UTF-8\";@layer properties;::ng-deep lib-ribbon:not(:has(lib-ribbon-group:not(.hidden))):not(:has(>div>*:not(lib-ribbon-group))){display:none}:host{position:relative;display:flex;flex-direction:row;border-style:var(--tw-border-style);border-width:1px;padding:var(--spacing, .25rem);border-radius:var(--radius-control);background-color:var(--color-surface-inset);border-color:var(--color-line);justify-content:space-between}:host div{display:inline-flex;gap:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep *[right]{display:flex}:host ::ng-deep *[right] lib-ribbon-group{margin-right:calc(var(--spacing, .25rem) * 2);margin-left:0}:host ::ng-deep *[right] lib-ribbon-group:first-child{margin-right:0;padding-right:0;padding-left:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep *[right] lib-ribbon-group:after{left:calc(var(--spacing, .25rem) * -1)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@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}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
5682
|
+
styles: ["@charset \"UTF-8\";@layer properties;::ng-deep lib-ribbon:not(:has(lib-ribbon-group:not(.hidden))):not(:has(>div>*:not(lib-ribbon-group))){display:none}:host{position:relative;display:flex;flex-direction:row;border-style:var(--tw-border-style);border-width:1px;padding:var(--spacing, .25rem);border-radius:var(--radius-control);background-color:var(--color-surface-inset);border-color:var(--color-line);justify-content:space-between;container-type:inline-size;container-name:ribbon;width:100%;overflow-x:auto;flex-shrink:0}:host div{display:inline-flex;gap:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep *[right]{display:flex}:host ::ng-deep *[right] lib-ribbon-group{margin-right:calc(var(--spacing, .25rem) * 2);margin-left:0}:host ::ng-deep *[right] lib-ribbon-group:first-child{margin-right:0;padding-right:0;padding-left:calc(var(--spacing, .25rem) * 2)}:host ::ng-deep *[right] lib-ribbon-group:after{left:calc(var(--spacing, .25rem) * -1)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@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}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
5632
5683
|
}]
|
|
5633
5684
|
}]
|
|
5634
5685
|
});
|
|
@@ -5663,7 +5714,7 @@ var RibbonGroupComponent = class RibbonGroupComponent {
|
|
|
5663
5714
|
}],
|
|
5664
5715
|
ngImport: i0,
|
|
5665
5716
|
template: "<div class=\"content\">\n <ng-content></ng-content>\n</div>\n\n<div class=\"label\">\n <span>{{ label }}</span>\n</div>\n",
|
|
5666
|
-
styles: ["@layer properties;:host{position:relative;padding-right:calc(var(--spacing, .25rem) * 2)}:host:after{position:absolute;top:var(--spacing, .25rem);right:calc(var(--spacing, .25rem) * -1);bottom:var(--spacing, .25rem);width:1px;--tw-content: \"\";content:var(--tw-content);background-color:var(--color-line-strong)}:host .content{display:flex;flex-direction:row;flex-wrap:nowrap}:host .label{padding-top:.05rem;text-align:center;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));-webkit-user-select:none;user-select:none;color:var(--color-content-secondary)}@property --tw-content{syntax: \"*\"; inherits: false; initial-value: \"\";}@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-content: \"\"}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
5717
|
+
styles: ["@layer properties;:host{position:relative;padding-right:calc(var(--spacing, .25rem) * 2)}:host:after{position:absolute;top:var(--spacing, .25rem);right:calc(var(--spacing, .25rem) * -1);bottom:var(--spacing, .25rem);width:1px;--tw-content: \"\";content:var(--tw-content);background-color:var(--color-line-strong)}:host .content{display:flex;flex-direction:row;flex-wrap:nowrap}:host .label{padding-top:.05rem;text-align:center;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));-webkit-user-select:none;user-select:none;color:var(--color-content-secondary)}@container ribbon (max-width: 36rem){:host{padding-right:var(--spacing, .25rem)}:host .label{display:none}}@property --tw-content{syntax: \"*\"; inherits: false; initial-value: \"\";}@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-content: \"\"}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
5667
5718
|
});
|
|
5668
5719
|
};
|
|
5669
5720
|
i0.ɵɵngDeclareClassMetadata({
|
|
@@ -5677,7 +5728,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5677
5728
|
selector: "lib-ribbon-group",
|
|
5678
5729
|
host: { "[class.hidden]": "!hasChildren()" },
|
|
5679
5730
|
template: "<div class=\"content\">\n <ng-content></ng-content>\n</div>\n\n<div class=\"label\">\n <span>{{ label }}</span>\n</div>\n",
|
|
5680
|
-
styles: ["@layer properties;:host{position:relative;padding-right:calc(var(--spacing, .25rem) * 2)}:host:after{position:absolute;top:var(--spacing, .25rem);right:calc(var(--spacing, .25rem) * -1);bottom:var(--spacing, .25rem);width:1px;--tw-content: \"\";content:var(--tw-content);background-color:var(--color-line-strong)}:host .content{display:flex;flex-direction:row;flex-wrap:nowrap}:host .label{padding-top:.05rem;text-align:center;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));-webkit-user-select:none;user-select:none;color:var(--color-content-secondary)}@property --tw-content{syntax: \"*\"; inherits: false; initial-value: \"\";}@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-content: \"\"}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
5731
|
+
styles: ["@layer properties;:host{position:relative;padding-right:calc(var(--spacing, .25rem) * 2)}:host:after{position:absolute;top:var(--spacing, .25rem);right:calc(var(--spacing, .25rem) * -1);bottom:var(--spacing, .25rem);width:1px;--tw-content: \"\";content:var(--tw-content);background-color:var(--color-line-strong)}:host .content{display:flex;flex-direction:row;flex-wrap:nowrap}:host .label{padding-top:.05rem;text-align:center;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));-webkit-user-select:none;user-select:none;color:var(--color-content-secondary)}@container ribbon (max-width: 36rem){:host{padding-right:var(--spacing, .25rem)}:host .label{display:none}}@property --tw-content{syntax: \"*\"; inherits: false; initial-value: \"\";}@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-content: \"\"}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
5681
5732
|
}]
|
|
5682
5733
|
}],
|
|
5683
5734
|
propDecorators: {
|