@techui/scifi 0.0.2-alpha.2 → 0.0.3-alpha.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/UPDATE.md CHANGED
@@ -6,6 +6,12 @@
6
6
 
7
7
  ## English
8
8
 
9
+ ### v0.0.3 (2025-10-18)
10
+
11
+ - Added new TuiEchartsMap component
12
+ - TuiPopInfo component: added titleIcon Props to support adding icons to titles
13
+ - Improved checkbox and radio components: now supports displaying both custom icons and default icons simultaneously
14
+
9
15
  ### v0.0.2 (2025-10-16 00:29)
10
16
 
11
17
  - Removed all SVG icons embedded in CSS
@@ -17,11 +23,13 @@
17
23
 
18
24
  ---
19
25
 
20
- **Notice: Before the new version is released, the old test package will be deleted or set to deprecated and will not be retained. (This behavior is limited to test packages)**
26
+ ## 中文
21
27
 
22
- ---
28
+ ### v0.0.3 (2025-10-18)
23
29
 
24
- ## 中文
30
+ - 新增TuiEchartsMap组件
31
+ - TuiPopInfo组件,添加titleIcon Props,可以通过此属性给标题添加图标
32
+ - checkbox、radio迭代,prop传入图标和默认图标可同时显示
25
33
 
26
34
  ### v0.0.2 (2025-10-16 00:29)
27
35
 
@@ -31,9 +39,3 @@
31
39
  ### v0.0.1 (2025-10-02)
32
40
 
33
41
  - 首次发布
34
-
35
- ---
36
-
37
- **声明:在新版本发布之前,旧测试包将被删除或设置为已弃用,不予保留。(此行为仅限于测试包)**
38
-
39
- ---
package/core/core.d.ts CHANGED
@@ -110,6 +110,7 @@ export function openEnc(plaintext: string, key_type: string): string;
110
110
  export function openDec(ciphertext: string, key_type: string): string;
111
111
  export function getEnv(): string;
112
112
  export function getVer(): string;
113
+ export function cssVarGen(prefix: string, style_obj: object): string;
113
114
  export function coreConsoleError(errstr: string, msg: string): void;
114
115
  export function coreConsoleWarn(warnstr: string, msg: string): void;
115
116
  export function coreConsoleInfo(infostr: string, msg: string): void;
@@ -232,6 +233,7 @@ export interface InitOutput {
232
233
  readonly openDec: (a: number, b: number, c: number, d: number, e: number) => void;
233
234
  readonly getEnv: (a: number) => void;
234
235
  readonly getVer: (a: number) => void;
236
+ readonly cssVarGen: (a: number, b: number, c: number, d: number) => void;
235
237
  readonly coreConsoleError: (a: number, b: number, c: number, d: number) => void;
236
238
  readonly coreConsoleWarn: (a: number, b: number, c: number, d: number) => void;
237
239
  readonly coreConsoleInfo: (a: number, b: number, c: number, d: number) => void;
package/core/core.js CHANGED
@@ -2463,6 +2463,38 @@ export function getVer() {
2463
2463
  }
2464
2464
  }
2465
2465
 
