@softpak/components 19.2.0-beta.4 → 19.2.0-beta.6

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.
@@ -1,16 +1,21 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, EventEmitter, Component, Input, Output } from '@angular/core';
2
+ import { Injectable, EventEmitter, Component, Input, Output, signal, computed } from '@angular/core';
3
3
  import { SpxStorage, SpxStorageKeyEnum } from '@softpak/components/spx-storage';
4
4
  import * as i1 from '@angular/router';
5
5
  import { SpxButtonComponent } from '@softpak/components/spx-button';
6
- import * as i1$1 from '@angular/forms';
6
+ import * as i2 from '@angular/forms';
7
7
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
8
8
  import { SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';
9
9
  import { SpxFormButtonTypeEnum, SpxFormViewComponent } from '@softpak/components/spx-form-view';
10
- import { SpxSeverityEnum, valuePairToValue } from '@softpak/components/spx-helpers';
10
+ import { SpxSeverityEnum, valuePairToValue, unsubscribeSubscriptions } from '@softpak/components/spx-helpers';
11
11
  import { SpxInputTypeEnum } from '@softpak/components/spx-inputs';
12
12
  import { spxValidatorRequired } from '@softpak/components/spx-validation';
13
+ import * as i1$1 from '@ngrx/store';
13
14
  import { createAction, props, union, createFeature, createReducer, on } from '@ngrx/store';
15
+ import { spxTextChannel, spxTextCompany, spxTextSelect, spxTextSelectYourCompany } from '@softpak/components/spx-translate';
16
+ import { IonHeader, IonToolbar, IonTitle, IonButtons, IonContent } from '@ionic/angular/standalone';
17
+ import { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';
18
+ import { TranslatePipe } from '@ngx-translate/core';
14
19
  import * as i1$2 from '@ngrx/effects';
15
20
  import { createEffect, ofType } from '@ngrx/effects';
16
21
  import { tap } from 'rxjs/operators';
@@ -84,18 +89,96 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
84
89
  type: Output
85
90
  }] } });
86
91
 
92
+ const choose = createAction('[SPX / Channel] Select', props());
93
+ const initialize = createAction('[SPX / Channel] Initialize', props());
94
+ const all = union({
95
+ choose,
96
+ initialize,
97
+ });
98
+
99
+ var spxChannel_actions = /*#__PURE__*/Object.freeze({
100
+ __proto__: null,
101
+ choose: choose,
102
+ initialize: initialize
103
+ });
104
+
105
+ const initialState = {
106
+ channel: null,
107
+ channelType: null,
108
+ channels: [],
109
+ };
110
+
111
+ var spxChannel_initial = /*#__PURE__*/Object.freeze({
112
+ __proto__: null,
113
+ initialState: initialState
114
+ });
115
+
116
+ const determineActiveChannel = (channels) => {
117
+ if (SpxStorage.getSetting(SpxStorageKeyEnum.brand) && SpxStorage.getSetting(SpxStorageKeyEnum.channelType)) {
118
+ const channelResult = channels.find(channel => channel.brand === SpxStorage.getSetting(SpxStorageKeyEnum.brand) && channel.channelTypes.includes(SpxStorage.getSetting(SpxStorageKeyEnum.channelType)));
119
+ if (channelResult) {
120
+ return channelResult;
121
+ }
122
+ else {
123
+ const defaultBrandResult = channels.find(channel => channel.default);
124
+ if (defaultBrandResult) {
125
+ return defaultBrandResult;
126
+ }
127
+ return null;
128
+ }
129
+ }
130
+ else {
131
+ const defaultBrandResult = channels.find(channel => channel.default);
132
+ if (defaultBrandResult) {
133
+ return defaultBrandResult;
134
+ }
135
+ return null;
136
+ }
137
+ };
138
+ var spxChannelReducer$1 = createFeature({
139
+ name: 'spxChannel',
140
+ reducer: createReducer(initialState, on(choose, (state, { channel, channelType }) => {
141
+ SpxStorage.setSetting(SpxStorageKeyEnum.brand, channel.brand);
142
+ SpxStorage.setSetting(SpxStorageKeyEnum.channelType, channelType);
143
+ return {
144
+ ...state,
145
+ channel,
146
+ channelType,
147
+ };
148
+ }), on(initialize, (state, { channels }) => ({
149
+ ...state,
150
+ channel: determineActiveChannel(channels),
151
+ channels: channels.slice().sort((a, b) => a.brand.localeCompare(b.brand)),
152
+ channelType: SpxStorage.getSetting(SpxStorageKeyEnum.channelType) ? SpxStorage.getSetting(SpxStorageKeyEnum.channelType) : SpxAppChannelTypeEnum.production,
153
+ }))),
154
+ });
155
+
156
+ var spxChannel_reducer = /*#__PURE__*/Object.freeze({
157
+ __proto__: null,
158
+ default: spxChannelReducer$1
159
+ });
160
+
87
161
  const sectionWelcome = 'welcome';
88
162
  const ctrlChannel = 'channel';
89
163
  const ctrlChannelType = 'channelType';
