ngx-core-components 0.2.0 → 0.3.0

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 (32) hide show
  1. package/buttons/button/button.component.d.ts +3 -1
  2. package/buttons/chip/chip.component.d.ts +5 -3
  3. package/buttons/split-button/split-button.component.d.ts +3 -0
  4. package/charts/gantt-chart/gantt-chart.component.d.ts +1 -0
  5. package/feedback/badge/badge.component.d.ts +1 -0
  6. package/feedback/progress-bar/progress-bar.component.d.ts +1 -1
  7. package/fesm2022/ngx-core-components-buttons.mjs +92 -27
  8. package/fesm2022/ngx-core-components-buttons.mjs.map +1 -1
  9. package/fesm2022/ngx-core-components-charts.mjs +17 -4
  10. package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
  11. package/fesm2022/ngx-core-components-dialog.mjs +16 -9
  12. package/fesm2022/ngx-core-components-dialog.mjs.map +1 -1
  13. package/fesm2022/ngx-core-components-feedback.mjs +18 -16
  14. package/fesm2022/ngx-core-components-feedback.mjs.map +1 -1
  15. package/fesm2022/ngx-core-components-inputs.mjs +104 -17
  16. package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
  17. package/fesm2022/ngx-core-components-layout.mjs +42 -27
  18. package/fesm2022/ngx-core-components-layout.mjs.map +1 -1
  19. package/fesm2022/ngx-core-components-navigation.mjs +15 -5
  20. package/fesm2022/ngx-core-components-navigation.mjs.map +1 -1
  21. package/fesm2022/ngx-core-components-views.mjs +27 -4
  22. package/fesm2022/ngx-core-components-views.mjs.map +1 -1
  23. package/fesm2022/ngx-core-components.mjs.map +1 -1
  24. package/inputs/dropdown/dropdown.component.d.ts +4 -1
  25. package/inputs/slider/slider.component.d.ts +13 -5
  26. package/inputs/textbox/textbox.component.d.ts +7 -1
  27. package/layout/card/card.component.d.ts +3 -2
  28. package/layout/tab-strip/tab-strip.component.d.ts +2 -0
  29. package/navigation/menu/menu.component.d.ts +4 -1
  30. package/package.json +1 -1
  31. package/public-api.d.ts +6 -6
  32. package/views/tree-view/tree-view.component.d.ts +5 -0
@@ -124,21 +124,28 @@ class DialogService {
124
124
  environmentInjector: this.injector,
125
125
  projectableNodes: [],
126
126
  });
127
- // Pass data if the content component has a `dialogData` input
127
+ // Always assign common integration properties so dynamic dialog content
128
+ // can close itself even when these are plain class fields (not @Input).
128
129
  const instance = contentRef.instance;
