@kontur.candy/generator 5.34.0-permissions.0 → 5.34.0
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 +2463 -175
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -58958,7 +58958,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
58958
58958
|
/* harmony import */ var big_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! big.js */ "./node_modules/big.js/big.mjs");
|
|
58959
58959
|
/* harmony import */ var _Engine_src_Engine_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Engine/src/Engine/ValidationHelper */ "./Engine/src/Engine/ValidationHelper.ts");
|
|
58960
58960
|
/* harmony import */ var _Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Engine/src/Helpers/AutocalcCommonFunctions */ "./Engine/src/Helpers/AutocalcCommonFunctions.ts");
|
|
58961
|
-
/* harmony import */ var
|
|
58961
|
+
/* harmony import */ var _Engine_src_Helpers_DateHelpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Engine/src/Helpers/DateHelpers */ "./Engine/src/Helpers/DateHelpers.ts");
|
|
58962
|
+
/* harmony import */ var _TypingUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TypingUtils */ "./Common/TypingUtils.ts");
|
|
58963
|
+
|
|
58962
58964
|
|
|
58963
58965
|
|
|
58964
58966
|
|
|
@@ -59052,6 +59054,17 @@ class KCLangRuntimeUtils {
|
|
|
59052
59054
|
}
|
|
59053
59055
|
return undefined;
|
|
59054
59056
|
}
|
|
59057
|
+
getYear(value) {
|
|
59058
|
+
var _Date;
|
|
59059
|
+
return (_Date = new Date(value)) === null || _Date === void 0 ? void 0 : _Date.getFullYear();
|
|
59060
|
+
}
|
|
59061
|
+
dateTime(value) {
|
|
59062
|
+
const date = (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrEmpty)(value) ? (0,_Engine_src_Helpers_DateHelpers__WEBPACK_IMPORTED_MODULE_3__.convertDate)(value) : undefined;
|
|
59063
|
+
if (!date) {
|
|
59064
|
+
return undefined;
|
|
59065
|
+
}
|
|
59066
|
+
return date;
|
|
59067
|
+
}
|
|
59055
59068
|
sum(left, right) {
|
|
59056
59069
|
if (!isBigOrNumber(left) && !isBigOrNumber(right)) {
|
|
59057
59070
|
return undefined;
|
|
@@ -59099,7 +59112,7 @@ class KCLangRuntimeUtils {
|
|
|
59099
59112
|
}
|
|
59100
59113
|
const value = valueSelector(path);
|
|
59101
59114
|
const normalizedSnils = value === null || value === void 0 ? void 0 : value.replace(/[^0-9]/g, "");
|
|
59102
|
-
if ((0,
|
|
59115
|
+
if ((0,_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNullOrWhiteSpace)(normalizedSnils)) {
|
|
59103
59116
|
return false;
|
|
59104
59117
|
}
|
|
59105
59118
|
const result = _Engine_src_Engine_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__.ValidationHelper.isSnils(normalizedSnils);
|
|
@@ -59111,7 +59124,7 @@ class KCLangRuntimeUtils {
|
|
|
59111
59124
|
}
|
|
59112
59125
|
const value = valueSelector(path);
|
|
59113
59126
|
const normalizedRegNum = value === null || value === void 0 ? void 0 : value.replace(/[^0-9]/g, "");
|
|
59114
|
-
if ((0,
|
|
59127
|
+
if ((0,_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNullOrWhiteSpace)(normalizedRegNum)) {
|
|
59115
59128
|
return false;
|
|
59116
59129
|
}
|
|
59117
59130
|
const result = _Engine_src_Engine_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__.ValidationHelper.isRegNumSfr(normalizedRegNum);
|
|
@@ -59123,7 +59136,7 @@ class KCLangRuntimeUtils {
|
|
|
59123
59136
|
}
|
|
59124
59137
|
const value = valueSelector(path);
|
|
59125
59138
|
const normalizedSnils = value === null || value === void 0 ? void 0 : value.replace(/[^0-9]/g, "");
|
|
59126
|
-
if ((0,
|
|
59139
|
+
if ((0,_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNullOrWhiteSpace)(normalizedSnils)) {
|
|
59127
59140
|
return false;
|
|
59128
59141
|
}
|
|
59129
59142
|
const result = _Engine_src_Engine_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__.ValidationHelper.isInn(normalizedSnils);
|
|
@@ -59135,7 +59148,7 @@ class KCLangRuntimeUtils {
|
|
|
59135
59148
|
}
|
|
59136
59149
|
const bikValue = valueSelector(bik);
|
|
59137
59150
|
const accountValue = valueSelector(account);
|
|
59138
|
-
if ((0,
|
|
59151
|
+
if ((0,_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNullOrWhiteSpace)(bikValue) || (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNullOrWhiteSpace)(accountValue)) {
|
|
59139
59152
|
return false;
|
|
59140
59153
|
}
|
|
59141
59154
|
const result = _Engine_src_Engine_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__.ValidationHelper.isValidAccountNumber(bikValue, accountValue);
|
|
@@ -59146,7 +59159,7 @@ class KCLangRuntimeUtils {
|
|
|
59146
59159
|
return undefined;
|
|
59147
59160
|
}
|
|
59148
59161
|
const value = valueSelector(path);
|
|
59149
|
-
if ((0,
|
|
59162
|
+
if ((0,_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNullOrWhiteSpace)(value)) {
|
|
59150
59163
|
return false;
|
|
59151
59164
|
}
|
|
59152
59165
|
const result = _Engine_src_Engine_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__.ValidationHelper.isValidMirCardNumber(value);
|
|
@@ -61373,7 +61386,22 @@ function addYears(date, amount) {
|
|
|
61373
61386
|
return date;
|
|
61374
61387
|
}
|
|
61375
61388
|
function dateToString(date, format) {
|
|
61376
|
-
|
|
61389
|
+
var _months;
|
|
61390
|
+
const months = {
|
|
61391
|
+
"1": "января",
|
|
61392
|
+
"2": "февраля",
|
|
61393
|
+
"3": "марта",
|
|
61394
|
+
"4": "апреля",
|
|
61395
|
+
"5": "мая",
|
|
61396
|
+
"6": "июня",
|
|
61397
|
+
"7": "июля",
|
|
61398
|
+
"8": "августа",
|
|
61399
|
+
"9": "сентября",
|
|
61400
|
+
"10": "октября",
|
|
61401
|
+
"11": "ноября",
|
|
61402
|
+
"12": "декабря"
|
|
61403
|
+
};
|
|
61404
|
+
return format.replace("HH", date.getHours().toString().padStart(2, "0")).replace("mm", date.getMinutes().toString().padStart(2, "0")).replace("dd", date.getDate().toString().padStart(2, "0")).replace("d", date.getDate().toString()).replace("MMMM", (_months = months[date.getMonth() + 1]) !== null && _months !== void 0 ? _months : "").replace("MM", (date.getMonth() + 1).toString().padStart(2, "0")).replace("yyyy", date.getFullYear().toString());
|
|
61377
61405
|
}
|
|
61378
61406
|
function isDate(date) {
|
|
61379
61407
|
return date instanceof Date && !isNaN(date.getTime());
|
|
@@ -70874,6 +70902,8 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
70874
70902
|
const expr = generateJsExpression(expression.expression);
|
|
70875
70903
|
return `${utilsName}.${roundFnName}(${expr}, ${(_expression$fractiona = expression.fractionalDigits) !== null && _expression$fractiona !== void 0 ? _expression$fractiona : undefined})`;
|
|
70876
70904
|
}
|
|
70905
|
+
case "dateTime":
|
|
70906
|
+
case "getYear":
|
|
70877
70907
|
case "floor":
|
|
70878
70908
|
{
|
|
70879
70909
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
@@ -70888,7 +70918,6 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
70888
70918
|
case "getDaysInMonth":
|
|
70889
70919
|
case "getDay":
|
|
70890
70920
|
case "getMonth":
|
|
70891
|
-
case "getYear":
|
|
70892
70921
|
case "isDate":
|
|
70893
70922
|
case "differenceInMonths":
|
|
70894
70923
|
case "differenceInDays":
|
|
@@ -70896,7 +70925,6 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
70896
70925
|
case "addMonths":
|
|
70897
70926
|
case "addYears":
|
|
70898
70927
|
case "dateToString":
|
|
70899
|
-
case "dateTime":
|
|
70900
70928
|
case "getPicklistValues":
|
|
70901
70929
|
case "nodeps":
|
|
70902
70930
|
case "array":
|
|
@@ -71770,7 +71798,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
71770
71798
|
|
|
71771
71799
|
|
|
71772
71800
|
|
|
71773
|
-
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _dec4, _class4, _class5, _descriptor2, _dec5, _dec6, _class7, _class8, _descriptor3, _dec7, _dec8, _class10, _class11, _descriptor4, _dec9, _dec10, _class13, _class14, _descriptor5, _dec11, _dec12, _class16, _class17, _descriptor6, _dec13, _dec14, _class19, _class20, _descriptor7, _dec15, _dec16, _class22, _class23, _descriptor8, _dec17, _dec18, _class25, _class26, _descriptor9, _dec19, _dec20, _class28, _class29, _descriptor10, _dec21, _dec22, _class31, _class32, _descriptor11,
|
|
71801
|
+
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _dec4, _class4, _class5, _descriptor2, _dec5, _dec6, _class7, _class8, _descriptor3, _dec7, _dec8, _class10, _class11, _descriptor4, _dec9, _dec10, _class13, _class14, _descriptor5, _dec11, _dec12, _class16, _class17, _descriptor6, _dec13, _dec14, _class19, _class20, _descriptor7, _dec15, _dec16, _class22, _class23, _descriptor8, _dec17, _dec18, _class25, _class26, _descriptor9, _dec19, _dec20, _class28, _class29, _descriptor10, _dec21, _dec22, _dec23, _class31, _class32, _descriptor11, _descriptor12, _dec24, _dec25, _dec26, _dec27, _dec28, _class34, _class35, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _class37, _class38, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _dec38, _dec39, _class40, _class41, _descriptor25, _dec40, _dec41, _class43, _class44, _descriptor26, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _dec53, _dec54, _dec55, _dec56, _dec57, _class46, _class47, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41;
|
|
71774
71802
|
|
|
71775
71803
|
class SchemaRngTypeCheck extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {}
|
|
71776
71804
|
let PatternTypeCheck = (_dec = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("pattern", ``), _dec2 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("value", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, ``), _dec(_class = (_class2 = class PatternTypeCheck extends SchemaRngTypeCheck {
|
|
@@ -71883,219 +71911,225 @@ let MaxinclusiveTypeCheck = (_dec19 = (0,_generators_markupGenerator_Serializer_
|
|
|
71883
71911
|
writable: true,
|
|
71884
71912
|
initializer: null
|
|
71885
71913
|
})), _class29)) || _class28);
|
|
71886
|
-
let ValueEqlAutoValueTypeCheck = (_dec21 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("valueeqlautovalue", `Задаёт валидацию, если value != autovalue`), _dec22 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("level", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("error", "warning"), `Уровень валидации`), _dec21(_class31 = (_class32 = class ValueEqlAutoValueTypeCheck extends SchemaRngTypeCheck {
|
|
71914
|
+
let ValueEqlAutoValueTypeCheck = (_dec21 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("valueeqlautovalue", `Задаёт валидацию, если value != autovalue`), _dec22 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("level", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("error", "warning"), `Уровень валидации`), _dec23 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("condition", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.javascriptExpression, "Условие, при котором валидация отображается"), _dec21(_class31 = (_class32 = class ValueEqlAutoValueTypeCheck extends SchemaRngTypeCheck {
|
|
71887
71915
|
constructor(...args) {
|
|
71888
71916
|
super(...args);
|
|
71889
71917
|
this.name = "valueeqlautovalue";
|
|
71890
71918
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "level", _descriptor11, this);
|
|
71919
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "condition", _descriptor12, this);
|
|
71891
71920
|
}
|
|
71892
71921
|
}, (_descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class32.prototype, "level", [_dec22], {
|
|
71893
71922
|
configurable: true,
|
|
71894
71923
|
enumerable: true,
|
|
71895
71924
|
writable: true,
|
|
71896
71925
|
initializer: null
|
|
71926
|
+
}), _descriptor12 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class32.prototype, "condition", [_dec23], {
|
|
71927
|
+
configurable: true,
|
|
71928
|
+
enumerable: true,
|
|
71929
|
+
writable: true,
|
|
71930
|
+
initializer: null
|
|
71897
71931
|
})), _class32)) || _class31);
|
|
71898
|
-
let SchemaRngType = (
|
|
71932
|
+
let SchemaRngType = (_dec24 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("type", ``), _dec25 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("base", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("string", "pattern", "integer", "decimal", "date", "gYear", "gMonth", "dateTime", "int", "boolean", "double"), ``), _dec26 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("description", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec27 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("requiredDescription", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec28 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(undefined, [PatternTypeCheck, EnumerationTypeCheck, LengthTypeCheck, MinlengthTypeCheck, MaxlengthTypeCheck, TotaldigitsTypeCheck, IntegerdigitsTypeCheck, FractiondigitsTypeCheck, MininclusiveTypeCheck, MaxinclusiveTypeCheck, ValueEqlAutoValueTypeCheck]), _dec24(_class34 = (_class35 = class SchemaRngType extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
71899
71933
|
constructor(...args) {
|
|
71900
71934
|
super(...args);
|
|
71901
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "base",
|
|
71902
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
71903
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "requiredDescription",
|
|
71904
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children",
|
|
71935
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "base", _descriptor13, this);
|
|
71936
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor14, this);
|
|
71937
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "requiredDescription", _descriptor15, this);
|
|
71938
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor16, this);
|
|
71905
71939
|
}
|
|
71906
|
-
}, (
|
|
71940
|
+
}, (_descriptor13 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class35.prototype, "base", [_dec25], {
|
|
71907
71941
|
configurable: true,
|
|
71908
71942
|
enumerable: true,
|
|
71909
71943
|
writable: true,
|
|
71910
71944
|
initializer: null
|
|
71911
|
-
}),
|
|
71945
|
+
}), _descriptor14 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class35.prototype, "description", [_dec26], {
|
|
71912
71946
|
configurable: true,
|
|
71913
71947
|
enumerable: true,
|
|
71914
71948
|
writable: true,
|
|
71915
71949
|
initializer: null
|
|
71916
|
-
}),
|
|
71950
|
+
}), _descriptor15 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class35.prototype, "requiredDescription", [_dec27], {
|
|
71917
71951
|
configurable: true,
|
|
71918
71952
|
enumerable: true,
|
|
71919
71953
|
writable: true,
|
|
71920
71954
|
initializer: null
|
|
71921
|
-
}),
|
|
71955
|
+
}), _descriptor16 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class35.prototype, "children", [_dec28], {
|
|
71922
71956
|
configurable: true,
|
|
71923
71957
|
enumerable: true,
|
|
71924
71958
|
writable: true,
|
|
71925
71959
|
initializer: null
|
|
71926
71960
|
})), _class35)) || _class34);
|
|
71927
|
-
let SchemaRngAttribute = (
|
|
71928
|
-
полученное из ФНФа, даже если оно пустое`),
|
|
71961
|
+
let SchemaRngAttribute = (_dec29 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("attribute", ``), _dec30 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("name", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec31 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("type", [SchemaRngType]), _dec32 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("optional", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec33 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("nillable", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec34 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("description", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec35 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("lazyLoadAggregations", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec36 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("lazyLoadMode", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("deferred", "initial", "request"), ``), _dec37 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("disableValueAutoInit", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `В значениии true запрещает при кастомной нормализации перезаписывать значение value,
|
|
71962
|
+
полученное из ФНФа, даже если оно пустое`), _dec29(_class37 = (_class38 = class SchemaRngAttribute extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
71929
71963
|
constructor(...args) {
|
|
71930
71964
|
super(...args);
|
|
71931
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name",
|
|
71932
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
71933
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optional",
|
|
71934
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "nillable",
|
|
71935
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
71936
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadAggregations",
|
|
71937
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadMode",
|
|
71938
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disableValueAutoInit",
|
|
71965
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor17, this);
|
|
71966
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor18, this);
|
|
71967
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optional", _descriptor19, this);
|
|
71968
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "nillable", _descriptor20, this);
|
|
71969
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor21, this);
|
|
71970
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadAggregations", _descriptor22, this);
|
|
71971
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadMode", _descriptor23, this);
|
|
71972
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disableValueAutoInit", _descriptor24, this);
|
|
71939
71973
|
}
|
|
71940
|
-
}, (
|
|
71974
|
+
}, (_descriptor17 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class38.prototype, "name", [_dec30], {
|
|
71941
71975
|
configurable: true,
|
|
71942
71976
|
enumerable: true,
|
|
71943
71977
|
writable: true,
|
|
71944
71978
|
initializer: null
|
|
71945
|
-
}),
|
|
71979
|
+
}), _descriptor18 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class38.prototype, "type", [_dec31], {
|
|
71946
71980
|
configurable: true,
|
|
71947
71981
|
enumerable: true,
|
|
71948
71982
|
writable: true,
|
|
71949
71983
|
initializer: null
|
|
71950
|
-
}),
|
|
71984
|
+
}), _descriptor19 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class38.prototype, "optional", [_dec32], {
|
|
71951
71985
|
configurable: true,
|
|
71952
71986
|
enumerable: true,
|
|
71953
71987
|
writable: true,
|
|
71954
71988
|
initializer: null
|
|
71955
|
-
}),
|
|
71989
|
+
}), _descriptor20 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class38.prototype, "nillable", [_dec33], {
|
|
71956
71990
|
configurable: true,
|
|
71957
71991
|
enumerable: true,
|
|
71958
71992
|
writable: true,
|
|
71959
71993
|
initializer: null
|
|
71960
|
-
}),
|
|
71994
|
+
}), _descriptor21 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class38.prototype, "description", [_dec34], {
|
|
71961
71995
|
configurable: true,
|
|
71962
71996
|
enumerable: true,
|
|
71963
71997
|
writable: true,
|
|
71964
71998
|
initializer: null
|
|
71965
|
-
}),
|
|
71999
|
+
}), _descriptor22 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class38.prototype, "lazyLoadAggregations", [_dec35], {
|
|
71966
72000
|
configurable: true,
|
|
71967
72001
|
enumerable: true,
|
|
71968
72002
|
writable: true,
|
|
71969
72003
|
initializer: null
|
|
71970
|
-
}),
|
|
72004
|
+
}), _descriptor23 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class38.prototype, "lazyLoadMode", [_dec36], {
|
|
71971
72005
|
configurable: true,
|
|
71972
72006
|
enumerable: true,
|
|
71973
72007
|
writable: true,
|
|
71974
72008
|
initializer: null
|
|
71975
|
-
}),
|
|
72009
|
+
}), _descriptor24 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class38.prototype, "disableValueAutoInit", [_dec37], {
|
|
71976
72010
|
configurable: true,
|
|
71977
72011
|
enumerable: true,
|
|
71978
72012
|
writable: true,
|
|
71979
72013
|
initializer: null
|
|
71980
72014
|
})), _class38)) || _class37);
|
|
71981
|
-
let SchemaRngInnerText = (
|
|
72015
|
+
let SchemaRngInnerText = (_dec38 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("innertext", ``), _dec39 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("type", [SchemaRngType]), _dec38(_class40 = (_class41 = class SchemaRngInnerText extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
71982
72016
|
constructor(...args) {
|
|
71983
72017
|
super(...args);
|
|
71984
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
72018
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor25, this);
|
|
71985
72019
|
}
|
|
71986
|
-
}, (
|
|
72020
|
+
}, (_descriptor25 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class41.prototype, "type", [_dec39], {
|
|
71987
72021
|
configurable: true,
|
|
71988
72022
|
enumerable: true,
|
|
71989
72023
|
writable: true,
|
|
71990
72024
|
initializer: null
|
|
71991
72025
|
})), _class41)) || _class40);
|
|
71992
|
-
let SchemaRngElementChoiceElement = (
|
|
72026
|
+
let SchemaRngElementChoiceElement = (_dec40 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("choice", ``), _dec41 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("element"), _dec40(_class43 = (_class44 = class SchemaRngElementChoiceElement extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
71993
72027
|
constructor(...args) {
|
|
71994
72028
|
super(...args);
|
|
71995
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children",
|
|
72029
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor26, this);
|
|
71996
72030
|
}
|
|
71997
|
-
}, (
|
|
72031
|
+
}, (_descriptor26 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "children", [_dec41], {
|
|
71998
72032
|
configurable: true,
|
|
71999
72033
|
enumerable: true,
|
|
72000
72034
|
writable: true,
|
|
72001
72035
|
initializer: null
|
|
72002
72036
|
})), _class44)) || _class43);
|
|
72003
|
-
let SchemaRngElement = (
|
|
72037
|
+
let SchemaRngElement = (_dec42 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("element", ``), _dec43 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("name", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, ``), _dec44 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("description", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec45 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("optional", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec46 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("nillable", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec47 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("multiple", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec48 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("maxOccurs", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec49 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("attribute", [SchemaRngAttribute]), _dec50 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("element"), _dec51 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("choice"), _dec52 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("innertext", [SchemaRngInnerText]), _dec53 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("lazyLoadAggregations", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `При частичной загрузке подгружать Sum, Count`), _dec54 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("lazyLoadMode", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("deferred", "initial", "request"), `
|
|
72004
72038
|
Режим частичной загрузки.
|
|
72005
72039
|
- deferred: ставится на коллекцию, которую хотим получать частями; например, в 6-НДФЛ при открытии одной справки, загрузятся все данные по ней
|
|
72006
72040
|
- initial: данные загружаются всегда; например, данные для фильтров
|
|
72007
72041
|
- request: загрузка по запросу с фронта; используется для постраничного отображения списков; например, видимые пользователю поля в таблице
|
|
72008
|
-
`),
|
|
72009
|
-
полученное из ФУФа, даже если оно пустое`),
|
|
72042
|
+
`), _dec55 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("errorAndWarningCountRequired", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Подсчет количества ошибок и предупреждений по элементу в множественности`), _dec56 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("lazyLoadingThreshold", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Количество элементов в множественности, начиная с которого включается частичная загрузка. Не поддерживается для вложенных множественностей, только для корневой с lazyLoadMode=deferred`), _dec57 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("disableValueAutoInit", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `В значениии true запрещает при кастомной нормализации перезаписывать значение value,
|
|
72043
|
+
полученное из ФУФа, даже если оно пустое`), _dec42(_class46 = (_class47 = class SchemaRngElement extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
72010
72044
|
constructor(...args) {
|
|
72011
72045
|
super(...args);
|
|
72012
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name",
|
|
72013
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
72014
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optional",
|
|
72015
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "nillable",
|
|
72016
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "multiple",
|
|
72017
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "maxOccurs",
|
|
72018
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "attributes",
|
|
72019
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children",
|
|
72020
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "choices",
|
|
72021
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "innerText",
|
|
72022
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadAggregations",
|
|
72023
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadMode",
|
|
72024
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorAndWarningCountRequired",
|
|
72025
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadingThreshold",
|
|
72026
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disableValueAutoInit",
|
|
72046
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor27, this);
|
|
72047
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor28, this);
|
|
72048
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optional", _descriptor29, this);
|
|
72049
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "nillable", _descriptor30, this);
|
|
72050
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "multiple", _descriptor31, this);
|
|
72051
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "maxOccurs", _descriptor32, this);
|
|
72052
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "attributes", _descriptor33, this);
|
|
72053
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor34, this);
|
|
72054
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "choices", _descriptor35, this);
|
|
72055
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "innerText", _descriptor36, this);
|
|
72056
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadAggregations", _descriptor37, this);
|
|
72057
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadMode", _descriptor38, this);
|
|
72058
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorAndWarningCountRequired", _descriptor39, this);
|
|
72059
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadingThreshold", _descriptor40, this);
|
|
72060
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disableValueAutoInit", _descriptor41, this);
|
|
72027
72061
|
}
|
|
72028
|
-
}, (
|
|
72062
|
+
}, (_descriptor27 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "name", [_dec43], {
|
|
72029
72063
|
configurable: true,
|
|
72030
72064
|
enumerable: true,
|
|
72031
72065
|
writable: true,
|
|
72032
72066
|
initializer: null
|
|
72033
|
-
}),
|
|
72067
|
+
}), _descriptor28 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "description", [_dec44], {
|
|
72034
72068
|
configurable: true,
|
|
72035
72069
|
enumerable: true,
|
|
72036
72070
|
writable: true,
|
|
72037
72071
|
initializer: null
|
|
72038
|
-
}),
|
|
72072
|
+
}), _descriptor29 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "optional", [_dec45], {
|
|
72039
72073
|
configurable: true,
|
|
72040
72074
|
enumerable: true,
|
|
72041
72075
|
writable: true,
|
|
72042
72076
|
initializer: null
|
|
72043
|
-
}),
|
|
72077
|
+
}), _descriptor30 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "nillable", [_dec46], {
|
|
72044
72078
|
configurable: true,
|
|
72045
72079
|
enumerable: true,
|
|
72046
72080
|
writable: true,
|
|
72047
72081
|
initializer: null
|
|
72048
|
-
}),
|
|
72082
|
+
}), _descriptor31 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "multiple", [_dec47], {
|
|
72049
72083
|
configurable: true,
|
|
72050
72084
|
enumerable: true,
|
|
72051
72085
|
writable: true,
|
|
72052
72086
|
initializer: null
|
|
72053
|
-
}),
|
|
72087
|
+
}), _descriptor32 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "maxOccurs", [_dec48], {
|
|
72054
72088
|
configurable: true,
|
|
72055
72089
|
enumerable: true,
|
|
72056
72090
|
writable: true,
|
|
72057
72091
|
initializer: null
|
|
72058
|
-
}),
|
|
72092
|
+
}), _descriptor33 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "attributes", [_dec49], {
|
|
72059
72093
|
configurable: true,
|
|
72060
72094
|
enumerable: true,
|
|
72061
72095
|
writable: true,
|
|
72062
72096
|
initializer: null
|
|
72063
|
-
}),
|
|
72097
|
+
}), _descriptor34 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "children", [_dec50], {
|
|
72064
72098
|
configurable: true,
|
|
72065
72099
|
enumerable: true,
|
|
72066
72100
|
writable: true,
|
|
72067
72101
|
initializer: null
|
|
72068
|
-
}),
|
|
72102
|
+
}), _descriptor35 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "choices", [_dec51], {
|
|
72069
72103
|
configurable: true,
|
|
72070
72104
|
enumerable: true,
|
|
72071
72105
|
writable: true,
|
|
72072
72106
|
initializer: null
|
|
72073
|
-
}),
|
|
72107
|
+
}), _descriptor36 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "innerText", [_dec52], {
|
|
72074
72108
|
configurable: true,
|
|
72075
72109
|
enumerable: true,
|
|
72076
72110
|
writable: true,
|
|
72077
72111
|
initializer: null
|
|
72078
|
-
}),
|
|
72112
|
+
}), _descriptor37 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "lazyLoadAggregations", [_dec53], {
|
|
72079
72113
|
configurable: true,
|
|
72080
72114
|
enumerable: true,
|
|
72081
72115
|
writable: true,
|
|
72082
72116
|
initializer: null
|
|
72083
|
-
}),
|
|
72117
|
+
}), _descriptor38 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "lazyLoadMode", [_dec54], {
|
|
72084
72118
|
configurable: true,
|
|
72085
72119
|
enumerable: true,
|
|
72086
72120
|
writable: true,
|
|
72087
72121
|
initializer: null
|
|
72088
|
-
}),
|
|
72122
|
+
}), _descriptor39 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "errorAndWarningCountRequired", [_dec55], {
|
|
72089
72123
|
configurable: true,
|
|
72090
72124
|
enumerable: true,
|
|
72091
72125
|
writable: true,
|
|
72092
72126
|
initializer: null
|
|
72093
|
-
}),
|
|
72127
|
+
}), _descriptor40 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "lazyLoadingThreshold", [_dec56], {
|
|
72094
72128
|
configurable: true,
|
|
72095
72129
|
enumerable: true,
|
|
72096
72130
|
writable: true,
|
|
72097
72131
|
initializer: null
|
|
72098
|
-
}),
|
|
72132
|
+
}), _descriptor41 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "disableValueAutoInit", [_dec57], {
|
|
72099
72133
|
configurable: true,
|
|
72100
72134
|
enumerable: true,
|
|
72101
72135
|
writable: true,
|
|
@@ -78790,18 +78824,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
78790
78824
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
78791
78825
|
/* harmony export */ buildSugarNodeDocumentation: () => (/* binding */ buildSugarNodeDocumentation)
|
|
78792
78826
|
/* harmony export */ });
|
|
78793
|
-
/* harmony import */ var
|
|
78794
|
-
/* harmony import */ var
|
|
78795
|
-
/* harmony import */ var
|
|
78796
|
-
/* harmony import */ var
|
|
78797
|
-
/* harmony import */ var
|
|
78798
|
-
/* harmony import */ var
|
|
78799
|
-
/* harmony import */ var
|
|
78800
|
-
/* harmony import */ var
|
|
78801
|
-
/* harmony import */ var
|
|
78802
|
-
/* harmony import */ var
|
|
78803
|
-
/* harmony import */ var
|
|
78804
|
-
/* harmony import */ var
|
|
78827
|
+
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! util */ "util");
|
|
78828
|
+
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_0__);
|
|
78829
|
+
/* harmony import */ var glob__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! glob */ "./node_modules/glob/glob.js");
|
|
78830
|
+
/* harmony import */ var glob__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(glob__WEBPACK_IMPORTED_MODULE_1__);
|
|
78831
|
+
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
78832
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
78833
|
+
/* harmony import */ var _common_RequireContext_LoadDocumentationFileFormContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/RequireContext/LoadDocumentationFileFormContext */ "./Generator/src/common/RequireContext/LoadDocumentationFileFormContext.ts");
|
|
78834
|
+
/* harmony import */ var _markupGenerator_Serializer_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../markupGenerator/Serializer/ClassMetadataAccess */ "./Generator/src/generators/markupGenerator/Serializer/ClassMetadataAccess.ts");
|
|
78835
|
+
/* harmony import */ var _markupGenerator_Serializer_Properties_MixinPropertyDeserializer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../markupGenerator/Serializer/Properties/MixinPropertyDeserializer */ "./Generator/src/generators/markupGenerator/Serializer/Properties/MixinPropertyDeserializer.ts");
|
|
78836
|
+
/* harmony import */ var _markupGenerator_Serializer_Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../markupGenerator/Serializer/Properties/SinglePropertyDeserializer */ "./Generator/src/generators/markupGenerator/Serializer/Properties/SinglePropertyDeserializer.ts");
|
|
78837
|
+
/* harmony import */ var _markupGenerator_Serializer_Properties_ValuesSources_AttributeValueSource__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../markupGenerator/Serializer/Properties/ValuesSources/AttributeValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/AttributeValueSource.ts");
|
|
78838
|
+
/* harmony import */ var _markupGenerator_Serializer_Properties_ValuesSources_SkipAttributeValueSource__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../markupGenerator/Serializer/Properties/ValuesSources/SkipAttributeValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/SkipAttributeValueSource.ts");
|
|
78839
|
+
/* harmony import */ var _markupGenerator_Serializer_Properties_ValuesSources_MarkupOrAttributeValueSource__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../markupGenerator/Serializer/Properties/ValuesSources/MarkupOrAttributeValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/MarkupOrAttributeValueSource.ts");
|
|
78840
|
+
/* harmony import */ var _markupGenerator_Serializer_Properties_ValuesSources_ChildrenNodesValueSource__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../markupGenerator/Serializer/Properties/ValuesSources/ChildrenNodesValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/ChildrenNodesValueSource.ts");
|
|
78841
|
+
/* harmony import */ var _markupGenerator_Serializer_Properties_ValuesSources_SingleChildValueSource__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../markupGenerator/Serializer/Properties/ValuesSources/SingleChildValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/SingleChildValueSource.ts");
|
|
78842
|
+
/* harmony import */ var _DocumentationTypes__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./DocumentationTypes */ "./Generator/src/generators/DocumentationGenerator/DocumentationTypes.ts");
|
|
78843
|
+
|
|
78844
|
+
|
|
78805
78845
|
|
|
78806
78846
|
|
|
78807
78847
|
|
|
@@ -78814,18 +78854,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
78814
78854
|
|
|
78815
78855
|
|
|
78816
78856
|
|
|
78857
|
+
const globAsync = (0,util__WEBPACK_IMPORTED_MODULE_0__.promisify)((glob__WEBPACK_IMPORTED_MODULE_1___default()));
|
|
78817
78858
|
function getMarkdownDescription(documentationFilesContext, metadata, sugarNodeClass) {
|
|
78818
78859
|
if (documentationFilesContext == undefined) {
|
|
78819
78860
|
return undefined;
|
|
78820
78861
|
}
|
|
78821
|
-
const descriptions = [(0,
|
|
78822
|
-
return
|
|
78862
|
+
const descriptions = [(0,_common_RequireContext_LoadDocumentationFileFormContext__WEBPACK_IMPORTED_MODULE_4__.loadDocumentationFileFormContext)(documentationFilesContext, "description.md"), (0,_common_RequireContext_LoadDocumentationFileFormContext__WEBPACK_IMPORTED_MODULE_4__.loadDocumentationFileFormContext)(documentationFilesContext, metadata.sugarNodeName + ".md"), (0,_common_RequireContext_LoadDocumentationFileFormContext__WEBPACK_IMPORTED_MODULE_4__.loadDocumentationFileFormContext)(documentationFilesContext, sugarNodeClass.name + ".md")];
|
|
78863
|
+
return _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.first(descriptions.filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrUndefined));
|
|
78864
|
+
}
|
|
78865
|
+
async function getPathImagesFromContext(documentationFilesContext) {
|
|
78866
|
+
if (documentationFilesContext == undefined) {
|
|
78867
|
+
return [];
|
|
78868
|
+
}
|
|
78869
|
+
const pathImage = documentationFilesContext.resolve("*.png");
|
|
78870
|
+
return await globAsync(pathImage);
|
|
78823
78871
|
}
|
|
78824
78872
|
function buildSugarNodeDocumentation(sugarNodeClass) {
|
|
78825
|
-
const metadata = (0,
|
|
78826
|
-
const propertySerializers = (0,
|
|
78873
|
+
const metadata = (0,_markupGenerator_Serializer_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_5__.getSugarNodeMetadata)(sugarNodeClass);
|
|
78874
|
+
const propertySerializers = (0,_markupGenerator_Serializer_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_5__.getPropertyDeserializers)(sugarNodeClass);
|
|
78827
78875
|
const documentationFilesContext = metadata.documentationFilesContext;
|
|
78828
|
-
const example = (0,
|
|
78876
|
+
const example = (0,_common_RequireContext_LoadDocumentationFileFormContext__WEBPACK_IMPORTED_MODULE_4__.loadDocumentationFileFormContext)(documentationFilesContext, "example.md");
|
|
78829
78877
|
const markdownDescription = getMarkdownDescription(documentationFilesContext, metadata, sugarNodeClass);
|
|
78830
78878
|
const {
|
|
78831
78879
|
markupAttributes,
|
|
@@ -78836,6 +78884,16 @@ function buildSugarNodeDocumentation(sugarNodeClass) {
|
|
|
78836
78884
|
singleChild,
|
|
78837
78885
|
availableAnyChildren
|
|
78838
78886
|
} = buildAvailableChildrenInfo(propertySerializers, documentationFilesContext);
|
|
78887
|
+
const imagesPromise = getPathImagesFromContext(documentationFilesContext);
|
|
78888
|
+
const images = imagesPromise.then(resolve => resolve.map(value => {
|
|
78889
|
+
{
|
|
78890
|
+
const imageName = value.split("/").pop();
|
|
78891
|
+
if (imageName != undefined) {
|
|
78892
|
+
images[imageName] = value;
|
|
78893
|
+
}
|
|
78894
|
+
}
|
|
78895
|
+
return images;
|
|
78896
|
+
}));
|
|
78839
78897
|
return {
|
|
78840
78898
|
name: metadata.sugarNodeName.toLowerCase(),
|
|
78841
78899
|
availableChildren: {
|
|
@@ -78847,7 +78905,8 @@ function buildSugarNodeDocumentation(sugarNodeClass) {
|
|
|
78847
78905
|
shortMarkdownDescription: metadata.description,
|
|
78848
78906
|
markdownDescription: markdownDescription,
|
|
78849
78907
|
attributes: attributes,
|
|
78850
|
-
markupAttributes: markupAttributes
|
|
78908
|
+
markupAttributes: markupAttributes,
|
|
78909
|
+
images: images
|
|
78851
78910
|
};
|
|
78852
78911
|
}
|
|
78853
78912
|
function buildAvailableChildrenInfo(propertySerializers, documentationFilesContext) {
|
|
@@ -78867,20 +78926,20 @@ function buildAvailableChildrenInfo(propertySerializers, documentationFilesConte
|
|
|
78867
78926
|
};
|
|
78868
78927
|
}
|
|
78869
78928
|
function buildAvailableChildrenDocs(propertyDeserializer, documentationFilesContext) {
|
|
78870
|
-
if (!(propertyDeserializer instanceof
|
|
78929
|
+
if (!(propertyDeserializer instanceof _markupGenerator_Serializer_Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer)) {
|
|
78871
78930
|
return [];
|
|
78872
78931
|
}
|
|
78873
78932
|
if (propertyDeserializer.propertyName === "children") {
|
|
78874
78933
|
return [];
|
|
78875
78934
|
}
|
|
78876
|
-
if (propertyDeserializer.valueSource instanceof
|
|
78935
|
+
if (propertyDeserializer.valueSource instanceof _markupGenerator_Serializer_Properties_ValuesSources_ChildrenNodesValueSource__WEBPACK_IMPORTED_MODULE_11__.ChildrenNodesValueSource) {
|
|
78877
78936
|
const childrenNodes = propertyDeserializer.valueSource.nodeClasses.map(buildSugarNodeDocumentation);
|
|
78878
78937
|
return childrenNodes;
|
|
78879
78938
|
}
|
|
78880
78939
|
return [];
|
|
78881
78940
|
}
|
|
78882
78941
|
function buildAvailableSugarChildrenDocs(propertyDeserializer, documentationFilesContext) {
|
|
78883
|
-
if (!(propertyDeserializer instanceof
|
|
78942
|
+
if (!(propertyDeserializer instanceof _markupGenerator_Serializer_Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer)) {
|
|
78884
78943
|
return false;
|
|
78885
78944
|
}
|
|
78886
78945
|
if (propertyDeserializer.propertyName === "children") {
|
|
@@ -78889,10 +78948,10 @@ function buildAvailableSugarChildrenDocs(propertyDeserializer, documentationFile
|
|
|
78889
78948
|
return false;
|
|
78890
78949
|
}
|
|
78891
78950
|
function buildAvailableSingleChildDocs(propertyDeserializer, documentationFilesContext) {
|
|
78892
|
-
if (!(propertyDeserializer instanceof
|
|
78951
|
+
if (!(propertyDeserializer instanceof _markupGenerator_Serializer_Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer)) {
|
|
78893
78952
|
return [];
|
|
78894
78953
|
}
|
|
78895
|
-
if (propertyDeserializer.valueSource instanceof
|
|
78954
|
+
if (propertyDeserializer.valueSource instanceof _markupGenerator_Serializer_Properties_ValuesSources_SingleChildValueSource__WEBPACK_IMPORTED_MODULE_12__.SingleChildValueSource) {
|
|
78896
78955
|
const childrenNodes = propertyDeserializer.valueSource.nodeClasses.map(buildSugarNodeDocumentation);
|
|
78897
78956
|
return childrenNodes;
|
|
78898
78957
|
}
|
|
@@ -78913,51 +78972,51 @@ function buildMarkupAndAttributesInfo(propertySerializers, documentationFilesCon
|
|
|
78913
78972
|
};
|
|
78914
78973
|
}
|
|
78915
78974
|
function buildMarkupAttributeDocs(propertyDeserializer, documentationFilesContext) {
|
|
78916
|
-
if (!(propertyDeserializer instanceof
|
|
78975
|
+
if (!(propertyDeserializer instanceof _markupGenerator_Serializer_Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer)) {
|
|
78917
78976
|
return [];
|
|
78918
78977
|
}
|
|
78919
|
-
if (propertyDeserializer.valueSource instanceof
|
|
78978
|
+
if (propertyDeserializer.valueSource instanceof _markupGenerator_Serializer_Properties_ValuesSources_MarkupOrAttributeValueSource__WEBPACK_IMPORTED_MODULE_10__.MarkupOrAttributeValueSource) {
|
|
78920
78979
|
var _propertyDeserializer;
|
|
78921
78980
|
let markdownDescription = "";
|
|
78922
78981
|
if (documentationFilesContext != undefined) {
|
|
78923
|
-
markdownDescription = (0,
|
|
78982
|
+
markdownDescription = (0,_common_RequireContext_LoadDocumentationFileFormContext__WEBPACK_IMPORTED_MODULE_4__.loadDocumentationFileFormContext)(documentationFilesContext, `${propertyDeserializer.valueSource.attrName}.attr.md`);
|
|
78924
78983
|
}
|
|
78925
78984
|
return [{
|
|
78926
78985
|
name: propertyDeserializer.valueSource.attrName,
|
|
78927
|
-
valueTypes: (0,
|
|
78986
|
+
valueTypes: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_13__.valueParserToAttributeType)(propertyDeserializer.valueSource.valueParser),
|
|
78928
78987
|
shortMarkdownDescription: (_propertyDeserializer = propertyDeserializer.propertyDescription) !== null && _propertyDeserializer !== void 0 ? _propertyDeserializer : "--",
|
|
78929
78988
|
markdownDescription: markdownDescription,
|
|
78930
78989
|
defaultValue: undefined,
|
|
78931
|
-
required: (0,
|
|
78990
|
+
required: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_13__.isRequiredValueParser)(propertyDeserializer.valueSource.valueParser),
|
|
78932
78991
|
deprecated: false
|
|
78933
78992
|
}];
|
|
78934
78993
|
}
|
|
78935
78994
|
return [];
|
|
78936
78995
|
}
|
|
78937
78996
|
function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
|
|
78938
|
-
if (propertyDeserializer instanceof
|
|
78997
|
+
if (propertyDeserializer instanceof _markupGenerator_Serializer_Properties_MixinPropertyDeserializer__WEBPACK_IMPORTED_MODULE_6__.MixinPropertyDeserializer) {
|
|
78939
78998
|
return propertyDeserializer.getPropertyDeserializers().map(x => buildAttributeDocs(x, documentationFilesContext)).flat();
|
|
78940
78999
|
}
|
|
78941
|
-
if (!(propertyDeserializer instanceof
|
|
79000
|
+
if (!(propertyDeserializer instanceof _markupGenerator_Serializer_Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer)) {
|
|
78942
79001
|
return [];
|
|
78943
79002
|
}
|
|
78944
|
-
if (propertyDeserializer.valueSource instanceof
|
|
79003
|
+
if (propertyDeserializer.valueSource instanceof _markupGenerator_Serializer_Properties_ValuesSources_AttributeValueSource__WEBPACK_IMPORTED_MODULE_8__.AttributeValueSource) {
|
|
78945
79004
|
var _propertyDeserializer2;
|
|
78946
79005
|
let markdownDescription = "";
|
|
78947
79006
|
if (documentationFilesContext != undefined) {
|
|
78948
|
-
markdownDescription = (0,
|
|
79007
|
+
markdownDescription = (0,_common_RequireContext_LoadDocumentationFileFormContext__WEBPACK_IMPORTED_MODULE_4__.loadDocumentationFileFormContext)(documentationFilesContext, `${propertyDeserializer.valueSource.attrName}.attr.md`);
|
|
78949
79008
|
}
|
|
78950
79009
|
return [{
|
|
78951
79010
|
name: propertyDeserializer.valueSource.attrName,
|
|
78952
|
-
valueTypes: (0,
|
|
79011
|
+
valueTypes: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_13__.valueParserToAttributeType)(propertyDeserializer.valueSource.valueParser),
|
|
78953
79012
|
shortMarkdownDescription: (_propertyDeserializer2 = propertyDeserializer.propertyDescription) !== null && _propertyDeserializer2 !== void 0 ? _propertyDeserializer2 : "--",
|
|
78954
79013
|
markdownDescription: markdownDescription,
|
|
78955
79014
|
defaultValue: undefined,
|
|
78956
|
-
required: (0,
|
|
79015
|
+
required: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_13__.isRequiredValueParser)(propertyDeserializer.valueSource.valueParser),
|
|
78957
79016
|
deprecated: false
|
|
78958
79017
|
}];
|
|
78959
79018
|
}
|
|
78960
|
-
if (propertyDeserializer.valueSource instanceof
|
|
79019
|
+
if (propertyDeserializer.valueSource instanceof _markupGenerator_Serializer_Properties_ValuesSources_SkipAttributeValueSource__WEBPACK_IMPORTED_MODULE_9__.SkipAttributeValueSource) {
|
|
78961
79020
|
return [{
|
|
78962
79021
|
name: propertyDeserializer.propertyName,
|
|
78963
79022
|
valueTypes: [],
|
|
@@ -80198,7 +80257,7 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
80198
80257
|
dataDeclaration
|
|
80199
80258
|
} = dataDeclarationGenerator.generate();
|
|
80200
80259
|
const dataDeclarationHelper = new _DataDeclarationGenerator_DataDeclarationGenerationTimeHelper__WEBPACK_IMPORTED_MODULE_26__.DataDeclarationGenerationTimeHelper(dataDeclaration);
|
|
80201
|
-
const validationGenerator = new _validationGenerator_ValidationGenerator__WEBPACK_IMPORTED_MODULE_16__.ValidationGenerator(sugarRoot, typeRegistry, controlCustomizationContext, formSchemaRng, (_sugarRoot$schemaVali2 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali2 !== void 0 ? _sugarRoot$schemaVali2 : false, additionalContent.validationsContent);
|
|
80260
|
+
const validationGenerator = new _validationGenerator_ValidationGenerator__WEBPACK_IMPORTED_MODULE_16__.ValidationGenerator(sugarRoot, typeRegistry, controlCustomizationContext, formSchemaRng, (_sugarRoot$schemaVali2 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali2 !== void 0 ? _sugarRoot$schemaVali2 : false, additionalContent.validationsContent, additionalContent.formJsonSettings);
|
|
80202
80261
|
const lazyLoadGenerator = new _LazyLoadDeclarationGenerator_LazyLoadDeclarationGenerator__WEBPACK_IMPORTED_MODULE_29__.LazyLoadDeclarationGenerator(sugarRoot, formSchemaRng);
|
|
80203
80262
|
const lazyLoadGeneratorResult = lazyLoadGenerator.generate();
|
|
80204
80263
|
const resourcesHash = (_generationOptions$re = generationOptions === null || generationOptions === void 0 ? void 0 : generationOptions.resourcesHash) !== null && _generationOptions$re !== void 0 ? _generationOptions$re : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)("Current generator version requires resources hash");
|
|
@@ -80885,7 +80944,7 @@ class FLangValidationBuildContext {
|
|
|
80885
80944
|
validations.push(baseTypeValidation);
|
|
80886
80945
|
}
|
|
80887
80946
|
}
|
|
80888
|
-
const typeValidations = this.createTypeValidations({
|
|
80947
|
+
const typeValidations = this.createTypeValidations(targetPath, {
|
|
80889
80948
|
valueReference: valueReference,
|
|
80890
80949
|
autoValueReference: autoValueReference
|
|
80891
80950
|
}, typeNode, schemaTypeNode, nodeGId);
|
|
@@ -80939,13 +80998,29 @@ class FLangValidationBuildContext {
|
|
|
80939
80998
|
} else {
|
|
80940
80999
|
expression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_14__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_14__.OrBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_14__.IsEqualsBinaryExpression(valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_14__.NullLiteralExpression()), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_14__.IsEqualsBinaryExpression(valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_14__.StringLiteralExpression(""))), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_14__.NullLiteralExpression(), expression);
|
|
80941
81000
|
}
|
|
80942
|
-
|
|
81001
|
+
return this.wrapExpressionVisibleConditionIfNeed(expression, targetPath, checkType);
|
|
81002
|
+
}
|
|
81003
|
+
wrapExpressionVisibleConditionIfNeed(expression, targetPath, checkType) {
|
|
81004
|
+
if (this.visibilityConditions.length) {
|
|
81005
|
+
const visibilityFlangCondition = this.visibilityConditions.map(x => {
|
|
81006
|
+
const target = new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_11__.AbsoluteModelFieldPath(targetPath, checkType);
|
|
81007
|
+
const prefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromTokens)(x.path.getPathPartsAsArray().filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isSimpleToken));
|
|
81008
|
+
const flangExpr = this.getFlangExpressionFromKCLangCondition(prefix, target, x.condition, x.invertRequired);
|
|
81009
|
+
return flangExpr;
|
|
81010
|
+
}).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.isNotNullOrUndefined).reduce((acc, current) => acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_14__.AndBinaryExpression(acc, current) : current, undefined);
|
|
81011
|
+
return visibilityFlangCondition != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_14__.ConditionalExpression(visibilityFlangCondition, expression, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_14__.NullLiteralExpression()) : expression;
|
|
81012
|
+
}
|
|
81013
|
+
return expression;
|
|
81014
|
+
}
|
|
81015
|
+
wrapVisibleSugarNodeConditionIfNeed(expression, targetPath, checkType, additionalConditional) {
|
|
81016
|
+
if (additionalConditional) {
|
|
81017
|
+
const contextPath = targetPath.getParentPath();
|
|
80943
81018
|
const target = new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_11__.AbsoluteModelFieldPath(targetPath, checkType);
|
|
80944
|
-
const prefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromTokens)(
|
|
80945
|
-
const
|
|
80946
|
-
return
|
|
80947
|
-
}
|
|
80948
|
-
return
|
|
81019
|
+
const prefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromTokens)(contextPath.getPathPartsAsArray().filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isSimpleToken));
|
|
81020
|
+
const visibilityFlangCondition = this.getFlangExpressionFromKCLangCondition(prefix, target, additionalConditional, false);
|
|
81021
|
+
return visibilityFlangCondition != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_14__.AndBinaryExpression(expression, visibilityFlangCondition) : expression;
|
|
81022
|
+
}
|
|
81023
|
+
return expression;
|
|
80949
81024
|
}
|
|
80950
81025
|
getFlangExpressionFromKCLangCondition(prefix, target, condition, invertRequired) {
|
|
80951
81026
|
const fullKcLangExpr = `
|
|
@@ -81008,7 +81083,7 @@ class FLangValidationBuildContext {
|
|
|
81008
81083
|
return undefined;
|
|
81009
81084
|
}
|
|
81010
81085
|
}
|
|
81011
|
-
*createTypeValidations(references, typeNode, schemaTypeNode, nodeGId) {
|
|
81086
|
+
*createTypeValidations(targetPath, references, typeNode, schemaTypeNode, nodeGId) {
|
|
81012
81087
|
var _typeNode$checkType, _typeNode$children$fi, _typeNode$children, _typeNode$children$fi2, _schemaTypeNode$enume, _digest$gId, _typeNode$children2, _typeNodeLength$value, _typeNode$children3, _typeNodeMinLength$va, _typeNode$children4, _typeNodeMaxLength$va, _typeNode$children5, _typeNodeMinInclusive, _typeNode$children6, _typeNodeMaxInclusive, _typeNode$children7, _typeNodeTotalDigits$, _typeNode$children$fi3, _typeNode$children8, _schemaTypeNode$patte, _typeNode$children9, _typeNodeInteger$valu, _typeNode$children10, _typeNodeFractional$v, _ref5, _typeNode$children$fi4, _typeNode$children11, _typeNode$children11$, _typeNode$children12, _typeNode$children12$;
|
|
81013
81088
|
const {
|
|
81014
81089
|
valueReference,
|
|
@@ -81159,8 +81234,10 @@ class FLangValidationBuildContext {
|
|
|
81159
81234
|
}
|
|
81160
81235
|
const valueEqlAutoValueErrorLevel = (_ref5 = (_typeNode$children$fi4 = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children11 = typeNode.children) === null || _typeNode$children11 === void 0 ? void 0 : (_typeNode$children11$ = _typeNode$children11.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_12__.ValueEqlAutoValueTypeCheck))) === null || _typeNode$children11$ === void 0 ? void 0 : _typeNode$children11$.level) !== null && _typeNode$children$fi4 !== void 0 ? _typeNode$children$fi4 : typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children12 = typeNode.children) === null || _typeNode$children12 === void 0 ? void 0 : (_typeNode$children12$ = _typeNode$children12.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ValueEqlAutoValueTypeCheckNode))) === null || _typeNode$children12$ === void 0 ? void 0 : _typeNode$children12$.level) !== null && _ref5 !== void 0 ? _ref5 : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.valueEqlAutoValue;
|
|
81161
81236
|
if (valueEqlAutoValueErrorLevel != undefined) {
|
|
81237
|
+
var _typeNode$children$fi5, _typeNode$children13, _typeNode$children13$, _typeNode$children14, _typeNode$children14$;
|
|
81162
81238
|
const isDecimal = (schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.baseType) === "decimal";
|
|
81163
|
-
const
|
|
81239
|
+
const validationCondition = (_typeNode$children$fi5 = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children13 = typeNode.children) === null || _typeNode$children13 === void 0 ? void 0 : (_typeNode$children13$ = _typeNode$children13.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_12__.ValueEqlAutoValueTypeCheck))) === null || _typeNode$children13$ === void 0 ? void 0 : _typeNode$children13$.condition) !== null && _typeNode$children$fi5 !== void 0 ? _typeNode$children$fi5 : typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children14 = typeNode.children) === null || _typeNode$children14 === void 0 ? void 0 : (_typeNode$children14$ = _typeNode$children14.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ValueEqlAutoValueTypeCheckNode))) === null || _typeNode$children14$ === void 0 ? void 0 : _typeNode$children14$.condition;
|
|
81240
|
+
const condition = this.wrapVisibleSugarNodeConditionIfNeed(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_14__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_14__.IsEqualsBinaryExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_13__.decimalWrapper)(valueReference, isDecimal), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_13__.decimalWrapper)(autoValueReference, isDecimal))), targetPath, valueEqlAutoValueErrorLevel, validationCondition);
|
|
81164
81241
|
yield {
|
|
81165
81242
|
condition: condition,
|
|
81166
81243
|
message: makeMessage({
|
|
@@ -83354,7 +83431,7 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
83354
83431
|
return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.wrapWithArgumentsCondition)(result);
|
|
83355
83432
|
}
|
|
83356
83433
|
preparePathAndAdjustMultiplicity(prefix, path) {
|
|
83357
|
-
const resultPath = this.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createModelPath)(path.replace(/\@/g, ""),
|
|
83434
|
+
const resultPath = this.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createModelPath)(path.replace(/\@/g, ""), "auto")).normalize());
|
|
83358
83435
|
return resultPath;
|
|
83359
83436
|
}
|
|
83360
83437
|
}
|
|
@@ -85843,7 +85920,7 @@ class DropDownButtonLoadExcelConverter extends _SugarNodeConverter__WEBPACK_IMPO
|
|
|
85843
85920
|
markupBuilder.prop(x => x.pathToTable).set(node.pathToTable);
|
|
85844
85921
|
markupBuilder.prop("data-tid").set(node.tid);
|
|
85845
85922
|
markupBuilder.prop(x => x.size).set(node.size);
|
|
85846
|
-
markupBuilder.prop(x => x.text).set((_node$text = node.text) !== null && _node$text !== void 0 ? _node$text : "
|
|
85923
|
+
markupBuilder.prop(x => x.text).set((_node$text = node.text) !== null && _node$text !== void 0 ? _node$text : "Импорт/Экспорт");
|
|
85847
85924
|
markupBuilder.prop(x => x.textInLoading).set((_node$textInLoading = node.textInLoading) !== null && _node$textInLoading !== void 0 ? _node$textInLoading : "Скачиваем");
|
|
85848
85925
|
markupBuilder.prop(x => x.tableType).set(node.tableType);
|
|
85849
85926
|
markupBuilder.prop(x => x.combinatorType).set((_node$combinatorType = node.combinatorType) !== null && _node$combinatorType !== void 0 ? _node$combinatorType : _Common_CandyApiClient_Types_DraftActions_CombineFufResult__WEBPACK_IMPORTED_MODULE_4__.CombinatorType.Default);
|
|
@@ -85882,7 +85959,7 @@ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class
|
|
|
85882
85959
|
|
|
85883
85960
|
|
|
85884
85961
|
|
|
85885
|
-
let DropDownButtonLoadExcelNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("dropdownbuttonloadexcel", `Кнопка для выгрузки и загрузки файла Excel.`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Action/DropDownButtonLoadExcel sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("pathToTable", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, "Путь до multiline, абсолютный."), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("size", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("small", "medium", "large"), "Размер кнопки. По умолчанинию small"), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("text", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Текст в кнопке до загрузки файла. По умолчанию '
|
|
85962
|
+
let DropDownButtonLoadExcelNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("dropdownbuttonloadexcel", `Кнопка для выгрузки и загрузки файла Excel.`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Action/DropDownButtonLoadExcel sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("pathToTable", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, "Путь до multiline, абсолютный."), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("size", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("small", "medium", "large"), "Размер кнопки. По умолчанинию small"), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("text", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Текст в кнопке до загрузки файла. По умолчанию 'Импорт/Экспорт'."), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("textInLoading", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Текст в кнопке при загрузке файла в Excel. По умолчанию 'Скачиваем'"), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tableType", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum(_Engine_src_Engine_Core_ModalManager_Modals_Utils_Types__WEBPACK_IMPORTED_MODULE_5__.TableType.static, _Engine_src_Engine_Core_ModalManager_Modals_Utils_Types__WEBPACK_IMPORTED_MODULE_5__.TableType.dynamic).required, `Статичная или динамическая таблица.
|
|
85886
85963
|
Статическая - таблица без изменений количества строк и столбцов.
|
|
85887
85964
|
Динамическая - таблица с изменением количесва строк и/или столбцов. Например, мультилайн.
|
|
85888
85965
|
Если в таблице есть и статические и данамические строки, то в этот атрибут писать static.
|
|
@@ -97558,7 +97635,7 @@ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11
|
|
|
97558
97635
|
|
|
97559
97636
|
|
|
97560
97637
|
|
|
97561
|
-
let MultilineFieldNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("multilinefield", `Создание простой множественности`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/Multilinefield sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.bindingPath, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.bindingPathLink)} данного элемента. Опционально, если не указан, то будет оторажаться текст заданный внутри данного элемента`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("maxOccurs", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, `Масмальное возможное количество элементов в заданном множественном элементе.`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("hintOnAdd", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Текст сообщения в хинте на иконке добавления элемента`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("filteredUniqKey", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Уникальный ключ фильтрации multiline, используется, для фильтраций одних и тех же путей иннера
|
|
97638
|
+
let MultilineFieldNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("multilinefield", `Создание простой множественности`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/Multilinefield sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.bindingPath, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.bindingPathLink)} данного элемента. Опционально, если не указан, то будет оторажаться текст заданный внутри данного элемента`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("maxOccurs", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, `Масмальное возможное количество элементов в заданном множественном элементе.`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("hintOnAdd", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Текст сообщения в хинте на иконке добавления элемента`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("filteredUniqKey", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Уникальный ключ фильтрации multiline, используется, для фильтраций одних и тех же путей иннера
|
|
97562
97639
|
разными фильтрами. Задается произвольной строкой. Фильтры с одинаковым ключем фильтрации получают одинаковый результат фильтрации`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("titles", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.stringArray, `Текст со склонением для отображения количества элементов. Пример \`titles={["%s яблоко", "%s яблока", "%s яблок"]}\``), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("viewLength", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, `Количество строк после которого появляется возмножность их скрыть`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("backgroundColor", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Цвет фона.`), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disableButtons", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Убрать стандартные кнопки добавления и удаления строк`), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(), _dec(_class = (_class2 = class MultilineFieldNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
|
|
97563
97640
|
constructor(...args) {
|
|
97564
97641
|
super(...args);
|
|
@@ -111104,7 +111181,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
111104
111181
|
|
|
111105
111182
|
|
|
111106
111183
|
|
|
111107
|
-
var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _dec4, _dec5, _dec6, _class3, _class4, _descriptor4, _descriptor5, _dec7, _dec8, _dec9, _class6, _class7, _descriptor6, _descriptor7, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _class9, _class10, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _dec17, _dec18, _class12, _class13, _descriptor14, _dec19, _dec20, _class15, _class16, _descriptor15, _dec21, _dec22, _class18, _class19, _descriptor16, _dec23, _dec24, _class21, _class22, _descriptor17, _dec25, _dec26, _class24, _class25, _descriptor18, _dec27, _dec28, _class27, _class28, _descriptor19,
|
|
111184
|
+
var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _dec4, _dec5, _dec6, _class3, _class4, _descriptor4, _descriptor5, _dec7, _dec8, _dec9, _class6, _class7, _descriptor6, _descriptor7, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _class9, _class10, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _dec17, _dec18, _class12, _class13, _descriptor14, _dec19, _dec20, _class15, _class16, _descriptor15, _dec21, _dec22, _class18, _class19, _descriptor16, _dec23, _dec24, _class21, _class22, _descriptor17, _dec25, _dec26, _class24, _class25, _descriptor18, _dec27, _dec28, _dec29, _class27, _class28, _descriptor19, _descriptor20, _dec30, _dec31, _class30, _class31, _descriptor21, _dec32, _dec33, _class33, _class34, _descriptor22, _dec34, _dec35, _dec36, _class36, _class37, _descriptor23, _descriptor24, _dec37, _dec38, _class39, _class40, _descriptor25, _dec39, _dec40, _class42, _class43, _descriptor26, _dec41, _dec42, _class45, _class46, _descriptor27, _dec43, _dec44, _class48, _class49, _descriptor28, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _dec53, _class51, _class52, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36;
|
|
111108
111185
|
|
|
111109
111186
|
|
|
111110
111187
|
let TypeCheckNodeBase = (_dec = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("description", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Сообщение, которое оторазиться на контроле, если данное правило не выполняется. Если атрибут не указан будет использовано сообщение элемента type/`), _dec2 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("checkType", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("error", "warning"), `Тип валидации для данного правила. При ошибке контрол будет отображаться либо оранжевым (warning), либо красным (error).`), _dec3 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("force", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Форсирует запуск правила. Например, если поле является обязательным, то при force='true' правило запустить даже если поле не заполнено.
|
|
@@ -111269,119 +111346,125 @@ let IntegerdigitsTypeCheckNode = (_dec25 = (0,_markupGenerator_Serializer_SugarS
|
|
|
111269
111346
|
writable: true,
|
|
111270
111347
|
initializer: null
|
|
111271
111348
|
})), _class25)) || _class24);
|
|
111272
|
-
let ValueEqlAutoValueTypeCheckNode = (_dec27 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("valueeqlautovalue", `Задаёт валидацию, если value != autovalue`), _dec28 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("level", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("error", "warning"), `Уровень валидации`), _dec27(_class27 = (_class28 = class ValueEqlAutoValueTypeCheckNode extends TypeCheckNodeBase {
|
|
111349
|
+
let ValueEqlAutoValueTypeCheckNode = (_dec27 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("valueeqlautovalue", `Задаёт валидацию, если value != autovalue`), _dec28 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("level", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("error", "warning"), `Уровень валидации`), _dec29 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("condition", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.javascriptExpression, "Условие, при котором валидация отображается"), _dec27(_class27 = (_class28 = class ValueEqlAutoValueTypeCheckNode extends TypeCheckNodeBase {
|
|
111273
111350
|
constructor(...args) {
|
|
111274
111351
|
super(...args);
|
|
111275
111352
|
this.name = "valueeqlautovalue";
|
|
111276
111353
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "level", _descriptor19, this);
|
|
111354
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "condition", _descriptor20, this);
|
|
111277
111355
|
}
|
|
111278
111356
|
}, (_descriptor19 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class28.prototype, "level", [_dec28], {
|
|
111279
111357
|
configurable: true,
|
|
111280
111358
|
enumerable: true,
|
|
111281
111359
|
writable: true,
|
|
111282
111360
|
initializer: null
|
|
111361
|
+
}), _descriptor20 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class28.prototype, "condition", [_dec29], {
|
|
111362
|
+
configurable: true,
|
|
111363
|
+
enumerable: true,
|
|
111364
|
+
writable: true,
|
|
111365
|
+
initializer: null
|
|
111283
111366
|
})), _class28)) || _class27);
|
|
111284
|
-
let FractiondigitsTypeCheckNode = (
|
|
111367
|
+
let FractiondigitsTypeCheckNode = (_dec30 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("fractiondigits", `Правило для чисел. Задаёт валидацию на максимальное количество цифр в дробной части числа`), _dec31 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("value", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number.required, `Колчиство цифр`), _dec30(_class30 = (_class31 = class FractiondigitsTypeCheckNode extends TypeCheckNodeBase {
|
|
111285
111368
|
constructor(...args) {
|
|
111286
111369
|
super(...args);
|
|
111287
111370
|
this.name = "fractiondigits";
|
|
111288
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "value",
|
|
111371
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "value", _descriptor21, this);
|
|
111289
111372
|
}
|
|
111290
|
-
}, (
|
|
111373
|
+
}, (_descriptor21 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class31.prototype, "value", [_dec31], {
|
|
111291
111374
|
configurable: true,
|
|
111292
111375
|
enumerable: true,
|
|
111293
111376
|
writable: true,
|
|
111294
111377
|
initializer: null
|
|
111295
111378
|
})), _class31)) || _class30);
|
|
111296
|
-
let DigestcheckTypeCheckNode = (
|
|
111379
|
+
let DigestcheckTypeCheckNode = (_dec32 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("digestcheck", `Задаёт проверку по справочнику.`), _dec33 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("gId", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Идентификатор справочника. Поле можно опустить, если контрол является справочным и содержит атрибут gId`), _dec32(_class33 = (_class34 = class DigestcheckTypeCheckNode extends TypeCheckNodeBase {
|
|
111297
111380
|
constructor(...args) {
|
|
111298
111381
|
super(...args);
|
|
111299
111382
|
this.name = "digestcheck";
|
|
111300
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId",
|
|
111383
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId", _descriptor22, this);
|
|
111301
111384
|
}
|
|
111302
|
-
}, (
|
|
111385
|
+
}, (_descriptor22 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class34.prototype, "gId", [_dec33], {
|
|
111303
111386
|
configurable: true,
|
|
111304
111387
|
enumerable: true,
|
|
111305
111388
|
writable: true,
|
|
111306
111389
|
initializer: null
|
|
111307
111390
|
})), _class34)) || _class33);
|
|
111308
|
-
let DigestConditionTypeCheckNode = (
|
|
111391
|
+
let DigestConditionTypeCheckNode = (_dec34 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("digestcondition", `Задаёт проверку по справочнику.`), _dec35 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("gId", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Идентификатор справочника. Поле можно опустить, если контрол является справочным и содержит атрибут gId`), _dec36 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("condition", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.javascriptExpression.required, `Выражение, которому должен удовлетворять элемент справочника. Аналогично фильтра в combobox`), _dec34(_class36 = (_class37 = class DigestConditionTypeCheckNode extends TypeCheckNodeBase {
|
|
111309
111392
|
constructor(...args) {
|
|
111310
111393
|
super(...args);
|
|
111311
111394
|
this.name = "digestcondition";
|
|
111312
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId",
|
|
111313
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "condition",
|
|
111395
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId", _descriptor23, this);
|
|
111396
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "condition", _descriptor24, this);
|
|
111314
111397
|
}
|
|
111315
|
-
}, (
|
|
111398
|
+
}, (_descriptor23 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class37.prototype, "gId", [_dec35], {
|
|
111316
111399
|
configurable: true,
|
|
111317
111400
|
enumerable: true,
|
|
111318
111401
|
writable: true,
|
|
111319
111402
|
initializer: null
|
|
111320
|
-
}),
|
|
111403
|
+
}), _descriptor24 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class37.prototype, "condition", [_dec36], {
|
|
111321
111404
|
configurable: true,
|
|
111322
111405
|
enumerable: true,
|
|
111323
111406
|
writable: true,
|
|
111324
111407
|
initializer: null
|
|
111325
111408
|
})), _class37)) || _class36);
|
|
111326
|
-
let MininclusiveTypeCheckNode = (
|
|
111409
|
+
let MininclusiveTypeCheckNode = (_dec37 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("mininclusive", `Проверка для чисел. Определяет минимально возможное (включиельно) значение числа.`), _dec38 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("value", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number.required, `Минимальное значение числа`), _dec37(_class39 = (_class40 = class MininclusiveTypeCheckNode extends TypeCheckNodeBase {
|
|
111327
111410
|
constructor(...args) {
|
|
111328
111411
|
super(...args);
|
|
111329
111412
|
this.name = "mininclusive";
|
|
111330
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "value",
|
|
111413
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "value", _descriptor25, this);
|
|
111331
111414
|
}
|
|
111332
|
-
}, (
|
|
111415
|
+
}, (_descriptor25 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class40.prototype, "value", [_dec38], {
|
|
111333
111416
|
configurable: true,
|
|
111334
111417
|
enumerable: true,
|
|
111335
111418
|
writable: true,
|
|
111336
111419
|
initializer: null
|
|
111337
111420
|
})), _class40)) || _class39);
|
|
111338
|
-
let MaxinclusiveTypeCheckNode = (
|
|
111421
|
+
let MaxinclusiveTypeCheckNode = (_dec39 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("maxinclusive", `Проверка для чисел. Определяет максимально возможное (включиельно) значение числа.`), _dec40 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("value", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number.required, `Максимальное значение числа`), _dec39(_class42 = (_class43 = class MaxinclusiveTypeCheckNode extends TypeCheckNodeBase {
|
|
111339
111422
|
constructor(...args) {
|
|
111340
111423
|
super(...args);
|
|
111341
111424
|
this.name = "maxinclusive";
|
|
111342
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "value",
|
|
111425
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "value", _descriptor26, this);
|
|
111343
111426
|
}
|
|
111344
|
-
}, (
|
|
111427
|
+
}, (_descriptor26 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class43.prototype, "value", [_dec40], {
|
|
111345
111428
|
configurable: true,
|
|
111346
111429
|
enumerable: true,
|
|
111347
111430
|
writable: true,
|
|
111348
111431
|
initializer: null
|
|
111349
111432
|
})), _class43)) || _class42);
|
|
111350
|
-
let CustomValidationTypeCheckNode = (
|
|
111433
|
+
let CustomValidationTypeCheckNode = (_dec41 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("customvalidation", `Даёт возможность задать произвольное правило, написав его на JavaScript.`), _dec42 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("value", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string.required, `Содержит имя файла с функцией валидации. Файл должен находиться в каталоге validations формы.`), _dec41(_class45 = (_class46 = class CustomValidationTypeCheckNode extends TypeCheckNodeBase {
|
|
111351
111434
|
constructor(...args) {
|
|
111352
111435
|
super(...args);
|
|
111353
111436
|
this.name = "customvalidation";
|
|
111354
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "value",
|
|
111437
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "value", _descriptor27, this);
|
|
111355
111438
|
}
|
|
111356
|
-
}, (
|
|
111439
|
+
}, (_descriptor27 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class46.prototype, "value", [_dec42], {
|
|
111357
111440
|
configurable: true,
|
|
111358
111441
|
enumerable: true,
|
|
111359
111442
|
writable: true,
|
|
111360
111443
|
initializer: null
|
|
111361
111444
|
})), _class46)) || _class45);
|
|
111362
|
-
let ForcedTypeChecksNode = (
|
|
111445
|
+
let ForcedTypeChecksNode = (_dec43 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("force", ``), _dec44 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(undefined, [CustomValidationTypeCheckNode, PatternTypeCheckNode, EnumerationTypeCheckNode, AttachmentsTypeCheckNode, LengthTypeCheckNode, MinlengthTypeCheckNode, MaxlengthTypeCheckNode, TotaldigitsTypeCheckNode, IntegerdigitsTypeCheckNode, FractiondigitsTypeCheckNode, DigestcheckTypeCheckNode, MininclusiveTypeCheckNode, MaxinclusiveTypeCheckNode]), _dec43(_class48 = (_class49 = class ForcedTypeChecksNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
111363
111446
|
constructor(...args) {
|
|
111364
111447
|
super(...args);
|
|
111365
111448
|
this.name = "force";
|
|
111366
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children",
|
|
111449
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor28, this);
|
|
111367
111450
|
}
|
|
111368
|
-
}, (
|
|
111451
|
+
}, (_descriptor28 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class49.prototype, "children", [_dec44], {
|
|
111369
111452
|
configurable: true,
|
|
111370
111453
|
enumerable: true,
|
|
111371
111454
|
writable: true,
|
|
111372
111455
|
initializer: null
|
|
111373
111456
|
})), _class49)) || _class48);
|
|
111374
|
-
let TypeNode = (
|
|
111457
|
+
let TypeNode = (_dec45 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("type", `Описание валидации для поля`, __webpack_require__("./Generator/src/generators/validationGenerator/Nodes sync recursive .md$")), _dec46 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("base", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("string", "pattern", "integer", "decimal", "date", "gYear", "gMonth"), `Базовый тип, для нового типа. Автоматически задаёт валидацию (число, дата, год) и исключает ввод неверных символов`), _dec47 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("name", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Имя типа. Не требуется для анонимных типов. Имя типа в дальнейшем указывается в атрибуте type контрола.`), _dec48 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("requireDescription", _markupGenerator_Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_3__.DeprecationReason.Typo), _dec49 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("requiredDescription", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Если значение в контроле является обязательным, то это сообщение будет отображается, если значение отсутствует. См. атрибут optional (Подсказка-всплывашка, когда поле пустое. Если не указать - будет стандартная подсказка. Появляется только для обязательного поля. Если не указан, то выводится значение из атр. description)`), _dec50 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("description", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Сообщение, которое будет отображатся если значение не отвечает заданным в типе валидациям и соотв. валидация не имеет атрибута description (Подсказка-всплывашка, когда поле заполнено неверно. Если не указать - то подсказка построится автоматически на основании base, length, enumeration (пока что на основании pattern автоматической подсказки нет. Более того, есть баг, что если description для типа с pattern-ом не указан, валидация по паттерну не работает))`), _dec51 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("isCaseIndependentValid", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Проверять ли значение регистронезависимо. Если написан этот атрибут, то в ноду надо написать isEnableCaseIndependentValidation=true.`), _dec52 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("checkType", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("error", "warning"), `Тип валидации. При ошибке контрол будет отображаться либо оранжевым (warning), либо красным (error).`), _dec53 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(undefined, [CustomValidationTypeCheckNode, PatternTypeCheckNode, EnumerationTypeCheckNode, AttachmentsTypeCheckNode, LengthTypeCheckNode, MinlengthTypeCheckNode, MaxlengthTypeCheckNode, TotaldigitsTypeCheckNode, IntegerdigitsTypeCheckNode, FractiondigitsTypeCheckNode, DigestcheckTypeCheckNode, DigestConditionTypeCheckNode, MininclusiveTypeCheckNode, MaxinclusiveTypeCheckNode, ForcedTypeChecksNode, ValueEqlAutoValueTypeCheckNode]), _dec45(_class51 = (_class52 = class TypeNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
111375
111458
|
constructor(...args) {
|
|
111376
111459
|
super(...args);
|
|
111377
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "base",
|
|
111378
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name",
|
|
111379
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "requireDescription",
|
|
111380
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "requiredDescription",
|
|
111381
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
111382
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "isCaseIndependentValid",
|
|
111383
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "checkType",
|
|
111384
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children",
|
|
111460
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "base", _descriptor29, this);
|
|
111461
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor30, this);
|
|
111462
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "requireDescription", _descriptor31, this);
|
|
111463
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "requiredDescription", _descriptor32, this);
|
|
111464
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor33, this);
|
|
111465
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "isCaseIndependentValid", _descriptor34, this);
|
|
111466
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "checkType", _descriptor35, this);
|
|
111467
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor36, this);
|
|
111385
111468
|
}
|
|
111386
111469
|
getValidations(typeCheckClass) {
|
|
111387
111470
|
let childrenValidations = this.children.filter(ofType(typeCheckClass));
|
|
@@ -111420,42 +111503,42 @@ let TypeNode = (_dec44 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK
|
|
|
111420
111503
|
}
|
|
111421
111504
|
return false;
|
|
111422
111505
|
}
|
|
111423
|
-
}, (
|
|
111506
|
+
}, (_descriptor29 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class52.prototype, "base", [_dec46], {
|
|
111424
111507
|
configurable: true,
|
|
111425
111508
|
enumerable: true,
|
|
111426
111509
|
writable: true,
|
|
111427
111510
|
initializer: null
|
|
111428
|
-
}),
|
|
111511
|
+
}), _descriptor30 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class52.prototype, "name", [_dec47], {
|
|
111429
111512
|
configurable: true,
|
|
111430
111513
|
enumerable: true,
|
|
111431
111514
|
writable: true,
|
|
111432
111515
|
initializer: null
|
|
111433
|
-
}),
|
|
111516
|
+
}), _descriptor31 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class52.prototype, "requireDescription", [_dec48], {
|
|
111434
111517
|
configurable: true,
|
|
111435
111518
|
enumerable: true,
|
|
111436
111519
|
writable: true,
|
|
111437
111520
|
initializer: null
|
|
111438
|
-
}),
|
|
111521
|
+
}), _descriptor32 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class52.prototype, "requiredDescription", [_dec49], {
|
|
111439
111522
|
configurable: true,
|
|
111440
111523
|
enumerable: true,
|
|
111441
111524
|
writable: true,
|
|
111442
111525
|
initializer: null
|
|
111443
|
-
}),
|
|
111526
|
+
}), _descriptor33 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class52.prototype, "description", [_dec50], {
|
|
111444
111527
|
configurable: true,
|
|
111445
111528
|
enumerable: true,
|
|
111446
111529
|
writable: true,
|
|
111447
111530
|
initializer: null
|
|
111448
|
-
}),
|
|
111531
|
+
}), _descriptor34 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class52.prototype, "isCaseIndependentValid", [_dec51], {
|
|
111449
111532
|
configurable: true,
|
|
111450
111533
|
enumerable: true,
|
|
111451
111534
|
writable: true,
|
|
111452
111535
|
initializer: null
|
|
111453
|
-
}),
|
|
111536
|
+
}), _descriptor35 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class52.prototype, "checkType", [_dec52], {
|
|
111454
111537
|
configurable: true,
|
|
111455
111538
|
enumerable: true,
|
|
111456
111539
|
writable: true,
|
|
111457
111540
|
initializer: null
|
|
111458
|
-
}),
|
|
111541
|
+
}), _descriptor36 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class52.prototype, "children", [_dec53], {
|
|
111459
111542
|
configurable: true,
|
|
111460
111543
|
enumerable: true,
|
|
111461
111544
|
writable: true,
|
|
@@ -111946,23 +112029,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
111946
112029
|
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_0__);
|
|
111947
112030
|
/* harmony import */ var _common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/CodeGeneration/ClassInstanceBuilder */ "./Generator/src/common/CodeGeneration/ClassInstanceBuilder.ts");
|
|
111948
112031
|
/* harmony import */ var _Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
111949
|
-
/* harmony import */ var
|
|
112032
|
+
/* harmony import */ var _common_ConditionUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/ConditionUtils */ "./Generator/src/common/ConditionUtils.ts");
|
|
112033
|
+
/* harmony import */ var _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../Common/KCLangRuntimeUtils */ "./Common/KCLangRuntimeUtils.ts");
|
|
112034
|
+
/* harmony import */ var _markupGenerator_ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../markupGenerator/ComponentMarkupBuilder/PathHelper */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/PathHelper.ts");
|
|
112035
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
112036
|
+
/* harmony import */ var _TypeBasedValidatorGenerator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TypeBasedValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/TypeBasedValidatorGenerator.ts");
|
|
112037
|
+
|
|
111950
112038
|
|
|
111951
112039
|
|
|
111952
112040
|
|
|
111953
112041
|
|
|
111954
|
-
|
|
112042
|
+
|
|
112043
|
+
|
|
112044
|
+
|
|
112045
|
+
class ValueEqlAutoValueValidatorGenerator extends _TypeBasedValidatorGenerator__WEBPACK_IMPORTED_MODULE_7__.TypeBasedValidatorGeneratorBase {
|
|
112046
|
+
constructor(settings) {
|
|
112047
|
+
super();
|
|
112048
|
+
this.settings = void 0;
|
|
112049
|
+
this.settings = settings;
|
|
112050
|
+
}
|
|
111955
112051
|
static acceptNode(node) {
|
|
111956
112052
|
return node instanceof _Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ValueEqlAutoValueTypeCheckNode;
|
|
111957
112053
|
}
|
|
111958
|
-
static createFromNode(node) {
|
|
111959
|
-
return new ValueEqlAutoValueValidatorGenerator();
|
|
112054
|
+
static createFromNode(node, settings) {
|
|
112055
|
+
return new ValueEqlAutoValueValidatorGenerator(settings);
|
|
111960
112056
|
}
|
|
111961
112057
|
acceptNodeForGroup(node) {
|
|
111962
112058
|
return ValueEqlAutoValueValidatorGenerator.acceptNode(node);
|
|
111963
112059
|
}
|
|
111964
112060
|
generatorValidator(typeNode) {
|
|
111965
|
-
var _ref, _ref2, _autoValidation$check;
|
|
112061
|
+
var _ref, _ref2, _autoValidation$check, _this$settings;
|
|
111966
112062
|
const allowedValueNodes = typeNode.getValidations(_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ValueEqlAutoValueTypeCheckNode);
|
|
111967
112063
|
const autoValidation = allowedValueNodes[0];
|
|
111968
112064
|
if ((0,util__WEBPACK_IMPORTED_MODULE_0__.isNullOrUndefined)(autoValidation)) {
|
|
@@ -111970,6 +112066,14 @@ class ValueEqlAutoValueValidatorGenerator extends _TypeBasedValidatorGenerator__
|
|
|
111970
112066
|
}
|
|
111971
112067
|
const builder = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_1__.instanceBuilder)("Validators.AutoValueEqualValueValidator");
|
|
111972
112068
|
builder.set(0, (_ref = (_ref2 = (_autoValidation$check = autoValidation.checkType) !== null && _autoValidation$check !== void 0 ? _autoValidation$check : typeNode.checkType) !== null && _ref2 !== void 0 ? _ref2 : autoValidation.level) !== null && _ref !== void 0 ? _ref : "error");
|
|
112069
|
+
const formsSetting = (_this$settings = this.settings) !== null && _this$settings !== void 0 ? _this$settings : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.reject)("formJsonSettings is not defined");
|
|
112070
|
+
const conditionWithDependencies = autoValidation !== null && autoValidation !== void 0 && autoValidation.condition ? (0,_common_ConditionUtils__WEBPACK_IMPORTED_MODULE_3__.convertConditionToJsOrFailWithFriendlySugarError)(autoValidation.condition, "path", _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_4__.KCLangRuntimeUtils.kcLangUtilsName, typeNode, (0,_markupGenerator_ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_5__.extractPath)(x => x.condition)) : undefined;
|
|
112071
|
+
if (conditionWithDependencies !== null && conditionWithDependencies !== void 0 && conditionWithDependencies.condition) {
|
|
112072
|
+
if ((formsSetting === null || formsSetting === void 0 ? void 0 : formsSetting.useServerSideCalculations) === true) {
|
|
112073
|
+
return builder;
|
|
112074
|
+
}
|
|
112075
|
+
throw new Error(`Невозможно использовать аттрибут condition="${autoValidation.condition}" у valueeqlautovalue на фронтовом калькуляторе. Задача на доработку FS-8502`);
|
|
112076
|
+
}
|
|
111973
112077
|
return builder;
|
|
111974
112078
|
}
|
|
111975
112079
|
}
|
|
@@ -112097,7 +112201,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
112097
112201
|
|
|
112098
112202
|
|
|
112099
112203
|
class ValidationGenerator {
|
|
112100
|
-
constructor(sugarRoot, typesRegistry, controlCustomizationContext, schemaRng, useSchemaValidations, validationsContent = []) {
|
|
112204
|
+
constructor(sugarRoot, typesRegistry, controlCustomizationContext, schemaRng, useSchemaValidations, validationsContent = [], settings = undefined) {
|
|
112101
112205
|
this.typeBasedValidatorGenerators = [_TypeBasedValidatorGenerators_MatchOneOfPatternValidatorGenerator__WEBPACK_IMPORTED_MODULE_15__.MatchOneOfPatternValidatorGenerator, _TypeBasedValidatorGenerators_EnumerationValidatorGenerator__WEBPACK_IMPORTED_MODULE_13__.EnumerationValidatorGenerator, _TypeBasedValidatorGenerators_StringLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_16__.StringLengthConstraintValueValidatorGenerator, _TypeBasedValidatorGenerators_NumberLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_11__.NumberLengthConstraintValueValidatorGenerator, _TypeBasedValidatorGenerators_IntegerRangeValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_14__.IntegerRangeValueValidatorGenerator, _TypeBasedValidatorGenerators_DigestCheckValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_12__.DigestCheckValueValidatorGenerator, _TypeBasedValidatorGenerators_DigestConditionValidatorGenerator__WEBPACK_IMPORTED_MODULE_17__.DigestConditionValidatorGenerator, _TypeBasedValidatorGenerators_AttachmentsValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_9__.AttachmentsValueValidatorGenerator, _TypeBasedValidatorGenerators_CustomValidationValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_10__.CustomValidationValueValidatorGenerator, _TypeBasedValidatorGenerators_ValueEqlAutoValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_18__.ValueEqlAutoValueValidatorGenerator];
|
|
112102
112206
|
this.sugarRoot = void 0;
|
|
112103
112207
|
this.validationsContent = void 0;
|
|
@@ -112109,6 +112213,7 @@ class ValidationGenerator {
|
|
|
112109
112213
|
this.useSchemaValidations = void 0;
|
|
112110
112214
|
this.criterionOfExistenceFromSchemaRng = [];
|
|
112111
112215
|
this.depsRngSchemaValidationCounter = 0;
|
|
112216
|
+
this.settings = void 0;
|
|
112112
112217
|
this.visibilityConditionsStack = [];
|
|
112113
112218
|
this.sugarRoot = sugarRoot;
|
|
112114
112219
|
this.typesRegistry = typesRegistry;
|
|
@@ -112117,6 +112222,7 @@ class ValidationGenerator {
|
|
|
112117
112222
|
this.useSchemaValidations = useSchemaValidations;
|
|
112118
112223
|
this.customValidations = {};
|
|
112119
112224
|
this.schemaRng = schemaRng;
|
|
112225
|
+
this.settings = settings;
|
|
112120
112226
|
for (const customValidation of this.validationsContent) {
|
|
112121
112227
|
const {
|
|
112122
112228
|
filename,
|
|
@@ -112366,7 +112472,7 @@ class ValidationGenerator {
|
|
|
112366
112472
|
if (generatorClass == undefined) {
|
|
112367
112473
|
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_3__.SugarAttributeReadError("Cannot find validation generator for node", node, "");
|
|
112368
112474
|
}
|
|
112369
|
-
return generatorClass.createFromNode(node);
|
|
112475
|
+
return generatorClass.createFromNode(node, this.settings);
|
|
112370
112476
|
}
|
|
112371
112477
|
buildRequiredValidator(description) {
|
|
112372
112478
|
const requiredValidator = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_2__.instanceBuilder)("Validators.RequiredValueValidator");
|
|
@@ -136355,6 +136461,395 @@ module.exports = {
|
|
|
136355
136461
|
}
|
|
136356
136462
|
|
|
136357
136463
|
|
|
136464
|
+
/***/ }),
|
|
136465
|
+
|
|
136466
|
+
/***/ "./node_modules/fs.realpath/index.js":
|
|
136467
|
+
/*!*******************************************!*\
|
|
136468
|
+
!*** ./node_modules/fs.realpath/index.js ***!
|
|
136469
|
+
\*******************************************/
|
|
136470
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
136471
|
+
|
|
136472
|
+
module.exports = realpath
|
|
136473
|
+
realpath.realpath = realpath
|
|
136474
|
+
realpath.sync = realpathSync
|
|
136475
|
+
realpath.realpathSync = realpathSync
|
|
136476
|
+
realpath.monkeypatch = monkeypatch
|
|
136477
|
+
realpath.unmonkeypatch = unmonkeypatch
|
|
136478
|
+
|
|
136479
|
+
var fs = __webpack_require__(/*! fs */ "fs")
|
|
136480
|
+
var origRealpath = fs.realpath
|
|
136481
|
+
var origRealpathSync = fs.realpathSync
|
|
136482
|
+
|
|
136483
|
+
var version = process.version
|
|
136484
|
+
var ok = /^v[0-5]\./.test(version)
|
|
136485
|
+
var old = __webpack_require__(/*! ./old.js */ "./node_modules/fs.realpath/old.js")
|
|
136486
|
+
|
|
136487
|
+
function newError (er) {
|
|
136488
|
+
return er && er.syscall === 'realpath' && (
|
|
136489
|
+
er.code === 'ELOOP' ||
|
|
136490
|
+
er.code === 'ENOMEM' ||
|
|
136491
|
+
er.code === 'ENAMETOOLONG'
|
|
136492
|
+
)
|
|
136493
|
+
}
|
|
136494
|
+
|
|
136495
|
+
function realpath (p, cache, cb) {
|
|
136496
|
+
if (ok) {
|
|
136497
|
+
return origRealpath(p, cache, cb)
|
|
136498
|
+
}
|
|
136499
|
+
|
|
136500
|
+
if (typeof cache === 'function') {
|
|
136501
|
+
cb = cache
|
|
136502
|
+
cache = null
|
|
136503
|
+
}
|
|
136504
|
+
origRealpath(p, cache, function (er, result) {
|
|
136505
|
+
if (newError(er)) {
|
|
136506
|
+
old.realpath(p, cache, cb)
|
|
136507
|
+
} else {
|
|
136508
|
+
cb(er, result)
|
|
136509
|
+
}
|
|
136510
|
+
})
|
|
136511
|
+
}
|
|
136512
|
+
|
|
136513
|
+
function realpathSync (p, cache) {
|
|
136514
|
+
if (ok) {
|
|
136515
|
+
return origRealpathSync(p, cache)
|
|
136516
|
+
}
|
|
136517
|
+
|
|
136518
|
+
try {
|
|
136519
|
+
return origRealpathSync(p, cache)
|
|
136520
|
+
} catch (er) {
|
|
136521
|
+
if (newError(er)) {
|
|
136522
|
+
return old.realpathSync(p, cache)
|
|
136523
|
+
} else {
|
|
136524
|
+
throw er
|
|
136525
|
+
}
|
|
136526
|
+
}
|
|
136527
|
+
}
|
|
136528
|
+
|
|
136529
|
+
function monkeypatch () {
|
|
136530
|
+
fs.realpath = realpath
|
|
136531
|
+
fs.realpathSync = realpathSync
|
|
136532
|
+
}
|
|
136533
|
+
|
|
136534
|
+
function unmonkeypatch () {
|
|
136535
|
+
fs.realpath = origRealpath
|
|
136536
|
+
fs.realpathSync = origRealpathSync
|
|
136537
|
+
}
|
|
136538
|
+
|
|
136539
|
+
|
|
136540
|
+
/***/ }),
|
|
136541
|
+
|
|
136542
|
+
/***/ "./node_modules/fs.realpath/old.js":
|
|
136543
|
+
/*!*****************************************!*\
|
|
136544
|
+
!*** ./node_modules/fs.realpath/old.js ***!
|
|
136545
|
+
\*****************************************/
|
|
136546
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
136547
|
+
|
|
136548
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
136549
|
+
//
|
|
136550
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
136551
|
+
// copy of this software and associated documentation files (the
|
|
136552
|
+
// "Software"), to deal in the Software without restriction, including
|
|
136553
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
136554
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
136555
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
136556
|
+
// following conditions:
|
|
136557
|
+
//
|
|
136558
|
+
// The above copyright notice and this permission notice shall be included
|
|
136559
|
+
// in all copies or substantial portions of the Software.
|
|
136560
|
+
//
|
|
136561
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
136562
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
136563
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
136564
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
136565
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
136566
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
136567
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
136568
|
+
|
|
136569
|
+
var pathModule = __webpack_require__(/*! path */ "path");
|
|
136570
|
+
var isWindows = process.platform === 'win32';
|
|
136571
|
+
var fs = __webpack_require__(/*! fs */ "fs");
|
|
136572
|
+
|
|
136573
|
+
// JavaScript implementation of realpath, ported from node pre-v6
|
|
136574
|
+
|
|
136575
|
+
var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
|
|
136576
|
+
|
|
136577
|
+
function rethrow() {
|
|
136578
|
+
// Only enable in debug mode. A backtrace uses ~1000 bytes of heap space and
|
|
136579
|
+
// is fairly slow to generate.
|
|
136580
|
+
var callback;
|
|
136581
|
+
if (DEBUG) {
|
|
136582
|
+
var backtrace = new Error;
|
|
136583
|
+
callback = debugCallback;
|
|
136584
|
+
} else
|
|
136585
|
+
callback = missingCallback;
|
|
136586
|
+
|
|
136587
|
+
return callback;
|
|
136588
|
+
|
|
136589
|
+
function debugCallback(err) {
|
|
136590
|
+
if (err) {
|
|
136591
|
+
backtrace.message = err.message;
|
|
136592
|
+
err = backtrace;
|
|
136593
|
+
missingCallback(err);
|
|
136594
|
+
}
|
|
136595
|
+
}
|
|
136596
|
+
|
|
136597
|
+
function missingCallback(err) {
|
|
136598
|
+
if (err) {
|
|
136599
|
+
if (process.throwDeprecation)
|
|
136600
|
+
throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs
|
|
136601
|
+
else if (!process.noDeprecation) {
|
|
136602
|
+
var msg = 'fs: missing callback ' + (err.stack || err.message);
|
|
136603
|
+
if (process.traceDeprecation)
|
|
136604
|
+
console.trace(msg);
|
|
136605
|
+
else
|
|
136606
|
+
console.error(msg);
|
|
136607
|
+
}
|
|
136608
|
+
}
|
|
136609
|
+
}
|
|
136610
|
+
}
|
|
136611
|
+
|
|
136612
|
+
function maybeCallback(cb) {
|
|
136613
|
+
return typeof cb === 'function' ? cb : rethrow();
|
|
136614
|
+
}
|
|
136615
|
+
|
|
136616
|
+
var normalize = pathModule.normalize;
|
|
136617
|
+
|
|
136618
|
+
// Regexp that finds the next partion of a (partial) path
|
|
136619
|
+
// result is [base_with_slash, base], e.g. ['somedir/', 'somedir']
|
|
136620
|
+
if (isWindows) {
|
|
136621
|
+
var nextPartRe = /(.*?)(?:[\/\\]+|$)/g;
|
|
136622
|
+
} else {
|
|
136623
|
+
var nextPartRe = /(.*?)(?:[\/]+|$)/g;
|
|
136624
|
+
}
|
|
136625
|
+
|
|
136626
|
+
// Regex to find the device root, including trailing slash. E.g. 'c:\\'.
|
|
136627
|
+
if (isWindows) {
|
|
136628
|
+
var splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
|
|
136629
|
+
} else {
|
|
136630
|
+
var splitRootRe = /^[\/]*/;
|
|
136631
|
+
}
|
|
136632
|
+
|
|
136633
|
+
exports.realpathSync = function realpathSync(p, cache) {
|
|
136634
|
+
// make p is absolute
|
|
136635
|
+
p = pathModule.resolve(p);
|
|
136636
|
+
|
|
136637
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
|
|
136638
|
+
return cache[p];
|
|
136639
|
+
}
|
|
136640
|
+
|
|
136641
|
+
var original = p,
|
|
136642
|
+
seenLinks = {},
|
|
136643
|
+
knownHard = {};
|
|
136644
|
+
|
|
136645
|
+
// current character position in p
|
|
136646
|
+
var pos;
|
|
136647
|
+
// the partial path so far, including a trailing slash if any
|
|
136648
|
+
var current;
|
|
136649
|
+
// the partial path without a trailing slash (except when pointing at a root)
|
|
136650
|
+
var base;
|
|
136651
|
+
// the partial path scanned in the previous round, with slash
|
|
136652
|
+
var previous;
|
|
136653
|
+
|
|
136654
|
+
start();
|
|
136655
|
+
|
|
136656
|
+
function start() {
|
|
136657
|
+
// Skip over roots
|
|
136658
|
+
var m = splitRootRe.exec(p);
|
|
136659
|
+
pos = m[0].length;
|
|
136660
|
+
current = m[0];
|
|
136661
|
+
base = m[0];
|
|
136662
|
+
previous = '';
|
|
136663
|
+
|
|
136664
|
+
// On windows, check that the root exists. On unix there is no need.
|
|
136665
|
+
if (isWindows && !knownHard[base]) {
|
|
136666
|
+
fs.lstatSync(base);
|
|
136667
|
+
knownHard[base] = true;
|
|
136668
|
+
}
|
|
136669
|
+
}
|
|
136670
|
+
|
|
136671
|
+
// walk down the path, swapping out linked pathparts for their real
|
|
136672
|
+
// values
|
|
136673
|
+
// NB: p.length changes.
|
|
136674
|
+
while (pos < p.length) {
|
|
136675
|
+
// find the next part
|
|
136676
|
+
nextPartRe.lastIndex = pos;
|
|
136677
|
+
var result = nextPartRe.exec(p);
|
|
136678
|
+
previous = current;
|
|
136679
|
+
current += result[0];
|
|
136680
|
+
base = previous + result[1];
|
|
136681
|
+
pos = nextPartRe.lastIndex;
|
|
136682
|
+
|
|
136683
|
+
// continue if not a symlink
|
|
136684
|
+
if (knownHard[base] || (cache && cache[base] === base)) {
|
|
136685
|
+
continue;
|
|
136686
|
+
}
|
|
136687
|
+
|
|
136688
|
+
var resolvedLink;
|
|
136689
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
|
136690
|
+
// some known symbolic link. no need to stat again.
|
|
136691
|
+
resolvedLink = cache[base];
|
|
136692
|
+
} else {
|
|
136693
|
+
var stat = fs.lstatSync(base);
|
|
136694
|
+
if (!stat.isSymbolicLink()) {
|
|
136695
|
+
knownHard[base] = true;
|
|
136696
|
+
if (cache) cache[base] = base;
|
|
136697
|
+
continue;
|
|
136698
|
+
}
|
|
136699
|
+
|
|
136700
|
+
// read the link if it wasn't read before
|
|
136701
|
+
// dev/ino always return 0 on windows, so skip the check.
|
|
136702
|
+
var linkTarget = null;
|
|
136703
|
+
if (!isWindows) {
|
|
136704
|
+
var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
|
|
136705
|
+
if (seenLinks.hasOwnProperty(id)) {
|
|
136706
|
+
linkTarget = seenLinks[id];
|
|
136707
|
+
}
|
|
136708
|
+
}
|
|
136709
|
+
if (linkTarget === null) {
|
|
136710
|
+
fs.statSync(base);
|
|
136711
|
+
linkTarget = fs.readlinkSync(base);
|
|
136712
|
+
}
|
|
136713
|
+
resolvedLink = pathModule.resolve(previous, linkTarget);
|
|
136714
|
+
// track this, if given a cache.
|
|
136715
|
+
if (cache) cache[base] = resolvedLink;
|
|
136716
|
+
if (!isWindows) seenLinks[id] = linkTarget;
|
|
136717
|
+
}
|
|
136718
|
+
|
|
136719
|
+
// resolve the link, then start over
|
|
136720
|
+
p = pathModule.resolve(resolvedLink, p.slice(pos));
|
|
136721
|
+
start();
|
|
136722
|
+
}
|
|
136723
|
+
|
|
136724
|
+
if (cache) cache[original] = p;
|
|
136725
|
+
|
|
136726
|
+
return p;
|
|
136727
|
+
};
|
|
136728
|
+
|
|
136729
|
+
|
|
136730
|
+
exports.realpath = function realpath(p, cache, cb) {
|
|
136731
|
+
if (typeof cb !== 'function') {
|
|
136732
|
+
cb = maybeCallback(cache);
|
|
136733
|
+
cache = null;
|
|
136734
|
+
}
|
|
136735
|
+
|
|
136736
|
+
// make p is absolute
|
|
136737
|
+
p = pathModule.resolve(p);
|
|
136738
|
+
|
|
136739
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
|
|
136740
|
+
return process.nextTick(cb.bind(null, null, cache[p]));
|
|
136741
|
+
}
|
|
136742
|
+
|
|
136743
|
+
var original = p,
|
|
136744
|
+
seenLinks = {},
|
|
136745
|
+
knownHard = {};
|
|
136746
|
+
|
|
136747
|
+
// current character position in p
|
|
136748
|
+
var pos;
|
|
136749
|
+
// the partial path so far, including a trailing slash if any
|
|
136750
|
+
var current;
|
|
136751
|
+
// the partial path without a trailing slash (except when pointing at a root)
|
|
136752
|
+
var base;
|
|
136753
|
+
// the partial path scanned in the previous round, with slash
|
|
136754
|
+
var previous;
|
|
136755
|
+
|
|
136756
|
+
start();
|
|
136757
|
+
|
|
136758
|
+
function start() {
|
|
136759
|
+
// Skip over roots
|
|
136760
|
+
var m = splitRootRe.exec(p);
|
|
136761
|
+
pos = m[0].length;
|
|
136762
|
+
current = m[0];
|
|
136763
|
+
base = m[0];
|
|
136764
|
+
previous = '';
|
|
136765
|
+
|
|
136766
|
+
// On windows, check that the root exists. On unix there is no need.
|
|
136767
|
+
if (isWindows && !knownHard[base]) {
|
|
136768
|
+
fs.lstat(base, function(err) {
|
|
136769
|
+
if (err) return cb(err);
|
|
136770
|
+
knownHard[base] = true;
|
|
136771
|
+
LOOP();
|
|
136772
|
+
});
|
|
136773
|
+
} else {
|
|
136774
|
+
process.nextTick(LOOP);
|
|
136775
|
+
}
|
|
136776
|
+
}
|
|
136777
|
+
|
|
136778
|
+
// walk down the path, swapping out linked pathparts for their real
|
|
136779
|
+
// values
|
|
136780
|
+
function LOOP() {
|
|
136781
|
+
// stop if scanned past end of path
|
|
136782
|
+
if (pos >= p.length) {
|
|
136783
|
+
if (cache) cache[original] = p;
|
|
136784
|
+
return cb(null, p);
|
|
136785
|
+
}
|
|
136786
|
+
|
|
136787
|
+
// find the next part
|
|
136788
|
+
nextPartRe.lastIndex = pos;
|
|
136789
|
+
var result = nextPartRe.exec(p);
|
|
136790
|
+
previous = current;
|
|
136791
|
+
current += result[0];
|
|
136792
|
+
base = previous + result[1];
|
|
136793
|
+
pos = nextPartRe.lastIndex;
|
|
136794
|
+
|
|
136795
|
+
// continue if not a symlink
|
|
136796
|
+
if (knownHard[base] || (cache && cache[base] === base)) {
|
|
136797
|
+
return process.nextTick(LOOP);
|
|
136798
|
+
}
|
|
136799
|
+
|
|
136800
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
|
136801
|
+
// known symbolic link. no need to stat again.
|
|
136802
|
+
return gotResolvedLink(cache[base]);
|
|
136803
|
+
}
|
|
136804
|
+
|
|
136805
|
+
return fs.lstat(base, gotStat);
|
|
136806
|
+
}
|
|
136807
|
+
|
|
136808
|
+
function gotStat(err, stat) {
|
|
136809
|
+
if (err) return cb(err);
|
|
136810
|
+
|
|
136811
|
+
// if not a symlink, skip to the next path part
|
|
136812
|
+
if (!stat.isSymbolicLink()) {
|
|
136813
|
+
knownHard[base] = true;
|
|
136814
|
+
if (cache) cache[base] = base;
|
|
136815
|
+
return process.nextTick(LOOP);
|
|
136816
|
+
}
|
|
136817
|
+
|
|
136818
|
+
// stat & read the link if not read before
|
|
136819
|
+
// call gotTarget as soon as the link target is known
|
|
136820
|
+
// dev/ino always return 0 on windows, so skip the check.
|
|
136821
|
+
if (!isWindows) {
|
|
136822
|
+
var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
|
|
136823
|
+
if (seenLinks.hasOwnProperty(id)) {
|
|
136824
|
+
return gotTarget(null, seenLinks[id], base);
|
|
136825
|
+
}
|
|
136826
|
+
}
|
|
136827
|
+
fs.stat(base, function(err) {
|
|
136828
|
+
if (err) return cb(err);
|
|
136829
|
+
|
|
136830
|
+
fs.readlink(base, function(err, target) {
|
|
136831
|
+
if (!isWindows) seenLinks[id] = target;
|
|
136832
|
+
gotTarget(err, target);
|
|
136833
|
+
});
|
|
136834
|
+
});
|
|
136835
|
+
}
|
|
136836
|
+
|
|
136837
|
+
function gotTarget(err, target, base) {
|
|
136838
|
+
if (err) return cb(err);
|
|
136839
|
+
|
|
136840
|
+
var resolvedLink = pathModule.resolve(previous, target);
|
|
136841
|
+
if (cache) cache[base] = resolvedLink;
|
|
136842
|
+
gotResolvedLink(resolvedLink);
|
|
136843
|
+
}
|
|
136844
|
+
|
|
136845
|
+
function gotResolvedLink(resolvedLink) {
|
|
136846
|
+
// resolve the link, then start over
|
|
136847
|
+
p = pathModule.resolve(resolvedLink, p.slice(pos));
|
|
136848
|
+
start();
|
|
136849
|
+
}
|
|
136850
|
+
};
|
|
136851
|
+
|
|
136852
|
+
|
|
136358
136853
|
/***/ }),
|
|
136359
136854
|
|
|
136360
136855
|
/***/ "./node_modules/function-bind/implementation.js":
|
|
@@ -136818,6 +137313,1542 @@ function setFunctionMetadata(name, arity, fn) {
|
|
|
136818
137313
|
}
|
|
136819
137314
|
|
|
136820
137315
|
|
|
137316
|
+
/***/ }),
|
|
137317
|
+
|
|
137318
|
+
/***/ "./node_modules/glob/common.js":
|
|
137319
|
+
/*!*************************************!*\
|
|
137320
|
+
!*** ./node_modules/glob/common.js ***!
|
|
137321
|
+
\*************************************/
|
|
137322
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
137323
|
+
|
|
137324
|
+
exports.setopts = setopts
|
|
137325
|
+
exports.ownProp = ownProp
|
|
137326
|
+
exports.makeAbs = makeAbs
|
|
137327
|
+
exports.finish = finish
|
|
137328
|
+
exports.mark = mark
|
|
137329
|
+
exports.isIgnored = isIgnored
|
|
137330
|
+
exports.childrenIgnored = childrenIgnored
|
|
137331
|
+
|
|
137332
|
+
function ownProp (obj, field) {
|
|
137333
|
+
return Object.prototype.hasOwnProperty.call(obj, field)
|
|
137334
|
+
}
|
|
137335
|
+
|
|
137336
|
+
var fs = __webpack_require__(/*! fs */ "fs")
|
|
137337
|
+
var path = __webpack_require__(/*! path */ "path")
|
|
137338
|
+
var minimatch = __webpack_require__(/*! minimatch */ "./node_modules/minimatch/minimatch.js")
|
|
137339
|
+
var isAbsolute = __webpack_require__(/*! path-is-absolute */ "./node_modules/path-is-absolute/index.js")
|
|
137340
|
+
var Minimatch = minimatch.Minimatch
|
|
137341
|
+
|
|
137342
|
+
function alphasort (a, b) {
|
|
137343
|
+
return a.localeCompare(b, 'en')
|
|
137344
|
+
}
|
|
137345
|
+
|
|
137346
|
+
function setupIgnores (self, options) {
|
|
137347
|
+
self.ignore = options.ignore || []
|
|
137348
|
+
|
|
137349
|
+
if (!Array.isArray(self.ignore))
|
|
137350
|
+
self.ignore = [self.ignore]
|
|
137351
|
+
|
|
137352
|
+
if (self.ignore.length) {
|
|
137353
|
+
self.ignore = self.ignore.map(ignoreMap)
|
|
137354
|
+
}
|
|
137355
|
+
}
|
|
137356
|
+
|
|
137357
|
+
// ignore patterns are always in dot:true mode.
|
|
137358
|
+
function ignoreMap (pattern) {
|
|
137359
|
+
var gmatcher = null
|
|
137360
|
+
if (pattern.slice(-3) === '/**') {
|
|
137361
|
+
var gpattern = pattern.replace(/(\/\*\*)+$/, '')
|
|
137362
|
+
gmatcher = new Minimatch(gpattern, { dot: true })
|
|
137363
|
+
}
|
|
137364
|
+
|
|
137365
|
+
return {
|
|
137366
|
+
matcher: new Minimatch(pattern, { dot: true }),
|
|
137367
|
+
gmatcher: gmatcher
|
|
137368
|
+
}
|
|
137369
|
+
}
|
|
137370
|
+
|
|
137371
|
+
function setopts (self, pattern, options) {
|
|
137372
|
+
if (!options)
|
|
137373
|
+
options = {}
|
|
137374
|
+
|
|
137375
|
+
// base-matching: just use globstar for that.
|
|
137376
|
+
if (options.matchBase && -1 === pattern.indexOf("/")) {
|
|
137377
|
+
if (options.noglobstar) {
|
|
137378
|
+
throw new Error("base matching requires globstar")
|
|
137379
|
+
}
|
|
137380
|
+
pattern = "**/" + pattern
|
|
137381
|
+
}
|
|
137382
|
+
|
|
137383
|
+
self.silent = !!options.silent
|
|
137384
|
+
self.pattern = pattern
|
|
137385
|
+
self.strict = options.strict !== false
|
|
137386
|
+
self.realpath = !!options.realpath
|
|
137387
|
+
self.realpathCache = options.realpathCache || Object.create(null)
|
|
137388
|
+
self.follow = !!options.follow
|
|
137389
|
+
self.dot = !!options.dot
|
|
137390
|
+
self.mark = !!options.mark
|
|
137391
|
+
self.nodir = !!options.nodir
|
|
137392
|
+
if (self.nodir)
|
|
137393
|
+
self.mark = true
|
|
137394
|
+
self.sync = !!options.sync
|
|
137395
|
+
self.nounique = !!options.nounique
|
|
137396
|
+
self.nonull = !!options.nonull
|
|
137397
|
+
self.nosort = !!options.nosort
|
|
137398
|
+
self.nocase = !!options.nocase
|
|
137399
|
+
self.stat = !!options.stat
|
|
137400
|
+
self.noprocess = !!options.noprocess
|
|
137401
|
+
self.absolute = !!options.absolute
|
|
137402
|
+
self.fs = options.fs || fs
|
|
137403
|
+
|
|
137404
|
+
self.maxLength = options.maxLength || Infinity
|
|
137405
|
+
self.cache = options.cache || Object.create(null)
|
|
137406
|
+
self.statCache = options.statCache || Object.create(null)
|
|
137407
|
+
self.symlinks = options.symlinks || Object.create(null)
|
|
137408
|
+
|
|
137409
|
+
setupIgnores(self, options)
|
|
137410
|
+
|
|
137411
|
+
self.changedCwd = false
|
|
137412
|
+
var cwd = process.cwd()
|
|
137413
|
+
if (!ownProp(options, "cwd"))
|
|
137414
|
+
self.cwd = cwd
|
|
137415
|
+
else {
|
|
137416
|
+
self.cwd = path.resolve(options.cwd)
|
|
137417
|
+
self.changedCwd = self.cwd !== cwd
|
|
137418
|
+
}
|
|
137419
|
+
|
|
137420
|
+
self.root = options.root || path.resolve(self.cwd, "/")
|
|
137421
|
+
self.root = path.resolve(self.root)
|
|
137422
|
+
if (process.platform === "win32")
|
|
137423
|
+
self.root = self.root.replace(/\\/g, "/")
|
|
137424
|
+
|
|
137425
|
+
// TODO: is an absolute `cwd` supposed to be resolved against `root`?
|
|
137426
|
+
// e.g. { cwd: '/test', root: __dirname } === path.join(__dirname, '/test')
|
|
137427
|
+
self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd)
|
|
137428
|
+
if (process.platform === "win32")
|
|
137429
|
+
self.cwdAbs = self.cwdAbs.replace(/\\/g, "/")
|
|
137430
|
+
self.nomount = !!options.nomount
|
|
137431
|
+
|
|
137432
|
+
// disable comments and negation in Minimatch.
|
|
137433
|
+
// Note that they are not supported in Glob itself anyway.
|
|
137434
|
+
options.nonegate = true
|
|
137435
|
+
options.nocomment = true
|
|
137436
|
+
|
|
137437
|
+
self.minimatch = new Minimatch(pattern, options)
|
|
137438
|
+
self.options = self.minimatch.options
|
|
137439
|
+
}
|
|
137440
|
+
|
|
137441
|
+
function finish (self) {
|
|
137442
|
+
var nou = self.nounique
|
|
137443
|
+
var all = nou ? [] : Object.create(null)
|
|
137444
|
+
|
|
137445
|
+
for (var i = 0, l = self.matches.length; i < l; i ++) {
|
|
137446
|
+
var matches = self.matches[i]
|
|
137447
|
+
if (!matches || Object.keys(matches).length === 0) {
|
|
137448
|
+
if (self.nonull) {
|
|
137449
|
+
// do like the shell, and spit out the literal glob
|
|
137450
|
+
var literal = self.minimatch.globSet[i]
|
|
137451
|
+
if (nou)
|
|
137452
|
+
all.push(literal)
|
|
137453
|
+
else
|
|
137454
|
+
all[literal] = true
|
|
137455
|
+
}
|
|
137456
|
+
} else {
|
|
137457
|
+
// had matches
|
|
137458
|
+
var m = Object.keys(matches)
|
|
137459
|
+
if (nou)
|
|
137460
|
+
all.push.apply(all, m)
|
|
137461
|
+
else
|
|
137462
|
+
m.forEach(function (m) {
|
|
137463
|
+
all[m] = true
|
|
137464
|
+
})
|
|
137465
|
+
}
|
|
137466
|
+
}
|
|
137467
|
+
|
|
137468
|
+
if (!nou)
|
|
137469
|
+
all = Object.keys(all)
|
|
137470
|
+
|
|
137471
|
+
if (!self.nosort)
|
|
137472
|
+
all = all.sort(alphasort)
|
|
137473
|
+
|
|
137474
|
+
// at *some* point we statted all of these
|
|
137475
|
+
if (self.mark) {
|
|
137476
|
+
for (var i = 0; i < all.length; i++) {
|
|
137477
|
+
all[i] = self._mark(all[i])
|
|
137478
|
+
}
|
|
137479
|
+
if (self.nodir) {
|
|
137480
|
+
all = all.filter(function (e) {
|
|
137481
|
+
var notDir = !(/\/$/.test(e))
|
|
137482
|
+
var c = self.cache[e] || self.cache[makeAbs(self, e)]
|
|
137483
|
+
if (notDir && c)
|
|
137484
|
+
notDir = c !== 'DIR' && !Array.isArray(c)
|
|
137485
|
+
return notDir
|
|
137486
|
+
})
|
|
137487
|
+
}
|
|
137488
|
+
}
|
|
137489
|
+
|
|
137490
|
+
if (self.ignore.length)
|
|
137491
|
+
all = all.filter(function(m) {
|
|
137492
|
+
return !isIgnored(self, m)
|
|
137493
|
+
})
|
|
137494
|
+
|
|
137495
|
+
self.found = all
|
|
137496
|
+
}
|
|
137497
|
+
|
|
137498
|
+
function mark (self, p) {
|
|
137499
|
+
var abs = makeAbs(self, p)
|
|
137500
|
+
var c = self.cache[abs]
|
|
137501
|
+
var m = p
|
|
137502
|
+
if (c) {
|
|
137503
|
+
var isDir = c === 'DIR' || Array.isArray(c)
|
|
137504
|
+
var slash = p.slice(-1) === '/'
|
|
137505
|
+
|
|
137506
|
+
if (isDir && !slash)
|
|
137507
|
+
m += '/'
|
|
137508
|
+
else if (!isDir && slash)
|
|
137509
|
+
m = m.slice(0, -1)
|
|
137510
|
+
|
|
137511
|
+
if (m !== p) {
|
|
137512
|
+
var mabs = makeAbs(self, m)
|
|
137513
|
+
self.statCache[mabs] = self.statCache[abs]
|
|
137514
|
+
self.cache[mabs] = self.cache[abs]
|
|
137515
|
+
}
|
|
137516
|
+
}
|
|
137517
|
+
|
|
137518
|
+
return m
|
|
137519
|
+
}
|
|
137520
|
+
|
|
137521
|
+
// lotta situps...
|
|
137522
|
+
function makeAbs (self, f) {
|
|
137523
|
+
var abs = f
|
|
137524
|
+
if (f.charAt(0) === '/') {
|
|
137525
|
+
abs = path.join(self.root, f)
|
|
137526
|
+
} else if (isAbsolute(f) || f === '') {
|
|
137527
|
+
abs = f
|
|
137528
|
+
} else if (self.changedCwd) {
|
|
137529
|
+
abs = path.resolve(self.cwd, f)
|
|
137530
|
+
} else {
|
|
137531
|
+
abs = path.resolve(f)
|
|
137532
|
+
}
|
|
137533
|
+
|
|
137534
|
+
if (process.platform === 'win32')
|
|
137535
|
+
abs = abs.replace(/\\/g, '/')
|
|
137536
|
+
|
|
137537
|
+
return abs
|
|
137538
|
+
}
|
|
137539
|
+
|
|
137540
|
+
|
|
137541
|
+
// Return true, if pattern ends with globstar '**', for the accompanying parent directory.
|
|
137542
|
+
// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents
|
|
137543
|
+
function isIgnored (self, path) {
|
|
137544
|
+
if (!self.ignore.length)
|
|
137545
|
+
return false
|
|
137546
|
+
|
|
137547
|
+
return self.ignore.some(function(item) {
|
|
137548
|
+
return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path))
|
|
137549
|
+
})
|
|
137550
|
+
}
|
|
137551
|
+
|
|
137552
|
+
function childrenIgnored (self, path) {
|
|
137553
|
+
if (!self.ignore.length)
|
|
137554
|
+
return false
|
|
137555
|
+
|
|
137556
|
+
return self.ignore.some(function(item) {
|
|
137557
|
+
return !!(item.gmatcher && item.gmatcher.match(path))
|
|
137558
|
+
})
|
|
137559
|
+
}
|
|
137560
|
+
|
|
137561
|
+
|
|
137562
|
+
/***/ }),
|
|
137563
|
+
|
|
137564
|
+
/***/ "./node_modules/glob/glob.js":
|
|
137565
|
+
/*!***********************************!*\
|
|
137566
|
+
!*** ./node_modules/glob/glob.js ***!
|
|
137567
|
+
\***********************************/
|
|
137568
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
137569
|
+
|
|
137570
|
+
// Approach:
|
|
137571
|
+
//
|
|
137572
|
+
// 1. Get the minimatch set
|
|
137573
|
+
// 2. For each pattern in the set, PROCESS(pattern, false)
|
|
137574
|
+
// 3. Store matches per-set, then uniq them
|
|
137575
|
+
//
|
|
137576
|
+
// PROCESS(pattern, inGlobStar)
|
|
137577
|
+
// Get the first [n] items from pattern that are all strings
|
|
137578
|
+
// Join these together. This is PREFIX.
|
|
137579
|
+
// If there is no more remaining, then stat(PREFIX) and
|
|
137580
|
+
// add to matches if it succeeds. END.
|
|
137581
|
+
//
|
|
137582
|
+
// If inGlobStar and PREFIX is symlink and points to dir
|
|
137583
|
+
// set ENTRIES = []
|
|
137584
|
+
// else readdir(PREFIX) as ENTRIES
|
|
137585
|
+
// If fail, END
|
|
137586
|
+
//
|
|
137587
|
+
// with ENTRIES
|
|
137588
|
+
// If pattern[n] is GLOBSTAR
|
|
137589
|
+
// // handle the case where the globstar match is empty
|
|
137590
|
+
// // by pruning it out, and testing the resulting pattern
|
|
137591
|
+
// PROCESS(pattern[0..n] + pattern[n+1 .. $], false)
|
|
137592
|
+
// // handle other cases.
|
|
137593
|
+
// for ENTRY in ENTRIES (not dotfiles)
|
|
137594
|
+
// // attach globstar + tail onto the entry
|
|
137595
|
+
// // Mark that this entry is a globstar match
|
|
137596
|
+
// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $], true)
|
|
137597
|
+
//
|
|
137598
|
+
// else // not globstar
|
|
137599
|
+
// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot)
|
|
137600
|
+
// Test ENTRY against pattern[n]
|
|
137601
|
+
// If fails, continue
|
|
137602
|
+
// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $])
|
|
137603
|
+
//
|
|
137604
|
+
// Caveat:
|
|
137605
|
+
// Cache all stats and readdirs results to minimize syscall. Since all
|
|
137606
|
+
// we ever care about is existence and directory-ness, we can just keep
|
|
137607
|
+
// `true` for files, and [children,...] for directories, or `false` for
|
|
137608
|
+
// things that don't exist.
|
|
137609
|
+
|
|
137610
|
+
module.exports = glob
|
|
137611
|
+
|
|
137612
|
+
var rp = __webpack_require__(/*! fs.realpath */ "./node_modules/fs.realpath/index.js")
|
|
137613
|
+
var minimatch = __webpack_require__(/*! minimatch */ "./node_modules/minimatch/minimatch.js")
|
|
137614
|
+
var Minimatch = minimatch.Minimatch
|
|
137615
|
+
var inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits.js")
|
|
137616
|
+
var EE = (__webpack_require__(/*! events */ "events").EventEmitter)
|
|
137617
|
+
var path = __webpack_require__(/*! path */ "path")
|
|
137618
|
+
var assert = __webpack_require__(/*! assert */ "assert")
|
|
137619
|
+
var isAbsolute = __webpack_require__(/*! path-is-absolute */ "./node_modules/path-is-absolute/index.js")
|
|
137620
|
+
var globSync = __webpack_require__(/*! ./sync.js */ "./node_modules/glob/sync.js")
|
|
137621
|
+
var common = __webpack_require__(/*! ./common.js */ "./node_modules/glob/common.js")
|
|
137622
|
+
var setopts = common.setopts
|
|
137623
|
+
var ownProp = common.ownProp
|
|
137624
|
+
var inflight = __webpack_require__(/*! inflight */ "./node_modules/inflight/inflight.js")
|
|
137625
|
+
var util = __webpack_require__(/*! util */ "util")
|
|
137626
|
+
var childrenIgnored = common.childrenIgnored
|
|
137627
|
+
var isIgnored = common.isIgnored
|
|
137628
|
+
|
|
137629
|
+
var once = __webpack_require__(/*! once */ "./node_modules/once/once.js")
|
|
137630
|
+
|
|
137631
|
+
function glob (pattern, options, cb) {
|
|
137632
|
+
if (typeof options === 'function') cb = options, options = {}
|
|
137633
|
+
if (!options) options = {}
|
|
137634
|
+
|
|
137635
|
+
if (options.sync) {
|
|
137636
|
+
if (cb)
|
|
137637
|
+
throw new TypeError('callback provided to sync glob')
|
|
137638
|
+
return globSync(pattern, options)
|
|
137639
|
+
}
|
|
137640
|
+
|
|
137641
|
+
return new Glob(pattern, options, cb)
|
|
137642
|
+
}
|
|
137643
|
+
|
|
137644
|
+
glob.sync = globSync
|
|
137645
|
+
var GlobSync = glob.GlobSync = globSync.GlobSync
|
|
137646
|
+
|
|
137647
|
+
// old api surface
|
|
137648
|
+
glob.glob = glob
|
|
137649
|
+
|
|
137650
|
+
function extend (origin, add) {
|
|
137651
|
+
if (add === null || typeof add !== 'object') {
|
|
137652
|
+
return origin
|
|
137653
|
+
}
|
|
137654
|
+
|
|
137655
|
+
var keys = Object.keys(add)
|
|
137656
|
+
var i = keys.length
|
|
137657
|
+
while (i--) {
|
|
137658
|
+
origin[keys[i]] = add[keys[i]]
|
|
137659
|
+
}
|
|
137660
|
+
return origin
|
|
137661
|
+
}
|
|
137662
|
+
|
|
137663
|
+
glob.hasMagic = function (pattern, options_) {
|
|
137664
|
+
var options = extend({}, options_)
|
|
137665
|
+
options.noprocess = true
|
|
137666
|
+
|
|
137667
|
+
var g = new Glob(pattern, options)
|
|
137668
|
+
var set = g.minimatch.set
|
|
137669
|
+
|
|
137670
|
+
if (!pattern)
|
|
137671
|
+
return false
|
|
137672
|
+
|
|
137673
|
+
if (set.length > 1)
|
|
137674
|
+
return true
|
|
137675
|
+
|
|
137676
|
+
for (var j = 0; j < set[0].length; j++) {
|
|
137677
|
+
if (typeof set[0][j] !== 'string')
|
|
137678
|
+
return true
|
|
137679
|
+
}
|
|
137680
|
+
|
|
137681
|
+
return false
|
|
137682
|
+
}
|
|
137683
|
+
|
|
137684
|
+
glob.Glob = Glob
|
|
137685
|
+
inherits(Glob, EE)
|
|
137686
|
+
function Glob (pattern, options, cb) {
|
|
137687
|
+
if (typeof options === 'function') {
|
|
137688
|
+
cb = options
|
|
137689
|
+
options = null
|
|
137690
|
+
}
|
|
137691
|
+
|
|
137692
|
+
if (options && options.sync) {
|
|
137693
|
+
if (cb)
|
|
137694
|
+
throw new TypeError('callback provided to sync glob')
|
|
137695
|
+
return new GlobSync(pattern, options)
|
|
137696
|
+
}
|
|
137697
|
+
|
|
137698
|
+
if (!(this instanceof Glob))
|
|
137699
|
+
return new Glob(pattern, options, cb)
|
|
137700
|
+
|
|
137701
|
+
setopts(this, pattern, options)
|
|
137702
|
+
this._didRealPath = false
|
|
137703
|
+
|
|
137704
|
+
// process each pattern in the minimatch set
|
|
137705
|
+
var n = this.minimatch.set.length
|
|
137706
|
+
|
|
137707
|
+
// The matches are stored as {<filename>: true,...} so that
|
|
137708
|
+
// duplicates are automagically pruned.
|
|
137709
|
+
// Later, we do an Object.keys() on these.
|
|
137710
|
+
// Keep them as a list so we can fill in when nonull is set.
|
|
137711
|
+
this.matches = new Array(n)
|
|
137712
|
+
|
|
137713
|
+
if (typeof cb === 'function') {
|
|
137714
|
+
cb = once(cb)
|
|
137715
|
+
this.on('error', cb)
|
|
137716
|
+
this.on('end', function (matches) {
|
|
137717
|
+
cb(null, matches)
|
|
137718
|
+
})
|
|
137719
|
+
}
|
|
137720
|
+
|
|
137721
|
+
var self = this
|
|
137722
|
+
this._processing = 0
|
|
137723
|
+
|
|
137724
|
+
this._emitQueue = []
|
|
137725
|
+
this._processQueue = []
|
|
137726
|
+
this.paused = false
|
|
137727
|
+
|
|
137728
|
+
if (this.noprocess)
|
|
137729
|
+
return this
|
|
137730
|
+
|
|
137731
|
+
if (n === 0)
|
|
137732
|
+
return done()
|
|
137733
|
+
|
|
137734
|
+
var sync = true
|
|
137735
|
+
for (var i = 0; i < n; i ++) {
|
|
137736
|
+
this._process(this.minimatch.set[i], i, false, done)
|
|
137737
|
+
}
|
|
137738
|
+
sync = false
|
|
137739
|
+
|
|
137740
|
+
function done () {
|
|
137741
|
+
--self._processing
|
|
137742
|
+
if (self._processing <= 0) {
|
|
137743
|
+
if (sync) {
|
|
137744
|
+
process.nextTick(function () {
|
|
137745
|
+
self._finish()
|
|
137746
|
+
})
|
|
137747
|
+
} else {
|
|
137748
|
+
self._finish()
|
|
137749
|
+
}
|
|
137750
|
+
}
|
|
137751
|
+
}
|
|
137752
|
+
}
|
|
137753
|
+
|
|
137754
|
+
Glob.prototype._finish = function () {
|
|
137755
|
+
assert(this instanceof Glob)
|
|
137756
|
+
if (this.aborted)
|
|
137757
|
+
return
|
|
137758
|
+
|
|
137759
|
+
if (this.realpath && !this._didRealpath)
|
|
137760
|
+
return this._realpath()
|
|
137761
|
+
|
|
137762
|
+
common.finish(this)
|
|
137763
|
+
this.emit('end', this.found)
|
|
137764
|
+
}
|
|
137765
|
+
|
|
137766
|
+
Glob.prototype._realpath = function () {
|
|
137767
|
+
if (this._didRealpath)
|
|
137768
|
+
return
|
|
137769
|
+
|
|
137770
|
+
this._didRealpath = true
|
|
137771
|
+
|
|
137772
|
+
var n = this.matches.length
|
|
137773
|
+
if (n === 0)
|
|
137774
|
+
return this._finish()
|
|
137775
|
+
|
|
137776
|
+
var self = this
|
|
137777
|
+
for (var i = 0; i < this.matches.length; i++)
|
|
137778
|
+
this._realpathSet(i, next)
|
|
137779
|
+
|
|
137780
|
+
function next () {
|
|
137781
|
+
if (--n === 0)
|
|
137782
|
+
self._finish()
|
|
137783
|
+
}
|
|
137784
|
+
}
|
|
137785
|
+
|
|
137786
|
+
Glob.prototype._realpathSet = function (index, cb) {
|
|
137787
|
+
var matchset = this.matches[index]
|
|
137788
|
+
if (!matchset)
|
|
137789
|
+
return cb()
|
|
137790
|
+
|
|
137791
|
+
var found = Object.keys(matchset)
|
|
137792
|
+
var self = this
|
|
137793
|
+
var n = found.length
|
|
137794
|
+
|
|
137795
|
+
if (n === 0)
|
|
137796
|
+
return cb()
|
|
137797
|
+
|
|
137798
|
+
var set = this.matches[index] = Object.create(null)
|
|
137799
|
+
found.forEach(function (p, i) {
|
|
137800
|
+
// If there's a problem with the stat, then it means that
|
|
137801
|
+
// one or more of the links in the realpath couldn't be
|
|
137802
|
+
// resolved. just return the abs value in that case.
|
|
137803
|
+
p = self._makeAbs(p)
|
|
137804
|
+
rp.realpath(p, self.realpathCache, function (er, real) {
|
|
137805
|
+
if (!er)
|
|
137806
|
+
set[real] = true
|
|
137807
|
+
else if (er.syscall === 'stat')
|
|
137808
|
+
set[p] = true
|
|
137809
|
+
else
|
|
137810
|
+
self.emit('error', er) // srsly wtf right here
|
|
137811
|
+
|
|
137812
|
+
if (--n === 0) {
|
|
137813
|
+
self.matches[index] = set
|
|
137814
|
+
cb()
|
|
137815
|
+
}
|
|
137816
|
+
})
|
|
137817
|
+
})
|
|
137818
|
+
}
|
|
137819
|
+
|
|
137820
|
+
Glob.prototype._mark = function (p) {
|
|
137821
|
+
return common.mark(this, p)
|
|
137822
|
+
}
|
|
137823
|
+
|
|
137824
|
+
Glob.prototype._makeAbs = function (f) {
|
|
137825
|
+
return common.makeAbs(this, f)
|
|
137826
|
+
}
|
|
137827
|
+
|
|
137828
|
+
Glob.prototype.abort = function () {
|
|
137829
|
+
this.aborted = true
|
|
137830
|
+
this.emit('abort')
|
|
137831
|
+
}
|
|
137832
|
+
|
|
137833
|
+
Glob.prototype.pause = function () {
|
|
137834
|
+
if (!this.paused) {
|
|
137835
|
+
this.paused = true
|
|
137836
|
+
this.emit('pause')
|
|
137837
|
+
}
|
|
137838
|
+
}
|
|
137839
|
+
|
|
137840
|
+
Glob.prototype.resume = function () {
|
|
137841
|
+
if (this.paused) {
|
|
137842
|
+
this.emit('resume')
|
|
137843
|
+
this.paused = false
|
|
137844
|
+
if (this._emitQueue.length) {
|
|
137845
|
+
var eq = this._emitQueue.slice(0)
|
|
137846
|
+
this._emitQueue.length = 0
|
|
137847
|
+
for (var i = 0; i < eq.length; i ++) {
|
|
137848
|
+
var e = eq[i]
|
|
137849
|
+
this._emitMatch(e[0], e[1])
|
|
137850
|
+
}
|
|
137851
|
+
}
|
|
137852
|
+
if (this._processQueue.length) {
|
|
137853
|
+
var pq = this._processQueue.slice(0)
|
|
137854
|
+
this._processQueue.length = 0
|
|
137855
|
+
for (var i = 0; i < pq.length; i ++) {
|
|
137856
|
+
var p = pq[i]
|
|
137857
|
+
this._processing--
|
|
137858
|
+
this._process(p[0], p[1], p[2], p[3])
|
|
137859
|
+
}
|
|
137860
|
+
}
|
|
137861
|
+
}
|
|
137862
|
+
}
|
|
137863
|
+
|
|
137864
|
+
Glob.prototype._process = function (pattern, index, inGlobStar, cb) {
|
|
137865
|
+
assert(this instanceof Glob)
|
|
137866
|
+
assert(typeof cb === 'function')
|
|
137867
|
+
|
|
137868
|
+
if (this.aborted)
|
|
137869
|
+
return
|
|
137870
|
+
|
|
137871
|
+
this._processing++
|
|
137872
|
+
if (this.paused) {
|
|
137873
|
+
this._processQueue.push([pattern, index, inGlobStar, cb])
|
|
137874
|
+
return
|
|
137875
|
+
}
|
|
137876
|
+
|
|
137877
|
+
//console.error('PROCESS %d', this._processing, pattern)
|
|
137878
|
+
|
|
137879
|
+
// Get the first [n] parts of pattern that are all strings.
|
|
137880
|
+
var n = 0
|
|
137881
|
+
while (typeof pattern[n] === 'string') {
|
|
137882
|
+
n ++
|
|
137883
|
+
}
|
|
137884
|
+
// now n is the index of the first one that is *not* a string.
|
|
137885
|
+
|
|
137886
|
+
// see if there's anything else
|
|
137887
|
+
var prefix
|
|
137888
|
+
switch (n) {
|
|
137889
|
+
// if not, then this is rather simple
|
|
137890
|
+
case pattern.length:
|
|
137891
|
+
this._processSimple(pattern.join('/'), index, cb)
|
|
137892
|
+
return
|
|
137893
|
+
|
|
137894
|
+
case 0:
|
|
137895
|
+
// pattern *starts* with some non-trivial item.
|
|
137896
|
+
// going to readdir(cwd), but not include the prefix in matches.
|
|
137897
|
+
prefix = null
|
|
137898
|
+
break
|
|
137899
|
+
|
|
137900
|
+
default:
|
|
137901
|
+
// pattern has some string bits in the front.
|
|
137902
|
+
// whatever it starts with, whether that's 'absolute' like /foo/bar,
|
|
137903
|
+
// or 'relative' like '../baz'
|
|
137904
|
+
prefix = pattern.slice(0, n).join('/')
|
|
137905
|
+
break
|
|
137906
|
+
}
|
|
137907
|
+
|
|
137908
|
+
var remain = pattern.slice(n)
|
|
137909
|
+
|
|
137910
|
+
// get the list of entries.
|
|
137911
|
+
var read
|
|
137912
|
+
if (prefix === null)
|
|
137913
|
+
read = '.'
|
|
137914
|
+
else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {
|
|
137915
|
+
if (!prefix || !isAbsolute(prefix))
|
|
137916
|
+
prefix = '/' + prefix
|
|
137917
|
+
read = prefix
|
|
137918
|
+
} else
|
|
137919
|
+
read = prefix
|
|
137920
|
+
|
|
137921
|
+
var abs = this._makeAbs(read)
|
|
137922
|
+
|
|
137923
|
+
//if ignored, skip _processing
|
|
137924
|
+
if (childrenIgnored(this, read))
|
|
137925
|
+
return cb()
|
|
137926
|
+
|
|
137927
|
+
var isGlobStar = remain[0] === minimatch.GLOBSTAR
|
|
137928
|
+
if (isGlobStar)
|
|
137929
|
+
this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb)
|
|
137930
|
+
else
|
|
137931
|
+
this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb)
|
|
137932
|
+
}
|
|
137933
|
+
|
|
137934
|
+
Glob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) {
|
|
137935
|
+
var self = this
|
|
137936
|
+
this._readdir(abs, inGlobStar, function (er, entries) {
|
|
137937
|
+
return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb)
|
|
137938
|
+
})
|
|
137939
|
+
}
|
|
137940
|
+
|
|
137941
|
+
Glob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {
|
|
137942
|
+
|
|
137943
|
+
// if the abs isn't a dir, then nothing can match!
|
|
137944
|
+
if (!entries)
|
|
137945
|
+
return cb()
|
|
137946
|
+
|
|
137947
|
+
// It will only match dot entries if it starts with a dot, or if
|
|
137948
|
+
// dot is set. Stuff like @(.foo|.bar) isn't allowed.
|
|
137949
|
+
var pn = remain[0]
|
|
137950
|
+
var negate = !!this.minimatch.negate
|
|
137951
|
+
var rawGlob = pn._glob
|
|
137952
|
+
var dotOk = this.dot || rawGlob.charAt(0) === '.'
|
|
137953
|
+
|
|
137954
|
+
var matchedEntries = []
|
|
137955
|
+
for (var i = 0; i < entries.length; i++) {
|
|
137956
|
+
var e = entries[i]
|
|
137957
|
+
if (e.charAt(0) !== '.' || dotOk) {
|
|
137958
|
+
var m
|
|
137959
|
+
if (negate && !prefix) {
|
|
137960
|
+
m = !e.match(pn)
|
|
137961
|
+
} else {
|
|
137962
|
+
m = e.match(pn)
|
|
137963
|
+
}
|
|
137964
|
+
if (m)
|
|
137965
|
+
matchedEntries.push(e)
|
|
137966
|
+
}
|
|
137967
|
+
}
|
|
137968
|
+
|
|
137969
|
+
//console.error('prd2', prefix, entries, remain[0]._glob, matchedEntries)
|
|
137970
|
+
|
|
137971
|
+
var len = matchedEntries.length
|
|
137972
|
+
// If there are no matched entries, then nothing matches.
|
|
137973
|
+
if (len === 0)
|
|
137974
|
+
return cb()
|
|
137975
|
+
|
|
137976
|
+
// if this is the last remaining pattern bit, then no need for
|
|
137977
|
+
// an additional stat *unless* the user has specified mark or
|
|
137978
|
+
// stat explicitly. We know they exist, since readdir returned
|
|
137979
|
+
// them.
|
|
137980
|
+
|
|
137981
|
+
if (remain.length === 1 && !this.mark && !this.stat) {
|
|
137982
|
+
if (!this.matches[index])
|
|
137983
|
+
this.matches[index] = Object.create(null)
|
|
137984
|
+
|
|
137985
|
+
for (var i = 0; i < len; i ++) {
|
|
137986
|
+
var e = matchedEntries[i]
|
|
137987
|
+
if (prefix) {
|
|
137988
|
+
if (prefix !== '/')
|
|
137989
|
+
e = prefix + '/' + e
|
|
137990
|
+
else
|
|
137991
|
+
e = prefix + e
|
|
137992
|
+
}
|
|
137993
|
+
|
|
137994
|
+
if (e.charAt(0) === '/' && !this.nomount) {
|
|
137995
|
+
e = path.join(this.root, e)
|
|
137996
|
+
}
|
|
137997
|
+
this._emitMatch(index, e)
|
|
137998
|
+
}
|
|
137999
|
+
// This was the last one, and no stats were needed
|
|
138000
|
+
return cb()
|
|
138001
|
+
}
|
|
138002
|
+
|
|
138003
|
+
// now test all matched entries as stand-ins for that part
|
|
138004
|
+
// of the pattern.
|
|
138005
|
+
remain.shift()
|
|
138006
|
+
for (var i = 0; i < len; i ++) {
|
|
138007
|
+
var e = matchedEntries[i]
|
|
138008
|
+
var newPattern
|
|
138009
|
+
if (prefix) {
|
|
138010
|
+
if (prefix !== '/')
|
|
138011
|
+
e = prefix + '/' + e
|
|
138012
|
+
else
|
|
138013
|
+
e = prefix + e
|
|
138014
|
+
}
|
|
138015
|
+
this._process([e].concat(remain), index, inGlobStar, cb)
|
|
138016
|
+
}
|
|
138017
|
+
cb()
|
|
138018
|
+
}
|
|
138019
|
+
|
|
138020
|
+
Glob.prototype._emitMatch = function (index, e) {
|
|
138021
|
+
if (this.aborted)
|
|
138022
|
+
return
|
|
138023
|
+
|
|
138024
|
+
if (isIgnored(this, e))
|
|
138025
|
+
return
|
|
138026
|
+
|
|
138027
|
+
if (this.paused) {
|
|
138028
|
+
this._emitQueue.push([index, e])
|
|
138029
|
+
return
|
|
138030
|
+
}
|
|
138031
|
+
|
|
138032
|
+
var abs = isAbsolute(e) ? e : this._makeAbs(e)
|
|
138033
|
+
|
|
138034
|
+
if (this.mark)
|
|
138035
|
+
e = this._mark(e)
|
|
138036
|
+
|
|
138037
|
+
if (this.absolute)
|
|
138038
|
+
e = abs
|
|
138039
|
+
|
|
138040
|
+
if (this.matches[index][e])
|
|
138041
|
+
return
|
|
138042
|
+
|
|
138043
|
+
if (this.nodir) {
|
|
138044
|
+
var c = this.cache[abs]
|
|
138045
|
+
if (c === 'DIR' || Array.isArray(c))
|
|
138046
|
+
return
|
|
138047
|
+
}
|
|
138048
|
+
|
|
138049
|
+
this.matches[index][e] = true
|
|
138050
|
+
|
|
138051
|
+
var st = this.statCache[abs]
|
|
138052
|
+
if (st)
|
|
138053
|
+
this.emit('stat', e, st)
|
|
138054
|
+
|
|
138055
|
+
this.emit('match', e)
|
|
138056
|
+
}
|
|
138057
|
+
|
|
138058
|
+
Glob.prototype._readdirInGlobStar = function (abs, cb) {
|
|
138059
|
+
if (this.aborted)
|
|
138060
|
+
return
|
|
138061
|
+
|
|
138062
|
+
// follow all symlinked directories forever
|
|
138063
|
+
// just proceed as if this is a non-globstar situation
|
|
138064
|
+
if (this.follow)
|
|
138065
|
+
return this._readdir(abs, false, cb)
|
|
138066
|
+
|
|
138067
|
+
var lstatkey = 'lstat\0' + abs
|
|
138068
|
+
var self = this
|
|
138069
|
+
var lstatcb = inflight(lstatkey, lstatcb_)
|
|
138070
|
+
|
|
138071
|
+
if (lstatcb)
|
|
138072
|
+
self.fs.lstat(abs, lstatcb)
|
|
138073
|
+
|
|
138074
|
+
function lstatcb_ (er, lstat) {
|
|
138075
|
+
if (er && er.code === 'ENOENT')
|
|
138076
|
+
return cb()
|
|
138077
|
+
|
|
138078
|
+
var isSym = lstat && lstat.isSymbolicLink()
|
|
138079
|
+
self.symlinks[abs] = isSym
|
|
138080
|
+
|
|
138081
|
+
// If it's not a symlink or a dir, then it's definitely a regular file.
|
|
138082
|
+
// don't bother doing a readdir in that case.
|
|
138083
|
+
if (!isSym && lstat && !lstat.isDirectory()) {
|
|
138084
|
+
self.cache[abs] = 'FILE'
|
|
138085
|
+
cb()
|
|
138086
|
+
} else
|
|
138087
|
+
self._readdir(abs, false, cb)
|
|
138088
|
+
}
|
|
138089
|
+
}
|
|
138090
|
+
|
|
138091
|
+
Glob.prototype._readdir = function (abs, inGlobStar, cb) {
|
|
138092
|
+
if (this.aborted)
|
|
138093
|
+
return
|
|
138094
|
+
|
|
138095
|
+
cb = inflight('readdir\0'+abs+'\0'+inGlobStar, cb)
|
|
138096
|
+
if (!cb)
|
|
138097
|
+
return
|
|
138098
|
+
|
|
138099
|
+
//console.error('RD %j %j', +inGlobStar, abs)
|
|
138100
|
+
if (inGlobStar && !ownProp(this.symlinks, abs))
|
|
138101
|
+
return this._readdirInGlobStar(abs, cb)
|
|
138102
|
+
|
|
138103
|
+
if (ownProp(this.cache, abs)) {
|
|
138104
|
+
var c = this.cache[abs]
|
|
138105
|
+
if (!c || c === 'FILE')
|
|
138106
|
+
return cb()
|
|
138107
|
+
|
|
138108
|
+
if (Array.isArray(c))
|
|
138109
|
+
return cb(null, c)
|
|
138110
|
+
}
|
|
138111
|
+
|
|
138112
|
+
var self = this
|
|
138113
|
+
self.fs.readdir(abs, readdirCb(this, abs, cb))
|
|
138114
|
+
}
|
|
138115
|
+
|
|
138116
|
+
function readdirCb (self, abs, cb) {
|
|
138117
|
+
return function (er, entries) {
|
|
138118
|
+
if (er)
|
|
138119
|
+
self._readdirError(abs, er, cb)
|
|
138120
|
+
else
|
|
138121
|
+
self._readdirEntries(abs, entries, cb)
|
|
138122
|
+
}
|
|
138123
|
+
}
|
|
138124
|
+
|
|
138125
|
+
Glob.prototype._readdirEntries = function (abs, entries, cb) {
|
|
138126
|
+
if (this.aborted)
|
|
138127
|
+
return
|
|
138128
|
+
|
|
138129
|
+
// if we haven't asked to stat everything, then just
|
|
138130
|
+
// assume that everything in there exists, so we can avoid
|
|
138131
|
+
// having to stat it a second time.
|
|
138132
|
+
if (!this.mark && !this.stat) {
|
|
138133
|
+
for (var i = 0; i < entries.length; i ++) {
|
|
138134
|
+
var e = entries[i]
|
|
138135
|
+
if (abs === '/')
|
|
138136
|
+
e = abs + e
|
|
138137
|
+
else
|
|
138138
|
+
e = abs + '/' + e
|
|
138139
|
+
this.cache[e] = true
|
|
138140
|
+
}
|
|
138141
|
+
}
|
|
138142
|
+
|
|
138143
|
+
this.cache[abs] = entries
|
|
138144
|
+
return cb(null, entries)
|
|
138145
|
+
}
|
|
138146
|
+
|
|
138147
|
+
Glob.prototype._readdirError = function (f, er, cb) {
|
|
138148
|
+
if (this.aborted)
|
|
138149
|
+
return
|
|
138150
|
+
|
|
138151
|
+
// handle errors, and cache the information
|
|
138152
|
+
switch (er.code) {
|
|
138153
|
+
case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
|
|
138154
|
+
case 'ENOTDIR': // totally normal. means it *does* exist.
|
|
138155
|
+
var abs = this._makeAbs(f)
|
|
138156
|
+
this.cache[abs] = 'FILE'
|
|
138157
|
+
if (abs === this.cwdAbs) {
|
|
138158
|
+
var error = new Error(er.code + ' invalid cwd ' + this.cwd)
|
|
138159
|
+
error.path = this.cwd
|
|
138160
|
+
error.code = er.code
|
|
138161
|
+
this.emit('error', error)
|
|
138162
|
+
this.abort()
|
|
138163
|
+
}
|
|
138164
|
+
break
|
|
138165
|
+
|
|
138166
|
+
case 'ENOENT': // not terribly unusual
|
|
138167
|
+
case 'ELOOP':
|
|
138168
|
+
case 'ENAMETOOLONG':
|
|
138169
|
+
case 'UNKNOWN':
|
|
138170
|
+
this.cache[this._makeAbs(f)] = false
|
|
138171
|
+
break
|
|
138172
|
+
|
|
138173
|
+
default: // some unusual error. Treat as failure.
|
|
138174
|
+
this.cache[this._makeAbs(f)] = false
|
|
138175
|
+
if (this.strict) {
|
|
138176
|
+
this.emit('error', er)
|
|
138177
|
+
// If the error is handled, then we abort
|
|
138178
|
+
// if not, we threw out of here
|
|
138179
|
+
this.abort()
|
|
138180
|
+
}
|
|
138181
|
+
if (!this.silent)
|
|
138182
|
+
console.error('glob error', er)
|
|
138183
|
+
break
|
|
138184
|
+
}
|
|
138185
|
+
|
|
138186
|
+
return cb()
|
|
138187
|
+
}
|
|
138188
|
+
|
|
138189
|
+
Glob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) {
|
|
138190
|
+
var self = this
|
|
138191
|
+
this._readdir(abs, inGlobStar, function (er, entries) {
|
|
138192
|
+
self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb)
|
|
138193
|
+
})
|
|
138194
|
+
}
|
|
138195
|
+
|
|
138196
|
+
|
|
138197
|
+
Glob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {
|
|
138198
|
+
//console.error('pgs2', prefix, remain[0], entries)
|
|
138199
|
+
|
|
138200
|
+
// no entries means not a dir, so it can never have matches
|
|
138201
|
+
// foo.txt/** doesn't match foo.txt
|
|
138202
|
+
if (!entries)
|
|
138203
|
+
return cb()
|
|
138204
|
+
|
|
138205
|
+
// test without the globstar, and with every child both below
|
|
138206
|
+
// and replacing the globstar.
|
|
138207
|
+
var remainWithoutGlobStar = remain.slice(1)
|
|
138208
|
+
var gspref = prefix ? [ prefix ] : []
|
|
138209
|
+
var noGlobStar = gspref.concat(remainWithoutGlobStar)
|
|
138210
|
+
|
|
138211
|
+
// the noGlobStar pattern exits the inGlobStar state
|
|
138212
|
+
this._process(noGlobStar, index, false, cb)
|
|
138213
|
+
|
|
138214
|
+
var isSym = this.symlinks[abs]
|
|
138215
|
+
var len = entries.length
|
|
138216
|
+
|
|
138217
|
+
// If it's a symlink, and we're in a globstar, then stop
|
|
138218
|
+
if (isSym && inGlobStar)
|
|
138219
|
+
return cb()
|
|
138220
|
+
|
|
138221
|
+
for (var i = 0; i < len; i++) {
|
|
138222
|
+
var e = entries[i]
|
|
138223
|
+
if (e.charAt(0) === '.' && !this.dot)
|
|
138224
|
+
continue
|
|
138225
|
+
|
|
138226
|
+
// these two cases enter the inGlobStar state
|
|
138227
|
+
var instead = gspref.concat(entries[i], remainWithoutGlobStar)
|
|
138228
|
+
this._process(instead, index, true, cb)
|
|
138229
|
+
|
|
138230
|
+
var below = gspref.concat(entries[i], remain)
|
|
138231
|
+
this._process(below, index, true, cb)
|
|
138232
|
+
}
|
|
138233
|
+
|
|
138234
|
+
cb()
|
|
138235
|
+
}
|
|
138236
|
+
|
|
138237
|
+
Glob.prototype._processSimple = function (prefix, index, cb) {
|
|
138238
|
+
// XXX review this. Shouldn't it be doing the mounting etc
|
|
138239
|
+
// before doing stat? kinda weird?
|
|
138240
|
+
var self = this
|
|
138241
|
+
this._stat(prefix, function (er, exists) {
|
|
138242
|
+
self._processSimple2(prefix, index, er, exists, cb)
|
|
138243
|
+
})
|
|
138244
|
+
}
|
|
138245
|
+
Glob.prototype._processSimple2 = function (prefix, index, er, exists, cb) {
|
|
138246
|
+
|
|
138247
|
+
//console.error('ps2', prefix, exists)
|
|
138248
|
+
|
|
138249
|
+
if (!this.matches[index])
|
|
138250
|
+
this.matches[index] = Object.create(null)
|
|
138251
|
+
|
|
138252
|
+
// If it doesn't exist, then just mark the lack of results
|
|
138253
|
+
if (!exists)
|
|
138254
|
+
return cb()
|
|
138255
|
+
|
|
138256
|
+
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
138257
|
+
var trail = /[\/\\]$/.test(prefix)
|
|
138258
|
+
if (prefix.charAt(0) === '/') {
|
|
138259
|
+
prefix = path.join(this.root, prefix)
|
|
138260
|
+
} else {
|
|
138261
|
+
prefix = path.resolve(this.root, prefix)
|
|
138262
|
+
if (trail)
|
|
138263
|
+
prefix += '/'
|
|
138264
|
+
}
|
|
138265
|
+
}
|
|
138266
|
+
|
|
138267
|
+
if (process.platform === 'win32')
|
|
138268
|
+
prefix = prefix.replace(/\\/g, '/')
|
|
138269
|
+
|
|
138270
|
+
// Mark this as a match
|
|
138271
|
+
this._emitMatch(index, prefix)
|
|
138272
|
+
cb()
|
|
138273
|
+
}
|
|
138274
|
+
|
|
138275
|
+
// Returns either 'DIR', 'FILE', or false
|
|
138276
|
+
Glob.prototype._stat = function (f, cb) {
|
|
138277
|
+
var abs = this._makeAbs(f)
|
|
138278
|
+
var needDir = f.slice(-1) === '/'
|
|
138279
|
+
|
|
138280
|
+
if (f.length > this.maxLength)
|
|
138281
|
+
return cb()
|
|
138282
|
+
|
|
138283
|
+
if (!this.stat && ownProp(this.cache, abs)) {
|
|
138284
|
+
var c = this.cache[abs]
|
|
138285
|
+
|
|
138286
|
+
if (Array.isArray(c))
|
|
138287
|
+
c = 'DIR'
|
|
138288
|
+
|
|
138289
|
+
// It exists, but maybe not how we need it
|
|
138290
|
+
if (!needDir || c === 'DIR')
|
|
138291
|
+
return cb(null, c)
|
|
138292
|
+
|
|
138293
|
+
if (needDir && c === 'FILE')
|
|
138294
|
+
return cb()
|
|
138295
|
+
|
|
138296
|
+
// otherwise we have to stat, because maybe c=true
|
|
138297
|
+
// if we know it exists, but not what it is.
|
|
138298
|
+
}
|
|
138299
|
+
|
|
138300
|
+
var exists
|
|
138301
|
+
var stat = this.statCache[abs]
|
|
138302
|
+
if (stat !== undefined) {
|
|
138303
|
+
if (stat === false)
|
|
138304
|
+
return cb(null, stat)
|
|
138305
|
+
else {
|
|
138306
|
+
var type = stat.isDirectory() ? 'DIR' : 'FILE'
|
|
138307
|
+
if (needDir && type === 'FILE')
|
|
138308
|
+
return cb()
|
|
138309
|
+
else
|
|
138310
|
+
return cb(null, type, stat)
|
|
138311
|
+
}
|
|
138312
|
+
}
|
|
138313
|
+
|
|
138314
|
+
var self = this
|
|
138315
|
+
var statcb = inflight('stat\0' + abs, lstatcb_)
|
|
138316
|
+
if (statcb)
|
|
138317
|
+
self.fs.lstat(abs, statcb)
|
|
138318
|
+
|
|
138319
|
+
function lstatcb_ (er, lstat) {
|
|
138320
|
+
if (lstat && lstat.isSymbolicLink()) {
|
|
138321
|
+
// If it's a symlink, then treat it as the target, unless
|
|
138322
|
+
// the target does not exist, then treat it as a file.
|
|
138323
|
+
return self.fs.stat(abs, function (er, stat) {
|
|
138324
|
+
if (er)
|
|
138325
|
+
self._stat2(f, abs, null, lstat, cb)
|
|
138326
|
+
else
|
|
138327
|
+
self._stat2(f, abs, er, stat, cb)
|
|
138328
|
+
})
|
|
138329
|
+
} else {
|
|
138330
|
+
self._stat2(f, abs, er, lstat, cb)
|
|
138331
|
+
}
|
|
138332
|
+
}
|
|
138333
|
+
}
|
|
138334
|
+
|
|
138335
|
+
Glob.prototype._stat2 = function (f, abs, er, stat, cb) {
|
|
138336
|
+
if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
|
|
138337
|
+
this.statCache[abs] = false
|
|
138338
|
+
return cb()
|
|
138339
|
+
}
|
|
138340
|
+
|
|
138341
|
+
var needDir = f.slice(-1) === '/'
|
|
138342
|
+
this.statCache[abs] = stat
|
|
138343
|
+
|
|
138344
|
+
if (abs.slice(-1) === '/' && stat && !stat.isDirectory())
|
|
138345
|
+
return cb(null, false, stat)
|
|
138346
|
+
|
|
138347
|
+
var c = true
|
|
138348
|
+
if (stat)
|
|
138349
|
+
c = stat.isDirectory() ? 'DIR' : 'FILE'
|
|
138350
|
+
this.cache[abs] = this.cache[abs] || c
|
|
138351
|
+
|
|
138352
|
+
if (needDir && c === 'FILE')
|
|
138353
|
+
return cb()
|
|
138354
|
+
|
|
138355
|
+
return cb(null, c, stat)
|
|
138356
|
+
}
|
|
138357
|
+
|
|
138358
|
+
|
|
138359
|
+
/***/ }),
|
|
138360
|
+
|
|
138361
|
+
/***/ "./node_modules/glob/sync.js":
|
|
138362
|
+
/*!***********************************!*\
|
|
138363
|
+
!*** ./node_modules/glob/sync.js ***!
|
|
138364
|
+
\***********************************/
|
|
138365
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
138366
|
+
|
|
138367
|
+
module.exports = globSync
|
|
138368
|
+
globSync.GlobSync = GlobSync
|
|
138369
|
+
|
|
138370
|
+
var rp = __webpack_require__(/*! fs.realpath */ "./node_modules/fs.realpath/index.js")
|
|
138371
|
+
var minimatch = __webpack_require__(/*! minimatch */ "./node_modules/minimatch/minimatch.js")
|
|
138372
|
+
var Minimatch = minimatch.Minimatch
|
|
138373
|
+
var Glob = (__webpack_require__(/*! ./glob.js */ "./node_modules/glob/glob.js").Glob)
|
|
138374
|
+
var util = __webpack_require__(/*! util */ "util")
|
|
138375
|
+
var path = __webpack_require__(/*! path */ "path")
|
|
138376
|
+
var assert = __webpack_require__(/*! assert */ "assert")
|
|
138377
|
+
var isAbsolute = __webpack_require__(/*! path-is-absolute */ "./node_modules/path-is-absolute/index.js")
|
|
138378
|
+
var common = __webpack_require__(/*! ./common.js */ "./node_modules/glob/common.js")
|
|
138379
|
+
var setopts = common.setopts
|
|
138380
|
+
var ownProp = common.ownProp
|
|
138381
|
+
var childrenIgnored = common.childrenIgnored
|
|
138382
|
+
var isIgnored = common.isIgnored
|
|
138383
|
+
|
|
138384
|
+
function globSync (pattern, options) {
|
|
138385
|
+
if (typeof options === 'function' || arguments.length === 3)
|
|
138386
|
+
throw new TypeError('callback provided to sync glob\n'+
|
|
138387
|
+
'See: https://github.com/isaacs/node-glob/issues/167')
|
|
138388
|
+
|
|
138389
|
+
return new GlobSync(pattern, options).found
|
|
138390
|
+
}
|
|
138391
|
+
|
|
138392
|
+
function GlobSync (pattern, options) {
|
|
138393
|
+
if (!pattern)
|
|
138394
|
+
throw new Error('must provide pattern')
|
|
138395
|
+
|
|
138396
|
+
if (typeof options === 'function' || arguments.length === 3)
|
|
138397
|
+
throw new TypeError('callback provided to sync glob\n'+
|
|
138398
|
+
'See: https://github.com/isaacs/node-glob/issues/167')
|
|
138399
|
+
|
|
138400
|
+
if (!(this instanceof GlobSync))
|
|
138401
|
+
return new GlobSync(pattern, options)
|
|
138402
|
+
|
|
138403
|
+
setopts(this, pattern, options)
|
|
138404
|
+
|
|
138405
|
+
if (this.noprocess)
|
|
138406
|
+
return this
|
|
138407
|
+
|
|
138408
|
+
var n = this.minimatch.set.length
|
|
138409
|
+
this.matches = new Array(n)
|
|
138410
|
+
for (var i = 0; i < n; i ++) {
|
|
138411
|
+
this._process(this.minimatch.set[i], i, false)
|
|
138412
|
+
}
|
|
138413
|
+
this._finish()
|
|
138414
|
+
}
|
|
138415
|
+
|
|
138416
|
+
GlobSync.prototype._finish = function () {
|
|
138417
|
+
assert(this instanceof GlobSync)
|
|
138418
|
+
if (this.realpath) {
|
|
138419
|
+
var self = this
|
|
138420
|
+
this.matches.forEach(function (matchset, index) {
|
|
138421
|
+
var set = self.matches[index] = Object.create(null)
|
|
138422
|
+
for (var p in matchset) {
|
|
138423
|
+
try {
|
|
138424
|
+
p = self._makeAbs(p)
|
|
138425
|
+
var real = rp.realpathSync(p, self.realpathCache)
|
|
138426
|
+
set[real] = true
|
|
138427
|
+
} catch (er) {
|
|
138428
|
+
if (er.syscall === 'stat')
|
|
138429
|
+
set[self._makeAbs(p)] = true
|
|
138430
|
+
else
|
|
138431
|
+
throw er
|
|
138432
|
+
}
|
|
138433
|
+
}
|
|
138434
|
+
})
|
|
138435
|
+
}
|
|
138436
|
+
common.finish(this)
|
|
138437
|
+
}
|
|
138438
|
+
|
|
138439
|
+
|
|
138440
|
+
GlobSync.prototype._process = function (pattern, index, inGlobStar) {
|
|
138441
|
+
assert(this instanceof GlobSync)
|
|
138442
|
+
|
|
138443
|
+
// Get the first [n] parts of pattern that are all strings.
|
|
138444
|
+
var n = 0
|
|
138445
|
+
while (typeof pattern[n] === 'string') {
|
|
138446
|
+
n ++
|
|
138447
|
+
}
|
|
138448
|
+
// now n is the index of the first one that is *not* a string.
|
|
138449
|
+
|
|
138450
|
+
// See if there's anything else
|
|
138451
|
+
var prefix
|
|
138452
|
+
switch (n) {
|
|
138453
|
+
// if not, then this is rather simple
|
|
138454
|
+
case pattern.length:
|
|
138455
|
+
this._processSimple(pattern.join('/'), index)
|
|
138456
|
+
return
|
|
138457
|
+
|
|
138458
|
+
case 0:
|
|
138459
|
+
// pattern *starts* with some non-trivial item.
|
|
138460
|
+
// going to readdir(cwd), but not include the prefix in matches.
|
|
138461
|
+
prefix = null
|
|
138462
|
+
break
|
|
138463
|
+
|
|
138464
|
+
default:
|
|
138465
|
+
// pattern has some string bits in the front.
|
|
138466
|
+
// whatever it starts with, whether that's 'absolute' like /foo/bar,
|
|
138467
|
+
// or 'relative' like '../baz'
|
|
138468
|
+
prefix = pattern.slice(0, n).join('/')
|
|
138469
|
+
break
|
|
138470
|
+
}
|
|
138471
|
+
|
|
138472
|
+
var remain = pattern.slice(n)
|
|
138473
|
+
|
|
138474
|
+
// get the list of entries.
|
|
138475
|
+
var read
|
|
138476
|
+
if (prefix === null)
|
|
138477
|
+
read = '.'
|
|
138478
|
+
else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {
|
|
138479
|
+
if (!prefix || !isAbsolute(prefix))
|
|
138480
|
+
prefix = '/' + prefix
|
|
138481
|
+
read = prefix
|
|
138482
|
+
} else
|
|
138483
|
+
read = prefix
|
|
138484
|
+
|
|
138485
|
+
var abs = this._makeAbs(read)
|
|
138486
|
+
|
|
138487
|
+
//if ignored, skip processing
|
|
138488
|
+
if (childrenIgnored(this, read))
|
|
138489
|
+
return
|
|
138490
|
+
|
|
138491
|
+
var isGlobStar = remain[0] === minimatch.GLOBSTAR
|
|
138492
|
+
if (isGlobStar)
|
|
138493
|
+
this._processGlobStar(prefix, read, abs, remain, index, inGlobStar)
|
|
138494
|
+
else
|
|
138495
|
+
this._processReaddir(prefix, read, abs, remain, index, inGlobStar)
|
|
138496
|
+
}
|
|
138497
|
+
|
|
138498
|
+
|
|
138499
|
+
GlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) {
|
|
138500
|
+
var entries = this._readdir(abs, inGlobStar)
|
|
138501
|
+
|
|
138502
|
+
// if the abs isn't a dir, then nothing can match!
|
|
138503
|
+
if (!entries)
|
|
138504
|
+
return
|
|
138505
|
+
|
|
138506
|
+
// It will only match dot entries if it starts with a dot, or if
|
|
138507
|
+
// dot is set. Stuff like @(.foo|.bar) isn't allowed.
|
|
138508
|
+
var pn = remain[0]
|
|
138509
|
+
var negate = !!this.minimatch.negate
|
|
138510
|
+
var rawGlob = pn._glob
|
|
138511
|
+
var dotOk = this.dot || rawGlob.charAt(0) === '.'
|
|
138512
|
+
|
|
138513
|
+
var matchedEntries = []
|
|
138514
|
+
for (var i = 0; i < entries.length; i++) {
|
|
138515
|
+
var e = entries[i]
|
|
138516
|
+
if (e.charAt(0) !== '.' || dotOk) {
|
|
138517
|
+
var m
|
|
138518
|
+
if (negate && !prefix) {
|
|
138519
|
+
m = !e.match(pn)
|
|
138520
|
+
} else {
|
|
138521
|
+
m = e.match(pn)
|
|
138522
|
+
}
|
|
138523
|
+
if (m)
|
|
138524
|
+
matchedEntries.push(e)
|
|
138525
|
+
}
|
|
138526
|
+
}
|
|
138527
|
+
|
|
138528
|
+
var len = matchedEntries.length
|
|
138529
|
+
// If there are no matched entries, then nothing matches.
|
|
138530
|
+
if (len === 0)
|
|
138531
|
+
return
|
|
138532
|
+
|
|
138533
|
+
// if this is the last remaining pattern bit, then no need for
|
|
138534
|
+
// an additional stat *unless* the user has specified mark or
|
|
138535
|
+
// stat explicitly. We know they exist, since readdir returned
|
|
138536
|
+
// them.
|
|
138537
|
+
|
|
138538
|
+
if (remain.length === 1 && !this.mark && !this.stat) {
|
|
138539
|
+
if (!this.matches[index])
|
|
138540
|
+
this.matches[index] = Object.create(null)
|
|
138541
|
+
|
|
138542
|
+
for (var i = 0; i < len; i ++) {
|
|
138543
|
+
var e = matchedEntries[i]
|
|
138544
|
+
if (prefix) {
|
|
138545
|
+
if (prefix.slice(-1) !== '/')
|
|
138546
|
+
e = prefix + '/' + e
|
|
138547
|
+
else
|
|
138548
|
+
e = prefix + e
|
|
138549
|
+
}
|
|
138550
|
+
|
|
138551
|
+
if (e.charAt(0) === '/' && !this.nomount) {
|
|
138552
|
+
e = path.join(this.root, e)
|
|
138553
|
+
}
|
|
138554
|
+
this._emitMatch(index, e)
|
|
138555
|
+
}
|
|
138556
|
+
// This was the last one, and no stats were needed
|
|
138557
|
+
return
|
|
138558
|
+
}
|
|
138559
|
+
|
|
138560
|
+
// now test all matched entries as stand-ins for that part
|
|
138561
|
+
// of the pattern.
|
|
138562
|
+
remain.shift()
|
|
138563
|
+
for (var i = 0; i < len; i ++) {
|
|
138564
|
+
var e = matchedEntries[i]
|
|
138565
|
+
var newPattern
|
|
138566
|
+
if (prefix)
|
|
138567
|
+
newPattern = [prefix, e]
|
|
138568
|
+
else
|
|
138569
|
+
newPattern = [e]
|
|
138570
|
+
this._process(newPattern.concat(remain), index, inGlobStar)
|
|
138571
|
+
}
|
|
138572
|
+
}
|
|
138573
|
+
|
|
138574
|
+
|
|
138575
|
+
GlobSync.prototype._emitMatch = function (index, e) {
|
|
138576
|
+
if (isIgnored(this, e))
|
|
138577
|
+
return
|
|
138578
|
+
|
|
138579
|
+
var abs = this._makeAbs(e)
|
|
138580
|
+
|
|
138581
|
+
if (this.mark)
|
|
138582
|
+
e = this._mark(e)
|
|
138583
|
+
|
|
138584
|
+
if (this.absolute) {
|
|
138585
|
+
e = abs
|
|
138586
|
+
}
|
|
138587
|
+
|
|
138588
|
+
if (this.matches[index][e])
|
|
138589
|
+
return
|
|
138590
|
+
|
|
138591
|
+
if (this.nodir) {
|
|
138592
|
+
var c = this.cache[abs]
|
|
138593
|
+
if (c === 'DIR' || Array.isArray(c))
|
|
138594
|
+
return
|
|
138595
|
+
}
|
|
138596
|
+
|
|
138597
|
+
this.matches[index][e] = true
|
|
138598
|
+
|
|
138599
|
+
if (this.stat)
|
|
138600
|
+
this._stat(e)
|
|
138601
|
+
}
|
|
138602
|
+
|
|
138603
|
+
|
|
138604
|
+
GlobSync.prototype._readdirInGlobStar = function (abs) {
|
|
138605
|
+
// follow all symlinked directories forever
|
|
138606
|
+
// just proceed as if this is a non-globstar situation
|
|
138607
|
+
if (this.follow)
|
|
138608
|
+
return this._readdir(abs, false)
|
|
138609
|
+
|
|
138610
|
+
var entries
|
|
138611
|
+
var lstat
|
|
138612
|
+
var stat
|
|
138613
|
+
try {
|
|
138614
|
+
lstat = this.fs.lstatSync(abs)
|
|
138615
|
+
} catch (er) {
|
|
138616
|
+
if (er.code === 'ENOENT') {
|
|
138617
|
+
// lstat failed, doesn't exist
|
|
138618
|
+
return null
|
|
138619
|
+
}
|
|
138620
|
+
}
|
|
138621
|
+
|
|
138622
|
+
var isSym = lstat && lstat.isSymbolicLink()
|
|
138623
|
+
this.symlinks[abs] = isSym
|
|
138624
|
+
|
|
138625
|
+
// If it's not a symlink or a dir, then it's definitely a regular file.
|
|
138626
|
+
// don't bother doing a readdir in that case.
|
|
138627
|
+
if (!isSym && lstat && !lstat.isDirectory())
|
|
138628
|
+
this.cache[abs] = 'FILE'
|
|
138629
|
+
else
|
|
138630
|
+
entries = this._readdir(abs, false)
|
|
138631
|
+
|
|
138632
|
+
return entries
|
|
138633
|
+
}
|
|
138634
|
+
|
|
138635
|
+
GlobSync.prototype._readdir = function (abs, inGlobStar) {
|
|
138636
|
+
var entries
|
|
138637
|
+
|
|
138638
|
+
if (inGlobStar && !ownProp(this.symlinks, abs))
|
|
138639
|
+
return this._readdirInGlobStar(abs)
|
|
138640
|
+
|
|
138641
|
+
if (ownProp(this.cache, abs)) {
|
|
138642
|
+
var c = this.cache[abs]
|
|
138643
|
+
if (!c || c === 'FILE')
|
|
138644
|
+
return null
|
|
138645
|
+
|
|
138646
|
+
if (Array.isArray(c))
|
|
138647
|
+
return c
|
|
138648
|
+
}
|
|
138649
|
+
|
|
138650
|
+
try {
|
|
138651
|
+
return this._readdirEntries(abs, this.fs.readdirSync(abs))
|
|
138652
|
+
} catch (er) {
|
|
138653
|
+
this._readdirError(abs, er)
|
|
138654
|
+
return null
|
|
138655
|
+
}
|
|
138656
|
+
}
|
|
138657
|
+
|
|
138658
|
+
GlobSync.prototype._readdirEntries = function (abs, entries) {
|
|
138659
|
+
// if we haven't asked to stat everything, then just
|
|
138660
|
+
// assume that everything in there exists, so we can avoid
|
|
138661
|
+
// having to stat it a second time.
|
|
138662
|
+
if (!this.mark && !this.stat) {
|
|
138663
|
+
for (var i = 0; i < entries.length; i ++) {
|
|
138664
|
+
var e = entries[i]
|
|
138665
|
+
if (abs === '/')
|
|
138666
|
+
e = abs + e
|
|
138667
|
+
else
|
|
138668
|
+
e = abs + '/' + e
|
|
138669
|
+
this.cache[e] = true
|
|
138670
|
+
}
|
|
138671
|
+
}
|
|
138672
|
+
|
|
138673
|
+
this.cache[abs] = entries
|
|
138674
|
+
|
|
138675
|
+
// mark and cache dir-ness
|
|
138676
|
+
return entries
|
|
138677
|
+
}
|
|
138678
|
+
|
|
138679
|
+
GlobSync.prototype._readdirError = function (f, er) {
|
|
138680
|
+
// handle errors, and cache the information
|
|
138681
|
+
switch (er.code) {
|
|
138682
|
+
case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
|
|
138683
|
+
case 'ENOTDIR': // totally normal. means it *does* exist.
|
|
138684
|
+
var abs = this._makeAbs(f)
|
|
138685
|
+
this.cache[abs] = 'FILE'
|
|
138686
|
+
if (abs === this.cwdAbs) {
|
|
138687
|
+
var error = new Error(er.code + ' invalid cwd ' + this.cwd)
|
|
138688
|
+
error.path = this.cwd
|
|
138689
|
+
error.code = er.code
|
|
138690
|
+
throw error
|
|
138691
|
+
}
|
|
138692
|
+
break
|
|
138693
|
+
|
|
138694
|
+
case 'ENOENT': // not terribly unusual
|
|
138695
|
+
case 'ELOOP':
|
|
138696
|
+
case 'ENAMETOOLONG':
|
|
138697
|
+
case 'UNKNOWN':
|
|
138698
|
+
this.cache[this._makeAbs(f)] = false
|
|
138699
|
+
break
|
|
138700
|
+
|
|
138701
|
+
default: // some unusual error. Treat as failure.
|
|
138702
|
+
this.cache[this._makeAbs(f)] = false
|
|
138703
|
+
if (this.strict)
|
|
138704
|
+
throw er
|
|
138705
|
+
if (!this.silent)
|
|
138706
|
+
console.error('glob error', er)
|
|
138707
|
+
break
|
|
138708
|
+
}
|
|
138709
|
+
}
|
|
138710
|
+
|
|
138711
|
+
GlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) {
|
|
138712
|
+
|
|
138713
|
+
var entries = this._readdir(abs, inGlobStar)
|
|
138714
|
+
|
|
138715
|
+
// no entries means not a dir, so it can never have matches
|
|
138716
|
+
// foo.txt/** doesn't match foo.txt
|
|
138717
|
+
if (!entries)
|
|
138718
|
+
return
|
|
138719
|
+
|
|
138720
|
+
// test without the globstar, and with every child both below
|
|
138721
|
+
// and replacing the globstar.
|
|
138722
|
+
var remainWithoutGlobStar = remain.slice(1)
|
|
138723
|
+
var gspref = prefix ? [ prefix ] : []
|
|
138724
|
+
var noGlobStar = gspref.concat(remainWithoutGlobStar)
|
|
138725
|
+
|
|
138726
|
+
// the noGlobStar pattern exits the inGlobStar state
|
|
138727
|
+
this._process(noGlobStar, index, false)
|
|
138728
|
+
|
|
138729
|
+
var len = entries.length
|
|
138730
|
+
var isSym = this.symlinks[abs]
|
|
138731
|
+
|
|
138732
|
+
// If it's a symlink, and we're in a globstar, then stop
|
|
138733
|
+
if (isSym && inGlobStar)
|
|
138734
|
+
return
|
|
138735
|
+
|
|
138736
|
+
for (var i = 0; i < len; i++) {
|
|
138737
|
+
var e = entries[i]
|
|
138738
|
+
if (e.charAt(0) === '.' && !this.dot)
|
|
138739
|
+
continue
|
|
138740
|
+
|
|
138741
|
+
// these two cases enter the inGlobStar state
|
|
138742
|
+
var instead = gspref.concat(entries[i], remainWithoutGlobStar)
|
|
138743
|
+
this._process(instead, index, true)
|
|
138744
|
+
|
|
138745
|
+
var below = gspref.concat(entries[i], remain)
|
|
138746
|
+
this._process(below, index, true)
|
|
138747
|
+
}
|
|
138748
|
+
}
|
|
138749
|
+
|
|
138750
|
+
GlobSync.prototype._processSimple = function (prefix, index) {
|
|
138751
|
+
// XXX review this. Shouldn't it be doing the mounting etc
|
|
138752
|
+
// before doing stat? kinda weird?
|
|
138753
|
+
var exists = this._stat(prefix)
|
|
138754
|
+
|
|
138755
|
+
if (!this.matches[index])
|
|
138756
|
+
this.matches[index] = Object.create(null)
|
|
138757
|
+
|
|
138758
|
+
// If it doesn't exist, then just mark the lack of results
|
|
138759
|
+
if (!exists)
|
|
138760
|
+
return
|
|
138761
|
+
|
|
138762
|
+
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
138763
|
+
var trail = /[\/\\]$/.test(prefix)
|
|
138764
|
+
if (prefix.charAt(0) === '/') {
|
|
138765
|
+
prefix = path.join(this.root, prefix)
|
|
138766
|
+
} else {
|
|
138767
|
+
prefix = path.resolve(this.root, prefix)
|
|
138768
|
+
if (trail)
|
|
138769
|
+
prefix += '/'
|
|
138770
|
+
}
|
|
138771
|
+
}
|
|
138772
|
+
|
|
138773
|
+
if (process.platform === 'win32')
|
|
138774
|
+
prefix = prefix.replace(/\\/g, '/')
|
|
138775
|
+
|
|
138776
|
+
// Mark this as a match
|
|
138777
|
+
this._emitMatch(index, prefix)
|
|
138778
|
+
}
|
|
138779
|
+
|
|
138780
|
+
// Returns either 'DIR', 'FILE', or false
|
|
138781
|
+
GlobSync.prototype._stat = function (f) {
|
|
138782
|
+
var abs = this._makeAbs(f)
|
|
138783
|
+
var needDir = f.slice(-1) === '/'
|
|
138784
|
+
|
|
138785
|
+
if (f.length > this.maxLength)
|
|
138786
|
+
return false
|
|
138787
|
+
|
|
138788
|
+
if (!this.stat && ownProp(this.cache, abs)) {
|
|
138789
|
+
var c = this.cache[abs]
|
|
138790
|
+
|
|
138791
|
+
if (Array.isArray(c))
|
|
138792
|
+
c = 'DIR'
|
|
138793
|
+
|
|
138794
|
+
// It exists, but maybe not how we need it
|
|
138795
|
+
if (!needDir || c === 'DIR')
|
|
138796
|
+
return c
|
|
138797
|
+
|
|
138798
|
+
if (needDir && c === 'FILE')
|
|
138799
|
+
return false
|
|
138800
|
+
|
|
138801
|
+
// otherwise we have to stat, because maybe c=true
|
|
138802
|
+
// if we know it exists, but not what it is.
|
|
138803
|
+
}
|
|
138804
|
+
|
|
138805
|
+
var exists
|
|
138806
|
+
var stat = this.statCache[abs]
|
|
138807
|
+
if (!stat) {
|
|
138808
|
+
var lstat
|
|
138809
|
+
try {
|
|
138810
|
+
lstat = this.fs.lstatSync(abs)
|
|
138811
|
+
} catch (er) {
|
|
138812
|
+
if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
|
|
138813
|
+
this.statCache[abs] = false
|
|
138814
|
+
return false
|
|
138815
|
+
}
|
|
138816
|
+
}
|
|
138817
|
+
|
|
138818
|
+
if (lstat && lstat.isSymbolicLink()) {
|
|
138819
|
+
try {
|
|
138820
|
+
stat = this.fs.statSync(abs)
|
|
138821
|
+
} catch (er) {
|
|
138822
|
+
stat = lstat
|
|
138823
|
+
}
|
|
138824
|
+
} else {
|
|
138825
|
+
stat = lstat
|
|
138826
|
+
}
|
|
138827
|
+
}
|
|
138828
|
+
|
|
138829
|
+
this.statCache[abs] = stat
|
|
138830
|
+
|
|
138831
|
+
var c = true
|
|
138832
|
+
if (stat)
|
|
138833
|
+
c = stat.isDirectory() ? 'DIR' : 'FILE'
|
|
138834
|
+
|
|
138835
|
+
this.cache[abs] = this.cache[abs] || c
|
|
138836
|
+
|
|
138837
|
+
if (needDir && c === 'FILE')
|
|
138838
|
+
return false
|
|
138839
|
+
|
|
138840
|
+
return c
|
|
138841
|
+
}
|
|
138842
|
+
|
|
138843
|
+
GlobSync.prototype._mark = function (p) {
|
|
138844
|
+
return common.mark(this, p)
|
|
138845
|
+
}
|
|
138846
|
+
|
|
138847
|
+
GlobSync.prototype._makeAbs = function (f) {
|
|
138848
|
+
return common.makeAbs(this, f)
|
|
138849
|
+
}
|
|
138850
|
+
|
|
138851
|
+
|
|
136821
138852
|
/***/ }),
|
|
136822
138853
|
|
|
136823
138854
|
/***/ "./node_modules/globals/index.js":
|
|
@@ -137851,6 +139882,126 @@ var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bin
|
|
|
137851
139882
|
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
137852
139883
|
|
|
137853
139884
|
|
|
139885
|
+
/***/ }),
|
|
139886
|
+
|
|
139887
|
+
/***/ "./node_modules/inflight/inflight.js":
|
|
139888
|
+
/*!*******************************************!*\
|
|
139889
|
+
!*** ./node_modules/inflight/inflight.js ***!
|
|
139890
|
+
\*******************************************/
|
|
139891
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
139892
|
+
|
|
139893
|
+
var wrappy = __webpack_require__(/*! wrappy */ "./node_modules/wrappy/wrappy.js")
|
|
139894
|
+
var reqs = Object.create(null)
|
|
139895
|
+
var once = __webpack_require__(/*! once */ "./node_modules/once/once.js")
|
|
139896
|
+
|
|
139897
|
+
module.exports = wrappy(inflight)
|
|
139898
|
+
|
|
139899
|
+
function inflight (key, cb) {
|
|
139900
|
+
if (reqs[key]) {
|
|
139901
|
+
reqs[key].push(cb)
|
|
139902
|
+
return null
|
|
139903
|
+
} else {
|
|
139904
|
+
reqs[key] = [cb]
|
|
139905
|
+
return makeres(key)
|
|
139906
|
+
}
|
|
139907
|
+
}
|
|
139908
|
+
|
|
139909
|
+
function makeres (key) {
|
|
139910
|
+
return once(function RES () {
|
|
139911
|
+
var cbs = reqs[key]
|
|
139912
|
+
var len = cbs.length
|
|
139913
|
+
var args = slice(arguments)
|
|
139914
|
+
|
|
139915
|
+
// XXX It's somewhat ambiguous whether a new callback added in this
|
|
139916
|
+
// pass should be queued for later execution if something in the
|
|
139917
|
+
// list of callbacks throws, or if it should just be discarded.
|
|
139918
|
+
// However, it's such an edge case that it hardly matters, and either
|
|
139919
|
+
// choice is likely as surprising as the other.
|
|
139920
|
+
// As it happens, we do go ahead and schedule it for later execution.
|
|
139921
|
+
try {
|
|
139922
|
+
for (var i = 0; i < len; i++) {
|
|
139923
|
+
cbs[i].apply(null, args)
|
|
139924
|
+
}
|
|
139925
|
+
} finally {
|
|
139926
|
+
if (cbs.length > len) {
|
|
139927
|
+
// added more in the interim.
|
|
139928
|
+
// de-zalgo, just in case, but don't call again.
|
|
139929
|
+
cbs.splice(0, len)
|
|
139930
|
+
process.nextTick(function () {
|
|
139931
|
+
RES.apply(null, args)
|
|
139932
|
+
})
|
|
139933
|
+
} else {
|
|
139934
|
+
delete reqs[key]
|
|
139935
|
+
}
|
|
139936
|
+
}
|
|
139937
|
+
})
|
|
139938
|
+
}
|
|
139939
|
+
|
|
139940
|
+
function slice (args) {
|
|
139941
|
+
var length = args.length
|
|
139942
|
+
var array = []
|
|
139943
|
+
|
|
139944
|
+
for (var i = 0; i < length; i++) array[i] = args[i]
|
|
139945
|
+
return array
|
|
139946
|
+
}
|
|
139947
|
+
|
|
139948
|
+
|
|
139949
|
+
/***/ }),
|
|
139950
|
+
|
|
139951
|
+
/***/ "./node_modules/inherits/inherits.js":
|
|
139952
|
+
/*!*******************************************!*\
|
|
139953
|
+
!*** ./node_modules/inherits/inherits.js ***!
|
|
139954
|
+
\*******************************************/
|
|
139955
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
139956
|
+
|
|
139957
|
+
try {
|
|
139958
|
+
var util = __webpack_require__(/*! util */ "util");
|
|
139959
|
+
/* istanbul ignore next */
|
|
139960
|
+
if (typeof util.inherits !== 'function') throw '';
|
|
139961
|
+
module.exports = util.inherits;
|
|
139962
|
+
} catch (e) {
|
|
139963
|
+
/* istanbul ignore next */
|
|
139964
|
+
module.exports = __webpack_require__(/*! ./inherits_browser.js */ "./node_modules/inherits/inherits_browser.js");
|
|
139965
|
+
}
|
|
139966
|
+
|
|
139967
|
+
|
|
139968
|
+
/***/ }),
|
|
139969
|
+
|
|
139970
|
+
/***/ "./node_modules/inherits/inherits_browser.js":
|
|
139971
|
+
/*!***************************************************!*\
|
|
139972
|
+
!*** ./node_modules/inherits/inherits_browser.js ***!
|
|
139973
|
+
\***************************************************/
|
|
139974
|
+
/***/ ((module) => {
|
|
139975
|
+
|
|
139976
|
+
if (typeof Object.create === 'function') {
|
|
139977
|
+
// implementation from standard node.js 'util' module
|
|
139978
|
+
module.exports = function inherits(ctor, superCtor) {
|
|
139979
|
+
if (superCtor) {
|
|
139980
|
+
ctor.super_ = superCtor
|
|
139981
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
139982
|
+
constructor: {
|
|
139983
|
+
value: ctor,
|
|
139984
|
+
enumerable: false,
|
|
139985
|
+
writable: true,
|
|
139986
|
+
configurable: true
|
|
139987
|
+
}
|
|
139988
|
+
})
|
|
139989
|
+
}
|
|
139990
|
+
};
|
|
139991
|
+
} else {
|
|
139992
|
+
// old school shim for old browsers
|
|
139993
|
+
module.exports = function inherits(ctor, superCtor) {
|
|
139994
|
+
if (superCtor) {
|
|
139995
|
+
ctor.super_ = superCtor
|
|
139996
|
+
var TempCtor = function () {}
|
|
139997
|
+
TempCtor.prototype = superCtor.prototype
|
|
139998
|
+
ctor.prototype = new TempCtor()
|
|
139999
|
+
ctor.prototype.constructor = ctor
|
|
140000
|
+
}
|
|
140001
|
+
}
|
|
140002
|
+
}
|
|
140003
|
+
|
|
140004
|
+
|
|
137854
140005
|
/***/ }),
|
|
137855
140006
|
|
|
137856
140007
|
/***/ "./node_modules/is-buffer/index.js":
|
|
@@ -145321,6 +147472,89 @@ function regExpEscape (s) {
|
|
|
145321
147472
|
}
|
|
145322
147473
|
|
|
145323
147474
|
|
|
147475
|
+
/***/ }),
|
|
147476
|
+
|
|
147477
|
+
/***/ "./node_modules/once/once.js":
|
|
147478
|
+
/*!***********************************!*\
|
|
147479
|
+
!*** ./node_modules/once/once.js ***!
|
|
147480
|
+
\***********************************/
|
|
147481
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
147482
|
+
|
|
147483
|
+
var wrappy = __webpack_require__(/*! wrappy */ "./node_modules/wrappy/wrappy.js")
|
|
147484
|
+
module.exports = wrappy(once)
|
|
147485
|
+
module.exports.strict = wrappy(onceStrict)
|
|
147486
|
+
|
|
147487
|
+
once.proto = once(function () {
|
|
147488
|
+
Object.defineProperty(Function.prototype, 'once', {
|
|
147489
|
+
value: function () {
|
|
147490
|
+
return once(this)
|
|
147491
|
+
},
|
|
147492
|
+
configurable: true
|
|
147493
|
+
})
|
|
147494
|
+
|
|
147495
|
+
Object.defineProperty(Function.prototype, 'onceStrict', {
|
|
147496
|
+
value: function () {
|
|
147497
|
+
return onceStrict(this)
|
|
147498
|
+
},
|
|
147499
|
+
configurable: true
|
|
147500
|
+
})
|
|
147501
|
+
})
|
|
147502
|
+
|
|
147503
|
+
function once (fn) {
|
|
147504
|
+
var f = function () {
|
|
147505
|
+
if (f.called) return f.value
|
|
147506
|
+
f.called = true
|
|
147507
|
+
return f.value = fn.apply(this, arguments)
|
|
147508
|
+
}
|
|
147509
|
+
f.called = false
|
|
147510
|
+
return f
|
|
147511
|
+
}
|
|
147512
|
+
|
|
147513
|
+
function onceStrict (fn) {
|
|
147514
|
+
var f = function () {
|
|
147515
|
+
if (f.called)
|
|
147516
|
+
throw new Error(f.onceError)
|
|
147517
|
+
f.called = true
|
|
147518
|
+
return f.value = fn.apply(this, arguments)
|
|
147519
|
+
}
|
|
147520
|
+
var name = fn.name || 'Function wrapped with `once`'
|
|
147521
|
+
f.onceError = name + " shouldn't be called more than once"
|
|
147522
|
+
f.called = false
|
|
147523
|
+
return f
|
|
147524
|
+
}
|
|
147525
|
+
|
|
147526
|
+
|
|
147527
|
+
/***/ }),
|
|
147528
|
+
|
|
147529
|
+
/***/ "./node_modules/path-is-absolute/index.js":
|
|
147530
|
+
/*!************************************************!*\
|
|
147531
|
+
!*** ./node_modules/path-is-absolute/index.js ***!
|
|
147532
|
+
\************************************************/
|
|
147533
|
+
/***/ ((module) => {
|
|
147534
|
+
|
|
147535
|
+
"use strict";
|
|
147536
|
+
|
|
147537
|
+
|
|
147538
|
+
function posix(path) {
|
|
147539
|
+
return path.charAt(0) === '/';
|
|
147540
|
+
}
|
|
147541
|
+
|
|
147542
|
+
function win32(path) {
|
|
147543
|
+
// https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56
|
|
147544
|
+
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
|
147545
|
+
var result = splitDeviceRe.exec(path);
|
|
147546
|
+
var device = result[1] || '';
|
|
147547
|
+
var isUnc = Boolean(device && device.charAt(1) !== ':');
|
|
147548
|
+
|
|
147549
|
+
// UNC paths are always absolute
|
|
147550
|
+
return Boolean(result[2] || isUnc);
|
|
147551
|
+
}
|
|
147552
|
+
|
|
147553
|
+
module.exports = process.platform === 'win32' ? win32 : posix;
|
|
147554
|
+
module.exports.posix = posix;
|
|
147555
|
+
module.exports.win32 = win32;
|
|
147556
|
+
|
|
147557
|
+
|
|
145324
147558
|
/***/ }),
|
|
145325
147559
|
|
|
145326
147560
|
/***/ "./node_modules/path-parse/index.js":
|
|
@@ -163721,6 +165955,49 @@ exports.fromPromise = function (fn) {
|
|
|
163721
165955
|
}
|
|
163722
165956
|
|
|
163723
165957
|
|
|
165958
|
+
/***/ }),
|
|
165959
|
+
|
|
165960
|
+
/***/ "./node_modules/wrappy/wrappy.js":
|
|
165961
|
+
/*!***************************************!*\
|
|
165962
|
+
!*** ./node_modules/wrappy/wrappy.js ***!
|
|
165963
|
+
\***************************************/
|
|
165964
|
+
/***/ ((module) => {
|
|
165965
|
+
|
|
165966
|
+
// Returns a wrapper function that returns a wrapped callback
|
|
165967
|
+
// The wrapper function should do some stuff, and return a
|
|
165968
|
+
// presumably different callback function.
|
|
165969
|
+
// This makes sure that own properties are retained, so that
|
|
165970
|
+
// decorations and such are not lost along the way.
|
|
165971
|
+
module.exports = wrappy
|
|
165972
|
+
function wrappy (fn, cb) {
|
|
165973
|
+
if (fn && cb) return wrappy(fn)(cb)
|
|
165974
|
+
|
|
165975
|
+
if (typeof fn !== 'function')
|
|
165976
|
+
throw new TypeError('need wrapper function')
|
|
165977
|
+
|
|
165978
|
+
Object.keys(fn).forEach(function (k) {
|
|
165979
|
+
wrapper[k] = fn[k]
|
|
165980
|
+
})
|
|
165981
|
+
|
|
165982
|
+
return wrapper
|
|
165983
|
+
|
|
165984
|
+
function wrapper() {
|
|
165985
|
+
var args = new Array(arguments.length)
|
|
165986
|
+
for (var i = 0; i < args.length; i++) {
|
|
165987
|
+
args[i] = arguments[i]
|
|
165988
|
+
}
|
|
165989
|
+
var ret = fn.apply(this, args)
|
|
165990
|
+
var cb = args[args.length-1]
|
|
165991
|
+
if (typeof ret === 'function' && ret !== cb) {
|
|
165992
|
+
Object.keys(cb).forEach(function (k) {
|
|
165993
|
+
ret[k] = cb[k]
|
|
165994
|
+
})
|
|
165995
|
+
}
|
|
165996
|
+
return ret
|
|
165997
|
+
}
|
|
165998
|
+
}
|
|
165999
|
+
|
|
166000
|
+
|
|
163724
166001
|
/***/ }),
|
|
163725
166002
|
|
|
163726
166003
|
/***/ "assert":
|
|
@@ -163767,6 +166044,17 @@ module.exports = require("crypto");
|
|
|
163767
166044
|
|
|
163768
166045
|
/***/ }),
|
|
163769
166046
|
|
|
166047
|
+
/***/ "events":
|
|
166048
|
+
/*!*************************!*\
|
|
166049
|
+
!*** external "events" ***!
|
|
166050
|
+
\*************************/
|
|
166051
|
+
/***/ ((module) => {
|
|
166052
|
+
|
|
166053
|
+
"use strict";
|
|
166054
|
+
module.exports = require("events");
|
|
166055
|
+
|
|
166056
|
+
/***/ }),
|
|
166057
|
+
|
|
163770
166058
|
/***/ "fs":
|
|
163771
166059
|
/*!*********************!*\
|
|
163772
166060
|
!*** external "fs" ***!
|