90
164
  class SpxWelcomeComponent {
91
165
  get ctrlChannel() { return this.formGroup.get(ctrlChannel); }
92
166
  get ctrlChannelType() { return this.formGroup.get(ctrlChannelType); }
93
- get filteredCompanies() { return (this.channels ?? [])?.filter(channel => channel.channelTypes.includes(SpxAppChannelTypeEnum.production)).map(c => ({ description: c.brand, value: c.brand })); }
94
- constructor(formBuilder) {
167
+ constructor(appStore, formBuilder) {
168
+ this.appStore = appStore;
95
169
  this.formBuilder = formBuilder;
96
- this.channels = [];
97
- this.channelTypes = [];
98
- this.spxSelect = new EventEmitter();
170
+ this.channels = signal([]);
171
+ this.filteredCompanies = computed(() => this.channels().filter(channel => channel.channelTypes.includes(SpxAppChannelTypeEnum.production)).map(c => ({ description: c.brand, value: c.brand })));
172
+ this.channelTypes = [
173
+ SpxAppChannelTypeEnum.production,
174
+ SpxAppChannelTypeEnum.beta,
175
+ SpxAppChannelTypeEnum.alpha,
176
+ SpxAppChannelTypeEnum.development,
177
+ ];
178
+ this.textChannel = spxTextChannel;
179
+ this.textCompany = spxTextCompany;
180
+ this.textSelect = spxTextSelect;
181
+ this.textSelectYourCompany = spxTextSelectYourCompany;
99
182
  this.suggestions = {
100
183
  [ctrlChannelType]: [],
101
184
  [ctrlChannel]: [],
@@ -132,15 +215,18 @@ class SpxWelcomeComponent {
132
215
  }
133
216
  ]
134
217
  };
135
- }
136
- ngOnChanges(changes) {
137
- this.suggestions[ctrlChannel] = (this.channels ?? [])?.filter(channel => channel.channelTypes.includes(SpxAppChannelTypeEnum.production)).map(c => ({ description: c.brand, value: c.brand }));
218
+ this.formGroup = this.formBuilder.group(this.createForm());
138
219
  }
139
220
  ngOnDestroy() {
221
+ unsubscribeSubscriptions(this.subscriptions);
140
222
  }
141
223
  ngOnInit() {
224
+ this.subscriptions.channels = this.appStore.select(spxChannelReducer$1.selectChannels).subscribe(channels => {
225
+ this.channels.set(channels);
226
+ this.suggestions[ctrlChannel] = this.channels().filter(channel => channel.channelTypes.includes(SpxAppChannelTypeEnum.production)).map(c => ({ description: c.brand, value: c.brand }));
227
+ });
142
228
  this.subscriptions.channel = this.ctrlChannel.valueChanges.subscribe(valuePair => {
143
- const channel = this.channels?.find(c => c.brand === valuePairToValue(valuePair));
229
+ const channel = this.channels().find(c => c.brand === valuePairToValue(valuePair));
144
230
  this.suggestions[ctrlChannelType] = !channel ? [] : channel?.channelTypes?.map(ct => ({
145
231
  description: ct,
146
232
  value: ct
@@ -151,70 +237,72 @@ class SpxWelcomeComponent {
151
237
  });
152
238
  }
153
239
  onSubmit() {
154
- this.spxSelect.emit({
155
- channel: this.channels?.find(c => c.brand === valuePairToValue(this.ctrlChannel.value)),
240
+ this.appStore.dispatch(choose({
241
+ channel: this.channels().find(c => c.brand === valuePairToValue(this.ctrlChannel.value)),
156
242
  channelType: valuePairToValue(this.ctrlChannelType.value),
157
- });
243
+ }));
158
244
  }
159
245
  createForm() {
160
246
  return SpxFormViewComponent.createForm(this.formBuilder, this.form.sections);
161
247
  }
162
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxWelcomeComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
163
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: SpxWelcomeComponent, isStandalone: true, selector: "spx-welcome", inputs: { channels: "channels", channelTypes: "channelTypes", formGroup: "formGroup", textChannel: "textChannel", textCompany: "textCompany", textSelect: "textSelect" }, outputs: { spxSelect: "spxSelect" }, usesOnChanges: true, ngImport: i0, template: `
248
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxWelcomeComponent, deps: [{ token: i1$1.Store }, { token: i2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
249
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: SpxWelcomeComponent, isStandalone: true, selector: "spx-welcome", ngImport: i0, template: `
250
+ <ion-header>
251
+ <ion-toolbar>
252
+ <ion-title>
253
+ {{ textSelectYourCompany | translate | capitalize }}
254
+ </ion-title>
255
+ <ion-buttons slot="end">
256
+ </ion-buttons>
257
+ </ion-toolbar>
258
+ </ion-header>
259
+ <ion-content class="ion-padding">
164
260
  <form [formGroup]="formGroup" class="max-w-lg mx-auto flex flex-col gap-3" (ngSubmit)="onSubmit()">
165
261
  <spx-form-view
166
262
  [spxForm]="form"
167
263
  [spxFormGroup]="formGroup"
168
264
  [spxSuggestions]="suggestions">
169
265
  </spx-form-view>
170
- </form>`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: SpxFormViewComponent, selector: "spx-form-view", inputs: ["spxFormGroup", "spxForm", "spxSuggestions"], outputs: ["spxBlur", "spxClick", "spxSearch"] }] }); }
266
+ </form>
267
+ </ion-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "pipe", type: SpxCapitalizePipe, name: "capitalize" }, { kind: "component", type: SpxFormViewComponent, selector: "spx-form-view", inputs: ["spxFormGroup", "spxForm", "spxSuggestions"], outputs: ["spxBlur", "spxClick", "spxSearch"] }, { kind: "component", type: IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
171
268
  }
172
269
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxWelcomeComponent, decorators: [{
173
270
  type: Component,
174
271
  args: [{
175
272
  selector: 'spx-welcome',
176
273
  template: `
274
+ <ion-header>
275
+ <ion-toolbar>
276
+ <ion-title>
277
+ {{ textSelectYourCompany | translate | capitalize }}
278
+ </ion-title>
279
+ <ion-buttons slot="end">
280
+ </ion-buttons>
281
+ </ion-toolbar>
282
+ </ion-header>
283
+ <ion-content class="ion-padding">
177
284
  <form [formGroup]="formGroup" class="max-w-lg mx-auto flex flex-col gap-3" (ngSubmit)="onSubmit()">
178
285
  <spx-form-view
179
286
  [spxForm]="form"
180
287
  [spxFormGroup]="formGroup"
181
288
  [spxSuggestions]="suggestions">
182
289
  </spx-form-view>
183
- </form>`,
290
+ </form>
291
+ </ion-content>`,
184
292
  imports: [
185
293
  FormsModule,
186
294
  ReactiveFormsModule,
295
+ SpxCapitalizePipe,
187
296
  SpxFormViewComponent,
297
+ IonHeader,
298
+ IonToolbar,
299
+ IonTitle,
300
+ IonButtons,
301
+ IonContent,
302
+ TranslatePipe,
188
303
  ]
189
304
  }]
190
- }], ctorParameters: () => [{ type: i1$1.FormBuilder }], propDecorators: { channels: [{
191
- type: Input
192
- }], channelTypes: [{
193
- type: Input
194
- }], formGroup: [{
195
- type: Input
196
- }], textChannel: [{
197
- type: Input
198
- }], textCompany: [{
199
- type: Input
200
- }], textSelect: [{
201
- type: Input
202
- }], spxSelect: [{
203
- type: Output
204
- }] } });
205
-
206
- const choose = createAction('[SPX / Channel] Select', props());
207
- const initialize = createAction('[SPX / Channel] Initialize', props());
208
- const all = union({
209
- choose,
210
- initialize,
211
- });
212
-
213
- var spxChannel_actions = /*#__PURE__*/Object.freeze({
214
- __proto__: null,
215
- choose: choose,
216
- initialize: initialize
217
- });
305
+ }], ctorParameters: () => [{ type: i1$1.Store }, { type: i2.FormBuilder }] });
218
306
 
