@acorex/components 22.0.0-next.2 → 22.0.0-next.21

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 (76) hide show
  1. package/combo-box/README.md +3 -0
  2. package/fesm2022/acorex-components-calendar.mjs +12 -14
  3. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  4. package/fesm2022/acorex-components-color-palette.mjs +2 -2
  5. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  6. package/fesm2022/acorex-components-combo-box.mjs +669 -0
  7. package/fesm2022/acorex-components-combo-box.mjs.map +1 -0
  8. package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-DCcRJYfF.mjs +50 -0
  9. package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-DCcRJYfF.mjs.map +1 -0
  10. package/fesm2022/{acorex-components-conversation-open-composer-picker-for-files-Hh5Oyp3p.mjs → acorex-components-conversation-open-composer-picker-for-files-BuNEjswI.mjs} +2 -2
  11. package/fesm2022/{acorex-components-conversation-open-composer-picker-for-files-Hh5Oyp3p.mjs.map → acorex-components-conversation-open-composer-picker-for-files-BuNEjswI.mjs.map} +1 -1
  12. package/fesm2022/acorex-components-conversation.mjs +194 -5768
  13. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  14. package/fesm2022/acorex-components-cron-job.mjs +12 -12
  15. package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
  16. package/fesm2022/acorex-components-datetime-box.mjs +44 -12
  17. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  18. package/fesm2022/acorex-components-datetime-input.mjs +332 -312
  19. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  20. package/fesm2022/acorex-components-datetime-picker.mjs +11 -1
  21. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  22. package/fesm2022/acorex-components-decorators.mjs +2 -2
  23. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  24. package/fesm2022/acorex-components-file-viewer.mjs +346 -125
  25. package/fesm2022/acorex-components-file-viewer.mjs.map +1 -1
  26. package/fesm2022/acorex-components-form.mjs +4 -3
  27. package/fesm2022/acorex-components-form.mjs.map +1 -1
  28. package/fesm2022/acorex-components-list.mjs +265 -19
  29. package/fesm2022/acorex-components-list.mjs.map +1 -1
  30. package/fesm2022/acorex-components-map.mjs +1170 -13712
  31. package/fesm2022/acorex-components-map.mjs.map +1 -1
  32. package/fesm2022/acorex-components-menu.mjs +211 -74
  33. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  34. package/fesm2022/acorex-components-phone-box.mjs +6 -6
  35. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  36. package/fesm2022/acorex-components-popup.mjs +388 -78
  37. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  38. package/fesm2022/acorex-components-query-builder.mjs +6 -2
  39. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  40. package/fesm2022/acorex-components-rest-api-generator.mjs +2 -2
  41. package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
  42. package/fesm2022/acorex-components-rrule.mjs +2 -2
  43. package/fesm2022/acorex-components-rrule.mjs.map +1 -1
  44. package/fesm2022/acorex-components-scheduler-picker.mjs +16 -16
  45. package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
  46. package/fesm2022/acorex-components-scheduler.mjs +2 -2
  47. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  48. package/fesm2022/acorex-components-select-box.mjs +176 -451
  49. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  50. package/fesm2022/acorex-components-selection-list.mjs +0 -4
  51. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  52. package/package.json +7 -7
  53. package/select-box/README.md +2 -0
  54. package/types/acorex-components-combo-box.d.ts +202 -0
  55. package/types/acorex-components-conversation.d.ts +11 -25
  56. package/types/acorex-components-datetime-box.d.ts +16 -4
  57. package/types/acorex-components-datetime-input.d.ts +62 -68
  58. package/types/acorex-components-file-viewer.d.ts +109 -17
  59. package/types/acorex-components-list.d.ts +65 -3
  60. package/types/acorex-components-map.d.ts +299 -45
  61. package/types/acorex-components-menu.d.ts +26 -4
  62. package/types/acorex-components-phone-box.d.ts +2 -2
  63. package/types/acorex-components-popup.d.ts +143 -35
  64. package/types/acorex-components-query-builder.d.ts +10 -9
  65. package/types/acorex-components-select-box.d.ts +36 -147
  66. package/types/acorex-components-selection-list.d.ts +1 -2
  67. package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-CNHiM1Sp.mjs +0 -106
  68. package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-CNHiM1Sp.mjs.map +0 -1
  69. package/fesm2022/acorex-components-modal-acorex-components-modal-Djl-uo9b.mjs +0 -388
  70. package/fesm2022/acorex-components-modal-acorex-components-modal-Djl-uo9b.mjs.map +0 -1
  71. package/fesm2022/acorex-components-modal-modal-content.component-BpUsCI8D.mjs +0 -247
  72. package/fesm2022/acorex-components-modal-modal-content.component-BpUsCI8D.mjs.map +0 -1
  73. package/fesm2022/acorex-components-modal.mjs +0 -2
  74. package/fesm2022/acorex-components-modal.mjs.map +0 -1
  75. package/modal/README.md +0 -3
  76. package/types/acorex-components-modal.d.ts +0 -132
