@akanjs/cli 0.9.42 → 0.9.44

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 (319) hide show
  1. package/cjs/index.js +50 -40
  2. package/cjs/src/guidelines/___library/sharedUiStructureDescription.en.md +0 -1
  3. package/cjs/src/guidelines/componentRule/componentRule.instruction.md +0 -18
  4. package/cjs/src/guidelines/cssRule/cssRule.instruction.md +2 -2
  5. package/cjs/src/guidelines/databaseModule/databaseModule.instruction.md +13 -7
  6. package/cjs/src/guidelines/modelConstant/modelConstant.instruction.md +0 -30
  7. package/cjs/src/guidelines/modelDictionary/modelDictionary.generate.json +0 -7
  8. package/cjs/src/guidelines/modelDictionary/modelDictionary.instruction.md +2 -38
  9. package/cjs/src/guidelines/modelDocument/modelDocument.instruction.md +1 -1
  10. package/cjs/src/guidelines/modelService/modelService.generate.json +0 -30
  11. package/cjs/src/guidelines/modelService/modelService.instruction.md +1 -165
  12. package/cjs/src/guidelines/modelSignal/modelSignal.instruction.md +4 -4
  13. package/cjs/src/guidelines/modelStore/modelStore.instruction.md +4 -4
  14. package/cjs/src/templates/app/lib/___appName__/__appName__.dictionary.js +6 -1
  15. package/cjs/src/templates/app/lib/___appName__/__appName__.service.js +3 -13
  16. package/cjs/src/templates/app/lib/{user/user.signal.js → ___appName__/__appName__.signal.js} +8 -8
  17. package/cjs/src/templates/client.js +4 -5
  18. package/cjs/src/templates/index.js +2 -3
  19. package/cjs/src/templates/lib/__lib/lib.constant.js +22 -12
  20. package/cjs/src/templates/lib/__lib/lib.dictionary.js +15 -8
  21. package/cjs/src/templates/lib/__lib/lib.document.js +17 -7
  22. package/cjs/src/templates/lib/__lib/lib.service.js +14 -33
  23. package/cjs/src/templates/lib/cnst.js +19 -1
  24. package/cjs/src/templates/lib/db.js +3 -10
  25. package/cjs/src/templates/lib/dict.js +2 -2
  26. package/cjs/src/templates/lib/sig.js +20 -0
  27. package/cjs/src/templates/lib/st.js +13 -1
  28. package/cjs/src/templates/lib/usePage.js +2 -2
  29. package/cjs/src/templates/module/__Model__.Util.js +6 -36
  30. package/cjs/src/templates/module/__Model__.Zone.js +2 -26
  31. package/cjs/src/templates/module/__model__.constant.js +0 -6
  32. package/cjs/src/templates/module/__model__.dictionary.js +1 -14
  33. package/cjs/src/templates/module/__model__.document.js +2 -8
  34. package/cjs/src/templates/module/__model__.service.js +2 -8
  35. package/cjs/src/templates/module/__model__.signal.js +2 -2
  36. package/cjs/src/templates/module/__model__.signal.spec.js +2 -2
  37. package/cjs/src/templates/module/__model__.signal.test.js +2 -2
  38. package/cjs/src/templates/module/__model__.store.js +2 -2
  39. package/cjs/src/templates/server.js +4 -3
  40. package/cjs/src/templates/workspaceRoot/.gitignore.template +0 -6
  41. package/cjs/src/templates/workspaceRoot/.vscode/settings.json.template +0 -1
  42. package/esm/index.js +51 -41
  43. package/esm/src/guidelines/___library/sharedUiStructureDescription.en.md +0 -1
  44. package/esm/src/guidelines/componentRule/componentRule.instruction.md +0 -18
  45. package/esm/src/guidelines/cssRule/cssRule.instruction.md +2 -2
  46. package/esm/src/guidelines/databaseModule/databaseModule.instruction.md +13 -7
  47. package/esm/src/guidelines/modelConstant/modelConstant.instruction.md +0 -30
  48. package/esm/src/guidelines/modelDictionary/modelDictionary.generate.json +0 -7
  49. package/esm/src/guidelines/modelDictionary/modelDictionary.instruction.md +2 -38
  50. package/esm/src/guidelines/modelDocument/modelDocument.instruction.md +1 -1
  51. package/esm/src/guidelines/modelService/modelService.generate.json +0 -30
  52. package/esm/src/guidelines/modelService/modelService.instruction.md +1 -165
  53. package/esm/src/guidelines/modelSignal/modelSignal.instruction.md +4 -4
  54. package/esm/src/guidelines/modelStore/modelStore.instruction.md +4 -4
  55. package/esm/src/templates/app/lib/___appName__/__appName__.dictionary.js +6 -1
  56. package/esm/src/templates/app/lib/___appName__/__appName__.service.js +3 -13
  57. package/esm/src/templates/app/lib/___appName__/__appName__.signal.js +14 -0
  58. package/esm/src/templates/client.js +4 -5
  59. package/esm/src/templates/index.js +2 -3
  60. package/esm/src/templates/lib/__lib/lib.constant.js +22 -12
  61. package/esm/src/templates/lib/__lib/lib.dictionary.js +15 -8
  62. package/esm/src/templates/lib/__lib/lib.document.js +17 -7
  63. package/esm/src/templates/lib/__lib/lib.service.js +14 -33
  64. package/esm/src/templates/lib/cnst.js +19 -1
  65. package/esm/src/templates/lib/db.js +3 -10
  66. package/esm/src/templates/lib/dict.js +2 -2
  67. package/esm/src/templates/lib/sig.js +20 -0
  68. package/esm/src/templates/lib/st.js +13 -1
  69. package/esm/src/templates/lib/usePage.js +2 -2
  70. package/esm/src/templates/module/__Model__.Util.js +6 -36
  71. package/esm/src/templates/module/__Model__.Zone.js +2 -26
  72. package/esm/src/templates/module/__model__.constant.js +0 -6
  73. package/esm/src/templates/module/__model__.dictionary.js +1 -14
  74. package/esm/src/templates/module/__model__.document.js +2 -8
  75. package/esm/src/templates/module/__model__.service.js +2 -8
  76. package/esm/src/templates/module/__model__.signal.js +2 -2
  77. package/esm/src/templates/module/__model__.signal.spec.js +2 -2
  78. package/esm/src/templates/module/__model__.signal.test.js +2 -2
  79. package/esm/src/templates/module/__model__.store.js +2 -2
  80. package/esm/src/templates/server.js +4 -3
  81. package/esm/src/templates/workspaceRoot/.gitignore.template +0 -6
  82. package/esm/src/templates/workspaceRoot/.vscode/settings.json.template +0 -1
  83. package/package.json +1 -1
  84. package/src/guidelines/___library/sharedUiStructureDescription.en.md +0 -1
  85. package/src/guidelines/componentRule/componentRule.instruction.md +0 -18
  86. package/src/guidelines/cssRule/cssRule.instruction.md +2 -2
  87. package/src/guidelines/databaseModule/databaseModule.instruction.md +13 -7
  88. package/src/guidelines/modelConstant/modelConstant.instruction.md +0 -30
  89. package/src/guidelines/modelDictionary/modelDictionary.instruction.md +2 -38
  90. package/src/guidelines/modelDocument/modelDocument.instruction.md +1 -1
  91. package/src/guidelines/modelService/modelService.instruction.md +1 -165
  92. package/src/guidelines/modelSignal/modelSignal.instruction.md +4 -4
  93. package/src/guidelines/modelStore/modelStore.instruction.md +4 -4
  94. package/src/templates/lib/cnst.d.ts +1 -1
  95. package/ui/MultiScrollList.d.ts +4 -1
  96. package/cjs/src/templates/app/app/[lang]/admin/page.js +0 -63
  97. package/cjs/src/templates/app/lib/setting/Setting.Template.js +0 -44
  98. package/cjs/src/templates/app/lib/setting/Setting.Unit.js +0 -38
  99. package/cjs/src/templates/app/lib/setting/Setting.Util.js +0 -40
  100. package/cjs/src/templates/app/lib/setting/Setting.View.js +0 -48
  101. package/cjs/src/templates/app/lib/setting/Setting.Zone.js +0 -74
  102. package/cjs/src/templates/app/lib/setting/setting.constant.js +0 -46
  103. package/cjs/src/templates/app/lib/setting/setting.dictionary.js +0 -46
  104. package/cjs/src/templates/app/lib/setting/setting.document.js +0 -48
  105. package/cjs/src/templates/app/lib/setting/setting.service.js +0 -37
  106. package/cjs/src/templates/app/lib/setting/setting.signal.js +0 -34
  107. package/cjs/src/templates/app/lib/setting/setting.store.js +0 -41
  108. package/cjs/src/templates/app/lib/summary/Summary.Template.js +0 -44
  109. package/cjs/src/templates/app/lib/summary/Summary.Unit.js +0 -37
  110. package/cjs/src/templates/app/lib/summary/Summary.Util.js +0 -40
  111. package/cjs/src/templates/app/lib/summary/Summary.View.js +0 -47
  112. package/cjs/src/templates/app/lib/summary/Summary.Zone.js +0 -60
  113. package/cjs/src/templates/app/lib/summary/summary.constant.js +0 -44
  114. package/cjs/src/templates/app/lib/summary/summary.dictionary.js +0 -49
  115. package/cjs/src/templates/app/lib/summary/summary.document.js +0 -48
  116. package/cjs/src/templates/app/lib/summary/summary.service.js +0 -34
  117. package/cjs/src/templates/app/lib/summary/summary.signal.js +0 -34
  118. package/cjs/src/templates/app/lib/summary/summary.store.js +0 -41
  119. package/cjs/src/templates/app/lib/user/User.Template.js +0 -64
  120. package/cjs/src/templates/app/lib/user/User.Unit.js +0 -37
  121. package/cjs/src/templates/app/lib/user/User.Util.js +0 -73
  122. package/cjs/src/templates/app/lib/user/User.View.js +0 -64
  123. package/cjs/src/templates/app/lib/user/User.Zone.js +0 -77
  124. package/cjs/src/templates/app/lib/user/user.constant.js +0 -67
  125. package/cjs/src/templates/app/lib/user/user.dictionary.js +0 -52
  126. package/cjs/src/templates/app/lib/user/user.document.js +0 -54
  127. package/cjs/src/templates/app/lib/user/user.service.js +0 -42
  128. package/cjs/src/templates/app/lib/user/user.signal.spec.js +0 -37
  129. package/cjs/src/templates/app/lib/user/user.signal.test.js +0 -39
  130. package/cjs/src/templates/app/lib/user/user.store.js +0 -39
  131. package/cjs/src/templates/lib/__lib/extends/summary.constant.js +0 -45
  132. package/cjs/src/templates/lib/cnst_.js +0 -51
  133. package/cjs/src/templates/lib/fetch.js +0 -48
  134. package/cjs/src/templates/lib/store.js +0 -50
  135. package/cjs/src/templates/libRoot/lib/setting/Setting.Template.js +0 -44
  136. package/cjs/src/templates/libRoot/lib/setting/Setting.Unit.js +0 -38
  137. package/cjs/src/templates/libRoot/lib/setting/Setting.Util.js +0 -40
  138. package/cjs/src/templates/libRoot/lib/setting/Setting.View.js +0 -48
  139. package/cjs/src/templates/libRoot/lib/setting/Setting.Zone.js +0 -74
  140. package/cjs/src/templates/libRoot/lib/setting/setting.constant.js +0 -46
  141. package/cjs/src/templates/libRoot/lib/setting/setting.dictionary.js +0 -46
  142. package/cjs/src/templates/libRoot/lib/setting/setting.document.js +0 -48
  143. package/cjs/src/templates/libRoot/lib/setting/setting.service.js +0 -37
  144. package/cjs/src/templates/libRoot/lib/setting/setting.signal.js +0 -34
  145. package/cjs/src/templates/libRoot/lib/setting/setting.store.js +0 -41
  146. package/cjs/src/templates/libRoot/lib/summary/Summary.Template.js +0 -44
  147. package/cjs/src/templates/libRoot/lib/summary/Summary.Unit.js +0 -37
  148. package/cjs/src/templates/libRoot/lib/summary/Summary.Util.js +0 -40
  149. package/cjs/src/templates/libRoot/lib/summary/Summary.View.js +0 -47
  150. package/cjs/src/templates/libRoot/lib/summary/Summary.Zone.js +0 -60
  151. package/cjs/src/templates/libRoot/lib/summary/summary.constant.js +0 -44
  152. package/cjs/src/templates/libRoot/lib/summary/summary.dictionary.js +0 -49
  153. package/cjs/src/templates/libRoot/lib/summary/summary.document.js +0 -48
  154. package/cjs/src/templates/libRoot/lib/summary/summary.service.js +0 -34
  155. package/cjs/src/templates/libRoot/lib/summary/summary.signal.js +0 -34
  156. package/cjs/src/templates/libRoot/lib/summary/summary.store.js +0 -41
  157. package/cjs/src/templates/libRoot/lib/user/User.Template.js +0 -64
  158. package/cjs/src/templates/libRoot/lib/user/User.Unit.js +0 -37
  159. package/cjs/src/templates/libRoot/lib/user/User.Util.js +0 -73
  160. package/cjs/src/templates/libRoot/lib/user/User.View.js +0 -64
  161. package/cjs/src/templates/libRoot/lib/user/User.Zone.js +0 -77
  162. package/cjs/src/templates/libRoot/lib/user/user.constant.js +0 -67
  163. package/cjs/src/templates/libRoot/lib/user/user.dictionary.js +0 -52
  164. package/cjs/src/templates/libRoot/lib/user/user.document.js +0 -54
  165. package/cjs/src/templates/libRoot/lib/user/user.service.js +0 -42
  166. package/cjs/src/templates/libRoot/lib/user/user.signal.js +0 -34
  167. package/cjs/src/templates/libRoot/lib/user/user.signal.spec.js +0 -37
  168. package/cjs/src/templates/libRoot/lib/user/user.signal.test.js +0 -39
  169. package/cjs/src/templates/libRoot/lib/user/user.store.js +0 -39
  170. package/esm/src/templates/app/app/[lang]/admin/page.js +0 -43
  171. package/esm/src/templates/app/lib/setting/Setting.Template.js +0 -24
  172. package/esm/src/templates/app/lib/setting/Setting.Unit.js +0 -18
  173. package/esm/src/templates/app/lib/setting/Setting.Util.js +0 -20
  174. package/esm/src/templates/app/lib/setting/Setting.View.js +0 -28
  175. package/esm/src/templates/app/lib/setting/Setting.Zone.js +0 -54
  176. package/esm/src/templates/app/lib/setting/setting.constant.js +0 -26
  177. package/esm/src/templates/app/lib/setting/setting.dictionary.js +0 -26
  178. package/esm/src/templates/app/lib/setting/setting.document.js +0 -28
  179. package/esm/src/templates/app/lib/setting/setting.service.js +0 -17
  180. package/esm/src/templates/app/lib/setting/setting.signal.js +0 -14
  181. package/esm/src/templates/app/lib/setting/setting.store.js +0 -21
  182. package/esm/src/templates/app/lib/summary/Summary.Template.js +0 -24
  183. package/esm/src/templates/app/lib/summary/Summary.Unit.js +0 -17
  184. package/esm/src/templates/app/lib/summary/Summary.Util.js +0 -20
  185. package/esm/src/templates/app/lib/summary/Summary.View.js +0 -27
  186. package/esm/src/templates/app/lib/summary/Summary.Zone.js +0 -40
  187. package/esm/src/templates/app/lib/summary/summary.constant.js +0 -24
  188. package/esm/src/templates/app/lib/summary/summary.dictionary.js +0 -29
  189. package/esm/src/templates/app/lib/summary/summary.document.js +0 -28
  190. package/esm/src/templates/app/lib/summary/summary.service.js +0 -14
  191. package/esm/src/templates/app/lib/summary/summary.signal.js +0 -14
  192. package/esm/src/templates/app/lib/summary/summary.store.js +0 -21
  193. package/esm/src/templates/app/lib/user/User.Template.js +0 -44
  194. package/esm/src/templates/app/lib/user/User.Unit.js +0 -17
  195. package/esm/src/templates/app/lib/user/User.Util.js +0 -53
  196. package/esm/src/templates/app/lib/user/User.View.js +0 -44
  197. package/esm/src/templates/app/lib/user/User.Zone.js +0 -57
  198. package/esm/src/templates/app/lib/user/user.constant.js +0 -47
  199. package/esm/src/templates/app/lib/user/user.dictionary.js +0 -32
  200. package/esm/src/templates/app/lib/user/user.document.js +0 -34
  201. package/esm/src/templates/app/lib/user/user.service.js +0 -22
  202. package/esm/src/templates/app/lib/user/user.signal.js +0 -14
  203. package/esm/src/templates/app/lib/user/user.signal.spec.js +0 -17
  204. package/esm/src/templates/app/lib/user/user.signal.test.js +0 -19
  205. package/esm/src/templates/app/lib/user/user.store.js +0 -19
  206. package/esm/src/templates/lib/__lib/extends/summary.constant.js +0 -25
  207. package/esm/src/templates/lib/cnst_.js +0 -31
  208. package/esm/src/templates/lib/fetch.js +0 -28
  209. package/esm/src/templates/lib/store.js +0 -30
  210. package/esm/src/templates/libRoot/lib/setting/Setting.Template.js +0 -24
  211. package/esm/src/templates/libRoot/lib/setting/Setting.Unit.js +0 -18
  212. package/esm/src/templates/libRoot/lib/setting/Setting.Util.js +0 -20
  213. package/esm/src/templates/libRoot/lib/setting/Setting.View.js +0 -28
  214. package/esm/src/templates/libRoot/lib/setting/Setting.Zone.js +0 -54
  215. package/esm/src/templates/libRoot/lib/setting/setting.constant.js +0 -26
  216. package/esm/src/templates/libRoot/lib/setting/setting.dictionary.js +0 -26
  217. package/esm/src/templates/libRoot/lib/setting/setting.document.js +0 -28
  218. package/esm/src/templates/libRoot/lib/setting/setting.service.js +0 -17
  219. package/esm/src/templates/libRoot/lib/setting/setting.signal.js +0 -14
  220. package/esm/src/templates/libRoot/lib/setting/setting.store.js +0 -21
  221. package/esm/src/templates/libRoot/lib/summary/Summary.Template.js +0 -24
  222. package/esm/src/templates/libRoot/lib/summary/Summary.Unit.js +0 -17
  223. package/esm/src/templates/libRoot/lib/summary/Summary.Util.js +0 -20
  224. package/esm/src/templates/libRoot/lib/summary/Summary.View.js +0 -27
  225. package/esm/src/templates/libRoot/lib/summary/Summary.Zone.js +0 -40
  226. package/esm/src/templates/libRoot/lib/summary/summary.constant.js +0 -24
  227. package/esm/src/templates/libRoot/lib/summary/summary.dictionary.js +0 -29
  228. package/esm/src/templates/libRoot/lib/summary/summary.document.js +0 -28
  229. package/esm/src/templates/libRoot/lib/summary/summary.service.js +0 -14
  230. package/esm/src/templates/libRoot/lib/summary/summary.signal.js +0 -14
  231. package/esm/src/templates/libRoot/lib/summary/summary.store.js +0 -21
  232. package/esm/src/templates/libRoot/lib/user/User.Template.js +0 -44
  233. package/esm/src/templates/libRoot/lib/user/User.Unit.js +0 -17
  234. package/esm/src/templates/libRoot/lib/user/User.Util.js +0 -53
  235. package/esm/src/templates/libRoot/lib/user/User.View.js +0 -44
  236. package/esm/src/templates/libRoot/lib/user/User.Zone.js +0 -57
  237. package/esm/src/templates/libRoot/lib/user/user.constant.js +0 -47
  238. package/esm/src/templates/libRoot/lib/user/user.dictionary.js +0 -32
  239. package/esm/src/templates/libRoot/lib/user/user.document.js +0 -34
  240. package/esm/src/templates/libRoot/lib/user/user.service.js +0 -22
  241. package/esm/src/templates/libRoot/lib/user/user.signal.js +0 -14
  242. package/esm/src/templates/libRoot/lib/user/user.signal.spec.js +0 -17
  243. package/esm/src/templates/libRoot/lib/user/user.signal.test.js +0 -19
  244. package/esm/src/templates/libRoot/lib/user/user.store.js +0 -19
  245. package/src/templates/app/app/[lang]/admin/page.d.ts +0 -9
  246. package/src/templates/app/lib/setting/Setting.Template.d.ts +0 -9
  247. package/src/templates/app/lib/setting/Setting.Unit.d.ts +0 -9
  248. package/src/templates/app/lib/setting/Setting.Util.d.ts +0 -9
  249. package/src/templates/app/lib/setting/Setting.View.d.ts +0 -9
  250. package/src/templates/app/lib/setting/Setting.Zone.d.ts +0 -9
  251. package/src/templates/app/lib/setting/setting.dictionary.d.ts +0 -7
  252. package/src/templates/app/lib/setting/setting.document.d.ts +0 -6
  253. package/src/templates/app/lib/setting/setting.service.d.ts +0 -7
  254. package/src/templates/app/lib/setting/setting.signal.d.ts +0 -6
  255. package/src/templates/app/lib/setting/setting.store.d.ts +0 -6
  256. package/src/templates/app/lib/summary/Summary.Template.d.ts +0 -9
  257. package/src/templates/app/lib/summary/Summary.Unit.d.ts +0 -9
  258. package/src/templates/app/lib/summary/Summary.Util.d.ts +0 -9
  259. package/src/templates/app/lib/summary/Summary.View.d.ts +0 -9
  260. package/src/templates/app/lib/summary/Summary.Zone.d.ts +0 -9
  261. package/src/templates/app/lib/summary/summary.constant.d.ts +0 -7
  262. package/src/templates/app/lib/summary/summary.dictionary.d.ts +0 -7
  263. package/src/templates/app/lib/summary/summary.document.d.ts +0 -6
  264. package/src/templates/app/lib/summary/summary.service.d.ts +0 -7
  265. package/src/templates/app/lib/summary/summary.signal.d.ts +0 -6
  266. package/src/templates/app/lib/summary/summary.store.d.ts +0 -6
  267. package/src/templates/app/lib/user/User.Template.d.ts +0 -9
  268. package/src/templates/app/lib/user/User.Unit.d.ts +0 -9
  269. package/src/templates/app/lib/user/User.Util.d.ts +0 -9
  270. package/src/templates/app/lib/user/User.View.d.ts +0 -9
  271. package/src/templates/app/lib/user/User.Zone.d.ts +0 -9
  272. package/src/templates/app/lib/user/user.constant.d.ts +0 -7
  273. package/src/templates/app/lib/user/user.dictionary.d.ts +0 -7
  274. package/src/templates/app/lib/user/user.document.d.ts +0 -7
  275. package/src/templates/app/lib/user/user.service.d.ts +0 -7
  276. package/src/templates/app/lib/user/user.signal.d.ts +0 -6
  277. package/src/templates/app/lib/user/user.signal.spec.d.ts +0 -6
  278. package/src/templates/app/lib/user/user.signal.test.d.ts +0 -6
  279. package/src/templates/app/lib/user/user.store.d.ts +0 -6
  280. package/src/templates/lib/__lib/extends/summary.constant.d.ts +0 -4
  281. package/src/templates/lib/cnst_.d.ts +0 -4
  282. package/src/templates/lib/fetch.d.ts +0 -4
  283. package/src/templates/lib/store.d.ts +0 -4
  284. package/src/templates/libRoot/lib/setting/Setting.Template.d.ts +0 -9
  285. package/src/templates/libRoot/lib/setting/Setting.Unit.d.ts +0 -9
  286. package/src/templates/libRoot/lib/setting/Setting.Util.d.ts +0 -9
  287. package/src/templates/libRoot/lib/setting/Setting.View.d.ts +0 -9
  288. package/src/templates/libRoot/lib/setting/Setting.Zone.d.ts +0 -9
  289. package/src/templates/libRoot/lib/setting/setting.constant.d.ts +0 -7
  290. package/src/templates/libRoot/lib/setting/setting.dictionary.d.ts +0 -7
  291. package/src/templates/libRoot/lib/setting/setting.document.d.ts +0 -6
  292. package/src/templates/libRoot/lib/setting/setting.service.d.ts +0 -7
  293. package/src/templates/libRoot/lib/setting/setting.signal.d.ts +0 -6
  294. package/src/templates/libRoot/lib/setting/setting.store.d.ts +0 -6
  295. package/src/templates/libRoot/lib/summary/Summary.Template.d.ts +0 -9
  296. package/src/templates/libRoot/lib/summary/Summary.Unit.d.ts +0 -9
  297. package/src/templates/libRoot/lib/summary/Summary.Util.d.ts +0 -9
  298. package/src/templates/libRoot/lib/summary/Summary.View.d.ts +0 -9
  299. package/src/templates/libRoot/lib/summary/Summary.Zone.d.ts +0 -9
  300. package/src/templates/libRoot/lib/summary/summary.constant.d.ts +0 -7
  301. package/src/templates/libRoot/lib/summary/summary.dictionary.d.ts +0 -7
  302. package/src/templates/libRoot/lib/summary/summary.document.d.ts +0 -6
  303. package/src/templates/libRoot/lib/summary/summary.service.d.ts +0 -7
  304. package/src/templates/libRoot/lib/summary/summary.signal.d.ts +0 -6
  305. package/src/templates/libRoot/lib/summary/summary.store.d.ts +0 -6
  306. package/src/templates/libRoot/lib/user/User.Template.d.ts +0 -9
  307. package/src/templates/libRoot/lib/user/User.Unit.d.ts +0 -9
  308. package/src/templates/libRoot/lib/user/User.Util.d.ts +0 -9
  309. package/src/templates/libRoot/lib/user/User.View.d.ts +0 -9
  310. package/src/templates/libRoot/lib/user/User.Zone.d.ts +0 -9
  311. package/src/templates/libRoot/lib/user/user.constant.d.ts +0 -7
  312. package/src/templates/libRoot/lib/user/user.dictionary.d.ts +0 -7
  313. package/src/templates/libRoot/lib/user/user.document.d.ts +0 -7
  314. package/src/templates/libRoot/lib/user/user.service.d.ts +0 -7
  315. package/src/templates/libRoot/lib/user/user.signal.d.ts +0 -6
  316. package/src/templates/libRoot/lib/user/user.signal.spec.d.ts +0 -6
  317. package/src/templates/libRoot/lib/user/user.signal.test.d.ts +0 -6
  318. package/src/templates/libRoot/lib/user/user.store.d.ts +0 -6
  319. /package/src/templates/app/lib/{setting/setting.constant.d.ts → ___appName__/__appName__.signal.d.ts} +0 -0
