iv-npm 1.0.48 → 1.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iv-npm",
3
- "version": "1.0.48",
3
+ "version": "1.1.1",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -24,3 +24,46 @@ app.use(ivUi)
24
24
 
25
25
 
26
26
 
27
+ ## 组织架构/部门下拉
28
+
29
+ - 组件API
30
+
31
+ ```js
32
+ {
33
+ method: "GET",
34
+ url:'/api/identity/users/allOrganizationByUser',
35
+ params:{type:1},
36
+ }
37
+ ```
38
+
39
+
40
+
41
+
42
+ - 示例
43
+
44
+ ```vue
45
+ <template>
46
+ <IVMrpOrgDropdown
47
+ v-model:value="Detail.organizationId"
48
+ :params="{type:1}"
49
+ :data="{name:123}"
50
+ :replaceFields="{
51
+ children: "children",
52
+ label: "displayName",
53
+ key: "id",
54
+ value: "id",
55
+ }"
56
+ />
57
+ </template>
58
+ <script setup lang="ts">
59
+ import { IVMrpOrgDropdown } from "iv-npm/packages/ui";
60
+ </script>
61
+ ```
62
+
63
+ | props | describe | type |
64
+ | ------------- | ------------------------------ | ------------- |
65
+ | v-model:value | 绑定值 | any |
66
+ | params | GET请求参数(响应式,值改变会触发接口) | object |
67
+ | data | POST请求参数(响应式,值改变会触发接口) | object |
68
+ | replaceFields | 指定value,key,label, children字段名 | ReplaceFields |
69
+
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
 
7
- var _hoisted_1$1 = /*#__PURE__*/vue.createTextVNode("npm包");
7
+ var _hoisted_1$2 = /*#__PURE__*/vue.createTextVNode("npm包");
8
8
  /**
9
9
  * show:Boolean 是否显示弹窗 v-model:show="Visible"
10
10
  *
@@ -19,7 +19,7 @@ var _hoisted_1$1 = /*#__PURE__*/vue.createTextVNode("npm包");
19
19
  *
20
20
  * */
21
21
 
