ngx-axis-appforge 0.0.3 → 0.0.4

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 (580) hide show
  1. package/.editorconfig +17 -0
  2. package/angular.json +40 -0
  3. package/axis-components/badge/badge.css +3 -0
  4. package/axis-components/badge/badge.html +20 -0
  5. package/axis-components/badge/badge.options.ts +23 -0
  6. package/axis-components/badge/badge.ts +17 -0
  7. package/axis-components/badge/design/config.ts +52 -0
  8. package/axis-components/badge/design/ng-package.json +5 -0
  9. package/axis-components/badge/design/setting/setting.css +0 -0
  10. package/axis-components/badge/design/setting/setting.html +181 -0
  11. package/axis-components/badge/design/setting/setting.ts +126 -0
  12. package/axis-components/badge/ng-package.json +5 -0
  13. package/axis-components/button/button.css +3 -0
  14. package/axis-components/button/button.html +13 -0
  15. package/axis-components/button/button.options.ts +17 -0
  16. package/axis-components/button/button.ts +56 -0
  17. package/axis-components/button/design/config.ts +30 -0
  18. package/axis-components/button/design/ng-package.json +5 -0
  19. package/axis-components/button/design/setting/setting.css +0 -0
  20. package/axis-components/button/design/setting/setting.html +151 -0
  21. package/axis-components/button/design/setting/setting.ts +76 -0
  22. package/axis-components/button/ng-package.json +5 -0
  23. package/axis-components/cmp-map.ts +52 -0
  24. package/axis-components/cmplib.ts +9 -0
  25. package/axis-components/desc/desc.css +8 -0
  26. package/axis-components/desc/desc.html +19 -0
  27. package/axis-components/desc/desc.options.ts +24 -0
  28. package/axis-components/desc/desc.ts +29 -0
  29. package/axis-components/desc/design/config.ts +113 -0
  30. package/axis-components/desc/design/desc-item-setting/desc-item-setting.css +0 -0
  31. package/axis-components/desc/design/desc-item-setting/desc-item-setting.html +47 -0
  32. package/axis-components/desc/design/desc-item-setting/desc-item-setting.ts +40 -0
  33. package/axis-components/desc/design/desc-items-menu/desc-items-menu.css +0 -0
  34. package/axis-components/desc/design/desc-items-menu/desc-items-menu.html +9 -0
  35. package/axis-components/desc/design/desc-items-menu/desc-items-menu.ts +23 -0
  36. package/axis-components/desc/design/desc-setting/desc-setting.css +0 -0
  37. package/axis-components/desc/design/desc-setting/desc-setting.html +76 -0
  38. package/axis-components/desc/design/desc-setting/desc-setting.ts +51 -0
  39. package/axis-components/desc/design/ng-package.json +5 -0
  40. package/axis-components/desc/ng-package.json +5 -0
  41. package/axis-components/design/cmplib/cmplib.css +5 -0
  42. package/axis-components/design/cmplib/cmplib.html +52 -0
  43. package/axis-components/design/cmplib/cmplib.ts +96 -0
  44. package/axis-components/design/design/config.ts +29 -0
  45. package/axis-components/design/design/ng-package.json +5 -0
  46. package/axis-components/design/design/setting/setting.css +0 -0
  47. package/axis-components/design/design/setting/setting.html +33 -0
  48. package/axis-components/design/design/setting/setting.ts +33 -0
  49. package/axis-components/design/design.css +15 -0
  50. package/axis-components/design/design.html +51 -0
  51. package/axis-components/design/design.options.ts +9 -0
  52. package/axis-components/design/design.ts +509 -0
  53. package/axis-components/design/ng-package.json +5 -0
  54. package/axis-components/design/preview/drag.service.ts +148 -0
  55. package/axis-components/design/preview/drop-handler.ts +56 -0
  56. package/axis-components/design/preview/preview.css +3 -0
  57. package/axis-components/design/preview/preview.html +1 -0
  58. package/axis-components/design/preview/preview.ts +250 -0
  59. package/axis-components/design/preview/select.service.ts +140 -0
  60. package/axis-components/design/shortcut-key.ts +160 -0
  61. package/axis-components/design/toolbar/toolbar.css +24 -0
  62. package/axis-components/design/toolbar/toolbar.html +96 -0
  63. package/axis-components/design/toolbar/toolbar.ts +65 -0
  64. package/axis-components/design/tree/drag-drop.ts +125 -0
  65. package/axis-components/design/tree/tree.css +30 -0
  66. package/axis-components/design/tree/tree.html +49 -0
  67. package/axis-components/design/tree/tree.ts +292 -0
  68. package/axis-components/dynamic-container/design/config.ts +30 -0
  69. package/axis-components/dynamic-container/design/ng-package.json +5 -0
  70. package/axis-components/dynamic-container/design/setting/setting.css +0 -0
  71. package/axis-components/dynamic-container/design/setting/setting.html +20 -0
  72. package/axis-components/dynamic-container/design/setting/setting.ts +30 -0
  73. package/axis-components/dynamic-container/dynamic-container.css +3 -0
  74. package/axis-components/dynamic-container/dynamic-container.html +2 -0
  75. package/axis-components/dynamic-container/dynamic-container.options.ts +6 -0
  76. package/axis-components/dynamic-container/dynamic-container.ts +17 -0
  77. package/axis-components/dynamic-container/ng-package.json +5 -0
  78. package/axis-components/editor/editor.css +47 -0
  79. package/axis-components/editor/editor.html +10 -0
  80. package/axis-components/editor/editor.options.ts +10 -0
  81. package/axis-components/editor/editor.ts +86 -0
  82. package/axis-components/editor/ng-package.json +5 -0
  83. package/axis-components/examples/examples/badge.ts +17 -0
  84. package/axis-components/examples/examples/button.ts +38 -0
  85. package/axis-components/examples/examples/desc.ts +31 -0
  86. package/axis-components/examples/examples/design.ts +15 -0
  87. package/axis-components/examples/examples/dynamic-container.ts +21 -0
  88. package/axis-components/examples/examples/flex.ts +18 -0
  89. package/axis-components/examples/examples/form-item.ts +39 -0
  90. package/axis-components/examples/examples/form.ts +315 -0
  91. package/axis-components/examples/examples/icon.ts +16 -0
  92. package/axis-components/examples/examples/image.ts +15 -0
  93. package/axis-components/examples/examples/input-component.ts +15 -0
  94. package/axis-components/examples/examples/input-icon.ts +15 -0
  95. package/axis-components/examples/examples/input-json.ts +15 -0
  96. package/axis-components/examples/examples/input-number.ts +15 -0
  97. package/axis-components/examples/examples/input.ts +15 -0
  98. package/axis-components/examples/examples/modal.ts +15 -0
  99. package/axis-components/examples/examples/scope.ts +17 -0
  100. package/axis-components/examples/examples/single-selector.ts +25 -0
  101. package/axis-components/examples/examples/splitter.ts +36 -0
  102. package/axis-components/examples/examples/table.ts +126 -0
  103. package/axis-components/examples/examples/text.ts +15 -0
  104. package/axis-components/examples/examples/textarea.ts +15 -0
  105. package/axis-components/examples/examples/tree-selector.ts +35 -0
  106. package/axis-components/examples/examples/upload.ts +15 -0
  107. package/axis-components/examples/examples.ts +73 -0
  108. package/axis-components/flex/design/config.ts +49 -0
  109. package/axis-components/flex/design/ng-package.json +5 -0
  110. package/axis-components/flex/design/setting/setting.css +0 -0
  111. package/axis-components/flex/design/setting/setting.html +72 -0
  112. package/axis-components/flex/design/setting/setting.ts +43 -0
  113. package/axis-components/flex/flex.css +5 -0
  114. package/axis-components/flex/flex.html +6 -0
  115. package/axis-components/flex/flex.options.ts +12 -0
  116. package/axis-components/flex/flex.ts +15 -0
  117. package/axis-components/flex/ng-package.json +5 -0
  118. package/axis-components/form/design/config.ts +71 -0
  119. package/axis-components/form/design/ng-package.json +5 -0
  120. package/axis-components/form/design/setting/setting.css +0 -0
  121. package/axis-components/form/design/setting/setting.html +21 -0
  122. package/axis-components/form/design/setting/setting.ts +31 -0
  123. package/axis-components/form/form.css +3 -0
  124. package/axis-components/form/form.html +3 -0
  125. package/axis-components/form/form.options.ts +9 -0
  126. package/axis-components/form/form.ts +121 -0
  127. package/axis-components/form/ng-package.json +5 -0
  128. package/axis-components/form-item/design/config.ts +43 -0
  129. package/axis-components/form-item/design/ng-package.json +5 -0
  130. package/axis-components/form-item/design/setting/input-validator/input-validator.css +8 -0
  131. package/axis-components/form-item/design/setting/input-validator/input-validator.html +140 -0
  132. package/axis-components/form-item/design/setting/input-validator/input-validator.ts +158 -0
  133. package/axis-components/form-item/design/setting/setting.css +0 -0
  134. package/axis-components/form-item/design/setting/setting.html +39 -0
  135. package/axis-components/form-item/design/setting/setting.ts +40 -0
  136. package/axis-components/form-item/form-item.css +4 -0
  137. package/axis-components/form-item/form-item.html +16 -0
  138. package/axis-components/form-item/form-item.options.ts +12 -0
  139. package/axis-components/form-item/form-item.ts +128 -0
  140. package/axis-components/form-item/ng-package.json +5 -0
  141. package/axis-components/icon/design/config.ts +29 -0
  142. package/axis-components/icon/design/ng-package.json +5 -0
  143. package/axis-components/icon/design/setting/setting.css +0 -0
  144. package/axis-components/icon/design/setting/setting.html +67 -0
  145. package/axis-components/icon/design/setting/setting.ts +48 -0
  146. package/axis-components/icon/icon.css +0 -0
  147. package/axis-components/icon/icon.html +7 -0
  148. package/axis-components/icon/icon.options.ts +10 -0
  149. package/axis-components/icon/icon.ts +17 -0
  150. package/axis-components/icon/ng-package.json +5 -0
  151. package/axis-components/image/design/config.ts +30 -0
  152. package/axis-components/image/design/ng-package.json +5 -0
  153. package/axis-components/image/design/setting/setting.css +0 -0
  154. package/axis-components/image/design/setting/setting.html +42 -0
  155. package/axis-components/image/design/setting/setting.ts +37 -0
  156. package/axis-components/image/image.css +58 -0
  157. package/axis-components/image/image.html +14 -0
  158. package/axis-components/image/image.options.ts +8 -0
  159. package/axis-components/image/image.ts +29 -0
  160. package/axis-components/image/ng-package.json +5 -0
  161. package/axis-components/input/design/config.ts +80 -0
  162. package/axis-components/input/design/ng-package.json +5 -0
  163. package/axis-components/input/design/setting/setting.css +0 -0
  164. package/axis-components/input/design/setting/setting.html +79 -0
  165. package/axis-components/input/design/setting/setting.ts +51 -0
  166. package/axis-components/input/input.css +4 -0
  167. package/axis-components/input/input.html +32 -0
  168. package/axis-components/input/input.options.ts +14 -0
  169. package/axis-components/input/input.ts +53 -0
  170. package/axis-components/input/ng-package.json +5 -0
  171. package/axis-components/input-component/design/config.ts +30 -0
  172. package/axis-components/input-component/design/ng-package.json +5 -0
  173. package/axis-components/input-component/design/setting/setting.css +0 -0
  174. package/axis-components/input-component/design/setting/setting.html +33 -0
  175. package/axis-components/input-component/design/setting/setting.ts +33 -0
  176. package/axis-components/input-component/input-component.css +4 -0
  177. package/axis-components/input-component/input-component.html +25 -0
  178. package/axis-components/input-component/input-component.options.ts +7 -0
  179. package/axis-components/input-component/input-component.ts +50 -0
  180. package/axis-components/input-component/ng-package.json +5 -0
  181. package/axis-components/input-icon/design/config.ts +30 -0
  182. package/axis-components/input-icon/design/ng-package.json +5 -0
  183. package/axis-components/input-icon/design/setting/setting.css +0 -0
  184. package/axis-components/input-icon/design/setting/setting.html +29 -0
  185. package/axis-components/input-icon/design/setting/setting.ts +33 -0
  186. package/axis-components/input-icon/input-icon.css +4 -0
  187. package/axis-components/input-icon/input-icon.html +70 -0
  188. package/axis-components/input-icon/input-icon.options.ts +7 -0
  189. package/axis-components/input-icon/input-icon.ts +51 -0
  190. package/axis-components/input-icon/ng-package.json +5 -0
  191. package/axis-components/input-json/design/config.ts +29 -0
  192. package/axis-components/input-json/design/ng-package.json +5 -0
  193. package/axis-components/input-json/design/setting/setting.css +0 -0
  194. package/axis-components/input-json/design/setting/setting.html +7 -0
  195. package/axis-components/input-json/design/setting/setting.ts +26 -0
  196. package/axis-components/input-json/input-json.css +4 -0
  197. package/axis-components/input-json/input-json.html +19 -0
  198. package/axis-components/input-json/input-json.ts +67 -0
  199. package/axis-components/input-json/ng-package.json +5 -0
  200. package/axis-components/input-number/design/config.ts +30 -0
  201. package/axis-components/input-number/design/ng-package.json +5 -0
  202. package/axis-components/input-number/design/setting/setting.css +0 -0
  203. package/axis-components/input-number/design/setting/setting.html +118 -0
  204. package/axis-components/input-number/design/setting/setting.ts +66 -0
  205. package/axis-components/input-number/input-number.css +22 -0
  206. package/axis-components/input-number/input-number.html +11 -0
  207. package/axis-components/input-number/input-number.options.ts +17 -0
  208. package/axis-components/input-number/input-number.ts +30 -0
  209. package/axis-components/input-number/ng-package.json +5 -0
  210. package/axis-components/modal/design/config.ts +50 -0
  211. package/axis-components/modal/design/ng-package.json +5 -0
  212. package/axis-components/modal/design/set-modal-visible-handler/set-modal-visible-handler.css +0 -0
  213. package/axis-components/modal/design/set-modal-visible-handler/set-modal-visible-handler.html +15 -0
  214. package/axis-components/modal/design/set-modal-visible-handler/set-modal-visible-handler.ts +34 -0
  215. package/axis-components/modal/design/setting/setting.css +0 -0
  216. package/axis-components/modal/design/setting/setting.html +139 -0
  217. package/axis-components/modal/design/setting/setting.ts +92 -0
  218. package/axis-components/modal/modal.css +0 -0
  219. package/axis-components/modal/modal.html +7 -0
  220. package/axis-components/modal/modal.options.ts +20 -0
  221. package/axis-components/modal/modal.ts +57 -0
  222. package/axis-components/modal/ng-package.json +5 -0
  223. package/axis-components/ng-package.json +5 -0
  224. package/axis-components/scope/design/config.ts +59 -0
  225. package/axis-components/scope/design/ng-package.json +5 -0
  226. package/axis-components/scope/design/setting/datasource-editor/datasource-editor.css +28 -0
  227. package/axis-components/scope/design/setting/datasource-editor/datasource-editor.html +188 -0
  228. package/axis-components/scope/design/setting/datasource-editor/datasource-editor.ts +245 -0
  229. package/axis-components/scope/design/setting/setting.css +0 -0
  230. package/axis-components/scope/design/setting/setting.html +19 -0
  231. package/axis-components/scope/design/setting/setting.ts +30 -0
  232. package/axis-components/scope/ng-package.json +5 -0
  233. package/axis-components/scope/scope.css +6 -0
  234. package/axis-components/scope/scope.html +4 -0
  235. package/axis-components/scope/scope.options.ts +8 -0
  236. package/axis-components/scope/scope.ts +48 -0
  237. package/axis-components/single-selector/design/config.ts +30 -0
  238. package/axis-components/single-selector/design/ng-package.json +5 -0
  239. package/axis-components/single-selector/design/setting/setting.css +0 -0
  240. package/axis-components/single-selector/design/setting/setting.html +164 -0
  241. package/axis-components/single-selector/design/setting/setting.ts +80 -0
  242. package/axis-components/single-selector/ng-package.json +5 -0
  243. package/axis-components/single-selector/single-selector.css +8 -0
  244. package/axis-components/single-selector/single-selector.html +51 -0
  245. package/axis-components/single-selector/single-selector.options.ts +22 -0
  246. package/axis-components/single-selector/single-selector.ts +80 -0
  247. package/axis-components/splitter/design/config.ts +84 -0
  248. package/axis-components/splitter/design/ng-package.json +5 -0
  249. package/axis-components/splitter/design/splitter-menu/splitter-menu.css +0 -0
  250. package/axis-components/splitter/design/splitter-menu/splitter-menu.html +10 -0
  251. package/axis-components/splitter/design/splitter-menu/splitter-menu.ts +22 -0
  252. package/axis-components/splitter/design/splitter-panel-setting/splitter-panel-setting.css +0 -0
  253. package/axis-components/splitter/design/splitter-panel-setting/splitter-panel-setting.html +66 -0
  254. package/axis-components/splitter/design/splitter-panel-setting/splitter-panel-setting.ts +47 -0
  255. package/axis-components/splitter/design/splitter-setting/splitter-setting.css +0 -0
  256. package/axis-components/splitter/design/splitter-setting/splitter-setting.html +28 -0
  257. package/axis-components/splitter/design/splitter-setting/splitter-setting.ts +30 -0
  258. package/axis-components/splitter/ng-package.json +5 -0
  259. package/axis-components/splitter/splitter.css +7 -0
  260. package/axis-components/splitter/splitter.html +12 -0
  261. package/axis-components/splitter/splitter.options.ts +18 -0
  262. package/axis-components/splitter/splitter.ts +40 -0
  263. package/axis-components/table/design/config.ts +147 -0
  264. package/axis-components/table/design/ng-package.json +5 -0
  265. package/axis-components/table/design/table-field-setting/table-field-setting.css +0 -0
  266. package/axis-components/table/design/table-field-setting/table-field-setting.html +259 -0
  267. package/axis-components/table/design/table-field-setting/table-field-setting.ts +105 -0
  268. package/axis-components/table/design/table-fields-menu/table-fields-menu.css +0 -0
  269. package/axis-components/table/design/table-fields-menu/table-fields-menu.html +9 -0
  270. package/axis-components/table/design/table-fields-menu/table-fields-menu.ts +24 -0
  271. package/axis-components/table/design/table-setting/table-setting.css +0 -0
  272. package/axis-components/table/design/table-setting/table-setting.html +417 -0
  273. package/axis-components/table/design/table-setting/table-setting.ts +173 -0
  274. package/axis-components/table/expand.ts +12 -0
  275. package/axis-components/table/ng-package.json +5 -0
  276. package/axis-components/table/select.ts +66 -0
  277. package/axis-components/table/table-setter/table-setter.css +55 -0
  278. package/axis-components/table/table-setter/table-setter.html +38 -0
  279. package/axis-components/table/table-setter/table-setter.ts +121 -0
  280. package/axis-components/table/table.css +5 -0
  281. package/axis-components/table/table.html +191 -0
  282. package/axis-components/table/table.options.ts +72 -0
  283. package/axis-components/table/table.ts +204 -0
  284. package/axis-components/text/design/config.ts +30 -0
  285. package/axis-components/text/design/ng-package.json +5 -0
  286. package/axis-components/text/design/setting/setting.css +0 -0
  287. package/axis-components/text/design/setting/setting.html +84 -0
  288. package/axis-components/text/design/setting/setting.ts +54 -0
  289. package/axis-components/text/ng-package.json +5 -0
  290. package/axis-components/text/text.css +3 -0
  291. package/axis-components/text/text.html +17 -0
  292. package/axis-components/text/text.options.ts +10 -0
  293. package/axis-components/text/text.ts +54 -0
  294. package/axis-components/textarea/design/config.ts +30 -0
  295. package/axis-components/textarea/design/ng-package.json +5 -0
  296. package/axis-components/textarea/design/setting/setting.css +0 -0
  297. package/axis-components/textarea/design/setting/setting.html +76 -0
  298. package/axis-components/textarea/design/setting/setting.ts +55 -0
  299. package/axis-components/textarea/ng-package.json +5 -0
  300. package/axis-components/textarea/textarea.css +4 -0
  301. package/axis-components/textarea/textarea.html +11 -0
  302. package/axis-components/textarea/textarea.options.ts +13 -0
  303. package/axis-components/textarea/textarea.ts +49 -0
  304. package/axis-components/tree-selector/design/config.ts +55 -0
  305. package/axis-components/tree-selector/design/ng-package.json +5 -0
  306. package/axis-components/tree-selector/design/tree-selector-menu/tree-selector-menu.css +0 -0
  307. package/axis-components/tree-selector/design/tree-selector-menu/tree-selector-menu.html +9 -0
  308. package/axis-components/tree-selector/design/tree-selector-menu/tree-selector-menu.ts +26 -0
  309. package/axis-components/tree-selector/design/tree-selector-menu-setting/tree-selector-menu-setting.css +0 -0
  310. package/axis-components/tree-selector/design/tree-selector-menu-setting/tree-selector-menu-setting.html +80 -0
  311. package/axis-components/tree-selector/design/tree-selector-menu-setting/tree-selector-menu-setting.ts +58 -0
  312. package/axis-components/tree-selector/design/tree-selector-setting/tree-selector-setting.css +0 -0
  313. package/axis-components/tree-selector/design/tree-selector-setting/tree-selector-setting.html +235 -0
  314. package/axis-components/tree-selector/design/tree-selector-setting/tree-selector-setting.ts +87 -0
  315. package/axis-components/tree-selector/ng-package.json +5 -0
  316. package/axis-components/tree-selector/tree-selector.css +43 -0
  317. package/axis-components/tree-selector/tree-selector.html +65 -0
  318. package/axis-components/tree-selector/tree-selector.options.ts +50 -0
  319. package/axis-components/tree-selector/tree-selector.ts +252 -0
  320. package/axis-components/upload/design/config.ts +37 -0
  321. package/axis-components/upload/design/ng-package.json +5 -0
  322. package/axis-components/upload/design/setting/setting.css +0 -0
  323. package/axis-components/upload/design/setting/setting.html +288 -0
  324. package/axis-components/upload/design/setting/setting.ts +96 -0
  325. package/axis-components/upload/ng-package.json +5 -0
  326. package/axis-components/upload/upload.css +3 -0
  327. package/axis-components/upload/upload.html +36 -0
  328. package/axis-components/upload/upload.options.ts +29 -0
  329. package/axis-components/upload/upload.ts +130 -0
  330. package/core/base/base-menu.ts +22 -0
  331. package/core/base/base.ts +143 -0
  332. package/core/base/design-builder.ts +8 -0
  333. package/core/base/funfield-base.ts +106 -0
  334. package/core/base/funfield-value-base.ts +53 -0
  335. package/core/base/value-access.ts +70 -0
  336. package/core/directives/dynamic.ts +216 -0
  337. package/core/directives/scope.ts +432 -0
  338. package/core/models/api.options.ts +5 -0
  339. package/core/models/base.options.ts +11 -0
  340. package/core/models/cmplib.ts +7 -0
  341. package/core/models/data-source.options.ts +11 -0
  342. package/core/models/data.options.ts +6 -0
  343. package/core/models/design-build.ts +26 -0
  344. package/core/models/design-config.ts +14 -0
  345. package/core/models/design-tree-node.ts +16 -0
  346. package/core/models/event-desc.ts +28 -0
  347. package/core/models/event-handler.ts +6 -0
  348. package/core/models/event.options.ts +14 -0
  349. package/core/models/examples.ts +21 -0
  350. package/core/models/form-registe.options.ts +12 -0
  351. package/core/models/fun-field.options.ts +6 -0
  352. package/core/models/initobs.ts +8 -0
  353. package/core/models/options-node.ts +149 -0
  354. package/core/models/static-data-source.options.ts +4 -0
  355. package/core/models/trigge-events.options.ts +3 -0
  356. package/core/models/value-access.options.ts +10 -0
  357. package/core/ng-package.json +5 -0
  358. package/core/pipes/how-long.pipe.ts +69 -0
  359. package/core/public-api.ts +39 -0
  360. package/core/share/api-handler/api-handler.css +0 -0
  361. package/core/share/api-handler/api-handler.html +38 -0
  362. package/core/share/api-handler/api-handler.ts +51 -0
  363. package/core/share/array-filter-handler/array-filter-handler.css +0 -0
  364. package/core/share/array-filter-handler/array-filter-handler.html +26 -0
  365. package/core/share/array-filter-handler/array-filter-handler.ts +65 -0
  366. package/core/share/array-filter-handler/input-filter-options/filter-options.css +19 -0
  367. package/core/share/array-filter-handler/input-filter-options/filter-options.html +57 -0
  368. package/core/share/array-filter-handler/input-filter-options/filter-options.ts +100 -0
  369. package/core/share/base-design-setting/base-design-setting.css +0 -0
  370. package/core/share/base-design-setting/base-design-setting.html +50 -0
  371. package/core/share/base-design-setting/base-design-setting.ts +55 -0
  372. package/core/share/base-event-handler-descs.ts +100 -0
  373. package/core/share/common-menu/common-menu.css +0 -0
  374. package/core/share/common-menu/common-menu.html +21 -0
  375. package/core/share/common-menu/common-menu.ts +73 -0
  376. package/core/share/data-handler/data-handler.css +0 -0
  377. package/core/share/data-handler/data-handler.html +13 -0
  378. package/core/share/data-handler/data-handler.ts +39 -0
  379. package/core/share/events-handler.service.ts +185 -0
  380. package/core/share/fun-field/fun-field.css +55 -0
  381. package/core/share/fun-field/fun-field.html +175 -0
  382. package/core/share/fun-field/fun-field.ts +363 -0
  383. package/core/share/input-trigger/input-trigger.css +16 -0
  384. package/core/share/input-trigger/input-trigger.html +114 -0
  385. package/core/share/input-trigger/input-trigger.ts +394 -0
  386. package/core/share/msg-tip-handler/msg-tip-handler.css +0 -0
  387. package/core/share/msg-tip-handler/msg-tip-handler.html +40 -0
  388. package/core/share/msg-tip-handler/msg-tip-handler.ts +46 -0
  389. package/core/share/refresh-data-source-handler/refresh-data-source-handler.css +0 -0
  390. package/core/share/refresh-data-source-handler/refresh-data-source-handler.html +29 -0
  391. package/core/share/refresh-data-source-handler/refresh-data-source-handler.ts +55 -0
  392. package/core/share/route-handler/route-handler.css +0 -0
  393. package/core/share/route-handler/route-handler.html +49 -0
  394. package/core/share/route-handler/route-handler.ts +51 -0
  395. package/core/share/set-data-source-handler/set-data-source-handler.css +0 -0
  396. package/core/share/set-data-source-handler/set-data-source-handler.html +23 -0
  397. package/core/share/set-data-source-handler/set-data-source-handler.ts +44 -0
  398. package/core/share/simple-menu/simple-menu.css +0 -0
  399. package/core/share/simple-menu/simple-menu.html +5 -0
  400. package/core/share/simple-menu/simple-menu.ts +17 -0
  401. package/core/share/tokens.ts +29 -0
  402. package/core/share/value-design-setting/value-design-setting.css +0 -0
  403. package/core/share/value-design-setting/value-design-setting.html +48 -0
  404. package/core/share/value-design-setting/value-design-setting.ts +54 -0
  405. package/core/utils/code-name.utils.ts +19 -0
  406. package/core/utils/components-loader.ts +29 -0
  407. package/core/utils/declaration.utils.ts +38 -0
  408. package/core/utils/dynamic.util.ts +57 -0
  409. package/core/utils/form-validators.ts +160 -0
  410. package/core/utils/form.util.ts +25 -0
  411. package/core/utils/http.utils.ts +8 -0
  412. package/core/utils/object.utils.ts +182 -0
  413. package/core/utils/scripts-loader.ts +25 -0
  414. package/ng-package.json +12 -0
  415. package/package.json +16 -217
  416. package/providers/ng-package.json +5 -0
  417. package/{fesm2022/ngx-axis-appforge-providers.mjs → providers/providers.ts} +8 -16
  418. package/providers/public-api.ts +1 -0
  419. package/public-api.ts +1 -0
  420. package/tsconfig.json +35 -0
  421. package/tsconfig.lib.json +19 -0
  422. package/tsconfig.lib.prod.json +11 -0
  423. package/axis-components/badge/design/index.d.ts +0 -5
  424. package/axis-components/badge/index.d.ts +0 -27
  425. package/axis-components/button/design/index.d.ts +0 -5
  426. package/axis-components/button/index.d.ts +0 -32
  427. package/axis-components/desc/design/index.d.ts +0 -5
  428. package/axis-components/desc/index.d.ts +0 -30
  429. package/axis-components/design/design/index.d.ts +0 -5
  430. package/axis-components/design/index.d.ts +0 -246
  431. package/axis-components/dynamic-container/design/index.d.ts +0 -5
  432. package/axis-components/dynamic-container/index.d.ts +0 -14
  433. package/axis-components/editor/index.d.ts +0 -33
  434. package/axis-components/flex/design/index.d.ts +0 -5
  435. package/axis-components/flex/index.d.ts +0 -20
  436. package/axis-components/form/design/index.d.ts +0 -5
  437. package/axis-components/form/index.d.ts +0 -30
  438. package/axis-components/form-item/design/index.d.ts +0 -5
  439. package/axis-components/form-item/index.d.ts +0 -34
  440. package/axis-components/icon/design/index.d.ts +0 -5
  441. package/axis-components/icon/index.d.ts +0 -16
  442. package/axis-components/image/design/index.d.ts +0 -5
  443. package/axis-components/image/index.d.ts +0 -16
  444. package/axis-components/index.d.ts +0 -5
  445. package/axis-components/input/design/index.d.ts +0 -5
  446. package/axis-components/input/index.d.ts +0 -27
  447. package/axis-components/input-component/design/index.d.ts +0 -5
  448. package/axis-components/input-component/index.d.ts +0 -33
  449. package/axis-components/input-icon/design/index.d.ts +0 -5
  450. package/axis-components/input-icon/index.d.ts +0 -24
  451. package/axis-components/input-json/design/index.d.ts +0 -5
  452. package/axis-components/input-json/index.d.ts +0 -24
  453. package/axis-components/input-number/design/index.d.ts +0 -5
  454. package/axis-components/input-number/index.d.ts +0 -25
  455. package/axis-components/modal/design/index.d.ts +0 -5
  456. package/axis-components/modal/index.d.ts +0 -33
  457. package/axis-components/scope/design/index.d.ts +0 -5
  458. package/axis-components/scope/index.d.ts +0 -24
  459. package/axis-components/single-selector/design/index.d.ts +0 -5
  460. package/axis-components/single-selector/index.d.ts +0 -37
  461. package/axis-components/splitter/design/index.d.ts +0 -5
  462. package/axis-components/splitter/index.d.ts +0 -28
  463. package/axis-components/table/design/index.d.ts +0 -5
  464. package/axis-components/table/index.d.ts +0 -183
  465. package/axis-components/text/design/index.d.ts +0 -5
  466. package/axis-components/text/index.d.ts +0 -24
  467. package/axis-components/textarea/design/index.d.ts +0 -5
  468. package/axis-components/textarea/index.d.ts +0 -25
  469. package/axis-components/tree-selector/design/index.d.ts +0 -5
  470. package/axis-components/tree-selector/index.d.ts +0 -76
  471. package/axis-components/upload/design/index.d.ts +0 -5
  472. package/axis-components/upload/index.d.ts +0 -51
  473. package/core/index.d.ts +0 -773
  474. package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs +0 -191
  475. package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs.map +0 -1
  476. package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs +0 -39
  477. package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs.map +0 -1
  478. package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs +0 -116
  479. package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs.map +0 -1
  480. package/fesm2022/ngx-axis-appforge-axis-components-button.mjs +0 -78
  481. package/fesm2022/ngx-axis-appforge-axis-components-button.mjs.map +0 -1
  482. package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs +0 -224
  483. package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs.map +0 -1
  484. package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs +0 -51
  485. package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs.map +0 -1
  486. package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs +0 -69
  487. package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs.map +0 -1
  488. package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +0 -1746
  489. package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +0 -1
  490. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs +0 -65
  491. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs.map +0 -1
  492. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs +0 -26
  493. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs.map +0 -1
  494. package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs +0 -99
  495. package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs.map +0 -1
  496. package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs +0 -98
  497. package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs.map +0 -1
  498. package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs +0 -31
  499. package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs.map +0 -1
  500. package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs +0 -108
  501. package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs.map +0 -1
  502. package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs +0 -242
  503. package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs.map +0 -1
  504. package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs +0 -144
  505. package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs.map +0 -1
  506. package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +0 -132
  507. package/fesm2022/ngx-axis-appforge-axis-components-form.mjs.map +0 -1
  508. package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs +0 -88
  509. package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs.map +0 -1
  510. package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs +0 -28
  511. package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs.map +0 -1
  512. package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs +0 -75
  513. package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs.map +0 -1
  514. package/fesm2022/ngx-axis-appforge-axis-components-image.mjs +0 -43
  515. package/fesm2022/ngx-axis-appforge-axis-components-image.mjs.map +0 -1
  516. package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs +0 -70
  517. package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs.map +0 -1
  518. package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs +0 -61
  519. package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs.map +0 -1
  520. package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs +0 -142
  521. package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs.map +0 -1
  522. package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs +0 -71
  523. package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs.map +0 -1
  524. package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs +0 -64
  525. package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs.map +0 -1
  526. package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs +0 -60
  527. package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs.map +0 -1
  528. package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs +0 -70
  529. package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs.map +0 -1
  530. package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs +0 -107
  531. package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs.map +0 -1
  532. package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs +0 -48
  533. package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs.map +0 -1
  534. package/fesm2022/ngx-axis-appforge-axis-components-input.mjs +0 -68
  535. package/fesm2022/ngx-axis-appforge-axis-components-input.mjs.map +0 -1
  536. package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs +0 -181
  537. package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs.map +0 -1
  538. package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs +0 -74
  539. package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs.map +0 -1
  540. package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs +0 -330
  541. package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs.map +0 -1
  542. package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs +0 -55
  543. package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs.map +0 -1
  544. package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs +0 -120
  545. package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs.map +0 -1
  546. package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs +0 -102
  547. package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs.map +0 -1
  548. package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs +0 -178
  549. package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs.map +0 -1
  550. package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs +0 -49
  551. package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs.map +0 -1
  552. package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +0 -442
  553. package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +0 -1
  554. package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +0 -452
  555. package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +0 -1
  556. package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs +0 -95
  557. package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs.map +0 -1
  558. package/fesm2022/ngx-axis-appforge-axis-components-text.mjs +0 -64
  559. package/fesm2022/ngx-axis-appforge-axis-components-text.mjs.map +0 -1
  560. package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs +0 -94
  561. package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs.map +0 -1
  562. package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs +0 -64
  563. package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs.map +0 -1
  564. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs +0 -222
  565. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs.map +0 -1
  566. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs +0 -295
  567. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs.map +0 -1
  568. package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs +0 -146
  569. package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs.map +0 -1
  570. package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs +0 -156
  571. package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs.map +0 -1
  572. package/fesm2022/ngx-axis-appforge-axis-components.mjs +0 -988
  573. package/fesm2022/ngx-axis-appforge-axis-components.mjs.map +0 -1
  574. package/fesm2022/ngx-axis-appforge-core.mjs +0 -3169
  575. package/fesm2022/ngx-axis-appforge-core.mjs.map +0 -1
  576. package/fesm2022/ngx-axis-appforge-providers.mjs.map +0 -1
  577. package/fesm2022/ngx-axis-appforge.mjs +0 -6
  578. package/fesm2022/ngx-axis-appforge.mjs.map +0 -1
  579. package/index.d.ts +0 -2
  580. package/providers/index.d.ts +0 -13