129
- if ('dialogData' in instance) {
130
- instance['dialogData'] = cfg.data;
131
- }
132
- // Pass the dialogRef so the content can close itself
133
- if ('dialogRef' in instance) {
134
- instance['dialogRef'] = dialogRef;
130
+ instance['dialogData'] = cfg.data;
131
+ instance['dialogRef'] = dialogRef;
132
+ // If the content uses Angular inputs, update them through setInput as well.
133
+ if (typeof contentRef.setInput === 'function') {
134
+ try {
135
+ contentRef.setInput('dialogData', cfg.data);
136
+ }
137
+ catch { }
138
+ try {
139
+ contentRef.setInput('dialogRef', dialogRef);
140
+ }
141
+ catch { }
135
142
  }
136
143
  container.attachContent(contentRef.hostView);
137
144
  this.appRef.attachView(containerRef.hostView);
138
- this.appRef.attachView(contentRef.hostView);
145
+ // Ensure the content template sees injected properties immediately.
146
+ contentRef.changeDetectorRef.detectChanges();
139
147
  containerRef.changeDetectorRef.detectChanges();
140
148
  const remove = () => {
141
- this.appRef.detachView(contentRef.hostView);
142
149
  this.appRef.detachView(containerRef.hostView);
143
150
  contentRef.destroy();
144
151
  containerRef.destroy();
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-core-components-dialog.mjs","sources":["../../../projects/ngx-core-components/dialog/dialog-container.component.ts","../../../projects/ngx-core-components/dialog/dialog.service.ts","../../../projects/ngx-core-components/dialog/public-api.ts","../../../projects/ngx-core-components/dialog/ngx-core-components-dialog.ts"],"sourcesContent":["import {\n Component, ChangeDetectionStrategy, ViewChild, ViewContainerRef,\n ViewRef, ChangeDetectorRef, inject\n} from '@angular/core';\n\n/**\n * DialogContainerComponent — the floating shell rendered by DialogService.\n *\n * It renders:\n * • A full-screen semi-transparent backdrop\n * • A centered panel that hosts the user-provided content component\n *\n * The service programmatically attaches a content ViewRef into the\n * `contentOutlet` ViewContainerRef after construction.\n */\n@Component({\n selector: 'ngx-dialog-container',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div\n class=\"ngx-dialog-backdrop\"\n (click)=\"onBackdropClick()\"\n role=\"presentation\"\n >\n <div\n class=\"ngx-dialog-panel\"\n [class]=\"panelClass\"\n [style.max-width]=\"maxWidth\"\n role=\"dialog\"\n [attr.aria-label]=\"ariaLabel\"\n aria-modal=\"true\"\n (click)=\"$event.stopPropagation()\"\n >\n <ng-container #contentOutlet></ng-container>\n </div>\n </div>\n `,\n styles: [`\n :host { display: block; }\n .ngx-dialog-backdrop {\n position: fixed; inset: 0; z-index: 1000;\n background: rgba(0, 0, 0, 0.45);\n display: flex; align-items: center; justify-content: center;\n animation: ngx-fade-in 0.15s ease;\n }\n .ngx-dialog-panel {\n background: var(--ngx-dialog-bg, #fff);\n border-radius: var(--ngx-dialog-radius, 8px);\n box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);\n width: 100%; max-height: 90vh; overflow-y: auto;\n animation: ngx-slide-in 0.2s ease;\n }\n @keyframes ngx-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes ngx-slide-in {\n from { transform: translateY(-24px); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n }\n `],\n})\nexport class DialogContainerComponent {\n @ViewChild('contentOutlet', { read: ViewContainerRef, static: true })\n contentOutlet!: ViewContainerRef;\n\n ariaLabel = 'Dialog';\n maxWidth = '560px';\n panelClass = '';\n backdropClick: (() => void) | null = null;\n\n private cdr = inject(ChangeDetectorRef);\n\n attachContent(view: ViewRef): void {\n this.contentOutlet.insert(view);\n this.cdr.markForCheck();\n }\n\n onBackdropClick(): void {\n this.backdropClick?.();\n }\n}\n","import {\n Injectable, ApplicationRef, createComponent, EnvironmentInjector,\n inject, signal, Type\n} from '@angular/core';\nimport { DialogContainerComponent } from './dialog-container.component';\n\nexport interface DialogConfig<D = unknown> {\n /** Data passed to the dialog content component via the `dialogData` input. */\n data?: D;\n /** Whether clicking the backdrop closes the dialog. Defaults to true. */\n closeOnBackdrop?: boolean;\n /** Additional CSS class(es) to apply to the dialog panel. */\n panelClass?: string | string[];\n /** ARIA label for the dialog (for screen readers). */\n ariaLabel?: string;\n /** Max width of the dialog panel (CSS value). Defaults to '560px'. */\n maxWidth?: string;\n}\n\nexport interface DialogRef<R = unknown> {\n /** Emits the result value and removes the dialog from the DOM. */\n close(result?: R): void;\n /** Signal that resolves with the result once the dialog closes. */\n readonly closed: ReturnType<typeof signal<R | undefined>>;\n}\n\n/**\n * DialogService — programmatically opens Angular components inside a floating\n * overlay without requiring NgModule or z-index hacks.\n *\n * Usage:\n * ```ts\n * const ref = this.dialog.open(MyFormComponent, { data: { id: 42 } });\n * ref.closed(); // reactive signal — undefined until dialog closes\n * ```\n */\n@Injectable({ providedIn: 'root' })\nexport class DialogService {\n private appRef = inject(ApplicationRef);\n private injector = inject(EnvironmentInjector);\n\n open<C, D = unknown, R = unknown>(\n component: Type<C>,\n config?: DialogConfig<D>,\n ): DialogRef<R> {\n const cfg: Required<DialogConfig<D>> = {\n data: config?.data as D,\n closeOnBackdrop: config?.closeOnBackdrop ?? true,\n panelClass: config?.panelClass ?? [],\n ariaLabel: config?.ariaLabel ?? 'Dialog',\n maxWidth: config?.maxWidth ?? '560px',\n };\n\n const closedSignal = signal<R | undefined>(undefined);\n\n const dialogRef: DialogRef<R> = {\n closed: closedSignal,\n close: (result?: R) => {\n closedSignal.set(result);\n remove();\n },\n };\n\n // Create a host element appended to <body>\n const hostEl = document.createElement('ngx-dialog-host');\n document.body.appendChild(hostEl);\n\n // Create the container component\n const containerRef = createComponent(DialogContainerComponent, {\n environmentInjector: this.injector,\n hostElement: hostEl,\n });\n\n const container = containerRef.instance;\n container.ariaLabel = cfg.ariaLabel;\n container.maxWidth = cfg.maxWidth;\n container.panelClass = Array.isArray(cfg.panelClass)\n ? cfg.panelClass.join(' ')\n : cfg.panelClass;\n\n container.backdropClick = () => {\n if (cfg.closeOnBackdrop) dialogRef.close();\n };\n\n // Create the content component and project it into the container\n const contentRef = createComponent(component as Type<unknown>, {\n environmentInjector: this.injector,\n projectableNodes: [],\n });\n\n // Pass data if the content component has a `dialogData` input\n const instance = contentRef.instance as Record<string, unknown>;\n if ('dialogData' in instance) {\n instance['dialogData'] = cfg.data;\n }\n // Pass the dialogRef so the content can close itself\n if ('dialogRef' in instance) {\n instance['dialogRef'] = dialogRef;\n }\n\n container.attachContent(contentRef.hostView);\n this.appRef.attachView(containerRef.hostView);\n this.appRef.attachView(contentRef.hostView);\n\n containerRef.changeDetectorRef.detectChanges();\n\n const remove = () => {\n this.appRef.detachView(contentRef.hostView);\n this.appRef.detachView(containerRef.hostView);\n contentRef.destroy();\n containerRef.destroy();\n if (document.body.contains(hostEl)) {\n document.body.removeChild(hostEl);\n }\n };\n\n return dialogRef;\n }\n}\n","/*\n * Public API Surface — secondary entry point: ngx-core-components/dialog\n */\n\nexport { DialogService } from './dialog.service';\nexport type { DialogRef, DialogConfig } from './dialog.service';\nexport { DialogContainerComponent } from './dialog-container.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAKA;;;;;;;;;AASG;MAiDU,wBAAwB,CAAA;AAEnC,IAAA,aAAa;IAEb,SAAS,GAAG,QAAQ;IACpB,QAAQ,GAAG,OAAO;IAClB,UAAU,GAAG,EAAE;IACf,aAAa,GAAwB,IAAI;AAEjC,IAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAEvC,IAAA,aAAa,CAAC,IAAa,EAAA;AACzB,QAAA,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC;AAC/B,QAAA,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE;IACzB;IAEA,eAAe,GAAA;AACb,QAAA,IAAI,CAAC,aAAa,IAAI;IACxB;wGAlBW,wBA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A,aAAa,cADA,MAAM,EAAA,CAAA;;4FACnB,aAAa,EAAA,UAAA,EAAA,CAAA;kBADzB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACpClC;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-core-components-dialog.mjs","sources":["../../../projects/ngx-core-components/dialog/dialog-container.component.ts","../../../projects/ngx-core-components/dialog/dialog.service.ts","../../../projects/ngx-core-components/dialog/public-api.ts","../../../projects/ngx-core-components/dialog/ngx-core-components-dialog.ts"],"sourcesContent":["import {\n Component, ChangeDetectionStrategy, ViewChild, ViewContainerRef,\n ViewRef, ChangeDetectorRef, inject\n} from '@angular/core';\n\n/**\n * DialogContainerComponent — the floating shell rendered by DialogService.\n *\n * It renders:\n * • A full-screen semi-transparent backdrop\n * • A centered panel that hosts the user-provided content component\n *\n * The service programmatically attaches a content ViewRef into the\n * `contentOutlet` ViewContainerRef after construction.\n */\n@Component({\n selector: 'ngx-dialog-container',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div\n class=\"ngx-dialog-backdrop\"\n (click)=\"onBackdropClick()\"\n role=\"presentation\"\n >\n <div\n class=\"ngx-dialog-panel\"\n [class]=\"panelClass\"\n [style.max-width]=\"maxWidth\"\n role=\"dialog\"\n [attr.aria-label]=\"ariaLabel\"\n aria-modal=\"true\"\n (click)=\"$event.stopPropagation()\"\n >\n <ng-container #contentOutlet></ng-container>\n </div>\n </div>\n `,\n styles: [`\n :host { display: block; }\n .ngx-dialog-backdrop {\n position: fixed; inset: 0; z-index: 1000;\n background: rgba(0, 0, 0, 0.45);\n display: flex; align-items: center; justify-content: center;\n animation: ngx-fade-in 0.15s ease;\n }\n .ngx-dialog-panel {\n background: var(--ngx-dialog-bg, #fff);\n border-radius: var(--ngx-dialog-radius, 8px);\n box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);\n width: 100%; max-height: 90vh; overflow-y: auto;\n animation: ngx-slide-in 0.2s ease;\n }\n @keyframes ngx-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes ngx-slide-in {\n from { transform: translateY(-24px); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n }\n `],\n})\nexport class DialogContainerComponent {\n @ViewChild('contentOutlet', { read: ViewContainerRef, static: true })\n contentOutlet!: ViewContainerRef;\n\n ariaLabel = 'Dialog';\n maxWidth = '560px';\n panelClass = '';\n backdropClick: (() => void) | null = null;\n\n private cdr = inject(ChangeDetectorRef);\n\n attachContent(view: ViewRef): void {\n this.contentOutlet.insert(view);\n this.cdr.markForCheck();\n }\n\n onBackdropClick(): void {\n this.backdropClick?.();\n }\n}\n","import {\n Injectable, ApplicationRef, createComponent, EnvironmentInjector,\n inject, signal, Type\n} from '@angular/core';\nimport { DialogContainerComponent } from './dialog-container.component';\n\nexport interface DialogConfig<D = unknown> {\n /** Data passed to the dialog content component via the `dialogData` input. */\n data?: D;\n /** Whether clicking the backdrop closes the dialog. Defaults to true. */\n closeOnBackdrop?: boolean;\n /** Additional CSS class(es) to apply to the dialog panel. */\n panelClass?: string | string[];\n /** ARIA label for the dialog (for screen readers). */\n ariaLabel?: string;\n /** Max width of the dialog panel (CSS value). Defaults to '560px'. */\n maxWidth?: string;\n}\n\nexport interface DialogRef<R = unknown> {\n /** Emits the result value and removes the dialog from the DOM. */\n close(result?: R): void;\n /** Signal that resolves with the result once the dialog closes. */\n readonly closed: ReturnType<typeof signal<R | undefined>>;\n}\n\n/**\n * DialogService — programmatically opens Angular components inside a floating\n * overlay without requiring NgModule or z-index hacks.\n *\n * Usage:\n * ```ts\n * const ref = this.dialog.open(MyFormComponent, { data: { id: 42 } });\n * ref.closed(); // reactive signal — undefined until dialog closes\n * ```\n */\n@Injectable({ providedIn: 'root' })\nexport class DialogService {\n private appRef = inject(ApplicationRef);\n private injector = inject(EnvironmentInjector);\n\n open<C, D = unknown, R = unknown>(\n component: Type<C>,\n config?: DialogConfig<D>,\n ): DialogRef<R> {\n const cfg: Required<DialogConfig<D>> = {\n data: config?.data as D,\n closeOnBackdrop: config?.closeOnBackdrop ?? true,\n panelClass: config?.panelClass ?? [],\n ariaLabel: config?.ariaLabel ?? 'Dialog',\n maxWidth: config?.maxWidth ?? '560px',\n };\n\n const closedSignal = signal<R | undefined>(undefined);\n\n const dialogRef: DialogRef<R> = {\n closed: closedSignal,\n close: (result?: R) => {\n closedSignal.set(result);\n remove();\n },\n };\n\n // Create a host element appended to <body>\n const hostEl = document.createElement('ngx-dialog-host');\n document.body.appendChild(hostEl);\n\n // Create the container component\n const containerRef = createComponent(DialogContainerComponent, {\n environmentInjector: this.injector,\n hostElement: hostEl,\n });\n\n const container = containerRef.instance;\n container.ariaLabel = cfg.ariaLabel;\n container.maxWidth = cfg.maxWidth;\n container.panelClass = Array.isArray(cfg.panelClass)\n ? cfg.panelClass.join(' ')\n : cfg.panelClass;\n\n container.backdropClick = () => {\n if (cfg.closeOnBackdrop) dialogRef.close();\n };\n\n // Create the content component and project it into the container\n const contentRef = createComponent(component as Type<unknown>, {\n environmentInjector: this.injector,\n projectableNodes: [],\n });\n\n // Always assign common integration properties so dynamic dialog content\n // can close itself even when these are plain class fields (not @Input).\n const instance = contentRef.instance as Record<string, unknown>;\n instance['dialogData'] = cfg.data;\n instance['dialogRef'] = dialogRef;\n\n // If the content uses Angular inputs, update them through setInput as well.\n if (typeof contentRef.setInput === 'function') {\n try { contentRef.setInput('dialogData', cfg.data); } catch {}\n try { contentRef.setInput('dialogRef', dialogRef); } catch {}\n }\n\n container.attachContent(contentRef.hostView);\n this.appRef.attachView(containerRef.hostView);\n\n // Ensure the content template sees injected properties immediately.\n contentRef.changeDetectorRef.detectChanges();\n\n containerRef.changeDetectorRef.detectChanges();\n\n const remove = () => {\n this.appRef.detachView(containerRef.hostView);\n contentRef.destroy();\n containerRef.destroy();\n if (document.body.contains(hostEl)) {\n document.body.removeChild(hostEl);\n }\n };\n\n return dialogRef;\n }\n}\n","/*\n * Public API Surface — secondary entry point: ngx-core-components/dialog\n */\n\nexport { DialogService } from './dialog.service';\nexport type { DialogRef, DialogConfig } from './dialog.service';\nexport { DialogContainerComponent } from './dialog-container.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAKA;;;;;;;;;AASG;MAiDU,wBAAwB,CAAA;AAEnC,IAAA,aAAa;IAEb,SAAS,GAAG,QAAQ;IACpB,QAAQ,GAAG,OAAO;IAClB,UAAU,GAAG,EAAE;IACf,aAAa,GAAwB,IAAI;AAEjC,IAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAEvC,IAAA,aAAa,CAAC,IAAa,EAAA;AACzB,QAAA,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC;AAC/B,QAAA,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE;IACzB;IAEA,eAAe,GAAA;AACb,QAAA,IAAI,CAAC,aAAa,IAAI;IACxB;wGAlBW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,eAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,eAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,IAAA,EACC,gBAAgB,EAAA,MAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA7C1C;;;;;;;;;;;;;;;;;;AAkBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,qiBAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FA0BU,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAhDpC,SAAS;AACE,YAAA,I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CAAC,QAAQ,CAAC;;AAG7C,QAAA,UAAU,CAAC,iBAAiB,CAAC,aAAa,EAAE;AAE5C,QAAA,YAAY,CAAC,iBAAiB,CAAC,aAAa,EAAE;QAE9C,MAAM,MAAM,GAAG,MAAK;YAClB,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC;YAC7C,UAAU,CAAC,OAAO,EAAE;YACpB,YAAY,CAAC,OAAO,EAAE;YACtB,IAAI,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;AAClC,gBAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;YACnC;AACF,QAAA,CAAC;AAED,QAAA,OAAO,SAAS;IAClB;wGAnFW,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAb,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cADA,MAAM,EAAA,CAAA;;4FACnB,aAAa,EAAA,UAAA,EAAA,CAAA;kBADzB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACpClC;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, Component, signal, createComponent, Injectable } from '@angular/core';
2
+ import { input, computed, Component, signal, createComponent, Injectable } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
 
5
5
  class BadgeComponent {
@@ -9,16 +9,22 @@ class BadgeComponent {
9
9
  positioned = input(false);
10
10
  position = input('top-right');
11
11
  ariaLabel = input('');
12
+ badgeClass = computed(() => {
13
+ const cls = ['ngx-badge', `ngx-badge-${this.variant()}`];
14
+ if (this.dot())
15
+ cls.push('badge-dot');
16
+ if (this.positioned()) {
17
+ cls.push('badge-positioned');
18
+ cls.push(`badge-pos-${this.position()}`);
19
+ }
20
+ return cls.join(' ');
21
+ });
12
22
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
13
23
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: BadgeComponent, isStandalone: true, selector: "ngx-badge", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, dot: { classPropertyName: "dot", publicName: "dot", isSignal: true, isRequired: false, transformFunction: null }, positioned: { classPropertyName: "positioned", publicName: "positioned", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
14
24
  <span class="ngx-badge-host" [class.positioned]="positioned()">
15
25
  <ng-content />
16
26
  <span
17
- class="ngx-badge"
18
- [class]="'ngx-badge-' + variant()"
19
- [class.badge-dot]="dot()"
20
- [class.badge-positioned]="positioned()"
21
- [class]="positioned() ? 'badge-pos-' + position() : ''"
27
+ [class]="badgeClass()"
22
28
  [attr.aria-label]="ariaLabel() || content()"
23
29
  >
24
30
  @if (!dot()) { {{ content() }} }
@@ -32,11 +38,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
32
38
  <span class="ngx-badge-host" [class.positioned]="positioned()">
33
39
  <ng-content />
34
40
  <span
35
- class="ngx-badge"
36
- [class]="'ngx-badge-' + variant()"
37
- [class.badge-dot]="dot()"
38
- [class.badge-positioned]="positioned()"
39
- [class]="positioned() ? 'badge-pos-' + position() : ''"
41
+ [class]="badgeClass()"
40
42
  [attr.aria-label]="ariaLabel() || content()"
41
43
  >
42
44
  @if (!dot()) { {{ content() }} }
@@ -54,7 +56,7 @@ class ProgressBarComponent {
54
56
  height = input(8);
55
57
  showValue = input(false);
56
58
  indeterminate = input(false);
57
- get clamp() { return () => Math.max(0, Math.min(100, ((this.value() - this.min()) / (this.max() - this.min())) * 100)); }
59
+ clampedPct = computed(() => Math.max(0, Math.min(100, ((this.value() - this.min()) / Math.max(1, this.max() - this.min())) * 100)));
58
60
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
59
61
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: ProgressBarComponent, isStandalone: true, selector: "ngx-progress-bar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
60
62
  <div class="ngx-progress-bar">
@@ -66,7 +68,7 @@ class ProgressBarComponent {
66
68
  <div
67
69
  class="progress-fill"
68
70
  [class]="'variant-' + variant()"
69
- [style.width.%]="clamp()"
71
+ [style.width.%]="clampedPct()"
70
72
  role="progressbar"
71
73
  [attr.aria-valuenow]="value()"
72
74
  [attr.aria-valuemin]="min()"
@@ -75,7 +77,7 @@ class ProgressBarComponent {
75
77
  }
76
78
  </div>
77
79
  @if (showValue()) {
78
- <div class="progress-value">{{ (clamp()).toFixed(0) }}%</div>
80
+ <div class="progress-value">{{ clampedPct().toFixed(0) }}%</div>
79
81
  }
80
82
  </div>
81
83
  `, isInline: true, styles: [":host{display:block}.ngx-progress-bar{width:100%}.progress-label{font-size:12px;font-weight:600;color:var(--ngx-progress-label, #495057);margin-bottom:4px}.progress-track{background:var(--ngx-progress-track, #e9ecef);border-radius:999px;overflow:hidden;position:relative}.progress-fill{height:100%;border-radius:999px;transition:width .3s ease}.progress-value{font-size:11px;color:#6c757d;margin-top:3px;text-align:right}.progress-fill-indeterminate{height:100%;border-radius:999px;width:40%;animation:indeterminate 1.5s infinite ease-in-out;position:absolute}@keyframes indeterminate{0%{left:-40%}to{left:120%}}.variant-primary{background:var(--ngx-progress-primary, #1a73e8)}.variant-success{background:var(--ngx-progress-success, #27ae60)}.variant-danger{background:var(--ngx-progress-danger, #e74c3c)}.variant-warning{background:var(--ngx-progress-warning, #f39c12)}.variant-info{background:var(--ngx-progress-info, #17a2b8)}\n"] });
@@ -92,7 +94,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
92
94
  <div
93
95
  class="progress-fill"
94
96
  [class]="'variant-' + variant()"
95
- [style.width.%]="clamp()"
97
+ [style.width.%]="clampedPct()"
96
98
  role="progressbar"
97
99
  [attr.aria-valuenow]="value()"
98
100
  [attr.aria-valuemin]="min()"
@@ -101,7 +103,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
101
103
  }
102
104
  </div>
103
105
  @if (showValue()) {
104
- <div class="progress-value">{{ (clamp()).toFixed(0) }}%</div>
106
+ <div class="progress-value">{{ clampedPct().toFixed(0) }}%</div>
105
107
  }
106
108
  </div>
107
109
  `, styles: [":host{display:block}.ngx-progress-bar{width:100%}.progress-label{font-size:12px;font-weight:600;color:var(--ngx-progress-label, #495057);margin-bottom:4px}.progress-track{background:var(--ngx-progress-track, #e9ecef);border-radius:999px;overflow:hidden;position:relative}.progress-fill{height:100%;border-radius:999px;transition:width .3s ease}.progress-value{font-size:11px;color:#6c757d;margin-top:3px;text-align:right}.progress-fill-indeterminate{height:100%;border-radius:999px;width:40%;animation:indeterminate 1.5s infinite ease-in-out;position:absolute}@keyframes indeterminate{0%{left:-40%}to{left:120%}}.variant-primary{background:var(--ngx-progress-primary, #1a73e8)}.variant-success{background:var(--ngx-progress-success, #27ae60)}.variant-danger{background:var(--ngx-progress-danger, #e74c3c)}.variant-warning{background:var(--ngx-progress-warning, #f39c12)}.variant-info{background:var(--ngx-progress-info, #17a2b8)}\n"] }]
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-core-components-feedback.mjs","sources":["../../../projects/ngx-core-components/feedback/badge/badge.component.ts","../../../projects/ngx-core-components/feedback/progress-bar/progress-bar.component.ts","../../../projects/ngx-core-components/feedback/skeleton/skeleton.component.ts","../../../projects/ngx-core-components/feedback/notification/notification.service.ts","../../../projects/ngx-core-components/feedback/public-api.ts","../../../projects/ngx-core-components/feedback/ngx-core-components-feedback.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\n\nexport type BadgeVariant = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';\nexport type BadgePosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';\n\n@Component({\n selector: 'ngx-badge',\n standalone: true,\n template: `\n <span class=\"ngx-badge-host\" [class.positioned]=\"positioned()\">\n <ng-content />\n <span\n class=\"ngx-badge\"\n [class]=\"'ngx-badge-' + variant()\"\n [class.badge-dot]=\"dot()\"\n [class.badge-positioned]=\"positioned()\"\n [class]=\"positioned() ? 'badge-pos-' + position() : ''\"\n [attr.aria-label]=\"ariaLabel() || content()\"\n >\n @if (!dot()) { {{ content() }} }\n </span>\n </span>\n `,\n styles: [`\n :host { display: inline-block; }\n .ngx-badge-host { position: relative; display: inline-flex; }\n .ngx-badge {\n display: inline-flex; align-items: center; justify-content: center;\n padding: 2px 7px; font-size: 11px; font-weight: 700;\n border-radius: 999px; line-height: 1.4; white-space: nowrap; font-family: inherit;\n min-width: 20px;\n }\n .badge-dot { width: 8px; height: 8px; padding: 0; min-width: 0; border-radius: 50%; }\n .badge-positioned { position: absolute; }\n .badge-pos-top-right { top: -6px; right: -6px; }\n .badge-pos-top-left { top: -6px; left: -6px; }\n .badge-pos-bottom-right { bottom: -6px; right: -6px; }\n .badge-pos-bottom-left { bottom: -6px; left: -6px; }\n\n .ngx-badge-primary { background: var(--ngx-badge-primary-bg, #1a73e8); color: #fff; }\n .ngx-badge-secondary { background: var(--ngx-badge-secondary-bg, #6c757d); color: #fff; }\n .ngx-badge-success { background: var(--ngx-badge-success-bg, #27ae60); color: #fff; }\n .ngx-badge-danger { background: var(--ngx-badge-danger-bg, #e74c3c); color: #fff; }\n .ngx-badge-warning { background: var(--ngx-badge-warning-bg, #f39c12); color: #fff; }\n .ngx-badge-info { background: var(--ngx-badge-info-bg, #17a2b8); color: #fff; }\n .ngx-badge-light { background: var(--ngx-badge-light-bg, #f8f9fa); color: #212529; }\n .ngx-badge-dark { background: var(--ngx-badge-dark-bg, #343a40); color: #fff; }\n `]\n})\nexport class BadgeComponent {\n content = input<string | number>('');\n variant = input<BadgeVariant>('primary');\n dot = input(false);\n positioned = input(false);\n position = input<BadgePosition>('top-right');\n ariaLabel = input('');\n}\n","import { Component, input } from '@angular/core';\n\nexport type ProgressVariant = 'primary' | 'success' | 'danger' | 'warning' | 'info';\n\n@Component({\n selector: 'ngx-progress-bar',\n standalone: true,\n template: `\n <div class=\"ngx-progress-bar\">\n @if (label()) { <div class=\"progress-label\">{{ label() }}</div> }\n <div class=\"progress-track\" [style.height.px]=\"height()\">\n @if (indeterminate()) {\n <div class=\"progress-fill-indeterminate\" [class]=\"'variant-' + variant()\"></div>\n } @else {\n <div\n class=\"progress-fill\"\n [class]=\"'variant-' + variant()\"\n [style.width.%]=\"clamp()\"\n role=\"progressbar\"\n [attr.aria-valuenow]=\"value()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n ></div>\n }\n </div>\n @if (showValue()) {\n <div class=\"progress-value\">{{ (clamp()).toFixed(0) }}%</div>\n }\n </div>\n `,\n styles: [`\n :host { display: block; }\n .ngx-progress-bar { width: 100%; }\n .progress-label { font-size: 12px; font-weight: 600; color: var(--ngx-progress-label, #495057); margin-bottom: 4px; }\n .progress-track { background: var(--ngx-progress-track, #e9ecef); border-radius: 999px; overflow: hidden; position: relative; }\n .progress-fill { height: 100%; border-radius: 999px; transition: width 0.3s ease; }\n .progress-value { font-size: 11px; color: #6c757d; margin-top: 3px; text-align: right; }\n\n .progress-fill-indeterminate { height: 100%; border-radius: 999px; width: 40%; animation: indeterminate 1.5s infinite ease-in-out; position: absolute; }\n @keyframes indeterminate { 0% { left: -40%; } 100% { left: 120%; } }\n\n .variant-primary { background: var(--ngx-progress-primary, #1a73e8); }\n .variant-success { background: var(--ngx-progress-success, #27ae60); }\n .variant-danger { background: var(--ngx-progress-danger, #e74c3c); }\n .variant-warning { background: var(--ngx-progress-warning, #f39c12); }\n .variant-info { background: var(--ngx-progress-info, #17a2b8); }\n `]\n})\nexport class ProgressBarComponent {\n value = input(0);\n min = input(0);\n max = input(100);\n label = input('');\n variant = input<ProgressVariant>('primary');\n height = input(8);\n showValue = input(false);\n indeterminate = input(false);\n\n get clamp() { return () => Math.max(0, Math.min(100, ((this.value() - this.min()) / (this.max() - this.min())) * 100)); }\n}\n","import { Component, input } from '@angular/core';\n\nexport type SkeletonShape = 'text' | 'circle' | 'rect' | 'card';\n\n@Component({\n selector: 'ngx-skeleton',\n standalone: true,\n template: `\n @if (shape() === 'card') {\n <div class=\"skeleton-card\">\n <div class=\"skeleton-rect\" [style.height.px]=\"160\"></div>\n <div class=\"skeleton-card-body\">\n <div class=\"skeleton-text\" [style.width]=\"'70%'\"></div>\n <div class=\"skeleton-text\" [style.width]=\"'90%'\"></div>\n <div class=\"skeleton-text\" [style.width]=\"'50%'\"></div>\n </div>\n </div>\n } @else if (shape() === 'circle') {\n <div class=\"skeleton-circle\" [style.width.px]=\"size()\" [style.height.px]=\"size()\"></div>\n } @else if (shape() === 'text') {\n <div class=\"skeleton-text-block\">\n @for (line of lines(); track $index) {\n <div class=\"skeleton-text\" [style.width]=\"line\"></div>\n }\n </div>\n } @else {\n <div class=\"skeleton-rect\" [style.width]=\"width()\" [style.height]=\"height()\"></div>\n }\n `,\n styles: [`\n :host { display: block; }\n .skeleton-circle, .skeleton-rect, .skeleton-text, .skeleton-card-body { background: var(--ngx-skeleton-bg, #e9ecef); border-radius: 4px; animation: shimmer 1.4s infinite; background-size: 200% 100%; background-image: linear-gradient(90deg, var(--ngx-skeleton-bg, #e9ecef) 0%, var(--ngx-skeleton-highlight, #f8f9fa) 50%, var(--ngx-skeleton-bg, #e9ecef) 100%); }\n .skeleton-circle { border-radius: 50%; }\n .skeleton-text { height: 14px; margin-bottom: 8px; border-radius: 4px; }\n .skeleton-text:last-child { margin-bottom: 0; }\n .skeleton-rect { border-radius: 6px; }\n .skeleton-card { border-radius: 8px; overflow: hidden; }\n .skeleton-card-body { background: none; padding: 12px; }\n @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }\n `]\n})\nexport class SkeletonComponent {\n shape = input<SkeletonShape>('rect');\n size = input(40);\n width = input('100%');\n height = input('16px');\n lines = input<string[]>(['100%', '80%', '60%']);\n}\n","import { Injectable, ApplicationRef, createComponent, EnvironmentInjector, Component, input, signal, OnInit } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nexport type NotificationType = 'success' | 'error' | 'info' | 'warning';\nexport type NotificationPosition = 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';\n\nexport interface NotificationOptions {\n message: string;\n type?: NotificationType;\n title?: string;\n duration?: number;\n closable?: boolean;\n position?: NotificationPosition;\n}\n\nexport interface NotificationItem extends Required<NotificationOptions> {\n id: number;\n visible: boolean;\n}\n\nlet nextId = 0;\n\n@Component({\n selector: 'ngx-notification-container',\n standalone: true,\n imports: [CommonModule],\n template: `\n @for (n of items(); track n.id) {\n <div class=\"notification\" [class]=\"'notif-' + n.type\" [class.visible]=\"n.visible\" [attr.role]=\"n.type === 'error' ? 'alert' : 'status'\">\n <span class=\"notif-icon\">{{ icons[n.type] }}</span>\n <div class=\"notif-body\">\n @if (n.title) { <div class=\"notif-title\">{{ n.title }}</div> }\n <div class=\"notif-msg\">{{ n.message }}</div>\n </div>\n @if (n.closable) {\n <button class=\"notif-close\" (click)=\"remove(n.id)\" aria-label=\"Close\">×</button>\n }\n </div>\n }\n `,\n styles: [`\n :host { position: fixed; z-index: 10000; display: flex; flex-direction: column; gap: 10px; padding: 16px; pointer-events: none; }\n .notification {\n display: flex; align-items: flex-start; gap: 10px; min-width: 280px; max-width: 380px;\n padding: 12px 14px; border-radius: var(--ngx-notif-radius, 8px); box-shadow: 0 4px 20px rgba(0,0,0,0.15);\n pointer-events: all; font-family: inherit; font-size: 13px; opacity: 0; transform: translateX(20px);\n transition: opacity 0.25s, transform 0.25s; border-left: 4px solid transparent;\n background: var(--ngx-notif-bg, #fff); color: var(--ngx-notif-text, #212529);\n }\n .notification.visible { opacity: 1; transform: translateX(0); }\n .notif-success { border-left-color: #27ae60; }\n .notif-error { border-left-color: #e74c3c; }\n .notif-info { border-left-color: #1a73e8; }\n .notif-warning { border-left-color: #f39c12; }\n .notif-icon { font-size: 18px; flex-shrink: 0; }\n .notif-body { flex: 1; }\n .notif-title { font-weight: 700; margin-bottom: 3px; font-size: 13px; }\n .notif-msg { color: #6c757d; font-size: 12px; }\n .notif-close { background: none; border: none; font-size: 18px; cursor: pointer; color: #adb5bd; padding: 0; line-height: 1; margin-left: 4px; }\n .notif-close:hover { color: #495057; }\n `]\n})\nexport class NotificationContainerComponent implements OnInit {\n items = signal<NotificationItem[]>([]);\n icons: Record<NotificationType, string> = { success: '✅', error: '❌', info: 'ℹ️', warning: '⚠️' };\n\n ngOnInit() {}\n\n add(opts: NotificationOptions): number {\n const id = ++nextId;\n const item: NotificationItem = {\n id, visible: false,\n message: opts.message,\n type: opts.type ?? 'info',\n title: opts.title ?? '',\n duration: opts.duration ?? 4000,\n closable: opts.closable ?? true,\n position: opts.position ?? 'top-right'\n };\n this.items.update(arr => [...arr, item]);\n setTimeout(() => this.items.update(arr => arr.map(n => n.id === id ? { ...n, visible: true } : n)), 10);\n if (item.duration > 0) { setTimeout(() => this.remove(id), item.duration); }\n return id;\n }\n\n remove(id: number): void {\n this.items.update(arr => arr.map(n => n.id === id ? { ...n, visible: false } : n));\n setTimeout(() => this.items.update(arr => arr.filter(n => n.id !== id)), 300);\n }\n}\n\nconst POSITIONS: Record<NotificationPosition, string> = {\n 'top-right': 'top:0;right:0',\n 'top-left': 'top:0;left:0',\n 'top-center': 'top:0;left:50%;transform:translateX(-50%)',\n 'bottom-right': 'bottom:0;right:0',\n 'bottom-left': 'bottom:0;left:0',\n 'bottom-center': 'bottom:0;left:50%;transform:translateX(-50%)'\n};\n\n@Injectable({ providedIn: 'root' })\nexport class NotificationService {\n private containers = new Map<NotificationPosition, NotificationContainerComponent>();\n\n constructor(private appRef: ApplicationRef, private injector: EnvironmentInjector) {}\n\n private getContainer(pos: NotificationPosition): NotificationContainerComponent {\n if (this.containers.has(pos)) return this.containers.get(pos)!;\n const ref = createComponent(NotificationContainerComponent, { environmentInjector: this.injector });\n const el: HTMLElement = ref.location.nativeElement;\n el.setAttribute('style', POSITIONS[pos]);\n document.body.appendChild(el);\n this.appRef.attachView(ref.hostView);\n this.containers.set(pos, ref.instance);\n return ref.instance;\n }\n\n show(opts: NotificationOptions): number {\n const pos = opts.position ?? 'top-right';\n return this.getContainer(pos).add(opts);\n }\n\n success(message: string, title?: string, opts?: Partial<NotificationOptions>): number {\n return this.show({ ...opts, message, title, type: 'success' });\n }\n error(message: string, title?: string, opts?: Partial<NotificationOptions>): number {\n return this.show({ ...opts, message, title, type: 'error' });\n }\n info(message: string, title?: string, opts?: Partial<NotificationOptions>): number {\n return this.show({ ...opts, message, title, type: 'info' });\n }\n warning(message: string, title?: string, opts?: Partial<NotificationOptions>): number {\n return this.show({ ...opts, message, title, type: 'warning' });\n }\n}\n","/*\n * Public API Surface — secondary entry point: ngx-core-components/feedback\n */\n\nexport { BadgeComponent } from './badge/badge.component';\nexport type { BadgeVariant, BadgePosition } from './badge/badge.component';\n\nexport { ProgressBarComponent } from './progress-bar/progress-bar.component';\nexport type { ProgressVariant } from './progress-bar/progress-bar.component';\n\nexport { SkeletonComponent } from './skeleton/skeleton.component';\nexport type { SkeletonShape } from './skeleton/skeleton.component';\n\nexport { NotificationService, NotificationContainerComponent } from './notification/notification.service';\nexport type { NotificationOptions, NotificationItem, NotificationType, NotificationPosition } from './notification/notification.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAiDa,cAAc,CAAA;AACzB,IAAA,OAAO,GAAG,KAAK,CAAkB,EAAE,CAAC;AACpC,IAAA,OAAO,GAAG,KAAK,CAAe,SAAS,CAAC;AACxC,IAAA,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC;AAClB,IAAA,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC;AACzB,IAAA,QAAQ,GAAG,KAAK,CAAgB,WAAW,CAAC;AAC5C,IAAA,SAAS,GAAG,KAAK,CAAC,EAAE,CAAC;wGANV,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SA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E,CAAC;IAChE;wGAhCW,mBAAmB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,cAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,cADN,MAAM,EAAA,CAAA;;4FACnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAD/B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACpGlC;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-core-components-feedback.mjs","sources":["../../../projects/ngx-core-components/feedback/badge/badge.component.ts","../../../projects/ngx-core-components/feedback/progress-bar/progress-bar.component.ts","../../../projects/ngx-core-components/feedback/skeleton/skeleton.component.ts","../../../projects/ngx-core-components/feedback/notification/notification.service.ts","../../../projects/ngx-core-components/feedback/public-api.ts","../../../projects/ngx-core-components/feedback/ngx-core-components-feedback.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\n\nexport type BadgeVariant = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';\nexport type BadgePosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';\n\n@Component({\n selector: 'ngx-badge',\n standalone: true,\n template: `\n <span class=\"ngx-badge-host\" [class.positioned]=\"positioned()\">\n <ng-content />\n <span\n [class]=\"badgeClass()\"\n [attr.aria-label]=\"ariaLabel() || content()\"\n >\n @if (!dot()) { {{ content() }} }\n </span>\n </span>\n `,\n styles: [`\n :host { display: inline-block; }\n .ngx-badge-host { position: relative; display: inline-flex; }\n .ngx-badge {\n display: inline-flex; align-items: center; justify-content: center;\n padding: 2px 7px; font-size: 11px; font-weight: 700;\n border-radius: 999px; line-height: 1.4; white-space: nowrap; font-family: inherit;\n min-width: 20px;\n }\n .badge-dot { width: 8px; height: 8px; padding: 0; min-width: 0; border-radius: 50%; }\n .badge-positioned { position: absolute; }\n .badge-pos-top-right { top: -6px; right: -6px; }\n .badge-pos-top-left { top: -6px; left: -6px; }\n .badge-pos-bottom-right { bottom: -6px; right: -6px; }\n .badge-pos-bottom-left { bottom: -6px; left: -6px; }\n\n .ngx-badge-primary { background: var(--ngx-badge-primary-bg, #1a73e8); color: #fff; }\n .ngx-badge-secondary { background: var(--ngx-badge-secondary-bg, #6c757d); color: #fff; }\n .ngx-badge-success { background: var(--ngx-badge-success-bg, #27ae60); color: #fff; }\n .ngx-badge-danger { background: var(--ngx-badge-danger-bg, #e74c3c); color: #fff; }\n .ngx-badge-warning { background: var(--ngx-badge-warning-bg, #f39c12); color: #fff; }\n .ngx-badge-info { background: var(--ngx-badge-info-bg, #17a2b8); color: #fff; }\n .ngx-badge-light { background: var(--ngx-badge-light-bg, #f8f9fa); color: #212529; }\n .ngx-badge-dark { background: var(--ngx-badge-dark-bg, #343a40); color: #fff; }\n `]\n})\nexport class BadgeComponent {\n content = input<string | number>('');\n variant = input<BadgeVariant>('primary');\n dot = input(false);\n positioned = input(false);\n position = input<BadgePosition>('top-right');\n ariaLabel = input('');\n\n badgeClass = computed(() => {\n const cls = ['ngx-badge', `ngx-badge-${this.variant()}`];\n if (this.dot()) cls.push('badge-dot');\n if (this.positioned()) {\n cls.push('badge-positioned');\n cls.push(`badge-pos-${this.position()}`);\n }\n return cls.join(' ');\n });\n}\n","import { Component, computed, input } from '@angular/core';\n\nexport type ProgressVariant = 'primary' | 'success' | 'danger' | 'warning' | 'info';\n\n@Component({\n selector: 'ngx-progress-bar',\n standalone: true,\n template: `\n <div class=\"ngx-progress-bar\">\n @if (label()) { <div class=\"progress-label\">{{ label() }}</div> }\n <div class=\"progress-track\" [style.height.px]=\"height()\">\n @if (indeterminate()) {\n <div class=\"progress-fill-indeterminate\" [class]=\"'variant-' + variant()\"></div>\n } @else {\n <div\n class=\"progress-fill\"\n [class]=\"'variant-' + variant()\"\n [style.width.%]=\"clampedPct()\"\n role=\"progressbar\"\n [attr.aria-valuenow]=\"value()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n ></div>\n }\n </div>\n @if (showValue()) {\n <div class=\"progress-value\">{{ clampedPct().toFixed(0) }}%</div>\n }\n </div>\n `,\n styles: [`\n :host { display: block; }\n .ngx-progress-bar { width: 100%; }\n .progress-label { font-size: 12px; font-weight: 600; color: var(--ngx-progress-label, #495057); margin-bottom: 4px; }\n .progress-track { background: var(--ngx-progress-track, #e9ecef); border-radius: 999px; overflow: hidden; position: relative; }\n .progress-fill { height: 100%; border-radius: 999px; transition: width 0.3s ease; }\n .progress-value { font-size: 11px; color: #6c757d; margin-top: 3px; text-align: right; }\n\n .progress-fill-indeterminate { height: 100%; border-radius: 999px; width: 40%; animation: indeterminate 1.5s infinite ease-in-out; position: absolute; }\n @keyframes indeterminate { 0% { left: -40%; } 100% { left: 120%; } }\n\n .variant-primary { background: var(--ngx-progress-primary, #1a73e8); }\n .variant-success { background: var(--ngx-progress-success, #27ae60); }\n .variant-danger { background: var(--ngx-progress-danger, #e74c3c); }\n .variant-warning { background: var(--ngx-progress-warning, #f39c12); }\n .variant-info { background: var(--ngx-progress-info, #17a2b8); }\n `]\n})\nexport class ProgressBarComponent {\n value = input(0);\n min = input(0);\n max = input(100);\n label = input('');\n variant = input<ProgressVariant>('primary');\n height = input(8);\n showValue = input(false);\n indeterminate = input(false);\n\n clampedPct = computed(() =>\n Math.max(0, Math.min(100, ((this.value() - this.min()) / Math.max(1, this.max() - this.min())) * 100))\n );\n}\n","import { Component, input } from '@angular/core';\n\nexport type SkeletonShape = 'text' | 'circle' | 'rect' | 'card';\n\n@Component({\n selector: 'ngx-skeleton',\n standalone: true,\n template: `\n @if (shape() === 'card') {\n <div class=\"skeleton-card\">\n <div class=\"skeleton-rect\" [style.height.px]=\"160\"></div>\n <div class=\"skeleton-card-body\">\n <div class=\"skeleton-text\" [style.width]=\"'70%'\"></div>\n <div class=\"skeleton-text\" [style.width]=\"'90%'\"></div>\n <div class=\"skeleton-text\" [style.width]=\"'50%'\"></div>\n </div>\n </div>\n } @else if (shape() === 'circle') {\n <div class=\"skeleton-circle\" [style.width.px]=\"size()\" [style.height.px]=\"size()\"></div>\n } @else if (shape() === 'text') {\n <div class=\"skeleton-text-block\">\n @for (line of lines(); track $index) {\n <div class=\"skeleton-text\" [style.width]=\"line\"></div>\n }\n </div>\n } @else {\n <div class=\"skeleton-rect\" [style.width]=\"width()\" [style.height]=\"height()\"></div>\n }\n `,\n styles: [`\n :host { display: block; }\n .skeleton-circle, .skeleton-rect, .skeleton-text, .skeleton-card-body { background: var(--ngx-skeleton-bg, #e9ecef); border-radius: 4px; animation: shimmer 1.4s infinite; background-size: 200% 100%; background-image: linear-gradient(90deg, var(--ngx-skeleton-bg, #e9ecef) 0%, var(--ngx-skeleton-highlight, #f8f9fa) 50%, var(--ngx-skeleton-bg, #e9ecef) 100%); }\n .skeleton-circle { border-radius: 50%; }\n .skeleton-text { height: 14px; margin-bottom: 8px; border-radius: 4px; }\n .skeleton-text:last-child { margin-bottom: 0; }\n .skeleton-rect { border-radius: 6px; }\n .skeleton-card { border-radius: 8px; overflow: hidden; }\n .skeleton-card-body { background: none; padding: 12px; }\n @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }\n `]\n})\nexport class SkeletonComponent {\n shape = input<SkeletonShape>('rect');\n size = input(40);\n width = input('100%');\n height = input('16px');\n lines = input<string[]>(['100%', '80%', '60%']);\n}\n","import { Injectable, ApplicationRef, createComponent, EnvironmentInjector, Component, input, signal, OnInit } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nexport type NotificationType = 'success' | 'error' | 'info' | 'warning';\nexport type NotificationPosition = 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';\n\nexport interface NotificationOptions {\n message: string;\n type?: NotificationType;\n title?: string;\n duration?: number;\n closable?: boolean;\n position?: NotificationPosition;\n}\n\nexport interface NotificationItem extends Required<NotificationOptions> {\n id: number;\n visible: boolean;\n}\n\nlet nextId = 0;\n\n@Component({\n selector: 'ngx-notification-container',\n standalone: true,\n imports: [CommonModule],\n template: `\n @for (n of items(); track n.id) {\n <div class=\"notification\" [class]=\"'notif-' + n.type\" [class.visible]=\"n.visible\" [attr.role]=\"n.type === 'error' ? 'alert' : 'status'\">\n <span class=\"notif-icon\">{{ icons[n.type] }}</span>\n <div class=\"notif-body\">\n @if (n.title) { <div class=\"notif-title\">{{ n.title }}</div> }\n <div class=\"notif-msg\">{{ n.message }}</div>\n </div>\n @if (n.closable) {\n <button class=\"notif-close\" (click)=\"remove(n.id)\" aria-label=\"Close\">×</button>\n }\n </div>\n }\n `,\n styles: [`\n :host { position: fixed; z-index: 10000; display: flex; flex-direction: column; gap: 10px; padding: 16px; pointer-events: none; }\n .notification {\n display: flex; align-items: flex-start; gap: 10px; min-width: 280px; max-width: 380px;\n padding: 12px 14px; border-radius: var(--ngx-notif-radius, 8px); box-shadow: 0 4px 20px rgba(0,0,0,0.15);\n pointer-events: all; font-family: inherit; font-size: 13px; opacity: 0; transform: translateX(20px);\n transition: opacity 0.25s, transform 0.25s; border-left: 4px solid transparent;\n background: var(--ngx-notif-bg, #fff); color: var(--ngx-notif-text, #212529);\n }\n .notification.visible { opacity: 1; transform: translateX(0); }\n .notif-success { border-left-color: #27ae60; }\n .notif-error { border-left-color: #e74c3c; }\n .notif-info { border-left-color: #1a73e8; }\n .notif-warning { border-left-color: #f39c12; }\n .notif-icon { font-size: 18px; flex-shrink: 0; }\n .notif-body { flex: 1; }\n .notif-title { font-weight: 700; margin-bottom: 3px; font-size: 13px; }\n .notif-msg { color: #6c757d; font-size: 12px; }\n .notif-close { background: none; border: none; font-size: 18px; cursor: pointer; color: #adb5bd; padding: 0; line-height: 1; margin-left: 4px; }\n .notif-close:hover { color: #495057; }\n `]\n})\nexport class NotificationContainerComponent implements OnInit {\n items = signal<NotificationItem[]>([]);\n icons: Record<NotificationType, string> = { success: '✅', error: '❌', info: 'ℹ️', warning: '⚠️' };\n\n ngOnInit() {}\n\n add(opts: NotificationOptions): number {\n const id = ++nextId;\n const item: NotificationItem = {\n id, visible: false,\n message: opts.message,\n type: opts.type ?? 'info',\n title: opts.title ?? '',\n duration: opts.duration ?? 4000,\n closable: opts.closable ?? true,\n position: opts.position ?? 'top-right'\n };\n this.items.update(arr => [...arr, item]);\n setTimeout(() => this.items.update(arr => arr.map(n => n.id === id ? { ...n, visible: true } : n)), 10);\n if (item.duration > 0) { setTimeout(() => this.remove(id), item.duration); }\n return id;\n }\n\n remove(id: number): void {\n this.items.update(arr => arr.map(n => n.id === id ? { ...n, visible: false } : n));\n setTimeout(() => this.items.update(arr => arr.filter(n => n.id !== id)), 300);\n }\n}\n\nconst POSITIONS: Record<NotificationPosition, string> = {\n 'top-right': 'top:0;right:0',\n 'top-left': 'top:0;left:0',\n 'top-center': 'top:0;left:50%;transform:translateX(-50%)',\n 'bottom-right': 'bottom:0;right:0',\n 'bottom-left': 'bottom:0;left:0',\n 'bottom-center': 'bottom:0;left:50%;transform:translateX(-50%)'\n};\n\n@Injectable({ providedIn: 'root' })\nexport class NotificationService {\n private containers = new Map<NotificationPosition, NotificationContainerComponent>();\n\n constructor(private appRef: ApplicationRef, private injector: EnvironmentInjector) {}\n\n private getContainer(pos: NotificationPosition): NotificationContainerComponent {\n if (this.containers.has(pos)) return this.containers.get(pos)!;\n const ref = createComponent(NotificationContainerComponent, { environmentInjector: this.injector });\n const el: HTMLElement = ref.location.nativeElement;\n el.setAttribute('style', POSITIONS[pos]);\n document.body.appendChild(el);\n this.appRef.attachView(ref.hostView);\n this.containers.set(pos, ref.instance);\n return ref.instance;\n }\n\n show(opts: NotificationOptions): number {\n const pos = opts.position ?? 'top-right';\n return this.getContainer(pos).add(opts);\n }\n\n success(message: string, title?: string, opts?: Partial<NotificationOptions>): number {\n return this.show({ ...opts, message, title, type: 'success' });\n }\n error(message: string, title?: string, opts?: Partial<NotificationOptions>): number {\n return this.show({ ...opts, message, title, type: 'error' });\n }\n info(message: string, title?: string, opts?: Partial<NotificationOptions>): number {\n return this.show({ ...opts, message, title, type: 'info' });\n }\n warning(message: string, title?: string, opts?: Partial<NotificationOptions>): number {\n return this.show({ ...opts, message, title, type: 'warning' });\n }\n}\n","/*\n * Public API Surface — secondary entry point: ngx-core-components/feedback\n */\n\nexport { BadgeComponent } from './badge/badge.component';\nexport type { BadgeVariant, BadgePosition } from './badge/badge.component';\n\nexport { ProgressBarComponent } from './progress-bar/progress-bar.component';\nexport type { ProgressVariant } from './progress-bar/progress-bar.component';\n\nexport { SkeletonComponent } from './skeleton/skeleton.component';\nexport type { SkeletonShape } from './skeleton/skeleton.component';\n\nexport { NotificationService, NotificationContainerComponent } from './notification/notification.service';\nexport type { NotificationOptions, NotificationItem, NotificationType, NotificationPosition } from './notification/notification.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MA6Ca,cAAc,CAAA;AACzB,IAAA,OAAO,GAAG,KAAK,CAAkB,EAAE,CAAC;AACpC,IAAA,OAAO,GAAG,KAAK,CAAe,SAAS,CAAC;AACxC,IAAA,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC;AAClB,IAAA,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC;AACzB,IAAA,QAAQ,GAAG,KAAK,CAAgB,WAAW,CAAC;AAC5C,IAAA,SAAS,GAAG,KAAK,CAAC,EAAE,CAAC;AAErB,IAAA,UAAU,GAAG,QAAQ,CAAC,MAAK;AACzB,QAAA,MAAM,GAAG,GAAG,CAAC,WAAW,EAAE,CAAA,UAAA,EAAa,IAAI,CAAC,OAAO,EAAE,CAAA,CAAE,CAAC;QACxD,IAAI,IAAI,CAAC,GAAG,EAAE;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