219
307
  class Effects {
220
308
  constructor(actions$, router) {
@@ -243,62 +331,6 @@ var spxChannel_effects = /*#__PURE__*/Object.freeze({
243
331
  Effects: Effects
244
332
  });
245
333
 
246
- const initialState = {
247
- channel: null,
248
- channelType: null,
249
- channels: [],
250
- };
251
-
252
- var spxChannel_initial = /*#__PURE__*/Object.freeze({
253
- __proto__: null,
254
- initialState: initialState
255
- });
256
-
257
- const determineActiveChannel = (channels) => {
258
- if (SpxStorage.getSetting(SpxStorageKeyEnum.brand) && SpxStorage.getSetting(SpxStorageKeyEnum.channelType)) {
259
- const channelResult = channels.find(channel => channel.brand === SpxStorage.getSetting(SpxStorageKeyEnum.brand) && channel.channelTypes.includes(SpxStorage.getSetting(SpxStorageKeyEnum.channelType)));
260
- if (channelResult) {
261
- return channelResult;
262
- }
263
- else {
264
- const defaultBrandResult = channels.find(channel => channel.default);
265
- if (defaultBrandResult) {
266
- return defaultBrandResult;
267
- }
268
- return null;
269
- }
270
- }
271
- else {
272
- const defaultBrandResult = channels.find(channel => channel.default);
273
- if (defaultBrandResult) {
274
- return defaultBrandResult;
275
- }
276
- return null;
277
- }
278
- };
279
- var spxChannel_reducer = createFeature({
280
- name: 'spxChannel',
281
- reducer: createReducer(initialState, on(choose, (state, { channel, channelType }) => {
282
- SpxStorage.setSetting(SpxStorageKeyEnum.brand, channel.brand);
283
- SpxStorage.setSetting(SpxStorageKeyEnum.channelType, channelType);
284
- return {
285
- ...state,
286
- channel,
287
- channelType,
288
- };
289
- }), on(initialize, (state, { channels }) => ({
290
- ...state,
291
- channel: determineActiveChannel(channels),
292
- channels: channels.slice().sort((a, b) => a.brand.localeCompare(b.brand)),
293
- channelType: SpxStorage.getSetting(SpxStorageKeyEnum.channelType) ? SpxStorage.getSetting(SpxStorageKeyEnum.channelType) : SpxAppChannelTypeEnum.production,
294
- }))),
295
- });
296
-
297
- var spxChannel_reducer$1 = /*#__PURE__*/Object.freeze({
298
- __proto__: null,
299
- default: spxChannel_reducer
300
- });
301
-
302
334
  var spxChannel_state = /*#__PURE__*/Object.freeze({
303
335
  __proto__: null
304
336
  });
@@ -307,5 +339,5 @@ var spxChannel_state = /*#__PURE__*/Object.freeze({
307
339
  * Generated bundle index. Do not edit.
308
340
  */
309
341
 
310
- export { SpxChannelGuard, SpxChannelIndicatorComponent, SpxWelcomeComponent, ctrlChannel, ctrlChannelType, sectionWelcome, spxChannel_actions as spxChannelActions, spxChannel_effects as spxChannelEffects, spxChannel_initial as spxChannelInitial, spxChannel_reducer$1 as spxChannelReducer, spxChannel_state as spxChannelState };
342
+ export { SpxChannelGuard, SpxChannelIndicatorComponent, SpxWelcomeComponent, ctrlChannel, ctrlChannelType, sectionWelcome, spxChannel_actions as spxChannelActions, spxChannel_effects as spxChannelEffects, spxChannel_initial as spxChannelInitial, spxChannel_reducer as spxChannelReducer, spxChannel_state as spxChannelState };
311
343
  //# sourceMappingURL=softpak-components-spx-channel-selection.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"softpak-components-spx-channel-selection.mjs","sources":["../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-selection-url.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-guard.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-indicator.component.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-welcome.component.ts","../../../../projects/softpak/components/spx-channel-selection/store/spx-channel/spx-channel.actions.ts","../../../../projects/softpak/components/spx-channel-selection/store/spx-channel/spx-channel.effects.ts","../../../../projects/softpak/components/spx-channel-selection/store/spx-channel/spx-channel.initial.ts","../../../../projects/softpak/components/spx-channel-selection/store/spx-channel/spx-channel.reducer.ts","../../../../projects/softpak/components/spx-channel-selection/softpak-components-spx-channel-selection.ts"],"sourcesContent":["export const spxChannelSelectionUrl = 'wlc';","import { Router } from '@angular/router';\nimport { Injectable } from '@angular/core';\nimport { SpxStorage, SpxStorageKeyEnum } from '@softpak/components/spx-storage';\nimport { spxChannelSelectionUrl } from './spx-channel-selection-url';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class SpxChannelGuard {\n\n constructor(\n public router: Router,\n ) {}\n\n canActivate(): boolean {\n if (\n !SpxStorage.getSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.brand) ||\n !SpxStorage.getSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.channelType)\n ) {\n this.router.navigate([spxChannelSelectionUrl]);\n return false;\n }\n return true;\n }\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { SpxAppChannelI, SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';\nimport { SpxButtonComponent } from '@softpak/components/spx-button';\n\n@Component({\n selector: 'spx-channel-indicator',\n template: `<div class=\"bg-white p-3 rounded flex gap-3 items-center text-black\">\n <div class=\"grow\">\n <div class=\"text-lg font-bold\">{{ channel?.brand }}</div>\n <div class=\"text-base text-gray-600\">{{ channelType }}</div>\n </div>\n <spx-button (click)=\"onChange()\" [spxType]=\"'button'\">{{ txtChange }}</spx-button>\n </div>`,\n imports: [\n SpxButtonComponent,\n ]\n})\nexport class SpxChannelIndicatorComponent {\n @Input() channel?: SpxAppChannelI;\n @Input() channelType?: SpxAppChannelTypeEnum;\n @Input() txtChange!: string;\n @Output() spxChange: EventEmitter<void> = new EventEmitter<void>();\n\n constructor(\n ) { }\n\n onChange() {\n this.spxChange.emit();\n }\n}\n","import { Component, Input, Output, EventEmitter, OnChanges, SimpleChanges, OnInit, OnDestroy } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { SpxAppChannelI, SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';\nimport { SpxFormButtonTypeEnum, SpxFormI, SpxFormViewComponent } from '@softpak/components/spx-form-view';\nimport { SpxSeverityEnum, 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';\n\nexport const sectionWelcome = 'welcome';\nexport const ctrlChannel = 'channel';\nexport const ctrlChannelType = 'channelType';\nexport interface SpxWelcomeValueI {\n [ctrlChannel]?: SpxAppChannelI;\n [ctrlChannelType]: SpxAppChannelTypeEnum;\n}\n\n@Component({\n selector: 'spx-welcome',\n template: `\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]=\"formGroup\"\n [spxSuggestions]=\"suggestions\">\n </spx-form-view>\n </form>`,\n imports: [\n FormsModule,\n ReactiveFormsModule,\n SpxFormViewComponent,\n ]\n})\nexport class SpxWelcomeComponent implements OnChanges, OnInit, OnDestroy {\n @Input() channels?: SpxAppChannelI[] = [];\n @Input() channelTypes?: SpxAppChannelTypeEnum[] = [];\n @Input() formGroup!: FormGroup;\n @Input() textChannel!: string;\n @Input() textCompany!: string;\n @Input() textSelect!: string;\n @Output() spxSelect: EventEmitter<SpxWelcomeValueI> = new EventEmitter<SpxWelcomeValueI>();\n suggestions: {\n [ctrlChannelType]?: SpxValuePair<string>[];\n [ctrlChannel]?: SpxValuePair<string>[];\n } = {\n [ctrlChannelType]: [],\n [ctrlChannel]: [],\n };\n\n get ctrlChannel(): FormControl { return this.formGroup.get(ctrlChannel) as FormControl; }\n get ctrlChannelType(): FormControl { return this.formGroup.get(ctrlChannelType) as FormControl; }\n private subscriptions: {\n channel?: Subscription\n } = {};\n\n form: SpxFormI = {\n buttons: [\n {\n severity: SpxSeverityEnum.success,\n type: SpxFormButtonTypeEnum.submit,\n label: () => this.textSelect,\n }\n ],\n sections: [\n {\n key: sectionWelcome,\n showTitle: () => false,\n fields: [\n {\n key: ctrlChannel,\n type: () => SpxInputTypeEnum.radio,\n label: () => this.textCompany,\n validators: () => [spxValidatorRequired()],\n },\n {\n key: ctrlChannelType,\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 get filteredCompanies(): SpxValuePair<string>[] { return (this.channels ?? [])?.filter(channel => channel.channelTypes.includes(SpxAppChannelTypeEnum.production)).map(c => ({ description: c.brand, value: c.brand })); }\n\n constructor(readonly formBuilder: FormBuilder) {\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.suggestions[ctrlChannel] = (this.channels ?? [])?.filter(channel => channel.channelTypes.includes(SpxAppChannelTypeEnum.production)).map(c => ({ description: c.brand, value: c.brand }));\n\n }\n\n ngOnDestroy(): void {\n\n }\n\n ngOnInit(): void {\n this.subscriptions.channel = this.ctrlChannel.valueChanges.subscribe(valuePair => {\n const channel = this.channels?.find(c => c.brand === valuePairToValue(valuePair));\n this.suggestions[ctrlChannelType] = !channel ? [] : channel?.channelTypes?.map(ct => ({\n description: ct,\n value: ct\n }));\n this.ctrlChannelType.setValue({\n value: SpxAppChannelTypeEnum.production,\n });\n });\n }\n\n onSubmit(): void {\n this.spxSelect.emit({\n channel: this.channels?.find(c => c.brand === valuePairToValue(this.ctrlChannel.value)),\n channelType: valuePairToValue(this.ctrlChannelType.value),\n });\n }\n\n createForm(): FormGroup {\n return SpxFormViewComponent.createForm(this.formBuilder, this.form.sections);\n }\n}\n","import { createAction, props, union } from '@ngrx/store';\nimport { SpxAppChannelI, SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';\n\nexport const choose = createAction('[SPX / Channel] Select', props<{\n channel: SpxAppChannelI;\n channelType: SpxAppChannelTypeEnum;\n}>());\nexport const initialize = createAction('[SPX / Channel] Initialize', props<{\n channels: SpxAppChannelI[];\n}>());\n\nconst all = union({\n choose,\n initialize,\n});\n\nexport type Actions = typeof all;\n","import { Actions, createEffect, ofType } from '@ngrx/effects';\nimport { Observable } from 'rxjs';\nimport { tap } from 'rxjs/operators';\nimport { Injectable } from '@angular/core';\nimport * as actions from './spx-channel.actions';\nimport { setConfig } from '@capacitor/live-updates';\nimport { Capacitor } from '@capacitor/core';\nimport { AppUpdate } from '@capawesome/capacitor-app-update';\nimport { Router } from '@angular/router';\nimport { spxUpdateUrl } from '@softpak/components/spx-update';\n\n@Injectable()\nexport class Effects {\n onChoose$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(actions.choose),\n tap(async (action) => {\n if (Capacitor.getPlatform() !== 'web') {\n const binaryInfo = await AppUpdate.getAppUpdateInfo()\n const binaryVersionGroup = binaryInfo.currentVersionName.substring(0, 3);\n setConfig({\n channel: `${action.channelType}-${binaryVersionGroup}.x`\n });\n this.router.navigate([spxUpdateUrl]);\n }\n }),\n ));\n\n constructor(\n private readonly actions$: Actions,\n private readonly router: Router,\n ) { }\n}\n\n","import { StateI } from \"./spx-channel.state\";\n\nexport const initialState: StateI = {\n channel: null,\n channelType: null,\n channels: [],\n};\n","\nimport * as actions from './spx-channel.actions';\nimport { createFeature, createReducer, on } from '@ngrx/store';\nimport { StateI } from './spx-channel.state';\nimport { initialState } from './spx-channel.initial';\nimport { SpxStorage, SpxStorageKeyEnum } from '@softpak/components/spx-storage';\nimport { SpxAppChannelI, SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';\n\nconst determineActiveChannel = (channels: SpxAppChannelI[]): SpxAppChannelI | null => {\n if (SpxStorage.getSetting(SpxStorageKeyEnum.brand) && SpxStorage.getSetting(SpxStorageKeyEnum.channelType)) {\n const channelResult = channels.find(channel => channel.brand === SpxStorage.getSetting(SpxStorageKeyEnum.brand) && channel.channelTypes.includes(SpxStorage.getSetting(SpxStorageKeyEnum.channelType) as SpxAppChannelTypeEnum));\n if (channelResult) {\n return channelResult;\n } else {\n const defaultBrandResult = channels.find(channel => channel.default);\n if (defaultBrandResult) {\n return defaultBrandResult;\n }\n return null;\n }\n } else {\n const defaultBrandResult = channels.find(channel => channel.default);\n if (defaultBrandResult) {\n return defaultBrandResult;\n }\n return null;\n }\n}\n\nexport default createFeature({\n name: 'spxChannel',\n reducer: createReducer(\n initialState,\n on(actions.choose, (state, { channel, channelType }): StateI => {\n SpxStorage.setSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.brand, channel.brand);\n SpxStorage.setSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.channelType, channelType);\n return {\n ...state,\n channel,\n channelType,\n };\n }),\n on(actions.initialize, (state, { channels }): StateI => ({\n ...state,\n channel: determineActiveChannel(channels),\n channels: channels.slice().sort((a, b) => a.brand.localeCompare(b.brand)),\n channelType: SpxStorage.getSetting(SpxStorageKeyEnum.channelType) ? SpxStorage.getSetting(SpxStorageKeyEnum.channelType) as SpxAppChannelTypeEnum : SpxAppChannelTypeEnum.production,\n })),\n ),\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","actions.choose","i2","actions.initialize"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAO,MAAM,sBAAsB,GAAG,KAAK;;MCQ9B,eAAe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EAAE,OAAO,CAAC,KAAK,CAAC;QAChF,UAAU,CAAC,UAAU,CAAoB,iBAAiB,CAAC,WAAW,EAAE,WAAW,CAAC;QACpF,OAAO;AACH,YAAA,GAAG,KAAK;YACR,OAAO;YACP,WAAW;SACd;AACL,KAAC,CAAC,EACF,EAAE,CAACE,UAAkB,EAAE,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAc;AACrD,QAAA,GAAG,KAAK;AACR,QAAA,OAAO,EAAE,sBAAsB,CAAC,QAAQ,CAAC;QACzC,QAAQ,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACzE,WAAW,EAAE,UAAU,CAAC,UAAU,CAAC,iBAAiB,CAAC,WAAW,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,iBAAiB,CAAC,WAAW,CAA0B,GAAG,qBAAqB,CAAC,UAAU;AACvL,KAAA,CAAC,CAAC,CACN;AACJ,CAAA,CAAC;;;;;;;;;;;ACjDF;;AAEG;;;;"}
1
+ {"version":3,"file":"softpak-components-spx-channel-selection.mjs","sources":["../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-selection-url.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-guard.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-indicator.component.ts","../../../../projects/softpak/components/spx-channel-selection/store/spx-channel/spx-channel.actions.ts","../../../../projects/softpak/components/spx-channel-selection/store/spx-channel/spx-channel.initial.ts","../../../../projects/softpak/components/spx-channel-selection/store/spx-channel/spx-channel.reducer.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-welcome.component.ts","../../../../projects/softpak/components/spx-channel-selection/store/spx-channel/spx-channel.effects.ts","../../../../projects/softpak/components/spx-channel-selection/softpak-components-spx-channel-selection.ts"],"sourcesContent":["export const spxChannelSelectionUrl = 'wlc';","import { Router } from '@angular/router';\nimport { Injectable } from '@angular/core';\nimport { SpxStorage, SpxStorageKeyEnum } from '@softpak/components/spx-storage';\nimport { spxChannelSelectionUrl } from './spx-channel-selection-url';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class SpxChannelGuard {\n\n constructor(\n public router: Router,\n ) {}\n\n canActivate(): boolean {\n if (\n !SpxStorage.getSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.brand) ||\n !SpxStorage.getSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.channelType)\n ) {\n this.router.navigate([spxChannelSelectionUrl]);\n return false;\n }\n return true;\n }\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { SpxAppChannelI, SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';\nimport { SpxButtonComponent } from '@softpak/components/spx-button';\n\n@Component({\n selector: 'spx-channel-indicator',\n template: `<div class=\"bg-white p-3 rounded flex gap-3 items-center text-black\">\n <div class=\"grow\">\n <div class=\"text-lg font-bold\">{{ channel?.brand }}</div>\n <div class=\"text-base text-gray-600\">{{ channelType }}</div>\n </div>\n <spx-button (click)=\"onChange()\" [spxType]=\"'button'\">{{ txtChange }}</spx-button>\n </div>`,\n imports: [\n SpxButtonComponent,\n ]\n})\nexport class SpxChannelIndicatorComponent {\n @Input() channel?: SpxAppChannelI;\n @Input() channelType?: SpxAppChannelTypeEnum;\n @Input() txtChange!: string;\n @Output() spxChange: EventEmitter<void> = new EventEmitter<void>();\n\n constructor(\n ) { }\n\n onChange() {\n this.spxChange.emit();\n }\n}\n","import { createAction, props, union } from '@ngrx/store';\nimport { SpxAppChannelI, SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';\n\nexport const choose = createAction('[SPX / Channel] Select', props<{\n channel: SpxAppChannelI;\n channelType: SpxAppChannelTypeEnum;\n}>());\nexport const initialize = createAction('[SPX / Channel] Initialize', props<{\n channels: SpxAppChannelI[];\n}>());\n\nconst all = union({\n choose,\n initialize,\n});\n\nexport type Actions = typeof all;\n","import { StateI } from \"./spx-channel.state\";\n\nexport const initialState: StateI = {\n channel: null,\n channelType: null,\n channels: [],\n};\n","\nimport * as actions from './spx-channel.actions';\nimport { createFeature, createReducer, on } from '@ngrx/store';\nimport { StateI } from './spx-channel.state';\nimport { initialState } from './spx-channel.initial';\nimport { SpxStorage, SpxStorageKeyEnum } from '@softpak/components/spx-storage';\nimport { SpxAppChannelI, SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';\n\nconst determineActiveChannel = (channels: SpxAppChannelI[]): SpxAppChannelI | null => {\n if (SpxStorage.getSetting(SpxStorageKeyEnum.brand) && SpxStorage.getSetting(SpxStorageKeyEnum.channelType)) {\n const channelResult = channels.find(channel => channel.brand === SpxStorage.getSetting(SpxStorageKeyEnum.brand) && channel.channelTypes.includes(SpxStorage.getSetting(SpxStorageKeyEnum.channelType) as SpxAppChannelTypeEnum));\n if (channelResult) {\n return channelResult;\n } else {\n const defaultBrandResult = channels.find(channel => channel.default);\n if (defaultBrandResult) {\n return defaultBrandResult;\n }\n return null;\n }\n } else {\n const defaultBrandResult = channels.find(channel => channel.default);\n if (defaultBrandResult) {\n return defaultBrandResult;\n }\n return null;\n }\n}\n\nexport default createFeature({\n name: 'spxChannel',\n reducer: createReducer(\n initialState,\n on(actions.choose, (state, { channel, channelType }): StateI => {\n SpxStorage.setSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.brand, channel.brand);\n SpxStorage.setSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.channelType, channelType);\n return {\n ...state,\n channel,\n channelType,\n };\n }),\n on(actions.initialize, (state, { channels }): StateI => ({\n ...state,\n channel: determineActiveChannel(channels),\n channels: channels.slice().sort((a, b) => a.brand.localeCompare(b.brand)),\n channelType: SpxStorage.getSetting(SpxStorageKeyEnum.channelType) ? SpxStorage.getSetting(SpxStorageKeyEnum.channelType) as SpxAppChannelTypeEnum : SpxAppChannelTypeEnum.production,\n })),\n ),\n});\n","import { Component, OnInit, OnDestroy, signal, computed } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { Store } from '@ngrx/store';\nimport { SpxAppChannelI, 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 spxChannelReducer from '../store/spx-channel/spx-channel.reducer';\nimport { spxTextChannel, spxTextCompany, spxTextSelect, spxTextSelectYourCompany } from '@softpak/components/spx-translate';\nimport { IonHeader, IonToolbar, IonTitle, IonButtons, IonContent } from '@ionic/angular/standalone';\nimport { choose } from '../store/spx-channel/spx-channel.actions';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { TranslatePipe } from '@ngx-translate/core';\n\nexport const sectionWelcome = 'welcome';\nexport const ctrlChannel = 'channel';\nexport const ctrlChannelType = 'channelType';\nexport interface SpxWelcomeValueI {\n [ctrlChannel]?: SpxAppChannelI;\n [ctrlChannelType]: SpxAppChannelTypeEnum;\n}\n\n@Component({\n selector: 'spx-welcome',\n template: `\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]=\"formGroup\"\n [spxSuggestions]=\"suggestions\">\n </spx-form-view>\n </form>\n</ion-content>`,\n imports: [\n FormsModule,\n ReactiveFormsModule,\n SpxCapitalizePipe,\n SpxFormViewComponent,\n IonHeader,\n IonToolbar,\n IonTitle,\n IonButtons,\n IonContent,\n TranslatePipe,\n ]\n})\nexport class SpxWelcomeComponent implements OnInit, OnDestroy {\n channels = signal<SpxAppChannelI[]>([]);\n filteredCompanies = computed(() => this.channels().filter(channel => channel.channelTypes.includes(SpxAppChannelTypeEnum.production)).map(c => ({ description: c.brand, value: c.brand })));\n channelTypes = [\n SpxAppChannelTypeEnum.production,\n SpxAppChannelTypeEnum.beta,\n SpxAppChannelTypeEnum.alpha,\n SpxAppChannelTypeEnum.development,\n ];\n formGroup!: FormGroup;\n textChannel = spxTextChannel;\n textCompany = spxTextCompany;\n textSelect = spxTextSelect;\n textSelectYourCompany = spxTextSelectYourCompany;\n suggestions: {\n [ctrlChannelType]?: SpxValuePair<string>[];\n [ctrlChannel]?: SpxValuePair<string>[];\n } = {\n [ctrlChannelType]: [],\n [ctrlChannel]: [],\n };\n\n get ctrlChannel(): FormControl { return this.formGroup.get(ctrlChannel) as FormControl; }\n get ctrlChannelType(): FormControl { return this.formGroup.get(ctrlChannelType) as FormControl; }\n private subscriptions: {\n channel?: Subscription;\n channels?: Subscription;\n } = {};\n\n form: SpxFormI = {\n buttons: [\n {\n severity: SpxSeverityEnum.success,\n type: SpxFormButtonTypeEnum.submit,\n label: () => this.textSelect,\n }\n ],\n sections: [\n {\n key: sectionWelcome,\n showTitle: () => false,\n fields: [\n {\n key: ctrlChannel,\n type: () => SpxInputTypeEnum.radio,\n label: () => this.textCompany,\n validators: () => [spxValidatorRequired()],\n },\n {\n key: ctrlChannelType,\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 appStore: Store,\n readonly formBuilder: FormBuilder\n ) {\n this.formGroup = this.formBuilder.group(this.createForm());\n }\n\n ngOnDestroy(): void {\n unsubscribeSubscriptions(this.subscriptions);\n }\n\n ngOnInit(): void {\n this.subscriptions.channels = this.appStore.select(spxChannelReducer.selectChannels).subscribe(channels => {\n this.channels.set(channels);\n this.suggestions[ctrlChannel] = this.channels().filter(channel => channel.channelTypes.includes(SpxAppChannelTypeEnum.production)).map(c => ({ description: c.brand, value: c.brand }));\n });\n\n this.subscriptions.channel = this.ctrlChannel.valueChanges.subscribe(valuePair => {\n const channel = this.channels().find(c => c.brand === valuePairToValue(valuePair));\n this.suggestions[ctrlChannelType] = !channel ? [] : channel?.channelTypes?.map(ct => ({\n description: ct,\n value: ct\n }));\n this.ctrlChannelType.setValue({\n value: SpxAppChannelTypeEnum.production,\n });\n });\n }\n\n onSubmit(): void {\n this.appStore.dispatch(choose({\n channel: this.channels().find(c => c.brand === valuePairToValue(this.ctrlChannel.value))!,\n channelType: valuePairToValue(this.ctrlChannelType.value),\n }));\n }\n\n createForm(): FormGroup {\n return SpxFormViewComponent.createForm(this.formBuilder, this.form.sections);\n }\n}\n","import { Actions, createEffect, ofType } from '@ngrx/effects';\nimport { Observable } from 'rxjs';\nimport { tap } from 'rxjs/operators';\nimport { Injectable } from '@angular/core';\nimport * as actions from './spx-channel.actions';\nimport { setConfig } from '@capacitor/live-updates';\nimport { Capacitor } from '@capacitor/core';\nimport { AppUpdate } from '@capawesome/capacitor-app-update';\nimport { Router } from '@angular/router';\nimport { spxUpdateUrl } from '@softpak/components/spx-update';\n\n@Injectable()\nexport class Effects {\n onChoose$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(actions.choose),\n tap(async (action) => {\n if (Capacitor.getPlatform() !== 'web') {\n const binaryInfo = await AppUpdate.getAppUpdateInfo()\n const binaryVersionGroup = binaryInfo.currentVersionName.substring(0, 3);\n setConfig({\n channel: `${action.channelType}-${binaryVersionGroup}.x`\n });\n this.router.navigate([spxUpdateUrl]);\n }\n }),\n ));\n\n constructor(\n private readonly actions$: Actions,\n private readonly router: Router,\n ) { }\n}\n\n","/**\n * Generated bundle index. Do not edit.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AbO,OAAO,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAG,IAAA,CAAA,OAAA,EAAA,EAAA,EAAA,KAAA,EAAAC,EAAA,CAAA,MAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAAP,OAAO,EAAA,CAAA,CAAA;;2FAAP,OAAO,EAAA,UAAA,EAAA,CAAA;kBADnB;;;;;;;;;;;;ACXD;;AAEG;;;;"}
@@ -5,6 +5,10 @@ const spxTextUpdateAvailable = 'spxTextUpdateAvailable';
5
5
  const spxTextReadyToBeInstalled = 'spxTextReadyToBeInstalled';
6
6
  const spxTextUpdate = 'spxTextUpdate';
7
7
  const spxTextOpenAppStore = 'spxTextOpenAppStore';
8
+ const spxTextChannel = 'spxTextChannel';
9
+ const spxTextCompany = 'spxTextCompany';
10
+ const spxTextSelect = 'spxTextSelect';
11
+ const spxTextSelectYourCompany = 'spxSelectYourCompany';
8
12
 
9
13
  const SpxTranslateEn = {
10
14
  [spxTextCheckingForUpdates]: 'checking for updates',
@@ -14,6 +18,10 @@ const SpxTranslateEn = {
14
18
  [spxTextUpdateAvailable]: 'update available',
15
19
  [spxTextUpdate]: 'update',
16
20
  [spxTextOpenAppStore]: 'open app store',
21
+ [spxTextChannel]: 'channel',
22
+ [spxTextCompany]: 'company',
23
+ [spxTextSelect]: 'select',
24
+ [spxTextSelectYourCompany]: 'select your company',
17
25
  };
18
26
 
19
27
  const SpxTranslateNl = {
@@ -24,11 +32,15 @@ const SpxTranslateNl = {
24
32
  [spxTextUpdateAvailable]: 'update available',
25
33
  [spxTextUpdate]: 'updaten',
26
34
  [spxTextOpenAppStore]: 'open app store',
35
+ [spxTextChannel]: 'kanaal',
36
+ [spxTextCompany]: 'bedrijf',
37
+ [spxTextSelect]: 'selecteer',
38
+ [spxTextSelectYourCompany]: 'selecteer uw bedrijf',
27
39
  };
28
40
 
29
41
  /**
30
42
  * Generated bundle index. Do not edit.
31
43
  */
32
44
 
33
- export { SpxTranslateEn, SpxTranslateNl, spxTextCheckingForUpdates, spxTextOneMomentPlease, spxTextOpenAppStore, spxTextPatchAvailable, spxTextReadyToBeInstalled, spxTextUpdate, spxTextUpdateAvailable };
45
+ export { SpxTranslateEn, SpxTranslateNl, spxTextChannel, spxTextCheckingForUpdates, spxTextCompany, spxTextOneMomentPlease, spxTextOpenAppStore, spxTextPatchAvailable, spxTextReadyToBeInstalled, spxTextSelect, spxTextSelectYourCompany, spxTextUpdate, spxTextUpdateAvailable };
34
46
  //# sourceMappingURL=softpak-components-spx-translate.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"softpak-components-spx-translate.mjs","sources":["../../../../projects/softpak/components/spx-translate/spx-translate._const.ts","../../../../projects/softpak/components/spx-translate/spx-translate.en.ts","../../../../projects/softpak/components/spx-translate/spx-translate.nl.ts","../../../../projects/softpak/components/spx-translate/softpak-components-spx-translate.ts"],"sourcesContent":["export const spxTextCheckingForUpdates = 'spxTextCheckingForUpdates';\nexport const spxTextOneMomentPlease = 'spxTextOneMomentPlease';\nexport const spxTextPatchAvailable = 'spxTextPatchAvailable';\nexport const spxTextUpdateAvailable = 'spxTextUpdateAvailable';\nexport const spxTextReadyToBeInstalled = 'spxTextReadyToBeInstalled';\nexport const spxTextUpdate = 'spxTextUpdate';\nexport const spxTextOpenAppStore = 'spxTextOpenAppStore';\n\nexport interface SpxTranslateI {\n [spxTextCheckingForUpdates]: string;\n [spxTextOneMomentPlease]: string;\n [spxTextPatchAvailable]: string;\n [spxTextUpdateAvailable]: string;\n [spxTextReadyToBeInstalled]: string;\n [spxTextUpdate]: string;\n [spxTextOpenAppStore]: string;\n}\n","import { spxTextCheckingForUpdates, spxTextOneMomentPlease, spxTextOpenAppStore, spxTextPatchAvailable, spxTextReadyToBeInstalled, spxTextUpdate, spxTextUpdateAvailable, SpxTranslateI } from \"./spx-translate._const\";\n\nexport const SpxTranslateEn: SpxTranslateI = {\n [spxTextCheckingForUpdates]: 'checking for updates',\n [spxTextOneMomentPlease]: 'one moment please',\n [spxTextReadyToBeInstalled]: 'ready to be installed',\n [spxTextPatchAvailable]: 'patch available',\n [spxTextUpdateAvailable]: 'update available',\n [spxTextUpdate]: 'update',\n [spxTextOpenAppStore]: 'open app store',\n}\n","import { spxTextCheckingForUpdates, spxTextOneMomentPlease, spxTextOpenAppStore, spxTextPatchAvailable, spxTextReadyToBeInstalled, spxTextUpdate, spxTextUpdateAvailable, SpxTranslateI } from \"./spx-translate._const\";\n\nexport const SpxTranslateNl: SpxTranslateI = {\n [spxTextCheckingForUpdates]: 'controleren op updates',\n [spxTextOneMomentPlease]: 'een moment geduld alstublieft',\n [spxTextReadyToBeInstalled]: 'ready to be installed',\n [spxTextPatchAvailable]: 'patch available',\n [spxTextUpdateAvailable]: 'update available',\n [spxTextUpdate]: 'updaten',\n [spxTextOpenAppStore]: 'open app store',\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAO,MAAM,yBAAyB,GAAG;AAClC,MAAM,sBAAsB,GAAG;AAC/B,MAAM,qBAAqB,GAAG;AAC9B,MAAM,sBAAsB,GAAG;AAC/B,MAAM,yBAAyB,GAAG;AAClC,MAAM,aAAa,GAAG;AACtB,MAAM,mBAAmB,GAAG;;ACJtB,MAAA,cAAc,GAAkB;IAC3C,CAAC,yBAAyB,GAAG,sBAAsB;IACnD,CAAC,sBAAsB,GAAG,mBAAmB;IAC7C,CAAC,yBAAyB,GAAG,uBAAuB;IACpD,CAAC,qBAAqB,GAAG,iBAAiB;IAC1C,CAAC,sBAAsB,GAAG,kBAAkB;IAC5C,CAAC,aAAa,GAAG,QAAQ;IACzB,CAAC,mBAAmB,GAAG,gBAAgB;;;ACP5B,MAAA,cAAc,GAAkB;IAC3C,CAAC,yBAAyB,GAAG,wBAAwB;IACrD,CAAC,sBAAsB,GAAG,+BAA+B;IACzD,CAAC,yBAAyB,GAAG,uBAAuB;IACpD,CAAC,qBAAqB,GAAG,iBAAiB;IAC1C,CAAC,sBAAsB,GAAG,kBAAkB;IAC5C,CAAC,aAAa,GAAG,SAAS;IAC1B,CAAC,mBAAmB,GAAG,gBAAgB;;;ACTzC;;AAEG;;;;"}
1
+ {"version":3,"file":"softpak-components-spx-translate.mjs","sources":["../../../../projects/softpak/components/spx-translate/spx-translate._const.ts","../../../../projects/softpak/components/spx-translate/spx-translate.en.ts","../../../../projects/softpak/components/spx-translate/spx-translate.nl.ts","../../../../projects/softpak/components/spx-translate/softpak-components-spx-translate.ts"],"sourcesContent":["export const spxTextCheckingForUpdates = 'spxTextCheckingForUpdates';\nexport const spxTextOneMomentPlease = 'spxTextOneMomentPlease';\nexport const spxTextPatchAvailable = 'spxTextPatchAvailable';\nexport const spxTextUpdateAvailable = 'spxTextUpdateAvailable';\nexport const spxTextReadyToBeInstalled = 'spxTextReadyToBeInstalled';\nexport const spxTextUpdate = 'spxTextUpdate';\nexport const spxTextOpenAppStore = 'spxTextOpenAppStore';\nexport const spxTextChannel = 'spxTextChannel';\nexport const spxTextCompany = 'spxTextCompany';\nexport const spxTextSelect = 'spxTextSelect';\nexport const spxTextSelectYourCompany = 'spxSelectYourCompany';\n\nexport interface SpxTranslateI {\n [spxTextCheckingForUpdates]: string;\n [spxTextOneMomentPlease]: string;\n [spxTextPatchAvailable]: string;\n [spxTextUpdateAvailable]: string;\n [spxTextReadyToBeInstalled]: string;\n [spxTextUpdate]: string;\n [spxTextOpenAppStore]: string;\n [spxTextChannel]: string;\n [spxTextCompany]: string;\n [spxTextSelect]: string;\n [spxTextSelectYourCompany]: string;\n}\n","import { spxTextChannel, spxTextCheckingForUpdates, spxTextCompany, spxTextOneMomentPlease, spxTextOpenAppStore, spxTextPatchAvailable, spxTextReadyToBeInstalled, spxTextSelect, spxTextSelectYourCompany, spxTextUpdate, spxTextUpdateAvailable, SpxTranslateI } from \"./spx-translate._const\";\n\nexport const SpxTranslateEn: SpxTranslateI = {\n [spxTextCheckingForUpdates]: 'checking for updates',\n [spxTextOneMomentPlease]: 'one moment please',\n [spxTextReadyToBeInstalled]: 'ready to be installed',\n [spxTextPatchAvailable]: 'patch available',\n [spxTextUpdateAvailable]: 'update available',\n [spxTextUpdate]: 'update',\n [spxTextOpenAppStore]: 'open app store',\n [spxTextChannel]: 'channel',\n [spxTextCompany]: 'company',\n [spxTextSelect]: 'select',\n [spxTextSelectYourCompany]: 'select your company',\n}\n","import { spxTextChannel, spxTextCheckingForUpdates, spxTextCompany, spxTextOneMomentPlease, spxTextOpenAppStore, spxTextPatchAvailable, spxTextReadyToBeInstalled, spxTextSelect, spxTextSelectYourCompany, spxTextUpdate, spxTextUpdateAvailable, SpxTranslateI } from \"./spx-translate._const\";\n\nexport const SpxTranslateNl: SpxTranslateI = {\n [spxTextCheckingForUpdates]: 'controleren op updates',\n [spxTextOneMomentPlease]: 'een moment geduld alstublieft',\n [spxTextReadyToBeInstalled]: 'ready to be installed',\n [spxTextPatchAvailable]: 'patch available',\n [spxTextUpdateAvailable]: 'update available',\n [spxTextUpdate]: 'updaten',\n [spxTextOpenAppStore]: 'open app store',\n [spxTextChannel]: 'kanaal',\n [spxTextCompany]: 'bedrijf',\n [spxTextSelect]: 'selecteer',\n [spxTextSelectYourCompany]: 'selecteer uw bedrijf',\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAO,MAAM,yBAAyB,GAAG;AAClC,MAAM,sBAAsB,GAAG;AAC/B,MAAM,qBAAqB,GAAG;AAC9B,MAAM,sBAAsB,GAAG;AAC/B,MAAM,yBAAyB,GAAG;AAClC,MAAM,aAAa,GAAG;AACtB,MAAM,mBAAmB,GAAG;AAC5B,MAAM,cAAc,GAAG;AACvB,MAAM,cAAc,GAAG;AACvB,MAAM,aAAa,GAAG;AACtB,MAAM,wBAAwB,GAAG;;ACR3B,MAAA,cAAc,GAAkB;IAC3C,CAAC,yBAAyB,GAAG,sBAAsB;IACnD,CAAC,sBAAsB,GAAG,mBAAmB;IAC7C,CAAC,yBAAyB,GAAG,uBAAuB;IACpD,CAAC,qBAAqB,GAAG,iBAAiB;IAC1C,CAAC,sBAAsB,GAAG,kBAAkB;IAC5C,CAAC,aAAa,GAAG,QAAQ;IACzB,CAAC,mBAAmB,GAAG,gBAAgB;IACvC,CAAC,cAAc,GAAG,SAAS;IAC3B,CAAC,cAAc,GAAG,SAAS;IAC3B,CAAC,aAAa,GAAG,QAAQ;IACzB,CAAC,wBAAwB,GAAG,qBAAqB;;;ACXtC,MAAA,cAAc,GAAkB;IAC3C,CAAC,yBAAyB,GAAG,wBAAwB;IACrD,CAAC,sBAAsB,GAAG,+BAA+B;IACzD,CAAC,yBAAyB,GAAG,uBAAuB;IACpD,CAAC,qBAAqB,GAAG,iBAAiB;IAC1C,CAAC,sBAAsB,GAAG,kBAAkB;IAC5C,CAAC,aAAa,GAAG,SAAS;IAC1B,CAAC,mBAAmB,GAAG,gBAAgB;IACvC,CAAC,cAAc,GAAG,QAAQ;IAC1B,CAAC,cAAc,GAAG,SAAS;IAC3B,CAAC,aAAa,GAAG,WAAW;IAC5B,CAAC,wBAAwB,GAAG,sBAAsB;;;ACbpD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softpak/components",
3
- "version": "19.2.0-beta.4",
3
+ "version": "19.2.0-beta.6",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "19.x.x",
@@ -38,14 +38,14 @@
38
38
  "types": "./spx-app-configuration/index.d.ts",
39
39
  "default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
40
40
  },
41
- "./spx-app-expiry": {
42
- "types": "./spx-app-expiry/index.d.ts",
43
- "default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
44
- },
45
41
  "./spx-button": {
46
42
  "types": "./spx-button/index.d.ts",
47
43
  "default": "./fesm2022/softpak-components-spx-button.mjs"
48
44
  },
45
+ "./spx-app-expiry": {
46
+ "types": "./spx-app-expiry/index.d.ts",
47
+ "default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
48
+ },
49
49
  "./spx-capitalize": {
50
50
  "types": "./spx-capitalize/index.d.ts",
51
51
  "default": "./fesm2022/softpak-components-spx-capitalize.mjs"
@@ -54,14 +54,14 @@
54
54
  "types": "./spx-card/index.d.ts",
55
55
  "default": "./fesm2022/softpak-components-spx-card.mjs"
56
56
  },
57
- "./spx-channel-selection": {
58
- "types": "./spx-channel-selection/index.d.ts",
59
- "default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
60
- },
61
57
  "./spx-change-details": {
62
58
  "types": "./spx-change-details/index.d.ts",
63
59
  "default": "./fesm2022/softpak-components-spx-change-details.mjs"
64
60
  },
61
+ "./spx-channel-selection": {
62
+ "types": "./spx-channel-selection/index.d.ts",
63
+ "default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
64
+ },
65
65
  "./spx-check-digit": {
66
66
  "types": "./spx-check-digit/index.d.ts",
67
67
  "default": "./fesm2022/softpak-components-spx-check-digit.mjs"
@@ -78,26 +78,26 @@
78
78
  "types": "./spx-helpers/index.d.ts",
79
79
  "default": "./fesm2022/softpak-components-spx-helpers.mjs"
80
80
  },
81
- "./spx-inputs": {
82
- "types": "./spx-inputs/index.d.ts",
83
- "default": "./fesm2022/softpak-components-spx-inputs.mjs"
84
- },
85
81
  "./spx-navigation": {
86
82
  "types": "./spx-navigation/index.d.ts",
87
83
  "default": "./fesm2022/softpak-components-spx-navigation.mjs"
88
84
  },
85
+ "./spx-inputs": {
86
+ "types": "./spx-inputs/index.d.ts",
87
+ "default": "./fesm2022/softpak-components-spx-inputs.mjs"
88
+ },
89
89
  "./spx-number-check": {
90
90
  "types": "./spx-number-check/index.d.ts",
91
91
  "default": "./fesm2022/softpak-components-spx-number-check.mjs"
92
92
  },
93
- "./spx-patch": {
94
- "types": "./spx-patch/index.d.ts",
95
- "default": "./fesm2022/softpak-components-spx-patch.mjs"
96
- },
97
93
  "./spx-pagination": {
98
94
  "types": "./spx-pagination/index.d.ts",
99
95
  "default": "./fesm2022/softpak-components-spx-pagination.mjs"
100
96
  },
97
+ "./spx-patch": {
98
+ "types": "./spx-patch/index.d.ts",
99
+ "default": "./fesm2022/softpak-components-spx-patch.mjs"
100
+ },
101
101
  "./spx-progress-bar": {
102
102
  "types": "./spx-progress-bar/index.d.ts",
103
103
  "default": "./fesm2022/softpak-components-spx-progress-bar.mjs"
@@ -1,5 +1,6 @@
1
- import { EventEmitter, OnChanges, SimpleChanges, OnInit, OnDestroy } from '@angular/core';
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
2
  import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
+ import { Store } from '@ngrx/store';
3
4
  import { SpxAppChannelI, SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';
4
5
  import { SpxFormI } from '@softpak/components/spx-form-view';
5
6
  import { SpxValuePair } from '@softpak/components/spx-inputs';
@@ -11,15 +12,20 @@ export interface SpxWelcomeValueI {
11
12
  [ctrlChannel]?: SpxAppChannelI;
12
13
  [ctrlChannelType]: SpxAppChannelTypeEnum;
13
14
  }
14
- export declare class SpxWelcomeComponent implements OnChanges, OnInit, OnDestroy {
15
+ export declare class SpxWelcomeComponent implements OnInit, OnDestroy {
16
+ private readonly appStore;
15
17
  readonly formBuilder: FormBuilder;
16
- channels?: SpxAppChannelI[];
17
- channelTypes?: SpxAppChannelTypeEnum[];
18
+ channels: import("@angular/core").WritableSignal<SpxAppChannelI[]>;
19
+ filteredCompanies: import("@angular/core").Signal<{
20
+ description: string;
21
+ value: string;
22
+ }[]>;
23
+ channelTypes: SpxAppChannelTypeEnum[];
18
24
  formGroup: FormGroup;
19
25
  textChannel: string;
20
26
  textCompany: string;
21
27
  textSelect: string;
22
- spxSelect: EventEmitter<SpxWelcomeValueI>;
28
+ textSelectYourCompany: string;
23
29
  suggestions: {
24
30
  [ctrlChannelType]?: SpxValuePair<string>[];
25
31
  [ctrlChannel]?: SpxValuePair<string>[];
@@ -28,13 +34,11 @@ export declare class SpxWelcomeComponent implements OnChanges, OnInit, OnDestroy
28
34
  get ctrlChannelType(): FormControl;
29
35
  private subscriptions;
30
36
  form: SpxFormI;
31
- get filteredCompanies(): SpxValuePair<string>[];
32
- constructor(formBuilder: FormBuilder);
33
- ngOnChanges(changes: SimpleChanges): void;
37
+ constructor(appStore: Store, formBuilder: FormBuilder);
34
38
  ngOnDestroy(): void;
35
39
  ngOnInit(): void;
36
40
  onSubmit(): void;
37
41
  createForm(): FormGroup;
38
42
  static ɵfac: i0.ɵɵFactoryDeclaration<SpxWelcomeComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<SpxWelcomeComponent, "spx-welcome", never, { "channels": { "alias": "channels"; "required": false; }; "channelTypes": { "alias": "channelTypes"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "textChannel": { "alias": "textChannel"; "required": false; }; "textCompany": { "alias": "textCompany"; "required": false; }; "textSelect": { "alias": "textSelect"; "required": false; }; }, { "spxSelect": "spxSelect"; }, never, never, true, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpxWelcomeComponent, "spx-welcome", never, {}, {}, never, never, true, never>;
40
44
  }
@@ -5,6 +5,10 @@ export declare const spxTextUpdateAvailable = "spxTextUpdateAvailable";
5
5
  export declare const spxTextReadyToBeInstalled = "spxTextReadyToBeInstalled";
6
6
  export declare const spxTextUpdate = "spxTextUpdate";
7
7
  export declare const spxTextOpenAppStore = "spxTextOpenAppStore";
8
+ export declare const spxTextChannel = "spxTextChannel";
9
+ export declare const spxTextCompany = "spxTextCompany";
10
+ export declare const spxTextSelect = "spxTextSelect";
11
+ export declare const spxTextSelectYourCompany = "spxSelectYourCompany";
8
12
  export interface SpxTranslateI {
9
13
  [spxTextCheckingForUpdates]: string;
10
14
  [spxTextOneMomentPlease]: string;
@@ -13,4 +17,8 @@ export interface SpxTranslateI {
13
17
  [spxTextReadyToBeInstalled]: string;
14
18
  [spxTextUpdate]: string;
15
19
  [spxTextOpenAppStore]: string;
20
+ [spxTextChannel]: string;
21
+ [spxTextCompany]: string;
22
+ [spxTextSelect]: string;
23
+ [spxTextSelectYourCompany]: string;
16
24
  }