@softpak/components 0.2.0-beta.6 → 0.2.1
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-capitalize/spx-capitalize.pipe.mjs +2 -2
- package/esm2022/spx-card/spx-card-item.component.mjs +6 -4
- package/fesm2022/softpak-components-spx-capitalize.mjs +1 -1
- package/fesm2022/softpak-components-spx-capitalize.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-card.mjs +5 -3
- package/fesm2022/softpak-components-spx-card.mjs.map +1 -1
- package/package.json +29 -29
- package/spx-card/spx-card-item.component.d.ts +2 -1
|
@@ -2,7 +2,7 @@ import { Pipe } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export class SpxCapitalizePipe {
|
|
4
4
|
transform(value, ..._args) {
|
|
5
|
-
return value = value ? value.charAt(0).toUpperCase() + value.substr(1)
|
|
5
|
+
return value = value ? value.charAt(0).toUpperCase() + value.substr(1) : '';
|
|
6
6
|
}
|
|
7
7
|
static transform(value, ..._args) {
|
|
8
8
|
return new SpxCapitalizePipe().transform(value, _args);
|
|
@@ -17,4 +17,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
17
17
|
standalone: true,
|
|
18
18
|
}]
|
|
19
19
|
}] });
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3B4LWNhcGl0YWxpemUucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NvZnRwYWsvY29tcG9uZW50cy9zcHgtY2FwaXRhbGl6ZS9zcHgtY2FwaXRhbGl6ZS5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVB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HZhbHVlLnN1YnN0cigxKSA6ICcnO1xuICB9XG5cbiAgc3RhdGljIHRyYW5zZm9ybSh2YWx1ZTogc3RyaW5nLCAuLi5fYXJnczogdW5rbm93bltdKTogc3RyaW5nIHtcbiAgICByZXR1cm4gbmV3IFNweENhcGl0YWxpemVQaXBlKCkudHJhbnNmb3JtKHZhbHVlLCBfYXJncyk7XG4gIH1cblxufVxuIl19
|
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3B4LWNhcmQtaXRlbS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zb2Z0cGFrL2NvbXBvbmVudHMvc3B4LWNhcmQvc3B4LWNhcmQtaXRlbS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3ZDLE9BQU8sRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM5RCxPQUFPLEVB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apitalizePipe {
|
|
5
5
|
transform(value, ..._args) {
|
|
6
|
-
return value = value ? value.charAt(0).toUpperCase() + value.substr(1)
|
|
6
|
+
return value = value ? value.charAt(0).toUpperCase() + value.substr(1) : '';
|
|
7
7
|
}
|
|
8
8
|
static transform(value, ..._args) {
|
|
9
9
|
return new SpxCapitalizePipe().transform(value, _args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-capitalize.mjs","sources":["../../../../projects/softpak/components/spx-capitalize/spx-capitalize.pipe.ts","../../../../projects/softpak/components/spx-capitalize/softpak-components-spx-capitalize.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'capitalize',\n standalone: true,\n})\nexport class SpxCapitalizePipe implements PipeTransform {\n\n transform(value: string, ..._args: unknown[]): string {\n return value = value ? value.charAt(0).toUpperCase() + value.substr(1)
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-capitalize.mjs","sources":["../../../../projects/softpak/components/spx-capitalize/spx-capitalize.pipe.ts","../../../../projects/softpak/components/spx-capitalize/softpak-components-spx-capitalize.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'capitalize',\n standalone: true,\n})\nexport class SpxCapitalizePipe implements PipeTransform {\n\n transform(value: string, ..._args: unknown[]): string {\n return value = value ? value.charAt(0).toUpperCase() + value.substr(1) : '';\n }\n\n static transform(value: string, ..._args: unknown[]): string {\n return new SpxCapitalizePipe().transform(value, _args);\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAMa,iBAAiB,CAAA;AAE5B,IAAA,SAAS,CAAC,KAAa,EAAE,GAAG,KAAgB,EAAA;QAC1C,OAAO,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;KAC7E;AAED,IAAA,OAAO,SAAS,CAAC,KAAa,EAAE,GAAG,KAAgB,EAAA;QACjD,OAAO,IAAI,iBAAiB,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KACxD;8GARU,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;4GAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,CAAA,EAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,YAAY;AAClB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA,CAAA;;;ACLD;;AAEG;;;;"}
|
|
@@ -106,7 +106,7 @@ class SpxCardItemComponent {
|
|
|
106
106
|
get spxSeverityUnknown() { 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,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;;;;;;;;;;;;;;;;;;;;;;;AAuB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AAA;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,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,EAAA,IAAA,EAAA,MAAA,EAAA,cAAA,EAAA,gBAAA,EAAA,EAAA,QAAA,EAAA,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;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softpak/components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "18.x.x",
|
|
@@ -34,23 +34,17 @@
|
|
|
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-configuration": {
|
|
38
|
-
"types": "./spx-app-configuration/index.d.ts",
|
|
39
|
-
"esm2022": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
|
|
40
|
-
"esm": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
|
|
41
|
-
"default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
|
|
42
|
-
},
|
|
43
37
|
"./spx-app-expiry": {
|
|
44
38
|
"types": "./spx-app-expiry/index.d.ts",
|
|
45
39
|
"esm2022": "./esm2022/spx-app-expiry/softpak-components-spx-app-expiry.mjs",
|
|
46
40
|
"esm": "./esm2022/spx-app-expiry/softpak-components-spx-app-expiry.mjs",
|
|
47
41
|
"default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
|
|
48
42
|
},
|
|
49
|
-
"./spx-app-
|
|
50
|
-
"types": "./spx-app-
|
|
51
|
-
"esm2022": "./esm2022/spx-app-
|
|
52
|
-
"esm": "./esm2022/spx-app-
|
|
53
|
-
"default": "./fesm2022/softpak-components-spx-app-
|
|
43
|
+
"./spx-app-configuration": {
|
|
44
|
+
"types": "./spx-app-configuration/index.d.ts",
|
|
45
|
+
"esm2022": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
|
|
46
|
+
"esm": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
|
|
47
|
+
"default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
|
|
54
48
|
},
|
|
55
49
|
"./spx-button": {
|
|
56
50
|
"types": "./spx-button/index.d.ts",
|
|
@@ -58,11 +52,11 @@
|
|
|
58
52
|
"esm": "./esm2022/spx-button/softpak-components-spx-button.mjs",
|
|
59
53
|
"default": "./fesm2022/softpak-components-spx-button.mjs"
|
|
60
54
|
},
|
|
61
|
-
"./spx-
|
|
62
|
-
"types": "./spx-
|
|
63
|
-
"esm2022": "./esm2022/spx-
|
|
64
|
-
"esm": "./esm2022/spx-
|
|
65
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
55
|
+
"./spx-app-update": {
|
|
56
|
+
"types": "./spx-app-update/index.d.ts",
|
|
57
|
+
"esm2022": "./esm2022/spx-app-update/softpak-components-spx-app-update.mjs",
|
|
58
|
+
"esm": "./esm2022/spx-app-update/softpak-components-spx-app-update.mjs",
|
|
59
|
+
"default": "./fesm2022/softpak-components-spx-app-update.mjs"
|
|
66
60
|
},
|
|
67
61
|
"./spx-capitalize": {
|
|
68
62
|
"types": "./spx-capitalize/index.d.ts",
|
|
@@ -70,12 +64,24 @@
|
|
|
70
64
|
"esm": "./esm2022/spx-capitalize/softpak-components-spx-capitalize.mjs",
|
|
71
65
|
"default": "./fesm2022/softpak-components-spx-capitalize.mjs"
|
|
72
66
|
},
|
|
67
|
+
"./spx-card": {
|
|
68
|
+
"types": "./spx-card/index.d.ts",
|
|
69
|
+
"esm2022": "./esm2022/spx-card/softpak-components-spx-card.mjs",
|
|
70
|
+
"esm": "./esm2022/spx-card/softpak-components-spx-card.mjs",
|
|
71
|
+
"default": "./fesm2022/softpak-components-spx-card.mjs"
|
|
72
|
+
},
|
|
73
73
|
"./spx-change-details": {
|
|
74
74
|
"types": "./spx-change-details/index.d.ts",
|
|
75
75
|
"esm2022": "./esm2022/spx-change-details/softpak-components-spx-change-details.mjs",
|
|
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
|
+
},
|
|
79
85
|
"./spx-check-digit": {
|
|
80
86
|
"types": "./spx-check-digit/index.d.ts",
|
|
81
87
|
"esm2022": "./esm2022/spx-check-digit/softpak-components-spx-check-digit.mjs",
|
|
@@ -88,12 +94,6 @@
|
|
|
88
94
|
"esm": "./esm2022/spx-form-section/softpak-components-spx-form-section.mjs",
|
|
89
95
|
"default": "./fesm2022/softpak-components-spx-form-section.mjs"
|
|
90
96
|
},
|
|
91
|
-
"./spx-channel-selection": {
|
|
92
|
-
"types": "./spx-channel-selection/index.d.ts",
|
|
93
|
-
"esm2022": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
|
|
94
|
-
"esm": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
|
|
95
|
-
"default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
|
|
96
|
-
},
|
|
97
97
|
"./spx-form-view": {
|
|
98
98
|
"types": "./spx-form-view/index.d.ts",
|
|
99
99
|
"esm2022": "./esm2022/spx-form-view/softpak-components-spx-form-view.mjs",
|
|
@@ -148,6 +148,12 @@
|
|
|
148
148
|
"esm": "./esm2022/spx-spinner/softpak-components-spx-spinner.mjs",
|
|
149
149
|
"default": "./fesm2022/softpak-components-spx-spinner.mjs"
|
|
150
150
|
},
|
|
151
|
+
"./spx-stock-info": {
|
|
152
|
+
"types": "./spx-stock-info/index.d.ts",
|
|
153
|
+
"esm2022": "./esm2022/spx-stock-info/softpak-components-spx-stock-info.mjs",
|
|
154
|
+
"esm": "./esm2022/spx-stock-info/softpak-components-spx-stock-info.mjs",
|
|
155
|
+
"default": "./fesm2022/softpak-components-spx-stock-info.mjs"
|
|
156
|
+
},
|
|
151
157
|
"./spx-storage": {
|
|
152
158
|
"types": "./spx-storage/index.d.ts",
|
|
153
159
|
"esm2022": "./esm2022/spx-storage/softpak-components-spx-storage.mjs",
|
|
@@ -166,12 +172,6 @@
|
|
|
166
172
|
"esm": "./esm2022/spx-toaster/softpak-components-spx-toaster.mjs",
|
|
167
173
|
"default": "./fesm2022/softpak-components-spx-toaster.mjs"
|
|
168
174
|
},
|
|
169
|
-
"./spx-stock-info": {
|
|
170
|
-
"types": "./spx-stock-info/index.d.ts",
|
|
171
|
-
"esm2022": "./esm2022/spx-stock-info/softpak-components-spx-stock-info.mjs",
|
|
172
|
-
"esm": "./esm2022/spx-stock-info/softpak-components-spx-stock-info.mjs",
|
|
173
|
-
"default": "./fesm2022/softpak-components-spx-stock-info.mjs"
|
|
174
|
-
},
|
|
175
175
|
"./spx-update": {
|
|
176
176
|
"types": "./spx-update/index.d.ts",
|
|
177
177
|
"esm2022": "./esm2022/spx-update/softpak-components-spx-update.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
|
}
|