@fonixtree/magic-design 2.0.170 → 2.0.172

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.
Files changed (179) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +39 -3
  2. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  3. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  4. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  5. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  6. package/es/assets/images/base64/index.js +8 -2
  7. package/es/assets/images/common/product.png +0 -0
  8. package/es/assets/images/layout-icon/locationLayout.png +0 -0
  9. package/es/assets/images/layout-icon/storesLayout1.png +0 -0
  10. package/es/assets/images/layout-icon/storesLayout2.png +0 -0
  11. package/es/assets/less/common.less +40 -3
  12. package/es/common/Field/index.js +5 -2
  13. package/es/common/Field/index.less +5 -0
  14. package/es/common/MyModal/index.less +12 -4
  15. package/{lib/composite-comp/bol/components/Wallet → es/composite-comp/ashita/components/WalletAshita}/defaultJSON.js +1 -1
  16. package/es/composite-comp/ashita/components/WalletAshita/index.js +84 -0
  17. package/{lib/composite-comp/bol/config-panels/WalletConfig → es/composite-comp/ashita/config-panels/WalletAshitaConfig}/WalletConfigImageGroup/index.js +1 -1
  18. package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
  19. package/es/composite-comp/public/components/Location/defaultJSON.js +104 -0
  20. package/es/composite-comp/public/components/Location/index.js +86 -0
  21. package/es/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
  22. package/es/composite-comp/public/components/Location/mobile/index.js +353 -0
  23. package/es/composite-comp/public/components/Location/mobile/index.less +90 -0
  24. package/es/composite-comp/public/components/Stores/defaultJSON.js +348 -0
  25. package/es/composite-comp/public/components/Stores/index.js +86 -0
  26. package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.js +275 -0
  27. package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.less +81 -0
  28. package/es/composite-comp/public/components/Stores/mobile/index.js +198 -0
  29. package/es/composite-comp/public/components/Stores/mobile/index.less +37 -0
  30. package/es/composite-comp/public/components/Wallet/defaultJSON.js +149 -0
  31. package/es/composite-comp/public/components/Wallet/mobile/index.js +350 -0
  32. package/es/composite-comp/public/components/Wallet/mobile/index.less +22 -0
  33. package/es/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +153 -0
  34. package/{lib/composite-comp/bol → es/composite-comp/public}/config-panels/LocationConfig/index.js +10 -52
  35. package/es/composite-comp/public/config-panels/LocationConfig/index.less +17 -0
  36. package/es/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +176 -0
  37. package/es/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +103 -0
  38. package/es/composite-comp/public/config-panels/StoresConfig/index.js +134 -0
  39. package/es/constants/component-types.js +23 -13
  40. package/es/constants/index.js +9 -1
  41. package/es/constants/layout.js +18 -4
  42. package/es/locale/ba/ba.json +360 -0
  43. package/es/locale/en/en.json +15 -1
  44. package/es/locale/es/es.json +15 -1
  45. package/es/locale/index.js +5 -1
  46. package/es/locale/mn/mn.json +15 -1
  47. package/es/meta-comp/components/Text/index.less +6 -0
  48. package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +207 -0
  49. package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +81 -0
  50. package/es/meta-comp/config-panels/ButtonConfig/index.js +7 -8
  51. package/es/utils/commonUtil.js +21 -9
  52. package/lib/assets/fonts/magic-box-iconfont.css +39 -3
  53. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  54. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  55. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  56. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  57. package/lib/assets/images/base64/index.js +8 -2
  58. package/lib/assets/images/common/product.png +0 -0
  59. package/lib/assets/images/layout-icon/locationLayout.png +0 -0
  60. package/lib/assets/images/layout-icon/storesLayout1.png +0 -0
  61. package/lib/assets/images/layout-icon/storesLayout2.png +0 -0
  62. package/lib/assets/less/common.less +40 -3
  63. package/lib/common/Field/index.js +5 -2
  64. package/lib/common/Field/index.less +5 -0
  65. package/lib/common/MyModal/index.less +12 -4
  66. package/{es/composite-comp/bol/components/Wallet → lib/composite-comp/ashita/components/WalletAshita}/defaultJSON.js +1 -1
  67. package/lib/composite-comp/ashita/components/WalletAshita/index.js +84 -0
  68. package/{es/composite-comp/bol/config-panels/WalletConfig → lib/composite-comp/ashita/config-panels/WalletAshitaConfig}/WalletConfigImageGroup/index.js +1 -1
  69. package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigImageGroup/index.less +0 -0
  70. package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
  71. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  72. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  73. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  74. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  75. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  76. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  77. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/index.js +61 -0
  78. package/lib/composite-comp/nuri/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  79. package/lib/composite-comp/public/components/Location/defaultJSON.js +104 -0
  80. package/lib/composite-comp/public/components/Location/index.js +86 -0
  81. package/lib/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
  82. package/lib/composite-comp/public/components/Location/mobile/index.js +353 -0
  83. package/lib/composite-comp/public/components/Location/mobile/index.less +90 -0
  84. package/lib/composite-comp/public/components/Stores/defaultJSON.js +348 -0
  85. package/lib/composite-comp/public/components/Stores/index.js +86 -0
  86. package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.js +275 -0
  87. package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.less +81 -0
  88. package/lib/composite-comp/public/components/Stores/mobile/index.js +198 -0
  89. package/lib/composite-comp/public/components/Stores/mobile/index.less +37 -0
  90. package/lib/composite-comp/public/components/Wallet/defaultJSON.js +149 -0
  91. package/lib/composite-comp/public/components/Wallet/mobile/index.js +350 -0
  92. package/lib/composite-comp/public/components/Wallet/mobile/index.less +22 -0
  93. package/lib/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +153 -0
  94. package/{es/composite-comp/bol → lib/composite-comp/public}/config-panels/LocationConfig/index.js +10 -52
  95. package/lib/composite-comp/public/config-panels/LocationConfig/index.less +17 -0
  96. package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +176 -0
  97. package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.less +0 -0
  98. package/lib/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +103 -0
  99. package/lib/composite-comp/public/config-panels/StoresConfig/index.js +134 -0
  100. package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/defaultImg.png +0 -0
  101. package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.js +100 -0
  102. package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.less +72 -0
  103. package/lib/composite-comp/public/config-panels/WalletConfig/WalletNuriConfigImageGroup/index.js +123 -0
  104. package/lib/composite-comp/public/config-panels/WalletConfig/WalletNuriConfigImageGroup/index.less +0 -0
  105. package/lib/composite-comp/public/config-panels/WalletConfig/imgs/defaultImg.png +0 -0
  106. package/lib/composite-comp/public/config-panels/WalletConfig/index.js +61 -0
  107. package/lib/composite-comp/public/second-config-panels/WalletSecondConfig/index.js +152 -0
  108. package/lib/constants/component-types.js +23 -13
  109. package/lib/constants/index.js +9 -1
  110. package/lib/constants/layout.js +18 -4
  111. package/lib/locale/ba/ba.json +360 -0
  112. package/lib/locale/en/en.json +15 -1
  113. package/lib/locale/es/es.json +15 -1
  114. package/lib/locale/index.js +5 -1
  115. package/lib/locale/mn/mn.json +15 -1
  116. package/lib/meta-comp/components/Text/index.less +6 -0
  117. package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +207 -0
  118. package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +81 -0
  119. package/lib/meta-comp/config-panels/ButtonConfig/index.js +7 -8
  120. package/lib/utils/commonUtil.js +21 -9
  121. package/package.json +1 -1
  122. package/es/composite-comp/bol/components/Location/defaultJSON.js +0 -60
  123. package/es/composite-comp/bol/components/Location/index.js +0 -102
  124. package/es/composite-comp/bol/components/Location/index.less +0 -15
  125. package/lib/composite-comp/bol/components/Location/defaultJSON.js +0 -60
  126. package/lib/composite-comp/bol/components/Location/index.js +0 -102
  127. package/lib/composite-comp/bol/components/Location/index.less +0 -15
  128. /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.js +0 -0
  129. /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.less +0 -0
  130. /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.js +0 -0
  131. /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.less +0 -0
  132. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigContent/index.js +0 -0
  133. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigContent/index.less +0 -0
  134. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigImageGroup/index.less +0 -0
  135. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.js +0 -0
  136. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.less +0 -0
  137. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/imgs/defaultImg.png +0 -0
  138. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/index.js +0 -0
  139. /package/es/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.js +0 -0
  140. /package/es/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.less +0 -0
  141. /package/es/composite-comp/{bol → nuri}/components/WalletNuri/defaultJSON.js +0 -0
  142. /package/es/composite-comp/{bol → nuri}/components/WalletNuri/index.js +0 -0
  143. /package/es/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.js +0 -0
  144. /package/es/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.less +0 -0
  145. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  146. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/GroupList/index.js +0 -0
  147. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/GroupList/index.less +0 -0
  148. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -0
  149. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  150. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  151. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/index.js +0 -0
  152. /package/es/composite-comp/{bol → nuri}/second-config-panels/WalletNuriSecondConfig/index.js +0 -0
  153. /package/es/composite-comp/{bol → public}/components/Wallet/index.js +0 -0
  154. /package/{lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigContent → es/composite-comp/public/config-panels/StoresConfig/ConfigContent}/index.less +0 -0
  155. /package/{lib/composite-comp/bol/config-panels/WalletConfig/imgs → es/composite-comp/public/config-panels/WalletConfig/GroupList}/defaultImg.png +0 -0
  156. /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/GroupList/index.js +0 -0
  157. /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/GroupList/index.less +0 -0
  158. /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/WalletNuriConfigImageGroup/index.js +0 -0
  159. /package/{lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup → es/composite-comp/public/config-panels/WalletConfig/WalletNuriConfigImageGroup}/index.less +0 -0
  160. /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList → es/composite-comp/public/config-panels/WalletConfig/imgs}/defaultImg.png +0 -0
  161. /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/index.js +0 -0
  162. /package/{lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig → es/composite-comp/public/second-config-panels/WalletSecondConfig}/index.js +0 -0
  163. /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.js +0 -0
  164. /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.less +0 -0
  165. /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.js +0 -0
  166. /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.less +0 -0
  167. /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigContent/index.js +0 -0
  168. /package/lib/composite-comp/{bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup → ashita/config-panels/WalletAshitaConfig/WalletConfigContent}/index.less +0 -0
  169. /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.js +0 -0
  170. /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.less +0 -0
  171. /package/lib/composite-comp/{bol/config-panels/WalletNuriConfig → ashita/config-panels/WalletAshitaConfig}/imgs/defaultImg.png +0 -0
  172. /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/index.js +0 -0
  173. /package/lib/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.js +0 -0
  174. /package/lib/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.less +0 -0
  175. /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/defaultJSON.js +0 -0
  176. /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/index.js +0 -0
  177. /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.js +0 -0
  178. /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.less +0 -0
  179. /package/lib/composite-comp/{bol → public}/components/Wallet/index.js +0 -0
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _mobxReact = require("mobx-react");
11
+
12
+ var _coreUtil = require("../../../../../utils/coreUtil");
13
+
14
+ var _decorator = require("../../../../../decorator");
15
+
16
+ var _GroupList = _interopRequireDefault(require("../GroupList"));
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
21
+
22
+ var __extends = void 0 && (void 0).__extends || function () {
23
+ var _extendStatics = function extendStatics(d, b) {
24
+ _extendStatics = Object.setPrototypeOf || {
25
+ __proto__: []
26
+ } instanceof Array && function (d, b) {
27
+ d.__proto__ = b;
28
+ } || function (d, b) {
29
+ for (var p in b) {
30
+ if (b.hasOwnProperty(p)) d[p] = b[p];
31
+ }
32
+ };
33
+
34
+ return _extendStatics(d, b);
35
+ };
36
+
37
+ return function (d, b) {
38
+ _extendStatics(d, b);
39
+
40
+ function __() {
41
+ this.constructor = d;
42
+ }
43
+
44
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45
+ };
46
+ }();
47
+
48
+ var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
49
+ var c = arguments.length,
50
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
51
+ d;
52
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
53
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
54
+ }
55
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
56
+ };
57
+
58
+ var notice = 'error';
59
+
60
+ var WalletNuriConfigImageGroup =
61
+ /** @class */
62
+ function (_super) {
63
+ __extends(WalletNuriConfigImageGroup, _super);
64
+
65
+ function WalletNuriConfigImageGroup() {
66
+ var _this = _super !== null && _super.apply(this, arguments) || this;
67
+
68
+ _this.state = {};
69
+
70
+ _this.onClickItem = function (node) {
71
+ _this.props.store.setState({
72
+ clickedGroup: node.id
73
+ });
74
+ };
75
+
76
+ _this.reRender = function () {
77
+ (0, _coreUtil.renderPreview)();
78
+
79
+ _this.setState({});
80
+ };
81
+
82
+ return _this;
83
+ }
84
+
85
+ WalletNuriConfigImageGroup.prototype.render = function () {
86
+ var _a = this.props.source,
87
+ source = _a === void 0 ? [] : _a;
88
+
89
+ var _renderCard = function renderCard(src) {
90
+ var _a;
91
+
92
+ return /*#__PURE__*/_react["default"].createElement("div", {
93
+ className: "card_wrap"
94
+ }, /*#__PURE__*/_react["default"].createElement("div", {
95
+ className: "name"
96
+ }, (_a = src.title) === null || _a === void 0 ? void 0 : _a.text));
97
+ };
98
+
99
+ return /*#__PURE__*/_react["default"].createElement("div", {
100
+ className: "WALLET_image"
101
+ }, /*#__PURE__*/_react["default"].createElement("div", {
102
+ className: "node_list"
103
+ }, source.length === 0 ? /*#__PURE__*/_react["default"].createElement("span", {
104
+ className: "notice"
105
+ }, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
106
+ onClickItem: this.onClickItem,
107
+ renderCard: function renderCard(v) {
108
+ return _renderCard(v);
109
+ },
110
+ reRender: this.reRender,
111
+ source: source
112
+ })));
113
+ };
114
+
115
+ WalletNuriConfigImageGroup.defaultProps = {
116
+ source: []
117
+ };
118
+ WalletNuriConfigImageGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], WalletNuriConfigImageGroup);
119
+ return WalletNuriConfigImageGroup;
120
+ }(_react["default"].Component);
121
+
122
+ var _default = WalletNuriConfigImageGroup;
123
+ exports["default"] = _default;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = WalletNuriConfig;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _WalletNuriConfigImageGroup = _interopRequireDefault(require("./WalletNuriConfigImageGroup"));
11
+
12
+ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
13
+
14
+ var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
15
+
16
+ var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
17
+
18
+ var _layout = require("../../../../constants/layout");
19
+
20
+ var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
21
+
22
+ var _locale = require("../../../../locale");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ function WalletNuriConfig(props) {
27
+ var data = props.data;
28
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
29
+ divider: "bold",
30
+ headerSize: "large",
31
+ source: [{
32
+ key: 'walletNuri1',
33
+ name: (0, _locale.i18n)('GROUP'),
34
+ value: /*#__PURE__*/_react["default"].createElement(_WalletNuriConfigImageGroup["default"], {
35
+ source: data.groupSource
36
+ })
37
+ }, {
38
+ key: 'walletNuri2',
39
+ name: (0, _locale.i18n)('SPACING'),
40
+ value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
41
+ data: data.spacing
42
+ })
43
+ }, {
44
+ key: 'walletNuri3',
45
+ name: (0, _locale.i18n)('CUSTOMIZE'),
46
+ value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
47
+ component: "wallet",
48
+ data: data.customize,
49
+ isHideAlign: true,
50
+ layoutSource: _layout.WalletNuriLayout
51
+ })
52
+ }, {
53
+ key: 'walletNuri4',
54
+ name: (0, _locale.i18n)('BACKGROUND'),
55
+ value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
56
+ data: data.background
57
+ })
58
+ }],
59
+ type: "triangle"
60
+ }));
61
+ }
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _locale = require("../../../../locale");
11
+
12
+ var _common = require("../../../../common");
13
+
14
+ var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
15
+
16
+ var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
17
+
18
+ var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
19
+
20
+ var _coreUtil = require("../../../../utils/coreUtil");
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
24
+ var __extends = void 0 && (void 0).__extends || function () {
25
+ var _extendStatics = function extendStatics(d, b) {
26
+ _extendStatics = Object.setPrototypeOf || {
27
+ __proto__: []
28
+ } instanceof Array && function (d, b) {
29
+ d.__proto__ = b;
30
+ } || function (d, b) {
31
+ for (var p in b) {
32
+ if (b.hasOwnProperty(p)) d[p] = b[p];
33
+ }
34
+ };
35
+
36
+ return _extendStatics(d, b);
37
+ };
38
+
39
+ return function (d, b) {
40
+ _extendStatics(d, b);
41
+
42
+ function __() {
43
+ this.constructor = d;
44
+ }
45
+
46
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
+ };
48
+ }();
49
+
50
+ var WalletSecondConfig =
51
+ /** @class */
52
+ function (_super) {
53
+ __extends(WalletSecondConfig, _super);
54
+
55
+ function WalletSecondConfig() {
56
+ var _this = _super !== null && _super.apply(this, arguments) || this;
57
+
58
+ _this.state = {};
59
+
60
+ _this.reRender = function () {
61
+ (0, _coreUtil.renderPreview)();
62
+
63
+ _this.setState({});
64
+ };
65
+
66
+ _this.getContentPanel = function () {
67
+ var panelProps = _this.props.panelProps;
68
+
69
+ var iconSetting = /*#__PURE__*/_react["default"].createElement(_common.Field, {
70
+ title: ""
71
+ }, /*#__PURE__*/_react["default"].createElement(_common.IconPicker, {
72
+ onChange: function onChange(icon) {
73
+ panelProps.tip.url = icon;
74
+
75
+ _this.reRender();
76
+ },
77
+ value: panelProps.tip.url
78
+ }));
79
+
80
+ var defaultSource = [{
81
+ key: panelProps.logo.id,
82
+ name: (0, _locale.i18n)('LOGO'),
83
+ value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
84
+ data: panelProps.logo,
85
+ needHover: false
86
+ }),
87
+ metaOption: panelProps.logo
88
+ }, {
89
+ key: panelProps.title.id,
90
+ name: (0, _locale.i18n)('TITLE'),
91
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
92
+ data: panelProps.title
93
+ }),
94
+ metaOption: panelProps.title
95
+ }, {
96
+ key: panelProps.amount.id,
97
+ name: (0, _locale.i18n)('AMOUNT'),
98
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
99
+ data: panelProps.amount
100
+ }),
101
+ metaOption: panelProps.amount
102
+ }, {
103
+ key: panelProps.text.id,
104
+ name: (0, _locale.i18n)('TEXT'),
105
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
106
+ data: panelProps.text
107
+ }),
108
+ metaOption: panelProps.text
109
+ }, {
110
+ key: panelProps.tip.id,
111
+ name: (0, _locale.i18n)('TIPS'),
112
+ value: iconSetting,
113
+ metaOption: panelProps.tip
114
+ }];
115
+ return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
116
+ divider: "dashed",
117
+ headerSize: "middle",
118
+ onRefresh: function onRefresh() {
119
+ return (0, _coreUtil.renderPreview)();
120
+ },
121
+ showActiveColor: true,
122
+ source: defaultSource,
123
+ type: "switch"
124
+ });
125
+ };
126
+
127
+ return _this;
128
+ }
129
+
130
+ WalletSecondConfig.prototype.render = function () {
131
+ var panelProps = this.props.panelProps;
132
+ return /*#__PURE__*/_react["default"].createElement("div", {
133
+ className: "Wallet_second_conf_wrap"
134
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
135
+ divider: "bold",
136
+ headerSize: "large",
137
+ source: [{
138
+ key: panelProps.id || 'walletNuriContent',
139
+ name: (0, _locale.i18n)('CONTENT'),
140
+ value: this.getContentPanel()
141
+ }]
142
+ }));
143
+ };
144
+
145
+ WalletSecondConfig.defaultProps = {
146
+ panelProps: {}
147
+ };
148
+ return WalletSecondConfig;
149
+ }(_BaseConfig["default"]);
150
+
151
+ var _default = WalletSecondConfig;
152
+ exports["default"] = _default;
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getDefaultJSON = void 0;
7
+
8
+ var _uuid = require("uuid");
9
+
10
+ var _constants = require("../../../../constants");
11
+
12
+ var getDefaultJSON = function getDefaultJSON() {
13
+ var _a;
14
+
15
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
16
+ var groupId = (0, _uuid.v4)();
17
+ return {
18
+ id: groupId,
19
+ type: 'LOCATION',
20
+ content: {
21
+ logo: {
22
+ id: (0, _uuid.v4)(),
23
+ open: true,
24
+ color: '#8C52FF'
25
+ },
26
+ address: {
27
+ id: (0, _uuid.v4)(),
28
+ open: true,
29
+ type: 'TEXT',
30
+ specialContent: [],
31
+ text: '',
32
+ content: {
33
+ sizeType: 'Customize font styles',
34
+ fontFamily: defaultFontFamily,
35
+ fontWeight: 600,
36
+ fontSize: 14,
37
+ color: '#000',
38
+ urlDisabled: true
39
+ },
40
+ underline: {
41
+ open: false,
42
+ textDecorationColor: '',
43
+ textDecorationStyle: 'solid'
44
+ },
45
+ vertical: {
46
+ open: false,
47
+ lineHeight: 18
48
+ }
49
+ },
50
+ customer: {
51
+ id: (0, _uuid.v4)(),
52
+ open: true,
53
+ type: 'TEXT',
54
+ specialContent: [],
55
+ text: '',
56
+ content: {
57
+ sizeType: 'Customize font styles',
58
+ fontFamily: defaultFontFamily,
59
+ fontWeight: 400,
60
+ fontSize: 12,
61
+ color: '#848484',
62
+ urlDisabled: true
63
+ },
64
+ underline: {
65
+ open: false,
66
+ textDecorationColor: '',
67
+ textDecorationStyle: 'solid'
68
+ },
69
+ vertical: {
70
+ open: false,
71
+ lineHeight: 18
72
+ }
73
+ },
74
+ arrowIcon: {
75
+ id: (0, _uuid.v4)(),
76
+ open: true,
77
+ color: '#545454'
78
+ },
79
+ locationBg: {
80
+ open: true,
81
+ color: '#F2F2F2'
82
+ }
83
+ },
84
+ spacing: {
85
+ mobile: {
86
+ paddingTop: 0,
87
+ paddingBottom: 0,
88
+ paddingLeft: 0,
89
+ paddingRight: 0
90
+ }
91
+ },
92
+ customize: {
93
+ layout: 'layout1'
94
+ },
95
+ background: {
96
+ opacity: 100,
97
+ color: '#fff',
98
+ image: '',
99
+ bgType: 'color'
100
+ }
101
+ };
102
+ };
103
+
104
+ exports.getDefaultJSON = getDefaultJSON;
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _defaultJSON = require("./defaultJSON");
11
+
12
+ var _mobile = _interopRequireDefault(require("./mobile"));
13
+
14
+ var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
+
20
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+
22
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
23
+
24
+ var __extends = void 0 && (void 0).__extends || function () {
25
+ var _extendStatics = function extendStatics(d, b) {
26
+ _extendStatics = Object.setPrototypeOf || {
27
+ __proto__: []
28
+ } instanceof Array && function (d, b) {
29
+ d.__proto__ = b;
30
+ } || function (d, b) {
31
+ for (var p in b) {
32
+ if (b.hasOwnProperty(p)) d[p] = b[p];
33
+ }
34
+ };
35
+
36
+ return _extendStatics(d, b);
37
+ };
38
+
39
+ return function (d, b) {
40
+ _extendStatics(d, b);
41
+
42
+ function __() {
43
+ this.constructor = d;
44
+ }
45
+
46
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
+ };
48
+ }();
49
+
50
+ var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
51
+ var c = arguments.length,
52
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
53
+ d;
54
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
55
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
56
+ }
57
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
58
+ };
59
+
60
+ var CustomCode =
61
+ /** @class */
62
+ function (_super) {
63
+ __extends(CustomCode, _super);
64
+
65
+ function CustomCode() {
66
+ return _super !== null && _super.apply(this, arguments) || this;
67
+ }
68
+
69
+ CustomCode.prototype.componentDidMount = function () {};
70
+
71
+ CustomCode.prototype.render = function () {
72
+ var nodeData = this.props.nodeData;
73
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, window.magicDesign.device === 'pc' ? null : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
74
+ panelProps: nodeData
75
+ }));
76
+ };
77
+
78
+ CustomCode.defaultProps = {};
79
+ CustomCode.type = 'LOCATION';
80
+ CustomCode.getDefaultJSON = _defaultJSON.getDefaultJSON;
81
+ CustomCode = __decorate([_compositeDecorator["default"]], CustomCode);
82
+ return CustomCode;
83
+ }(_react.Component);
84
+
85
+ var _default = CustomCode;
86
+ exports["default"] = _default;