vap1 0.4.7 → 0.5.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.
Files changed (332) hide show
  1. package/base.json +30 -0
  2. package/basetype.d.ts +0 -1
  3. package/cems/admin/AsyncSelect.d.ts +45 -0
  4. package/cems/admin/AsyncSelect.js +2 -0
  5. package/cems/admin/CardTable.d.ts +207 -0
  6. package/cems/admin/CardTable.js +2 -0
  7. package/cems/admin/EasyuiTree.d.ts +131 -0
  8. package/cems/admin/EasyuiTree.js +2 -0
  9. package/cems/admin/utils.d.ts +5 -0
  10. package/cems/admin/utils.js +3 -0
  11. package/cems/admin/validator.d.ts +137 -0
  12. package/cems/admin/validator.js +2 -0
  13. package/cems/assets/CUpload.d.ts +23 -0
  14. package/cems/assets/CUpload.js +2 -0
  15. package/cems/assets/Charts.d.ts +37 -0
  16. package/cems/assets/Charts.js +2 -0
  17. package/cems/assets/DInfo.d.ts +38 -0
  18. package/cems/assets/DInfo.js +2 -0
  19. package/cems/assets/DModal.d.ts +84 -0
  20. package/cems/assets/DModal.js +2 -0
  21. package/cems/assets/DTable.d.ts +128 -0
  22. package/cems/assets/DTable.js +2 -0
  23. package/cems/assets/DivWidth.d.ts +14 -0
  24. package/cems/assets/DivWidth.js +2 -0
  25. package/cems/assets/Patch.d.ts +9 -0
  26. package/cems/assets/Patch.js +2 -0
  27. package/cems/assets/Sensitive.d.ts +33 -0
  28. package/cems/assets/Sensitive.js +2 -0
  29. package/cems/assets/types.d.ts +200 -0
  30. package/cems/assets/types.js +2 -0
  31. package/cems/assets/utils.d.ts +61 -0
  32. package/cems/assets/utils.js +2 -0
  33. package/cems/define.d.ts +9 -0
  34. package/cems/define.js +18 -0
  35. package/cems/index.d.ts +228 -0
  36. package/cems/index.js +81 -0
  37. package/cems/policy/CForm.d.ts +133 -0
  38. package/cems/policy/CForm.js +2 -0
  39. package/cems/policy/DApiTable.d.ts +78 -0
  40. package/cems/policy/DApiTable.js +2 -0
  41. package/cems/policy/DButton.d.ts +17 -0
  42. package/cems/policy/DButton.js +2 -0
  43. package/cems/policy/DCheckbox.d.ts +50 -0
  44. package/cems/policy/DCheckbox.js +2 -0
  45. package/cems/policy/DCheckboxGroup.d.ts +34 -0
  46. package/cems/policy/DCheckboxGroup.js +2 -0
  47. package/cems/policy/DCol.d.ts +33 -0
  48. package/cems/policy/DCol.js +2 -0
  49. package/cems/policy/DColorPicker.d.ts +9 -0
  50. package/cems/policy/DColorPicker.js +2 -0
  51. package/cems/policy/DDatePicker.d.ts +41 -0
  52. package/cems/policy/DDatePicker.js +2 -0
  53. package/cems/policy/DDiv.d.ts +65 -0
  54. package/cems/policy/DDiv.js +2 -0
  55. package/cems/policy/DDrawer.d.ts +6 -0
  56. package/cems/policy/DDrawer.js +2 -0
  57. package/cems/policy/DDynamicSelect.d.ts +50 -0
  58. package/cems/policy/DDynamicSelect.js +2 -0
  59. package/cems/policy/DDynamicTreeSelect.d.ts +45 -0
  60. package/cems/policy/DDynamicTreeSelect.js +2 -0
  61. package/cems/policy/DForm.d.ts +248 -0
  62. package/cems/policy/DForm.js +2 -0
  63. package/cems/policy/DIcon.d.ts +33 -0
  64. package/cems/policy/DIcon.js +2 -0
  65. package/cems/policy/DInput.d.ts +41 -0
  66. package/cems/policy/DInput.js +2 -0
  67. package/cems/policy/DLabel.d.ts +17 -0
  68. package/cems/policy/DLabel.js +2 -0
  69. package/cems/policy/DPTable.d.ts +86 -0
  70. package/cems/policy/DPTable.js +2 -0
  71. package/cems/policy/DRadio.d.ts +34 -0
  72. package/cems/policy/DRadio.js +2 -0
  73. package/cems/policy/DSCTable.d.ts +33 -0
  74. package/cems/policy/DSCTable.js +2 -0
  75. package/cems/policy/DSelect.d.ts +42 -0
  76. package/cems/policy/DSelect.js +2 -0
  77. package/cems/policy/DSlider.d.ts +21 -0
  78. package/cems/policy/DSlider.js +2 -0
  79. package/cems/policy/DSwitch.d.ts +21 -0
  80. package/cems/policy/DSwitch.js +2 -0
  81. package/cems/policy/DTab.d.ts +30 -0
  82. package/cems/policy/DTab.js +2 -0
  83. package/cems/policy/DTimePicker.d.ts +37 -0
  84. package/cems/policy/DTimePicker.js +2 -0
  85. package/cems/policy/DTree.d.ts +98 -0
  86. package/cems/policy/DTree.js +2 -0
  87. package/cems/policy/DUpload.d.ts +33 -0
  88. package/cems/policy/DUpload.js +2 -0
  89. package/cems/policy/types.d.ts +200 -0
  90. package/cems/policy/types.js +2 -0
  91. package/cems/policy/utils.d.ts +13 -0
  92. package/cems/policy/utils.js +2 -0
  93. package/components/Box/Box.d.ts +42 -6
  94. package/components/Box/Box.js +66 -16
  95. package/components/Box/SelectBar.d.ts +1 -1
  96. package/components/Box/SelectBar.js +19 -9
  97. package/components/Lists/BaseList.d.ts +5 -0
  98. package/components/Lists/BaseList.js +111 -0
  99. package/components/Lists/Fields/IconRender.d.ts +53 -0
  100. package/components/Lists/Fields/IconRender.js +174 -0
  101. package/components/Lists/Fields/ItemRender.d.ts +2 -0
  102. package/components/Lists/Fields/ItemRender.js +127 -0
  103. package/components/Lists/Fields/_utils.d.ts +3 -0
  104. package/components/Lists/Fields/_utils.js +80 -0
  105. package/components/Lists/Fields/index.d.ts +3 -0
  106. package/components/Lists/Fields/index.js +47 -0
  107. package/components/Lists/Grid/grid.d.ts +7 -0
  108. package/components/Lists/Grid/grid.js +18 -0
  109. package/components/Lists/Grid/index.d.ts +3 -0
  110. package/components/Lists/Grid/index.js +50 -0
  111. package/components/Lists/Row/index.d.ts +3 -0
  112. package/components/Lists/Row/index.js +14 -0
  113. package/components/Lists/SList.js +17 -7
  114. package/components/Lists/Timeline/index.d.ts +3 -0
  115. package/components/Lists/Timeline/index.js +117 -0
  116. package/components/Lists/VList.d.ts +3 -0
  117. package/components/Lists/VList.js +92 -0
  118. package/components/Lists/components/LayoutSwitcher.d.ts +13 -0
  119. package/components/Lists/components/LayoutSwitcher.js +121 -0
  120. package/components/Lists/components/SearchTool.d.ts +13 -0
  121. package/components/Lists/components/SearchTool.js +34 -0
  122. package/components/Lists/index.d.ts +129 -0
  123. package/components/Lists/index.js +2 -0
  124. package/components/SearchTool/SearchBand/BandInput.d.ts +3 -0
  125. package/components/SearchTool/SearchBand/BandInput.js +54 -0
  126. package/components/SearchTool/SearchBand/BandTag.d.ts +7 -0
  127. package/components/SearchTool/SearchBand/BandTag.js +82 -0
  128. package/components/SearchTool/SearchBand/_SearchBandAction.d.ts +3 -0
  129. package/components/SearchTool/SearchBand/_SearchBandAction.js +23 -0
  130. package/components/SearchTool/SearchBand/_SearchBandFix.d.ts +3 -0
  131. package/components/SearchTool/SearchBand/_SearchBandFix.js +72 -0
  132. package/components/SearchTool/SearchBand/_SearchBandTag.d.ts +3 -0
  133. package/components/SearchTool/SearchBand/_SearchBandTag.js +75 -0
  134. package/components/SearchTool/SearchBand/_register.d.ts +47 -0
  135. package/components/SearchTool/SearchBand/_register.js +15 -0
  136. package/components/SearchTool/SearchBand/hooks.d.ts +12 -0
  137. package/components/SearchTool/SearchBand/hooks.js +181 -0
  138. package/components/SearchTool/SearchBand/index.d.ts +3 -0
  139. package/components/SearchTool/SearchBand/index.js +66 -0
  140. package/components/SearchTool/SearchBand/type.d.ts +71 -0
  141. package/components/SearchTool/SearchBand/type.js +3 -0
  142. package/components/SearchTool/SearchBar/ActionButtons.js +17 -7
  143. package/components/SearchTool/SearchBar/ByField.d.ts +1 -1
  144. package/components/SearchTool/SearchBar/ByField.js +17 -7
  145. package/components/SearchTool/SearchBar/ByKeyword.d.ts +1 -1
  146. package/components/SearchTool/SearchBar/ByKeyword.js +17 -7
  147. package/components/SearchTool/SearchBar/SearchField.d.ts +1 -1
  148. package/components/SearchTool/SearchBar/_register.d.ts +1 -1
  149. package/components/SearchTool/SearchBar/index.d.ts +1 -65
  150. package/components/SearchTool/SearchBar/type.d.ts +133 -0
  151. package/components/SearchTool/SearchBar/type.js +35 -0
  152. package/components/SearchTool/index.d.ts +5 -63
  153. package/components/SearchTool/index.js +5 -0
  154. package/components/Tables/ApiTable.d.ts +5 -7
  155. package/components/Tables/ApiTable.js +17 -7
  156. package/components/Tables/ApiTableModal.d.ts +5 -7
  157. package/components/Tables/ApiTableModal.js +17 -7
  158. package/components/Tables/Components/ActionBar.d.ts +7 -10
  159. package/components/Tables/Components/ActionBar.js +73 -40
  160. package/components/Tables/Components/Actions.d.ts +3 -1
  161. package/components/Tables/Components/Actions.js +40 -3
  162. package/components/Tables/Components/index.d.ts +3 -1
  163. package/components/Tables/Components/useTableContext.d.ts +16 -0
  164. package/components/Tables/Components/useTableContext.js +116 -0
  165. package/components/Tables/STable.js +17 -7
  166. package/components/Tables/TopTable.js +17 -7
  167. package/components/Tables/Util.d.ts +2 -2
  168. package/components/Tables/Util.js +0 -1
  169. package/components/Tables/VTable.d.ts +9 -11
  170. package/components/Tables/VTable.js +119 -172
  171. package/components/Tables/VTableBack.d.ts +0 -0
  172. package/components/Tables/VTableBack.js +269 -0
  173. package/components/Tables/index.d.ts +11 -22
  174. package/components/TreeSelect/BaseTreeSelect.js +17 -7
  175. package/components/TreeSelect/DTreeSelect.js +19 -9
  176. package/components/TreeSelect/FTreeSelect.js +2 -2
  177. package/components/Trees/ActionTree.d.ts +3 -5
  178. package/components/Trees/ActionTree.js +19 -9
  179. package/components/Trees/BaseTree.js +17 -7
  180. package/components/Trees/COTree/COButton.js +17 -7
  181. package/components/Trees/COTree/COSelect.js +17 -7
  182. package/components/Trees/COTree/COTree.js +19 -9
  183. package/components/Trees/DTree.d.ts +0 -7
  184. package/components/Trees/DTree.js +19 -9
  185. package/components/Trees/FTree.js +19 -9
  186. package/components/Trees/STree.js +17 -7
  187. package/components/UForm/FormWrapper.js +18 -8
  188. package/components/UForm/UDescriptions.d.ts +2 -3
  189. package/components/UForm/UDescriptions.js +17 -7
  190. package/components/UForm/UForm.d.ts +1 -1
  191. package/components/UForm/UForm.js +24 -11
  192. package/components/UForm/UFormModal.js +19 -9
  193. package/components/UForm/_input.d.ts +5 -1
  194. package/components/UForm/_input.js +25 -8
  195. package/components/Upload/UploadImage.js +17 -7
  196. package/components/Upload/UploadModal.js +19 -9
  197. package/components/Upload/useUpload.js +2 -2
  198. package/components/_adapt/Alert.js +17 -7
  199. package/components/_adapt/ColorPicker.js +17 -7
  200. package/components/_adapt/Drawer.js +17 -7
  201. package/components/_adapt/Dropdown.js +17 -7
  202. package/components/_adapt/FloatButton.js +17 -7
  203. package/components/_adapt/Input.js +17 -7
  204. package/components/_adapt/InputNumber.js +17 -7
  205. package/components/_adapt/Layout.js +17 -7
  206. package/components/_adapt/Menu.js +17 -7
  207. package/components/_adapt/Modal.js +17 -7
  208. package/components/_adapt/Popconfirm.js +17 -7
  209. package/components/_adapt/Popover.js +17 -7
  210. package/components/_adapt/Progress.js +17 -7
  211. package/components/_adapt/Select.js +17 -7
  212. package/components/_adapt/Table.js +17 -7
  213. package/components/_adapt/Tabs.js +17 -7
  214. package/components/_adapt/Tag.js +17 -7
  215. package/components/_adapt/TreeSelect.js +17 -7
  216. package/components/_adapt/todo/Image.d.ts +0 -1
  217. package/components/_adapt/todo/Segmented.d.ts +0 -1
  218. package/components/_common/AutoComplete.js +35 -12
  219. package/components/_common/CountUp.js +17 -7
  220. package/components/_common/DateRange.d.ts +5 -2
  221. package/components/_common/DateRange.js +43 -40
  222. package/components/_common/HighLight.d.ts +1 -1
  223. package/components/_common/HighLight.js +26 -24
  224. package/components/_common/Loading.js +17 -7
  225. package/components/_common/MonthRange.js +17 -7
  226. package/components/_common/PromiseLabel.js +2 -2
  227. package/components/_common/UTitle.js +17 -7
  228. package/components/_common/Upagination.d.ts +1 -0
  229. package/components/_common/Upagination.js +5 -1
  230. package/components/_i18n.d.ts +1 -102
  231. package/components/index.js +4 -0
  232. package/deps/JsonView.js +17 -7
  233. package/deps/app-audit/LookUp.js +19 -9
  234. package/deps/app-data/useSource.js +19 -9
  235. package/deps/echarts.d.ts +3 -0
  236. package/deps/echarts.js +20 -10
  237. package/deps/editor/Article.js +17 -7
  238. package/deps/editor/Editor.js +17 -7
  239. package/deps/editor/EditorModal.js +17 -7
  240. package/deps/editor/support/buttons/ImageButton.js +17 -7
  241. package/deps/editor/tools/Button.js +0 -2
  242. package/deps/editor/tools/_TxtButton.js +17 -7
  243. package/deps/vapc/_basic.d.ts +1 -0
  244. package/deps/vapc/_basic.js +15 -0
  245. package/deps/vapc/index.d.ts +10 -0
  246. package/deps/vapc/index.js +70 -0
  247. package/hooks/useAjaxAction.js +2 -2
  248. package/hooks/useAjaxQuery.js +2 -2
  249. package/hooks/useApiBase.js +2 -2
  250. package/hooks/useApiGlobal.js +1 -1
  251. package/hooks/useArray.js +2 -2
  252. package/hooks/useDefault.d.ts +0 -1
  253. package/hooks/useDoLoad.d.ts +1 -1
  254. package/hooks/useError.d.ts +1 -1
  255. package/hooks/useMemoPromise.js +2 -2
  256. package/index.d.ts +2 -1
  257. package/login/Base65.d.ts +7 -1
  258. package/login/Base65.js +49 -22
  259. package/login/Password.d.ts +8 -5
  260. package/login/Password.js +68 -102
  261. package/package.json +1 -1
  262. package/screen/Page.js +17 -7
  263. package/screen/vapc-schema/dark.d.ts +1 -0
  264. package/screen/vapc-schema/dark.js +50 -0
  265. package/screen/vapc-schema/insight.d.ts +1 -0
  266. package/screen/vapc-schema/insight.js +49 -0
  267. package/uform/FormEditor.js +17 -7
  268. package/uform/FormViewer.js +17 -7
  269. package/uform/hooks/useEditor.d.ts +0 -1
  270. package/uform/hooks/useForm.d.ts +0 -1
  271. package/uform/inputs/index.d.ts +0 -1
  272. package/uform/panel/Editor/_GroupDefault.js +17 -7
  273. package/uform/panel/Editor/_GroupStep.js +17 -7
  274. package/uform/panel/Editor/_GroupTab.js +17 -7
  275. package/uform/panel/Editor/index.js +17 -7
  276. package/uform/panel/Items/Fields.js +17 -7
  277. package/uform/panel/Items/InputSelector.js +17 -7
  278. package/uform/panel/Items/Inputs.js +17 -7
  279. package/uform/panel/Items/index.d.ts +1 -1
  280. package/uform/panel/Propreties/CanvasProperties.js +17 -7
  281. package/uform/panel/Propreties/Component/FieldPlugin.js +17 -7
  282. package/uform/panel/Propreties/Component/LinkAsyncFunction.js +17 -7
  283. package/uform/panel/Propreties/Component/LinkSyncFunction.js +17 -7
  284. package/uform/panel/Propreties/Component/Links.js +17 -7
  285. package/uform/panel/Propreties/Component/OptionTable.js +17 -7
  286. package/uform/panel/Propreties/Component/RegexpModal.js +17 -7
  287. package/uform/panel/Propreties/Component/Validate.js +17 -7
  288. package/uform/panel/Propreties/Component/ValidateAsyncFunction.js +17 -7
  289. package/uform/panel/Propreties/Component/ValidateSyncFunction.js +17 -7
  290. package/uform/panel/Propreties/FieldOptions.js +17 -7
  291. package/uform/panel/Propreties/FieldProperties.js +17 -7
  292. package/uform/panel/Propreties/_ItemAdvance.js +17 -7
  293. package/uform/panel/Propreties/_ItemBase.js +17 -7
  294. package/uform/panel/Propreties/_ItemLink.js +17 -7
  295. package/uform/panel/Propreties/_ItemValidate.js +17 -7
  296. package/uform/schema.d.ts +1 -1
  297. package/uform/utils/Convert.js +2 -2
  298. package/utils/Ajax.d.ts +3 -0
  299. package/utils/Ajax.js +10 -7
  300. package/utils/CacheUtil.d.ts +1 -1
  301. package/utils/Const.js +17 -7
  302. package/utils/Format.d.ts +138 -14
  303. package/utils/Format.js +127 -13
  304. package/utils/Global.d.ts +16 -0
  305. package/utils/Global.js +8 -1
  306. package/utils/PageUtil.d.ts +111 -23
  307. package/utils/PageUtil.js +163 -28
  308. package/utils/Renders/ApiGetRender.js +20 -10
  309. package/utils/Renders/ApiPostRender.js +3 -3
  310. package/utils/Renders/CondictionRender.js +17 -7
  311. package/utils/Renders/DateRender.js +20 -2
  312. package/utils/Renders/ListRender.js +1 -1
  313. package/utils/Renders/NumberRender.js +24 -5
  314. package/utils/Renders/StringRender.js +81 -11
  315. package/utils/Renders/_define.d.ts +8 -7
  316. package/utils/Renders/_define.js +76 -17
  317. package/utils/StringUtil.d.ts +292 -62
  318. package/utils/StringUtil.js +310 -63
  319. package/utils/TreeUtil.js +14 -10
  320. package/utils/VAP.d.ts +26 -1
  321. package/utils/VAP.js +57 -0
  322. package/utils/_AjaxUtil.d.ts +1 -0
  323. package/utils/_AjaxUtil.js +70 -3
  324. package/utils/_Support.d.ts +2 -2
  325. package/utils/_Support.js +4 -2
  326. package/utils/crontab/crontabRender.js +0 -1
  327. package/utils/i18n.d.ts +13 -2
  328. package/utils/i18n.js +13 -2
  329. package/utils/index.d.ts +4 -0
  330. package/utils/index.js +19 -9
  331. package/components/SearchTool/_FieldType.d.ts +0 -8
  332. package/components/SearchTool/_FieldType.js +0 -51
