origam 0.3.6 → 0.3.7
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/composables/Commons/hotkey.composable.d.ts.map +1 -1
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/consts/Commons/hotkey.const.d.ts.map +1 -1
- package/dist/consts/index.d.ts +1 -0
- package/dist/consts/index.d.ts.map +1 -1
- package/dist/src/composables/Commons/border.composable.spec.cjs +1 -1
- package/dist/src/composables/Commons/border.composable.spec.js +1 -1
- package/dist/src/composables/Commons/hotkey.composable.cjs +3 -4
- package/dist/src/composables/Commons/hotkey.composable.js +1 -2
- package/dist/src/composables/index.cjs +12 -12
- package/dist/src/composables/index.d.ts +2 -2
- package/dist/src/composables/index.js +2 -2
- package/dist/src/consts/Commons/hotkey.const.cjs +0 -1
- package/dist/src/consts/Commons/hotkey.const.js +0 -1
- package/dist/src/consts/index.cjs +11 -0
- package/dist/src/consts/index.d.ts +1 -0
- package/dist/src/consts/index.js +1 -0
- package/dist/src/utils/Commons/hotkey.util.cjs +2 -2
- package/dist/src/utils/Commons/hotkey.util.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hotkey.composable.d.ts","sourceRoot":"","sources":["../../../src/composables/Commons/hotkey.composable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAmC,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"hotkey.composable.d.ts","sourceRoot":"","sources":["../../../src/composables/Commons/hotkey.composable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAmC,MAAM,KAAK,CAAA;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAIjD,wBAAgB,SAAS,CACrB,IAAI,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,EAClC,QAAQ,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,EACpC,OAAO,GAAE,cAAmB,cAgJ/B"}
|
|
@@ -19,7 +19,7 @@ export * from './Commons/nested.composable';
|
|
|
19
19
|
export * from './Commons/position.composable';
|
|
20
20
|
export * from './Commons/resizeObserver.composable';
|
|
21
21
|
export * from './Commons/refs.composable';
|
|
22
|
-
export * from './Commons/vModel.composable
|
|
22
|
+
export * from './Commons/vModel.composable';
|
|
23
23
|
export * from './Commons/rounded.composable';
|
|
24
24
|
export * from './Commons/router.composable';
|
|
25
25
|
export * from './Commons/scopeId.composable';
|
|
@@ -39,7 +39,7 @@ export * from './Commons/velocity.composable';
|
|
|
39
39
|
export * from './Commons/padding.composable';
|
|
40
40
|
export * from './Commons/margin.composable';
|
|
41
41
|
export * from './Commons/lazy.composable';
|
|
42
|
-
export * from './Commons/items.composable
|
|
42
|
+
export * from './Commons/items.composable';
|
|
43
43
|
export * from './Commons/teleport.composable';
|
|
44
44
|
export * from './Commons/hydration.composable';
|
|
45
45
|
export * from './Commons/stack.composable';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2CAA2C,CAAA;AACzD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AA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EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"hotkey.const.d.ts","sourceRoot":"","sources":["../../../src/consts/Commons/hotkey.const.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,kBAAkB,EAAE,kBAAkB,EAA4J,CAAA;AAE/M;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAqBnD,CAAA"}
|
package/dist/consts/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './Commons/scroll.const';
|
|
|
18
18
|
export * from './Commons/stack.const';
|
|
19
19
|
export * from './Commons/bindProps.const';
|
|
20
20
|
export * from './Commons/display.const';
|
|
21
|
+
export * from './Commons/hotkey.const';
|
|
21
22
|
export * from './Commons/hover.const';
|
|
22
23
|
export * from './Commons/goTo.const';
|
|
23
24
|
export * from './Commons/virtual.const';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/consts/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB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ACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kCAAkC,CAAA;AAChD,cAAc,4CAA4C,CAAA;AAC1D,cAAc,8BAA8B,CAAA;AAC5C,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,2BAA2B,CAAA;AACzC,cAAc,qCAAqC,CAAA;AACnD,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wCAAwC,CAAA;AACtD,cAAc,kCAAkC,CAAA;AAChD,cAAc,2BAA2B,CAAA;AACzC,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA"}
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useHotkey = useHotkey;
|
|
7
7
|
var _vue = require("vue");
|
|
8
8
|
var _consts = require("../../consts/index.cjs");
|
|
9
|
-
var _hotkeyConst = require("../../consts/Commons/hotkey.const.ts");
|
|
10
9
|
var _utils = require("../../utils/index.cjs");
|
|
11
10
|
function useHotkey(keys, callback, options = {}) {
|
|
12
11
|
if (!_consts.IN_BROWSER) return function () {};
|
|
@@ -88,14 +87,14 @@ function useHotkey(keys, callback, options = {}) {
|
|
|
88
87
|
const parts = (0, _utils.splitKeyCombination)(group.toLowerCase());
|
|
89
88
|
if (parts.length === 0) {
|
|
90
89
|
return {
|
|
91
|
-
modifiers: Object.fromEntries(
|
|
90
|
+
modifiers: Object.fromEntries(_consts.KEYBOARD_MODIFIERS.map(m => [m, false])),
|
|
92
91
|
actualKey: void 0
|
|
93
92
|
};
|
|
94
93
|
}
|
|
95
|
-
const modifiers = Object.fromEntries(
|
|
94
|
+
const modifiers = Object.fromEntries(_consts.KEYBOARD_MODIFIERS.map(m => [m, false]));
|
|
96
95
|
let actualKey;
|
|
97
96
|
for (const part of parts) {
|
|
98
|
-
if (
|
|
97
|
+
if (_consts.KEYBOARD_MODIFIERS.includes(part)) {
|
|
99
98
|
modifiers[part] = true;
|
|
100
99
|
} else {
|
|
101
100
|
actualKey = part;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { onBeforeUnmount, toValue, watch } from "vue";
|
|
2
|
-
import { IN_BROWSER } from "../../consts/index.js";
|
|
3
|
-
import { KEYBOARD_MODIFIERS } from "../../consts/Commons/hotkey.const.ts";
|
|
2
|
+
import { IN_BROWSER, KEYBOARD_MODIFIERS } from "../../consts/index.js";
|
|
4
3
|
import { consoleWarn, getCurrentInstance, splitKeyCombination, splitKeySequence } from "../../utils/index.js";
|
|
5
4
|
export function useHotkey(keys, callback, options = {}) {
|
|
6
5
|
if (!IN_BROWSER) return function() {
|
|
@@ -234,14 +234,14 @@ Object.keys(_refs).forEach(function (key) {
|
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
236
|
});
|
|
237
|
-
var
|
|
238
|
-
Object.keys(
|
|
237
|
+
var _vModel = require("./Commons/vModel.composable.cjs");
|
|
238
|
+
Object.keys(_vModel).forEach(function (key) {
|
|
239
239
|
if (key === "default" || key === "__esModule") return;
|
|
240
|
-
if (key in exports && exports[key] ===
|
|
240
|
+
if (key in exports && exports[key] === _vModel[key]) return;
|
|
241
241
|
Object.defineProperty(exports, key, {
|
|
242
242
|
enumerable: true,
|
|
243
243
|
get: function () {
|
|
244
|
-
return
|
|
244
|
+
return _vModel[key];
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
247
|
});
|
|
@@ -454,14 +454,14 @@ Object.keys(_lazy).forEach(function (key) {
|
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
456
|
});
|
|
457
|
-
var
|
|
458
|
-
Object.keys(
|
|
457
|
+
var _items = require("./Commons/items.composable.cjs");
|
|
458
|
+
Object.keys(_items).forEach(function (key) {
|
|
459
459
|
if (key === "default" || key === "__esModule") return;
|
|
460
|
-
if (key in exports && exports[key] ===
|
|
460
|
+
if (key in exports && exports[key] === _items[key]) return;
|
|
461
461
|
Object.defineProperty(exports, key, {
|
|
462
462
|
enumerable: true,
|
|
463
463
|
get: function () {
|
|
464
|
-
return
|
|
464
|
+
return _items[key];
|
|
465
465
|
}
|
|
466
466
|
});
|
|
467
467
|
});
|
|
@@ -751,14 +751,14 @@ Object.keys(_headers).forEach(function (key) {
|
|
|
751
751
|
}
|
|
752
752
|
});
|
|
753
753
|
});
|
|
754
|
-
var
|
|
755
|
-
Object.keys(
|
|
754
|
+
var _items2 = require("./DataTable/items.composable.cjs");
|
|
755
|
+
Object.keys(_items2).forEach(function (key) {
|
|
756
756
|
if (key === "default" || key === "__esModule") return;
|
|
757
|
-
if (key in exports && exports[key] ===
|
|
757
|
+
if (key in exports && exports[key] === _items2[key]) return;
|
|
758
758
|
Object.defineProperty(exports, key, {
|
|
759
759
|
enumerable: true,
|
|
760
760
|
get: function () {
|
|
761
|
-
return
|
|
761
|
+
return _items2[key];
|
|
762
762
|
}
|
|
763
763
|
});
|
|
764
764
|
});
|
|
@@ -19,7 +19,7 @@ export * from './Commons/nested.composable';
|
|
|
19
19
|
export * from './Commons/position.composable';
|
|
20
20
|
export * from './Commons/resizeObserver.composable';
|
|
21
21
|
export * from './Commons/refs.composable';
|
|
22
|
-
export * from './Commons/vModel.composable
|
|
22
|
+
export * from './Commons/vModel.composable';
|
|
23
23
|
export * from './Commons/rounded.composable';
|
|
24
24
|
export * from './Commons/router.composable';
|
|
25
25
|
export * from './Commons/scopeId.composable';
|
|
@@ -39,7 +39,7 @@ export * from './Commons/velocity.composable';
|
|
|
39
39
|
export * from './Commons/padding.composable';
|
|
40
40
|
export * from './Commons/margin.composable';
|
|
41
41
|
export * from './Commons/lazy.composable';
|
|
42
|
-
export * from './Commons/items.composable
|
|
42
|
+
export * from './Commons/items.composable';
|
|
43
43
|
export * from './Commons/teleport.composable';
|
|
44
44
|
export * from './Commons/hydration.composable';
|
|
45
45
|
export * from './Commons/stack.composable';
|
|
@@ -19,7 +19,7 @@ export * from "./Commons/nested.composable.js";
|
|
|
19
19
|
export * from "./Commons/position.composable.js";
|
|
20
20
|
export * from "./Commons/resizeObserver.composable.js";
|
|
21
21
|
export * from "./Commons/refs.composable.js";
|
|
22
|
-
export * from "./Commons/vModel.composable.
|
|
22
|
+
export * from "./Commons/vModel.composable.js";
|
|
23
23
|
export * from "./Commons/rounded.composable.js";
|
|
24
24
|
export * from "./Commons/router.composable.js";
|
|
25
25
|
export * from "./Commons/scopeId.composable.js";
|
|
@@ -39,7 +39,7 @@ export * from "./Commons/velocity.composable.js";
|
|
|
39
39
|
export * from "./Commons/padding.composable.js";
|
|
40
40
|
export * from "./Commons/margin.composable.js";
|
|
41
41
|
export * from "./Commons/lazy.composable.js";
|
|
42
|
-
export * from "./Commons/items.composable.
|
|
42
|
+
export * from "./Commons/items.composable.js";
|
|
43
43
|
export * from "./Commons/teleport.composable.js";
|
|
44
44
|
export * from "./Commons/hydration.composable.js";
|
|
45
45
|
export * from "./Commons/stack.composable.js";
|
|
@@ -223,6 +223,17 @@ Object.keys(_display).forEach(function (key) {
|
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
225
|
});
|
|
226
|
+
var _hotkey = require("./Commons/hotkey.const.cjs");
|
|
227
|
+
Object.keys(_hotkey).forEach(function (key) {
|
|
228
|
+
if (key === "default" || key === "__esModule") return;
|
|
229
|
+
if (key in exports && exports[key] === _hotkey[key]) return;
|
|
230
|
+
Object.defineProperty(exports, key, {
|
|
231
|
+
enumerable: true,
|
|
232
|
+
get: function () {
|
|
233
|
+
return _hotkey[key];
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
});
|
|
226
237
|
var _hover = require("./Commons/hover.const.cjs");
|
|
227
238
|
Object.keys(_hover).forEach(function (key) {
|
|
228
239
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -18,6 +18,7 @@ export * from './Commons/scroll.const';
|
|
|
18
18
|
export * from './Commons/stack.const';
|
|
19
19
|
export * from './Commons/bindProps.const';
|
|
20
20
|
export * from './Commons/display.const';
|
|
21
|
+
export * from './Commons/hotkey.const';
|
|
21
22
|
export * from './Commons/hover.const';
|
|
22
23
|
export * from './Commons/goTo.const';
|
|
23
24
|
export * from './Commons/virtual.const';
|
package/dist/src/consts/index.js
CHANGED
|
@@ -18,6 +18,7 @@ export * from "./Commons/scroll.const.js";
|
|
|
18
18
|
export * from "./Commons/stack.const.js";
|
|
19
19
|
export * from "./Commons/bindProps.const.js";
|
|
20
20
|
export * from "./Commons/display.const.js";
|
|
21
|
+
export * from "./Commons/hotkey.const.js";
|
|
21
22
|
export * from "./Commons/hover.const.js";
|
|
22
23
|
export * from "./Commons/goTo.const.js";
|
|
23
24
|
export * from "./Commons/virtual.const.js";
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.normalizeKey = normalizeKey;
|
|
7
7
|
exports.splitKeyCombination = splitKeyCombination;
|
|
8
8
|
exports.splitKeySequence = splitKeySequence;
|
|
9
|
-
var
|
|
9
|
+
var _consts = require("../../consts/index.cjs");
|
|
10
10
|
var _utils = require("../../utils/index.cjs");
|
|
11
11
|
function splitKeyCombination(combination, isInternal = false) {
|
|
12
12
|
if (!combination) {
|
|
@@ -126,5 +126,5 @@ function splitKeySequence(str) {
|
|
|
126
126
|
}
|
|
127
127
|
function normalizeKey(key) {
|
|
128
128
|
const lowerKey = key.toLowerCase();
|
|
129
|
-
return
|
|
129
|
+
return _consts.KEYBOARD_ALIASES[lowerKey] || lowerKey;
|
|
130
130
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KEYBOARD_ALIASES } from "../../consts/
|
|
1
|
+
import { KEYBOARD_ALIASES } from "../../consts/index.js";
|
|
2
2
|
import { consoleWarn } from "../../utils/index.js";
|
|
3
3
|
export function splitKeyCombination(combination, isInternal = false) {
|
|
4
4
|
if (!combination) {
|