@softpak/components 21.1.0-beta.1 → 21.2.0-capwesome.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/softpak-components-spx-404-page.mjs +3 -3
- package/fesm2022/softpak-components-spx-alert.mjs +3 -3
- package/fesm2022/softpak-components-spx-app-expiry.mjs +3 -3
- package/fesm2022/softpak-components-spx-button.mjs +3 -3
- package/fesm2022/softpak-components-spx-capitalize.mjs +3 -3
- package/fesm2022/softpak-components-spx-card.mjs +12 -12
- package/fesm2022/softpak-components-spx-change-details.mjs +3 -3
- package/fesm2022/softpak-components-spx-channel-selection.mjs +31 -39
- package/fesm2022/softpak-components-spx-channel-selection.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-check-digit.mjs +3 -3
- package/fesm2022/softpak-components-spx-confirm.mjs +9 -9
- package/fesm2022/softpak-components-spx-form-section.mjs +3 -3
- package/fesm2022/softpak-components-spx-form-view.mjs +6 -6
- package/fesm2022/softpak-components-spx-inputs.mjs +36 -36
- package/fesm2022/softpak-components-spx-navigation.mjs +9 -9
- package/fesm2022/softpak-components-spx-number-check.mjs +3 -3
- package/fesm2022/softpak-components-spx-pagination.mjs +3 -3
- package/fesm2022/softpak-components-spx-patch.mjs +3 -3
- package/fesm2022/softpak-components-spx-pipes.mjs +3 -3
- package/fesm2022/softpak-components-spx-progress-bar.mjs +3 -3
- package/fesm2022/softpak-components-spx-spinner.mjs +3 -3
- package/fesm2022/softpak-components-spx-stock-info.mjs +3 -3
- package/fesm2022/softpak-components-spx-storage.mjs +1 -0
- package/fesm2022/softpak-components-spx-storage.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-suggestion.mjs +3 -3
- package/fesm2022/softpak-components-spx-tabs.mjs +3 -3
- package/fesm2022/softpak-components-spx-toaster.mjs +3 -3
- package/fesm2022/softpak-components-spx-toggle.mjs +3 -3
- package/fesm2022/softpak-components-spx-update.mjs +75 -110
- package/fesm2022/softpak-components-spx-update.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-validation-messages.mjs +3 -3
- package/fesm2022/softpak-components-spx-validation.mjs +3 -3
- package/fesm2022/softpak-components-spx-welcome.mjs +11 -11
- package/fesm2022/softpak-components-spx-welcome.mjs.map +1 -1
- package/package.json +2 -2
- package/types/softpak-components-spx-channel-selection.d.ts +16 -34
- package/types/softpak-components-spx-storage.d.ts +1 -0
- package/types/softpak-components-spx-update.d.ts +33 -62
- package/types/softpak-components-spx-welcome.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-welcome.mjs","sources":["../../../../projects/softpak/components/spx-welcome/spx-welcome.component.ts","../../../../projects/softpak/components/spx-welcome/spx-welcome.component.html","../../../../projects/softpak/components/spx-welcome/softpak-components-spx-welcome.ts"],"sourcesContent":["import { Component, OnInit, OnDestroy, signal, computed, ChangeDetectionStrategy } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { Store } from '@ngrx/store';\nimport { SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';\nimport { SpxFormButtonTypeEnum, SpxFormI, SpxFormViewComponent } from '@softpak/components/spx-form-view';\nimport { SpxSeverityEnum, unsubscribeSubscriptions, valuePairToValue } from '@softpak/components/spx-helpers';\nimport { SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';\nimport { spxValidatorRequired } from '@softpak/components/spx-validation';\nimport { Subscription } from 'rxjs';\nimport { spxTextChannel, spxTextCompany, spxTextSelect, spxTextSelectYourCompany } from '@softpak/components/spx-translate';\nimport { IonHeader, IonToolbar, IonTitle, IonButtons, IonContent } from '@ionic/angular/standalone';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { spxToasterActions, SpxToasterAutoCloseSpeedEnum } from '@softpak/components/spx-toaster';\nimport { spxChannelReducer, spxChannelActions } from '@softpak/components/spx-channel-selection';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { Capacitor } from '@capacitor/core';\n\nexport const spxSectionWelcome = 'welcome';\nexport const spxCtrlChannel = 'channel';\nexport const spxCtrlChannelType = 'channelType';\n\n@Component({\n selector: 'spx-welcome',\n templateUrl: './spx-welcome.component.html',\n imports: [\n FormsModule,\n ReactiveFormsModule,\n SpxCapitalizePipe,\n SpxFormViewComponent,\n IonHeader,\n IonToolbar,\n IonTitle,\n IonButtons,\n IonContent,\n TranslatePipe,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n})\nexport class SpxWelcomeComponent implements OnInit, OnDestroy {\n allChannels = toSignal(this.store.select(spxChannelReducer.default.selectChannels));\n allBrands = computed(() => this.allChannels()?.filter(channel => channel.channelTypes.map(type => type.name).includes(SpxAppChannelTypeEnum.production)).map(c => ({ description: c.brand, value: c.brand })));\n inputBrand = signal<string | null>(null);\n inputChannelType = signal<SpxAppChannelTypeEnum | null>(null);\n selectedBrand = computed(() => this.allChannels()?.find(c => c.brand === this.inputBrand()));\n channelTypeSuggestions = computed(() => this.selectedBrand()?.channelTypes?.filter(channelType => Capacitor.getPlatform() === 'web' ? channelType.webUrl !== undefined : channelType.webUrl === undefined)?.map(channelType => ({\n description: channelType.name,\n value: channelType.name\n })));\n\n protected readonly formGroup = signal<FormGroup | undefined>(undefined);\n protected readonly suggestions = signal<{\n [spxCtrlChannelType]?: SpxValuePair<string>[];\n [spxCtrlChannel]?: SpxValuePair<string>[];\n }>({\n [spxCtrlChannelType]: [],\n [spxCtrlChannel]: [],\n });\n\n textChannel = spxTextChannel;\n textCompany = spxTextCompany;\n textSelect = spxTextSelect;\n textSelectYourCompany = spxTextSelectYourCompany;\n\n protected readonly formSection = computed(() => this.formGroup()?.get(spxSectionWelcome) as FormGroup);\n private readonly ctrlChannel = computed(() => this.formSection()?.get(spxCtrlChannel) as FormControl);\n private readonly ctrlChannelType = computed(() => this.formSection()?.get(spxCtrlChannelType) as FormControl);\n private subscriptions: {\n channel?: Subscription;\n channelType?: Subscription;\n } = {};\n\n protected readonly form = signal<SpxFormI>({\n buttons: [\n {\n severity: SpxSeverityEnum.success,\n type: SpxFormButtonTypeEnum.submit,\n label: () => this.textSelect,\n }\n ],\n sections: [\n {\n key: spxSectionWelcome,\n showTitle: () => false,\n fields: [\n {\n key: spxCtrlChannel,\n type: () => SpxInputTypeEnum.radio,\n label: () => this.textCompany,\n validators: () => [spxValidatorRequired()],\n },\n {\n key: spxCtrlChannelType,\n type: () => SpxInputTypeEnum.radio,\n label: () => this.textChannel,\n capitalize: () => true,\n show: () => valuePairToValue(this.ctrlChannel().value),\n validators: () => [spxValidatorRequired()],\n },\n ]\n }\n ]\n });\n\n constructor(\n private readonly store: Store,\n private readonly formBuilder: FormBuilder\n ) {\n this.formGroup.set(this.formBuilder.group({\n [spxSectionWelcome]: SpxFormViewComponent.createForm(this.form())\n }));\n }\n\n ngOnDestroy(): void {\n unsubscribeSubscriptions(this.subscriptions);\n }\n\n ngOnInit(): void {\n this.suggestions()[spxCtrlChannel] = this.allBrands();\n\n this.subscriptions.channel = this.ctrlChannel().valueChanges.subscribe(valuePair => {\n this.inputBrand.set(valuePairToValue(valuePair));\n this.suggestions()[spxCtrlChannelType] = this.channelTypeSuggestions();\n this.ctrlChannelType().setValue({\n value: SpxAppChannelTypeEnum.production,\n });\n });\n\n this.subscriptions.channelType = this.ctrlChannelType().valueChanges.subscribe(valuePair => {\n this.inputChannelType.set(valuePairToValue(this.ctrlChannelType().value));\n });\n }\n\n protected onSubmit(): void {\n if (!this.selectedBrand() || !this.inputChannelType()) {\n this.store.dispatch(spxToasterActions.createWarning({\n autoClose: SpxToasterAutoCloseSpeedEnum.DEFAULT,\n messageText: 'Please select a company',\n }))\n } else {\n this.store.dispatch(spxChannelActions.choose({\n channel: this.selectedBrand()!,\n channelType: this.inputChannelType()!,\n }));\n }\n }\n}\n","<ion-header>\n <ion-toolbar>\n <ion-title>\n {{ textSelectYourCompany | translate | capitalize }}\n </ion-title>\n <ion-buttons slot=\"end\">\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n<ion-content class=\"ion-padding\">\n <form [formGroup]=\"formGroup()!\" class=\"max-w-lg mx-auto flex flex-col gap-3\" (ngSubmit)=\"onSubmit()\">\n <spx-form-view\n [spxForm]=\"form()\"\n [spxFormGroup]=\"formSection()\"\n [spxSuggestions]=\"suggestions()\">\n </spx-form-view>\n </form>\n</ion-content>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAkBO,MAAM,iBAAiB,GAAG;AAC1B,MAAM,cAAc,GAAG;AACvB,MAAM,kBAAkB,GAAG;MAoBrB,mBAAmB,CAAA;IAiE9B,WAAA,CACmB,KAAY,EACZ,WAAwB,EAAA;QADxB,IAAA,CAAA,KAAK,GAAL,KAAK;QACL,IAAA,CAAA,WAAW,GAAX,WAAW;AAlE9B,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;AACnF,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,EAAE,MAAM,CAAC,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,qDAAC;AAC9M,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAgB,IAAI,sDAAC;AACxC,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAA+B,IAAI,4DAAC;QAC7D,IAAA,CAAA,aAAa,GAAG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A,IAAA,EAAA,WAAA,EAAA,IAAA,EACV,QAAQ,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACR,UAAU,8EACV,UAAU,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,oBAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,cAAA,EAAA,SAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EANV,iBAAiB,EAAA,IAAA,EAAA,YAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAOjB,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAKJ,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAlB/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,OAAA,EAEd;wBACP,WAAW;wBACX,mBAAmB;wBACnB,iBAAiB;wBACjB,oBAAoB;wBACpB,SAAS;wBACT,UAAU;wBACV,QAAQ;wBACR,UAAU;wBACV,UAAU;wBACV,aAAa;AACd,qBAAA,EAAA,eAAA,EACgB,uBAAuB,CAAC,MAAM,EAAA,UAAA,EACnC,IAAI,EAAA,QAAA,EAAA,4hBAAA,EAAA;;;AEtClB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-welcome.mjs","sources":["../../../../projects/softpak/components/spx-welcome/spx-welcome.component.ts","../../../../projects/softpak/components/spx-welcome/spx-welcome.component.html","../../../../projects/softpak/components/spx-welcome/softpak-components-spx-welcome.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, OnDestroy, OnInit, computed, signal } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { IonButtons, IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/angular/standalone';\nimport { SpxChannelActions, spxChannelReducer } from '@softpak/components/spx-channel-selection';\nimport { SpxFormButtonTypeEnum, SpxFormI, SpxFormViewComponent } from '@softpak/components/spx-form-view';\nimport { SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';\nimport { SpxSeverityEnum, unsubscribeSubscriptions, valuePairToValue } from '@softpak/components/spx-helpers';\nimport { SpxToasterAutoCloseSpeedEnum, spxToasterActions } from '@softpak/components/spx-toaster';\nimport { spxTextChannel, spxTextCompany, spxTextSelect, spxTextSelectYourCompany } from '@softpak/components/spx-translate';\n\nimport { Capacitor } from '@capacitor/core';\nimport { SpxAppChannelTypeEnum, } from '@softpak/components/spx-app-configuration';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { Store } from '@ngrx/store';\nimport { Subscription } from 'rxjs';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { spxValidatorRequired } from '@softpak/components/spx-validation';\nimport { toSignal } from '@angular/core/rxjs-interop';\n\nexport const spxSectionWelcome = 'welcome';\nexport const spxCtrlChannel = 'channel';\nexport const spxCtrlChannelType = 'channelType';\n\n@Component({\n selector: 'spx-welcome',\n templateUrl: './spx-welcome.component.html',\n imports: [\n FormsModule,\n ReactiveFormsModule,\n SpxCapitalizePipe,\n SpxFormViewComponent,\n IonHeader,\n IonToolbar,\n IonTitle,\n IonButtons,\n IonContent,\n TranslatePipe,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n})\nexport class SpxWelcomeComponent implements OnInit, OnDestroy {\n allChannels = toSignal(this.store.select(spxChannelReducer.default.selectChannels));\n allBrands = computed(() => this.allChannels()?.filter(channel => channel.channelTypes.map(type => type.name).includes(SpxAppChannelTypeEnum.production)).map(c => ({ description: c.brand, value: c.brand })));\n inputBrand = signal<string | null>(null);\n inputChannelType = signal<SpxAppChannelTypeEnum | null>(null);\n selectedBrand = computed(() => this.allChannels()?.find(c => c.brand === this.inputBrand()));\n channelTypeSuggestions = computed(() => this.selectedBrand()?.channelTypes?.filter(channelType => Capacitor.getPlatform() === 'web' ? channelType.webUrl !== undefined : channelType.webUrl === undefined)?.map(channelType => ({\n description: channelType.name,\n value: channelType.name\n })));\n\n protected readonly formGroup = signal<FormGroup | undefined>(undefined);\n protected readonly suggestions = signal<{\n [spxCtrlChannelType]?: SpxValuePair<string>[];\n [spxCtrlChannel]?: SpxValuePair<string>[];\n }>({\n [spxCtrlChannelType]: [],\n [spxCtrlChannel]: [],\n });\n\n textChannel = spxTextChannel;\n textCompany = spxTextCompany;\n textSelect = spxTextSelect;\n textSelectYourCompany = spxTextSelectYourCompany;\n\n protected readonly formSection = computed(() => this.formGroup()?.get(spxSectionWelcome) as FormGroup);\n private readonly ctrlChannel = computed(() => this.formSection()?.get(spxCtrlChannel) as FormControl);\n private readonly ctrlChannelType = computed(() => this.formSection()?.get(spxCtrlChannelType) as FormControl);\n private subscriptions: {\n channel?: Subscription;\n channelType?: Subscription;\n } = {};\n\n protected readonly form = signal<SpxFormI>({\n buttons: [\n {\n severity: SpxSeverityEnum.success,\n type: SpxFormButtonTypeEnum.submit,\n label: () => this.textSelect,\n }\n ],\n sections: [\n {\n key: spxSectionWelcome,\n showTitle: () => false,\n fields: [\n {\n key: spxCtrlChannel,\n type: () => SpxInputTypeEnum.radio,\n label: () => this.textCompany,\n validators: () => [spxValidatorRequired()],\n },\n {\n key: spxCtrlChannelType,\n type: () => SpxInputTypeEnum.radio,\n label: () => this.textChannel,\n capitalize: () => true,\n show: () => valuePairToValue(this.ctrlChannel().value),\n validators: () => [spxValidatorRequired()],\n },\n ]\n }\n ]\n });\n\n constructor(\n private readonly store: Store,\n private readonly formBuilder: FormBuilder\n ) {\n this.formGroup.set(this.formBuilder.group({\n [spxSectionWelcome]: SpxFormViewComponent.createForm(this.form())\n }));\n }\n\n ngOnDestroy(): void {\n unsubscribeSubscriptions(this.subscriptions);\n }\n\n ngOnInit(): void {\n this.suggestions()[spxCtrlChannel] = this.allBrands();\n\n this.subscriptions.channel = this.ctrlChannel().valueChanges.subscribe(valuePair => {\n this.inputBrand.set(valuePairToValue(valuePair));\n this.suggestions()[spxCtrlChannelType] = this.channelTypeSuggestions();\n this.ctrlChannelType().setValue({\n value: SpxAppChannelTypeEnum.production,\n });\n });\n\n this.subscriptions.channelType = this.ctrlChannelType().valueChanges.subscribe(valuePair => {\n this.inputChannelType.set(valuePairToValue(this.ctrlChannelType().value));\n });\n }\n\n protected onSubmit(): void {\n if (!this.selectedBrand() || !this.inputChannelType()) {\n this.store.dispatch(spxToasterActions.createWarning({\n autoClose: SpxToasterAutoCloseSpeedEnum.DEFAULT,\n messageText: 'Please select a company',\n }))\n } else {\n this.store.dispatch(SpxChannelActions.choose({\n channel: this.selectedBrand()!,\n channelType: this.inputChannelType()!,\n }));\n }\n }\n}\n","<ion-header>\n <ion-toolbar>\n <ion-title>\n {{ textSelectYourCompany | translate | capitalize }}\n </ion-title>\n <ion-buttons slot=\"end\">\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n<ion-content class=\"ion-padding\">\n <form [formGroup]=\"formGroup()!\" class=\"max-w-lg mx-auto flex flex-col gap-3\" (ngSubmit)=\"onSubmit()\">\n <spx-form-view\n [spxForm]=\"form()\"\n [spxFormGroup]=\"formSection()\"\n [spxSuggestions]=\"suggestions()\">\n </spx-form-view>\n </form>\n</ion-content>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAmBO,MAAM,iBAAiB,GAAG;AAC1B,MAAM,cAAc,GAAG;AACvB,MAAM,kBAAkB,GAAG;MAoBrB,mBAAmB,CAAA;IAiE9B,WAAA,CACmB,KAAY,EACZ,WAAwB,EAAA;QADxB,IAAA,CAAA,KAAK,GAAL,KAAK;QACL,IAAA,CAAA,WAAW,GAAX,WAAW;AAlE9B,QAAA,IAA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AAA,EAAA,CAAA;kBAlB/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,OAAA,EAEd;wBACP,WAAW;wBACX,mBAAmB;wBACnB,iBAAiB;wBACjB,oBAAoB;wBACpB,SAAS;wBACT,UAAU;wBACV,QAAQ;wBACR,UAAU;wBACV,UAAU;wBACV,aAAa;AACd,qBAAA,EAAA,eAAA,EACgB,uBAAuB,CAAC,MAAM,EAAA,UAAA,EACnC,IAAI,EAAA,QAAA,EAAA,4hBAAA,EAAA;;;AEvClB;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softpak/components",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.2.0-capwesome.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "21.x.x",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@capacitor/app": "8.x.x",
|
|
9
9
|
"@capacitor/device": "8.x.x",
|
|
10
10
|
"@capacitor/haptics": "8.x.x",
|
|
11
|
-
"@capacitor
|
|
11
|
+
"@capawesome/capacitor-live-update": "8.x.x",
|
|
12
12
|
"@fortawesome/free-solid-svg-icons": "7.x.x",
|
|
13
13
|
"@ionic/angular": "8.x.x",
|
|
14
14
|
"@ngrx/effects": "20.x.x || 21.x.x",
|
|
@@ -2,11 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import * as _softpak_components_spx_app_configuration from '@softpak/components/spx-app-configuration';
|
|
3
3
|
import { SpxAppChannelI, SpxAppChannelTypeEnum, SpxChannelTypeI } from '@softpak/components/spx-app-configuration';
|
|
4
4
|
import * as _ngrx_store from '@ngrx/store';
|
|
5
|
-
import { Store } from '@ngrx/store';
|
|
6
5
|
import * as _ngrx_effects from '@ngrx/effects';
|
|
7
|
-
import { Actions as Actions$1 } from '@ngrx/effects';
|
|
8
6
|
import * as rxjs from 'rxjs';
|
|
9
|
-
import { Router } from '@angular/router';
|
|
10
7
|
import { SpxToasterAutoCloseSpeedEnum } from '@softpak/components/spx-toaster';
|
|
11
8
|
|
|
12
9
|
declare class SpxChannelGuard {
|
|
@@ -20,7 +17,7 @@ declare const spxChannelSelectionUrl = "wlc";
|
|
|
20
17
|
declare class SpxChannelIndicatorComponent {
|
|
21
18
|
private readonly navController;
|
|
22
19
|
private readonly store;
|
|
23
|
-
protected readonly channel: i0.Signal<_softpak_components_spx_app_configuration.SpxAppChannelI | null
|
|
20
|
+
protected readonly channel: i0.Signal<_softpak_components_spx_app_configuration.SpxAppChannelI | null>;
|
|
24
21
|
protected readonly channelType: i0.Signal<_softpak_components_spx_app_configuration.SpxAppChannelTypeEnum | undefined>;
|
|
25
22
|
protected readonly spxTextChange = "spxTextChange";
|
|
26
23
|
protected onChange(): void;
|
|
@@ -29,45 +26,30 @@ declare class SpxChannelIndicatorComponent {
|
|
|
29
26
|
static ɵcmp: i0.ɵɵComponentDeclaration<SpxChannelIndicatorComponent, "spx-channel-indicator", never, {}, {}, never, never, true, never>;
|
|
30
27
|
}
|
|
31
28
|
|
|
32
|
-
declare const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
channelType: SpxAppChannelTypeEnum;
|
|
47
|
-
} & _ngrx_store.Action<"[SPX / Channel] Select">) | ({
|
|
48
|
-
channels: SpxAppChannelI[];
|
|
49
|
-
} & _ngrx_store.Action<"[SPX / Channel] Initialize">);
|
|
50
|
-
type Actions = typeof all;
|
|
51
|
-
|
|
52
|
-
type spxChannel_actions_d_Actions = Actions;
|
|
53
|
-
declare const spxChannel_actions_d_choose: typeof choose;
|
|
54
|
-
declare const spxChannel_actions_d_initialize: typeof initialize;
|
|
55
|
-
declare namespace spxChannel_actions_d {
|
|
56
|
-
export { spxChannel_actions_d_choose as choose, spxChannel_actions_d_initialize as initialize };
|
|
57
|
-
export type { spxChannel_actions_d_Actions as Actions };
|
|
58
|
-
}
|
|
29
|
+
declare const SpxChannelActions: {
|
|
30
|
+
choose: _ngrx_store.ActionCreator<"[SpxChannel] Choose", (props: {
|
|
31
|
+
channel: SpxAppChannelI;
|
|
32
|
+
channelType: SpxAppChannelTypeEnum;
|
|
33
|
+
}) => {
|
|
34
|
+
channel: SpxAppChannelI;
|
|
35
|
+
channelType: SpxAppChannelTypeEnum;
|
|
36
|
+
} & _ngrx_store.Action<"[SpxChannel] Choose">>;
|
|
37
|
+
initialize: _ngrx_store.ActionCreator<"[SpxChannel] Initialize", (props: {
|
|
38
|
+
channels: SpxAppChannelI[];
|
|
39
|
+
}) => {
|
|
40
|
+
channels: SpxAppChannelI[];
|
|
41
|
+
} & _ngrx_store.Action<"[SpxChannel] Initialize">>;
|
|
42
|
+
};
|
|
59
43
|
|
|
60
44
|
declare class Effects {
|
|
61
45
|
private readonly actions$;
|
|
62
46
|
private readonly router;
|
|
63
|
-
store: Store<any>;
|
|
64
47
|
onChoose$: rxjs.Observable<{
|
|
65
48
|
autoClose?: number | SpxToasterAutoCloseSpeedEnum;
|
|
66
49
|
closeable?: boolean;
|
|
67
50
|
messageText: string;
|
|
68
51
|
title?: string;
|
|
69
52
|
} & _ngrx_store.Action<"[SPX / Toaster] Create success">> & _ngrx_effects.CreateEffectMetadata;
|
|
70
|
-
constructor(actions$: Actions$1, router: Router);
|
|
71
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<Effects, never>;
|
|
72
54
|
static ɵprov: i0.ɵɵInjectableDeclaration<Effects>;
|
|
73
55
|
}
|
|
@@ -104,4 +86,4 @@ declare namespace spxChannel_reducer_d {
|
|
|
104
86
|
export type { spxChannel_reducer_d_StateI as StateI };
|
|
105
87
|
}
|
|
106
88
|
|
|
107
|
-
export { SpxChannelGuard, SpxChannelIndicatorComponent,
|
|
89
|
+
export { SpxChannelActions, SpxChannelGuard, SpxChannelIndicatorComponent, spxChannel_effects_d as spxChannelEffects, spxChannel_reducer_d as spxChannelReducer, spxChannelSelectionUrl };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { NavController } from '@ionic/angular/standalone';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
2
3
|
import * as _ngrx_store from '@ngrx/store';
|
|
3
4
|
import { Store } from '@ngrx/store';
|
|
4
|
-
import { ActivatedRoute } from '@angular/router';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
7
6
|
import { SafeStyle, DomSanitizer } from '@angular/platform-browser';
|
|
7
|
+
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
8
8
|
import { Observable } from 'rxjs';
|
|
9
|
-
import { Actions
|
|
9
|
+
import { Actions } from '@ngrx/effects';
|
|
10
10
|
|
|
11
11
|
declare class SpxUpdatePageComponent {
|
|
12
12
|
private readonly appStore;
|
|
@@ -46,45 +46,27 @@ declare class SpxUpdatePendingComponent {
|
|
|
46
46
|
|
|
47
47
|
declare const spxUpdateUrl = "";
|
|
48
48
|
|
|
49
|
-
declare const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
} & _ngrx_store.Action<"[SPX / Update Check] Error happened">) | (Record<string, unknown> & _ngrx_store.Action<"[SPX / Update Check] Initialize">) | ({
|
|
71
|
-
startUpdateAgainAfterTimeout?: boolean;
|
|
72
|
-
} & _ngrx_store.Action<"[SPX / Update Check] No update was found">) | (Record<string, unknown> & _ngrx_store.Action<"[SPX / Update Check] Not available on web">) | ({
|
|
73
|
-
forceWaitForUpdate?: boolean;
|
|
74
|
-
} & _ngrx_store.Action<"[SPX / Update Check] Run">);
|
|
75
|
-
type Actions$1 = typeof all$1;
|
|
76
|
-
|
|
77
|
-
declare const spxUpdateCheck_actions_d_anUpdateIsReady: typeof anUpdateIsReady;
|
|
78
|
-
declare const spxUpdateCheck_actions_d_checkFailed: typeof checkFailed;
|
|
79
|
-
declare const spxUpdateCheck_actions_d_clearError: typeof clearError;
|
|
80
|
-
declare const spxUpdateCheck_actions_d_initialize: typeof initialize;
|
|
81
|
-
declare const spxUpdateCheck_actions_d_noUpdateWasFound: typeof noUpdateWasFound;
|
|
82
|
-
declare const spxUpdateCheck_actions_d_notAvailableOnWeb: typeof notAvailableOnWeb;
|
|
83
|
-
declare const spxUpdateCheck_actions_d_runCheck: typeof runCheck;
|
|
84
|
-
declare namespace spxUpdateCheck_actions_d {
|
|
85
|
-
export { spxUpdateCheck_actions_d_anUpdateIsReady as anUpdateIsReady, spxUpdateCheck_actions_d_checkFailed as checkFailed, spxUpdateCheck_actions_d_clearError as clearError, spxUpdateCheck_actions_d_initialize as initialize, spxUpdateCheck_actions_d_noUpdateWasFound as noUpdateWasFound, spxUpdateCheck_actions_d_notAvailableOnWeb as notAvailableOnWeb, spxUpdateCheck_actions_d_runCheck as runCheck };
|
|
86
|
-
export type { Actions$1 as Actions };
|
|
87
|
-
}
|
|
49
|
+
declare const SpxUpdateCheckActions: {
|
|
50
|
+
anUpdateIsReady: _ngrx_store.ActionCreator<"[SpxUpdateCheck] AnUpdateIsReady", () => _ngrx_store.Action<"[SpxUpdateCheck] AnUpdateIsReady">>;
|
|
51
|
+
clearError: _ngrx_store.ActionCreator<"[SpxUpdateCheck] ClearError", () => _ngrx_store.Action<"[SpxUpdateCheck] ClearError">>;
|
|
52
|
+
checkFailed: _ngrx_store.ActionCreator<"[SpxUpdateCheck] CheckFailed", (props: {
|
|
53
|
+
startUpdateAgainAfterTimeout?: boolean;
|
|
54
|
+
}) => {
|
|
55
|
+
startUpdateAgainAfterTimeout?: boolean;
|
|
56
|
+
} & _ngrx_store.Action<"[SpxUpdateCheck] CheckFailed">>;
|
|
57
|
+
initialaize: _ngrx_store.ActionCreator<"[SpxUpdateCheck] Initialaize", () => _ngrx_store.Action<"[SpxUpdateCheck] Initialaize">>;
|
|
58
|
+
noUpdateWasFound: _ngrx_store.ActionCreator<"[SpxUpdateCheck] NoUpdateWasFound", (props: {
|
|
59
|
+
startUpdateAgainAfterTimeout?: boolean;
|
|
60
|
+
}) => {
|
|
61
|
+
startUpdateAgainAfterTimeout?: boolean;
|
|
62
|
+
} & _ngrx_store.Action<"[SpxUpdateCheck] NoUpdateWasFound">>;
|
|
63
|
+
notAvailableOnWeb: _ngrx_store.ActionCreator<"[SpxUpdateCheck] NotAvailableOnWeb", () => _ngrx_store.Action<"[SpxUpdateCheck] NotAvailableOnWeb">>;
|
|
64
|
+
runCheck: _ngrx_store.ActionCreator<"[SpxUpdateCheck] RunCheck", (props: {
|
|
65
|
+
forceWaitForUpdate?: boolean;
|
|
66
|
+
}) => {
|
|
67
|
+
forceWaitForUpdate?: boolean;
|
|
68
|
+
} & _ngrx_store.Action<"[SpxUpdateCheck] RunCheck">>;
|
|
69
|
+
};
|
|
88
70
|
|
|
89
71
|
declare class Effects$1 {
|
|
90
72
|
private readonly actions$;
|
|
@@ -136,28 +118,17 @@ declare namespace spxUpdateCheck_reducer_d {
|
|
|
136
118
|
};
|
|
137
119
|
}
|
|
138
120
|
|
|
139
|
-
declare const
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
type spxUpdatePending_actions_d_Actions = Actions;
|
|
148
|
-
declare const spxUpdatePending_actions_d_acceptUpdate: typeof acceptUpdate;
|
|
149
|
-
declare const spxUpdatePending_actions_d_hasBeenDownloaded: typeof hasBeenDownloaded;
|
|
150
|
-
declare const spxUpdatePending_actions_d_hasBeenInstalled: typeof hasBeenInstalled;
|
|
151
|
-
declare const spxUpdatePending_actions_d_postpone: typeof postpone;
|
|
152
|
-
declare const spxUpdatePending_actions_d_postponeExpired: typeof postponeExpired;
|
|
153
|
-
declare namespace spxUpdatePending_actions_d {
|
|
154
|
-
export { spxUpdatePending_actions_d_acceptUpdate as acceptUpdate, spxUpdatePending_actions_d_hasBeenDownloaded as hasBeenDownloaded, spxUpdatePending_actions_d_hasBeenInstalled as hasBeenInstalled, spxUpdatePending_actions_d_postpone as postpone, spxUpdatePending_actions_d_postponeExpired as postponeExpired };
|
|
155
|
-
export type { spxUpdatePending_actions_d_Actions as Actions };
|
|
156
|
-
}
|
|
121
|
+
declare const SpxUpdatePendingActions: {
|
|
122
|
+
acceptUpdate: _ngrx_store.ActionCreator<"[SpxUpdatePending] AcceptUpdate", () => _ngrx_store.Action<"[SpxUpdatePending] AcceptUpdate">>;
|
|
123
|
+
hasBeenDownloaded: _ngrx_store.ActionCreator<"[SpxUpdatePending] HasBeenDownloaded", () => _ngrx_store.Action<"[SpxUpdatePending] HasBeenDownloaded">>;
|
|
124
|
+
hasBeenInstalled: _ngrx_store.ActionCreator<"[SpxUpdatePending] HasBeenInstalled", () => _ngrx_store.Action<"[SpxUpdatePending] HasBeenInstalled">>;
|
|
125
|
+
postpone: _ngrx_store.ActionCreator<"[SpxUpdatePending] Postpone", () => _ngrx_store.Action<"[SpxUpdatePending] Postpone">>;
|
|
126
|
+
postponeExpired: _ngrx_store.ActionCreator<"[SpxUpdatePending] PostponeExpired", () => _ngrx_store.Action<"[SpxUpdatePending] PostponeExpired">>;
|
|
127
|
+
};
|
|
157
128
|
|
|
158
129
|
declare class Effects {
|
|
159
130
|
private readonly actions$;
|
|
160
|
-
constructor(actions$: Actions
|
|
131
|
+
constructor(actions$: Actions);
|
|
161
132
|
whenAccepted$: Observable<any>;
|
|
162
133
|
static ɵfac: i0.ɵɵFactoryDeclaration<Effects, never>;
|
|
163
134
|
static ɵprov: i0.ɵɵInjectableDeclaration<Effects>;
|
|
@@ -204,4 +175,4 @@ declare namespace spxUpdatePending_reducer_d {
|
|
|
204
175
|
};
|
|
205
176
|
}
|
|
206
177
|
|
|
207
|
-
export { SpxUpdatePageComponent,
|
|
178
|
+
export { SpxUpdateCheckActions, SpxUpdatePageComponent, SpxUpdatePendingActions, SpxUpdatePendingComponent, spxUpdateCheck_effects_d as spxUpdateCheckEffects, spxUpdateCheck_initial_d as spxUpdateCheckInitial, spxUpdateCheck_reducer_d as spxUpdateCheckReducer, spxUpdateCheck_state_d as spxUpdateCheckState, spxUpdatePending_effects_d as spxUpdatePendingEffects, spxUpdatePending_initial_d as spxUpdatePendingInitial, spxUpdatePending_reducer_d as spxUpdatePendingReducer, spxUpdatePending_state_d as spxUpdatePendingState, spxUpdateUrl };
|
|
@@ -3,9 +3,9 @@ import { OnInit, OnDestroy } from '@angular/core';
|
|
|
3
3
|
import * as _softpak_components_spx_app_configuration from '@softpak/components/spx-app-configuration';
|
|
4
4
|
import { SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';
|
|
5
5
|
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
6
|
-
import { Store } from '@ngrx/store';
|
|
7
6
|
import { SpxFormI } from '@softpak/components/spx-form-view';
|
|
8
7
|
import { SpxValuePair } from '@softpak/components/spx-inputs';
|
|
8
|
+
import { Store } from '@ngrx/store';
|
|
9
9
|
|
|
10
10
|
declare const spxSectionWelcome = "welcome";
|
|
11
11
|
declare const spxCtrlChannel = "channel";
|