@94ai/common-ui 3.1.47 → 3.1.52
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/components.d.ts +1 -0
- package/lib/common-ui.cjs.js +0 -112
- package/lib/common-ui.esm-bundler.js +1 -113
- package/lib/index.d.ts +1 -3
- package/package/index.ts +0 -19
- package/package.json +36 -36
- package/lib/const.d.ts +0 -1
- package/lib/util.d.ts +0 -25
- package/package/const.ts +0 -34
- package/package/util.ts +0 -76
package/components.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export {}
|
|
|
2
2
|
|
|
3
3
|
declare module 'vue' {
|
|
4
4
|
export interface GlobalComponents {
|
|
5
|
+
CommonUtils: typeof import('@94ai/common-utils/lib/common-utils.vue')['default']
|
|
5
6
|
NfAction: typeof import('@94ai/nf-action/lib/nf-action.vue')['default']
|
|
6
7
|
NfAddress: typeof import('@94ai/nf-address/lib/nf-address.vue')['default']
|
|
7
8
|
NfAlert: typeof import('@94ai/nf-alert/lib/nf-alert.vue')['default']
|
package/lib/common-ui.cjs.js
CHANGED
|
@@ -33,110 +33,6 @@ const NfResizablePanels = require("@94ai/nf-resizable-panels");
|
|
|
33
33
|
const NfAddress = require("@94ai/nf-address");
|
|
34
34
|
const NfAudio = require("@94ai/nf-audio");
|
|
35
35
|
const NfButton = require("@94ai/nf-button");
|
|
36
|
-
const fs = require("fs");
|
|
37
|
-
const path = require("path");
|
|
38
|
-
const ComponentConstantList = [
|
|
39
|
-
"NfMenu",
|
|
40
|
-
"NfInfiniteMenu",
|
|
41
|
-
"NfDoubleTime",
|
|
42
|
-
"NfEmpty",
|
|
43
|
-
"NfImportTemplate",
|
|
44
|
-
"NfSelectTransfer",
|
|
45
|
-
"NfRadioGroup",
|
|
46
|
-
"NfAlert",
|
|
47
|
-
"NfVirtualSelect",
|
|
48
|
-
"NfTag",
|
|
49
|
-
"NfAction",
|
|
50
|
-
"NfIndicatorPlane",
|
|
51
|
-
"NfQuarterPicker",
|
|
52
|
-
"NfDoubleQuarter",
|
|
53
|
-
"NfDoubleHalfYear",
|
|
54
|
-
"NfHalfYearPicker",
|
|
55
|
-
"NfDoubleWeek",
|
|
56
|
-
"NfDoubleYear",
|
|
57
|
-
"NfDatePicker",
|
|
58
|
-
"NfFormItem",
|
|
59
|
-
"NfForm",
|
|
60
|
-
"NfTable",
|
|
61
|
-
"NfSearchForm",
|
|
62
|
-
"NfDrawer",
|
|
63
|
-
"NfMessage",
|
|
64
|
-
"NfNotification",
|
|
65
|
-
"NfConfirm",
|
|
66
|
-
"NfTextOverflow",
|
|
67
|
-
"NfResizablePanels",
|
|
68
|
-
"NfAddress",
|
|
69
|
-
"NfAudio",
|
|
70
|
-
"NfButton"
|
|
71
|
-
];
|
|
72
|
-
function resolveDebuger(name) {
|
|
73
|
-
fs.appendFile(path.resolve(__dirname, "./log.txt"), `${name}
|
|
74
|
-
`, () => {
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
function kebabCase(key) {
|
|
78
|
-
const result = key.replace(/([A-Z])/g, " $1").trim();
|
|
79
|
-
return result.split(" ").join("-").toLowerCase();
|
|
80
|
-
}
|
|
81
|
-
function getDirs() {
|
|
82
|
-
return ComponentConstantList.map((item) => "node_modules/@94ai/" + kebabCase(item) + "/lib");
|
|
83
|
-
}
|
|
84
|
-
function getTranspileDependencies() {
|
|
85
|
-
return ComponentConstantList.map((item) => "@94ai/" + kebabCase(item));
|
|
86
|
-
}
|
|
87
|
-
const getResolver = () => {
|
|
88
|
-
return {
|
|
89
|
-
type: "component",
|
|
90
|
-
resolve: (name) => {
|
|
91
|
-
resolveDebuger(name);
|
|
92
|
-
if (/^Nf[A-Za-z](?!.*[Mm][Dd]$).*$/.test(name)) {
|
|
93
|
-
const kebabCasePackageName = kebabCase(name);
|
|
94
|
-
return {
|
|
95
|
-
from: `@94ai/${kebabCasePackageName}/lib/${kebabCasePackageName}.esm-bundler.js`,
|
|
96
|
-
sideEffects: []
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
const getJsComponentSampleConfig = (config = {}) => {
|
|
103
|
-
return {
|
|
104
|
-
exclude: [/[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
|
|
105
|
-
include: [
|
|
106
|
-
/\.vue$/,
|
|
107
|
-
/\.vue\?vue/,
|
|
108
|
-
/\.vue\?v=/,
|
|
109
|
-
/\.js$/,
|
|
110
|
-
/\.js\?vue/,
|
|
111
|
-
/\.js\?v=/
|
|
112
|
-
],
|
|
113
|
-
deep: true,
|
|
114
|
-
transformer: "vue2",
|
|
115
|
-
resolvers: [],
|
|
116
|
-
...config
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
const getTsComponentSampleConfig = (config = {}) => {
|
|
120
|
-
return {
|
|
121
|
-
include: [
|
|
122
|
-
/\.vue$/,
|
|
123
|
-
/\.vue\?vue/,
|
|
124
|
-
/\.md$/,
|
|
125
|
-
/\.md\?vue/,
|
|
126
|
-
/\.jsx$/,
|
|
127
|
-
/\.jsx\?vue/,
|
|
128
|
-
/\.tsx$/,
|
|
129
|
-
/\.tsx\?vue/,
|
|
130
|
-
/\.js$/,
|
|
131
|
-
/\.js\?vue/
|
|
132
|
-
],
|
|
133
|
-
deep: true,
|
|
134
|
-
extensions: ["vue", "md", "jsx", "tsx", "mjs", "mts", "js"],
|
|
135
|
-
dirs: ["src/components", "src/views", "doc"],
|
|
136
|
-
resolvers: [],
|
|
137
|
-
...config
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
36
|
const CommonUI = vueDemi.defineComponent({
|
|
141
37
|
name: "common-ui",
|
|
142
38
|
install(app) {
|
|
@@ -210,12 +106,4 @@ exports.NfResizablePanels = NfResizablePanels;
|
|
|
210
106
|
exports.NfAddress = NfAddress;
|
|
211
107
|
exports.NfAudio = NfAudio;
|
|
212
108
|
exports.NfButton = NfButton;
|
|
213
|
-
exports.ComponentConstantList = ComponentConstantList;
|
|
214
109
|
exports.default = CommonUI;
|
|
215
|
-
exports.getDirs = getDirs;
|
|
216
|
-
exports.getJsComponentSampleConfig = getJsComponentSampleConfig;
|
|
217
|
-
exports.getResolver = getResolver;
|
|
218
|
-
exports.getTranspileDependencies = getTranspileDependencies;
|
|
219
|
-
exports.getTsComponentSampleConfig = getTsComponentSampleConfig;
|
|
220
|
-
exports.kebabCase = kebabCase;
|
|
221
|
-
exports.resolveDebuger = resolveDebuger;
|
|
@@ -63,110 +63,6 @@ import NfAudio from "@94ai/nf-audio";
|
|
|
63
63
|
import { default as default32 } from "@94ai/nf-audio";
|
|
64
64
|
import NfButton from "@94ai/nf-button";
|
|
65
65
|
import { default as default33 } from "@94ai/nf-button";
|
|
66
|
-
import fs from "fs";
|
|
67
|
-
import path from "path";
|
|
68
|
-
const ComponentConstantList = [
|
|
69
|
-
"NfMenu",
|
|
70
|
-
"NfInfiniteMenu",
|
|
71
|
-
"NfDoubleTime",
|
|
72
|
-
"NfEmpty",
|
|
73
|
-
"NfImportTemplate",
|
|
74
|
-
"NfSelectTransfer",
|
|
75
|
-
"NfRadioGroup",
|
|
76
|
-
"NfAlert",
|
|
77
|
-
"NfVirtualSelect",
|
|
78
|
-
"NfTag",
|
|
79
|
-
"NfAction",
|
|
80
|
-
"NfIndicatorPlane",
|
|
81
|
-
"NfQuarterPicker",
|
|
82
|
-
"NfDoubleQuarter",
|
|
83
|
-
"NfDoubleHalfYear",
|
|
84
|
-
"NfHalfYearPicker",
|
|
85
|
-
"NfDoubleWeek",
|
|
86
|
-
"NfDoubleYear",
|
|
87
|
-
"NfDatePicker",
|
|
88
|
-
"NfFormItem",
|
|
89
|
-
"NfForm",
|
|
90
|
-
"NfTable",
|
|
91
|
-
"NfSearchForm",
|
|
92
|
-
"NfDrawer",
|
|
93
|
-
"NfMessage",
|
|
94
|
-
"NfNotification",
|
|
95
|
-
"NfConfirm",
|
|
96
|
-
"NfTextOverflow",
|
|
97
|
-
"NfResizablePanels",
|
|
98
|
-
"NfAddress",
|
|
99
|
-
"NfAudio",
|
|
100
|
-
"NfButton"
|
|
101
|
-
];
|
|
102
|
-
function resolveDebuger(name) {
|
|
103
|
-
fs.appendFile(path.resolve(__dirname, "./log.txt"), `${name}
|
|
104
|
-
`, () => {
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
function kebabCase(key) {
|
|
108
|
-
const result = key.replace(/([A-Z])/g, " $1").trim();
|
|
109
|
-
return result.split(" ").join("-").toLowerCase();
|
|
110
|
-
}
|
|
111
|
-
function getDirs() {
|
|
112
|
-
return ComponentConstantList.map((item) => "node_modules/@94ai/" + kebabCase(item) + "/lib");
|
|
113
|
-
}
|
|
114
|
-
function getTranspileDependencies() {
|
|
115
|
-
return ComponentConstantList.map((item) => "@94ai/" + kebabCase(item));
|
|
116
|
-
}
|
|
117
|
-
const getResolver = () => {
|
|
118
|
-
return {
|
|
119
|
-
type: "component",
|
|
120
|
-
resolve: (name) => {
|
|
121
|
-
resolveDebuger(name);
|
|
122
|
-
if (/^Nf[A-Za-z](?!.*[Mm][Dd]$).*$/.test(name)) {
|
|
123
|
-
const kebabCasePackageName = kebabCase(name);
|
|
124
|
-
return {
|
|
125
|
-
from: `@94ai/${kebabCasePackageName}/lib/${kebabCasePackageName}.esm-bundler.js`,
|
|
126
|
-
sideEffects: []
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
const getJsComponentSampleConfig = (config = {}) => {
|
|
133
|
-
return {
|
|
134
|
-
exclude: [/[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
|
|
135
|
-
include: [
|
|
136
|
-
/\.vue$/,
|
|
137
|
-
/\.vue\?vue/,
|
|
138
|
-
/\.vue\?v=/,
|
|
139
|
-
/\.js$/,
|
|
140
|
-
/\.js\?vue/,
|
|
141
|
-
/\.js\?v=/
|
|
142
|
-
],
|
|
143
|
-
deep: true,
|
|
144
|
-
transformer: "vue2",
|
|
145
|
-
resolvers: [],
|
|
146
|
-
...config
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
const getTsComponentSampleConfig = (config = {}) => {
|
|
150
|
-
return {
|
|
151
|
-
include: [
|
|
152
|
-
/\.vue$/,
|
|
153
|
-
/\.vue\?vue/,
|
|
154
|
-
/\.md$/,
|
|
155
|
-
/\.md\?vue/,
|
|
156
|
-
/\.jsx$/,
|
|
157
|
-
/\.jsx\?vue/,
|
|
158
|
-
/\.tsx$/,
|
|
159
|
-
/\.tsx\?vue/,
|
|
160
|
-
/\.js$/,
|
|
161
|
-
/\.js\?vue/
|
|
162
|
-
],
|
|
163
|
-
deep: true,
|
|
164
|
-
extensions: ["vue", "md", "jsx", "tsx", "mjs", "mts", "js"],
|
|
165
|
-
dirs: ["src/components", "src/views", "doc"],
|
|
166
|
-
resolvers: [],
|
|
167
|
-
...config
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
66
|
const CommonUI = defineComponent({
|
|
171
67
|
name: "common-ui",
|
|
172
68
|
install(app) {
|
|
@@ -209,7 +105,6 @@ const CommonUI = defineComponent({
|
|
|
209
105
|
}
|
|
210
106
|
});
|
|
211
107
|
export {
|
|
212
|
-
ComponentConstantList,
|
|
213
108
|
default12 as NfAction,
|
|
214
109
|
default31 as NfAddress,
|
|
215
110
|
default9 as NfAlert,
|
|
@@ -242,12 +137,5 @@ export {
|
|
|
242
137
|
default11 as NfTag,
|
|
243
138
|
default29 as NfTextOverflow,
|
|
244
139
|
default10 as NfVirtualSelect,
|
|
245
|
-
CommonUI as default
|
|
246
|
-
getDirs,
|
|
247
|
-
getJsComponentSampleConfig,
|
|
248
|
-
getResolver,
|
|
249
|
-
getTranspileDependencies,
|
|
250
|
-
getTsComponentSampleConfig,
|
|
251
|
-
kebabCase,
|
|
252
|
-
resolveDebuger
|
|
140
|
+
CommonUI as default
|
|
253
141
|
};
|
package/lib/index.d.ts
CHANGED
|
@@ -31,10 +31,8 @@ import NfResizablePanels from '@94ai/nf-resizable-panels';
|
|
|
31
31
|
import NfAddress from '@94ai/nf-address';
|
|
32
32
|
import NfAudio from '@94ai/nf-audio';
|
|
33
33
|
import NfButton from '@94ai/nf-button';
|
|
34
|
-
import { ComponentConstantList } from './const';
|
|
35
|
-
import { getDirs, getTsComponentSampleConfig, getJsComponentSampleConfig, getTranspileDependencies, kebabCase, getResolver, resolveDebuger } from './util';
|
|
36
34
|
declare const _default: import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{}, Readonly<import("vue-demi").ExtractPropTypes<{}>>, Readonly<import("vue-demi").ExtractPropTypes<{}>>, {}, {}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{}>>> & import("vue-demi").ShallowUnwrapRef<{}> & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{}>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{}>>, unknown, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, {}> & {
|
|
37
35
|
props: {};
|
|
38
36
|
} & PluginObject<undefined>;
|
|
39
37
|
export default _default;
|
|
40
|
-
export { NfMenu, NfInfiniteMenu, NfDoubleTime, NfEmpty, NfImportTemplate, NfSelectTransfer, NfRadioGroup, NfAlert, NfVirtualSelect, NfTag, NfAction, NfIndicatorPlane, NfQuarterPicker, NfDoubleQuarter, NfDoubleHalfYear, NfHalfYearPicker, NfDoubleWeek, NfDoubleYear, NfDatePicker, NfFormItem, NfForm, NfTable, NfSearchForm, NfDrawer, NfMessage, NfNotification, NfConfirm, NfTextOverflow, NfResizablePanels, NfAddress, NfAudio, NfButton,
|
|
38
|
+
export { NfMenu, NfInfiniteMenu, NfDoubleTime, NfEmpty, NfImportTemplate, NfSelectTransfer, NfRadioGroup, NfAlert, NfVirtualSelect, NfTag, NfAction, NfIndicatorPlane, NfQuarterPicker, NfDoubleQuarter, NfDoubleHalfYear, NfHalfYearPicker, NfDoubleWeek, NfDoubleYear, NfDatePicker, NfFormItem, NfForm, NfTable, NfSearchForm, NfDrawer, NfMessage, NfNotification, NfConfirm, NfTextOverflow, NfResizablePanels, NfAddress, NfAudio, NfButton, };
|
package/package/index.ts
CHANGED
|
@@ -35,17 +35,6 @@ import NfResizablePanels from '@94ai/nf-resizable-panels'
|
|
|
35
35
|
import NfAddress from '@94ai/nf-address'
|
|
36
36
|
import NfAudio from '@94ai/nf-audio'
|
|
37
37
|
import NfButton from '@94ai/nf-button'
|
|
38
|
-
import { ComponentConstantList } from './const'
|
|
39
|
-
import {
|
|
40
|
-
getDirs,
|
|
41
|
-
getTsComponentSampleConfig,
|
|
42
|
-
getJsComponentSampleConfig,
|
|
43
|
-
getTranspileDependencies,
|
|
44
|
-
kebabCase,
|
|
45
|
-
getResolver,
|
|
46
|
-
resolveDebuger
|
|
47
|
-
} from './util'
|
|
48
|
-
|
|
49
38
|
|
|
50
39
|
const CommonUI = defineComponent({
|
|
51
40
|
name: 'common-ui',
|
|
@@ -124,13 +113,5 @@ export {
|
|
|
124
113
|
NfAddress,
|
|
125
114
|
NfAudio,
|
|
126
115
|
NfButton,
|
|
127
|
-
ComponentConstantList,
|
|
128
|
-
kebabCase,
|
|
129
|
-
getTranspileDependencies,
|
|
130
|
-
getDirs,
|
|
131
|
-
getJsComponentSampleConfig,
|
|
132
|
-
getTsComponentSampleConfig,
|
|
133
|
-
getResolver,
|
|
134
|
-
resolveDebuger
|
|
135
116
|
}
|
|
136
117
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/common-ui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.52",
|
|
4
4
|
"description": "94智能公共组件库",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"组件库"
|
|
@@ -16,41 +16,41 @@
|
|
|
16
16
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@94ai/nf-action": "^3.1.
|
|
20
|
-
"@94ai/nf-address": "^3.1.
|
|
21
|
-
"@94ai/nf-alert": "^3.1.
|
|
22
|
-
"@94ai/nf-audio": "^3.1.
|
|
23
|
-
"@94ai/nf-button": "^3.1.
|
|
24
|
-
"@94ai/nf-button-demo": "^3.1.
|
|
25
|
-
"@94ai/nf-confirm": "^3.1.
|
|
26
|
-
"@94ai/nf-date-picker": "^3.1.
|
|
27
|
-
"@94ai/nf-double-half-year": "^3.1.
|
|
28
|
-
"@94ai/nf-double-quarter": "^3.1.
|
|
29
|
-
"@94ai/nf-double-time": "^3.1.
|
|
30
|
-
"@94ai/nf-double-week": "^3.1.
|
|
31
|
-
"@94ai/nf-double-year": "^3.1.
|
|
32
|
-
"@94ai/nf-drawer": "^3.1.
|
|
33
|
-
"@94ai/nf-empty": "^3.1.
|
|
34
|
-
"@94ai/nf-form": "^3.1.
|
|
35
|
-
"@94ai/nf-form-item": "^3.1.
|
|
36
|
-
"@94ai/nf-half-year-picker": "^3.1.
|
|
37
|
-
"@94ai/nf-import-template": "^3.1.
|
|
38
|
-
"@94ai/nf-indicator-plane": "^3.1.
|
|
39
|
-
"@94ai/nf-infinite-menu": "^3.1.
|
|
40
|
-
"@94ai/nf-menu": "^3.1.
|
|
41
|
-
"@94ai/nf-message": "^3.1.
|
|
42
|
-
"@94ai/nf-notification": "^3.1.
|
|
43
|
-
"@94ai/nf-quarter-picker": "^3.1.
|
|
44
|
-
"@94ai/nf-radio-group": "^3.1.
|
|
45
|
-
"@94ai/nf-resizable-panels": "^3.1.
|
|
46
|
-
"@94ai/nf-search-form": "^3.1.
|
|
47
|
-
"@94ai/nf-select-transfer": "^3.1.
|
|
48
|
-
"@94ai/nf-table": "^3.1.
|
|
49
|
-
"@94ai/nf-tag": "^3.1.
|
|
50
|
-
"@94ai/nf-text-overflow": "^3.1.
|
|
51
|
-
"@94ai/nf-theme-chalk": "^3.1.
|
|
52
|
-
"@94ai/nf-toast-demo": "^3.1.
|
|
53
|
-
"@94ai/nf-virtual-select": "^3.1.
|
|
19
|
+
"@94ai/nf-action": "^3.1.52",
|
|
20
|
+
"@94ai/nf-address": "^3.1.52",
|
|
21
|
+
"@94ai/nf-alert": "^3.1.52",
|
|
22
|
+
"@94ai/nf-audio": "^3.1.52",
|
|
23
|
+
"@94ai/nf-button": "^3.1.52",
|
|
24
|
+
"@94ai/nf-button-demo": "^3.1.52",
|
|
25
|
+
"@94ai/nf-confirm": "^3.1.52",
|
|
26
|
+
"@94ai/nf-date-picker": "^3.1.52",
|
|
27
|
+
"@94ai/nf-double-half-year": "^3.1.52",
|
|
28
|
+
"@94ai/nf-double-quarter": "^3.1.52",
|
|
29
|
+
"@94ai/nf-double-time": "^3.1.52",
|
|
30
|
+
"@94ai/nf-double-week": "^3.1.52",
|
|
31
|
+
"@94ai/nf-double-year": "^3.1.52",
|
|
32
|
+
"@94ai/nf-drawer": "^3.1.52",
|
|
33
|
+
"@94ai/nf-empty": "^3.1.52",
|
|
34
|
+
"@94ai/nf-form": "^3.1.52",
|
|
35
|
+
"@94ai/nf-form-item": "^3.1.52",
|
|
36
|
+
"@94ai/nf-half-year-picker": "^3.1.52",
|
|
37
|
+
"@94ai/nf-import-template": "^3.1.52",
|
|
38
|
+
"@94ai/nf-indicator-plane": "^3.1.52",
|
|
39
|
+
"@94ai/nf-infinite-menu": "^3.1.52",
|
|
40
|
+
"@94ai/nf-menu": "^3.1.52",
|
|
41
|
+
"@94ai/nf-message": "^3.1.52",
|
|
42
|
+
"@94ai/nf-notification": "^3.1.52",
|
|
43
|
+
"@94ai/nf-quarter-picker": "^3.1.52",
|
|
44
|
+
"@94ai/nf-radio-group": "^3.1.52",
|
|
45
|
+
"@94ai/nf-resizable-panels": "^3.1.52",
|
|
46
|
+
"@94ai/nf-search-form": "^3.1.52",
|
|
47
|
+
"@94ai/nf-select-transfer": "^3.1.52",
|
|
48
|
+
"@94ai/nf-table": "^3.1.52",
|
|
49
|
+
"@94ai/nf-tag": "^3.1.52",
|
|
50
|
+
"@94ai/nf-text-overflow": "^3.1.52",
|
|
51
|
+
"@94ai/nf-theme-chalk": "^3.1.52",
|
|
52
|
+
"@94ai/nf-toast-demo": "^3.1.52",
|
|
53
|
+
"@94ai/nf-virtual-select": "^3.1.52",
|
|
54
54
|
"vue-demi": "^0.14.5"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
package/lib/const.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ComponentConstantList: string[];
|
package/lib/util.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare function resolveDebuger(name: any): void;
|
|
2
|
-
export declare function kebabCase(key: any): any;
|
|
3
|
-
export declare function getDirs(): string[];
|
|
4
|
-
export declare function getTranspileDependencies(): string[];
|
|
5
|
-
export declare const getResolver: () => {
|
|
6
|
-
type: string;
|
|
7
|
-
resolve: (name: any) => {
|
|
8
|
-
from: string;
|
|
9
|
-
sideEffects: never[];
|
|
10
|
-
} | undefined;
|
|
11
|
-
};
|
|
12
|
-
export declare const getJsComponentSampleConfig: (config?: Record<string, any>) => {
|
|
13
|
-
exclude: RegExp[];
|
|
14
|
-
include: RegExp[];
|
|
15
|
-
deep: boolean;
|
|
16
|
-
transformer: string;
|
|
17
|
-
resolvers: never[];
|
|
18
|
-
};
|
|
19
|
-
export declare const getTsComponentSampleConfig: (config?: Record<string, any>) => {
|
|
20
|
-
include: RegExp[];
|
|
21
|
-
deep: boolean;
|
|
22
|
-
extensions: string[];
|
|
23
|
-
dirs: string[];
|
|
24
|
-
resolvers: never[];
|
|
25
|
-
};
|
package/package/const.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export const ComponentConstantList = [
|
|
2
|
-
'NfMenu',
|
|
3
|
-
'NfInfiniteMenu',
|
|
4
|
-
'NfDoubleTime',
|
|
5
|
-
'NfEmpty',
|
|
6
|
-
'NfImportTemplate',
|
|
7
|
-
'NfSelectTransfer',
|
|
8
|
-
'NfRadioGroup',
|
|
9
|
-
'NfAlert',
|
|
10
|
-
'NfVirtualSelect',
|
|
11
|
-
'NfTag',
|
|
12
|
-
'NfAction',
|
|
13
|
-
'NfIndicatorPlane',
|
|
14
|
-
'NfQuarterPicker',
|
|
15
|
-
'NfDoubleQuarter',
|
|
16
|
-
'NfDoubleHalfYear',
|
|
17
|
-
'NfHalfYearPicker',
|
|
18
|
-
'NfDoubleWeek',
|
|
19
|
-
'NfDoubleYear',
|
|
20
|
-
'NfDatePicker',
|
|
21
|
-
'NfFormItem',
|
|
22
|
-
'NfForm',
|
|
23
|
-
'NfTable',
|
|
24
|
-
'NfSearchForm',
|
|
25
|
-
'NfDrawer',
|
|
26
|
-
'NfMessage',
|
|
27
|
-
'NfNotification',
|
|
28
|
-
'NfConfirm',
|
|
29
|
-
'NfTextOverflow',
|
|
30
|
-
'NfResizablePanels',
|
|
31
|
-
'NfAddress',
|
|
32
|
-
'NfAudio',
|
|
33
|
-
'NfButton'
|
|
34
|
-
]
|
package/package/util.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import fs from 'fs'
|
|
2
|
-
import path from 'path'
|
|
3
|
-
import { ComponentConstantList } from 'packages/common-ui/lib/const'
|
|
4
|
-
|
|
5
|
-
export function resolveDebuger(name) {
|
|
6
|
-
fs.appendFile(path.resolve(__dirname, './log.txt'), `${name}\n`, () => { })
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function kebabCase(key) {
|
|
10
|
-
const result = key.replace(/([A-Z])/g, ' $1').trim()
|
|
11
|
-
return result.split(' ').join('-').toLowerCase()
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export function getDirs() {
|
|
15
|
-
return ComponentConstantList.map(item => 'node_modules/@94ai/' + kebabCase(item) + '/lib')
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function getTranspileDependencies() {
|
|
19
|
-
return ComponentConstantList.map(item => '@94ai/' + kebabCase(item))
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const getResolver = () => {
|
|
23
|
-
return {
|
|
24
|
-
type: 'component',
|
|
25
|
-
resolve: (name) => {
|
|
26
|
-
resolveDebuger(name)
|
|
27
|
-
if (/^Nf[A-Za-z](?!.*[Mm][Dd]$).*$/.test(name)) {
|
|
28
|
-
const kebabCasePackageName = kebabCase(name)
|
|
29
|
-
return {
|
|
30
|
-
from: `@94ai/${kebabCasePackageName}/lib/${kebabCasePackageName}.esm-bundler.js`,
|
|
31
|
-
sideEffects: []
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export const getJsComponentSampleConfig = (config: Record<string, any> = {}) => {
|
|
39
|
-
return {
|
|
40
|
-
exclude: [/[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
|
|
41
|
-
include: [
|
|
42
|
-
/\.vue$/,
|
|
43
|
-
/\.vue\?vue/,
|
|
44
|
-
/\.vue\?v=/,
|
|
45
|
-
/\.js$/,
|
|
46
|
-
/\.js\?vue/,
|
|
47
|
-
/\.js\?v=/
|
|
48
|
-
],
|
|
49
|
-
deep: true,
|
|
50
|
-
transformer: 'vue2',
|
|
51
|
-
resolvers: [],
|
|
52
|
-
...config
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export const getTsComponentSampleConfig = (config: Record<string, any> = {}) => {
|
|
57
|
-
return {
|
|
58
|
-
include: [
|
|
59
|
-
/\.vue$/,
|
|
60
|
-
/\.vue\?vue/,
|
|
61
|
-
/\.md$/,
|
|
62
|
-
/\.md\?vue/,
|
|
63
|
-
/\.jsx$/,
|
|
64
|
-
/\.jsx\?vue/,
|
|
65
|
-
/\.tsx$/,
|
|
66
|
-
/\.tsx\?vue/,
|
|
67
|
-
/\.js$/,
|
|
68
|
-
/\.js\?vue/,
|
|
69
|
-
],
|
|
70
|
-
deep: true,
|
|
71
|
-
extensions: ['vue', 'md', 'jsx', 'tsx', 'mjs', 'mts', 'js'],
|
|
72
|
-
dirs: ['src/components', 'src/views', 'doc'],
|
|
73
|
-
resolvers: [],
|
|
74
|
-
...config
|
|
75
|
-
}
|
|
76
|
-
}
|