@acorex/components 22.4.31 → 22.4.33
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/fesm2022/acorex-components-autocomplete.mjs +1 -1
- package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +1 -1
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +1 -1
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +1 -1
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +13 -3
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-lookup.mjs +95 -3
- package/fesm2022/acorex-components-lookup.mjs.map +1 -1
- package/fesm2022/acorex-components-notification.mjs +237 -28
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-otp.mjs +175 -43
- package/fesm2022/acorex-components-otp.mjs.map +1 -1
- package/fesm2022/acorex-components-paint.mjs +92 -11
- package/fesm2022/acorex-components-paint.mjs.map +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +14 -2
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-picker.mjs +214 -20
- package/fesm2022/acorex-components-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-rest-api-generator.mjs +1 -1
- package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
- package/fesm2022/acorex-components-rrule.mjs +1 -1
- package/fesm2022/acorex-components-rrule.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler-picker.mjs +5 -5
- package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +1 -1
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +25 -6
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/lookup/README.md +1 -0
- package/package.json +3 -3
- package/types/acorex-components-dropdown.d.ts +8 -1
- package/types/acorex-components-lookup.d.ts +6 -1
- package/types/acorex-components-notification.d.ts +66 -3
- package/types/acorex-components-otp.d.ts +39 -5
- package/types/acorex-components-paint.d.ts +29 -3
- package/types/acorex-components-phone-box.d.ts +3 -0
- package/types/acorex-components-picker.d.ts +43 -4
- package/types/acorex-components-select-box.d.ts +7 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-components-notification.mjs","sources":["../../../../packages/components/notification/src/lib/notification.config.ts","../../../../packages/components/notification/src/lib/notification.service.ts","../../../../packages/components/notification/src/lib/notification.component.ts","../../../../packages/components/notification/src/lib/notification.component.html","../../../../packages/components/notification/src/lib/notification.module.ts","../../../../packages/components/notification/src/acorex-components-notification.ts"],"sourcesContent":["import { AXLocation } from '@acorex/cdk/common';\nimport { InjectionToken } from '@angular/core';\n\nexport interface AXNotificationConfig {\n gap: number;\n timeOut: number;\n timeOutProgress: boolean;\n location: AXLocation;\n closeButton: boolean;\n limit: number;\n pauseOnHover: boolean;\n}\n\nexport const AX_NOTIFICATION_CONFIG = new InjectionToken<AXNotificationConfig>('AX_NOTIFICATION_CONFIG', {\n providedIn: 'root',\n factory: () => AXNotificationDefaultConfig,\n});\n\nexport const AXNotificationDefaultConfig: AXNotificationConfig = {\n gap: 5,\n timeOut: 2500,\n timeOutProgress: true,\n closeButton: true,\n location: 'top-end',\n limit: 3,\n pauseOnHover: true,\n};\n\nexport type PartialNotificationConfig = Partial<AXNotificationConfig>;\n\nexport function notificationConfig(config: PartialNotificationConfig = {}): AXNotificationConfig {\n const result = {\n ...AXNotificationDefaultConfig,\n ...config,\n };\n return result;\n}\n","import { AXLocation, AXStyleColorType } from '@acorex/cdk/common';\nimport { AXOverlayService } from '@acorex/cdk/overlay';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { Injectable, inject, signal } from '@angular/core';\nimport {\n AXNotificationData,\n AXNotificationOptions as AXNotificationDisplayConfig,\n AXNotificationInternalRef,\n AXNotificationRef,\n} from './notification.class';\nimport { AXNotificationComponent } from './notification.component';\nimport { AXNotificationConfig, AX_NOTIFICATION_CONFIG } from './notification.config';\n\ntype AXReservedNotifications = {\n config: AXNotificationDisplayConfig;\n reservedRef: {\n close: () => void;\n };\n};\n\nlet notificationIdCounter = 0;\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXNotificationService {\n private overlayService = inject(AXOverlayService);\n private translationService: AXTranslationService = inject(AXTranslationService);\n private defaultConfig: AXNotificationConfig = inject(AX_NOTIFICATION_CONFIG);\n\n private activeNotifications = signal<AXNotificationInternalRef[]>([]);\n private reservedNotifications = signal<AXReservedNotifications[]>([]);\n private notificationCounterRef = signal<AXNotificationInternalRef | null>(null);\n private moreNotificationsColor = signal<AXStyleColorType>('primary');\n private moreNotificationsLocation = signal<AXLocation>('bottom-center');\n private moreNotificationsContextElement = signal<AXNotificationDisplayConfig['contextElement']>(undefined);\n private reserveCounter = signal(0);\n\n show(config: AXNotificationDisplayConfig): AXNotificationRef {\n config = { ...this.defaultConfig, ...config };\n\n this.moreNotificationsColor.set(config.color);\n this.moreNotificationsLocation.set(config.location);\n this.moreNotificationsContextElement.set(config.contextElement);\n\n if (this.defaultConfig.limit > 0 && this.activeNotifications().length >= this.defaultConfig.limit) {\n const reservedRef = {\n close: () => {\n console.warn('Reserved notification cannot be closed until it is displayed.');\n },\n };\n this.reservedNotifications.update((prev) => [...prev, { config, reservedRef }]);\n\n this.handleReservedNotificationCounter();\n return reservedRef;\n }\n\n return this.displayNotification(config);\n }\n\n private displayNotification(config: AXNotificationDisplayConfig): AXNotificationRef {\n const gap = this.defaultConfig.gap;\n const notificationData: AXNotificationData = {\n buttons: config.buttons,\n icon: config.icon,\n title: config.title,\n content: config.content,\n location: config.location,\n closeButton: config.closeButton ?? true,\n color: config.color,\n timeOut: config.timeOut,\n timeOutProgress: config.timeOutProgress ?? true,\n pauseOnHover: config.pauseOnHover,\n };\n\n const notificationId = `notification-${++notificationIdCounter}`;\n let internalRef: AXNotificationInternalRef;\n\n const closeNotification = () => {\n if (internalRef) {\n internalRef.overlayRef.dispose();\n this.activeNotifications.set(this.activeNotifications().filter((n) => n.id !== internalRef.id));\n this.handleShowReservedNotification();\n this.handleReservedNotificationCounter();\n setTimeout(() => {\n this.reposition(config.location, gap);\n });\n }\n };\n\n this.overlayService\n .create<AXNotificationComponent>(AXNotificationComponent, {\n inputs: {\n config: notificationData,\n onClose: closeNotification,\n },\n contextElement: config.contextElement,\n centered: false,\n panelClass: ['animate-animated', 'animate-fadeIn', 'animate-faster'],\n onDispose: () => {\n // Clean up when disposed externally\n const currentNotifications = this.activeNotifications();\n if (internalRef && currentNotifications.find((n) => n.id === internalRef.id)) {\n this.activeNotifications.set(currentNotifications.filter((n) => n.id !== internalRef.id));\n this.handleShowReservedNotification();\n this.handleReservedNotificationCounter();\n }\n },\n })\n .then((overlayRef) => {\n internalRef = {\n id: notificationId,\n overlayRef,\n config: notificationData,\n contextElement: config.contextElement,\n close: closeNotification,\n };\n\n // Position the notification BEFORE adding to activeNotifications\n this.positionNotification(overlayRef.overlayElement, config.location, gap);\n\n this.activeNotifications.update((prev) => [...prev, internalRef]);\n this.handleReservedNotificationCounter();\n });\n\n return {\n close: () => {\n closeNotification();\n },\n };\n }\n\n hideAll() {\n this.reserveCounter.set(0);\n this.reservedNotifications.set([]);\n\n // Close all active notifications\n this.activeNotifications().forEach((notification) => {\n notification.overlayRef.dispose();\n });\n this.activeNotifications.set([]);\n\n // Close counter notification if exists\n const counterRef = this.notificationCounterRef();\n if (counterRef) {\n counterRef.overlayRef.dispose();\n this.notificationCounterRef.set(null);\n }\n\n this.handleReservedNotificationCounter();\n }\n\n private handleShowReservedNotification() {\n if (this.activeNotifications().length > this.defaultConfig.limit - 1) return;\n if (!this.reservedNotifications().length) return;\n\n const reserved = this.reservedNotifications()[0];\n this.reservedNotifications.update((prev) => prev.slice(1));\n\n const displayedRef = this.displayNotification(reserved.config);\n this.handleReservedNotificationCounter();\n reserved.reservedRef.close = displayedRef.close;\n }\n\n private handleReservedNotificationCounter() {\n const reservedCount = this.reservedNotifications().length;\n\n if (reservedCount === this.reserveCounter()) return;\n\n this.reserveCounter.set(reservedCount);\n\n if (reservedCount === 0 && this.notificationCounterRef() !== null) {\n this.notificationCounterRef().close();\n this.notificationCounterRef.set(null);\n return;\n }\n\n if (reservedCount > 0) {\n if (this.notificationCounterRef() !== null) {\n this.notificationCounterRef().close();\n this.notificationCounterRef.set(null);\n }\n this.createReservedCounterNotification();\n }\n }\n\n private async createReservedCounterNotification() {\n const gap = this.defaultConfig.gap;\n const opt: AXNotificationData = {\n closeButton: false,\n color: this.moreNotificationsColor(),\n location: this.moreNotificationsLocation(),\n title: await this.translationService.translateAsync('@acorex:common.notifications.more', {\n params: { number: this.reserveCounter() },\n }),\n timeOutProgress: false,\n };\n\n const notificationId = `notification-counter-${++notificationIdCounter}`;\n\n const counterContextElement =\n this.moreNotificationsContextElement() ?? this.activeNotifications()[0]?.contextElement;\n\n const overlayRef = await this.overlayService.create<AXNotificationComponent>(AXNotificationComponent, {\n inputs: {\n config: opt,\n onClose: () => {\n const currentCounterRef = this.notificationCounterRef();\n if (currentCounterRef) {\n currentCounterRef.overlayRef.dispose();\n if (currentCounterRef.id === notificationId) {\n this.notificationCounterRef.set(null);\n }\n }\n },\n },\n contextElement: counterContextElement,\n centered: false,\n panelClass: ['animate-animated', 'animate-fadeIn', 'animate-faster'],\n });\n\n const counterInternalRef: AXNotificationInternalRef = {\n id: notificationId,\n overlayRef,\n config: opt,\n close: () => {\n counterInternalRef.overlayRef.dispose();\n if (this.notificationCounterRef()?.id === counterInternalRef.id) {\n this.notificationCounterRef.set(null);\n }\n },\n };\n\n this.notificationCounterRef.set(counterInternalRef);\n\n // Position the counter notification\n this.positionNotification(overlayRef.overlayElement, opt.location, gap);\n }\n\n private positionNotification(element: HTMLElement, location: AXLocation, gap: number): void {\n if (!element) return;\n\n const pos = this.getPosition(location) + gap;\n\n // Override the centered overlay container styles for notification positioning\n element.style.width = 'max-content';\n element.style.height = 'auto';\n element.style.display = 'block';\n element.style.alignItems = '';\n element.style.justifyContent = '';\n\n // Reset all positioning styles\n element.style.top = '';\n element.style.bottom = '';\n element.style.left = '';\n element.style.right = '';\n element.style.transform = '';\n\n // Apply position based on location\n switch (location) {\n case 'bottom-center':\n element.style.bottom = pos + 'px';\n element.style.left = '50%';\n element.style.transform = 'translateX(-50%)';\n break;\n case 'bottom-end':\n element.style.bottom = pos + 'px';\n element.style.right = gap + 'px';\n break;\n case 'bottom-start':\n element.style.bottom = pos + 'px';\n element.style.left = gap + 'px';\n break;\n case 'top-center':\n element.style.top = pos + 'px';\n element.style.left = '50%';\n element.style.transform = 'translateX(-50%)';\n break;\n case 'top-end':\n element.style.top = pos + 'px';\n element.style.right = gap + 'px';\n break;\n case 'top-start':\n element.style.top = pos + 'px';\n element.style.left = gap + 'px';\n break;\n case 'center-start':\n element.style.top = '50%';\n element.style.left = gap + 'px';\n element.style.transform = 'translateY(-50%)';\n break;\n case 'center-end':\n element.style.top = '50%';\n element.style.right = gap + 'px';\n element.style.transform = 'translateY(-50%)';\n break;\n }\n }\n\n private reposition(notificationLocation: AXLocation, gap: number): void {\n const list = this.activeNotifications().filter((n) => n.config?.location === notificationLocation);\n\n list.forEach((notification, index) => {\n const element = notification.overlayRef.overlayElement;\n if (!element) return;\n\n const pos = this.getRepositionPosition(index, gap, list, notificationLocation);\n this.applyRepositionPosition(element, notificationLocation, pos, gap);\n });\n }\n\n private getRepositionPosition(\n index: number,\n gap: number,\n list: AXNotificationInternalRef[],\n notificationLocation: string,\n ): number {\n if (index === 0) return gap;\n const previousNotification = list[index - 1];\n const previousElement = previousNotification.overlayRef.overlayElement;\n if (!previousElement) return gap;\n\n if (notificationLocation.split('-')[0] === 'bottom') {\n return window.innerHeight - previousElement.offsetTop + gap;\n }\n return previousElement.offsetTop + previousElement.offsetHeight + gap;\n }\n\n private applyRepositionPosition(element: HTMLElement, location: AXLocation, pos: number, gap: number): void {\n // Reset transform if needed, then apply position\n const isVerticalCenter = location === 'center-start' || location === 'center-end';\n const isHorizontalCenter = location === 'bottom-center' || location === 'top-center';\n\n if (location.startsWith('bottom')) {\n element.style.bottom = pos + 'px';\n element.style.top = '';\n if (isHorizontalCenter) {\n element.style.transform = 'translateX(-50%)';\n }\n } else if (location.startsWith('top')) {\n element.style.top = pos + 'px';\n element.style.bottom = '';\n if (isHorizontalCenter) {\n element.style.transform = 'translateX(-50%)';\n }\n } else if (isVerticalCenter) {\n element.style.top = pos + 'px';\n element.style.bottom = '';\n element.style.transform = '';\n }\n }\n\n private getPosition(location: string): number {\n const list = this.activeNotifications().filter((n) => n.config?.location === location);\n if (list.length === 0) return 0;\n\n const lastNotification = list[list.length - 1];\n const element = lastNotification.overlayRef.overlayElement;\n if (!element) return 0;\n\n if (location.split('-')[0] === 'bottom') {\n return window.innerHeight - element.offsetTop;\n }\n return element.offsetTop + element.offsetHeight;\n }\n}\n","import { AXClosableComponent, AXComponent, MXBaseComponent } from '@acorex/cdk/common';\nimport { AXButtonComponent, AXDecoratorCloseButtonComponent } from '@acorex/components/button';\nimport { AXLoadingComponent } from '@acorex/components/loading';\nimport { AXSafePipe } from '@acorex/core/pipes';\nimport { AXTranslatorPipe } from '@acorex/core/translation';\nimport { AsyncPipe, NgComponentOutlet, NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n computed,\n inject,\n input,\n OnInit,\n signal,\n TemplateRef,\n Type,\n ViewEncapsulation,\n} from '@angular/core';\nimport { AXNotificationButtonItem, AXNotificationData } from './notification.class';\nimport { AXNotificationService } from './notification.service';\n\n/**\n * The Button is a component which detects user interaction and triggers a corresponding event\n *\n * @category Components\n */\n@Component({\n selector: 'ax-notification',\n templateUrl: './notification.component.html',\n styleUrl: './notification.component.css',\n\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: AXClosableComponent, useExisting: AXNotificationComponent },\n { provide: AXComponent, useExisting: AXNotificationComponent },\n ],\n imports: [\n NgTemplateOutlet,\n NgComponentOutlet,\n AXButtonComponent,\n AXLoadingComponent,\n AXDecoratorCloseButtonComponent,\n AsyncPipe,\n AXTranslatorPipe,\n AXSafePipe,\n ],\n})\nexport class AXNotificationComponent extends MXBaseComponent implements OnInit {\n /** Notification configuration data */\n config = input.required<AXNotificationData>();\n\n /** @internal Callback function to close the notification */\n onClose = input<() => void>();\n\n private notificationService = inject(AXNotificationService);\n\n /** @ignore */\n protected _icon: string;\n\n private intervalId: number;\n private isPaused = signal(false);\n protected remainingTime = signal(0);\n protected transitionDuration = signal(150);\n\n /** Template content if config.content is a TemplateRef */\n protected templateContent = computed(() => {\n const content = this.config().content;\n return content instanceof TemplateRef ? content : null;\n });\n\n /** Component content if config.content is a component Type */\n protected componentContent = computed(() => {\n const content = this.config().content;\n return typeof content === 'function' ? (content as Type<unknown>) : null;\n });\n\n /** String content if config.content is a string */\n protected stringContent = computed(() => {\n const content = this.config().content;\n return typeof content === 'string' ? content : '';\n });\n\n override ngOnInit() {\n super.ngOnInit();\n this._initIcon();\n this.remainingTime.set(this.config().timeOut);\n this._handleTimeOut();\n\n this.getHostElement().addEventListener('pointerenter', () => {\n if (!this.config().pauseOnHover) return;\n if (this.isPaused()) return;\n // Only pause if not already paused\n this.isPaused.set(true);\n this.pauseAnimation();\n });\n\n this.getHostElement().addEventListener('pointerleave', () => {\n if (!this.config().pauseOnHover) return;\n if (!this.isPaused()) return;\n // Only resume if paused\n this.isPaused.set(false);\n this._handleTimeOut();\n });\n }\n\n private pauseAnimation() {\n clearInterval(this.intervalId);\n }\n\n private _handleTimeOut() {\n if (this.config().timeOut) {\n this.intervalId = setInterval(() => {\n this.remainingTime.update((prev) => prev - this.transitionDuration());\n if (this.remainingTime() <= 0) {\n clearInterval(this.intervalId);\n this.close();\n }\n }, this.transitionDuration()) as unknown as number;\n }\n }\n\n /** @ignore */\n private _initIcon() {\n if (!this.config().icon) {\n switch (this.config().color) {\n case 'success':\n this._icon = 'ax-icon ax-icon-check-circle';\n break;\n case 'danger':\n this._icon = 'ax-icon ax-icon-error';\n break;\n case 'warning':\n this._icon = 'ax-icon ax-icon-warning';\n break;\n default:\n this._icon = this.config().icon || 'ax-icon ax-icon-info';\n break;\n }\n } else {\n this._icon = this.config().icon;\n }\n }\n\n /** @ignore */\n protected _handleButtonClick(button: AXNotificationButtonItem) {\n if (button.onClick) {\n button.onClick({ source: button });\n }\n }\n\n /**\n * Closes the notification.\n */\n close() {\n const closeCallback = this.onClose();\n if (closeCallback) {\n closeCallback();\n }\n }\n\n /**\n * Closes all notifications.\n */\n closeAll() {\n this.notificationService.hideAll();\n }\n}\n","<span class=\"ax-notification-icon ax-icon-solid {{ _icon }} ax-{{ this.config().color }}\"></span>\n<div class=\"ax-notification-content\">\n <div class=\"ax-notification-title\" [class.ax-mb-2]=\"config().title && config().content\">\n {{ config().title | translate | async }}\n </div>\n @if (templateContent(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\"></ng-container>\n } @else if (componentContent(); as component) {\n <ng-container [ngComponentOutlet]=\"component\"></ng-container>\n } @else if (stringContent()) {\n <div class=\"ax-notification-body\" [innerHTML]=\"stringContent() | translate | async | safe: 'html'\"></div>\n }\n\n @if (config().buttons?.length) {\n <div class=\"ax-notification-buttons\">\n @for (button of config().buttons; track $index) {\n <ax-button\n class=\"ax-xs\"\n [text]=\"button.text | translate | async\"\n [color]=\"button.color || 'default'\"\n [look]=\"button.look || 'solid'\"\n [disabled]=\"button.disabled\"\n (onClick)=\"_handleButtonClick(button)\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n </div>\n }\n</div>\n@if (config().closeButton) {\n <ax-close-button></ax-close-button>\n}\n@if (config().timeOutProgress && config().timeOut && remainingTime()) {\n <div\n [class]=\"'ax-notification-progress ax-' + this.config().color\"\n [style.transition-duration]=\"transitionDuration()\"\n [style.width]=\"(remainingTime() * 100) / config().timeOut + '%'\"\n ></div>\n}\n","import { NgModule } from '@angular/core';\nimport { AXNotificationComponent } from './notification.component';\n\n@NgModule({\n imports: [AXNotificationComponent],\n exports: [AXNotificationComponent],\n})\nexport class AXNotificationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAaa,sBAAsB,GAAG,IAAI,cAAc,CAAuB,wBAAwB,EAAE;AACvG,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,2BAA2B;AAC3C,CAAA;AAEM,MAAM,2BAA2B,GAAyB;AAC/D,IAAA,GAAG,EAAE,CAAC;AACN,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,eAAe,EAAE,IAAI;AACrB,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,QAAQ,EAAE,SAAS;AACnB,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,YAAY,EAAE,IAAI;;AAKd,SAAU,kBAAkB,CAAC,MAAA,GAAoC,EAAE,EAAA;AACvE,IAAA,MAAM,MAAM,GAAG;AACb,QAAA,GAAG,2BAA2B;AAC9B,QAAA,GAAG,MAAM;KACV;AACD,IAAA,OAAO,MAAM;AACf;;AChBA,IAAI,qBAAqB,GAAG,CAAC;MAKhB,qBAAqB,CAAA;AAHlC,IAAA,WAAA,GAAA;AAIU,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACzC,QAAA,IAAA,CAAA,kBAAkB,GAAyB,MAAM,CAAC,oBAAoB,CAAC;AACvE,QAAA,IAAA,CAAA,aAAa,GAAyB,MAAM,CAAC,sBAAsB,CAAC;QAEpE,IAAA,CAAA,mBAAmB,GAAG,MAAM,CAA8B,EAAE;gGAAC;QAC7D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,qBAAA,EAAA,QAAA,EAAA,4lDAAA,EAAA,MAAA,EAAA,CAAA,isIAAA,CAAA,EAAA;;;MErCU,oBAAoB,CAAA;8GAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAApB,oBAAoB,EAAA,OAAA,EAAA,CAHrB,uBAAuB,CAAA,EAAA,OAAA,EAAA,CACvB,uBAAuB,CAAA,EAAA,CAAA,CAAA;AAEtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAHrB,uBAAuB,CAAA,EAAA,CAAA,CAAA;;2FAGtB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,uBAAuB,CAAC;oBAClC,OAAO,EAAE,CAAC,uBAAuB,CAAC;AACnC,iBAAA;;;ACND;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"acorex-components-notification.mjs","sources":["../../../../packages/components/notification/src/lib/notification.config.ts","../../../../packages/components/notification/src/lib/notification.service.ts","../../../../packages/components/notification/src/lib/notification.component.ts","../../../../packages/components/notification/src/lib/notification.component.html","../../../../packages/components/notification/src/lib/notification.module.ts","../../../../packages/components/notification/src/acorex-components-notification.ts"],"sourcesContent":["import { AXLocation } from '@acorex/cdk/common';\nimport { InjectionToken } from '@angular/core';\n\nexport interface AXNotificationConfig {\n gap: number;\n timeOut: number;\n timeOutProgress: boolean;\n location: AXLocation;\n closeButton: boolean;\n limit: number;\n pauseOnHover: boolean;\n}\n\nexport const AX_NOTIFICATION_CONFIG = new InjectionToken<AXNotificationConfig>('AX_NOTIFICATION_CONFIG', {\n providedIn: 'root',\n factory: () => AXNotificationDefaultConfig,\n});\n\nexport const AXNotificationDefaultConfig: AXNotificationConfig = {\n gap: 5,\n timeOut: 2500,\n timeOutProgress: true,\n closeButton: true,\n location: 'top-end',\n limit: 3,\n pauseOnHover: true,\n};\n\nexport type PartialNotificationConfig = Partial<AXNotificationConfig>;\n\nexport function notificationConfig(config: PartialNotificationConfig = {}): AXNotificationConfig {\n const result = {\n ...AXNotificationDefaultConfig,\n ...config,\n };\n return result;\n}\n","import { AXLocation, AXStyleColorType } from '@acorex/cdk/common';\nimport { AXOverlayService } from '@acorex/cdk/overlay';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { ComponentRef, Injectable, inject, signal } from '@angular/core';\nimport {\n AXNotificationData,\n AXNotificationOptions as AXNotificationDisplayConfig,\n AXNotificationInternalRef,\n AXNotificationRef,\n} from './notification.class';\nimport { AXNotificationComponent } from './notification.component';\nimport { AXNotificationConfig, AX_NOTIFICATION_CONFIG } from './notification.config';\n\ntype AXReservedNotifications = {\n config: AXNotificationDisplayConfig;\n reservedRef: {\n close: () => void;\n };\n};\n\nlet notificationIdCounter = 0;\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXNotificationService {\n private overlayService = inject(AXOverlayService);\n private translationService: AXTranslationService = inject(AXTranslationService);\n private defaultConfig: AXNotificationConfig = inject(AX_NOTIFICATION_CONFIG);\n\n private activeNotifications = signal<AXNotificationInternalRef[]>([]);\n private reservedNotifications = signal<AXReservedNotifications[]>([]);\n private notificationCounterRef = signal<AXNotificationInternalRef | null>(null);\n private moreNotificationsColor = signal<AXStyleColorType>('primary');\n private moreNotificationsLocation = signal<AXLocation>('bottom-center');\n private moreNotificationsContextElement = signal<AXNotificationDisplayConfig['contextElement']>(undefined);\n private reserveCounter = signal(0);\n\n show(config: AXNotificationDisplayConfig): AXNotificationRef {\n config = { ...this.defaultConfig, ...config };\n\n this.moreNotificationsColor.set(config.color);\n this.moreNotificationsLocation.set(config.location);\n this.moreNotificationsContextElement.set(config.contextElement);\n\n if (this.defaultConfig.limit > 0 && this.activeNotifications().length >= this.defaultConfig.limit) {\n const reservedRef = {\n close: () => {\n console.warn('Reserved notification cannot be closed until it is displayed.');\n },\n };\n this.reservedNotifications.update((prev) => [...prev, { config, reservedRef }]);\n\n this.handleReservedNotificationCounter();\n return reservedRef;\n }\n\n return this.displayNotification(config);\n }\n\n private displayNotification(config: AXNotificationDisplayConfig): AXNotificationRef {\n const gap = this.defaultConfig.gap;\n const notificationData: AXNotificationData = {\n buttons: config.buttons,\n icon: config.icon,\n title: config.title,\n content: config.content,\n steps: config.steps,\n stepIndex: config.stepIndex,\n location: config.location,\n closeButton: config.closeButton ?? true,\n color: config.color,\n timeOut: config.timeOut,\n timeOutProgress: config.timeOutProgress ?? true,\n stepCompleteTimeOut: config.stepCompleteTimeOut,\n pauseOnHover: config.pauseOnHover,\n };\n\n const notificationId = `notification-${++notificationIdCounter}`;\n let internalRef: AXNotificationInternalRef;\n let notificationComponent: AXNotificationComponent | null = null;\n\n const closeNotification = () => {\n if (internalRef) {\n internalRef.overlayRef.dispose();\n this.activeNotifications.set(this.activeNotifications().filter((n) => n.id !== internalRef.id));\n this.handleShowReservedNotification();\n this.handleReservedNotificationCounter();\n setTimeout(() => {\n this.reposition(config.location, gap);\n });\n }\n };\n\n this.overlayService\n .create<AXNotificationComponent>(AXNotificationComponent, {\n inputs: {\n config: notificationData,\n onClose: closeNotification,\n },\n contextElement: config.contextElement,\n centered: false,\n panelClass: ['animate-animated', 'animate-fadeIn', 'animate-faster'],\n onDispose: () => {\n // Clean up when disposed externally\n const currentNotifications = this.activeNotifications();\n if (internalRef && currentNotifications.find((n) => n.id === internalRef.id)) {\n this.activeNotifications.set(currentNotifications.filter((n) => n.id !== internalRef.id));\n this.handleShowReservedNotification();\n this.handleReservedNotificationCounter();\n }\n },\n })\n .then((overlayRef) => {\n notificationComponent = (overlayRef.instance as ComponentRef<AXNotificationComponent>).instance;\n internalRef = {\n id: notificationId,\n overlayRef,\n config: notificationData,\n contextElement: config.contextElement,\n close: closeNotification,\n };\n\n // Position the notification BEFORE adding to activeNotifications\n this.positionNotification(overlayRef.overlayElement, config.location, gap);\n\n this.activeNotifications.update((prev) => [...prev, internalRef]);\n this.handleReservedNotificationCounter();\n });\n\n return {\n close: () => {\n closeNotification();\n },\n update: (patch) => notificationComponent?.patchConfig(patch),\n nextStep: () => notificationComponent?.nextStep() ?? false,\n previousStep: () => notificationComponent?.previousStep() ?? false,\n goToStep: (index) => notificationComponent?.goToStep(index) ?? false,\n getStepIndex: () => notificationComponent?.getStepIndex() ?? 0,\n getStepCount: () => notificationComponent?.getStepCount() ?? 0,\n };\n }\n\n hideAll() {\n this.reserveCounter.set(0);\n this.reservedNotifications.set([]);\n\n // Close all active notifications\n this.activeNotifications().forEach((notification) => {\n notification.overlayRef.dispose();\n });\n this.activeNotifications.set([]);\n\n // Close counter notification if exists\n const counterRef = this.notificationCounterRef();\n if (counterRef) {\n counterRef.overlayRef.dispose();\n this.notificationCounterRef.set(null);\n }\n\n this.handleReservedNotificationCounter();\n }\n\n private handleShowReservedNotification() {\n if (this.activeNotifications().length > this.defaultConfig.limit - 1) return;\n if (!this.reservedNotifications().length) return;\n\n const reserved = this.reservedNotifications()[0];\n this.reservedNotifications.update((prev) => prev.slice(1));\n\n const displayedRef = this.displayNotification(reserved.config);\n this.handleReservedNotificationCounter();\n reserved.reservedRef.close = displayedRef.close;\n }\n\n private handleReservedNotificationCounter() {\n const reservedCount = this.reservedNotifications().length;\n\n if (reservedCount === this.reserveCounter()) return;\n\n this.reserveCounter.set(reservedCount);\n\n if (reservedCount === 0 && this.notificationCounterRef() !== null) {\n this.notificationCounterRef().close();\n this.notificationCounterRef.set(null);\n return;\n }\n\n if (reservedCount > 0) {\n if (this.notificationCounterRef() !== null) {\n this.notificationCounterRef().close();\n this.notificationCounterRef.set(null);\n }\n this.createReservedCounterNotification();\n }\n }\n\n private async createReservedCounterNotification() {\n const gap = this.defaultConfig.gap;\n const opt: AXNotificationData = {\n closeButton: false,\n color: this.moreNotificationsColor(),\n location: this.moreNotificationsLocation(),\n title: await this.translationService.translateAsync('@acorex:common.notifications.more', {\n params: { number: this.reserveCounter() },\n }),\n timeOutProgress: false,\n };\n\n const notificationId = `notification-counter-${++notificationIdCounter}`;\n\n const counterContextElement =\n this.moreNotificationsContextElement() ?? this.activeNotifications()[0]?.contextElement;\n\n const overlayRef = await this.overlayService.create<AXNotificationComponent>(AXNotificationComponent, {\n inputs: {\n config: opt,\n onClose: () => {\n const currentCounterRef = this.notificationCounterRef();\n if (currentCounterRef) {\n currentCounterRef.overlayRef.dispose();\n if (currentCounterRef.id === notificationId) {\n this.notificationCounterRef.set(null);\n }\n }\n },\n },\n contextElement: counterContextElement,\n centered: false,\n panelClass: ['animate-animated', 'animate-fadeIn', 'animate-faster'],\n });\n\n const counterInternalRef: AXNotificationInternalRef = {\n id: notificationId,\n overlayRef,\n config: opt,\n close: () => {\n counterInternalRef.overlayRef.dispose();\n if (this.notificationCounterRef()?.id === counterInternalRef.id) {\n this.notificationCounterRef.set(null);\n }\n },\n };\n\n this.notificationCounterRef.set(counterInternalRef);\n\n // Position the counter notification\n this.positionNotification(overlayRef.overlayElement, opt.location, gap);\n }\n\n private positionNotification(element: HTMLElement, location: AXLocation, gap: number): void {\n if (!element) return;\n\n const pos = this.getPosition(location) + gap;\n\n // Override the centered overlay container styles for notification positioning\n element.style.width = 'max-content';\n element.style.height = 'auto';\n element.style.display = 'block';\n element.style.alignItems = '';\n element.style.justifyContent = '';\n\n // Reset all positioning styles\n element.style.top = '';\n element.style.bottom = '';\n element.style.left = '';\n element.style.right = '';\n element.style.transform = '';\n\n // Apply position based on location\n switch (location) {\n case 'bottom-center':\n element.style.bottom = pos + 'px';\n element.style.left = '50%';\n element.style.transform = 'translateX(-50%)';\n break;\n case 'bottom-end':\n element.style.bottom = pos + 'px';\n element.style.right = gap + 'px';\n break;\n case 'bottom-start':\n element.style.bottom = pos + 'px';\n element.style.left = gap + 'px';\n break;\n case 'top-center':\n element.style.top = pos + 'px';\n element.style.left = '50%';\n element.style.transform = 'translateX(-50%)';\n break;\n case 'top-end':\n element.style.top = pos + 'px';\n element.style.right = gap + 'px';\n break;\n case 'top-start':\n element.style.top = pos + 'px';\n element.style.left = gap + 'px';\n break;\n case 'center-start':\n element.style.top = '50%';\n element.style.left = gap + 'px';\n element.style.transform = 'translateY(-50%)';\n break;\n case 'center-end':\n element.style.top = '50%';\n element.style.right = gap + 'px';\n element.style.transform = 'translateY(-50%)';\n break;\n }\n }\n\n private reposition(notificationLocation: AXLocation, gap: number): void {\n const list = this.activeNotifications().filter((n) => n.config?.location === notificationLocation);\n\n list.forEach((notification, index) => {\n const element = notification.overlayRef.overlayElement;\n if (!element) return;\n\n const pos = this.getRepositionPosition(index, gap, list, notificationLocation);\n this.applyRepositionPosition(element, notificationLocation, pos, gap);\n });\n }\n\n private getRepositionPosition(\n index: number,\n gap: number,\n list: AXNotificationInternalRef[],\n notificationLocation: string,\n ): number {\n if (index === 0) return gap;\n const previousNotification = list[index - 1];\n const previousElement = previousNotification.overlayRef.overlayElement;\n if (!previousElement) return gap;\n\n if (notificationLocation.split('-')[0] === 'bottom') {\n return window.innerHeight - previousElement.offsetTop + gap;\n }\n return previousElement.offsetTop + previousElement.offsetHeight + gap;\n }\n\n private applyRepositionPosition(element: HTMLElement, location: AXLocation, pos: number, gap: number): void {\n // Reset transform if needed, then apply position\n const isVerticalCenter = location === 'center-start' || location === 'center-end';\n const isHorizontalCenter = location === 'bottom-center' || location === 'top-center';\n\n if (location.startsWith('bottom')) {\n element.style.bottom = pos + 'px';\n element.style.top = '';\n if (isHorizontalCenter) {\n element.style.transform = 'translateX(-50%)';\n }\n } else if (location.startsWith('top')) {\n element.style.top = pos + 'px';\n element.style.bottom = '';\n if (isHorizontalCenter) {\n element.style.transform = 'translateX(-50%)';\n }\n } else if (isVerticalCenter) {\n element.style.top = pos + 'px';\n element.style.bottom = '';\n element.style.transform = '';\n }\n }\n\n private getPosition(location: string): number {\n const list = this.activeNotifications().filter((n) => n.config?.location === location);\n if (list.length === 0) return 0;\n\n const lastNotification = list[list.length - 1];\n const element = lastNotification.overlayRef.overlayElement;\n if (!element) return 0;\n\n if (location.split('-')[0] === 'bottom') {\n return window.innerHeight - element.offsetTop;\n }\n return element.offsetTop + element.offsetHeight;\n }\n}\n","import { AXClosableComponent, AXComponent, MXBaseComponent } from '@acorex/cdk/common';\nimport { AXButtonComponent, AXDecoratorCloseButtonComponent } from '@acorex/components/button';\nimport { AXLoadingComponent } from '@acorex/components/loading';\nimport { AXSafePipe } from '@acorex/core/pipes';\nimport { AXTranslatorPipe } from '@acorex/core/translation';\nimport { AsyncPipe, NgComponentOutlet, NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n computed,\n effect,\n HostBinding,\n inject,\n input,\n OnInit,\n signal,\n TemplateRef,\n Type,\n ViewEncapsulation,\n} from '@angular/core';\nimport { AXNotificationButtonItem, AXNotificationData, AXNotificationOptions } from './notification.class';\nimport { AXNotificationService } from './notification.service';\n\n/**\n * The Button is a component which detects user interaction and triggers a corresponding event\n *\n * @category Components\n */\n@Component({\n selector: 'ax-notification',\n templateUrl: './notification.component.html',\n styleUrls: ['./notification.component.css', './notification-multi-step.css'],\n\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: AXClosableComponent, useExisting: AXNotificationComponent },\n { provide: AXComponent, useExisting: AXNotificationComponent },\n ],\n imports: [\n NgTemplateOutlet,\n NgComponentOutlet,\n AXButtonComponent,\n AXLoadingComponent,\n AXDecoratorCloseButtonComponent,\n AsyncPipe,\n AXTranslatorPipe,\n AXSafePipe,\n ],\n})\nexport class AXNotificationComponent extends MXBaseComponent implements OnInit {\n private static readonly defaultStepCompleteDelayMs = 2000;\n /** Notification configuration data */\n config = input.required<AXNotificationData>();\n\n /** @internal Callback function to close the notification */\n onClose = input<() => void>();\n\n private notificationService = inject(AXNotificationService);\n\n /** @ignore */\n protected _icon: string;\n\n private intervalId: number;\n private isPaused = signal(false);\n protected remainingTime = signal(0);\n protected transitionDuration = signal(150);\n\n private readonly runtimePatch = signal<Partial<AXNotificationData>>({});\n protected readonly currentStepIndex = signal(0);\n private readonly multiStepCompleteCountdown = signal(false);\n private stepCompleteTimerId: ReturnType<typeof setTimeout> | null = null;\n\n protected readonly mergedConfig = computed(() => ({\n ...this.config(),\n ...this.runtimePatch(),\n }));\n\n protected readonly steps = computed(() => this.mergedConfig().steps ?? []);\n\n protected readonly isMultiStep = computed(() => this.steps().length > 0);\n\n protected readonly effectiveConfig = computed((): AXNotificationData => {\n const base = this.mergedConfig();\n const stepList = base.steps;\n if (!stepList?.length) {\n return base;\n }\n const index = Math.min(Math.max(this.currentStepIndex(), 0), stepList.length - 1);\n const step = stepList[index];\n return {\n ...base,\n title: step.title ?? base.title,\n content: step.content ?? base.content,\n icon: step.icon ?? base.icon,\n color: step.color ?? base.color,\n buttons: step.buttons ?? base.buttons,\n };\n });\n\n protected readonly stepIndicator = computed(() => {\n const total = this.steps().length;\n if (total <= 1) {\n return null;\n }\n return `${this.currentStepIndex() + 1} / ${total}`;\n });\n\n protected readonly showProgressBar = computed(() => {\n const cfg = this.mergedConfig();\n if (!cfg.timeOutProgress) {\n return false;\n }\n if (this.multiStepCompleteCountdown()) {\n return this.resolveStepCompleteDelay() > 0 && this.remainingTime() > 0;\n }\n if (this.isMultiStep() && this.steps().length > 0) {\n return true;\n }\n return !!cfg.timeOut && this.remainingTime() > 0;\n });\n\n protected readonly progressWidthPercent = computed(() => {\n const cfg = this.mergedConfig();\n const stepTotal = this.steps().length;\n if (cfg.timeOutProgress && this.multiStepCompleteCountdown()) {\n const delay = this.resolveStepCompleteDelay();\n return delay ? (this.remainingTime() * 100) / delay : 0;\n }\n if (cfg.timeOutProgress && this.isMultiStep() && stepTotal > 0) {\n return ((this.currentStepIndex() + 1) / stepTotal) * 100;\n }\n const timeOut = this.mergedConfig().timeOut;\n if (!timeOut) {\n return 0;\n }\n return (this.remainingTime() * 100) / timeOut;\n });\n\n protected readonly progressTransitionDuration = computed(() => {\n if (this.multiStepCompleteCountdown()) {\n return this.transitionDuration();\n }\n return this.isMultiStep() ? 300 : this.transitionDuration();\n });\n\n /** Template content if config.content is a TemplateRef */\n protected templateContent = computed(() => {\n const content = this.effectiveConfig().content;\n return content instanceof TemplateRef ? content : null;\n });\n\n /** Component content if config.content is a component Type */\n protected componentContent = computed(() => {\n const content = this.effectiveConfig().content;\n return typeof content === 'function' ? (content as Type<unknown>) : null;\n });\n\n /** String content if config.content is a string */\n protected stringContent = computed(() => {\n const content = this.effectiveConfig().content;\n return typeof content === 'string' ? content : '';\n });\n\n @HostBinding('class.ax-notification-multi-step')\n protected get hostMultiStepClass(): boolean {\n return this.isMultiStep();\n }\n\n #iconEffect = effect(() => {\n this._syncIcon(this.effectiveConfig());\n });\n\n override ngOnInit() {\n super.ngOnInit();\n const initialStep = this.config().stepIndex ?? 0;\n if (this.config().steps?.length) {\n this.currentStepIndex.set(Math.min(initialStep, this.config().steps.length - 1));\n }\n this.remainingTime.set(this.mergedConfig().timeOut);\n this._handleTimeOut();\n\n this.getHostElement().addEventListener('pointerenter', () => {\n if (!this.mergedConfig().pauseOnHover) return;\n if (this.isPaused()) return;\n this.isPaused.set(true);\n this.pauseAnimation();\n });\n\n this.getHostElement().addEventListener('pointerleave', () => {\n if (!this.mergedConfig().pauseOnHover) return;\n if (!this.isPaused()) return;\n this.isPaused.set(false);\n this._handleTimeOut();\n });\n }\n\n private pauseAnimation() {\n clearInterval(this.intervalId);\n }\n\n private _handleTimeOut() {\n const intervalMs = this.transitionDuration();\n const hasTimeOut = this.multiStepCompleteCountdown()\n ? this.resolveStepCompleteDelay() > 0\n : !!this.mergedConfig().timeOut;\n if (!hasTimeOut) {\n return;\n }\n this.intervalId = setInterval(() => {\n this.remainingTime.update((prev) => prev - intervalMs);\n if (this.remainingTime() <= 0) {\n clearInterval(this.intervalId);\n this.close();\n }\n }, intervalMs) as unknown as number;\n }\n\n private restartTimeOut() {\n if (this.multiStepCompleteCountdown()) {\n return;\n }\n this.clearStepCompleteClose();\n clearInterval(this.intervalId);\n const timeOut = this.mergedConfig().timeOut;\n this.remainingTime.set(timeOut ?? 0);\n if (timeOut) {\n this._handleTimeOut();\n }\n }\n\n private resolveStepCompleteDelay(): number {\n const cfg = this.mergedConfig();\n if (cfg.stepCompleteTimeOut === null) {\n return 0;\n }\n if (cfg.stepCompleteTimeOut != null) {\n return cfg.stepCompleteTimeOut;\n }\n return AXNotificationComponent.defaultStepCompleteDelayMs;\n }\n\n private clearStepCompleteClose() {\n if (this.stepCompleteTimerId != null) {\n clearTimeout(this.stepCompleteTimerId);\n this.stepCompleteTimerId = null;\n }\n clearInterval(this.intervalId);\n this.multiStepCompleteCountdown.set(false);\n }\n\n private scheduleStepCompleteClose() {\n if (!this.isMultiStep()) {\n return;\n }\n const delay = this.resolveStepCompleteDelay();\n if (delay <= 0) {\n return;\n }\n this.clearStepCompleteClose();\n const cfg = this.mergedConfig();\n if (cfg.timeOutProgress) {\n this.multiStepCompleteCountdown.set(true);\n this.remainingTime.set(delay);\n this._handleTimeOut();\n return;\n }\n this.stepCompleteTimerId = setTimeout(() => this.close(), delay);\n }\n\n private onReachedFinalMultiStep() {\n const total = this.steps().length;\n if (total > 0 && this.currentStepIndex() === total - 1) {\n this.scheduleStepCompleteClose();\n }\n }\n\n private _syncIcon(cfg: AXNotificationData) {\n if (!cfg.icon) {\n switch (cfg.color) {\n case 'success':\n this._icon = 'ax-icon ax-icon-check-circle';\n break;\n case 'danger':\n this._icon = 'ax-icon ax-icon-error';\n break;\n case 'warning':\n this._icon = 'ax-icon ax-icon-warning';\n break;\n default:\n this._icon = cfg.icon || 'ax-icon ax-icon-info';\n break;\n }\n } else {\n this._icon = cfg.icon;\n }\n }\n\n patchConfig(patch: Partial<AXNotificationOptions>) {\n this.runtimePatch.update((prev) => ({ ...prev, ...patch }));\n if (patch.stepIndex != null && this.steps().length) {\n this.currentStepIndex.set(Math.min(Math.max(patch.stepIndex, 0), this.steps().length - 1));\n }\n if (patch.timeOut != null) {\n this.restartTimeOut();\n }\n }\n\n nextStep(): boolean {\n const total = this.steps().length;\n if (total === 0 || this.currentStepIndex() >= total - 1) {\n return false;\n }\n this.currentStepIndex.update((index) => index + 1);\n this.restartTimeOut();\n this.onReachedFinalMultiStep();\n return true;\n }\n\n previousStep(): boolean {\n if (this.steps().length === 0 || this.currentStepIndex() <= 0) {\n return false;\n }\n this.clearStepCompleteClose();\n this.currentStepIndex.update((index) => index - 1);\n this.restartTimeOut();\n return true;\n }\n\n goToStep(index: number): boolean {\n const total = this.steps().length;\n if (total === 0 || index < 0 || index >= total) {\n return false;\n }\n if (index < total - 1) {\n this.clearStepCompleteClose();\n }\n this.currentStepIndex.set(index);\n this.restartTimeOut();\n this.onReachedFinalMultiStep();\n return true;\n }\n\n getStepIndex(): number {\n return this.currentStepIndex();\n }\n\n getStepCount(): number {\n return this.steps().length;\n }\n\n /** @ignore */\n protected _handleButtonClick(button: AXNotificationButtonItem) {\n if (button.onClick) {\n button.onClick({ source: button });\n }\n }\n\n /**\n * Closes the notification.\n */\n close() {\n const closeCallback = this.onClose();\n if (closeCallback) {\n closeCallback();\n }\n }\n\n /**\n * Closes all notifications.\n */\n closeAll() {\n this.notificationService.hideAll();\n }\n}\n","<span class=\"ax-notification-icon ax-icon-solid {{ _icon }} ax-{{ effectiveConfig().color }}\"></span>\n<div class=\"ax-notification-content\">\n <div class=\"ax-notification-title\" [class.ax-mb-2]=\"effectiveConfig().title && effectiveConfig().content\">\n {{ effectiveConfig().title | translate | async }}\n @if (stepIndicator(); as indicator) {\n <span class=\"ax-notification-step-indicator\">{{ indicator }}</span>\n }\n </div>\n @if (templateContent(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\"></ng-container>\n } @else if (componentContent(); as component) {\n <ng-container [ngComponentOutlet]=\"component\"></ng-container>\n } @else if (stringContent()) {\n <div class=\"ax-notification-body\" [innerHTML]=\"stringContent() | translate | async | safe: 'html'\"></div>\n }\n\n @if (effectiveConfig().buttons?.length) {\n <div class=\"ax-notification-buttons\">\n @for (button of effectiveConfig().buttons; track $index) {\n <ax-button\n class=\"ax-xs\"\n [text]=\"button.text | translate | async\"\n [color]=\"button.color || 'default'\"\n [look]=\"button.look || 'solid'\"\n [disabled]=\"button.disabled\"\n (onClick)=\"_handleButtonClick(button)\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n </div>\n }\n</div>\n@if (effectiveConfig().closeButton) {\n <ax-close-button></ax-close-button>\n}\n@if (showProgressBar()) {\n <div\n [class]=\"'ax-notification-progress ax-' + effectiveConfig().color\"\n [style.transition-duration]=\"progressTransitionDuration() + 'ms'\"\n [style.width]=\"progressWidthPercent() + '%'\"\n ></div>\n}\n","import { NgModule } from '@angular/core';\nimport { AXNotificationComponent } from './notification.component';\n\n@NgModule({\n imports: [AXNotificationComponent],\n exports: [AXNotificationComponent],\n})\nexport class AXNotificationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAaa,sBAAsB,GAAG,IAAI,cAAc,CAAuB,wBAAwB,EAAE;AACvG,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,2BAA2B;AAC3C,CAAA;AAEM,MAAM,2BAA2B,GAAyB;AAC/D,IAAA,GAAG,EAAE,CAAC;AACN,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,eAAe,EAAE,IAAI;AACrB,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,QAAQ,EAAE,SAAS;AACnB,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,YAAY,EAAE,IAAI;;AAKd,SAAU,kBAAkB,CAAC,MAAA,GAAoC,EAAE,EAAA;AACvE,IAAA,MAAM,MAAM,GAAG;AACb,QAAA,GAAG,2BAA2B;AAC9B,QAAA,GAAG,MAAM;KACV;AACD,IAAA,OAAO,MAAM;AACf;;AChBA,IAAI,qBAAqB,GAAG,CAAC;MAKhB,qBAAqB,CAAA;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iBAAiB;wBACjB,iBAAiB;wBACjB,kBAAkB;wBAClB,+BAA+B;wBAC/B,SAAS;wBACT,gBAAgB;wBAChB,UAAU;AACX,qBAAA,EAAA,QAAA,EAAA,suDAAA,EAAA,MAAA,EAAA,CAAA,isIAAA,EAAA,woDAAA,CAAA,EAAA;;sBAoHA,WAAW;uBAAC,kCAAkC;;;ME3JpC,oBAAoB,CAAA;8GAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAApB,oBAAoB,EAAA,OAAA,EAAA,CAHrB,uBAAuB,CAAA,EAAA,OAAA,EAAA,CACvB,uBAAuB,CAAA,EAAA,CAAA,CAAA;AAEtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAHrB,uBAAuB,CAAA,EAAA,CAAA,CAAA;;2FAGtB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,uBAAuB,CAAC;oBAClC,OAAO,EAAE,CAAC,uBAAuB,CAAC;AACnC,iBAAA;;;ACND;;AAEG;;"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AXEvent, MXValueComponent, MXLookComponent, AXComponent, AXValuableComponent, AXFocusableComponent } from '@acorex/cdk/common';
|
|
2
|
-
import { NgStyle } from '@angular/common';
|
|
3
2
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { input, model, output, computed, afterNextRender, forwardRef, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
3
|
+
import { inject, DestroyRef, input, model, output, computed, afterNextRender, effect, forwardRef, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
5
4
|
import * as i1 from '@angular/forms';
|
|
6
5
|
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
6
|
import { classes } from 'polytype';
|
|
@@ -17,6 +16,10 @@ class AXOtpComponent extends classes((MXValueComponent), MXLookComponent) {
|
|
|
17
16
|
/** @ignore */
|
|
18
17
|
constructor() {
|
|
19
18
|
super();
|
|
19
|
+
this.destroyRef = inject(DestroyRef);
|
|
20
|
+
/**
|
|
21
|
+
* Character set allowed in each cell: digits (`number`), English letters only (`letter`), or any character (`text`).
|
|
22
|
+
*/
|
|
20
23
|
this.type = input('number', /* @ts-ignore */
|
|
21
24
|
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
22
25
|
/**
|
|
@@ -32,6 +35,26 @@ class AXOtpComponent extends classes((MXValueComponent), MXLookComponent) {
|
|
|
32
35
|
*/
|
|
33
36
|
this.length = model(/* @ts-ignore */
|
|
34
37
|
...(ngDevMode ? [undefined, { debugName: "length" }] : /* istanbul ignore next */ []));
|
|
38
|
+
/**
|
|
39
|
+
* Character displayed between digit groups (for example `-`). Omit or set empty to hide separators.
|
|
40
|
+
*/
|
|
41
|
+
this.separator = input(null, /* @ts-ignore */
|
|
42
|
+
...(ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []));
|
|
43
|
+
/**
|
|
44
|
+
* Zero-based input indices after which `separator` is shown.
|
|
45
|
+
*/
|
|
46
|
+
this.separatorAfter = input(null, /* @ts-ignore */
|
|
47
|
+
...(ngDevMode ? [{ debugName: "separatorAfter" }] : /* istanbul ignore next */ []));
|
|
48
|
+
/**
|
|
49
|
+
* Equal-sized digit groups (for example `2` on a 6-digit code → `12-34-56`). Used when `separatorAfter` is not set.
|
|
50
|
+
*/
|
|
51
|
+
this.separatorGroupSize = input(null, /* @ts-ignore */
|
|
52
|
+
...(ngDevMode ? [{ debugName: "separatorGroupSize" }] : /* istanbul ignore next */ []));
|
|
53
|
+
/**
|
|
54
|
+
* Variable group sizes that sum to `length` (for example `[2, 2, 2]` or `[3, 3]`). Used when `separatorAfter` is not set.
|
|
55
|
+
*/
|
|
56
|
+
this.separatorGroups = input(null, /* @ts-ignore */
|
|
57
|
+
...(ngDevMode ? [{ debugName: "separatorGroups" }] : /* istanbul ignore next */ []));
|
|
35
58
|
/**
|
|
36
59
|
* @event
|
|
37
60
|
* Emits an event when the OTP input is completed.
|
|
@@ -44,17 +67,53 @@ class AXOtpComponent extends classes((MXValueComponent), MXLookComponent) {
|
|
|
44
67
|
/**
|
|
45
68
|
* Holds the input values as a signal.
|
|
46
69
|
*/
|
|
47
|
-
this.inputs = computed(() =>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return Array(this.length())
|
|
51
|
-
.fill(1)
|
|
52
|
-
.map((x, i) => i);
|
|
53
|
-
}, /* @ts-ignore */
|
|
70
|
+
this.inputs = computed(() => Array(this.length())
|
|
71
|
+
.fill(1)
|
|
72
|
+
.map((x, i) => i), /* @ts-ignore */
|
|
54
73
|
...(ngDevMode ? [{ debugName: "inputs" }] : /* istanbul ignore next */ []));
|
|
74
|
+
/** @ignore */
|
|
75
|
+
this.separatorIndices = computed(() => {
|
|
76
|
+
const sep = this.separator();
|
|
77
|
+
if (!sep) {
|
|
78
|
+
return new Set();
|
|
79
|
+
}
|
|
80
|
+
const len = this.length() ?? 0;
|
|
81
|
+
if (len < 2) {
|
|
82
|
+
return new Set();
|
|
83
|
+
}
|
|
84
|
+
const after = this.separatorAfter();
|
|
85
|
+
if (after?.length) {
|
|
86
|
+
return new Set(after.filter((i) => i >= 0 && i < len - 1));
|
|
87
|
+
}
|
|
88
|
+
const groups = this.separatorGroups();
|
|
89
|
+
if (groups?.length) {
|
|
90
|
+
return new Set(this.indicesFromGroupSizes(groups, len));
|
|
91
|
+
}
|
|
92
|
+
const groupSize = this.separatorGroupSize();
|
|
93
|
+
if (groupSize != null && groupSize > 0) {
|
|
94
|
+
return new Set(this.indicesFromEqualGroupSize(groupSize, len));
|
|
95
|
+
}
|
|
96
|
+
const mid = Math.floor(len / 2) - 1;
|
|
97
|
+
return mid >= 0 ? new Set([mid]) : new Set();
|
|
98
|
+
}, /* @ts-ignore */
|
|
99
|
+
...(ngDevMode ? [{ debugName: "separatorIndices" }] : /* istanbul ignore next */ []));
|
|
55
100
|
afterNextRender(() => {
|
|
56
|
-
this.
|
|
101
|
+
this.syncCellMetrics();
|
|
57
102
|
this.mapValueToInputs();
|
|
103
|
+
const host = this.getHostElement();
|
|
104
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
105
|
+
const observer = new ResizeObserver(() => this.syncCellMetrics());
|
|
106
|
+
observer.observe(host);
|
|
107
|
+
this.destroyRef.onDestroy(() => observer.disconnect());
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
effect(() => {
|
|
111
|
+
this.length();
|
|
112
|
+
this.separator();
|
|
113
|
+
this.separatorAfter();
|
|
114
|
+
this.separatorGroupSize();
|
|
115
|
+
this.separatorGroups();
|
|
116
|
+
queueMicrotask(() => this.syncCellMetrics());
|
|
58
117
|
});
|
|
59
118
|
}
|
|
60
119
|
/**
|
|
@@ -79,26 +138,61 @@ class AXOtpComponent extends classes((MXValueComponent), MXLookComponent) {
|
|
|
79
138
|
}
|
|
80
139
|
}
|
|
81
140
|
/** @ignore */
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
141
|
+
nativeInputType() {
|
|
142
|
+
return this.type() === 'number' ? 'number' : 'text';
|
|
143
|
+
}
|
|
144
|
+
/** @ignore */
|
|
145
|
+
inputMode() {
|
|
146
|
+
switch (this.type()) {
|
|
147
|
+
case 'number':
|
|
148
|
+
return 'numeric';
|
|
149
|
+
case 'letter':
|
|
150
|
+
return 'text';
|
|
151
|
+
default:
|
|
152
|
+
return null;
|
|
90
153
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
154
|
+
}
|
|
155
|
+
/** @ignore */
|
|
156
|
+
_handleOnInput(event, i) {
|
|
157
|
+
const target = event.target;
|
|
158
|
+
const inputs = this.getHostElement().querySelectorAll('.ax-input');
|
|
159
|
+
const raw = target.value.length > 1 ? target.value.slice(-1) : target.value;
|
|
160
|
+
const sanitized = this.sanitizeCellCharacter(raw);
|
|
161
|
+
if (sanitized === null) {
|
|
162
|
+
target.value = this.inputValues[i] ?? '';
|
|
163
|
+
return;
|
|
95
164
|
}
|
|
96
|
-
|
|
165
|
+
target.value = sanitized;
|
|
166
|
+
if (sanitized && inputs[i + 1]) {
|
|
97
167
|
inputs[i + 1].select();
|
|
98
168
|
}
|
|
99
|
-
this.inputValues[i] =
|
|
169
|
+
this.inputValues[i] = sanitized;
|
|
100
170
|
this._emitOnComplete();
|
|
101
171
|
}
|
|
172
|
+
sanitizeCellCharacter(value) {
|
|
173
|
+
if (!value) {
|
|
174
|
+
return '';
|
|
175
|
+
}
|
|
176
|
+
const char = value.slice(-1);
|
|
177
|
+
switch (this.type()) {
|
|
178
|
+
case 'number':
|
|
179
|
+
return /^\d$/.test(char) ? char : null;
|
|
180
|
+
case 'letter':
|
|
181
|
+
return /^[a-zA-Z]$/.test(char) ? char : null;
|
|
182
|
+
default:
|
|
183
|
+
return char;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
extractPasteCharacters(data) {
|
|
187
|
+
switch (this.type()) {
|
|
188
|
+
case 'number':
|
|
189
|
+
return data.replace(/\D/g, '');
|
|
190
|
+
case 'letter':
|
|
191
|
+
return data.replace(/[^a-zA-Z]/g, '');
|
|
192
|
+
default:
|
|
193
|
+
return data;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
102
196
|
/** @ignore */
|
|
103
197
|
internalSetValue(value) {
|
|
104
198
|
if (value) {
|
|
@@ -120,18 +214,50 @@ class AXOtpComponent extends classes((MXValueComponent), MXLookComponent) {
|
|
|
120
214
|
return !!this.displayValue(i);
|
|
121
215
|
}
|
|
122
216
|
/** @ignore */
|
|
217
|
+
shouldShowSeparatorAfter(index) {
|
|
218
|
+
return this.separatorIndices().has(index);
|
|
219
|
+
}
|
|
220
|
+
indicesFromEqualGroupSize(groupSize, length) {
|
|
221
|
+
const indices = [];
|
|
222
|
+
for (let i = groupSize - 1; i < length - 1; i += groupSize) {
|
|
223
|
+
indices.push(i);
|
|
224
|
+
}
|
|
225
|
+
return indices;
|
|
226
|
+
}
|
|
227
|
+
indicesFromGroupSizes(groupSizes, length) {
|
|
228
|
+
const indices = [];
|
|
229
|
+
let cursor = 0;
|
|
230
|
+
for (let g = 0; g < groupSizes.length - 1; g++) {
|
|
231
|
+
const size = groupSizes[g];
|
|
232
|
+
if (size <= 0) {
|
|
233
|
+
continue;
|
|
234
|
+
}
|
|
235
|
+
cursor += size;
|
|
236
|
+
if (cursor >= length) {
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
indices.push(cursor - 1);
|
|
240
|
+
}
|
|
241
|
+
return indices;
|
|
242
|
+
}
|
|
243
|
+
/** @ignore */
|
|
123
244
|
_maskCharacter() {
|
|
124
245
|
return this.mode() === 'dot' ? '•' : '*';
|
|
125
246
|
}
|
|
126
247
|
/** @ignore */
|
|
127
|
-
|
|
128
|
-
const
|
|
129
|
-
const
|
|
130
|
-
|
|
248
|
+
syncCellMetrics() {
|
|
249
|
+
const host = this.getHostElement();
|
|
250
|
+
const cell = host.querySelector('.ax-otp-input-cell');
|
|
251
|
+
const size = cell?.clientWidth ?? 0;
|
|
252
|
+
if (size <= 0) {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
host.style.setProperty('--ax-comp-otp-cell-size', `${size}px`);
|
|
256
|
+
host.style.setProperty('--font-size', `${size * 0.5}px`);
|
|
131
257
|
}
|
|
132
258
|
/** @ignore */
|
|
133
259
|
_handleOnKeyDown(event, i) {
|
|
134
|
-
const inputs = this.getHostElement().querySelectorAll('
|
|
260
|
+
const inputs = this.getHostElement().querySelectorAll('.ax-input');
|
|
135
261
|
switch (event.key) {
|
|
136
262
|
case 'Backspace':
|
|
137
263
|
if (this.readonly || this.disabled)
|
|
@@ -173,22 +299,28 @@ class AXOtpComponent extends classes((MXValueComponent), MXLookComponent) {
|
|
|
173
299
|
}
|
|
174
300
|
/** @ignore */
|
|
175
301
|
_handleOnPaste(event) {
|
|
176
|
-
const inputs = this.getHostElement().querySelectorAll('
|
|
177
|
-
const data = event.clipboardData
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
302
|
+
const inputs = this.getHostElement().querySelectorAll('.ax-input');
|
|
303
|
+
const data = this.extractPasteCharacters(event.clipboardData?.getData('text') ?? '');
|
|
304
|
+
if (!data.length) {
|
|
305
|
+
event.preventDefault();
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
inputs[inputs.length - 1].focus();
|
|
309
|
+
this.inputValues = [];
|
|
310
|
+
for (let i = 0; i < inputs.length; i++) {
|
|
311
|
+
const char = data[i] ?? '';
|
|
312
|
+
const sanitized = char ? this.sanitizeCellCharacter(char) : '';
|
|
313
|
+
this.inputValues[i] = sanitized === null ? '' : sanitized;
|
|
314
|
+
if (inputs[i]) {
|
|
315
|
+
inputs[i].value = this.inputValues[i];
|
|
184
316
|
}
|
|
185
|
-
this._emitOnComplete();
|
|
186
317
|
}
|
|
318
|
+
this._emitOnComplete();
|
|
187
319
|
event.preventDefault();
|
|
188
320
|
}
|
|
189
321
|
/** @ignore */
|
|
190
322
|
_handleFocus(i) {
|
|
191
|
-
const inputs = this.getHostElement().querySelectorAll('
|
|
323
|
+
const inputs = this.getHostElement().querySelectorAll('.ax-input');
|
|
192
324
|
inputs[i].select();
|
|
193
325
|
}
|
|
194
326
|
/** @ignore */
|
|
@@ -206,7 +338,7 @@ class AXOtpComponent extends classes((MXValueComponent), MXLookComponent) {
|
|
|
206
338
|
});
|
|
207
339
|
}
|
|
208
340
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXOtpComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
209
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AXOtpComponent, isStandalone: true, selector: "ax-otp", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: false, isRequired: false, transformFunction: null }, look: { classPropertyName: "look", publicName: "look", isSignal: false, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: false, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { stateChange: "stateChange", disabledChange: "disabledChange", length: "lengthChange", onCompleted: "onCompleted" }, providers: [
|
|
341
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AXOtpComponent, isStandalone: true, selector: "ax-otp", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: false, isRequired: false, transformFunction: null }, look: { classPropertyName: "look", publicName: "look", isSignal: false, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: false, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, separatorAfter: { classPropertyName: "separatorAfter", publicName: "separatorAfter", isSignal: true, isRequired: false, transformFunction: null }, separatorGroupSize: { classPropertyName: "separatorGroupSize", publicName: "separatorGroupSize", isSignal: true, isRequired: false, transformFunction: null }, separatorGroups: { classPropertyName: "separatorGroups", publicName: "separatorGroups", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { stateChange: "stateChange", disabledChange: "disabledChange", length: "lengthChange", onCompleted: "onCompleted" }, providers: [
|
|
210
342
|
{
|
|
211
343
|
provide: NG_VALUE_ACCESSOR,
|
|
212
344
|
useExisting: forwardRef(() => AXOtpComponent),
|
|
@@ -218,7 +350,7 @@ class AXOtpComponent extends classes((MXValueComponent), MXLookComponent) {
|
|
|
218
350
|
},
|
|
219
351
|
{ provide: AXValuableComponent, useExisting: AXOtpComponent },
|
|
220
352
|
{ provide: AXFocusableComponent, useExisting: AXOtpComponent },
|
|
221
|
-
], usesInheritance: true, ngImport: i0, template: "<div
|
|
353
|
+
], usesInheritance: true, ngImport: i0, template: "<div dir=\"ltr\" (paste)=\"_handleOnPaste($event)\" class=\"ax-otp-input-container\">\n @for (input of inputs(); let i = $index; track i) {\n <div\n class=\"ax-otp-input-cell ax-editor-container ax-default {{ look }}\"\n [class.ax-state-disabled]=\"disabled\"\n [class.ax-state-error]=\"state === 'error'\"\n [class.ax-state-success]=\"state === 'success'\"\n >\n <input\n [name]=\"name\"\n [type]=\"nativeInputType()\"\n [attr.inputmode]=\"inputMode()\"\n autocapitalize=\"off\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n maxlength=\"1\"\n class=\"ax-input\"\n [class.ax-otp-masked]=\"isMasked()\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n (focus)=\"_handleFocus(i)\"\n [ngModel]=\"displayValue(i)\"\n [attr.disabled]=\"disabled\"\n (input)=\"_handleOnInput($event, i)\"\n [class.ax-state-disabled]=\"disabled\"\n (keydown)=\"_handleOnKeyDown($event, i)\"\n [class.ax-state-error]=\"state === 'error'\"\n [class.ax-state-success]=\"state === 'success'\"\n />\n @if (isMasked() && hasValue(i)) {\n <span\n class=\"ax-otp-mask\"\n [class.ax-otp-mask-dot]=\"mode() === 'dot'\"\n [class.ax-otp-mask-star]=\"mode() === 'star'\"\n aria-hidden=\"true\"\n >{{ _maskCharacter() }}</span>\n }\n </div>\n @if (shouldShowSeparatorAfter(i)) {\n <span class=\"ax-otp-separator\" aria-hidden=\"true\">{{ separator() }}</span>\n }\n }\n</div>\n<ng-content select=\"ax-validation-rule\"></ng-content>\n<div class=\"ax-error-container\"></div>\n", styles: ["@layer properties;@layer components{ax-otp{display:block}ax-otp .ax-otp-input-container{position:relative;display:flex;width:100%;min-width:calc(var(--spacing, .25rem) * 0);align-items:stretch;gap:calc(var(--spacing, .25rem) * 2)}ax-otp .ax-otp-separator{flex-shrink:0;align-self:center;--tw-leading: 1;line-height:1;opacity:70%;-webkit-user-select:none;user-select:none;font-size:var(--font-size, 2rem)}ax-otp .ax-otp-input-cell{position:relative;min-height:calc(var(--spacing, .25rem) * 0);min-width:calc(var(--spacing, .25rem) * 0);flex:1;flex-basis:calc(var(--spacing, .25rem) * 0);aspect-ratio:1 / 1}ax-otp .ax-otp-input-cell.ax-editor-container{display:flex!important;height:auto!important;min-height:calc(var(--spacing, .25rem) * 0)!important;padding:calc(var(--spacing, .25rem) * 0)!important;align-items:stretch;overflow:initial}ax-otp .ax-otp-input-cell.ax-editor-container .ax-otp-mask{pointer-events:none;position:absolute;inset:calc(var(--spacing, .25rem) * 0);display:grid;place-items:center;--tw-leading: 1;line-height:1;font-size:var(--font-size, 2rem)}ax-otp .ax-otp-input-cell.ax-editor-container .ax-otp-mask.ax-otp-mask-star{font-size:calc(var(--font-size, 2rem) * .85);transform:translateY(.12em)}ax-otp .ax-otp-input-cell.ax-editor-container .ax-input{height:100%;min-height:calc(var(--spacing, .25rem) * 0);width:100%;overflow:hidden;padding:calc(var(--spacing, .25rem) * 0);text-align:center;font-size:var(--font-size, 2rem)}ax-otp .ax-otp-input-cell.ax-editor-container .ax-input.ax-otp-masked{color:transparent;caret-color:transparent}ax-otp .ax-otp-input-cell.ax-editor-container .ax-input.ax-otp-masked::selection{background-color:transparent;color:transparent}ax-otp .ax-otp-input-cell.ax-editor-container .ax-input:read-only{cursor:text;opacity:75%}ax-otp .ax-otp-input-cell.ax-editor-container .ax-input:disabled{cursor:not-allowed;opacity:50%}ax-otp .ax-otp-input-cell.ax-editor-container .ax-input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}ax-otp .ax-otp-input-cell.ax-editor-container .ax-input[type=number]::-webkit-inner-spin-button,ax-otp .ax-otp-input-cell.ax-editor-container .ax-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}}@property --tw-leading{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading: initial}}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
222
354
|
}
|
|
223
355
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXOtpComponent, decorators: [{
|
|
224
356
|
type: Component,
|
|
@@ -234,8 +366,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
234
366
|
},
|
|
235
367
|
{ provide: AXValuableComponent, useExisting: AXOtpComponent },
|
|
236
368
|
{ provide: AXFocusableComponent, useExisting: AXOtpComponent },
|
|
237
|
-
], imports: [
|
|
238
|
-
}], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], length: [{ type: i0.Input, args: [{ isSignal: true, alias: "length", required: false }] }, { type: i0.Output, args: ["lengthChange"] }], onCompleted: [{ type: i0.Output, args: ["onCompleted"] }] } });
|
|
369
|
+
], imports: [FormsModule], template: "<div dir=\"ltr\" (paste)=\"_handleOnPaste($event)\" class=\"ax-otp-input-container\">\n @for (input of inputs(); let i = $index; track i) {\n <div\n class=\"ax-otp-input-cell ax-editor-container ax-default {{ look }}\"\n [class.ax-state-disabled]=\"disabled\"\n [class.ax-state-error]=\"state === 'error'\"\n [class.ax-state-success]=\"state === 'success'\"\n >\n <input\n [name]=\"name\"\n [type]=\"nativeInputType()\"\n [attr.inputmode]=\"inputMode()\"\n autocapitalize=\"off\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n maxlength=\"1\"\n class=\"ax-input\"\n [class.ax-otp-masked]=\"isMasked()\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n (focus)=\"_handleFocus(i)\"\n [ngModel]=\"displayValue(i)\"\n [attr.disabled]=\"disabled\"\n (input)=\"_handleOnInput($event, i)\"\n [class.ax-state-disabled]=\"disabled\"\n (keydown)=\"_handleOnKeyDown($event, i)\"\n [class.ax-state-error]=\"state === 'error'\"\n [class.ax-state-success]=\"state === 'success'\"\n />\n @if (isMasked() && hasValue(i)) {\n <span\n class=\"ax-otp-mask\"\n [class.ax-otp-mask-dot]=\"mode() === 'dot'\"\n [class.ax-otp-mask-star]=\"mode() === 'star'\"\n aria-hidden=\"true\"\n >{{ _maskCharacter() }}</span>\n }\n </div>\n @if (shouldShowSeparatorAfter(i)) {\n <span class=\"ax-otp-separator\" aria-hidden=\"true\">{{ separator() }}</span>\n }\n }\n</div>\n<ng-content select=\"ax-validation-rule\"></ng-content>\n<div class=\"ax-error-container\"></div>\n", styles: ["@layer properties;@layer components{ax-otp{display:block}ax-otp .ax-otp-input-container{position:relative;display:flex;width:100%;min-width:calc(var(--spacing, .25rem) * 0);align-items:stretch;gap:calc(var(--spacing, .25rem) * 2)}ax-otp .ax-otp-separator{flex-shrink:0;align-self:center;--tw-leading: 1;line-height:1;opacity:70%;-webkit-user-select:none;user-select:none;font-size:var(--font-size, 2rem)}ax-otp .ax-otp-input-cell{position:relative;min-height:calc(var(--spacing, .25rem) * 0);min-width:calc(var(--spacing, .25rem) * 0);flex:1;flex-basis:calc(var(--spacing, .25rem) * 0);aspect-ratio:1 / 1}ax-otp .ax-otp-input-cell.ax-editor-container{display:flex!important;height:auto!important;min-height:calc(var(--spacing, .25rem) * 0)!important;padding:calc(var(--spacing, .25rem) * 0)!important;align-items:stretch;overflow:initial}ax-otp .ax-otp-input-cell.ax-editor-container .ax-otp-mask{pointer-events:none;position:absolute;inset:calc(var(--spacing, .25rem) * 0);display:grid;place-items:center;--tw-leading: 1;line-height:1;font-size:var(--font-size, 2rem)}ax-otp .ax-otp-input-cell.ax-editor-container .ax-otp-mask.ax-otp-mask-star{font-size:calc(var(--font-size, 2rem) * .85);transform:translateY(.12em)}ax-otp .ax-otp-input-cell.ax-editor-container .ax-input{height:100%;min-height:calc(var(--spacing, .25rem) * 0);width:100%;overflow:hidden;padding:calc(var(--spacing, .25rem) * 0);text-align:center;font-size:var(--font-size, 2rem)}ax-otp .ax-otp-input-cell.ax-editor-container .ax-input.ax-otp-masked{color:transparent;caret-color:transparent}ax-otp .ax-otp-input-cell.ax-editor-container .ax-input.ax-otp-masked::selection{background-color:transparent;color:transparent}ax-otp .ax-otp-input-cell.ax-editor-container .ax-input:read-only{cursor:text;opacity:75%}ax-otp .ax-otp-input-cell.ax-editor-container .ax-input:disabled{cursor:not-allowed;opacity:50%}ax-otp .ax-otp-input-cell.ax-editor-container .ax-input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}ax-otp .ax-otp-input-cell.ax-editor-container .ax-input[type=number]::-webkit-inner-spin-button,ax-otp .ax-otp-input-cell.ax-editor-container .ax-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}}@property --tw-leading{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading: initial}}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"] }]
|
|
370
|
+
}], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], length: [{ type: i0.Input, args: [{ isSignal: true, alias: "length", required: false }] }, { type: i0.Output, args: ["lengthChange"] }], separator: [{ type: i0.Input, args: [{ isSignal: true, alias: "separator", required: false }] }], separatorAfter: [{ type: i0.Input, args: [{ isSignal: true, alias: "separatorAfter", required: false }] }], separatorGroupSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "separatorGroupSize", required: false }] }], separatorGroups: [{ type: i0.Input, args: [{ isSignal: true, alias: "separatorGroups", required: false }] }], onCompleted: [{ type: i0.Output, args: ["onCompleted"] }] } });
|
|
239
371
|
|
|
240
372
|
class AXOtpModule {
|
|
241
373
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXOtpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|