package/login/Password.js CHANGED
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
- var __values = (this && this.__values) || function(o) {
3
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
4
- if (m) return m.call(o);
5
- if (o && typeof o.length === "number") return {
6
- next: function () {
7
- if (o && i >= o.length) o = void 0;
8
- return { value: o && o[i++], done: !o };
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
9
8
  }
9
+ return t;
10
10
  };
11
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
11
+ return __assign.apply(this, arguments);
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.PasswordChecker = void 0;
@@ -21,114 +21,40 @@ var CHARS_SYMBOL = new Set('-_+.~!@#$%^&*<>'.split(''));
21
21
  */
22
22
  var PasswordChecker = /** @class */ (function () {
23
23
  function PasswordChecker(options) {
24
- this.options = {};
25
- this.options = options;
24
+ // 验证并设置默认值
25
+ this.options = __assign({ minLength: 6, maxLength: 32, requireNumber: false, requireLowerLetter: false, requireUpperLetter: false, requireSymbol: false }, options);
26
26
  }
27
+ PasswordChecker.prototype.hasCharType = function (chars, charSet) {
28
+ return chars.some(function (char) { return charSet.has(char); });
29
+ };
27
30
  PasswordChecker.prototype.check = function (txt) {
28
- var e_1, _a, e_2, _b, e_3, _c, e_4, _d;
29
- var options = this.options;
30
- if (txt == '' || txt == null) {
31
+ if (!txt) {
31
32
  return '密码不能为空';
32
33
  }
33
- if (options.minLength && txt.length < options.minLength) {
34
+ var options = this.options;
35
+ if (options.minLength > 0 && txt.length < options.minLength) {
34
36
  return "\u81F3\u5C11\u8F93\u5165".concat(options.minLength, "\u4E2A\u5B57\u7B26");
35
37
  }
36
- if (options.maxLength && txt.length > options.maxLength) {
38
+ if (options.maxLength > 0 && txt.length > options.maxLength) {
37
39
  return "\u6700\u591A\u8F93\u5165".concat(options.maxLength, "\u4E2A\u5B57\u7B26");
38
40
  }
39
41
  var chars = txt.split('');
40
- if (options.requireLowerLetter) {
41
- var checked = false;
42
- try {
43
- for (var chars_1 = __values(chars), chars_1_1 = chars_1.next(); !chars_1_1.done; chars_1_1 = chars_1.next()) {
44
- var char = chars_1_1.value;
45
- if (CHARS_LOW.has(char)) {
46
- checked = true;
47
- break;
48
- }
49
- }
50
- }
51
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
52
- finally {
53
- try {
54
- if (chars_1_1 && !chars_1_1.done && (_a = chars_1.return)) _a.call(chars_1);
55
- }
56
- finally { if (e_1) throw e_1.error; }
57
- }
58
- if (!checked) {
59
- return '必须要包含小写字母';
60
- }
42
+ if (options.requireLowerLetter && !this.hasCharType(chars, CHARS_LOW)) {
43
+ return '必须要包含小写字母';
61
44
  }
62
- if (options.requireUpperLetter) {
63
- var checked = false;
64
- try {
65
- for (var chars_2 = __values(chars), chars_2_1 = chars_2.next(); !chars_2_1.done; chars_2_1 = chars_2.next()) {
66
- var char = chars_2_1.value;
67
- if (CHARS_UP.has(char)) {
68
- checked = true;
69
- break;
70
- }
71
- }
72
- }
73
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
74
- finally {
75
- try {
76
- if (chars_2_1 && !chars_2_1.done && (_b = chars_2.return)) _b.call(chars_2);
77
- }
78
- finally { if (e_2) throw e_2.error; }
79
- }
80
- if (!checked) {
81
- return '必须要包含大写字母';
82
- }
45
+ if (options.requireUpperLetter && !this.hasCharType(chars, CHARS_UP)) {
46
+ return '必须要包含大写字母';
83
47
  }
84
- if (options.requireNumber) {
85
- var checked = false;
86
- try {
87
- for (var chars_3 = __values(chars), chars_3_1 = chars_3.next(); !chars_3_1.done; chars_3_1 = chars_3.next()) {
88
- var char = chars_3_1.value;
89
- if (CHARS_NUMBER.has(char)) {
90
- checked = true;
91
- break;
92
- }
93
- }
94
- }
95
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
96
- finally {
97
- try {
98
- if (chars_3_1 && !chars_3_1.done && (_c = chars_3.return)) _c.call(chars_3);
99
- }
100
- finally { if (e_3) throw e_3.error; }
101
- }
102
- if (!checked) {
103
- return '必须要包含数字';
104
- }
48
+ if (options.requireNumber && !this.hasCharType(chars, CHARS_NUMBER)) {
49
+ return '必须要包含数字';
105
50
  }
106
- if (options.rqueireSymbol) {
107
- var checked = false;
108
- try {
109
- for (var chars_4 = __values(chars), chars_4_1 = chars_4.next(); !chars_4_1.done; chars_4_1 = chars_4.next()) {
110
- var char = chars_4_1.value;
111
- if (CHARS_SYMBOL.has(char)) {
112
- checked = true;
113
- break;
114
- }
115
- }
116
- }
117
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
118
- finally {
119
- try {
120
- if (chars_4_1 && !chars_4_1.done && (_d = chars_4.return)) _d.call(chars_4);
121
- }
122
- finally { if (e_4) throw e_4.error; }
123
- }
124
- if (!checked) {
125
- return '必须要包含一个特殊符号';
126
- }
51
+ if (options.requireSymbol && !this.hasCharType(chars, CHARS_SYMBOL)) {
52
+ return '必须要包含一个特殊符号';
127
53
  }
128
54
  return true;
129
55
  };
130
56
  /**
131
- * 说明
57
+ * 计算密码强度分数
132
58
  * 一. 密码长度
133
59
  * 1) 5 分: 小于等于 4 个字符
134
60
  * 2) 10 分: 5 到 7 字符
@@ -136,12 +62,51 @@ var PasswordChecker = /** @class */ (function () {
136
62
  * 二. 字母
137
63
  * 1) 0 分: 没有字母
138
64
  * 2) 10 分: 全都是小(大)写字母
65
+ * 3) 20 分: 大小写混合
66
+ * 三. 字符组合
139
67
  * 1) 2 分: 字母和数字
140
68
  * 2) 3 分: 字母、数字和符号
141
69
  * 3) 5 分: 大小写字母、数字和符号
142
70
  */
143
71
  PasswordChecker.prototype.strong = function (txt) {
144
- return 1;
72
+ if (!txt)
73
+ return 0;
74
+ var chars = txt.split('');
75
+ var score = 0;
76
+ // 长度得分
77
+ if (txt.length <= 4) {
78
+ score += 5;
79
+ }
80
+ else if (txt.length <= 7) {
81
+ score += 10;
82
+ }
83
+ else {
84
+ score += 25;
85
+ }
86
+ // 字母得分
87
+ var hasLower = this.hasCharType(chars, CHARS_LOW);
88
+ var hasUpper = this.hasCharType(chars, CHARS_UP);
89
+ var hasNumber = this.hasCharType(chars, CHARS_NUMBER);
90
+ var hasSymbol = this.hasCharType(chars, CHARS_SYMBOL);
91
+ if (hasLower || hasUpper) {
92
+ if (hasLower && hasUpper) {
93
+ score += 20;
94
+ }
95
+ else {
96
+ score += 10;
97
+ }
98
+ }
99
+ // 字符组合得分
100
+ if (hasNumber && (hasLower || hasUpper)) {
101
+ score += 2;
102
+ }
103
+ if (hasSymbol && (hasLower || hasUpper || hasNumber)) {
104
+ score += 3;
105
+ }
106
+ if (hasLower && hasUpper && hasNumber && hasSymbol) {
107
+ score += 5;
108
+ }
109
+ return score;
145
110
  };
146
111
  /**
147
112
  * 0: 非常弱
@@ -155,7 +120,8 @@ var PasswordChecker = /** @class */ (function () {
155
120
  * 说明,返回 false , 说明密码没有通过验证
156
121
  */
157
122
  PasswordChecker.prototype.safeCheck = function (txt) {
158
- if (!this.check(txt))
123
+ var checkResult = this.check(txt);
124
+ if (checkResult !== true)
159
125
  return false;
160
126
  var score = this.strong(txt);
161
127
  if (score < 25)
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"vap1","version":"0.4.7","description":"vap1, Both support MicroService and SAP FrameWork, Support IE>9","main":"index.js","author":"Xiang da","license":"ISC"}
1
+ {"name":"vap1","version":"0.5.1","description":"vap1, Both support MicroService and SAP FrameWork, Support IE>9","main":"index.js","author":"Xiang da","license":"ISC"}
package/screen/Page.js CHANGED
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.Page = void 0;
27
37
  var react_1 = __importStar(require("react"));
@@ -0,0 +1 @@
1
+ export declare const initDark: () => void;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.initDark = void 0;
4
+ var index_1 = require("../../deps/vapc/index");
5
+ // 初始化大屏皮肤
6
+ var setting = {
7
+ DARK_MODE: true,
8
+ CHECK_TRANSFORM: true,
9
+ DARK_COLORS: {
10
+ colors: [
11
+ '#0263FF', '#FF9945', '#E86351', '#5BD9A7', '#5C91FA',
12
+ '#6DC8EC', '#F6BD16', '#1E9493', '#945FB9', '#FF99C3', '#5B8FF9'
13
+ ], itemColor: '#5B8FF9',
14
+ isDark: true,
15
+ },
16
+ FONT_FAMILY_NUMBER: 'vapfont',
17
+ ANIMATION_EXIT_SPEED: 0.5,
18
+ RADAR_BG_FILL: ['transparent', '#cdd6f22f'],
19
+ };
20
+ var graphs = [
21
+ ['hours-bar', '#4688F2'],
22
+ ['hours-radius', '#4688F2'],
23
+ ['hmultibar', ['#1f345e', '#315192', '#385eaa', '#4372cf', '#528cff']],
24
+ ];
25
+ var styles = [
26
+ [index_1.PLACE.AXIS_LINE, { stroke: '#C1D0DE' }],
27
+ [index_1.PLACE.AXIS_TITLE, { fill: '#0263FF', fillOpacity: 0.7, fontFamily: 'vapfont', }],
28
+ [index_1.PLACE.AXIS_TICK, { stroke: '#5B8FF9', strokeWidth: 1 }],
29
+ [index_1.PLACE.AXIS_LABEL, { fill: '#7F8BA3', }],
30
+ [index_1.PLACE.AXIS_COORD, { stroke: '#dddddd', strokeWidth: 0.5, strokeDasharray: null }],
31
+ [index_1.PLACE.AXIS_COORD_TIP_LINE, { stroke: '#6884BD', strokeWidth: 0.5, strokeDasharray: '6 6' }],
32
+ [index_1.PLACE.AXIS_COORD_TIP_TEXT, { fill: '#458EF5', fontSize: 16 }],
33
+ [index_1.PLACE.LEGEND_SIMPLE_RECT, { rx: 4, ry: 4, strokeWidth: 0.5 }],
34
+ [index_1.PLACE.LEGEND_SIMPLE_TEXT, { stroke: '#000', strokeWidth: 0.5, strokeOpacity: 0.2 }], // 略微加深
35
+ [index_1.PLACE.BAR_BAR, { strokeWidth: 0, rx: 0, ry: 0, }],
36
+ [index_1.PLACE.BAR_PAPAW, { fillOpacity: 0.9 }],
37
+ [index_1.PLACE.BAR_ARROW, { fillOpacity: 0.9 }],
38
+ [index_1.PLACE.BAR_MOUNTAIN, { fillOpacity: 0.9 }],
39
+ [index_1.PLACE.MULTIBAR_BAR, { rx: 0, ry: 0, strokeWidth: 0, fillOpacity: 1, }],
40
+ [index_1.PLACE.HBAR_SPLIT_LINE, { stroke: '#0263FF' }],
41
+ [index_1.PLACE.HBAR_RANK_BG, { fillOpacity: 0.1 }],
42
+ // [PLACE.HBAR_RANK_BAR, {}],
43
+ [index_1.PLACE.HBAR_RANK_RANK, { rx: 4, ry: 4, strokeWidth: 0.5, fillOpacity: 0.8, height: 19 }],
44
+ [index_1.PLACE.HBAR_RANK_IDX, { fill: '#DFE6F2', fontFamily: 'vapfont', fontWeight: 'bold' }],
45
+ [index_1.PLACE.RADAR_BG_LINE, { stroke: '#C1D0DE', strokeWidth: 0.5, strokeOpacity: 0.4 }],
46
+ [index_1.PLACE.RADAR_LABEL, { fill: '#7F8BA3', stroke: '#000', strokeWidth: 0.1, strokeOpacity: 0.1, fontFamily: 'vapfont' }],
47
+ ];
48
+ // initVapc({ setting, styles })
49
+ var initDark = function () { return (0, index_1.initVapc)({ setting: setting, graphs: graphs, styles: styles }); };
50
+ exports.initDark = initDark;
@@ -0,0 +1 @@
1
+ export declare const initInsight: () => void;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.initInsight = void 0;
4
+ var index_1 = require("../../deps/vapc/index");
5
+ // 初始化大屏皮肤
6
+ var setting = {
7
+ DARK_MODE: true,
8
+ CHECK_TRANSFORM: true,
9
+ DARK_COLORS: {
10
+ colors: [
11
+ '#0263FF', '#FF9945', '#E86351', '#5BD9A7', '#5C91FA',
12
+ '#6DC8EC', '#F6BD16', '#1E9493', '#945FB9', '#FF99C3', '#5B8FF9'
13
+ ], itemColor: '#5B8FF9',
14
+ isDark: true,
15
+ },
16
+ FONT_FAMILY_NUMBER: 'vapfont',
17
+ ANIMATION_EXIT_SPEED: 0.5,
18
+ RADAR_BG_FILL: ['transparent', '#cdd6f22f'],
19
+ };
20
+ var graphs = [
21
+ ['hours-bar', '#4688F2'],
22
+ ['hours-radius', '#4688F2'],
23
+ ['hmultibar', ['#1f345e', '#315192', '#385eaa', '#4372cf', '#528cff']],
24
+ ];
25
+ var styles = [
26
+ [index_1.PLACE.AXIS_LINE, { stroke: '#C1D0DE' }],
27
+ [index_1.PLACE.AXIS_TITLE, { fill: '#0263FF', fillOpacity: 0.7, fontFamily: 'vapfont', }],
28
+ [index_1.PLACE.AXIS_TICK, { stroke: '#5B8FF9', strokeWidth: 1 }],
29
+ [index_1.PLACE.AXIS_LABEL, { fill: '#7F8BA3', }],
30
+ [index_1.PLACE.AXIS_COORD, { stroke: '#dddddd', strokeWidth: 0.5, strokeDasharray: null }],
31
+ [index_1.PLACE.AXIS_COORD_TIP_LINE, { stroke: '#6884BD', strokeWidth: 0.5, strokeDasharray: '6 6' }],
32
+ [index_1.PLACE.AXIS_COORD_TIP_TEXT, { fill: '#458EF5', fontSize: 16 }],
33
+ [index_1.PLACE.LEGEND_SIMPLE_RECT, { rx: 4, ry: 4, strokeWidth: 0.5 }],
34
+ [index_1.PLACE.LEGEND_SIMPLE_TEXT, { stroke: '#000', strokeWidth: 0.5, strokeOpacity: 0.2 }], // 略微加深
35
+ [index_1.PLACE.BAR_BAR, { strokeWidth: 0, rx: 0, ry: 0, }],
36
+ [index_1.PLACE.BAR_PAPAW, { fillOpacity: 0.9 }],
37
+ [index_1.PLACE.BAR_ARROW, { fillOpacity: 0.9 }],
38
+ [index_1.PLACE.BAR_MOUNTAIN, { fillOpacity: 0.9 }],
39
+ [index_1.PLACE.MULTIBAR_BAR, { rx: 0, ry: 0, strokeWidth: 0, fillOpacity: 1, }],
40
+ [index_1.PLACE.HBAR_SPLIT_LINE, { stroke: '#0263FF' }],
41
+ [index_1.PLACE.HBAR_RANK_BG, { fillOpacity: 0.1 }],
42
+ // [PLACE.HBAR_RANK_BAR, {}],
43
+ [index_1.PLACE.HBAR_RANK_RANK, { rx: 4, ry: 4, strokeWidth: 0.5, fillOpacity: 0.8, height: 19 }],
44
+ [index_1.PLACE.HBAR_RANK_IDX, { fill: '#DFE6F2', fontFamily: 'vapfont', fontWeight: 'bold' }],
45
+ [index_1.PLACE.RADAR_BG_LINE, { stroke: '#C1D0DE', strokeWidth: 0.5, strokeOpacity: 0.4 }],
46
+ [index_1.PLACE.RADAR_LABEL, { fill: '#7F8BA3', stroke: '#000', strokeWidth: 0.1, strokeOpacity: 0.1, fontFamily: 'vapfont' }],
47
+ ];
48
+ var initInsight = function () { return (0, index_1.initVapc)({ setting: setting, graphs: graphs, styles: styles }); };
49
+ exports.initInsight = initInsight;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __read = (this && this.__read) || function (o, n) {
26
36
  var m = typeof Symbol === "function" && o[Symbol.iterator];
27
37
  if (!m) return o;
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  var __importDefault = (this && this.__importDefault) || function (mod) {
37
47
  return (mod && mod.__esModule) ? mod : { "default": mod };
38
48
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { FormGroup, FormItem, FormSchema, Cursor, FixField } from '../schema';
3
2
  type CurrentSelected = {
4
3
  group?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { FormSchema } from '../schema';
3
2
  export declare const UFORM: import("react").Context<FormSchema>;
4
3
  export declare const useForm: () => FormSchema;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export { Groups } from './register';
3
2
  import type { FormItem } from '../schema';
4
3
  export type { FormInput } from './register';
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  var react_1 = __importStar(require("react"));
27
37
  var useEditor_1 = require("../../hooks/useEditor");
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  var __importDefault = (this && this.__importDefault) || function (mod) {
37
47
  return (mod && mod.__esModule) ? mod : { "default": mod };
38
48
  };
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.Fields = void 0;
27
37
  var react_1 = __importStar(require("react"));
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  var __read = (this && this.__read) || function (o, n) {
37
47
  var m = typeof Symbol === "function" && o[Symbol.iterator];
38
48
  if (!m) return o;