@softpak/components 0.0.0-beta.200 → 0.0.0-beta.201

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,43 +1,57 @@
1
- import { CommonModule } from '@angular/common';
2
- import { Component, Input, Output, EventEmitter } from '@angular/core';
1
+ import { CommonModule, NgIf } from '@angular/common';
2
+ import { Component, Input } from '@angular/core';
3
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
3
4
  import { SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';
4
5
  import { SpxButtonComponent } from '@softpak/components/spx-button';
6
+ import { SpxFormSectionComponent } from '@softpak/components/spx-form-section';
7
+ import { SpxInputComponent, SpxInputTypeEnum } from '@softpak/components/spx-inputs';
5
8
  import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/common";
9
+ import * as i1 from "@angular/forms";
7
10
  export class SpxWelcomeComponent {
8
- get filteredChannels() { return (this.channels ?? [])?.filter(channel => channel.channelTypes.includes(SpxAppChannelTypeEnum.production)); }
11
+ // get filteredChannelTypes (): SpxValuePair<string>[] { return (this.channels ?? [])?.map(c => ({ description: c.brand, value: c.channelTypes. })); }
12
+ get filteredCompanies() { return (this.channels ?? [])?.filter(channel => channel.channelTypes.includes(SpxAppChannelTypeEnum.production)).map(c => ({ description: c.brand, value: c.backendCompanyCode })); }
9
13
  constructor() {
10
14
  this.channels = [];
11
- this.spxSelected = new EventEmitter();
12
- }
13
- onSelectChannel(channel) {
14
- this.spxSelected.emit(channel);
15
+ this.inputTypeRadio = SpxInputTypeEnum.radio;
15
16
  }
16
17
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxWelcomeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
17
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SpxWelcomeComponent, isStandalone: true, selector: "spx-welcome", inputs: { channels: "channels" }, outputs: { spxSelected: "spxSelected" }, ngImport: i0, template: `<div class="flex flex-col gap-3">
18
- <spx-button [spxFullWidth]="true" *ngFor="let channel of filteredChannels" (click)="onSelectChannel(channel)">
19
- {{ channel.brand }}
20
- </spx-button>
21
- </div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: SpxButtonComponent, selector: "spx-button", inputs: ["spxDisabled", "spxClass", "spxClassObject", "spxForm", "spxFullHeight", "spxFullWidth", "spxSeverity", "spxSize", "spxTabIndex", "spxType"], outputs: ["spxClick"] }] }); }
18
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SpxWelcomeComponent, isStandalone: true, selector: "spx-welcome", inputs: { channels: "channels", channelControl: "channelControl", companyControl: "companyControl", txtChannel: "txtChannel", txtCompany: "txtCompany" }, ngImport: i0, template: `<spx-form-section [spxTitle]="txtChannel" [spxIndex]="2">
19
+ <div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3">
20
+ <spx-input [formControl]="companyControl" [spxLabel]="txtCompany"
21
+ [spxType]="inputTypeRadio" [spxSuggestions]="filteredCompanies"></spx-input>
22
+ </div>
23
+ </spx-form-section>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: SpxFormSectionComponent, selector: "spx-form-section", inputs: ["spxIndex", "spxIndexSecondary", "spxTitle", "spxShowTitle"] }, { kind: "component", type: SpxInputComponent, selector: "spx-input", inputs: ["spxLabel", "spxMax", "spxMin", "spxName", "spxReadonly", "spxAutofocus", "spxInputMode", "spxPattern", "spxRequired", "spxSelectMonth", "spxSelectDay", "spxShowEdit", "spxShowHelp", "spxShowLabel", "spxCompact", "spxShowClear", "spxShowSearch", "spxShowValidationMessages", "spxStep", "spxSuggestions", "spxType", "spxValidators", "value", "spxCapitalize", "spxFocused"], outputs: ["spxBlur", "spxClear", "spxChange", "spxFocus", "spxEdit", "spxHelp", "spxSearch"] }] }); }
22
24
  }