22
- var script$1 = /*#__PURE__*/vue.defineComponent({
22
+ var script$2 = /*#__PURE__*/vue.defineComponent({
23
23
  __name: 'IVMrpModal',
24
24
  props: {
25
25
  show: {
@@ -59,7 +59,7 @@ var script$1 = /*#__PURE__*/vue.defineComponent({
59
59
  }, {
60
60
  title: vue.withCtx(function () {
61
61
  return [vue.renderSlot(_ctx.$slots, "title", {}, function () {
62
- return [_hoisted_1$1];
62
+ return [_hoisted_1$2];
63
63
  })];
64
64
  }),
65
65
  closeIcon: vue.withCtx(function () {
@@ -80,7 +80,7 @@ var script$1 = /*#__PURE__*/vue.defineComponent({
80
80
  }
81
81
  });
82
82
 
83
- script$1.__file = "src/function-ui/component/IVMrpModal.vue";
83
+ script$2.__file = "src/function-ui/component/IVMrpModal.vue";
84
84
 
85
85
  function ownKeys(object, enumerableOnly) {
86
86
  var keys = Object.keys(object);
@@ -507,7 +507,7 @@ function _defineProperty(obj, key, value) {
507
507
  /*
508
508
  * @Author: Mr.Cong Wei
509
509
  * @Date: 2022-08-10 10:13:38
510
- * @LastEditTime: 2022-08-10 11:34:28
510
+ * @LastEditTime: 2022-08-10 16:13:56
511
511
  */
512
512
  var BASE_URL = "https://basis.nacho.cn";
513
513
  var DEFIND_OPTION = {
@@ -527,6 +527,12 @@ var API_OPTION = {
527
527
  option: _objectSpread2({
528
528
  method: "GET"
529
529
  }, DEFIND_OPTION)
530
+ },
531
+ getIVMrpProdBaseDropdown: {
532
+ url: "/api/basis-management/production-base/all",
533
+ option: _objectSpread2({
534
+ method: "GET"
535
+ }, DEFIND_OPTION)
530
536
  }
531
537
  };
532
538
  var formatHTTP = function formatHTTP(fetch) {
@@ -553,8 +559,6 @@ var formatUrl = function formatUrl(base, api, params) {
553
559
  return base + api + "?" + urlTemparr.join("&");
554
560
  };
555
561
 
556
- // utils/arr/tree.ts
557
-
558
562
  function _loadChildren(obj, list) {
559
563
  var arr = list.filter(function (x) {
560
564
  return x.parentId == obj.id;
@@ -566,7 +570,6 @@ function _loadChildren(obj, list) {
566
570
  });
567
571
  return obj;
568
572
  }
569
-
570
573
  function tranListToTreeData(list) {
571
574
  var results = list.filter(function (x) {
572
575
  return x.parentId == null;
@@ -576,11 +579,9 @@ function tranListToTreeData(list) {
576
579
  });
577
580
  return results;
578
581
  }
579
-
580
-
581
582
  var assign = Object.assign;
582
583
 
583
- var _hoisted_1 = /*#__PURE__*/vue.createElementVNode("div", {
584
+ var _hoisted_1$1 = /*#__PURE__*/vue.createElementVNode("div", {
584
585
  "class": "text-[#0000006D] text-[14px]"
585
586
  }, "所属组织", -1
586
587
  /* HOISTED */
@@ -589,7 +590,7 @@ var _hoisted_1 = /*#__PURE__*/vue.createElementVNode("div", {
589
590
  * 组件定义-------------------------------------
590
591
  * */
591
592
 
592
- var script = /*#__PURE__*/vue.defineComponent({
593
+ var script$1 = /*#__PURE__*/vue.defineComponent({
593
594
  __name: 'IVMrpOrgDropdown',
594
595
  props: {
595
596
  value: {
@@ -600,6 +601,10 @@ var script = /*#__PURE__*/vue.defineComponent({
600
601
  type: Object,
601
602
  required: false
602
603
  },
604
+ data: {
605
+ type: Object,
606
+ required: false
607
+ },
603
608
  replaceFields: {
604
609
  type: Object,
605
610
  required: false
@@ -677,32 +682,27 @@ var script = /*#__PURE__*/vue.defineComponent({
677
682
  * */
678
683
 
679
684
  vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
680
- var _a;
685
+ var _a, _b;
681
686
 
682
687
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
683
688
  while (1) {
684
689
  switch (_context2.prev = _context2.next) {
685
690
  case 0:
686
- console.log(props.params, "props11111111111111111111111122222222222222222222");
691
+ // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
687
692
  getData({
688
693
  params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
689
694
  type: 1
690
- })
695
+ }),
696
+ data: (_b = props.data) !== null && _b !== void 0 ? _b : null
691
697
  });
692
698
 
693
- case 2:
699
+ case 1:
694
700
  case "end":
695
701
  return _context2.stop();
696
702
  }
697
703
  }
698
704
  }, _callee2);
699
705
  })));
700
- /**
701
- * 生命周期-------------------------------------
702
- * */
703
-
704
- vue.onBeforeMount(function () {// getData();
705
- });
706
706
  return function (_ctx, _cache) {
707
707
  var _component_a_tree_select = vue.resolveComponent("a-tree-select");
708
708
 
@@ -716,10 +716,10 @@ var script = /*#__PURE__*/vue.defineComponent({
716
716
  }]
717
717
  }, {
718
718
  label: vue.withCtx(function () {
719
- return [_hoisted_1];
719
+ return [_hoisted_1$1];
720
720
  }),
721
721
  "default": vue.withCtx(function () {
722
- return [vue.createVNode(_component_a_tree_select, {
722
+ return [vue.createVNode(_component_a_tree_select, vue.mergeProps(_ctx.$attrs, {
723
723
  value: vue.unref(inputV),
724
724
  "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
725
725
  return vue.isRef(inputV) ? inputV.value = $event : null;
@@ -735,8 +735,8 @@ var script = /*#__PURE__*/vue.defineComponent({
735
735
  "width": "300px"
736
736
  },
737
737
  replaceFields: replaceFields.value
738
- }, null, 8
739
- /* PROPS */
738
+ }), null, 16
739
+ /* FULL_PROPS */
740
740
  , ["value", "tree-data", "getPopupContainer", "replaceFields"])];
741
741
  }),
742
742
  _: 1
@@ -747,14 +747,176 @@ var script = /*#__PURE__*/vue.defineComponent({
747
747
  }
748
748
  });
749
749
 
750
- script.__file = "src/business-ui/component/IVMrpOrgDropdown.vue";
750
+ script$1.__file = "src/business-ui/component/IVMrpOrgDropdown.vue";
751
+
752
+ var _hoisted_1 = /*#__PURE__*/vue.createElementVNode("div", {
753
+ "class": "text-[#0000006D] text-[14px]"
754
+ }, "所属基地", -1
755
+ /* HOISTED */
756
+ );
757
+ /**
758
+ * 组件定义-------------------------------------
759
+ * */
760
+
761
+ var script = /*#__PURE__*/vue.defineComponent({
762
+ __name: 'IVMrpProdBaseDropdown',
763
+ props: {
764
+ value: {
765
+ type: null,
766
+ required: true
767
+ },
768
+ params: {
769
+ type: Object,
770
+ required: false
771
+ },
772
+ data: {
773
+ type: Object,
774
+ required: false
775
+ },
776
+ fieldNames: {
777
+ type: Object,
778
+ required: false
779
+ }
780
+ },
781
+ emits: ["update:value"],
782
+ setup: function setup(__props, _ref) {
783
+ var emit = _ref.emit;
784
+
785
+ var _a;
786
+
787
+ var props = __props;
788
+ /**
789
+ * 获取数据-------------------------------------
790
+ * */
791
+
792
+ var dataV = vue.ref();
793
+
794
+ var getData = /*#__PURE__*/function () {
795
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
796
+ var _option,
797
+ _a,
798
+ _args = arguments;
799
+
800
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
801
+ while (1) {
802
+ switch (_context.prev = _context.next) {
803
+ case 0:
804
+ _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
805
+ _context.next = 3;
806
+ return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpProdBaseDropdown.url, _option.params), assign({
807
+ data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
808
+ }, API_OPTION.getIVMrpProdBaseDropdown.option)));
809
+
810
+ case 3:
811
+ dataV.value = _context.sent;
812
+
813
+ case 4:
814
+ case "end":
815
+ return _context.stop();
816
+ }
817
+ }
818
+ }, _callee);
819
+ }));
820
+
821
+ return function getData() {
822
+ return _ref2.apply(this, arguments);
823
+ };
824
+ }();
825
+ /**
826
+ * 默认参数-------------------------------------
827
+ * */
828
+
829
+
830
+ var fieldNames = vue.ref((_a = props.fieldNames) !== null && _a !== void 0 ? _a : {
831
+ label: "name",
832
+ value: "id"
833
+ });
834
+ var inputV = vue.computed({
835
+ get: function get() {
836
+ return props.value;
837
+ },
838
+ set: function set(value) {
839
+ emit("update:value", value);
840
+ }
841
+ });
842
+ /**
843
+ * 侦听器-------------------------------------
844
+ * */
845
+
846
+ vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
847
+ var _a, _b;
848
+
849
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
850
+ while (1) {
851
+ switch (_context2.prev = _context2.next) {
852
+ case 0:
853
+ // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
854
+ getData({
855
+ params: (_a = props.params) !== null && _a !== void 0 ? _a : null,
856
+ data: (_b = props.data) !== null && _b !== void 0 ? _b : null
857
+ });
858
+
859
+ case 1:
860
+ case "end":
861
+ return _context2.stop();
862
+ }
863
+ }
864
+ }, _callee2);
865
+ })));
866
+ return function (_ctx, _cache) {
867
+ var _component_a_select = vue.resolveComponent("a-select");
868
+
869
+ var _component_a_form_item = vue.resolveComponent("a-form-item");
870
+
871
+ return vue.openBlock(), vue.createBlock(_component_a_form_item, {
872
+ name: "organizationIds",
873
+ "wrapper-col": {
874
+ span: 8
875
+ },
876
+ rules: [{
877
+ required: true,
878
+ message: '请选择所属基地'
879
+ }]
880
+ }, {
881
+ label: vue.withCtx(function () {
882
+ return [_hoisted_1];
883
+ }),
884
+ "default": vue.withCtx(function () {
885
+ return [vue.createVNode(_component_a_select, vue.mergeProps(_ctx.$attrs, {
886
+ getPopupContainer: function getPopupContainer(triggerNode) {
887
+ return triggerNode.parentNode;
888
+ },
889
+ value: vue.unref(inputV),
890
+ "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
891
+ return vue.isRef(inputV) ? inputV.value = $event : null;
892
+ }),
893
+ mode: "multiple",
894
+ style: {
895
+ "width": "100%"
896
+ },
897
+ placeholder: "请选择",
898
+ options: dataV.value,
899
+ fieldNames: fieldNames.value
900
+ }), null, 16
901
+ /* FULL_PROPS */
902
+ , ["getPopupContainer", "value", "options", "fieldNames"])];
903
+ }),
904
+ _: 1
905
+ /* STABLE */
906
+
907
+ });
908
+ };
909
+ }
910
+ });
911
+
912
+ script.__file = "src/business-ui/component/IVMrpProdBaseDropdown.vue";
751
913
 
752
914
  /*
753
915
  * @Author: Mr.Cong Wei
754
916
  * @Date: 2022-08-08 18:47:06
755
- * @LastEditTime: 2022-08-09 18:12:36
917
+ * @LastEditTime: 2022-08-10 16:16:59
756
918
  */
757
- var components = [script$1, script];
919
+ var components = [script$2, script$1, script];
758
920
  installComponents(); // 单独引用
759
921
 
760
922
  function installComponents() {
@@ -776,6 +938,7 @@ var cAll = {
776
938
  install: install
777
939
  };
778
940
 
779
- exports.IVMrpModal = script$1;
780
- exports.IVMrpOrgDropdown = script;
941
+ exports.IVMrpModal = script$2;
942
+ exports.IVMrpOrgDropdown = script$1;
943
+ exports.IVMrpProdBaseDropdown = script;
781
944
  exports["default"] = cAll;
@@ -1,6 +1,6 @@
1
- import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createTextVNode, computed, watchEffect, onBeforeMount, unref, isRef, createElementVNode } from 'vue';
1
+ import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createTextVNode, computed, watchEffect, mergeProps, unref, isRef, createElementVNode } from 'vue';
2
2
 
3
- var _hoisted_1$1 = /*#__PURE__*/createTextVNode("npm包");
3
+ var _hoisted_1$2 = /*#__PURE__*/createTextVNode("npm包");
4
4
  /**
5
5
  * show:Boolean 是否显示弹窗 v-model:show="Visible"
6
6
  *
@@ -15,7 +15,7 @@ var _hoisted_1$1 = /*#__PURE__*/createTextVNode("npm包");
15
15
  *
16
16
  * */
17
17
 
18
- var script$1 = /*#__PURE__*/defineComponent({
18
+ var script$2 = /*#__PURE__*/defineComponent({
19
19
  __name: 'IVMrpModal',
20
20
  props: {
21
21
  show: {
@@ -55,7 +55,7 @@ var script$1 = /*#__PURE__*/defineComponent({
55
55
  }, {
56
56
  title: withCtx(function () {
57
57
  return [renderSlot(_ctx.$slots, "title", {}, function () {
58
- return [_hoisted_1$1];
58
+ return [_hoisted_1$2];
59
59
  })];
60
60
  }),
61
61
  closeIcon: withCtx(function () {
@@ -76,7 +76,7 @@ var script$1 = /*#__PURE__*/defineComponent({
76
76
  }
77
77
  });
78
78
 
79
- script$1.__file = "src/function-ui/component/IVMrpModal.vue";
79
+ script$2.__file = "src/function-ui/component/IVMrpModal.vue";
80
80
 
81
81
  function ownKeys(object, enumerableOnly) {
82
82
  var keys = Object.keys(object);
@@ -503,7 +503,7 @@ function _defineProperty(obj, key, value) {
503
503
  /*
504
504
  * @Author: Mr.Cong Wei
505
505
  * @Date: 2022-08-10 10:13:38
506
- * @LastEditTime: 2022-08-10 11:34:28
506
+ * @LastEditTime: 2022-08-10 16:13:56
507
507
  */
508
508
  var BASE_URL = "https://basis.nacho.cn";
509
509
  var DEFIND_OPTION = {
@@ -523,6 +523,12 @@ var API_OPTION = {
523
523
  option: _objectSpread2({
524
524
  method: "GET"
525
525
  }, DEFIND_OPTION)
526
+ },
527
+ getIVMrpProdBaseDropdown: {
528
+ url: "/api/basis-management/production-base/all",
529
+ option: _objectSpread2({
530
+ method: "GET"
531
+ }, DEFIND_OPTION)
526
532
  }
527
533
  };
528
534
  var formatHTTP = function formatHTTP(fetch) {
@@ -549,8 +555,6 @@ var formatUrl = function formatUrl(base, api, params) {
549
555
  return base + api + "?" + urlTemparr.join("&");
550
556
  };
551
557
 
552
- // utils/arr/tree.ts
553
-
554
558
  function _loadChildren(obj, list) {
555
559
  var arr = list.filter(function (x) {
556
560
  return x.parentId == obj.id;
@@ -562,7 +566,6 @@ function _loadChildren(obj, list) {
562
566
  });
563
567
  return obj;
564
568
  }
565
-
566
569
  function tranListToTreeData(list) {
567
570
  var results = list.filter(function (x) {
568
571
  return x.parentId == null;
@@ -572,11 +575,9 @@ function tranListToTreeData(list) {
572
575
  });
573
576
  return results;
574
577
  }
575
-
576
-
577
578
  var assign = Object.assign;
578
579
 
579
- var _hoisted_1 = /*#__PURE__*/createElementVNode("div", {
580
+ var _hoisted_1$1 = /*#__PURE__*/createElementVNode("div", {
580
581
  "class": "text-[#0000006D] text-[14px]"
581
582
  }, "所属组织", -1
582
583
  /* HOISTED */
@@ -585,7 +586,7 @@ var _hoisted_1 = /*#__PURE__*/createElementVNode("div", {
585
586
  * 组件定义-------------------------------------
586
587
  * */
587
588
 
588
- var script = /*#__PURE__*/defineComponent({
589
+ var script$1 = /*#__PURE__*/defineComponent({
589
590
  __name: 'IVMrpOrgDropdown',
590
591
  props: {
591
592
  value: {
@@ -596,6 +597,10 @@ var script = /*#__PURE__*/defineComponent({
596
597
  type: Object,
597
598
  required: false
598
599
  },
600
+ data: {
601
+ type: Object,
602
+ required: false
603
+ },
599
604
  replaceFields: {
600
605
  type: Object,
601
606
  required: false
@@ -673,32 +678,27 @@ var script = /*#__PURE__*/defineComponent({
673
678
  * */
674
679
 
675
680
  watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
676
- var _a;
681
+ var _a, _b;
677
682
 
678
683
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
679
684
  while (1) {
680
685
  switch (_context2.prev = _context2.next) {
681
686
  case 0:
682
- console.log(props.params, "props11111111111111111111111122222222222222222222");
687
+ // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
683
688
  getData({
684
689
  params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
685
690
  type: 1
686
- })
691
+ }),
692
+ data: (_b = props.data) !== null && _b !== void 0 ? _b : null
687
693
  });
688
694
 
689
- case 2:
695
+ case 1:
690
696
  case "end":
691
697
  return _context2.stop();
692
698
  }
693
699
  }
694
700
  }, _callee2);
695
701
  })));
696
- /**
697
- * 生命周期-------------------------------------
698
- * */
699
-
700
- onBeforeMount(function () {// getData();
701
- });
702
702
  return function (_ctx, _cache) {
703
703
  var _component_a_tree_select = resolveComponent("a-tree-select");
704
704
 
@@ -712,10 +712,10 @@ var script = /*#__PURE__*/defineComponent({
712
712
  }]
713
713
  }, {
714
714
  label: withCtx(function () {
715
- return [_hoisted_1];
715
+ return [_hoisted_1$1];
716
716
  }),
717
717
  "default": withCtx(function () {
718
- return [createVNode(_component_a_tree_select, {
718
+ return [createVNode(_component_a_tree_select, mergeProps(_ctx.$attrs, {
719
719
  value: unref(inputV),
720
720
  "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
721
721
  return isRef(inputV) ? inputV.value = $event : null;
@@ -731,8 +731,8 @@ var script = /*#__PURE__*/defineComponent({
731
731
  "width": "300px"
732
732
  },
733
733
  replaceFields: replaceFields.value
734
- }, null, 8
735
- /* PROPS */
734
+ }), null, 16
735
+ /* FULL_PROPS */
736
736
  , ["value", "tree-data", "getPopupContainer", "replaceFields"])];
737
737
  }),
738
738
  _: 1
@@ -743,14 +743,176 @@ var script = /*#__PURE__*/defineComponent({
743
743
  }
744
744
  });
745
745
 
746
- script.__file = "src/business-ui/component/IVMrpOrgDropdown.vue";
746
+ script$1.__file = "src/business-ui/component/IVMrpOrgDropdown.vue";
747
+
748
+ var _hoisted_1 = /*#__PURE__*/createElementVNode("div", {
749
+ "class": "text-[#0000006D] text-[14px]"
750
+ }, "所属基地", -1
751
+ /* HOISTED */
752
+ );
753
+ /**
754
+ * 组件定义-------------------------------------
755
+ * */
756
+
757
+ var script = /*#__PURE__*/defineComponent({
758
+ __name: 'IVMrpProdBaseDropdown',
759
+ props: {
760
+ value: {
761
+ type: null,
762
+ required: true
763
+ },
764
+ params: {
765
+ type: Object,
766
+ required: false
767
+ },
768
+ data: {
769
+ type: Object,
770
+ required: false
771
+ },
772
+ fieldNames: {
773
+ type: Object,
774
+ required: false
775
+ }
776
+ },
777
+ emits: ["update:value"],
778
+ setup: function setup(__props, _ref) {
779
+ var emit = _ref.emit;
780
+
781
+ var _a;
782
+
783
+ var props = __props;
784
+ /**
785
+ * 获取数据-------------------------------------
786
+ * */
787
+
788
+ var dataV = ref();
789
+
790
+ var getData = /*#__PURE__*/function () {
791
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
792
+ var _option,
793
+ _a,
794
+ _args = arguments;
795
+
796
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
797
+ while (1) {
798
+ switch (_context.prev = _context.next) {
799
+ case 0:
800
+ _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
801
+ _context.next = 3;
802
+ return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpProdBaseDropdown.url, _option.params), assign({
803
+ data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
804
+ }, API_OPTION.getIVMrpProdBaseDropdown.option)));
805
+
806
+ case 3:
807
+ dataV.value = _context.sent;
808
+
809
+ case 4:
810
+ case "end":
811
+ return _context.stop();
812
+ }
813
+ }
814
+ }, _callee);
815
+ }));
816
+
817
+ return function getData() {
818
+ return _ref2.apply(this, arguments);
819
+ };
820
+ }();
821
+ /**
822
+ * 默认参数-------------------------------------
823
+ * */
824
+
825
+
826
+ var fieldNames = ref((_a = props.fieldNames) !== null && _a !== void 0 ? _a : {
827
+ label: "name",
828
+ value: "id"
829
+ });
830
+ var inputV = computed({
831
+ get: function get() {
832
+ return props.value;
833
+ },
834
+ set: function set(value) {
835
+ emit("update:value", value);
836
+ }
837
+ });
838
+ /**
839
+ * 侦听器-------------------------------------
840
+ * */
841
+
842
+ watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
843
+ var _a, _b;
844
+
845
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
846
+ while (1) {
847
+ switch (_context2.prev = _context2.next) {
848
+ case 0:
849
+ // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
850
+ getData({
851
+ params: (_a = props.params) !== null && _a !== void 0 ? _a : null,
852
+ data: (_b = props.data) !== null && _b !== void 0 ? _b : null
853
+ });
854
+
855
+ case 1:
856
+ case "end":
857
+ return _context2.stop();
858
+ }
859
+ }
860
+ }, _callee2);
861
+ })));
862
+ return function (_ctx, _cache) {
863
+ var _component_a_select = resolveComponent("a-select");
864
+
865
+ var _component_a_form_item = resolveComponent("a-form-item");
866
+
867
+ return openBlock(), createBlock(_component_a_form_item, {
868
+ name: "organizationIds",
869
+ "wrapper-col": {
870
+ span: 8
871
+ },
872
+ rules: [{
873
+ required: true,
874
+ message: '请选择所属基地'
875
+ }]
876
+ }, {
877
+ label: withCtx(function () {
878
+ return [_hoisted_1];
879
+ }),
880
+ "default": withCtx(function () {
881
+ return [createVNode(_component_a_select, mergeProps(_ctx.$attrs, {
882
+ getPopupContainer: function getPopupContainer(triggerNode) {
883
+ return triggerNode.parentNode;
884
+ },
885
+ value: unref(inputV),
886
+ "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
887
+ return isRef(inputV) ? inputV.value = $event : null;
888
+ }),
889
+ mode: "multiple",
890
+ style: {
891
+ "width": "100%"
892
+ },
893
+ placeholder: "请选择",
894
+ options: dataV.value,
895
+ fieldNames: fieldNames.value
896
+ }), null, 16
897
+ /* FULL_PROPS */
898
+ , ["getPopupContainer", "value", "options", "fieldNames"])];
899
+ }),
900
+ _: 1
901
+ /* STABLE */
902
+
903
+ });
904
+ };
905
+ }
906
+ });
907
+
908
+ script.__file = "src/business-ui/component/IVMrpProdBaseDropdown.vue";
747
909
 
748
910
  /*
749
911
  * @Author: Mr.Cong Wei
750
912
  * @Date: 2022-08-08 18:47:06
751
- * @LastEditTime: 2022-08-09 18:12:36
913
+ * @LastEditTime: 2022-08-10 16:16:59
752
914
  */
753
- var components = [script$1, script];
915
+ var components = [script$2, script$1, script];
754
916
  installComponents(); // 单独引用
755
917
 
756
918
  function installComponents() {
@@ -772,4 +934,4 @@ var cAll = {
772
934
  install: install
773
935
  };
774
936
 
775
- export { script$1 as IVMrpModal, script as IVMrpOrgDropdown, cAll as default };
937
+ export { script$2 as IVMrpModal, script$1 as IVMrpOrgDropdown, script as IVMrpProdBaseDropdown, cAll as default };
@@ -4,7 +4,7 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@IVNPM/ui"] = {}, global.vue));
5
5
  })(this, (function (exports, vue) { 'use strict';
6
6
 
7
- var _hoisted_1$1 = /*#__PURE__*/vue.createTextVNode("npm包");
7
+ var _hoisted_1$2 = /*#__PURE__*/vue.createTextVNode("npm包");
8
8
  /**
9
9
  * show:Boolean 是否显示弹窗 v-model:show="Visible"
10
10
  *
@@ -19,7 +19,7 @@
19
19
  *
20
20
  * */
21
21
 
22
- var script$1 = /*#__PURE__*/vue.defineComponent({
22
+ var script$2 = /*#__PURE__*/vue.defineComponent({
23
23
  __name: 'IVMrpModal',
24
24
  props: {
25
25
  show: {
@@ -59,7 +59,7 @@
59
59
  }, {
60
60
  title: vue.withCtx(function () {
61
61
  return [vue.renderSlot(_ctx.$slots, "title", {}, function () {
62
- return [_hoisted_1$1];
62
+ return [_hoisted_1$2];
63
63
  })];
64
64
  }),
65
65
  closeIcon: vue.withCtx(function () {
@@ -80,7 +80,7 @@
80
80
  }
81
81
  });
82
82
 
83
- script$1.__file = "src/function-ui/component/IVMrpModal.vue";
83
+ script$2.__file = "src/function-ui/component/IVMrpModal.vue";
84
84
 
85
85
  function ownKeys(object, enumerableOnly) {
86
86
  var keys = Object.keys(object);
@@ -507,7 +507,7 @@
507
507
  /*
508
508
  * @Author: Mr.Cong Wei
509
509
  * @Date: 2022-08-10 10:13:38
510
- * @LastEditTime: 2022-08-10 11:34:28
510
+ * @LastEditTime: 2022-08-10 16:13:56
511
511
  */
512
512
  var BASE_URL = "https://basis.nacho.cn";
513
513
  var DEFIND_OPTION = {
@@ -527,6 +527,12 @@
527
527
  option: _objectSpread2({
528
528
  method: "GET"
529
529
  }, DEFIND_OPTION)
530
+ },
531
+ getIVMrpProdBaseDropdown: {
532
+ url: "/api/basis-management/production-base/all",
533
+ option: _objectSpread2({
534
+ method: "GET"
535
+ }, DEFIND_OPTION)
530
536
  }
531
537
  };
532
538
  var formatHTTP = function formatHTTP(fetch) {
@@ -553,8 +559,6 @@
553
559
  return base + api + "?" + urlTemparr.join("&");
554
560
  };
555
561
 
556
- // utils/arr/tree.ts
557
-
558
562
  function _loadChildren(obj, list) {
559
563
  var arr = list.filter(function (x) {
560
564
  return x.parentId == obj.id;
@@ -566,7 +570,6 @@
566
570
  });
567
571
  return obj;
568
572
  }
569
-
570
573
  function tranListToTreeData(list) {
571
574
  var results = list.filter(function (x) {
572
575
  return x.parentId == null;
@@ -576,11 +579,9 @@
576
579
  });
577
580
  return results;
578
581
  }
579
-
580
-
581
582
  var assign = Object.assign;
582
583
 
583
- var _hoisted_1 = /*#__PURE__*/vue.createElementVNode("div", {
584
+ var _hoisted_1$1 = /*#__PURE__*/vue.createElementVNode("div", {
584
585
  "class": "text-[#0000006D] text-[14px]"
585
586
  }, "所属组织", -1
586
587
  /* HOISTED */
@@ -589,7 +590,7 @@
589
590
  * 组件定义-------------------------------------
590
591
  * */
591
592
 
592
- var script = /*#__PURE__*/vue.defineComponent({
593
+ var script$1 = /*#__PURE__*/vue.defineComponent({
593
594
  __name: 'IVMrpOrgDropdown',
594
595
  props: {
595
596
  value: {
@@ -600,6 +601,10 @@
600
601
  type: Object,
601
602
  required: false
602
603
  },
604
+ data: {
605
+ type: Object,
606
+ required: false
607
+ },
603
608
  replaceFields: {
604
609
  type: Object,
605
610
  required: false
@@ -677,32 +682,27 @@
677
682
  * */
678
683
 
679
684
  vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
680
- var _a;
685
+ var _a, _b;
681
686
 
682
687
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
683
688
  while (1) {
684
689
  switch (_context2.prev = _context2.next) {
685
690
  case 0:
686
- console.log(props.params, "props11111111111111111111111122222222222222222222");
691
+ // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
687
692
  getData({
688
693
  params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
689
694
  type: 1
690
- })
695
+ }),
696
+ data: (_b = props.data) !== null && _b !== void 0 ? _b : null
691
697
  });
692
698
 
693
- case 2:
699
+ case 1:
694
700
  case "end":
695
701
  return _context2.stop();
696
702
  }
697
703
  }
698
704
  }, _callee2);
699
705
  })));
700
- /**
701
- * 生命周期-------------------------------------
702
- * */
703
-
704
- vue.onBeforeMount(function () {// getData();
705
- });
706
706
  return function (_ctx, _cache) {
707
707
  var _component_a_tree_select = vue.resolveComponent("a-tree-select");
708
708
 
@@ -716,10 +716,10 @@
716
716
  }]
717
717
  }, {
718
718
  label: vue.withCtx(function () {
719
- return [_hoisted_1];
719
+ return [_hoisted_1$1];
720
720
  }),
721
721
  "default": vue.withCtx(function () {
722
- return [vue.createVNode(_component_a_tree_select, {
722
+ return [vue.createVNode(_component_a_tree_select, vue.mergeProps(_ctx.$attrs, {
723
723
  value: vue.unref(inputV),
724
724
  "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
725
725
  return vue.isRef(inputV) ? inputV.value = $event : null;
@@ -735,8 +735,8 @@
735
735
  "width": "300px"
736
736
  },
737
737
  replaceFields: replaceFields.value
738
- }, null, 8
739
- /* PROPS */
738
+ }), null, 16
739
+ /* FULL_PROPS */
740
740
  , ["value", "tree-data", "getPopupContainer", "replaceFields"])];
741
741
  }),
742
742
  _: 1
@@ -747,14 +747,176 @@
747
747
  }
748
748
  });
749
749
 
750
- script.__file = "src/business-ui/component/IVMrpOrgDropdown.vue";
750
+ script$1.__file = "src/business-ui/component/IVMrpOrgDropdown.vue";
751
+
752
+ var _hoisted_1 = /*#__PURE__*/vue.createElementVNode("div", {
753
+ "class": "text-[#0000006D] text-[14px]"
754
+ }, "所属基地", -1
755
+ /* HOISTED */
756
+ );
757
+ /**
758
+ * 组件定义-------------------------------------
759
+ * */
760
+
761
+ var script = /*#__PURE__*/vue.defineComponent({
762
+ __name: 'IVMrpProdBaseDropdown',
763
+ props: {
764
+ value: {
765
+ type: null,
766
+ required: true
767
+ },
768
+ params: {
769
+ type: Object,
770
+ required: false
771
+ },
772
+ data: {
773
+ type: Object,
774
+ required: false
775
+ },
776
+ fieldNames: {
777
+ type: Object,
778
+ required: false
779
+ }
780
+ },
781
+ emits: ["update:value"],
782
+ setup: function setup(__props, _ref) {
783
+ var emit = _ref.emit;
784
+
785
+ var _a;
786
+
787
+ var props = __props;
788
+ /**
789
+ * 获取数据-------------------------------------
790
+ * */
791
+
792
+ var dataV = vue.ref();
793
+
794
+ var getData = /*#__PURE__*/function () {
795
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
796
+ var _option,
797
+ _a,
798
+ _args = arguments;
799
+
800
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
801
+ while (1) {
802
+ switch (_context.prev = _context.next) {
803
+ case 0:
804
+ _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
805
+ _context.next = 3;
806
+ return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpProdBaseDropdown.url, _option.params), assign({
807
+ data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
808
+ }, API_OPTION.getIVMrpProdBaseDropdown.option)));
809
+
810
+ case 3:
811
+ dataV.value = _context.sent;
812
+
813
+ case 4:
814
+ case "end":
815
+ return _context.stop();
816
+ }
817
+ }
818
+ }, _callee);
819
+ }));
820
+
821
+ return function getData() {
822
+ return _ref2.apply(this, arguments);
823
+ };
824
+ }();
825
+ /**
826
+ * 默认参数-------------------------------------
827
+ * */
828
+
829
+
830
+ var fieldNames = vue.ref((_a = props.fieldNames) !== null && _a !== void 0 ? _a : {
831
+ label: "name",
832
+ value: "id"
833
+ });
834
+ var inputV = vue.computed({
835
+ get: function get() {
836
+ return props.value;
837
+ },
838
+ set: function set(value) {
839
+ emit("update:value", value);
840
+ }
841
+ });
842
+ /**
843
+ * 侦听器-------------------------------------
844
+ * */
845
+
846
+ vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
847
+ var _a, _b;
848
+
849
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
850
+ while (1) {
851
+ switch (_context2.prev = _context2.next) {
852
+ case 0:
853
+ // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
854
+ getData({
855
+ params: (_a = props.params) !== null && _a !== void 0 ? _a : null,
856
+ data: (_b = props.data) !== null && _b !== void 0 ? _b : null
857
+ });
858
+
859
+ case 1:
860
+ case "end":
861
+ return _context2.stop();
862
+ }
863
+ }
864
+ }, _callee2);
865
+ })));
866
+ return function (_ctx, _cache) {
867
+ var _component_a_select = vue.resolveComponent("a-select");
868
+
869
+ var _component_a_form_item = vue.resolveComponent("a-form-item");
870
+
871
+ return vue.openBlock(), vue.createBlock(_component_a_form_item, {
872
+ name: "organizationIds",
873
+ "wrapper-col": {
874
+ span: 8
875
+ },
876
+ rules: [{
877
+ required: true,
878
+ message: '请选择所属基地'
879
+ }]
880
+ }, {
881
+ label: vue.withCtx(function () {
882
+ return [_hoisted_1];
883
+ }),
884
+ "default": vue.withCtx(function () {
885
+ return [vue.createVNode(_component_a_select, vue.mergeProps(_ctx.$attrs, {
886
+ getPopupContainer: function getPopupContainer(triggerNode) {
887
+ return triggerNode.parentNode;
888
+ },
889
+ value: vue.unref(inputV),
890
+ "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
891
+ return vue.isRef(inputV) ? inputV.value = $event : null;
892
+ }),
893
+ mode: "multiple",
894
+ style: {
895
+ "width": "100%"
896
+ },
897
+ placeholder: "请选择",
898
+ options: dataV.value,
899
+ fieldNames: fieldNames.value
900
+ }), null, 16
901
+ /* FULL_PROPS */
902
+ , ["getPopupContainer", "value", "options", "fieldNames"])];
903
+ }),
904
+ _: 1
905
+ /* STABLE */
906
+
907
+ });
908
+ };
909
+ }
910
+ });
911
+
912
+ script.__file = "src/business-ui/component/IVMrpProdBaseDropdown.vue";
751
913
 
