@softpak/components 19.15.2 → 19.15.3

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.
@@ -36,7 +36,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
36
36
  args: [{ selector: 'spx-confirm', imports: [SpxButtonComponent, FaIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<div class=\"block spx-confirm h-full mt-12\">\r\n <div class=\"bg-amber-400 flex gap-3 items-center px-3 py-1 rounded-t text-black\">\r\n <div class=\"grow font-bold\">\r\n <ng-content select=\"[confirm__title]\"></ng-content>\r\n </div>\r\n <spx-button (spxClick)=\"onCancel()\" [spxType]=\"'button'\" [spxSeverity]=\"severityInfo\"><fa-icon\r\n [icon]=\"faTimes\"></fa-icon>\r\n </spx-button>\r\n </div>\r\n <div class=\"flex flex-col gap-3 bg-black p-3\">\r\n <ng-content select=\"[confirm__content]\"></ng-content>\r\n <div class=\"grid grid-cols-1 grid-rows-2 sm:grid-rows-1 sm:grid-cols-2 gap-3 grid-flow-row\">\r\n <spx-button (spxClick)=\"onCancel()\" [spxFullWidth]=\"true\" [spxType]=\"'button'\"\r\n [spxSeverity]=\"severityError\">\r\n <ng-content select=\"[confirm__btn_cancel]\"></ng-content>\r\n </spx-button>\r\n <spx-button #confirm (spxClick)=\"onConfirm()\" [spxFullWidth]=\"true\" [spxType]=\"'submit'\"\r\n [spxSeverity]=\"severitySuccess\">\r\n <ng-content select=\"[confirm__btn_confirm]\"></ng-content>\r\n </spx-button>\r\n </div>\r\n </div>\r\n</div>", styles: [":host{position:absolute;z-index:var(--z-index--confirm);top:0;left:0;right:0;background-color:var(--color--backdrop)}.spx-confirm{background-color:var(--color--item--background);border-radius:3px;color:var(--ion-text-color, #000);position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:90%;max-width:960px}\n"] }]
37
37
  }], ctorParameters: () => [] });
38
38
 
39
- class SPConfirmDisplayerComponent {
39
+ class SpxConfirmDisplayerComponent {
40
40
  constructor(appStore) {
41
41
  this.appStore = appStore;
42
42
  this.confirms = signal([]);
@@ -66,10 +66,10 @@ class SPConfirmDisplayerComponent {
66
66
  id
67
67
  }));
68
68
  }
69
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SPConfirmDisplayerComponent, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Component }); }
70
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SPConfirmDisplayerComponent, isStandalone: true, selector: "spx-confirm-displayer", ngImport: i0, template: "@if (confirms().length > 0) {\r\n <div class=\"bg-black/75 block relative h-full\" style=\"z-index: 1000\">\r\n @for (confirm of confirms(); track confirm.id) {\r\n <spx-confirm [id]=\"confirm.id\" (spxCancel)=\"onCancel($event)\"\r\n (spxConfirm)=\"onConfirm($event)\">\r\n <ng-container confirm__title>{{ confirm.title }}</ng-container>\r\n <ng-container confirm__content>{{ confirm.content }}</ng-container>\r\n <ng-container confirm__btn_cancel>{{confirm.noYesButton ? 'NO' : 'Cancel'}}</ng-container>\r\n <ng-container confirm__btn_confirm>{{confirm.noYesButton ? 'YES' : 'OK'}}</ng-container>\r\n </spx-confirm>\r\n }\r\n </div>\r\n}", styles: [""], dependencies: [{ kind: "component", type: SpxConfirmComponent, selector: "spx-confirm", inputs: ["id"], outputs: ["spxCancel", "spxConfirm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
69
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxConfirmDisplayerComponent, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Component }); }
70
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SpxConfirmDisplayerComponent, isStandalone: true, selector: "spx-confirm-displayer", ngImport: i0, template: "@if (confirms().length > 0) {\r\n <div class=\"bg-black/75 block relative h-full\" style=\"z-index: 1000\">\r\n @for (confirm of confirms(); track confirm.id) {\r\n <spx-confirm [id]=\"confirm.id\" (spxCancel)=\"onCancel($event)\"\r\n (spxConfirm)=\"onConfirm($event)\">\r\n <ng-container confirm__title>{{ confirm.title }}</ng-container>\r\n <ng-container confirm__content>{{ confirm.content }}</ng-container>\r\n <ng-container confirm__btn_cancel>{{confirm.noYesButton ? 'NO' : 'Cancel'}}</ng-container>\r\n <ng-container confirm__btn_confirm>{{confirm.noYesButton ? 'YES' : 'OK'}}</ng-container>\r\n </spx-confirm>\r\n }\r\n </div>\r\n}", styles: [""], dependencies: [{ kind: "component", type: SpxConfirmComponent, selector: "spx-confirm", inputs: ["id"], outputs: ["spxCancel", "spxConfirm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
71
71
  }
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SPConfirmDisplayerComponent, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxConfirmDisplayerComponent, decorators: [{
73
73
  type: Component,
74
74
  args: [{ selector: 'spx-confirm-displayer', imports: [SpxConfirmComponent], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "@if (confirms().length > 0) {\r\n <div class=\"bg-black/75 block relative h-full\" style=\"z-index: 1000\">\r\n @for (confirm of confirms(); track confirm.id) {\r\n <spx-confirm [id]=\"confirm.id\" (spxCancel)=\"onCancel($event)\"\r\n (spxConfirm)=\"onConfirm($event)\">\r\n <ng-container confirm__title>{{ confirm.title }}</ng-container>\r\n <ng-container confirm__content>{{ confirm.content }}</ng-container>\r\n <ng-container confirm__btn_cancel>{{confirm.noYesButton ? 'NO' : 'Cancel'}}</ng-container>\r\n <ng-container confirm__btn_confirm>{{confirm.noYesButton ? 'YES' : 'OK'}}</ng-container>\r\n </spx-confirm>\r\n }\r\n </div>\r\n}" }]
75
75
  }], ctorParameters: () => [{ type: i1.Store }] });
