@ticatec/uniface-element 0.3.18 → 0.3.19

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.
@@ -26,10 +26,7 @@
26
26
  if (node.children == null && lazyLoader != null) {
27
27
  try {
28
28
  loading = true;
29
- const loadedChildren = await lazyLoader.load(node);
30
- for (const childData of loadedChildren) {
31
- node.append(childData);
32
- }
29
+ node.append(await lazyLoader.load(node));
33
30
  node.expand = true;
34
31
  } finally {
35
32
  loading = false;
@@ -48,7 +45,7 @@
48
45
  await loadChildren();
49
46
  // 加载完成后,如果有子节点则展开
50
47
  const children = node.children;
51
- if (children && children.length > 0) {
48
+ if (children != null && children.length > 0) {
52
49
  node.expand = true;
53
50
  }
54
51
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ticatec/uniface-element",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "description": "A comprehensive UI component library for Svelte applications with rich form controls, data tables, layouts and interactive elements",
5
5
  "keywords": [
6
6
  "svelte",
@@ -29,9 +29,14 @@
29
29
  "package": "svelte-kit sync && svelte-package && publint",
30
30
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
31
31
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
32
- "lint": "npm run check",
32
+ "lint": "eslint .",
33
+ "lint:fix": "eslint . --fix",
34
+ "format": "prettier --write .",
35
+ "format:check": "prettier --check .",
33
36
  "typecheck": "npm run check",
34
37
  "test": "npm run check",
38
+ "audit": "npm audit",
39
+ "audit:fix": "npm audit fix",
35
40
  "prepublishOnly": "rm -rf ./dist && npm run build",
36
41
  "publish:public": "npm publish --access public"
37
42
  },
@@ -371,22 +376,26 @@
371
376
  "svelte": "^5.0.0"
372
377
  },
373
378
  "devDependencies": {
379
+ "@eslint/js": "^9.18.0",
374
380
  "@sveltejs/adapter-auto": "^6.0.2",
375
381
  "@sveltejs/kit": "^2.27.3",
376
382
  "@sveltejs/package": "^2.4.1",
377
383
  "@sveltejs/vite-plugin-svelte": "^6.1.1",
378
- "@ticatec/uniface-google-material-icons": "^0.1.2",
379
- "dayjs": "^1.11.10",
384
+ "eslint": "^9.18.0",
385
+ "eslint-config-prettier": "^9.1.0",
386
+ "eslint-plugin-svelte": "^2.46.0",
387
+ "globals": "^15.14.0",
388
+ "prettier": "^3.4.2",
389
+ "prettier-plugin-svelte": "^3.3.2",
380
390
  "publint": "^0.3.2",
381
391
  "sass": "^1.90.0",
382
392
  "svelte": "^5.0.0",
383
393
  "svelte-check": "^4.3.1",
384
- "svelte-portal": "^2.2.1",
385
394
  "svelte-preprocess": "^6.0.3",
386
395
  "tslib": "^2.3.1",
387
396
  "typescript": "^5.7.3",
388
- "vite": "^6.3.5",
389
- "@ticatec/i18n": "^0.2.1"
397
+ "typescript-eslint": "^8.19.1",
398
+ "vite": "^6.3.5"
390
399
  },
391
400
  "author": "Henry Feng",
392
401
  "license": "MIT",
@@ -398,8 +407,6 @@
398
407
  "publishConfig": {
399
408
  "access": "public"
400
409
  },
401
- "dependencies": {
402
- },
403
410
  "title": "uniface-element",
404
411
  "url": "https://github.com/ticatec/uniface-element",
405
412
  "npm": "@ticatec/uniface-element",