@bit-sun/business-component 2.4.13 → 2.4.15-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +16 -16
- package/.fatherrc.ts +5 -5
- package/.gitlab-ci.yml +179 -179
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -74
- package/README.md +27 -27
- package/dist/index.js +336 -265
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +79 -79
- package/src/assets/32.svg +27 -27
- package/src/assets/addIcon.svg +17 -17
- package/src/assets/allfunc.svg +27 -27
- package/src/assets/arrowRight.svg +24 -24
- package/src/assets/btn-delete.svg +29 -29
- package/src/assets/btn-edit.svg +19 -19
- package/src/assets/btn-more.svg +17 -17
- package/src/assets/btn-submit.svg +19 -19
- package/src/assets/caidan.svg +11 -11
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +11 -11
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right-active.svg +11 -11
- package/src/assets/fixed-right.svg +15 -15
- package/src/assets/guanbi.svg +15 -15
- package/src/assets/icon-quanping.svg +15 -15
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/list-no-img.svg +21 -21
- package/src/assets/morentouxiang-32.svg +23 -23
- package/src/assets/scanning.svg +24 -24
- package/src/assets/upExport.svg +22 -22
- package/src/common/ENUM.ts +41 -41
- package/src/components/Business/AddSelectBusiness/index.md +162 -162
- package/src/components/Business/AddSelectBusiness/index.tsx +1061 -1061
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1484 -1484
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +566 -566
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +538 -538
- package/src/components/Business/BsSulaQueryTable/setting.tsx +854 -854
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -690
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +79 -79
- package/src/components/Business/DetailPageWrapper/index.tsx +315 -315
- package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
- package/src/components/Business/HomePageWrapper/index.less +33 -33
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/Formula.tsx +206 -206
- package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
- package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
- package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
- package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
- package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
- package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
- package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
- package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
- package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
- package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
- package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
- package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
- package/src/components/Business/JsonQueryTable/function.ts +62 -62
- package/src/components/Business/JsonQueryTable/index.less +16 -16
- package/src/components/Business/JsonQueryTable/index.md +328 -328
- package/src/components/Business/JsonQueryTable/index.tsx +537 -537
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/JsonQueryTable/static.ts +450 -450
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1903 -1836
- package/src/components/Business/SearchSelect/common.ts +75 -75
- package/src/components/Business/SearchSelect/index.md +1387 -1387
- package/src/components/Business/SearchSelect/index.tsx +55 -55
- package/src/components/Business/SearchSelect/utils.ts +101 -101
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +185 -185
- package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
- package/src/components/Business/TreeSearchSelect/utils.ts +104 -104
- package/src/components/Business/columnSettingTable/columnSetting.tsx +766 -766
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/index.tsx +234 -234
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +242 -242
- package/src/components/Business/columnSettingTable/utils.tsx +71 -71
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -87
- package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +387 -387
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +80 -80
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +155 -155
- package/src/components/Functional/AddSelect/index.tsx +1171 -1171
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +39 -39
- package/src/components/Functional/BillEntry/index.tsx +773 -773
- package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
- package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +696 -696
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +39 -39
- package/src/components/Functional/DataValidation/index.tsx +688 -688
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/EllipsisTooltip/index.md +30 -30
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +60 -60
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
- package/src/components/Functional/SearchSelect/index.less +115 -115
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +896 -896
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +204 -201
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
- package/src/components/Solution/RuleComponent/InnerSelect.tsx +62 -62
- package/src/components/Solution/RuleComponent/index.d.ts +29 -29
- package/src/components/Solution/RuleComponent/index.js +2073 -2073
- package/src/components/Solution/RuleComponent/index.less +230 -230
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
- package/src/components/Solution/RuleComponent/ruleFiled.js +2281 -2281
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/components/Solution/RuleComponent/util.js +143 -143
- package/src/index.ts +38 -38
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +725 -725
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1912 -1912
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/CustomLoginInfo.ts +55 -55
- package/src/utils/LocalstorageUtils.ts +95 -95
- package/src/utils/TableUtils.tsx +18 -18
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +4 -4
- package/src/utils/requestUtils.ts +166 -166
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +195 -195
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
- package/dist/common/ENUM.d.ts +0 -40
- package/dist/components/Business/AddSelectBusiness/index.d.ts +0 -4
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +0 -5
- package/dist/components/Business/BsLayouts/Components/AllFunc/index.d.ts +0 -4
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +0 -4
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +0 -17
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +0 -30
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +0 -4
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +0 -3
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +0 -4
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +0 -5
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +0 -3
- package/dist/components/Business/BsLayouts/Components/RightContent/index.d.ts +0 -8
- package/dist/components/Business/BsLayouts/Components/SearchFunc/index.d.ts +0 -8
- package/dist/components/Business/BsLayouts/index.d.ts +0 -18
- package/dist/components/Business/BsLayouts/service.d.ts +0 -1
- package/dist/components/Business/BsLayouts/utils.d.ts +0 -10
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +0 -60
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +0 -3
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +0 -60
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +0 -99
- package/dist/components/Business/CommodityEntry/index.d.ts +0 -3
- package/dist/components/Business/CommonAlert/index.d.ts +0 -4
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +0 -6
- package/dist/components/Business/DetailPageWrapper/index.d.ts +0 -10
- package/dist/components/Business/DetailPageWrapper/utils.d.ts +0 -8
- package/dist/components/Business/HomePageWrapper/index.d.ts +0 -4
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +0 -3
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +0 -3
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +0 -7
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +0 -3
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +0 -3
- package/dist/components/Business/JsonQueryTable/function.d.ts +0 -37
- package/dist/components/Business/JsonQueryTable/index.d.ts +0 -4
- package/dist/components/Business/JsonQueryTable/static.d.ts +0 -44
- package/dist/components/Business/SearchSelect/BusinessUtils.d.ts +0 -5
- package/dist/components/Business/SearchSelect/common.d.ts +0 -25
- package/dist/components/Business/SearchSelect/index.d.ts +0 -3
- package/dist/components/Business/SearchSelect/utils.d.ts +0 -5
- package/dist/components/Business/StateFlow/index.d.ts +0 -4
- package/dist/components/Business/TreeSearchSelect/index.d.ts +0 -3
- package/dist/components/Business/TreeSearchSelect/utils.d.ts +0 -4
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +0 -54
- package/dist/components/Business/columnSettingTable/index.d.ts +0 -16
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +0 -17
- package/dist/components/Business/columnSettingTable/utils.d.ts +0 -9
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +0 -3
- package/dist/components/Business/moreTreeTable/hooks/useSticky.d.ts +0 -8
- package/dist/components/Business/moreTreeTable/index.d.ts +0 -4
- package/dist/components/Business/moreTreeTable/utils.d.ts +0 -9
- package/dist/components/Functional/AddSelect/helps.d.ts +0 -14
- package/dist/components/Functional/AddSelect/index.d.ts +0 -4
- package/dist/components/Functional/BillEntry/index.d.ts +0 -4
- package/dist/components/Functional/BsAntdSula/BsCascader/index.d.ts +0 -18
- package/dist/components/Functional/BsAntdSula/index.d.ts +0 -1
- package/dist/components/Functional/DataImport/index.d.ts +0 -144
- package/dist/components/Functional/DataValidation/index.d.ts +0 -144
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +0 -13
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +0 -6
- package/dist/components/Functional/SearchSelect/index.d.ts +0 -4
- package/dist/components/Functional/SearchSelect/utils.d.ts +0 -1
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +0 -3
- package/dist/components/Solution/RuleComponent/Formula.d.ts +0 -9
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +0 -12
- package/dist/components/Solution/RuleComponent/services.d.ts +0 -1
- package/dist/index.d.ts +0 -28
- package/dist/index.esm.js +0 -31379
- package/dist/plugin/TableColumnSetting/index.d.ts +0 -64
- package/dist/plugin/TableColumnSetting/utils.d.ts +0 -1
- package/dist/utils/CheckOneUser/index.d.ts +0 -2
- package/dist/utils/CustomLoginInfo.d.ts +0 -11
- package/dist/utils/LocalstorageUtils.d.ts +0 -17
- package/dist/utils/TableUtils.d.ts +0 -11
- package/dist/utils/checkUtils.d.ts +0 -3
- package/dist/utils/enumConfig.d.ts +0 -12
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/requestUtils.d.ts +0 -29
- package/dist/utils/utils.d.ts +0 -17
package/dist/index.js
CHANGED
|
@@ -46,363 +46,363 @@ var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
|
|
|
46
46
|
var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
|
|
47
47
|
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray$1);
|
|
48
48
|
|
|
49
|
-
function _iterableToArrayLimit(
|
|
50
|
-
var
|
|
51
|
-
if (null !=
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
function _iterableToArrayLimit(arr, i) {
|
|
50
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
51
|
+
if (null != _i) {
|
|
52
|
+
var _s,
|
|
53
|
+
_e,
|
|
54
|
+
_x,
|
|
55
|
+
_r,
|
|
56
|
+
_arr = [],
|
|
57
|
+
_n = !0,
|
|
58
|
+
_d = !1;
|
|
59
59
|
try {
|
|
60
|
-
if (
|
|
61
|
-
if (Object(
|
|
62
|
-
|
|
63
|
-
} else for (; !(
|
|
64
|
-
} catch (
|
|
65
|
-
|
|
60
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
61
|
+
if (Object(_i) !== _i) return;
|
|
62
|
+
_n = !1;
|
|
63
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
64
|
+
} catch (err) {
|
|
65
|
+
_d = !0, _e = err;
|
|
66
66
|
} finally {
|
|
67
67
|
try {
|
|
68
|
-
if (!
|
|
68
|
+
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
69
69
|
} finally {
|
|
70
|
-
if (
|
|
70
|
+
if (_d) throw _e;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
return
|
|
73
|
+
return _arr;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function ownKeys(
|
|
77
|
-
var
|
|
76
|
+
function ownKeys(object, enumerableOnly) {
|
|
77
|
+
var keys = Object.keys(object);
|
|
78
78
|
if (Object.getOwnPropertySymbols) {
|
|
79
|
-
var
|
|
80
|
-
|
|
81
|
-
return Object.getOwnPropertyDescriptor(
|
|
82
|
-
})),
|
|
79
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
80
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
81
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
82
|
+
})), keys.push.apply(keys, symbols);
|
|
83
83
|
}
|
|
84
|
-
return
|
|
84
|
+
return keys;
|
|
85
85
|
}
|
|
86
|
-
function _objectSpread2(
|
|
87
|
-
for (var
|
|
88
|
-
var
|
|
89
|
-
|
|
90
|
-
_defineProperty(
|
|
91
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
92
|
-
Object.defineProperty(
|
|
86
|
+
function _objectSpread2(target) {
|
|
87
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
88
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
89
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
90
|
+
_defineProperty(target, key, source[key]);
|
|
91
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
92
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
return
|
|
95
|
+
return target;
|
|
96
96
|
}
|
|
97
97
|
function _regeneratorRuntime() {
|
|
98
98
|
_regeneratorRuntime = function () {
|
|
99
|
-
return
|
|
99
|
+
return exports;
|
|
100
100
|
};
|
|
101
|
-
var
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
t[e] = r.value;
|
|
101
|
+
var exports = {},
|
|
102
|
+
Op = Object.prototype,
|
|
103
|
+
hasOwn = Op.hasOwnProperty,
|
|
104
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
105
|
+
obj[key] = desc.value;
|
|
107
106
|
},
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
function define(
|
|
113
|
-
return Object.defineProperty(
|
|
114
|
-
value:
|
|
107
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
108
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
109
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
110
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
111
|
+
function define(obj, key, value) {
|
|
112
|
+
return Object.defineProperty(obj, key, {
|
|
113
|
+
value: value,
|
|
115
114
|
enumerable: !0,
|
|
116
115
|
configurable: !0,
|
|
117
116
|
writable: !0
|
|
118
|
-
}),
|
|
117
|
+
}), obj[key];
|
|
119
118
|
}
|
|
120
119
|
try {
|
|
121
120
|
define({}, "");
|
|
122
|
-
} catch (
|
|
123
|
-
define = function (
|
|
124
|
-
return
|
|
121
|
+
} catch (err) {
|
|
122
|
+
define = function (obj, key, value) {
|
|
123
|
+
return obj[key] = value;
|
|
125
124
|
};
|
|
126
125
|
}
|
|
127
|
-
function wrap(
|
|
128
|
-
var
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
return
|
|
132
|
-
value: makeInvokeMethod(
|
|
133
|
-
}),
|
|
126
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
127
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
128
|
+
generator = Object.create(protoGenerator.prototype),
|
|
129
|
+
context = new Context(tryLocsList || []);
|
|
130
|
+
return defineProperty(generator, "_invoke", {
|
|
131
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
132
|
+
}), generator;
|
|
134
133
|
}
|
|
135
|
-
function tryCatch(
|
|
134
|
+
function tryCatch(fn, obj, arg) {
|
|
136
135
|
try {
|
|
137
136
|
return {
|
|
138
137
|
type: "normal",
|
|
139
|
-
arg:
|
|
138
|
+
arg: fn.call(obj, arg)
|
|
140
139
|
};
|
|
141
|
-
} catch (
|
|
140
|
+
} catch (err) {
|
|
142
141
|
return {
|
|
143
142
|
type: "throw",
|
|
144
|
-
arg:
|
|
143
|
+
arg: err
|
|
145
144
|
};
|
|
146
145
|
}
|
|
147
146
|
}
|
|
148
|
-
|
|
149
|
-
var
|
|
150
|
-
l = "suspendedYield",
|
|
151
|
-
f = "executing",
|
|
152
|
-
s = "completed",
|
|
153
|
-
y = {};
|
|
147
|
+
exports.wrap = wrap;
|
|
148
|
+
var ContinueSentinel = {};
|
|
154
149
|
function Generator() {}
|
|
155
150
|
function GeneratorFunction() {}
|
|
156
151
|
function GeneratorFunctionPrototype() {}
|
|
157
|
-
var
|
|
158
|
-
define(
|
|
152
|
+
var IteratorPrototype = {};
|
|
153
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
159
154
|
return this;
|
|
160
155
|
});
|
|
161
|
-
var
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
var
|
|
165
|
-
function defineIteratorMethods(
|
|
166
|
-
["next", "throw", "return"].forEach(function (
|
|
167
|
-
define(
|
|
168
|
-
return this._invoke(
|
|
156
|
+
var getProto = Object.getPrototypeOf,
|
|
157
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
158
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
159
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
160
|
+
function defineIteratorMethods(prototype) {
|
|
161
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
162
|
+
define(prototype, method, function (arg) {
|
|
163
|
+
return this._invoke(method, arg);
|
|
169
164
|
});
|
|
170
165
|
});
|
|
171
166
|
}
|
|
172
|
-
function AsyncIterator(
|
|
173
|
-
function invoke(
|
|
174
|
-
var
|
|
175
|
-
if ("throw" !==
|
|
176
|
-
var
|
|
177
|
-
|
|
178
|
-
return
|
|
179
|
-
invoke("next",
|
|
180
|
-
}, function (
|
|
181
|
-
invoke("throw",
|
|
182
|
-
}) :
|
|
183
|
-
|
|
184
|
-
}, function (
|
|
185
|
-
return invoke("throw",
|
|
167
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
168
|
+
function invoke(method, arg, resolve, reject) {
|
|
169
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
170
|
+
if ("throw" !== record.type) {
|
|
171
|
+
var result = record.arg,
|
|
172
|
+
value = result.value;
|
|
173
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
174
|
+
invoke("next", value, resolve, reject);
|
|
175
|
+
}, function (err) {
|
|
176
|
+
invoke("throw", err, resolve, reject);
|
|
177
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
178
|
+
result.value = unwrapped, resolve(result);
|
|
179
|
+
}, function (error) {
|
|
180
|
+
return invoke("throw", error, resolve, reject);
|
|
186
181
|
});
|
|
187
182
|
}
|
|
188
|
-
|
|
183
|
+
reject(record.arg);
|
|
189
184
|
}
|
|
190
|
-
var
|
|
191
|
-
|
|
192
|
-
value: function (
|
|
185
|
+
var previousPromise;
|
|
186
|
+
defineProperty(this, "_invoke", {
|
|
187
|
+
value: function (method, arg) {
|
|
193
188
|
function callInvokeWithMethodAndArg() {
|
|
194
|
-
return new
|
|
195
|
-
invoke(
|
|
189
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
190
|
+
invoke(method, arg, resolve, reject);
|
|
196
191
|
});
|
|
197
192
|
}
|
|
198
|
-
return
|
|
193
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
199
194
|
}
|
|
200
195
|
});
|
|
201
196
|
}
|
|
202
|
-
function makeInvokeMethod(
|
|
203
|
-
var
|
|
204
|
-
return function (
|
|
205
|
-
if (
|
|
206
|
-
if (
|
|
207
|
-
if ("throw" ===
|
|
208
|
-
return
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
if (u) {
|
|
218
|
-
if (u === y) continue;
|
|
219
|
-
return u;
|
|
197
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
198
|
+
var state = "suspendedStart";
|
|
199
|
+
return function (method, arg) {
|
|
200
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
201
|
+
if ("completed" === state) {
|
|
202
|
+
if ("throw" === method) throw arg;
|
|
203
|
+
return doneResult();
|
|
204
|
+
}
|
|
205
|
+
for (context.method = method, context.arg = arg;;) {
|
|
206
|
+
var delegate = context.delegate;
|
|
207
|
+
if (delegate) {
|
|
208
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
209
|
+
if (delegateResult) {
|
|
210
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
211
|
+
return delegateResult;
|
|
220
212
|
}
|
|
221
213
|
}
|
|
222
|
-
if ("next" ===
|
|
223
|
-
if (
|
|
224
|
-
|
|
225
|
-
} else "return" ===
|
|
226
|
-
|
|
227
|
-
var
|
|
228
|
-
if ("normal" ===
|
|
229
|
-
if (
|
|
214
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
215
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
216
|
+
context.dispatchException(context.arg);
|
|
217
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
218
|
+
state = "executing";
|
|
219
|
+
var record = tryCatch(innerFn, self, context);
|
|
220
|
+
if ("normal" === record.type) {
|
|
221
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
230
222
|
return {
|
|
231
|
-
value:
|
|
232
|
-
done:
|
|
223
|
+
value: record.arg,
|
|
224
|
+
done: context.done
|
|
233
225
|
};
|
|
234
226
|
}
|
|
235
|
-
"throw" ===
|
|
227
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
236
228
|
}
|
|
237
229
|
};
|
|
238
230
|
}
|
|
239
|
-
function maybeInvokeDelegate(
|
|
240
|
-
var
|
|
241
|
-
|
|
242
|
-
if (
|
|
243
|
-
var
|
|
244
|
-
if ("throw" ===
|
|
245
|
-
var
|
|
246
|
-
return
|
|
247
|
-
}
|
|
248
|
-
function pushTryEntry(
|
|
249
|
-
var
|
|
250
|
-
tryLoc:
|
|
231
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
232
|
+
var methodName = context.method,
|
|
233
|
+
method = delegate.iterator[methodName];
|
|
234
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
235
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
236
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
237
|
+
var info = record.arg;
|
|
238
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
239
|
+
}
|
|
240
|
+
function pushTryEntry(locs) {
|
|
241
|
+
var entry = {
|
|
242
|
+
tryLoc: locs[0]
|
|
251
243
|
};
|
|
252
|
-
1 in
|
|
244
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
253
245
|
}
|
|
254
|
-
function resetTryEntry(
|
|
255
|
-
var
|
|
256
|
-
|
|
246
|
+
function resetTryEntry(entry) {
|
|
247
|
+
var record = entry.completion || {};
|
|
248
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
257
249
|
}
|
|
258
|
-
function Context(
|
|
250
|
+
function Context(tryLocsList) {
|
|
259
251
|
this.tryEntries = [{
|
|
260
252
|
tryLoc: "root"
|
|
261
|
-
}],
|
|
262
|
-
}
|
|
263
|
-
function values(
|
|
264
|
-
if (
|
|
265
|
-
var
|
|
266
|
-
if (
|
|
267
|
-
if ("function" == typeof
|
|
268
|
-
if (!isNaN(
|
|
269
|
-
var
|
|
270
|
-
|
|
271
|
-
for (; ++
|
|
272
|
-
return next.value =
|
|
253
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
254
|
+
}
|
|
255
|
+
function values(iterable) {
|
|
256
|
+
if (iterable) {
|
|
257
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
258
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
259
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
260
|
+
if (!isNaN(iterable.length)) {
|
|
261
|
+
var i = -1,
|
|
262
|
+
next = function next() {
|
|
263
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
264
|
+
return next.value = undefined, next.done = !0, next;
|
|
273
265
|
};
|
|
274
|
-
return
|
|
266
|
+
return next.next = next;
|
|
275
267
|
}
|
|
276
268
|
}
|
|
277
|
-
|
|
269
|
+
return {
|
|
270
|
+
next: doneResult
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
function doneResult() {
|
|
274
|
+
return {
|
|
275
|
+
value: undefined,
|
|
276
|
+
done: !0
|
|
277
|
+
};
|
|
278
278
|
}
|
|
279
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
279
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
280
280
|
value: GeneratorFunctionPrototype,
|
|
281
281
|
configurable: !0
|
|
282
|
-
}),
|
|
282
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
283
283
|
value: GeneratorFunction,
|
|
284
284
|
configurable: !0
|
|
285
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
286
|
-
var
|
|
287
|
-
return !!
|
|
288
|
-
},
|
|
289
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
290
|
-
},
|
|
285
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
286
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
287
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
288
|
+
}, exports.mark = function (genFun) {
|
|
289
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
290
|
+
}, exports.awrap = function (arg) {
|
|
291
291
|
return {
|
|
292
|
-
__await:
|
|
292
|
+
__await: arg
|
|
293
293
|
};
|
|
294
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
294
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
295
295
|
return this;
|
|
296
|
-
}),
|
|
297
|
-
void 0 ===
|
|
298
|
-
var
|
|
299
|
-
return
|
|
300
|
-
return
|
|
296
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
297
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
298
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
299
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
300
|
+
return result.done ? result.value : iter.next();
|
|
301
301
|
});
|
|
302
|
-
}, defineIteratorMethods(
|
|
302
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
303
303
|
return this;
|
|
304
|
-
}), define(
|
|
304
|
+
}), define(Gp, "toString", function () {
|
|
305
305
|
return "[object Generator]";
|
|
306
|
-
}),
|
|
307
|
-
var
|
|
308
|
-
|
|
309
|
-
for (var
|
|
310
|
-
return
|
|
311
|
-
for (;
|
|
312
|
-
var
|
|
313
|
-
if (
|
|
306
|
+
}), exports.keys = function (val) {
|
|
307
|
+
var object = Object(val),
|
|
308
|
+
keys = [];
|
|
309
|
+
for (var key in object) keys.push(key);
|
|
310
|
+
return keys.reverse(), function next() {
|
|
311
|
+
for (; keys.length;) {
|
|
312
|
+
var key = keys.pop();
|
|
313
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
314
314
|
}
|
|
315
315
|
return next.done = !0, next;
|
|
316
316
|
};
|
|
317
|
-
},
|
|
317
|
+
}, exports.values = values, Context.prototype = {
|
|
318
318
|
constructor: Context,
|
|
319
|
-
reset: function (
|
|
320
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
319
|
+
reset: function (skipTempReset) {
|
|
320
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
321
321
|
},
|
|
322
322
|
stop: function () {
|
|
323
323
|
this.done = !0;
|
|
324
|
-
var
|
|
325
|
-
if ("throw" ===
|
|
324
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
325
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
326
326
|
return this.rval;
|
|
327
327
|
},
|
|
328
|
-
dispatchException: function (
|
|
329
|
-
if (this.done) throw
|
|
330
|
-
var
|
|
331
|
-
function handle(
|
|
332
|
-
return
|
|
333
|
-
}
|
|
334
|
-
for (var
|
|
335
|
-
var
|
|
336
|
-
|
|
337
|
-
if ("root" ===
|
|
338
|
-
if (
|
|
339
|
-
var
|
|
340
|
-
|
|
341
|
-
if (
|
|
342
|
-
if (this.prev <
|
|
343
|
-
if (this.prev <
|
|
344
|
-
} else if (
|
|
345
|
-
if (this.prev <
|
|
328
|
+
dispatchException: function (exception) {
|
|
329
|
+
if (this.done) throw exception;
|
|
330
|
+
var context = this;
|
|
331
|
+
function handle(loc, caught) {
|
|
332
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
333
|
+
}
|
|
334
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
335
|
+
var entry = this.tryEntries[i],
|
|
336
|
+
record = entry.completion;
|
|
337
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
338
|
+
if (entry.tryLoc <= this.prev) {
|
|
339
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
340
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
341
|
+
if (hasCatch && hasFinally) {
|
|
342
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
343
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
344
|
+
} else if (hasCatch) {
|
|
345
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
346
346
|
} else {
|
|
347
|
-
if (!
|
|
348
|
-
if (this.prev <
|
|
347
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
348
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
},
|
|
353
|
-
abrupt: function (
|
|
354
|
-
for (var
|
|
355
|
-
var
|
|
356
|
-
if (
|
|
357
|
-
var
|
|
353
|
+
abrupt: function (type, arg) {
|
|
354
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
355
|
+
var entry = this.tryEntries[i];
|
|
356
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
357
|
+
var finallyEntry = entry;
|
|
358
358
|
break;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
|
|
362
|
-
var
|
|
363
|
-
return
|
|
361
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
362
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
363
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
364
364
|
},
|
|
365
|
-
complete: function (
|
|
366
|
-
if ("throw" ===
|
|
367
|
-
return "break" ===
|
|
365
|
+
complete: function (record, afterLoc) {
|
|
366
|
+
if ("throw" === record.type) throw record.arg;
|
|
367
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
368
368
|
},
|
|
369
|
-
finish: function (
|
|
370
|
-
for (var
|
|
371
|
-
var
|
|
372
|
-
if (
|
|
369
|
+
finish: function (finallyLoc) {
|
|
370
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
371
|
+
var entry = this.tryEntries[i];
|
|
372
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
373
373
|
}
|
|
374
374
|
},
|
|
375
|
-
catch: function (
|
|
376
|
-
for (var
|
|
377
|
-
var
|
|
378
|
-
if (
|
|
379
|
-
var
|
|
380
|
-
if ("throw" ===
|
|
381
|
-
var
|
|
382
|
-
resetTryEntry(
|
|
375
|
+
catch: function (tryLoc) {
|
|
376
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
377
|
+
var entry = this.tryEntries[i];
|
|
378
|
+
if (entry.tryLoc === tryLoc) {
|
|
379
|
+
var record = entry.completion;
|
|
380
|
+
if ("throw" === record.type) {
|
|
381
|
+
var thrown = record.arg;
|
|
382
|
+
resetTryEntry(entry);
|
|
383
383
|
}
|
|
384
|
-
return
|
|
384
|
+
return thrown;
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
throw new Error("illegal catch attempt");
|
|
388
388
|
},
|
|
389
|
-
delegateYield: function (
|
|
389
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
390
390
|
return this.delegate = {
|
|
391
|
-
iterator: values(
|
|
392
|
-
resultName:
|
|
393
|
-
nextLoc:
|
|
394
|
-
}, "next" === this.method && (this.arg =
|
|
391
|
+
iterator: values(iterable),
|
|
392
|
+
resultName: resultName,
|
|
393
|
+
nextLoc: nextLoc
|
|
394
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
395
395
|
}
|
|
396
|
-
},
|
|
396
|
+
}, exports;
|
|
397
397
|
}
|
|
398
|
-
function _typeof(
|
|
398
|
+
function _typeof(obj) {
|
|
399
399
|
"@babel/helpers - typeof";
|
|
400
400
|
|
|
401
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
402
|
-
return typeof
|
|
403
|
-
} : function (
|
|
404
|
-
return
|
|
405
|
-
}, _typeof(
|
|
401
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
402
|
+
return typeof obj;
|
|
403
|
+
} : function (obj) {
|
|
404
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
405
|
+
}, _typeof(obj);
|
|
406
406
|
}
|
|
407
407
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
408
408
|
try {
|
|
@@ -8902,6 +8902,76 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
8902
8902
|
}]
|
|
8903
8903
|
}, modalTableBusProps);
|
|
8904
8904
|
}
|
|
8905
|
+
// 销售渠道选择器
|
|
8906
|
+
if (type === 'market-channel') {
|
|
8907
|
+
requestConfig = _objectSpread2({
|
|
8908
|
+
url: "".concat(prefixUrl.selectPrefix, "/channelInfo"),
|
|
8909
|
+
filter: 'qp-name,code-orGroup,like',
|
|
8910
|
+
mappingTextField: 'name',
|
|
8911
|
+
mappingTextShowKeyField: 'code',
|
|
8912
|
+
mappingValueField: 'code',
|
|
8913
|
+
otherParams: {
|
|
8914
|
+
'qp-type-eq': 1,
|
|
8915
|
+
'qp-isMain-eq': 1,
|
|
8916
|
+
'qp-status-eq': 10,
|
|
8917
|
+
sorter: 'desc-id'
|
|
8918
|
+
},
|
|
8919
|
+
sourceName: 'marketChannelCode'
|
|
8920
|
+
}, requestConfigProp);
|
|
8921
|
+
tableSearchForm = [{
|
|
8922
|
+
name: 'qp-name-like',
|
|
8923
|
+
label: '销售渠道名称'
|
|
8924
|
+
}, {
|
|
8925
|
+
name: 'qp-code-like',
|
|
8926
|
+
label: '销售渠道编码'
|
|
8927
|
+
}, {
|
|
8928
|
+
name: 'qp-salesOrgCode-in',
|
|
8929
|
+
type: 'select',
|
|
8930
|
+
label: '所属销售组织',
|
|
8931
|
+
field: {
|
|
8932
|
+
type: 'select',
|
|
8933
|
+
props: {
|
|
8934
|
+
mode: 'multiple',
|
|
8935
|
+
notFoundContent: '暂无数据',
|
|
8936
|
+
allowClear: true,
|
|
8937
|
+
showSearch: true,
|
|
8938
|
+
showArrow: true,
|
|
8939
|
+
maxTagCount: 1,
|
|
8940
|
+
optionFilterProp: 'children',
|
|
8941
|
+
filterOption: function filterOption(input, option) {
|
|
8942
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
8943
|
+
}
|
|
8944
|
+
}
|
|
8945
|
+
}
|
|
8946
|
+
}];
|
|
8947
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getTree/sales-organizational-view"), {
|
|
8948
|
+
'qp-employeeCode-eq': getEmployeeCode(),
|
|
8949
|
+
'qp-realOrg-eq': true,
|
|
8950
|
+
'qp-status-eq': 10
|
|
8951
|
+
})]).then(function (x) {
|
|
8952
|
+
formatSource(x, 0, 2, tableSearchForm);
|
|
8953
|
+
});
|
|
8954
|
+
modalTableProps = _objectSpread2({
|
|
8955
|
+
modalTableTitle: '选择销售渠道',
|
|
8956
|
+
tableSearchForm: tableSearchForm,
|
|
8957
|
+
tableColumns: [{
|
|
8958
|
+
title: '销售渠道编码',
|
|
8959
|
+
dataIndex: 'code'
|
|
8960
|
+
}, {
|
|
8961
|
+
title: '销售渠道名称',
|
|
8962
|
+
dataIndex: 'name',
|
|
8963
|
+
render: function render(text) {
|
|
8964
|
+
return handleTextOverflow(text);
|
|
8965
|
+
}
|
|
8966
|
+
}, {
|
|
8967
|
+
title: '所属销售组织',
|
|
8968
|
+
dataIndex: 'salesOrgCodeName',
|
|
8969
|
+
render: function render(text) {
|
|
8970
|
+
return handleTextOverflow(text);
|
|
8971
|
+
}
|
|
8972
|
+
}]
|
|
8973
|
+
}, modalTableBusProps);
|
|
8974
|
+
}
|
|
8905
8975
|
return {
|
|
8906
8976
|
modalTableProps: modalTableProps,
|
|
8907
8977
|
requestConfig: requestConfig,
|
|
@@ -10210,12 +10280,14 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
10210
10280
|
_remoteSource$initial = remoteSource.initialParams,
|
|
10211
10281
|
initialParams = _remoteSource$initial === void 0 ? {} : _remoteSource$initial,
|
|
10212
10282
|
_remoteSource$treeChi = remoteSource.treeChildrenRoom,
|
|
10213
|
-
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi
|
|
10283
|
+
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
10284
|
+
_remoteSource$special = remoteSource.specialBracket,
|
|
10285
|
+
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
10214
10286
|
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
10215
10287
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
10216
10288
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
10217
10289
|
return {
|
|
10218
|
-
title: treeDataItem[resKeyValue[1]],
|
|
10290
|
+
title: specialBracket ? "\u3010".concat(treeDataItem[resKeyValue[0]], "\u3011").concat(treeDataItem[resKeyValue[1]]) : treeDataItem[resKeyValue[1]],
|
|
10219
10291
|
key: treeDataItem[resKeyValue[0]],
|
|
10220
10292
|
value: treeDataItem[resKeyValue[0]],
|
|
10221
10293
|
parentId: treeDataItem.parent,
|
|
@@ -14139,24 +14211,23 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
14139
14211
|
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
14140
14212
|
var authButton = localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES) ? JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES)) : [];
|
|
14141
14213
|
var _loop = function _loop(i) {
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
|
|
14148
|
-
|
|
14149
|
-
|
|
14150
|
-
|
|
14151
|
-
|
|
14152
|
-
|
|
14153
|
-
|
|
14154
|
-
|
|
14155
|
-
|
|
14156
|
-
_ret;
|
|
14214
|
+
if (routesData[i].hideInMenu) {
|
|
14215
|
+
routesData.splice(i, 1);
|
|
14216
|
+
return "continue";
|
|
14217
|
+
}
|
|
14218
|
+
if (routesData[i].code && authButton.every(function (item) {
|
|
14219
|
+
return routesData[i].code != item;
|
|
14220
|
+
})) {
|
|
14221
|
+
routesData.splice(i, 1);
|
|
14222
|
+
return "continue";
|
|
14223
|
+
}
|
|
14224
|
+
if (routesData[i].children) {
|
|
14225
|
+
setMenuTreeData(routesData[i].children);
|
|
14226
|
+
}
|
|
14227
|
+
};
|
|
14157
14228
|
for (var i = routesData.length - 1; i >= 0; i--) {
|
|
14158
|
-
_ret = _loop(i);
|
|
14159
|
-
if (_ret ===
|
|
14229
|
+
var _ret = _loop(i);
|
|
14230
|
+
if (_ret === "continue") continue;
|
|
14160
14231
|
}
|
|
14161
14232
|
};
|
|
14162
14233
|
var setLoginOutPath = function setLoginOutPath() {
|