23
25
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxWelcomeComponent, decorators: [{
24
26
  type: Component,
25
27
  args: [{
26
28
  selector: 'spx-welcome',
27
- template: `<div class="flex flex-col gap-3">
28
- <spx-button [spxFullWidth]="true" *ngFor="let channel of filteredChannels" (click)="onSelectChannel(channel)">
29
- {{ channel.brand }}
30
- </spx-button>
31
- </div>`,
29
+ template: `<spx-form-section [spxTitle]="txtChannel" [spxIndex]="2">
30
+ <div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3">
31
+ <spx-input [formControl]="companyControl" [spxLabel]="txtCompany"
32
+ [spxType]="inputTypeRadio" [spxSuggestions]="filteredCompanies"></spx-input>
33
+ </div>
34
+ </spx-form-section>`,
32
35
  standalone: true,
33
36
  imports: [
34
37
  CommonModule,
38
+ FormsModule,
39
+ ReactiveFormsModule,
35
40
  SpxButtonComponent,
41
+ SpxFormSectionComponent,
42
+ SpxInputComponent,
43
+ NgIf,
36
44
  ]
37
45
  }]
38
46
  }], ctorParameters: () => [], propDecorators: { channels: [{
39
47
  type: Input
40
- }], spxSelected: [{
41
- type: Output
48
+ }], channelControl: [{
49
+ type: Input
50
+ }], companyControl: [{
51
+ type: Input
52
+ }], txtChannel: [{
53
+ type: Input
54
+ }], txtCompany: [{
55
+ type: Input
42
56
  }] } });
43
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3B4LXdlbGNv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U3B4QXBwQ2hhbm5lbElbXSA9IFtdO1xuICBASW5wdXQoKSBjaGFubmVsQ29udHJvbCE6IEZvcm1Db250cm9sO1xuICBASW5wdXQoKSBjb21wYW55Q29udHJvbCE6IEZvcm1Db250cm9sO1xuICBASW5wdXQoKSB0eHRDaGFubmVsITogc3RyaW5nO1xuICBASW5wdXQoKSB0eHRDb21wYW55ITogc3RyaW5nO1xuICBpbnB1dFR5cGVSYWRpbyA9IFNweElucHV0VHlwZUVudW0ucmFkaW87XG5cbiAgLy8gZ2V0IGZpbHRlcmVkQ2hhbm5lbFR5cGVzICgpOiBTcHhWYWx1ZVBhaXI8c3RyaW5nPltdIHsgcmV0dXJuICh0aGlzLmNoYW5uZWxzID8/IFtdKT8ubWFwKGMgPT4gKHsgZGVzY3JpcHRpb246IGMuYnJhbmQsIHZhbHVlOiBjLmNoYW5uZWxUeXBlcy4gfSkpOyB9XG4gIGdldCBmaWx0ZXJlZENvbXBhbmllcyAoKTogU3B4VmFsdWVQYWlyPHN0cmluZz5bXSB7IHJldHVybiAodGhpcy5jaGFubmVscyA/PyBbXSk/LmZpbHRlcihjaGFubmVsID0+IGNoYW5uZWwuY2hhbm5lbFR5cGVzLmluY2x1ZGVzKFNweEFwcENoYW5uZWxUeXBlRW51bS5wcm9kdWN0aW9uKSkubWFwKGMgPT4gKHsgZGVzY3JpcHRpb246IGMuYnJhbmQsIHZhbHVlOiBjLmJhY2tlbmRDb21wYW55Q29kZSB9KSk7IH1cblxuICBjb25zdHJ1Y3RvcihcbiAgKSB7IH1cbn1cbiJdfQ==
@@ -1,8 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { EventEmitter, Component, Input, Output } from '@angular/core';
3
3
  import { SpxButtonComponent } from '@softpak/components/spx-button';
4
- import * as i1$1 from '@angular/common';
5
- import { CommonModule } from '@angular/common';
4
+ import { CommonModule, NgIf } from '@angular/common';
6
5
  import * as i1 from '@angular/forms';
