@kaspernj/api-maker 1.0.2160 → 1.0.2161

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 (524) hide show
  1. package/build/api.d.ts +46 -34
  2. package/build/api.d.ts.map +1 -1
  3. package/build/api.js +32 -25
  4. package/build/attribute-not-loaded-error.d.ts.map +1 -1
  5. package/build/attribute-not-loaded-error.js +2 -1
  6. package/build/base-error.d.ts +49 -60
  7. package/build/base-error.d.ts.map +1 -1
  8. package/build/base-error.js +3 -2
  9. package/build/base-model/column.d.ts +2 -2
  10. package/build/base-model/column.d.ts.map +1 -1
  11. package/build/base-model/column.js +3 -2
  12. package/build/base-model/reflection.d.ts +8 -3
  13. package/build/base-model/reflection.d.ts.map +1 -1
  14. package/build/base-model/reflection.js +8 -3
  15. package/build/base-model/scope.d.ts +1 -1
  16. package/build/base-model/scope.d.ts.map +1 -1
  17. package/build/base-model/scope.js +3 -2
  18. package/build/base-model.d.ts +3801 -117
  19. package/build/base-model.d.ts.map +1 -1
  20. package/build/base-model.js +271 -143
  21. package/build/bootstrap/attribute-row.d.ts +12 -0
  22. package/build/bootstrap/attribute-row.d.ts.map +1 -1
  23. package/build/bootstrap/attribute-row.js +23 -5
  24. package/build/bootstrap/attribute-rows.d.ts +8 -0
  25. package/build/bootstrap/attribute-rows.d.ts.map +1 -1
  26. package/build/bootstrap/attribute-rows.js +14 -5
  27. package/build/bootstrap/card.d.ts +17 -0
  28. package/build/bootstrap/card.d.ts.map +1 -1
  29. package/build/bootstrap/card.js +30 -10
  30. package/build/bootstrap/checkbox.d.ts +16 -0
  31. package/build/bootstrap/checkbox.d.ts.map +1 -1
  32. package/build/bootstrap/checkbox.js +20 -2
  33. package/build/bootstrap/checkboxes.d.ts +31 -0
  34. package/build/bootstrap/checkboxes.d.ts.map +1 -1
  35. package/build/bootstrap/checkboxes.js +35 -3
  36. package/build/bootstrap/index.js +2 -1
  37. package/build/bootstrap/input.d.ts +24 -0
  38. package/build/bootstrap/input.d.ts.map +1 -1
  39. package/build/bootstrap/input.js +27 -2
  40. package/build/bootstrap/invalid-feedback.d.ts.map +1 -1
  41. package/build/bootstrap/invalid-feedback.js +2 -1
  42. package/build/bootstrap/paginate.d.ts +5 -0
  43. package/build/bootstrap/paginate.d.ts.map +1 -1
  44. package/build/bootstrap/paginate.js +9 -4
  45. package/build/bootstrap/radio-buttons.js +2 -1
  46. package/build/bootstrap/select.js +2 -1
  47. package/build/bootstrap/sort-link.d.ts +10 -0
  48. package/build/bootstrap/sort-link.d.ts.map +1 -1
  49. package/build/bootstrap/sort-link.js +15 -4
  50. package/build/cable-connection-pool.d.ts +201 -24
  51. package/build/cable-connection-pool.d.ts.map +1 -1
  52. package/build/cable-connection-pool.js +76 -16
  53. package/build/cable-subscription-pool.d.ts +186 -20
  54. package/build/cable-subscription-pool.d.ts.map +1 -1
  55. package/build/cable-subscription-pool.js +61 -22
  56. package/build/cable-subscription.d.ts.map +1 -1
  57. package/build/cable-subscription.js +3 -2
  58. package/build/cache-key-generator.d.ts +194 -20
  59. package/build/cache-key-generator.d.ts.map +1 -1
  60. package/build/cache-key-generator.js +63 -12
  61. package/build/can-can.d.ts +146 -29
  62. package/build/can-can.d.ts.map +1 -1
  63. package/build/can-can.js +105 -19
  64. package/build/channels-consumer.d.ts +23 -1
  65. package/build/channels-consumer.d.ts.map +1 -1
  66. package/build/channels-consumer.js +26 -8
  67. package/build/collection-loader.js +2 -1
  68. package/build/collection.d.ts +361 -370
  69. package/build/collection.d.ts.map +1 -1
  70. package/build/collection.js +59 -19
  71. package/build/command-execution.d.ts +50 -26
  72. package/build/command-execution.d.ts.map +1 -1
  73. package/build/command-execution.js +31 -13
  74. package/build/command-submit-data.d.ts +50 -37
  75. package/build/command-submit-data.d.ts.map +1 -1
  76. package/build/command-submit-data.js +35 -22
  77. package/build/commands-pool.d.ts +65 -27
  78. package/build/commands-pool.d.ts.map +1 -1
  79. package/build/commands-pool.js +67 -20
  80. package/build/compose.d.ts +8 -2
  81. package/build/compose.d.ts.map +1 -1
  82. package/build/compose.js +9 -2
  83. package/build/config.d.ts +31 -15
  84. package/build/config.d.ts.map +1 -1
  85. package/build/config.js +60 -23
  86. package/build/custom-error.d.ts.map +1 -1
  87. package/build/custom-error.js +2 -1
  88. package/build/data-set-to-attributes.d.ts +14 -2
  89. package/build/data-set-to-attributes.d.ts.map +1 -1
  90. package/build/data-set-to-attributes.js +12 -3
  91. package/build/deserializer.d.ts +116 -2
  92. package/build/deserializer.d.ts.map +1 -1
  93. package/build/deserializer.js +13 -2
  94. package/build/destroy-error.d.ts.map +1 -1
  95. package/build/destroy-error.js +2 -1
  96. package/build/devise.d.ts +638 -39
  97. package/build/devise.d.ts.map +1 -1
  98. package/build/devise.js +97 -28
  99. package/build/draggable-sort/controller.d.ts +126 -35
  100. package/build/draggable-sort/controller.d.ts.map +1 -1
  101. package/build/draggable-sort/controller.js +100 -28
  102. package/build/draggable-sort/index.d.ts +55 -0
  103. package/build/draggable-sort/index.d.ts.map +1 -1
  104. package/build/draggable-sort/index.js +71 -3
  105. package/build/draggable-sort/item.d.ts +54 -0
  106. package/build/draggable-sort/item.d.ts.map +1 -1
  107. package/build/draggable-sort/item.js +94 -6
  108. package/build/error-logger.d.ts +30 -14
  109. package/build/error-logger.d.ts.map +1 -1
  110. package/build/error-logger.js +22 -11
  111. package/build/event-connection.d.ts.map +1 -1
  112. package/build/event-connection.js +3 -2
  113. package/build/event-emitter-listener.d.ts.map +1 -1
  114. package/build/event-emitter-listener.js +2 -1
  115. package/build/event-model-class.d.ts.map +1 -1
  116. package/build/event-model-class.js +2 -1
  117. package/build/events.d.ts.map +1 -1
  118. package/build/events.js +2 -1
  119. package/build/form.d.ts +23 -0
  120. package/build/form.d.ts.map +1 -1
  121. package/build/form.js +16 -4
  122. package/build/history-expo.d.ts +6 -2
  123. package/build/history-expo.d.ts.map +1 -1
  124. package/build/history-expo.js +5 -2
  125. package/build/history-react-native.d.ts +6 -2
  126. package/build/history-react-native.d.ts.map +1 -1
  127. package/build/history-react-native.js +5 -2
  128. package/build/history.js +2 -1
  129. package/build/index.d.ts.map +1 -1
  130. package/build/index.js +2 -1
  131. package/build/inputs/attachment.d.ts +11 -0
  132. package/build/inputs/attachment.d.ts.map +1 -1
  133. package/build/inputs/attachment.js +17 -4
  134. package/build/inputs/auto-submit.d.ts +41 -13
  135. package/build/inputs/auto-submit.d.ts.map +1 -1
  136. package/build/inputs/auto-submit.js +16 -4
  137. package/build/inputs/checkbox.d.ts +15 -0
  138. package/build/inputs/checkbox.d.ts.map +1 -1
  139. package/build/inputs/checkbox.js +22 -6
  140. package/build/inputs/checkboxes.d.ts +16 -0
  141. package/build/inputs/checkboxes.d.ts.map +1 -1
  142. package/build/inputs/checkboxes.js +20 -4
  143. package/build/inputs/id-for-component.d.ts +21 -2
  144. package/build/inputs/id-for-component.d.ts.map +1 -1
  145. package/build/inputs/id-for-component.js +9 -2
  146. package/build/inputs/input-wrapper.d.ts.map +1 -1
  147. package/build/inputs/input-wrapper.js +2 -1
  148. package/build/inputs/input.d.ts +36 -0
  149. package/build/inputs/input.d.ts.map +1 -1
  150. package/build/inputs/input.js +26 -7
  151. package/build/inputs/money.d.ts +2 -0
  152. package/build/inputs/money.d.ts.map +1 -1
  153. package/build/inputs/money.js +6 -3
  154. package/build/inputs/name-for-component.d.ts +21 -2
  155. package/build/inputs/name-for-component.d.ts.map +1 -1
  156. package/build/inputs/name-for-component.js +9 -2
  157. package/build/inputs/select.d.ts +33 -0
  158. package/build/inputs/select.d.ts.map +1 -1
  159. package/build/inputs/select.js +21 -4
  160. package/build/instance-of-class-name.d.ts +7 -2
  161. package/build/instance-of-class-name.d.ts.map +1 -1
  162. package/build/instance-of-class-name.js +8 -4
  163. package/build/is-expo.d.ts.map +1 -1
  164. package/build/is-expo.js +2 -1
  165. package/build/key-value-store.d.ts +24 -14
  166. package/build/key-value-store.d.ts.map +1 -1
  167. package/build/key-value-store.js +22 -12
  168. package/build/link.d.ts +30 -0
  169. package/build/link.d.ts.map +1 -1
  170. package/build/link.js +76 -30
  171. package/build/logger.d.ts +10 -6
  172. package/build/logger.d.ts.map +1 -1
  173. package/build/logger.js +7 -4
  174. package/build/merge-styles.d.ts +10 -2
  175. package/build/merge-styles.d.ts.map +1 -1
  176. package/build/merge-styles.js +10 -3
  177. package/build/modal.d.ts +2 -0
  178. package/build/modal.d.ts.map +1 -1
  179. package/build/modal.js +6 -4
  180. package/build/model-class-require.d.ts +4 -2
  181. package/build/model-class-require.d.ts.map +1 -1
  182. package/build/model-class-require.js +4 -2
  183. package/build/model-events.d.ts +139 -346
  184. package/build/model-events.d.ts.map +1 -1
  185. package/build/model-events.js +21 -9
  186. package/build/model-name.d.ts +21 -7
  187. package/build/model-name.d.ts.map +1 -1
  188. package/build/model-name.js +12 -2
  189. package/build/model-prop-type.d.ts +533 -26
  190. package/build/model-prop-type.d.ts.map +1 -1
  191. package/build/model-prop-type.js +69 -11
  192. package/build/model-recipes-loader.d.ts +7 -3
  193. package/build/model-recipes-loader.d.ts.map +1 -1
  194. package/build/model-recipes-loader.js +4 -2
  195. package/build/model-recipes-model-loader.d.ts +189 -1493
  196. package/build/model-recipes-model-loader.d.ts.map +1 -1
  197. package/build/model-recipes-model-loader.js +119 -17
  198. package/build/models-response-reader.d.ts +600 -195
  199. package/build/models-response-reader.d.ts.map +1 -1
  200. package/build/models-response-reader.js +12 -4
  201. package/build/models.d.ts +438 -1
  202. package/build/models.d.ts.map +1 -1
  203. package/build/models.js +2 -1
  204. package/build/money-formatter.d.ts +25 -31
  205. package/build/money-formatter.d.ts.map +1 -1
  206. package/build/money-formatter.js +11 -8
  207. package/build/not-loaded-error.d.ts.map +1 -1
  208. package/build/not-loaded-error.js +2 -1
  209. package/build/params.d.ts +25 -17
  210. package/build/params.d.ts.map +1 -1
  211. package/build/params.js +19 -15
  212. package/build/preloaded.d.ts +61 -64
  213. package/build/preloaded.d.ts.map +1 -1
  214. package/build/preloaded.js +10 -4
  215. package/build/reset-realtime-runtime-state.d.ts.map +1 -1
  216. package/build/reset-realtime-runtime-state.js +2 -1
  217. package/build/resize-observer.d.ts.map +1 -1
  218. package/build/resize-observer.js +2 -1
  219. package/build/rest-props-validator.d.ts +2 -2
  220. package/build/rest-props-validator.d.ts.map +1 -1
  221. package/build/rest-props-validator.js +3 -2
  222. package/build/result.d.ts +142 -175
  223. package/build/result.d.ts.map +1 -1
  224. package/build/result.js +3 -2
  225. package/build/router/route.d.ts +50 -0
  226. package/build/router/route.d.ts.map +1 -1
  227. package/build/router/route.js +39 -10
  228. package/build/router/switch.d.ts +37 -1
  229. package/build/router/switch.d.ts.map +1 -1
  230. package/build/router/switch.js +29 -7
  231. package/build/router.d.ts +20 -0
  232. package/build/router.d.ts.map +1 -1
  233. package/build/router.js +15 -4
  234. package/build/routes-native.d.ts +13 -13
  235. package/build/routes-native.d.ts.map +1 -1
  236. package/build/routes-native.js +23 -11
  237. package/build/routes.d.ts +17 -9
  238. package/build/routes.d.ts.map +1 -1
  239. package/build/routes.js +7 -2
  240. package/build/run-last.d.ts.map +1 -1
  241. package/build/run-last.js +2 -1
  242. package/build/serializer.d.ts +44 -12
  243. package/build/serializer.d.ts.map +1 -1
  244. package/build/serializer.js +36 -7
  245. package/build/services.d.ts +29 -4
  246. package/build/services.d.ts.map +1 -1
  247. package/build/services.js +16 -4
  248. package/build/session-status-updater.d.ts +73 -25
  249. package/build/session-status-updater.d.ts.map +1 -1
  250. package/build/session-status-updater.js +52 -14
  251. package/build/source-maps-loader.d.ts +88 -33
  252. package/build/source-maps-loader.d.ts.map +1 -1
  253. package/build/source-maps-loader.js +74 -18
  254. package/build/super-admin/config-reader.d.ts.map +1 -1
  255. package/build/super-admin/config-reader.js +11 -16
  256. package/build/super-admin/edit-page/edit-attribute-checkbox.d.ts +10 -0
  257. package/build/super-admin/edit-page/edit-attribute-checkbox.d.ts.map +1 -1
  258. package/build/super-admin/edit-page/edit-attribute-checkbox.js +16 -4
  259. package/build/super-admin/edit-page/edit-attribute-content.d.ts +9 -0
  260. package/build/super-admin/edit-page/edit-attribute-content.d.ts.map +1 -1
  261. package/build/super-admin/edit-page/edit-attribute-content.js +15 -4
  262. package/build/super-admin/edit-page/edit-attribute-input.d.ts +8 -0
  263. package/build/super-admin/edit-page/edit-attribute-input.d.ts.map +1 -1
  264. package/build/super-admin/edit-page/edit-attribute-input.js +13 -4
  265. package/build/super-admin/edit-page/edit-attribute.d.ts +6 -0
  266. package/build/super-admin/edit-page/edit-attribute.d.ts.map +1 -1
  267. package/build/super-admin/edit-page/edit-attribute.js +11 -4
  268. package/build/super-admin/edit-page.d.ts +5 -0
  269. package/build/super-admin/edit-page.d.ts.map +1 -1
  270. package/build/super-admin/edit-page.js +11 -5
  271. package/build/super-admin/has-edit-config.d.ts.map +1 -1
  272. package/build/super-admin/has-edit-config.js +2 -1
  273. package/build/super-admin/index-page.d.ts +4 -0
  274. package/build/super-admin/index-page.d.ts.map +1 -1
  275. package/build/super-admin/index-page.js +9 -4
  276. package/build/super-admin/index.d.ts +4 -0
  277. package/build/super-admin/index.d.ts.map +1 -1
  278. package/build/super-admin/index.js +12 -6
  279. package/build/super-admin/layout/header/index.d.ts +4 -0
  280. package/build/super-admin/layout/header/index.d.ts.map +1 -1
  281. package/build/super-admin/layout/header/index.js +13 -8
  282. package/build/super-admin/layout/index.d.ts +24 -0
  283. package/build/super-admin/layout/index.d.ts.map +1 -1
  284. package/build/super-admin/layout/index.js +33 -5
  285. package/build/super-admin/layout/menu/index.d.ts +2 -0
  286. package/build/super-admin/layout/menu/index.d.ts.map +1 -1
  287. package/build/super-admin/layout/menu/index.js +8 -6
  288. package/build/super-admin/layout/menu/menu-content.d.ts +2 -0
  289. package/build/super-admin/layout/menu/menu-content.d.ts.map +1 -1
  290. package/build/super-admin/layout/menu/menu-content.js +6 -4
  291. package/build/super-admin/layout/menu/menu-item.d.ts +9 -0
  292. package/build/super-admin/layout/menu/menu-item.d.ts.map +1 -1
  293. package/build/super-admin/layout/menu/menu-item.js +15 -4
  294. package/build/super-admin/layout/no-access.d.ts +2 -0
  295. package/build/super-admin/layout/no-access.d.ts.map +1 -1
  296. package/build/super-admin/layout/no-access.js +7 -5
  297. package/build/super-admin/model-class-table.d.ts +4 -0
  298. package/build/super-admin/model-class-table.d.ts.map +1 -1
  299. package/build/super-admin/model-class-table.js +9 -4
  300. package/build/super-admin/models.d.ts.map +1 -1
  301. package/build/super-admin/models.js +2 -1
  302. package/build/super-admin/show-nav.d.ts +2 -0
  303. package/build/super-admin/show-nav.d.ts.map +1 -1
  304. package/build/super-admin/show-nav.js +6 -4
  305. package/build/super-admin/show-page/belongs-to-attribute-row.d.ts +17 -1
  306. package/build/super-admin/show-page/belongs-to-attribute-row.d.ts.map +1 -1
  307. package/build/super-admin/show-page/belongs-to-attribute-row.js +14 -5
  308. package/build/super-admin/show-page/index.d.ts +4 -0
  309. package/build/super-admin/show-page/index.d.ts.map +1 -1
  310. package/build/super-admin/show-page/index.js +9 -4
  311. package/build/super-admin/show-reflection-actions.d.ts +6 -0
  312. package/build/super-admin/show-reflection-actions.d.ts.map +1 -1
  313. package/build/super-admin/show-reflection-actions.js +11 -4
  314. package/build/super-admin/show-reflection-link.d.ts +4 -0
  315. package/build/super-admin/show-reflection-link.d.ts.map +1 -1
  316. package/build/super-admin/show-reflection-link.js +9 -4
  317. package/build/super-admin/show-reflection-page.d.ts +5 -0
  318. package/build/super-admin/show-reflection-page.d.ts.map +1 -1
  319. package/build/super-admin/show-reflection-page.js +10 -4
  320. package/build/table/column-content.d.ts +155 -19
  321. package/build/table/column-content.d.ts.map +1 -1
  322. package/build/table/column-content.js +55 -12
  323. package/build/table/column-identifier.d.ts +11 -2
  324. package/build/table/column-identifier.d.ts.map +1 -1
  325. package/build/table/column-identifier.js +7 -2
  326. package/build/table/column-visible.d.ts +11 -2
  327. package/build/table/column-visible.d.ts.map +1 -1
  328. package/build/table/column-visible.js +8 -2
  329. package/build/table/components/column.d.ts +2 -0
  330. package/build/table/components/column.d.ts.map +1 -1
  331. package/build/table/components/column.js +6 -4
  332. package/build/table/components/flat-list.d.ts +2 -0
  333. package/build/table/components/flat-list.d.ts.map +1 -1
  334. package/build/table/components/flat-list.js +6 -4
  335. package/build/table/components/header.d.ts +2 -0
  336. package/build/table/components/header.d.ts.map +1 -1
  337. package/build/table/components/header.js +6 -4
  338. package/build/table/components/row.d.ts +2 -0
  339. package/build/table/components/row.d.ts.map +1 -1
  340. package/build/table/components/row.js +6 -4
  341. package/build/table/filters/attribute-element.d.ts +2 -0
  342. package/build/table/filters/attribute-element.d.ts.map +1 -1
  343. package/build/table/filters/attribute-element.js +7 -7
  344. package/build/table/filters/filter-form.d.ts +58 -0
  345. package/build/table/filters/filter-form.d.ts.map +1 -1
  346. package/build/table/filters/filter-form.js +72 -9
  347. package/build/table/filters/filter.d.ts +2 -0
  348. package/build/table/filters/filter.d.ts.map +1 -1
  349. package/build/table/filters/filter.js +6 -4
  350. package/build/table/filters/index.d.ts +127 -0
  351. package/build/table/filters/index.d.ts.map +1 -1
  352. package/build/table/filters/index.js +21 -4
  353. package/build/table/filters/load-search-modal.d.ts +130 -0
  354. package/build/table/filters/load-search-modal.d.ts.map +1 -1
  355. package/build/table/filters/load-search-modal.js +28 -6
  356. package/build/table/filters/reflection-element.d.ts +2 -0
  357. package/build/table/filters/reflection-element.d.ts.map +1 -1
  358. package/build/table/filters/reflection-element.js +6 -4
  359. package/build/table/filters/save-search-modal.d.ts +134 -0
  360. package/build/table/filters/save-search-modal.d.ts.map +1 -1
  361. package/build/table/filters/save-search-modal.js +36 -5
  362. package/build/table/filters/scope-element.d.ts +6 -0
  363. package/build/table/filters/scope-element.d.ts.map +1 -1
  364. package/build/table/filters/scope-element.js +13 -8
  365. package/build/table/header-column-content.d.ts +7 -0
  366. package/build/table/header-column-content.d.ts.map +1 -1
  367. package/build/table/header-column-content.js +12 -4
  368. package/build/table/header-column.d.ts +50 -0
  369. package/build/table/header-column.d.ts.map +1 -1
  370. package/build/table/header-column.js +32 -5
  371. package/build/table/header-select.d.ts +18 -0
  372. package/build/table/header-select.d.ts.map +1 -1
  373. package/build/table/header-select.js +19 -4
  374. package/build/table/model-callback-args.d.ts +116 -3
  375. package/build/table/model-callback-args.d.ts.map +1 -1
  376. package/build/table/model-callback-args.js +10 -3
  377. package/build/table/model-column.d.ts +136 -0
  378. package/build/table/model-column.d.ts.map +1 -1
  379. package/build/table/model-column.js +27 -4
  380. package/build/table/model-row.d.ts +19 -0
  381. package/build/table/model-row.d.ts.map +1 -1
  382. package/build/table/model-row.js +24 -4
  383. package/build/table/select-calculator.d.ts +37 -2
  384. package/build/table/select-calculator.d.ts.map +1 -1
  385. package/build/table/select-calculator.js +29 -6
  386. package/build/table/settings/column-row.d.ts +6 -0
  387. package/build/table/settings/column-row.d.ts.map +1 -1
  388. package/build/table/settings/column-row.js +13 -12
  389. package/build/table/settings/download-action.d.ts +5 -0
  390. package/build/table/settings/download-action.d.ts.map +1 -1
  391. package/build/table/settings/download-action.js +10 -4
  392. package/build/table/settings/index.d.ts +5 -0
  393. package/build/table/settings/index.d.ts.map +1 -1
  394. package/build/table/settings/index.js +10 -4
  395. package/build/table/should-render-loading-content.d.ts +2 -2
  396. package/build/table/should-render-loading-content.d.ts.map +1 -1
  397. package/build/table/should-render-loading-content.js +3 -2
  398. package/build/table/table-settings.d.ts +236 -43
  399. package/build/table/table-settings.d.ts.map +1 -1
  400. package/build/table/table-settings.js +104 -20
  401. package/build/table/table.d.ts +271 -0
  402. package/build/table/table.d.ts.map +1 -1
  403. package/build/table/table.js +167 -16
  404. package/build/table/use-sorting.d.ts +10 -8
  405. package/build/table/use-sorting.d.ts.map +1 -1
  406. package/build/table/use-sorting.js +16 -8
  407. package/build/table/widths.d.ts +55 -8
  408. package/build/table/widths.d.ts.map +1 -1
  409. package/build/table/widths.js +25 -2
  410. package/build/table/worker-plugins-check-all-checkbox.d.ts +18 -0
  411. package/build/table/worker-plugins-check-all-checkbox.d.ts.map +1 -1
  412. package/build/table/worker-plugins-check-all-checkbox.js +25 -5
  413. package/build/table/worker-plugins-checkbox.d.ts +5 -0
  414. package/build/table/worker-plugins-checkbox.d.ts.map +1 -1
  415. package/build/table/worker-plugins-checkbox.js +10 -4
  416. package/build/translated-attributes.d.ts +7 -2
  417. package/build/translated-attributes.d.ts.map +1 -1
  418. package/build/translated-attributes.js +8 -2
  419. package/build/translated-collections.d.ts +11 -2
  420. package/build/translated-collections.d.ts.map +1 -1
  421. package/build/translated-collections.js +9 -3
  422. package/build/updated-attribute.d.ts.map +1 -1
  423. package/build/updated-attribute.js +2 -1
  424. package/build/url-encode.d.ts.map +1 -1
  425. package/build/url-encode.js +2 -1
  426. package/build/use-can-can.d.ts +2 -2
  427. package/build/use-can-can.d.ts.map +1 -1
  428. package/build/use-can-can.js +27 -12
  429. package/build/use-collection.d.ts +167 -121
  430. package/build/use-collection.d.ts.map +1 -1
  431. package/build/use-collection.js +113 -44
  432. package/build/use-created-event.d.ts +120 -11
  433. package/build/use-created-event.d.ts.map +1 -1
  434. package/build/use-created-event.js +10 -7
  435. package/build/use-current-user-context.d.ts +2 -2
  436. package/build/use-current-user-context.d.ts.map +1 -1
  437. package/build/use-current-user-context.js +3 -2
  438. package/build/use-current-user.d.ts +86 -70
  439. package/build/use-current-user.d.ts.map +1 -1
  440. package/build/use-current-user.js +36 -8
  441. package/build/use-destroyed-event.d.ts +117 -8
  442. package/build/use-destroyed-event.d.ts.map +1 -1
  443. package/build/use-destroyed-event.js +29 -22
  444. package/build/use-input.d.ts +74 -12
  445. package/build/use-input.d.ts.map +1 -1
  446. package/build/use-input.js +33 -5
  447. package/build/use-model-class-event.d.ts +124 -10
  448. package/build/use-model-class-event.d.ts.map +1 -1
  449. package/build/use-model-class-event.js +26 -16
  450. package/build/use-model-event.d.ts +121 -8
  451. package/build/use-model-event.d.ts.map +1 -1
  452. package/build/use-model-event.js +24 -19
  453. package/build/use-model.d.ts +162 -244
  454. package/build/use-model.d.ts.map +1 -1
  455. package/build/use-model.js +85 -32
  456. package/build/use-resize-observer.d.ts.map +1 -1
  457. package/build/use-resize-observer.js +2 -1
  458. package/build/use-router.d.ts.map +1 -1
  459. package/build/use-router.js +2 -1
  460. package/build/use-screen-layout.d.ts +7 -2
  461. package/build/use-screen-layout.d.ts.map +1 -1
  462. package/build/use-screen-layout.js +8 -5
  463. package/build/use-shape.js +2 -1
  464. package/build/use-styles.d.ts +11 -5
  465. package/build/use-styles.d.ts.map +1 -1
  466. package/build/use-styles.js +16 -9
  467. package/build/use-updated-event.d.ts +66 -182
  468. package/build/use-updated-event.d.ts.map +1 -1
  469. package/build/use-updated-event.js +22 -18
  470. package/build/use-validation-errors.d.ts.map +1 -1
  471. package/build/use-validation-errors.js +2 -1
  472. package/build/utils/button.d.ts +14 -0
  473. package/build/utils/button.d.ts.map +1 -1
  474. package/build/utils/button.js +24 -7
  475. package/build/utils/card.d.ts +9 -0
  476. package/build/utils/card.d.ts.map +1 -1
  477. package/build/utils/card.js +13 -2
  478. package/build/utils/checkbox.d.ts +12 -0
  479. package/build/utils/checkbox.d.ts.map +1 -1
  480. package/build/utils/checkbox.js +18 -4
  481. package/build/utils/checkboxes.d.ts +25 -0
  482. package/build/utils/checkboxes.d.ts.map +1 -1
  483. package/build/utils/checkboxes.js +29 -3
  484. package/build/utils/default-style.d.ts +10 -4
  485. package/build/utils/default-style.d.ts.map +1 -1
  486. package/build/utils/default-style.js +12 -4
  487. package/build/utils/header.d.ts +6 -1
  488. package/build/utils/header.d.ts.map +1 -1
  489. package/build/utils/header.js +4 -2
  490. package/build/utils/icon.d.ts +7 -6
  491. package/build/utils/icon.d.ts.map +1 -1
  492. package/build/utils/icon.js +12 -11
  493. package/build/utils/invalid-feedback.d.ts +4 -0
  494. package/build/utils/invalid-feedback.d.ts.map +1 -1
  495. package/build/utils/invalid-feedback.js +8 -2
  496. package/build/utils/modal.d.ts +2 -0
  497. package/build/utils/modal.d.ts.map +1 -1
  498. package/build/utils/modal.js +9 -7
  499. package/build/utils/text.d.ts +8 -1
  500. package/build/utils/text.d.ts.map +1 -1
  501. package/build/utils/text.js +9 -2
  502. package/build/validation-error.d.ts +5 -2
  503. package/build/validation-error.d.ts.map +1 -1
  504. package/build/validation-error.js +5 -2
  505. package/build/validation-errors.d.ts +57 -15
  506. package/build/validation-errors.d.ts.map +1 -1
  507. package/build/validation-errors.js +37 -8
  508. package/build/websocket-request-client.d.ts +61 -15
  509. package/build/websocket-request-client.d.ts.map +1 -1
  510. package/build/websocket-request-client.js +35 -9
  511. package/build/with-api-maker.d.ts.map +1 -1
  512. package/build/with-api-maker.js +2 -1
  513. package/build/with-collection.d.ts.map +1 -1
  514. package/build/with-collection.js +2 -1
  515. package/build/with-current-user.d.ts.map +1 -1
  516. package/build/with-current-user.js +2 -1
  517. package/build/with-model.d.ts.map +1 -1
  518. package/build/with-model.js +2 -1
  519. package/build/with-router.d.ts.map +1 -1
  520. package/build/with-router.js +2 -1
  521. package/package.json +4 -3
  522. package/build/base-component.d.ts +0 -5
  523. package/build/base-component.d.ts.map +0 -1
  524. package/build/base-component.js +0 -4
