@king-design/vue 3.6.0 → 3.6.2-beta.0
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/__tests__/__snapshots__/Vue Next Demos.md +15 -15
- package/__tests__/components/editable.spec.ts +1 -1
- package/__tests__/components/table.spec.ts +1 -0
- package/components/copy/index.spec.js +14 -31
- package/components/datepicker/index.spec.js +646 -608
- package/components/datepicker/useValueBase.js +5 -2
- package/components/dropdown/constants.d.ts +22 -0
- package/components/dropdown/constants.js +7 -0
- package/components/dropdown/item.js +1 -1
- package/components/dropdown/menu.js +1 -1
- package/components/dropdown/useItemKeyboard.d.ts +6 -0
- package/components/dropdown/useItemKeyboard.js +32 -0
- package/components/dropdown/useMenuKeyboard.d.ts +2 -0
- package/components/dropdown/{useKeyboard.js → useMenuKeyboard.js} +3 -38
- package/components/form/form.d.ts +1 -0
- package/components/form/form.js +7 -0
- package/components/form/index.spec.js +10 -8
- package/components/menu/index.spec.js +28 -0
- package/components/menu/styles.js +2 -2
- package/components/select/index.spec.js +231 -177
- package/components/select/menu.js +1 -1
- package/components/select/useCard.d.ts +4 -3
- package/components/select/useCard.js +15 -4
- package/components/spinner/index.spec.js +82 -44
- package/components/spinner/useValue.js +2 -1
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +2 -2
- package/yarn-error.log +44 -43
- package/components/dropdown/useKeyboard.d.ts +0 -23
|
@@ -16,7 +16,7 @@ export var SelectMenu = /*#__PURE__*/function (_Component) {
|
|
|
16
16
|
}
|
|
17
17
|
_this = _Component.call.apply(_Component, _concatInstanceProperty(_context = [this]).call(_context, args)) || this;
|
|
18
18
|
_this.select = inject(SELECT);
|
|
19
|
-
_this.card = useCard(_this.select.label.activeIndices);
|
|
19
|
+
_this.card = useCard(_this.select.label.activeIndices, _this.select.input.keywords);
|
|
20
20
|
_this.searchable = useSearchable();
|
|
21
21
|
_this.config = useConfigContext();
|
|
22
22
|
return _this;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Children, NonNullableRefObject } from 'intact-vue-next';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { State } from '../../hooks/useState';
|
|
3
|
+
export declare function useCard(defaultActiveIndex: NonNullableRefObject<number[]>, keywords: State<string>): {
|
|
4
|
+
process: (children: Children, isSearching: boolean) => {
|
|
4
5
|
labels: Children[] | import('intact-vue-next').Block<any>[];
|
|
5
6
|
group: Children[];
|
|
6
7
|
};
|
|
7
|
-
activeIndex:
|
|
8
|
+
activeIndex: State<number>;
|
|
8
9
|
};
|
|
@@ -2,11 +2,22 @@ import { useInstance } from 'intact-vue-next';
|
|
|
2
2
|
import { eachChildren, isComponentVNode, last } from '../utils';
|
|
3
3
|
import { EMPTY_OBJ } from 'intact-shared';
|
|
4
4
|
import { OptionGroup } from './group';
|
|
5
|
-
import { useState } from '../../hooks/useState';
|
|
6
|
-
export function useCard(defaultActiveIndex) {
|
|
7
|
-
var
|
|
5
|
+
import { useState, watchState } from '../../hooks/useState';
|
|
6
|
+
export function useCard(defaultActiveIndex, keywords) {
|
|
7
|
+
var instance = useInstance();
|
|
8
8
|
var activeIndex = useState(last(defaultActiveIndex.value) || 0);
|
|
9
|
-
function
|
|
9
|
+
watchState(keywords, function (keywords) {
|
|
10
|
+
if (keywords) {
|
|
11
|
+
activeIndex.set(0);
|
|
12
|
+
} else {
|
|
13
|
+
setDefaultActiveIndex();
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
instance.select.on('show', setDefaultActiveIndex);
|
|
17
|
+
function setDefaultActiveIndex() {
|
|
18
|
+
activeIndex.set(last(defaultActiveIndex.value) || 0);
|
|
19
|
+
}
|
|
20
|
+
function process(children, isSearching) {
|
|
10
21
|
var groupLabels = [];
|
|
11
22
|
var _children = [];
|
|
12
23
|
var index = 0;
|
|
@@ -321,100 +321,138 @@ describe('Spinner', function () {
|
|
|
321
321
|
}
|
|
322
322
|
}, _callee6);
|
|
323
323
|
})));
|
|
324
|
-
it('
|
|
325
|
-
var _mount8, instance, element
|
|
326
|
-
return _regeneratorRuntime.wrap(function
|
|
327
|
-
while (1) switch (
|
|
324
|
+
it('forceStep without min value', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
|
|
325
|
+
var Demo, _mount8, instance, element;
|
|
326
|
+
return _regeneratorRuntime.wrap(function _callee7$(_context10) {
|
|
327
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
328
328
|
case 0:
|
|
329
|
-
|
|
330
|
-
|
|
329
|
+
Demo = /*#__PURE__*/function (_Component3) {
|
|
330
|
+
_inheritsLoose(Demo, _Component3);
|
|
331
|
+
function Demo() {
|
|
331
332
|
var _context9;
|
|
332
|
-
var
|
|
333
|
-
|
|
334
|
-
|
|
333
|
+
var _this3;
|
|
334
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
335
|
+
args[_key3] = arguments[_key3];
|
|
336
|
+
}
|
|
337
|
+
_this3 = _Component3.call.apply(_Component3, _concatInstanceProperty(_context9 = [this]).call(_context9, args)) || this;
|
|
338
|
+
_this3.Spinner = Spinner;
|
|
339
|
+
return _this3;
|
|
340
|
+
}
|
|
341
|
+
Demo.defaults = function defaults() {
|
|
342
|
+
return {
|
|
343
|
+
value: 1
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
return Demo;
|
|
347
|
+
}(Component);
|
|
348
|
+
Demo.template = "const {Spinner} = this;\n <Spinner step={1} v-model=\"value\" forceStep />\n ";
|
|
349
|
+
_mount8 = mount(Demo), instance = _mount8[0], element = _mount8[1];
|
|
350
|
+
expect(instance.get('value')).to.eql(1);
|
|
351
|
+
instance.set('value', -1);
|
|
352
|
+
_context10.next = 7;
|
|
353
|
+
return wait();
|
|
354
|
+
case 7:
|
|
355
|
+
expect(instance.get('value')).to.eql(-1);
|
|
356
|
+
case 8:
|
|
357
|
+
case "end":
|
|
358
|
+
return _context10.stop();
|
|
359
|
+
}
|
|
360
|
+
}, _callee7);
|
|
361
|
+
})));
|
|
362
|
+
it('dynamic step', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
|
|
363
|
+
var _mount9, instance, element, btns, test, _test;
|
|
364
|
+
return _regeneratorRuntime.wrap(function _callee9$(_context13) {
|
|
365
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
366
|
+
case 0:
|
|
367
|
+
_test = function _test3() {
|
|
368
|
+
_test = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(index) {
|
|
369
|
+
var _context11;
|
|
370
|
+
var _ref9, prev, next, model;
|
|
371
|
+
return _regeneratorRuntime.wrap(function _callee8$(_context12) {
|
|
372
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
335
373
|
case 0:
|
|
336
|
-
|
|
374
|
+
_ref9 = index === 1 ? btns : _sliceInstanceProperty(_context11 = _Array$from(btns)).call(_context11, 2), prev = _ref9[0], next = _ref9[1];
|
|
337
375
|
model = "value" + index;
|
|
338
376
|
prev.click();
|
|
339
|
-
|
|
377
|
+
_context12.next = 5;
|
|
340
378
|
return wait();
|
|
341
379
|
case 5:
|
|
342
380
|
expect(instance.get(model)).to.eql(-1);
|
|
343
381
|
instance.set(model, -5);
|
|
344
|
-
|
|
382
|
+
_context12.next = 9;
|
|
345
383
|
return wait();
|
|
346
384
|
case 9:
|
|
347
385
|
prev.click();
|
|
348
|
-
|
|
386
|
+
_context12.next = 12;
|
|
349
387
|
return wait();
|
|
350
388
|
case 12:
|
|
351
389
|
expect(instance.get(model)).to.eql(-10);
|
|
352
390
|
next.click();
|
|
353
|
-
|
|
391
|
+
_context12.next = 16;
|
|
354
392
|
return wait();
|
|
355
393
|
case 16:
|
|
356
394
|
expect(instance.get(model)).to.eql(-5);
|
|
357
395
|
next.click();
|
|
358
|
-
|
|
396
|
+
_context12.next = 20;
|
|
359
397
|
return wait();
|
|
360
398
|
case 20:
|
|
361
399
|
expect(instance.get(model)).to.eql(-4);
|
|
362
400
|
instance.set(model, 5);
|
|
363
|
-
|
|
401
|
+
_context12.next = 24;
|
|
364
402
|
return wait();
|
|
365
403
|
case 24:
|
|
366
404
|
next.click();
|
|
367
|
-
|
|
405
|
+
_context12.next = 27;
|
|
368
406
|
return wait();
|
|
369
407
|
case 27:
|
|
370
408
|
expect(instance.get(model)).to.eql(10);
|
|
371
409
|
prev.click();
|
|
372
|
-
|
|
410
|
+
_context12.next = 31;
|
|
373
411
|
return wait();
|
|
374
412
|
case 31:
|
|
375
413
|
expect(instance.get(model)).to.eql(5);
|
|
376
414
|
prev.click();
|
|
377
|
-
|
|
415
|
+
_context12.next = 35;
|
|
378
416
|
return wait();
|
|
379
417
|
case 35:
|
|
380
418
|
expect(instance.get(model)).to.eql(4);
|
|
381
419
|
case 36:
|
|
382
420
|
case "end":
|
|
383
|
-
return
|
|
421
|
+
return _context12.stop();
|
|
384
422
|
}
|
|
385
|
-
},
|
|
423
|
+
}, _callee8);
|
|
386
424
|
}));
|
|
387
425
|
return _test.apply(this, arguments);
|
|
388
426
|
};
|
|
389
427
|
test = function _test2(_x) {
|
|
390
428
|
return _test.apply(this, arguments);
|
|
391
429
|
};
|
|
392
|
-
|
|
430
|
+
_mount9 = mount(DynamicStepDemo), instance = _mount9[0], element = _mount9[1];
|
|
393
431
|
btns = element.querySelectorAll('.k-btn');
|
|
394
|
-
|
|
432
|
+
_context13.next = 6;
|
|
395
433
|
return test(1);
|
|
396
434
|
case 6:
|
|
397
435
|
case "end":
|
|
398
|
-
return
|
|
436
|
+
return _context13.stop();
|
|
399
437
|
}
|
|
400
|
-
},
|
|
438
|
+
}, _callee9);
|
|
401
439
|
})));
|
|
402
|
-
it('should set correct value with dynamic step when min is not equal 0', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
403
|
-
var Demo,
|
|
404
|
-
return _regeneratorRuntime.wrap(function
|
|
405
|
-
while (1) switch (
|
|
440
|
+
it('should set correct value with dynamic step when min is not equal 0', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10() {
|
|
441
|
+
var Demo, _mount10, instance, element, _element$querySelecto5, prev, next;
|
|
442
|
+
return _regeneratorRuntime.wrap(function _callee10$(_context15) {
|
|
443
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
406
444
|
case 0:
|
|
407
|
-
Demo = /*#__PURE__*/function (
|
|
408
|
-
_inheritsLoose(Demo,
|
|
445
|
+
Demo = /*#__PURE__*/function (_Component4) {
|
|
446
|
+
_inheritsLoose(Demo, _Component4);
|
|
409
447
|
function Demo() {
|
|
410
|
-
var
|
|
411
|
-
var
|
|
412
|
-
for (var
|
|
413
|
-
args[
|
|
448
|
+
var _context14;
|
|
449
|
+
var _this4;
|
|
450
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
451
|
+
args[_key4] = arguments[_key4];
|
|
414
452
|
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
return
|
|
453
|
+
_this4 = _Component4.call.apply(_Component4, _concatInstanceProperty(_context14 = [this]).call(_context14, args)) || this;
|
|
454
|
+
_this4.Spinner = Spinner;
|
|
455
|
+
return _this4;
|
|
418
456
|
}
|
|
419
457
|
Demo.defaults = function defaults() {
|
|
420
458
|
return {
|
|
@@ -424,27 +462,27 @@ describe('Spinner', function () {
|
|
|
424
462
|
return Demo;
|
|
425
463
|
}(Component);
|
|
426
464
|
Demo.template = "const {Spinner} = this; <Spinner min={30}\n max={500}\n step={{100: 10, 500: 50}}\n v-model=\"value\"\n forceStep\n />";
|
|
427
|
-
|
|
465
|
+
_mount10 = mount(Demo), instance = _mount10[0], element = _mount10[1];
|
|
428
466
|
_element$querySelecto5 = element.querySelectorAll('.k-btn'), prev = _element$querySelecto5[0], next = _element$querySelecto5[1];
|
|
429
467
|
next.click();
|
|
430
|
-
|
|
468
|
+
_context15.next = 7;
|
|
431
469
|
return wait();
|
|
432
470
|
case 7:
|
|
433
471
|
expect(instance.get('value')).to.eql(150);
|
|
434
472
|
prev.click();
|
|
435
|
-
|
|
473
|
+
_context15.next = 11;
|
|
436
474
|
return wait();
|
|
437
475
|
case 11:
|
|
438
476
|
expect(instance.get('value')).to.eql(100);
|
|
439
477
|
prev.click();
|
|
440
|
-
|
|
478
|
+
_context15.next = 15;
|
|
441
479
|
return wait();
|
|
442
480
|
case 15:
|
|
443
481
|
expect(instance.get('value')).to.eql(90);
|
|
444
482
|
case 16:
|
|
445
483
|
case "end":
|
|
446
|
-
return
|
|
484
|
+
return _context15.stop();
|
|
447
485
|
}
|
|
448
|
-
},
|
|
486
|
+
}, _callee10);
|
|
449
487
|
})));
|
|
450
488
|
});
|
|
@@ -78,7 +78,8 @@ export function minMaxStep(value, min, max, step) {
|
|
|
78
78
|
if (value >= max) return max;
|
|
79
79
|
if (value <= min) return min;
|
|
80
80
|
if (step) {
|
|
81
|
-
|
|
81
|
+
var _min = min === -Infinity ? 0 : min;
|
|
82
|
+
value = Number((Math.round((value - _min) / step) * step + _min).toFixed(10));
|
|
82
83
|
// value = Number((Math.round(value / step) * step).toFixed(10))
|
|
83
84
|
return minMaxStep(value, min, max, null);
|
|
84
85
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @king-design v3.6.0
|
|
2
|
+
* @king-design v3.6.2-beta.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Kingsoft Cloud
|
|
5
5
|
* Released under the MIT License
|
|
@@ -66,7 +66,7 @@ export * from './components/upload';
|
|
|
66
66
|
export * from './components/view';
|
|
67
67
|
export * from './components/virtualList';
|
|
68
68
|
export * from './components/wave';
|
|
69
|
-
export declare const version = "3.6.0";
|
|
69
|
+
export declare const version = "3.6.2-beta.0";
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
export {normalize} from 'intact-vue-next';
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @king-design v3.6.0
|
|
2
|
+
* @king-design v3.6.2-beta.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Kingsoft Cloud
|
|
5
5
|
* Released under the MIT License
|
|
@@ -67,7 +67,7 @@ export * from './components/upload';
|
|
|
67
67
|
export * from './components/view';
|
|
68
68
|
export * from './components/virtualList';
|
|
69
69
|
export * from './components/wave';
|
|
70
|
-
export var version = '3.6.0';
|
|
70
|
+
export var version = '3.6.2-beta.0';
|
|
71
71
|
/* generate end */
|
|
72
72
|
|
|
73
73
|
export {normalize} from 'intact-vue-next';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@king-design/vue",
|
|
3
|
-
"version": "3.6.0",
|
|
3
|
+
"version": "3.6.2-beta.0",
|
|
4
4
|
"description": "King-Design UI components for Vue3.0.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"component",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@emotion/css": "^11.5.0",
|
|
38
38
|
"dayjs": "^1.10.7",
|
|
39
39
|
"enquire.js": "^2.1.6",
|
|
40
|
-
"intact-vue-next": "3.0.
|
|
40
|
+
"intact-vue-next": "3.0.44",
|
|
41
41
|
"monaco-editor": "^0.26.1",
|
|
42
42
|
"mxgraphx": "^4.0.7",
|
|
43
43
|
"resize-observer-polyfill": "^1.5.1",
|
package/yarn-error.log
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Arguments:
|
|
2
|
-
/
|
|
2
|
+
/home/javey/.nvm/versions/node/v14.21.3/bin/node /usr/share/yarn/bin/yarn.js --registry=https://registry.npmjs.org
|
|
3
3
|
|
|
4
4
|
PATH:
|
|
5
|
-
/usr/local/bin:/usr/bin:/bin:/usr/
|
|
5
|
+
/tmp/yarn--1709196756448-0.38987287096922607:/home/javey/Workspaces/kpc/node_modules/.bin:/home/javey/.config/yarn/link/node_modules/.bin:/home/javey/.nvm/versions/node/v14.21.3/libexec/lib/node_modules/npm/bin/node-gyp-bin:/home/javey/.nvm/versions/node/v14.21.3/lib/node_modules/npm/bin/node-gyp-bin:/home/javey/.nvm/versions/node/v14.21.3/bin/node_modules/npm/bin/node-gyp-bin:/home/javey/.nvm/versions/node/v14.21.3/bin:/home/javey/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/javey/.yarn/bin:/home/javey/.local/bin:/home/javey/.yarn/bin:/home/javey/.local/bin
|
|
6
6
|
|
|
7
7
|
Yarn version:
|
|
8
8
|
1.22.19
|
|
@@ -11,18 +11,18 @@ Node version:
|
|
|
11
11
|
14.21.3
|
|
12
12
|
|
|
13
13
|
Platform:
|
|
14
|
-
|
|
14
|
+
linux x64
|
|
15
15
|
|
|
16
16
|
Trace:
|
|
17
|
-
Error: https://registry.npmjs.org/intact-vue-next
|
|
18
|
-
at Timeout._onTimeout (/usr/
|
|
17
|
+
Error: https://registry.npmjs.org/intact-vue-next: ETIMEDOUT
|
|
18
|
+
at Timeout._onTimeout (/usr/share/yarn/lib/cli.js:141550:19)
|
|
19
19
|
at listOnTimeout (internal/timers.js:557:17)
|
|
20
20
|
at processTimers (internal/timers.js:500:7)
|
|
21
21
|
|
|
22
22
|
npm manifest:
|
|
23
23
|
{
|
|
24
24
|
"name": "@king-design/vue",
|
|
25
|
-
"version": "3.
|
|
25
|
+
"version": "3.2.0",
|
|
26
26
|
"description": "King-Design UI components for Vue3.0.",
|
|
27
27
|
"keywords": [
|
|
28
28
|
"component",
|
|
@@ -59,7 +59,7 @@ npm manifest:
|
|
|
59
59
|
"@emotion/css": "^11.5.0",
|
|
60
60
|
"dayjs": "^1.10.7",
|
|
61
61
|
"enquire.js": "^2.1.6",
|
|
62
|
-
"intact-vue-next": "3.0.
|
|
62
|
+
"intact-vue-next": "3.0.31",
|
|
63
63
|
"monaco-editor": "^0.26.1",
|
|
64
64
|
"mxgraphx": "^4.0.7",
|
|
65
65
|
"resize-observer-polyfill": "^1.5.1",
|
|
@@ -67,7 +67,8 @@ npm manifest:
|
|
|
67
67
|
"tslib": "^2.3.1"
|
|
68
68
|
},
|
|
69
69
|
"sideEffects": [
|
|
70
|
-
"
|
|
70
|
+
"**/*/styles/global.*",
|
|
71
|
+
"**/*/styles/fonts/*"
|
|
71
72
|
],
|
|
72
73
|
"devDependencies": {
|
|
73
74
|
"@vue/babel-plugin-jsx": "^1.1.5",
|
|
@@ -708,30 +709,30 @@ Lockfile:
|
|
|
708
709
|
parent-module "^1.0.0"
|
|
709
710
|
resolve-from "^4.0.0"
|
|
710
711
|
|
|
711
|
-
intact-shared@^3.0.
|
|
712
|
-
version "3.0.
|
|
713
|
-
resolved "https://registry.npmjs.org/intact-shared/-/intact-shared-3.0.
|
|
714
|
-
integrity sha512-
|
|
712
|
+
intact-shared@^3.0.30:
|
|
713
|
+
version "3.0.30"
|
|
714
|
+
resolved "https://registry.npmjs.org/intact-shared/-/intact-shared-3.0.30.tgz#ba07cad0f88a3ad6dfae4a2e3dd7c8bac0b1713b"
|
|
715
|
+
integrity sha512-Umk8DDJSNvGKnccSH3VhkHiaLEVabgAupFmDACMbT2pW8phjVRqJxTzTOeyCX+1NEPkxouEAvtNKPWngVsLquw==
|
|
715
716
|
|
|
716
|
-
intact-vue-next@3.0.
|
|
717
|
-
version "3.0.
|
|
718
|
-
resolved "https://registry.npmjs.org/intact-vue-next/-/intact-vue-next-3.0.
|
|
719
|
-
integrity sha512-
|
|
717
|
+
intact-vue-next@3.0.30:
|
|
718
|
+
version "3.0.30"
|
|
719
|
+
resolved "https://registry.npmjs.org/intact-vue-next/-/intact-vue-next-3.0.30.tgz#6e5301d52b19bed602b434424502a311712f464e"
|
|
720
|
+
integrity sha512-MqRhCxS0j7T8x+dRsnPaDGRE+i7A6XJ7gpxtMa33IYCNsOY/a/mGNRT3cvXvjY43+OunwV5IrT6x4w/fwAiaPQ==
|
|
720
721
|
dependencies:
|
|
721
|
-
intact "^3.0.
|
|
722
|
-
intact-shared "^3.0.
|
|
722
|
+
intact "^3.0.30"
|
|
723
|
+
intact-shared "^3.0.30"
|
|
723
724
|
tslib "^2.3.1"
|
|
724
725
|
|
|
725
|
-
intact@^3.0.
|
|
726
|
-
version "3.0.
|
|
727
|
-
resolved "https://registry.npmjs.org/intact/-/intact-3.0.
|
|
728
|
-
integrity sha512-
|
|
726
|
+
intact@^3.0.30:
|
|
727
|
+
version "3.0.30"
|
|
728
|
+
resolved "https://registry.npmjs.org/intact/-/intact-3.0.30.tgz#b6eff7635dddb2d351710853891799f5b32e2666"
|
|
729
|
+
integrity sha512-1hdp7oiELdVdeCCh8+CFlkGx5NoNe5HNE3Gaz84tt0DE17BS87rH6h3ByPChqYvEgfuvN8l2/Iobl5PNJWOuGQ==
|
|
729
730
|
dependencies:
|
|
730
|
-
intact-shared "^3.0.
|
|
731
|
-
misstime "^3.0.
|
|
731
|
+
intact-shared "^3.0.30"
|
|
732
|
+
misstime "^3.0.30"
|
|
732
733
|
tslib "^2.2.0"
|
|
733
|
-
vdt "^3.0.
|
|
734
|
-
vdt-compiler "^3.0.
|
|
734
|
+
vdt "^3.0.30"
|
|
735
|
+
vdt-compiler "^3.0.30"
|
|
735
736
|
|
|
736
737
|
is-arrayish@^0.2.1:
|
|
737
738
|
version "0.2.1"
|
|
@@ -807,12 +808,12 @@ Lockfile:
|
|
|
807
808
|
resolved "https://registry.npmmirror.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
|
|
808
809
|
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
|
|
809
810
|
|
|
810
|
-
misstime@^3.0.
|
|
811
|
-
version "3.0.
|
|
812
|
-
resolved "https://registry.npmjs.org/misstime/-/misstime-3.0.
|
|
813
|
-
integrity sha512-
|
|
811
|
+
misstime@^3.0.30:
|
|
812
|
+
version "3.0.30"
|
|
813
|
+
resolved "https://registry.npmjs.org/misstime/-/misstime-3.0.30.tgz#59a307e3b099cf988e03eef25d67921ec2131db5"
|
|
814
|
+
integrity sha512-UoDxIiRZl0i4IOPyJpDLc/rxxPEU9Co3H5rwrZeTxrQFQBTbaP/JxUYJ76hnYqeSDOC9doN7jeSrHH+3oTqfig==
|
|
814
815
|
dependencies:
|
|
815
|
-
intact-shared "^3.0.
|
|
816
|
+
intact-shared "^3.0.30"
|
|
816
817
|
|
|
817
818
|
monaco-editor@^0.26.1:
|
|
818
819
|
version "0.26.1"
|
|
@@ -953,22 +954,22 @@ Lockfile:
|
|
|
953
954
|
resolved "https://registry.npmmirror.com/tslib/-/tslib-2.6.1.tgz#fd8c9a0ff42590b25703c0acb3de3d3f4ede0410"
|
|
954
955
|
integrity sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==
|
|
955
956
|
|
|
956
|
-
vdt-compiler@^3.0.
|
|
957
|
-
version "3.0.
|
|
958
|
-
resolved "https://registry.npmjs.org/vdt-compiler/-/vdt-compiler-3.0.
|
|
959
|
-
integrity sha512-
|
|
957
|
+
vdt-compiler@^3.0.30:
|
|
958
|
+
version "3.0.30"
|
|
959
|
+
resolved "https://registry.npmjs.org/vdt-compiler/-/vdt-compiler-3.0.30.tgz#557368a09ac602e2c5ef90fd421bc6c86f92df19"
|
|
960
|
+
integrity sha512-W8kAoGqz56+rauoJfhRDOFO1tV6RNPsZIXeCATWIgmv8+DnciJXU8WgrbqDW9IQbYCXrOnMGZZXaZJATPkNXGg==
|
|
960
961
|
dependencies:
|
|
961
|
-
intact-shared "^3.0.
|
|
962
|
-
misstime "^3.0.
|
|
962
|
+
intact-shared "^3.0.30"
|
|
963
|
+
misstime "^3.0.30"
|
|
963
964
|
tslib "^2.2.0"
|
|
964
965
|
|
|
965
|
-
vdt@^3.0.
|
|
966
|
-
version "3.0.
|
|
967
|
-
resolved "https://registry.npmjs.org/vdt/-/vdt-3.0.
|
|
968
|
-
integrity sha512-
|
|
966
|
+
vdt@^3.0.30:
|
|
967
|
+
version "3.0.30"
|
|
968
|
+
resolved "https://registry.npmjs.org/vdt/-/vdt-3.0.30.tgz#12dbf2644a96cf2d6428cb1f17e02aa4076f7a98"
|
|
969
|
+
integrity sha512-HkkgHTDWHBiffZtVRnQb3rKs0p1/VoPkeMQH+5nbqYesAFhFOiF1jpvrQn6cRWZvcRsQMcJWNZT46V8t6eL8KQ==
|
|
969
970
|
dependencies:
|
|
970
|
-
intact-shared "^3.0.
|
|
971
|
-
misstime "^3.0.
|
|
971
|
+
intact-shared "^3.0.30"
|
|
972
|
+
misstime "^3.0.30"
|
|
972
973
|
tslib "^2.2.0"
|
|
973
974
|
|
|
974
975
|
vue-loader@^16.1.2:
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DropdownItem } from './item';
|
|
2
|
-
interface ItemEvents {
|
|
3
|
-
onFocusin: () => void;
|
|
4
|
-
onFocusout: () => void;
|
|
5
|
-
onShowMenu: () => void;
|
|
6
|
-
onHideMenu: () => void;
|
|
7
|
-
onSelect: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare enum Direction {
|
|
10
|
-
Up = 0,
|
|
11
|
-
Down = 1
|
|
12
|
-
}
|
|
13
|
-
export type MenuKeyboardMethods = {
|
|
14
|
-
reset: () => void;
|
|
15
|
-
focus: (item: DropdownItem) => void;
|
|
16
|
-
};
|
|
17
|
-
export declare function useMenuKeyboard(): readonly [readonly [() => void, () => void, (v: boolean) => boolean], (index: number, direction?: Direction) => void, () => void];
|
|
18
|
-
export declare function useItemKeyboard(itemEvents: Omit<ItemEvents, 'onFocusin' | 'onFocusout'>): {
|
|
19
|
-
onMouseEnter(e: MouseEvent): void;
|
|
20
|
-
onMouseLeave(e: MouseEvent): void;
|
|
21
|
-
isFocus: import("../../hooks/useState").State<boolean>;
|
|
22
|
-
};
|
|
23
|
-
export {};
|