@solar-taro/core 3.5.3 → 4.0.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/CHANGELOG.md +14 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/pipes/number.d.ts +1 -1
- package/pipes/number.js.map +1 -1
- package/ui.d.ts +14 -0
- package/ui.js +7 -0
- package/ui.js.map +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# 4.0.0 (2026-10-14)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **core:** add entity to option conversion functions
|
|
6
|
+
|
|
7
|
+
### 🩹 Fixes
|
|
8
|
+
|
|
9
|
+
- **core:** make value parameter optional in fixed function
|
|
10
|
+
|
|
11
|
+
### ❤️ Thank You
|
|
12
|
+
|
|
13
|
+
- HyperLife1119
|
|
14
|
+
|
|
1
15
|
## 3.5.2 (2026-07-30)
|
|
2
16
|
|
|
3
17
|
This was a version bump only for core to align it with other projects, there were no code changes.
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/core/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/core/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC"}
|
package/package.json
CHANGED
package/pipes/number.d.ts
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* @deprecated {@link number}
|
|
3
3
|
*/
|
|
4
4
|
export declare const amount: typeof number;
|
|
5
|
-
export declare function fixed(value
|
|
5
|
+
export declare function fixed(value?: number, fractionDigits?: number): string;
|
|
6
6
|
export declare function number(value?: number, fractionDigits?: number): string;
|
|
7
7
|
export declare function currency(value?: number, fractionDigits?: number): string;
|
package/pipes/number.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.js","sourceRoot":"","sources":["../../../../packages/core/src/pipes/number.ts"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,CAAC,CAAA;AAEzB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC;AAE7B,MAAM,UAAU,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"number.js","sourceRoot":"","sources":["../../../../packages/core/src/pipes/number.ts"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,CAAC,CAAA;AAEzB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC;AAE7B,MAAM,UAAU,KAAK,CAAC,KAAc,EAAE,cAAc,GAAG,eAAe;IACpE,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;AAC9C,CAAC;AAAA,CAAC;AAEF,wBAAwB;AACxB,0CAA0C;AAC1C,8DAA8D;AAC9D,sBAAsB;AACtB,oHAAoH;AACpH,IAAI;AACJ,4CAA4C;AAC5C,8DAA8D;AAC9D,sBAAsB;AACtB,uJAAuJ;AACvJ,IAAI;AAEJ,MAAM,UAAU,MAAM,CAAC,KAAc,EAAE,cAAc,GAAG,eAAe;IACrE,MAAM,GAAG,GAAG,KAAK,IAAI,CAAC,CAAC;IACvB,MAAM,IAAI,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,cA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ED,OAAO,GAAG,IAAI,IAAI,WAAW,IAAI,WAAW,EAAE,CAAC;AACjD,CAAC"}
|
package/ui.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function entityToOption<T extends {
|
|
2
|
+
id: string | number;
|
|
3
|
+
fullName: string;
|
|
4
|
+
}>(entity: T): {
|
|
5
|
+
label: string;
|
|
6
|
+
value: T["id"];
|
|
7
|
+
} & T;
|
|
8
|
+
export declare function entitiesToOptions<T extends {
|
|
9
|
+
id: string | number;
|
|
10
|
+
fullName: string;
|
|
11
|
+
}>(entities: T[]): ({
|
|
12
|
+
label: string;
|
|
13
|
+
value: T["id"];
|
|
14
|
+
} & T)[];
|
package/ui.js
ADDED
package/ui.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../../../packages/core/src/ui.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,cAAc,CAAsD,MAAS;IAC3F,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,EAAa,EAAE,GAAG,MAAM,EAAE,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAsD,QAAa;IAClG,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;AACxD,CAAC"}
|