@egova/egova-api 1.0.190 → 1.0.191

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.
@@ -60375,6 +60375,7 @@ var pre_execution_setting = __webpack_require__("d928");
60375
60375
 
60376
60376
 
60377
60377
 
60378
+
60378
60379
  var pre_execution_setting_extends = undefined && undefined.__extends || function () {
60379
60380
  var _extendStatics = function extendStatics(d, b) {
60380
60381
  _extendStatics = Object.setPrototypeOf || {
@@ -60660,21 +60661,35 @@ function (_super) {
60660
60661
  PreExecutionSetting.prototype.filterTypeList = function () {
60661
60662
  var _this = this;
60662
60663
 
60663
- var tempGroup = this.scriptData.group.map(function (item) {
60664
- return pre_execution_setting_assign(pre_execution_setting_assign({}, item), {
60665
- list: item.list.filter(function (listItem) {
60666
- return listItem.name.indexOf(_this.keyword) !== -1;
60667
- })
60664
+ if (this.keyword) {
60665
+ var tempGroup = this.scriptData.group.map(function (item) {
60666
+ return pre_execution_setting_assign(pre_execution_setting_assign({}, item), {
60667
+ list: item.list.filter(function (listItem) {
60668
+ return listItem.name.indexOf(_this.keyword) !== -1;
60669
+ })
60670
+ });
60668
60671
  });
60669
- });
60670
- this.tempScriptData.group = tempGroup.filter(function (item) {
60671
- return item.list.length;
60672
- });
60672
+ this.tempScriptData.group = tempGroup.filter(function (item) {
60673
+ return item.list.length;
60674
+ });
60675
+ } else {
60676
+ this.tempScriptData = this.scriptData.$clone();
60677
+ }
60673
60678
  };
60674
60679
 
60675
- PreExecutionSetting.prototype.onQuickGroupClick = function (index) {
60676
- this.scriptData.group[index].expand = !this.scriptData.group[index].expand;
60677
- this.tempScriptData.group[index].expand = !this.tempScriptData.group[index].expand;
60680
+ PreExecutionSetting.prototype.onQuickGroupClick = function (type) {
60681
+ var _a, _b;
60682
+
60683
+ (_a = this.scriptData.group) === null || _a === void 0 ? void 0 : _a.forEach(function (item) {
60684
+ if (type.name === item.name) {
60685
+ item.expand = !item.expand;
60686
+ }
60687
+ });
60688
+ (_b = this.tempScriptData.group) === null || _b === void 0 ? void 0 : _b.forEach(function (item) {
60689
+ if (type.name === item.name) {
60690
+ item.expand = !item.expand;
60691
+ }
60692
+ });
60678
60693
  };
60679
60694
 
60680
60695
  var _a, _b;
package/dist/index.umd.js CHANGED
@@ -60384,6 +60384,7 @@ var pre_execution_setting = __webpack_require__("d928");
60384
60384
 
60385
60385
 
60386
60386
 
60387
+
60387
60388
  var pre_execution_setting_extends = undefined && undefined.__extends || function () {
60388
60389
  var _extendStatics = function extendStatics(d, b) {
60389
60390
  _extendStatics = Object.setPrototypeOf || {
@@ -60669,21 +60670,35 @@ function (_super) {
60669
60670
  PreExecutionSetting.prototype.filterTypeList = function () {
60670
60671
  var _this = this;
60671
60672
 
60672
- var tempGroup = this.scriptData.group.map(function (item) {
60673
- return pre_execution_setting_assign(pre_execution_setting_assign({}, item), {
60674
- list: item.list.filter(function (listItem) {
60675
- return listItem.name.indexOf(_this.keyword) !== -1;
60676
- })
60673
+ if (this.keyword) {
60674
+ var tempGroup = this.scriptData.group.map(function (item) {
60675
+ return pre_execution_setting_assign(pre_execution_setting_assign({}, item), {
60676
+ list: item.list.filter(function (listItem) {
60677
+ return listItem.name.indexOf(_this.keyword) !== -1;
60678
+ })
60679
+ });
60677
60680
  });
60678
- });
60679
- this.tempScriptData.group = tempGroup.filter(function (item) {
60680
- return item.list.length;
60681
- });
60681
+ this.tempScriptData.group = tempGroup.filter(function (item) {
60682
+ return item.list.length;
60683
+ });
60684
+ } else {
60685
+ this.tempScriptData = this.scriptData.$clone();
60686
+ }
60682
60687
  };
60683
60688
 
60684
- PreExecutionSetting.prototype.onQuickGroupClick = function (index) {
60685
- this.scriptData.group[index].expand = !this.scriptData.group[index].expand;
60686
- this.tempScriptData.group[index].expand = !this.tempScriptData.group[index].expand;
60689
+ PreExecutionSetting.prototype.onQuickGroupClick = function (type) {
60690
+ var _a, _b;
60691
+
60692
+ (_a = this.scriptData.group) === null || _a === void 0 ? void 0 : _a.forEach(function (item) {
60693
+ if (type.name === item.name) {
60694
+ item.expand = !item.expand;
60695
+ }
60696
+ });
60697
+ (_b = this.tempScriptData.group) === null || _b === void 0 ? void 0 : _b.forEach(function (item) {
60698
+ if (type.name === item.name) {
60699
+ item.expand = !item.expand;
60700
+ }
60701
+ });
60687
60702
  };
60688
60703
 
60689
60704
  var _a, _b;