@windwalker-io/unicorn-next 0.1.0 → 0.1.1
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/.editorconfig +18 -18
- package/.gulp.json +7 -7
- package/bin/release.mjs +47 -47
- package/dist/chunks/button-radio.js.map +1 -1
- package/dist/chunks/checkboxes-multi-select.js.map +1 -1
- package/dist/chunks/field-cascade-select.js.map +1 -1
- package/dist/chunks/field-file-drag.js.map +1 -1
- package/dist/chunks/field-flatpickr.js.map +1 -1
- package/dist/chunks/field-modal-select.js.map +1 -1
- package/dist/chunks/field-modal-tree.js +2 -2
- package/dist/chunks/field-modal-tree.js.map +1 -1
- package/dist/chunks/field-multi-uploader.js.map +1 -1
- package/dist/chunks/field-repeatable.js.map +1 -1
- package/dist/chunks/field-single-image-drag.js.map +1 -1
- package/dist/chunks/form.js +1 -1
- package/dist/chunks/form.js.map +1 -1
- package/dist/chunks/grid.js.map +1 -1
- package/dist/chunks/http-client.js.map +1 -1
- package/dist/chunks/iframe-modal.js.map +1 -1
- package/dist/chunks/keep-tab.js +1 -1
- package/dist/chunks/keep-tab.js.map +1 -1
- package/dist/chunks/legacy.js +3 -3
- package/dist/chunks/legacy.js.map +1 -1
- package/dist/chunks/list-dependent.js.map +1 -1
- package/dist/chunks/s3-multipart-uploader.js.map +1 -1
- package/dist/chunks/s3-uploader.js.map +1 -1
- package/dist/chunks/show-on.js.map +1 -1
- package/dist/chunks/tinymce.js +14 -4
- package/dist/chunks/tinymce.js.map +1 -1
- package/dist/chunks/ui-bootstrap5.js +9 -2
- package/dist/chunks/ui-bootstrap5.js.map +1 -1
- package/dist/chunks/unicorn.js +94 -46
- package/dist/chunks/unicorn.js.map +1 -1
- package/dist/chunks/validation.js.map +1 -1
- package/dist/editor.css +1 -1
- package/dist/index.d.ts +55 -36
- package/dist/multi-level-menu.css +1 -1
- package/dist/switcher.css +1 -1
- package/dist/unicorn.js +22 -22
- package/fusionfile.mjs +155 -155
- package/package.json +102 -102
- package/scss/bootstrap/multi-level-menu.scss +121 -121
- package/scss/editor.scss +116 -116
- package/scss/field/file-drag.scss +102 -102
- package/scss/field/single-image-drag.scss +88 -88
- package/scss/field/vue-drag-uploader.scss +160 -160
- package/scss/switcher.scss +156 -156
- package/src/app.ts +128 -128
- package/src/bootstrap/button-radio.ts +208 -208
- package/src/bootstrap/keep-tab.ts +155 -155
- package/src/composable/index.ts +21 -21
- package/src/composable/useCheckboxesMultiSelect.ts +22 -22
- package/src/composable/useFieldCascadeSelect.ts +9 -9
- package/src/composable/useFieldFileDrag.ts +9 -9
- package/src/composable/useFieldFlatpickr.ts +3 -3
- package/src/composable/useFieldModalSelect.ts +6 -6
- package/src/composable/useFieldModalTree.ts +3 -3
- package/src/composable/useFieldMultiUploader.ts +3 -3
- package/src/composable/useFieldRepeatable.ts +9 -9
- package/src/composable/useFieldSingleImageDrag.ts +5 -5
- package/src/composable/useForm.ts +43 -43
- package/src/composable/useGrid.ts +57 -57
- package/src/composable/useHttp.ts +9 -8
- package/src/composable/useIframeModal.ts +9 -9
- package/src/composable/useListDependent.ts +26 -26
- package/src/composable/useQueue.ts +13 -13
- package/src/composable/useS3Uploader.ts +32 -32
- package/src/composable/useShowOn.ts +9 -9
- package/src/composable/useStack.ts +13 -13
- package/src/composable/useTinymce.ts +29 -29
- package/src/composable/useTomSelect.ts +72 -72
- package/src/composable/useUIBootstrap5.ts +48 -48
- package/src/composable/useUniDirective.ts +32 -32
- package/src/composable/useValidation.ts +39 -39
- package/src/data.ts +34 -36
- package/src/events.ts +82 -73
- package/src/legacy/legacy.ts +186 -186
- package/src/legacy/loader.ts +125 -125
- package/src/module/checkboxes-multi-select.ts +54 -54
- package/src/module/field-cascade-select.ts +292 -292
- package/src/module/field-file-drag.ts +292 -292
- package/src/module/field-flatpickr.ts +127 -127
- package/src/module/field-modal-select.ts +174 -174
- package/src/module/field-modal-tree.ts +27 -27
- package/src/module/field-multi-uploader.ts +361 -361
- package/src/module/field-repeatable.ts +202 -202
- package/src/module/field-single-image-drag.ts +468 -468
- package/src/module/form.ts +223 -223
- package/src/module/grid.ts +465 -465
- package/src/module/http-client.ts +248 -243
- package/src/module/iframe-modal.ts +167 -167
- package/src/module/list-dependent.ts +321 -321
- package/src/module/s3-multipart-uploader.ts +300 -300
- package/src/module/s3-uploader.ts +234 -234
- package/src/module/show-on.ts +173 -173
- package/src/module/tinymce.ts +279 -263
- package/src/module/ui-bootstrap5.ts +116 -107
- package/src/module/validation.ts +1019 -1019
- package/src/plugin/index.ts +1 -1
- package/src/plugin/php-adapter.ts +65 -65
- package/src/polyfill/form-request-submit.ts +31 -31
- package/src/polyfill/index.ts +9 -9
- package/src/service/animate.ts +58 -58
- package/src/service/crypto.ts +27 -27
- package/src/service/dom-watcher.ts +62 -62
- package/src/service/dom.ts +265 -265
- package/src/service/helper.ts +48 -48
- package/src/service/index.ts +10 -10
- package/src/service/lang.ts +122 -122
- package/src/service/loader.ts +152 -152
- package/src/service/router.ts +118 -118
- package/src/service/ui.ts +525 -497
- package/src/service/uri.ts +106 -106
- package/src/types/base.ts +9 -9
- package/src/types/index.ts +4 -4
- package/src/types/modal-tree.ts +12 -12
- package/src/types/plugin.ts +6 -6
- package/src/types/shims.d.ts +18 -18
- package/src/types/ui.ts +6 -6
- package/src/unicorn.ts +79 -63
- package/src/utilities/arr.ts +25 -25
- package/src/utilities/base.ts +9 -9
- package/src/utilities/data.ts +48 -48
- package/src/utilities/index.ts +5 -5
- package/src/utilities/tree.ts +20 -20
- package/src/vue/components/ModalTree/ModalTreeApp.vue +175 -175
- package/src/vue/components/ModalTree/TreeItem.vue +262 -262
- package/src/vue/components/ModalTree/TreeModal.vue +225 -225
- package/tests/test.js +4 -4
- package/tsconfig.js.json +25 -25
- package/tsconfig.json +17 -17
- package/vite.assets.config.ts +61 -61
- package/vite.config.test.ts +36 -36
- package/vite.config.ts +112 -112
- package/dist/unicorn-next.css +0 -12
package/dist/unicorn.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { au, ae, aH, b5, aG, aD, _, h, aK, aI, aF, b, J, I, aM, d, e, af, a$, ak, al, aa, D, C, ac, ay, t, T, S, ab, x, y, A, aJ, U, B, f, a7, i, l, N, z, av, aL, p, a4, ao, as, at, ar, c, r, w, v, M, G, F, s, aj, Q, R, P, E, L, ag, K, aB, q, b2, b1, $, Y, V, a9, aA, X, W, aN, aO, aP, aQ, aR, aS, aT, j, a2, a0, aU, g, k, a3, a1, aV, u, aW, a8, an, Z, ax, aq, aX, ap, n, aZ, aY, ai, az, a_, m, o, O, aC, b0, ah, a, am, b4, aE, b3, aw, a6 } from "./chunks/unicorn.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
at as AttributeMutationObserver,
|
|
3
|
+
au as AttributeMutationObserver,
|
|
5
4
|
ae as EventMixin,
|
|
6
5
|
aH as UnicornAssetUri,
|
|
7
6
|
b5 as UnicornPhpAdapter,
|
|
@@ -20,8 +19,8 @@ export {
|
|
|
20
19
|
e as clearNotifies,
|
|
21
20
|
af as createQueue,
|
|
22
21
|
a$ as createStack,
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
ak as createUnicorn,
|
|
23
|
+
al as createUnicornWithPlugins,
|
|
25
24
|
aa as data,
|
|
26
25
|
D as debounce,
|
|
27
26
|
C as delegate,
|
|
@@ -43,15 +42,14 @@ export {
|
|
|
43
42
|
l as loadAlpine,
|
|
44
43
|
N as mark,
|
|
45
44
|
z as module,
|
|
46
|
-
|
|
47
|
-
n as notify,
|
|
45
|
+
av as nextTick,
|
|
48
46
|
aL as parseQuery,
|
|
49
47
|
p as prepareAlpine,
|
|
50
48
|
a4 as prepareAlpineDefer,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
ao as pushUnicornToGlobal,
|
|
50
|
+
as as randomBytes,
|
|
51
|
+
at as randomBytesString,
|
|
52
|
+
ar as removeData,
|
|
55
53
|
c as renderMessage,
|
|
56
54
|
r as route,
|
|
57
55
|
w as selectAll,
|
|
@@ -59,7 +57,8 @@ export {
|
|
|
59
57
|
M as serial,
|
|
60
58
|
G as simpleAlert,
|
|
61
59
|
F as simpleConfirm,
|
|
62
|
-
|
|
60
|
+
s as simpleNotify,
|
|
61
|
+
aj as sleep,
|
|
63
62
|
Q as slideDown,
|
|
64
63
|
R as slideToggle,
|
|
65
64
|
P as slideUp,
|
|
@@ -67,7 +66,8 @@ export {
|
|
|
67
66
|
L as tid,
|
|
68
67
|
ag as trans,
|
|
69
68
|
K as uid,
|
|
70
|
-
|
|
69
|
+
aB as useAlertAdapter,
|
|
70
|
+
q as useAssetUri,
|
|
71
71
|
b2 as useBs5ButtonRadio,
|
|
72
72
|
b1 as useBs5KeepTab,
|
|
73
73
|
$ as useBs5Tooltip,
|
|
@@ -96,30 +96,30 @@ export {
|
|
|
96
96
|
u as useHttpClient,
|
|
97
97
|
aW as useIframeModal,
|
|
98
98
|
a8 as useImport,
|
|
99
|
-
|
|
99
|
+
an as useInject,
|
|
100
100
|
Z as useKeepAlive,
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
ax as useLang,
|
|
102
|
+
aq as useLegacy,
|
|
103
103
|
aX as useListDependent,
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
ap as useMacro,
|
|
105
|
+
n as useQueue,
|
|
106
106
|
aZ as useS3MultipartUploader,
|
|
107
107
|
aY as useS3Uploader,
|
|
108
|
-
|
|
108
|
+
ai as useScriptImport,
|
|
109
109
|
az as useSeriesImport,
|
|
110
110
|
a_ as useShowOn,
|
|
111
111
|
m as useStack,
|
|
112
|
-
|
|
112
|
+
o as useSystemUri,
|
|
113
113
|
O as useTomSelect,
|
|
114
114
|
aC as useUI,
|
|
115
115
|
b0 as useUIBootstrap5,
|
|
116
116
|
ah as useUITheme,
|
|
117
117
|
a as useUniDirective,
|
|
118
|
-
|
|
118
|
+
am as useUnicorn,
|
|
119
119
|
b4 as useUnicornPhpAdapter,
|
|
120
120
|
aE as useVueComponentField,
|
|
121
121
|
b3 as useWebDirective,
|
|
122
|
-
|
|
122
|
+
aw as wait,
|
|
123
123
|
a6 as watchAttributes
|
|
124
124
|
};
|
|
125
125
|
//# sourceMappingURL=unicorn.js.map
|
package/fusionfile.mjs
CHANGED
|
@@ -1,155 +1,155 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Part of Windwalker Fusion project.
|
|
3
|
-
*
|
|
4
|
-
* @copyright Copyright (C) 2021 LYRASOFT.
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import fusion, {
|
|
9
|
-
babel,
|
|
10
|
-
webpack,
|
|
11
|
-
rollup,
|
|
12
|
-
sass,
|
|
13
|
-
parallel,
|
|
14
|
-
series,
|
|
15
|
-
module,
|
|
16
|
-
wait,
|
|
17
|
-
ts,
|
|
18
|
-
webpackBundle
|
|
19
|
-
} from '@windwalker-io/fusion';
|
|
20
|
-
import { babelBasicOptions } from '@windwalker-io/fusion/src/utilities/babel.js';
|
|
21
|
-
import dtsBundle from 'bundle-declarations-webpack-plugin';
|
|
22
|
-
import * as path from 'path';
|
|
23
|
-
import * as moduleTasks from './src/fusion/service.mjs';
|
|
24
|
-
export * from './src/fusion/service.mjs';
|
|
25
|
-
|
|
26
|
-
export async function js() {
|
|
27
|
-
// Watch start
|
|
28
|
-
fusion.watch(['src/js/**/*.ts', 'src/systemjs/**/*.ts']);
|
|
29
|
-
// Watch end
|
|
30
|
-
|
|
31
|
-
// Compile Start
|
|
32
|
-
return wait(
|
|
33
|
-
ts('src/js/**/*.ts', 'dist/', { }),
|
|
34
|
-
ts('src/systemjs/**/*.ts', 'dist/', { tsconfig: 'tsconfig.js.json' })
|
|
35
|
-
);
|
|
36
|
-
// Compile end
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export const modules = parallel(
|
|
40
|
-
...Object.values(moduleTasks)
|
|
41
|
-
);
|
|
42
|
-
|
|
43
|
-
export async function css() {
|
|
44
|
-
// Watch start
|
|
45
|
-
fusion.watch('scss/**/*.scss');
|
|
46
|
-
// Watch end
|
|
47
|
-
|
|
48
|
-
// Compile Start
|
|
49
|
-
return wait(
|
|
50
|
-
sass('scss/switcher.scss', 'dist/', { minify: 'separate_file' }),
|
|
51
|
-
sass('scss/editor.scss', 'dist/', { minify: 'separate_file' }),
|
|
52
|
-
sass('scss/bootstrap/multi-level-menu.scss', 'dist/bootstrap/', { minify: 'separate_file' }),
|
|
53
|
-
sass('scss/bootstrap/bs4-adapter.scss', 'dist/bootstrap/', { minify: 'separate_file' }),
|
|
54
|
-
sass('scss/field/single-image-drag.scss', 'dist/field/', { minify: 'separate_file' }),
|
|
55
|
-
);
|
|
56
|
-
// Compile end
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export async function vue() {
|
|
60
|
-
// Watch start
|
|
61
|
-
fusion.watch(['scss/**/*.scss', 'src/vue/**/*']);
|
|
62
|
-
// Watch end
|
|
63
|
-
|
|
64
|
-
// Compile Start
|
|
65
|
-
return wait(
|
|
66
|
-
fusion.vue('src/vue/entries/**/*.js', 'dist/vue/', {
|
|
67
|
-
excludeVue: true
|
|
68
|
-
})
|
|
69
|
-
);
|
|
70
|
-
// Compile end
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// export async function wc() {
|
|
74
|
-
// // Watch start
|
|
75
|
-
// fusion.watch([
|
|
76
|
-
// 'asset/ws/**/*.js'
|
|
77
|
-
// ]);
|
|
78
|
-
// // Watch end
|
|
79
|
-
//
|
|
80
|
-
// // Compile Start
|
|
81
|
-
// webpack('src/wc/**/*.js', 'dist/ui/', {
|
|
82
|
-
// // override() {
|
|
83
|
-
// // return {
|
|
84
|
-
// // mode: process.env.NODE_ENV || 'development',
|
|
85
|
-
// // output: {
|
|
86
|
-
// // filename: '[name].js',
|
|
87
|
-
// // sourceMapFilename: '[name].js.map'
|
|
88
|
-
// // },
|
|
89
|
-
// // stats: {
|
|
90
|
-
// // all: false,
|
|
91
|
-
// // errors: true,
|
|
92
|
-
// // warnings: true,
|
|
93
|
-
// // version: false,
|
|
94
|
-
// // },
|
|
95
|
-
// // module: {
|
|
96
|
-
// // rules: [
|
|
97
|
-
// // {
|
|
98
|
-
// // test: /\.m?js$/,
|
|
99
|
-
// // // Fis LitElement issue, @see https://github.com/Polymer/lit-element/issues/54#issuecomment-439824447
|
|
100
|
-
// // exclude: /node_modules\/(?!(lit-html|@polymer)\/).*/,
|
|
101
|
-
// // use: [{
|
|
102
|
-
// // loader: 'babel-loader',
|
|
103
|
-
// // options: babelBasicOptions().get()
|
|
104
|
-
// // }, 'webpack-comment-remover-loader']
|
|
105
|
-
// // }
|
|
106
|
-
// // ]
|
|
107
|
-
// // },
|
|
108
|
-
// // plugins: []
|
|
109
|
-
// // };
|
|
110
|
-
// // }
|
|
111
|
-
// });
|
|
112
|
-
// // Compile end
|
|
113
|
-
// }
|
|
114
|
-
|
|
115
|
-
export default parallel(
|
|
116
|
-
js,
|
|
117
|
-
css,
|
|
118
|
-
modules,
|
|
119
|
-
vue
|
|
120
|
-
);
|
|
121
|
-
|
|
122
|
-
/*
|
|
123
|
-
* APIs
|
|
124
|
-
*
|
|
125
|
-
* Compile entry:
|
|
126
|
-
* fusion.js(source, dest, options = {})
|
|
127
|
-
* fusion.babel(source, dest, options = {})
|
|
128
|
-
* fusion.module(source, dest, options = {})
|
|
129
|
-
* fusion.ts(source, dest, options = {})
|
|
130
|
-
* fusion.typeScript(source, dest, options = {})
|
|
131
|
-
* fusion.css(source, dest, options = {})
|
|
132
|
-
* fusion.sass(source, dest, options = {})
|
|
133
|
-
* fusion.copy(source, dest, options = {})
|
|
134
|
-
*
|
|
135
|
-
* Live Reload:
|
|
136
|
-
* fusion.livereload(source, dest, options = {})
|
|
137
|
-
* fusion.reload(file)
|
|
138
|
-
*
|
|
139
|
-
* Gulp proxy:
|
|
140
|
-
* fusion.src(source, options)
|
|
141
|
-
* fusion.dest(path, options)
|
|
142
|
-
* fusion.watch(glob, opt, fn)
|
|
143
|
-
* fusion.symlink(directory, options = {})
|
|
144
|
-
* fusion.lastRun(task, precision)
|
|
145
|
-
* fusion.tree(options = {})
|
|
146
|
-
* fusion.series(...tasks)
|
|
147
|
-
* fusion.parallel(...tasks)
|
|
148
|
-
*
|
|
149
|
-
* Stream Helper:
|
|
150
|
-
* fusion.through(handler) // Same as through2.obj()
|
|
151
|
-
*
|
|
152
|
-
* Config:
|
|
153
|
-
* fusion.disableNotification()
|
|
154
|
-
* fusion.enableNotification()
|
|
155
|
-
*/
|
|
1
|
+
/**
|
|
2
|
+
* Part of Windwalker Fusion project.
|
|
3
|
+
*
|
|
4
|
+
* @copyright Copyright (C) 2021 LYRASOFT.
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import fusion, {
|
|
9
|
+
babel,
|
|
10
|
+
webpack,
|
|
11
|
+
rollup,
|
|
12
|
+
sass,
|
|
13
|
+
parallel,
|
|
14
|
+
series,
|
|
15
|
+
module,
|
|
16
|
+
wait,
|
|
17
|
+
ts,
|
|
18
|
+
webpackBundle
|
|
19
|
+
} from '@windwalker-io/fusion';
|
|
20
|
+
import { babelBasicOptions } from '@windwalker-io/fusion/src/utilities/babel.js';
|
|
21
|
+
import dtsBundle from 'bundle-declarations-webpack-plugin';
|
|
22
|
+
import * as path from 'path';
|
|
23
|
+
import * as moduleTasks from './src/fusion/service.mjs';
|
|
24
|
+
export * from './src/fusion/service.mjs';
|
|
25
|
+
|
|
26
|
+
export async function js() {
|
|
27
|
+
// Watch start
|
|
28
|
+
fusion.watch(['src/js/**/*.ts', 'src/systemjs/**/*.ts']);
|
|
29
|
+
// Watch end
|
|
30
|
+
|
|
31
|
+
// Compile Start
|
|
32
|
+
return wait(
|
|
33
|
+
ts('src/js/**/*.ts', 'dist/', { }),
|
|
34
|
+
ts('src/systemjs/**/*.ts', 'dist/', { tsconfig: 'tsconfig.js.json' })
|
|
35
|
+
);
|
|
36
|
+
// Compile end
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export const modules = parallel(
|
|
40
|
+
...Object.values(moduleTasks)
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
export async function css() {
|
|
44
|
+
// Watch start
|
|
45
|
+
fusion.watch('scss/**/*.scss');
|
|
46
|
+
// Watch end
|
|
47
|
+
|
|
48
|
+
// Compile Start
|
|
49
|
+
return wait(
|
|
50
|
+
sass('scss/switcher.scss', 'dist/', { minify: 'separate_file' }),
|
|
51
|
+
sass('scss/editor.scss', 'dist/', { minify: 'separate_file' }),
|
|
52
|
+
sass('scss/bootstrap/multi-level-menu.scss', 'dist/bootstrap/', { minify: 'separate_file' }),
|
|
53
|
+
sass('scss/bootstrap/bs4-adapter.scss', 'dist/bootstrap/', { minify: 'separate_file' }),
|
|
54
|
+
sass('scss/field/single-image-drag.scss', 'dist/field/', { minify: 'separate_file' }),
|
|
55
|
+
);
|
|
56
|
+
// Compile end
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export async function vue() {
|
|
60
|
+
// Watch start
|
|
61
|
+
fusion.watch(['scss/**/*.scss', 'src/vue/**/*']);
|
|
62
|
+
// Watch end
|
|
63
|
+
|
|
64
|
+
// Compile Start
|
|
65
|
+
return wait(
|
|
66
|
+
fusion.vue('src/vue/entries/**/*.js', 'dist/vue/', {
|
|
67
|
+
excludeVue: true
|
|
68
|
+
})
|
|
69
|
+
);
|
|
70
|
+
// Compile end
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// export async function wc() {
|
|
74
|
+
// // Watch start
|
|
75
|
+
// fusion.watch([
|
|
76
|
+
// 'asset/ws/**/*.js'
|
|
77
|
+
// ]);
|
|
78
|
+
// // Watch end
|
|
79
|
+
//
|
|
80
|
+
// // Compile Start
|
|
81
|
+
// webpack('src/wc/**/*.js', 'dist/ui/', {
|
|
82
|
+
// // override() {
|
|
83
|
+
// // return {
|
|
84
|
+
// // mode: process.env.NODE_ENV || 'development',
|
|
85
|
+
// // output: {
|
|
86
|
+
// // filename: '[name].js',
|
|
87
|
+
// // sourceMapFilename: '[name].js.map'
|
|
88
|
+
// // },
|
|
89
|
+
// // stats: {
|
|
90
|
+
// // all: false,
|
|
91
|
+
// // errors: true,
|
|
92
|
+
// // warnings: true,
|
|
93
|
+
// // version: false,
|
|
94
|
+
// // },
|
|
95
|
+
// // module: {
|
|
96
|
+
// // rules: [
|
|
97
|
+
// // {
|
|
98
|
+
// // test: /\.m?js$/,
|
|
99
|
+
// // // Fis LitElement issue, @see https://github.com/Polymer/lit-element/issues/54#issuecomment-439824447
|
|
100
|
+
// // exclude: /node_modules\/(?!(lit-html|@polymer)\/).*/,
|
|
101
|
+
// // use: [{
|
|
102
|
+
// // loader: 'babel-loader',
|
|
103
|
+
// // options: babelBasicOptions().get()
|
|
104
|
+
// // }, 'webpack-comment-remover-loader']
|
|
105
|
+
// // }
|
|
106
|
+
// // ]
|
|
107
|
+
// // },
|
|
108
|
+
// // plugins: []
|
|
109
|
+
// // };
|
|
110
|
+
// // }
|
|
111
|
+
// });
|
|
112
|
+
// // Compile end
|
|
113
|
+
// }
|
|
114
|
+
|
|
115
|
+
export default parallel(
|
|
116
|
+
js,
|
|
117
|
+
css,
|
|
118
|
+
modules,
|
|
119
|
+
vue
|
|
120
|
+
);
|
|
121
|
+
|
|
122
|
+
/*
|
|
123
|
+
* APIs
|
|
124
|
+
*
|
|
125
|
+
* Compile entry:
|
|
126
|
+
* fusion.js(source, dest, options = {})
|
|
127
|
+
* fusion.babel(source, dest, options = {})
|
|
128
|
+
* fusion.module(source, dest, options = {})
|
|
129
|
+
* fusion.ts(source, dest, options = {})
|
|
130
|
+
* fusion.typeScript(source, dest, options = {})
|
|
131
|
+
* fusion.css(source, dest, options = {})
|
|
132
|
+
* fusion.sass(source, dest, options = {})
|
|
133
|
+
* fusion.copy(source, dest, options = {})
|
|
134
|
+
*
|
|
135
|
+
* Live Reload:
|
|
136
|
+
* fusion.livereload(source, dest, options = {})
|
|
137
|
+
* fusion.reload(file)
|
|
138
|
+
*
|
|
139
|
+
* Gulp proxy:
|
|
140
|
+
* fusion.src(source, options)
|
|
141
|
+
* fusion.dest(path, options)
|
|
142
|
+
* fusion.watch(glob, opt, fn)
|
|
143
|
+
* fusion.symlink(directory, options = {})
|
|
144
|
+
* fusion.lastRun(task, precision)
|
|
145
|
+
* fusion.tree(options = {})
|
|
146
|
+
* fusion.series(...tasks)
|
|
147
|
+
* fusion.parallel(...tasks)
|
|
148
|
+
*
|
|
149
|
+
* Stream Helper:
|
|
150
|
+
* fusion.through(handler) // Same as through2.obj()
|
|
151
|
+
*
|
|
152
|
+
* Config:
|
|
153
|
+
* fusion.disableNotification()
|
|
154
|
+
* fusion.enableNotification()
|
|
155
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@windwalker-io/unicorn-next",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Unicorn framework js library",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"typings": "dist/index.d.ts",
|
|
7
|
-
"main": "dist/unicorn.js",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"dev": "vite build --watch --mode development",
|
|
10
|
-
"build": "vite build",
|
|
11
|
-
"preview": "vite preview",
|
|
12
|
-
"dev:assets": "vite build --watch --mode development --config vite.assets.config.ts",
|
|
13
|
-
"build:assets": "vite build --config vite.assets.config.ts",
|
|
14
|
-
"build:prod": "
|
|
15
|
-
},
|
|
16
|
-
"sideEffects": false,
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/ventoviro/unicorn.git"
|
|
20
|
-
},
|
|
21
|
-
"keywords": [
|
|
22
|
-
"windwalker",
|
|
23
|
-
"unicorn",
|
|
24
|
-
"windwalker-libs"
|
|
25
|
-
],
|
|
26
|
-
"author": "Simon Asika",
|
|
27
|
-
"license": "MIT",
|
|
28
|
-
"bugs": {
|
|
29
|
-
"url": "https://github.com/ventoviro/unicorn/issues"
|
|
30
|
-
},
|
|
31
|
-
"homepage": "https://github.com/ventoviro/unicorn#readme",
|
|
32
|
-
"windwalker": {
|
|
33
|
-
"vendors": [
|
|
34
|
-
"@fortawesome/fontawesome-free",
|
|
35
|
-
"@windwalker-io/unicorn",
|
|
36
|
-
"@windwalker-io/unicorn-next",
|
|
37
|
-
"@webcomponents/webcomponentsjs",
|
|
38
|
-
"@ryangjchandler/spruce",
|
|
39
|
-
"@asika32764/vue-animate",
|
|
40
|
-
"alpinejs",
|
|
41
|
-
"awesome-bootstrap-checkbox",
|
|
42
|
-
"axios",
|
|
43
|
-
"bootstrap",
|
|
44
|
-
"cropperjs",
|
|
45
|
-
"flatpickr",
|
|
46
|
-
"regenerator-runtime",
|
|
47
|
-
"systemjs",
|
|
48
|
-
"sortablejs",
|
|
49
|
-
"tinymce",
|
|
50
|
-
"tinymce-i18n",
|
|
51
|
-
"vue",
|
|
52
|
-
"sortablejs",
|
|
53
|
-
"spectrum-vanilla",
|
|
54
|
-
"vuedraggable",
|
|
55
|
-
"vue2-animate",
|
|
56
|
-
"choices.js",
|
|
57
|
-
"tom-select",
|
|
58
|
-
"mark.js",
|
|
59
|
-
"core-js-bundle",
|
|
60
|
-
"jquery",
|
|
61
|
-
"current-script-polyfill"
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
"devDependencies": {
|
|
65
|
-
"@lyrasoft/ts-toolkit": "^0.2.0",
|
|
66
|
-
"@rubenbimmel/alpine-class-component": "^0.0.4",
|
|
67
|
-
"@types/alpinejs": "^3",
|
|
68
|
-
"@types/bootstrap": "^5",
|
|
69
|
-
"@types/lodash-es": "^4.17.12",
|
|
70
|
-
"@types/punycode": "^2",
|
|
71
|
-
"@types/sortablejs": "^1",
|
|
72
|
-
"@types/sprintf-js": "^1",
|
|
73
|
-
"@vitejs/plugin-vue": "^6.0.1",
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"spectrum-vanilla": "^1.1.1",
|
|
96
|
-
"tinymce": "^6.0||^7.0||^8.0",
|
|
97
|
-
"tom-select": "^2.4.3",
|
|
98
|
-
"vue-draggable-plus": "^0.6.0",
|
|
99
|
-
"vue-multi-uploader": "^0.1.9",
|
|
100
|
-
"web-directive": "^0.1.1"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@windwalker-io/unicorn-next",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Unicorn framework js library",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"typings": "dist/index.d.ts",
|
|
7
|
+
"main": "dist/unicorn.js",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "vite build --watch --mode development",
|
|
10
|
+
"build": "vite build",
|
|
11
|
+
"preview": "vite preview",
|
|
12
|
+
"dev:assets": "vite build --watch --mode development --config vite.assets.config.ts",
|
|
13
|
+
"build:assets": "vite build --config vite.assets.config.ts",
|
|
14
|
+
"build:prod": "yarn build && yarn build:assets"
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/ventoviro/unicorn.git"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"windwalker",
|
|
23
|
+
"unicorn",
|
|
24
|
+
"windwalker-libs"
|
|
25
|
+
],
|
|
26
|
+
"author": "Simon Asika",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/ventoviro/unicorn/issues"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://github.com/ventoviro/unicorn#readme",
|
|
32
|
+
"windwalker": {
|
|
33
|
+
"vendors": [
|
|
34
|
+
"@fortawesome/fontawesome-free",
|
|
35
|
+
"@windwalker-io/unicorn",
|
|
36
|
+
"@windwalker-io/unicorn-next",
|
|
37
|
+
"@webcomponents/webcomponentsjs",
|
|
38
|
+
"@ryangjchandler/spruce",
|
|
39
|
+
"@asika32764/vue-animate",
|
|
40
|
+
"alpinejs",
|
|
41
|
+
"awesome-bootstrap-checkbox",
|
|
42
|
+
"axios",
|
|
43
|
+
"bootstrap",
|
|
44
|
+
"cropperjs",
|
|
45
|
+
"flatpickr",
|
|
46
|
+
"regenerator-runtime",
|
|
47
|
+
"systemjs",
|
|
48
|
+
"sortablejs",
|
|
49
|
+
"tinymce",
|
|
50
|
+
"tinymce-i18n",
|
|
51
|
+
"vue",
|
|
52
|
+
"sortablejs",
|
|
53
|
+
"spectrum-vanilla",
|
|
54
|
+
"vuedraggable",
|
|
55
|
+
"vue2-animate",
|
|
56
|
+
"choices.js",
|
|
57
|
+
"tom-select",
|
|
58
|
+
"mark.js",
|
|
59
|
+
"core-js-bundle",
|
|
60
|
+
"jquery",
|
|
61
|
+
"current-script-polyfill"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@lyrasoft/ts-toolkit": "^0.2.0",
|
|
66
|
+
"@rubenbimmel/alpine-class-component": "^0.0.4",
|
|
67
|
+
"@types/alpinejs": "^3",
|
|
68
|
+
"@types/bootstrap": "^5",
|
|
69
|
+
"@types/lodash-es": "^4.17.12",
|
|
70
|
+
"@types/punycode": "^2",
|
|
71
|
+
"@types/sortablejs": "^1",
|
|
72
|
+
"@types/sprintf-js": "^1",
|
|
73
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
74
|
+
"bootstrap": "^5.3.8",
|
|
75
|
+
"lodash-es": "^4.17.21",
|
|
76
|
+
"punycode": "^2.3.1",
|
|
77
|
+
"qss": "^3.0.0",
|
|
78
|
+
"rimraf": "^6.0.1",
|
|
79
|
+
"rollup-plugin-tree-shakeable": "^2.0.0",
|
|
80
|
+
"sprintf-js": "^1.1.3",
|
|
81
|
+
"ts-mixer": "^6.0.4",
|
|
82
|
+
"unplugin-dts": "^1.0.0-beta.6",
|
|
83
|
+
"url-template": "^3.1.1",
|
|
84
|
+
"vite": "^7.1.7",
|
|
85
|
+
"vite-plugin-dts": "^4.5.4",
|
|
86
|
+
"vue3-slide-up-down": "^2.1.0"
|
|
87
|
+
},
|
|
88
|
+
"dependencies": {
|
|
89
|
+
"alpinejs": "^3.15.0",
|
|
90
|
+
"axios": "^1.12.2",
|
|
91
|
+
"bigint-toolkit": "^0.2.0",
|
|
92
|
+
"cropperjs": "^1.5.11",
|
|
93
|
+
"flatpickr": "^4.6.13",
|
|
94
|
+
"sortablejs": "^1.15.6",
|
|
95
|
+
"spectrum-vanilla": "^1.1.1",
|
|
96
|
+
"tinymce": "^6.0||^7.0||^8.0",
|
|
97
|
+
"tom-select": "^2.4.3",
|
|
98
|
+
"vue-draggable-plus": "^0.6.0",
|
|
99
|
+
"vue-multi-uploader": "^0.1.9",
|
|
100
|
+
"web-directive": "^0.1.1"
|
|
101
|
+
}
|
|
102
|
+
}
|