@softpak/components 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/spx-navigation/spx-navigation.component.mjs +2 -2
- package/esm2022/spx-patch/release-check.function.mjs +5 -2
- package/esm2022/spx-patch/spx-patch.component.mjs +9 -7
- package/fesm2022/softpak-components-spx-navigation.mjs +1 -1
- package/fesm2022/softpak-components-spx-navigation.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-patch.mjs +12 -7
- package/fesm2022/softpak-components-spx-patch.mjs.map +1 -1
- package/package.json +24 -24
- package/spx-patch/release-check.function.d.ts +1 -1
- package/spx-patch/spx-patch.component.d.ts +2 -1
|
@@ -16,7 +16,7 @@ export class SpxNavigationComponent {
|
|
|
16
16
|
this.spxClick = new EventEmitter();
|
|
17
17
|
}
|
|
18
18
|
setFocus() {
|
|
19
|
-
this.tiles?.first
|
|
19
|
+
this.tiles?.first?.setFocus();
|
|
20
20
|
}
|
|
21
21
|
onNavigate(link) {
|
|
22
22
|
this.spxClick.emit(link);
|
|
@@ -48,4 +48,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
48
48
|
}], spxClick: [{
|
|
49
49
|
type: Output
|
|
50
50
|
}] } });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3B4LW5hdmlnYXRpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc29mdHBhay9jb21wb25lbnRzL3NweC1uYXZpZ2F0aW9uL3NweC1uYXZpZ2F0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NvZnRwYWsvY29tcG9uZW50cy9zcHgtbmF2aWdhdGlvbi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mc+KCk7XG5cbiAgY29uc3RydWN0b3IoXG4gICkge31cblxuICBzZXRGb2N1cygpOiB2b2lkIHtcbiAgICB0aGlzLnRpbGVzPy5maXJzdD8uc2V0Rm9jdXMoKTtcbiAgfVxuXG4gIG9uTmF2aWdhdGUobGluazogc3RyaW5nKSB7XG4gICAgdGhpcy5zcHhDbGljay5lbWl0KGxpbmspO1xuICB9XG59XG4iLCI8c3B4LWhvbWUtdGlsZXMgW3NweENvbHNdPVwic3B4Q29sc1wiPlxuICA8c3B4LWhvbWUtdGlsZSAjdGlsZXMgKm5nRm9yPVwibGV0IGl0ZW0gb2YgbmF2SXRlbXM7IGxldCBpID0gaW5kZXhcIiAoY2xpY2spPVwib25OYXZpZ2F0ZShpdGVtLnJvdXRlckxpbmspXCJcbiAgICBbc3B4QXV0b2ZvY3VzXT1cImkgPT09IDBcIlxuICAgIFtzcHhDbGFzc109XCJpdGVtLnRpbGVDbGFzc2VzID8gaXRlbS50aWxlQ2xhc3NlcyA6IHVuZGVmaW5lZFwiXG4gICAgW3NweFRpdGxlXT1cIml0ZW0udGl0bGUgfCB0cmFuc2xhdGUgfCBjYXBpdGFsaXplXCJcbiAgICBbc3B4U3VidGl0bGVdPVwiaXRlbS5zdWJ0aXRlID8gKGl0ZW0uc3VidGl0ZSB8IHRyYW5zbGF0ZSB8IGNhcGl0YWxpemUpIDogdW5kZWZpbmVkXCI+XG4gICAgPGZhLWljb24gW2ljb25dPVwiaXRlbS5pY29uXCI+PC9mYS1pY29uPlxuICA8L3NweC1ob21lLXRpbGU+XG48L3NweC1ob21lLXRpbGVzPlxuIl19
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { SpxStorage, SpxStorageKeyEnum } from "@softpak/components/spx-storage";
|
|
2
|
-
export const releaseCheck = (releaseAtLeast) => {
|
|
2
|
+
export const releaseCheck = (releaseAtLeast, orInReleaseList) => {
|
|
3
3
|
const currentRelease = (SpxStorage.getSetting(SpxStorageKeyEnum.release) ?? '00.00').split('.').map((v) => parseInt(v, 10));
|
|
4
4
|
const requiredRelease = releaseAtLeast.split('.').map((v) => parseInt(v, 10));
|
|
5
|
+
if (orInReleaseList && orInReleaseList.find(release => release === (SpxStorage.getSetting(SpxStorageKeyEnum.release) ?? '00.00'))) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
5
8
|
if (requiredRelease[0] < currentRelease[0] ||
|
|
6
9
|
requiredRelease[0] === currentRelease[0] && requiredRelease[1] <= currentRelease[1]) {
|
|
7
10
|
return null;
|
|
8
11
|
}
|
|
9
12
|
return releaseAtLeast;
|
|
10
13
|
};
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVsZWFzZS1jaGVjay5mdW5jdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NvZnRwYWsvY29tcG9uZW50cy9zcHgtcGF0Y2gvcmVsZWFzZS1jaGVjay5mdW5jdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLGlCQUFpQixFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFFaEYsTUFBTSxDQUFDLE1BQU0sWUFBWSxHQUFHLENBQUMsY0FBc0IsRUFBRSxlQUEwQixFQUFFLEVBQUU7SUFDL0UsTUFBTSxjQUFjLEdBQUcsQ0FBQyxVQUFVLENBQUMsVUFBVSxDQUFDLGlCQUFpQixDQUFDLE9BQU8sQ0FBQyxJQUFJLE9BQU8sQ0FBQyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFTLEVBQUUsRUFBRSxDQUFDLFFBQVEsQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQztJQUNwSSxNQUFNLGVBQWU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nVtLnJlbGVhc2UpID8/ICcwMC4wMCcpLnNwbGl0KCcuJykubWFwKCh2OiBzdHJpbmcpID0+IHBhcnNlSW50KHYsIDEwKSk7XG4gICAgY29uc3QgcmVxdWlyZWRSZWxlYXNlID0gcmVsZWFzZUF0TGVhc3Quc3BsaXQoJy4nKS5tYXAoKHY6IHN0cmluZykgPT4gcGFyc2VJbnQodiwgMTApKTtcbiAgICBcbiAgICBpZiAob3JJblJlbGVhc2VMaXN0ICYmIG9ySW5SZWxlYXNlTGlzdC5maW5kKHJlbGVhc2UgPT4gcmVsZWFzZSA9PT0gKFNweFN0b3JhZ2UuZ2V0U2V0dGluZyhTcHhTdG9yYWdlS2V5RW51bS5yZWxlYXNlKSA/PyAnMDAuMDAnKSkpIHtcbiAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxuXG4gICAgaWYgKHJlcXVpcmVkUmVsZWFzZVswXSA8IGN1cnJlbnRSZWxlYXNlWzBdIHx8XG4gICAgICAgIHJlcXVpcmVkUmVsZWFzZVswXSA9PT0gY3VycmVudFJlbGVhc2VbMF0gJiYgcmVxdWlyZWRSZWxlYXNlWzFdIDw9IGN1cnJlbnRSZWxlYXNlWzFdXG4gICAgKSB7XG4gICAgICAgIHJldHVybiBudWxsO1xuICAgIH1cbiAgICByZXR1cm4gcmVsZWFzZUF0TGVhc3Q7XG59O1xuXG4iXX0=
|
|
@@ -9,13 +9,13 @@ export class SpxPatchComponent {
|
|
|
9
9
|
this.severityWarning = SpxSeverityEnum.warning;
|
|
10
10
|
}
|
|
11
11
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: SpxPatchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: SpxPatchComponent, isStandalone: true, selector: "spx-patch", inputs: { patchCheck: "patchCheck", releaseCheck: "releaseCheck" }, ngImport: i0, template: `<div class="flex flex-col gap-2">
|
|
12
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: SpxPatchComponent, isStandalone: true, selector: "spx-patch", inputs: { spxText: "spxText", patchCheck: "patchCheck", releaseCheck: "releaseCheck" }, ngImport: i0, template: `<div class="flex flex-col gap-2">
|
|
13
13
|
<spx-alert *ngIf="releaseCheck" [spxTitle]="'Requires new release'" [spxSeverity]="severityError">
|
|
14
|
-
This
|
|
14
|
+
{{ spxText ? spxText : 'This new functionality' }} requires release {{releaseCheck}}.
|
|
15
15
|
</spx-alert>
|
|
16
16
|
|
|
17
17
|
<spx-alert *ngIf="patchCheck" [spxTitle]="'Softpak patch'" [spxSeverity]="severityWarning">
|
|
18
|
-
|
|
18
|
+
{{ spxText ? spxText : 'This new functionality' }} requires patch #{{patchCheck}} to be installed.
|
|
19
19
|
</spx-alert>
|
|
20
20
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SpxAlertComponent, selector: "spx-alert", inputs: ["spxAutoclose", "spxCloseable", "spxHideTitle", "spxTitle", "spxMarginTop", "spxSeverity", "tick"], outputs: ["spxClose"] }] }); }
|
|
21
21
|
}
|
|
@@ -30,17 +30,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
30
30
|
],
|
|
31
31
|
template: `<div class="flex flex-col gap-2">
|
|
32
32
|
<spx-alert *ngIf="releaseCheck" [spxTitle]="'Requires new release'" [spxSeverity]="severityError">
|
|
33
|
-
This
|
|
33
|
+
{{ spxText ? spxText : 'This new functionality' }} requires release {{releaseCheck}}.
|
|
34
34
|
</spx-alert>
|
|
35
35
|
|
|
36
36
|
<spx-alert *ngIf="patchCheck" [spxTitle]="'Softpak patch'" [spxSeverity]="severityWarning">
|
|
37
|
-
|
|
37
|
+
{{ spxText ? spxText : 'This new functionality' }} requires patch #{{patchCheck}} to be installed.
|
|
38
38
|
</spx-alert>
|
|
39
39
|
</div>`,
|
|
40
40
|
}]
|
|
41
|
-
}], propDecorators: {
|
|
41
|
+
}], propDecorators: { spxText: [{
|
|
42
|
+
type: Input
|
|
43
|
+
}], patchCheck: [{
|
|
42
44
|
type: Input
|
|
43
45
|
}], releaseCheck: [{
|
|
44
46
|
type: Input
|
|
45
47
|
}] } });
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3B4LXBhdGNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NvZnRwYWsvY29tcG9uZW50cy9zcHgtcGF0Y2gvc3B4LXBhdGNoLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDdkMsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFDbEUsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGlDQUFpQyxDQUFDOztBQW1CbEUsTUFBTSxPQUFPLGlCQUFpQjtJQWpCOUI7UUFxQkUsa0JBQWEsR0FBRyxlQUFlLENBQUMsS0FBSyxDQUFDO1FBQ3RDLG9CQUFlLEdBQUcsZUFBZSxDQUFDLE9BQU8sQ0FBQztLQUMzQzs4R0FOWSxpQkFBaUI7a0dBQWpCLGlCQUFpQiw2SkFWbEI7Ozs7Ozs7O09BUUwsNERBWEgsSUFBSSw2RkFDSixpQkFBaUI7OzJGQVlSLGlCQUFpQjtrQkFqQjdCLFNBQV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JlbGVhc2Uge3tyZWxlYXNlQ2hlY2t9fS5cbiAgPC9zcHgtYWxlcnQ+XG5cbiAgPHNweC1hbGVydCAqbmdJZj1cInBhdGNoQ2hlY2tcIiBbc3B4VGl0bGVdPVwiJ1NvZnRwYWsgcGF0Y2gnXCIgW3NweFNldmVyaXR5XT1cInNldmVyaXR5V2FybmluZ1wiPlxuICB7eyBzcHhUZXh0ID8gc3B4VGV4dCA6ICdUaGlzIG5ldyBmdW5jdGlvbmFsaXR5JyB9fSByZXF1aXJlcyBwYXRjaCAje3twYXRjaENoZWNrfX0gdG8gYmUgaW5zdGFsbGVkLlxuICA8L3NweC1hbGVydD5cbjwvZGl2PmAsXG59KVxuZXhwb3J0IGNsYXNzIFNweFBhdGNoQ29tcG9uZW50IHtcbiAgQElucHV0KCkgc3B4VGV4dCE6IHN0cmluZztcbiAgQElucHV0KCkgcGF0Y2hDaGVjayE6IG51bWJlciB8IG51bGw7XG4gIEBJbnB1dCgpIHJlbGVhc2VDaGVjayE6IHN0cmluZyB8IG51bGw7XG4gIHNldmVyaXR5RXJyb3IgPSBTcHhTZXZlcml0eUVudW0uZXJyb3I7XG4gIHNldmVyaXR5V2FybmluZyA9IFNweFNldmVyaXR5RW51bS53YXJuaW5nO1xufVxuIl19
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-navigation.mjs","sources":["../../../../projects/softpak/components/spx-navigation/spx-home-tiles.component.ts","../../../../projects/softpak/components/spx-navigation/spx-home-tile.component.ts","../../../../projects/softpak/components/spx-navigation/spx-navigation.component.ts","../../../../projects/softpak/components/spx-navigation/spx-navigation.component.html","../../../../projects/softpak/components/spx-navigation/softpak-components-spx-navigation.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'spx-home-tiles',\n standalone: true,\n template: `<div class=\"mx-auto max-w-lg grid gap-3\"\n [class.grid-cols-1]=\"this.spxCols === 1\"\n [class.grid-cols-2]=\"this.spxCols === 2\"><ng-content></ng-content></div>`,\n})\nexport class SpxHomeTilesComponent {\n @Input() spxCols: 1 | 2 = 2;\n}\n","import { NgClass, NgIf } from '@angular/common';\nimport { Component, ElementRef, Input, ViewChild } from '@angular/core';\n\n@Component({\n selector: 'spx-home-tile',\n standalone: true,\n imports: [\n NgClass,\n NgIf,\n ],\n template: `<button #button\n class=\"border border-transparent flex flex-col w-full px-4 py-2 relative rounded text-center focus:outline-none focus:ring-2 focus:ring-offset-2\"\n type=\"button\"\n part=\"button\"\n [attr.autofocus]=\"this.spxAutofocus ? this.spxAutofocus : undefined\"\n [class.bg-blue-600]=\"!this.spxClass\"\n [class.focus:ring-blue-500]=\"!this.spxClass\"\n [class.hover:bg-blue-800]=\"!this.spxClass\"\n [class.text-white]=\"!this.spxClass\"\n [ngClass]=\"this.spxClass ? this.spxClass : undefined\">\n <div class=\"flex gap-5 items-center\">\n <div class=\"fal my-2 self-center text-xl w-5\"><ng-content></ng-content></div>\n <div class=\"grow flex flex-col text-left\">\n <div class=\"text-lg font-bold text-ellipsis overflow-hidden\">{{ this.spxTitle }}</div>\n <div *ngIf=\"this.spxSubtitle\" class=\"text-sm opacity-70 text-ellipsis overflow-hidden\">{{ this.spxSubtitle }}</div>\n </div>\n </div>\n</button>`,\n})\nexport class SpxHomeTileComponent {\n @Input() spxAutofocus?: boolean;\n @Input() spxClass?: string;\n @Input() spxSubtitle?: string;\n @Input() spxTitle?: string;\n @ViewChild('button') private buttonRef?: ElementRef<HTMLButtonElement>;\n\n setFocus(): void {\n this.buttonRef?.nativeElement.focus();\n }\n}\n","import { Component, ContentChild, EventEmitter, Input, Output, QueryList, TemplateRef, ViewChildren } from '@angular/core';\nimport { SpxNavigationItemI } from './spx-navigation-item.interface';\nimport { CommonModule, NgFor } from '@angular/common';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { SpxHomeTilesComponent } from './spx-home-tiles.component';\nimport { SpxHomeTileComponent } from './spx-home-tile.component';\n\n@Component({\n selector: 'spx-navigation',\n templateUrl: './spx-navigation.component.html',\n standalone: true,\n imports: [\n CommonModule,\n TranslateModule,\n FontAwesomeModule,\n SpxCapitalizePipe,\n SpxHomeTilesComponent,\n SpxHomeTileComponent,\n NgFor,\n ],\n})\nexport class SpxNavigationComponent {\n @ViewChildren('tiles') tiles?: QueryList<SpxHomeTileComponent>;\n @ContentChild('icon',{static: false}) iconTemplateRef?: TemplateRef<any>;\n @Input() navItems: SpxNavigationItemI[] = [];\n @Input() spxCols: 1 | 2 = 2;\n @Output() spxClick: EventEmitter<string> = new EventEmitter<string>();\n\n constructor(\n ) {}\n\n setFocus(): void {\n this.tiles?.first
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-navigation.mjs","sources":["../../../../projects/softpak/components/spx-navigation/spx-home-tiles.component.ts","../../../../projects/softpak/components/spx-navigation/spx-home-tile.component.ts","../../../../projects/softpak/components/spx-navigation/spx-navigation.component.ts","../../../../projects/softpak/components/spx-navigation/spx-navigation.component.html","../../../../projects/softpak/components/spx-navigation/softpak-components-spx-navigation.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'spx-home-tiles',\n standalone: true,\n template: `<div class=\"mx-auto max-w-lg grid gap-3\"\n [class.grid-cols-1]=\"this.spxCols === 1\"\n [class.grid-cols-2]=\"this.spxCols === 2\"><ng-content></ng-content></div>`,\n})\nexport class SpxHomeTilesComponent {\n @Input() spxCols: 1 | 2 = 2;\n}\n","import { NgClass, NgIf } from '@angular/common';\nimport { Component, ElementRef, Input, ViewChild } from '@angular/core';\n\n@Component({\n selector: 'spx-home-tile',\n standalone: true,\n imports: [\n NgClass,\n NgIf,\n ],\n template: `<button #button\n class=\"border border-transparent flex flex-col w-full px-4 py-2 relative rounded text-center focus:outline-none focus:ring-2 focus:ring-offset-2\"\n type=\"button\"\n part=\"button\"\n [attr.autofocus]=\"this.spxAutofocus ? this.spxAutofocus : undefined\"\n [class.bg-blue-600]=\"!this.spxClass\"\n [class.focus:ring-blue-500]=\"!this.spxClass\"\n [class.hover:bg-blue-800]=\"!this.spxClass\"\n [class.text-white]=\"!this.spxClass\"\n [ngClass]=\"this.spxClass ? this.spxClass : undefined\">\n <div class=\"flex gap-5 items-center\">\n <div class=\"fal my-2 self-center text-xl w-5\"><ng-content></ng-content></div>\n <div class=\"grow flex flex-col text-left\">\n <div class=\"text-lg font-bold text-ellipsis overflow-hidden\">{{ this.spxTitle }}</div>\n <div *ngIf=\"this.spxSubtitle\" class=\"text-sm opacity-70 text-ellipsis overflow-hidden\">{{ this.spxSubtitle }}</div>\n </div>\n </div>\n</button>`,\n})\nexport class SpxHomeTileComponent {\n @Input() spxAutofocus?: boolean;\n @Input() spxClass?: string;\n @Input() spxSubtitle?: string;\n @Input() spxTitle?: string;\n @ViewChild('button') private buttonRef?: ElementRef<HTMLButtonElement>;\n\n setFocus(): void {\n this.buttonRef?.nativeElement.focus();\n }\n}\n","import { Component, ContentChild, EventEmitter, Input, Output, QueryList, TemplateRef, ViewChildren } from '@angular/core';\nimport { SpxNavigationItemI } from './spx-navigation-item.interface';\nimport { CommonModule, NgFor } from '@angular/common';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { SpxHomeTilesComponent } from './spx-home-tiles.component';\nimport { SpxHomeTileComponent } from './spx-home-tile.component';\n\n@Component({\n selector: 'spx-navigation',\n templateUrl: './spx-navigation.component.html',\n standalone: true,\n imports: [\n CommonModule,\n TranslateModule,\n FontAwesomeModule,\n SpxCapitalizePipe,\n SpxHomeTilesComponent,\n SpxHomeTileComponent,\n NgFor,\n ],\n})\nexport class SpxNavigationComponent {\n @ViewChildren('tiles') tiles?: QueryList<SpxHomeTileComponent>;\n @ContentChild('icon',{static: false}) iconTemplateRef?: TemplateRef<any>;\n @Input() navItems: SpxNavigationItemI[] = [];\n @Input() spxCols: 1 | 2 = 2;\n @Output() spxClick: EventEmitter<string> = new EventEmitter<string>();\n\n constructor(\n ) {}\n\n setFocus(): void {\n this.tiles?.first?.setFocus();\n }\n\n onNavigate(link: string) {\n this.spxClick.emit(link);\n }\n}\n","<spx-home-tiles [spxCols]=\"spxCols\">\n <spx-home-tile #tiles *ngFor=\"let item of navItems; let i = index\" (click)=\"onNavigate(item.routerLink)\"\n [spxAutofocus]=\"i === 0\"\n [spxClass]=\"item.tileClasses ? item.tileClasses : undefined\"\n [spxTitle]=\"item.title | translate | capitalize\"\n [spxSubtitle]=\"item.subtite ? (item.subtite | translate | capitalize) : undefined\">\n <fa-icon [icon]=\"item.icon\"></fa-icon>\n </spx-home-tile>\n</spx-home-tiles>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;MASa,qBAAqB,CAAA;AAPlC,IAAA,WAAA,GAAA;QAQW,IAAO,CAAA,OAAA,GAAU,CAAC,CAAC;AAC7B,KAAA;8GAFY,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,EAJtB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;AAEiE,4EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;2FAEhE,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ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,gFACrB,oBAAoB,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,cAAA,EAAA,UAAA,EAAA,aAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIX,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAdlC,SAAS;+BACE,gBAAgB,EAAA,UAAA,EAEd,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,eAAe;wBACf,iBAAiB;wBACjB,iBAAiB;wBACjB,qBAAqB;wBACrB,oBAAoB;wBACpB,KAAK;AACN,qBAAA,EAAA,QAAA,EAAA,seAAA,EAAA,CAAA;wDAGsB,KAAK,EAAA,CAAA;sBAA3B,YAAY;uBAAC,OAAO,CAAA;gBACiB,eAAe,EAAA,CAAA;sBAApD,YAAY;AAAC,gBAAA,IAAA,EAAA,CAAA,MAAM,EAAC,EAAC,MAAM,EAAE,KAAK,EAAC,CAAA;gBAC3B,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACI,QAAQ,EAAA,CAAA;sBAAjB,MAAM;;;AE5BT;;AAEG;;;;"}
|
|
@@ -13,9 +13,12 @@ const patchCheck = (pair) => {
|
|
|
13
13
|
return release.patchAtLeast;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
const releaseCheck = (releaseAtLeast) => {
|
|
16
|
+
const releaseCheck = (releaseAtLeast, orInReleaseList) => {
|
|
17
17
|
const currentRelease = (SpxStorage.getSetting(SpxStorageKeyEnum.release) ?? '00.00').split('.').map((v) => parseInt(v, 10));
|
|
18
18
|
const requiredRelease = releaseAtLeast.split('.').map((v) => parseInt(v, 10));
|
|
19
|
+
if (orInReleaseList && orInReleaseList.find(release => release === (SpxStorage.getSetting(SpxStorageKeyEnum.release) ?? '00.00'))) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
19
22
|
if (requiredRelease[0] < currentRelease[0] ||
|
|
20
23
|
requiredRelease[0] === currentRelease[0] && requiredRelease[1] <= currentRelease[1]) {
|
|
21
24
|
return null;
|
|
@@ -29,13 +32,13 @@ class SpxPatchComponent {
|
|
|
29
32
|
this.severityWarning = SpxSeverityEnum.warning;
|
|
30
33
|
}
|
|
31
34
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: SpxPatchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
32
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: SpxPatchComponent, isStandalone: true, selector: "spx-patch", inputs: { patchCheck: "patchCheck", releaseCheck: "releaseCheck" }, ngImport: i0, template: `<div class="flex flex-col gap-2">
|
|
35
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: SpxPatchComponent, isStandalone: true, selector: "spx-patch", inputs: { spxText: "spxText", patchCheck: "patchCheck", releaseCheck: "releaseCheck" }, ngImport: i0, template: `<div class="flex flex-col gap-2">
|
|
33
36
|
<spx-alert *ngIf="releaseCheck" [spxTitle]="'Requires new release'" [spxSeverity]="severityError">
|
|
34
|
-
This
|
|
37
|
+
{{ spxText ? spxText : 'This new functionality' }} requires release {{releaseCheck}}.
|
|
35
38
|
</spx-alert>
|
|
36
39
|
|
|
37
40
|
<spx-alert *ngIf="patchCheck" [spxTitle]="'Softpak patch'" [spxSeverity]="severityWarning">
|
|
38
|
-
|
|
41
|
+
{{ spxText ? spxText : 'This new functionality' }} requires patch #{{patchCheck}} to be installed.
|
|
39
42
|
</spx-alert>
|
|
40
43
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SpxAlertComponent, selector: "spx-alert", inputs: ["spxAutoclose", "spxCloseable", "spxHideTitle", "spxTitle", "spxMarginTop", "spxSeverity", "tick"], outputs: ["spxClose"] }] }); }
|
|
41
44
|
}
|
|
@@ -50,15 +53,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
50
53
|
],
|
|
51
54
|
template: `<div class="flex flex-col gap-2">
|
|
52
55
|
<spx-alert *ngIf="releaseCheck" [spxTitle]="'Requires new release'" [spxSeverity]="severityError">
|
|
53
|
-
This
|
|
56
|
+
{{ spxText ? spxText : 'This new functionality' }} requires release {{releaseCheck}}.
|
|
54
57
|
</spx-alert>
|
|
55
58
|
|
|
56
59
|
<spx-alert *ngIf="patchCheck" [spxTitle]="'Softpak patch'" [spxSeverity]="severityWarning">
|
|
57
|
-
|
|
60
|
+
{{ spxText ? spxText : 'This new functionality' }} requires patch #{{patchCheck}} to be installed.
|
|
58
61
|
</spx-alert>
|
|
59
62
|
</div>`,
|
|
60
63
|
}]
|
|
61
|
-
}], propDecorators: {
|
|
64
|
+
}], propDecorators: { spxText: [{
|
|
65
|
+
type: Input
|
|
66
|
+
}], patchCheck: [{
|
|
62
67
|
type: Input
|
|
63
68
|
}], releaseCheck: [{
|
|
64
69
|
type: Input
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-patch.mjs","sources":["../../../../projects/softpak/components/spx-patch/patch-check.function.ts","../../../../projects/softpak/components/spx-patch/release-check.function.ts","../../../../projects/softpak/components/spx-patch/spx-patch.component.ts","../../../../projects/softpak/components/spx-patch/softpak-components-spx-patch.ts"],"sourcesContent":["import { SpxStorage, SpxStorageKeyEnum } from \"@softpak/components/spx-storage\";\n\nexport const patchCheck = (pair: { release: string; patchAtLeast: number; }[]) => {\n const release = pair.find(p => p.release === SpxStorage.getSetting(SpxStorageKeyEnum.release));\n if (!release || (parseInt(SpxStorage.getSetting(SpxStorageKeyEnum.patch) ?? '0', 10) >= release.patchAtLeast)) {\n return null;\n }\n return release.patchAtLeast;\n};\n\n","import { SpxStorage, SpxStorageKeyEnum } from \"@softpak/components/spx-storage\";\n\nexport const releaseCheck = (releaseAtLeast: string) => {\n const currentRelease = (SpxStorage.getSetting(SpxStorageKeyEnum.release) ?? '00.00').split('.').map((v: string) => parseInt(v, 10));\n const requiredRelease = releaseAtLeast.split('.').map((v: string) => parseInt(v, 10));\n \n if (requiredRelease[0] < currentRelease[0] ||\n requiredRelease[0] === currentRelease[0] && requiredRelease[1] <= currentRelease[1]\n ) {\n return null;\n }\n return releaseAtLeast;\n};\n\n","import { NgIf } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { SpxAlertComponent } from '@softpak/components/spx-alert';\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\n\n@Component({\n selector: 'spx-patch',\n standalone: true,\n imports: [\n NgIf,\n SpxAlertComponent,\n ],\n template: `<div class=\"flex flex-col gap-2\">\n <spx-alert *ngIf=\"releaseCheck\" [spxTitle]=\"'Requires new release'\" [spxSeverity]=\"severityError\">\n This
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-patch.mjs","sources":["../../../../projects/softpak/components/spx-patch/patch-check.function.ts","../../../../projects/softpak/components/spx-patch/release-check.function.ts","../../../../projects/softpak/components/spx-patch/spx-patch.component.ts","../../../../projects/softpak/components/spx-patch/softpak-components-spx-patch.ts"],"sourcesContent":["import { SpxStorage, SpxStorageKeyEnum } from \"@softpak/components/spx-storage\";\n\nexport const patchCheck = (pair: { release: string; patchAtLeast: number; }[]) => {\n const release = pair.find(p => p.release === SpxStorage.getSetting(SpxStorageKeyEnum.release));\n if (!release || (parseInt(SpxStorage.getSetting(SpxStorageKeyEnum.patch) ?? '0', 10) >= release.patchAtLeast)) {\n return null;\n }\n return release.patchAtLeast;\n};\n\n","import { SpxStorage, SpxStorageKeyEnum } from \"@softpak/components/spx-storage\";\n\nexport const releaseCheck = (releaseAtLeast: string, orInReleaseList?: string[]) => {\n const currentRelease = (SpxStorage.getSetting(SpxStorageKeyEnum.release) ?? '00.00').split('.').map((v: string) => parseInt(v, 10));\n const requiredRelease = releaseAtLeast.split('.').map((v: string) => parseInt(v, 10));\n \n if (orInReleaseList && orInReleaseList.find(release => release === (SpxStorage.getSetting(SpxStorageKeyEnum.release) ?? '00.00'))) {\n return null;\n }\n\n if (requiredRelease[0] < currentRelease[0] ||\n requiredRelease[0] === currentRelease[0] && requiredRelease[1] <= currentRelease[1]\n ) {\n return null;\n }\n return releaseAtLeast;\n};\n\n","import { NgIf } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { SpxAlertComponent } from '@softpak/components/spx-alert';\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\n\n@Component({\n selector: 'spx-patch',\n standalone: true,\n imports: [\n NgIf,\n SpxAlertComponent,\n ],\n template: `<div class=\"flex flex-col gap-2\">\n <spx-alert *ngIf=\"releaseCheck\" [spxTitle]=\"'Requires new release'\" [spxSeverity]=\"severityError\">\n {{ spxText ? spxText : 'This new functionality' }} requires release {{releaseCheck}}.\n </spx-alert>\n\n <spx-alert *ngIf=\"patchCheck\" [spxTitle]=\"'Softpak patch'\" [spxSeverity]=\"severityWarning\">\n {{ spxText ? spxText : 'This new functionality' }} requires patch #{{patchCheck}} to be installed.\n </spx-alert>\n</div>`,\n})\nexport class SpxPatchComponent {\n @Input() spxText!: string;\n @Input() patchCheck!: number | null;\n @Input() releaseCheck!: string | null;\n severityError = SpxSeverityEnum.error;\n severityWarning = SpxSeverityEnum.warning;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAEa,MAAA,UAAU,GAAG,CAAC,IAAkD,KAAI;IAC7E,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,KAAK,UAAU,CAAC,UAAU,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/F,IAAI,CAAC,OAAO,KAAK,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,EAAE,CAAC,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
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "18.x.x",
|
|
@@ -34,29 +34,29 @@
|
|
|
34
34
|
"esm": "./esm2022/spx-alert/softpak-components-spx-alert.mjs",
|
|
35
35
|
"default": "./fesm2022/softpak-components-spx-alert.mjs"
|
|
36
36
|
},
|
|
37
|
-
"./spx-app-expiry": {
|
|
38
|
-
"types": "./spx-app-expiry/index.d.ts",
|
|
39
|
-
"esm2022": "./esm2022/spx-app-expiry/softpak-components-spx-app-expiry.mjs",
|
|
40
|
-
"esm": "./esm2022/spx-app-expiry/softpak-components-spx-app-expiry.mjs",
|
|
41
|
-
"default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
|
|
42
|
-
},
|
|
43
37
|
"./spx-app-configuration": {
|
|
44
38
|
"types": "./spx-app-configuration/index.d.ts",
|
|
45
39
|
"esm2022": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
|
|
46
40
|
"esm": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
|
|
47
41
|
"default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
|
|
48
42
|
},
|
|
43
|
+
"./spx-app-update": {
|
|
44
|
+
"types": "./spx-app-update/index.d.ts",
|
|
45
|
+
"esm2022": "./esm2022/spx-app-update/softpak-components-spx-app-update.mjs",
|
|
46
|
+
"esm": "./esm2022/spx-app-update/softpak-components-spx-app-update.mjs",
|
|
47
|
+
"default": "./fesm2022/softpak-components-spx-app-update.mjs"
|
|
48
|
+
},
|
|
49
49
|
"./spx-button": {
|
|
50
50
|
"types": "./spx-button/index.d.ts",
|
|
51
51
|
"esm2022": "./esm2022/spx-button/softpak-components-spx-button.mjs",
|
|
52
52
|
"esm": "./esm2022/spx-button/softpak-components-spx-button.mjs",
|
|
53
53
|
"default": "./fesm2022/softpak-components-spx-button.mjs"
|
|
54
54
|
},
|
|
55
|
-
"./spx-app-
|
|
56
|
-
"types": "./spx-app-
|
|
57
|
-
"esm2022": "./esm2022/spx-app-
|
|
58
|
-
"esm": "./esm2022/spx-app-
|
|
59
|
-
"default": "./fesm2022/softpak-components-spx-app-
|
|
55
|
+
"./spx-app-expiry": {
|
|
56
|
+
"types": "./spx-app-expiry/index.d.ts",
|
|
57
|
+
"esm2022": "./esm2022/spx-app-expiry/softpak-components-spx-app-expiry.mjs",
|
|
58
|
+
"esm": "./esm2022/spx-app-expiry/softpak-components-spx-app-expiry.mjs",
|
|
59
|
+
"default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
|
|
60
60
|
},
|
|
61
61
|
"./spx-capitalize": {
|
|
62
62
|
"types": "./spx-capitalize/index.d.ts",
|
|
@@ -76,18 +76,18 @@
|
|
|
76
76
|
"esm": "./esm2022/spx-change-details/softpak-components-spx-change-details.mjs",
|
|
77
77
|
"default": "./fesm2022/softpak-components-spx-change-details.mjs"
|
|
78
78
|
},
|
|
79
|
-
"./spx-channel-selection": {
|
|
80
|
-
"types": "./spx-channel-selection/index.d.ts",
|
|
81
|
-
"esm2022": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
|
|
82
|
-
"esm": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
|
|
83
|
-
"default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
|
|
84
|
-
},
|
|
85
79
|
"./spx-check-digit": {
|
|
86
80
|
"types": "./spx-check-digit/index.d.ts",
|
|
87
81
|
"esm2022": "./esm2022/spx-check-digit/softpak-components-spx-check-digit.mjs",
|
|
88
82
|
"esm": "./esm2022/spx-check-digit/softpak-components-spx-check-digit.mjs",
|
|
89
83
|
"default": "./fesm2022/softpak-components-spx-check-digit.mjs"
|
|
90
84
|
},
|
|
85
|
+
"./spx-channel-selection": {
|
|
86
|
+
"types": "./spx-channel-selection/index.d.ts",
|
|
87
|
+
"esm2022": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
|
|
88
|
+
"esm": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
|
|
89
|
+
"default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
|
|
90
|
+
},
|
|
91
91
|
"./spx-form-section": {
|
|
92
92
|
"types": "./spx-form-section/index.d.ts",
|
|
93
93
|
"esm2022": "./esm2022/spx-form-section/softpak-components-spx-form-section.mjs",
|
|
@@ -106,18 +106,18 @@
|
|
|
106
106
|
"esm": "./esm2022/spx-helpers/softpak-components-spx-helpers.mjs",
|
|
107
107
|
"default": "./fesm2022/softpak-components-spx-helpers.mjs"
|
|
108
108
|
},
|
|
109
|
-
"./spx-inputs": {
|
|
110
|
-
"types": "./spx-inputs/index.d.ts",
|
|
111
|
-
"esm2022": "./esm2022/spx-inputs/softpak-components-spx-inputs.mjs",
|
|
112
|
-
"esm": "./esm2022/spx-inputs/softpak-components-spx-inputs.mjs",
|
|
113
|
-
"default": "./fesm2022/softpak-components-spx-inputs.mjs"
|
|
114
|
-
},
|
|
115
109
|
"./spx-navigation": {
|
|
116
110
|
"types": "./spx-navigation/index.d.ts",
|
|
117
111
|
"esm2022": "./esm2022/spx-navigation/softpak-components-spx-navigation.mjs",
|
|
118
112
|
"esm": "./esm2022/spx-navigation/softpak-components-spx-navigation.mjs",
|
|
119
113
|
"default": "./fesm2022/softpak-components-spx-navigation.mjs"
|
|
120
114
|
},
|
|
115
|
+
"./spx-inputs": {
|
|
116
|
+
"types": "./spx-inputs/index.d.ts",
|
|
117
|
+
"esm2022": "./esm2022/spx-inputs/softpak-components-spx-inputs.mjs",
|
|
118
|
+
"esm": "./esm2022/spx-inputs/softpak-components-spx-inputs.mjs",
|
|
119
|
+
"default": "./fesm2022/softpak-components-spx-inputs.mjs"
|
|
120
|
+
},
|
|
121
121
|
"./spx-number-check": {
|
|
122
122
|
"types": "./spx-number-check/index.d.ts",
|
|
123
123
|
"esm2022": "./esm2022/spx-number-check/softpak-components-spx-number-check.mjs",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const releaseCheck: (releaseAtLeast: string) => string | null;
|
|
1
|
+
export declare const releaseCheck: (releaseAtLeast: string, orInReleaseList?: string[]) => string | null;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SpxPatchComponent {
|
|
4
|
+
spxText: string;
|
|
4
5
|
patchCheck: number | null;
|
|
5
6
|
releaseCheck: string | null;
|
|
6
7
|
severityError: SpxSeverityEnum;
|
|
7
8
|
severityWarning: SpxSeverityEnum;
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpxPatchComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpxPatchComponent, "spx-patch", never, { "patchCheck": { "alias": "patchCheck"; "required": false; }; "releaseCheck": { "alias": "releaseCheck"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpxPatchComponent, "spx-patch", never, { "spxText": { "alias": "spxText"; "required": false; }; "patchCheck": { "alias": "patchCheck"; "required": false; }; "releaseCheck": { "alias": "releaseCheck"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
11
|
}
|