@softpak/components 0.2.0-beta.6 → 0.2.0
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.
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3B4LWNhcGl0YWxpemUucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NvZnRwYWsvY29tcG9uZW50cy9zcHgtY2FwaXRhbGl6ZS9zcHgtY2FwaXRhbGl6ZS5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDOztBQU1wRCxNQUFNLE9BQU8saUJBQWlCO0lBRTVCLFNBQVMsQ0FBQyxLQUFhLEVBQUUsR0FBRyxLQUFnQjtRQUMxQyxPQUFPLEtBQUssR0FBRyxLQUFLLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUMsV0FBVyxFQUFFLEdBQUcsS0FBSyxD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pipe } from '@angular/core';
|
|
|
3
3
|
|
|
4
4
|
class SpxCapitalizePipe {
|
|
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;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softpak/components",
|
|
3
|
-
"version": "0.2.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "18.x.x",
|
|
@@ -34,18 +34,18 @@
|
|
|
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
|
},
|
|
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"
|
|
48
|
+
},
|
|
49
49
|
"./spx-app-update": {
|
|
50
50
|
"types": "./spx-app-update/index.d.ts",
|
|
51
51
|
"esm2022": "./esm2022/spx-app-update/softpak-components-spx-app-update.mjs",
|
|
@@ -58,17 +58,23 @@
|
|
|
58
58
|
"esm": "./esm2022/spx-button/softpak-components-spx-button.mjs",
|
|
59
59
|
"default": "./fesm2022/softpak-components-spx-button.mjs"
|
|
60
60
|
},
|
|
61
|
+
"./spx-capitalize": {
|
|
62
|
+
"types": "./spx-capitalize/index.d.ts",
|
|
63
|
+
"esm2022": "./esm2022/spx-capitalize/softpak-components-spx-capitalize.mjs",
|
|
64
|
+
"esm": "./esm2022/spx-capitalize/softpak-components-spx-capitalize.mjs",
|
|
65
|
+
"default": "./fesm2022/softpak-components-spx-capitalize.mjs"
|
|
66
|
+
},
|
|
61
67
|
"./spx-card": {
|
|
62
68
|
"types": "./spx-card/index.d.ts",
|
|
63
69
|
"esm2022": "./esm2022/spx-card/softpak-components-spx-card.mjs",
|
|
64
70
|
"esm": "./esm2022/spx-card/softpak-components-spx-card.mjs",
|
|
65
71
|
"default": "./fesm2022/softpak-components-spx-card.mjs"
|
|
66
72
|
},
|
|
67
|
-
"./spx-
|
|
68
|
-
"types": "./spx-
|
|
69
|
-
"esm2022": "./esm2022/spx-
|
|
70
|
-
"esm": "./esm2022/spx-
|
|
71
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
73
|
+
"./spx-channel-selection": {
|
|
74
|
+
"types": "./spx-channel-selection/index.d.ts",
|
|
75
|
+
"esm2022": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
|
|
76
|
+
"esm": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
|
|
77
|
+
"default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
|
|
72
78
|
},
|
|
73
79
|
"./spx-change-details": {
|
|
74
80
|
"types": "./spx-change-details/index.d.ts",
|
|
@@ -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",
|