@anguless/angulux 22.6.6 → 22.6.8
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/README.md +12 -9
- package/fesm2022/anguless-angulux-autofocus.mjs +2 -2
- package/fesm2022/anguless-angulux-autofocus.mjs.map +1 -1
- package/fesm2022/anguless-angulux-confirmdialog.mjs +9 -3
- package/fesm2022/anguless-angulux-confirmdialog.mjs.map +1 -1
- package/fesm2022/anguless-angulux-dialog.mjs +2 -2
- package/fesm2022/anguless-angulux-dialog.mjs.map +1 -1
- package/fesm2022/anguless-angulux-dom.mjs +240 -155
- package/fesm2022/anguless-angulux-dom.mjs.map +1 -1
- package/fesm2022/anguless-angulux-fileupload.mjs +13 -1
- package/fesm2022/anguless-angulux-fileupload.mjs.map +1 -1
- package/fesm2022/anguless-angulux-menu.mjs +2 -2
- package/fesm2022/anguless-angulux-menu.mjs.map +1 -1
- package/fesm2022/anguless-angulux-motion.mjs +17 -0
- package/fesm2022/anguless-angulux-motion.mjs.map +1 -1
- package/fesm2022/anguless-angulux-multiselect.mjs +5 -5
- package/fesm2022/anguless-angulux-multiselect.mjs.map +1 -1
- package/fesm2022/anguless-angulux-overlay.mjs +10 -6
- package/fesm2022/anguless-angulux-overlay.mjs.map +1 -1
- package/fesm2022/anguless-angulux-password.mjs +2 -2
- package/fesm2022/anguless-angulux-password.mjs.map +1 -1
- package/fesm2022/anguless-angulux-progressbar.mjs +8 -3
- package/fesm2022/anguless-angulux-progressbar.mjs.map +1 -1
- package/fesm2022/anguless-angulux-table.mjs +73 -75
- package/fesm2022/anguless-angulux-table.mjs.map +1 -1
- package/fesm2022/anguless-angulux-tieredmenu.mjs +2 -2
- package/fesm2022/anguless-angulux-tieredmenu.mjs.map +1 -1
- package/fesm2022/anguless-angulux-toast.mjs +14 -1
- package/fesm2022/anguless-angulux-toast.mjs.map +1 -1
- package/fesm2022/anguless-angulux-treetable.mjs +4 -3
- package/fesm2022/anguless-angulux-treetable.mjs.map +1 -1
- package/fesm2022/anguless-angulux-utils.mjs +32 -12
- package/fesm2022/anguless-angulux-utils.mjs.map +1 -1
- package/package.json +1 -1
- package/types/anguless-angulux-confirmdialog.d.ts +4 -0
- package/types/anguless-angulux-dom.d.ts +36 -2
- package/types/anguless-angulux-fileupload.d.ts +1 -2
- package/types/anguless-angulux-table.d.ts +2 -2
- package/types/anguless-angulux-toast.d.ts +1 -2
- package/types/anguless-angulux-utils.d.ts +5 -2
package/README.md
CHANGED
|
@@ -70,14 +70,14 @@ The interesting part is not the fork. It is that the boundary is enforced by mac
|
|
|
70
70
|
|
|
71
71
|
### 1. Every release is machine-proven MIT
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
Twenty gates run on every commit and every pull request. They do not check style — each one
|
|
74
74
|
closes a class of failure that has already happened in this repository.
|
|
75
75
|
|
|
76
76
|
| Gate | What it refuses to let through |
|
|
77
77
|
|---|---|
|
|
78
|
-
| `check:catalog` | a dependency version drifting off the pinned catalog |
|
|
78
|
+
| `check:catalog` | a dependency version drifting off the pinned catalog, or an installed dependency or override declared as a range in any package manifest |
|
|
79
79
|
| `check:scope` | the transitive closure drifting off the 65 warranted modules |
|
|
80
|
-
| `check:license` | any PrimeTek package from a post-MIT release entering the tree — and, separately, any licence-flagged material sitting in `ref/` that `PROVENANCE.md` does not declare |
|
|
80
|
+
| `check:license` | any PrimeTek package from a post-MIT release entering the tree — and, separately, any licence-flagged material sitting in `ref/` that `PROVENANCE.md` does not declare, and either evidence clone in `ref/` being modified or moved off the commit `PROVENANCE.md` records |
|
|
81
81
|
| `check:names` | PrimeNG names surviving in selector, API or **trademark** positions — including inside bare strings, JSDoc links and DOM attributes |
|
|
82
82
|
| `check:risk-coverage` | the browser gate's scope drifting off the risky decorators computed from source |
|
|
83
83
|
| `check:language` | non-English text reaching a public repository |
|
|
@@ -88,6 +88,8 @@ closes a class of failure that has already happened in this repository.
|
|
|
88
88
|
| `check:release-plugins` | a release train listing the same plugin twice, or naming the wrong rail — the first published `22.2.1` with every changelog entry printed twice, and nothing else noticed because the version and the package were both correct |
|
|
89
89
|
| `check:facet-single-route` | a template slot growing a second route, after the whole library was collapsed onto one `<ng-template #x>` mechanism |
|
|
90
90
|
| `check:corpus` | `corpus/corpus.json` drifting off the source it is generated from — a generated artifact nobody regenerates is a lie with a timestamp, and nothing else breaks when it goes stale |
|
|
91
|
+
| `check:api-surface` | a selector, input, output or template slot that the last release shipped being removed, renamed or retyped — the API freeze in [GOVERNANCE.md](GOVERNANCE.md) was a promise nothing checked; the corpus is compared with the one committed at the most recent release tag, and an approved break has to be written down with its reason |
|
|
92
|
+
| `check:lint` | code drifting off the Angular 22 conventions this repository documents — a decorator input, constructor injection, `*ngIf`, `any`, `@ts-ignore`, a skipped test — and markup on the public site that a keyboard or a screen reader cannot use. The showcase, the verification app and the browser tests are held at zero. The forked library code is held to a frozen baseline (`tools/lint-baseline.json`) that only shrinks: no file may gain a finding, and a fix has to give its allowance back. A focused test (`fit`, `.only`) fails everywhere; an `eslint-disable` comment has no effect |
|
|
91
93
|
| `check:demo-code` | the documentation site claiming something the library does not do — a demo whose shown code stopped matching the demo that ran, a page entry pointing at a different file than it names, or a module documented on the public web that no release contains |
|
|
92
94
|
| `check:peer-licence` | angulux's own manifest telling a **consumer's** package manager to install a commercially-licensed PrimeTek package — `check:license` proves the tree installed *here* is clean, which is a different question from what the published version ranges admit |
|
|
93
95
|
| `check:install-scripts` | a dependency running arbitrary code during `pnpm install` without anyone deciding it should — the release job installs while holding `id-token: write`, so one compromised transitive package could mint an npm credential and publish as this project with a valid attestation |
|
|
@@ -95,11 +97,11 @@ closes a class of failure that has already happened in this repository.
|
|
|
95
97
|
| `check:gate-count` | this list going stale — the count and the gate names are re-derived from `package.json` and checked against every place they are written down |
|
|
96
98
|
|
|
97
99
|
```bash
|
|
98
|
-
npm run check # all
|
|
100
|
+
npm run check # all twenty, no build needed
|
|
99
101
|
```
|
|
100
102
|
|
|
101
|
-
|
|
102
|
-
anything to inspect until there is a build to inspect. All
|
|
103
|
+
Four further checks run after the build rather than inside that suite, because none has
|
|
104
|
+
anything to inspect until there is a build to inspect. All four look at the artifact instead
|
|
103
105
|
of the source it came from:
|
|
104
106
|
|
|
105
107
|
| Check | What it refuses to let ship |
|
|
@@ -107,8 +109,9 @@ of the source it came from:
|
|
|
107
109
|
| `check:publishable` | packs every package and reads `package.json` back **out of the tarball**, so what gets inspected is the exact bytes npm would receive. It exists because a guard that read the source tree instead once passed while three packages were about to publish an uninstallable `workspace:` dependency |
|
|
108
110
|
| `check:dts` | compiles the **emitted `.d.ts`** with `skipLibCheck: false`. Every tsconfig here sets it to `true`, which means our own declarations are the one thing no build in this repository type-checks — a consumer who turns it off compiles them for real, and if they do not stand up alone that consumer's build breaks while ours stays green |
|
|
109
111
|
| `check:signal-forms` | compiles Signal Forms' `[formField]` on **every form control** against the built package, with `strictTemplates` on. `[formField]` binds a field's state into inputs by *name* — `min` typed as the field's value, `pattern` as `readonly RegExp[]` — so a narrower input is a type error in every consumer's template. Four controls shipped that way, invisible here: the library builds with `strictTemplates` off and the specs compile just in time. The form controls are read from the corpus, so a newly shipped one must join the fixture |
|
|
112
|
+
| `check:size` | bundles **every entry point** the way an application build does — linked, optimised, minified, with everything of ours it drags in — and compares the bytes with `tools/size-baseline.json`. An entry point that grows more than 1 % (at least 512 bytes) fails; one that shrank past the same margin fails too, until `--prune` lowers its number, so an optimisation cannot be quietly taken back. `npm run measure:size` prints the table, and `-- --why table` what is inside one bundle |
|
|
110
113
|
|
|
111
|
-
All
|
|
114
|
+
All four refuse to run against nothing, and two go further: `check:dts` and
|
|
112
115
|
`check:signal-forms` report success only after a deliberately broken file has been put through
|
|
113
116
|
the same program and rejected for the reason it was written for. A type-check aimed at zero
|
|
114
117
|
files does not say "I found nothing" — it says "no errors".
|
|
@@ -149,7 +152,7 @@ Evidence measured at `22.2.3`, reproducible from a clean checkout:
|
|
|
149
152
|
`17/17` IS gated, by check:gate-count. -->
|
|
150
153
|
|
|
151
154
|
```
|
|
152
|
-
|
|
155
|
+
20/20 gates exit 0
|
|
153
156
|
library build exit 0 · 211 entrypoints
|
|
154
157
|
inherited spec suite 3809 SUCCESS
|
|
155
158
|
browser gate 70 tests · 14 behaviour + 56 visibility
|
|
@@ -210,7 +213,7 @@ so locking them to Angular's major would be a lie about their compatibility.
|
|
|
210
213
|
|
|
211
214
|
```bash
|
|
212
215
|
corepack pnpm install
|
|
213
|
-
npm run check # the
|
|
216
|
+
npm run check # the 20 gates
|
|
214
217
|
|
|
215
218
|
# the four forked packages build BEFORE the library — dependency order matters
|
|
216
219
|
for p in utils styled motion styles; do
|
|
@@ -2,7 +2,7 @@ import { DOCUMENT, isPlatformBrowser } from '@angular/common';
|
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { inject, PLATFORM_ID, ElementRef, Input, Directive, NgModule } from '@angular/core';
|
|
4
4
|
import { BaseComponent } from '@anguless/angulux/basecomponent';
|
|
5
|
-
import {
|
|
5
|
+
import { ɵgetFocusableElements as _getFocusableElements } from '@anguless/angulux/dom';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* AutoFocus manages focus on focusable element on load.
|
|
@@ -39,7 +39,7 @@ class AutoFocus extends BaseComponent {
|
|
|
39
39
|
autoFocus() {
|
|
40
40
|
if (isPlatformBrowser(this.platformId) && this.autofocus) {
|
|
41
41
|
setTimeout(() => {
|
|
42
|
-
const focusableElements =
|
|
42
|
+
const focusableElements = _getFocusableElements(this.host?.nativeElement);
|
|
43
43
|
if (focusableElements.length === 0) {
|
|
44
44
|
this.host.nativeElement.focus();
|
|
45
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anguless-angulux-autofocus.mjs","sources":["../../src/autofocus/autofocus.ts","../../src/autofocus/anguless-angulux-autofocus.ts"],"sourcesContent":["import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport { Directive, ElementRef, inject, Input, NgModule, PLATFORM_ID } from '@angular/core';\nimport { BaseComponent } from '@anguless/angulux/basecomponent';\nimport {
|
|
1
|
+
{"version":3,"file":"anguless-angulux-autofocus.mjs","sources":["../../src/autofocus/autofocus.ts","../../src/autofocus/anguless-angulux-autofocus.ts"],"sourcesContent":["import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport { Directive, ElementRef, inject, Input, NgModule, PLATFORM_ID } from '@angular/core';\nimport { BaseComponent } from '@anguless/angulux/basecomponent';\nimport { ɵgetFocusableElements } from '@anguless/angulux/dom';\n\n/**\n * AutoFocus manages focus on focusable element on load.\n * @group Components\n */\n@Directive({\n selector: '[aglAutoFocus]',\n standalone: true\n})\nexport class AutoFocus extends BaseComponent {\n /**\n * When present, it specifies that the component should automatically get focus on load.\n * @group Props\n */\n @Input('aglAutoFocus') autofocus: boolean = false;\n\n focused: boolean = false;\n\n platformId = inject(PLATFORM_ID);\n\n document: Document = inject(DOCUMENT);\n\n host: ElementRef = inject(ElementRef);\n\n onAfterContentChecked() {\n // This sets the `attr.autofocus` which is different than the Input `autofocus` attribute.\n // Unset counts as false: a component whose own autofocus input has no default forwards undefined.\n if (this.autofocus === false || this.autofocus == null) {\n this.host.nativeElement.removeAttribute('autofocus');\n } else {\n this.host.nativeElement.setAttribute('autofocus', true);\n }\n\n if (!this.focused) {\n this.autoFocus();\n }\n }\n\n onAfterViewChecked() {\n if (!this.focused) {\n this.autoFocus();\n }\n }\n\n autoFocus() {\n if (isPlatformBrowser(this.platformId) && this.autofocus) {\n setTimeout(() => {\n const focusableElements = ɵgetFocusableElements(this.host?.nativeElement);\n\n if (focusableElements.length === 0) {\n this.host.nativeElement.focus();\n }\n if (focusableElements.length > 0) {\n focusableElements[0].focus();\n }\n\n this.focused = true;\n });\n }\n }\n}\n\n@NgModule({\n imports: [AutoFocus],\n exports: [AutoFocus]\n})\nexport class AutoFocusModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["ɵgetFocusableElements"],"mappings":";;;;;;AAKA;;;AAGG;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AC,CAAC;QACN;IACJ;uGAlDS,SAAS,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAT,SAAS,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,CAAA,cAAA,EAAA,WAAA,CAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAT,SAAS,EAAA,UAAA,EAAA,CAAA;kBAJrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,UAAU,EAAE;AACf,iBAAA;;sBAMI,KAAK;uBAAC,cAAc;;MAoDZ,eAAe,CAAA;uGAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAAf,eAAe,EAAA,OAAA,EAAA,CAzDf,SAAS,CAAA,EAAA,OAAA,EAAA,CAAT,SAAS,CAAA,EAAA,CAAA;wGAyDT,eAAe,EAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,SAAS,CAAC;oBACpB,OAAO,EAAE,CAAC,SAAS;AACtB,iBAAA;;;ACrED;;AAEG;;;;"}
|
|
@@ -350,9 +350,9 @@ class ConfirmDialog extends BaseComponent {
|
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
352
|
onInit() {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
353
|
+
// `breakpoints` is passed to the inner dialog, which writes the media rule for the attribute it
|
|
354
|
+
// sets on its own container. The rule this component wrote named its OWN id, which no element
|
|
355
|
+
// carries, so it never applied.
|
|
356
356
|
this.translationSubscription = this.config.translationObserver.subscribe(() => {
|
|
357
357
|
if (this.visible) {
|
|
358
358
|
this.cd.markForCheck();
|
|
@@ -392,6 +392,10 @@ class ConfirmDialog extends BaseComponent {
|
|
|
392
392
|
return findSingle(this.dialog.el.nativeElement, '.p-confirm-dialog-accept');
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
|
+
/**
|
|
396
|
+
* @deprecated No longer called: `breakpoints` is applied by the inner dialog. Its rule named this
|
|
397
|
+
* component's own id, which no element carries, so it never matched. Kept for API compatibility.
|
|
398
|
+
*/
|
|
395
399
|
createStyle() {
|
|
396
400
|
if (!this.styleElement) {
|
|
397
401
|
this.styleElement = this.document.createElement('style');
|
|
@@ -518,6 +522,7 @@ class ConfirmDialog extends BaseComponent {
|
|
|
518
522
|
[appendTo]="$appendTo()"
|
|
519
523
|
[position]="position"
|
|
520
524
|
[style]="style"
|
|
525
|
+
[breakpoints]="breakpoints"
|
|
521
526
|
[dismissableMask]="dismissableMask"
|
|
522
527
|
[draggable]="draggable"
|
|
523
528
|
[baseZIndex]="baseZIndex"
|
|
@@ -626,6 +631,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImpor
|
|
|
626
631
|
[appendTo]="$appendTo()"
|
|
627
632
|
[position]="position"
|
|
628
633
|
[style]="style"
|
|
634
|
+
[breakpoints]="breakpoints"
|
|
629
635
|
[dismissableMask]="dismissableMask"
|
|
630
636
|
[draggable]="draggable"
|
|
631
637
|
[baseZIndex]="baseZIndex"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anguless-angulux-confirmdialog.mjs","sources":["../../src/confirmdialog/style/confirmdialogstyle.ts","../../src/confirmdialog/confirmdialog.ts","../../src/confirmdialog/anguless-angulux-confirmdialog.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@anguless/angulux-styles/confirmdialog';\nimport { BaseStyle } from '@anguless/angulux/base';\n\nconst classes = {\n root: 'p-confirmdialog',\n icon: 'p-confirmdialog-icon',\n message: 'p-confirmdialog-message',\n pcRejectButton: 'p-confirmdialog-reject-button',\n pcAcceptButton: 'p-confirmdialog-accept-button'\n};\n\n@Injectable()\nexport class ConfirmDialogStyle extends BaseStyle {\n name = 'confirmdialog';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * ConfirmDialog uses a Dialog UI with confirmDialog method or <ConfirmDialog> tag.\n *\n * @module confirmdialogstyle\n *\n */\nexport enum ConfirmDialogClasses {\n /**\n * Class name of the root element\n */\n root = 'p-confirmdialog',\n /**\n * Class name of the icon element\n */\n icon = 'p-confirmdialog-icon',\n /**\n * Class name of the message element\n */\n message = 'p-confirmdialog-message',\n /**\n * Class name of the reject button element\n */\n pcRejectButton = 'p-confirmdialog-reject-button',\n /**\n * Class name of the accept button element\n */\n pcAcceptButton = 'p-confirmdialog-accept-button'\n}\n\nexport interface ConfirmDialogStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport {\n AfterContentInit,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n ElementRef,\n EventEmitter,\n inject,\n InjectionToken,\n input,\n Input,\n NgModule,\n NgZone,\n numberAttribute,\n OnDestroy,\n OnInit,\n Output,\n TemplateRef,\n ViewEncapsulation\n} from '@angular/core';\nimport { findSingle, setAttribute, uuid } from '@anguless/angulux-utils';\nimport { Confirmation, ConfirmationService, ConfirmEventType, SharedModule, TranslationKeys } from '@anguless/angulux/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@anguless/angulux/basecomponent';\nimport { Bind } from '@anguless/angulux/bind';\nimport { Button } from '@anguless/angulux/button';\nimport { Dialog } from '@anguless/angulux/dialog';\nimport { Nullable } from '@anguless/angulux/ts-helpers';\nimport { ConfirmDialogHeadlessTemplateContext, ConfirmDialogMessageTemplateContext, ConfirmDialogPassThrough } from '@anguless/angulux/types/confirmdialog';\nimport { Subscription } from 'rxjs';\nimport { ConfirmDialogStyle } from './style/confirmdialogstyle';\n\nconst CONFIRMDIALOG_INSTANCE = new InjectionToken<ConfirmDialog>('CONFIRMDIALOG_INSTANCE');\n\n/**\n * ConfirmDialog uses a Dialog UI that is integrated with the Confirmation API.\n * @group Components\n */\n@Component({\n selector: 'agl-confirmDialog, agl-confirmdialog, agl-confirm-dialog',\n standalone: true,\n imports: [CommonModule, Button, Dialog, SharedModule, Bind],\n template: `\n <agl-dialog\n [pt]=\"pt\"\n #dialog\n [visible]=\"visible\"\n (visibleChange)=\"onVisibleChange($event)\"\n [role]=\"'alertdialog'\"\n [closable]=\"option('closable')\"\n [closeAriaLabel]=\"option('closeAriaLabel') || option('closeButtonProps')?.ariaLabel\"\n [styleClass]=\"cn(cx('root'), styleClass)\"\n [modal]=\"option('modal')\"\n [header]=\"option('header')\"\n [closeOnEscape]=\"option('closeOnEscape')\"\n [blockScroll]=\"option('blockScroll')\"\n [appendTo]=\"$appendTo()\"\n [position]=\"position\"\n [style]=\"style\"\n [dismissableMask]=\"dismissableMask\"\n [draggable]=\"draggable\"\n [baseZIndex]=\"baseZIndex\"\n [autoZIndex]=\"autoZIndex\"\n [maskStyleClass]=\"cn(cx('mask'), maskStyleClass)\"\n [unstyled]=\"unstyled()\"\n (onHide)=\"onDialogHide()\"\n >\n @if (headlessTemplate()) {\n <ng-template #headless>\n <ng-container\n *ngTemplateOutlet=\"\n headlessTemplate();\n context: {\n $implicit: confirmation,\n onAccept: onAccept.bind(this),\n onReject: onReject.bind(this)\n }\n \"\n ></ng-container>\n </ng-template>\n } @else {\n @if (headerTemplate()) {\n <ng-template #header>\n <ng-container *ngTemplateOutlet=\"headerTemplate()\"></ng-container>\n </ng-template>\n }\n\n <ng-template #content>\n @if (iconTemplate()) {\n <ng-template *ngTemplateOutlet=\"iconTemplate()\"></ng-template>\n } @else if (!iconTemplate() && !messageTemplate()) {\n <i [ngClass]=\"cx('icon')\" [class]=\"option('icon')\" [aglBind]=\"ptm('icon')\" *ngIf=\"option('icon')\"></i>\n }\n @if (messageTemplate()) {\n <ng-template *ngTemplateOutlet=\"messageTemplate(); context: { $implicit: confirmation }\"></ng-template>\n } @else {\n <span [class]=\"cx('message')\" [aglBind]=\"ptm('message')\" [innerHTML]=\"option('message')\"> </span>\n }\n </ng-template>\n }\n <ng-template #footer>\n @if (footerTemplate()) {\n <ng-container *ngTemplateOutlet=\"footerTemplate()\"></ng-container>\n }\n @if (!footerTemplate()) {\n <agl-button\n [pt]=\"ptm('pcRejectButton')\"\n *ngIf=\"option('rejectVisible')\"\n [label]=\"rejectButtonLabel\"\n (onClick)=\"onReject()\"\n [styleClass]=\"getButtonStyleClass('pcRejectButton', 'rejectButtonStyleClass')\"\n [ariaLabel]=\"option('rejectButtonProps', 'ariaLabel')\"\n [buttonProps]=\"getRejectButtonProps()\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (rejectIcon && !rejectIconTemplate()) {\n <i *ngIf=\"option('rejectIcon')\" [class]=\"option('rejectIcon')\" [aglBind]=\"ptm('pcRejectButton')['icon']\"></i>\n }\n <ng-template *ngTemplateOutlet=\"rejectIconTemplate()\"></ng-template>\n </ng-template>\n </agl-button>\n <agl-button\n [pt]=\"ptm('pcAcceptButton')\"\n [label]=\"acceptButtonLabel\"\n (onClick)=\"onAccept()\"\n [styleClass]=\"getButtonStyleClass('pcAcceptButton', 'acceptButtonStyleClass')\"\n *ngIf=\"option('acceptVisible')\"\n [ariaLabel]=\"option('acceptButtonProps', 'ariaLabel')\"\n [buttonProps]=\"getAcceptButtonProps()\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (acceptIcon && !acceptIconTemplate()) {\n <i *ngIf=\"option('acceptIcon')\" [class]=\"option('acceptIcon')\" [aglBind]=\"ptm('pcAcceptButton')['icon']\"></i>\n }\n <ng-template *ngTemplateOutlet=\"acceptIconTemplate()\"></ng-template>\n </ng-template>\n </agl-button>\n }\n </ng-template>\n </agl-dialog>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [ConfirmDialogStyle, { provide: CONFIRMDIALOG_INSTANCE, useExisting: ConfirmDialog }, { provide: PARENT_INSTANCE, useExisting: ConfirmDialog }],\n hostDirectives: [Bind]\n})\nexport class ConfirmDialog extends BaseComponent<ConfirmDialogPassThrough> implements OnInit, AfterContentInit, OnDestroy {\n componentName = 'ConfirmDialog';\n\n $pcConfirmDialog: ConfirmDialog | undefined = inject(CONFIRMDIALOG_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n onAfterViewChecked(): void {\n this.bindDirectiveInstance.setAttrs(this.ptm('host'));\n }\n\n /**\n * Title text of the dialog.\n * @group Props\n */\n @Input() header: string | undefined;\n /**\n * Icon to display next to message.\n * @group Props\n */\n @Input() icon: string | undefined;\n /**\n * Message of the confirmation.\n * @group Props\n */\n @Input() message: string | undefined;\n /**\n * Inline style of the element.\n * @group Props\n */\n @Input() get style(): { [klass: string]: any } | null | undefined {\n return this._style;\n }\n set style(value: { [klass: string]: any } | null | undefined) {\n this._style = value;\n this.cd.markForCheck();\n }\n /**\n * Class of the element.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Specify the CSS class(es) for styling the mask element\n * @group Props\n */\n @Input() maskStyleClass: string | undefined;\n /**\n * Icon of the accept button.\n * @group Props\n */\n @Input() acceptIcon: string | undefined;\n /**\n * Label of the accept button.\n * @group Props\n */\n @Input() acceptLabel: string | undefined;\n /**\n * Defines a string that labels the close button for accessibility.\n * @group Props\n */\n @Input() closeAriaLabel: string | undefined;\n /**\n * Defines a string that labels the accept button for accessibility.\n * @group Props\n */\n @Input() acceptAriaLabel: string | undefined;\n /**\n * Visibility of the accept button.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) acceptVisible: boolean = true;\n /**\n * Icon of the reject button.\n * @group Props\n */\n @Input() rejectIcon: string | undefined;\n /**\n * Label of the reject button.\n * @group Props\n */\n @Input() rejectLabel: string | undefined;\n /**\n * Defines a string that labels the reject button for accessibility.\n * @group Props\n */\n @Input() rejectAriaLabel: string | undefined;\n /**\n * Visibility of the reject button.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) rejectVisible: boolean = true;\n /**\n * Style class of the accept button.\n * @group Props\n */\n @Input() acceptButtonStyleClass: string | undefined;\n /**\n * Style class of the reject button.\n * @group Props\n */\n @Input() rejectButtonStyleClass: string | undefined;\n /**\n * Specifies if pressing escape key should hide the dialog.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) closeOnEscape: boolean = true;\n /**\n * Specifies if clicking the modal background should hide the dialog.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) dismissableMask: boolean | undefined;\n /**\n * Determines whether scrolling behavior should be blocked within the component.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) blockScroll: boolean = true;\n /**\n * When enabled dialog is displayed in RTL direction.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) rtl: boolean = false;\n /**\n * Adds a close icon to the header to hide the dialog.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) closable: boolean = true;\n /**\n * Target element to attach the overlay, valid values are \"body\" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]=\"mydiv\" for a div element having #mydiv as variable name).\n * @defaultValue 'body'\n * @group Props\n */\n appendTo = input<HTMLElement | ElementRef | TemplateRef<any> | 'self' | 'body' | null | undefined | any>('body');\n /**\n * Optional key to match the key of confirm object, necessary to use when component tree has multiple confirm dialogs.\n * @group Props\n */\n @Input() key: string | undefined;\n /**\n * Whether to automatically manage layering.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) autoZIndex: boolean = true;\n /**\n * Base zIndex value to use in layering.\n * @group Props\n */\n @Input({ transform: numberAttribute }) baseZIndex: number = 0;\n /**\n * Transition options of the animation.\n * @group Props\n */\n @Input() transitionOptions: string = '150ms cubic-bezier(0, 0, 0.2, 1)';\n /**\n * When enabled, can only focus on elements inside the confirm dialog.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) focusTrap: boolean = true;\n /**\n * Element to receive the focus when the dialog gets visible.\n * @group Props\n */\n @Input() defaultFocus: 'accept' | 'reject' | 'close' | 'none' = 'accept';\n /**\n * Object literal to define widths per screen size.\n * @group Props\n */\n @Input() breakpoints: any;\n /**\n * Defines if background should be blocked when dialog is displayed.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) modal: boolean = true;\n /**\n * Current visible state as a boolean.\n * @group Props\n */\n @Input() get visible(): any {\n return this._visible;\n }\n\n set visible(value: any) {\n this._visible = value;\n\n if (this._visible && !this.maskVisible) {\n this.maskVisible = true;\n }\n\n this.cd.markForCheck();\n }\n /**\n * Allows getting the position of the component.\n * @group Props\n */\n @Input() position: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'topleft' | 'topright' | 'bottomleft' | 'bottomright' = 'center';\n /**\n * Enables dragging to change the position using header.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) draggable: boolean = true;\n /**\n * Callback to invoke when dialog is hidden.\n * @param {ConfirmEventType} enum - Custom confirm event.\n * @group Emits\n */\n @Output() onHide: EventEmitter<ConfirmEventType> = new EventEmitter<ConfirmEventType>();\n\n _componentStyle = inject(ConfirmDialogStyle);\n\n /**\n * Custom header template.\n * @group Templates\n */\n headerTemplate = contentChild<TemplateRef<void>>('header', { descendants: false });\n\n /**\n * Custom footer template.\n * @group Templates\n */\n footerTemplate = contentChild<TemplateRef<void>>('footer', { descendants: false });\n\n /**\n * Custom reject icon template.\n * @group Templates\n */\n rejectIconTemplate = contentChild<TemplateRef<void>>('rejecticon', { descendants: false });\n\n /**\n * Custom accept icon template.\n * @group Templates\n */\n acceptIconTemplate = contentChild<TemplateRef<void>>('accepticon', { descendants: false });\n\n /**\n * Custom message template.\n * @group Templates\n */\n messageTemplate = contentChild<TemplateRef<ConfirmDialogMessageTemplateContext>>('message', { descendants: false });\n\n /**\n * Custom icon template.\n * @group Templates\n */\n iconTemplate = contentChild<TemplateRef<void>>('icon', { descendants: false });\n\n /**\n * Custom headless template.\n * @group Templates\n */\n headlessTemplate = contentChild<TemplateRef<ConfirmDialogHeadlessTemplateContext>>('headless', { descendants: false });\n\n $appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo());\n\n confirmation: Nullable<Confirmation>;\n\n _visible: boolean | undefined;\n\n _style: { [klass: string]: any } | null | undefined;\n\n maskVisible: boolean | undefined;\n\n dialog: Nullable<Dialog>;\n\n wrapper: Nullable<HTMLElement>;\n\n contentContainer: Nullable<HTMLDivElement>;\n\n subscription: Subscription;\n\n preWidth: number | undefined;\n\n styleElement: any;\n\n id = uuid('pn_id_');\n\n ariaLabelledBy: string | null = this.getAriaLabelledBy();\n\n translationSubscription: Subscription | undefined;\n\n constructor(\n private confirmationService: ConfirmationService,\n public zone: NgZone\n ) {\n super();\n this.subscription = this.confirmationService.requireConfirmation$.subscribe((confirmation) => {\n if (!confirmation) {\n this.hide();\n return;\n }\n if (confirmation.key === this.key) {\n this.restoreOwnOptions();\n this.confirmation = confirmation;\n\n const keys = Object.keys(confirmation);\n\n this.applied = keys.map((key) => ({ key, before: this[key], value: confirmation[key] }));\n keys.forEach((key) => {\n this[key] = confirmation[key];\n });\n\n if (this.confirmation.accept) {\n this.confirmation.acceptEvent = new EventEmitter();\n this.confirmation.acceptEvent.subscribe(this.confirmation.accept);\n }\n\n if (this.confirmation.reject) {\n this.confirmation.rejectEvent = new EventEmitter();\n this.confirmation.rejectEvent.subscribe(this.confirmation.reject);\n }\n\n this.visible = true;\n }\n });\n }\n\n onInit() {\n if (this.breakpoints) {\n this.createStyle();\n }\n\n this.translationSubscription = this.config.translationObserver.subscribe(() => {\n if (this.visible) {\n this.cd.markForCheck();\n }\n });\n }\n\n getAriaLabelledBy() {\n return this.header !== null ? uuid('pn_id_') + '_header' : null;\n }\n\n option(name: string, k?: string) {\n const source: { [key: string]: any } = this;\n if (source.hasOwnProperty(name)) {\n const value = k ? source[k] : source[name];\n return typeof value === 'function' ? value() : value;\n }\n\n return undefined;\n }\n\n getButtonStyleClass(cx: string, opt: string): string {\n const cxClass = this.cx(cx);\n const optionClass = this.option(opt);\n\n return [cxClass, optionClass].filter(Boolean).join(' ');\n }\n\n getElementToFocus() {\n if (!this.dialog?.el?.nativeElement) return;\n\n switch (this.option('defaultFocus')) {\n case 'accept':\n return findSingle(this.dialog.el.nativeElement, '.p-confirm-dialog-accept');\n\n case 'reject':\n return findSingle(this.dialog.el.nativeElement, '.p-confirm-dialog-reject');\n\n case 'close':\n return findSingle(this.dialog.el.nativeElement, '.p-dialog-header-close');\n\n case 'none':\n return null;\n\n //backward compatibility\n default:\n return findSingle(this.dialog.el.nativeElement, '.p-confirm-dialog-accept');\n }\n }\n\n createStyle() {\n if (!this.styleElement) {\n this.styleElement = this.document.createElement('style');\n this.styleElement.type = 'text/css';\n setAttribute(this.styleElement, 'nonce', this.config?.csp()?.nonce);\n this.document.head.appendChild(this.styleElement);\n let innerHTML = '';\n for (let breakpoint in this.breakpoints) {\n innerHTML += `\n @media screen and (max-width: ${breakpoint}) {\n .p-dialog[${this.id}] {\n width: ${this.breakpoints[breakpoint]} !important;\n }\n }\n `;\n }\n\n this.styleElement.innerHTML = innerHTML;\n setAttribute(this.styleElement, 'nonce', this.config?.csp()?.nonce);\n }\n }\n\n close() {\n if (this.confirmation?.rejectEvent) {\n this.confirmation.rejectEvent.emit(ConfirmEventType.CANCEL);\n }\n\n this.hide(ConfirmEventType.CANCEL);\n }\n\n hide(type?: ConfirmEventType) {\n this.onHide.emit(type);\n this.visible = false;\n // Unsubscribe from confirmation events when the dialogue is closed, because events are created when the dialogue is opened.\n this.unsubscribeConfirmationEvents();\n }\n\n onDialogHide() {\n this.confirmation = null;\n }\n\n /**\n * Every key the open confirmation wrote onto this dialog, with what it held before. A confirmation\n * is applied by copying its keys onto the one long-lived instance, so without putting them back a\n * key the next confirmation does not set showed the previous one's value: its header, its icon,\n * its button text, its danger style.\n */\n private applied: { key: string; before: unknown; value: unknown }[] = [];\n\n /**\n * Puts back what the previous confirmation overwrote, so the next one starts from the dialog's\n * own options: its defaults and whatever is bound on the element. A key that has changed since\n * the confirmation set it was set by something else (a binding on the element) and is left as is.\n */\n private restoreOwnOptions() {\n for (const { key, before, value } of this.applied) {\n if (this[key] === value) {\n this[key] = before;\n }\n }\n this.applied = [];\n }\n\n destroyStyle() {\n if (this.styleElement) {\n this.document.head.removeChild(this.styleElement);\n this.styleElement = null;\n }\n }\n\n onDestroy() {\n this.subscription.unsubscribe();\n // Unsubscribe from confirmation events if the dialogue is opened and this component is somehow destroyed.\n this.unsubscribeConfirmationEvents();\n\n if (this.translationSubscription) {\n this.translationSubscription.unsubscribe();\n }\n\n this.destroyStyle();\n }\n\n onVisibleChange(value: boolean) {\n if (!value) {\n this.close();\n } else {\n this.visible = value;\n }\n }\n\n onAccept() {\n if (this.confirmation && this.confirmation.acceptEvent) {\n this.confirmation.acceptEvent.emit();\n }\n this.hide(ConfirmEventType.ACCEPT);\n }\n\n onReject() {\n if (this.confirmation && this.confirmation.rejectEvent) {\n this.confirmation.rejectEvent.emit(ConfirmEventType.REJECT);\n }\n\n this.hide(ConfirmEventType.REJECT);\n }\n\n unsubscribeConfirmationEvents() {\n if (this.confirmation) {\n this.confirmation.acceptEvent?.unsubscribe();\n this.confirmation.rejectEvent?.unsubscribe();\n }\n }\n\n get acceptButtonLabel(): string {\n return this.option('acceptLabel') || this.getAcceptButtonProps()?.label || this.config.getTranslation(TranslationKeys.ACCEPT);\n }\n\n get rejectButtonLabel(): string {\n return this.option('rejectLabel') || this.getRejectButtonProps()?.label || this.config.getTranslation(TranslationKeys.REJECT);\n }\n\n getAcceptButtonProps() {\n return this.option('acceptButtonProps');\n }\n\n getRejectButtonProps() {\n return this.option('rejectButtonProps');\n }\n}\n\n@NgModule({\n imports: [ConfirmDialog, SharedModule],\n exports: [ConfirmDialog, SharedModule]\n})\nexport class ConfirmDialogModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE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A,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;MA8P5G,mBAAmB,CAAA;uGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAvfnB,aAAa,EAofG,YAAY,CAAA,EAAA,OAAA,EAAA,CApf5B,aAAa,EAqfG,YAAY,CAAA,EAAA,CAAA;AAE5B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,EAAA,OAAA,EAAA,CAHlB,aAAa,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAE5B,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;AACtC,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,YAAY;AACxC,iBAAA;;;AC5oBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"anguless-angulux-confirmdialog.mjs","sources":["../../src/confirmdialog/style/confirmdialogstyle.ts","../../src/confirmdialog/confirmdialog.ts","../../src/confirmdialog/anguless-angulux-confirmdialog.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@anguless/angulux-styles/confirmdialog';\nimport { BaseStyle } from '@anguless/angulux/base';\n\nconst classes = {\n root: 'p-confirmdialog',\n icon: 'p-confirmdialog-icon',\n message: 'p-confirmdialog-message',\n pcRejectButton: 'p-confirmdialog-reject-button',\n pcAcceptButton: 'p-confirmdialog-accept-button'\n};\n\n@Injectable()\nexport class ConfirmDialogStyle extends BaseStyle {\n name = 'confirmdialog';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * ConfirmDialog uses a Dialog UI with confirmDialog method or <ConfirmDialog> tag.\n *\n * @module confirmdialogstyle\n *\n */\nexport enum ConfirmDialogClasses {\n /**\n * Class name of the root element\n */\n root = 'p-confirmdialog',\n /**\n * Class name of the icon element\n */\n icon = 'p-confirmdialog-icon',\n /**\n * Class name of the message element\n */\n message = 'p-confirmdialog-message',\n /**\n * Class name of the reject button element\n */\n pcRejectButton = 'p-confirmdialog-reject-button',\n /**\n * Class name of the accept button element\n */\n pcAcceptButton = 'p-confirmdialog-accept-button'\n}\n\nexport interface ConfirmDialogStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport {\n AfterContentInit,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n ElementRef,\n EventEmitter,\n inject,\n InjectionToken,\n input,\n Input,\n NgModule,\n NgZone,\n numberAttribute,\n OnDestroy,\n OnInit,\n Output,\n TemplateRef,\n ViewEncapsulation\n} from '@angular/core';\nimport { findSingle, setAttribute, uuid } from '@anguless/angulux-utils';\nimport { Confirmation, ConfirmationService, ConfirmEventType, SharedModule, TranslationKeys } from '@anguless/angulux/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@anguless/angulux/basecomponent';\nimport { Bind } from '@anguless/angulux/bind';\nimport { Button } from '@anguless/angulux/button';\nimport { Dialog } from '@anguless/angulux/dialog';\nimport { Nullable } from '@anguless/angulux/ts-helpers';\nimport { ConfirmDialogHeadlessTemplateContext, ConfirmDialogMessageTemplateContext, ConfirmDialogPassThrough } from '@anguless/angulux/types/confirmdialog';\nimport { Subscription } from 'rxjs';\nimport { ConfirmDialogStyle } from './style/confirmdialogstyle';\n\nconst CONFIRMDIALOG_INSTANCE = new InjectionToken<ConfirmDialog>('CONFIRMDIALOG_INSTANCE');\n\n/**\n * ConfirmDialog uses a Dialog UI that is integrated with the Confirmation API.\n * @group Components\n */\n@Component({\n selector: 'agl-confirmDialog, agl-confirmdialog, agl-confirm-dialog',\n standalone: true,\n imports: [CommonModule, Button, Dialog, SharedModule, Bind],\n template: `\n <agl-dialog\n [pt]=\"pt\"\n #dialog\n [visible]=\"visible\"\n (visibleChange)=\"onVisibleChange($event)\"\n [role]=\"'alertdialog'\"\n [closable]=\"option('closable')\"\n [closeAriaLabel]=\"option('closeAriaLabel') || option('closeButtonProps')?.ariaLabel\"\n [styleClass]=\"cn(cx('root'), styleClass)\"\n [modal]=\"option('modal')\"\n [header]=\"option('header')\"\n [closeOnEscape]=\"option('closeOnEscape')\"\n [blockScroll]=\"option('blockScroll')\"\n [appendTo]=\"$appendTo()\"\n [position]=\"position\"\n [style]=\"style\"\n [breakpoints]=\"breakpoints\"\n [dismissableMask]=\"dismissableMask\"\n [draggable]=\"draggable\"\n [baseZIndex]=\"baseZIndex\"\n [autoZIndex]=\"autoZIndex\"\n [maskStyleClass]=\"cn(cx('mask'), maskStyleClass)\"\n [unstyled]=\"unstyled()\"\n (onHide)=\"onDialogHide()\"\n >\n @if (headlessTemplate()) {\n <ng-template #headless>\n <ng-container\n *ngTemplateOutlet=\"\n headlessTemplate();\n context: {\n $implicit: confirmation,\n onAccept: onAccept.bind(this),\n onReject: onReject.bind(this)\n }\n \"\n ></ng-container>\n </ng-template>\n } @else {\n @if (headerTemplate()) {\n <ng-template #header>\n <ng-container *ngTemplateOutlet=\"headerTemplate()\"></ng-container>\n </ng-template>\n }\n\n <ng-template #content>\n @if (iconTemplate()) {\n <ng-template *ngTemplateOutlet=\"iconTemplate()\"></ng-template>\n } @else if (!iconTemplate() && !messageTemplate()) {\n <i [ngClass]=\"cx('icon')\" [class]=\"option('icon')\" [aglBind]=\"ptm('icon')\" *ngIf=\"option('icon')\"></i>\n }\n @if (messageTemplate()) {\n <ng-template *ngTemplateOutlet=\"messageTemplate(); context: { $implicit: confirmation }\"></ng-template>\n } @else {\n <span [class]=\"cx('message')\" [aglBind]=\"ptm('message')\" [innerHTML]=\"option('message')\"> </span>\n }\n </ng-template>\n }\n <ng-template #footer>\n @if (footerTemplate()) {\n <ng-container *ngTemplateOutlet=\"footerTemplate()\"></ng-container>\n }\n @if (!footerTemplate()) {\n <agl-button\n [pt]=\"ptm('pcRejectButton')\"\n *ngIf=\"option('rejectVisible')\"\n [label]=\"rejectButtonLabel\"\n (onClick)=\"onReject()\"\n [styleClass]=\"getButtonStyleClass('pcRejectButton', 'rejectButtonStyleClass')\"\n [ariaLabel]=\"option('rejectButtonProps', 'ariaLabel')\"\n [buttonProps]=\"getRejectButtonProps()\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (rejectIcon && !rejectIconTemplate()) {\n <i *ngIf=\"option('rejectIcon')\" [class]=\"option('rejectIcon')\" [aglBind]=\"ptm('pcRejectButton')['icon']\"></i>\n }\n <ng-template *ngTemplateOutlet=\"rejectIconTemplate()\"></ng-template>\n </ng-template>\n </agl-button>\n <agl-button\n [pt]=\"ptm('pcAcceptButton')\"\n [label]=\"acceptButtonLabel\"\n (onClick)=\"onAccept()\"\n [styleClass]=\"getButtonStyleClass('pcAcceptButton', 'acceptButtonStyleClass')\"\n *ngIf=\"option('acceptVisible')\"\n [ariaLabel]=\"option('acceptButtonProps', 'ariaLabel')\"\n [buttonProps]=\"getAcceptButtonProps()\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (acceptIcon && !acceptIconTemplate()) {\n <i *ngIf=\"option('acceptIcon')\" [class]=\"option('acceptIcon')\" [aglBind]=\"ptm('pcAcceptButton')['icon']\"></i>\n }\n <ng-template *ngTemplateOutlet=\"acceptIconTemplate()\"></ng-template>\n </ng-template>\n </agl-button>\n }\n </ng-template>\n </agl-dialog>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [ConfirmDialogStyle, { provide: CONFIRMDIALOG_INSTANCE, useExisting: ConfirmDialog }, { provide: PARENT_INSTANCE, useExisting: ConfirmDialog }],\n hostDirectives: [Bind]\n})\nexport class ConfirmDialog extends BaseComponent<ConfirmDialogPassThrough> implements OnInit, AfterContentInit, OnDestroy {\n componentName = 'ConfirmDialog';\n\n $pcConfirmDialog: ConfirmDialog | undefined = inject(CONFIRMDIALOG_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n onAfterViewChecked(): void {\n this.bindDirectiveInstance.setAttrs(this.ptm('host'));\n }\n\n /**\n * Title text of the dialog.\n * @group Props\n */\n @Input() header: string | undefined;\n /**\n * Icon to display next to message.\n * @group Props\n */\n @Input() icon: string | undefined;\n /**\n * Message of the confirmation.\n * @group Props\n */\n @Input() message: string | undefined;\n /**\n * Inline style of the element.\n * @group Props\n */\n @Input() get style(): { [klass: string]: any } | null | undefined {\n return this._style;\n }\n set style(value: { [klass: string]: any } | null | undefined) {\n this._style = value;\n this.cd.markForCheck();\n }\n /**\n * Class of the element.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Specify the CSS class(es) for styling the mask element\n * @group Props\n */\n @Input() maskStyleClass: string | undefined;\n /**\n * Icon of the accept button.\n * @group Props\n */\n @Input() acceptIcon: string | undefined;\n /**\n * Label of the accept button.\n * @group Props\n */\n @Input() acceptLabel: string | undefined;\n /**\n * Defines a string that labels the close button for accessibility.\n * @group Props\n */\n @Input() closeAriaLabel: string | undefined;\n /**\n * Defines a string that labels the accept button for accessibility.\n * @group Props\n */\n @Input() acceptAriaLabel: string | undefined;\n /**\n * Visibility of the accept button.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) acceptVisible: boolean = true;\n /**\n * Icon of the reject button.\n * @group Props\n */\n @Input() rejectIcon: string | undefined;\n /**\n * Label of the reject button.\n * @group Props\n */\n @Input() rejectLabel: string | undefined;\n /**\n * Defines a string that labels the reject button for accessibility.\n * @group Props\n */\n @Input() rejectAriaLabel: string | undefined;\n /**\n * Visibility of the reject button.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) rejectVisible: boolean = true;\n /**\n * Style class of the accept button.\n * @group Props\n */\n @Input() acceptButtonStyleClass: string | undefined;\n /**\n * Style class of the reject button.\n * @group Props\n */\n @Input() rejectButtonStyleClass: string | undefined;\n /**\n * Specifies if pressing escape key should hide the dialog.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) closeOnEscape: boolean = true;\n /**\n * Specifies if clicking the modal background should hide the dialog.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) dismissableMask: boolean | undefined;\n /**\n * Determines whether scrolling behavior should be blocked within the component.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) blockScroll: boolean = true;\n /**\n * When enabled dialog is displayed in RTL direction.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) rtl: boolean = false;\n /**\n * Adds a close icon to the header to hide the dialog.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) closable: boolean = true;\n /**\n * Target element to attach the overlay, valid values are \"body\" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]=\"mydiv\" for a div element having #mydiv as variable name).\n * @defaultValue 'body'\n * @group Props\n */\n appendTo = input<HTMLElement | ElementRef | TemplateRef<any> | 'self' | 'body' | null | undefined | any>('body');\n /**\n * Optional key to match the key of confirm object, necessary to use when component tree has multiple confirm dialogs.\n * @group Props\n */\n @Input() key: string | undefined;\n /**\n * Whether to automatically manage layering.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) autoZIndex: boolean = true;\n /**\n * Base zIndex value to use in layering.\n * @group Props\n */\n @Input({ transform: numberAttribute }) baseZIndex: number = 0;\n /**\n * Transition options of the animation.\n * @group Props\n */\n @Input() transitionOptions: string = '150ms cubic-bezier(0, 0, 0.2, 1)';\n /**\n * When enabled, can only focus on elements inside the confirm dialog.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) focusTrap: boolean = true;\n /**\n * Element to receive the focus when the dialog gets visible.\n * @group Props\n */\n @Input() defaultFocus: 'accept' | 'reject' | 'close' | 'none' = 'accept';\n /**\n * Object literal to define widths per screen size.\n * @group Props\n */\n @Input() breakpoints: any;\n /**\n * Defines if background should be blocked when dialog is displayed.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) modal: boolean = true;\n /**\n * Current visible state as a boolean.\n * @group Props\n */\n @Input() get visible(): any {\n return this._visible;\n }\n\n set visible(value: any) {\n this._visible = value;\n\n if (this._visible && !this.maskVisible) {\n this.maskVisible = true;\n }\n\n this.cd.markForCheck();\n }\n /**\n * Allows getting the position of the component.\n * @group Props\n */\n @Input() position: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'topleft' | 'topright' | 'bottomleft' | 'bottomright' = 'center';\n /**\n * Enables dragging to change the position using header.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) draggable: boolean = true;\n /**\n * Callback to invoke when dialog is hidden.\n * @param {ConfirmEventType} enum - Custom confirm event.\n * @group Emits\n */\n @Output() onHide: EventEmitter<ConfirmEventType> = new EventEmitter<ConfirmEventType>();\n\n _componentStyle = inject(ConfirmDialogStyle);\n\n /**\n * Custom header template.\n * @group Templates\n */\n headerTemplate = contentChild<TemplateRef<void>>('header', { descendants: false });\n\n /**\n * Custom footer template.\n * @group Templates\n */\n footerTemplate = contentChild<TemplateRef<void>>('footer', { descendants: false });\n\n /**\n * Custom reject icon template.\n * @group Templates\n */\n rejectIconTemplate = contentChild<TemplateRef<void>>('rejecticon', { descendants: false });\n\n /**\n * Custom accept icon template.\n * @group Templates\n */\n acceptIconTemplate = contentChild<TemplateRef<void>>('accepticon', { descendants: false });\n\n /**\n * Custom message template.\n * @group Templates\n */\n messageTemplate = contentChild<TemplateRef<ConfirmDialogMessageTemplateContext>>('message', { descendants: false });\n\n /**\n * Custom icon template.\n * @group Templates\n */\n iconTemplate = contentChild<TemplateRef<void>>('icon', { descendants: false });\n\n /**\n * Custom headless template.\n * @group Templates\n */\n headlessTemplate = contentChild<TemplateRef<ConfirmDialogHeadlessTemplateContext>>('headless', { descendants: false });\n\n $appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo());\n\n confirmation: Nullable<Confirmation>;\n\n _visible: boolean | undefined;\n\n _style: { [klass: string]: any } | null | undefined;\n\n maskVisible: boolean | undefined;\n\n dialog: Nullable<Dialog>;\n\n wrapper: Nullable<HTMLElement>;\n\n contentContainer: Nullable<HTMLDivElement>;\n\n subscription: Subscription;\n\n preWidth: number | undefined;\n\n styleElement: any;\n\n id = uuid('pn_id_');\n\n ariaLabelledBy: string | null = this.getAriaLabelledBy();\n\n translationSubscription: Subscription | undefined;\n\n constructor(\n private confirmationService: ConfirmationService,\n public zone: NgZone\n ) {\n super();\n this.subscription = this.confirmationService.requireConfirmation$.subscribe((confirmation) => {\n if (!confirmation) {\n this.hide();\n return;\n }\n if (confirmation.key === this.key) {\n this.restoreOwnOptions();\n this.confirmation = confirmation;\n\n const keys = Object.keys(confirmation);\n\n this.applied = keys.map((key) => ({ key, before: this[key], value: confirmation[key] }));\n keys.forEach((key) => {\n this[key] = confirmation[key];\n });\n\n if (this.confirmation.accept) {\n this.confirmation.acceptEvent = new EventEmitter();\n this.confirmation.acceptEvent.subscribe(this.confirmation.accept);\n }\n\n if (this.confirmation.reject) {\n this.confirmation.rejectEvent = new EventEmitter();\n this.confirmation.rejectEvent.subscribe(this.confirmation.reject);\n }\n\n this.visible = true;\n }\n });\n }\n\n onInit() {\n // `breakpoints` is passed to the inner dialog, which writes the media rule for the attribute it\n // sets on its own container. The rule this component wrote named its OWN id, which no element\n // carries, so it never applied.\n this.translationSubscription = this.config.translationObserver.subscribe(() => {\n if (this.visible) {\n this.cd.markForCheck();\n }\n });\n }\n\n getAriaLabelledBy() {\n return this.header !== null ? uuid('pn_id_') + '_header' : null;\n }\n\n option(name: string, k?: string) {\n const source: { [key: string]: any } = this;\n if (source.hasOwnProperty(name)) {\n const value = k ? source[k] : source[name];\n return typeof value === 'function' ? value() : value;\n }\n\n return undefined;\n }\n\n getButtonStyleClass(cx: string, opt: string): string {\n const cxClass = this.cx(cx);\n const optionClass = this.option(opt);\n\n return [cxClass, optionClass].filter(Boolean).join(' ');\n }\n\n getElementToFocus() {\n if (!this.dialog?.el?.nativeElement) return;\n\n switch (this.option('defaultFocus')) {\n case 'accept':\n return findSingle(this.dialog.el.nativeElement, '.p-confirm-dialog-accept');\n\n case 'reject':\n return findSingle(this.dialog.el.nativeElement, '.p-confirm-dialog-reject');\n\n case 'close':\n return findSingle(this.dialog.el.nativeElement, '.p-dialog-header-close');\n\n case 'none':\n return null;\n\n //backward compatibility\n default:\n return findSingle(this.dialog.el.nativeElement, '.p-confirm-dialog-accept');\n }\n }\n\n /**\n * @deprecated No longer called: `breakpoints` is applied by the inner dialog. Its rule named this\n * component's own id, which no element carries, so it never matched. Kept for API compatibility.\n */\n createStyle() {\n if (!this.styleElement) {\n this.styleElement = this.document.createElement('style');\n this.styleElement.type = 'text/css';\n setAttribute(this.styleElement, 'nonce', this.config?.csp()?.nonce);\n this.document.head.appendChild(this.styleElement);\n let innerHTML = '';\n for (let breakpoint in this.breakpoints) {\n innerHTML += `\n @media screen and (max-width: ${breakpoint}) {\n .p-dialog[${this.id}] {\n width: ${this.breakpoints[breakpoint]} !important;\n }\n }\n `;\n }\n\n this.styleElement.innerHTML = innerHTML;\n setAttribute(this.styleElement, 'nonce', this.config?.csp()?.nonce);\n }\n }\n\n close() {\n if (this.confirmation?.rejectEvent) {\n this.confirmation.rejectEvent.emit(ConfirmEventType.CANCEL);\n }\n\n this.hide(ConfirmEventType.CANCEL);\n }\n\n hide(type?: ConfirmEventType) {\n this.onHide.emit(type);\n this.visible = false;\n // Unsubscribe from confirmation events when the dialogue is closed, because events are created when the dialogue is opened.\n this.unsubscribeConfirmationEvents();\n }\n\n onDialogHide() {\n this.confirmation = null;\n }\n\n /**\n * Every key the open confirmation wrote onto this dialog, with what it held before. A confirmation\n * is applied by copying its keys onto the one long-lived instance, so without putting them back a\n * key the next confirmation does not set showed the previous one's value: its header, its icon,\n * its button text, its danger style.\n */\n private applied: { key: string; before: unknown; value: unknown }[] = [];\n\n /**\n * Puts back what the previous confirmation overwrote, so the next one starts from the dialog's\n * own options: its defaults and whatever is bound on the element. A key that has changed since\n * the confirmation set it was set by something else (a binding on the element) and is left as is.\n */\n private restoreOwnOptions() {\n for (const { key, before, value } of this.applied) {\n if (this[key] === value) {\n this[key] = before;\n }\n }\n this.applied = [];\n }\n\n destroyStyle() {\n if (this.styleElement) {\n this.document.head.removeChild(this.styleElement);\n this.styleElement = null;\n }\n }\n\n onDestroy() {\n this.subscription.unsubscribe();\n // Unsubscribe from confirmation events if the dialogue is opened and this component is somehow destroyed.\n this.unsubscribeConfirmationEvents();\n\n if (this.translationSubscription) {\n this.translationSubscription.unsubscribe();\n }\n\n this.destroyStyle();\n }\n\n onVisibleChange(value: boolean) {\n if (!value) {\n this.close();\n } else {\n this.visible = value;\n }\n }\n\n onAccept() {\n if (this.confirmation && this.confirmation.acceptEvent) {\n this.confirmation.acceptEvent.emit();\n }\n this.hide(ConfirmEventType.ACCEPT);\n }\n\n onReject() {\n if (this.confirmation && this.confirmation.rejectEvent) {\n this.confirmation.rejectEvent.emit(ConfirmEventType.REJECT);\n }\n\n this.hide(ConfirmEventType.REJECT);\n }\n\n unsubscribeConfirmationEvents() {\n if (this.confirmation) {\n this.confirmation.acceptEvent?.unsubscribe();\n this.confirmation.rejectEvent?.unsubscribe();\n }\n }\n\n get acceptButtonLabel(): string {\n return this.option('acceptLabel') || this.getAcceptButtonProps()?.label || this.config.getTranslation(TranslationKeys.ACCEPT);\n }\n\n get rejectButtonLabel(): string {\n return this.option('rejectLabel') || this.getRejectButtonProps()?.label || this.config.getTranslation(TranslationKeys.REJECT);\n }\n\n getAcceptButtonProps() {\n return this.option('acceptButtonProps');\n }\n\n getRejectButtonProps() {\n return this.option('rejectButtonProps');\n }\n}\n\n@NgModule({\n imports: [ConfirmDialog, SharedModule],\n exports: [ConfirmDialog, SharedModule]\n})\nexport class ConfirmDialogModule {}\n","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AMM,UAAU,EAAA,EAAA,GAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;MAiQ5G,mBAAmB,CAAA;uGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YA1fnB,aAAa,EAufG,YAAY,CAAA,EAAA,OAAA,EAAA,CAvf5B,aAAa,EAwfG,YAAY,CAAA,EAAA,CAAA;AAE5B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,EAAA,OAAA,EAAA,CAHlB,aAAa,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAE5B,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;AACtC,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,YAAY;AACxC,iBAAA;;;AChpBD;;AAEG;;;;"}
|
|
@@ -9,7 +9,7 @@ import { BaseComponent, PARENT_INSTANCE } from '@anguless/angulux/basecomponent'
|
|
|
9
9
|
import * as i1 from '@anguless/angulux/bind';
|
|
10
10
|
import { Bind } from '@anguless/angulux/bind';
|
|
11
11
|
import { Button } from '@anguless/angulux/button';
|
|
12
|
-
import {
|
|
12
|
+
import { ɵgetFocusableElements as _getFocusableElements, blockBodyScroll, unblockBodyScroll } from '@anguless/angulux/dom';
|
|
13
13
|
import { FocusTrap } from '@anguless/angulux/focustrap';
|
|
14
14
|
import { TimesIcon, WindowMaximizeIcon, WindowMinimizeIcon } from '@anguless/angulux/icons';
|
|
15
15
|
import * as i3 from '@anguless/angulux/motion';
|
|
@@ -589,7 +589,7 @@ class Dialog extends BaseComponent {
|
|
|
589
589
|
_focus(focusParentElement) {
|
|
590
590
|
if (focusParentElement) {
|
|
591
591
|
const timeoutDuration = this.parseDurationToMilliseconds(this.transitionOptions);
|
|
592
|
-
let _focusableElements =
|
|
592
|
+
let _focusableElements = _getFocusableElements(focusParentElement);
|
|
593
593
|
if (_focusableElements && _focusableElements.length > 0) {
|
|
594
594
|
this.zone.runOutsideAngular(() => {
|
|
595
595
|
setTimeout(() => _focusableElements[0].focus(), timeoutDuration || 5);
|