752
914
  /*
753
915
  * @Author: Mr.Cong Wei
754
916
  * @Date: 2022-08-08 18:47:06
755
- * @LastEditTime: 2022-08-09 18:12:36
917
+ * @LastEditTime: 2022-08-10 16:16:59
756
918
  */
757
- var components = [script$1, script];
919
+ var components = [script$2, script$1, script];
758
920
  installComponents(); // 单独引用
759
921
 
760
922
  function installComponents() {
@@ -776,10 +938,12 @@
776
938
  install: install
777
939
  };
778
940
 
779
- exports.IVMrpModal = script$1;
780
- exports.IVMrpOrgDropdown = script;
941
+ exports.IVMrpModal = script$2;
942
+ exports.IVMrpOrgDropdown = script$1;
943
+ exports.IVMrpProdBaseDropdown = script;
781
944
  exports["default"] = cAll;
782
945
 
783
946
  Object.defineProperty(exports, '__esModule', { value: true });
784
947
 
785
948
  }));
949
+ //# sourceMappingURL=index.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.umd.js","sources":["../../shared/dist/utils/index.mjs"],"sourcesContent":["// utils/arr/tree.ts\nfunction arrToTree(list, parentMark, childrenMark) {\n let result = [], temp;\n for (let i = 0; i < list.length; i++) {\n if (!list[i][parentMark]) {\n temp = list.filter(\n (item) => item[parentMark] === list[i][childrenMark]\n );\n if (temp.length > 0) {\n list[i].children = temp;\n }\n result.push(list[i]);\n }\n }\n return result;\n}\nfunction _loadChildren(obj, list) {\n const arr = list.filter((x) => x.parentId == obj.id);\n if (!arr.length)\n return;\n obj.children = arr;\n obj.children.forEach((x) => {\n _loadChildren(x, list);\n });\n return obj;\n}\nfunction tranListToTreeData(list) {\n const results = list.filter((x) => x.parentId == null);\n results.forEach((x) => _loadChildren(x, list));\n return results;\n}\nfunction findTree(id, list, idName) {\n let result;\n if (!list.length)\n return;\n const fn = (id2, list2, idName2) => {\n list2.find((_e) => {\n if (_e[idName2] === id2) {\n result = _e;\n } else if (_e.children && _e.children.length !== 0)\n return fn(id2, _e.children, idName2);\n });\n };\n fn(id, list, idName);\n return result;\n}\n\n// utils/obj/judge.ts\nfunction isPlainObject(obj) {\n let proto, Ctor;\n if (!obj || toString.call(obj) !== \"[object Object]\") {\n return false;\n }\n proto = Object.getPrototypeOf(obj);\n if (!proto) {\n return true;\n }\n Ctor = {}.hasOwnProperty.call(proto, \"constructor\") && proto.constructor;\n return typeof Ctor === \"function\" && {}.hasOwnProperty.toString.call(Ctor) === {}.hasOwnProperty.toString.call(Object);\n}\n\n// utils/obj/cache.ts\nvar assign = Object.assign;\nexport {\n arrToTree,\n assign,\n findTree,\n isPlainObject,\n tranListToTreeData\n};\n"],"names":["_loadChildren","obj","list","arr","filter","x","parentId","id","length","children","forEach","tranListToTreeData","results","assign","Object"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBA,SAASA,aAAT,CAAuBC,GAAvB,EAA4BC,IAA5B,EAAkC;EAChC,EAAA,IAAMC,GAAG,GAAGD,IAAI,CAACE,MAAL,CAAY,UAACC,CAAD,EAAA;EAAA,IAAA,OAAOA,CAAC,CAACC,QAAF,IAAcL,GAAG,CAACM,EAAzB,CAAA;EAAA,GAAZ,CAAZ,CAAA;EACA,EAAA,IAAI,CAACJ,GAAG,CAACK,MAAT,EACE,OAAA;IACFP,GAAG,CAACQ,QAAJ,GAAeN,GAAf,CAAA;EACAF,EAAAA,GAAG,CAACQ,QAAJ,CAAaC,OAAb,CAAqB,UAACL,CAAD,EAAO;EAC1BL,IAAAA,aAAa,CAACK,CAAD,EAAIH,IAAJ,CAAb,CAAA;KADF,CAAA,CAAA;EAGA,EAAA,OAAOD,GAAP,CAAA;EACD,CAAA;EACD,SAASU,kBAAT,CAA4BT,IAA5B,EAAkC;EAChC,EAAA,IAAMU,OAAO,GAAGV,IAAI,CAACE,MAAL,CAAY,UAACC,CAAD,EAAA;EAAA,IAAA,OAAOA,CAAC,CAACC,QAAF,IAAc,IAArB,CAAA;EAAA,GAAZ,CAAhB,CAAA;EACAM,EAAAA,OAAO,CAACF,OAAR,CAAgB,UAACL,CAAD,EAAA;EAAA,IAAA,OAAOL,aAAa,CAACK,CAAD,EAAIH,IAAJ,CAApB,CAAA;KAAhB,CAAA,CAAA;EACA,EAAA,OAAOU,OAAP,CAAA;EACD,CAAA;EAgCD,IAAIC,MAAM,GAAGC,MAAM,CAACD,MAApB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -42,7 +42,10 @@
42
42
  "node-sass": "^7.0.1",
