@zambon-dev/ui 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +67 -15
- package/LICENSE +21 -0
- package/README.md +55 -54
- package/fesm2022/zambon-dev-ui-framework.mjs +8 -8
- package/fesm2022/zambon-dev-ui-framework.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-library.mjs +11 -6
- package/fesm2022/zambon-dev-ui-library.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-shared.mjs +448 -448
- package/fesm2022/zambon-dev-ui-shared.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-testing.mjs.map +1 -1
- package/i18n/shared/top-bar/en.json +4 -0
- package/i18n/shared/top-bar/pt.json +4 -0
- package/package.json +14 -9
- package/styles/theme.css +15 -6
- package/styles/variables.scss +3 -3
- package/types/zambon-dev-ui-framework.d.ts +397 -24
- package/types/zambon-dev-ui-library.d.ts +313 -1
- package/types/zambon-dev-ui-shared.d.ts +180 -10
- package/types/zambon-dev-ui-testing.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@zambon-dev/ui` are documented in this file.
|
|
4
4
|
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
-
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions
|
|
6
|
+
follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html). One exception: 1.1.0 and 1.2.0
|
|
7
|
+
were minor releases that carried breaking changes. From now on, a breaking change ships as a major.
|
|
7
8
|
|
|
8
9
|
> **Upgrading?** Each release lists what changed and, under
|
|
9
10
|
> **⚠ Breaking Changes / Migration**, the concrete steps required to move to that version.
|
|
10
11
|
> When no migration is needed, that subsection is omitted.
|
|
11
12
|
|
|
13
|
+
Releases of the retired `@zambon-dev/library`, `@zambon-dev/framework` and `@zambon-dev/shared`
|
|
14
|
+
packages are listed under [Package history](#package-history) at the end.
|
|
15
|
+
|
|
12
16
|
## [Unreleased]
|
|
13
17
|
|
|
14
18
|
### Added
|
|
@@ -23,6 +27,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
23
27
|
|
|
24
28
|
### ⚠ Breaking Changes / Migration
|
|
25
29
|
|
|
30
|
+
## [1.5.0] - 2026-11-08
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- **`LoginComponent` is exported from `@zambon-dev/ui/shared`.** `SharedAuthModule` still routes
|
|
35
|
+
to it. Import it directly to place the sign-in card in a layout of your own.
|
|
36
|
+
- **The package ships its license.** The npm tarball now contains the MIT `LICENSE` file.
|
|
37
|
+
- **The logout labels ship with the shared translations.** `Main-Logout`,
|
|
38
|
+
`Main-Logout-Modal-Message`, `Main-Logout-Modal-Message-Cancel` and
|
|
39
|
+
`Main-Logout-Modal-Message-Confirm` are in the shared top-bar translations, in English and
|
|
40
|
+
Portuguese. An application no longer has to define them.
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
|
|
44
|
+
- **The confirm and error modals' message block is styled as `.error`.** It was `.erro`. Only a
|
|
45
|
+
stylesheet that reached into these modals with `::ng-deep .erro` is affected.
|
|
46
|
+
|
|
47
|
+
### Fixed
|
|
48
|
+
|
|
49
|
+
- **A multi-select grid shows its checkboxes again.** In a grid narrower than its columns, as the
|
|
50
|
+
multi-select modal's search pane usually is, the selection column stayed at its 1.5rem minimum
|
|
51
|
+
and the row's padding left the checkbox no room, so it was cut off entirely. The column is now
|
|
52
|
+
sized to its content. A `multiSelectSize` you set yourself is unchanged.
|
|
53
|
+
- **Tailwind utilities used in the package's templates are generated in your build.** Tailwind's
|
|
54
|
+
automatic source detection skips `node_modules`, so an application's build could miss utilities
|
|
55
|
+
that only the package's templates use. `theme.css` now declares the package as a source.
|
|
56
|
+
- **The comments in the published stylesheets name the current import path,**
|
|
57
|
+
`@zambon-dev/ui/styles/theme.css`, instead of the retired `@zambon-dev/shared` one.
|
|
58
|
+
|
|
59
|
+
## [1.4.1] - 2026-10-31
|
|
60
|
+
|
|
61
|
+
### Fixed
|
|
62
|
+
|
|
63
|
+
- **A sidebar parent leaves its loading state once its children arrive.** Opening a parent kept
|
|
64
|
+
the spinner on even when the menus answered: the children were handed over in a plain field, so
|
|
65
|
+
under `OnPush` the item never re-rendered, its child items never rendered, and only they end the
|
|
66
|
+
loading state. `SidebarService` now emits `childrenLoaded`, and the item keeps its children in a
|
|
67
|
+
signal.
|
|
68
|
+
- **The audit diff is readable in both themes.** Before and after values, and the operation badge,
|
|
69
|
+
drew status-coloured text on the `*-surface` tokens, which are that same colour at 75%. They now
|
|
70
|
+
sit on a light tint with a firmer border.
|
|
71
|
+
- **The audit diff scrolls.** A record with more fields than the modal's height ran past it with no
|
|
72
|
+
way to scroll. The field table now scrolls inside the modal, under a sticky header.
|
|
73
|
+
|
|
26
74
|
## [1.4.0] - 2026-10-31
|
|
27
75
|
|
|
28
76
|
### Added
|
|
@@ -35,8 +83,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
35
83
|
needs ZWebAPI 1.17 or later, which rebuilds the whole record; against an older backend the
|
|
36
84
|
changed fields still show and the option is off.
|
|
37
85
|
- **Each operation in the list says how many fields it changed.**
|
|
38
|
-
- **`OPERATIONS_HISTORY_FIELD_LABEL` labels the audited fields.** The default turns `
|
|
39
|
-
into "
|
|
86
|
+
- **`OPERATIONS_HISTORY_FIELD_LABEL` labels the audited fields.** The default turns `FullName`
|
|
87
|
+
into "Full name". Provide a function to use the application's own field labels or
|
|
40
88
|
translation keys.
|
|
41
89
|
|
|
42
90
|
### Deprecated
|
|
@@ -111,10 +159,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
111
159
|
rows every stripe swapped -- on a long list, constantly. It now follows each row's index in the
|
|
112
160
|
data.
|
|
113
161
|
|
|
114
|
-
### ⚠ Breaking Changes / Migration
|
|
115
|
-
|
|
116
|
-
- None.
|
|
117
|
-
|
|
118
162
|
## [1.2.0] - 2026-10-27
|
|
119
163
|
|
|
120
164
|
### Added
|
|
@@ -216,10 +260,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
216
260
|
always hidden behind the backdrop. When a photograph is set, the footer under the card now gets a
|
|
217
261
|
glass surface, so its text stays readable over the picture.
|
|
218
262
|
|
|
219
|
-
### ⚠ Breaking Changes / Migration
|
|
220
|
-
|
|
221
|
-
- None.
|
|
222
|
-
|
|
223
263
|
## [1.1.0] - 2026-10-25
|
|
224
264
|
|
|
225
265
|
### Added
|
|
@@ -701,7 +741,7 @@ UI components, directives, pipes and the data-grid services. Published as `@zamb
|
|
|
701
741
|
|
|
702
742
|
- **A menu with children no longer runs its label under the expand chevron.** The chevron and the
|
|
703
743
|
external-link glyph sit in an absolute slot at the row's right edge, outside the anchor's flow,
|
|
704
|
-
so nothing reserved room for them: "
|
|
744
|
+
so nothing reserved room for them: "Delegation workflow" overlapped the chevron by 11px. The row
|
|
705
745
|
reserves the slot now and the anchor fills what is left, so a long label ellipsises before it.
|
|
706
746
|
|
|
707
747
|
Rows with one of those glyphs give up the fixed anchor width to do this, so their label reflows
|
|
@@ -1522,8 +1562,8 @@ Tabbed navigation, view scaffolding, ribbon buttons and modals. Published as `@z
|
|
|
1522
1562
|
|
|
1523
1563
|
- **A record’s non-form views can render their edit button again.** `framework-button-edit` asks
|
|
1524
1564
|
for `FormService` and `DataProviderService` together, and the details shell provided only the
|
|
1525
|
-
second — so a child list routed as its own view (
|
|
1526
|
-
|
|
1565
|
+
second — so a child list routed as its own view (Applications → Views → Business Places, Cost
|
|
1566
|
+
Centers) threw `NG0201: No provider found for FormService` before it rendered at all. The shell
|
|
1527
1567
|
provides one now; a form view’s own provider still shadows it, so forms are unchanged.
|
|
1528
1568
|
|
|
1529
1569
|
- **The breadcrumbs no longer sit further from the ribbon than the ribbon does from its content.**
|
|
@@ -2697,3 +2737,15 @@ URL) in `AppConfig`, and implement a hub that pushes the notification list to cl
|
|
|
2697
2737
|
- Baseline release: the changelog starts being tracked from this version. Earlier history is
|
|
2698
2738
|
available via [GitHub Releases](https://github.com/RicardoZambon/ZLibraries/releases) and the
|
|
2699
2739
|
`shared-v*` tags.
|
|
2740
|
+
|
|
2741
|
+
[Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/ui-v1.5.0...HEAD
|
|
2742
|
+
[1.5.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.5.0
|
|
2743
|
+
[1.4.1]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.4.1
|
|
2744
|
+
[1.4.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.4.0
|
|
2745
|
+
[1.3.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.3.0
|
|
2746
|
+
[1.2.2]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.2.2
|
|
2747
|
+
[1.2.1]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.2.1
|
|
2748
|
+
[1.2.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.2.0
|
|
2749
|
+
[1.1.1]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.1.1
|
|
2750
|
+
[1.1.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.1.0
|
|
2751
|
+
[1.0.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.0.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Ricardo Zambon
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,81 +1,82 @@
|
|
|
1
1
|
# @zambon-dev/ui
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@zambon-dev/ui)
|
|
4
|
+
[](https://github.com/RicardoZambon/ZLibraries/blob/main/libs/ui/LICENSE)
|
|
5
|
+
[](https://ricardozambon.github.io/ZLibraries/)
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
`framework`, `framework` builds on `library`, and `library` builds on neither.
|
|
7
|
+
Angular 22 components and a complete application shell, in one package. Use the form controls, data grid, modals and ribbon on their own, or take the whole shell: sidebar, top bar, tabbed navigation, sign-in and audit history. Everything is themed with Tailwind CSS 4 design tokens, has a dark theme, and renders under OnPush and zoneless change detection.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
| -------------------------- | ------------------------------------------------------------- |
|
|
11
|
-
| `@zambon-dev/ui` | all three layers |
|
|
12
|
-
| `@zambon-dev/ui/library` | form controls, data grids, modals, the ribbon and the sidebar |
|
|
13
|
-
| `@zambon-dev/ui/framework` | tabbed navigation, view base classes, ribbon buttons |
|
|
14
|
-
| `@zambon-dev/ui/shared` | authentication, layouts, audit-history features |
|
|
15
|
-
| `@zambon-dev/ui/testing` | a test harness for rendering under an OnPush ancestor |
|
|
9
|
+
## Entry points
|
|
16
10
|
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
| Import | What is in it |
|
|
12
|
+
| -------------------------- | ---------------------------------------------------------------------------------------- |
|
|
13
|
+
| `@zambon-dev/ui/library` | Form controls, data grid, modal, multi-select and multi-editor, ribbon, sidebar, button. |
|
|
14
|
+
| `@zambon-dev/ui/framework` | Tabbed navigation, view base classes, ribbon action buttons, confirm and error modals. |
|
|
15
|
+
| `@zambon-dev/ui/shared` | Authentication, main and login layouts, top bar, theme, audit history. |
|
|
16
|
+
| `@zambon-dev/ui/testing` | A harness that renders a component under an OnPush ancestor, for your tests. |
|
|
17
|
+
| `@zambon-dev/ui` | All of `library`, `framework` and `shared`. |
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
Selectors keep their layer's prefix: `lib-` for library, `framework-` for framework, `shared-` for shared.
|
|
20
|
+
|
|
21
|
+
The library and the framework both export a `ButtonComponent`. From the root import, `ButtonComponent` is the framework button, and the library button is `LibButtonComponent`. Import from `@zambon-dev/ui/library` to get the library button under its own name.
|
|
22
|
+
|
|
23
|
+
## Quick start
|
|
24
|
+
|
|
25
|
+
Install the package. npm 7 and later install the peer dependencies too.
|
|
21
26
|
|
|
22
27
|
```bash
|
|
23
28
|
npm i @zambon-dev/ui
|
|
29
|
+
npm i -D tailwindcss @tailwindcss/postcss @tailwindcss/forms
|
|
30
|
+
npm i @fortawesome/fontawesome-free
|
|
24
31
|
```
|
|
25
32
|
|
|
26
|
-
|
|
27
|
-
`@angular/cdk`, `@angular/common`, `@angular/core`, `@angular/forms`, `@angular/platform-browser`,
|
|
28
|
-
`@angular/router`, `@auth0/angular-jwt`, `@microsoft/signalr`, `@ngx-translate/core`,
|
|
29
|
-
`ngx-resize-observer`, `ngx-translate-multi-http-loader` and `rxjs`. Angular 22 or later.
|
|
33
|
+
Add a `.postcssrc.json` at the workspace root:
|
|
30
34
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
## Styles
|
|
35
|
+
```json
|
|
36
|
+
{ "plugins": { "@tailwindcss/postcss": {} } }
|
|
37
|
+
```
|
|
35
38
|
|
|
36
|
-
|
|
39
|
+
Add the global styles to `angular.json`, in this order:
|
|
37
40
|
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
@
|
|
41
|
+
```json
|
|
42
|
+
"styles": [
|
|
43
|
+
"@fortawesome/fontawesome-free/css/all.css",
|
|
44
|
+
"@zambon-dev/ui/styles/theme.css",
|
|
45
|
+
"@zambon-dev/ui/styles/common.scss",
|
|
46
|
+
"src/styles.css"
|
|
47
|
+
]
|
|
41
48
|
```
|
|
42
49
|
|
|
43
|
-
|
|
44
|
-
application that uses the components' Tailwind utilities needs it in its own build.
|
|
50
|
+
Render a component:
|
|
45
51
|
|
|
46
|
-
|
|
52
|
+
```ts
|
|
53
|
+
import { Component } from '@angular/core';
|
|
54
|
+
import { ButtonComponent } from '@zambon-dev/ui/library';
|
|
47
55
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
@Component({
|
|
57
|
+
selector: 'app-root',
|
|
58
|
+
imports: [ButtonComponent],
|
|
59
|
+
template: `<lib-button intent="primary" icon="fa-solid fa-floppy-disk">Save</lib-button>`,
|
|
60
|
+
})
|
|
61
|
+
export class App {}
|
|
54
62
|
```
|
|
55
63
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
Each layer kept the prefix it published under, so a selector still says which layer it came from:
|
|
59
|
-
`<lib-*>` for library, `<framework-*>` for framework, `<shared-*>` for shared.
|
|
60
|
-
|
|
61
|
-
## Development
|
|
64
|
+
The [getting started guide](https://github.com/RicardoZambon/ZLibraries/blob/main/docs/guides/getting-started.md) covers the providers for the data grid and forms, and the full application shell.
|
|
62
65
|
|
|
63
|
-
|
|
64
|
-
npx nx build ui # production package into dist/libs/ui
|
|
65
|
-
npx nx test ui # Jest
|
|
66
|
-
npx nx lint ui # ESLint
|
|
67
|
-
npx nx storybook ui # Storybook on :4400
|
|
68
|
-
```
|
|
66
|
+
## Documentation
|
|
69
67
|
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
- [Documentation site](https://ricardozambon.github.io/ZLibraries/)
|
|
69
|
+
- [Getting started](https://github.com/RicardoZambon/ZLibraries/blob/main/docs/guides/getting-started.md)
|
|
70
|
+
- [Theming and design tokens](https://github.com/RicardoZambon/ZLibraries/blob/main/docs/guides/design-tokens.md)
|
|
71
|
+
- [Internationalization](https://github.com/RicardoZambon/ZLibraries/blob/main/docs/guides/internationalization.md)
|
|
72
|
+
- [Changelog](https://github.com/RicardoZambon/ZLibraries/blob/main/libs/ui/CHANGELOG.md)
|
|
73
|
+
- [Migrating from the separate packages](https://github.com/RicardoZambon/ZLibraries/blob/main/docs/guides/migrating-to-ui.md)
|
|
74
|
+
- [Issues](https://github.com/RicardoZambon/ZLibraries/issues)
|
|
72
75
|
|
|
73
|
-
##
|
|
76
|
+
## Compatibility
|
|
74
77
|
|
|
75
|
-
|
|
76
|
-
reject both the published subpath and the equivalent relative path. As three packages the rule
|
|
77
|
-
held because npm cannot express a cycle; inside one package only the lint rule holds it.
|
|
78
|
+
Angular 22. The Angular peer range is `^22.0.0`.
|
|
78
79
|
|
|
79
80
|
## License
|
|
80
81
|
|
|
81
|
-
MIT © Ricardo Zambon
|
|
82
|
+
[MIT](https://github.com/RicardoZambon/ZLibraries/blob/main/libs/ui/LICENSE) © Ricardo Zambon
|
|
@@ -948,8 +948,8 @@ var ConfirmModalComponent = class ConfirmModalComponent {
|
|
|
948
948
|
isSignal: true
|
|
949
949
|
}],
|
|
950
950
|
ngImport: i0,
|
|
951
|
-
template: "<lib-modal\n position=\"top\"\n [closeButtonText]=\"'Button-Modal-Cancel' | translate\"\n [size]=\"size()\"\n [title]=\"title() | translate\"\n>\n <div body>\n @if (hasMessage) {\n <div class=\"message\">\n @if (showMessageIcon()) {\n <i class=\"fa-3x\" [ngClass]=\"[messageIcon(), messageIconColor()]\"></i>\n }\n <h4 [innerHTML]=\"message() | translate\"></h4>\n </div>\n }\n\n <ng-content></ng-content>\n\n @if (hasErrorMessage) {\n <div class=\"
|
|
952
|
-
styles: ["@layer properties;:host{display:contents}.message{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 3)}.message h4{flex-grow:1;text-align:justify}.
|
|
951
|
+
template: "<lib-modal\n position=\"top\"\n [closeButtonText]=\"'Button-Modal-Cancel' | translate\"\n [size]=\"size()\"\n [title]=\"title() | translate\"\n>\n <div body>\n @if (hasMessage) {\n <div class=\"message\">\n @if (showMessageIcon()) {\n <i class=\"fa-3x\" [ngClass]=\"[messageIcon(), messageIconColor()]\"></i>\n }\n <h4 [innerHTML]=\"message() | translate\"></h4>\n </div>\n }\n\n <ng-content></ng-content>\n\n @if (hasErrorMessage) {\n <div class=\"error\">\n <h4>{{ errorMessage() | translate }}</h4>\n <span>{{ 'Modal-Failed-Administrator' | translate }}</span>\n </div>\n }\n </div>\n <div footer>\n <ng-content select=\"[footer]\"></ng-content>\n </div>\n</lib-modal>\n",
|
|
952
|
+
styles: ["@layer properties;:host{display:contents}.message{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 3)}.message h4{flex-grow:1;text-align:justify}.error{margin-inline:calc(var(--spacing, .25rem) * -4);margin-top:calc(var(--spacing, .25rem) * 3);margin-bottom:calc(var(--spacing, .25rem) * -4);padding:calc(var(--spacing, .25rem) * 4);text-align:center;border-top-style:var(--tw-border-style);border-top-width:1px;border-top-color:var(--color-gray-300, oklch(87.2% .01 258.338));background-color:var(--color-red-500, oklch(63.7% .237 25.331));color:var(--color-white, #fff)}.error h4{--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700)}.error span{margin-top:var(--spacing, .25rem);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@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"],
|
|
953
953
|
dependencies: [
|
|
954
954
|
{
|
|
955
955
|
kind: "component",
|
|
@@ -997,8 +997,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
997
997
|
NgClass,
|
|
998
998
|
TranslatePipe
|
|
999
999
|
],
|
|
1000
|
-
template: "<lib-modal\n position=\"top\"\n [closeButtonText]=\"'Button-Modal-Cancel' | translate\"\n [size]=\"size()\"\n [title]=\"title() | translate\"\n>\n <div body>\n @if (hasMessage) {\n <div class=\"message\">\n @if (showMessageIcon()) {\n <i class=\"fa-3x\" [ngClass]=\"[messageIcon(), messageIconColor()]\"></i>\n }\n <h4 [innerHTML]=\"message() | translate\"></h4>\n </div>\n }\n\n <ng-content></ng-content>\n\n @if (hasErrorMessage) {\n <div class=\"
|
|
1001
|
-
styles: ["@layer properties;:host{display:contents}.message{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 3)}.message h4{flex-grow:1;text-align:justify}.
|
|
1000
|
+
template: "<lib-modal\n position=\"top\"\n [closeButtonText]=\"'Button-Modal-Cancel' | translate\"\n [size]=\"size()\"\n [title]=\"title() | translate\"\n>\n <div body>\n @if (hasMessage) {\n <div class=\"message\">\n @if (showMessageIcon()) {\n <i class=\"fa-3x\" [ngClass]=\"[messageIcon(), messageIconColor()]\"></i>\n }\n <h4 [innerHTML]=\"message() | translate\"></h4>\n </div>\n }\n\n <ng-content></ng-content>\n\n @if (hasErrorMessage) {\n <div class=\"error\">\n <h4>{{ errorMessage() | translate }}</h4>\n <span>{{ 'Modal-Failed-Administrator' | translate }}</span>\n </div>\n }\n </div>\n <div footer>\n <ng-content select=\"[footer]\"></ng-content>\n </div>\n</lib-modal>\n",
|
|
1001
|
+
styles: ["@layer properties;:host{display:contents}.message{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 3)}.message h4{flex-grow:1;text-align:justify}.error{margin-inline:calc(var(--spacing, .25rem) * -4);margin-top:calc(var(--spacing, .25rem) * 3);margin-bottom:calc(var(--spacing, .25rem) * -4);padding:calc(var(--spacing, .25rem) * 4);text-align:center;border-top-style:var(--tw-border-style);border-top-width:1px;border-top-color:var(--color-gray-300, oklch(87.2% .01 258.338));background-color:var(--color-red-500, oklch(63.7% .237 25.331));color:var(--color-white, #fff)}.error h4{--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700)}.error span{margin-top:var(--spacing, .25rem);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@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"]
|
|
1002
1002
|
}]
|
|
1003
1003
|
}],
|
|
1004
1004
|
propDecorators: {
|
|
@@ -1154,8 +1154,8 @@ var ErrorModalComponent = class ErrorModalComponent {
|
|
|
1154
1154
|
isSignal: true
|
|
1155
1155
|
}],
|
|
1156
1156
|
ngImport: i0,
|
|
1157
|
-
template: "<lib-modal\n position=\"top\"\n [closeButtonText]=\"'Button-Modal-Close' | translate\"\n [size]=\"size()\"\n [title]=\"title() | translate\"\n (closed)=\"closed.emit()\"\n>\n <div body>\n <div class=\"
|
|
1158
|
-
styles: ["@layer properties;:host{display:contents}.
|
|
1157
|
+
template: "<lib-modal\n position=\"top\"\n [closeButtonText]=\"'Button-Modal-Close' | translate\"\n [size]=\"size()\"\n [title]=\"title() | translate\"\n (closed)=\"closed.emit()\"\n>\n <div body>\n <div class=\"error\">\n <h4>{{ errorMessage() | translate }}</h4>\n @if (subtitle()) {\n <span>{{ subtitle() | translate }}</span>\n }\n </div>\n </div>\n</lib-modal>\n",
|
|
1158
|
+
styles: ["@layer properties;:host{display:contents}.error{margin-inline:calc(var(--spacing, .25rem) * -4);margin-top:-1.1rem;margin-bottom:calc(var(--spacing, .25rem) * -4);padding-block:calc(var(--spacing, .25rem) * 4);text-align:center;border-top-style:var(--tw-border-style);border-top-width:1px;border-top-color:var(--color-gray-300, oklch(87.2% .01 258.338));background-color:var(--color-red-500, oklch(63.7% .237 25.331));color:var(--color-white, #fff)}.error h4{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700);white-space:pre-line}.error span{margin-top:var(--spacing, .25rem);font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)))}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@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"],
|
|
1159
1159
|
dependencies: [{
|
|
1160
1160
|
kind: "component",
|
|
1161
1161
|
type: ModalComponent,
|
|
@@ -1190,8 +1190,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1190
1190
|
args: [{
|
|
1191
1191
|
selector: "framework-error-modal",
|
|
1192
1192
|
imports: [ModalComponent, TranslatePipe],
|
|
1193
|
-
template: "<lib-modal\n position=\"top\"\n [closeButtonText]=\"'Button-Modal-Close' | translate\"\n [size]=\"size()\"\n [title]=\"title() | translate\"\n (closed)=\"closed.emit()\"\n>\n <div body>\n <div class=\"
|
|
1194
|
-
styles: ["@layer properties;:host{display:contents}.
|
|
1193
|
+
template: "<lib-modal\n position=\"top\"\n [closeButtonText]=\"'Button-Modal-Close' | translate\"\n [size]=\"size()\"\n [title]=\"title() | translate\"\n (closed)=\"closed.emit()\"\n>\n <div body>\n <div class=\"error\">\n <h4>{{ errorMessage() | translate }}</h4>\n @if (subtitle()) {\n <span>{{ subtitle() | translate }}</span>\n }\n </div>\n </div>\n</lib-modal>\n",
|
|
1194
|
+
styles: ["@layer properties;:host{display:contents}.error{margin-inline:calc(var(--spacing, .25rem) * -4);margin-top:-1.1rem;margin-bottom:calc(var(--spacing, .25rem) * -4);padding-block:calc(var(--spacing, .25rem) * 4);text-align:center;border-top-style:var(--tw-border-style);border-top-width:1px;border-top-color:var(--color-gray-300, oklch(87.2% .01 258.338));background-color:var(--color-red-500, oklch(63.7% .237 25.331));color:var(--color-white, #fff)}.error h4{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700);white-space:pre-line}.error span{margin-top:var(--spacing, .25rem);font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)))}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@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"]
|
|
1195
1195
|
}]
|
|
1196
1196
|
}],
|
|
1197
1197
|
propDecorators: {
|