@@ -1,78 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { signal, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { BaseOptions, Base, DynamicDirective } from 'ngx-axis-appforge/core';
4
- import * as i2 from 'ng-zorro-antd/button';
5
- import { NzButtonModule } from 'ng-zorro-antd/button';
6
- import { CommonModule } from '@angular/common';
7
- import * as i5 from 'ng-zorro-antd/popconfirm';
8
- import { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';
9
- import { finalize } from 'rxjs';
10
- import * as i1 from 'ng-zorro-antd/modal';
11
- import { NzModalModule } from 'ng-zorro-antd/modal';
12
- import * as i3 from 'ng-zorro-antd/core/transition-patch';
13
- import * as i4 from 'ng-zorro-antd/core/wave';
14
-
15
- class ButtonOptions extends BaseOptions {
16
- title = signal("", ...(ngDevMode ? [{ debugName: "title" }] : []));
17
- icon = signal(undefined, ...(ngDevMode ? [{ debugName: "icon" }] : []));
18
- confirm = signal(false, ...(ngDevMode ? [{ debugName: "confirm" }] : []));
19
- confirmType = signal("modal", ...(ngDevMode ? [{ debugName: "confirmType" }] : []));
20
- confirmText = signal("是否确认?", ...(ngDevMode ? [{ debugName: "confirmText" }] : []));
21
- disabledBtn = signal(false, ...(ngDevMode ? [{ debugName: "disabledBtn" }] : []));
22
- styleType = signal("default", ...(ngDevMode ? [{ debugName: "styleType" }] : []));
23
- ghost = signal(false, ...(ngDevMode ? [{ debugName: "ghost" }] : []));
24
- size = signal("default", ...(ngDevMode ? [{ debugName: "size" }] : []));
25
- block = signal(false, ...(ngDevMode ? [{ debugName: "block" }] : []));
26
- danger = signal(false, ...(ngDevMode ? [{ debugName: "danger" }] : []));
27
- shape = signal(null, ...(ngDevMode ? [{ debugName: "shape" }] : []));
28
- }
29
-
30
- class Button extends Base {
31
- modal;
32
- constructor(modal) {
33
- super();
34
- this.modal = modal;
35
- }
36
- options = new ButtonOptions();
37
- loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : []));
38
- buttonClick() {
39
- if (this.loading()) {
40
- return;
41
- }
42
- if (this.options.confirm() && this.options.confirmType() == "modal") {
43
- this.modal.confirm({
44
- nzContent: this.options.confirmText(),
45
- nzOnOk: () => {
46
- this.doSomething();
47
- }
48
- });
49
- }
50
- else if (!this.options.confirm()) {
51
- this.doSomething();
52
- }
53
- }
54
- popConfirm() {
55
- if (this.options.confirm() && this.options.confirmType() == "pop") {
56
- this.doSomething();
57
- }
58
- }
59
- doSomething() {
60
- this.loading.set(true);
61
- this.triggeEvents("buttonClick")
62
- .pipe(finalize(() => this.loading.set(false)))
63
- .subscribe();
64
- }
65
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: Button, deps: [{ token: i1.NzModalService }], target: i0.ɵɵFactoryTarget.Component });
66
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.2", type: Button, isStandalone: true, selector: "axis-button", usesInheritance: true, ngImport: i0, template: "<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\">\n @if (options.icon()) {\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n <span style=\"margin-right: 10px;\"></span>\n }\n }\n {{options.title()}}\n</button>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzPopconfirmModule }, { kind: "directive", type: i5.NzPopconfirmDirective, selector: "[nz-popconfirm]", inputs: ["nzPopconfirmArrowPointAtCenter", "nzPopconfirmTitle", "nzPopconfirmTitleContext", "nz-popconfirm", "nzPopconfirmTrigger", "nzPopconfirmPlacement", "nzPopconfirmOrigin", "nzPopconfirmMouseEnterDelay", "nzPopconfirmMouseLeaveDelay", "nzPopconfirmOverlayClassName", "nzPopconfirmOverlayStyle", "nzPopconfirmVisible", "nzBeforeConfirm", "nzIcon", "nzCondition", "nzPopconfirmShowArrow", "nzPopconfirmBackdrop", "nzAutofocus", "nzOkText", "nzOkType", "nzCancelText", "nzOkButtonProps", "nzCancelButtonProps", "nzOkDisabled", "nzOkDanger"], outputs: ["nzPopconfirmVisibleChange", "nzOnCancel", "nzOnConfirm"], exportAs: ["nzPopconfirm"] }, { kind: "ngmodule", type: NzModalModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
67
- }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: Button, decorators: [{
69
- type: Component,
70
- args: [{ selector: 'axis-button', imports: [CommonModule, DynamicDirective, NzButtonModule, NzPopconfirmModule, NzModalModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\">\n @if (options.icon()) {\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n <span style=\"margin-right: 10px;\"></span>\n }\n }\n {{options.title()}}\n</button>", styles: [":host{display:block}\n"] }]
71
- }], ctorParameters: () => [{ type: i1.NzModalService }] });
72
-
73
- /**
74
- * Generated bundle index. Do not edit.
75
- */
76
-
77
- export { Button };
78
- //# sourceMappingURL=ngx-axis-appforge-axis-components-button.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-axis-appforge-axis-components-button.mjs","sources":["../../../axis-components/button/button.options.ts","../../../axis-components/button/button.ts","../../../axis-components/button/button.html","../../../axis-components/button/ngx-axis-appforge-axis-components-button.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions } from \"ngx-axis-appforge/core\";\n\nexport class ButtonOptions extends BaseOptions {\n readonly title = signal<string>(\"\");\n readonly icon = signal<any>(undefined);\n readonly confirm = signal<boolean>(false);\n readonly confirmType = signal<\"modal\" | \"pop\">(\"modal\");\n readonly confirmText = signal<string>(\"是否确认?\");\n readonly disabledBtn = signal<boolean>(false);\n readonly styleType = signal<\"default\" | \"primary\" | \"dashed\" | \"link\" | \"text\">(\"default\");\n readonly ghost = signal<boolean>(false);\n readonly size = signal<\"large\" | \"small\" | \"default\">(\"default\");\n readonly block = signal<boolean>(false);\n readonly danger = signal<boolean>(false);\n readonly shape = signal<null | \"circle\" | \"round\">(null);\n}","import { ChangeDetectionStrategy, Component, signal } from '@angular/core';\nimport { ButtonOptions } from './button.options';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { CommonModule } from '@angular/common';\nimport { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';\nimport { DynamicDirective, Base } from 'ngx-axis-appforge/core';\nimport { finalize } from 'rxjs';\nimport { NzModalModule, NzModalService } from 'ng-zorro-antd/modal';\n\n@Component({\n selector: 'axis-button',\n imports: [CommonModule, DynamicDirective, NzButtonModule, NzPopconfirmModule, NzModalModule],\n templateUrl: './button.html',\n styleUrl: './button.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Button extends Base<ButtonOptions> {\n\n constructor(private modal: NzModalService) {\n super();\n }\n\n protected override options: ButtonOptions = new ButtonOptions();\n\n loading = signal(false);\n\n buttonClick() {\n if (this.loading()) {\n return;\n }\n if (this.options.confirm() && this.options.confirmType() == \"modal\") {\n this.modal.confirm({\n nzContent: this.options.confirmText(),\n nzOnOk: () => {\n this.doSomething();\n }\n })\n } else if (!this.options.confirm()) {\n this.doSomething();\n }\n }\n\n popConfirm() {\n if (this.options.confirm() && this.options.confirmType() == \"pop\") {\n this.doSomething();\n }\n }\n\n doSomething() {\n this.loading.set(true);\n this.triggeEvents(\"buttonClick\")\n .pipe(finalize(() => this.loading.set(false)))\n .subscribe();\n }\n\n}\n","<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\">\n @if (options.icon()) {\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n <span style=\"margin-right: 10px;\"></span>\n }\n }\n {{options.title()}}\n</button>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './button';\n"],"names":[],"mappings":";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AAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAKhF,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPlB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,OAAA,EACd,CAAC,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,CAAC,EAAA,eAAA,EAG3E,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,0sBAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEdjD;;AAEG;;;;"}
@@ -1,224 +0,0 @@
1
- import { FunFieldValueBase, FormValidators, baseFbConfig, baseFunField, BaseDesignSetting, FunField, DynamicDirective, BaseMenu, OptionsNode, SimpleMenu, nameCode } from 'ngx-axis-appforge/core';
2
- import * as i0 from '@angular/core';
3
- import { ChangeDetectionStrategy, Component } from '@angular/core';
4
- import * as i1 from '@angular/forms';
5
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
6
- import * as i4 from 'ng-zorro-antd/collapse';
7
- import { NzCollapseModule } from 'ng-zorro-antd/collapse';
8
- import * as i3 from 'ng-zorro-antd/form';
9
- import { NzFormModule } from 'ng-zorro-antd/form';
10
- import * as i5 from 'ng-zorro-antd/input';
11
- import { NzInputModule } from 'ng-zorro-antd/input';
12
- import * as i6 from 'ng-zorro-antd/input-number';
13
- import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
14
- import * as i8 from 'ng-zorro-antd/radio';
15
- import { NzRadioModule } from 'ng-zorro-antd/radio';
16
- import * as i7 from 'ng-zorro-antd/switch';
17
- import { NzSwitchModule } from 'ng-zorro-antd/switch';
18
- import * as i2 from 'ng-zorro-antd/grid';
19
- import * as i3$1 from 'ng-zorro-antd/divider';
20
- import { NzDividerModule } from 'ng-zorro-antd/divider';
21
- import * as i2$1 from 'ng-zorro-antd/dropdown';
22
- import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
23
- import * as i4$1 from 'ng-zorro-antd/icon';
24
- import { NzIconModule } from 'ng-zorro-antd/icon';
25
- import * as i1$1 from 'ng-zorro-antd/menu';
26
-
27
- class DescSetting extends FunFieldValueBase {
28
- fg = this.fb.group({
29
- ...baseFbConfig,
30
- title: [],
31
- column: [undefined, FormValidators.requiredFun],
32
- bordered: [undefined, FormValidators.requiredFun],
33
- size: [undefined, FormValidators.requiredFun],
34
- colon: [undefined, FormValidators.requiredFun],
35
- data: [],
36
- });
37
- funFields = {
38
- ...baseFunField,
39
- title: {
40
- defaultValue: ""
41
- },
42
- column: {
43
- defaultValue: 3
44
- },
45
- bordered: {
46
- defaultValue: true
47
- },
48
- size: {
49
- defaultValue: "default"
50
- },
51
- colon: {
52
- defaultValue: true
53
- },
54
- data: {
55
- defaultValue: undefined
56
- },
57
- };
58
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: DescSetting, deps: null, target: i0.ɵɵFactoryTarget.Component });
59
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.2", type: DescSetting, isStandalone: true, selector: "axis-design-desc-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5217\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"column\">\n <nz-input-number style=\"width:100%;\" nzMin=\"1\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u8FB9\u6846\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"bordered\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.bordered.funMode || formValue()?.bordered.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n <label nz-radio-button nzValue=\"middle\">\u4E2D</label>\n <label nz-radio-button nzValue=\"default\">\u5927</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5192\u53F7\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"colon\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6570\u636E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"data\" #dataFunField>\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i3.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i4.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition"], exportAs: ["nzCollapse"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: FunField, selector: "axis-fun-field", inputs: ["scopes", "exclude", "scopeId", "onlyFun", "noListen", "disabled", "editTip", "value", "open", "showCreateListenModal", "createListenDataSourceName"], outputs: ["valueChange", "openChange", "showCreateListenModalChange", "createListenDataSourceNameChange"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i6.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i7.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i8.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i8.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
60
- }
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: DescSetting, decorators: [{
62
- type: Component,
63
- args: [{ selector: 'axis-design-desc-setting', imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, NzInputModule, NzInputNumberModule, NzSwitchModule, NzRadioModule, DynamicDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5217\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"column\">\n <nz-input-number style=\"width:100%;\" nzMin=\"1\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u8FB9\u6846\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"bordered\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.bordered.funMode || formValue()?.bordered.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n <label nz-radio-button nzValue=\"middle\">\u4E2D</label>\n <label nz-radio-button nzValue=\"default\">\u5927</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5192\u53F7\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"colon\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6570\u636E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"data\" #dataFunField>\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>" }]
64
- }] });
65
-
66
- class DescItemSetting extends FunFieldValueBase {
67
- fg = this.fb.group({
68
- inuse: [undefined, FormValidators.requiredFun],
69
- title: [],
70
- field: [],
71
- span: [undefined, FormValidators.requiredFun],
72
- });
73
- funFields = {
74
- inuse: {
75
- defaultValue: true
76
- },
77
- title: {
78
- defaultValue: ""
79
- },
80
- field: {
81
- defaultValue: ""
82
- },
83
- span: {
84
- defaultValue: 1
85
- },
86
- };
87
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: DescItemSetting, deps: null, target: i0.ɵɵFactoryTarget.Component });
88
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.2", type: DescItemSetting, isStandalone: true, selector: "axis-design-desc-item-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u662F\u5426\u53EF\u7528\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"inuse\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5B57\u6BB5\u540D\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"field\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5217\u5BBD\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"span\">\n <nz-input-number style=\"width:100%;\" nzMin=\"1\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i3.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i4.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition"], exportAs: ["nzCollapse"] }, { kind: "component", type: FunField, selector: "axis-fun-field", inputs: ["scopes", "exclude", "scopeId", "onlyFun", "noListen", "disabled", "editTip", "value", "open", "showCreateListenModal", "createListenDataSourceName"], outputs: ["valueChange", "openChange", "showCreateListenModalChange", "createListenDataSourceNameChange"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i6.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i7.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
89
- }
90
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: DescItemSetting, decorators: [{
91
- type: Component,
92
- args: [{ selector: 'axis-design-desc-item-setting', imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, FunField, NzInputModule, NzInputNumberModule, NzSwitchModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u662F\u5426\u53EF\u7528\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"inuse\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5B57\u6BB5\u540D\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"field\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5217\u5BBD\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"span\">\n <nz-input-number style=\"width:100%;\" nzMin=\"1\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n </nz-collapse>\n</form>" }]
93
- }] });
94
-
95
- class DescItemsMenu extends BaseMenu {
96
- addItem() {
97
- this.optionsNodes.current.options.push({
98
- inuse: true,
99
- title: "未命名"
100
- });
101
- this.onChange();
102
- }
103
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: DescItemsMenu, deps: null, target: i0.ɵɵFactoryTarget.Component });
104
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.2", type: DescItemsMenu, isStandalone: true, selector: "axis-design-desc-items-menu", usesInheritance: true, ngImport: i0, template: "<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n <li nz-menu-item (click)=\"addItem()\">\n <i nz-icon nzType=\"plus\" nzTheme=\"outline\"></i>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <span>\u6DFB\u52A0\u63CF\u8FF0\u9879</span>\n </li>\n </ul>\n</nz-dropdown-menu>", styles: [""], dependencies: [{ kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i1$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i1$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "component", type: i2$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzDividerModule }, { kind: "component", type: i3$1.NzDividerComponent, selector: "nz-divider", inputs: ["nzText", "nzType", "nzOrientation", "nzVariant", "nzDashed", "nzPlain"], exportAs: ["nzDivider"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i4$1.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
105
- }
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: DescItemsMenu, decorators: [{
107
- type: Component,
108
- args: [{ selector: 'axis-design-desc-items-menu', imports: [NzDropDownModule, NzDividerModule, NzIconModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n <li nz-menu-item (click)=\"addItem()\">\n <i nz-icon nzType=\"plus\" nzTheme=\"outline\"></i>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <span>\u6DFB\u52A0\u63CF\u8FF0\u9879</span>\n </li>\n </ul>\n</nz-dropdown-menu>" }]
109
- }] });
110
-
111
- const Config = {
112
- componentName: "描述",
113
- buildOptionsNodes(nextInfo) {
114
- const next = [];
115
- const itemsChildren = [];
116
- const itemsNode = new OptionsNode({
117
- id: nextInfo.currentObject.id + ".items",
118
- parentId: nextInfo.currentObject.id,
119
- scopeId: nextInfo.scopeId,
120
- rootOptions: nextInfo.currentObject.items,
121
- contextMenu: DescItemsMenu,
122
- name: `描述项[${nextInfo.currentObject.items?.length ?? 0}]`,
123
- canDrop: true,
124
- dropType: "axis-components/desc/desc-item",
125
- dropObj: nextInfo.currentObject.items,
126
- defaultDropIndex: nextInfo.currentObject.items?.length ?? 0,
127
- childDirection: 'vertical',
128
- icon: "project",
129
- children: itemsChildren
130
- });
131
- nextInfo.currentObject.items?.forEach((r, i) => {
132
- next.push({
133
- parentId: itemsNode.id + "." + i,
134
- parentObject: r,
135
- indexOfParent: "child",
136
- scopeId: nextInfo.scopeId
137
- });
138
- itemsChildren.push(new OptionsNode({
139
- id: itemsNode.id + "." + i,
140
- scopeId: itemsNode.scopeId,
141
- parentId: itemsNode.id,
142
- parentObj: itemsNode.options,
143
- indexOfParentObj: i,
144
- rootOptions: r,
145
- name: nameCode("描述项", r.title),
146
- icon: "profile",
147
- canSetting: true,
148
- settingType: DescItemSetting,
149
- contextMenu: SimpleMenu,
150
- canDrag: true,
151
- dragType: "axis-components/desc/desc-item",
152
- canDrop: true,
153
- dropType: "component",
154
- dropObj: r,
155
- defaultDropIndex: "child",
156
- children: []
157
- }));
158
- });
159
- const extraNode = new OptionsNode({
160
- id: nextInfo.currentObject.id + ".extra",
161
- parentId: nextInfo.currentObject.id,
162
- scopeId: nextInfo.scopeId,
163
- rootOptions: nextInfo.currentObject,
164
- name: "操作",
165
- contextMenu: SimpleMenu,
166
- canDrop: true,
167
- dropType: "component",
168
- dropObj: nextInfo.currentObject,
169
- defaultDropIndex: "extra",
170
- icon: "control",
171
- children: []
172
- });
173
- next.push({
174
- parentId: extraNode.id,
175
- parentObject: extraNode.options,
176
- indexOfParent: "extra",
177
- scopeId: extraNode.scopeId
178
- });
179
- return {
180
- treeNode: new OptionsNode({
181
- parentId: nextInfo.parentId,
182
- scopeId: nextInfo.scopeId,
183
- name: nameCode("描述", nextInfo.currentObject.title),
184
- canSetting: true,
185
- canDrag: true,
186
- dragType: "component",
187
- parentObj: nextInfo.parentObject,
188
- indexOfParentObj: nextInfo.indexOfParent,
189
- rootOptions: nextInfo.currentObject,
190
- settingType: DescSetting,
191
- contextMenu: SimpleMenu,
192
- icon: "file-text",
193
- children: [
194
- itemsNode,
195
- extraNode
196
- ],
197
- }),
198
- next: next
199
- };
200
- },
201
- bindElementsOptionsNode(element, options) {
202
- const itemsElement = element.querySelector(".ant-descriptions-view");
203
- const res = {
204
- [options.id]: { element: element },
205
- [`${options.id}.items`]: { element: itemsElement, dropElement: itemsElement }
206
- };
207
- const items = element.querySelectorAll(".ant-descriptions-item-content>div[data-index]");
208
- items.forEach((e) => {
209
- const element = e.parentElement?.previousElementSibling;
210
- res[`${options.id}.items.${e.dataset['index']}`] = {
211
- element: element,
212
- dropElement: e.parentElement
213
- };
214
- });
215
- return res;
216
- },
217
- };
218
-
219
- /**
220
- * Generated bundle index. Do not edit.
221
- */
222
-
223
- export { Config };
224
- //# sourceMappingURL=ngx-axis-appforge-axis-components-desc-design.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-axis-appforge-axis-components-desc-design.mjs","sources":["../../../axis-components/desc/design/desc-setting/desc-setting.ts","../../../axis-components/desc/design/desc-setting/desc-setting.html","../../../axis-components/desc/design/desc-item-setting/desc-item-setting.ts","../../../axis-components/desc/design/desc-item-setting/desc-item-setting.html","../../../axis-components/desc/design/desc-items-menu/desc-items-menu.ts","../../../axis-components/desc/design/desc-items-menu/desc-items-menu.html","../../../axis-components/desc/design/config.ts","../../../axis-components/desc/design/ngx-axis-appforge-axis-components-desc-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, DynamicDirective, FormValidators, FunField, FunFieldOptions, FunFieldValueBase } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-desc-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, NzInputModule, NzInputNumberModule, NzSwitchModule, NzRadioModule, DynamicDirective],\n templateUrl: './desc-setting.html',\n styleUrl: './desc-setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DescSetting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n title: [],\n column: [undefined, FormValidators.requiredFun],\n bordered: [undefined, FormValidators.requiredFun],\n size: [undefined, FormValidators.requiredFun],\n colon: [undefined, FormValidators.requiredFun],\n data: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n title: {\n defaultValue: \"\"\n },\n column: {\n defaultValue: 3\n },\n bordered: {\n defaultValue: true\n },\n size: {\n defaultValue: \"default\"\n },\n colon: {\n defaultValue: true\n },\n data: {\n defaultValue: undefined\n },\n };\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"基本设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 标题\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 列数\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"column\">\n <nz-input-number style=\"width:100%;\" nzMin=\"1\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 边框\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"bordered\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.bordered.funMode || formValue()?.bordered.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 大小\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"small\">小</label>\n <label nz-radio-button nzValue=\"middle\">中</label>\n <label nz-radio-button nzValue=\"default\">大</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 冒号\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"colon\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 数据\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"data\" #dataFunField>\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { FormValidators, FunField, FunFieldOptions, FunFieldValueBase } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-desc-item-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, FunField, NzInputModule, NzInputNumberModule, NzSwitchModule],\n templateUrl: './desc-item-setting.html',\n styleUrl: './desc-item-setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DescItemSetting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n inuse: [undefined, FormValidators.requiredFun],\n title: [],\n field: [],\n span: [undefined, FormValidators.requiredFun],\n });\n\n protected override funFields: FunFieldOptions = {\n inuse: {\n defaultValue: true\n },\n title: {\n defaultValue: \"\"\n },\n field: {\n defaultValue: \"\"\n },\n span: {\n defaultValue: 1\n },\n };\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"基本设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 是否可用\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"inuse\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 标题\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 字段名\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"field\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 列宽\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"span\">\n <nz-input-number style=\"width:100%;\" nzMin=\"1\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n </nz-collapse>\n</form>","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { NzDividerModule } from 'ng-zorro-antd/divider';\nimport { NzDropDownModule } from 'ng-zorro-antd/dropdown';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { BaseMenu } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-desc-items-menu',\n imports: [NzDropDownModule, NzDividerModule, NzIconModule],\n templateUrl: './desc-items-menu.html',\n styleUrl: './desc-items-menu.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DescItemsMenu extends BaseMenu {\n\n addItem() {\n this.optionsNodes.current.options.push({\n inuse: true,\n title: \"未命名\"\n });\n this.onChange();\n }\n}\n","<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n <li nz-menu-item (click)=\"addItem()\">\n <i nz-icon nzType=\"plus\" nzTheme=\"outline\"></i>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <span>添加描述项</span>\n </li>\n </ul>\n</nz-dropdown-menu>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, nameCode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { DescSetting } from \"./desc-setting/desc-setting\";\nimport { DescItemSetting } from \"./desc-item-setting/desc-item-setting\";\nimport { DescItemsMenu } from \"./desc-items-menu/desc-items-menu\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"描述\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n const next: NextInfo[] = [];\n const itemsChildren: OptionsNode[] = [];\n const itemsNode = new OptionsNode({\n id: nextInfo.currentObject.id + \".items\",\n parentId: nextInfo.currentObject.id,\n scopeId: nextInfo.scopeId,\n rootOptions: nextInfo.currentObject.items,\n contextMenu: DescItemsMenu,\n name: `描述项[${nextInfo.currentObject.items?.length ?? 0}]`,\n canDrop: true,\n dropType: \"axis-components/desc/desc-item\",\n dropObj: nextInfo.currentObject.items,\n defaultDropIndex: nextInfo.currentObject.items?.length ?? 0,\n childDirection: 'vertical',\n icon: \"project\",\n children: itemsChildren\n });\n nextInfo.currentObject.items?.forEach((r: any, i: number) => {\n next.push({\n parentId: itemsNode.id + \".\" + i,\n parentObject: r,\n indexOfParent: \"child\",\n scopeId: nextInfo.scopeId\n });\n itemsChildren.push(new OptionsNode({\n id: itemsNode.id + \".\" + i,\n scopeId: itemsNode.scopeId,\n parentId: itemsNode.id,\n parentObj: itemsNode.options,\n indexOfParentObj: i,\n rootOptions: r,\n name: nameCode(\"描述项\", r.title),\n icon: \"profile\",\n canSetting: true,\n settingType: DescItemSetting,\n contextMenu: SimpleMenu,\n canDrag: true,\n dragType: \"axis-components/desc/desc-item\",\n canDrop: true,\n dropType: \"component\",\n dropObj: r,\n defaultDropIndex: \"child\",\n children: []\n }));\n });\n const extraNode = new OptionsNode({\n id: nextInfo.currentObject.id + \".extra\",\n parentId: nextInfo.currentObject.id,\n scopeId: nextInfo.scopeId,\n rootOptions: nextInfo.currentObject,\n name: \"操作\",\n contextMenu: SimpleMenu,\n canDrop: true,\n dropType: \"component\",\n dropObj: nextInfo.currentObject,\n defaultDropIndex: \"extra\",\n icon: \"control\",\n children: []\n });\n next.push({\n parentId: extraNode.id,\n parentObject: extraNode.options,\n indexOfParent: \"extra\",\n scopeId: extraNode.scopeId\n });\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: nameCode(\"描述\", nextInfo.currentObject.title),\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: DescSetting,\n contextMenu: SimpleMenu,\n icon: \"file-text\",\n children: [\n itemsNode,\n extraNode\n ],\n }),\n next: next\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n const itemsElement = element.querySelector(\".ant-descriptions-view\") as HTMLElement;\n const res: DesignBindElementsResult = {\n [options.id]: { element: element },\n [`${options.id}.items`]: { element: itemsElement, dropElement: itemsElement }\n };\n const items = element.querySelectorAll(\".ant-descriptions-item-content>div[data-index]\");\n items.forEach((e) => {\n const element = e.parentElement?.previousElementSibling as HTMLElement;\n res[`${options.id}.items.${(e as HTMLElement).dataset['index']}`] = {\n element: element!,\n dropElement: e.parentElement!\n }\n });\n return res;\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":["i1","i2","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAiBM,MAAO,WAAY,SAAQ,iBAAiB,CAAA;AAEvC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,MAAM,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC/C,QAAA,QAAQ,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AACjD,QAAA,IAAI,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC7C,QAAA,KAAK,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC9C,QAAA,IAAI,EAAE,EAAE;AACT,KAAA,CAAC;AAEiB,IAAA,SAAS,GAAoB;AAC9C,QAAA,GAAG,YAAY;AACf,QAAA,KAAK,EAAE;AACL,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,YAAY,EAAE;AAC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AAM,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,wBAAwB,CAAgB;AACnF,QAAA,MAAM,GAAG,GAA6B;YAClC,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE;AAClC,YAAA,CAAC,CAAA,EAAG,OAAO,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY;SAC9E;QACD,MAAM,KAAK,GAAG,OAAO,CAAC,gBAAgB,CAAC,gDAAgD,CAAC;AACxF,QAAA,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAI;AAChB,YAAA,MAAM,OAAO,GAAG,CAAC,CAAC,aAAa,EAAE,sBAAqC;AACtE,YAAA,GAAG,CAAC,CAAA,EAAG,OAAO,CAAC,EAAE,CAAA,OAAA,EAAW,CAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA,CAAE,CAAC,GAAG;AAChE,gBAAA,OAAO,EAAE,OAAQ;gBACjB,WAAW,EAAE,CAAC,CAAC;aAClB;AACL,SAAC,CAAC;AACF,QAAA,OAAO,GAAG;KACb;;;AC/GL;;AAEG;;;;"}
@@ -1,51 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { signal, effect, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { DataOptions, Base, DynamicDirective } from 'ngx-axis-appforge/core';
4
- import * as i1 from 'ng-zorro-antd/descriptions';
5
- import { NzDescriptionsModule } from 'ng-zorro-antd/descriptions';
6
-
7
- class DescOptions extends DataOptions {
8
- title = signal("", ...(ngDevMode ? [{ debugName: "title" }] : []));
9
- column = signal(3, ...(ngDevMode ? [{ debugName: "column" }] : []));
10
- bordered = signal(true, ...(ngDevMode ? [{ debugName: "bordered" }] : []));
11
- size = signal("default", ...(ngDevMode ? [{ debugName: "size" }] : []));
12
- colon = signal(true, ...(ngDevMode ? [{ debugName: "colon" }] : []));
13
- extra = signal([], ...(ngDevMode ? [{ debugName: "extra" }] : []));
14
- items = signal([], ...(ngDevMode ? [{ debugName: "items" }] : []));
15
- }
16
- class DescItemOptions {
17
- inuse = signal(true, ...(ngDevMode ? [{ debugName: "inuse" }] : []));
18
- title = signal("未命名", ...(ngDevMode ? [{ debugName: "title" }] : []));
19
- field = signal("", ...(ngDevMode ? [{ debugName: "field" }] : []));
20
- span = signal(1, ...(ngDevMode ? [{ debugName: "span" }] : []));
21
- child = signal(undefined, ...(ngDevMode ? [{ debugName: "child" }] : []));
22
- }
23
-
24
- class Desc extends Base {
25
- constructor() {
26
- super();
27
- effect(() => {
28
- this.items().forEach((p, i) => {
29
- this.bindWithConfig(this.options.items()[i], { options: p, tag: `bindItems.${i}` });
30
- });
31
- });
32
- }
33
- options = new DescOptions();
34
- items = computed(() => this.buildItems(), ...(ngDevMode ? [{ debugName: "items" }] : []));
35
- buildItems() {
36
- return this.options.items().map(_ => new DescItemOptions());
37
- }
38
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: Desc, deps: [], target: i0.ɵɵFactoryTarget.Component });
39
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.2", type: Desc, isStandalone: true, selector: "axis-desc", usesInheritance: true, ngImport: i0, template: "<nz-descriptions [nzTitle]=\"options.title()\" [nzColumn]=\"options.column()\" [nzBordered]=\"options.bordered()\"\n [nzSize]=\"options.size()\" [nzColon]=\"options.colon()\" [nzExtra]=\"extraTpl\">\n @for (item of items(); track $index;let i=$index) {\n @if (item.inuse()) {\n <nz-descriptions-item [nzTitle]=\"item.title()\" [nzSpan]=\"item.span()\">\n <div [attr.data-index]=\"i\" style=\"display: contents;\">\n @if (item.child()) {\n <ng-container [axisDynamic]=\"item.child()\"></ng-container>\n }@else if(item.field()){\n {{options.data()?.[item.field()]}}\n }\n </div>\n </nz-descriptions-item>\n }\n }\n</nz-descriptions>\n<ng-template #extraTpl>\n <ng-container [axisDynamic]=\"options.extra()\"></ng-container>\n</ng-template>", styles: [":host{display:block;width:100%}::ng-deep nz-descriptions span.ant-descriptions-item-content{display:contents!important}\n"], dependencies: [{ kind: "ngmodule", type: NzDescriptionsModule }, { kind: "component", type: i1.NzDescriptionsComponent, selector: "nz-descriptions", inputs: ["nzBordered", "nzLayout", "nzColumn", "nzSize", "nzTitle", "nzExtra", "nzColon"], exportAs: ["nzDescriptions"] }, { kind: "component", type: i1.NzDescriptionsItemComponent, selector: "nz-descriptions-item", inputs: ["nzSpan", "nzTitle"], exportAs: ["nzDescriptionsItem"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
40
- }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: Desc, decorators: [{
42
- type: Component,
43
- args: [{ selector: 'axis-desc', imports: [NzDescriptionsModule, DynamicDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nz-descriptions [nzTitle]=\"options.title()\" [nzColumn]=\"options.column()\" [nzBordered]=\"options.bordered()\"\n [nzSize]=\"options.size()\" [nzColon]=\"options.colon()\" [nzExtra]=\"extraTpl\">\n @for (item of items(); track $index;let i=$index) {\n @if (item.inuse()) {\n <nz-descriptions-item [nzTitle]=\"item.title()\" [nzSpan]=\"item.span()\">\n <div [attr.data-index]=\"i\" style=\"display: contents;\">\n @if (item.child()) {\n <ng-container [axisDynamic]=\"item.child()\"></ng-container>\n }@else if(item.field()){\n {{options.data()?.[item.field()]}}\n }\n </div>\n </nz-descriptions-item>\n }\n }\n</nz-descriptions>\n<ng-template #extraTpl>\n <ng-container [axisDynamic]=\"options.extra()\"></ng-container>\n</ng-template>", styles: [":host{display:block;width:100%}::ng-deep nz-descriptions span.ant-descriptions-item-content{display:contents!important}\n"] }]
44
- }], ctorParameters: () => [] });
45
-
46
- /**
47
- * Generated bundle index. Do not edit.
48
- */
49
-
50
- export { Desc };
51
- //# sourceMappingURL=ngx-axis-appforge-axis-components-desc.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-axis-appforge-axis-components-desc.mjs","sources":["../../../axis-components/desc/desc.options.ts","../../../axis-components/desc/desc.ts","../../../axis-components/desc/desc.html","../../../axis-components/desc/ngx-axis-appforge-axis-components-desc.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { DataOptions } from \"ngx-axis-appforge/core\";\n\nexport class DescOptions extends DataOptions {\n\n readonly title = signal(\"\");\n readonly column = signal(3);\n readonly bordered = signal(true);\n readonly size = signal<'default' | 'middle' | 'small'>(\"default\");\n readonly colon = signal(true);\n readonly extra = signal<any>([]);\n readonly items = signal<DescItemOptions[]>([]);\n\n}\n\nexport class DescItemOptions {\n\n readonly inuse = signal(true);\n readonly title = signal(\"未命名\");\n readonly field = signal(\"\");\n readonly span = signal(1);\n readonly child = signal<any>(undefined);\n\n}","import { ChangeDetectionStrategy, Component, computed, effect } from '@angular/core';\nimport { DescItemOptions, DescOptions } from './desc.options';\nimport { Base, DynamicDirective } from 'ngx-axis-appforge/core';\nimport { NzDescriptionsModule } from 'ng-zorro-antd/descriptions';\n\n@Component({\n selector: 'axis-desc',\n imports: [NzDescriptionsModule, DynamicDirective],\n templateUrl: './desc.html',\n styleUrl: './desc.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Desc extends Base<DescOptions> {\n\n constructor() {\n super();\n effect(() => {\n this.items().forEach((p, i) => {\n this.bindWithConfig(this.options.items()[i], { options: p, tag: `bindItems.${i}` });\n });\n });\n }\n override options: DescOptions = new DescOptions();\n readonly items = computed(() => this.buildItems());\n\n private buildItems(): DescItemOptions[] {\n return this.options.items().map(_ => new DescItemOptions());\n }\n}\n","<nz-descriptions [nzTitle]=\"options.title()\" [nzColumn]=\"options.column()\" [nzBordered]=\"options.bordered()\"\n [nzSize]=\"options.size()\" [nzColon]=\"options.colon()\" [nzExtra]=\"extraTpl\">\n @for (item of items(); track $index;let i=$index) {\n @if (item.inuse()) {\n <nz-descriptions-item [nzTitle]=\"item.title()\" [nzSpan]=\"item.span()\">\n <div [attr.data-index]=\"i\" style=\"display: contents;\">\n @if (item.child()) {\n <ng-container [axisDynamic]=\"item.child()\"></ng-container>\n }@else if(item.field()){\n {{options.data()?.[item.field()]}}\n }\n </div>\n </nz-descriptions-item>\n }\n }\n</nz-descriptions>\n<ng-template #extraTpl>\n <ng-container [axisDynamic]=\"options.extra()\"></ng-container>\n</ng-template>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './desc';\n"],"names":[],"mappings":";;;;;;AAGM,MAAO,WAAY,SAAQ,WAAW,CAAA;AAE/B,IAAA,KAAK,GAAG,MAAM,CAAC,EAAE,iDAAC;AAClB,IAAA,MAAM,GAAG,MAAM,CAAC,CAAC,kDAAC;AAClB,IAAA,QAAQ,GAAG,MAAM,CAAC,IAAI,oDAAC;AACvB,IAAA,IAAI,GAAG,MAAM,CAAiC,SAAS,gDAAC;AACxD,IAAA,KAAK,GAAG,MAAM,CAAC,IAAI,iDAAC;AACpB,IAAA,KAAK,GAAG,MAAM,CAAM,EAAE,iDAAC;AACvB,IAAA,KAAK,GAAG,MAAM,CAAoB,EAAE,iDAAC;AAEjD;MAEY,eAAe,CAAA;AAEf,IAAA,KAAK,GAAG,MAAM,CAAC,IAAI,iDAAC;AACpB,IAAA,KAAK,GAAG,MAAM,CAAC,KAAK,iDAAC;AACrB,IAAA,KAAK,GAAG,MAAM,CAAC,EAAE,iDAAC;AAClB,IAAA,IAAI,GAAG,MAAM,CAAC,CAAC,gDAAC;AAChB,IAAA,KAAK,GAAG,MAAM,CAAM,SAAS,iDAAC;AAE1C;;ACXK,MAAO,IAAK,SAAQ,IAAiB,CAAA;AAEzC,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QACP,MAAM,CAAC,MAAK;YACV,IAAI,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,KAA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