@semcore/core 16.6.0 → 16.6.2-prerelease.0

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 (263) hide show
  1. package/.cache/esbuild_plugin_semcore_resolver/src_LastInteractionType.ts_contents +47 -0
  2. package/.cache/esbuild_plugin_semcore_resolver/src_LastInteractionType.ts_hash_sum +1 -0
  3. package/.cache/esbuild_plugin_semcore_resolver/src_LastInteractionType.ts_imp_deps +0 -0
  4. package/.cache/esbuild_plugin_semcore_resolver/src_LastInteractionType.ts_last_use +1 -0
  5. package/.cache/esbuild_plugin_semcore_resolver/src_core-types_Component.ts_contents +49 -0
  6. package/.cache/esbuild_plugin_semcore_resolver/src_core-types_Component.ts_hash_sum +1 -0
  7. package/.cache/esbuild_plugin_semcore_resolver/src_core-types_Component.ts_imp_deps +0 -0
  8. package/.cache/esbuild_plugin_semcore_resolver/src_core-types_Component.ts_last_use +1 -0
  9. package/.cache/esbuild_plugin_semcore_resolver/src_core-types_symbols.ts_contents +9 -0
  10. package/.cache/esbuild_plugin_semcore_resolver/src_core-types_symbols.ts_hash_sum +1 -0
  11. package/.cache/esbuild_plugin_semcore_resolver/src_core-types_symbols.ts_imp_deps +0 -0
  12. package/.cache/esbuild_plugin_semcore_resolver/src_core-types_symbols.ts_last_use +1 -0
  13. package/.cache/esbuild_plugin_semcore_resolver/src_coreFactory.tsx_contents +374 -0
  14. package/.cache/esbuild_plugin_semcore_resolver/src_coreFactory.tsx_hash_sum +1 -0
  15. package/.cache/esbuild_plugin_semcore_resolver/src_coreFactory.tsx_imp_deps +0 -0
  16. package/.cache/esbuild_plugin_semcore_resolver/src_coreFactory.tsx_last_use +1 -0
  17. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_Children.tsx_contents +110 -0
  18. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_Children.tsx_hash_sum +1 -0
  19. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_Children.tsx_imp_deps +0 -0
  20. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_Children.tsx_last_use +1 -0
  21. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_Root.tsx_contents +69 -0
  22. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_Root.tsx_hash_sum +1 -0
  23. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_Root.tsx_imp_deps +0 -0
  24. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_Root.tsx_last_use +1 -0
  25. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_dataName.tsx_contents +11 -0
  26. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_dataName.tsx_hash_sum +1 -0
  27. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_dataName.tsx_imp_deps +0 -0
  28. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_dataName.tsx_last_use +1 -0
  29. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_enhance.tsx_contents +14 -0
  30. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_enhance.tsx_hash_sum +1 -0
  31. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_enhance.tsx_imp_deps +0 -0
  32. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_enhance.tsx_last_use +1 -0
  33. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_functionDefaultProps.tsx_contents +28 -0
  34. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_functionDefaultProps.tsx_hash_sum +1 -0
  35. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_functionDefaultProps.tsx_imp_deps +0 -0
  36. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_functionDefaultProps.tsx_last_use +1 -0
  37. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_i18n.tsx_contents +19 -0
  38. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_i18n.tsx_hash_sum +1 -0
  39. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_i18n.tsx_imp_deps +0 -0
  40. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_i18n.tsx_last_use +1 -0
  41. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_inheritedName.tsx_contents +14 -0
  42. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_inheritedName.tsx_hash_sum +1 -0
  43. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_inheritedName.tsx_imp_deps +0 -0
  44. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_inheritedName.tsx_last_use +1 -0
  45. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_staticChildren.tsx_contents +122 -0
  46. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_staticChildren.tsx_hash_sum +1 -0
  47. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_staticChildren.tsx_imp_deps +0 -0
  48. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_staticChildren.tsx_last_use +1 -0
  49. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_style.tsx_contents +50 -0
  50. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_style.tsx_hash_sum +1 -0
  51. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_style.tsx_imp_deps +0 -0
  52. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_style.tsx_last_use +1 -0
  53. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_uncontrolledProps.tsx_contents +123 -0
  54. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_uncontrolledProps.tsx_hash_sum +1 -0
  55. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_uncontrolledProps.tsx_imp_deps +0 -0
  56. package/.cache/esbuild_plugin_semcore_resolver/src_enhancement_uncontrolledProps.tsx_last_use +1 -0
  57. package/.cache/esbuild_plugin_semcore_resolver/src_index.ts_contents +8 -0
  58. package/.cache/esbuild_plugin_semcore_resolver/src_index.ts_hash_sum +1 -0
  59. package/.cache/esbuild_plugin_semcore_resolver/src_index.ts_imp_deps +0 -0
  60. package/.cache/esbuild_plugin_semcore_resolver/src_index.ts_last_use +1 -0
  61. package/.cache/esbuild_plugin_semcore_resolver/src_register.tsx_contents +27 -0
  62. package/.cache/esbuild_plugin_semcore_resolver/src_register.tsx_hash_sum +1 -0
  63. package/.cache/esbuild_plugin_semcore_resolver/src_register.tsx_imp_deps +0 -0
  64. package/.cache/esbuild_plugin_semcore_resolver/src_register.tsx_last_use +1 -0
  65. package/.cache/esbuild_plugin_semcore_resolver/src_styled_index.tsx_contents +3 -0
  66. package/.cache/esbuild_plugin_semcore_resolver/src_styled_index.tsx_hash_sum +1 -0
  67. package/.cache/esbuild_plugin_semcore_resolver/src_styled_index.tsx_imp_deps +0 -0
  68. package/.cache/esbuild_plugin_semcore_resolver/src_styled_index.tsx_last_use +1 -0
  69. package/.cache/esbuild_plugin_semcore_resolver/src_styled_reshadow-core.ts_contents +236 -0
  70. package/.cache/esbuild_plugin_semcore_resolver/src_styled_reshadow-core.ts_hash_sum +1 -0
  71. package/.cache/esbuild_plugin_semcore_resolver/src_styled_reshadow-core.ts_imp_deps +0 -0
  72. package/.cache/esbuild_plugin_semcore_resolver/src_styled_reshadow-core.ts_last_use +1 -0
  73. package/.cache/esbuild_plugin_semcore_resolver/src_styled_sstyled.tsx_contents +143 -0
  74. package/.cache/esbuild_plugin_semcore_resolver/src_styled_sstyled.tsx_hash_sum +1 -0
  75. package/.cache/esbuild_plugin_semcore_resolver/src_styled_sstyled.tsx_imp_deps +0 -0
  76. package/.cache/esbuild_plugin_semcore_resolver/src_styled_sstyled.tsx_last_use +1 -0
  77. package/.cache/esbuild_plugin_semcore_resolver/src_utils_assignProps.ts_contents +83 -0
  78. package/.cache/esbuild_plugin_semcore_resolver/src_utils_assignProps.ts_hash_sum +1 -0
  79. package/.cache/esbuild_plugin_semcore_resolver/src_utils_assignProps.ts_imp_deps +0 -0
  80. package/.cache/esbuild_plugin_semcore_resolver/src_utils_assignProps.ts_last_use +1 -0
  81. package/.cache/esbuild_plugin_semcore_resolver/src_utils_canUseDOM.ts_contents +3 -0
  82. package/.cache/esbuild_plugin_semcore_resolver/src_utils_canUseDOM.ts_hash_sum +1 -0
  83. package/.cache/esbuild_plugin_semcore_resolver/src_utils_canUseDOM.ts_imp_deps +0 -0
  84. package/.cache/esbuild_plugin_semcore_resolver/src_utils_canUseDOM.ts_last_use +1 -0
  85. package/.cache/esbuild_plugin_semcore_resolver/src_utils_capitalizeFirstLetter.ts_contents +3 -0
  86. package/.cache/esbuild_plugin_semcore_resolver/src_utils_capitalizeFirstLetter.ts_hash_sum +1 -0
  87. package/.cache/esbuild_plugin_semcore_resolver/src_utils_capitalizeFirstLetter.ts_imp_deps +0 -0
  88. package/.cache/esbuild_plugin_semcore_resolver/src_utils_capitalizeFirstLetter.ts_last_use +1 -0
  89. package/.cache/esbuild_plugin_semcore_resolver/src_utils_enhances_WithI18n.tsx_contents +26 -0
  90. package/.cache/esbuild_plugin_semcore_resolver/src_utils_enhances_WithI18n.tsx_hash_sum +1 -0
  91. package/.cache/esbuild_plugin_semcore_resolver/src_utils_enhances_WithI18n.tsx_imp_deps +0 -0
  92. package/.cache/esbuild_plugin_semcore_resolver/src_utils_enhances_WithI18n.tsx_last_use +1 -0
  93. package/.cache/esbuild_plugin_semcore_resolver/src_utils_enhances_i18nEnhance.tsx_contents +91 -0
  94. package/.cache/esbuild_plugin_semcore_resolver/src_utils_enhances_i18nEnhance.tsx_hash_sum +1 -0
  95. package/.cache/esbuild_plugin_semcore_resolver/src_utils_enhances_i18nEnhance.tsx_imp_deps +0 -0
  96. package/.cache/esbuild_plugin_semcore_resolver/src_utils_enhances_i18nEnhance.tsx_last_use +1 -0
  97. package/.cache/esbuild_plugin_semcore_resolver/src_utils_logger.ts_contents +30 -0
  98. package/.cache/esbuild_plugin_semcore_resolver/src_utils_logger.ts_hash_sum +1 -0
  99. package/.cache/esbuild_plugin_semcore_resolver/src_utils_logger.ts_imp_deps +0 -0
  100. package/.cache/esbuild_plugin_semcore_resolver/src_utils_logger.ts_last_use +1 -0
  101. package/.cache/esbuild_plugin_semcore_resolver/src_utils_pick.ts_contents +12 -0
  102. package/.cache/esbuild_plugin_semcore_resolver/src_utils_pick.ts_hash_sum +1 -0
  103. package/.cache/esbuild_plugin_semcore_resolver/src_utils_pick.ts_imp_deps +0 -0
  104. package/.cache/esbuild_plugin_semcore_resolver/src_utils_pick.ts_last_use +1 -0
  105. package/.cache/esbuild_plugin_semcore_resolver/src_utils_ref.ts_contents +70 -0
  106. package/.cache/esbuild_plugin_semcore_resolver/src_utils_ref.ts_hash_sum +1 -0
  107. package/.cache/esbuild_plugin_semcore_resolver/src_utils_ref.ts_imp_deps +0 -0
  108. package/.cache/esbuild_plugin_semcore_resolver/src_utils_ref.ts_last_use +1 -0
  109. package/.cache/esbuild_plugin_semcore_resolver/src_utils_use_useEnhancedEffect.ts_contents +4 -0
  110. package/.cache/esbuild_plugin_semcore_resolver/src_utils_use_useEnhancedEffect.ts_hash_sum +1 -0
  111. package/.cache/esbuild_plugin_semcore_resolver/src_utils_use_useEnhancedEffect.ts_imp_deps +0 -0
  112. package/.cache/esbuild_plugin_semcore_resolver/src_utils_use_useEnhancedEffect.ts_last_use +1 -0
  113. package/CHANGELOG.md +6 -0
  114. package/lib/core-types/Component.d.ts +79 -33
  115. package/lib/core-types/Component.js +46 -14
  116. package/lib/core-types/Component.js.map +1 -1
  117. package/lib/core-types/Component.mjs +7 -11
  118. package/lib/core-types/Component.mjs.map +1 -1
  119. package/lib/core-types/symbols.mjs +9 -9
  120. package/lib/coreFactory.d.ts +23 -6
  121. package/lib/coreFactory.js +22 -53
  122. package/lib/coreFactory.js.map +1 -1
  123. package/lib/coreFactory.mjs +35 -54
  124. package/lib/coreFactory.mjs.map +1 -1
  125. package/lib/enhancement/Children.mjs +1 -1
  126. package/lib/enhancement/bindHandler.d.ts +5 -0
  127. package/lib/enhancement/bindHandler.js +53 -0
  128. package/lib/enhancement/bindHandler.js.map +1 -0
  129. package/lib/enhancement/bindHandler.mjs +48 -0
  130. package/lib/enhancement/bindHandler.mjs.map +1 -0
  131. package/lib/enhancement/hoistProps.d.ts +10 -0
  132. package/lib/enhancement/hoistProps.js +95 -0
  133. package/lib/enhancement/hoistProps.js.map +1 -0
  134. package/lib/enhancement/hoistProps.mjs +78 -0
  135. package/lib/enhancement/hoistProps.mjs.map +1 -0
  136. package/lib/enhancement/staticChildren.mjs +3 -3
  137. package/lib/enhancement/style.mjs +2 -2
  138. package/lib/esm/core-types/Component.mjs +7 -11
  139. package/lib/esm/core-types/symbols.mjs +9 -9
  140. package/lib/esm/coreFactory.mjs +35 -54
  141. package/lib/esm/enhancement/Children.mjs +1 -1
  142. package/lib/esm/enhancement/bindHandler.mjs +48 -0
  143. package/lib/esm/enhancement/hoistProps.mjs +78 -0
  144. package/lib/esm/enhancement/staticChildren.mjs +3 -3
  145. package/lib/esm/enhancement/style.mjs +2 -2
  146. package/lib/esm/styled/sstyled.mjs +1 -1
  147. package/lib/esm/utils/createHoc.mjs +42 -0
  148. package/lib/esm/utils/enhances/WithI18n.mjs +46 -1
  149. package/lib/esm/utils/getDisplayName.mjs +6 -0
  150. package/lib/esm/utils/ref.mjs +14 -0
  151. package/lib/index.d.ts +3 -3
  152. package/lib/index.js.map +1 -1
  153. package/lib/index.mjs.map +1 -1
  154. package/lib/styled/index.d.ts +5 -1
  155. package/lib/styled/index.js.map +1 -1
  156. package/lib/styled/index.mjs.map +1 -1
  157. package/lib/styled/sstyled.mjs +1 -1
  158. package/lib/utils/ScreenReaderOnly.d.ts +8 -0
  159. package/lib/utils/ScreenReaderOnly.js +30 -0
  160. package/lib/utils/ScreenReaderOnly.js.map +1 -0
  161. package/lib/utils/ScreenReaderOnly.mjs +24 -0
  162. package/lib/utils/ScreenReaderOnly.mjs.map +1 -0
  163. package/lib/utils/createHoc.d.ts +3 -0
  164. package/lib/utils/createHoc.js +52 -0
  165. package/lib/utils/createHoc.js.map +1 -0
  166. package/lib/utils/createHoc.mjs +42 -0
  167. package/lib/utils/createHoc.mjs.map +1 -0
  168. package/lib/utils/enhances/WithAutoFocus.d.ts +14 -0
  169. package/lib/utils/enhances/WithAutoFocus.js +72 -0
  170. package/lib/utils/enhances/WithAutoFocus.js.map +1 -0
  171. package/lib/utils/enhances/WithAutoFocus.mjs +66 -0
  172. package/lib/utils/enhances/WithAutoFocus.mjs.map +1 -0
  173. package/lib/utils/enhances/WithCSS.d.ts +30 -2
  174. package/lib/utils/enhances/WithCSS.js +57 -4
  175. package/lib/utils/enhances/WithCSS.js.map +1 -1
  176. package/lib/utils/enhances/WithCSS.mjs +53 -2
  177. package/lib/utils/enhances/WithCSS.mjs.map +1 -1
  178. package/lib/utils/enhances/WithI18n.d.ts +30 -1
  179. package/lib/utils/enhances/WithI18n.js +57 -1
  180. package/lib/utils/enhances/WithI18n.js.map +1 -1
  181. package/lib/utils/enhances/WithI18n.mjs +46 -1
  182. package/lib/utils/enhances/WithI18n.mjs.map +1 -1
  183. package/lib/utils/enhances/WithKeyboardFocus.d.ts +46 -0
  184. package/lib/utils/enhances/WithKeyboardFocus.js +94 -0
  185. package/lib/utils/enhances/WithKeyboardFocus.js.map +1 -0
  186. package/lib/utils/enhances/WithKeyboardFocus.mjs +88 -0
  187. package/lib/utils/enhances/WithKeyboardFocus.mjs.map +1 -0
  188. package/lib/utils/enhances/WithRef.d.ts +3 -0
  189. package/lib/utils/enhances/WithRef.js +25 -0
  190. package/lib/utils/enhances/WithRef.js.map +1 -0
  191. package/lib/utils/enhances/WithRef.mjs +18 -0
  192. package/lib/utils/enhances/WithRef.mjs.map +1 -0
  193. package/lib/utils/enhances/animatedSizeEnhance.d.ts +4 -0
  194. package/lib/utils/enhances/animatedSizeEnhance.js +2 -0
  195. package/lib/utils/enhances/animatedSizeEnhance.js.map +1 -1
  196. package/lib/utils/enhances/animatedSizeEnhance.mjs +3 -0
  197. package/lib/utils/enhances/animatedSizeEnhance.mjs.map +1 -1
  198. package/lib/utils/enhances/autoFocusEnhance.d.ts +10 -0
  199. package/lib/utils/enhances/autoFocusEnhance.js +45 -0
  200. package/lib/utils/enhances/autoFocusEnhance.js.map +1 -0
  201. package/lib/utils/enhances/autoFocusEnhance.mjs +38 -0
  202. package/lib/utils/enhances/autoFocusEnhance.mjs.map +1 -0
  203. package/lib/utils/enhances/i18nEnhance.d.ts +4 -0
  204. package/lib/utils/enhances/i18nEnhance.js +2 -0
  205. package/lib/utils/enhances/i18nEnhance.js.map +1 -1
  206. package/lib/utils/enhances/i18nEnhance.mjs.map +1 -1
  207. package/lib/utils/enhances/keyboardFocusEnhance.d.ts +27 -0
  208. package/lib/utils/enhances/keyboardFocusEnhance.js +63 -0
  209. package/lib/utils/enhances/keyboardFocusEnhance.js.map +1 -0
  210. package/lib/utils/enhances/keyboardFocusEnhance.mjs +57 -0
  211. package/lib/utils/enhances/keyboardFocusEnhance.mjs.map +1 -0
  212. package/lib/utils/eventEmitter.d.ts +6 -10
  213. package/lib/utils/eventEmitter.js +27 -55
  214. package/lib/utils/eventEmitter.js.map +1 -1
  215. package/lib/utils/eventEmitter.mjs +27 -55
  216. package/lib/utils/eventEmitter.mjs.map +1 -1
  217. package/lib/utils/getDisplayName.mjs +5 -3
  218. package/lib/utils/if.d.ts +11 -0
  219. package/lib/utils/if.js +15 -0
  220. package/lib/utils/if.js.map +1 -0
  221. package/lib/utils/if.mjs +9 -0
  222. package/lib/utils/if.mjs.map +1 -0
  223. package/lib/utils/injectStyle.js +1 -1
  224. package/lib/utils/injectStyle.mjs +1 -1
  225. package/lib/utils/ref.d.ts +3 -1
  226. package/lib/utils/ref.js +14 -0
  227. package/lib/utils/ref.js.map +1 -1
  228. package/lib/utils/ref.mjs +14 -0
  229. package/lib/utils/ref.mjs.map +1 -1
  230. package/lib/utils/uniqueID.d.ts +4 -0
  231. package/lib/utils/uniqueID.js +3 -1
  232. package/lib/utils/uniqueID.js.map +1 -1
  233. package/lib/utils/uniqueID.mjs +4 -1
  234. package/lib/utils/uniqueID.mjs.map +1 -1
  235. package/lib/utils/use/useColorResolver.js +4 -2
  236. package/lib/utils/use/useColorResolver.js.map +1 -1
  237. package/lib/utils/use/useColorResolver.mjs +4 -2
  238. package/lib/utils/use/useColorResolver.mjs.map +1 -1
  239. package/lib/utils/use/useCss.d.ts +4 -0
  240. package/lib/utils/use/useCss.js +19 -0
  241. package/lib/utils/use/useCss.js.map +1 -0
  242. package/lib/utils/use/useCss.mjs +12 -0
  243. package/lib/utils/use/useCss.mjs.map +1 -0
  244. package/lib/utils/use/useEnhancedEffect.d.ts +1 -1
  245. package/lib/utils/zIndexStacking.d.ts +1 -3
  246. package/lib/utils/zIndexStacking.js.map +1 -1
  247. package/lib/utils/zIndexStacking.mjs.map +1 -1
  248. package/package.json +1 -1
  249. package/lib/decorators/propsObserver.d.ts +0 -11
  250. package/lib/decorators/propsObserver.js +0 -77
  251. package/lib/decorators/propsObserver.js.map +0 -1
  252. package/lib/decorators/propsObserver.mjs +0 -70
  253. package/lib/decorators/propsObserver.mjs.map +0 -1
  254. package/lib/decorators/reactive.d.ts +0 -11
  255. package/lib/decorators/reactive.js +0 -51
  256. package/lib/decorators/reactive.js.map +0 -1
  257. package/lib/decorators/reactive.mjs +0 -45
  258. package/lib/decorators/reactive.mjs.map +0 -1
  259. package/lib/utils/indentStyles.d.ts +0 -3
  260. package/lib/utils/indentStyles.js +0 -45
  261. package/lib/utils/indentStyles.js.map +0 -1
  262. package/lib/utils/indentStyles.mjs +0 -36
  263. package/lib/utils/indentStyles.mjs.map +0 -1