43
43
  "postcss": "^8.4.16",
44
44
  "rollup": "^2.77.2",
45
+ "rollup-plugin-cleanup": "^3.2.1",
45
46
  "rollup-plugin-postcss": "^4.0.2",
47
+ "rollup-plugin-sourcemaps": "^0.6.3",
48
+ "rollup-plugin-terser": "^7.0.2",
46
49
  "rollup-plugin-typescript2": "^0.32.1",
47
50
  "rollup-plugin-vue": "^6.0.0",
48
51
  "sass": "^1.54.3",
package/pnpm-lock.yaml CHANGED
@@ -34,7 +34,10 @@ importers:
34
34
  node-sass: ^7.0.1
35
35
  postcss: ^8.4.16
36
36
  rollup: ^2.77.2
37
+ rollup-plugin-cleanup: ^3.2.1
37
38
  rollup-plugin-postcss: ^4.0.2
39
+ rollup-plugin-sourcemaps: ^0.6.3
40
+ rollup-plugin-terser: ^7.0.2
38
41
  rollup-plugin-typescript2: ^0.32.1
39
42
  rollup-plugin-vue: ^6.0.0
40
43
  sass: ^1.54.3
@@ -60,7 +63,10 @@ importers:
60
63
  node-sass: 7.0.1