package/cjs/index.js CHANGED
@@ -1285,17 +1285,6 @@ var ScanInfo = class {
1285
1285
  { all: /* @__PURE__ */ new Set(), databases: /* @__PURE__ */ new Set(), services: /* @__PURE__ */ new Set(), scalars: /* @__PURE__ */ new Set() }
1286
1286
  ])
1287
1287
  );
1288
- constants = /* @__PURE__ */ new Set();
1289
- dictionaries = /* @__PURE__ */ new Set();
1290
- documents = /* @__PURE__ */ new Set();
1291
- services = /* @__PURE__ */ new Set();
1292
- signals = /* @__PURE__ */ new Set();
1293
- stores = /* @__PURE__ */ new Set();
1294
- templates = /* @__PURE__ */ new Set();
1295
- units = /* @__PURE__ */ new Set();
1296
- utils = /* @__PURE__ */ new Set();
1297
- views = /* @__PURE__ */ new Set();
1298
- zones = /* @__PURE__ */ new Set();
1299
1288
  static async getScanResult(exec2) {
1300
1289
  const akanConfig = await exec2.getConfig();
1301
1290
  const tsconfig = exec2.getTsConfig();
@@ -1555,7 +1544,8 @@ var LibInfo = class _LibInfo extends ScanInfo {
1555
1544
  await Promise.all(
1556
1545
  scanResult.libDeps.filter((libName) => !this.loadedLibs.has(libName)).map(async (libName) => {
1557
1546
  this.loadedLibs.add(libName);
1558
- this.libInfos.set(libName, await _LibInfo.fromExecutor(exec2));
1547
+ const libExecutor = LibExecutor.from(exec2, libName);
1548
+ this.libInfos.set(libName, await _LibInfo.fromExecutor(libExecutor));
1559
1549
  })
1560
1550
  );
1561
1551
  const libInfo = new _LibInfo(exec2, scanResult);
@@ -1939,8 +1929,8 @@ var Executor = class _Executor {
1939
1929
  });
1940
1930
  return new Promise((resolve, reject) => {
1941
1931
  proc.on("exit", (code, signal) => {
1942
- if (!!code || signal)
1943
- reject({ code, signal, stdout, stderr });
1932
+ if (code !== 0 || signal)
1933
+ reject(stdout);
1944
1934
  else
1945
1935
  resolve(stdout);
1946
1936
  });
@@ -2085,6 +2075,10 @@ var Executor = class _Executor {
2085
2075
  async cp(srcPath, destPath) {
2086
2076
  const src = this.getPath(srcPath);
2087
2077
  const dest = this.getPath(destPath);
2078
+ if (!import_fs4.default.existsSync(src))
2079
+ return;
2080
+ if (!import_fs4.default.existsSync(dest))
2081
+ await import_promises.default.mkdir(dest, { recursive: true });
2088
2082
  await import_promises.default.cp(src, dest, { recursive: true });
2089
2083
  }
2090
2084
  log(msg) {
@@ -2644,18 +2638,23 @@ var AppExecutor = class _AppExecutor extends SysExecutor {
2644
2638
  import_fs4.default.existsSync(projectPublicLibPath) && import_promises.default.rm(projectPublicLibPath, { recursive: true }),
2645
2639
  import_fs4.default.existsSync(projectAssetsLibPath) && import_promises.default.rm(projectAssetsLibPath, { recursive: true })
2646
2640
  ]);
2647
- const targetDeps = libDeps.filter((dep) => import_fs4.default.existsSync(`${this.workspace.workspaceRoot}/libs/${dep}/public`));
2641
+ const targetPublicDeps = libDeps.filter(
2642
+ (dep) => import_fs4.default.existsSync(`${this.workspace.workspaceRoot}/libs/${dep}/public`)
2643
+ );
2644
+ const targetAssetsDeps = libDeps.filter(
2645
+ (dep) => import_fs4.default.existsSync(`${this.workspace.workspaceRoot}/libs/${dep}/assets`)
2646
+ );
2648
2647
  await Promise.all([
2649
- ...targetDeps.map((dep) => import_promises.default.mkdir(`${projectPublicLibPath}/${dep}`, { recursive: true })),
2650
- ...targetDeps.map((dep) => import_promises.default.mkdir(`${projectAssetsLibPath}/${dep}`, { recursive: true }))
2648
+ ...targetPublicDeps.map((dep) => import_promises.default.mkdir(`${projectPublicLibPath}/${dep}`, { recursive: true })),
2649
+ ...targetAssetsDeps.map((dep) => import_promises.default.mkdir(`${projectAssetsLibPath}/${dep}`, { recursive: true }))
2651
2650
  ]);
2652
2651
  await Promise.all([
2653
- ...targetDeps.map(
2652
+ ...targetPublicDeps.map(
2654
2653
  (dep) => import_fs4.default.existsSync(`${this.workspace.workspaceRoot}/libs/${dep}/public`) && import_promises.default.cp(`${this.workspace.workspaceRoot}/libs/${dep}/public`, `${projectPublicLibPath}/${dep}`, {
2655
2654
  recursive: true
2656
2655
  })
2657
2656
  ),
2658
- ...targetDeps.map(
2657
+ ...targetAssetsDeps.map(
2659
2658
  (dep) => import_fs4.default.existsSync(`${this.workspace.workspaceRoot}/libs/${dep}/assets`) && import_promises.default.cp(`${this.workspace.workspaceRoot}/libs/${dep}/assets`, `${projectAssetsLibPath}/${dep}`, {
2660
2659
  recursive: true
2661
2660
  })
@@ -2866,6 +2865,7 @@ var CapacitorApp = class {
2866
2865
  "android",
2867
2866
  "--live-reload",
2868
2867
  "--port",
2868
+ "--list",
2869
2869
  "4201"
2870
2870
  ]);
2871
2871
  }
@@ -3947,7 +3947,7 @@ var import_react3 = __toESM(require("react"), 1);
3947
3947
  var import_ink2 = require("ink");
3948
3948
  var import_react2 = __toESM(require("react"), 1);
3949
3949
  var HEADER_HEIGHT = 1;
3950
- var FOOTER_HEIGHT = 5;
3950
+ var FOOTER_HEIGHT = 1;
3951
3951
  var OUTER_BORDER_HEIGHT = 2;
3952
3952
  var BORDER_HEIGHT = 2;
3953
3953
  var MultiScrollList = ({ logList, maxLength = 100 }) => {
@@ -3960,8 +3960,21 @@ var MultiScrollList = ({ logList, maxLength = 100 }) => {
3960
3960
  const [boxHeight, setBoxHeight] = (0, import_react2.useState)(
3961
3961
  height - HEADER_HEIGHT - OUTER_BORDER_HEIGHT - FOOTER_HEIGHT - BORDER_HEIGHT
3962
3962
  );
3963
+ const [boxWidth, setBoxWidth] = (0, import_react2.useState)(width - 27);
3963
3964
  const getLimitedLogs = (logs) => {
3964
- return logs.length > maxLength ? logs.slice(logs.length - maxLength) : logs;
3965
+ const sortedLogs = logs.reduce((acc, log) => {
3966
+ const content = log.content.replace(/\u001b(?:[@-Z\\\-_]|\[[\u0000-\u007F]*[@-~])/g, "");
3967
+ if (content.length > boxWidth) {
3968
+ const lines = Math.ceil(content.length / boxWidth);
3969
+ for (let i = 0; i < lines; i++) {
3970
+ acc.push({ type: log.type, content: content.slice(i * boxWidth, (i + 1) * boxWidth) });
3971
+ }
3972
+ } else {
3973
+ acc.push(log);
3974
+ }
3975
+ return acc;
3976
+ }, []);
3977
+ return sortedLogs.length > maxLength ? sortedLogs.slice(sortedLogs.length - maxLength) : sortedLogs;
3965
3978
  };
3966
3979
  (0, import_ink2.useInput)((input6, key) => {
3967
3980
  if (key.tab) {
@@ -4041,7 +4054,7 @@ var MultiScrollList = ({ logList, maxLength = 100 }) => {
4041
4054
  }, [logList, maxLength]);
4042
4055
  return /* @__PURE__ */ import_react2.default.createElement(import_ink2.Box, { width, height, borderStyle: "round", borderColor: "blackBright", flexDirection: "column" }, /* @__PURE__ */ import_react2.default.createElement(import_ink2.Box, { width: "100%", height: boxHeight + BORDER_HEIGHT + HEADER_HEIGHT, flexDirection: "row" }, /* @__PURE__ */ import_react2.default.createElement(import_ink2.Box, { width: 30, height: "100%", flexDirection: "column" }, /* @__PURE__ */ import_react2.default.createElement(import_ink2.Box, null, /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, null, "List ", tabIndex + 1, "/", logList.length)), /* @__PURE__ */ import_react2.default.createElement(import_ink2.Box, { borderStyle: "round", borderColor: "blackBright", width: "100%", height: "100%", flexDirection: "column" }, logList.map((log, index) => {
4043
4056
  return /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null, /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { color: index === tabIndex ? "green" : "white" }, /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, null, "\u25CF"), "\xA0", log.title.length > 25 ? log.title.slice(0, 25) + "..." : log.title));
4044
- }))), /* @__PURE__ */ import_react2.default.createElement(import_ink2.Box, { width: "100%", height: "100%", flexDirection: "column" }, /* @__PURE__ */ import_react2.default.createElement(import_ink2.Box, { height: 1 }, /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { color: logList[tabIndex].color }, logList[tabIndex].title)), /* @__PURE__ */ import_react2.default.createElement(
4057
+ }))), /* @__PURE__ */ import_react2.default.createElement(import_ink2.Box, { width: "100%", height: "100%", flexDirection: "column" }, /* @__PURE__ */ import_react2.default.createElement(import_ink2.Box, { height: 1 }, /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { color: logList[tabIndex].color }, logList[tabIndex].title, " ", logList[tabIndex].logs.length)), /* @__PURE__ */ import_react2.default.createElement(
4045
4058
  import_ink2.Box,
4046
4059
  {
4047
4060
  borderStyle: isRunning ? "double" : "round",
@@ -4051,11 +4064,11 @@ var MultiScrollList = ({ logList, maxLength = 100 }) => {
4051
4064
  height: "100%"
4052
4065
  },
4053
4066
  scrollPos > 0 ? /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null, focusLog.slice(0, focusLog.length - 1).map((log, index) => {
4054
- return /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { key: index }, log);
4055
- }), /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { backgroundColor: "green" }, "Scrolling... +", scrollPos)) : focusLog.map((log, index) => {
4056
- return /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { key: index }, log);
4067
+ return /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { underline: false, color: log.type === "error" ? "red" : "white", key: index }, log.content);
4068
+ }), /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { underline: false, backgroundColor: "green" }, "Scrolling... +", scrollPos)) : focusLog.map((log, index) => {
4069
+ return /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { underline: false, color: log.type === "error" ? "red" : "white", key: index }, log.content);
4057
4070
  })
4058
- ))), /* @__PURE__ */ import_react2.default.createElement(import_ink2.Box, { width: "100%", height: FOOTER_HEIGHT }, /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { dimColor: true }, /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, null, "You can use the following shortcuts:"), /* @__PURE__ */ import_react2.default.createElement(import_ink2.Newline, null), "* ", /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { backgroundColor: "green" }, "tab"), " to switch tab.", /* @__PURE__ */ import_react2.default.createElement(import_ink2.Newline, null), "* ", /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { backgroundColor: "green" }, "up"), " and ", /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { backgroundColor: "green" }, "down"), " to scroll.", " ", /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { backgroundColor: "green" }, "shift"), " to scroll faster. (x10)", /* @__PURE__ */ import_react2.default.createElement(import_ink2.Newline, null), "* ", /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { backgroundColor: "green" }, "space"), " to scroll.", /* @__PURE__ */ import_react2.default.createElement(import_ink2.Newline, null), "* ", /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { backgroundColor: "green" }, "escape"), " to stop scrolling.")));
4071
+ ))), /* @__PURE__ */ import_react2.default.createElement(import_ink2.Box, { width: "100%", height: FOOTER_HEIGHT }, /* @__PURE__ */ import_react2.default.createElement(import_ink2.Text, { dimColor: true }, "Tab : switch tab | Up / Down(shift : x10) : scroll | Space : back last position | Esc : stop scrolling")));
4059
4072
  };