@@ -1,254 +1,172 @@
1
1
  export default useModel;
2
+ export type BaseModelClass = typeof import("./base-model.js").default;
3
+ export type BaseModelInstance = {
4
+ abilities: import("./base-model.js").ModelAbilityMap;
5
+ changes: import("./base-model.js").ModelDataMap;
6
+ collection: import("./collection.js").default<any>;
7
+ _identifierKey: string | number;
8
+ _markedForDestruction: boolean;
9
+ modelData: import("./base-model.js").ModelDataMap;
10
+ newRecord: boolean;
11
+ previousModelData: any;
12
+ preloadedRelationships: import("./base-model.js").PreloadedRelationshipMap;
13
+ relationshipsCache: import("./base-model.js").LoadedRelationshipMap;
14
+ relationships: import("./base-model.js").LoadedRelationshipMap;
15
+ uniqueKeyValue: number;
16
+ assignAttributes(newAttributes: ModelDataMap): void;
17
+ attributes(): ModelDataMap;
18
+ can(givenAbilityName: string): boolean;
19
+ clone(): /*elided*/ any;
20
+ cacheKey(): number | string;
21
+ localCacheKey(): string;
22
+ fullCacheKey(): string;
23
+ create(attributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
24
+ model: /*elided*/ any;
25
+ response: ModelCommandResponse;
26
+ }>;
27
+ createRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions): Promise<{
28
+ model: /*elided*/ any;
29
+ response: ModelCommandResponse;
30
+ }>;
31
+ destroy(): Promise<{
32
+ model: /*elided*/ any;
33
+ response: ModelCommandResponse;
34
+ }>;
35
+ ensureAbilities(listOfAbilities: string[]): Promise<void>;
36
+ getAttributes(): ModelDataMap;
37
+ handleResponseError(response: ModelCommandResponse): never;
38
+ identifierKey(): number | string;
39
+ isAssociationLoaded(associationName: string): boolean;
40
+ isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
41
+ isAssociationPresent(associationName: string): boolean;
42
+ ensureAssociationLoaded(associationName: string): Promise<LoadedRelationshipValue>;
43
+ ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<LoadedRelationshipValue>;
44
+ isAttributeChanged(attributeName: string): boolean;
45
+ isChanged(): boolean;
46
+ isNewRecord(): boolean;
47
+ isPersisted(): boolean;
48
+ savedChangeToAttribute(attributeName: string): boolean;
49
+ setNewModel(model: /*elided*/ any): void;
50
+ setNewModelData(model: /*elided*/ any): void;
51
+ _isDateChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
52
+ _isIntegerChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
53
+ _isStringChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
54
+ modelClassData(): ModelClassDataType;
55
+ reload(): Promise<void>;
56
+ save(): Promise<{
57
+ model: /*elided*/ any;
58
+ response?: object;
59
+ }>;
60
+ saveRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
61
+ simpleModelErrors?: boolean;
62
+ }): Promise<{
63
+ model: /*elided*/ any;
64
+ response: ModelCommandResponse;
65
+ }>;
66
+ update(newAttributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
67
+ model: /*elided*/ any;
68
+ response?: object;
69
+ }>;
70
+ _refreshModelFromResponse(response: ModelCommandResponse): void;
71
+ _refreshModelDataFromResponse(response: ModelCommandResponse): void;
72
+ updateRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
73
+ simpleModelErrors?: boolean;
74
+ }): Promise<{
75
+ response: ModelCommandResponse;
76
+ model: /*elided*/ any;
77
+ }>;
78
+ isValid(): never;
79
+ isValidOnServer(): Promise<{
80
+ valid: boolean;
81
+ errors: ValidationResponseErrors;
82
+ }>;
83
+ modelClass(): BaseModelClassType;
84
+ preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
85
+ markForDestruction(): void;
86
+ markedForDestruction(): boolean;
87
+ uniqueKey(): number;
88
+ _callMemberCommand(args: ModelCommandDescriptor, commandArgs: ModelCommandOptions): import("./command-execution.js").default;
89
+ readAttribute(attributeName: string): ModelValue | null | undefined;
90
+ readAttributeUnderscore(attributeName: string): ModelValue | null | undefined;
91
+ isAttributeLoaded(attributeName: string): boolean;
92
+ _isPresent(value: ModelValue | null | undefined): boolean;
93
+ _loadBelongsToReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
94
+ _readBelongsToReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
95
+ _loadHasManyReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any[]>;
96
+ _loadHasOneReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
97
+ _readHasOneReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
98
+ _readModelDataFromArgs(args?: BaseModelArgsObject): void;
99
+ _readPreloadedRelationships(preloaded: {
100
+ getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
101
+ }): void;
102
+ primaryKey(): number | string;
103
+ };
104
+ export type BaseModelWithId = BaseModelInstance & {
105
+ id: () => number | string;
106
+ };
107
+ export type ModelCollection = import("./collection.js").default<any>;
108
+ export type UseModelQueryParams = Record<string, string | number | boolean | object | undefined>;
109
+ export type UseModelCacheValue = string | number | boolean | object | null | undefined;
110
+ export type UseModelMatchParams = Record<string, string | number | undefined>;
111
+ export type UseModelMatch = {
112
+ params: UseModelMatchParams;
113
+ };
114
+ export type UseModelDefaults = Record<string, string | number | boolean | object | undefined>;
115
+ export type UseModelNewIfNoIdConfig = {
116
+ defaults?: () => UseModelDefaults | Promise<UseModelDefaults>;
117
+ };
118
+ export type UseModelModelClassResolver = {
119
+ callback: (args: {
120
+ queryParams: UseModelQueryParams | undefined;
121
+ }) => BaseModelClass;
122
+ };
123
+ export type UseModelArgsFactoryArgs = {
124
+ modelClass: BaseModelClass;
125
+ };
126
+ export type UseModelOnDestroyedArgs = {
127
+ model: BaseModelInstance;
128
+ } & Record<string, BaseModelInstance>;
129
+ export type UseModelEvents = {
130
+ addListener: (eventName: string, callback: () => void) => void;
131
+ removeListener: (eventName: string, callback: () => void) => void;
132
+ };
2
133
  export type useModelArgs = {
3
- callback?: (arg: object) => Function;
4
- args?: (arg: object) => object;
134
+ active?: boolean;
135
+ abilities?: Record<string, string[]>;
136
+ cacheArgs?: UseModelCacheValue[];
137
+ eventUpdated?: boolean;
138
+ events?: UseModelEvents;
5
139
  loadByQueryParam?: (args: {
6
- queryParams: Record<string, any> | undefined;
7
- }) => number | string;
8
- cacheArgs?: any[];
9
- match?: {
10
- params: object;
11
- };
12
- onDestroyed?: (ctx: {
13
- model: {
14
- changes: {};
15
- newRecord: boolean;
16
- relationshipsCache: {};
17
- relationships: {};
18
- abilities: Record<string, any>;
19
- modelData: {};
20
- assignAttributes(newAttributes: Record<string, any>): void;
21
- attributes(): Record<string, any>;
22
- can(givenAbilityName: string): boolean;
23
- clone(): /*elided*/ any;
24
- cacheKey(): number | string;
25
- localCacheKey(): string;
26
- fullCacheKey(): string;
27
- create(attributes?: Record<string, any>, options?: object): Promise<{
28
- model: /*elided*/ any;
29
- response: object;
30
- }>;
31
- createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
32
- model: /*elided*/ any;
33
- response: any;
34
- }>;
35
- destroy(): Promise<{
36
- model: /*elided*/ any;
37
- response: object;
38
- }>;
39
- ensureAbilities(listOfAbilities: string[]): Promise<void>;
40
- getAttributes(): Record<string, any>;
41
- handleResponseError(response: object): never;
42
- identifierKey(): number | string;
43
- _identifierKey: string | number;
44
- isAssociationLoaded(associationName: string): boolean;
45
- isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
46
- isAssociationPresent(associationName: string): boolean;
47
- ensureAssociationLoaded(associationName: string): Promise<any>;
48
- ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
49
- isAttributeChanged(attributeName: string): boolean;
50
- isChanged(): boolean;
51
- isNewRecord(): boolean;
52
- isPersisted(): boolean;
53
- savedChangeToAttribute(attributeName: string): boolean;
54
- setNewModel(model: /*elided*/ any): void;
55
- setNewModelData(model: /*elided*/ any): void;
56
- previousModelData: any;
57
- _isDateChanged(oldValue: any, newValue: any): boolean | void;
58
- _isIntegerChanged(oldValue: any, newValue: any): boolean | void;
59
- _isStringChanged(oldValue: any, newValue: any): boolean | void;
60
- modelClassData(): ModelClassDataType;
61
- reload(): Promise<void>;
62
- save(): Promise<{
63
- model: /*elided*/ any;
64
- response?: object;
65
- }>;
66
- saveRaw(rawData: any, options?: {}): Promise<{
67
- model: /*elided*/ any;
68
- response: object;
69
- }>;
70
- update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
71
- model: /*elided*/ any;
72
- response?: object;
73
- }>;
74
- _refreshModelFromResponse(response: object): void;
75
- _refreshModelDataFromResponse(response: object): void;
76
- updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
77
- simpleModelErrors?: boolean;
78
- }): Promise<{
79
- response: object;
80
- model: /*elided*/ any;
81
- }>;
82
- isValid(): never;
83
- isValidOnServer(): Promise<{
84
- valid: boolean;
85
- errors: Record<string, any>;
86
- }>;
87
- modelClass(): Record<string, any>;
88
- preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
89
- markForDestruction(): void;
90
- _markedForDestruction: boolean;
91
- markedForDestruction(): boolean;
92
- uniqueKey(): number;
93
- uniqueKeyValue: number;
94
- _callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
95
- readAttribute(attributeName: string): any;
96
- readAttributeUnderscore(attributeName: string): any;
97
- isAttributeLoaded(attributeName: any): boolean;
98
- _isPresent(value: any): boolean;
99
- _loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
100
- _readBelongsToReflection({ reflectionName }: {
101
- modelClass: any;
102
- reflectionName: string;
103
- }): any | null;
104
- _loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
105
- _loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
106
- _readHasOneReflection({ reflectionName }: {
107
- modelClass: any;
108
- reflectionName: string;
109
- }): any | null;
110
- _readModelDataFromArgs(args?: {
111
- data?: {
112
- b?: Record<string, any>;
113
- a?: Record<string, any>;
114
- r?: any;
115
- };
116
- collection?: import("./collection.js").default<any>;
117
- }): void;
118
- collection: import("./collection.js").default<any>;
119
- preloadedRelationships: any;
120
- _readPreloadedRelationships(preloaded: {
121
- getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
122
- }): void;
123
- primaryKey(): number | string;
124
- };
125
- }) => void;
126
- query?: import("./collection.js").default<any>;
140
+ queryParams: UseModelQueryParams | undefined;
141
+ }) => number | string | undefined;
142
+ match?: UseModelMatch;
143
+ newIfNoId?: UseModelNewIfNoIdConfig | boolean;
144
+ newAttributes?: UseModelDefaults;
145
+ onDestroyed?: (ctx: UseModelOnDestroyedArgs) => void;
146
+ optional?: boolean;
147
+ preload?: string[] | object;
148
+ query?: ModelCollection;
149
+ select?: string[] | object;
150
+ };
151
+ export type UseModelArgsArg = useModelArgs | ((args: UseModelArgsFactoryArgs) => useModelArgs);
152
+ export type UseModelShapeHookProps = {
153
+ argsArg?: UseModelArgsArg;
154
+ modelClassArg: BaseModelClass | UseModelModelClassResolver;
127
155
  };