61
64
  postcss: 8.4.16
62
65
  rollup: 2.77.2
66
+ rollup-plugin-cleanup: 3.2.1_rollup@2.77.2
63
67
  rollup-plugin-postcss: 4.0.2_postcss@8.4.16
68
+ rollup-plugin-sourcemaps: 0.6.3_sjeba4rp2lyovjwtw5dvzx32ne
69
+ rollup-plugin-terser: 7.0.2_rollup@2.77.2
64
70
  rollup-plugin-typescript2: 0.32.1_oo3i3f3qmqiztdz5qgxrrjmd5e
65
71
  rollup-plugin-vue: 6.0.0_@vue+compiler-sfc@3.2.37
66
72
  sass: 1.54.3
@@ -1329,6 +1335,13 @@ packages:
1329
1335
  engines: {node: '>=6.0.0'}
1330
1336
  dev: true
1331
1337
 
1338
+ /@jridgewell/source-map/0.3.2:
1339
+ resolution: {integrity: sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==}
1340
+ dependencies:
1341
+ '@jridgewell/gen-mapping': 0.3.2
1342
+ '@jridgewell/trace-mapping': 0.3.14
1343
+ dev: true
1344
+
1332
1345
  /@jridgewell/sourcemap-codec/1.4.14:
1333
1346
  resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==}