7
6
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
8
7
  import { SpxInputTypeEnum, SpxInputComponent } from '@softpak/components/spx-inputs';
@@ -129,40 +128,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
129
128
  }] } });
130
129
 
131
130
  class SpxWelcomeComponent {
132
- get filteredChannels() { return (this.channels ?? [])?.filter(channel => channel.channelTypes.includes(SpxAppChannelTypeEnum.production)); }
131
+ // get filteredChannelTypes (): SpxValuePair<string>[] { return (this.channels ?? [])?.map(c => ({ description: c.brand, value: c.channelTypes. })); }
132
+ get filteredCompanies() { return (this.channels ?? [])?.filter(channel => channel.channelTypes.includes(SpxAppChannelTypeEnum.production)).map(c => ({ description: c.brand, value: c.backendCompanyCode })); }
133
133
  constructor() {
134
134
  this.channels = [];
135
- this.spxSelected = new EventEmitter();
136
- }
137
- onSelectChannel(channel) {
138
- this.spxSelected.emit(channel);
135
+ this.inputTypeRadio = SpxInputTypeEnum.radio;
139
136
  }
140
137
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxWelcomeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
141
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SpxWelcomeComponent, isStandalone: true, selector: "spx-welcome", inputs: { channels: "channels" }, outputs: { spxSelected: "spxSelected" }, ngImport: i0, template: `<div class="flex flex-col gap-3">
142
- <spx-button [spxFullWidth]="true" *ngFor="let channel of filteredChannels" (click)="onSelectChannel(channel)">
143
- {{ channel.brand }}
144
- </spx-button>
145
- </div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: SpxButtonComponent, selector: "spx-button", inputs: ["spxDisabled", "spxClass", "spxClassObject", "spxForm", "spxFullHeight", "spxFullWidth", "spxSeverity", "spxSize", "spxTabIndex", "spxType"], outputs: ["spxClick"] }] }); }
138
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SpxWelcomeComponent, isStandalone: true, selector: "spx-welcome", inputs: { channels: "channels", channelControl: "channelControl", companyControl: "companyControl", txtChannel: "txtChannel", txtCompany: "txtCompany" }, ngImport: i0, template: `<spx-form-section [spxTitle]="txtChannel" [spxIndex]="2">
139
+ <div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3">
140
+ <spx-input [formControl]="companyControl" [spxLabel]="txtCompany"
141
+ [spxType]="inputTypeRadio" [spxSuggestions]="filteredCompanies"></spx-input>
142
+ </div>
143
+ </spx-form-section>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: SpxFormSectionComponent, selector: "spx-form-section", inputs: ["spxIndex", "spxIndexSecondary", "spxTitle", "spxShowTitle"] }, { kind: "component", type: SpxInputComponent, selector: "spx-input", inputs: ["spxLabel", "spxMax", "spxMin", "spxName", "spxReadonly", "spxAutofocus", "spxInputMode", "spxPattern", "spxRequired", "spxSelectMonth", "spxSelectDay", "spxShowEdit", "spxShowHelp", "spxShowLabel", "spxCompact", "spxShowClear", "spxShowSearch", "spxShowValidationMessages", "spxStep", "spxSuggestions", "spxType", "spxValidators", "value", "spxCapitalize", "spxFocused"], outputs: ["spxBlur", "spxClear", "spxChange", "spxFocus", "spxEdit", "spxHelp", "spxSearch"] }] }); }
146
144
  }