128
156
  export type UseModelState = {
129
- model: any | undefined;
157
+ model: BaseModelInstance | undefined;
130
158
  notFound: boolean | undefined;
131
159
  };
160
+ export type UseModelResult = {
161
+ model: BaseModelInstance | undefined;
162
+ modelId: number | string | undefined;
163
+ notFound: boolean | undefined;
164
+ } & Record<string, BaseModelInstance | number | string | boolean | undefined>;
132
165
  /**
133
- * @param {Function|object} modelClassArg
134
- * @param {object | ((args: {modelClass: typeof import("./base-model.js").default}) => useModelArgs)} [argsArg]
135
- * @returns {Record<string, any>}
166
+ * useModel.
167
+ * @param {BaseModelClass | UseModelModelClassResolver} modelClassArg
168
+ * @param {UseModelArgsArg} [argsArg]
169
+ * @returns {UseModelResult}
136
170
  */
137
- /** useModel. */
138
- declare function useModel(modelClassArg: any, argsArg?: {}): {
139
- model: {
140
- changes: {};
141
- newRecord: boolean;
142
- relationshipsCache: {};
143
- relationships: {};
144
- abilities: Record<string, any>;
145
- modelData: {};
146
- assignAttributes(newAttributes: Record<string, any>): void;
147
- attributes(): Record<string, any>;
148
- can(givenAbilityName: string): boolean;
149
- clone(): /*elided*/ any;
150
- cacheKey(): number | string;
151
- localCacheKey(): string;
152
- fullCacheKey(): string;
153
- create(attributes?: Record<string, any>, options?: object): Promise<{
154
- model: /*elided*/ any;
155
- response: object;
156
- }>;
157
- createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
158
- model: /*elided*/ any;
159
- response: any;
160
- }>;
161
- destroy(): Promise<{
162
- model: /*elided*/ any;
163
- response: object;
164
- }>;
165
- ensureAbilities(listOfAbilities: string[]): Promise<void>;
166
- getAttributes(): Record<string, any>;
167
- handleResponseError(response: object): never;
168
- identifierKey(): number | string;
169
- _identifierKey: string | number;
170
- isAssociationLoaded(associationName: string): boolean;
171
- isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
172
- isAssociationPresent(associationName: string): boolean;
173
- ensureAssociationLoaded(associationName: string): Promise<any>;
174
- ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
175
- isAttributeChanged(attributeName: string): boolean;
176
- isChanged(): boolean;
177
- isNewRecord(): boolean;
178
- isPersisted(): boolean;
179
- savedChangeToAttribute(attributeName: string): boolean;
180
- setNewModel(model: /*elided*/ any): void;
181
- setNewModelData(model: /*elided*/ any): void;
182
- previousModelData: any;
183
- _isDateChanged(oldValue: any, newValue: any): boolean | void;
184
- _isIntegerChanged(oldValue: any, newValue: any): boolean | void;
185
- _isStringChanged(oldValue: any, newValue: any): boolean | void;
186
- modelClassData(): ModelClassDataType;
187
- reload(): Promise<void>;
188
- save(): Promise<{
189
- model: /*elided*/ any;
190
- response?: object;
191
- }>;
192
- saveRaw(rawData: any, options?: {}): Promise<{
193
- model: /*elided*/ any;
194
- response: object;
195
- }>;
196
- update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
197
- model: /*elided*/ any;
198
- response?: object;
199
- }>;
200
- _refreshModelFromResponse(response: object): void;
201
- _refreshModelDataFromResponse(response: object): void;
202
- updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
203
- simpleModelErrors?: boolean;
204
- }): Promise<{
205
- response: object;
206
- model: /*elided*/ any;
207
- }>;
208
- isValid(): never;
209
- isValidOnServer(): Promise<{
210
- valid: boolean;
211
- errors: Record<string, any>;
212
- }>;
213
- modelClass(): Record<string, any>;
214
- preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
215
- markForDestruction(): void;
216
- _markedForDestruction: boolean;
217
- markedForDestruction(): boolean;
218
- uniqueKey(): number;
219
- uniqueKeyValue: number;
220
- _callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
221
- readAttribute(attributeName: string): any;
222
- readAttributeUnderscore(attributeName: string): any;
223
- isAttributeLoaded(attributeName: any): boolean;
224
- _isPresent(value: any): boolean;
225
- _loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
226
- _readBelongsToReflection({ reflectionName }: {
227
- modelClass: any;
228
- reflectionName: string;
229
- }): any | null;
230
- _loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
231
- _loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
232
- _readHasOneReflection({ reflectionName }: {
233
- modelClass: any;
234
- reflectionName: string;
235
- }): any | null;
236
- _readModelDataFromArgs(args?: {
237
- data?: {
238
- b?: Record<string, any>;
239
- a?: Record<string, any>;
240
- r?: any;
241
- };
242
- collection?: import("./collection.js").default<any>;
243
- }): void;
244
- collection: import("./collection.js").default<any>;
245
- preloadedRelationships: any;
246
- _readPreloadedRelationships(preloaded: {
247
- getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
248
- }): void;
249
- primaryKey(): number | string;
250
- };
251
- modelId: string | number;
252
- notFound: boolean;
253
- };
171
+ declare function useModel(modelClassArg: BaseModelClass | UseModelModelClassResolver, argsArg?: UseModelArgsArg): UseModelResult;
254
172
  //# sourceMappingURL=use-model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-model.d.ts","sourceRoot":"/src/","sources":["use-model.js"],"names":[],"mappings":";;eAWc,CAAC,GAAG,EAAE,MAAM,aAAa;WACzB,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM;uBACvB,CAAC,IAAI,EAAE;QAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAA;KAAC,KAAK,MAAM,GAAC,MAAM;gBACvE,GAAG,EAAE;YACL;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC;kBAChB,CAAC,GAAG,EAAE;QAAE,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqZ8lX,CAAC;;;;;;;;wBAA2iB,CAAC;;;;;iCAAypE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SArZpwc,CAAA;KAAE,KAAK,IAAI;;;;WAO3D,GAAG,GAAG,SAAS;cACf,OAAO,GAAG,SAAS;;AAmXjC;;;;GAIG;AACH,gBAAgB;AAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAoB2nX,CAAC;;;;;;;;oBAA2iB,CAAC;;;;;6BAAypE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAHj0c"}