@@ -158,5 +158,5 @@ var spxConfirm_effects = /*#__PURE__*/Object.freeze({
158
158
  * Generated bundle index. Do not edit.
159
159
  */
160
160
 
161
- export { SPConfirmDisplayerComponent, SpxConfirmComponent, spxConfirm_actions as spxConfirmActions, spxConfirm_effects as spxConfirmEffects, spxConfirm_reducer as spxConfirmReducer };
161
+ export { SpxConfirmComponent, SpxConfirmDisplayerComponent, spxConfirm_actions as spxConfirmActions, spxConfirm_effects as spxConfirmEffects, spxConfirm_reducer as spxConfirmReducer };
162
162
  //# sourceMappingURL=softpak-components-spx-confirm.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"softpak-components-spx-confirm.mjs","sources":["../../../../projects/softpak/components/spx-confirm/spx-confirm.component.ts","../../../../projects/softpak/components/spx-confirm/spx-confirm.component.html","../../../../projects/softpak/components/spx-confirm/spx-confirm-displayer/spx-confirm-displayer.component.ts","../../../../projects/softpak/components/spx-confirm/spx-confirm-displayer/spx-confirm-displayer.component.html","../../../../projects/softpak/components/spx-confirm/store/spx-confirm.actions.ts","../../../../projects/softpak/components/spx-confirm/store/spx-confirm.reducer.ts","../../../../projects/softpak/components/spx-confirm/store/spx-confirm.effects.ts","../../../../projects/softpak/components/spx-confirm/softpak-components-spx-confirm.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';\r\nimport { FaIconComponent } from '@fortawesome/angular-fontawesome';\r\nimport { faTimes } from '@fortawesome/free-solid-svg-icons';\r\nimport { SpxButtonComponent } from '@softpak/components/spx-button';\r\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\r\n\r\n@Component({\r\n selector: 'spx-confirm',\r\n templateUrl: './spx-confirm.component.html',\r\n styleUrls: ['./spx-confirm.component.scss'],\r\n imports: [SpxButtonComponent, FaIconComponent],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n standalone: true\r\n})\r\nexport class SpxConfirmComponent {\r\n id = input.required<string>();\r\n spxCancel = output<string>();\r\n spxConfirm = output<string>();\r\n faTimes = faTimes;\r\n severityError = SpxSeverityEnum.error;\r\n severityInfo = SpxSeverityEnum.info;\r\n severitySuccess = SpxSeverityEnum.success;\r\n\r\n constructor() { }\r\n\r\n onCancel() {\r\n this.spxCancel.emit(this.id());\r\n }\r\n\r\n onConfirm() {\r\n if(this.id()) {}\r\n this.spxConfirm.emit(this.id());\r\n }\r\n\r\n}\r\n","<div class=\"block spx-confirm h-full mt-12\">\r\n <div class=\"bg-amber-400 flex gap-3 items-center px-3 py-1 rounded-t text-black\">\r\n <div class=\"grow font-bold\">\r\n <ng-content select=\"[confirm__title]\"></ng-content>\r\n </div>\r\n <spx-button (spxClick)=\"onCancel()\" [spxType]=\"'button'\" [spxSeverity]=\"severityInfo\"><fa-icon\r\n [icon]=\"faTimes\"></fa-icon>\r\n </spx-button>\r\n </div>\r\n <div class=\"flex flex-col gap-3 bg-black p-3\">\r\n <ng-content select=\"[confirm__content]\"></ng-content>\r\n <div class=\"grid grid-cols-1 grid-rows-2 sm:grid-rows-1 sm:grid-cols-2 gap-3 grid-flow-row\">\r\n <spx-button (spxClick)=\"onCancel()\" [spxFullWidth]=\"true\" [spxType]=\"'button'\"\r\n [spxSeverity]=\"severityError\">\r\n <ng-content select=\"[confirm__btn_cancel]\"></ng-content>\r\n </spx-button>\r\n <spx-button #confirm (spxClick)=\"onConfirm()\" [spxFullWidth]=\"true\" [spxType]=\"'submit'\"\r\n [spxSeverity]=\"severitySuccess\">\r\n <ng-content select=\"[confirm__btn_confirm]\"></ng-content>\r\n </spx-button>\r\n </div>\r\n </div>\r\n</div>","import { ChangeDetectionStrategy, Component, OnDestroy, OnInit, signal } from '@angular/core';\r\nimport { Store, select } from '@ngrx/store';\r\nimport { Subscription } from 'rxjs';\r\nimport { SpxConfirmComponent } from '../spx-confirm.component';\r\nimport { spxConfirmActions, spxConfirmReducer } from '../public-api';\r\n\r\n@Component({\r\n selector: 'spx-confirm-displayer',\r\n templateUrl: './spx-confirm-displayer.component.html',\r\n styleUrls: ['./spx-confirm-displayer.component.scss'],\r\n imports: [SpxConfirmComponent],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n standalone: true\r\n})\r\nexport class SPConfirmDisplayerComponent implements OnInit, OnDestroy {\r\n confirms = signal<{\r\n content: string;\r\n id: string;\r\n title: string;\r\n cancelled?: boolean;\r\n confirmed?: boolean;\r\n noYesButton?: boolean;\r\n }[]>([]);\r\n\r\n private subscriptions: {\r\n confirmState?: Subscription;\r\n } = {};\r\n\r\n constructor(\r\n private readonly appStore: Store,\r\n ) { }\r\n\r\n ngOnInit() {\r\n this.subscriptions.confirmState = this.appStore.pipe(select(spxConfirmReducer.default.selectConfirms)).subscribe(confirms => {\r\n if (confirms?.length === 0) {\r\n this.confirms.set([]);\r\n return;\r\n }\r\n\r\n this.confirms.set(confirms);\r\n });\r\n }\r\n\r\n ngOnDestroy() {\r\n this.subscriptions?.confirmState?.unsubscribe();\r\n }\r\n\r\n onCancel(id: string) {\r\n this.appStore.dispatch(spxConfirmActions.answer({\r\n cancel: true,\r\n id\r\n }));\r\n }\r\n\r\n onConfirm(id: string) {\r\n this.appStore.dispatch(spxConfirmActions.answer({\r\n confirm: true,\r\n id\r\n }));\r\n }\r\n\r\n}\r\n","@if (confirms().length > 0) {\r\n <div class=\"bg-black/75 block relative h-full\" style=\"z-index: 1000\">\r\n @for (confirm of confirms(); track confirm.id) {\r\n <spx-confirm [id]=\"confirm.id\" (spxCancel)=\"onCancel($event)\"\r\n (spxConfirm)=\"onConfirm($event)\">\r\n <ng-container confirm__title>{{ confirm.title }}</ng-container>\r\n <ng-container confirm__content>{{ confirm.content }}</ng-container>\r\n <ng-container confirm__btn_cancel>{{confirm.noYesButton ? 'NO' : 'Cancel'}}</ng-container>\r\n <ng-container confirm__btn_confirm>{{confirm.noYesButton ? 'YES' : 'OK'}}</ng-container>\r\n </spx-confirm>\r\n }\r\n </div>\r\n}","import { createAction, props, union } from '@ngrx/store';\r\nimport { SpxConfirmI } from './spx-confirm.reducer';\r\n\r\nexport const answer = createAction('[Confirm] Answer', props<{\r\n cancel?: boolean;\r\n confirm?: boolean;\r\n id: string;\r\n}>());\r\nexport const reset = createAction('[Confirm] Reset', props<Record<string, unknown>>());\r\nexport const show = createAction('[Confirm] Show', props<SpxConfirmI>());\r\n\r\nconst all = union({\r\n reset,\r\n show,\r\n});\r\nexport type Actions = typeof all;\r\n","import * as actions from './spx-confirm.actions';\r\nimport { createFeature, createReducer, on } from '@ngrx/store';\r\n\r\nexport interface SpxConfirmI {\r\n content: string;\r\n id: string;\r\n title: string;\r\n noYesButton?: boolean;\r\n onOK?: () => void;\r\n onCancel?: () => void;\r\n}\r\n\r\nexport interface State {\r\n confirms: SpxConfirmI[];\r\n}\r\n\r\nconst initialState: State = {\r\n confirms: [],\r\n};\r\n\r\nexport default createFeature({\r\n name: 'spxConfirm',\r\n reducer: createReducer(\r\n initialState,\r\n on(\r\n actions.reset,\r\n (state: State, {}): State => ({\r\n ...state,\r\n })\r\n ),\r\n on(\r\n actions.show,\r\n (state: State, { content, id, title, noYesButton, onCancel, onOK }): State => {\r\n const confirms =\r\n state.confirms.filter((c) => c.id).length > 0\r\n ? state.confirms\r\n : [\r\n ...state.confirms,\r\n {\r\n content,\r\n id,\r\n title,\r\n noYesButton,\r\n onCancel,\r\n onOK,\r\n },\r\n ];\r\n return {\r\n ...state,\r\n confirms,\r\n };\r\n }\r\n ),\r\n on(\r\n actions.answer,\r\n (state: State, { id }): State => ({\r\n ...state,\r\n confirms: [\r\n ...state.confirms.filter((c) => c.id !== id),\r\n ],\r\n })\r\n )\r\n ),\r\n});\r\n","import { Actions, createEffect, ofType } from '@ngrx/effects';\r\nimport { Observable } from 'rxjs';\r\nimport { mergeMap, withLatestFrom } from 'rxjs/operators';\r\nimport { Injectable } from '@angular/core';\r\nimport * as actions from './spx-confirm.actions';\r\nimport { spxSpinnerActions } from '@softpak/components/spx-spinner';\r\nimport spConfirmStateReducer from './spx-confirm.reducer';\r\nimport { Store } from '@ngrx/store';\r\n\r\n@Injectable()\r\nexport class SpxConfirmEffects {\r\n afterAnswer$: Observable<any> = createEffect(() =>\r\n this.actions$.pipe(\r\n ofType(actions.answer),\r\n withLatestFrom(this.appStore.select(spConfirmStateReducer.selectConfirms)),\r\n mergeMap(([action, confirms]) => {\r\n console.log(action, confirms);\r\n if (action.confirm) {\r\n confirms.find((c) => c.id === action.id)?.onOK?.();\r\n }\r\n if (action.cancel) {\r\n confirms.find((c) => c.id === action.id)?.onCancel?.();\r\n }\r\n return [spxSpinnerActions.hide({})];\r\n })\r\n )\r\n );\r\n\r\n constructor(\r\n private readonly actions$: Actions,\r\n private readonly appStore: Store,\r\n ) {}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["spxConfirmReducer.default","spxConfirmActions.answer","actions.reset","actions.show","actions.answer","i1","i2"],"mappings":";;;;;;;;;;;;;MAca,mBAAmB,CAAA;AAS9B,IAAA,WAAA,GAAA;AARA,QAAA,IAAA,CAAA,EAAE,GAAG,KAAK,CAAC,QAAQ,EAAU;QAC7B,IAAS,CAAA,SAAA,GAAG,MAAM,EAAU;QAC5B,IAAU,CAAA,UAAA,GAAG,MAAM,EAAU;QAC7B,IAAO,CAAA,OAAA,GAAG,OAAO;AACjB,QAAA,IAAA,CAAA,aAAa,GAAG,eAAe,CAAC,KAAK;AACrC,QAAA,IAAA,CAAA,YAAY,GAAG,eAAe,CAAC,IAAI;AACnC,QAAA,IAAA,CAAA,eAAe,GAAG,eAAe,CAAC,OAAO;;IAIzC,QAAQ,GAAA;QACN,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;;IAGhC,SAAS,GAAA;AACP,QAAA,IAAG,IAAI,CAAC,EAAE,EAAE,EAAE;QACd,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;;8G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M,CAAC,EAAE,CAAC,EAAE,IAAI,IAAI;;AAEpD,YAAA,IAAI,MAAM,CAAC,MAAM,EAAE;gBACjB,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC,EAAE,QAAQ,IAAI;;YAExD,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SACpC,CAAC,CACH,CACF;;8GAhBU,iBAAiB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAC,IAAA,CAAA,OAAA,EAAA,EAAA,EAAA,KAAA,EAAAC,EAAA,CAAA,KAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAAjB,iBAAiB,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B;;;;;;;;ACTD;;AAEG;;;;"}
1
+ {"version":3,"file":"softpak-components-spx-confirm.mjs","sources":["../../../../projects/softpak/components/spx-confirm/spx-confirm.component.ts","../../../../projects/softpak/components/spx-confirm/spx-confirm.component.html","../../../../projects/softpak/components/spx-confirm/spx-confirm-displayer/spx-confirm-displayer.component.ts","../../../../projects/softpak/components/spx-confirm/spx-confirm-displayer/spx-confirm-displayer.component.html","../../../../projects/softpak/components/spx-confirm/store/spx-confirm.actions.ts","../../../../projects/softpak/components/spx-confirm/store/spx-confirm.reducer.ts","../../../../projects/softpak/components/spx-confirm/store/spx-confirm.effects.ts","../../../../projects/softpak/components/spx-confirm/softpak-components-spx-confirm.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';\r\nimport { FaIconComponent } from '@fortawesome/angular-fontawesome';\r\nimport { faTimes } from '@fortawesome/free-solid-svg-icons';\r\nimport { SpxButtonComponent } from '@softpak/components/spx-button';\r\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\r\n\r\n@Component({\r\n selector: 'spx-confirm',\r\n templateUrl: './spx-confirm.component.html',\r\n styleUrls: ['./spx-confirm.component.scss'],\r\n imports: [SpxButtonComponent, FaIconComponent],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n standalone: true\r\n})\r\nexport class SpxConfirmComponent {\r\n id = input.required<string>();\r\n spxCancel = output<string>();\r\n spxConfirm = output<string>();\r\n faTimes = faTimes;\r\n severityError = SpxSeverityEnum.error;\r\n severityInfo = SpxSeverityEnum.info;\r\n severitySuccess = SpxSeverityEnum.success;\r\n\r\n constructor() { }\r\n\r\n onCancel() {\r\n this.spxCancel.emit(this.id());\r\n }\r\n\r\n onConfirm() {\r\n if(this.id()) {}\r\n this.spxConfirm.emit(this.id());\r\n }\r\n\r\n}\r\n","<div class=\"block spx-confirm h-full mt-12\">\r\n <div class=\"bg-amber-400 flex gap-3 items-center px-3 py-1 rounded-t text-black\">\r\n <div class=\"grow font-bold\">\r\n <ng-content select=\"[confirm__title]\"></ng-content>\r\n </div>\r\n <spx-button (spxClick)=\"onCancel()\" [spxType]=\"'button'\" [spxSeverity]=\"severityInfo\"><fa-icon\r\n [icon]=\"faTimes\"></fa-icon>\r\n </spx-button>\r\n </div>\r\n <div class=\"flex flex-col gap-3 bg-black p-3\">\r\n <ng-content select=\"[confirm__content]\"></ng-content>\r\n <div class=\"grid grid-cols-1 grid-rows-2 sm:grid-rows-1 sm:grid-cols-2 gap-3 grid-flow-row\">\r\n <spx-button (spxClick)=\"onCancel()\" [spxFullWidth]=\"true\" [spxType]=\"'button'\"\r\n [spxSeverity]=\"severityError\">\r\n <ng-content select=\"[confirm__btn_cancel]\"></ng-content>\r\n </spx-button>\r\n <spx-button #confirm (spxClick)=\"onConfirm()\" [spxFullWidth]=\"true\" [spxType]=\"'submit'\"\r\n [spxSeverity]=\"severitySuccess\">\r\n <ng-content select=\"[confirm__btn_confirm]\"></ng-content>\r\n </spx-button>\r\n </div>\r\n </div>\r\n</div>","import { ChangeDetectionStrategy, Component, OnDestroy, OnInit, signal } from '@angular/core';\r\nimport { Store, select } from '@ngrx/store';\r\nimport { Subscription } from 'rxjs';\r\nimport { SpxConfirmComponent } from '../spx-confirm.component';\r\nimport { spxConfirmActions, spxConfirmReducer } from '../public-api';\r\n\r\n@Component({\r\n selector: 'spx-confirm-displayer',\r\n templateUrl: './spx-confirm-displayer.component.html',\r\n styleUrls: ['./spx-confirm-displayer.component.scss'],\r\n imports: [SpxConfirmComponent],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n standalone: true\r\n})\r\nexport class SpxConfirmDisplayerComponent implements OnInit, OnDestroy {\r\n confirms = signal<{\r\n content: string;\r\n id: string;\r\n title: string;\r\n cancelled?: boolean;\r\n confirmed?: boolean;\r\n noYesButton?: boolean;\r\n }[]>([]);\r\n\r\n private subscriptions: {\r\n confirmState?: Subscription;\r\n } = {};\r\n\r\n constructor(\r\n private readonly appStore: Store,\r\n ) { }\r\n\r\n ngOnInit() {\r\n this.subscriptions.confirmState = this.appStore.pipe(select(spxConfirmReducer.default.selectConfirms)).subscribe(confirms => {\r\n if (confirms?.length === 0) {\r\n this.confirms.set([]);\r\n return;\r\n }\r\n\r\n this.confirms.set(confirms);\r\n });\r\n }\r\n\r\n ngOnDestroy() {\r\n this.subscriptions?.confirmState?.unsubscribe();\r\n }\r\n\r\n onCancel(id: string) {\r\n this.appStore.dispatch(spxConfirmActions.answer({\r\n cancel: true,\r\n id\r\n }));\r\n }\r\n\r\n onConfirm(id: string) {\r\n this.appStore.dispatch(spxConfirmActions.answer({\r\n confirm: true,\r\n id\r\n }));\r\n }\r\n\r\n}\r\n","@if (confirms().length > 0) {\r\n <div class=\"bg-black/75 block relative h-full\" style=\"z-index: 1000\">\r\n @for (confirm of confirms(); track confirm.id) {\r\n <spx-confirm [id]=\"confirm.id\" (spxCancel)=\"onCancel($event)\"\r\n (spxConfirm)=\"onConfirm($event)\">\r\n <ng-container confirm__title>{{ confirm.title }}</ng-container>\r\n <ng-container confirm__content>{{ confirm.content }}</ng-container>\r\n <ng-container confirm__btn_cancel>{{confirm.noYesButton ? 'NO' : 'Cancel'}}</ng-container>\r\n <ng-container confirm__btn_confirm>{{confirm.noYesButton ? 'YES' : 'OK'}}</ng-container>\r\n </spx-confirm>\r\n }\r\n </div>\r\n}","import { createAction, props, union } from '@ngrx/store';\r\nimport { SpxConfirmI } from './spx-confirm.reducer';\r\n\r\nexport const answer = createAction('[Confirm] Answer', props<{\r\n cancel?: boolean;\r\n confirm?: boolean;\r\n id: string;\r\n}>());\r\nexport const reset = createAction('[Confirm] Reset', props<Record<string, unknown>>());\r\nexport const show = createAction('[Confirm] Show', props<SpxConfirmI>());\r\n\r\nconst all = union({\r\n reset,\r\n show,\r\n});\r\nexport type Actions = typeof all;\r\n","import * as actions from './spx-confirm.actions';\r\nimport { createFeature, createReducer, on } from '@ngrx/store';\r\n\r\nexport interface SpxConfirmI {\r\n content: string;\r\n id: string;\r\n title: string;\r\n noYesButton?: boolean;\r\n onOK?: () => void;\r\n onCancel?: () => void;\r\n}\r\n\r\nexport interface State {\r\n confirms: SpxConfirmI[];\r\n}\r\n\r\nconst initialState: State = {\r\n confirms: [],\r\n};\r\n\r\nexport default createFeature({\r\n name: 'spxConfirm',\r\n reducer: createReducer(\r\n initialState,\r\n on(\r\n actions.reset,\r\n (state: State, {}): State => ({\r\n ...state,\r\n })\r\n ),\r\n on(\r\n actions.show,\r\n (state: State, { content, id, title, noYesButton, onCancel, onOK }): State => {\r\n const confirms =\r\n state.confirms.filter((c) => c.id).length > 0\r\n ? state.confirms\r\n : [\r\n ...state.confirms,\r\n {\r\n content,\r\n id,\r\n title,\r\n noYesButton,\r\n onCancel,\r\n onOK,\r\n },\r\n ];\r\n return {\r\n ...state,\r\n confirms,\r\n };\r\n }\r\n ),\r\n on(\r\n actions.answer,\r\n (state: State, { id }): State => ({\r\n ...state,\r\n confirms: [\r\n ...state.confirms.filter((c) => c.id !== id),\r\n ],\r\n })\r\n )\r\n ),\r\n});\r\n","import { Actions, createEffect, ofType } from '@ngrx/effects';\r\nimport { Observable } from 'rxjs';\r\nimport { mergeMap, withLatestFrom } from 'rxjs/operators';\r\nimport { Injectable } from '@angular/core';\r\nimport * as actions from './spx-confirm.actions';\r\nimport { spxSpinnerActions } from '@softpak/components/spx-spinner';\r\nimport spConfirmStateReducer from './spx-confirm.reducer';\r\nimport { Store } from '@ngrx/store';\r\n\r\n@Injectable()\r\nexport class SpxConfirmEffects {\r\n afterAnswer$: Observable<any> = createEffect(() =>\r\n this.actions$.pipe(\r\n ofType(actions.answer),\r\n withLatestFrom(this.appStore.select(spConfirmStateReducer.selectConfirms)),\r\n mergeMap(([action, confirms]) => {\r\n console.log(action, confirms);\r\n if (action.confirm) {\r\n confirms.find((c) => c.id === action.id)?.onOK?.();\r\n }\r\n if (action.cancel) {\r\n confirms.find((c) => c.id === action.id)?.onCancel?.();\r\n }\r\n return [spxSpinnerActions.hide({})];\r\n })\r\n )\r\n );\r\n\r\n constructor(\r\n private readonly actions$: Actions,\r\n private readonly appStore: Store,\r\n ) {}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["spxConfirmReducer.default","spxConfirmActions.answer","actions.reset","actions.show","actions.answer","i1","i2"],"mappings":";;;;;;;;;;;;;MAca,mBAAmB,CAAA;AAS9B,IAAA,WAAA,GAAA;AARA,QAAA,IAAA,CAAA,EAAE,GAAG,KAAK,CAAC,QAAQ,EAAU;QAC7B,IAAS,CAAA,SAAA,GAAG,MAAM,EAAU;QAC5B,IAAU,CAAA,UAAA,GAAG,MAAM,EAAU;QAC7B,IAAO,CAAA,OAAA,GAAG,OAAO;AACjB,QAAA,IAAA,CAAA,aAAa,GAAG,eAAe,CAAC,KAAK;AACrC,QAAA,IAAA,CAAA,YAAY,GAAG,eAAe,CAAC,IAAI;AACnC,QAAA,IAAA,CAAA,eAAe,GAAG,eAAe,CAAC,OAAO;;IAIzC,QAAQ,GAAA;QACN,IAAI,CAAC,SAAS,CAAC,IAAI,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9B,YAAA,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC;AAC7B,YAAA,IAAI,MAAM,CAAC,OAAO,EAAE;gBAClB,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC,EAAE,IAAI,IAAI;;AAEpD,YAAA,IAAI,MAAM,CAAC,MAAM,EAAE;gBACjB,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC,EAAE,QAAQ,IAAI;;YAExD,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SACpC,CAAC,CACH,CACF;;8GAhBU,iBAAiB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAC,IAAA,CAAA,OAAA,EAAA,EAAA,EAAA,KAAA,EAAAC,EAAA,CAAA,KAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAAjB,iBAAiB,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B;;;;;;;;ACTD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softpak/components",
3
- "version": "19.15.2",
3
+ "version": "19.15.3",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "19.x.x",
@@ -33,37 +33,33 @@
33
33
  "types": "./spx-alert/index.d.ts",
34
34
  "default": "./fesm2022/softpak-components-spx-alert.mjs"
35
35
  },
36
- "./spx-app-configuration": {
37
- "types": "./spx-app-configuration/index.d.ts",
38
- "default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
39
- },
40
36
  "./spx-capitalize": {
41
37
  "types": "./spx-capitalize/index.d.ts",
42
38
  "default": "./fesm2022/softpak-components-spx-capitalize.mjs"
43
39
  },
44
- "./spx-button": {
45
- "types": "./spx-button/index.d.ts",
46
- "default": "./fesm2022/softpak-components-spx-button.mjs"
40
+ "./spx-app-configuration": {
41
+ "types": "./spx-app-configuration/index.d.ts",
42
+ "default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
47
43
  },
48
44
  "./spx-app-expiry": {
49
45
  "types": "./spx-app-expiry/index.d.ts",
50
46
  "default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
51
47
  },
48
+ "./spx-button": {
49
+ "types": "./spx-button/index.d.ts",
50
+ "default": "./fesm2022/softpak-components-spx-button.mjs"
51
+ },
52
52
  "./spx-card": {
53
53
  "types": "./spx-card/index.d.ts",
54
54
  "default": "./fesm2022/softpak-components-spx-card.mjs"
55
55
  },
56
- "./spx-change-details": {
57
- "types": "./spx-change-details/index.d.ts",
58
- "default": "./fesm2022/softpak-components-spx-change-details.mjs"
59
- },
60
56
  "./spx-channel-selection": {
61
57
  "types": "./spx-channel-selection/index.d.ts",
62
58
  "default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
63
59
  },
64
- "./spx-confirm": {
65
- "types": "./spx-confirm/index.d.ts",
66
- "default": "./fesm2022/softpak-components-spx-confirm.mjs"
60
+ "./spx-change-details": {
61
+ "types": "./spx-change-details/index.d.ts",
62
+ "default": "./fesm2022/softpak-components-spx-change-details.mjs"
67
63
  },
68
64
  "./spx-check-digit": {
69
65
  "types": "./spx-check-digit/index.d.ts",
@@ -81,6 +77,10 @@
81
77
  "types": "./spx-helpers/index.d.ts",
82
78
  "default": "./fesm2022/softpak-components-spx-helpers.mjs"
83
79
  },
80
+ "./spx-confirm": {
81
+ "types": "./spx-confirm/index.d.ts",
82
+ "default": "./fesm2022/softpak-components-spx-confirm.mjs"
83
+ },
84
84
  "./spx-inputs": {
85
85
  "types": "./spx-inputs/index.d.ts",
86
86
  "default": "./fesm2022/softpak-components-spx-inputs.mjs"
@@ -93,34 +93,34 @@
93
93
  "types": "./spx-number-check/index.d.ts",
94
94
  "default": "./fesm2022/softpak-components-spx-number-check.mjs"
95
95
  },
96
+ "./spx-pipes": {
97
+ "types": "./spx-pipes/index.d.ts",
98
+ "default": "./fesm2022/softpak-components-spx-pipes.mjs"
99
+ },
100
+ "./spx-progress-bar": {
101
+ "types": "./spx-progress-bar/index.d.ts",
102
+ "default": "./fesm2022/softpak-components-spx-progress-bar.mjs"
103
+ },
96
104
  "./spx-patch": {
97
105
  "types": "./spx-patch/index.d.ts",
98
106
  "default": "./fesm2022/softpak-components-spx-patch.mjs"
99
107
  },
100
- "./spx-pagination": {
101
- "types": "./spx-pagination/index.d.ts",
102
- "default": "./fesm2022/softpak-components-spx-pagination.mjs"
103
- },
104
- "./spx-stock-info": {
105
- "types": "./spx-stock-info/index.d.ts",
106
- "default": "./fesm2022/softpak-components-spx-stock-info.mjs"
107
- },
108
108
  "./spx-spinner": {
109
109
  "types": "./spx-spinner/index.d.ts",
110
110
  "default": "./fesm2022/softpak-components-spx-spinner.mjs"
111
111
  },
112
- "./spx-pipes": {
113
- "types": "./spx-pipes/index.d.ts",
114
- "default": "./fesm2022/softpak-components-spx-pipes.mjs"
115
- },
116
- "./spx-progress-bar": {
117
- "types": "./spx-progress-bar/index.d.ts",
118
- "default": "./fesm2022/softpak-components-spx-progress-bar.mjs"
112
+ "./spx-pagination": {
113
+ "types": "./spx-pagination/index.d.ts",
114
+ "default": "./fesm2022/softpak-components-spx-pagination.mjs"
119
115
  },
120
116
  "./spx-storage": {
121
117
  "types": "./spx-storage/index.d.ts",
122
118
  "default": "./fesm2022/softpak-components-spx-storage.mjs"
123
119
  },
120
+ "./spx-stock-info": {
121
+ "types": "./spx-stock-info/index.d.ts",
122
+ "default": "./fesm2022/softpak-components-spx-stock-info.mjs"
123
+ },
124
124
  "./spx-suggestion": {
125
125
  "types": "./spx-suggestion/index.d.ts",
126
126
  "default": "./fesm2022/softpak-components-spx-suggestion.mjs"
@@ -1,7 +1,7 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { Store } from '@ngrx/store';
3
3
  import * as i0 from "@angular/core";
4
- export declare class SPConfirmDisplayerComponent implements OnInit, OnDestroy {
4
+ export declare class SpxConfirmDisplayerComponent implements OnInit, OnDestroy {
5
5
  private readonly appStore;
6
6
  confirms: import("@angular/core").WritableSignal<{
7
7
  content: string;
@@ -17,6 +17,6 @@ export declare class SPConfirmDisplayerComponent implements OnInit, OnDestroy {
17
17
  ngOnDestroy(): void;
18
18
  onCancel(id: string): void;
19
19
  onConfirm(id: string): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<SPConfirmDisplayerComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<SPConfirmDisplayerComponent, "spx-confirm-displayer", never, {}, {}, never, never, true, never>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpxConfirmDisplayerComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpxConfirmDisplayerComponent, "spx-confirm-displayer", never, {}, {}, never, never, true, never>;
22
22
  }