@anguless/angulux 22.6.0 → 22.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -330,8 +330,10 @@ class ConfirmDialog extends BaseComponent {
330
330
  return;
331
331
  }
332
332
  if (confirmation.key === this.key) {
333
+ this.restoreOwnOptions();
333
334
  this.confirmation = confirmation;
334
335
  const keys = Object.keys(confirmation);
336
+ this.applied = keys.map((key) => ({ key, before: this[key], value: confirmation[key] }));
335
337
  keys.forEach((key) => {
336
338
  this[key] = confirmation[key];
337
339
  });
@@ -425,6 +427,26 @@ class ConfirmDialog extends BaseComponent {
425
427
  onDialogHide() {
426
428
  this.confirmation = null;
427
429
  }
430
+ /**
431
+ * Every key the open confirmation wrote onto this dialog, with what it held before. A confirmation
432
+ * is applied by copying its keys onto the one long-lived instance, so without putting them back a
433
+ * key the next confirmation does not set showed the previous one's value: its header, its icon,
434
+ * its button text, its danger style.
435
+ */
436
+ applied = [];
437
+ /**
438
+ * Puts back what the previous confirmation overwrote, so the next one starts from the dialog's
439
+ * own options: its defaults and whatever is bound on the element. A key that has changed since
440
+ * the confirmation set it was set by something else (a binding on the element) and is left as is.
441
+ */
442
+ restoreOwnOptions() {
443
+ for (const { key, before, value } of this.applied) {
444
+ if (this[key] === value) {
445
+ this[key] = before;
446
+ }
447
+ }
448
+ this.applied = [];
449
+ }
428
450
  destroyStyle() {
429
451
  if (this.styleElement) {
430
452
  this.document.head.removeChild(this.styleElement);
@@ -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 [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.confirmation = confirmation;\n\n const keys = Object.keys(confirmation);\n\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 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,iBAAiB;AACvB,IAAA,IAAI,EAAE,sBAAsB;AAC5B,IAAA,OAAO,EAAE,yBAAyB;AAClC,IAAA,cAAc,EAAE,+BAA+B;AAC/C,IAAA,cAAc,EAAE;CACnB;AAGK,MAAO,kBAAmB,SAAQ,SAAS,CAAA;IAC7C,IAAI,GAAG,eAAe;IAEtB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,kBAAkB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAlB,kBAAkB,EAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B;;AASD;;;;;;AAMG;IACS;AAAZ,CAAA,UAAY,oBAAoB,EAAA;AAC5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CAAA,EAAA,CAAA,EAAA,gBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAMM,UAAU,EAAA,EAAA,GAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;MAsO5G,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,YA/dnB,aAAa,EA4dG,YAAY,CAAA,EAAA,OAAA,EAAA,CA5d5B,aAAa,EA6dG,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;;;ACnnBD;;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 [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":";;;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U,EAAA,EAAA,GAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAA,QAAA,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;;;AC3oBD;;AAEG;;;;"}
@@ -838,6 +838,12 @@ class DatePicker extends BaseInput {
838
838
  yearOptions;
839
839
  focus;
840
840
  isKeydown;
841
+ /**
842
+ * The date a time typed into a timeOnly picker is built on (#168). Kept apart from the model
843
+ * because typing empties the model on the way: "1" is not a time, so the first keystroke of
844
+ * "11:30" writes null, and by the last one the bound value's date would be gone.
845
+ */
846
+ timeOnlyDate = null;
841
847
  _minDate;
842
848
  _maxDate;
843
849
  _dateFormat;
@@ -2281,10 +2287,7 @@ class DatePicker extends BaseInput {
2281
2287
  return hours;
2282
2288
  }
2283
2289
  constrainTime(hour, minute, second, pm) {
2284
- let returnTimeTriple = [hour, minute, second];
2285
- let minHoursExceeds12 = false;
2286
2290
  let value = this.value;
2287
- const convertedHour = this.convertTo24Hour(hour, pm);
2288
2291
  const isRange = this.isRangeSelection(), isMultiple = this.isMultipleSelection(), isMultiValue = isRange || isMultiple;
2289
2292
  if (isMultiValue) {
2290
2293
  if (!this.value) {
@@ -2298,82 +2301,50 @@ class DatePicker extends BaseInput {
2298
2301
  }
2299
2302
  }
2300
2303
  const valueDateString = value && isDate(value) ? value.toDateString() : null;
2301
- let isMinDate = this.minDate && valueDateString && this.minDate.toDateString() === valueDateString;
2302
- let isMaxDate = this.maxDate && valueDateString && this.maxDate.toDateString() === valueDateString;
2304
+ const isMinDate = this.minDate && valueDateString && this.minDate.toDateString() === valueDateString;
2305
+ const isMaxDate = this.maxDate && valueDateString && this.maxDate.toDateString() === valueDateString;
2306
+ // The clamp runs on a 24-hour clock whatever the picker displays, and only the result is
2307
+ // turned back into what a 12-hour picker shows (#168).
2308
+ //
2309
+ // It used to run on the displayed hour. Every bound is read with getHours(), which is
2310
+ // 24-hour, so on a 12-hour clock the branches wrote 17 into a field that holds 1 to 12, and
2311
+ // updateTime() then added the PM offset on top: 4 PM stepped twice toward a 5 PM maximum
2312
+ // became 05:00 the NEXT DAY, and 1:45 PM stepped once toward a 1:30 PM minimum became 01:30
2313
+ // the next day. AM/PM was never set from the clamped time either, so 11 AM stepped toward
2314
+ // an 11:30 AM maximum came out as 11:30 PM. Each was written into the bound model with
2315
+ // nothing reported. Measured in e2e/upstream-repro-22-1.spec.ts.
2316
+ //
2317
+ // The rule itself is the one the 24-hour picker always applied, and still applies: a time
2318
+ // before the minimum becomes the minimum, a time after the maximum becomes the maximum,
2319
+ // compared hour, then minute, then second. (The switch this replaces said the same thing
2320
+ // through fall-through; two of its branches assigned a hard-coded 11 until 2026-09-05.)
2321
+ let time = [this.convertTo24Hour(hour, pm), minute, second];
2322
+ const compare = (a, b) => a[0] - b[0] || a[1] - b[1] || a[2] - b[2];
2303
2323
  if (isMinDate) {
2304
- minHoursExceeds12 = this.minDate.getHours() >= 12;
2305
- }
2306
- switch (true // intentional fall through
2307
- ) {
2308
- // TWO BRANCHES REMOVED HERE, both of which assigned a hard-coded 11.
2309
- //
2310
- // They read:
2311
- //
2312
- // case isMinDate && minHoursExceeds12 && minDate.getHours() === 12
2313
- // && minDate.getHours() > convertedHour:
2314
- // returnTimeTriple[0] = 11;
2315
- // case isMinDate && !minHoursExceeds12 && minDate.getHours() - 1 === convertedHour
2316
- // && minDate.getHours() > convertedHour:
2317
- // returnTimeTriple[0] = 11;
2318
- // this.pm = true;
2319
- //
2320
- // 11 is neither the minimum nor the hour the user asked for. With minDate and the
2321
- // value both at 09:00 and one step down, the second branch matched (9 - 1 === 8 and
2322
- // 9 > 8) and the picker rendered 11 — then updateTime() wrote 11:00 into the bound
2323
- // model. The application asked for a minimum of 09:00 and received a later time it
2324
- // never chose, with nothing reported. Measured in e2e/upstream-repro.spec.ts.
2325
- //
2326
- // Deleting them is safe because each condition is a STRICT SUBSET of a general
2327
- // clamp further down, and those clamps already do the right thing:
2328
- // • the first is subsumed by the minHoursExceeds12 branch below, which converts
2329
- // properly through setCurrentHourPM() instead of guessing;
2330
- // • the second is subsumed by the plain "minDate.getHours() > convertedHour"
2331
- // branch, which assigns the minimum itself.
2332
- // The minute and second lines they fell through into are repeated verbatim in both
2333
- // of those groups, so minute and second clamping is unchanged.
2334
- //
2335
- // this.pm = true was wrong on its own terms as well: that branch only ran when the
2336
- // minimum was BEFORE noon.
2337
- case isMinDate && minHoursExceeds12 && this.minDate.getHours() > convertedHour && convertedHour !== 12:
2338
- this.setCurrentHourPM(this.minDate.getHours());
2339
- returnTimeTriple[0] = this.currentHour || 0;
2340
- case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() > minute:
2341
- returnTimeTriple[1] = this.minDate.getMinutes();
2342
- case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() === minute && this.minDate.getSeconds() > second:
2343
- returnTimeTriple[2] = this.minDate.getSeconds();
2344
- break;
2345
- case isMinDate && this.minDate.getHours() > convertedHour:
2346
- returnTimeTriple[0] = this.minDate.getHours();
2347
- case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() > minute:
2348
- returnTimeTriple[1] = this.minDate.getMinutes();
2349
- case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() === minute && this.minDate.getSeconds() > second:
2350
- returnTimeTriple[2] = this.minDate.getSeconds();
2351
- break;
2352
- case isMaxDate && this.maxDate.getHours() < convertedHour:
2353
- returnTimeTriple[0] = this.maxDate.getHours();
2354
- case isMaxDate && this.maxDate.getHours() === convertedHour && this.maxDate.getMinutes() < minute:
2355
- returnTimeTriple[1] = this.maxDate.getMinutes();
2356
- case isMaxDate && this.maxDate.getHours() === convertedHour && this.maxDate.getMinutes() === minute && this.maxDate.getSeconds() < second:
2357
- returnTimeTriple[2] = this.maxDate.getSeconds();
2358
- break;
2324
+ const min = [this.minDate.getHours(), this.minDate.getMinutes(), this.minDate.getSeconds()];
2325
+ if (compare(time, min) < 0)
2326
+ time = min;
2327
+ }
2328
+ if (isMaxDate) {
2329
+ const max = [this.maxDate.getHours(), this.maxDate.getMinutes(), this.maxDate.getSeconds()];
2330
+ if (compare(time, max) > 0)
2331
+ time = max;
2359
2332
  }
2360
- return returnTimeTriple;
2333
+ if (this.hourFormat == '12') {
2334
+ this.pm = time[0] > 11;
2335
+ return [time[0] % 12 === 0 ? 12 : time[0] % 12, time[1], time[2]];
2336
+ }
2337
+ return time;
2361
2338
  }
2362
2339
  incrementHour(event) {
2363
- const prevHour = this.currentHour ?? 0;
2364
- let newHour = (this.currentHour ?? 0) + this.stepHour;
2365
- let newPM = this.pm;
2366
- if (this.hourFormat == '24')
2367
- newHour = newHour >= 24 ? newHour - 24 : newHour;
2368
- else if (this.hourFormat == '12') {
2369
- // Before the AM/PM break, now after
2370
- if (prevHour < 12 && newHour > 11) {
2371
- newPM = !this.pm;
2372
- }
2373
- newHour = newHour >= 13 ? newHour - 12 : newHour;
2374
- }
2375
- this.toggleAMPMIfNotMinDate(newPM);
2376
- [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(newHour, this.currentMinute, this.currentSecond, newPM);
2340
+ // The step runs on a 24-hour clock, and constrainTime() clamps the result and returns what
2341
+ // the picker displays (#168). On a 12-hour clock it used to run on the displayed hour and
2342
+ // flip AM/PM only when it passed exactly 12, so a two-hour step back from 1 PM landed on
2343
+ // 11 PM. decrementHour() is the same with the step negated.
2344
+ const twelve = this.hourFormat == '12';
2345
+ const current = twelve ? this.convertTo24Hour(this.currentHour ?? 0, !!this.pm) : (this.currentHour ?? 0);
2346
+ const next = (((current + this.stepHour) % 24) + 24) % 24;
2347
+ [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(twelve ? next % 12 || 12 : next, this.currentMinute, this.currentSecond, next > 11);
2377
2348
  event.preventDefault();
2378
2349
  }
2379
2350
  toggleAMPMIfNotMinDate(newPM) {
@@ -2441,19 +2412,10 @@ class DatePicker extends BaseInput {
2441
2412
  }
2442
2413
  }
2443
2414
  decrementHour(event) {
2444
- let newHour = (this.currentHour ?? 0) - this.stepHour;
2445
- let newPM = this.pm;
2446
- if (this.hourFormat == '24')
2447
- newHour = newHour < 0 ? 24 + newHour : newHour;
2448
- else if (this.hourFormat == '12') {
2449
- // If we were at noon/midnight, then switch
2450
- if (this.currentHour === 12) {
2451
- newPM = !this.pm;
2452
- }
2453
- newHour = newHour <= 0 ? 12 + newHour : newHour;
2454
- }
2455
- this.toggleAMPMIfNotMinDate(newPM);
2456
- [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(newHour, this.currentMinute, this.currentSecond, newPM);
2415
+ const twelve = this.hourFormat == '12';
2416
+ const current = twelve ? this.convertTo24Hour(this.currentHour ?? 0, !!this.pm) : (this.currentHour ?? 0);
2417
+ const next = (((current - this.stepHour) % 24) + 24) % 24;
2418
+ [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(twelve ? next % 12 || 12 : next, this.currentMinute, this.currentSecond, next > 11);
2457
2419
  event.preventDefault();
2458
2420
  }
2459
2421
  incrementMinute(event) {
@@ -2526,6 +2488,8 @@ class DatePicker extends BaseInput {
2526
2488
  return;
2527
2489
  }
2528
2490
  this.isKeydown = false;
2491
+ if (isDate(this.value))
2492
+ this.timeOnlyDate = this.value;
2529
2493
  let val = event.target.value;
2530
2494
  try {
2531
2495
  let value = this.parseValueFromString(val);
@@ -2582,7 +2546,14 @@ class DatePicker extends BaseInput {
2582
2546
  let date;
2583
2547
  let parts = text.split(' ');
2584
2548
  if (this.timeOnly) {
2585
- date = new Date();
2549
+ // A time typed into a timeOnly picker edits the time of the bound value; the date is
2550
+ // not on screen and is not the user's to lose (#168). It used to be built on new
2551
+ // Date(), so typing 11:30 over 2020-01-15 10:00 wrote TODAY at 11:30, while the hour
2552
+ // buttons on the same picker kept the date (updateTime() copies the value). The base
2553
+ // is the value, or the last date it held if typing has emptied it; with neither, or
2554
+ // with more than one value, today is still the base.
2555
+ const base = this.isSingleSelection() ? (isDate(this.value) ? this.value : this.timeOnlyDate) : null;
2556
+ date = base ? new Date(base.getTime()) : new Date();
2586
2557
  this.populateTime(date, parts[0], parts[1]);
2587
2558
  }
2588
2559
  else {
@@ -3211,6 +3182,7 @@ class DatePicker extends BaseInput {
3211
3182
  }
3212
3183
  }
3213
3184
  }
3185
+ this.timeOnlyDate = isDate(this.value) ? this.value : null;
3214
3186
  this.updateInputfield();
3215
3187
  this.updateUI();
3216
3188
  this.cd.markForCheck();
@@ -3419,6 +3391,7 @@ class DatePicker extends BaseInput {
3419
3391
  <ng-container *ngIf="date.otherMonth ? showOtherMonths : true">
3420
3392
  <span
3421
3393
  [ngClass]="dayClass(date)"
3394
+ [attr.aria-disabled]="$disabled() || !date.selectable ? true : null"
3422
3395
  (click)="onDateSelect($event, date)"
3423
3396
  draggable="false"
3424
3397
  [attr.data-date]="formatDateKey(formatDateMetaToDate(date))"
@@ -3881,6 +3854,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImpor
3881
3854
  <ng-container *ngIf="date.otherMonth ? showOtherMonths : true">
3882
3855
  <span
3883
3856
  [ngClass]="dayClass(date)"
3857
+ [attr.aria-disabled]="$disabled() || !date.selectable ? true : null"
3884
3858
  (click)="onDateSelect($event, date)"
3885
3859
  draggable="false"
3886
3860
  [attr.data-date]="formatDateKey(formatDateMetaToDate(date))"