@modern-js/base-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 +106 -142
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -113764,6 +113764,8 @@ var require_chainId = __commonJS({
|
|
|
113764
113764
|
BOTTOM_TEMPLATE: "bottom-template",
|
|
113765
113765
|
/** HtmlCrossOriginPlugin */
|
|
113766
113766
|
HTML_CROSS_ORIGIN: "html-cross-origin",
|
|
113767
|
+
/** HtmlNoncePlugin */
|
|
113768
|
+
HTML_NONCE: "html-nonce",
|
|
113767
113769
|
/** MiniCssExtractPlugin */
|
|
113768
113770
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
113769
113771
|
/** ReactFastRefreshPlugin */
|
|
@@ -115988,11 +115990,11 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
|
115988
115990
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
|
115989
115991
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
|
115990
115992
|
|
|
115991
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
115993
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
115992
115994
|
var import_lodash6 = __toESM(require_lodash2());
|
|
115993
115995
|
var import_comment_json = __toESM(require_src2());
|
|
115994
115996
|
|
|
115995
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
115997
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
|
|
115996
115998
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
115997
115999
|
try {
|
|
115998
116000
|
var info = gen[key](arg);
|
|
@@ -116300,7 +116302,7 @@ function _canUsePnpm() {
|
|
|
116300
116302
|
return _canUsePnpm.apply(this, arguments);
|
|
116301
116303
|
}
|
|
116302
116304
|
|
|
116303
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
116305
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
|
|
116304
116306
|
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
116305
116307
|
try {
|
|
116306
116308
|
var info = gen[key](arg);
|
|
@@ -116667,7 +116669,7 @@ function _pnpmInstall() {
|
|
|
116667
116669
|
return _pnpmInstall.apply(this, arguments);
|
|
116668
116670
|
}
|
|
116669
116671
|
|
|
116670
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
116672
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
|
|
116671
116673
|
function _class_call_check(instance, Constructor) {
|
|
116672
116674
|
if (!(instance instanceof Constructor)) {
|
|
116673
116675
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -116748,7 +116750,7 @@ var NpmAPI = /* @__PURE__ */ function() {
|
|
|
116748
116750
|
return NpmAPI2;
|
|
116749
116751
|
}();
|
|
116750
116752
|
|
|
116751
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
116753
|
+
// ../../../../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
|
|
116752
116754
|
function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
116753
116755
|
try {
|
|
116754
116756
|
var info = gen[key](arg);
|
|
@@ -117090,7 +117092,7 @@ function _gitCommit() {
|
|
|
117090
117092
|
return _gitCommit.apply(this, arguments);
|
|
117091
117093
|
}
|
|
117092
117094
|
|
|
117093
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
117095
|
+
// ../../../../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
|
|
117094
117096
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
117095
117097
|
try {
|
|
117096
117098
|
var info = gen[key](arg);
|
|
@@ -117421,11 +117423,11 @@ var GitAPI = /* @__PURE__ */ function() {
|
|
|
117421
117423
|
return GitAPI2;
|
|
117422
117424
|
}();
|
|
117423
117425
|
|
|
117424
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
117426
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
|
117425
117427
|
var import_path = __toESM(require("path"));
|
|
117426
117428
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
117427
117429
|
|
|
117428
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
117430
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
|
|
117429
117431
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
117430
117432
|
try {
|
|
117431
117433
|
var info = gen[key](arg);
|
|
@@ -117598,7 +117600,7 @@ function _fsExists() {
|
|
|
117598
117600
|
return _fsExists.apply(this, arguments);
|
|
117599
117601
|
}
|
|
117600
117602
|
|
|
117601
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
117603
|
+
// ../../../../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
|
|
117602
117604
|
var import_handlebars = __toESM(require_lib());
|
|
117603
117605
|
function _define_property4(obj, key, value) {
|
|
117604
117606
|
if (key in obj) {
|
|
@@ -117640,7 +117642,7 @@ function renderString(template, fullData, registers) {
|
|
|
117640
117642
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
117641
117643
|
}
|
|
117642
117644
|
|
|
117643
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
117645
|
+
// ../../../../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
|
|
117644
117646
|
function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
117645
117647
|
try {
|
|
117646
117648
|
var info = gen[key](arg);
|
|
@@ -117958,13 +117960,13 @@ var HandlebarsAPI = /* @__PURE__ */ function() {
|
|
|
117958
117960
|
return HandlebarsAPI2;
|
|
117959
117961
|
}();
|
|
117960
117962
|
|
|
117961
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
117963
|
+
// ../../../../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
|
|
117962
117964
|
var import_ejs = __toESM(require_ejs());
|
|
117963
117965
|
function renderString2(template, fullData) {
|
|
117964
117966
|
return import_ejs.default.render(template, fullData) || "";
|
|
117965
117967
|
}
|
|
117966
117968
|
|
|
117967
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
117969
|
+
// ../../../../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
|
|
117968
117970
|
function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
117969
117971
|
try {
|
|
117970
117972
|
var info = gen[key](arg);
|
|
@@ -118234,24 +118236,8 @@ var EjsAPI = /* @__PURE__ */ function() {
|
|
|
118234
118236
|
return EjsAPI2;
|
|
118235
118237
|
}();
|
|
118236
118238
|
|
|
118237
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.
|
|
118239
|
+
// ../../../../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
|
|
118238
118240
|
var import_path2 = __toESM(require("path"));
|
|
118239
|
-
|
|
118240
|
-
// ../../../../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
|
|
118241
|
-
var imageExtNameList = [
|
|
118242
|
-
".jpg",
|
|
118243
|
-
".jpeg",
|
|
118244
|
-
".png",
|
|
118245
|
-
".gif",
|
|
118246
|
-
".bmp",
|
|
118247
|
-
".ico",
|
|
118248
|
-
".icon",
|
|
118249
|
-
".mpt",
|
|
118250
|
-
".psd",
|
|
118251
|
-
".wmf"
|
|
118252
|
-
];
|
|
118253
|
-
|
|
118254
|
-
// ../../../../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
|
|
118255
118241
|
function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118256
118242
|
try {
|
|
118257
118243
|
var info = gen[key](arg);
|
|
@@ -118431,48 +118417,26 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
118431
118417
|
value: function renderFile(resource, target) {
|
|
118432
118418
|
var _this = this;
|
|
118433
118419
|
return _async_to_generator8(function() {
|
|
118434
|
-
var
|
|
118420
|
+
var filePath;
|
|
118435
118421
|
return __generator8(this, function(_state) {
|
|
118436
118422
|
switch (_state.label) {
|
|
118437
118423
|
case 0:
|
|
118438
118424
|
if (resource._type !== FS_RESOURCE) {
|
|
118439
118425
|
throw new Error("resource not match");
|
|
118440
118426
|
}
|
|
118427
|
+
filePath = import_path2.default.resolve(_this.generatorCore.outputPath, target.toString());
|
|
118441
118428
|
return [
|
|
118442
118429
|
4,
|
|
118443
|
-
|
|
118430
|
+
import_fs_extra.default.mkdirp(import_path2.default.dirname(filePath))
|
|
118444
118431
|
];
|
|
118445
118432
|
case 1:
|
|
118446
|
-
resourceValue = _state.sent();
|
|
118447
|
-
resourceFileExt = import_path2.default.extname(resource.filePath);
|
|
118448
|
-
if (!imageExtNameList.includes(resourceFileExt))
|
|
118449
|
-
return [
|
|
118450
|
-
3,
|
|
118451
|
-
3
|
|
118452
|
-
];
|
|
118453
|
-
return [
|
|
118454
|
-
4,
|
|
118455
|
-
_this.generatorCore.output.fs(target, resourceValue.content, {
|
|
118456
|
-
encoding: "binary"
|
|
118457
|
-
})
|
|
118458
|
-
];
|
|
118459
|
-
case 2:
|
|
118460
118433
|
_state.sent();
|
|
118461
|
-
return [
|
|
118462
|
-
3,
|
|
118463
|
-
5
|
|
118464
|
-
];
|
|
118465
|
-
case 3:
|
|
118466
118434
|
return [
|
|
118467
118435
|
4,
|
|
118468
|
-
|
|
118469
|
-
encoding: "utf-8"
|
|
118470
|
-
})
|
|
118436
|
+
import_fs_extra.default.copyFile(resource.filePath, filePath)
|
|
118471
118437
|
];
|
|
118472
|
-
case
|
|
118438
|
+
case 2:
|
|
118473
118439
|
_state.sent();
|
|
118474
|
-
_state.label = 5;
|
|
118475
|
-
case 5:
|
|
118476
118440
|
return [
|
|
118477
118441
|
2
|
|
118478
118442
|
];
|
|
@@ -118535,7 +118499,7 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
118535
118499
|
return FsAPI2;
|
|
118536
118500
|
}();
|
|
118537
118501
|
|
|
118538
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118502
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
|
118539
118503
|
var toString = Object.prototype.toString;
|
|
118540
118504
|
var isType = function(type) {
|
|
118541
118505
|
return function(obj) {
|
|
@@ -118561,7 +118525,7 @@ var isObj = function(val) {
|
|
|
118561
118525
|
};
|
|
118562
118526
|
var isRegExp = isType("RegExp");
|
|
118563
118527
|
|
|
118564
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118528
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/array.js
|
|
118565
118529
|
var toArr = function(val) {
|
|
118566
118530
|
return isArr(val) ? val : val ? [val] : [];
|
|
118567
118531
|
};
|
|
@@ -118612,7 +118576,7 @@ function reduce(val, iterator, accumulator, revert) {
|
|
|
118612
118576
|
return result;
|
|
118613
118577
|
}
|
|
118614
118578
|
|
|
118615
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118579
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/global.js
|
|
118616
118580
|
function globalSelf() {
|
|
118617
118581
|
try {
|
|
118618
118582
|
if (typeof self !== "undefined") {
|
|
@@ -118636,7 +118600,7 @@ function globalSelf() {
|
|
|
118636
118600
|
}
|
|
118637
118601
|
var globalThisPolyfill = globalSelf();
|
|
118638
118602
|
|
|
118639
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118603
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/instanceof.js
|
|
118640
118604
|
var instOf = function(value, cls) {
|
|
118641
118605
|
if (isFn(cls))
|
|
118642
118606
|
return value instanceof cls;
|
|
@@ -118645,7 +118609,7 @@ var instOf = function(value, cls) {
|
|
|
118645
118609
|
return false;
|
|
118646
118610
|
};
|
|
118647
118611
|
|
|
118648
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118612
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/compare.js
|
|
118649
118613
|
var isArray = isArr;
|
|
118650
118614
|
var keyList = Object.keys;
|
|
118651
118615
|
var hasProp = Object.prototype.hasOwnProperty;
|
|
@@ -118752,7 +118716,7 @@ var isEqual = function exportedEqual(a, b) {
|
|
|
118752
118716
|
}
|
|
118753
118717
|
};
|
|
118754
118718
|
|
|
118755
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118719
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/clone.js
|
|
118756
118720
|
var clone = function(values) {
|
|
118757
118721
|
if (Array.isArray(values)) {
|
|
118758
118722
|
var res_1 = [];
|
|
@@ -118788,7 +118752,7 @@ var clone = function(values) {
|
|
|
118788
118752
|
}
|
|
118789
118753
|
};
|
|
118790
118754
|
|
|
118791
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118755
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/isEmpty.js
|
|
118792
118756
|
var has = Object.prototype.hasOwnProperty;
|
|
118793
118757
|
var toString2 = Object.prototype.toString;
|
|
118794
118758
|
var isUndef = function(val) {
|
|
@@ -118916,7 +118880,7 @@ function pascalCase(input, options) {
|
|
|
118916
118880
|
return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options));
|
|
118917
118881
|
}
|
|
118918
118882
|
|
|
118919
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118883
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/string.js
|
|
118920
118884
|
var ansiRegex = function() {
|
|
118921
118885
|
var pattern = [
|
|
118922
118886
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)",
|
|
@@ -118935,7 +118899,7 @@ var stringLength = function(input) {
|
|
|
118935
118899
|
return stripAnsi(input).replace(astralRegex(), " ").length;
|
|
118936
118900
|
};
|
|
118937
118901
|
|
|
118938
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
118902
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/contexts.js
|
|
118939
118903
|
var __assign2 = function() {
|
|
118940
118904
|
__assign2 = Object.assign || function(t) {
|
|
118941
118905
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -118958,7 +118922,7 @@ var parenContext = ContextType("()");
|
|
|
118958
118922
|
var braceContext = ContextType("{}");
|
|
118959
118923
|
var destructorContext = ContextType("{x}");
|
|
118960
118924
|
|
|
118961
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
118925
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokens.js
|
|
118962
118926
|
var __assign3 = function() {
|
|
118963
118927
|
__assign3 = Object.assign || function(t) {
|
|
118964
118928
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -119126,7 +119090,7 @@ var expandTok = TokenType("expandTok", {
|
|
|
119126
119090
|
});
|
|
119127
119091
|
var eofTok = TokenType("eof");
|
|
119128
119092
|
|
|
119129
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119093
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokenizer.js
|
|
119130
119094
|
var nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
119131
119095
|
var fullCharCodeAtPos = function(input, pos) {
|
|
119132
119096
|
if (String.fromCharCode)
|
|
@@ -119378,7 +119342,7 @@ var Tokenizer = (
|
|
|
119378
119342
|
}()
|
|
119379
119343
|
);
|
|
119380
119344
|
|
|
119381
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119345
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/types.js
|
|
119382
119346
|
var isType2 = function(type) {
|
|
119383
119347
|
return function(obj) {
|
|
119384
119348
|
return obj && obj.type === type;
|
|
@@ -119396,7 +119360,7 @@ var isObjectPattern = isType2("ObjectPattern");
|
|
|
119396
119360
|
var isObjectPatternProperty = isType2("ObjectPatternProperty");
|
|
119397
119361
|
var isArrayPattern = isType2("ArrayPattern");
|
|
119398
119362
|
|
|
119399
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119363
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/shared.js
|
|
119400
119364
|
var toString3 = Object.prototype.toString;
|
|
119401
119365
|
var isType3 = function(type) {
|
|
119402
119366
|
return function(obj) {
|
|
@@ -119473,7 +119437,7 @@ var isSegmentEqual = function(a, b) {
|
|
|
119473
119437
|
return a === b;
|
|
119474
119438
|
};
|
|
119475
119439
|
|
|
119476
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119440
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/destructor.js
|
|
119477
119441
|
var DestructorCache = /* @__PURE__ */ new Map();
|
|
119478
119442
|
var isValid2 = function(val) {
|
|
119479
119443
|
return val !== void 0 && val !== null;
|
|
@@ -119591,7 +119555,7 @@ var existInByDestructor = function(source, rules, start, mutators) {
|
|
|
119591
119555
|
});
|
|
119592
119556
|
};
|
|
119593
119557
|
|
|
119594
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119558
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/parser.js
|
|
119595
119559
|
var __extends = function() {
|
|
119596
119560
|
var extendStatics = function(d, b) {
|
|
119597
119561
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -119982,7 +119946,7 @@ var Parser = (
|
|
|
119982
119946
|
}(Tokenizer)
|
|
119983
119947
|
);
|
|
119984
119948
|
|
|
119985
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119949
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/matcher.js
|
|
119986
119950
|
var Matcher = (
|
|
119987
119951
|
/** @class */
|
|
119988
119952
|
function() {
|
|
@@ -120164,7 +120128,7 @@ var Matcher = (
|
|
|
120164
120128
|
}()
|
|
120165
120129
|
);
|
|
120166
120130
|
|
|
120167
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120131
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/index.js
|
|
120168
120132
|
var __read = function(o, n) {
|
|
120169
120133
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
120170
120134
|
if (!m)
|
|
@@ -120718,7 +120682,7 @@ var Path = (
|
|
|
120718
120682
|
}()
|
|
120719
120683
|
);
|
|
120720
120684
|
|
|
120721
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120685
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/subscribable.js
|
|
120722
120686
|
var Subscribable = (
|
|
120723
120687
|
/** @class */
|
|
120724
120688
|
function() {
|
|
@@ -120770,7 +120734,7 @@ var Subscribable = (
|
|
|
120770
120734
|
}()
|
|
120771
120735
|
);
|
|
120772
120736
|
|
|
120773
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120737
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/merge.js
|
|
120774
120738
|
function defaultIsMergeableObject(value) {
|
|
120775
120739
|
return isNonNullObject(value) && !isSpecial(value);
|
|
120776
120740
|
}
|
|
@@ -120963,7 +120927,7 @@ var lazyMerge = function(target) {
|
|
|
120963
120927
|
};
|
|
120964
120928
|
var merge = deepmerge;
|
|
120965
120929
|
|
|
120966
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120930
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/uid.js
|
|
120967
120931
|
var IDX = 36;
|
|
120968
120932
|
var HEX = "";
|
|
120969
120933
|
while (IDX--)
|
|
@@ -120975,7 +120939,7 @@ function uid(len) {
|
|
|
120975
120939
|
return str;
|
|
120976
120940
|
}
|
|
120977
120941
|
|
|
120978
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
120942
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/checkers.js
|
|
120979
120943
|
var toString4 = Object.prototype.toString;
|
|
120980
120944
|
var isMap = function(val) {
|
|
120981
120945
|
return val && val instanceof Map;
|
|
@@ -121006,7 +120970,7 @@ var isNormalType = function(target) {
|
|
|
121006
120970
|
return isPlainObj3(target) || isArr3(target);
|
|
121007
120971
|
};
|
|
121008
120972
|
|
|
121009
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
120973
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/array.js
|
|
121010
120974
|
var toArray = function(value) {
|
|
121011
120975
|
return Array.isArray(value) ? value : value !== void 0 && value !== null ? [value] : [];
|
|
121012
120976
|
};
|
|
@@ -121070,7 +121034,7 @@ var ArraySet = (
|
|
|
121070
121034
|
}()
|
|
121071
121035
|
);
|
|
121072
121036
|
|
|
121073
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121037
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/environment.js
|
|
121074
121038
|
var ProxyRaw = /* @__PURE__ */ new WeakMap();
|
|
121075
121039
|
var RawProxy = /* @__PURE__ */ new WeakMap();
|
|
121076
121040
|
var RawShallowProxy = /* @__PURE__ */ new WeakMap();
|
|
@@ -121089,7 +121053,7 @@ var MakeObModelSymbol = Symbol("MakeObModelSymbol");
|
|
|
121089
121053
|
var ObModelSymbol = Symbol("ObModelSymbol");
|
|
121090
121054
|
var ObModelNodeSymbol = Symbol("ObModelNodeSymbol");
|
|
121091
121055
|
|
|
121092
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121056
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/reaction.js
|
|
121093
121057
|
var ITERATION_KEY = Symbol("iteration key");
|
|
121094
121058
|
var addRawReactionsMap = function(target, key, reaction2) {
|
|
121095
121059
|
var reactionsMap = RawReactionsMap.get(target);
|
|
@@ -121319,7 +121283,7 @@ var disposeEffects = function(reaction2) {
|
|
|
121319
121283
|
}
|
|
121320
121284
|
};
|
|
121321
121285
|
|
|
121322
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121286
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tree.js
|
|
121323
121287
|
var DataChange = (
|
|
121324
121288
|
/** @class */
|
|
121325
121289
|
function() {
|
|
@@ -121415,7 +121379,7 @@ var buildDataTree = function(target, key, value) {
|
|
|
121415
121379
|
setDataNode(raw2, new DataNode(target, key, value));
|
|
121416
121380
|
};
|
|
121417
121381
|
|
|
121418
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121382
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/externals.js
|
|
121419
121383
|
var RAW_TYPE = Symbol("RAW_TYPE");
|
|
121420
121384
|
var OBSERVABLE_TYPE = Symbol("OBSERVABLE_TYPE");
|
|
121421
121385
|
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
@@ -121517,7 +121481,7 @@ var hasCollected = function(callback) {
|
|
|
121517
121481
|
return DependencyCollected.value;
|
|
121518
121482
|
};
|
|
121519
121483
|
|
|
121520
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121484
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/handlers.js
|
|
121521
121485
|
var __read2 = function(o, n) {
|
|
121522
121486
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
121523
121487
|
if (!m)
|
|
@@ -121773,7 +121737,7 @@ var baseHandlers = {
|
|
|
121773
121737
|
}
|
|
121774
121738
|
};
|
|
121775
121739
|
|
|
121776
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121740
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/internals.js
|
|
121777
121741
|
var createNormalProxy = function(target, shallow2) {
|
|
121778
121742
|
var proxy = new Proxy(target, baseHandlers);
|
|
121779
121743
|
ProxyRaw.set(proxy, target);
|
|
@@ -121888,7 +121852,7 @@ var createBoundaryAnnotation = function(start, end) {
|
|
|
121888
121852
|
return boundary;
|
|
121889
121853
|
};
|
|
121890
121854
|
|
|
121891
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121855
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/batch.js
|
|
121892
121856
|
var batch = createBoundaryAnnotation(batchStart, batchEnd);
|
|
121893
121857
|
batch.scope = createBoundaryAnnotation(batchScopeStart, batchScopeEnd);
|
|
121894
121858
|
batch.endpoint = function(callback) {
|
|
@@ -121901,7 +121865,7 @@ batch.endpoint = function(callback) {
|
|
|
121901
121865
|
}
|
|
121902
121866
|
};
|
|
121903
121867
|
|
|
121904
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121868
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/action.js
|
|
121905
121869
|
var action = createBoundaryAnnotation(function() {
|
|
121906
121870
|
batchStart();
|
|
121907
121871
|
untrackStart();
|
|
@@ -121917,10 +121881,10 @@ action.scope = createBoundaryAnnotation(function() {
|
|
|
121917
121881
|
batchScopeEnd();
|
|
121918
121882
|
});
|
|
121919
121883
|
|
|
121920
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121884
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/untracked.js
|
|
121921
121885
|
var untracked = createBoundaryFunction(untrackStart, untrackEnd);
|
|
121922
121886
|
|
|
121923
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121887
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/observable.js
|
|
121924
121888
|
var observable = createAnnotation(function(_a2) {
|
|
121925
121889
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
121926
121890
|
var store = {
|
|
@@ -121960,7 +121924,7 @@ var observable = createAnnotation(function(_a2) {
|
|
|
121960
121924
|
return store.value;
|
|
121961
121925
|
});
|
|
121962
121926
|
|
|
121963
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121927
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/box.js
|
|
121964
121928
|
var box = createAnnotation(function(_a2) {
|
|
121965
121929
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
121966
121930
|
var store = {
|
|
@@ -122006,7 +121970,7 @@ var box = createAnnotation(function(_a2) {
|
|
|
122006
121970
|
return proxy;
|
|
122007
121971
|
});
|
|
122008
121972
|
|
|
122009
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121973
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/ref.js
|
|
122010
121974
|
var ref = createAnnotation(function(_a2) {
|
|
122011
121975
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
122012
121976
|
var store = {
|
|
@@ -122054,7 +122018,7 @@ var ref = createAnnotation(function(_a2) {
|
|
|
122054
122018
|
return proxy;
|
|
122055
122019
|
});
|
|
122056
122020
|
|
|
122057
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122021
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/shallow.js
|
|
122058
122022
|
var shallow = createAnnotation(function(_a2) {
|
|
122059
122023
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
122060
122024
|
var store = {
|
|
@@ -122094,7 +122058,7 @@ var shallow = createAnnotation(function(_a2) {
|
|
|
122094
122058
|
return store.value;
|
|
122095
122059
|
});
|
|
122096
122060
|
|
|
122097
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122061
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/computed.js
|
|
122098
122062
|
var getDescriptor = Object.getOwnPropertyDescriptor;
|
|
122099
122063
|
var getProto = Object.getPrototypeOf;
|
|
122100
122064
|
var ClassDescriptorSymbol = Symbol("ClassDescriptorSymbol");
|
|
@@ -122215,7 +122179,7 @@ var computed = createAnnotation(function(_a2) {
|
|
|
122215
122179
|
return proxy;
|
|
122216
122180
|
});
|
|
122217
122181
|
|
|
122218
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122182
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observable.js
|
|
122219
122183
|
function observable2(target) {
|
|
122220
122184
|
return createObservable(null, null, target);
|
|
122221
122185
|
}
|
|
@@ -122226,7 +122190,7 @@ observable2.shallow = shallow;
|
|
|
122226
122190
|
observable2.computed = computed;
|
|
122227
122191
|
observable2[MakeObModelSymbol] = observable;
|
|
122228
122192
|
|
|
122229
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122193
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/model.js
|
|
122230
122194
|
function define2(target, annotations) {
|
|
122231
122195
|
if (isObservable(target))
|
|
122232
122196
|
return target;
|
|
@@ -122246,7 +122210,7 @@ function define2(target, annotations) {
|
|
|
122246
122210
|
return target;
|
|
122247
122211
|
}
|
|
122248
122212
|
|
|
122249
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122213
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/autorun.js
|
|
122250
122214
|
var __assign4 = function() {
|
|
122251
122215
|
__assign4 = Object.assign || function(t) {
|
|
122252
122216
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -122392,7 +122356,7 @@ var reaction = function(tracker, subscriber, options) {
|
|
|
122392
122356
|
};
|
|
122393
122357
|
};
|
|
122394
122358
|
|
|
122395
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122359
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tracker.js
|
|
122396
122360
|
var Tracker = (
|
|
122397
122361
|
/** @class */
|
|
122398
122362
|
function() {
|
|
@@ -122437,7 +122401,7 @@ var Tracker = (
|
|
|
122437
122401
|
}()
|
|
122438
122402
|
);
|
|
122439
122403
|
|
|
122440
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122404
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observe.js
|
|
122441
122405
|
var observe = function(target, observer, deep) {
|
|
122442
122406
|
if (deep === void 0) {
|
|
122443
122407
|
deep = true;
|
|
@@ -122470,7 +122434,7 @@ var observe = function(target, observer, deep) {
|
|
|
122470
122434
|
return addListener(target);
|
|
122471
122435
|
};
|
|
122472
122436
|
|
|
122473
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
122437
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/shared.js
|
|
122474
122438
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
|
122475
122439
|
var SchemaNestedMap = {
|
|
122476
122440
|
parent: true,
|
|
@@ -122657,7 +122621,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
|
122657
122621
|
});
|
|
122658
122622
|
};
|
|
122659
122623
|
|
|
122660
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
122624
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/compiler.js
|
|
122661
122625
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
|
122662
122626
|
var Registry = {
|
|
122663
122627
|
silent: false,
|
|
@@ -122761,7 +122725,7 @@ var patchSchemaCompile = function(targetState, sourceSchema, scope, demand) {
|
|
|
122761
122725
|
});
|
|
122762
122726
|
};
|
|
122763
122727
|
|
|
122764
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
122728
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/LifeCycle.js
|
|
122765
122729
|
var LifeCycle = (
|
|
122766
122730
|
/** @class */
|
|
122767
122731
|
function() {
|
|
@@ -122807,7 +122771,7 @@ var LifeCycle = (
|
|
|
122807
122771
|
}()
|
|
122808
122772
|
);
|
|
122809
122773
|
|
|
122810
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
122774
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Heart.js
|
|
122811
122775
|
var __extends2 = function() {
|
|
122812
122776
|
var extendStatics = function(d, b) {
|
|
122813
122777
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -122903,7 +122867,7 @@ var Heart = (
|
|
|
122903
122867
|
}(Subscribable)
|
|
122904
122868
|
);
|
|
122905
122869
|
|
|
122906
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
122870
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/checkers.js
|
|
122907
122871
|
var isForm = function(node) {
|
|
122908
122872
|
return node instanceof Form;
|
|
122909
122873
|
};
|
|
@@ -122949,7 +122913,7 @@ var isQuery = function(query) {
|
|
|
122949
122913
|
return query && query instanceof Query;
|
|
122950
122914
|
};
|
|
122951
122915
|
|
|
122952
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
122916
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Graph.js
|
|
122953
122917
|
var Graph = (
|
|
122954
122918
|
/** @class */
|
|
122955
122919
|
function() {
|
|
@@ -123001,12 +122965,12 @@ var Graph = (
|
|
|
123001
122965
|
}()
|
|
123002
122966
|
);
|
|
123003
122967
|
|
|
123004
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
122968
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/types.js
|
|
123005
122969
|
var isValidateResult = function(obj) {
|
|
123006
122970
|
return !!obj["type"] && !!obj["message"];
|
|
123007
122971
|
};
|
|
123008
122972
|
|
|
123009
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
122973
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/registry.js
|
|
123010
122974
|
var getIn2 = Path.getIn;
|
|
123011
122975
|
var self2 = globalThisPolyfill;
|
|
123012
122976
|
var defaultLanguage = "en";
|
|
@@ -123077,7 +123041,7 @@ var registerValidateFormats = function(formats) {
|
|
|
123077
123041
|
});
|
|
123078
123042
|
};
|
|
123079
123043
|
|
|
123080
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123044
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/template.js
|
|
123081
123045
|
var render = function(result, rules) {
|
|
123082
123046
|
var message = result.message;
|
|
123083
123047
|
if (isStr(result.message)) {
|
|
@@ -123092,7 +123056,7 @@ var render = function(result, rules) {
|
|
|
123092
123056
|
return result;
|
|
123093
123057
|
};
|
|
123094
123058
|
|
|
123095
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123059
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/parser.js
|
|
123096
123060
|
var __assign5 = function() {
|
|
123097
123061
|
__assign5 = Object.assign || function(t) {
|
|
123098
123062
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -123343,7 +123307,7 @@ var parseValidator = function(validator, options) {
|
|
|
123343
123307
|
}, []);
|
|
123344
123308
|
};
|
|
123345
123309
|
|
|
123346
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123310
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/locale.js
|
|
123347
123311
|
var locale_default = {
|
|
123348
123312
|
en: {
|
|
123349
123313
|
pattern: "This field is invalid",
|
|
@@ -123563,7 +123527,7 @@ var locale_default = {
|
|
|
123563
123527
|
}
|
|
123564
123528
|
};
|
|
123565
123529
|
|
|
123566
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123530
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/formats.js
|
|
123567
123531
|
var formats_default = {
|
|
123568
123532
|
url: new RegExp(
|
|
123569
123533
|
// protocol identifier
|
|
@@ -123583,7 +123547,7 @@ var formats_default = {
|
|
|
123583
123547
|
zip: /^[0-9]{6}$/
|
|
123584
123548
|
};
|
|
123585
123549
|
|
|
123586
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123550
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/rules.js
|
|
123587
123551
|
var __assign6 = function() {
|
|
123588
123552
|
__assign6 = Object.assign || function(t) {
|
|
123589
123553
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -123898,7 +123862,7 @@ extendSameRules(RULES, {
|
|
|
123898
123862
|
});
|
|
123899
123863
|
var rules_default = RULES;
|
|
123900
123864
|
|
|
123901
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123865
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/validator.js
|
|
123902
123866
|
var __awaiter3 = function(thisArg, _arguments, P, generator) {
|
|
123903
123867
|
function adopt(value) {
|
|
123904
123868
|
return value instanceof P ? value : new P(function(resolve) {
|
|
@@ -124043,7 +124007,7 @@ var validate = function(value, validator, options) {
|
|
|
124043
124007
|
});
|
|
124044
124008
|
};
|
|
124045
124009
|
|
|
124046
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124010
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/types.js
|
|
124047
124011
|
var LifeCycleTypes;
|
|
124048
124012
|
(function(LifeCycleTypes2) {
|
|
124049
124013
|
LifeCycleTypes2["ON_FORM_INIT"] = "onFormInit";
|
|
@@ -124095,7 +124059,7 @@ var LifeCycleTypes;
|
|
|
124095
124059
|
LifeCycleTypes2["ON_FIELD_UNMOUNT"] = "onFieldUnmount";
|
|
124096
124060
|
})(LifeCycleTypes || (LifeCycleTypes = {}));
|
|
124097
124061
|
|
|
124098
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124062
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/constants.js
|
|
124099
124063
|
var ReservedProperties = {
|
|
124100
124064
|
form: true,
|
|
124101
124065
|
parent: true,
|
|
@@ -124147,7 +124111,7 @@ var GlobalState = {
|
|
|
124147
124111
|
};
|
|
124148
124112
|
var NumberIndexReg = /^\.(\d+)/;
|
|
124149
124113
|
|
|
124150
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124114
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/internals.js
|
|
124151
124115
|
var __assign7 = function() {
|
|
124152
124116
|
__assign7 = Object.assign || function(t) {
|
|
124153
124117
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -125254,7 +125218,7 @@ var getObjectParent = function(field) {
|
|
|
125254
125218
|
}
|
|
125255
125219
|
};
|
|
125256
125220
|
|
|
125257
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125221
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Query.js
|
|
125258
125222
|
var output = function(field, taker) {
|
|
125259
125223
|
if (!field)
|
|
125260
125224
|
return;
|
|
@@ -125337,7 +125301,7 @@ var Query = (
|
|
|
125337
125301
|
}()
|
|
125338
125302
|
);
|
|
125339
125303
|
|
|
125340
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125304
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/BaseField.js
|
|
125341
125305
|
var __read4 = function(o, n) {
|
|
125342
125306
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
125343
125307
|
if (!m)
|
|
@@ -125717,7 +125681,7 @@ var BaseField = (
|
|
|
125717
125681
|
}()
|
|
125718
125682
|
);
|
|
125719
125683
|
|
|
125720
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125684
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Field.js
|
|
125721
125685
|
var __extends3 = function() {
|
|
125722
125686
|
var extendStatics = function(d, b) {
|
|
125723
125687
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -126358,7 +126322,7 @@ var Field = (
|
|
|
126358
126322
|
}(BaseField)
|
|
126359
126323
|
);
|
|
126360
126324
|
|
|
126361
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126325
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/effective.js
|
|
126362
126326
|
var __read5 = function(o, n) {
|
|
126363
126327
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
126364
126328
|
if (!m)
|
|
@@ -126452,7 +126416,7 @@ var runEffects = function(context) {
|
|
|
126452
126416
|
return GlobalState.lifecycles;
|
|
126453
126417
|
};
|
|
126454
126418
|
|
|
126455
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126419
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ArrayField.js
|
|
126456
126420
|
var __extends4 = function() {
|
|
126457
126421
|
var extendStatics = function(d, b) {
|
|
126458
126422
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -126642,7 +126606,7 @@ var ArrayField = (
|
|
|
126642
126606
|
}(Field)
|
|
126643
126607
|
);
|
|
126644
126608
|
|
|
126645
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126609
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ObjectField.js
|
|
126646
126610
|
var __extends5 = function() {
|
|
126647
126611
|
var extendStatics = function(d, b) {
|
|
126648
126612
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -126703,7 +126667,7 @@ var ObjectField = (
|
|
|
126703
126667
|
}(Field)
|
|
126704
126668
|
);
|
|
126705
126669
|
|
|
126706
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126670
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/VoidField.js
|
|
126707
126671
|
var __extends6 = function() {
|
|
126708
126672
|
var extendStatics = function(d, b) {
|
|
126709
126673
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -126818,7 +126782,7 @@ var VoidField = (
|
|
|
126818
126782
|
}(BaseField)
|
|
126819
126783
|
);
|
|
126820
126784
|
|
|
126821
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126785
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Form.js
|
|
126822
126786
|
var __assign8 = function() {
|
|
126823
126787
|
__assign8 = Object.assign || function(t) {
|
|
126824
126788
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -127346,7 +127310,7 @@ var Form = (
|
|
|
127346
127310
|
}()
|
|
127347
127311
|
);
|
|
127348
127312
|
|
|
127349
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127313
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFormEffects.js
|
|
127350
127314
|
function createFormEffect(type) {
|
|
127351
127315
|
return createEffectHook(type, function(form) {
|
|
127352
127316
|
return function(callback) {
|
|
@@ -127379,7 +127343,7 @@ var onFormValidateEnd = createFormEffect(LifeCycleTypes.ON_FORM_VALIDATE_END);
|
|
|
127379
127343
|
var onFormGraphChange = createFormEffect(LifeCycleTypes.ON_FORM_GRAPH_CHANGE);
|
|
127380
127344
|
var onFormLoading = createFormEffect(LifeCycleTypes.ON_FORM_LOADING);
|
|
127381
127345
|
|
|
127382
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127346
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFieldEffects.js
|
|
127383
127347
|
function createFieldEffect(type) {
|
|
127384
127348
|
return createEffectHook(type, function(field, form) {
|
|
127385
127349
|
return function(pattern, callback) {
|
|
@@ -127424,7 +127388,7 @@ function onFieldInit(pattern, callback) {
|
|
|
127424
127388
|
}
|
|
127425
127389
|
}
|
|
127426
127390
|
|
|
127427
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
127391
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/transformer.js
|
|
127428
127392
|
var __read7 = function(o, n) {
|
|
127429
127393
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
127430
127394
|
if (!m)
|
|
@@ -127649,7 +127613,7 @@ var transformFieldProps = function(schema, options) {
|
|
|
127649
127613
|
};
|
|
127650
127614
|
};
|
|
127651
127615
|
|
|
127652
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
127616
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/patches.js
|
|
127653
127617
|
var __assign9 = function() {
|
|
127654
127618
|
__assign9 = Object.assign || function(t) {
|
|
127655
127619
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -127698,7 +127662,7 @@ var enablePolyfills = function(versions) {
|
|
|
127698
127662
|
}
|
|
127699
127663
|
};
|
|
127700
127664
|
|
|
127701
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
127665
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
|
127702
127666
|
var __assign10 = function() {
|
|
127703
127667
|
__assign10 = Object.assign || function(t) {
|
|
127704
127668
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -127855,7 +127819,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
|
127855
127819
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
|
127856
127820
|
};
|
|
127857
127821
|
|
|
127858
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
127822
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/schema.js
|
|
127859
127823
|
var Schema = (
|
|
127860
127824
|
/** @class */
|
|
127861
127825
|
function() {
|
|
@@ -128091,10 +128055,10 @@ var Schema = (
|
|
|
128091
128055
|
}()
|
|
128092
128056
|
);
|
|
128093
128057
|
|
|
128094
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128058
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
128095
128059
|
var import_inquirer = __toESM(require_inquirer());
|
|
128096
128060
|
|
|
128097
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128061
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
|
128098
128062
|
var import_lodash2 = __toESM(require_lodash2());
|
|
128099
128063
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
128100
128064
|
try {
|
|
@@ -128441,7 +128405,7 @@ function transformForm(schema) {
|
|
|
128441
128405
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
128442
128406
|
}
|
|
128443
128407
|
|
|
128444
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128408
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
128445
128409
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
|
128446
128410
|
try {
|
|
128447
128411
|
var info = gen[key](arg);
|
|
@@ -128965,7 +128929,7 @@ function _prompt() {
|
|
|
128965
128929
|
return _prompt.apply(this, arguments);
|
|
128966
128930
|
}
|
|
128967
128931
|
|
|
128968
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128932
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
|
128969
128933
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
|
128970
128934
|
try {
|
|
128971
128935
|
var info = gen[key](arg);
|
|
@@ -129205,7 +129169,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
|
129205
129169
|
return CLIReader2;
|
|
129206
129170
|
}();
|
|
129207
129171
|
|
|
129208
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129172
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
129209
129173
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
129210
129174
|
|
|
129211
129175
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -129284,7 +129248,7 @@ var I18n = class {
|
|
|
129284
129248
|
}
|
|
129285
129249
|
};
|
|
129286
129250
|
|
|
129287
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129251
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
|
129288
129252
|
var ZH_LOCALE = {
|
|
129289
129253
|
environment: {
|
|
129290
129254
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -129311,7 +129275,7 @@ var ZH_LOCALE = {
|
|
|
129311
129275
|
}
|
|
129312
129276
|
};
|
|
129313
129277
|
|
|
129314
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129278
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
|
129315
129279
|
var EN_LOCALE = {
|
|
129316
129280
|
environment: {
|
|
129317
129281
|
node_version: "please upgrade node to lts version",
|
|
@@ -129338,14 +129302,14 @@ var EN_LOCALE = {
|
|
|
129338
129302
|
}
|
|
129339
129303
|
};
|
|
129340
129304
|
|
|
129341
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129305
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
|
129342
129306
|
var i18n = new I18n();
|
|
129343
129307
|
var localeKeys = i18n.init("zh", {
|
|
129344
129308
|
zh: ZH_LOCALE,
|
|
129345
129309
|
en: EN_LOCALE
|
|
129346
129310
|
});
|
|
129347
129311
|
|
|
129348
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129312
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
|
129349
129313
|
var import_lodash5 = __toESM(require_lodash2());
|
|
129350
129314
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129351
129315
|
try {
|
|
@@ -129554,7 +129518,7 @@ function transformInquirerSchema(questions) {
|
|
|
129554
129518
|
return questions;
|
|
129555
129519
|
}
|
|
129556
129520
|
|
|
129557
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129521
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
|
129558
129522
|
var import_path4 = __toESM(require("path"));
|
|
129559
129523
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129560
129524
|
try {
|
|
@@ -129818,7 +129782,7 @@ function _checkUseNvm() {
|
|
|
129818
129782
|
return _checkUseNvm.apply(this, arguments);
|
|
129819
129783
|
}
|
|
129820
129784
|
|
|
129821
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129785
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
129822
129786
|
function _array_like_to_array(arr, len) {
|
|
129823
129787
|
if (len == null || len > arr.length)
|
|
129824
129788
|
len = arr.length;
|
|
@@ -130399,7 +130363,7 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
130399
130363
|
switch (_state2.label) {
|
|
130400
130364
|
case 0:
|
|
130401
130365
|
_this.generatorCore.logger.debug("[renderDir] resourceKey=".concat(resourceKey));
|
|
130402
|
-
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "");
|
|
130366
|
+
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "").replace(".ejs", "");
|
|
130403
130367
|
return [
|
|
130404
130368
|
4,
|
|
130405
130369
|
api.renderTemplate(material.get(resourceKey), target, _object_spread7({}, _this.generatorContext.data || {}, parameters || {}))
|
|
@@ -131072,7 +131036,7 @@ var BaseDefaultConfig = {
|
|
|
131072
131036
|
|
|
131073
131037
|
// ../../generator-utils/dist/esm/index.js
|
|
131074
131038
|
var import_path5 = __toESM(require("path"));
|
|
131075
|
-
var
|
|
131039
|
+
var import_utils14 = __toESM(require_cjs2());
|
|
131076
131040
|
|
|
131077
131041
|
// src/index.ts
|
|
131078
131042
|
var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, function* () {
|
|
@@ -131111,7 +131075,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
131111
131075
|
(resourceKey) => resourceKey.replace("templates/pnpm-templates/npmrc", ".npmrc").replace(".handlebars", "")
|
|
131112
131076
|
);
|
|
131113
131077
|
}
|
|
131114
|
-
|
|
131078
|
+
import_utils14.fs.chmodSync(import_path6.default.join(generator.outputPath, ".husky", "pre-commit"), "755");
|
|
131115
131079
|
});
|
|
131116
131080
|
var src_default = (context, generator) => __async(void 0, null, function* () {
|
|
131117
131081
|
const appApi = new AppAPI(context, generator);
|
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
|
"types": "./src/index.ts",
|
|
21
21
|
"main": "./dist/index.js",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"/dist/index.js"
|
|
25
25
|
],
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@modern-js/codesmith": "2.2.
|
|
28
|
-
"@modern-js/codesmith-api-app": "2.2.
|
|
27
|
+
"@modern-js/codesmith": "2.2.3",
|
|
28
|
+
"@modern-js/codesmith-api-app": "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
|
-
"@
|
|
35
|
-
"@scripts/build": "2.
|
|
36
|
-
"@
|
|
32
|
+
"typescript": "^5",
|
|
33
|
+
"@modern-js/generator-common": "3.1.19",
|
|
34
|
+
"@scripts/jest-config": "2.21.1",
|
|
35
|
+
"@scripts/build": "2.21.1",
|
|
36
|
+
"@modern-js/generator-utils": "3.1.19"
|
|
37
37
|
},
|
|
38
38
|
"sideEffects": false,
|
|
39
39
|
"publishConfig": {
|