147
145
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxWelcomeComponent, decorators: [{
148
146
  type: Component,
149
147
  args: [{
150
148
  selector: 'spx-welcome',
151
- template: `<div class="flex flex-col gap-3">
152
- <spx-button [spxFullWidth]="true" *ngFor="let channel of filteredChannels" (click)="onSelectChannel(channel)">
153
- {{ channel.brand }}
154
- </spx-button>
155
- </div>`,
149
+ template: `<spx-form-section [spxTitle]="txtChannel" [spxIndex]="2">
150
+ <div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3">
151
+ <spx-input [formControl]="companyControl" [spxLabel]="txtCompany"
152
+ [spxType]="inputTypeRadio" [spxSuggestions]="filteredCompanies"></spx-input>
153
+ </div>
154
+ </spx-form-section>`,
156
155
  standalone: true,
157
156
  imports: [
158
157
  CommonModule,
158
+ FormsModule,
159
+ ReactiveFormsModule,
159
160
  SpxButtonComponent,
161
+ SpxFormSectionComponent,
162
+ SpxInputComponent,
163
+ NgIf,
160
164
  ]
161
165
  }]
162
166
  }], ctorParameters: () => [], propDecorators: { channels: [{
163
167
  type: Input
164
- }], spxSelected: [{
165
- type: Output
168
+ }], channelControl: [{
169
+ type: Input
170
+ }], companyControl: [{
171
+ type: Input
172
+ }], txtChannel: [{
173
+ type: Input
174
+ }], txtCompany: [{
175
+ type: Input
166
176
  }] } });
167
177
 
