@softpak/components 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/spx-card/spx-card-item.component.mjs +6 -4
- 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-card.mjs +5 -3
- package/fesm2022/softpak-components-spx-card.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 +41 -41
- package/spx-card/spx-card-item.component.d.ts +2 -1
- package/spx-patch/release-check.function.d.ts +1 -1
- package/spx-patch/spx-patch.component.d.ts +2 -1
|
@@ -14,7 +14,7 @@ export class SpxCardItemComponent {
|
|
|
14
14
|
get spxSeverityUnknown() { return this.spxSeverity === SpxSeverityEnum.warning; }
|
|
15
15
|
get spxSeverityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }
|
|
16
16
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: SpxCardItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: SpxCardItemComponent, isStandalone: true, selector: "spx-card-item", inputs: { icon: "icon", iconOnly: "iconOnly", spxLabel: "spxLabel", spxSeverity: "spxSeverity" }, host: { properties: { "class.h-full": "this.hFull" } }, ngImport: i0, template: `
|
|
17
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: SpxCardItemComponent, isStandalone: true, selector: "spx-card-item", inputs: { icon: "icon", iconOnly: "iconOnly", spxLabel: "spxLabel", spxValue: "spxValue", spxSeverity: "spxSeverity" }, host: { properties: { "class.h-full": "this.hFull" } }, ngImport: i0, template: `
|
|
18
18
|
<div class='py-2 px-3 rounded h-full'
|
|
19
19
|
[class.bg-slate-50]="!spxSeverity"
|
|
20
20
|
[class.dark:bg-slate-600]="!spxSeverity"
|
|
@@ -31,7 +31,7 @@ export class SpxCardItemComponent {
|
|
|
31
31
|
<fa-icon [icon]="icon"></fa-icon>
|
|
32
32
|
</div>
|
|
33
33
|
<div *ngIf="!iconOnly" class="grow font-bold">
|
|
34
|
-
<ng-content></ng-content>
|
|
34
|
+
<ng-content></ng-content><div [innerHTML]="spxValue"></div>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
37
|
</div>
|
|
@@ -63,7 +63,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
63
63
|
<fa-icon [icon]="icon"></fa-icon>
|
|
64
64
|
</div>
|
|
65
65
|
<div *ngIf="!iconOnly" class="grow font-bold">
|
|
66
|
-
<ng-content></ng-content>
|
|
66
|
+
<ng-content></ng-content><div [innerHTML]="spxValue"></div>
|
|
67
67
|
</div>
|
|
68
68
|
</div>
|
|
69
69
|
</div>
|
|
@@ -78,7 +78,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
78
78
|
type: Input
|
|
79
79
|
}], spxLabel: [{
|
|
80
80
|
type: Input
|
|
81
|
+
}], spxValue: [{
|
|
82
|
+
type: Input
|
|
81
83
|
}], spxSeverity: [{
|
|
82
84
|
type: Input
|
|
83
85
|
}] } });
|
|
84
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
86
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3B4LWNhcmQtaXRlbS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zb2Z0cGFrL2NvbXBvbmVudHMvc3B4LWNhcmQvc3B4LWNhcmQtaXRlbS5jb21wb25lbnQudHMiXS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W5nOyB9XG4gIGdldCBzcHhTZXZlcml0eVdhcm5pbmcoKSB7IHJldHVybiB0aGlzLnNweFNldmVyaXR5ID09PSBTcHhTZXZlcml0eUVudW0ud2FybmluZzsgfVxufVxuIl19
|
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVsZWFzZS1jaGVjay5mdW5jdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NvZnRwYWsvY29tcG9uZW50cy9zcHgtcGF0Y2gvcmVsZWFzZS1jaGVjay5mdW5jdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLGlCQUFpQixFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFFaEYsTUFBTSxDQUFDLE1BQU0sWUFBWSxHQ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0=
|
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3B4LXBhdGNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NvZnRwYWsvY29tcG9uZW50cy9zcHgtcGF0Y2gvc3B4LXBhdGNoLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDdkMsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFDbEUsT0FBTyx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known() { return this.spxSeverity === SpxSeverityEnum.warning; }
|
|
107
107
|
get spxSeverityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }
|
|
108
108
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: SpxCardItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
109
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: SpxCardItemComponent, isStandalone: true, selector: "spx-card-item", inputs: { icon: "icon", iconOnly: "iconOnly", spxLabel: "spxLabel", spxSeverity: "spxSeverity" }, host: { properties: { "class.h-full": "this.hFull" } }, ngImport: i0, template: `
|
|
109
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: SpxCardItemComponent, isStandalone: true, selector: "spx-card-item", inputs: { icon: "icon", iconOnly: "iconOnly", spxLabel: "spxLabel", spxValue: "spxValue", spxSeverity: "spxSeverity" }, host: { properties: { "class.h-full": "this.hFull" } }, ngImport: i0, template: `
|
|
110
110
|
<div class='py-2 px-3 rounded h-full'
|
|
111
111
|
[class.bg-slate-50]="!spxSeverity"
|
|
112
112
|
[class.dark:bg-slate-600]="!spxSeverity"
|
|
@@ -123,7 +123,7 @@ class SpxCardItemComponent {
|
|
|
123
123
|
<fa-icon [icon]="icon"></fa-icon>
|
|
124
124
|
</div>
|
|
125
125
|
<div *ngIf="!iconOnly" class="grow font-bold">
|
|
126
|
-
<ng-content></ng-content>
|
|
126
|
+
<ng-content></ng-content><div [innerHTML]="spxValue"></div>
|
|
127
127
|
</div>
|
|
128
128
|
</div>
|
|
129
129
|
</div>
|
|
@@ -155,7 +155,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
155
155
|
<fa-icon [icon]="icon"></fa-icon>
|
|
156
156
|
</div>
|
|
157
157
|
<div *ngIf="!iconOnly" class="grow font-bold">
|
|
158
|
-
<ng-content></ng-content>
|
|
158
|
+
<ng-content></ng-content><div [innerHTML]="spxValue"></div>
|
|
159
159
|
</div>
|
|
160
160
|
</div>
|
|
161
161
|
</div>
|
|
@@ -170,6 +170,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
170
170
|
type: Input
|
|
171
171
|
}], spxLabel: [{
|
|
172
172
|
type: Input
|
|
173
|
+
}], spxValue: [{
|
|
174
|
+
type: Input
|
|
173
175
|
}], spxSeverity: [{
|
|
174
176
|
type: Input
|
|
175
177
|
}] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-card.mjs","sources":["../../../../projects/softpak/components/spx-card/spx-card.component.ts","../../../../projects/softpak/components/spx-card/spx-card-item.component.ts","../../../../projects/softpak/components/spx-card/spx-card-grid.component.ts","../../../../projects/softpak/components/spx-card/spx-card-line.component.ts","../../../../projects/softpak/components/spx-card/softpak-components-spx-card.ts"],"sourcesContent":["import { NgClass, NgIf } from '@angular/common';\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\n\n@Component({\n selector: 'spx-card',\n standalone: true,\n imports: [\n NgClass,\n NgIf,\n ],\n template: `\n <button type=\"button\"\n class=\"block w-full text-left rounded font-body items-stretch\"\n [class.flex]=\"tableView\"\n [class.cursor-pointer]=\"clickable\"\n [class.cursor-not-allowed]=\"!clickable\"\n [class.focus:ring-2]=\"clickable\"\n [class.focus:ring-offset-2]=\"clickable\"\n [class.focus:ring-blue-500]=\"clickable\"\n (click)=\"onClick()\"\n [tabIndex]=\"clickable ? 0 : -1\">\n <div class=\"text-gray-900 opacity-90\" [class.w-96]=\"tableView\">\n <ng-content select=\"[card-header]\"></ng-content>\n </div>\n <ng-content select=\"[card-content-top]\"></ng-content>\n <div *ngIf=\"hasContent\" class=\"bg-white dark:bg-gray-600 p-3\">\n <ng-content select=\"[card-content]\"></ng-content>\n </div>\n <ng-content select=\"[card-content-bottom]\"></ng-content>\n <div class=\"bg-gray-50 dark:bg-gray-700 p-3 grow\" [class.rounded-b-lg]=\"!onDetailPage && !tableView\" [class.rounded-r-lg]=\"!onDetailPage && tableView\">\n <ng-content select=\"[card-lines]\"></ng-content>\n </div>\n</button>\n`,\n})\nexport class SpxCardComponent {\n @Input() clickable = true;\n @Input() hasContent = true;\n @Input() onDetailPage = false;\n @Input() text!: string;\n @Input() unit?: string;\n @Input() tableView = false;\n @Output() clicked: EventEmitter<void> = new EventEmitter<void>();\n\n constructor() { }\n\n displayValue(val: string | number): string | number {\n return val || (val === 0) ? val : '—';\n }\n\n onClick(): void {\n this.clicked.emit();\n }\n}\n","import { NgIf } from '@angular/common';\nimport { Component, HostBinding, Input } from '@angular/core';\nimport { FaIconComponent } from '@fortawesome/angular-fontawesome';\nimport { IconProp } from '@fortawesome/angular-fontawesome/types';\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\n\n@Component({\n selector: 'spx-card-item',\n standalone: true,\n imports: [\n FaIconComponent,\n NgIf,\n ],\n template: `\n <div class='py-2 px-3 rounded h-full'\n [class.bg-slate-50]=\"!spxSeverity\"\n [class.dark:bg-slate-600]=\"!spxSeverity\"\n [class.text-black]=\"spxSeverityWarning\"\n [class.text-white]=\"spxSeverityError || spxSeverityInfo || spxSeveritySuccess || spxSeverityUnknown\"\n [class.bg-red-700]=\"spxSeverityError\"\n [class.bg-green-700]=\"spxSeveritySuccess\"\n [class.bg-blue-700]=\"spxSeverityInfo\"\n [class.bg-grey-700]=\"spxSeverityUnknown\"\n [class.bg-amber-700]=\"spxSeverityWarning\">\n <div class=\"font-small leading-normal\">{{ spxLabel }}</div>\n <div class=\"flex gap-4 text-lg leading-normal py-1\">\n <div *ngIf=\"icon\" class=\"font-bold text-center leading-normal w-12\" [class.grow]=\"iconOnly\">\n <fa-icon [icon]=\"icon\"></fa-icon>\n </div>\n <div *ngIf=\"!iconOnly\" class=\"grow font-bold\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n `,\n})\nexport class SpxCardItemComponent {\n @HostBinding('class.h-full') hFull = true;\n @Input() icon?: IconProp;\n @Input() iconOnly = false;\n @Input() spxLabel!: string;\n @Input() spxSeverity?: SpxSeverityEnum;\n get spxSeverityError() { return this.spxSeverity === SpxSeverityEnum.error; }\n get spxSeverityInfo() { return this.spxSeverity === SpxSeverityEnum.info; }\n get spxSeveritySuccess() { return this.spxSeverity === SpxSeverityEnum.success; }\n get spxSeverityUnknown() { return this.spxSeverity === SpxSeverityEnum.warning; }\n get spxSeverityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }\n}\n","import { Component, Input } from '@angular/core';\nimport { IconProp } from '@fortawesome/angular-fontawesome/types';\n\n@Component({\n selector: 'spx-card-grid',\n standalone: true,\n template: `\n <div class='grid min-[460px]:grid-cols-2 gap-3 items-stretch'>\n <ng-content></ng-content>\n </div>\n `,\n})\nexport class SpxCardGridComponent {\n}\n","import { NgClass, NgIf } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { IconProp } from '@fortawesome/angular-fontawesome/types';\n\n@Component({\n selector: 'spx-card-line',\n standalone: true,\n imports: [\n FontAwesomeModule,\n NgClass,\n NgIf,\n ],\n template: `\n<div class=\"items-center\" [class.flex]=\"!newOrderScreen\">\n <div class=\"block w-24 text-gray-600 dark:text-gray-200 text-xs mb-1\" [class.pt-1]=\"!newOrderScreen\" [innerHTML]=\"text\"></div>\n <div class=\"flex\">\n <fa-icon *ngIf=\"icon\" [icon]=\"icon\" class=\"text-lg mr-3 w-6 text-center\"></fa-icon>\n <div *ngIf=\"showPositiveOrNegative && numericValue < 0\" class=\"rounded-full w-4 h-4 mr-2 bg-sky-600\"> </div>\n <span *ngIf=\"!showProgress\" class=\"block font-medium grow whitespace-pre-line leading-5\">\n <span [innerHTML]=\"displayValue(value)\"></span>\n <ng-content></ng-content>\n <span *ngIf=\"unit\"> {{ unit }}</span>\n <ng-container *ngIf=\"!unit && secondValue !== null && secondValue !== undefined\"> / {{ displayValue(secondValue) }}</ng-container>\n </span>\n </div>\n <div *ngIf=\"showProgress\" class=\"block font-medium grow whitespace-pre-line text-gray-600 dark:text-gray-200\">\n <div class=\"flex\">\n <div class=\"flex grow gap-2\">\n <div class=\"bg-gray-200 my-0.5 h-5 w-full rounded\">\n <div class=\"bg-teal-600 h-5 rounded\" [style.width]=\"((+value) / (secondValue ? +secondValue : 0)) * 100 + '%'\"></div>\n </div>\n </div>\n <div class=\"flex text-left pl-3 gap-2\">\n <div class=\"block w-16 text-right\">{{ value }} / {{ secondValue }}</div>\n </div>\n </div>\n </div>\n</div>\n`,\n})\nexport class SpxCardLineComponent {\n @Input() icon?: IconProp;\n @Input() showPositiveOrNegative = false;\n @Input() text: string | unknown;\n @Input() value!: string | number;\n @Input() secondValue?: string | number;\n @Input() showProgress?: boolean;\n @Input() unit?: string;\n @Input() newOrderScreen = false;\n\n get numericValue() {\n return this.value as number;\n }\n\n constructor() { }\n\n public displayValue(val: string | number | unknown): string | number | unknown {\n return val || val === 0 ? val : '—';\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAmCa,gBAAgB,CAAA;AAS3B,IAAA,WAAA,GAAA;QARS,IAAS,CAAA,SAAA,GAAG,IAAI,CAAC;QACjB,IAAU,CAAA,UAAA,GAAG,IAAI,CAAC;QAClB,IAAY,CAAA,YAAA,GAAG,KAAK,CAAC;QAGrB,IAAS,CAAA,SAAA,GAAG,KAAK,CAAC;AACjB,QAAA,IAAA,CAAA,OAAO,GAAuB,IAAI,YAAY,EAAQ,CAAC;KAEhD;AAEjB,IAAA,YAAY,CAAC,GAAoB,EAAA;AAC/B,QAAA,OAAO,GAAG,KAAK,GAAG,KAAK,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;KACvC;IAED,OAAO,GAAA;AACL,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,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EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BX,EA9BG,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAiB,6PAEjB,IAAI,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FA8BK,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBApChC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE;wBACP,iBAAiB;wBACjB,OAAO;wBACP,IAAI;AACL,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BX,CAAA;AACA,iBAAA,CAAA;wDAEU,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,sBAAsB,EAAA,CAAA;sBAA9B,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,YAAY,EAAA,CAAA;sBAApB,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,cAAc,EAAA,CAAA;sBAAtB,KAAK;;;ACjDR;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-card.mjs","sources":["../../../../projects/softpak/components/spx-card/spx-card.component.ts","../../../../projects/softpak/components/spx-card/spx-card-item.component.ts","../../../../projects/softpak/components/spx-card/spx-card-grid.component.ts","../../../../projects/softpak/components/spx-card/spx-card-line.component.ts","../../../../projects/softpak/components/spx-card/softpak-components-spx-card.ts"],"sourcesContent":["import { NgClass, NgIf } from '@angular/common';\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\n\n@Component({\n selector: 'spx-card',\n standalone: true,\n imports: [\n NgClass,\n NgIf,\n ],\n template: `\n <button type=\"button\"\n class=\"block w-full text-left rounded font-body items-stretch\"\n [class.flex]=\"tableView\"\n [class.cursor-pointer]=\"clickable\"\n [class.cursor-not-allowed]=\"!clickable\"\n [class.focus:ring-2]=\"clickable\"\n [class.focus:ring-offset-2]=\"clickable\"\n [class.focus:ring-blue-500]=\"clickable\"\n (click)=\"onClick()\"\n [tabIndex]=\"clickable ? 0 : -1\">\n <div class=\"text-gray-900 opacity-90\" [class.w-96]=\"tableView\">\n <ng-content select=\"[card-header]\"></ng-content>\n </div>\n <ng-content select=\"[card-content-top]\"></ng-content>\n <div *ngIf=\"hasContent\" class=\"bg-white dark:bg-gray-600 p-3\">\n <ng-content select=\"[card-content]\"></ng-content>\n </div>\n <ng-content select=\"[card-content-bottom]\"></ng-content>\n <div class=\"bg-gray-50 dark:bg-gray-700 p-3 grow\" [class.rounded-b-lg]=\"!onDetailPage && !tableView\" [class.rounded-r-lg]=\"!onDetailPage && tableView\">\n <ng-content select=\"[card-lines]\"></ng-content>\n </div>\n</button>\n`,\n})\nexport class SpxCardComponent {\n @Input() clickable = true;\n @Input() hasContent = true;\n @Input() onDetailPage = false;\n @Input() text!: string;\n @Input() unit?: string;\n @Input() tableView = false;\n @Output() clicked: EventEmitter<void> = new EventEmitter<void>();\n\n constructor() { }\n\n displayValue(val: string | number): string | number {\n return val || (val === 0) ? val : '—';\n }\n\n onClick(): void {\n this.clicked.emit();\n }\n}\n","import { NgIf } from '@angular/common';\nimport { Component, HostBinding, Input } from '@angular/core';\nimport { FaIconComponent } from '@fortawesome/angular-fontawesome';\nimport { IconProp } from '@fortawesome/angular-fontawesome/types';\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\nimport { SpxValuePair } from '@softpak/components/spx-inputs';\n\n@Component({\n selector: 'spx-card-item',\n standalone: true,\n imports: [\n FaIconComponent,\n NgIf,\n ],\n template: `\n <div class='py-2 px-3 rounded h-full'\n [class.bg-slate-50]=\"!spxSeverity\"\n [class.dark:bg-slate-600]=\"!spxSeverity\"\n [class.text-black]=\"spxSeverityWarning\"\n [class.text-white]=\"spxSeverityError || spxSeverityInfo || spxSeveritySuccess || spxSeverityUnknown\"\n [class.bg-red-700]=\"spxSeverityError\"\n [class.bg-green-700]=\"spxSeveritySuccess\"\n [class.bg-blue-700]=\"spxSeverityInfo\"\n [class.bg-grey-700]=\"spxSeverityUnknown\"\n [class.bg-amber-700]=\"spxSeverityWarning\">\n <div class=\"font-small leading-normal\">{{ spxLabel }}</div>\n <div class=\"flex gap-4 text-lg leading-normal py-1\">\n <div *ngIf=\"icon\" class=\"font-bold text-center leading-normal w-12\" [class.grow]=\"iconOnly\">\n <fa-icon [icon]=\"icon\"></fa-icon>\n </div>\n <div *ngIf=\"!iconOnly\" class=\"grow font-bold\">\n <ng-content></ng-content><div [innerHTML]=\"spxValue\"></div>\n </div>\n </div>\n </div>\n `,\n})\nexport class SpxCardItemComponent {\n @HostBinding('class.h-full') hFull = true;\n @Input() icon?: IconProp;\n @Input() iconOnly = false;\n @Input() spxLabel!: string;\n @Input() spxValue!: string;\n @Input() spxSeverity?: SpxSeverityEnum;\n get spxSeverityError() { return this.spxSeverity === SpxSeverityEnum.error; }\n get spxSeverityInfo() { return this.spxSeverity === SpxSeverityEnum.info; }\n get spxSeveritySuccess() { return this.spxSeverity === SpxSeverityEnum.success; }\n get spxSeverityUnknown() { return this.spxSeverity === SpxSeverityEnum.warning; }\n get spxSeverityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }\n}\n","import { Component, Input } from '@angular/core';\nimport { IconProp } from '@fortawesome/angular-fontawesome/types';\n\n@Component({\n selector: 'spx-card-grid',\n standalone: true,\n template: `\n <div class='grid min-[460px]:grid-cols-2 gap-3 items-stretch'>\n <ng-content></ng-content>\n </div>\n `,\n})\nexport class SpxCardGridComponent {\n}\n","import { NgClass, NgIf } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { IconProp } from '@fortawesome/angular-fontawesome/types';\n\n@Component({\n selector: 'spx-card-line',\n standalone: true,\n imports: [\n FontAwesomeModule,\n NgClass,\n NgIf,\n ],\n template: `\n<div class=\"items-center\" [class.flex]=\"!newOrderScreen\">\n <div class=\"block w-24 text-gray-600 dark:text-gray-200 text-xs mb-1\" [class.pt-1]=\"!newOrderScreen\" [innerHTML]=\"text\"></div>\n <div class=\"flex\">\n <fa-icon *ngIf=\"icon\" [icon]=\"icon\" class=\"text-lg mr-3 w-6 text-center\"></fa-icon>\n <div *ngIf=\"showPositiveOrNegative && numericValue < 0\" class=\"rounded-full w-4 h-4 mr-2 bg-sky-600\"> </div>\n <span *ngIf=\"!showProgress\" class=\"block font-medium grow whitespace-pre-line leading-5\">\n <span [innerHTML]=\"displayValue(value)\"></span>\n <ng-content></ng-content>\n <span *ngIf=\"unit\"> {{ unit }}</span>\n <ng-container *ngIf=\"!unit && secondValue !== null && secondValue !== undefined\"> / {{ displayValue(secondValue) }}</ng-container>\n </span>\n </div>\n <div *ngIf=\"showProgress\" class=\"block font-medium grow whitespace-pre-line text-gray-600 dark:text-gray-200\">\n <div class=\"flex\">\n <div class=\"flex grow gap-2\">\n <div class=\"bg-gray-200 my-0.5 h-5 w-full rounded\">\n <div class=\"bg-teal-600 h-5 rounded\" [style.width]=\"((+value) / (secondValue ? +secondValue : 0)) * 100 + '%'\"></div>\n </div>\n </div>\n <div class=\"flex text-left pl-3 gap-2\">\n <div class=\"block w-16 text-right\">{{ value }} / {{ secondValue }}</div>\n </div>\n </div>\n </div>\n</div>\n`,\n})\nexport class SpxCardLineComponent {\n @Input() icon?: IconProp;\n @Input() showPositiveOrNegative = false;\n @Input() text: string | unknown;\n @Input() value!: string | number;\n @Input() secondValue?: string | number;\n @Input() showProgress?: boolean;\n @Input() unit?: string;\n @Input() newOrderScreen = false;\n\n get numericValue() {\n return this.value as number;\n }\n\n constructor() { }\n\n public displayValue(val: string | number | unknown): string | number | unknown {\n return val || val === 0 ? val : '—';\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAmCa,gBAAgB,CAAA;AAS3B,IAAA,WAAA,GAAA;QARS,IAAS,CAAA,SAAA,GAAG,IAAI,CAAC;QACjB,IAAU,CAAA,UAAA,GAAG,IAAI,CAAC;QAClB,IAAY,CAAA,YAAA,GAAG,KAAK,CAAC;QAGrB,IAAS,CAAA,SAAA,GAAG,KAAK,CAAC;AACjB,QAAA,IAAA,CAAA,OAAO,GAAuB,IAAI,YAAY,EAAQ,CAAC;KAEhD;AAEjB,IAAA,YAAY,CAAC,GAAoB,EAAA;AAC/B,QAAA,OAAO,GAAG,KAAK,GAAG,KAAK,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;KACvC;IAED,OAAO,GAAA;AACL,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;KACrB;8GAjBU,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,EAzBjB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,UAAA,EAAA,YAAA,EAAA,YAAA,EAAA,cAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA,EAAA,SAAA,EAAA,WAAA,EAAA,EAAA,OAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;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Q,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BX,CAAA;AACA,iBAAA,CAAA;wDAEU,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,sBAAsB,EAAA,CAAA;sBAA9B,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,YAAY,EAAA,CAAA;sBAApB,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,cAAc,EAAA,CAAA;sBAAtB,KAAK;;;ACjDR;;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,IAAI,OAAO,CAAC,YAAY,CAAC,EAAE;AAC3G,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO,OAAO,CAAC,YAAY,CAAC;AAChC;;MCNa,YAAY,GAAG,CAAC,cAAsB,EAAE,eAA0B,KAAI;AAC/E,IAAA,MAAM,cAAc,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,iBAAiB,CAAC,OAAO,CAAC,IAAI,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,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A,cAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;OAQL,EAXH,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,IAAI,6FACJ,iBAAiB,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,cAAA,EAAA,cAAA,EAAA,cAAA,EAAA,UAAA,EAAA,cAAA,EAAA,aAAA,EAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAYR,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAjB7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,WAAW;AACrB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE;wBACP,IAAI;wBACJ,iBAAiB;AAClB,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;AAQL,MAAA,CAAA;AACN,iBAAA,CAAA;8BAEU,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACG,YAAY,EAAA,CAAA;sBAApB,KAAK;;;ACzBR;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softpak/components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "18.x.x",
|
|
@@ -46,12 +46,6 @@
|
|
|
46
46
|
"esm": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
|
|
47
47
|
"default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
|
|
48
48
|
},
|
|
49
|
-
"./spx-app-update": {
|
|
50
|
-
"types": "./spx-app-update/index.d.ts",
|
|
51
|
-
"esm2022": "./esm2022/spx-app-update/softpak-components-spx-app-update.mjs",
|
|
52
|
-
"esm": "./esm2022/spx-app-update/softpak-components-spx-app-update.mjs",
|
|
53
|
-
"default": "./fesm2022/softpak-components-spx-app-update.mjs"
|
|
54
|
-
},
|
|
55
49
|
"./spx-button": {
|
|
56
50
|
"types": "./spx-button/index.d.ts",
|
|
57
51
|
"esm2022": "./esm2022/spx-button/softpak-components-spx-button.mjs",
|
|
@@ -64,11 +58,17 @@
|
|
|
64
58
|
"esm": "./esm2022/spx-capitalize/softpak-components-spx-capitalize.mjs",
|
|
65
59
|
"default": "./fesm2022/softpak-components-spx-capitalize.mjs"
|
|
66
60
|
},
|
|
67
|
-
"./spx-
|
|
68
|
-
"types": "./spx-
|
|
69
|
-
"esm2022": "./esm2022/spx-
|
|
70
|
-
"esm": "./esm2022/spx-
|
|
71
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
61
|
+
"./spx-change-details": {
|
|
62
|
+
"types": "./spx-change-details/index.d.ts",
|
|
63
|
+
"esm2022": "./esm2022/spx-change-details/softpak-components-spx-change-details.mjs",
|
|
64
|
+
"esm": "./esm2022/spx-change-details/softpak-components-spx-change-details.mjs",
|
|
65
|
+
"default": "./fesm2022/softpak-components-spx-change-details.mjs"
|
|
66
|
+
},
|
|
67
|
+
"./spx-app-update": {
|
|
68
|
+
"types": "./spx-app-update/index.d.ts",
|
|
69
|
+
"esm2022": "./esm2022/spx-app-update/softpak-components-spx-app-update.mjs",
|
|
70
|
+
"esm": "./esm2022/spx-app-update/softpak-components-spx-app-update.mjs",
|
|
71
|
+
"default": "./fesm2022/softpak-components-spx-app-update.mjs"
|
|
72
72
|
},
|
|
73
73
|
"./spx-channel-selection": {
|
|
74
74
|
"types": "./spx-channel-selection/index.d.ts",
|
|
@@ -76,12 +76,6 @@
|
|
|
76
76
|
"esm": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
|
|
77
77
|
"default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
|
|
78
78
|
},
|
|
79
|
-
"./spx-change-details": {
|
|
80
|
-
"types": "./spx-change-details/index.d.ts",
|
|
81
|
-
"esm2022": "./esm2022/spx-change-details/softpak-components-spx-change-details.mjs",
|
|
82
|
-
"esm": "./esm2022/spx-change-details/softpak-components-spx-change-details.mjs",
|
|
83
|
-
"default": "./fesm2022/softpak-components-spx-change-details.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",
|
|
@@ -100,6 +94,12 @@
|
|
|
100
94
|
"esm": "./esm2022/spx-form-view/softpak-components-spx-form-view.mjs",
|
|
101
95
|
"default": "./fesm2022/softpak-components-spx-form-view.mjs"
|
|
102
96
|
},
|
|
97
|
+
"./spx-card": {
|
|
98
|
+
"types": "./spx-card/index.d.ts",
|
|
99
|
+
"esm2022": "./esm2022/spx-card/softpak-components-spx-card.mjs",
|
|
100
|
+
"esm": "./esm2022/spx-card/softpak-components-spx-card.mjs",
|
|
101
|
+
"default": "./fesm2022/softpak-components-spx-card.mjs"
|
|
102
|
+
},
|
|
103
103
|
"./spx-helpers": {
|
|
104
104
|
"types": "./spx-helpers/index.d.ts",
|
|
105
105
|
"esm2022": "./esm2022/spx-helpers/softpak-components-spx-helpers.mjs",
|
|
@@ -112,29 +112,17 @@
|
|
|
112
112
|
"esm": "./esm2022/spx-inputs/softpak-components-spx-inputs.mjs",
|
|
113
113
|
"default": "./fesm2022/softpak-components-spx-inputs.mjs"
|
|
114
114
|
},
|
|
115
|
-
"./spx-navigation": {
|
|
116
|
-
"types": "./spx-navigation/index.d.ts",
|
|
117
|
-
"esm2022": "./esm2022/spx-navigation/softpak-components-spx-navigation.mjs",
|
|
118
|
-
"esm": "./esm2022/spx-navigation/softpak-components-spx-navigation.mjs",
|
|
119
|
-
"default": "./fesm2022/softpak-components-spx-navigation.mjs"
|
|
120
|
-
},
|
|
121
115
|
"./spx-number-check": {
|
|
122
116
|
"types": "./spx-number-check/index.d.ts",
|
|
123
117
|
"esm2022": "./esm2022/spx-number-check/softpak-components-spx-number-check.mjs",
|
|
124
118
|
"esm": "./esm2022/spx-number-check/softpak-components-spx-number-check.mjs",
|
|
125
119
|
"default": "./fesm2022/softpak-components-spx-number-check.mjs"
|
|
126
120
|
},
|
|
127
|
-
"./spx-
|
|
128
|
-
"types": "./spx-
|
|
129
|
-
"esm2022": "./esm2022/spx-
|
|
130
|
-
"esm": "./esm2022/spx-
|
|
131
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
132
|
-
},
|
|
133
|
-
"./spx-patch": {
|
|
134
|
-
"types": "./spx-patch/index.d.ts",
|
|
135
|
-
"esm2022": "./esm2022/spx-patch/softpak-components-spx-patch.mjs",
|
|
136
|
-
"esm": "./esm2022/spx-patch/softpak-components-spx-patch.mjs",
|
|
137
|
-
"default": "./fesm2022/softpak-components-spx-patch.mjs"
|
|
121
|
+
"./spx-navigation": {
|
|
122
|
+
"types": "./spx-navigation/index.d.ts",
|
|
123
|
+
"esm2022": "./esm2022/spx-navigation/softpak-components-spx-navigation.mjs",
|
|
124
|
+
"esm": "./esm2022/spx-navigation/softpak-components-spx-navigation.mjs",
|
|
125
|
+
"default": "./fesm2022/softpak-components-spx-navigation.mjs"
|
|
138
126
|
},
|
|
139
127
|
"./spx-progress-bar": {
|
|
140
128
|
"types": "./spx-progress-bar/index.d.ts",
|
|
@@ -142,12 +130,30 @@
|
|
|
142
130
|
"esm": "./esm2022/spx-progress-bar/softpak-components-spx-progress-bar.mjs",
|
|
143
131
|
"default": "./fesm2022/softpak-components-spx-progress-bar.mjs"
|
|
144
132
|
},
|
|
133
|
+
"./spx-patch": {
|
|
134
|
+
"types": "./spx-patch/index.d.ts",
|
|
135
|
+
"esm2022": "./esm2022/spx-patch/softpak-components-spx-patch.mjs",
|
|
136
|
+
"esm": "./esm2022/spx-patch/softpak-components-spx-patch.mjs",
|
|
137
|
+
"default": "./fesm2022/softpak-components-spx-patch.mjs"
|
|
138
|
+
},
|
|
145
139
|
"./spx-spinner": {
|
|
146
140
|
"types": "./spx-spinner/index.d.ts",
|
|
147
141
|
"esm2022": "./esm2022/spx-spinner/softpak-components-spx-spinner.mjs",
|
|
148
142
|
"esm": "./esm2022/spx-spinner/softpak-components-spx-spinner.mjs",
|
|
149
143
|
"default": "./fesm2022/softpak-components-spx-spinner.mjs"
|
|
150
144
|
},
|
|
145
|
+
"./spx-pagination": {
|
|
146
|
+
"types": "./spx-pagination/index.d.ts",
|
|
147
|
+
"esm2022": "./esm2022/spx-pagination/softpak-components-spx-pagination.mjs",
|
|
148
|
+
"esm": "./esm2022/spx-pagination/softpak-components-spx-pagination.mjs",
|
|
149
|
+
"default": "./fesm2022/softpak-components-spx-pagination.mjs"
|
|
150
|
+
},
|
|
151
|
+
"./spx-suggestion": {
|
|
152
|
+
"types": "./spx-suggestion/index.d.ts",
|
|
153
|
+
"esm2022": "./esm2022/spx-suggestion/softpak-components-spx-suggestion.mjs",
|
|
154
|
+
"esm": "./esm2022/spx-suggestion/softpak-components-spx-suggestion.mjs",
|
|
155
|
+
"default": "./fesm2022/softpak-components-spx-suggestion.mjs"
|
|
156
|
+
},
|
|
151
157
|
"./spx-stock-info": {
|
|
152
158
|
"types": "./spx-stock-info/index.d.ts",
|
|
153
159
|
"esm2022": "./esm2022/spx-stock-info/softpak-components-spx-stock-info.mjs",
|
|
@@ -160,12 +166,6 @@
|
|
|
160
166
|
"esm": "./esm2022/spx-storage/softpak-components-spx-storage.mjs",
|
|
161
167
|
"default": "./fesm2022/softpak-components-spx-storage.mjs"
|
|
162
168
|
},
|
|
163
|
-
"./spx-suggestion": {
|
|
164
|
-
"types": "./spx-suggestion/index.d.ts",
|
|
165
|
-
"esm2022": "./esm2022/spx-suggestion/softpak-components-spx-suggestion.mjs",
|
|
166
|
-
"esm": "./esm2022/spx-suggestion/softpak-components-spx-suggestion.mjs",
|
|
167
|
-
"default": "./fesm2022/softpak-components-spx-suggestion.mjs"
|
|
168
|
-
},
|
|
169
169
|
"./spx-toaster": {
|
|
170
170
|
"types": "./spx-toaster/index.d.ts",
|
|
171
171
|
"esm2022": "./esm2022/spx-toaster/softpak-components-spx-toaster.mjs",
|
|
@@ -6,6 +6,7 @@ export declare class SpxCardItemComponent {
|
|
|
6
6
|
icon?: IconProp;
|
|
7
7
|
iconOnly: boolean;
|
|
8
8
|
spxLabel: string;
|
|
9
|
+
spxValue: string;
|
|
9
10
|
spxSeverity?: SpxSeverityEnum;
|
|
10
11
|
get spxSeverityError(): boolean;
|
|
11
12
|
get spxSeverityInfo(): boolean;
|
|
@@ -13,5 +14,5 @@ export declare class SpxCardItemComponent {
|
|
|
13
14
|
get spxSeverityUnknown(): boolean;
|
|
14
15
|
get spxSeverityWarning(): boolean;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpxCardItemComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpxCardItemComponent, "spx-card-item", never, { "icon": { "alias": "icon"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "spxLabel": { "alias": "spxLabel"; "required": false; }; "spxSeverity": { "alias": "spxSeverity"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpxCardItemComponent, "spx-card-item", never, { "icon": { "alias": "icon"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "spxLabel": { "alias": "spxLabel"; "required": false; }; "spxValue": { "alias": "spxValue"; "required": false; }; "spxSeverity": { "alias": "spxSeverity"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
17
18
|
}
|
|
@@ -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
|
}
|