@@ -1,106 +0,0 @@
1
- import { AXComponentCloseEvent, AXClosableComponent } from '@acorex/cdk/common';
2
- import { AXTranslationService } from '@acorex/core/translation';
3
- import * as i0 from '@angular/core';
4
- import { inject, input, computed, EventEmitter, Component } from '@angular/core';
5
-
6
- class AXConversationComposerActionChoiceDialogComponent {
7
- constructor() {
8
- this.translation = inject(AXTranslationService);
9
- this.actions = input.required(/* @ts-ignore */
10
- ...(ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []));
11
- this.fileCount = input(1, /* @ts-ignore */
12
- ...(ngDevMode ? [{ debugName: "fileCount" }] : /* istanbul ignore next */ []));
13
- this.composerActionRegistry = input.required(/* @ts-ignore */
14
- ...(ngDevMode ? [{ debugName: "composerActionRegistry" }] : /* istanbul ignore next */ []));
15
- this.__popup__ = input(/* @ts-ignore */
16
- ...(ngDevMode ? [undefined, { debugName: "__popup__" }] : /* istanbul ignore next */ []));
17
- this.hintText = computed(() => {
18
- const count = this.fileCount();
19
- if (count === 1) {
20
- return this.translation.translateSync('@acorex:chat.dialog.choose-send-option.hint-single');
21
- }
22
- return this.translation.translateSync('@acorex:chat.dialog.choose-send-option.hint-multiple', {
23
- params: { count },
24
- });
25
- }, /* @ts-ignore */
26
- ...(ngDevMode ? [{ debugName: "hintText" }] : /* istanbul ignore next */ []));
27
- this.onClosed = new EventEmitter();
28
- }
29
- getActionLabel(action) {
30
- return this.composerActionRegistry().getActionLabel(action);
31
- }
32
- getActionTooltip(action) {
33
- return this.composerActionRegistry().getActionTooltip(action);
34
- }
35
- choose(action) {
36
- const event = new AXComponentCloseEvent();
37
- event.component = this;
38
- event.data = action;
39
- this.onClosed.emit(event);
40
- }
41
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXConversationComposerActionChoiceDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
42
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXConversationComposerActionChoiceDialogComponent, isStandalone: true, selector: "ax-conversation-composer-action-choice-dialog", inputs: { actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: true, transformFunction: null }, fileCount: { classPropertyName: "fileCount", publicName: "fileCount", isSignal: true, isRequired: false, transformFunction: null }, composerActionRegistry: { classPropertyName: "composerActionRegistry", publicName: "composerActionRegistry", isSignal: true, isRequired: true, transformFunction: null }, __popup__: { classPropertyName: "__popup__", publicName: "__popup__", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{ provide: AXClosableComponent, useExisting: AXConversationComposerActionChoiceDialogComponent }], ngImport: i0, template: `
43
- <div class="composer-action-choice" role="dialog" aria-modal="true">
44
- <p class="composer-action-choice__hint">{{ hintText() }}</p>
45
- <ul class="composer-action-choice__list" role="listbox">
46
- @for (action of actions(); track action.id) {
47
- <li role="presentation">
48
- <button
49
- type="button"
50
- class="composer-action-choice__option"
51
- role="option"
52
- (click)="choose(action)"
53
- [attr.aria-label]="getActionLabel(action)"
54
- >
55
- <span class="composer-action-choice__icon" aria-hidden="true">
56
- <i [class]="action.icon"></i>
57
- </span>
58
- <span class="composer-action-choice__text">
59
- <span class="composer-action-choice__title">{{ getActionLabel(action) }}</span>
60
- @if (getActionTooltip(action); as tip) {
61
- <span class="composer-action-choice__subtitle">{{ tip }}</span>
62
- }
63
- </span>
64
- <i class="fa-light fa-chevron-right composer-action-choice__chevron" aria-hidden="true"></i>
65
- </button>
66
- </li>
67
- }
68
- </ul>
69
- </div>
70
- `, isInline: true, styles: [":host{display:block}.composer-action-choice{display:flex;flex-direction:column;gap:.75rem;padding:.5rem;min-width:16rem}.composer-action-choice__hint{margin:0;font-size:.8125rem;line-height:1.45;color:rgba(var(--ax-sys-color-on-surface),.7)}.composer-action-choice__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.composer-action-choice__option{display:flex;align-items:center;gap:.75rem;width:100%;padding:.625rem .75rem;border:1px solid rgb(var(--ax-sys-color-border-light-surface));border-radius:var(--ax-sys-border-radius, .5rem);background:rgb(var(--ax-sys-color-surface));cursor:pointer;text-align:start;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}.composer-action-choice__option:hover,.composer-action-choice__option:focus-visible{border-color:rgb(var(--ax-sys-color-primary-500));background:rgba(var(--ax-sys-color-primary-500),.06);outline:none;box-shadow:0 0 0 1px rgba(var(--ax-sys-color-primary-500),.25)}.composer-action-choice__icon{display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;flex-shrink:0;border-radius:var(--ax-sys-border-radius, .375rem);background:rgba(var(--ax-sys-color-primary-500),.1);color:rgb(var(--ax-sys-color-primary-600));font-size:1.125rem}.composer-action-choice__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.composer-action-choice__title{font-size:.875rem;font-weight:600;color:rgb(var(--ax-sys-color-on-surface))}.composer-action-choice__subtitle{font-size:.75rem;color:rgba(var(--ax-sys-color-on-surface),.6);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer-action-choice__chevron{flex-shrink:0;font-size:.75rem;color:rgba(var(--ax-sys-color-on-surface),.45)}\n"] }); }
71
- }
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXConversationComposerActionChoiceDialogComponent, decorators: [{
73
- type: Component,
74
- args: [{ selector: 'ax-conversation-composer-action-choice-dialog', template: `
75
- <div class="composer-action-choice" role="dialog" aria-modal="true">
76
- <p class="composer-action-choice__hint">{{ hintText() }}</p>
77
- <ul class="composer-action-choice__list" role="listbox">
78
- @for (action of actions(); track action.id) {
79
- <li role="presentation">
80
- <button
81
- type="button"
82
- class="composer-action-choice__option"
83
- role="option"
84
- (click)="choose(action)"
85
- [attr.aria-label]="getActionLabel(action)"
86
- >
87
- <span class="composer-action-choice__icon" aria-hidden="true">
88
- <i [class]="action.icon"></i>
89
- </span>
90
- <span class="composer-action-choice__text">
91
- <span class="composer-action-choice__title">{{ getActionLabel(action) }}</span>
92
- @if (getActionTooltip(action); as tip) {
93
- <span class="composer-action-choice__subtitle">{{ tip }}</span>
94
- }
95
- </span>
96
- <i class="fa-light fa-chevron-right composer-action-choice__chevron" aria-hidden="true"></i>
97
- </button>
98
- </li>
99
- }
100
- </ul>
101
- </div>
102
- `, providers: [{ provide: AXClosableComponent, useExisting: AXConversationComposerActionChoiceDialogComponent }], styles: [":host{display:block}.composer-action-choice{display:flex;flex-direction:column;gap:.75rem;padding:.5rem;min-width:16rem}.composer-action-choice__hint{margin:0;font-size:.8125rem;line-height:1.45;color:rgba(var(--ax-sys-color-on-surface),.7)}.composer-action-choice__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.composer-action-choice__option{display:flex;align-items:center;gap:.75rem;width:100%;padding:.625rem .75rem;border:1px solid rgb(var(--ax-sys-color-border-light-surface));border-radius:var(--ax-sys-border-radius, .5rem);background:rgb(var(--ax-sys-color-surface));cursor:pointer;text-align:start;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}.composer-action-choice__option:hover,.composer-action-choice__option:focus-visible{border-color:rgb(var(--ax-sys-color-primary-500));background:rgba(var(--ax-sys-color-primary-500),.06);outline:none;box-shadow:0 0 0 1px rgba(var(--ax-sys-color-primary-500),.25)}.composer-action-choice__icon{display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;flex-shrink:0;border-radius:var(--ax-sys-border-radius, .375rem);background:rgba(var(--ax-sys-color-primary-500),.1);color:rgb(var(--ax-sys-color-primary-600));font-size:1.125rem}.composer-action-choice__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.composer-action-choice__title{font-size:.875rem;font-weight:600;color:rgb(var(--ax-sys-color-on-surface))}.composer-action-choice__subtitle{font-size:.75rem;color:rgba(var(--ax-sys-color-on-surface),.6);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer-action-choice__chevron{flex-shrink:0;font-size:.75rem;color:rgba(var(--ax-sys-color-on-surface),.45)}\n"] }]
103
- }], propDecorators: { actions: [{ type: i0.Input, args: [{ isSignal: true, alias: "actions", required: true }] }], fileCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileCount", required: false }] }], composerActionRegistry: [{ type: i0.Input, args: [{ isSignal: true, alias: "composerActionRegistry", required: true }] }], __popup__: [{ type: i0.Input, args: [{ isSignal: true, alias: "__popup__", required: false }] }] } });
104
-
105
- export { AXConversationComposerActionChoiceDialogComponent };
106
- //# sourceMappingURL=acorex-components-conversation-composer-action-choice-dialog.component-CNHiM1Sp.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-components-conversation-composer-action-choice-dialog.component-CNHiM1Sp.mjs","sources":["../../../../packages/components/conversation/src/lib/components/message-list/composer-action-choice-dialog.component.ts"],"sourcesContent":["import { AXClosableComponent, AXComponentCloseEvent } from '@acorex/cdk/common';\nimport type { AXPopupRef } from '@acorex/components/popup';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { Component, EventEmitter, computed, inject, input } from '@angular/core';\nimport type {\n AXConversationComposerAction,\n AXConversationComposerActionRegistry,\n} from '../../registries/composer-action.registry';\n\n@Component({\n selector: 'ax-conversation-composer-action-choice-dialog',\n\n template: `\n <div class=\"composer-action-choice\" role=\"dialog\" aria-modal=\"true\">\n <p class=\"composer-action-choice__hint\">{{ hintText() }}</p>\n <ul class=\"composer-action-choice__list\" role=\"listbox\">\n @for (action of actions(); track action.id) {\n <li role=\"presentation\">\n <button\n type=\"button\"\n class=\"composer-action-choice__option\"\n role=\"option\"\n (click)=\"choose(action)\"\n [attr.aria-label]=\"getActionLabel(action)\"\n >\n <span class=\"composer-action-choice__icon\" aria-hidden=\"true\">\n <i [class]=\"action.icon\"></i>\n </span>\n <span class=\"composer-action-choice__text\">\n <span class=\"composer-action-choice__title\">{{ getActionLabel(action) }}</span>\n @if (getActionTooltip(action); as tip) {\n <span class=\"composer-action-choice__subtitle\">{{ tip }}</span>\n }\n </span>\n <i class=\"fa-light fa-chevron-right composer-action-choice__chevron\" aria-hidden=\"true\"></i>\n </button>\n </li>\n }\n </ul>\n </div>\n `,\n styles: [\n `\n :host {\n display: block;\n }\n\n .composer-action-choice {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n padding: 0.5rem;\n min-width: 16rem;\n }\n\n .composer-action-choice__hint {\n margin: 0;\n font-size: 0.8125rem;\n line-height: 1.45;\n color: rgba(var(--ax-sys-color-on-surface), 0.7);\n }\n\n .composer-action-choice__list {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n }\n\n .composer-action-choice__option {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n width: 100%;\n padding: 0.625rem 0.75rem;\n border: 1px solid rgb(var(--ax-sys-color-border-light-surface));\n border-radius: var(--ax-sys-border-radius, 0.5rem);\n background: rgb(var(--ax-sys-color-surface));\n cursor: pointer;\n text-align: start;\n transition:\n border-color 0.15s ease,\n background-color 0.15s ease,\n box-shadow 0.15s ease;\n }\n\n .composer-action-choice__option:hover,\n .composer-action-choice__option:focus-visible {\n border-color: rgb(var(--ax-sys-color-primary-500));\n background: rgba(var(--ax-sys-color-primary-500), 0.06);\n outline: none;\n box-shadow: 0 0 0 1px rgba(var(--ax-sys-color-primary-500), 0.25);\n }\n\n .composer-action-choice__icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 2.5rem;\n height: 2.5rem;\n flex-shrink: 0;\n border-radius: var(--ax-sys-border-radius, 0.375rem);\n background: rgba(var(--ax-sys-color-primary-500), 0.1);\n color: rgb(var(--ax-sys-color-primary-600));\n font-size: 1.125rem;\n }\n\n .composer-action-choice__text {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n }\n\n .composer-action-choice__title {\n font-size: 0.875rem;\n font-weight: 600;\n color: rgb(var(--ax-sys-color-on-surface));\n }\n\n .composer-action-choice__subtitle {\n font-size: 0.75rem;\n color: rgba(var(--ax-sys-color-on-surface), 0.6);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .composer-action-choice__chevron {\n flex-shrink: 0;\n font-size: 0.75rem;\n color: rgba(var(--ax-sys-color-on-surface), 0.45);\n }\n `,\n ],\n providers: [{ provide: AXClosableComponent, useExisting: AXConversationComposerActionChoiceDialogComponent }],\n})\nexport class AXConversationComposerActionChoiceDialogComponent {\n private readonly translation = inject(AXTranslationService);\n\n readonly actions = input.required<AXConversationComposerAction[]>();\n readonly fileCount = input(1);\n readonly composerActionRegistry = input.required<AXConversationComposerActionRegistry>();\n readonly __popup__ = input<AXPopupRef | undefined>();\n\n readonly hintText = computed(() => {\n const count = this.fileCount();\n if (count === 1) {\n return this.translation.translateSync('@acorex:chat.dialog.choose-send-option.hint-single');\n }\n return this.translation.translateSync('@acorex:chat.dialog.choose-send-option.hint-multiple', {\n params: { count },\n });\n });\n\n readonly onClosed = new EventEmitter<AXComponentCloseEvent>();\n\n getActionLabel(action: AXConversationComposerAction): string {\n return this.composerActionRegistry().getActionLabel(action);\n }\n\n getActionTooltip(action: AXConversationComposerAction): string | undefined {\n return this.composerActionRegistry().getActionTooltip(action);\n }\n\n choose(action: AXConversationComposerAction): void {\n const event = new AXComponentCloseEvent();\n event.component = this;\n event.data = action;\n this.onClosed.emit(event);\n }\n}\n"],"names":[],"mappings":";;;;;MA4Ia,iDAAiD,CAAA;AAnI9D,IAAA,WAAA,GAAA;AAoImB,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,oBAAoB,CAAC;QAElD,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,QAAQ;oFAAkC;QAC1D,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,CAAC;sFAAC;QACpB,IAAA,CAAA,sBAAsB,GAAG,KAAK,CAAC,QAAQ;mGAAwC;AAC/E,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAA0B;AAE3C,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAC,MAAK;AAChC,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE;AAC9B,YAAA,IAAI,KAAK,KAAK,CAAC,EAAE;gBACf,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,oDAAoD,CAAC;YAC7F;AACA,YAAA,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,sDAAsD,EAAE;gBAC5F,MAAM,EAAE,EAAE,KAAK,EAAE;AAClB,aAAA,CAAC;QACJ,CAAC;qFAAC;AAEO,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,YAAY,EAAyB;AAgB9D,IAAA;AAdC,IAAA,cAAc,CAAC,MAAoC,EAAA;QACjD,OAAO,IAAI,CAAC,sBAAsB,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC;IAC7D;AAEA,IAAA,gBAA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EAAA,IAAA,EAAA,EAAA,EAAA,SAAA,EAFjD,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,iDAAiD,EAAE,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA9HnG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,6tDAAA,CAAA,EAAA,CAAA,CAAA;;2FAoGU,iDAAiD,EAAA,UAAA,EAAA,CAAA;kBAnI7D,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,+CAA+C,EAAA,QAAA,EAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BT,EAAA,SAAA,EAkGU,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAA,iDAAmD,EAAE,CAAC,EAAA,MAAA,EAAA,CAAA,6tDAAA,CAAA,EAAA;;;;;"}
@@ -1,388 +0,0 @@
1
- import { AXComponent, NXComponent } from '@acorex/cdk/common';
2
- import * as i0 from '@angular/core';
3
- import { ViewEncapsulation, Component, inject, signal, ComponentRef, Injectable, viewChild, TemplateRef, NgModule, input, Directive } from '@angular/core';
4
- import { AXOverlayService } from '@acorex/cdk/overlay';
5
- import { cloneDeep, set } from 'lodash-es';
6
- import { Subject } from 'rxjs';
7
-
8
- class AXModalFooterComponent {
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXModalFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: AXModalFooterComponent, isStandalone: true, selector: "ax-modal-footer", providers: [{ provide: AXComponent, useExisting: AXModalFooterComponent }], ngImport: i0, template: "<ng-content select=\"ax-modal-footer\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content select=\"ax-suffix\"></ng-content>\n</ng-content>\n", styles: ["@layer components{ax-modal-footer{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2)}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"], encapsulation: i0.ViewEncapsulation.None }); }
11
- }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXModalFooterComponent, decorators: [{
13
- type: Component,
14
- args: [{ selector: 'ax-modal-footer', imports: [], encapsulation: ViewEncapsulation.None, providers: [{ provide: AXComponent, useExisting: AXModalFooterComponent }], template: "<ng-content select=\"ax-modal-footer\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content select=\"ax-suffix\"></ng-content>\n</ng-content>\n", styles: ["@layer components{ax-modal-footer{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2)}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"] }]
15
- }] });
16
-
17
- class AXModalStateService {
18
- constructor() {
19
- this.modalList = new Map();
20
- this.overlayService = inject(AXOverlayService);
21
- this.modalOption = signal(null, /* @ts-ignore */
22
- ...(ngDevMode ? [{ debugName: "modalOption" }] : /* istanbul ignore next */ []));
23
- }
24
- /**
25
- * Opens a modal with the specified content and options.
26
- * @param content - Component, template, or HTML element to display
27
- * @param options - Configuration options for the modal
28
- * @returns Promise<AXModalRef> - Reference to the opened modal
29
- */
30
- async open(content, options) {
31
- this.modalOption.set(options);
32
- const randomId = Math.floor(Math.random() * 100000000000);
33
- const modalContentComp = (await import('./acorex-components-modal-modal-content.component-BpUsCI8D.mjs')).AXModalContentComponent;
34
- const onClose = new Subject();
35
- const returnRef = {
36
- close: (data) => {
37
- this.close(randomId, data);
38
- },
39
- setInputs: (values) => {
40
- this.setInputs(randomId, values);
41
- },
42
- minimize: () => {
43
- this.minimize(randomId);
44
- },
45
- maximize: () => {
46
- this.maximize(randomId);
47
- },
48
- restore: () => {
49
- this.restore(randomId);
50
- },
51
- bringToFront: () => {
52
- this.bringToFront(randomId);
53
- },
54
- onClose,
55
- };
56
- const finalInputs = { ...(cloneDeep(options?.inputs) ?? {}), ...{ __modal__: returnRef } };
57
- const finalOptions = set(cloneDeep(options) ?? {}, 'inputs', finalInputs);
58
- const ref = await this.overlayService.create(modalContentComp, {
59
- position: options?.position,
60
- backdrop: options?.backdrop,
61
- inputs: {
62
- __content__: content,
63
- inputs: {
64
- ...finalOptions?.inputs,
65
- },
66
- id: randomId,
67
- },
68
- });
69
- this.modalList.set(randomId, { overlay: ref, modal: returnRef });
70
- return returnRef;
71
- }
72
- /**
73
- * Closes a modal by its ID.
74
- * @param id - The modal ID to close
75
- * @param data - Optional data to pass to the close event
76
- */
77
- async close(id, data) {
78
- const ref = this.modalList.get(id);
79
- if (!ref)
80
- return;
81
- ref.modal.onClose.next(data);
82
- ref.overlay.dispose();
83
- this.modalList.delete(id);
84
- }
85
- /**
86
- * Sets input values for a modal by its ID.
87
- * @param id - The modal ID
88
- * @param values - Object containing input values to set
89
- */
90
- async setInputs(id, values) {
91
- const ref = this.modalList.get(id).overlay.instance;
92
- if (!ref)
93
- return;
94
- if (ref instanceof ComponentRef) {
95
- const comRef = ref;
96
- Object.entries(values).forEach((v) => {
97
- comRef.setInput(v[0], v[1]);
98
- });
99
- }
100
- else {
101
- ref.context.inputs.set(values);
102
- }
103
- }
104
- /**
105
- * Minimizes a modal by its ID.
106
- * @param id - The modal ID to minimize
107
- */
108
- async minimize(id) {
109
- const ref = this.modalList.get(id).overlay.instance;
110
- if (!ref)
111
- return;
112
- if (ref instanceof ComponentRef) {
113
- ref.instance.minimize();
114
- }
115
- else {
116
- ref.context.minimize();
117
- }
118
- }
119
- /**
120
- * Maximizes a modal by its ID.
121
- * @param id - The modal ID to maximize
122
- */
123
- async maximize(id) {
124
- const ref = this.modalList.get(id).overlay.instance;
125
- if (!ref)
126
- return;
127
- if (ref instanceof ComponentRef) {
128
- ref.instance.maximize();
129
- }
130
- else {
131
- ref.context.maximize();
132
- }
133
- }
134
- /**
135
- * Restores a modal by its ID.
136
- * @param id - The modal ID to restore
137
- */
138
- async restore(id) {
139
- const ref = this.modalList.get(id).overlay.instance;
140
- if (!ref)
141
- return;
142
- if (ref instanceof ComponentRef) {
143
- ref.instance.restore();
144
- }
145
- else {
146
- ref.context.restore();
147
- }
148
- }
149
- /**
150
- * Gets the index of a modal in the minimized stack.
151
- * @param targetKey - The modal ID to find
152
- * @returns number - The index position in the stack
153
- */
154
- getMapIndexOf(targetKey) {
155
- let index = 0;
156
- for (const key of this.modalList.keys()) {
157
- if (key === targetKey) {
158
- return index;
159
- }
160
- index++;
161
- }
162
- return -1;
163
- }
164
- /**
165
- * Brings a modal to the front of all other overlays.
166
- * @param id - The modal ID to bring to front
167
- */
168
- bringToFront(id) {
169
- const ref = this.modalList.get(id);
170
- if (!ref)
171
- return;
172
- ref.overlay.bringToFront();
173
- }
174
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXModalStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
175
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXModalStateService, providedIn: 'root' }); }
176
- }
177
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXModalStateService, decorators: [{
178
- type: Injectable,
179
- args: [{
180
- providedIn: 'root',
181
- }]
182
- }] });
183
-
184
- class AXModalComponent extends NXComponent {
185
- constructor() {
186
- super(...arguments);
187
- this.service = inject(AXModalStateService);
188
- this.template = viewChild(TemplateRef, /* @ts-ignore */
189
- ...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
190
- this.ref = signal(null, /* @ts-ignore */
191
- ...(ngDevMode ? [{ debugName: "ref" }] : /* istanbul ignore next */ []));
192
- }
193
- /**
194
- * Opens the modal with the specified options.
195
- * @param options - Configuration options for the modal
196
- * @returns Promise<AXModalRef> - Reference to the opened modal
197
- */
198
- async open(options) {
199
- const ref = await this.service.open(this.template(), options);
200
- this.ref.set(ref);
201
- return ref;
202
- }
203
- /**
204
- * Closes the currently open modal.
205
- */
206
- async close() {
207
- if (this.ref())
208
- return;
209
- this.ref().close();
210
- }
211
- /**
212
- * Sets input values for the modal content component.
213
- * @param values - Object containing input values to set
214
- */
215
- async setInputs(values) {
216
- if (!this.ref())
217
- return;
218
- const transform = { inputs: values };
219
- this.ref().setInputs(transform);
220
- }
221
- /**
222
- * Minimizes the modal to the bottom bar.
223
- */
224
- async minimize() {
225
- if (!this.ref())
226
- return;
227
- this.ref().minimize();
228
- }
229
- /**
230
- * Maximizes the modal to fullscreen.
231
- */
232
- async maximize() {
233
- if (!this.ref())
234
- return;
235
- this.ref().maximize();
236
- }
237
- /**
238
- * Restores the modal from minimized or maximized state.
239
- */
240
- async restore() {
241
- if (!this.ref())
242
- return;
243
- this.ref().restore();
244
- }
245
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXModalComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
246
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: AXModalComponent, isStandalone: true, selector: "ax-modal", providers: [{ provide: AXComponent, useExisting: AXModalComponent }], viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
247
- <ng-template #contentTemplate>
248
- <ng-content></ng-content>
249
- </ng-template>
250
- `, isInline: true, encapsulation: i0.ViewEncapsulation.None }); }
251
- }
252
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXModalComponent, decorators: [{
253
- type: Component,
254
- args: [{
255
- selector: 'ax-modal',
256
- template: `
257
- <ng-template #contentTemplate>
258
- <ng-content></ng-content>
259
- </ng-template>
260
- `,
261
- encapsulation: ViewEncapsulation.None,
262
- providers: [{ provide: AXComponent, useExisting: AXModalComponent }],
263
- }]
264
- }], propDecorators: { template: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] } });
265
-
266
- class AXModalModule {
267
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
268
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXModalModule, imports: [AXModalComponent, AXModalFooterComponent], exports: [AXModalComponent, AXModalFooterComponent] }); }
269
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXModalModule }); }
270
- }
271
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXModalModule, decorators: [{
272
- type: NgModule,
273
- args: [{
274
- imports: [AXModalComponent, AXModalFooterComponent],
275
- exports: [AXModalComponent, AXModalFooterComponent],
276
- }]
277
- }] });
278
-
279
- class AXModalService {
280
- constructor() {
281
- this.stateService = inject(AXModalStateService);
282
- this.ref = signal(null, /* @ts-ignore */
283
- ...(ngDevMode ? [{ debugName: "ref" }] : /* istanbul ignore next */ []));
284
- }
285
- /**
286
- * Opens a modal with the specified content and options.
287
- * @param content - Component, template, or HTML element to display
288
- * @param options - Configuration options for the modal
289
- * @returns Promise<AXModalRef> - Reference to the opened modal
290
- */
291
- async open(content, options) {
292
- const ref = await this.stateService.open(content, options);
293
- this.ref.set(ref);
294
- return ref;
295
- }
296
- /**
297
- * Closes the currently open modal.
298
- */
299
- async close() {
300
- if (!this.ref())
301
- return;
302
- this.ref().close();
303
- }
304
- /**
305
- * Sets input values for the modal content component.
306
- * @param values - Object containing input values to set
307
- */
308
- async setInputs(values) {
309
- if (!this.ref())
310
- return;
311
- const transform = { inputs: values };
312
- this.ref().setInputs(transform);
313
- }
314
- /**
315
- * Minimizes the modal to the bottom bar.
316
- */
317
- async minimize() {
318
- if (!this.ref())
319
- return;
320
- this.ref().minimize();
321
- }
322
- /**
323
- * Maximizes the modal to fullscreen.
324
- */
325
- async maximize() {
326
- if (!this.ref())
327
- return;
328
- this.ref().maximize();
329
- }
330
- /**
331
- * Restores the modal from minimized or maximized state.
332
- */
333
- async restore() {
334
- if (!this.ref())
335
- return;
336
- this.ref().restore();
337
- }
338
- /**
339
- * Brings the modal to the front of all other overlays.
340
- */
341
- bringToFront() {
342
- if (!this.ref())
343
- return;
344
- this.ref().bringToFront();
345
- }
346
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
347
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXModalService, providedIn: 'root' }); }
348
- }
349
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXModalService, decorators: [{
350
- type: Injectable,
351
- args: [{
352
- providedIn: 'root',
353
- }]
354
- }] });
355
-
356
- class AXModalComponentBase {
357
- constructor() {
358
- this.__modal__ = input(/* @ts-ignore */
359
- ...(ngDevMode ? [undefined, { debugName: "__modal__" }] : /* istanbul ignore next */ []));
360
- }
361
- close(data = null) {
362
- this.__modal__().close(data);
363
- }
364
- minimize() {
365
- this.__modal__().minimize();
366
- }
367
- restore() {
368
- this.__modal__().restore();
369
- }
370
- maximize() {
371
- this.__modal__().maximize();
372
- }
373
- bringToFront() {
374
- this.__modal__().bringToFront();
375
- }
376
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXModalComponentBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
377
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: AXModalComponentBase, isStandalone: true, inputs: { __modal__: { classPropertyName: "__modal__", publicName: "__modal__", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
378
- }
379
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXModalComponentBase, decorators: [{
380
- type: Directive
381
- }], propDecorators: { __modal__: [{ type: i0.Input, args: [{ isSignal: true, alias: "__modal__", required: false }] }] } });
382
-
383
- /**
384
- * Generated bundle index. Do not edit.
385
- */
386
-
387
- export { AXModalStateService as A, AXModalFooterComponent as a, AXModalComponent as b, AXModalComponentBase as c, AXModalModule as d, AXModalService as e };
388
- //# sourceMappingURL=acorex-components-modal-acorex-components-modal-Djl-uo9b.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-components-modal-acorex-components-modal-Djl-uo9b.mjs","sources":["../../../../packages/components/modal/src/lib/modal-footer/modal-footer.component.ts","../../../../packages/components/modal/src/lib/modal-footer/modal-footer.component.html","../../../../packages/components/modal/src/lib/modal-state.service.ts","../../../../packages/components/modal/src/lib/modal.component.ts","../../../../packages/components/modal/src/lib/modal.module.ts","../../../../packages/components/modal/src/lib/modal.service.ts","../../../../packages/components/modal/src/lib/modal.types.ts","../../../../packages/components/modal/src/acorex-components-modal.ts"],"sourcesContent":["import { AXComponent } from '@acorex/cdk/common';\nimport { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ax-modal-footer',\n templateUrl: './modal-footer.component.html',\n styleUrl: './modal-footer.component.css',\n imports: [],\n encapsulation: ViewEncapsulation.None,\n\n providers: [{ provide: AXComponent, useExisting: AXModalFooterComponent }],\n})\nexport class AXModalFooterComponent {}\n","<ng-content select=\"ax-modal-footer\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content select=\"ax-suffix\"></ng-content>\n</ng-content>\n","import { AXOverlayRef, AXOverlayService } from '@acorex/cdk/overlay';\nimport { AXComponentContent, AXComponentInputs } from '@acorex/core/components';\nimport { ComponentRef, inject, Injectable, signal } from '@angular/core';\nimport { cloneDeep, set } from 'lodash-es';\nimport { Subject } from 'rxjs';\nimport { AXModalContentComponent } from './modal-content/modal-content.component';\nimport { AXModalOptions, AXModalRef } from './modal.types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXModalStateService {\n private modalList = new Map<number, { overlay: AXOverlayRef<AXModalContentComponent>; modal: AXModalRef }>();\n private overlayService = inject(AXOverlayService);\n modalOption = signal<AXModalOptions>(null);\n\n /**\n * Opens a modal with the specified content and options.\n * @param content - Component, template, or HTML element to display\n * @param options - Configuration options for the modal\n * @returns Promise<AXModalRef> - Reference to the opened modal\n */\n async open<TResult = any>(\n content: AXComponentContent | HTMLElement,\n options?: AXModalOptions,\n ): Promise<AXModalRef<TResult>> {\n this.modalOption.set(options);\n const randomId = Math.floor(Math.random() * 100000000000);\n const modalContentComp = (await import('./modal-content/modal-content.component')).AXModalContentComponent;\n const onClose = new Subject<TResult>();\n\n const returnRef: AXModalRef = {\n close: (data) => {\n this.close(randomId, data);\n },\n setInputs: (values: AXComponentInputs) => {\n this.setInputs(randomId, values);\n },\n minimize: () => {\n this.minimize(randomId);\n },\n maximize: () => {\n this.maximize(randomId);\n },\n restore: () => {\n this.restore(randomId);\n },\n bringToFront: () => {\n this.bringToFront(randomId);\n },\n onClose,\n };\n\n const finalInputs = { ...(cloneDeep(options?.inputs) ?? {}), ...{ __modal__: returnRef } };\n const finalOptions = set(cloneDeep(options) ?? {}, 'inputs', finalInputs);\n\n const ref = await this.overlayService.create(modalContentComp, {\n position: options?.position,\n backdrop: options?.backdrop,\n inputs: {\n __content__: content,\n inputs: {\n ...finalOptions?.inputs,\n },\n id: randomId,\n },\n });\n\n this.modalList.set(randomId, { overlay: ref, modal: returnRef });\n\n return returnRef;\n }\n\n /**\n * Closes a modal by its ID.\n * @param id - The modal ID to close\n * @param data - Optional data to pass to the close event\n */\n async close<TResult = any>(id: number, data?: TResult) {\n const ref = this.modalList.get(id);\n if (!ref) return;\n ref.modal.onClose.next(data);\n ref.overlay.dispose();\n this.modalList.delete(id);\n }\n\n /**\n * Sets input values for a modal by its ID.\n * @param id - The modal ID\n * @param values - Object containing input values to set\n */\n async setInputs(id: number, values: AXComponentInputs) {\n const ref = this.modalList.get(id).overlay.instance;\n if (!ref) return;\n if (ref instanceof ComponentRef) {\n const comRef = ref as ComponentRef<any>;\n Object.entries(values).forEach((v) => {\n comRef.setInput(v[0], v[1]);\n });\n } else {\n ref.context.inputs.set(values);\n }\n }\n\n /**\n * Minimizes a modal by its ID.\n * @param id - The modal ID to minimize\n */\n async minimize(id: number) {\n const ref = this.modalList.get(id).overlay.instance;\n if (!ref) return;\n if (ref instanceof ComponentRef) {\n ref.instance.minimize();\n } else {\n ref.context.minimize();\n }\n }\n\n /**\n * Maximizes a modal by its ID.\n * @param id - The modal ID to maximize\n */\n async maximize(id: number) {\n const ref = this.modalList.get(id).overlay.instance;\n if (!ref) return;\n if (ref instanceof ComponentRef) {\n ref.instance.maximize();\n } else {\n ref.context.maximize();\n }\n }\n\n /**\n * Restores a modal by its ID.\n * @param id - The modal ID to restore\n */\n async restore(id: number) {\n const ref = this.modalList.get(id).overlay.instance;\n if (!ref) return;\n if (ref instanceof ComponentRef) {\n ref.instance.restore();\n } else {\n ref.context.restore();\n }\n }\n\n /**\n * Gets the index of a modal in the minimized stack.\n * @param targetKey - The modal ID to find\n * @returns number - The index position in the stack\n */\n getMapIndexOf(targetKey: any) {\n let index = 0;\n for (const key of this.modalList.keys()) {\n if (key === targetKey) {\n return index;\n }\n index++;\n }\n return -1;\n }\n\n /**\n * Brings a modal to the front of all other overlays.\n * @param id - The modal ID to bring to front\n */\n bringToFront(id: number) {\n const ref = this.modalList.get(id);\n if (!ref) return;\n ref.overlay.bringToFront();\n }\n}\n","import { AXComponent, NXComponent } from '@acorex/cdk/common';\nimport { AXComponentInputs } from '@acorex/core/components';\nimport { Component, inject, signal, TemplateRef, viewChild, ViewEncapsulation } from '@angular/core';\nimport { AXModalStateService } from './modal-state.service';\nimport { AXModalOptions, AXModalRef } from './modal.types';\n\n@Component({\n selector: 'ax-modal',\n template: `\n <ng-template #contentTemplate>\n <ng-content></ng-content>\n </ng-template>\n `,\n encapsulation: ViewEncapsulation.None,\n\n providers: [{ provide: AXComponent, useExisting: AXModalComponent }],\n})\nexport class AXModalComponent extends NXComponent {\n private service = inject(AXModalStateService);\n protected template = viewChild(TemplateRef);\n private ref = signal<AXModalRef<any>>(null);\n\n /**\n * Opens the modal with the specified options.\n * @param options - Configuration options for the modal\n * @returns Promise<AXModalRef> - Reference to the opened modal\n */\n async open(options?: AXModalOptions) {\n const ref = await this.service.open(this.template(), options);\n this.ref.set(ref);\n return ref;\n }\n\n /**\n * Closes the currently open modal.\n */\n async close() {\n if (this.ref()) return;\n this.ref().close();\n }\n\n /**\n * Sets input values for the modal content component.\n * @param values - Object containing input values to set\n */\n async setInputs(values: AXComponentInputs) {\n if (!this.ref()) return;\n const transform = { inputs: values };\n this.ref().setInputs(transform);\n }\n\n /**\n * Minimizes the modal to the bottom bar.\n */\n async minimize() {\n if (!this.ref()) return;\n this.ref().minimize();\n }\n\n /**\n * Maximizes the modal to fullscreen.\n */\n async maximize() {\n if (!this.ref()) return;\n this.ref().maximize();\n }\n\n /**\n * Restores the modal from minimized or maximized state.\n */\n async restore() {\n if (!this.ref()) return;\n this.ref().restore();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { AXModalFooterComponent } from './modal-footer/modal-footer.component';\nimport { AXModalComponent } from './modal.component';\n\n@NgModule({\n imports: [AXModalComponent, AXModalFooterComponent],\n exports: [AXModalComponent, AXModalFooterComponent],\n})\nexport class AXModalModule {}\n","import { AXComponentContent, AXComponentInputs } from '@acorex/core/components';\nimport { inject, Injectable, signal } from '@angular/core';\nimport { AXModalStateService } from './modal-state.service';\nimport { AXModalOptions, AXModalRef } from './modal.types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXModalService {\n private stateService = inject(AXModalStateService);\n private ref = signal<AXModalRef<any>>(null);\n\n /**\n * Opens a modal with the specified content and options.\n * @param content - Component, template, or HTML element to display\n * @param options - Configuration options for the modal\n * @returns Promise<AXModalRef> - Reference to the opened modal\n */\n async open(content: AXComponentContent | HTMLElement, options?: AXModalOptions): Promise<AXModalRef> {\n const ref = await this.stateService.open(content, options);\n this.ref.set(ref);\n return ref;\n }\n\n /**\n * Closes the currently open modal.\n */\n async close() {\n if (!this.ref()) return;\n this.ref().close();\n }\n\n /**\n * Sets input values for the modal content component.\n * @param values - Object containing input values to set\n */\n async setInputs(values: AXComponentInputs) {\n if (!this.ref()) return;\n const transform = { inputs: values };\n this.ref().setInputs(transform);\n }\n\n /**\n * Minimizes the modal to the bottom bar.\n */\n async minimize() {\n if (!this.ref()) return;\n this.ref().minimize();\n }\n\n /**\n * Maximizes the modal to fullscreen.\n */\n async maximize() {\n if (!this.ref()) return;\n this.ref().maximize();\n }\n\n /**\n * Restores the modal from minimized or maximized state.\n */\n async restore() {\n if (!this.ref()) return;\n this.ref().restore();\n }\n\n /**\n * Brings the modal to the front of all other overlays.\n */\n bringToFront() {\n if (!this.ref()) return;\n this.ref().bringToFront();\n }\n}\n","import { AXOverlayOptions } from '@acorex/cdk/overlay';\nimport { AXComponentInputs } from '@acorex/core/components';\nimport { Directive, input } from '@angular/core';\nimport { Subject } from 'rxjs';\n\nexport interface AXModalOptions extends AXOverlayOptions {\n title?: string;\n buttons?: {\n minimize?: {\n enable: boolean;\n position: 'bottom-right' | 'bottom-left';\n };\n maximize?: boolean;\n close?: boolean;\n };\n draggable?: boolean;\n size?: 'sm' | 'md' | 'lg' | 'full' | 'fit';\n header?: boolean;\n footer?: boolean;\n panelClass?: string;\n closeOnEscape?: boolean;\n}\n\nexport interface AXModalRef<TResult = any> {\n minimize: () => void;\n maximize: () => void;\n restore: () => void;\n close: (data?: TResult) => void;\n setInputs: (values: AXComponentInputs) => void;\n /** Brings this modal to the front of all other overlays */\n bringToFront: () => void;\n onClose: Subject<TResult>;\n}\n\n@Directive()\nexport abstract class AXModalComponentBase {\n __modal__ = input<AXModalRef>();\n\n public close(data: any = null) {\n this.__modal__().close(data);\n }\n\n public minimize() {\n this.__modal__().minimize();\n }\n\n public restore() {\n this.__modal__().restore();\n }\n\n public maximize() {\n this.__modal__().maximize();\n }\n\n public bringToFront() {\n this.__modal__().bringToFront();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAYa,sBAAsB,CAAA;8GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,SAAA,EAFtB,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC,0BCV5E,8JAIA,EAAA,MAAA,EAAA,CAAA,8MAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FDQa,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBATlC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,WAGlB,EAAE,EAAA,aAAA,EACI,iBAAiB,CAAC,IAAI,EAAA,SAAA,EAE1B,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAA,sBAAwB,EAAE,CAAC,EAAA,QAAA,EAAA,8JAAA,EAAA,MAAA,EAAA,CAAA,8MAAA,CAAA,EAAA;;;MEC/D,mBAAmB,CAAA;AAHhC,IAAA,WAAA,GAAA;AAIU,QAAA,IAAA,CAAA,SAAS,GAAG,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