168
178
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"softpak-components-spx-channel-selection.mjs","sources":["../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-indicator.component.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-selection.component.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-company-selection.component.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-welcome.component.ts","../../../../projects/softpak/components/spx-channel-selection/softpak-components-spx-channel-selection.ts"],"sourcesContent":["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 standalone: true,\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 { CommonModule } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { SpxInputComponent, SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';\n\n@Component({\n selector: 'spx-channel-selection',\n template: `\n <spx-input [formControl]=\"control\" [spxLabel]=\"txtChannel\"\n [spxType]=\"inputTypeRadio\" [spxSuggestions]=\"options\"></spx-input>\n `,\n standalone: true,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SpxInputComponent,\n ]\n})\nexport class SpxChannelSelectionComponent {\n @Input() control!: FormControl;\n @Input() options: SpxValuePair<string>[] = [];\n @Input() txtChannel!: string;\n inputTypeRadio = SpxInputTypeEnum.radio;\n\n constructor(\n ) { }\n}\n","import { CommonModule } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { SpxFormSectionComponent } from '@softpak/components/spx-form-section';\nimport { SpxInputComponent, SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';\n\n\n@Component({\n selector: 'spx-company-selection',\n template: `<spx-form-section [spxTitle]=\"txtChannel\" [spxIndex]=\"2\">\n <div class=\"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3\">\n <spx-input [formControl]=\"control\" [spxLabel]=\"txtCompany\"\n [spxType]=\"inputTypeRadio\" [spxSuggestions]=\"options\"></spx-input>\n </div>\n</spx-form-section>`,\n standalone: true,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SpxInputComponent,\n SpxFormSectionComponent,\n ]\n})\nexport class SpxCompanySelectionComponent {\n @Input() control!: FormControl;\n @Input() options: SpxValuePair<string>[] = [];\n @Input() txtChannel!: string;\n @Input() txtCompany!: string;\n inputTypeRadio = SpxInputTypeEnum.radio;\n\n constructor(\n ) { }\n}\n","import { CommonModule } from '@angular/common';\nimport { 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-welcome',\n template: `<div class=\"flex flex-col gap-3\">\n <spx-button [spxFullWidth]=\"true\" *ngFor=\"let channel of filteredChannels\" (click)=\"onSelectChannel(channel)\">\n {{ channel.brand }}\n </spx-button>\n </div>`,\n standalone: true,\n imports: [\n CommonModule,\n SpxButtonComponent,\n ]\n})\nexport class SpxWelcomeComponent {\n @Input() public channels?: SpxAppChannelI[] = [];\n @Output() public spxSelected: EventEmitter<SpxAppChannelI> = new EventEmitter<SpxAppChannelI>();\n\n get filteredChannels () { return (this.channels ?? [])?.filter(channel => channel.channelTypes.includes(SpxAppChannelTypeEnum.production)); }\n\n constructor(\n ) { }\n\n onSelectChannel(channel: SpxAppChannelI) {\n this.spxSelected.emit(channel);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;MAkBa,4BAA4B,CAAA;AAMvC,IAAA,WAAA,GAAA;AAFU,QAAA,IAAA,CAAA,SAAS,GAAuB,IAAI,YAAY,EAAQ,CAAC;KAG9D;IAEL,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,SAAS,C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UAAA,EAAA,gBAAA,EAAA,SAAA,EAAA,eAAA,EAAA,cAAA,EAAA,aAAA,EAAA,SAAA,EAAA,aAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGT,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAb/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,QAAQ,EAAE,CAAA;;;;AAIH,QAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,kBAAkB;AACnB,qBAAA;AACF,iBAAA,CAAA;wDAEiB,QAAQ,EAAA,CAAA;sBAAvB,KAAK;gBACW,WAAW,EAAA,CAAA;sBAA3B,MAAM;;;ACpBT;;AAEG;;;;"}
1
+ {"version":3,"file":"softpak-components-spx-channel-selection.mjs","sources":["../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-indicator.component.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-selection.component.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-company-selection.component.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-welcome.component.ts","../../../../projects/softpak/components/spx-channel-selection/softpak-components-spx-channel-selection.ts"],"sourcesContent":["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 standalone: true,\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 { CommonModule } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { SpxInputComponent, SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';\n\n@Component({\n selector: 'spx-channel-selection',\n template: `\n <spx-input [formControl]=\"control\" [spxLabel]=\"txtChannel\"\n [spxType]=\"inputTypeRadio\" [spxSuggestions]=\"options\"></spx-input>\n `,\n standalone: true,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SpxInputComponent,\n ]\n})\nexport class SpxChannelSelectionComponent {\n @Input() control!: FormControl;\n @Input() options: SpxValuePair<string>[] = [];\n @Input() txtChannel!: string;\n inputTypeRadio = SpxInputTypeEnum.radio;\n\n constructor(\n ) { }\n}\n","import { CommonModule } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { SpxFormSectionComponent } from '@softpak/components/spx-form-section';\nimport { SpxInputComponent, SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';\n\n\n@Component({\n selector: 'spx-company-selection',\n template: `<spx-form-section [spxTitle]=\"txtChannel\" [spxIndex]=\"2\">\n <div class=\"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3\">\n <spx-input [formControl]=\"control\" [spxLabel]=\"txtCompany\"\n [spxType]=\"inputTypeRadio\" [spxSuggestions]=\"options\"></spx-input>\n </div>\n</spx-form-section>`,\n standalone: true,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SpxInputComponent,\n SpxFormSectionComponent,\n ]\n})\nexport class SpxCompanySelectionComponent {\n @Input() control!: FormControl;\n @Input() options: SpxValuePair<string>[] = [];\n @Input() txtChannel!: string;\n @Input() txtCompany!: string;\n inputTypeRadio = SpxInputTypeEnum.radio;\n\n constructor(\n ) { }\n}\n","import { CommonModule, NgIf } from '@angular/common';\nimport { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { SpxAppChannelI, SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';\nimport { SpxButtonComponent } from '@softpak/components/spx-button';\nimport { SpxFormSectionComponent } from '@softpak/components/spx-form-section';\nimport { SpxInputComponent, SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';\n\n@Component({\n selector: 'spx-welcome',\n template: `<spx-form-section [spxTitle]=\"txtChannel\" [spxIndex]=\"2\">\n <div class=\"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3\">\n <spx-input [formControl]=\"companyControl\" [spxLabel]=\"txtCompany\"\n [spxType]=\"inputTypeRadio\" [spxSuggestions]=\"filteredCompanies\"></spx-input>\n </div>\n</spx-form-section>`,\n standalone: true,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SpxButtonComponent,\n SpxFormSectionComponent,\n SpxInputComponent,\n NgIf,\n ]\n})\nexport class SpxWelcomeComponent {\n @Input() channels?: SpxAppChannelI[] = [];\n @Input() channelControl!: FormControl;\n @Input() companyControl!: FormControl;\n @Input() txtChannel!: string;\n @Input() txtCompany!: string;\n inputTypeRadio = SpxInputTypeEnum.radio;\n\n // get filteredChannelTypes (): SpxValuePair<string>[] { return (this.channels ?? [])?.map(c => ({ description: c.brand, value: c.channelTypes. })); }\n get filteredCompanies (): SpxValuePair<string>[] { return (this.channels ?? [])?.filter(channel => channel.channelTypes.includes(SpxAppChannelTypeEnum.production)).map(c => ({ description: c.brand, value: c.backendCompanyCode })); }\n\n constructor(\n ) { }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n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;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,QAAQ,EAAE,CAAA;;;;;AAKQ,mBAAA,CAAA;AAClB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBACnB,kBAAkB;wBAClB,uBAAuB;wBACvB,iBAAiB;wBACjB,IAAI;AACL,qBAAA;AACF,iBAAA,CAAA;wDAEU,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,cAAc,EAAA,CAAA;sBAAtB,KAAK;gBACG,cAAc,EAAA,CAAA;sBAAtB,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;;;AChCR;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softpak/components",
3
- "version": "0.0.0-beta.200",
3
+ "version": "0.0.0-beta.201",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "17.x.x || 18.x.x",
@@ -30,18 +30,18 @@
30
30
  "esm": "./esm2022/spx-alert/softpak-components-spx-alert.mjs",
31
31
  "default": "./fesm2022/softpak-components-spx-alert.mjs"
32
32
  },
33
- "./spx-button": {
34
- "types": "./spx-button/index.d.ts",
35
- "esm2022": "./esm2022/spx-button/softpak-components-spx-button.mjs",
36
- "esm": "./esm2022/spx-button/softpak-components-spx-button.mjs",
37
- "default": "./fesm2022/softpak-components-spx-button.mjs"
38
- },
39
33
  "./spx-app-configuration": {
40
34
  "types": "./spx-app-configuration/index.d.ts",
41
35
  "esm2022": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
42
36
  "esm": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
43
37
  "default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
44
38
  },
39
+ "./spx-button": {
40
+ "types": "./spx-button/index.d.ts",
41
+ "esm2022": "./esm2022/spx-button/softpak-components-spx-button.mjs",
42
+ "esm": "./esm2022/spx-button/softpak-components-spx-button.mjs",
43
+ "default": "./fesm2022/softpak-components-spx-button.mjs"
44
+ },
45
45
  "./spx-capitalize": {
46
46
  "types": "./spx-capitalize/index.d.ts",
47
47
  "esm2022": "./esm2022/spx-capitalize/softpak-components-spx-capitalize.mjs",
@@ -1,12 +1,16 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { FormControl } from '@angular/forms';
2
2
  import { SpxAppChannelI } from '@softpak/components/spx-app-configuration';
3
+ import { SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class SpxWelcomeComponent {
5
6
  channels?: SpxAppChannelI[];
6
- spxSelected: EventEmitter<SpxAppChannelI>;
7
- get filteredChannels(): SpxAppChannelI[];
7
+ channelControl: FormControl;
8
+ companyControl: FormControl;
9
+ txtChannel: string;
10
+ txtCompany: string;
11
+ inputTypeRadio: SpxInputTypeEnum;
12
+ get filteredCompanies(): SpxValuePair<string>[];
8
13
  constructor();
9
- onSelectChannel(channel: SpxAppChannelI): void;
10
14
  static ɵfac: i0.ɵɵFactoryDeclaration<SpxWelcomeComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<SpxWelcomeComponent, "spx-welcome", never, { "channels": { "alias": "channels"; "required": false; }; }, { "spxSelected": "spxSelected"; }, never, never, true, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpxWelcomeComponent, "spx-welcome", never, { "channels": { "alias": "channels"; "required": false; }; "channelControl": { "alias": "channelControl"; "required": false; }; "companyControl": { "alias": "companyControl"; "required": false; }; "txtChannel": { "alias": "txtChannel"; "required": false; }; "txtCompany": { "alias": "txtCompany"; "required": false; }; }, {}, never, never, true, never>;
12
16
  }