@modern-js/entry-generator 3.1.17 → 3.1.19
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/index.js +104 -140
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -35150,6 +35150,8 @@ var require_chainId = __commonJS({
|
|
|
35150
35150
|
BOTTOM_TEMPLATE: "bottom-template",
|
|
35151
35151
|
/** HtmlCrossOriginPlugin */
|
|
35152
35152
|
HTML_CROSS_ORIGIN: "html-cross-origin",
|
|
35153
|
+
/** HtmlNoncePlugin */
|
|
35154
|
+
HTML_NONCE: "html-nonce",
|
|
35153
35155
|
/** MiniCssExtractPlugin */
|
|
35154
35156
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
35155
35157
|
/** ReactFastRefreshPlugin */
|
|
@@ -116321,11 +116323,11 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
|
116321
116323
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
|
116322
116324
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
|
116323
116325
|
|
|
116324
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
116326
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
116325
116327
|
var import_lodash8 = __toESM(require_lodash4());
|
|
116326
116328
|
var import_comment_json = __toESM(require_src2());
|
|
116327
116329
|
|
|
116328
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
116330
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
|
|
116329
116331
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
116330
116332
|
try {
|
|
116331
116333
|
var info = gen[key](arg);
|
|
@@ -116633,7 +116635,7 @@ function _canUsePnpm() {
|
|
|
116633
116635
|
return _canUsePnpm.apply(this, arguments);
|
|
116634
116636
|
}
|
|
116635
116637
|
|
|
116636
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
116638
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
|
|
116637
116639
|
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
116638
116640
|
try {
|
|
116639
116641
|
var info = gen[key](arg);
|
|
@@ -117000,7 +117002,7 @@ function _pnpmInstall() {
|
|
|
117000
117002
|
return _pnpmInstall.apply(this, arguments);
|
|
117001
117003
|
}
|
|
117002
117004
|
|
|
117003
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
117005
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
|
|
117004
117006
|
function _class_call_check(instance, Constructor) {
|
|
117005
117007
|
if (!(instance instanceof Constructor)) {
|
|
117006
117008
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -117081,7 +117083,7 @@ var NpmAPI = /* @__PURE__ */ function() {
|
|
|
117081
117083
|
return NpmAPI2;
|
|
117082
117084
|
}();
|
|
117083
117085
|
|
|
117084
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
117086
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-git/dist/esm/utils/index.js
|
|
117085
117087
|
function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
117086
117088
|
try {
|
|
117087
117089
|
var info = gen[key](arg);
|
|
@@ -117423,7 +117425,7 @@ function _gitCommit() {
|
|
|
117423
117425
|
return _gitCommit.apply(this, arguments);
|
|
117424
117426
|
}
|
|
117425
117427
|
|
|
117426
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
117428
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-git/dist/esm/index.js
|
|
117427
117429
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
117428
117430
|
try {
|
|
117429
117431
|
var info = gen[key](arg);
|
|
@@ -117754,11 +117756,11 @@ var GitAPI = /* @__PURE__ */ function() {
|
|
|
117754
117756
|
return GitAPI2;
|
|
117755
117757
|
}();
|
|
117756
117758
|
|
|
117757
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
117759
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
|
117758
117760
|
var import_path2 = __toESM(require("path"));
|
|
117759
117761
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
117760
117762
|
|
|
117761
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
117763
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
|
|
117762
117764
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
117763
117765
|
try {
|
|
117764
117766
|
var info = gen[key](arg);
|
|
@@ -117931,7 +117933,7 @@ function _fsExists() {
|
|
|
117931
117933
|
return _fsExists.apply(this, arguments);
|
|
117932
117934
|
}
|
|
117933
117935
|
|
|
117934
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
117936
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/utils/renderString.js
|
|
117935
117937
|
var import_handlebars = __toESM(require_lib());
|
|
117936
117938
|
function _define_property5(obj, key, value) {
|
|
117937
117939
|
if (key in obj) {
|
|
@@ -117973,7 +117975,7 @@ function renderString(template, fullData, registers) {
|
|
|
117973
117975
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
117974
117976
|
}
|
|
117975
117977
|
|
|
117976
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
117978
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/index.js
|
|
117977
117979
|
function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
117978
117980
|
try {
|
|
117979
117981
|
var info = gen[key](arg);
|
|
@@ -118291,13 +118293,13 @@ var HandlebarsAPI = /* @__PURE__ */ function() {
|
|
|
118291
118293
|
return HandlebarsAPI2;
|
|
118292
118294
|
}();
|
|
118293
118295
|
|
|
118294
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
118296
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm/utils/renderString.js
|
|
118295
118297
|
var import_ejs = __toESM(require_ejs());
|
|
118296
118298
|
function renderString2(template, fullData) {
|
|
118297
118299
|
return import_ejs.default.render(template, fullData) || "";
|
|
118298
118300
|
}
|
|
118299
118301
|
|
|
118300
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
118302
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm/index.js
|
|
118301
118303
|
function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118302
118304
|
try {
|
|
118303
118305
|
var info = gen[key](arg);
|
|
@@ -118567,24 +118569,8 @@ var EjsAPI = /* @__PURE__ */ function() {
|
|
|
118567
118569
|
return EjsAPI2;
|
|
118568
118570
|
}();
|
|
118569
118571
|
|
|
118570
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.
|
|
118572
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
|
118571
118573
|
var import_path3 = __toESM(require("path"));
|
|
118572
|
-
|
|
118573
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-fs/dist/esm/constant.js
|
|
118574
|
-
var imageExtNameList = [
|
|
118575
|
-
".jpg",
|
|
118576
|
-
".jpeg",
|
|
118577
|
-
".png",
|
|
118578
|
-
".gif",
|
|
118579
|
-
".bmp",
|
|
118580
|
-
".ico",
|
|
118581
|
-
".icon",
|
|
118582
|
-
".mpt",
|
|
118583
|
-
".psd",
|
|
118584
|
-
".wmf"
|
|
118585
|
-
];
|
|
118586
|
-
|
|
118587
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
|
118588
118574
|
function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118589
118575
|
try {
|
|
118590
118576
|
var info = gen[key](arg);
|
|
@@ -118764,48 +118750,26 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
118764
118750
|
value: function renderFile(resource, target) {
|
|
118765
118751
|
var _this = this;
|
|
118766
118752
|
return _async_to_generator8(function() {
|
|
118767
|
-
var
|
|
118753
|
+
var filePath;
|
|
118768
118754
|
return __generator8(this, function(_state) {
|
|
118769
118755
|
switch (_state.label) {
|
|
118770
118756
|
case 0:
|
|
118771
118757
|
if (resource._type !== FS_RESOURCE) {
|
|
118772
118758
|
throw new Error("resource not match");
|
|
118773
118759
|
}
|
|
118760
|
+
filePath = import_path3.default.resolve(_this.generatorCore.outputPath, target.toString());
|
|
118774
118761
|
return [
|
|
118775
118762
|
4,
|
|
118776
|
-
|
|
118763
|
+
import_fs_extra.default.mkdirp(import_path3.default.dirname(filePath))
|
|
118777
118764
|
];
|
|
118778
118765
|
case 1:
|
|
118779
|
-
resourceValue = _state.sent();
|
|
118780
|
-
resourceFileExt = import_path3.default.extname(resource.filePath);
|
|
118781
|
-
if (!imageExtNameList.includes(resourceFileExt))
|
|
118782
|
-
return [
|
|
118783
|
-
3,
|
|
118784
|
-
3
|
|
118785
|
-
];
|
|
118786
|
-
return [
|
|
118787
|
-
4,
|
|
118788
|
-
_this.generatorCore.output.fs(target, resourceValue.content, {
|
|
118789
|
-
encoding: "binary"
|
|
118790
|
-
})
|
|
118791
|
-
];
|
|
118792
|
-
case 2:
|
|
118793
118766
|
_state.sent();
|
|
118794
|
-
return [
|
|
118795
|
-
3,
|
|
118796
|
-
5
|
|
118797
|
-
];
|
|
118798
|
-
case 3:
|
|
118799
118767
|
return [
|
|
118800
118768
|
4,
|
|
118801
|
-
|
|
118802
|
-
encoding: "utf-8"
|
|
118803
|
-
})
|
|
118769
|
+
import_fs_extra.default.copyFile(resource.filePath, filePath)
|
|
118804
118770
|
];
|
|
118805
|
-
case
|
|
118771
|
+
case 2:
|
|
118806
118772
|
_state.sent();
|
|
118807
|
-
_state.label = 5;
|
|
118808
|
-
case 5:
|
|
118809
118773
|
return [
|
|
118810
118774
|
2
|
|
118811
118775
|
];
|
|
@@ -118868,7 +118832,7 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
118868
118832
|
return FsAPI2;
|
|
118869
118833
|
}();
|
|
118870
118834
|
|
|
118871
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118835
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
|
118872
118836
|
var toString = Object.prototype.toString;
|
|
118873
118837
|
var isType = function(type) {
|
|
118874
118838
|
return function(obj) {
|
|
@@ -118894,7 +118858,7 @@ var isObj = function(val) {
|
|
|
118894
118858
|
};
|
|
118895
118859
|
var isRegExp = isType("RegExp");
|
|
118896
118860
|
|
|
118897
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118861
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/array.js
|
|
118898
118862
|
var toArr = function(val) {
|
|
118899
118863
|
return isArr(val) ? val : val ? [val] : [];
|
|
118900
118864
|
};
|
|
@@ -118945,7 +118909,7 @@ function reduce(val, iterator, accumulator, revert) {
|
|
|
118945
118909
|
return result;
|
|
118946
118910
|
}
|
|
118947
118911
|
|
|
118948
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118912
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/global.js
|
|
118949
118913
|
function globalSelf() {
|
|
118950
118914
|
try {
|
|
118951
118915
|
if (typeof self !== "undefined") {
|
|
@@ -118969,7 +118933,7 @@ function globalSelf() {
|
|
|
118969
118933
|
}
|
|
118970
118934
|
var globalThisPolyfill = globalSelf();
|
|
118971
118935
|
|
|
118972
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118936
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/instanceof.js
|
|
118973
118937
|
var instOf = function(value, cls) {
|
|
118974
118938
|
if (isFn(cls))
|
|
118975
118939
|
return value instanceof cls;
|
|
@@ -118978,7 +118942,7 @@ var instOf = function(value, cls) {
|
|
|
118978
118942
|
return false;
|
|
118979
118943
|
};
|
|
118980
118944
|
|
|
118981
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118945
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/compare.js
|
|
118982
118946
|
var isArray = isArr;
|
|
118983
118947
|
var keyList = Object.keys;
|
|
118984
118948
|
var hasProp = Object.prototype.hasOwnProperty;
|
|
@@ -119085,7 +119049,7 @@ var isEqual = function exportedEqual(a, b) {
|
|
|
119085
119049
|
}
|
|
119086
119050
|
};
|
|
119087
119051
|
|
|
119088
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
119052
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/clone.js
|
|
119089
119053
|
var clone = function(values) {
|
|
119090
119054
|
if (Array.isArray(values)) {
|
|
119091
119055
|
var res_1 = [];
|
|
@@ -119121,7 +119085,7 @@ var clone = function(values) {
|
|
|
119121
119085
|
}
|
|
119122
119086
|
};
|
|
119123
119087
|
|
|
119124
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
119088
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/isEmpty.js
|
|
119125
119089
|
var has = Object.prototype.hasOwnProperty;
|
|
119126
119090
|
var toString2 = Object.prototype.toString;
|
|
119127
119091
|
var isUndef = function(val) {
|
|
@@ -119249,7 +119213,7 @@ function pascalCase(input, options) {
|
|
|
119249
119213
|
return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options));
|
|
119250
119214
|
}
|
|
119251
119215
|
|
|
119252
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
119216
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/string.js
|
|
119253
119217
|
var ansiRegex = function() {
|
|
119254
119218
|
var pattern = [
|
|
119255
119219
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)",
|
|
@@ -119268,7 +119232,7 @@ var stringLength = function(input) {
|
|
|
119268
119232
|
return stripAnsi(input).replace(astralRegex(), " ").length;
|
|
119269
119233
|
};
|
|
119270
119234
|
|
|
119271
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119235
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/contexts.js
|
|
119272
119236
|
var __assign2 = function() {
|
|
119273
119237
|
__assign2 = Object.assign || function(t) {
|
|
119274
119238
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -119291,7 +119255,7 @@ var parenContext = ContextType("()");
|
|
|
119291
119255
|
var braceContext = ContextType("{}");
|
|
119292
119256
|
var destructorContext = ContextType("{x}");
|
|
119293
119257
|
|
|
119294
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119258
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokens.js
|
|
119295
119259
|
var __assign3 = function() {
|
|
119296
119260
|
__assign3 = Object.assign || function(t) {
|
|
119297
119261
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -119459,7 +119423,7 @@ var expandTok = TokenType("expandTok", {
|
|
|
119459
119423
|
});
|
|
119460
119424
|
var eofTok = TokenType("eof");
|
|
119461
119425
|
|
|
119462
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119426
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokenizer.js
|
|
119463
119427
|
var nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
119464
119428
|
var fullCharCodeAtPos = function(input, pos) {
|
|
119465
119429
|
if (String.fromCharCode)
|
|
@@ -119711,7 +119675,7 @@ var Tokenizer = (
|
|
|
119711
119675
|
}()
|
|
119712
119676
|
);
|
|
119713
119677
|
|
|
119714
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119678
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/types.js
|
|
119715
119679
|
var isType2 = function(type) {
|
|
119716
119680
|
return function(obj) {
|
|
119717
119681
|
return obj && obj.type === type;
|
|
@@ -119729,7 +119693,7 @@ var isObjectPattern = isType2("ObjectPattern");
|
|
|
119729
119693
|
var isObjectPatternProperty = isType2("ObjectPatternProperty");
|
|
119730
119694
|
var isArrayPattern = isType2("ArrayPattern");
|
|
119731
119695
|
|
|
119732
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119696
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/shared.js
|
|
119733
119697
|
var toString3 = Object.prototype.toString;
|
|
119734
119698
|
var isType3 = function(type) {
|
|
119735
119699
|
return function(obj) {
|
|
@@ -119806,7 +119770,7 @@ var isSegmentEqual = function(a, b) {
|
|
|
119806
119770
|
return a === b;
|
|
119807
119771
|
};
|
|
119808
119772
|
|
|
119809
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119773
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/destructor.js
|
|
119810
119774
|
var DestructorCache = /* @__PURE__ */ new Map();
|
|
119811
119775
|
var isValid2 = function(val) {
|
|
119812
119776
|
return val !== void 0 && val !== null;
|
|
@@ -119924,7 +119888,7 @@ var existInByDestructor = function(source, rules, start, mutators) {
|
|
|
119924
119888
|
});
|
|
119925
119889
|
};
|
|
119926
119890
|
|
|
119927
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119891
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/parser.js
|
|
119928
119892
|
var __extends = function() {
|
|
119929
119893
|
var extendStatics = function(d, b) {
|
|
119930
119894
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -120315,7 +120279,7 @@ var Parser = (
|
|
|
120315
120279
|
}(Tokenizer)
|
|
120316
120280
|
);
|
|
120317
120281
|
|
|
120318
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120282
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/matcher.js
|
|
120319
120283
|
var Matcher = (
|
|
120320
120284
|
/** @class */
|
|
120321
120285
|
function() {
|
|
@@ -120497,7 +120461,7 @@ var Matcher = (
|
|
|
120497
120461
|
}()
|
|
120498
120462
|
);
|
|
120499
120463
|
|
|
120500
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120464
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/index.js
|
|
120501
120465
|
var __read = function(o, n) {
|
|
120502
120466
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
120503
120467
|
if (!m)
|
|
@@ -121051,7 +121015,7 @@ var Path = (
|
|
|
121051
121015
|
}()
|
|
121052
121016
|
);
|
|
121053
121017
|
|
|
121054
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
121018
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/subscribable.js
|
|
121055
121019
|
var Subscribable = (
|
|
121056
121020
|
/** @class */
|
|
121057
121021
|
function() {
|
|
@@ -121103,7 +121067,7 @@ var Subscribable = (
|
|
|
121103
121067
|
}()
|
|
121104
121068
|
);
|
|
121105
121069
|
|
|
121106
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
121070
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/merge.js
|
|
121107
121071
|
function defaultIsMergeableObject(value) {
|
|
121108
121072
|
return isNonNullObject(value) && !isSpecial(value);
|
|
121109
121073
|
}
|
|
@@ -121296,7 +121260,7 @@ var lazyMerge = function(target) {
|
|
|
121296
121260
|
};
|
|
121297
121261
|
var merge = deepmerge;
|
|
121298
121262
|
|
|
121299
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
121263
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/uid.js
|
|
121300
121264
|
var IDX = 36;
|
|
121301
121265
|
var HEX = "";
|
|
121302
121266
|
while (IDX--)
|
|
@@ -121308,7 +121272,7 @@ function uid(len) {
|
|
|
121308
121272
|
return str;
|
|
121309
121273
|
}
|
|
121310
121274
|
|
|
121311
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121275
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/checkers.js
|
|
121312
121276
|
var toString4 = Object.prototype.toString;
|
|
121313
121277
|
var isMap = function(val) {
|
|
121314
121278
|
return val && val instanceof Map;
|
|
@@ -121339,7 +121303,7 @@ var isNormalType = function(target) {
|
|
|
121339
121303
|
return isPlainObj3(target) || isArr3(target);
|
|
121340
121304
|
};
|
|
121341
121305
|
|
|
121342
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121306
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/array.js
|
|
121343
121307
|
var toArray = function(value) {
|
|
121344
121308
|
return Array.isArray(value) ? value : value !== void 0 && value !== null ? [value] : [];
|
|
121345
121309
|
};
|
|
@@ -121403,7 +121367,7 @@ var ArraySet = (
|
|
|
121403
121367
|
}()
|
|
121404
121368
|
);
|
|
121405
121369
|
|
|
121406
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121370
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/environment.js
|
|
121407
121371
|
var ProxyRaw = /* @__PURE__ */ new WeakMap();
|
|
121408
121372
|
var RawProxy = /* @__PURE__ */ new WeakMap();
|
|
121409
121373
|
var RawShallowProxy = /* @__PURE__ */ new WeakMap();
|
|
@@ -121422,7 +121386,7 @@ var MakeObModelSymbol = Symbol("MakeObModelSymbol");
|
|
|
121422
121386
|
var ObModelSymbol = Symbol("ObModelSymbol");
|
|
121423
121387
|
var ObModelNodeSymbol = Symbol("ObModelNodeSymbol");
|
|
121424
121388
|
|
|
121425
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121389
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/reaction.js
|
|
121426
121390
|
var ITERATION_KEY = Symbol("iteration key");
|
|
121427
121391
|
var addRawReactionsMap = function(target, key, reaction2) {
|
|
121428
121392
|
var reactionsMap = RawReactionsMap.get(target);
|
|
@@ -121652,7 +121616,7 @@ var disposeEffects = function(reaction2) {
|
|
|
121652
121616
|
}
|
|
121653
121617
|
};
|
|
121654
121618
|
|
|
121655
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121619
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tree.js
|
|
121656
121620
|
var DataChange = (
|
|
121657
121621
|
/** @class */
|
|
121658
121622
|
function() {
|
|
@@ -121748,7 +121712,7 @@ var buildDataTree = function(target, key, value) {
|
|
|
121748
121712
|
setDataNode(raw2, new DataNode(target, key, value));
|
|
121749
121713
|
};
|
|
121750
121714
|
|
|
121751
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121715
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/externals.js
|
|
121752
121716
|
var RAW_TYPE = Symbol("RAW_TYPE");
|
|
121753
121717
|
var OBSERVABLE_TYPE = Symbol("OBSERVABLE_TYPE");
|
|
121754
121718
|
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
@@ -121850,7 +121814,7 @@ var hasCollected = function(callback) {
|
|
|
121850
121814
|
return DependencyCollected.value;
|
|
121851
121815
|
};
|
|
121852
121816
|
|
|
121853
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121817
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/handlers.js
|
|
121854
121818
|
var __read2 = function(o, n) {
|
|
121855
121819
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
121856
121820
|
if (!m)
|
|
@@ -122106,7 +122070,7 @@ var baseHandlers = {
|
|
|
122106
122070
|
}
|
|
122107
122071
|
};
|
|
122108
122072
|
|
|
122109
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122073
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/internals.js
|
|
122110
122074
|
var createNormalProxy = function(target, shallow2) {
|
|
122111
122075
|
var proxy = new Proxy(target, baseHandlers);
|
|
122112
122076
|
ProxyRaw.set(proxy, target);
|
|
@@ -122221,7 +122185,7 @@ var createBoundaryAnnotation = function(start, end) {
|
|
|
122221
122185
|
return boundary;
|
|
122222
122186
|
};
|
|
122223
122187
|
|
|
122224
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122188
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/batch.js
|
|
122225
122189
|
var batch = createBoundaryAnnotation(batchStart, batchEnd);
|
|
122226
122190
|
batch.scope = createBoundaryAnnotation(batchScopeStart, batchScopeEnd);
|
|
122227
122191
|
batch.endpoint = function(callback) {
|
|
@@ -122234,7 +122198,7 @@ batch.endpoint = function(callback) {
|
|
|
122234
122198
|
}
|
|
122235
122199
|
};
|
|
122236
122200
|
|
|
122237
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122201
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/action.js
|
|
122238
122202
|
var action = createBoundaryAnnotation(function() {
|
|
122239
122203
|
batchStart();
|
|
122240
122204
|
untrackStart();
|
|
@@ -122250,10 +122214,10 @@ action.scope = createBoundaryAnnotation(function() {
|
|
|
122250
122214
|
batchScopeEnd();
|
|
122251
122215
|
});
|
|
122252
122216
|
|
|
122253
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122217
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/untracked.js
|
|
122254
122218
|
var untracked = createBoundaryFunction(untrackStart, untrackEnd);
|
|
122255
122219
|
|
|
122256
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122220
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/observable.js
|
|
122257
122221
|
var observable = createAnnotation(function(_a2) {
|
|
122258
122222
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
122259
122223
|
var store = {
|
|
@@ -122293,7 +122257,7 @@ var observable = createAnnotation(function(_a2) {
|
|
|
122293
122257
|
return store.value;
|
|
122294
122258
|
});
|
|
122295
122259
|
|
|
122296
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122260
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/box.js
|
|
122297
122261
|
var box = createAnnotation(function(_a2) {
|
|
122298
122262
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
122299
122263
|
var store = {
|
|
@@ -122339,7 +122303,7 @@ var box = createAnnotation(function(_a2) {
|
|
|
122339
122303
|
return proxy;
|
|
122340
122304
|
});
|
|
122341
122305
|
|
|
122342
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122306
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/ref.js
|
|
122343
122307
|
var ref = createAnnotation(function(_a2) {
|
|
122344
122308
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
122345
122309
|
var store = {
|
|
@@ -122387,7 +122351,7 @@ var ref = createAnnotation(function(_a2) {
|
|
|
122387
122351
|
return proxy;
|
|
122388
122352
|
});
|
|
122389
122353
|
|
|
122390
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122354
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/shallow.js
|
|
122391
122355
|
var shallow = createAnnotation(function(_a2) {
|
|
122392
122356
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
122393
122357
|
var store = {
|
|
@@ -122427,7 +122391,7 @@ var shallow = createAnnotation(function(_a2) {
|
|
|
122427
122391
|
return store.value;
|
|
122428
122392
|
});
|
|
122429
122393
|
|
|
122430
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122394
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/computed.js
|
|
122431
122395
|
var getDescriptor = Object.getOwnPropertyDescriptor;
|
|
122432
122396
|
var getProto = Object.getPrototypeOf;
|
|
122433
122397
|
var ClassDescriptorSymbol = Symbol("ClassDescriptorSymbol");
|
|
@@ -122548,7 +122512,7 @@ var computed = createAnnotation(function(_a2) {
|
|
|
122548
122512
|
return proxy;
|
|
122549
122513
|
});
|
|
122550
122514
|
|
|
122551
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122515
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observable.js
|
|
122552
122516
|
function observable2(target) {
|
|
122553
122517
|
return createObservable(null, null, target);
|
|
122554
122518
|
}
|
|
@@ -122559,7 +122523,7 @@ observable2.shallow = shallow;
|
|
|
122559
122523
|
observable2.computed = computed;
|
|
122560
122524
|
observable2[MakeObModelSymbol] = observable;
|
|
122561
122525
|
|
|
122562
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122526
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/model.js
|
|
122563
122527
|
function define2(target, annotations) {
|
|
122564
122528
|
if (isObservable(target))
|
|
122565
122529
|
return target;
|
|
@@ -122579,7 +122543,7 @@ function define2(target, annotations) {
|
|
|
122579
122543
|
return target;
|
|
122580
122544
|
}
|
|
122581
122545
|
|
|
122582
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122546
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/autorun.js
|
|
122583
122547
|
var __assign4 = function() {
|
|
122584
122548
|
__assign4 = Object.assign || function(t) {
|
|
122585
122549
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -122725,7 +122689,7 @@ var reaction = function(tracker, subscriber, options) {
|
|
|
122725
122689
|
};
|
|
122726
122690
|
};
|
|
122727
122691
|
|
|
122728
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122692
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tracker.js
|
|
122729
122693
|
var Tracker = (
|
|
122730
122694
|
/** @class */
|
|
122731
122695
|
function() {
|
|
@@ -122770,7 +122734,7 @@ var Tracker = (
|
|
|
122770
122734
|
}()
|
|
122771
122735
|
);
|
|
122772
122736
|
|
|
122773
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122737
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observe.js
|
|
122774
122738
|
var observe = function(target, observer, deep) {
|
|
122775
122739
|
if (deep === void 0) {
|
|
122776
122740
|
deep = true;
|
|
@@ -122803,7 +122767,7 @@ var observe = function(target, observer, deep) {
|
|
|
122803
122767
|
return addListener(target);
|
|
122804
122768
|
};
|
|
122805
122769
|
|
|
122806
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
122770
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/shared.js
|
|
122807
122771
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
|
122808
122772
|
var SchemaNestedMap = {
|
|
122809
122773
|
parent: true,
|
|
@@ -122990,7 +122954,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
|
122990
122954
|
});
|
|
122991
122955
|
};
|
|
122992
122956
|
|
|
122993
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
122957
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/compiler.js
|
|
122994
122958
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
|
122995
122959
|
var Registry = {
|
|
122996
122960
|
silent: false,
|
|
@@ -123094,7 +123058,7 @@ var patchSchemaCompile = function(targetState, sourceSchema, scope, demand) {
|
|
|
123094
123058
|
});
|
|
123095
123059
|
};
|
|
123096
123060
|
|
|
123097
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
123061
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/LifeCycle.js
|
|
123098
123062
|
var LifeCycle = (
|
|
123099
123063
|
/** @class */
|
|
123100
123064
|
function() {
|
|
@@ -123140,7 +123104,7 @@ var LifeCycle = (
|
|
|
123140
123104
|
}()
|
|
123141
123105
|
);
|
|
123142
123106
|
|
|
123143
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
123107
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Heart.js
|
|
123144
123108
|
var __extends2 = function() {
|
|
123145
123109
|
var extendStatics = function(d, b) {
|
|
123146
123110
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -123236,7 +123200,7 @@ var Heart = (
|
|
|
123236
123200
|
}(Subscribable)
|
|
123237
123201
|
);
|
|
123238
123202
|
|
|
123239
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
123203
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/checkers.js
|
|
123240
123204
|
var isForm = function(node) {
|
|
123241
123205
|
return node instanceof Form;
|
|
123242
123206
|
};
|
|
@@ -123282,7 +123246,7 @@ var isQuery = function(query) {
|
|
|
123282
123246
|
return query && query instanceof Query;
|
|
123283
123247
|
};
|
|
123284
123248
|
|
|
123285
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
123249
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Graph.js
|
|
123286
123250
|
var Graph = (
|
|
123287
123251
|
/** @class */
|
|
123288
123252
|
function() {
|
|
@@ -123334,12 +123298,12 @@ var Graph = (
|
|
|
123334
123298
|
}()
|
|
123335
123299
|
);
|
|
123336
123300
|
|
|
123337
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123301
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/types.js
|
|
123338
123302
|
var isValidateResult = function(obj) {
|
|
123339
123303
|
return !!obj["type"] && !!obj["message"];
|
|
123340
123304
|
};
|
|
123341
123305
|
|
|
123342
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123306
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/registry.js
|
|
123343
123307
|
var getIn2 = Path.getIn;
|
|
123344
123308
|
var self2 = globalThisPolyfill;
|
|
123345
123309
|
var defaultLanguage = "en";
|
|
@@ -123410,7 +123374,7 @@ var registerValidateFormats = function(formats) {
|
|
|
123410
123374
|
});
|
|
123411
123375
|
};
|
|
123412
123376
|
|
|
123413
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123377
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/template.js
|
|
123414
123378
|
var render = function(result, rules) {
|
|
123415
123379
|
var message = result.message;
|
|
123416
123380
|
if (isStr(result.message)) {
|
|
@@ -123425,7 +123389,7 @@ var render = function(result, rules) {
|
|
|
123425
123389
|
return result;
|
|
123426
123390
|
};
|
|
123427
123391
|
|
|
123428
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123392
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/parser.js
|
|
123429
123393
|
var __assign5 = function() {
|
|
123430
123394
|
__assign5 = Object.assign || function(t) {
|
|
123431
123395
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -123676,7 +123640,7 @@ var parseValidator = function(validator, options) {
|
|
|
123676
123640
|
}, []);
|
|
123677
123641
|
};
|
|
123678
123642
|
|
|
123679
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123643
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/locale.js
|
|
123680
123644
|
var locale_default = {
|
|
123681
123645
|
en: {
|
|
123682
123646
|
pattern: "This field is invalid",
|
|
@@ -123896,7 +123860,7 @@ var locale_default = {
|
|
|
123896
123860
|
}
|
|
123897
123861
|
};
|
|
123898
123862
|
|
|
123899
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123863
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/formats.js
|
|
123900
123864
|
var formats_default = {
|
|
123901
123865
|
url: new RegExp(
|
|
123902
123866
|
// protocol identifier
|
|
@@ -123916,7 +123880,7 @@ var formats_default = {
|
|
|
123916
123880
|
zip: /^[0-9]{6}$/
|
|
123917
123881
|
};
|
|
123918
123882
|
|
|
123919
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123883
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/rules.js
|
|
123920
123884
|
var __assign6 = function() {
|
|
123921
123885
|
__assign6 = Object.assign || function(t) {
|
|
123922
123886
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -124231,7 +124195,7 @@ extendSameRules(RULES, {
|
|
|
124231
124195
|
});
|
|
124232
124196
|
var rules_default = RULES;
|
|
124233
124197
|
|
|
124234
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124198
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/validator.js
|
|
124235
124199
|
var __awaiter3 = function(thisArg, _arguments, P, generator) {
|
|
124236
124200
|
function adopt(value) {
|
|
124237
124201
|
return value instanceof P ? value : new P(function(resolve) {
|
|
@@ -124376,7 +124340,7 @@ var validate = function(value, validator, options) {
|
|
|
124376
124340
|
});
|
|
124377
124341
|
};
|
|
124378
124342
|
|
|
124379
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124343
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/types.js
|
|
124380
124344
|
var LifeCycleTypes;
|
|
124381
124345
|
(function(LifeCycleTypes2) {
|
|
124382
124346
|
LifeCycleTypes2["ON_FORM_INIT"] = "onFormInit";
|
|
@@ -124428,7 +124392,7 @@ var LifeCycleTypes;
|
|
|
124428
124392
|
LifeCycleTypes2["ON_FIELD_UNMOUNT"] = "onFieldUnmount";
|
|
124429
124393
|
})(LifeCycleTypes || (LifeCycleTypes = {}));
|
|
124430
124394
|
|
|
124431
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124395
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/constants.js
|
|
124432
124396
|
var ReservedProperties = {
|
|
124433
124397
|
form: true,
|
|
124434
124398
|
parent: true,
|
|
@@ -124480,7 +124444,7 @@ var GlobalState = {
|
|
|
124480
124444
|
};
|
|
124481
124445
|
var NumberIndexReg = /^\.(\d+)/;
|
|
124482
124446
|
|
|
124483
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124447
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/internals.js
|
|
124484
124448
|
var __assign7 = function() {
|
|
124485
124449
|
__assign7 = Object.assign || function(t) {
|
|
124486
124450
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -125587,7 +125551,7 @@ var getObjectParent = function(field) {
|
|
|
125587
125551
|
}
|
|
125588
125552
|
};
|
|
125589
125553
|
|
|
125590
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125554
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Query.js
|
|
125591
125555
|
var output = function(field, taker) {
|
|
125592
125556
|
if (!field)
|
|
125593
125557
|
return;
|
|
@@ -125670,7 +125634,7 @@ var Query = (
|
|
|
125670
125634
|
}()
|
|
125671
125635
|
);
|
|
125672
125636
|
|
|
125673
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125637
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/BaseField.js
|
|
125674
125638
|
var __read4 = function(o, n) {
|
|
125675
125639
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
125676
125640
|
if (!m)
|
|
@@ -126050,7 +126014,7 @@ var BaseField = (
|
|
|
126050
126014
|
}()
|
|
126051
126015
|
);
|
|
126052
126016
|
|
|
126053
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126017
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Field.js
|
|
126054
126018
|
var __extends3 = function() {
|
|
126055
126019
|
var extendStatics = function(d, b) {
|
|
126056
126020
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -126691,7 +126655,7 @@ var Field = (
|
|
|
126691
126655
|
}(BaseField)
|
|
126692
126656
|
);
|
|
126693
126657
|
|
|
126694
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126658
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/effective.js
|
|
126695
126659
|
var __read5 = function(o, n) {
|
|
126696
126660
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
126697
126661
|
if (!m)
|
|
@@ -126785,7 +126749,7 @@ var runEffects = function(context) {
|
|
|
126785
126749
|
return GlobalState.lifecycles;
|
|
126786
126750
|
};
|
|
126787
126751
|
|
|
126788
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126752
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ArrayField.js
|
|
126789
126753
|
var __extends4 = function() {
|
|
126790
126754
|
var extendStatics = function(d, b) {
|
|
126791
126755
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -126975,7 +126939,7 @@ var ArrayField = (
|
|
|
126975
126939
|
}(Field)
|
|
126976
126940
|
);
|
|
126977
126941
|
|
|
126978
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126942
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ObjectField.js
|
|
126979
126943
|
var __extends5 = function() {
|
|
126980
126944
|
var extendStatics = function(d, b) {
|
|
126981
126945
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -127036,7 +127000,7 @@ var ObjectField = (
|
|
|
127036
127000
|
}(Field)
|
|
127037
127001
|
);
|
|
127038
127002
|
|
|
127039
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127003
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/VoidField.js
|
|
127040
127004
|
var __extends6 = function() {
|
|
127041
127005
|
var extendStatics = function(d, b) {
|
|
127042
127006
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -127151,7 +127115,7 @@ var VoidField = (
|
|
|
127151
127115
|
}(BaseField)
|
|
127152
127116
|
);
|
|
127153
127117
|
|
|
127154
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127118
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Form.js
|
|
127155
127119
|
var __assign8 = function() {
|
|
127156
127120
|
__assign8 = Object.assign || function(t) {
|
|
127157
127121
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -127679,7 +127643,7 @@ var Form = (
|
|
|
127679
127643
|
}()
|
|
127680
127644
|
);
|
|
127681
127645
|
|
|
127682
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127646
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFormEffects.js
|
|
127683
127647
|
function createFormEffect(type) {
|
|
127684
127648
|
return createEffectHook(type, function(form) {
|
|
127685
127649
|
return function(callback) {
|
|
@@ -127712,7 +127676,7 @@ var onFormValidateEnd = createFormEffect(LifeCycleTypes.ON_FORM_VALIDATE_END);
|
|
|
127712
127676
|
var onFormGraphChange = createFormEffect(LifeCycleTypes.ON_FORM_GRAPH_CHANGE);
|
|
127713
127677
|
var onFormLoading = createFormEffect(LifeCycleTypes.ON_FORM_LOADING);
|
|
127714
127678
|
|
|
127715
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127679
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFieldEffects.js
|
|
127716
127680
|
function createFieldEffect(type) {
|
|
127717
127681
|
return createEffectHook(type, function(field, form) {
|
|
127718
127682
|
return function(pattern, callback) {
|
|
@@ -127757,7 +127721,7 @@ function onFieldInit(pattern, callback) {
|
|
|
127757
127721
|
}
|
|
127758
127722
|
}
|
|
127759
127723
|
|
|
127760
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
127724
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/transformer.js
|
|
127761
127725
|
var __read7 = function(o, n) {
|
|
127762
127726
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
127763
127727
|
if (!m)
|
|
@@ -127982,7 +127946,7 @@ var transformFieldProps = function(schema, options) {
|
|
|
127982
127946
|
};
|
|
127983
127947
|
};
|
|
127984
127948
|
|
|
127985
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
127949
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/patches.js
|
|
127986
127950
|
var __assign9 = function() {
|
|
127987
127951
|
__assign9 = Object.assign || function(t) {
|
|
127988
127952
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -128031,7 +127995,7 @@ var enablePolyfills = function(versions) {
|
|
|
128031
127995
|
}
|
|
128032
127996
|
};
|
|
128033
127997
|
|
|
128034
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
127998
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
|
128035
127999
|
var __assign10 = function() {
|
|
128036
128000
|
__assign10 = Object.assign || function(t) {
|
|
128037
128001
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -128188,7 +128152,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
|
128188
128152
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
|
128189
128153
|
};
|
|
128190
128154
|
|
|
128191
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
128155
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/schema.js
|
|
128192
128156
|
var Schema = (
|
|
128193
128157
|
/** @class */
|
|
128194
128158
|
function() {
|
|
@@ -128424,10 +128388,10 @@ var Schema = (
|
|
|
128424
128388
|
}()
|
|
128425
128389
|
);
|
|
128426
128390
|
|
|
128427
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128391
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
128428
128392
|
var import_inquirer = __toESM(require_inquirer());
|
|
128429
128393
|
|
|
128430
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128394
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
|
128431
128395
|
var import_lodash4 = __toESM(require_lodash4());
|
|
128432
128396
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
128433
128397
|
try {
|
|
@@ -128774,7 +128738,7 @@ function transformForm(schema) {
|
|
|
128774
128738
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
128775
128739
|
}
|
|
128776
128740
|
|
|
128777
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128741
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
128778
128742
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
|
128779
128743
|
try {
|
|
128780
128744
|
var info = gen[key](arg);
|
|
@@ -129298,7 +129262,7 @@ function _prompt() {
|
|
|
129298
129262
|
return _prompt.apply(this, arguments);
|
|
129299
129263
|
}
|
|
129300
129264
|
|
|
129301
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
129265
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
|
129302
129266
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129303
129267
|
try {
|
|
129304
129268
|
var info = gen[key](arg);
|
|
@@ -129538,7 +129502,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
|
129538
129502
|
return CLIReader2;
|
|
129539
129503
|
}();
|
|
129540
129504
|
|
|
129541
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129505
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
129542
129506
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
129543
129507
|
|
|
129544
129508
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -129617,7 +129581,7 @@ var I18n2 = class {
|
|
|
129617
129581
|
}
|
|
129618
129582
|
};
|
|
129619
129583
|
|
|
129620
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129584
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
|
129621
129585
|
var ZH_LOCALE2 = {
|
|
129622
129586
|
environment: {
|
|
129623
129587
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -129644,7 +129608,7 @@ var ZH_LOCALE2 = {
|
|
|
129644
129608
|
}
|
|
129645
129609
|
};
|
|
129646
129610
|
|
|
129647
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129611
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
|
129648
129612
|
var EN_LOCALE2 = {
|
|
129649
129613
|
environment: {
|
|
129650
129614
|
node_version: "please upgrade node to lts version",
|
|
@@ -129671,14 +129635,14 @@ var EN_LOCALE2 = {
|
|
|
129671
129635
|
}
|
|
129672
129636
|
};
|
|
129673
129637
|
|
|
129674
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129638
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
|
129675
129639
|
var i18n2 = new I18n2();
|
|
129676
129640
|
var localeKeys2 = i18n2.init("zh", {
|
|
129677
129641
|
zh: ZH_LOCALE2,
|
|
129678
129642
|
en: EN_LOCALE2
|
|
129679
129643
|
});
|
|
129680
129644
|
|
|
129681
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129645
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
|
129682
129646
|
var import_lodash7 = __toESM(require_lodash4());
|
|
129683
129647
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129684
129648
|
try {
|
|
@@ -129887,7 +129851,7 @@ function transformInquirerSchema(questions) {
|
|
|
129887
129851
|
return questions;
|
|
129888
129852
|
}
|
|
129889
129853
|
|
|
129890
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129854
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
|
129891
129855
|
var import_path5 = __toESM(require("path"));
|
|
129892
129856
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129893
129857
|
try {
|
|
@@ -130151,7 +130115,7 @@ function _checkUseNvm() {
|
|
|
130151
130115
|
return _checkUseNvm.apply(this, arguments);
|
|
130152
130116
|
}
|
|
130153
130117
|
|
|
130154
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130118
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
130155
130119
|
function _array_like_to_array(arr, len) {
|
|
130156
130120
|
if (len == null || len > arr.length)
|
|
130157
130121
|
len = arr.length;
|
|
@@ -130732,7 +130696,7 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
130732
130696
|
switch (_state2.label) {
|
|
130733
130697
|
case 0:
|
|
130734
130698
|
_this.generatorCore.logger.debug("[renderDir] resourceKey=".concat(resourceKey));
|
|
130735
|
-
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "");
|
|
130699
|
+
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "").replace(".ejs", "");
|
|
130736
130700
|
return [
|
|
130737
130701
|
4,
|
|
130738
130702
|
api.renderTemplate(material.get(resourceKey), target, _object_spread7({}, _this.generatorContext.data || {}, parameters || {}))
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.1.
|
|
18
|
+
"version": "3.1.19",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
"/dist/index.js"
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@modern-js/codesmith": "2.2.
|
|
27
|
-
"@modern-js/codesmith-api-app": "2.2.
|
|
28
|
-
"@modern-js/codesmith-api-handlebars": "2.2.
|
|
26
|
+
"@modern-js/codesmith": "2.2.3",
|
|
27
|
+
"@modern-js/codesmith-api-app": "2.2.3",
|
|
28
|
+
"@modern-js/codesmith-api-handlebars": "2.2.3",
|
|
29
29
|
"@types/jest": "^29",
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
|
-
"typescript": "^
|
|
33
|
-
"@modern-js/generator-common": "3.1.
|
|
34
|
-
"@modern-js/
|
|
35
|
-
"@modern-js/plugin-i18n": "2.
|
|
36
|
-
"@modern-js/utils": "
|
|
37
|
-
"@scripts/build": "2.
|
|
38
|
-
"@scripts/jest-config": "2.
|
|
32
|
+
"typescript": "^5",
|
|
33
|
+
"@modern-js/generator-common": "3.1.19",
|
|
34
|
+
"@modern-js/utils": "2.21.1",
|
|
35
|
+
"@modern-js/plugin-i18n": "2.21.1",
|
|
36
|
+
"@modern-js/generator-utils": "3.1.19",
|
|
37
|
+
"@scripts/build": "2.21.1",
|
|
38
|
+
"@scripts/jest-config": "2.21.1"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|