@niivue/uikit 1.0.0-rc.41 → 1.0.0-rc.43
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/uikit.js +9 -9
- package/package.json +3 -3
package/dist/uikit.js
CHANGED
|
@@ -3277,7 +3277,8 @@ var Gt = class {
|
|
|
3277
3277
|
style: n,
|
|
3278
3278
|
layout: null,
|
|
3279
3279
|
names: [],
|
|
3280
|
-
busy: !1
|
|
3280
|
+
busy: !1,
|
|
3281
|
+
pickSeq: 0
|
|
3281
3282
|
}, this.entries.set(e.id, r)), this.placeButton(r), this.invalidate();
|
|
3282
3283
|
}
|
|
3283
3284
|
setFilePickers(e) {
|
|
@@ -3392,31 +3393,30 @@ var Gt = class {
|
|
|
3392
3393
|
});
|
|
3393
3394
|
}
|
|
3394
3395
|
pick(e) {
|
|
3395
|
-
if (e.busy) return;
|
|
3396
3396
|
let t = e.spec;
|
|
3397
3397
|
this.pickFiles ??= Vt();
|
|
3398
|
-
let n = this.pickFiles;
|
|
3398
|
+
let n = this.pickFiles, r = ++e.pickSeq;
|
|
3399
3399
|
e.busy = !0;
|
|
3400
|
-
let
|
|
3401
|
-
if (e.busy = !1, this.entries.get(t.id) === e) {
|
|
3400
|
+
let i = (n) => {
|
|
3401
|
+
if (r === e.pickSeq && (e.busy = !1, this.entries.get(t.id) === e)) {
|
|
3402
3402
|
if (n.length === 0) {
|
|
3403
3403
|
e.spec.onCancel?.(t.id);
|
|
3404
3404
|
return;
|
|
3405
3405
|
}
|
|
3406
3406
|
e.names = n.map((e) => e.name), this.invalidate(), e.spec.onPick?.(n, t.id);
|
|
3407
3407
|
}
|
|
3408
|
-
},
|
|
3408
|
+
}, a;
|
|
3409
3409
|
try {
|
|
3410
|
-
|
|
3410
|
+
a = n({
|
|
3411
3411
|
accept: t.accept,
|
|
3412
3412
|
multiple: t.multiple,
|
|
3413
3413
|
directory: t.directory
|
|
3414
3414
|
});
|
|
3415
3415
|
} catch {
|
|
3416
|
-
|
|
3416
|
+
i([]);
|
|
3417
3417
|
return;
|
|
3418
3418
|
}
|
|
3419
|
-
|
|
3419
|
+
a.then(i, () => i([]));
|
|
3420
3420
|
}
|
|
3421
3421
|
};
|
|
3422
3422
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@niivue/uikit",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.43",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "UIKit: controls and widgets integrated into the NiiVue rendering lifecycle",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"test": "bun test"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@niivue/niivue": "1.0.0-rc.
|
|
47
|
+
"@niivue/niivue": "1.0.0-rc.52"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@niivue/dev-images": "0.1.0",
|
|
51
|
-
"@niivue/niivue": "1.0.0-rc.
|
|
51
|
+
"@niivue/niivue": "1.0.0-rc.52",
|
|
52
52
|
"@types/bun": "^1.3.12",
|
|
53
53
|
"@webgpu/types": "^0.1.69",
|
|
54
54
|
"typescript": "^5.9.3",
|