1
+ {"version":3,"file":"use-model.d.ts","sourceRoot":"/src/","sources":["use-model.js"],"names":[],"mappings":";6BAUc,cAAc,iBAAiB,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAwd61d,CAAC;;;yBAA6O,CAAC;;;;;;;gBAAoc,CAAC;;;;;yBAAm7E,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAtd7+jB,iBAAiB,GAAG;IAAC,EAAE,EAAE,MAAM,MAAM,GAAG,MAAM,CAAA;CAAC;;kCAE/C,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;iCAC9D,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS;kCACrD,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;4BAC3C;IAAC,MAAM,EAAE,mBAAmB,CAAA;CAAC;+BAC7B,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;sCAC9D;IAAC,QAAQ,CAAC,EAAE,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAA;CAAC;yCAC/D;IAAC,QAAQ,EAAE,CAAC,IAAI,EAAE;QAAC,WAAW,EAAE,mBAAmB,GAAG,SAAS,CAAA;KAAC,KAAK,cAAc,CAAA;CAAC;sCACpF;IAAC,UAAU,EAAE,cAAc,CAAA;CAAC;sCAC5B;IAAC,KAAK,EAAE,iBAAiB,CAAA;CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC;;iBAG9D,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,IAAI;oBACjD,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,IAAI;;;aAIjD,OAAO;gBACP,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;gBACxB,kBAAkB,EAAE;mBACpB,OAAO;aACP,cAAc;uBACd,CAAC,IAAI,EAAE;QAAC,WAAW,EAAE,mBAAmB,GAAG,SAAS,CAAA;KAAC,KAAK,MAAM,GAAG,MAAM,GAAG,SAAS;YACrF,aAAa;gBACb,uBAAuB,GAAG,OAAO;oBACjC,gBAAgB;kBAChB,CAAC,GAAG,EAAE,uBAAuB,KAAK,IAAI;eACtC,OAAO;cACP,MAAM,EAAE,GAAG,MAAM;YACjB,eAAe;aACf,MAAM,EAAE,GAAG,MAAM;;8BAEjB,YAAY,GAAG,CAAC,CAAC,IAAI,EAAE,uBAAuB,KAAK,YAAY,CAAC;;cAGhE,eAAe;mBACf,cAAc,GAAG,0BAA0B;;;WAM3C,iBAAiB,GAAG,SAAS;cAC7B,OAAO,GAAG,SAAS;;6BAIpB;IACR,KAAK,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACrC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAwYhF;;;;;GAKG;AACH,yCAJW,cAAc,GAAG,0BAA0B,YAC3C,eAAe,GACb,cAAc,CAmB1B"}