@acorex/components 22.1.7 → 22.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/fesm2022/acorex-components-accordion.mjs +2 -2
  2. package/fesm2022/acorex-components-accordion.mjs.map +1 -1
  3. package/fesm2022/acorex-components-button-group.mjs +12 -5
  4. package/fesm2022/acorex-components-button-group.mjs.map +1 -1
  5. package/fesm2022/acorex-components-button.mjs +2 -2
  6. package/fesm2022/acorex-components-button.mjs.map +1 -1
  7. package/fesm2022/acorex-components-combo-box.mjs +43 -13
  8. package/fesm2022/acorex-components-combo-box.mjs.map +1 -1
  9. package/fesm2022/{acorex-components-conversation-acorex-components-conversation-EiqMwr9v.mjs → acorex-components-conversation-acorex-components-conversation-Cl_dlCTX.mjs} +1684 -881
  10. package/fesm2022/acorex-components-conversation-acorex-components-conversation-Cl_dlCTX.mjs.map +1 -0
  11. package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-COUB9zrM.mjs +50 -0
  12. package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-COUB9zrM.mjs.map +1 -0
  13. package/fesm2022/{acorex-components-conversation-image-picker-editor-dialog.component-QVs1XWYf.mjs → acorex-components-conversation-image-picker-editor-dialog.component-AO1evM19.mjs} +4 -4
  14. package/fesm2022/acorex-components-conversation-image-picker-editor-dialog.component-AO1evM19.mjs.map +1 -0
  15. package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-DuRLMEa3.mjs → acorex-components-conversation-picker-rename-file-dialog.component-_F-fv3Ti.mjs} +3 -3
  16. package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-DuRLMEa3.mjs.map → acorex-components-conversation-picker-rename-file-dialog.component-_F-fv3Ti.mjs.map} +1 -1
  17. package/fesm2022/acorex-components-conversation.mjs +1 -1
  18. package/fesm2022/acorex-components-data-pager.mjs +4 -4
  19. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  20. package/fesm2022/acorex-components-data-table.mjs +34 -10
  21. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  22. package/fesm2022/acorex-components-datetime-picker.mjs +1 -1
  23. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  24. package/fesm2022/acorex-components-dialog.mjs +1 -1
  25. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  26. package/fesm2022/acorex-components-dropdown-button.mjs +1 -1
  27. package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
  28. package/fesm2022/acorex-components-fab.mjs +2 -2
  29. package/fesm2022/acorex-components-fab.mjs.map +1 -1
  30. package/fesm2022/acorex-components-file-viewer.mjs +29 -11
  31. package/fesm2022/acorex-components-file-viewer.mjs.map +1 -1
  32. package/fesm2022/acorex-components-flow-chart.mjs +1 -1
  33. package/fesm2022/acorex-components-flow-chart.mjs.map +1 -1
  34. package/fesm2022/acorex-components-form.mjs +1 -1
  35. package/fesm2022/acorex-components-form.mjs.map +1 -1
  36. package/fesm2022/acorex-components-image-editor.mjs +7 -7
  37. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  38. package/fesm2022/acorex-components-loading-dialog.mjs +1 -1
  39. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  40. package/fesm2022/acorex-components-lookup.mjs +168 -41
  41. package/fesm2022/acorex-components-lookup.mjs.map +1 -1
  42. package/fesm2022/acorex-components-notification.mjs +1 -1
  43. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  44. package/fesm2022/acorex-components-paint.mjs +1 -1
  45. package/fesm2022/acorex-components-paint.mjs.map +1 -1
  46. package/fesm2022/acorex-components-popup.mjs +1 -1
  47. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  48. package/fesm2022/acorex-components-query-builder.mjs +1 -1
  49. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  50. package/fesm2022/acorex-components-rest-api-generator.mjs +4 -4
  51. package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
  52. package/fesm2022/acorex-components-rrule.mjs +1 -1
  53. package/fesm2022/acorex-components-rrule.mjs.map +1 -1
  54. package/fesm2022/acorex-components-scheduler-picker.mjs +5 -5
  55. package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
  56. package/fesm2022/acorex-components-scheduler.mjs +1 -1
  57. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  58. package/fesm2022/acorex-components-selection-list.mjs +1 -2
  59. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  60. package/fesm2022/acorex-components-tabs.mjs +29 -7
  61. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  62. package/fesm2022/acorex-components-tree-view.mjs +1 -1
  63. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  64. package/package.json +3 -3
  65. package/types/acorex-components-button-group.d.ts +4 -0
  66. package/types/acorex-components-button.d.ts +1 -1
  67. package/types/acorex-components-combo-box.d.ts +13 -0
  68. package/types/acorex-components-conversation.d.ts +135 -126
  69. package/types/acorex-components-data-table.d.ts +6 -1
  70. package/types/acorex-components-file-viewer.d.ts +1 -0
  71. package/types/acorex-components-lookup.d.ts +13 -0
  72. package/types/acorex-components-selection-list.d.ts +1 -1
  73. package/types/acorex-components-tabs.d.ts +3 -0
  74. package/fesm2022/acorex-components-conversation-acorex-components-conversation-EiqMwr9v.mjs.map +0 -1
  75. package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-D4ca9Mvt.mjs +0 -51
  76. package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-D4ca9Mvt.mjs.map +0 -1
  77. package/fesm2022/acorex-components-conversation-image-picker-editor-dialog.component-QVs1XWYf.mjs.map +0 -1
  78. package/fesm2022/acorex-components-conversation-open-composer-picker-for-files-C7BnTUw2.mjs +0 -210
  79. package/fesm2022/acorex-components-conversation-open-composer-picker-for-files-C7BnTUw2.mjs.map +0 -1