2466
+ let stack_pointer = 128;
2467
+
2468
+ function addBorrowedObject(obj) {
2469
+ if (stack_pointer == 1) throw new Error('out of js stack');
2470
+ heap[--stack_pointer] = obj;
2471
+ return stack_pointer;
2472
+ }
2473
+ /**
2474
+ * @param {string} prefix
2475
+ * @param {object} style_obj
2476
+ * @returns {string}
2477
+ */
2478
+ export function cssVarGen(prefix, style_obj) {
2479
+ let deferred2_0;
2480
+ let deferred2_1;
2481
+ try {
2482
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2483
+ const ptr0 = passStringToWasm0(prefix, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
2484
+ const len0 = WASM_VECTOR_LEN;
2485
+ wasm.cssVarGen(retptr, ptr0, len0, addBorrowedObject(style_obj));
2486
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2487
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2488
+ deferred2_0 = r0;
2489
+ deferred2_1 = r1;
2490
+ return getStringFromWasm0(r0, r1);
2491
+ } finally {
2492
+ wasm.__wbindgen_add_to_stack_pointer(16);
2493
+ heap[stack_pointer++] = undefined;
2494
+ wasm.__wbindgen_export_4(deferred2_0, deferred2_1, 1);
2495
+ }
2496
+ }
2497
+
2466
2498
  /**
2467
2499
  * @param {string} errstr
2468
2500
  * @param {string} msg
@@ -2654,6 +2686,10 @@ function __wbg_get_imports() {
2654
2686
  const ret = getObject(arg0).document;
2655
2687
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2656
2688
  };
2689
+ imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
2690
+ const ret = Object.entries(getObject(arg0));
2691
+ return addHeapObject(ret);
2692
+ };
2657
2693
  imports.wbg.__wbg_eval_e10dc02e9547f640 = function() { return handleError(function (arg0, arg1) {
2658
2694
  const ret = eval(getStringFromWasm0(arg0, arg1));
2659
2695
  return addHeapObject(ret);
@@ -2662,6 +2698,10 @@ function __wbg_get_imports() {
2662
2698
  const ret = getObject(arg0).firstChild;
2663
2699
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2664
2700
  };
2701
+ imports.wbg.__wbg_from_2a5d3e218e67aa85 = function(arg0) {
2702
+ const ret = Array.from(getObject(arg0));
2703
+ return addHeapObject(ret);
2704
+ };
2665
2705
  imports.wbg.__wbg_getItem_17f98dee3b43fa7e = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2666
2706
  const ret = getObject(arg1).getItem(getStringFromWasm0(arg2, arg3));
2667
2707
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
@@ -2684,6 +2724,10 @@ function __wbg_get_imports() {
2684
2724
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
2685
2725
  return addHeapObject(ret);
2686
2726
  }, arguments) };
2727
+ imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
2728
+ const ret = getObject(arg0)[arg1 >>> 0];
2729
+ return addHeapObject(ret);
2730
+ };
2687
2731
  imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
2688
2732
  const ret = getObject(arg0)[getObject(arg1)];
2689
2733
  return addHeapObject(ret);
@@ -2748,6 +2792,10 @@ function __wbg_get_imports() {
2748
2792
  const ret = getObject(arg0).length;
2749
2793
  return ret;
2750
2794
  };
2795
+ imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
2796
+ const ret = getObject(arg0).length;
2797
+ return ret;
2798
+ };
2751
2799
  imports.wbg.__wbg_location_350d99456c2f3693 = function(arg0) {
2752
2800
  const ret = getObject(arg0).location;
2753
2801
  return addHeapObject(ret);
@@ -2911,8 +2959,8 @@ function __wbg_get_imports() {
2911
2959
  const ret = false;
2912
2960
  return ret;
2913
2961
  };
2914
- imports.wbg.__wbindgen_closure_wrapper141 = function(arg0, arg1, arg2) {
2915
- const ret = makeMutClosure(arg0, arg1, 4, __wbg_adapter_38);
2962
+ imports.wbg.__wbindgen_closure_wrapper150 = function(arg0, arg1, arg2) {
2963
+ const ret = makeMutClosure(arg0, arg1, 5, __wbg_adapter_38);
2916
2964
  return addHeapObject(ret);
2917
2965
  };
2918
2966
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
package/core/core_bg.wasm CHANGED
Binary file
@@ -110,6 +110,7 @@ export const openEnc: (a: number, b: number, c: number, d: number, e: number) =>
110
110
  export const openDec: (a: number, b: number, c: number, d: number, e: number) => void;
111
111
  export const getEnv: (a: number) => void;
112
112
  export const getVer: (a: number) => void;
113
+ export const cssVarGen: (a: number, b: number, c: number, d: number) => void;
113
114
  export const coreConsoleError: (a: number, b: number, c: number, d: number) => void;
114
115
  export const coreConsoleWarn: (a: number, b: number, c: number, d: number) => void;
115
116
  export const coreConsoleInfo: (a: number, b: number, c: number, d: number) => void;
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "core",
3
+ "collaborators": [
4
+ "ayin86 <ayin86cn@gmail.com>"
5
+ ],
6
+ "description": "It's a private project.",
7
+ "version": "0.3.0",
8
+ "license": "none",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/jason86cn"
12
+ },
13
+ "files": [
14
+ "core_bg.wasm",
15
+ "core.js",
16
+ "core.d.ts",
17
+ "LICENSE_APACHE",
18
+ "LICENSE_MIT"
19
+ ],
20
+ "module": "core.js",
21
+ "types": "core.d.ts",
22
+ "sideEffects": [
23
+ "./snippets/*"
24
+ ]
25
+ }