4060
4073
 
4061
4074
  // pkgs/@akanjs/cli/src/application/application.interface.tsx
@@ -4143,16 +4156,16 @@ var Start = ({ appName, bcp, fcp, csr, maxLength = 100 }) => {
4143
4156
  };
4144
4157
  (0, import_react3.useEffect)(() => {
4145
4158
  bcp.stdout?.on("data", (data) => {
4146
- saveLog("stdout", data, setBackendLogs);
4159
+ saveLog("info", data, setBackendLogs);
4147
4160
  });
4148
4161
  bcp.stderr?.on("data", (data) => {
4149
- saveLog("stderr", data, setBackendLogs);
4162
+ saveLog("error", data, setBackendLogs);
4150
4163
  });
4151
4164
  fcp.stdout?.on("data", (data) => {
4152
- saveLog("stdout", data, setFrontendLogs);
4165
+ saveLog("info", data, setFrontendLogs);
4153
4166
  });
4154
4167
  fcp.stderr?.on("data", (data) => {
4155
- saveLog("stderr", data, setFrontendLogs);
4168
+ saveLog("error", data, setFrontendLogs);
4156
4169
  });
4157
4170
  csr.on("info", (msg) => {
4158
4171
  saveLog("info", msg, setCsrLogs);
@@ -4176,17 +4189,17 @@ var Start = ({ appName, bcp, fcp, csr, maxLength = 100 }) => {
4176
4189
  logList: [
4177
4190
  {
4178
4191
  title: `${appName} frontend`,
4179
- logs: frontendLogs.map((log) => log.content),
4192
+ logs: frontendLogs,
4180
4193
  color: "#ff493b"
4181
4194
  },
4182
4195
  {
4183
4196
  title: `${appName} backend`,
4184
- logs: backendLogs.map((log) => log.content),
4197
+ logs: backendLogs,
4185
4198
  color: "#e535ab"
4186
4199
  },
4187
4200
  {
4188
4201
  title: `${appName} react`,
4189
- logs: csrLogs.map((log) => log.content),
4202
+ logs: csrLogs,
4190
4203
  color: "#7cc5d9"
4191
4204
  }
4192
4205
  ],
@@ -4275,7 +4288,7 @@ var ApplicationRunner = class {
4275
4288
  }
4276
4289
  async scanSync(app) {
4277
4290
  const scanInfo = await app.scan();
4278
- await app.syncAssets(scanInfo.getScanResult().libDeps);
4291
+ await app.syncAssets(scanInfo.getScanResult().akanConfig.libs);
4279
4292
  return scanInfo;
4280
4293
  }
4281
4294
  async getScriptFilename(app) {
@@ -4380,11 +4393,12 @@ var ApplicationRunner = class {
4380
4393
  onStart?.();
4381
4394
  if (open2)
4382
4395
  setTimeout(() => (0, import_open.default)("http://localhost:8080/backend/graphql"), 3e3);
4383
- return app.dist.spawnSync("node", ["--watch", "main.js"], {
4396
+ const startProcessFn = () => app.dist.spawnSync("node", ["--watch", "main.js"], {
4384
4397
  env,
4385
4398
  stdio: withInk ? ["ignore", "pipe", "pipe"] : "inherit",
4386
4399
  cwd: `${app.dist.cwdPath}/backend`
4387
4400
  });
4401
+ return startProcessFn();
4388
4402
  }
4389
4403
  async buildFrontend(app, { spawnOptions } = {}) {
4390
4404
  const { env } = await this.#prepareCommand(app, "build", "frontend");
@@ -5114,10 +5128,6 @@ var ApplicationCommand = class {
5114
5128
  async test(sys3) {
5115
5129
  await this.applicationScript.testSys(sys3);
5116
5130
  }
5117
- // @Target.Public()
5118
- // ink(@Workspace() workspace: Workspace) {
5119
- // run();
5120
- // }
5121
5131
  };
5122
5132
  __decorateClass([
5123
5133
  Target.Public(),
@@ -6300,7 +6310,7 @@ var WorkspaceRunner = class {
6300
6310
  ...Object.fromEntries(devDependencies.map((dependency) => [dependency, latestPublishedVersionOfBase]))
6301
6311
  }
6302
6312
  };
6303
- workspace.writeFile("package.json", packageJson);
6313
+ workspace.setPackageJson(packageJson);
6304
6314
  const installSpinner = workspace.spinning("Installing dependencies with pnpm...");
6305
6315
  await workspace.spawn("pnpm", ["install", "--reporter=silent"]);
6306
6316
  installSpinner.succeed("Dependencies installed with pnpm");
@@ -733,7 +733,6 @@ SlateContent
733
733
  Purpose: Metadata-driven property editing
734
734
 
735
735
  - prop: string - Property name
736
- - slice: StoreOf<any, any> - Store slice
737
736
  - renderTemplate?: (form: any) => ReactNode - Custom edit renderer
738
737
  - renderView?: (model: any) => ReactNode - Custom view renderer
739
738
  - modelPath?: string - Model path in store
@@ -519,28 +519,10 @@ export const General = () => {
519
519
  ```tsx
520
520
  "use client";
521
521
  import { ModelDashboardProps } from "@akanjs/client";
522
- import { getQueryMap } from "@akanjs/constant";
523
522
  import { cnst, st } from "@app/client";
524
523
  import { Data } from "@akanjs/ui";
525
524
  import { Button } from "@akanjs/ui";
526
525
 
527
- export const Stat = ({
528
- className,
529
- summary,
530
- sliceName = "product",
531
- queryMap = getQueryMap(cnst.ProductSummary),
532
- }: ModelDashboardProps<cnst.Summary>) => {
533
- return (
534
- <Data.Dashboard
535
- className={className}
536
- summary={summary}
537
- sliceName={sliceName}
538
- queryMap={queryMap}
539
- columns={["totalProducts", "inStock", "outOfStock"]}
540
- />
541
- );
542
- };
543
-
544
526
  export const AddToCart = ({ productId, className }: { productId: string; className?: string }) => {
545
527
  return (
546
528
  <Button className={clsx("bg-primary text-white", className)} onClick={() => st.do.addToCart(productId)}>
@@ -200,8 +200,8 @@ Detailed displays of full data models:
200
200
  export const Detail = ({ className, project }: ModelProps<"project", cnst.FullProject>) => {
201
201
  return (
202
202
  <div className={clsx("bg-base-100 rounded-lg p-6 shadow-lg", className)}>
203
- <div className="border-primary mb-6 border-l-4 pl-4">
204
- <h1 className="text-primary text-2xl font-bold">{project.name}</h1>
203
+ <div className="border-base-content mb-8">
204
+ <h1 className="text-2xl font-bold">{project.name}</h1>
205
205
  </div>
206
206
 
207
207
  <div className="grid grid-cols-1 gap-6 md:grid-cols-2">{/* Project details */}</div>
@@ -97,7 +97,7 @@ import { dayjs } from "@akanjs/base";
97
97
  import { beyond, by, Database, into, Loader, type SchemaOf } from "@akanjs/document";
98
98
  import { hashPassword } from "@shared/nest";
99
99
 
100
- import { cnst } from "../cnst";
100
+ import * as cnst from "../cnst";
101
101
 
102
102
  // Input model for database operations
103
103
  @Database.Input(() => cnst.UserInput)
@@ -119,7 +119,7 @@ export class User extends by(cnst.User) {
119
119
 
120
120
  // Model with database operations
121
121
  @Database.Model(() => cnst.User)
122
- export class UserModel extends into(User, cnst.userCnst) {
122
+ export class UserModel extends into(User, cnst.userCnst, ...user.models) {
123
123
  @Loader.ByField("email") userEmailLoader: Loader<string, User>;
124
124
 
125
125
  async findByEmail(email: string) {
@@ -162,7 +162,7 @@ import { DbService, Service, Srv, Use } from "@akanjs/service";
162
162
  import { Account, type Me } from "@akanjs/signal";
163
163
  import { isPasswordMatch } from "@shared/nest";
164
164
 
165
- import { cnst } from "../cnst";
165
+ import * as cnst from "../cnst";
166
166
  import * as db from "../db";
167
167
  import type * as option from "../option";
168
168
  import type * as srv from "../srv";
@@ -208,11 +208,11 @@ Define GraphQL operations in the signal:
208
208
  import { ID } from "@akanjs/base";
209
209
  import { Account, Arg, DbSignal, Me, Mutation, Query, resolve, Signal } from "@akanjs/signal";
210
210
 
211
- import { cnst, Srvs } from "../cnst";
211
+ import * as cnst from "../cnst";
212
212
  import type * as db from "../db";
213
213
 
214
214
  @Signal(() => cnst.User)
215
- export class UserSignal extends DbSignal(cnst.userCnst, Srvs, {
215
+ export class UserSignal extends DbSignal(cnst.userCnst, cnst.Srvs, {
216
216
  guards: { get: Query.Public, cru: Mutation.Admin },
217
217
  }) {
218
218
  @Mutation.Public(() => cnst.util.AccessToken)
@@ -256,8 +256,8 @@ Implement client-side state management:
256
256
  import { StateCreator } from "zustand";
257
257
  import { immer } from "zustand/middleware/immer";
258
258
 
259
- import { cnst } from "../cnst";
260
- import * as fetch from "../fetch";
259
+ import * as cnst from "../cnst";
260
+ import * as fetch from "../sig";
261
261
 
262
262
  export interface UserState {
263
263
  users: cnst.User[];
@@ -584,30 +584,36 @@ export const Layout = () => (
584
584
  ## Best Practices
585
585
 
586
586
  1. **Naming Conventions**
587
+
587
588
  - Use PascalCase for classes and components (e.g., `UserService`, `User.Unit.tsx`)
588
589
  - Use camelCase for files (e.g., `user.service.ts`, `user.document.ts`)
589
590
 
590
591
  2. **Security**
592
+
591
593
  - Use `@Field.Secret` for sensitive data like passwords
592
594
  - Apply proper permission guards to queries and mutations (`@Query.Admin`, `@Mutation.Public`)
593
595
  - Validate input data using the `validate` option in `@Field.Prop`
594
596
 
595
597
  3. **Code Organization**
598
+
596
599
  - Keep business logic in service files
597
600
  - Use signals for API calls only, not for business logic
598
601
  - Define reusable utility methods in document models
599
602
 
600
603
  4. **Performance**
604
+
601
605
  - Use dataloader pattern (`@Loader.ByField`) for efficient database access
602
606
  - Create proper indexes in the middleware
603
607
  - Use projections to limit returned fields when appropriate
604
608
 
605
609
  5. **Testing**
610
+
606
611
  - Create signal tests for each API endpoint
607
612
  - Mock services for unit testing signals
608
613
  - Use integration tests for testing complex workflows
609
614
 
610
615
  6. **UI Components**
616
+
611
617
  - Follow the separation between Template, Unit, View, and Zone components
612
618
  - Make components reusable across different parts of the application
613
619
  - Use dictionary files for all UI text to support internationalization
@@ -84,13 +84,6 @@ export class DroneInsight {
84
84
  count: number;
85
85
  }
86
86
 
87
- // 8. Summary Model
88
- @Model.Summary("DroneSummary")
89
- export class DroneSummary {
90
- @Field.Prop(() => Int, { min: 0, default: 0, query: { status: { $ne: "inactive" } } })
91
- totalDrone: number;
92
- }
93
-
94
87
  // 9. Query Model
95
88
  export const droneQuery = {
96
89
  byName: (name: string) => ({ name }),
@@ -253,18 +246,6 @@ const droneInsight = await fetch.droneInsight({ ...query });
253
246
  const droneInsight = st.use.droneInsight(); // droneInsight.count
254
247
  ```
255
248
 
256
- ## Summary Model Implementation
257
-
258
- Summary model defines periodic statistics:
259
-
260
- ```typescript
261
- @Model.Summary("DroneSummary")
262
- export class DroneSummary {
263
- @Field.Prop(() => Int, { min: 0, default: 0, query: { status: { $ne: "inactive" } } })
264
- totalDrone: number;
265
- }
266
- ```
267
-
268
249
  **Usage Examples**:
269
250
 
270
251
  ```typescript
@@ -436,7 +417,6 @@ import { LightMission } from "../cnst_";
436
417
  ## Best Practices for Maintainable Models
437
418
 
438
419
  1. **Consistent Naming**:
439
-
440
420
  - Input: `DroneInput`
441
421
  - Object: `DroneObject`
442
422
  - Light: `LightDrone`
@@ -444,19 +424,16 @@ import { LightMission } from "../cnst_";
444
424
  - Sort: `droneSort`
445
425
 
446
426
  2. **Reference Handling**:
447
-
448
427
  - Use Light models for references
449
428
  - Avoid circular dependencies
450
429
  - Prefer direct imports over barrel files
451
430
 
452
431
  3. **Field Design**:
453
-
454
432
  - Use proper field types (Prop, Hidden, Secret, Resolve)
455
433
  - Set appropriate defaults (especially for arrays)
456
434
  - Add validation where needed
457
435
 
458
436
  4. **Performance Optimization**:
459
-
460
437
  - Use Light models for list queries
461
438
  - Keep Insight/Summary models lean
462
439
  - Use appropriate indexes for queries
@@ -509,13 +486,6 @@ export class DroneInsight {
509
486
  count: number;
510
487
  }
511
488
 
512
- // Summary Model
513
- @Model.Summary("DroneSummary")
514
- export class DroneSummary {
515
- @Field.Prop(() => Int, { query: { status: "active" } })
516
- activeDrones: number;
517
- }
518
-
519
489
  // Query Model
520
490
  export const droneQuery = {
521
491
  byStatus: (status: string) => ({ status }),
@@ -31,13 +31,6 @@
31
31
  "path": "{apps,libs}/*/lib/{user,setting}/*.dictionary.ts",
32
32
  "sample": 2
33
33
  },
34
- {
35
- "type": "example",
36
- "description": "Examples of summary dictionaries",
37
- "path": "{apps,libs}/*/lib/[!_]*/*.dictionary.ts",
38
- "filterText": "SummaryDictionary",
39
- "sample": 2
40
- },
41
34
  {
42
35
  "type": "example",
43
36
  "description": "Examples of enum translations",
@@ -18,13 +18,7 @@ This system ensures consistent terminology across all application layers and sup
18
18
  ## 2. File Structure
19
19
 
20
20
  ```typescript
21
- import {
22
- ModelDictionary,
23
- SignalDictionary,
24
- SummaryDictionary,
25
- baseTrans,
26
- getBaseSignalTrans,
27
- } from "@akanjs/dictionary";
21
+ import { ModelDictionary, SignalDictionary, baseTrans, getBaseSignalTrans } from "@akanjs/dictionary";
28
22
 
29
23
  import type { YourModel, YourFilter, YourInsight, YourSummary } from "./your-model.constant";
30
24
  import type { YourSignal } from "./your-model.signal";
@@ -59,14 +53,6 @@ const modelDictionary = {
59
53
  // * ==================== Etc ==================== * //
60
54
  } satisfies ModelDictionary<YourModel, YourInsight, YourFilter>;
61
55
 
62
- // Summary model translations (optional)
63
- export const yourSummaryDictionary = {
64
- // * ==================== Summary ==================== * //
65
- totalItems: ["Total Items", "총 항목 수"],
66
- "desc-totalItems": ["Total item count in database", "데이터베이스의 총 항목 수"],
67
- // * ==================== Summary ==================== * //
68
- } satisfies SummaryDictionary<YourSummary>;
69
-
70
56
  // API endpoint translations
71
57
  const signalDictionary = {
72
58
  ...getBaseSignalTrans("modelName"), // Auto-generate standard API texts
@@ -341,7 +327,6 @@ Always include these imports in your dictionary file:
341
327
  import {
342
328
  ModelDictionary,
343
329
  SignalDictionary,
344
- SummaryDictionary,
345
330
  ExtendModelDictionary, // For extended models
346
331
  baseTrans, // Common translations
347
332
  getBaseSignalTrans, // Auto-generated API translations
@@ -358,17 +343,10 @@ import type { YourSummary } from "./your-model.summary"; // If using summary
358
343
  ## 10. Full Example of model.dictionary.ts
359
344
 
360
345
  ```typescript
361
- import {
362
- ModelDictionary,
363
- SignalDictionary,
364
- SummaryDictionary,
365
- baseTrans,
366
- getBaseSignalTrans,
367
- } from "@akanjs/dictionary";
346
+ import { ModelDictionary, SignalDictionary, baseTrans, getBaseSignalTrans } from "@akanjs/dictionary";
368
347
 
369
348
  import type { Post, PostFilter, PostInsight } from "./post.constant";
370
349
  import type { PostSignal } from "./post.signal";
371
- import type { PostSummary } from "./post.summary";
372
350
 
373
351
  const modelDictionary = {
374
352
  ...baseTrans,
@@ -438,19 +416,6 @@ const modelDictionary = {
438
416
  // * ==================== Etc ==================== * //
439
417
  } satisfies ModelDictionary<Post, PostInsight, PostFilter>;
440
418
 
441
- export const postSummaryDictionary = {
442
- // * ==================== Summary ==================== * //
443
- totalPosts: ["Total Posts", "총 게시물 수"],
444
- "desc-totalPosts": ["Total post count in database", "데이터베이스의 총 게시물 수"],
445
-
446
- publishedPosts: ["Published Posts", "게시된 게시물 수"],
447
- "desc-publishedPosts": ["Number of published posts", "게시된 게시물 수"],
448
-
449
- draftPosts: ["Draft Posts", "초안 게시물 수"],
450
- "desc-draftPosts": ["Number of draft posts", "초안 게시물 수"],
451
- // * ==================== Summary ==================== * //
452
- } satisfies SummaryDictionary<PostSummary>;
453
-
454
419
  const signalDictionary = {
455
420
  ...getBaseSignalTrans("post"),
456
421
 
@@ -573,7 +538,6 @@ export const settingDictionary = userSettingDictionary;
573
538
  7. **Validate Dictionary**: Run `akan dict:check` before committing changes
574
539
 
575
540
  8. **Consistent Casing**:
576
-
577
541
  - Model field names: camelCase
578
542
  - Enum values: camelCase
579
543
  - Custom keys: camelCase
@@ -495,7 +495,7 @@ Here's a complete example integrating multiple features:
495
495
  // product.document.ts
496
496
  import { dayjs } from "@akanjs/base";
497
497
  import { beyond, by, Database, into, Loader, SchemaOf } from "@akanjs/document";
498
- import { cnst } from "../cnst";
498
+ import * as cnst from "../cnst";
499
499
 
500
500
  @Database.Input(() => cnst.ProductInput)
501
501
  export class ProductInput extends by(cnst.ProductInput) {}
@@ -52,34 +52,6 @@
52
52
  "filterText": "@Sig",
53
53
  "sample": 1
54
54
  },
55
- {
56
- "type": "example",
57
- "description": "onModuleInit method examples",
58
- "path": "{apps,libs}/*/lib/*/*.service.ts",
59
- "filterText": "onModuleInit",
60
- "sample": 2
61
- },
62
- {
63
- "type": "example",
64
- "description": "onModuleDestroy method examples",
65
- "path": "{apps,libs}/*/lib/*/*.service.ts",
66
- "filterText": "onModuleDestroy",
67
- "sample": 1
68
- },
69
- {
70
- "type": "example",
71
- "description": "@Cron decorator examples",
72
- "path": "{apps,libs}/*/lib/*/*.service.ts",
73
- "filterText": "@Cron",
74
- "sample": 2
75
- },
76
- {
77
- "type": "example",
78
- "description": "@Interval decorator examples",
79
- "path": "{apps,libs}/*/lib/*/*.service.ts",
80
- "filterText": "@Interval",
81
- "sample": 1
82
- },
83
55
  {
84
56
  "type": "example",
85
57
  "description": "DbService _preCreate examples",
@@ -143,8 +115,6 @@
143
115
  "Purpose and role of model.service.ts files",
144
116
  "Service structure and inheritance (DbService, LogService, MixSrvs)",
145
117
  "Core decorators (@Service, @Srv, @Use, @Db, @Sig)",
146
- "Lifecycle methods (onModuleInit, onModuleDestroy)",
147
- "Scheduled tasks (@Cron, @Interval)",
148
118
  "Database operations (CRUD, queries, search)",
149
119
  "Customizing database operations (_preCreate, _postCreate, _preUpdate, _postUpdate, _preRemove, _postRemove)",
150
120
  "Working with other services (dependency injection patterns)",