@94ai/common-ui 3.2.81 → 3.2.82
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/lib/common-ui.tool.cjs.cjs +20 -0
- package/lib/common-ui.tool.esm-bundler.mjs +20 -0
- package/package.json +46 -46
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const fs = require("fs");
|
|
4
4
|
const path = require("path");
|
|
5
|
+
require("vue-demi");
|
|
5
6
|
const ComponentConstantList = [
|
|
6
7
|
"NfMenu",
|
|
7
8
|
"NfInfiniteMenu",
|
|
@@ -50,6 +51,21 @@ function kebabCase(key) {
|
|
|
50
51
|
const result = key.replace(/([A-Z])/g, " $1").trim();
|
|
51
52
|
return result.split(" ").join("-").toLowerCase();
|
|
52
53
|
}
|
|
54
|
+
function isAsyncFunc(func) {
|
|
55
|
+
return func[Symbol(Symbol.toStringTag)] === "AsyncFunction";
|
|
56
|
+
}
|
|
57
|
+
function closest(that, componentName) {
|
|
58
|
+
let vm = that;
|
|
59
|
+
let result;
|
|
60
|
+
while (vm && !result) {
|
|
61
|
+
const name = vm.$options.name;
|
|
62
|
+
if (name === componentName) {
|
|
63
|
+
result = vm;
|
|
64
|
+
}
|
|
65
|
+
vm = vm.$parent;
|
|
66
|
+
}
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
53
69
|
function getDirs() {
|
|
54
70
|
return ComponentConstantList.map((item) => "node_modules/@94ai/" + kebabCase(item) + "/lib");
|
|
55
71
|
}
|
|
@@ -349,6 +365,7 @@ const tool = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
|
|
|
349
365
|
HexToRgb,
|
|
350
366
|
RgbToHex,
|
|
351
367
|
_getComputedStyle,
|
|
368
|
+
closest,
|
|
352
369
|
copyFile,
|
|
353
370
|
createUniqueString,
|
|
354
371
|
debounce,
|
|
@@ -370,6 +387,7 @@ const tool = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
|
|
|
370
387
|
getResolver,
|
|
371
388
|
getTranspileDependencies,
|
|
372
389
|
getTsComponentSampleConfig,
|
|
390
|
+
isAsyncFunc,
|
|
373
391
|
isAutoFlexBasis,
|
|
374
392
|
kebabCase,
|
|
375
393
|
resolveDebuger,
|
|
@@ -383,6 +401,7 @@ exports.ComponentConstantList = ComponentConstantList;
|
|
|
383
401
|
exports.HexToRgb = HexToRgb;
|
|
384
402
|
exports.RgbToHex = RgbToHex;
|
|
385
403
|
exports._getComputedStyle = _getComputedStyle;
|
|
404
|
+
exports.closest = closest;
|
|
386
405
|
exports.copyFile = copyFile;
|
|
387
406
|
exports.createUniqueString = createUniqueString;
|
|
388
407
|
exports.debounce = debounce;
|
|
@@ -405,6 +424,7 @@ exports.getQuarter = getQuarter;
|
|
|
405
424
|
exports.getResolver = getResolver;
|
|
406
425
|
exports.getTranspileDependencies = getTranspileDependencies;
|
|
407
426
|
exports.getTsComponentSampleConfig = getTsComponentSampleConfig;
|
|
427
|
+
exports.isAsyncFunc = isAsyncFunc;
|
|
408
428
|
exports.isAutoFlexBasis = isAutoFlexBasis;
|
|
409
429
|
exports.kebabCase = kebabCase;
|
|
410
430
|
exports.resolveDebuger = resolveDebuger;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
2
|
import path from "path";
|
|
3
|
+
import "vue-demi";
|
|
3
4
|
const ComponentConstantList = [
|
|
4
5
|
"NfMenu",
|
|
5
6
|
"NfInfiniteMenu",
|
|
@@ -48,6 +49,21 @@ function kebabCase(key) {
|
|
|
48
49
|
const result = key.replace(/([A-Z])/g, " $1").trim();
|
|
49
50
|
return result.split(" ").join("-").toLowerCase();
|
|
50
51
|
}
|
|
52
|
+
function isAsyncFunc(func) {
|
|
53
|
+
return func[Symbol(Symbol.toStringTag)] === "AsyncFunction";
|
|
54
|
+
}
|
|
55
|
+
function closest(that, componentName) {
|
|
56
|
+
let vm = that;
|
|
57
|
+
let result;
|
|
58
|
+
while (vm && !result) {
|
|
59
|
+
const name = vm.$options.name;
|
|
60
|
+
if (name === componentName) {
|
|
61
|
+
result = vm;
|
|
62
|
+
}
|
|
63
|
+
vm = vm.$parent;
|
|
64
|
+
}
|
|
65
|
+
return result;
|
|
66
|
+
}
|
|
51
67
|
function getDirs() {
|
|
52
68
|
return ComponentConstantList.map((item) => "node_modules/@94ai/" + kebabCase(item) + "/lib");
|
|
53
69
|
}
|
|
@@ -347,6 +363,7 @@ const tool = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
|
|
|
347
363
|
HexToRgb,
|
|
348
364
|
RgbToHex,
|
|
349
365
|
_getComputedStyle,
|
|
366
|
+
closest,
|
|
350
367
|
copyFile,
|
|
351
368
|
createUniqueString,
|
|
352
369
|
debounce,
|
|
@@ -368,6 +385,7 @@ const tool = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
|
|
|
368
385
|
getResolver,
|
|
369
386
|
getTranspileDependencies,
|
|
370
387
|
getTsComponentSampleConfig,
|
|
388
|
+
isAsyncFunc,
|
|
371
389
|
isAutoFlexBasis,
|
|
372
390
|
kebabCase,
|
|
373
391
|
resolveDebuger,
|
|
@@ -382,6 +400,7 @@ export {
|
|
|
382
400
|
HexToRgb,
|
|
383
401
|
RgbToHex,
|
|
384
402
|
_getComputedStyle,
|
|
403
|
+
closest,
|
|
385
404
|
copyFile,
|
|
386
405
|
createUniqueString,
|
|
387
406
|
debounce,
|
|
@@ -404,6 +423,7 @@ export {
|
|
|
404
423
|
getResolver,
|
|
405
424
|
getTranspileDependencies,
|
|
406
425
|
getTsComponentSampleConfig,
|
|
426
|
+
isAsyncFunc,
|
|
407
427
|
isAutoFlexBasis,
|
|
408
428
|
kebabCase,
|
|
409
429
|
resolveDebuger,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/common-ui",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.82",
|
|
4
4
|
"description": "94智能公共组件库",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"组件库"
|
|
@@ -16,50 +16,50 @@
|
|
|
16
16
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@94ai/common-utils": "^3.2.
|
|
20
|
-
"@94ai/nf-action": "^3.2.
|
|
21
|
-
"@94ai/nf-address": "^3.2.
|
|
22
|
-
"@94ai/nf-alert": "^3.2.
|
|
23
|
-
"@94ai/nf-audio": "^3.2.
|
|
24
|
-
"@94ai/nf-button": "^3.2.
|
|
25
|
-
"@94ai/nf-button-demo": "^3.2.
|
|
26
|
-
"@94ai/nf-conditions": "^3.2.
|
|
27
|
-
"@94ai/nf-confirm": "^3.2.
|
|
28
|
-
"@94ai/nf-date-picker": "^3.2.
|
|
29
|
-
"@94ai/nf-double-half-year": "^3.2.
|
|
30
|
-
"@94ai/nf-double-quarter": "^3.2.
|
|
31
|
-
"@94ai/nf-double-time": "^3.2.
|
|
32
|
-
"@94ai/nf-double-week": "^3.2.
|
|
33
|
-
"@94ai/nf-double-year": "^3.2.
|
|
34
|
-
"@94ai/nf-drawer": "^3.2.
|
|
35
|
-
"@94ai/nf-empty": "^3.2.
|
|
36
|
-
"@94ai/nf-form": "^3.2.
|
|
37
|
-
"@94ai/nf-form-item": "^3.2.
|
|
38
|
-
"@94ai/nf-half-year-picker": "^3.2.
|
|
39
|
-
"@94ai/nf-iconfont-icon": "^3.2.
|
|
40
|
-
"@94ai/nf-import-template": "^3.2.
|
|
41
|
-
"@94ai/nf-indicator-plane": "^3.2.
|
|
42
|
-
"@94ai/nf-infinite-menu": "^3.2.
|
|
43
|
-
"@94ai/nf-keywords": "^3.2.
|
|
44
|
-
"@94ai/nf-lazy-select": "^3.2.
|
|
45
|
-
"@94ai/nf-menu": "^3.2.
|
|
46
|
-
"@94ai/nf-message": "^3.2.
|
|
47
|
-
"@94ai/nf-notification": "^3.2.
|
|
48
|
-
"@94ai/nf-popup-lazy-select": "^3.2.
|
|
49
|
-
"@94ai/nf-quarter-picker": "^3.2.
|
|
50
|
-
"@94ai/nf-radio-group": "^3.2.
|
|
51
|
-
"@94ai/nf-resizable-panels": "^3.2.
|
|
52
|
-
"@94ai/nf-rules": "^3.2.
|
|
53
|
-
"@94ai/nf-search-form": "^3.2.
|
|
54
|
-
"@94ai/nf-select-transfer": "^3.2.
|
|
55
|
-
"@94ai/nf-svg-icon": "^3.2.
|
|
56
|
-
"@94ai/nf-table": "^3.2.
|
|
57
|
-
"@94ai/nf-tag": "^3.2.
|
|
58
|
-
"@94ai/nf-text-overflow": "^3.2.
|
|
59
|
-
"@94ai/nf-theme-chalk": "^3.2.
|
|
60
|
-
"@94ai/nf-toast-demo": "^3.2.
|
|
61
|
-
"@94ai/nf-variable-select": "^3.2.
|
|
62
|
-
"@94ai/nf-virtual-select": "^3.2.
|
|
19
|
+
"@94ai/common-utils": "^3.2.82",
|
|
20
|
+
"@94ai/nf-action": "^3.2.82",
|
|
21
|
+
"@94ai/nf-address": "^3.2.82",
|
|
22
|
+
"@94ai/nf-alert": "^3.2.82",
|
|
23
|
+
"@94ai/nf-audio": "^3.2.82",
|
|
24
|
+
"@94ai/nf-button": "^3.2.82",
|
|
25
|
+
"@94ai/nf-button-demo": "^3.2.82",
|
|
26
|
+
"@94ai/nf-conditions": "^3.2.82",
|
|
27
|
+
"@94ai/nf-confirm": "^3.2.82",
|
|
28
|
+
"@94ai/nf-date-picker": "^3.2.82",
|
|
29
|
+
"@94ai/nf-double-half-year": "^3.2.82",
|
|
30
|
+
"@94ai/nf-double-quarter": "^3.2.82",
|
|
31
|
+
"@94ai/nf-double-time": "^3.2.82",
|
|
32
|
+
"@94ai/nf-double-week": "^3.2.82",
|
|
33
|
+
"@94ai/nf-double-year": "^3.2.82",
|
|
34
|
+
"@94ai/nf-drawer": "^3.2.82",
|
|
35
|
+
"@94ai/nf-empty": "^3.2.82",
|
|
36
|
+
"@94ai/nf-form": "^3.2.82",
|
|
37
|
+
"@94ai/nf-form-item": "^3.2.82",
|
|
38
|
+
"@94ai/nf-half-year-picker": "^3.2.82",
|
|
39
|
+
"@94ai/nf-iconfont-icon": "^3.2.82",
|
|
40
|
+
"@94ai/nf-import-template": "^3.2.82",
|
|
41
|
+
"@94ai/nf-indicator-plane": "^3.2.82",
|
|
42
|
+
"@94ai/nf-infinite-menu": "^3.2.82",
|
|
43
|
+
"@94ai/nf-keywords": "^3.2.82",
|
|
44
|
+
"@94ai/nf-lazy-select": "^3.2.82",
|
|
45
|
+
"@94ai/nf-menu": "^3.2.82",
|
|
46
|
+
"@94ai/nf-message": "^3.2.82",
|
|
47
|
+
"@94ai/nf-notification": "^3.2.82",
|
|
48
|
+
"@94ai/nf-popup-lazy-select": "^3.2.82",
|
|
49
|
+
"@94ai/nf-quarter-picker": "^3.2.82",
|
|
50
|
+
"@94ai/nf-radio-group": "^3.2.82",
|
|
51
|
+
"@94ai/nf-resizable-panels": "^3.2.82",
|
|
52
|
+
"@94ai/nf-rules": "^3.2.82",
|
|
53
|
+
"@94ai/nf-search-form": "^3.2.82",
|
|
54
|
+
"@94ai/nf-select-transfer": "^3.2.82",
|
|
55
|
+
"@94ai/nf-svg-icon": "^3.2.82",
|
|
56
|
+
"@94ai/nf-table": "^3.2.82",
|
|
57
|
+
"@94ai/nf-tag": "^3.2.82",
|
|
58
|
+
"@94ai/nf-text-overflow": "^3.2.82",
|
|
59
|
+
"@94ai/nf-theme-chalk": "^3.2.82",
|
|
60
|
+
"@94ai/nf-toast-demo": "^3.2.82",
|
|
61
|
+
"@94ai/nf-variable-select": "^3.2.82",
|
|
62
|
+
"@94ai/nf-virtual-select": "^3.2.82",
|
|
63
63
|
"vue-demi": "^0.14.5"
|
|
64
64
|
},
|
|
65
65
|
"peerDependenciesMeta": {
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"import": "./lib/common-ui.tool.esm-bundler.mjs"
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "1a0dfe015520e800c5565377459cac24bb723ee6"
|
|
96
96
|
}
|