1334
1347
  dev: true
@@ -1583,6 +1596,12 @@ packages:
1583
1596
  resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}
1584
1597
  dev: true
1585
1598
 
1599
+ /acorn/8.8.0:
1600
+ resolution: {integrity: sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==}
1601
+ engines: {node: '>=0.4.0'}
1602
+ hasBin: true
1603
+ dev: true
1604
+
1586
1605
  /agent-base/6.0.2:
1587
1606
  resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}
1588
1607
  engines: {node: '>= 6.0.0'}
@@ -1745,6 +1764,12 @@ packages:
1745
1764
  resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
1746
1765
  dev: true
1747
1766
 
1767
+ /atob/2.1.2:
1768
+ resolution: {integrity: sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==}
1769
+ engines: {node: '>= 4.5.0'}
1770
+ hasBin: true
1771
+ dev: true
1772
+
1748
1773
  /aws-sign2/0.7.0:
1749
1774
  resolution: {integrity: sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==}
1750
1775
  dev: true
@@ -2023,6 +2048,10 @@ packages:
2023
2048
  delayed-stream: 1.0.0
2024
2049
  dev: true
2025
2050
 
2051
+ /commander/2.20.3:
2052
+ resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
2053
+ dev: true
2054
+
2026
2055
  /commander/4.1.1:
2027
2056
  resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}
2028
2057
  engines: {node: '>= 6'}
@@ -2234,6 +2263,11 @@ packages:
2234
2263
  engines: {node: '>=0.10.0'}
2235
2264
  dev: true
2236
2265
 
2266
+ /decode-uri-component/0.2.0:
2267
+ resolution: {integrity: sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og==}
2268
+ engines: {node: '>=0.10'}
2269
+ dev: true
2270
+
2237
2271
  /deepmerge/4.2.2:
2238
2272
  resolution: {integrity: sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==}
2239
2273
  engines: {node: '>=0.10.0'}
@@ -3293,6 +3327,15 @@ packages:
3293
3327
  resolution: {integrity: sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==}
3294
3328
  dev: true
3295
3329
 
3330
+ /jest-worker/26.6.2:
3331
+ resolution: {integrity: sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==}
3332
+ engines: {node: '>= 10.13.0'}
3333
+ dependencies:
3334
+ '@types/node': 18.6.4
3335
+ merge-stream: 2.0.0
3336
+ supports-color: 7.2.0
3337
+ dev: true
3338
+
3296
3339
  /joycon/3.1.1:
3297
3340
  resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==}
3298
3341
  engines: {node: '>=10'}
@@ -3302,6 +3345,15 @@ packages:
3302
3345
  resolution: {integrity: sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==}
3303
3346
  dev: true
3304
3347
 
3348
+ /js-cleanup/1.2.0:
3349
+ resolution: {integrity: sha512-JeDD0yiiSt80fXzAVa/crrS0JDPQljyBG/RpOtaSbyDq03VHa9szJWMaWOYU/bcTn412uMN2MxApXq8v79cUiQ==}
3350
+ engines: {node: ^10.14.2 || >=12.0.0}
3351
+ dependencies:
3352
+ magic-string: 0.25.9
3353
+ perf-regexes: 1.0.1
3354
+ skip-regex: 1.0.2
3355
+ dev: true
3356
+
3305
3357
  /js-tokens/4.0.0:
3306
3358
  resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
3307
3359
  dev: true
@@ -3945,6 +3997,11 @@ packages:
3945
3997
  engines: {node: '>=8'}
3946
3998
  dev: true
3947
3999
 
4000
+ /perf-regexes/1.0.1:
4001
+ resolution: {integrity: sha512-L7MXxUDtqr4PUaLFCDCXBfGV/6KLIuSEccizDI7JxT+c9x1G1v04BQ4+4oag84SHaCdrBgQAIs/Cqn+flwFPng==}
4002
+ engines: {node: '>=6.14'}
4003
+ dev: true
4004
+
3948
4005
  /performance-now/2.1.0:
3949
4006
  resolution: {integrity: sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==}
3950
4007
  dev: true
@@ -4429,6 +4486,12 @@ packages:
4429
4486
  engines: {node: '>=8'}
4430
4487
  dev: true
4431
4488
 
4489
+ /randombytes/2.1.0:
4490
+ resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==}
4491
+ dependencies:
4492
+ safe-buffer: 5.2.1
4493
+ dev: true
4494
+
4432
4495
  /read-pkg-up/7.0.1:
4433
4496
  resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==}
4434
4497
  engines: {node: '>=8'}
@@ -4604,6 +4667,17 @@ packages:
4604
4667
  glob: 7.1.6
4605
4668
  dev: true
4606
4669
 
4670
+ /rollup-plugin-cleanup/3.2.1_rollup@2.77.2:
4671
+ resolution: {integrity: sha512-zuv8EhoO3TpnrU8MX8W7YxSbO4gmOR0ny06Lm3nkFfq0IVKdBUtHwhVzY1OAJyNCIAdLiyPnOrU0KnO0Fri1GQ==}
4672
+ engines: {node: ^10.14.2 || >=12.0.0}
4673
+ peerDependencies:
4674
+ rollup: '>=2.0'
4675
+ dependencies:
4676
+ js-cleanup: 1.2.0
4677
+ rollup: 2.77.2
4678
+ rollup-pluginutils: 2.8.2
4679
+ dev: true
4680
+
4607
4681
  /rollup-plugin-postcss/4.0.2_postcss@8.4.16:
4608
4682
  resolution: {integrity: sha512-05EaY6zvZdmvPUDi3uCcAQoESDcYnv8ogJJQRp6V5kZ6J6P7uAVJlrTZcaaA20wTH527YTnKfkAoPxWI/jPp4w==}
4609
4683
  engines: {node: '>=10'}
@@ -4628,6 +4702,34 @@ packages:
4628
4702
  - ts-node
4629
4703
  dev: true
4630
4704
 
4705
+ /rollup-plugin-sourcemaps/0.6.3_sjeba4rp2lyovjwtw5dvzx32ne:
4706
+ resolution: {integrity: sha512-paFu+nT1xvuO1tPFYXGe+XnQvg4Hjqv/eIhG8i5EspfYYPBKL57X7iVbfv55aNVASg3dzWvES9dmWsL2KhfByw==}
4707
+ engines: {node: '>=10.0.0'}
4708
+ peerDependencies:
4709
+ '@types/node': '>=10.0.0'
4710
+ rollup: '>=0.31.2'
4711
+ peerDependenciesMeta:
4712
+ '@types/node':
4713
+ optional: true
4714
+ dependencies:
4715
+ '@rollup/pluginutils': 3.1.0_rollup@2.77.2
4716
+ '@types/node': 18.6.4
4717
+ rollup: 2.77.2
4718
+ source-map-resolve: 0.6.0
4719
+ dev: true
4720
+
4721
+ /rollup-plugin-terser/7.0.2_rollup@2.77.2:
4722
+ resolution: {integrity: sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==}
4723
+ peerDependencies:
4724
+ rollup: ^2.0.0
4725
+ dependencies:
4726
+ '@babel/code-frame': 7.18.6
4727
+ jest-worker: 26.6.2
4728
+ rollup: 2.77.2
4729
+ serialize-javascript: 4.0.0
4730
+ terser: 5.14.2
4731
+ dev: true
4732
+
4631
4733
  /rollup-plugin-typescript2/0.32.1_oo3i3f3qmqiztdz5qgxrrjmd5e:
4632
4734
  resolution: {integrity: sha512-RanO8bp1WbeMv0bVlgcbsFNCn+Y3rX7wF97SQLDxf0fMLsg0B/QFF005t4AsGUcDgF3aKJHoqt4JF2xVaABeKw==}
4633
4735
  peerDependencies:
@@ -4749,6 +4851,12 @@ packages:
4749
4851
  lru-cache: 6.0.0
4750
4852
  dev: true
4751
4853
 
4854
+ /serialize-javascript/4.0.0:
4855
+ resolution: {integrity: sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==}
4856
+ dependencies:
4857
+ randombytes: 2.1.0
4858
+ dev: true
4859
+
4752
4860
  /set-blocking/2.0.0:
4753
4861
  resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==}
4754
4862
  dev: true
@@ -4788,6 +4896,11 @@ packages:
4788
4896
  resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
4789
4897
  dev: true
4790
4898
 
4899
+ /skip-regex/1.0.2:
4900
+ resolution: {integrity: sha512-pEjMUbwJ5Pl/6Vn6FsamXHXItJXSRftcibixDmNCWbWhic0hzHrwkMZo0IZ7fMRH9KxcWDFSkzhccB4285PutA==}
4901
+ engines: {node: '>=4.2'}
4902
+ dev: true
4903
+
4791
4904
  /slash/3.0.0:
4792
4905
  resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
4793
4906
  engines: {node: '>=8'}
@@ -4822,6 +4935,14 @@ packages:
4822
4935
  engines: {node: '>=0.10.0'}
4823
4936
  dev: true
4824
4937
 
4938
+ /source-map-resolve/0.6.0:
4939
+ resolution: {integrity: sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==}
4940
+ deprecated: See https://github.com/lydell/source-map-resolve#deprecated
4941
+ dependencies:
4942
+ atob: 2.1.2
4943
+ decode-uri-component: 0.2.0
4944
+ dev: true
4945
+
4825
4946
  /source-map-support/0.5.21:
4826
4947
  resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}
4827
4948
  dependencies:
@@ -5039,6 +5160,17 @@ packages:
5039
5160
  yallist: 4.0.0
5040
5161
  dev: true
5041
5162
 
5163
+ /terser/5.14.2:
5164
+ resolution: {integrity: sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==}
5165
+ engines: {node: '>=10'}
5166
+ hasBin: true
5167
+ dependencies:
5168
+ '@jridgewell/source-map': 0.3.2
5169
+ acorn: 8.8.0
5170
+ commander: 2.20.3
5171
+ source-map-support: 0.5.21
5172
+ dev: true
5173
+
5042
5174
  /thenify-all/1.6.0:
5043
5175
  resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==}
5044
5176
  engines: {node: '>=0.8'}