@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
@@ -1,48 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/setting/Setting.View.tsx
20
- var Setting_View_exports = {};
21
- __export(Setting_View_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(Setting_View_exports);
25
- function getContent(scanInfo, dict) {
26
- return {
27
- filename: "Setting.View.tsx",
28
- content: `
29
- import { clsx } from "@akanjs/client";
30
- import { usePage } from "@${dict.libName}/client";
31
-
32
- import { cnst } from "../cnst";
33
-
34
- interface SettingViewProps {
35
- className?: string;
36
- setting: cnst.Setting;
37
- }
38
-
39
- export const General = ({ className, setting }: SettingViewProps) => {
40
- const { l } = usePage();
41
- return (
42
- <div className={clsx("", className)}>
43
- {setting.id}
44
- </div>
45
- );
46
- };`
47
- };
48
- }
@@ -1,74 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/setting/Setting.Zone.tsx
20
- var Setting_Zone_exports = {};
21
- __export(Setting_Zone_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(Setting_Zone_exports);
25
- function getContent(scanInfo, dict) {
26
- return {
27
- filename: "Setting.Zone.tsx",
28
- content: `
29
- "use client";
30
- import { ModelsProps } from "@akanjs/client";
31
- import { cnst, Setting, st, usePage } from "@${dict.libName}/client";
32
- import { Model } from "@akanjs/ui";
33
- import { Loading } from "@akanjs/ui";
34
- import { useEffect } from "react";
35
- import { AiOutlineEdit } from "react-icons/ai";
36
-
37
- export const Admin = ({ sliceName = "setting" }: ModelsProps<cnst.Setting>) => {
38
- const { l } = usePage();
39
- const setting = st.use.setting();
40
- const settingModal = st.use.settingModal();
41
- useEffect(() => {
42
- void st.do.getActiveSetting();
43
- }, []);
44
- if (!setting) return <Loading.Skeleton active />;
45
-
46
- return (
47
- <div>
48
- <div className="my-2 flex items-center gap-4 text-3xl">
49
- {l("setting.modelName")}
50
- {settingModal ? null : (
51
- <button className="btn btn-sm" onClick={() => st.do.editSetting(setting.id)}>
52
- <AiOutlineEdit /> {l("shared.edit")}
53
- </button>
54
- )}
55
- </div>
56
- {settingModal === "edit" ? (
57
- <Model.EditModal
58
- sliceName="setting"
59
- type="form"
60
- onCancel={() => {
61
- st.do.resetSetting(setting);
62
- }}
63
- >
64
- <Setting.Template.General />
65
- </Model.EditModal>
66
- ) : (
67
- <Setting.View.General setting={setting} />
68
- )}
69
- </div>
70
- );
71
- };
72
- `
73
- };
74
- }
@@ -1,46 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/setting/setting.constant.ts
20
- var setting_constant_exports = {};
21
- __export(setting_constant_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(setting_constant_exports);
25
- function getContent(scanInfo, dict) {
26
- return `
27
- import { from, Model, via } from "@akanjs/constant";
28
-
29
- import { libSettingInputs, libSettings, root } from "../__lib/lib.constant";
30
-
31
- @Model.Input("${dict.LibName}SettingInput")
32
- export class ${dict.LibName}SettingInput {}
33
-
34
- @Model.Input("SettingInput")
35
- export class SettingInput extends from(...libSettingInputs, ${dict.LibName}SettingInput) {}
36
-
37
- @Model.Object("SettingObject")
38
- export class SettingObject extends from(...libSettings, SettingInput) {}
39
-
40
- @Model.Light("LightSetting")
41
- export class LightSetting extends via(SettingObject, ["status"] as const) {}
42
-
43
- @Model.Full("Setting")
44
- export class Setting extends via(SettingObject, LightSetting, root.Setting, root.LightSetting) {}
45
- `;
46
- }
@@ -1,46 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/setting/setting.dictionary.ts
20
- var setting_dictionary_exports = {};
21
- __export(setting_dictionary_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(setting_dictionary_exports);
25
- function getContent(scanInfo, dict) {
26
- return `
27
- import { ExtendModelDictionary, SignalDictionary } from "@akanjs/dictionary";
28
-
29
- import type { ${dict.LibName}SettingInput } from "./setting.constant";
30
- import type { SettingSignal } from "./setting.signal";
31
-
32
- const modelDictionary = {
33
- // * ==================== Model ==================== * //
34
- // * ==================== Model ==================== * //
35
- // * ==================== Etc ==================== * //
36
- // * ==================== Etc ==================== * //
37
- } satisfies ExtendModelDictionary<${dict.LibName}SettingInput>;
38
-
39
- const signalDictionary = {
40
- // * ==================== Endpoint ==================== * //
41
- // * ==================== Endpoint ==================== * //
42
- } satisfies SignalDictionary<SettingSignal, ${dict.LibName}SettingInput>;
43
-
44
- export const settingDictionary = { ...modelDictionary, ...signalDictionary };
45
- `;
46
- }
@@ -1,48 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/setting/setting.document.ts
20
- var setting_document_exports = {};
21
- __export(setting_document_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(setting_document_exports);
25
- function getContent(scanInfo, dict = {}) {
26
- return `
27
- import { beyond, by, Database, into, type SchemaOf } from "@akanjs/document";
28
-
29
- import { rootSetting } from "../__lib/lib.document";
30
- import { cnst } from "../cnst";
31
-
32
- @Database.Input(() => cnst.SettingInput)
33
- export class SettingInput extends by(rootSetting.Input, cnst.SettingInput) {}
34
-
35
- @Database.Document(() => cnst.Setting)
36
- export class Setting extends by(rootSetting.Doc, cnst.Setting) {}
37
-
38
- @Database.Model(() => cnst.Setting)
39
- export class SettingModel extends into(Setting, cnst.settingCnst) {}
40
-
41
- @Database.Middleware(() => cnst.Setting)
42
- export class SettingMiddleware extends beyond(SettingModel, Setting) {
43
- onSchema(schema: SchemaOf<SettingModel, Setting>) {
44
- //
45
- }
46
- }
47
- `;
48
- }
@@ -1,37 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/setting/setting.service.ts
20
- var setting_service_exports = {};
21
- __export(setting_service_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(setting_service_exports);
25
- function getContent(scanInfo, dict) {
26
- return `
27
- import { ExtendedSettingService, Service } from "@akanjs/service";
28
-
29
- import { LibSettingService } from "../__lib/lib.service";
30
- import * as db from "../db";
31
-
32
- @Service("SettingService")
33
- export class SettingService extends ExtendedSettingService(db.settingDb, LibSettingService) {
34
- //
35
- }
36
- `;
37
- }
@@ -1,34 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/setting/setting.signal.ts
20
- var setting_signal_exports = {};
21
- __export(setting_signal_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(setting_signal_exports);
25
- function getContent(scanInfo, dict = {}) {
26
- return `
27
- import { LogSignal, Signal } from "@akanjs/signal";
28
-
29
- import { cnst, Srvs } from "../cnst";
30
-
31
- @Signal(() => cnst.Setting)
32
- export class SettingSignal extends LogSignal(Srvs) {}
33
- `;
34
- }
@@ -1,41 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/setting/setting.store.ts
20
- var setting_store_exports = {};
21
- __export(setting_store_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(setting_store_exports);
25
- function getContent(scanInfo, dict = {}) {
26
- return `
27
- import { stateOf, Store } from "@akanjs/store";
28
-
29
- import { cnst } from "../cnst";
30
- import { fetch, settingGql } from "../fetch";
31
-
32
- @Store(() => cnst.Setting)
33
- export class SettingStore extends stateOf(settingGql, {
34
- // state
35
- }) {
36
- async getActiveSetting() {
37
- this.set({ setting: (await fetch.getActiveSetting()) as cnst.Setting, settingLoading: false });
38
- }
39
- }
40
- `;
41
- }
@@ -1,44 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/summary/Summary.Template.tsx
20
- var Summary_Template_exports = {};
21
- __export(Summary_Template_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(Summary_Template_exports);
25
- function getContent(scanInfo, dict) {
26
- return {
27
- filename: "Summary.Template.tsx",
28
- content: `
29
- "use client";
30
- import { clsx } from "@akanjs/client";
31
- import { st, usePage } from "@${dict.libName}/client";
32
-
33
- interface SummaryEditProps {
34
- className?: string;
35
- }
36
-
37
- export const General = ({ className }: SummaryEditProps) => {
38
- const summaryForm = st.use.summaryForm();
39
- const { l } = usePage();
40
- return <div className={clsx("", className)}></div>; // update your UI here
41
- };
42
- `
43
- };
44
- }
@@ -1,37 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/summary/Summary.Unit.tsx
20
- var Summary_Unit_exports = {};
21
- __export(Summary_Unit_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(Summary_Unit_exports);
25
- function getContent(scanInfo, dict = {}) {
26
- return {
27
- filename: "Summary.Unit.tsx",
28
- content: `
29
- import { clsx, ModelProps } from "@akanjs/client";
30
- import { cnst } from "@${dict.libName}/client";
31
-
32
- export const Card = ({ className, summary }: ModelProps<"summary", cnst.LightSummary>) => {
33
- return <div className={clsx("", className)}>{summary.id}</div>; // update your UI here
34
- };
35
- `
36
- };
37
- }
@@ -1,40 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/summary/Summary.Util.tsx
20
- var Summary_Util_exports = {};
21
- __export(Summary_Util_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(Summary_Util_exports);
25
- function getContent(scanInfo, dict = {}) {
26
- return {
27
- filename: "Summary.Util.tsx",
28
- content: `
29
- "use client";
30
- import { clsx } from "@akanjs/client";
31
-
32
- interface CustomUtilProps {
33
- className?: string;
34
- }
35
- export const CustomUtil = ({ className }: CustomUtilProps) => {
36
- return <div className={clsx("", className)}></div>; // update your UI here
37
- };
38
- `
39
- };
40
- }
@@ -1,47 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/summary/Summary.View.tsx
20
- var Summary_View_exports = {};
21
- __export(Summary_View_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(Summary_View_exports);
25
- function getContent(scanInfo, dict) {
26
- return {
27
- filename: "Summary.View.tsx",
28
- content: `
29
- import { cnst, usePage } from "@${dict.libName}/client";
30
- import { clsx } from "@akanjs/client";
31
-
32
- interface SummaryViewProps {
33
- className?: string;
34
- summary: cnst.Summary;
35
- }
36
-
37
- export const General = ({ className, summary }: SummaryViewProps) => {
38
- const { l } = usePage();
39
- return (
40
- <div className={clsx("", className)}>
41
- {summary.id}
42
- </div>
43
- );
44
- };
45
- `
46
- };
47
- }
@@ -1,60 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/summary/Summary.Zone.tsx
20
- var Summary_Zone_exports = {};
21
- __export(Summary_Zone_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(Summary_Zone_exports);
25
- function getContent(scanInfo, dict) {
26
- return {
27
- filename: "Summary.Zone.tsx",
28
- content: `
29
- "use client";
30
- import { ModelsProps } from "@akanjs/client";
31
- import { DefaultOf } from "@akanjs/signal";
32
- import { cnst, st, Summary } from "@${dict.libName}/client";
33
- import { Data } from "@akanjs/ui";
34
- import { Loading } from "@akanjs/ui";
35
-
36
- export const Admin = ({ sliceName = "summary", init, query }: ModelsProps<cnst.Summary>) => {
37
- return (
38
- <Data.ListContainer
39
- init={init}
40
- query={query}
41
- sliceName={sliceName}
42
- renderItem={Summary.Unit.Card}
43
- renderTemplate={Summary.Template.General}
44
- renderTitle={(summary: DefaultOf<cnst.Summary>) => \`\${summary.at}\`}
45
- renderView={(summary: cnst.Summary) => <Summary.View.General summary={summary} />}
46
- type="list"
47
- columns={["type", "status", "createdAt"]}
48
- actions={(summary: cnst.LightSummary, idx) => ["remove", "edit"]}
49
- />
50
- );
51
- };
52
-
53
- export const Dashboard = () => {
54
- const summary = st.use.summary();
55
- if (!summary) return <Loading.Skeleton active />;
56
- return <Summary.View.General summary={summary} />;
57
- };
58
- `
59
- };
60
- }
@@ -1,44 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/libRoot/lib/summary/summary.constant.ts
20
- var summary_constant_exports = {};
21
- __export(summary_constant_exports, {
22
- default: () => getContent
23
- });
24
- module.exports = __toCommonJS(summary_constant_exports);
25
- function getContent(scanInfo, dict) {
26
- return `
27
- import { from, Model, over, via } from "@akanjs/constant";
28
-
29
- import { modelSummaries } from "../__lib/extends/summary.constant";
30
- import { libSummaries, root } from "../__lib/lib.constant";
31
-
32
- @Model.Summary("${dict.LibName}Summary")
33
- export class ${dict.LibName}Summary extends over(...modelSummaries) {}
34
-
35
- export class SummaryObject extends from(...libSummaries, ${dict.LibName}Summary) {}
36
- export class SummaryInput extends root.SummaryInput {}
37
-
38
- @Model.Light("LightSummary")
39
- export class LightSummary extends via(SummaryObject, ["at"] as const) {}
40
-
41
- @Model.Full("Summary")
42
- export class Summary extends via(SummaryObject, LightSummary, root.Summary, root.LightSummary) {}
43
- `;
44
- }