@ticatec/uniface-element 0.3.19 → 0.3.21
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/dist/concise-data-table/DataRow.svelte.d.ts +1 -1
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/image-files/ImagePreview.svelte.d.ts +1 -1
- package/dist/lib/TreeNodes.d.ts +2 -0
- package/dist/lib/TreeNodes.js +3 -0
- package/dist/ticatec-uniface-web.css +19 -13
- package/package.json +18 -18
package/dist/lib/TreeNodes.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ export interface ITreeNode<T> {
|
|
|
64
64
|
* @returns 子节点数组,如果没有子节点返回 null
|
|
65
65
|
*/
|
|
66
66
|
get children(): Array<ITreeNode<T>> | null;
|
|
67
|
+
sort(compareFn: (a: T, b: T) => number): void;
|
|
67
68
|
append(childItem: T | Array<T>): ITreeNode<T> | Array<ITreeNode<T>>;
|
|
68
69
|
/**
|
|
69
70
|
* 从父节点中分离(删除当前节点)
|
|
@@ -157,6 +158,7 @@ declare class TreeNode<T> implements ITreeNode<T> {
|
|
|
157
158
|
* @returns 子节点数组的浅拷贝,如果没有子节点返回 null
|
|
158
159
|
*/
|
|
159
160
|
get children(): Array<TreeNode<T>> | null;
|
|
161
|
+
sort(compareFn: (a: T, b: T) => number): void;
|
|
160
162
|
set children(value: Array<TreeNode<T>>);
|
|
161
163
|
/**
|
|
162
164
|
* 添加子节点
|
package/dist/lib/TreeNodes.js
CHANGED
|
@@ -131,6 +131,9 @@ class TreeNode {
|
|
|
131
131
|
get children() {
|
|
132
132
|
return this._children ? [...this._children] : null;
|
|
133
133
|
}
|
|
134
|
+
sort(compareFn) {
|
|
135
|
+
this._children?.sort((c1, c2) => compareFn(c1.item, c2.item));
|
|
136
|
+
}
|
|
134
137
|
set children(value) {
|
|
135
138
|
this._children = value;
|
|
136
139
|
}
|
|
@@ -428,10 +428,6 @@
|
|
|
428
428
|
background-color: var(--uniface-plain-hover-border-color, #b3d8ff);
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
-
.options-popover {
|
|
432
|
-
user-select: none;
|
|
433
|
-
max-height: 30vh;
|
|
434
|
-
}
|
|
435
431
|
.options-popover .more-indicator-footer {
|
|
436
432
|
line-height: 24px;
|
|
437
433
|
color: #B3BCCA;
|
|
@@ -448,6 +444,10 @@
|
|
|
448
444
|
right: 0;
|
|
449
445
|
color: rgba(255, 255, 255, 0.1254901961);
|
|
450
446
|
}
|
|
447
|
+
.options-popover {
|
|
448
|
+
user-select: none;
|
|
449
|
+
max-height: 30vh;
|
|
450
|
+
}
|
|
451
451
|
.options-popover .option-item {
|
|
452
452
|
width: 100%;
|
|
453
453
|
box-sizing: border-box;
|
|
@@ -791,7 +791,7 @@
|
|
|
791
791
|
visibility: hidden;
|
|
792
792
|
display: none;
|
|
793
793
|
}
|
|
794
|
-
.switch-box
|
|
794
|
+
.switch-box, .switch-box::after, .switch-box::before {
|
|
795
795
|
box-sizing: border-box;
|
|
796
796
|
}
|
|
797
797
|
.switch-box .switch {
|
|
@@ -1354,7 +1354,6 @@
|
|
|
1354
1354
|
transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
|
|
1355
1355
|
border: none;
|
|
1356
1356
|
outline: none;
|
|
1357
|
-
/*普通按钮*/
|
|
1358
1357
|
}
|
|
1359
1358
|
.uniface-button.common-button.default, .uniface-button.icon-button.default {
|
|
1360
1359
|
background-color: var(--uniface-button-plain-background-color, #f0f0f0);
|
|
@@ -1428,6 +1427,9 @@
|
|
|
1428
1427
|
background-color: var(--uniface-disabled-button-color, #F1F5F9);
|
|
1429
1428
|
color: var(--uniface-disabled-button-text-color, #B3BCCA);
|
|
1430
1429
|
}
|
|
1430
|
+
.uniface-button {
|
|
1431
|
+
/*普通按钮*/
|
|
1432
|
+
}
|
|
1431
1433
|
.uniface-button.common-button {
|
|
1432
1434
|
padding: 0 16px;
|
|
1433
1435
|
border-radius: 4px;
|
|
@@ -3317,11 +3319,13 @@ root {
|
|
|
3317
3319
|
color: var(--uniface-progress-step-pending-color, #B3BCCA);
|
|
3318
3320
|
margin-left: 8px;
|
|
3319
3321
|
background-color: inherit;
|
|
3320
|
-
background: linear-gradient(to bottom, transparent 12px, var(--uniface-progress-step-pending-color, #B3BCCA) 12px, var(--uniface-progress-step-pending-color, #B3BCCA) 14px, transparent 14px);
|
|
3321
3322
|
}
|
|
3322
3323
|
.uniface-progress-step-container .progress-step-block:first-child {
|
|
3323
3324
|
margin-left: 0;
|
|
3324
3325
|
}
|
|
3326
|
+
.uniface-progress-step-container .progress-step-block {
|
|
3327
|
+
background: linear-gradient(to bottom, transparent 12px, var(--uniface-progress-step-pending-color, #B3BCCA) 12px, var(--uniface-progress-step-pending-color, #B3BCCA) 14px, transparent 14px);
|
|
3328
|
+
}
|
|
3325
3329
|
.uniface-progress-step-container .progress-step-block .step-indicator {
|
|
3326
3330
|
flex: 0 0 auto;
|
|
3327
3331
|
padding-right: 12px;
|
|
@@ -3917,17 +3921,17 @@ root {
|
|
|
3917
3921
|
background-color: var(--uniface-data-table-bg, #ffffff);
|
|
3918
3922
|
border-top: 1px solid var(--uniface-data-table-inline-border-color, rgba(225, 225, 225, 0.5019607843));
|
|
3919
3923
|
}
|
|
3920
|
-
.uniface-data-table .left-fixed-panel {
|
|
3921
|
-
z-index: 1;
|
|
3922
|
-
border-right: 1px solid var(--uniface-data-table-inline-border-color, rgba(225, 225, 225, 0.5019607843));
|
|
3923
|
-
box-shadow: var(--uniface-data-table-separator-shadow, rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px);
|
|
3924
|
-
}
|
|
3925
3924
|
.uniface-data-table .left-fixed-panel .data-cell {
|
|
3926
3925
|
flex: 0 0 auto;
|
|
3927
3926
|
}
|
|
3928
3927
|
.uniface-data-table .left-fixed-panel .data-cell:last-child {
|
|
3929
3928
|
border-right: none;
|
|
3930
3929
|
}
|
|
3930
|
+
.uniface-data-table .left-fixed-panel {
|
|
3931
|
+
z-index: 1;
|
|
3932
|
+
border-right: 1px solid var(--uniface-data-table-inline-border-color, rgba(225, 225, 225, 0.5019607843));
|
|
3933
|
+
box-shadow: var(--uniface-data-table-separator-shadow, rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px);
|
|
3934
|
+
}
|
|
3931
3935
|
.uniface-data-table .left-fixed-panel .indicator-cell {
|
|
3932
3936
|
display: flex;
|
|
3933
3937
|
flex-direction: row;
|
|
@@ -4271,13 +4275,15 @@ html {
|
|
|
4271
4275
|
left: 0;
|
|
4272
4276
|
width: 100%;
|
|
4273
4277
|
height: 100%;
|
|
4274
|
-
z-index: 100;
|
|
4275
4278
|
}
|
|
4276
4279
|
.uniface-mask > div, .uniface-mask-overlay > div {
|
|
4277
4280
|
position: relative;
|
|
4278
4281
|
width: 100%;
|
|
4279
4282
|
height: 100%;
|
|
4280
4283
|
}
|
|
4284
|
+
.uniface-mask, .uniface-mask-overlay {
|
|
4285
|
+
z-index: 100;
|
|
4286
|
+
}
|
|
4281
4287
|
|
|
4282
4288
|
.uniface-mask {
|
|
4283
4289
|
background-color: rgba(255, 255, 255, 0.0039215686);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ticatec/uniface-element",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.21",
|
|
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",
|
|
@@ -376,26 +376,26 @@
|
|
|
376
376
|
"svelte": "^5.0.0"
|
|
377
377
|
},
|
|
378
378
|
"devDependencies": {
|
|
379
|
-
"@eslint/js": "^
|
|
380
|
-
"@sveltejs/adapter-auto": "^
|
|
381
|
-
"@sveltejs/kit": "^2.
|
|
382
|
-
"@sveltejs/package": "^2.
|
|
383
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
384
|
-
"eslint": "^
|
|
385
|
-
"eslint-config-prettier": "^
|
|
386
|
-
"eslint-plugin-svelte": "^
|
|
387
|
-
"globals": "^
|
|
379
|
+
"@eslint/js": "^10.0.1",
|
|
380
|
+
"@sveltejs/adapter-auto": "^7.0.1",
|
|
381
|
+
"@sveltejs/kit": "^2.60.1",
|
|
382
|
+
"@sveltejs/package": "^2.5.7",
|
|
383
|
+
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
|
384
|
+
"eslint": "^10.4.0",
|
|
385
|
+
"eslint-config-prettier": "^10.1.8",
|
|
386
|
+
"eslint-plugin-svelte": "^3.17.1",
|
|
387
|
+
"globals": "^17.6.0",
|
|
388
388
|
"prettier": "^3.4.2",
|
|
389
|
-
"prettier-plugin-svelte": "^
|
|
390
|
-
"publint": "^0.3.
|
|
391
|
-
"sass": "^1.
|
|
392
|
-
"svelte": "^5.
|
|
393
|
-
"svelte-check": "^4.
|
|
389
|
+
"prettier-plugin-svelte": "^4.0.0",
|
|
390
|
+
"publint": "^0.3.21",
|
|
391
|
+
"sass": "^1.99.0",
|
|
392
|
+
"svelte": "^5.55.9",
|
|
393
|
+
"svelte-check": "^4.4.8",
|
|
394
394
|
"svelte-preprocess": "^6.0.3",
|
|
395
|
-
"tslib": "^2.
|
|
395
|
+
"tslib": "^2.8.1",
|
|
396
396
|
"typescript": "^5.7.3",
|
|
397
|
-
"typescript-eslint": "^8.
|
|
398
|
-
"vite": "^
|
|
397
|
+
"typescript-eslint": "^8.59.4",
|
|
398
|
+
"vite": "^8.0.13"
|
|
399
399
|
},
|
|
400
400
|
"author": "Henry Feng",
|
|
401
401
|
"license": "MIT",
|