@@ -1,77 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
12
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
13
- var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
14
- var _superPropGet3 = _interopRequireDefault(require("@babel/runtime/helpers/superPropGet"));
15
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
16
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
- function propsObserver(propsToWatch) {
18
- return function (Class) {
19
- return /*#__PURE__*/function (_Class2) {
20
- function _class() {
21
- var _this;
22
- (0, _classCallCheck2["default"])(this, _class);
23
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
24
- args[_key] = arguments[_key];
25
- }
26
- _this = (0, _callSuper2["default"])(this, _class, [].concat(args));
27
- (0, _defineProperty2["default"])(_this, "__observableProps", {});
28
- if (!_this.props) return (0, _possibleConstructorReturn2["default"])(_this);
29
- var observablePropKeys = propsToWatch.length === 0 ? Object.keys(_this.props) : (0, _toConsumableArray2["default"])(propsToWatch);
30
- observablePropKeys.forEach(function (key) {
31
- _this.__observableProps[key] = _this.props[key];
32
- });
33
- return _this;
34
- }
35
- (0, _inherits2["default"])(_class, _Class2);
36
- return (0, _createClass2["default"])(_class, [{
37
- key: "onPropsChange",
38
- value: function onPropsChange(_) {
39
- var _this2 = this;
40
- var shouldEmitChanges = false;
41
- var changedProps = {};
42
- Object.entries(this.__observableProps).forEach(function (_ref) {
43
- var _ref2 = (0, _slicedToArray2["default"])(_ref, 2),
44
- key = _ref2[0],
45
- value = _ref2[1];
46
- var arePropsEqual = Object.is(value, _this2.props[key]);
47
- if (!arePropsEqual) {
48
- _this2.__observableProps[key] = _this2.props[key];
49
- changedProps[key] = _this2.props[key];
50
- shouldEmitChanges = true;
51
- }
52
- });
53
- if (!shouldEmitChanges) return;
54
- (0, _superPropGet3["default"])(_class, "onPropsChange", this, 3)([changedProps]);
55
- }
56
- }, {
57
- key: "componentWillUnmount",
58
- value: function componentWillUnmount() {
59
- var _superPropGet2,
60
- _this3 = this;
61
- (_superPropGet2 = (0, _superPropGet3["default"])(_class, "componentWillUnmount", this, 3)) === null || _superPropGet2 === void 0 || _superPropGet2([]);
62
- Object.keys(this.__observableProps).forEach(function (key) {
63
- _this3.__observableProps[key] = undefined;
64
- });
65
- }
66
- }, {
67
- key: "render",
68
- value: function render() {
69
- this.onPropsChange();
70
- return (0, _superPropGet3["default"])(_class, "render", this, 3)([]);
71
- }
72
- }]);
73
- }(Class);
74
- };
75
- }
76
- var _default = exports["default"] = propsObserver;
77
- //# sourceMappingURL=propsObserver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"propsObserver.js","names":["propsObserver","propsToWatch","Class","_Class2","_class","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","_callSuper2","concat","_defineProperty2","props","_possibleConstructorReturn2","observablePropKeys","Object","keys","_toConsumableArray2","forEach","key","__observableProps","_inherits2","_createClass2","value","onPropsChange","_","_this2","shouldEmitChanges","changedProps","entries","_ref","_ref2","_slicedToArray2","arePropsEqual","is","_superPropGet3","componentWillUnmount","_superPropGet2","_this3","undefined","render","_default","exports"],"sources":["../../src/decorators/propsObserver.ts"],"sourcesContent":["type WatchedProps<Props> = { [key in keyof Props]?: unknown };\n\ntype Constructor<Props> = new (...args: any[]) => {\n props: Props;\n onPropsChange(changedProps: WatchedProps<Props>): void;\n render(): React.ReactNode;\n componentWillUnmount?(): void;\n};\n\nfunction propsObserver<\n P extends Record<string, any>,\n C extends Constructor<P>,\n>(propsToWatch: Array<keyof P>) {\n return function (Class: C): C & Constructor<P> {\n return class extends Class {\n __observableProps: WatchedProps<P> = {};\n\n constructor(...args: any[]) {\n super(...args);\n\n if (!this.props) return;\n\n const observablePropKeys = propsToWatch.length === 0 ? Object.keys(this.props) : [...propsToWatch];\n\n observablePropKeys.forEach((key) => {\n this.__observableProps[key] = this.props[key];\n });\n }\n\n onPropsChange(_?: WatchedProps<P>) {\n let shouldEmitChanges = false;\n const changedProps: WatchedProps<P> = {};\n\n Object.entries(this.__observableProps).forEach(([key, value]: [key: keyof P, value: unknown]) => {\n const arePropsEqual = Object.is(value, this.props[key]);\n\n if (!arePropsEqual) {\n this.__observableProps[key] = this.props[key];\n changedProps[key] = this.props[key];\n\n shouldEmitChanges = true;\n }\n });\n\n if (!shouldEmitChanges) return;\n\n super.onPropsChange(changedProps);\n }\n\n componentWillUnmount() {\n super.componentWillUnmount?.();\n\n Object.keys(this.__observableProps).forEach((key: keyof P) => {\n this.__observableProps[key] = undefined;\n });\n }\n\n render() {\n this.onPropsChange();\n\n return super.render();\n }\n };\n };\n}\n\nexport default propsObserver;\n"],"mappings":";;;;;;;;;;;;;;;;AASA,SAASA,aAAaA,CAGpBC,YAA4B,EAAE;EAC9B,OAAO,UAAUC,KAAQ,EAAsB;IAC7C,8BAAAC,OAAA;MAGE,SAAAC,OAAA,EAA4B;QAAA,IAAAC,KAAA;QAAA,IAAAC,gBAAA,mBAAAF,MAAA;QAAA,SAAAG,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAbC,IAAI,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;UAAJF,IAAI,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA;QAAA;QACjBP,KAAA,OAAAQ,WAAA,mBAAAT,MAAA,KAAAU,MAAA,CAASJ,IAAI;QAAE,IAAAK,gBAAA,aAAAV,KAAA,uBAHoB,CAAC,CAAC;QAKrC,IAAI,CAACA,KAAA,CAAKW,KAAK,EAAE,WAAAC,2BAAA,aAAAZ,KAAA;QAEjB,IAAMa,kBAAkB,GAAGjB,YAAY,CAACQ,MAAM,KAAK,CAAC,GAAGU,MAAM,CAACC,IAAI,CAACf,KAAA,CAAKW,KAAK,CAAC,OAAAK,mBAAA,aAAOpB,YAAY,CAAC;QAElGiB,k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A,cAAA;UAEAtB,MAAM,CAACC,IAAI,CAAC,IAAI,CAACI,iBAAiB,CAAC,CAACF,OAAO,CAAC,UAACC,GAAY,EAAK;YAC5DmB,MAAI,CAAClB,iBAAiB,CAACD,GAAG,CAAC,GAAGoB,SAAS;UACzC,CAAC,CAAC;QACJ;MAAC;QAAApB,GAAA;QAAAI,KAAA,EAED,SAAAiB,MAAMA,CAAA,EAAG;UACP,IAAI,CAAChB,aAAa,CAAC,CAAC;UAEpB,WAAAW,cAAA,aAAAnC,MAAA;QACF;MAAC;IAAA,EA/CkBF,KAAK;EAiD5B,CAAC;AACH;AAAC,IAAA2C,QAAA,GAAAC,OAAA,cAEc9C,aAAa","ignoreList":[]}
@@ -1,70 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
- import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
4
- import _createClass from "@babel/runtime/helpers/esm/createClass";
5
- import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
6
- import _callSuper from "@babel/runtime/helpers/esm/callSuper";
7
- import _superPropGet from "@babel/runtime/helpers/esm/superPropGet";
8
- import _inherits from "@babel/runtime/helpers/esm/inherits";
9
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
10
- function propsObserver(propsToWatch) {
11
- return function (Class) {
12
- return /*#__PURE__*/function (_Class2) {
13
- function _class() {
14
- var _this;
15
- _classCallCheck(this, _class);
16
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
17
- args[_key] = arguments[_key];
18
- }
19
- _this = _callSuper(this, _class, [].concat(args));
20
- _defineProperty(_this, "__observableProps", {});
21
- if (!_this.props) return _possibleConstructorReturn(_this);
22
- var observablePropKeys = propsToWatch.length === 0 ? Object.keys(_this.props) : _toConsumableArray(propsToWatch);
23
- observablePropKeys.forEach(function (key) {
24
- _this.__observableProps[key] = _this.props[key];
25
- });
26
- return _this;
27
- }
28
- _inherits(_class, _Class2);
29
- return _createClass(_class, [{
30
- key: "onPropsChange",
31
- value: function onPropsChange(_) {
32
- var _this2 = this;
33
- var shouldEmitChanges = false;
34
- var changedProps = {};
35
- Object.entries(this.__observableProps).forEach(function (_ref) {
36
- var _ref2 = _slicedToArray(_ref, 2),
37
- key = _ref2[0],
38
- value = _ref2[1];
39
- var arePropsEqual = Object.is(value, _this2.props[key]);
40
- if (!arePropsEqual) {
41
- _this2.__observableProps[key] = _this2.props[key];
42
- changedProps[key] = _this2.props[key];
43
- shouldEmitChanges = true;
44
- }
45
- });
46
- if (!shouldEmitChanges) return;
47
- _superPropGet(_class, "onPropsChange", this, 3)([changedProps]);
48
- }
49
- }, {
50
- key: "componentWillUnmount",
51
- value: function componentWillUnmount() {
52
- var _superPropGet2,
53
- _this3 = this;
54
- (_superPropGet2 = _superPropGet(_class, "componentWillUnmount", this, 3)) === null || _superPropGet2 === void 0 || _superPropGet2([]);
55
- Object.keys(this.__observableProps).forEach(function (key) {
56
- _this3.__observableProps[key] = undefined;
57
- });
58
- }
59
- }, {
60
- key: "render",
61
- value: function render() {
62
- this.onPropsChange();
63
- return _superPropGet(_class, "render", this, 3)([]);
64
- }
65
- }]);
66
- }(Class);
67
- };
68
- }
69
- export default propsObserver;
70
- //# sourceMappingURL=propsObserver.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"propsObserver.mjs","names":["propsObserver","propsToWatch","Class","_Class2","_class","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","concat","_defineProperty","props","_possibleConstructorReturn","observablePropKeys","Object","keys","_toConsumableArray","forEach","key","__observableProps","_inherits","_createClass","value","onPropsChange","_","_this2","shouldEmitChanges","changedProps","entries","_ref","_ref2","_slicedToArray","arePropsEqual","is","_superPropGet","componentWillUnmount","_superPropGet2","_this3","undefined","render"],"sources":["../../src/decorators/propsObserver.ts"],"sourcesContent":["type WatchedProps<Props> = { [key in keyof Props]?: unknown };\n\ntype Constructor<Props> = new (...args: any[]) => {\n props: Props;\n onPropsChange(changedProps: WatchedProps<Props>): void;\n render(): React.ReactNode;\n componentWillUnmount?(): void;\n};\n\nfunction propsObserver<\n P extends Record<string, any>,\n C extends Constructor<P>,\n>(propsToWatch: Array<keyof P>) {\n return function (Class: C): C & Constructor<P> {\n return class extends Class {\n __observableProps: WatchedProps<P> = {};\n\n constructor(...args: any[]) {\n super(...args);\n\n if (!this.props) return;\n\n const observablePropKeys = propsToWatch.length === 0 ? Object.keys(this.props) : [...propsToWatch];\n\n observablePropKeys.forEach((key) => {\n this.__observableProps[key] = this.props[key];\n });\n }\n\n onPropsChange(_?: WatchedProps<P>) {\n let shouldEmitChanges = false;\n const changedProps: WatchedProps<P> = {};\n\n Object.entries(this.__observableProps).forEach(([key, value]: [key: keyof P, value: unknown]) => {\n const arePropsEqual = Object.is(value, this.props[key]);\n\n if (!arePropsEqual) {\n this.__observableProps[key] = this.props[key];\n changedProps[key] = this.props[key];\n\n shouldEmitChanges = true;\n }\n });\n\n if (!shouldEmitChanges) return;\n\n super.onPropsChange(changedProps);\n }\n\n componentWillUnmount() {\n super.componentWillUnmount?.();\n\n Object.keys(this.__observableProps).forEach((key: keyof P) => {\n this.__observableProps[key] = undefined;\n });\n }\n\n render() {\n this.onPropsChange();\n\n return super.render();\n }\n };\n };\n}\n\nexport default propsObserver;\n"],"mappings":";;;;;;;;;AASA,SAASA,aAAaA,CAGpBC,YAA4B,EAAE;EAC9B,OAAO,UAAUC,KAAQ,EAAsB;IAC7C,8BAAAC,OAAA;MAGE,SAAAC,OAAA,EAA4B;QAAA,IAAAC,KAAA;QAAAC,eAAA,OAAAF,MAAA;QAAA,SAAAG,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAbC,IAAI,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;UAAJF,IAAI,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA;QAAA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AAI,CAACd,KAAK,CAACO,GAAG,CAAC;cAEnCQ,iBAAiB,GAAG,IAAI;YAC1B;UACF,CAAC,CAAC;UAEF,IAAI,CAACA,iBAAiB,EAAE;UAExBQ,aAAA,CAAAnC,MAAA,6BAAoB4B,YAAY;QAClC;MAAC;QAAAT,GAAA;QAAAI,KAAA,EAED,SAAAa,oBAAoBA,CAAA,EAAG;UAAA,IAAAC,cAAA;YAAAC,MAAA;UACrB,CAAAD,cAAA,GAAAF,aAAA,CAAAnC,MAAA,gDAAAqC,cAAA,eAAAA,cAAA;UAEAtB,MAAM,CAACC,IAAI,CAAC,IAAI,CAACI,iBAAiB,CAAC,CAACF,OAAO,CAAC,UAACC,GAAY,EAAK;YAC5DmB,MAAI,CAAClB,iBAAiB,CAACD,GAAG,CAAC,GAAGoB,SAAS;UACzC,CAAC,CAAC;QACJ;MAAC;QAAApB,GAAA;QAAAI,KAAA,EAED,SAAAiB,MAAMA,CAAA,EAAG;UACP,IAAI,CAAChB,aAAa,CAAC,CAAC;UAEpB,OAAAW,aAAA,CAAAnC,MAAA;QACF;MAAC;IAAA,EA/CkBF,KAAK;EAiD5B,CAAC;AACH;AAEA,eAAeF,aAAa","ignoreList":[]}
@@ -1,11 +0,0 @@
1
- type Primitive = string | number | boolean | symbol | bigint | null | undefined;
2
- type IsReadonly<This, Property extends keyof This> = (<F>() => F extends {
3
- [P in Property]: This[Property];
4
- } ? 1 : 2) extends (<F>() => F extends {
5
- -readonly [P in Property]: This[Property];
6
- } ? 1 : 2) ? false : true;
7
- type Callback<This> = (this: This, field: string | symbol, newValue: unknown) => void;
8
- type ReturnType<This, Property extends keyof This = keyof This> = IsReadonly<This, Property> extends true ? (_: undefined, ctx: ClassFieldDecoratorContext<This, This[Property]>) => void : This[Property] extends Primitive ? (_: undefined, ctx: ClassFieldDecoratorContext<This, This[Property]>) => void : never;
9
- declare function reactive<This, Property extends keyof This, Value = This[Property]>(cb: Value extends Primitive ? Callback<This> : never): ReturnType<This>;
10
- declare function reactive<This, Property extends keyof This, Value = This[Property]>(watchedFields: Value extends Primitive ? never : Array<keyof Value>, cb: Callback<This>): ReturnType<This>;
11
- export default reactive;
@@ -1,51 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var isPrimitiveValue = function isPrimitiveValue(value) {
8
- return value !== Object(value);
9
- };
10
- function reactive(watchedFieldsOrCb, cb) {
11
- return function (_, ctx) {
12
- var addInitializer = ctx.addInitializer,
13
- name = ctx.name;
14
- addInitializer(function () {
15
- var thisRoot = this;
16
- var isPrimitive = isPrimitiveValue(this[name]);
17
- var callback = typeof watchedFieldsOrCb === 'function' ? watchedFieldsOrCb : cb;
18
- var fields = Array.isArray(watchedFieldsOrCb) ? watchedFieldsOrCb : null;
19
- if (isPrimitive) {
20
- var value = this[name];
21
- Object.defineProperty(this, name, {
22
- get: function get() {
23
- return value;
24
- },
25
- set: function set(newValue) {
26
- var oldValue = value;
27
- value = newValue;
28
- if (oldValue !== newValue) {
29
- callback.call(thisRoot, name, newValue);
30
- }
31
- },
32
- enumerable: true,
33
- configurable: true
34
- });
35
- } else {
36
- // @ts-ignore
37
- this[name] = new Proxy(this[name], {
38
- set: function set(target, p, newValue) {
39
- target[p] = newValue;
40
- if ((fields === null || fields === void 0 ? void 0 : fields.length) === 0 || fields !== null && fields !== void 0 && fields.includes(p)) {
41
- callback.call(thisRoot, p, newValue);
42
- }
43
- return true;
44
- }
45
- });
46
- }
47
- });
48
- };
49
- }
50
- var _default = exports["default"] = reactive;
51
- //# sourceMappingURL=reactive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reactive.js","names":["isPrimitiveValue","value","Object","reactive","watchedFieldsOrCb","cb","_","ctx","addInitializer","name","thisRoot","isPrimitive","callback","fields","Array","isArray","defineProperty","get","set","newValue","oldValue","call","enumerable","configurable","Proxy","target","p","length","includes","_default","exports"],"sources":["../../src/decorators/reactive.ts"],"sourcesContent":["type Primitive = string | number | boolean | symbol | bigint | null | undefined;\ntype IsReadonly<This, Property extends keyof This> =\n (<F>() => F extends { [P in Property]: This[Property] } ? 1 : 2) extends\n (<F>() => F extends { -readonly [P in Property]: This[Property] } ? 1 : 2)\n ? false\n : true;\ntype Callback<This> = (this: This, field: string | symbol, newValue: unknown) => void;\ntype ReturnType<\n This,\n Property extends keyof This = keyof This,\n> = IsReadonly<This, Property> extends true\n ? (_: undefined, ctx: ClassFieldDecoratorContext<This, This[Property]>) => void\n : This[Property] extends Primitive\n ? (_: undefined, ctx: ClassFieldDecoratorContext<This, This[Property]>) => void\n : never;\n\nconst isPrimitiveValue = (value: unknown) => value !== Object(value);\n\nfunction reactive<\n This,\n Property extends keyof This,\n Value = This[Property],\n>(cb: Value extends Primitive ? Callback<This> : never): ReturnType<This>;\nfunction reactive<\n This,\n Property extends keyof This,\n Value = This[Property],\n>(watchedFields: Value extends Primitive ? never : Array<keyof Value>, cb: Callback<This>): ReturnType<This>;\n\nfunction reactive<\n This,\n Property extends keyof This,\n>(watchedFieldsOrCb: Array<keyof This[Property]> | Callback<This>, cb?: Callback<This>) {\n return function (_: undefined, ctx: ClassFieldDecoratorContext<This, This[Property]>) {\n const { addInitializer, name } = ctx;\n\n addInitializer(function (this: This) {\n const thisRoot = this;\n\n const isPrimitive = isPrimitiveValue(this[name as Property]);\n\n const callback = typeof watchedFieldsOrCb === 'function' ? watchedFieldsOrCb : cb!;\n const fields = Array.isArray(watchedFieldsOrCb) ? watchedFieldsOrCb : null;\n\n if (isPrimitive) {\n let value = this[name as Property];\n\n Object.defineProperty(this, name, {\n get() {\n return value;\n },\n set(newValue) {\n const oldValue = value;\n\n value = newValue;\n\n if (oldValue !== newValue) {\n callback.call(thisRoot, name, newValue);\n }\n },\n enumerable: true,\n configurable: true,\n });\n } else {\n // @ts-ignore\n this[name] = new Proxy(this[name], {\n set(target, p, newValue) {\n target[p] = newValue;\n\n if (fields?.length === 0 || fields?.includes(p as keyof This[Property])) {\n callback.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AAI,CAACd,IAAI,CAAC,GAAG,IAAIe,KAAK,CAAC,IAAI,CAACf,IAAI,CAAC,EAAE;UACjCS,GAAG,WAAHA,GAAGA,CAACO,MAAM,EAAEC,CAAC,EAAEP,QAAQ,EAAE;YACvBM,MAAM,CAACC,CAAC,CAAC,GAAGP,QAAQ;YAEpB,IAAI,CAAAN,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEc,MAAM,MAAK,CAAC,IAAId,MAAM,aAANA,MAAM,eAANA,MAAM,CAAEe,QAAQ,CAACF,CAAyB,CAAC,EAAE;cACvEd,QAAQ,CAACS,IAAI,CAACX,QAAQ,EAAEgB,CAAC,EAAEP,QAAQ,CAAC;YACtC;YAEA,OAAO,IAAI;UACb;QACF,CAAC,CAAC;MACJ;IACF,CAAC,CAAC;EACJ,CAAC;AACH;AAAC,IAAAU,QAAA,GAAAC,OAAA,cAEc3B,QAAQ","ignoreList":[]}
@@ -1,45 +0,0 @@
1
- var isPrimitiveValue = function isPrimitiveValue(value) {
2
- return value !== Object(value);
3
- };
4
- function reactive(watchedFieldsOrCb, cb) {
5
- return function (_, ctx) {
6
- var addInitializer = ctx.addInitializer,
7
- name = ctx.name;
8
- addInitializer(function () {
9
- var thisRoot = this;
10
- var isPrimitive = isPrimitiveValue(this[name]);
11
- var callback = typeof watchedFieldsOrCb === 'function' ? watchedFieldsOrCb : cb;
12
- var fields = Array.isArray(watchedFieldsOrCb) ? watchedFieldsOrCb : null;
13
- if (isPrimitive) {
14
- var value = this[name];
15
- Object.defineProperty(this, name, {
16
- get: function get() {
17
- return value;
18
- },
19
- set: function set(newValue) {
20
- var oldValue = value;
21
- value = newValue;
22
- if (oldValue !== newValue) {
23
- callback.call(thisRoot, name, newValue);
24
- }
25
- },
26
- enumerable: true,
27
- configurable: true
28
- });
29
- } else {
30
- // @ts-ignore
31
- this[name] = new Proxy(this[name], {
32
- set: function set(target, p, newValue) {
33
- target[p] = newValue;
34
- if ((fields === null || fields === void 0 ? void 0 : fields.length) === 0 || fields !== null && fields !== void 0 && fields.includes(p)) {
35
- callback.call(thisRoot, p, newValue);
36
- }
37
- return true;
38
- }
39
- });
40
- }
41
- });
42
- };
43
- }
44
- export default reactive;
45
- //# sourceMappingURL=reactive.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reactive.mjs","names":["isPrimitiveValue","value","Object","reactive","watchedFieldsOrCb","cb","_","ctx","addInitializer","name","thisRoot","isPrimitive","callback","fields","Array","isArray","defineProperty","get","set","newValue","oldValue","call","enumerable","configurable","Proxy","target","p","length","includes"],"sources":["../../src/decorators/reactive.ts"],"sourcesContent":["type Primitive = string | number | boolean | symbol | bigint | null | undefined;\ntype IsReadonly<This, Property extends keyof This> =\n (<F>() => F extends { [P in Property]: This[Property] } ? 1 : 2) extends\n (<F>() => F extends { -readonly [P in Property]: This[Property] } ? 1 : 2)\n ? false\n : true;\ntype Callback<This> = (this: This, field: string | symbol, newValue: unknown) => void;\ntype ReturnType<\n This,\n Property extends keyof This = keyof This,\n> = IsReadonly<This, Property> extends true\n ? (_: undefined, ctx: ClassFieldDecoratorContext<This, This[Property]>) => void\n : This[Property] extends Primitive\n ? (_: undefined, ctx: ClassFieldDecoratorContext<This, This[Property]>) => void\n : never;\n\nconst isPrimitiveValue = (value: unknown) => value !== Object(value);\n\nfunction reactive<\n This,\n Property extends keyof This,\n Value = This[Property],\n>(cb: Value extends Primitive ? Callback<This> : never): ReturnType<This>;\nfunction reactive<\n This,\n Property extends keyof This,\n Value = This[Property],\n>(watchedFields: Value extends Primitive ? never : Array<keyof Value>, cb: Callback<This>): ReturnType<This>;\n\nfunction reactive<\n This,\n Property extends keyof This,\n>(watchedFieldsOrCb: Array<keyof This[Property]> | Callback<This>, cb?: Callback<This>) {\n return function (_: undefined, ctx: ClassFieldDecoratorContext<This, This[Property]>) {\n const { addInitializer, name } = ctx;\n\n addInitializer(function (this: This) {\n const thisRoot = this;\n\n const isPrimitive = isPrimitiveValue(this[name as Property]);\n\n const callback = typeof watchedFieldsOrCb === 'function' ? watchedFieldsOrCb : cb!;\n const fields = Array.isArray(watchedFieldsOrCb) ? watchedFieldsOrCb : null;\n\n if (isPrimitive) {\n let value = this[name as Property];\n\n Object.defineProperty(this, name, {\n get() {\n return value;\n },\n set(newValue) {\n const oldValue = value;\n\n value = newValue;\n\n if (oldValue !== newValue) {\n callback.call(thisRoot, name, newValue);\n }\n },\n enumerable: true,\n configurable: true,\n });\n } else {\n // @ts-ignore\n this[name] = new Proxy(this[name], {\n set(target, p, newValue) {\n target[p] = newValue;\n\n if (fields?.length === 0 || fields?.includes(p as keyof This[Property])) {\n callback.call(thisRoot, p, newValue);\n }\n\n return true;\n },\n });\n }\n });\n };\n}\n\nexport default reactive;\n"],"mappings":"AAgBA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,KAAc;EAAA,OAAKA,KAAK,KAAKC,MAAM,CAACD,KAAK,CAAC;AAAA;AAapE,SAASE,QAAQA,CAGfC,iBAA+D,EAAEC,EAAmB,EAAE;EACtF,OAAO,UAAUC,CAAY,EAAEC,GAAqD,EAAE;IACpF,IAAQC,cAAc,GAAWD,GAAG,CAA5BC,cAAc;MAAEC,IAAI,GAAKF,GAAG,CAAZE,IAAI;IAE5BD,cAAc,CAAC,YAAsB;MACnC,IAAME,QAAQ,GAAG,IAAI;MAErB,IAAMC,WAAW,GAAGX,gBAAgB,CAAC,IAAI,CAACS,IAAI,CAAa,CAAC;MAE5D,IAAMG,QAAQ,GAAG,OAAOR,iBAAiB,KAAK,UAAU,GAAGA,iBAAiB,GAAGC,EAAG;MAClF,IAAMQ,MAAM,GAAGC,KAAK,CAACC,OAAO,CAACX,iBAAiB,CAAC,GAAGA,iBAAiB,GAAG,IAAI;MAE1E,IAAIO,WAAW,EAAE;QACf,IAAIV,KAAK,GAAG,IAAI,CAACQ,IAAI,CAAa;QAElCP,MAAM,CAACc,cAAc,CAAC,IAAI,EAAEP,IAAI,EAAE;UAChCQ,GAAG,WAAHA,GAAGA,CAAA,EAAG;YACJ,OAAOhB,KAAK;UACd,CAAC;UACDiB,GAAG,WAAHA,GAAGA,CAACC,QAAQ,EAAE;YACZ,IAAMC,QAAQ,GAAGnB,KAAK;YAEtBA,KAAK,GAAGkB,QAAQ;YAEhB,IAAIC,QAAQ,KAAKD,QAAQ,EAAE;cACzBP,QAAQ,CAACS,IAAI,CAACX,QAAQ,EAAED,IAAI,EAAEU,QAAQ,CAAC;YACzC;UACF,CAAC;UACDG,UAAU,EAAE,IAAI;UAChBC,YAAY,EAAE;QAChB,CAAC,CAAC;MACJ,CAAC,MAAM;QACL;QACA,IAAI,CAACd,IAAI,CAAC,GAAG,IAAIe,KAAK,CAAC,IAAI,CAACf,IAAI,CAAC,EAAE;UACjCS,GAAG,WAAHA,GAAGA,CAACO,MAAM,EAAEC,CAAC,EAAEP,QAAQ,EAAE;YACvBM,MAAM,CAACC,CAAC,CAAC,GAAGP,QAAQ;YAEpB,IAAI,CAAAN,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEc,MAAM,MAAK,CAAC,IAAId,MAAM,aAANA,MAAM,eAANA,MAAM,CAAEe,QAAQ,CAACF,CAAyB,CAAC,EAAE;cACvEd,QAAQ,CAACS,IAAI,CAACX,QAAQ,EAAEgB,CAAC,EAAEP,QAAQ,CAAC;YACtC;YAEA,OAAO,IAAI;UACb;QACF,CAAC,CAAC;MACJ;IACF,CAAC,CAAC;EACJ,CAAC;AACH;AAEA,eAAehB,QAAQ","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- export declare function removeUndefinedKeys<T extends {}>(obj: T): any;
2
- export declare function getSize(size: string | number | undefined): string | undefined;
3
- export declare function getAutoOrScaleIndent(indent: number | string | undefined, scaleIndent: number): string | number | undefined;
@@ -1,45 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.getAutoOrScaleIndent = getAutoOrScaleIndent;
8
- exports.getSize = getSize;
9
- exports.removeUndefinedKeys = removeUndefinedKeys;
10
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
- function removeUndefinedKeys(obj) {
12
- return Object.entries(obj).reduce(function (acc, _ref) {
13
- var _ref2 = (0, _slicedToArray2["default"])(_ref, 2),
14
- key = _ref2[0],
15
- value = _ref2[1];
16
- if (value !== undefined) {
17
- acc[key] = value;
18
- }
19
- return acc;
20
- }, {});
21
- }
22
- function getSize(size) {
23
- if (typeof size !== 'number') {
24
- return size;
25
- }
26
- if (size < 1) {
27
- return "".concat(100 * size, "%");
28
- }
29
- if (size >= 1) {
30
- return "".concat(size, "px");
31
- }
32
- }
33
- function getAutoOrScaleIndent(indent, scaleIndent) {
34
- if (typeof indent === 'string') {
35
- return indent;
36
- }
37
- if (typeof indent === 'number' && indent > -1 && indent < 1) {
38
- return "".concat(100 * indent, "%");
39
- }
40
- if (typeof indent === 'number' && (indent >= 1 || indent <= -1)) {
41
- return "".concat(indent * scaleIndent, "px");
42
- }
43
- return indent;
44
- }
45
- //# sourceMappingURL=indentStyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"indentStyles.js","names":["removeUndefinedKeys","obj","Object","entries","reduce","acc","_ref","_ref2","_slicedToArray2","key","value","undefined","getSize","size","concat","getAutoOrScaleIndent","indent","scaleIndent"],"sources":["../../src/utils/indentStyles.tsx"],"sourcesContent":["export function removeUndefinedKeys<T extends {}>(obj: T) {\n return Object.entries(obj).reduce((acc: any, [key, value]) => {\n if (value !== undefined) {\n acc[key] = value;\n }\n return acc;\n }, {});\n}\n\nexport function getSize(size: string | number | undefined): string | undefined {\n if (typeof size !== 'number') {\n return size;\n }\n if (size < 1) {\n return `${100 * size}%`;\n }\n if (size >= 1) {\n return `${size}px`;\n }\n}\n\nexport function getAutoOrScaleIndent(indent: number | string | undefined, scaleIndent: number) {\n if (typeof indent === 'string') {\n return indent;\n }\n if (typeof indent === 'number' && indent > -1 && indent < 1) {\n return `${100 * indent}%`;\n }\n if (typeof indent === 'number' && (indent >= 1 || indent <= -1)) {\n return `${indent * scaleIndent}px`;\n }\n return indent;\n}\n"],"mappings":";;;;;;;;;;AAAO,SAASA,mBAAmBA,CAAeC,GAAM,EAAE;EACxD,OAAOC,MAAM,CAACC,OAAO,CAACF,GAAG,CAAC,CAACG,MAAM,CAAC,UAACC,GAAQ,EAAAC,IAAA,EAAmB;IAAA,IAAAC,KAAA,OAAAC,eAAA,aAAAF,IAAA;MAAhBG,GAAG,GAAAF,KAAA;MAAEG,KAAK,GAAAH,KAAA;IACtD,IAAIG,KAAK,KAAKC,SAAS,EAAE;MACvBN,GAAG,CAACI,GAAG,CAAC,GAAGC,KAAK;IAClB;IACA,OAAOL,GAAG;EACZ,CAAC,EAAE,CAAC,CAAC,CAAC;AACR;AAEO,SAASO,OAAOA,CAACC,IAAiC,EAAsB;EAC7E,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IAC5B,OAAOA,IAAI;EACb;EACA,IAAIA,IAAI,GAAG,CAAC,EAAE;IACZ,UAAAC,MAAA,CAAU,GAAG,GAAGD,IAAI;EACtB;EACA,IAAIA,IAAI,IAAI,CAAC,EAAE;IACb,UAAAC,MAAA,CAAUD,IAAI;EAChB;AACF;AAEO,SAASE,oBAAoBA,CAACC,MAAmC,EAAEC,WAAmB,EAAE;EAC7F,IAAI,OAAOD,MAAM,KAAK,QAAQ,EAAE;IAC9B,OAAOA,MAAM;EACf;EACA,IAAI,OAAOA,MAAM,KAAK,QAAQ,IAAIA,MAAM,GAAG,CAAC,CAAC,IAAIA,MAAM,GAAG,CAAC,EAAE;IAC3D,UAAAF,MAAA,CAAU,GAAG,GAAGE,MAAM;EACxB;EACA,IAAI,OAAOA,MAAM,KAAK,QAAQ,KAAKA,MAAM,IAAI,CAAC,IAAIA,MAAM,IAAI,CAAC,CAAC,CAAC,EAAE;IAC/D,UAAAF,MAAA,CAAUE,MAAM,GAAGC,WAAW;EAChC;EACA,OAAOD,MAAM;AACf","ignoreList":[]}
@@ -1,36 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- export function removeUndefinedKeys(obj) {
3
- return Object.entries(obj).reduce(function (acc, _ref) {
4
- var _ref2 = _slicedToArray(_ref, 2),
5
- key = _ref2[0],
6
- value = _ref2[1];
7
- if (value !== undefined) {
8
- acc[key] = value;
9
- }
10
- return acc;
11
- }, {});
12
- }
13
- export function getSize(size) {
14
- if (typeof size !== 'number') {
15
- return size;
16
- }
17
- if (size < 1) {
18
- return "".concat(100 * size, "%");
19
- }
20
- if (size >= 1) {
21
- return "".concat(size, "px");
22
- }
23
- }
24
- export function getAutoOrScaleIndent(indent, scaleIndent) {
25
- if (typeof indent === 'string') {
26
- return indent;
27
- }
28
- if (typeof indent === 'number' && indent > -1 && indent < 1) {
29
- return "".concat(100 * indent, "%");
30
- }
31
- if (typeof indent === 'number' && (indent >= 1 || indent <= -1)) {
32
- return "".concat(indent * scaleIndent, "px");
33
- }
34
- return indent;
35
- }
36
- //# sourceMappingURL=indentStyles.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"indentStyles.mjs","names":["removeUndefinedKeys","obj","Object","entries","reduce","acc","_ref","_ref2","_slicedToArray","key","value","undefined","getSize","size","concat","getAutoOrScaleIndent","indent","scaleIndent"],"sources":["../../src/utils/indentStyles.tsx"],"sourcesContent":["export function removeUndefinedKeys<T extends {}>(obj: T) {\n return Object.entries(obj).reduce((acc: any, [key, value]) => {\n if (value !== undefined) {\n acc[key] = value;\n }\n return acc;\n }, {});\n}\n\nexport function getSize(size: string | number | undefined): string | undefined {\n if (typeof size !== 'number') {\n return size;\n }\n if (size < 1) {\n return `${100 * size}%`;\n }\n if (size >= 1) {\n return `${size}px`;\n }\n}\n\nexport function getAutoOrScaleIndent(indent: number | string | undefined, scaleIndent: number) {\n if (typeof indent === 'string') {\n return indent;\n }\n if (typeof indent === 'number' && indent > -1 && indent < 1) {\n return `${100 * indent}%`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