@@ -132,7 +132,7 @@ class AXLoadingDialogComponent extends MXBaseComponent {
132
132
  return false;
133
133
  }
134
134
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXLoadingDialogComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
135
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXLoadingDialogComponent, isStandalone: true, selector: "ax-loading-dialog", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, onClose: { classPropertyName: "onClose", publicName: "onClose", isSignal: true, isRequired: false, transformFunction: null }, __popup__: { classPropertyName: "__popup__", publicName: "__popup__", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{ provide: AXComponent, useExisting: AXLoadingDialogComponent }], usesInheritance: true, ngImport: i0, template: "@if (!__popup__()) {\n <ax-title>{{ dialogTitle() }}</ax-title>\n}\n\n<ax-progress-bar [mode]=\"data().mode\" [progress]=\"progressValue()\" [color]=\"progressColor()\"></ax-progress-bar>\n<div class=\"progress-decorators\">\n <div>{{ progressText() }}</div>\n <div>{{ progressStatus() }}</div>\n</div>\n@if (!__popup__() || data().buttons?.length) {\n<ax-footer>\n <div class=\"button-wrapper\">\n @for (button of data().buttons; track $index) {\n <ax-button\n [text]=\"button.text | translate | async\"\n [tabindex]=\"$index\"\n [axHotkey]=\"button.hotkey\"\n [axAutoFocus]=\"_hasAutoFocus(button)\"\n (onClick)=\"_handleButtonClick(button)\"\n [look]=\"button.look\"\n [disabled]=\"button.disabled\"\n [color]=\"button.color\"\n class=\"button-item\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n </div>\n</ax-footer>\n}\n", styles: ["@layer properties;@layer components{ax-loading-dialog{display:flex;width:100%;flex-direction:column;gap:calc(var(--spacing, .25rem) * 2);padding:calc(var(--spacing, .25rem) * 4)}ax-loading-dialog ax-title{margin-bottom:calc(var(--spacing, .25rem) * 2);font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ));--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500)}ax-loading-dialog .progress-decorators{display:flex;justify-content:space-between;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}ax-loading-dialog ax-footer{justify-content:flex-end;padding-top:calc(var(--spacing, .25rem) * 3)}:is(ax-loading-dialog,.ax-loading-dialog-panel) .button-wrapper{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 2)}:is(ax-loading-dialog,.ax-loading-dialog-panel) .button-item{display:flex;flex:1}}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial}}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "component", type: AXProgressBarComponent, selector: "ax-progress-bar", inputs: ["color", "mode", "progress", "height"], outputs: ["ValueChange", "sizeChange"] }, { kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "directive", type: AXHotkeyDirective, selector: "[axHotkey]", inputs: ["axHotkey"] }, { kind: "directive", type: AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: ["axAutoFocus", "axAutoFocusTime"] }, { kind: "component", type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
135
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXLoadingDialogComponent, isStandalone: true, selector: "ax-loading-dialog", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, onClose: { classPropertyName: "onClose", publicName: "onClose", isSignal: true, isRequired: false, transformFunction: null }, __popup__: { classPropertyName: "__popup__", publicName: "__popup__", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{ provide: AXComponent, useExisting: AXLoadingDialogComponent }], usesInheritance: true, ngImport: i0, template: "@if (!__popup__()) {\n <ax-title>{{ dialogTitle() }}</ax-title>\n}\n\n<ax-progress-bar [mode]=\"data().mode\" [progress]=\"progressValue()\" [color]=\"progressColor()\"></ax-progress-bar>\n<div class=\"progress-decorators\">\n <div>{{ progressText() }}</div>\n <div>{{ progressStatus() }}</div>\n</div>\n@if (!__popup__() || data().buttons?.length) {\n<ax-footer>\n <div class=\"button-wrapper\">\n @for (button of data().buttons; track $index) {\n <ax-button\n [text]=\"button.text | translate | async\"\n [tabindex]=\"$index\"\n [axHotkey]=\"button.hotkey\"\n [axAutoFocus]=\"_hasAutoFocus(button)\"\n (onClick)=\"_handleButtonClick(button)\"\n [look]=\"button.look\"\n [disabled]=\"button.disabled\"\n [color]=\"button.color\"\n class=\"button-item\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n </div>\n</ax-footer>\n}\n", styles: ["@layer properties;@layer components{ax-loading-dialog{display:flex;width:100%;flex-direction:column;gap:calc(var(--spacing, .25rem) * 2);padding:calc(var(--spacing, .25rem) * 4)}ax-loading-dialog ax-title{margin-bottom:calc(var(--spacing, .25rem) * 2);font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ));--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500)}ax-loading-dialog .progress-decorators{display:flex;justify-content:space-between;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}ax-loading-dialog ax-footer{justify-content:flex-end;padding-top:calc(var(--spacing, .25rem) * 3)}:is(ax-loading-dialog,.ax-loading-dialog-panel) .button-wrapper{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 2)}:is(ax-loading-dialog,.ax-loading-dialog-panel) .button-item{display:flex;flex:1}}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial}}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "component", type: AXProgressBarComponent, selector: "ax-progress-bar", inputs: ["color", "mode", "progress", "height"], outputs: ["ValueChange", "sizeChange"] }, { kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "directive", type: AXHotkeyDirective, selector: "[axHotkey]", inputs: ["axHotkey"] }, { kind: "directive", type: AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: ["axAutoFocus", "axAutoFocusTime"] }, { kind: "component", type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
136
136
  }
137
137
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXLoadingDialogComponent, decorators: [{
138
138
  type: Component,
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-loading-dialog.mjs","sources":["../../../../packages/components/loading-dialog/src/lib/loading-dialog.component.ts","../../../../packages/components/loading-dialog/src/lib/loading-dialog.component.html","../../../../packages/components/loading-dialog/src/lib/loading-dialog.module.ts","../../../../packages/components/loading-dialog/src/lib/loading-dialog.service.ts","../../../../packages/components/loading-dialog/src/acorex-components-loading-dialog.ts"],"sourcesContent":["import {\n AXAutoFocusDirective,\n AXComponent,\n AXHotkeyDirective,\n AXStyleColorType,\n MXBaseComponent,\n} from '@acorex/cdk/common';\nimport { AXButtonComponent } from '@acorex/components/button';\nimport { AXDecoratorGenericComponent } from '@acorex/components/decorators';\nimport { AXLoadingComponent } from '@acorex/components/loading';\nimport type { AXPopupRef } from '@acorex/components/popup';\nimport { AXProgressBarComponent } from '@acorex/components/progress-bar';\nimport { AXTranslatorPipe } from '@acorex/core/translation';\nimport { AsyncPipe } from '@angular/common';\nimport { Component, OnInit, ViewEncapsulation, input, signal } from '@angular/core';\nimport { AXLoadingDialogButtonItem, AXLoadingDialogConfig } from './loading-dialog.class';\n\n/**\n * Represents a loading dialog component with custom styles and encapsulation.\n * @category components\n */\n@Component({\n selector: 'ax-loading-dialog',\n templateUrl: './loading-dialog.component.html',\n styleUrls: ['./loading-dialog.component.css'],\n\n encapsulation: ViewEncapsulation.None,\n imports: [\n AXDecoratorGenericComponent,\n AXProgressBarComponent,\n AXButtonComponent,\n AXHotkeyDirective,\n AXAutoFocusDirective,\n AXLoadingComponent,\n AXTranslatorPipe,\n AsyncPipe,\n ],\n providers: [{ provide: AXComponent, useExisting: AXLoadingDialogComponent }],\n})\nexport class AXLoadingDialogComponent extends MXBaseComponent implements OnInit {\n /** Loading dialog configuration data */\n data = input.required<AXLoadingDialogConfig>();\n\n /** Callback function to close the dialog */\n onClose = input<() => void>();\n\n /**\n * Injected by {@link AXPopupComponent} when this dialog is opened via {@link AXPopupService}.\n * @internal\n */\n readonly __popup__ = input<AXPopupRef | undefined>();\n\n /** @ignore */\n protected progressText = signal('');\n\n /** @ignore */\n protected progressStatus = signal('');\n\n /** @ignore */\n protected progressColor = signal<AXStyleColorType>('primary');\n\n /** @ignore */\n protected dialogTitle = signal('');\n\n /** @ignore */\n protected progressValue = signal(0);\n\n override ngOnInit(): void {\n super.ngOnInit();\n const config = this.data();\n this.progressText.set(config.text ?? '');\n this.progressStatus.set(config.status ?? '');\n this.progressColor.set(config.progressColor ?? 'primary');\n this.dialogTitle.set(config.title ?? '');\n this.progressValue.set(config.progressValue ?? 0);\n }\n\n /**\n * Closes the loading dialog.\n *\n * @returns void - No return value. The dialog is closed and control returns to the caller.\n */\n close() {\n this.onClose()?.();\n this.__popup__()?.close();\n }\n\n /**\n * Sets the displayed progress text inside the dialog.\n *\n * @param text The text to display under the progress bar.\n * @returns void\n */\n setProgressText(text: string) {\n this.progressText.set(text);\n }\n\n /**\n * Sets the status text, typically representing the current step out of total steps (e.g., \"5/10\").\n *\n * @param status The status text to display.\n * @returns void\n */\n setProgressStatus(status: string) {\n this.progressStatus.set(status);\n }\n\n /**\n * Sets the color used by the progress indicator.\n *\n * @param color The color token to apply to the progress UI.\n * @returns void\n */\n setProgressColor(color: AXStyleColorType) {\n this.progressColor.set(color);\n }\n\n /**\n * Sets the dialog title text.\n *\n * @param text The title text to display at the top of the dialog.\n * @returns void\n */\n setDialogTitle(text: string) {\n this.dialogTitle.set(text);\n this.__popup__()?.setTitle(text);\n }\n\n /**\n * Sets the numeric progress value.\n *\n * @param value A number in the range 0–100 representing the current progress.\n * @returns void\n */\n setProgressValue(value: number) {\n this.progressValue.set(value);\n }\n\n /** @ignore */\n protected _handleButtonClick(button: AXLoadingDialogButtonItem) {\n if (button.onClick) {\n button.onClick({ source: button });\n }\n }\n\n /** @ignore */\n protected _hasAutoFocus(button: AXLoadingDialogButtonItem) {\n const buttons = this.data().buttons;\n if (!buttons || buttons.length === 0) return false;\n\n const autoFocusItem = buttons.find((item) => item.autofocus === true);\n if (autoFocusItem && autoFocusItem.text === button.text) {\n return true;\n }\n if (!autoFocusItem) {\n if (buttons.length > 0) {\n buttons[0].autofocus = true;\n return buttons[0].text === button.text;\n }\n }\n return false;\n }\n}\n","@if (!__popup__()) {\n <ax-title>{{ dialogTitle() }}</ax-title>\n}\n\n<ax-progress-bar [mode]=\"data().mode\" [progress]=\"progressValue()\" [color]=\"progressColor()\"></ax-progress-bar>\n<div class=\"progress-decorators\">\n <div>{{ progressText() }}</div>\n <div>{{ progressStatus() }}</div>\n</div>\n@if (!__popup__() || data().buttons?.length) {\n<ax-footer>\n <div class=\"button-wrapper\">\n @for (button of data().buttons; track $index) {\n <ax-button\n [text]=\"button.text | translate | async\"\n [tabindex]=\"$index\"\n [axHotkey]=\"button.hotkey\"\n [axAutoFocus]=\"_hasAutoFocus(button)\"\n (onClick)=\"_handleButtonClick(button)\"\n [look]=\"button.look\"\n [disabled]=\"button.disabled\"\n [color]=\"button.color\"\n class=\"button-item\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n </div>\n</ax-footer>\n}\n","import { NgModule } from '@angular/core';\nimport { AXLoadingDialogComponent } from './loading-dialog.component';\n\n@NgModule({\n imports: [AXLoadingDialogComponent],\n exports: [AXLoadingDialogComponent],\n})\nexport class AXLoadingDialogModule {}\n","import { AXStyleColorType } from '@acorex/cdk/common';\nimport { AXPopupRef, AXPopupService } from '@acorex/components/popup';\nimport { Injectable, inject } from '@angular/core';\nimport { AXLoadingDialogConfig, AXLoadingDialogRef } from './loading-dialog.class';\nimport { AXLoadingDialogComponent } from './loading-dialog.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXLoadingDialogService {\n private popupService = inject(AXPopupService);\n\n /**\n * Opens a loading dialog with the specified configuration.\n *\n * @param options Configuration for the loading dialog, including title, progress mode, and optional initial values.\n * @returns AXLoadingDialogRef - A reference with helper methods to control the dialog lifecycle and UI (close, setProgressValue, setProgressText, setDialogTitle, setProgressColor, setProgressStatus).\n */\n show(options: AXLoadingDialogConfig): AXLoadingDialogRef {\n let popupRef: AXPopupRef | null = null;\n const pending: Array<(instance: AXLoadingDialogComponent, popup: AXPopupRef) => void> = [];\n\n const run = (fn: (instance: AXLoadingDialogComponent, popup: AXPopupRef) => void) => {\n const instance = popupRef?.componentInstance as AXLoadingDialogComponent | undefined;\n if (popupRef && instance) {\n fn(instance, popupRef);\n return;\n }\n pending.push(fn);\n };\n\n this.popupService\n .openRef(AXLoadingDialogComponent, {\n title: options.title,\n size: options.size ?? 'sm',\n header: true,\n footer: !!options.buttons?.length,\n closeButton: false,\n closeOnEscape: false,\n closeOnBackdropClick: false,\n draggable: false,\n maximizable: false,\n buttons: {\n close: false,\n maximize: false,\n minimize: {\n enable: false,\n position: 'bottom-right',\n },\n },\n panelClass: ['ax-loading-dialog-panel', 'animate-fadeIn'],\n inputs: {\n data: options,\n },\n })\n .then((ref) => {\n popupRef = ref;\n const instance = ref.componentInstance as AXLoadingDialogComponent | undefined;\n if (!instance) {\n return;\n }\n pending.splice(0).forEach((fn) => fn(instance, ref));\n });\n\n return {\n close: () => run((_, popup) => popup.close()),\n setProgressValue: (value: number) => run((instance) => instance.setProgressValue(value)),\n setDialogTitle: (text: string) =>\n run((instance, popup) => {\n popup.setTitle(text);\n instance.setDialogTitle(text);\n }),\n setProgressText: (text: string) => run((instance) => instance.setProgressText(text)),\n setProgressStatus: (status: string) => run((instance) => instance.setProgressStatus(status)),\n setProgressColor: (color: AXStyleColorType) => run((instance) => instance.setProgressColor(color)),\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAiBA;;;AAGG;AAmBG,MAAO,wBAAyB,SAAQ,eAAe,CAAA;AAlB7D,IAAA,WAAA,GAAA;;;QAoBE,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ;iFAAyB;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C,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;ACRD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-loading-dialog.mjs","sources":["../../../../packages/components/loading-dialog/src/lib/loading-dialog.component.ts","../../../../packages/components/loading-dialog/src/lib/loading-dialog.component.html","../../../../packages/components/loading-dialog/src/lib/loading-dialog.module.ts","../../../../packages/components/loading-dialog/src/lib/loading-dialog.service.ts","../../../../packages/components/loading-dialog/src/acorex-components-loading-dialog.ts"],"sourcesContent":["import {\n AXAutoFocusDirective,\n AXComponent,\n AXHotkeyDirective,\n AXStyleColorType,\n MXBaseComponent,\n} from '@acorex/cdk/common';\nimport { AXButtonComponent } from '@acorex/components/button';\nimport { AXDecoratorGenericComponent } from '@acorex/components/decorators';\nimport { AXLoadingComponent } from '@acorex/components/loading';\nimport type { AXPopupRef } from '@acorex/components/popup';\nimport { AXProgressBarComponent } from '@acorex/components/progress-bar';\nimport { AXTranslatorPipe } from '@acorex/core/translation';\nimport { AsyncPipe } from '@angular/common';\nimport { Component, OnInit, ViewEncapsulation, input, signal } from '@angular/core';\nimport { AXLoadingDialogButtonItem, AXLoadingDialogConfig } from './loading-dialog.class';\n\n/**\n * Represents a loading dialog component with custom styles and encapsulation.\n * @category components\n */\n@Component({\n selector: 'ax-loading-dialog',\n templateUrl: './loading-dialog.component.html',\n styleUrls: ['./loading-dialog.component.css'],\n\n encapsulation: ViewEncapsulation.None,\n imports: [\n AXDecoratorGenericComponent,\n AXProgressBarComponent,\n AXButtonComponent,\n AXHotkeyDirective,\n AXAutoFocusDirective,\n AXLoadingComponent,\n AXTranslatorPipe,\n AsyncPipe,\n ],\n providers: [{ provide: AXComponent, useExisting: AXLoadingDialogComponent }],\n})\nexport class AXLoadingDialogComponent extends MXBaseComponent implements OnInit {\n /** Loading dialog configuration data */\n data = input.required<AXLoadingDialogConfig>();\n\n /** Callback function to close the dialog */\n onClose = input<() => void>();\n\n /**\n * Injected by {@link AXPopupComponent} when this dialog is opened via {@link AXPopupService}.\n * @internal\n */\n readonly __popup__ = input<AXPopupRef | undefined>();\n\n /** @ignore */\n protected progressText = signal('');\n\n /** @ignore */\n protected progressStatus = signal('');\n\n /** @ignore */\n protected progressColor = signal<AXStyleColorType>('primary');\n\n /** @ignore */\n protected dialogTitle = signal('');\n\n /** @ignore */\n protected progressValue = signal(0);\n\n override ngOnInit(): void {\n super.ngOnInit();\n const config = this.data();\n this.progressText.set(config.text ?? '');\n this.progressStatus.set(config.status ?? '');\n this.progressColor.set(config.progressColor ?? 'primary');\n this.dialogTitle.set(config.title ?? '');\n this.progressValue.set(config.progressValue ?? 0);\n }\n\n /**\n * Closes the loading dialog.\n *\n * @returns void - No return value. The dialog is closed and control returns to the caller.\n */\n close() {\n this.onClose()?.();\n this.__popup__()?.close();\n }\n\n /**\n * Sets the displayed progress text inside the dialog.\n *\n * @param text The text to display under the progress bar.\n * @returns void\n */\n setProgressText(text: string) {\n this.progressText.set(text);\n }\n\n /**\n * Sets the status text, typically representing the current step out of total steps (e.g., \"5/10\").\n *\n * @param status The status text to display.\n * @returns void\n */\n setProgressStatus(status: string) {\n this.progressStatus.set(status);\n }\n\n /**\n * Sets the color used by the progress indicator.\n *\n * @param color The color token to apply to the progress UI.\n * @returns void\n */\n setProgressColor(color: AXStyleColorType) {\n this.progressColor.set(color);\n }\n\n /**\n * Sets the dialog title text.\n *\n * @param text The title text to display at the top of the dialog.\n * @returns void\n */\n setDialogTitle(text: string) {\n this.dialogTitle.set(text);\n this.__popup__()?.setTitle(text);\n }\n\n /**\n * Sets the numeric progress value.\n *\n * @param value A number in the range 0–100 representing the current progress.\n * @returns void\n */\n setProgressValue(value: number) {\n this.progressValue.set(value);\n }\n\n /** @ignore */\n protected _handleButtonClick(button: AXLoadingDialogButtonItem) {\n if (button.onClick) {\n button.onClick({ source: button });\n }\n }\n\n /** @ignore */\n protected _hasAutoFocus(button: AXLoadingDialogButtonItem) {\n const buttons = this.data().buttons;\n if (!buttons || buttons.length === 0) return false;\n\n const autoFocusItem = buttons.find((item) => item.autofocus === true);\n if (autoFocusItem && autoFocusItem.text === button.text) {\n return true;\n }\n if (!autoFocusItem) {\n if (buttons.length > 0) {\n buttons[0].autofocus = true;\n return buttons[0].text === button.text;\n }\n }\n return false;\n }\n}\n","@if (!__popup__()) {\n <ax-title>{{ dialogTitle() }}</ax-title>\n}\n\n<ax-progress-bar [mode]=\"data().mode\" [progress]=\"progressValue()\" [color]=\"progressColor()\"></ax-progress-bar>\n<div class=\"progress-decorators\">\n <div>{{ progressText() }}</div>\n <div>{{ progressStatus() }}</div>\n</div>\n@if (!__popup__() || data().buttons?.length) {\n<ax-footer>\n <div class=\"button-wrapper\">\n @for (button of data().buttons; track $index) {\n <ax-button\n [text]=\"button.text | translate | async\"\n [tabindex]=\"$index\"\n [axHotkey]=\"button.hotkey\"\n [axAutoFocus]=\"_hasAutoFocus(button)\"\n (onClick)=\"_handleButtonClick(button)\"\n [look]=\"button.look\"\n [disabled]=\"button.disabled\"\n [color]=\"button.color\"\n class=\"button-item\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n </div>\n</ax-footer>\n}\n","import { NgModule } from '@angular/core';\nimport { AXLoadingDialogComponent } from './loading-dialog.component';\n\n@NgModule({\n imports: [AXLoadingDialogComponent],\n exports: [AXLoadingDialogComponent],\n})\nexport class AXLoadingDialogModule {}\n","import { AXStyleColorType } from '@acorex/cdk/common';\nimport { AXPopupRef, AXPopupService } from '@acorex/components/popup';\nimport { Injectable, inject } from '@angular/core';\nimport { AXLoadingDialogConfig, AXLoadingDialogRef } from './loading-dialog.class';\nimport { AXLoadingDialogComponent } from './loading-dialog.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXLoadingDialogService {\n private popupService = inject(AXPopupService);\n\n /**\n * Opens a loading dialog with the specified configuration.\n *\n * @param options Configuration for the loading dialog, including title, progress mode, and optional initial values.\n * @returns AXLoadingDialogRef - A reference with helper methods to control the dialog lifecycle and UI (close, setProgressValue, setProgressText, setDialogTitle, setProgressColor, setProgressStatus).\n */\n show(options: AXLoadingDialogConfig): AXLoadingDialogRef {\n let popupRef: AXPopupRef | null = null;\n const pending: Array<(instance: AXLoadingDialogComponent, popup: AXPopupRef) => void> = [];\n\n const run = (fn: (instance: AXLoadingDialogComponent, popup: AXPopupRef) => void) => {\n const instance = popupRef?.componentInstance as AXLoadingDialogComponent | undefined;\n if (popupRef && instance) {\n fn(instance, popupRef);\n return;\n }\n pending.push(fn);\n };\n\n this.popupService\n .openRef(AXLoadingDialogComponent, {\n title: options.title,\n size: options.size ?? 'sm',\n header: true,\n footer: !!options.buttons?.length,\n closeButton: false,\n closeOnEscape: false,\n closeOnBackdropClick: false,\n draggable: false,\n maximizable: false,\n buttons: {\n close: false,\n maximize: false,\n minimize: {\n enable: false,\n position: 'bottom-right',\n },\n },\n panelClass: ['ax-loading-dialog-panel', 'animate-fadeIn'],\n inputs: {\n data: options,\n },\n })\n .then((ref) => {\n popupRef = ref;\n const instance = ref.componentInstance as AXLoadingDialogComponent | undefined;\n if (!instance) {\n return;\n }\n pending.splice(0).forEach((fn) => fn(instance, ref));\n });\n\n return {\n close: () => run((_, popup) => popup.close()),\n setProgressValue: (value: number) => run((instance) => instance.setProgressValue(value)),\n setDialogTitle: (text: string) =>\n run((instance, popup) => {\n popup.setTitle(text);\n instance.setDialogTitle(text);\n }),\n setProgressText: (text: string) => run((instance) => instance.setProgressText(text)),\n setProgressStatus: (status: string) => run((instance) => instance.setProgressStatus(status)),\n setProgressColor: (color: AXStyleColorType) => run((instance) => instance.setProgressColor(color)),\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAiBA;;;AAGG;AAmBG,MAAO,wBAAyB,SAAQ,eAAe,CAAA;AAlB7D,IAAA,WAAA,GAAA;;;QAoBE,IAAA,CAAA,IAAI,GAAG,KAAK,CAA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