ngx-axis-appforge 0.0.93 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs +6 -6
  2. package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs.map +1 -1
  3. package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs +17 -17
  4. package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs.map +1 -1
  5. package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs +3 -3
  6. package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs.map +1 -1
  7. package/fesm2022/ngx-axis-appforge-axis-components-button.mjs +17 -17
  8. package/fesm2022/ngx-axis-appforge-axis-components-button.mjs.map +1 -1
  9. package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs +4 -4
  10. package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs.map +1 -1
  11. package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs +13 -13
  12. package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs.map +1 -1
  13. package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs +3 -3
  14. package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs.map +1 -1
  15. package/fesm2022/ngx-axis-appforge-axis-components-color-picker.mjs +10 -10
  16. package/fesm2022/ngx-axis-appforge-axis-components-color-picker.mjs.map +1 -1
  17. package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs +3 -3
  18. package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs.map +1 -1
  19. package/fesm2022/ngx-axis-appforge-axis-components-cytoscape.mjs +3 -3
  20. package/fesm2022/ngx-axis-appforge-axis-components-date-picker-design.mjs +3 -3
  21. package/fesm2022/ngx-axis-appforge-axis-components-date-picker-design.mjs.map +1 -1
  22. package/fesm2022/ngx-axis-appforge-axis-components-date-picker.mjs +19 -19
  23. package/fesm2022/ngx-axis-appforge-axis-components-date-picker.mjs.map +1 -1
  24. package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs +11 -11
  25. package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs.map +1 -1
  26. package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs +16 -16
  27. package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs.map +1 -1
  28. package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs +3 -3
  29. package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs.map +1 -1
  30. package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +174 -207
  31. package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -1
  32. package/fesm2022/ngx-axis-appforge-axis-components-drawer-design.mjs +7 -7
  33. package/fesm2022/ngx-axis-appforge-axis-components-drawer-design.mjs.map +1 -1
  34. package/fesm2022/ngx-axis-appforge-axis-components-drawer.mjs +18 -18
  35. package/fesm2022/ngx-axis-appforge-axis-components-drawer.mjs.map +1 -1
  36. package/fesm2022/ngx-axis-appforge-axis-components-dropdown-design.mjs +6 -6
  37. package/fesm2022/ngx-axis-appforge-axis-components-dropdown-design.mjs.map +1 -1
  38. package/fesm2022/ngx-axis-appforge-axis-components-dropdown.mjs +11 -11
  39. package/fesm2022/ngx-axis-appforge-axis-components-dropdown.mjs.map +1 -1
  40. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs +3 -3
  41. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs.map +1 -1
  42. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs +9 -9
  43. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs.map +1 -1
  44. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value-design.mjs +3 -3
  45. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value-design.mjs.map +1 -1
  46. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value.mjs +6 -6
  47. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value.mjs.map +1 -1
  48. package/fesm2022/ngx-axis-appforge-axis-components-echarts-design.mjs +3 -3
  49. package/fesm2022/ngx-axis-appforge-axis-components-echarts-design.mjs.map +1 -1
  50. package/fesm2022/ngx-axis-appforge-axis-components-echarts.mjs +10 -10
  51. package/fesm2022/ngx-axis-appforge-axis-components-echarts.mjs.map +1 -1
  52. package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs +17 -17
  53. package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs.map +1 -1
  54. package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs +59 -59
  55. package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs.map +1 -1
  56. package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs +3 -3
  57. package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs.map +1 -1
  58. package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs +8 -8
  59. package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs.map +1 -1
  60. package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs +3 -3
  61. package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs.map +1 -1
  62. package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs +10 -10
  63. package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs.map +1 -1
  64. package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs +3 -3
  65. package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs.map +1 -1
  66. package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs +3 -3
  67. package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs.map +1 -1
  68. package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs +10 -10
  69. package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs.map +1 -1
  70. package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +6 -6
  71. package/fesm2022/ngx-axis-appforge-axis-components-form.mjs.map +1 -1
  72. package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs +4 -4
  73. package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs.map +1 -1
  74. package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs +6 -6
  75. package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs.map +1 -1
  76. package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs +3 -3
  77. package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs.map +1 -1
  78. package/fesm2022/ngx-axis-appforge-axis-components-image.mjs +6 -6
  79. package/fesm2022/ngx-axis-appforge-axis-components-image.mjs.map +1 -1
  80. package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs +3 -3
  81. package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs.map +1 -1
  82. package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs +12 -12
  83. package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs.map +1 -1
  84. package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs +3 -3
  85. package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs.map +1 -1
  86. package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs +3 -3
  87. package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs.map +1 -1
  88. package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs +7 -7
  89. package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs.map +1 -1
  90. package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs +3 -3
  91. package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs.map +1 -1
  92. package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs +7 -7
  93. package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs.map +1 -1
  94. package/fesm2022/ngx-axis-appforge-axis-components-input-list-design.mjs +3 -3
  95. package/fesm2022/ngx-axis-appforge-axis-components-input-list-design.mjs.map +1 -1
  96. package/fesm2022/ngx-axis-appforge-axis-components-input-list.mjs +6 -6
  97. package/fesm2022/ngx-axis-appforge-axis-components-input-list.mjs.map +1 -1
  98. package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs +3 -3
  99. package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs.map +1 -1
  100. package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs +15 -15
  101. package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs.map +1 -1
  102. package/fesm2022/ngx-axis-appforge-axis-components-input.mjs +12 -12
  103. package/fesm2022/ngx-axis-appforge-axis-components-input.mjs.map +1 -1
  104. package/fesm2022/ngx-axis-appforge-axis-components-menu-design.mjs +18 -18
  105. package/fesm2022/ngx-axis-appforge-axis-components-menu-design.mjs.map +1 -1
  106. package/fesm2022/ngx-axis-appforge-axis-components-menu.mjs +23 -23
  107. package/fesm2022/ngx-axis-appforge-axis-components-menu.mjs.map +1 -1
  108. package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs +8 -8
  109. package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs.map +1 -1
  110. package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs +18 -18
  111. package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs.map +1 -1
  112. package/fesm2022/ngx-axis-appforge-axis-components-radio-design.mjs +4 -4
  113. package/fesm2022/ngx-axis-appforge-axis-components-radio-design.mjs.map +1 -1
  114. package/fesm2022/ngx-axis-appforge-axis-components-radio.mjs +15 -15
  115. package/fesm2022/ngx-axis-appforge-axis-components-radio.mjs.map +1 -1
  116. package/fesm2022/ngx-axis-appforge-axis-components-rate-design.mjs +3 -3
  117. package/fesm2022/ngx-axis-appforge-axis-components-rate-design.mjs.map +1 -1
  118. package/fesm2022/ngx-axis-appforge-axis-components-rate.mjs +6 -6
  119. package/fesm2022/ngx-axis-appforge-axis-components-rate.mjs.map +1 -1
  120. package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs +3 -3
  121. package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs.map +1 -1
  122. package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs +8 -8
  123. package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs.map +1 -1
  124. package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs +21 -21
  125. package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs.map +1 -1
  126. package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs +7 -7
  127. package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs.map +1 -1
  128. package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs +4 -4
  129. package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs.map +1 -1
  130. package/fesm2022/ngx-axis-appforge-axis-components-select.mjs +28 -28
  131. package/fesm2022/ngx-axis-appforge-axis-components-select.mjs.map +1 -1
  132. package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs +4 -4
  133. package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs.map +1 -1
  134. package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs +21 -21
  135. package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs.map +1 -1
  136. package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs +11 -11
  137. package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs.map +1 -1
  138. package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs +14 -14
  139. package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs.map +1 -1
  140. package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs +11 -11
  141. package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs.map +1 -1
  142. package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs +24 -24
  143. package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs.map +1 -1
  144. package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs +3 -3
  145. package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs.map +1 -1
  146. package/fesm2022/ngx-axis-appforge-axis-components-switch.mjs +9 -9
  147. package/fesm2022/ngx-axis-appforge-axis-components-switch.mjs.map +1 -1
  148. package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +23 -23
  149. package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +1 -1
  150. package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs +44 -44
  151. package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs.map +1 -1
  152. package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +84 -84
  153. package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -1
  154. package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs +11 -11
  155. package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs.map +1 -1
  156. package/fesm2022/ngx-axis-appforge-axis-components-tabs.mjs +24 -24
  157. package/fesm2022/ngx-axis-appforge-axis-components-tabs.mjs.map +1 -1
  158. package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs +3 -3
  159. package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs.map +1 -1
  160. package/fesm2022/ngx-axis-appforge-axis-components-text.mjs +11 -11
  161. package/fesm2022/ngx-axis-appforge-axis-components-text.mjs.map +1 -1
  162. package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs +3 -3
  163. package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs.map +1 -1
  164. package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs +11 -11
  165. package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs.map +1 -1
  166. package/fesm2022/ngx-axis-appforge-axis-components-time-line-design.mjs +14 -14
  167. package/fesm2022/ngx-axis-appforge-axis-components-time-line-design.mjs.map +1 -1
  168. package/fesm2022/ngx-axis-appforge-axis-components-time-line.mjs +17 -17
  169. package/fesm2022/ngx-axis-appforge-axis-components-time-line.mjs.map +1 -1
  170. package/fesm2022/ngx-axis-appforge-axis-components-timer-design.mjs +3 -3
  171. package/fesm2022/ngx-axis-appforge-axis-components-timer-design.mjs.map +1 -1
  172. package/fesm2022/ngx-axis-appforge-axis-components-timer.mjs +5 -5
  173. package/fesm2022/ngx-axis-appforge-axis-components-timer.mjs.map +1 -1
  174. package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs +14 -14
  175. package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs.map +1 -1
  176. package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs +67 -67
  177. package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs.map +1 -1
  178. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs +13 -13
  179. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs.map +1 -1
  180. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs +48 -48
  181. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs.map +1 -1
  182. package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs +3 -3
  183. package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs.map +1 -1
  184. package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs +27 -27
  185. package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs.map +1 -1
  186. package/fesm2022/ngx-axis-appforge-axis-components-video-design.mjs +3 -3
  187. package/fesm2022/ngx-axis-appforge-axis-components-video-design.mjs.map +1 -1
  188. package/fesm2022/ngx-axis-appforge-axis-components-video.mjs +3 -3
  189. package/fesm2022/ngx-axis-appforge-core.mjs +186 -195
  190. package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
  191. package/package.json +112 -111
  192. package/{axis-components/design/index.d.ts → types/ngx-axis-appforge-axis-components-design.d.ts} +20 -33
  193. package/{core/index.d.ts → types/ngx-axis-appforge-core.d.ts} +2 -15
  194. /package/{axis-components/badge/design/index.d.ts → types/ngx-axis-appforge-axis-components-badge-design.d.ts} +0 -0
  195. /package/{axis-components/badge/index.d.ts → types/ngx-axis-appforge-axis-components-badge.d.ts} +0 -0
  196. /package/{axis-components/button/design/index.d.ts → types/ngx-axis-appforge-axis-components-button-design.d.ts} +0 -0
  197. /package/{axis-components/button/index.d.ts → types/ngx-axis-appforge-axis-components-button.d.ts} +0 -0
  198. /package/{axis-components/checkbox/design/index.d.ts → types/ngx-axis-appforge-axis-components-checkbox-design.d.ts} +0 -0
  199. /package/{axis-components/checkbox/index.d.ts → types/ngx-axis-appforge-axis-components-checkbox.d.ts} +0 -0
  200. /package/{axis-components/color-picker/design/index.d.ts → types/ngx-axis-appforge-axis-components-color-picker-design.d.ts} +0 -0
  201. /package/{axis-components/color-picker/index.d.ts → types/ngx-axis-appforge-axis-components-color-picker.d.ts} +0 -0
  202. /package/{axis-components/cytoscape/design/index.d.ts → types/ngx-axis-appforge-axis-components-cytoscape-design.d.ts} +0 -0
  203. /package/{axis-components/cytoscape/index.d.ts → types/ngx-axis-appforge-axis-components-cytoscape.d.ts} +0 -0
  204. /package/{axis-components/date-picker/design/index.d.ts → types/ngx-axis-appforge-axis-components-date-picker-design.d.ts} +0 -0
  205. /package/{axis-components/date-picker/index.d.ts → types/ngx-axis-appforge-axis-components-date-picker.d.ts} +0 -0
  206. /package/{axis-components/desc/design/index.d.ts → types/ngx-axis-appforge-axis-components-desc-design.d.ts} +0 -0
  207. /package/{axis-components/desc/index.d.ts → types/ngx-axis-appforge-axis-components-desc.d.ts} +0 -0
  208. /package/{axis-components/design/design/index.d.ts → types/ngx-axis-appforge-axis-components-design-design.d.ts} +0 -0
  209. /package/{axis-components/drawer/design/index.d.ts → types/ngx-axis-appforge-axis-components-drawer-design.d.ts} +0 -0
  210. /package/{axis-components/drawer/index.d.ts → types/ngx-axis-appforge-axis-components-drawer.d.ts} +0 -0
  211. /package/{axis-components/dropdown/design/index.d.ts → types/ngx-axis-appforge-axis-components-dropdown-design.d.ts} +0 -0
  212. /package/{axis-components/dropdown/index.d.ts → types/ngx-axis-appforge-axis-components-dropdown.d.ts} +0 -0
  213. /package/{axis-components/dynamic-container/design/index.d.ts → types/ngx-axis-appforge-axis-components-dynamic-container-design.d.ts} +0 -0
  214. /package/{axis-components/dynamic-container/index.d.ts → types/ngx-axis-appforge-axis-components-dynamic-container.d.ts} +0 -0
  215. /package/{axis-components/dynamic-value/design/index.d.ts → types/ngx-axis-appforge-axis-components-dynamic-value-design.d.ts} +0 -0
  216. /package/{axis-components/dynamic-value/index.d.ts → types/ngx-axis-appforge-axis-components-dynamic-value.d.ts} +0 -0
  217. /package/{axis-components/echarts/design/index.d.ts → types/ngx-axis-appforge-axis-components-echarts-design.d.ts} +0 -0
  218. /package/{axis-components/echarts/index.d.ts → types/ngx-axis-appforge-axis-components-echarts.d.ts} +0 -0
  219. /package/{axis-components/edit-table/design/index.d.ts → types/ngx-axis-appforge-axis-components-edit-table-design.d.ts} +0 -0
  220. /package/{axis-components/edit-table/index.d.ts → types/ngx-axis-appforge-axis-components-edit-table.d.ts} +0 -0
  221. /package/{axis-components/editor/design/index.d.ts → types/ngx-axis-appforge-axis-components-editor-design.d.ts} +0 -0
  222. /package/{axis-components/editor/index.d.ts → types/ngx-axis-appforge-axis-components-editor.d.ts} +0 -0
  223. /package/{axis-components/flex/design/index.d.ts → types/ngx-axis-appforge-axis-components-flex-design.d.ts} +0 -0
  224. /package/{axis-components/flex/index.d.ts → types/ngx-axis-appforge-axis-components-flex.d.ts} +0 -0
  225. /package/{axis-components/form-item/design/index.d.ts → types/ngx-axis-appforge-axis-components-form-design.d.ts} +0 -0
  226. /package/{axis-components/form/design/index.d.ts → types/ngx-axis-appforge-axis-components-form-item-design.d.ts} +0 -0
  227. /package/{axis-components/form-item/index.d.ts → types/ngx-axis-appforge-axis-components-form-item.d.ts} +0 -0
  228. /package/{axis-components/form/index.d.ts → types/ngx-axis-appforge-axis-components-form.d.ts} +0 -0
  229. /package/{axis-components/icon/design/index.d.ts → types/ngx-axis-appforge-axis-components-icon-design.d.ts} +0 -0
  230. /package/{axis-components/icon/index.d.ts → types/ngx-axis-appforge-axis-components-icon.d.ts} +0 -0
  231. /package/{axis-components/image/design/index.d.ts → types/ngx-axis-appforge-axis-components-image-design.d.ts} +0 -0
  232. /package/{axis-components/image/index.d.ts → types/ngx-axis-appforge-axis-components-image.d.ts} +0 -0
  233. /package/{axis-components/input-component/design/index.d.ts → types/ngx-axis-appforge-axis-components-input-component-design.d.ts} +0 -0
  234. /package/{axis-components/input-component/index.d.ts → types/ngx-axis-appforge-axis-components-input-component.d.ts} +0 -0
  235. /package/{axis-components/input-icon/design/index.d.ts → types/ngx-axis-appforge-axis-components-input-design.d.ts} +0 -0
  236. /package/{axis-components/input-json/design/index.d.ts → types/ngx-axis-appforge-axis-components-input-icon-design.d.ts} +0 -0
  237. /package/{axis-components/input-icon/index.d.ts → types/ngx-axis-appforge-axis-components-input-icon.d.ts} +0 -0
  238. /package/{axis-components/input-list/design/index.d.ts → types/ngx-axis-appforge-axis-components-input-json-design.d.ts} +0 -0
  239. /package/{axis-components/input-json/index.d.ts → types/ngx-axis-appforge-axis-components-input-json.d.ts} +0 -0
  240. /package/{axis-components/input-number/design/index.d.ts → types/ngx-axis-appforge-axis-components-input-list-design.d.ts} +0 -0
  241. /package/{axis-components/input-list/index.d.ts → types/ngx-axis-appforge-axis-components-input-list.d.ts} +0 -0
  242. /package/{axis-components/input/design/index.d.ts → types/ngx-axis-appforge-axis-components-input-number-design.d.ts} +0 -0
  243. /package/{axis-components/input-number/index.d.ts → types/ngx-axis-appforge-axis-components-input-number.d.ts} +0 -0
  244. /package/{axis-components/input/index.d.ts → types/ngx-axis-appforge-axis-components-input.d.ts} +0 -0
  245. /package/{axis-components/menu/design/index.d.ts → types/ngx-axis-appforge-axis-components-menu-design.d.ts} +0 -0
  246. /package/{axis-components/menu/index.d.ts → types/ngx-axis-appforge-axis-components-menu.d.ts} +0 -0
  247. /package/{axis-components/modal/design/index.d.ts → types/ngx-axis-appforge-axis-components-modal-design.d.ts} +0 -0
  248. /package/{axis-components/modal/index.d.ts → types/ngx-axis-appforge-axis-components-modal.d.ts} +0 -0
  249. /package/{axis-components/radio/design/index.d.ts → types/ngx-axis-appforge-axis-components-radio-design.d.ts} +0 -0
  250. /package/{axis-components/radio/index.d.ts → types/ngx-axis-appforge-axis-components-radio.d.ts} +0 -0
  251. /package/{axis-components/rate/design/index.d.ts → types/ngx-axis-appforge-axis-components-rate-design.d.ts} +0 -0
  252. /package/{axis-components/rate/index.d.ts → types/ngx-axis-appforge-axis-components-rate.d.ts} +0 -0
  253. /package/{axis-components/rich-text-editor/design/index.d.ts → types/ngx-axis-appforge-axis-components-rich-text-editor-design.d.ts} +0 -0
  254. /package/{axis-components/rich-text-editor/index.d.ts → types/ngx-axis-appforge-axis-components-rich-text-editor.d.ts} +0 -0
  255. /package/{axis-components/scope/design/index.d.ts → types/ngx-axis-appforge-axis-components-scope-design.d.ts} +0 -0
  256. /package/{axis-components/scope/index.d.ts → types/ngx-axis-appforge-axis-components-scope.d.ts} +0 -0
  257. /package/{axis-components/select/design/index.d.ts → types/ngx-axis-appforge-axis-components-select-design.d.ts} +0 -0
  258. /package/{axis-components/select/index.d.ts → types/ngx-axis-appforge-axis-components-select.d.ts} +0 -0
  259. /package/{axis-components/single-selector/design/index.d.ts → types/ngx-axis-appforge-axis-components-single-selector-design.d.ts} +0 -0
  260. /package/{axis-components/single-selector/index.d.ts → types/ngx-axis-appforge-axis-components-single-selector.d.ts} +0 -0
  261. /package/{axis-components/splitter/design/index.d.ts → types/ngx-axis-appforge-axis-components-splitter-design.d.ts} +0 -0
  262. /package/{axis-components/splitter/index.d.ts → types/ngx-axis-appforge-axis-components-splitter.d.ts} +0 -0
  263. /package/{axis-components/steps/design/index.d.ts → types/ngx-axis-appforge-axis-components-steps-design.d.ts} +0 -0
  264. /package/{axis-components/steps/index.d.ts → types/ngx-axis-appforge-axis-components-steps.d.ts} +0 -0
  265. /package/{axis-components/switch/design/index.d.ts → types/ngx-axis-appforge-axis-components-switch-design.d.ts} +0 -0
  266. /package/{axis-components/switch/index.d.ts → types/ngx-axis-appforge-axis-components-switch.d.ts} +0 -0
  267. /package/{axis-components/table/design/index.d.ts → types/ngx-axis-appforge-axis-components-table-design.d.ts} +0 -0
  268. /package/{axis-components/table-helper/index.d.ts → types/ngx-axis-appforge-axis-components-table-helper.d.ts} +0 -0
  269. /package/{axis-components/table/index.d.ts → types/ngx-axis-appforge-axis-components-table.d.ts} +0 -0
  270. /package/{axis-components/tabs/design/index.d.ts → types/ngx-axis-appforge-axis-components-tabs-design.d.ts} +0 -0
  271. /package/{axis-components/tabs/index.d.ts → types/ngx-axis-appforge-axis-components-tabs.d.ts} +0 -0
  272. /package/{axis-components/text/design/index.d.ts → types/ngx-axis-appforge-axis-components-text-design.d.ts} +0 -0
  273. /package/{axis-components/text/index.d.ts → types/ngx-axis-appforge-axis-components-text.d.ts} +0 -0
  274. /package/{axis-components/textarea/design/index.d.ts → types/ngx-axis-appforge-axis-components-textarea-design.d.ts} +0 -0
  275. /package/{axis-components/textarea/index.d.ts → types/ngx-axis-appforge-axis-components-textarea.d.ts} +0 -0
  276. /package/{axis-components/time-line/design/index.d.ts → types/ngx-axis-appforge-axis-components-time-line-design.d.ts} +0 -0
  277. /package/{axis-components/time-line/index.d.ts → types/ngx-axis-appforge-axis-components-time-line.d.ts} +0 -0
  278. /package/{axis-components/timer/design/index.d.ts → types/ngx-axis-appforge-axis-components-timer-design.d.ts} +0 -0
  279. /package/{axis-components/timer/index.d.ts → types/ngx-axis-appforge-axis-components-timer.d.ts} +0 -0
  280. /package/{axis-components/transfer/design/index.d.ts → types/ngx-axis-appforge-axis-components-transfer-design.d.ts} +0 -0
  281. /package/{axis-components/transfer/index.d.ts → types/ngx-axis-appforge-axis-components-transfer.d.ts} +0 -0
  282. /package/{axis-components/tree-selector/design/index.d.ts → types/ngx-axis-appforge-axis-components-tree-selector-design.d.ts} +0 -0
  283. /package/{axis-components/tree-selector/index.d.ts → types/ngx-axis-appforge-axis-components-tree-selector.d.ts} +0 -0
  284. /package/{axis-components/upload/design/index.d.ts → types/ngx-axis-appforge-axis-components-upload-design.d.ts} +0 -0
  285. /package/{axis-components/upload/index.d.ts → types/ngx-axis-appforge-axis-components-upload.d.ts} +0 -0
  286. /package/{axis-components/video/design/index.d.ts → types/ngx-axis-appforge-axis-components-video-design.d.ts} +0 -0
  287. /package/{axis-components/video/index.d.ts → types/ngx-axis-appforge-axis-components-video.d.ts} +0 -0
  288. /package/{axis-components/index.d.ts → types/ngx-axis-appforge-axis-components.d.ts} +0 -0
  289. /package/{providers/index.d.ts → types/ngx-axis-appforge-providers.d.ts} +0 -0
  290. /package/{index.d.ts → types/ngx-axis-appforge.d.ts} +0 -0
@@ -1,32 +1,30 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, output, computed, signal, inject, effect, ChangeDetectionStrategy, Component, ViewChild, model, ElementRef, ChangeDetectorRef, Injector, ViewContainerRef, HostListener } from '@angular/core';
2
+ import { effect, untracked, input, output, computed, inject, signal, ViewChild, ChangeDetectionStrategy, Component, model, ElementRef, ChangeDetectorRef, Injector, ViewContainerRef, HostListener } from '@angular/core';
3
3
  import * as i1$3 from 'ng-zorro-antd/splitter';
4
4
  import { NzSplitterModule } from 'ng-zorro-antd/splitter';
5
5
  import * as i2$3 from 'ng-zorro-antd/tabs';
6
6
  import { NzTabsModule } from 'ng-zorro-antd/tabs';
7
- import { FlatTreeControl } from '@angular/cdk/tree';
8
7
  import * as i1 from '@angular/forms';
9
8
  import { FormsModule } from '@angular/forms';
10
- import { NzHighlightPipe } from 'ng-zorro-antd/core/highlight';
11
9
  import * as i3 from 'ng-zorro-antd/icon';
12
10
  import { NzIconModule } from 'ng-zorro-antd/icon';
13
11
  import * as i2 from 'ng-zorro-antd/input';
14
12
  import { NzInputModule } from 'ng-zorro-antd/input';
15
- import * as i4 from 'ng-zorro-antd/tree-view';
16
- import { NzTreeFlattener, NzTreeFlatDataSource, NzTreeViewModule } from 'ng-zorro-antd/tree-view';
17
- import { BehaviorSubject, combineLatest, auditTime, tap, map, filter, take, debounceTime, Subject, switchMap, merge, Observable, NEVER, from, of } from 'rxjs';
13
+ import { of, BehaviorSubject, debounceTime, auditTime, map, Subject, filter, switchMap, merge, Observable, NEVER, take, from } from 'rxjs';
18
14
  import * as i3$1 from 'ng-zorro-antd/flex';
19
15
  import { NzFlexModule } from 'ng-zorro-antd/flex';
20
- import { SelectionModel } from '@angular/cdk/collections';
21
- import { FilteredTreeResult, AXIS_FILE_BASE_URL_TOKEN, AXIS_HTTP_CONTEXT_DATA_TOKEN, AXIS_COMPONENTS_LOADER_TOKEN, ScopeDirective, DynamicDirective, DesignBuilder, AXIS_INJECT_DATA_TOKEN, AXIS_INJECT_FUNC_TOKEN, AXIS_DESIGN_CMPLIBS_TOKEN, isEquals, ValueAccessOptions, copy, HowLongPipe, ValueAccess, AXIS_DESIGN_CAN_LOOP_TOKEN, AXIS_DESIGN_SCOPE_INFOS_REFRESH_TOKEN, AXIS_DESIGN_SCOPE_INFOS_GETTER_TOKEN, AXIS_DESIGN_COMPONENT_INFO_FOR_SETTING_TOKEN, AXIS_DESIGN_COMPONENT_REF_FOR_SETTING_TOKEN, AXIS_DESIGN_COMPONENT_REF_GETTER_TOKEN, AXIS_DESIGN_ALL_PERMISSIONS_TOKEN, AXIS_DESIGN_OPTIONS_NODE_FOR_MENU, AXIS_DESIGN_CHOOSE_COMPONENT_FUNC_TOKEN, OptionsNode } from 'ngx-axis-appforge/core';
22
16
  import * as i6 from 'ng-zorro-antd/button';
23
17
  import { NzButtonModule } from 'ng-zorro-antd/button';
24
- import * as i9 from 'ng-zorro-antd/tooltip';
18
+ import * as i5 from 'ng-zorro-antd/tooltip';
25
19
  import { NzTooltipModule } from 'ng-zorro-antd/tooltip';
26
- import * as i10 from 'ng-zorro-antd/empty';
20
+ import * as i9 from 'ng-zorro-antd/empty';
27
21
  import { NzEmptyModule } from 'ng-zorro-antd/empty';
22
+ import * as i4 from 'ng-zorro-antd/tree';
23
+ import { NzTreeModule, NzTreeComponent } from 'ng-zorro-antd/tree';
24
+ import { toSignal, toObservable } from '@angular/core/rxjs-interop';
28
25
  import * as i7 from 'ng-zorro-antd/core/transition-patch';
29
26
  import * as i8 from 'ng-zorro-antd/core/wave';
27
+ import { AXIS_FILE_BASE_URL_TOKEN, AXIS_HTTP_CONTEXT_DATA_TOKEN, AXIS_COMPONENTS_LOADER_TOKEN, ScopeDirective, DynamicDirective, DesignBuilder, AXIS_INJECT_DATA_TOKEN, AXIS_INJECT_FUNC_TOKEN, AXIS_DESIGN_CMPLIBS_TOKEN, isEquals, ValueAccessOptions, copy, HowLongPipe, ValueAccess, AXIS_DESIGN_CAN_LOOP_TOKEN, AXIS_DESIGN_SCOPE_INFOS_REFRESH_TOKEN, AXIS_DESIGN_SCOPE_INFOS_GETTER_TOKEN, AXIS_DESIGN_COMPONENT_INFO_FOR_SETTING_TOKEN, AXIS_DESIGN_COMPONENT_REF_FOR_SETTING_TOKEN, AXIS_DESIGN_COMPONENT_REF_GETTER_TOKEN, AXIS_DESIGN_ALL_PERMISSIONS_TOKEN, AXIS_DESIGN_OPTIONS_NODE_FOR_MENU, AXIS_DESIGN_CHOOSE_COMPONENT_FUNC_TOKEN, OptionsNode } from 'ngx-axis-appforge/core';
30
28
  import { CommonModule } from '@angular/common';
31
29
  import * as i1$1 from 'ng-zorro-antd/collapse';
32
30
  import { NzCollapseModule } from 'ng-zorro-antd/collapse';
@@ -35,8 +33,7 @@ import { NzCardModule } from 'ng-zorro-antd/card';
35
33
  import * as i3$2 from 'ng-zorro-antd/grid';
36
34
  import { NzGridModule } from 'ng-zorro-antd/grid';
37
35
  import * as i7$1 from 'ng-zorro-antd/dropdown';
38
- import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
39
- import { toSignal, toObservable } from '@angular/core/rxjs-interop';
36
+ import { NzDropdownModule } from 'ng-zorro-antd/dropdown';
40
37
  import * as i12 from 'ng-zorro-antd/select';
41
38
  import { NzSelectModule } from 'ng-zorro-antd/select';
42
39
  import * as i6$1 from 'ng-zorro-antd/menu';
@@ -51,50 +48,54 @@ import { NzPopoverModule } from 'ng-zorro-antd/popover';
51
48
  import { ClipboardService } from 'ngx-clipboard';
52
49
 
53
50
  class DragDrop {
54
- optionsNodes;
55
- optionIdflatNodes;
56
- treeControl;
57
- onChange;
58
- constructor(optionsNodes, optionIdflatNodes, treeControl, onChange) {
59
- this.optionsNodes = optionsNodes;
60
- this.optionIdflatNodes = optionIdflatNodes;
61
- this.treeControl = treeControl;
62
- this.onChange = onChange;
51
+ tree;
52
+ constructor(tree) {
53
+ this.tree = tree;
63
54
  }
64
55
  dragNode;
65
56
  dropNode;
66
57
  targetIndex;
67
58
  element;
68
59
  pos;
69
- canDrag(nodeId) {
70
- const node = this.optionsNodes.get(nodeId);
71
- return !!node && !node?.isRoot && node?.canDrag;
72
- }
73
- onDragStart(e, nodeId) {
74
- this.dragNode = this.optionsNodes.get(nodeId);
60
+ beforeDrop = (confirm) => {
61
+ const node = confirm.node.origin['options'];
62
+ const dragNode = confirm.dragNode.origin['options'];
63
+ return of(dragNode.canDrag && node.canDrop && dragNode.dragType == node.dropType);
64
+ };
65
+ onDragStart(e) {
66
+ this.dragNode = e.dragNode.origin['options'];
75
67
  if (this.dragNode?.children?.length) {
76
- this.treeControl.collapse(this.optionIdflatNodes.get(nodeId));
68
+ e.dragNode.setExpanded(false);
69
+ this.tree.expandedNodeids.update(ids => {
70
+ const index = ids.indexOf(this.dragNode.id);
71
+ if (index != -1) {
72
+ ids.splice(index, 1);
73
+ }
74
+ return ids;
75
+ });
77
76
  }
78
- setTimeout(() => {
79
- e.target.style.display = 'none';
80
- });
81
77
  }
82
- onDragOver(e, nodeId) {
83
- const node = this.optionsNodes.get(nodeId);
84
- const parent = node.parentId ? this.optionsNodes.get(node.parentId) : undefined;
78
+ onDragOver(e) {
79
+ const node = e.node.origin['options'];
80
+ const parent = node.parentId ? this.tree.optionsNodes().get(node.parentId) : undefined;
85
81
  let canDropIn = this.canDrop(node);
86
82
  let canDropSide = !!parent && this.canDrop(parent);
87
83
  if (!canDropIn && !canDropSide) {
88
- e.preventDefault();
84
+ e.event?.preventDefault();
89
85
  return;
90
86
  }
91
- const pos = this.getPos(e, canDropIn, canDropSide);
92
- const element = e.currentTarget;
87
+ const pos = this.getPos(e.event, canDropIn, canDropSide);
88
+ const element = e.event?.currentTarget;
93
89
  this.updateElementStyle(element, pos);
94
90
  if (pos == 0) {
95
91
  this.targetIndex = node?.defaultDropIndex;
96
92
  this.dropNode = node;
97
- this.treeControl.expand(this.optionIdflatNodes.get(node.id));
93
+ this.tree.expandedNodeids.update(ids => {
94
+ if (!ids.includes(node.id)) {
95
+ ids.push(node.id);
96
+ }
97
+ return ids;
98
+ });
98
99
  }
99
100
  else if (pos == -1) {
100
101
  this.targetIndex = node.indexOfParentObj;
@@ -125,8 +126,7 @@ class DragDrop {
125
126
  this.pos = pos;
126
127
  }
127
128
  }
128
- onDragEnd(e, nodeId) {
129
- e.target.style.display = 'flex';
129
+ onDragEnd(e) {
130
130
  if (this.dropNode) {
131
131
  if (this.dropNode.dropObj == this.dragNode.parentObj && this.dragNode.indexOfParentObj == this.targetIndex) {
132
132
  this.updateElementStyle();
@@ -150,7 +150,7 @@ class DragDrop {
150
150
  else {
151
151
  this.dropNode.dropObj[this.targetIndex] = dragObj;
152
152
  }
153
- this.onChange({ historyDesc: `拖拽${this.dragNode?.name}` });
153
+ this.tree.onChange.emit({ historyDesc: `拖拽${this.dragNode?.name}` });
154
154
  }
155
155
  this.dragNode = undefined;
156
156
  this.updateElementStyle();
@@ -179,160 +179,145 @@ class DragDrop {
179
179
  }
180
180
 
181
181
  class Tree {
182
- cdRef;
183
- node = input.required(...(ngDevMode ? [{ debugName: "node" }] : []));
184
- optionsNodes = input.required(...(ngDevMode ? [{ debugName: "optionsNodes" }] : []));
182
+ constructor() {
183
+ effect(() => {
184
+ this.treeNode();
185
+ untracked(() => {
186
+ this.selectedNodeids.set(this.selectedNodeids().filter(nodeid => this.optionsNodes().has(nodeid)));
187
+ this.expandedNodeids.set(this.expandedNodeids().filter(nodeid => this.optionsNodes().has(nodeid)));
188
+ if (this.selectedNodeids().length == 0 && this.node()) {
189
+ this.selectOne(this.node().id, { sendEvent: true });
190
+ }
191
+ });
192
+ });
193
+ }
194
+ node = input.required(...(ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []));
195
+ optionsNodes = input.required(...(ngDevMode ? [{ debugName: "optionsNodes" }] : /* istanbul ignore next */ []));
185
196
  onChange = output();
186
197
  onSelect = output();
187
198
  onContextMenu = output();
188
- dragdrop = computed(() => new DragDrop(this.optionsNodes(), this.optionIdflatNodes, this.treeControl, (e) => this.onChange.emit(e)), ...(ngDevMode ? [{ debugName: "dragdrop" }] : []));
189
- optionIdflatNodes = new Map();
190
- flatNodeMap = new Map();
191
- nestedNodeMap = new Map();
192
- searchValue = signal('', ...(ngDevMode ? [{ debugName: "searchValue" }] : []));
193
- originData$ = new BehaviorSubject([]);
199
+ dragdrop = computed(() => new DragDrop(this), ...(ngDevMode ? [{ debugName: "dragdrop" }] : /* istanbul ignore next */ []));
194
200
  searchValue$ = new BehaviorSubject('');
195
- selectListSelection = new SelectionModel(true);
201
+ searchValue = toSignal(this.searchValue$.pipe(debounceTime(300)));
196
202
  design = inject(Design);
197
203
  subs = [];
198
- transformer = (node, level) => {
199
- const existingNode = this.nestedNodeMap.get(node.id);
200
- const currentNode = {
201
- expandable: !!node.children && node.children.length > 0,
202
- id: node.id,
203
- title: node.name ?? "",
204
- icon: node.icon,
205
- level
206
- };
207
- let flatNode;
208
- if (existingNode?.id == currentNode.id && existingNode.expandable == currentNode.expandable && existingNode.level == currentNode.level) {
209
- flatNode = Object.assign(existingNode, currentNode);
210
- }
211
- else {
212
- flatNode = currentNode;
204
+ tree;
205
+ treeNode = computed(() => {
206
+ function mapTreeNode(node) {
207
+ return {
208
+ title: node.name ?? '',
209
+ key: node.id,
210
+ icon: node.icon,
211
+ isLeaf: (node.children?.length ?? 0) == 0,
212
+ children: node.children?.map(mapTreeNode),
213
+ options: node
214
+ };
213
215
  }
214
- this.optionIdflatNodes.set(flatNode.id, flatNode);
215
- this.flatNodeMap.set(flatNode.id, node);
216
- this.nestedNodeMap.set(node.id, flatNode);
217
- return flatNode;
218
- };
219
- treeControl = new FlatTreeControl(node => node.level, node => node.expandable, {
220
- trackBy: flatNode => flatNode.id
221
- });
222
- treeFlattener = new NzTreeFlattener(this.transformer, node => node.level, node => node.expandable, node => node.children);
223
- dataSource = new NzTreeFlatDataSource(this.treeControl, this.treeFlattener);
224
- filteredData$ = combineLatest([
225
- this.originData$,
226
- this.searchValue$.pipe(auditTime(300), tap(value => this.searchValue.set(value)))
227
- ]).pipe(map(([data, value]) => (value ? filterTreeData(data, value) : new FilteredTreeResult(data, this.treeControl.expansionModel.selected.filter(id => this.optionsNodes().has(id))))));
228
- constructor(cdRef) {
229
- this.cdRef = cdRef;
230
- effect(() => {
231
- if (this.node()) {
232
- this.originData$.next([this.node()]);
233
- }
234
- const oldlength = this.selectListSelection.selected.length;
235
- this.selectListSelection.deselect(...this.selectListSelection.selected.filter(nodeid => !this.optionsNodes().has(nodeid)));
236
- this.treeControl.expansionModel.deselect(...this.treeControl.expansionModel.selected.filter(id => !this.optionsNodes().has(id)));
237
- if (oldlength != this.selectListSelection.selected.length) {
238
- this.sendSelectEvent();
239
- }
240
- });
241
- this.subs.push(this.filteredData$.subscribe(result => {
242
- this.dataSource.setData(result.treeData);
243
- this.treeControl.expansionModel.setSelection(...result.needsToExpanded);
244
- }));
245
- this.subs.push(this.filteredData$.pipe(filter(r => r.treeData.length > 0), take(1)).subscribe(result => {
246
- this.selectOne(result.treeData[0].id, { sendEvent: true });
247
- }));
248
- }
249
- hasChild = (_, node) => node.expandable;
216
+ return this.node() ? [mapTreeNode(this.node())] : [];
217
+ }, ...(ngDevMode ? [{ debugName: "treeNode" }] : /* istanbul ignore next */ []));
218
+ selectedNodeids = signal([], ...(ngDevMode ? [{ debugName: "selectedNodeids" }] : /* istanbul ignore next */ []));
219
+ expandedNodeids = signal([], ...(ngDevMode ? [{ debugName: "expandedNodeids" }] : /* istanbul ignore next */ []));
220
+ expandChange(e) {
221
+ this.expandedNodeids.set(e.keys ?? []);
222
+ }
250
223
  get hasExpanded() {
251
- return this.treeControl.expansionModel.selected.length > 0;
224
+ return !!this.node() && this.expandedNodeids().includes(this.node().id);
252
225
  }
253
- onNodeClick(e, nodeId) {
254
- e.preventDefault();
255
- if (e.ctrlKey || e.metaKey) {
256
- this.toggleSelect(nodeId, { sendEvent: true });
226
+ onNodeClick(e) {
227
+ if (e.event?.ctrlKey || e.event?.metaKey) {
228
+ this.toggleSelect(e.node.key, { sendEvent: true });
257
229
  }
258
230
  else {
259
- this.selectOne(nodeId, { sendEvent: true });
231
+ this.selectOne(e.node.key, { sendEvent: true });
260
232
  }
261
233
  }
262
234
  select(nodeId, opt) {
263
- this.selectListSelection.select(nodeId);
235
+ this.selectedNodeids.update(ids => {
236
+ if (!ids.includes(nodeId)) {
237
+ ids.push(nodeId);
238
+ }
239
+ return ids;
240
+ });
264
241
  if (opt?.sendEvent) {
265
242
  this.sendSelectEvent();
266
243
  }
267
244
  }
268
245
  selectOne(nodeId, opt) {
269
246
  this.unSelectAll();
270
- this.selectListSelection.select(nodeId);
247
+ this.selectedNodeids.update(ids => {
248
+ if (!ids.includes(nodeId)) {
249
+ ids.push(nodeId);
250
+ }
251
+ return ids;
252
+ });
271
253
  if (opt?.sendEvent) {
272
254
  this.sendSelectEvent();
273
255
  }
274
256
  }
275
257
  toggleSelect(nodeId, opt) {
276
- this.selectListSelection.toggle(nodeId);
258
+ this.selectedNodeids.update(ids => {
259
+ const index = ids.indexOf(nodeId);
260
+ if (index >= 0) {
261
+ ids.splice(index, 1);
262
+ }
263
+ else {
264
+ ids.push(nodeId);
265
+ }
266
+ return ids;
267
+ });
277
268
  if (opt?.sendEvent) {
278
269
  this.sendSelectEvent();
279
270
  }
280
271
  }
281
272
  unSelect(nodeId, opt) {
282
- this.selectListSelection.deselect(nodeId);
273
+ this.selectedNodeids.update(ids => {
274
+ const index = ids.indexOf(nodeId);
275
+ if (index >= 0) {
276
+ ids.splice(index, 1);
277
+ }
278
+ return ids;
279
+ });
283
280
  if (opt?.sendEvent) {
284
281
  this.sendSelectEvent();
285
282
  }
286
283
  }
287
284
  unSelectAll(opt) {
288
- this.selectListSelection.clear();
285
+ this.selectedNodeids.set([]);
289
286
  if (opt?.sendEvent) {
290
287
  this.sendSelectEvent();
291
288
  }
292
289
  }
293
290
  sendSelectEvent() {
294
- this.onSelect.emit(this.selectListSelection.selected);
291
+ this.onSelect.emit(Array.from(this.selectedNodeids()));
295
292
  }
296
293
  selectByNodeIds(nodeIds) {
297
- this.unSelectAll();
298
- for (const nodeId of nodeIds) {
299
- this.select(nodeId);
300
- const node = this.optionsNodes().get(nodeId);
301
- if (node?.parentId) {
302
- this.treeControl.expand(this.optionIdflatNodes.get(node.parentId));
303
- }
304
- }
305
- this.cdRef.markForCheck();
294
+ this.selectedNodeids.set(nodeIds.filter(nodeid => this.optionsNodes().has(nodeid)));
306
295
  }
307
296
  expandByNodeIds(nodeIds) {
308
- for (const nodeId of nodeIds) {
309
- const node = this.optionIdflatNodes.get(nodeId);
310
- if (node) {
311
- this.treeControl.expand(node);
312
- }
313
- }
297
+ this.expandedNodeids.set(nodeIds.filter(nodeid => this.optionsNodes().has(nodeid)));
314
298
  }
315
299
  toggleExpanded() {
316
300
  if (this.hasExpanded) {
317
- this.treeControl.collapseAll();
301
+ this.expandedNodeids.set([]);
302
+ this.tree?.getExpandedNodeList().forEach(node => {
303
+ node.setExpanded(false);
304
+ });
318
305
  }
319
306
  else {
320
- this.treeControl.expandAll();
307
+ this.expandedNodeids.set(Array.from(this.optionsNodes().keys()));
321
308
  }
322
309
  }
323
310
  reset() {
324
- this.optionIdflatNodes.clear();
325
- this.flatNodeMap.clear();
326
311
  }
327
- contextMenu(e, nodeId) {
328
- this.onNodeClick(e, nodeId);
329
- this.onContextMenu.emit({ event: e, nodeId });
312
+ contextMenu(e) {
313
+ this.onNodeClick(e);
314
+ this.onContextMenu.emit({ event: e.event, nodeId: e.node.key });
330
315
  }
331
316
  removeSelected() {
332
317
  let changed = false;
333
318
  let next = undefined;
334
319
  let nextNodeId;
335
- for (const nodeId of this.selectListSelection.selected) {
320
+ for (const nodeId of this.selectedNodeids()) {
336
321
  const node = this.optionsNodes().get(nodeId);
337
322
  if (node?.canSetting) {
338
323
  changed = true;
@@ -354,12 +339,12 @@ class Tree {
354
339
  }
355
340
  }
356
341
  if (changed) {
357
- this.onChange.emit({ value: next, nextNodeId: nextNodeId, historyDesc: `删除${this.selectListSelection.selected.length}个组件` });
342
+ this.onChange.emit({ value: next, nextNodeId: nextNodeId, historyDesc: `删除${this.selectedNodeids().length}个组件` });
358
343
  }
359
344
  }
360
345
  addNodeForSelected(nodes, deleteSuccess = false, historyDesc) {
361
- if (nodes.length && this.selectListSelection.selected) {
362
- for (const nodeId of this.selectListSelection.selected) {
346
+ if (nodes.length && this.selectedNodeids().length) {
347
+ for (const nodeId of this.selectedNodeids()) {
363
348
  const parentNode = this.optionsNodes().get(nodeId);
364
349
  if (parentNode && parentNode.canDrop) {
365
350
  if (parentNode.dropType == "component") {
@@ -410,33 +395,16 @@ class Tree {
410
395
  sub.unsubscribe();
411
396
  }
412
397
  }
413
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: Tree, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
414
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: Tree, isStandalone: true, selector: "axis-design-tree", inputs: { node: { classPropertyName: "node", publicName: "node", isSignal: true, isRequired: true, transformFunction: null }, optionsNodes: { classPropertyName: "optionsNodes", publicName: "optionsNodes", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onChange: "onChange", onSelect: "onSelect", onContextMenu: "onContextMenu" }, ngImport: i0, template: "<div nz-flex [nzVertical]=\"true\" style=\"height: 100%;\">\n <div nz-flex style=\"padding-right: 8px;\" nzGap=\"4px\" nzAlign=\"center\">\n <input style=\"flex:1;\" type=\"text\" nz-input placeholder=\"\u641C\u7D22\" nzBorderless ngModel\n (ngModelChange)=\"searchValue$.next($event)\" />\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" (click)=\"toggleExpanded()\">\n <nz-icon [nzType]=\"hasExpanded?'shrink':'arrows-alt'\" nzTheme=\"outline\" />\n </button>\n </div>\n @if (node() === null) {\n <nz-empty [nzNotFoundContent]=\"contentTpl\" [nzNotFoundFooter]=\"footerTpl\">\n <ng-template #contentTpl>\n \u6CA1\u6709\u7EC4\u4EF6\n </ng-template>\n <ng-template #footerTpl>\n <button nz-button nzType=\"dashed\" (click)=\"addRootComponent()\">\n <nz-icon nzType=\"plus\"></nz-icon>\n \u6DFB\u52A0\u7EC4\u4EF6\n </button>\n </ng-template>\n </nz-empty>\n }@else {\n <nz-tree-view nzDirectoryTree [nzTreeControl]=\"treeControl\" [nzDataSource]=\"dataSource\">\n <nz-tree-node *nzTreeNodeDef=\"let node\" nzTreeNodePadding [nzTreeNodePaddingIndent]=\"8\"\n (contextmenu)=\"contextMenu($event, node.id)\" [draggable]=\"dragdrop().canDrag(node.id)\"\n (dragstart)=\"dragdrop().onDragStart($event, node.id)\" (dragover)=\"dragdrop().onDragOver($event, node.id)\"\n (dragend)=\"dragdrop().onDragEnd($event,node.id)\">\n <nz-tree-node-toggle nzTreeNodeNoopToggle></nz-tree-node-toggle>\n <nz-tree-node-option [nzDisabled]=\"node.disabled\" [nzSelected]=\"selectListSelection.isSelected(node.id)\"\n (nzClick)=\"onNodeClick($event,node.id)\" [nz-tooltip]=\"node.id\" [nzTooltipMouseEnterDelay]=\"0.6\">\n <i nz-icon [nzType]=\"node.icon\" style=\"margin: 4px;\"></i>\n <span [innerHTML]=\"node.title | nzHighlight: searchValue() : 'i' : 'highlight'\"></span>\n </nz-tree-node-option>\n </nz-tree-node>\n <nz-tree-node *nzTreeNodeDef=\"let node; when: hasChild\" nzTreeNodePadding [nzTreeNodePaddingIndent]=\"8\"\n (contextmenu)=\"contextMenu($event, node.id)\" [draggable]=\"dragdrop().canDrag(node.id)\"\n (dragstart)=\"dragdrop().onDragStart($event, node.id)\" (dragover)=\"dragdrop().onDragOver($event, node.id)\"\n (dragend)=\"dragdrop().onDragEnd($event,node.id)\">\n <nz-tree-node-toggle>\n <nz-icon nzType=\"caret-down\" nzTreeNodeToggleRotateIcon />\n </nz-tree-node-toggle>\n <nz-tree-node-option [nzDisabled]=\"node.disabled\" [nzSelected]=\"selectListSelection.isSelected(node.id)\"\n (nzClick)=\"onNodeClick($event,node.id)\" [nz-tooltip]=\"node.id\" [nzTooltipMouseEnterDelay]=\"0.6\">\n <i nz-icon [nzType]=\"node.icon\" style=\"margin: 4px;\"></i>\n <span [innerHTML]=\"node.title | nzHighlight: searchValue() : 'i' : 'highlight'\"></span>\n </nz-tree-node-option>\n </nz-tree-node>\n </nz-tree-view>\n }\n</div>", styles: ["::ng-deep .highlight{color:#f50}nz-tree-view{overflow:auto;flex:1}.drop_in{outline:1px solid blue}.drop_up:after{content:\"\";position:absolute;top:-1px;width:100%;height:2px;background-color:#00f}.drop_down:after{content:\"\";position:absolute;bottom:-1px;width:100%;height:2px;background-color:#00f}nz-tree-view ::ng-deep .ant-tree-list-holder{margin-bottom:300px}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i2.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled", "readonly"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzTreeViewModule }, { kind: "component", type: i4.NzTreeViewComponent, selector: "nz-tree-view", exportAs: ["nzTreeView"] }, { kind: "directive", type: i4.NzTreeNodeDefDirective, selector: "[nzTreeNodeDef]", inputs: ["nzTreeNodeDefWhen"] }, { kind: "component", type: i4.NzTreeNodeComponent, selector: "nz-tree-node:not([builtin])", exportAs: ["nzTreeNode"] }, { kind: "directive", type: i4.NzTreeNodeToggleDirective, selector: "nz-tree-node-toggle:not([nzTreeNodeNoopToggle]), [nzTreeNodeToggle]", inputs: ["nzTreeNodeToggleRecursive"] }, { kind: "directive", type: i4.NzTreeNodePaddingDirective, selector: "[nzTreeNodePadding]", inputs: ["nzTreeNodePadding", "nzTreeNodePaddingIndent"] }, { kind: "directive", type: i4.NzTreeNodeToggleRotateIconDirective, selector: "[nzTreeNodeToggleRotateIcon]" }, { kind: "component", type: i4.NzTreeNodeOptionComponent, selector: "nz-tree-node-option", inputs: ["nzSelected", "nzDisabled"], outputs: ["nzClick"] }, { kind: "directive", type: i4.NzTreeNodeNoopToggleDirective, selector: "nz-tree-node-toggle[nzTreeNodeNoopToggle], [nzTreeNodeNoopToggle]" }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$1.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵ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: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzTooltipModule }, { kind: "directive", type: i9.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i10.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "pipe", type: NzHighlightPipe, name: "nzHighlight" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
398
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Tree, deps: [], target: i0.ɵɵFactoryTarget.Component });
399
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: Tree, isStandalone: true, selector: "axis-design-tree", inputs: { node: { classPropertyName: "node", publicName: "node", isSignal: true, isRequired: true, transformFunction: null }, optionsNodes: { classPropertyName: "optionsNodes", publicName: "optionsNodes", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onChange: "onChange", onSelect: "onSelect", onContextMenu: "onContextMenu" }, viewQueries: [{ propertyName: "tree", first: true, predicate: NzTreeComponent, descendants: true }], ngImport: i0, template: "<div nz-flex [nzVertical]=\"true\" style=\"height: 100%;\">\n <div nz-flex style=\"padding-right: 8px;\" nzGap=\"4px\" nzAlign=\"center\">\n <input style=\"flex:1;\" type=\"text\" nz-input placeholder=\"\u641C\u7D22\" nzVariant=\"borderless\" ngModel\n (ngModelChange)=\"searchValue$.next($event)\" />\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" (click)=\"toggleExpanded()\">\n <nz-icon [nzType]=\"hasExpanded?'shrink':'arrows-alt'\" nzTheme=\"outline\" />\n </button>\n </div>\n @if (node() === null) {\n <nz-empty [nzNotFoundContent]=\"contentTpl\" [nzNotFoundFooter]=\"footerTpl\">\n <ng-template #contentTpl>\n \u6CA1\u6709\u7EC4\u4EF6\n </ng-template>\n <ng-template #footerTpl>\n <button nz-button nzType=\"dashed\" (click)=\"addRootComponent()\">\n <nz-icon nzType=\"plus\"></nz-icon>\n \u6DFB\u52A0\u7EC4\u4EF6\n </button>\n </ng-template>\n </nz-empty>\n }@else {\n <nz-tree nzMultiple nzDraggable [nzSearchValue]=\"searchValue()??''\" [nzData]=\"treeNode()\"\n [(nzExpandedKeys)]=\"expandedNodeids\" (nzExpandChange)=\"expandChange($event)\"\n [(nzSelectedKeys)]=\"selectedNodeids\" nzBlockNode nzShowIcon (nzClick)=\"onNodeClick($event)\"\n (nzContextMenu)=\"contextMenu($event)\" [nzBeforeDrop]=\"dragdrop().beforeDrop\"\n (nzOnDragStart)=\"dragdrop().onDragStart($event)\" (nzOnDragOver)=\"dragdrop().onDragOver($event)\"\n (nzOnDragEnd)=\"dragdrop().onDragEnd($event)\" />\n <!-- <nz-tree-view nzDirectoryTree [nzTreeControl]=\"treeControl\" [nzDataSource]=\"dataSource\">\n <nz-tree-node *nzTreeNodeDef=\"let node\" nzTreeNodePadding [nzTreeNodePaddingIndent]=\"8\"\n (contextmenu)=\"contextMenu($event, node.id)\" [draggable]=\"dragdrop().canDrag(node.id)\"\n (dragstart)=\"dragdrop().onDragStart($event, node.id)\" (dragover)=\"dragdrop().onDragOver($event, node.id)\"\n (dragend)=\"dragdrop().onDragEnd($event,node.id)\">\n <nz-tree-node-toggle nzTreeNodeNoopToggle></nz-tree-node-toggle>\n <nz-tree-node-option [nzDisabled]=\"node.disabled\" [nzSelected]=\"selectListSelection.isSelected(node.id)\"\n (nzClick)=\"onNodeClick($event,node.id)\" [nz-tooltip]=\"node.id\" [nzTooltipMouseEnterDelay]=\"0.6\">\n <i nz-icon [nzType]=\"node.icon\" style=\"margin: 4px;\"></i>\n <span [innerHTML]=\"node.title | nzHighlight: searchValue() : 'i' : 'highlight'\"></span>\n </nz-tree-node-option>\n </nz-tree-node>\n <nz-tree-node *nzTreeNodeDef=\"let node; when: hasChild\" nzTreeNodePadding [nzTreeNodePaddingIndent]=\"8\"\n (contextmenu)=\"contextMenu($event, node.id)\" [draggable]=\"dragdrop().canDrag(node.id)\"\n (dragstart)=\"dragdrop().onDragStart($event, node.id)\" (dragover)=\"dragdrop().onDragOver($event, node.id)\"\n (dragend)=\"dragdrop().onDragEnd($event,node.id)\">\n <nz-tree-node-toggle>\n <nz-icon nzType=\"caret-down\" nzTreeNodeToggleRotateIcon />\n </nz-tree-node-toggle>\n <nz-tree-node-option [nzDisabled]=\"node.disabled\" [nzSelected]=\"selectListSelection.isSelected(node.id)\"\n (nzClick)=\"onNodeClick($event,node.id)\" [nz-tooltip]=\"node.id\" [nzTooltipMouseEnterDelay]=\"0.6\">\n <i nz-icon [nzType]=\"node.icon\" style=\"margin: 4px;\"></i>\n <span [innerHTML]=\"node.title | nzHighlight: searchValue() : 'i' : 'highlight'\"></span>\n </nz-tree-node-option>\n </nz-tree-node>\n </nz-tree-view> -->\n }\n</div>", styles: ["nz-tree{overflow:auto;flex:1}nz-tree ::ng-deep nz-tree-node{position:relative}nz-tree ::ng-deep .drop_in{outline:1px solid var(--ant-primary-color)}nz-tree ::ng-deep .drop_up:after{content:\"\";position:absolute;top:-1px;width:100%;height:2px;background-color:var(--ant-primary-color)}nz-tree ::ng-deep .drop_down:after{content:\"\";position:absolute;bottom:-1px;width:100%;height:2px;background-color:var(--ant-primary-color)}nz-tree ::ng-deep .ant-tree-list-holder{margin-bottom:300px}nz-tree ::ng-deep nz-tree-drop-indicator{display:none}nz-tree ::ng-deep .dragging{opacity:.4!important}nz-tree ::ng-deep .dragging:after{display:none!important}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i2.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled", "readonly"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzTreeModule }, { kind: "component", type: i4.NzTreeComponent, selector: "nz-tree", inputs: ["nzShowIcon", "nzHideUnMatched", "nzBlockNode", "nzExpandAll", "nzSelectMode", "nzCheckStrictly", "nzShowExpand", "nzShowLine", "nzCheckable", "nzAsyncData", "nzDraggable", "nzMultiple", "nzExpandedIcon", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzTreeTemplate", "nzBeforeDrop", "nzData", "nzExpandedKeys", "nzSelectedKeys", "nzCheckedKeys", "nzSearchValue", "nzSearchFunc"], outputs: ["nzExpandedKeysChange", "nzSelectedKeysChange", "nzCheckedKeysChange", "nzSearchValueChange", "nzClick", "nzDblClick", "nzContextMenu", "nzCheckboxChange", "nzExpandChange", "nzOnDragStart", "nzOnDragEnter", "nzOnDragOver", "nzOnDragLeave", "nzOnDrop", "nzOnDragEnd"], exportAs: ["nzTree"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$1.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵ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: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzTooltipModule }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i9.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
415
400
  }
416
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: Tree, decorators: [{
401
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Tree, decorators: [{
417
402
  type: Component,
418
- args: [{ selector: 'axis-design-tree', imports: [FormsModule, NzInputModule, NzIconModule, NzTreeViewModule, NzFlexModule, NzHighlightPipe, NzButtonModule, NzTooltipModule, NzEmptyModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div nz-flex [nzVertical]=\"true\" style=\"height: 100%;\">\n <div nz-flex style=\"padding-right: 8px;\" nzGap=\"4px\" nzAlign=\"center\">\n <input style=\"flex:1;\" type=\"text\" nz-input placeholder=\"\u641C\u7D22\" nzBorderless ngModel\n (ngModelChange)=\"searchValue$.next($event)\" />\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" (click)=\"toggleExpanded()\">\n <nz-icon [nzType]=\"hasExpanded?'shrink':'arrows-alt'\" nzTheme=\"outline\" />\n </button>\n </div>\n @if (node() === null) {\n <nz-empty [nzNotFoundContent]=\"contentTpl\" [nzNotFoundFooter]=\"footerTpl\">\n <ng-template #contentTpl>\n \u6CA1\u6709\u7EC4\u4EF6\n </ng-template>\n <ng-template #footerTpl>\n <button nz-button nzType=\"dashed\" (click)=\"addRootComponent()\">\n <nz-icon nzType=\"plus\"></nz-icon>\n \u6DFB\u52A0\u7EC4\u4EF6\n </button>\n </ng-template>\n </nz-empty>\n }@else {\n <nz-tree-view nzDirectoryTree [nzTreeControl]=\"treeControl\" [nzDataSource]=\"dataSource\">\n <nz-tree-node *nzTreeNodeDef=\"let node\" nzTreeNodePadding [nzTreeNodePaddingIndent]=\"8\"\n (contextmenu)=\"contextMenu($event, node.id)\" [draggable]=\"dragdrop().canDrag(node.id)\"\n (dragstart)=\"dragdrop().onDragStart($event, node.id)\" (dragover)=\"dragdrop().onDragOver($event, node.id)\"\n (dragend)=\"dragdrop().onDragEnd($event,node.id)\">\n <nz-tree-node-toggle nzTreeNodeNoopToggle></nz-tree-node-toggle>\n <nz-tree-node-option [nzDisabled]=\"node.disabled\" [nzSelected]=\"selectListSelection.isSelected(node.id)\"\n (nzClick)=\"onNodeClick($event,node.id)\" [nz-tooltip]=\"node.id\" [nzTooltipMouseEnterDelay]=\"0.6\">\n <i nz-icon [nzType]=\"node.icon\" style=\"margin: 4px;\"></i>\n <span [innerHTML]=\"node.title | nzHighlight: searchValue() : 'i' : 'highlight'\"></span>\n </nz-tree-node-option>\n </nz-tree-node>\n <nz-tree-node *nzTreeNodeDef=\"let node; when: hasChild\" nzTreeNodePadding [nzTreeNodePaddingIndent]=\"8\"\n (contextmenu)=\"contextMenu($event, node.id)\" [draggable]=\"dragdrop().canDrag(node.id)\"\n (dragstart)=\"dragdrop().onDragStart($event, node.id)\" (dragover)=\"dragdrop().onDragOver($event, node.id)\"\n (dragend)=\"dragdrop().onDragEnd($event,node.id)\">\n <nz-tree-node-toggle>\n <nz-icon nzType=\"caret-down\" nzTreeNodeToggleRotateIcon />\n </nz-tree-node-toggle>\n <nz-tree-node-option [nzDisabled]=\"node.disabled\" [nzSelected]=\"selectListSelection.isSelected(node.id)\"\n (nzClick)=\"onNodeClick($event,node.id)\" [nz-tooltip]=\"node.id\" [nzTooltipMouseEnterDelay]=\"0.6\">\n <i nz-icon [nzType]=\"node.icon\" style=\"margin: 4px;\"></i>\n <span [innerHTML]=\"node.title | nzHighlight: searchValue() : 'i' : 'highlight'\"></span>\n </nz-tree-node-option>\n </nz-tree-node>\n </nz-tree-view>\n }\n</div>", styles: ["::ng-deep .highlight{color:#f50}nz-tree-view{overflow:auto;flex:1}.drop_in{outline:1px solid blue}.drop_up:after{content:\"\";position:absolute;top:-1px;width:100%;height:2px;background-color:#00f}.drop_down:after{content:\"\";position:absolute;bottom:-1px;width:100%;height:2px;background-color:#00f}nz-tree-view ::ng-deep .ant-tree-list-holder{margin-bottom:300px}\n"] }]
419
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { node: [{ type: i0.Input, args: [{ isSignal: true, alias: "node", required: true }] }], optionsNodes: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionsNodes", required: true }] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onSelect: [{ type: i0.Output, args: ["onSelect"] }], onContextMenu: [{ type: i0.Output, args: ["onContextMenu"] }] } });
420
- function filterTreeData(data, value) {
421
- const needsToExpanded = new Set();
422
- const _filter = (node, result) => {
423
- if (node.name?.search(value) !== -1 || node.id?.search(value) !== -1) {
424
- result.push(node);
425
- return result;
426
- }
427
- if (Array.isArray(node.children)) {
428
- const nodes = node.children.reduce((a, b) => _filter(b, a), []);
429
- if (nodes.length) {
430
- const parentNode = node.copyWith({ children: nodes });
431
- needsToExpanded.add(parentNode.id);
432
- result.push(parentNode);
433
- }
434
- }
435
- return result;
436
- };
437
- const treeData = data.reduce((a, b) => _filter(b, a), []);
438
- return new FilteredTreeResult(treeData, [...needsToExpanded]);
439
- }
403
+ args: [{ selector: 'axis-design-tree', imports: [FormsModule, NzInputModule, NzIconModule, NzTreeModule, NzFlexModule, NzButtonModule, NzTooltipModule, NzEmptyModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div nz-flex [nzVertical]=\"true\" style=\"height: 100%;\">\n <div nz-flex style=\"padding-right: 8px;\" nzGap=\"4px\" nzAlign=\"center\">\n <input style=\"flex:1;\" type=\"text\" nz-input placeholder=\"\u641C\u7D22\" nzVariant=\"borderless\" ngModel\n (ngModelChange)=\"searchValue$.next($event)\" />\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" (click)=\"toggleExpanded()\">\n <nz-icon [nzType]=\"hasExpanded?'shrink':'arrows-alt'\" nzTheme=\"outline\" />\n </button>\n </div>\n @if (node() === null) {\n <nz-empty [nzNotFoundContent]=\"contentTpl\" [nzNotFoundFooter]=\"footerTpl\">\n <ng-template #contentTpl>\n \u6CA1\u6709\u7EC4\u4EF6\n </ng-template>\n <ng-template #footerTpl>\n <button nz-button nzType=\"dashed\" (click)=\"addRootComponent()\">\n <nz-icon nzType=\"plus\"></nz-icon>\n \u6DFB\u52A0\u7EC4\u4EF6\n </button>\n </ng-template>\n </nz-empty>\n }@else {\n <nz-tree nzMultiple nzDraggable [nzSearchValue]=\"searchValue()??''\" [nzData]=\"treeNode()\"\n [(nzExpandedKeys)]=\"expandedNodeids\" (nzExpandChange)=\"expandChange($event)\"\n [(nzSelectedKeys)]=\"selectedNodeids\" nzBlockNode nzShowIcon (nzClick)=\"onNodeClick($event)\"\n (nzContextMenu)=\"contextMenu($event)\" [nzBeforeDrop]=\"dragdrop().beforeDrop\"\n (nzOnDragStart)=\"dragdrop().onDragStart($event)\" (nzOnDragOver)=\"dragdrop().onDragOver($event)\"\n (nzOnDragEnd)=\"dragdrop().onDragEnd($event)\" />\n <!-- <nz-tree-view nzDirectoryTree [nzTreeControl]=\"treeControl\" [nzDataSource]=\"dataSource\">\n <nz-tree-node *nzTreeNodeDef=\"let node\" nzTreeNodePadding [nzTreeNodePaddingIndent]=\"8\"\n (contextmenu)=\"contextMenu($event, node.id)\" [draggable]=\"dragdrop().canDrag(node.id)\"\n (dragstart)=\"dragdrop().onDragStart($event, node.id)\" (dragover)=\"dragdrop().onDragOver($event, node.id)\"\n (dragend)=\"dragdrop().onDragEnd($event,node.id)\">\n <nz-tree-node-toggle nzTreeNodeNoopToggle></nz-tree-node-toggle>\n <nz-tree-node-option [nzDisabled]=\"node.disabled\" [nzSelected]=\"selectListSelection.isSelected(node.id)\"\n (nzClick)=\"onNodeClick($event,node.id)\" [nz-tooltip]=\"node.id\" [nzTooltipMouseEnterDelay]=\"0.6\">\n <i nz-icon [nzType]=\"node.icon\" style=\"margin: 4px;\"></i>\n <span [innerHTML]=\"node.title | nzHighlight: searchValue() : 'i' : 'highlight'\"></span>\n </nz-tree-node-option>\n </nz-tree-node>\n <nz-tree-node *nzTreeNodeDef=\"let node; when: hasChild\" nzTreeNodePadding [nzTreeNodePaddingIndent]=\"8\"\n (contextmenu)=\"contextMenu($event, node.id)\" [draggable]=\"dragdrop().canDrag(node.id)\"\n (dragstart)=\"dragdrop().onDragStart($event, node.id)\" (dragover)=\"dragdrop().onDragOver($event, node.id)\"\n (dragend)=\"dragdrop().onDragEnd($event,node.id)\">\n <nz-tree-node-toggle>\n <nz-icon nzType=\"caret-down\" nzTreeNodeToggleRotateIcon />\n </nz-tree-node-toggle>\n <nz-tree-node-option [nzDisabled]=\"node.disabled\" [nzSelected]=\"selectListSelection.isSelected(node.id)\"\n (nzClick)=\"onNodeClick($event,node.id)\" [nz-tooltip]=\"node.id\" [nzTooltipMouseEnterDelay]=\"0.6\">\n <i nz-icon [nzType]=\"node.icon\" style=\"margin: 4px;\"></i>\n <span [innerHTML]=\"node.title | nzHighlight: searchValue() : 'i' : 'highlight'\"></span>\n </nz-tree-node-option>\n </nz-tree-node>\n </nz-tree-view> -->\n }\n</div>", styles: ["nz-tree{overflow:auto;flex:1}nz-tree ::ng-deep nz-tree-node{position:relative}nz-tree ::ng-deep .drop_in{outline:1px solid var(--ant-primary-color)}nz-tree ::ng-deep .drop_up:after{content:\"\";position:absolute;top:-1px;width:100%;height:2px;background-color:var(--ant-primary-color)}nz-tree ::ng-deep .drop_down:after{content:\"\";position:absolute;bottom:-1px;width:100%;height:2px;background-color:var(--ant-primary-color)}nz-tree ::ng-deep .ant-tree-list-holder{margin-bottom:300px}nz-tree ::ng-deep nz-tree-drop-indicator{display:none}nz-tree ::ng-deep .dragging{opacity:.4!important}nz-tree ::ng-deep .dragging:after{display:none!important}\n"] }]
404
+ }], ctorParameters: () => [], propDecorators: { node: [{ type: i0.Input, args: [{ isSignal: true, alias: "node", required: true }] }], optionsNodes: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionsNodes", required: true }] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onSelect: [{ type: i0.Output, args: ["onSelect"] }], onContextMenu: [{ type: i0.Output, args: ["onContextMenu"] }], tree: [{
405
+ type: ViewChild,
406
+ args: [NzTreeComponent]
407
+ }] } });
440
408
 
441
409
  class DropHandler {
442
410
  dragNode;
@@ -813,16 +781,16 @@ class Preview {
813
781
  }
814
782
  });
815
783
  }
816
- loadAndOptions = input.required(...(ngDevMode ? [{ debugName: "loadAndOptions" }] : []));
817
- optionsNodes = input.required(...(ngDevMode ? [{ debugName: "optionsNodes" }] : []));
818
- injectData = input.required(...(ngDevMode ? [{ debugName: "injectData" }] : []));
819
- httpContextData = input(...(ngDevMode ? [undefined, { debugName: "httpContextData" }] : []));
784
+ loadAndOptions = input.required(...(ngDevMode ? [{ debugName: "loadAndOptions" }] : /* istanbul ignore next */ []));
785
+ optionsNodes = input.required(...(ngDevMode ? [{ debugName: "optionsNodes" }] : /* istanbul ignore next */ []));
786
+ injectData = input.required(...(ngDevMode ? [{ debugName: "injectData" }] : /* istanbul ignore next */ []));
787
+ httpContextData = input(...(ngDevMode ? [undefined, { debugName: "httpContextData" }] : /* istanbul ignore next */ []));
820
788
  httpContextDataSubject = new BehaviorSubject(undefined);
821
789
  httpContextDataSub;
822
- fileBaseUrl = input(...(ngDevMode ? [undefined, { debugName: "fileBaseUrl" }] : []));
790
+ fileBaseUrl = input(...(ngDevMode ? [undefined, { debugName: "fileBaseUrl" }] : /* istanbul ignore next */ []));
823
791
  fileBaseUrlSubject = new BehaviorSubject("");
824
792
  fileBaseUrlSub;
825
- injectFunc = input(...(ngDevMode ? [undefined, { debugName: "injectFunc" }] : []));
793
+ injectFunc = input(...(ngDevMode ? [undefined, { debugName: "injectFunc" }] : /* istanbul ignore next */ []));
826
794
  injectFuncSubject = new BehaviorSubject({});
827
795
  injectFuncSub;
828
796
  loader = inject(AXIS_COMPONENTS_LOADER_TOKEN);
@@ -1028,8 +996,8 @@ class Preview {
1028
996
  this.httpContextDataSub?.unsubscribe();
1029
997
  this.injectFuncSub?.unsubscribe();
1030
998
  }
1031
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: Preview, deps: [], target: i0.ɵɵFactoryTarget.Component });
1032
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: Preview, isStandalone: true, selector: "axis-design-preview", inputs: { loadAndOptions: { classPropertyName: "loadAndOptions", publicName: "loadAndOptions", isSignal: true, isRequired: true, transformFunction: null }, optionsNodes: { classPropertyName: "optionsNodes", publicName: "optionsNodes", isSignal: true, isRequired: true, transformFunction: null }, injectData: { classPropertyName: "injectData", publicName: "injectData", isSignal: true, isRequired: true, transformFunction: null }, httpContextData: { classPropertyName: "httpContextData", publicName: "httpContextData", isSignal: true, isRequired: false, transformFunction: null }, fileBaseUrl: { classPropertyName: "fileBaseUrl", publicName: "fileBaseUrl", isSignal: true, isRequired: false, transformFunction: null }, injectFunc: { classPropertyName: "injectFunc", publicName: "injectFunc", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange", onSelect: "onSelect", onContextMenu: "onContextMenu", onForceRender: "onForceRender" }, providers: [
999
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Preview, deps: [], target: i0.ɵɵFactoryTarget.Component });
1000
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: Preview, isStandalone: true, selector: "axis-design-preview", inputs: { loadAndOptions: { classPropertyName: "loadAndOptions", publicName: "loadAndOptions", isSignal: true, isRequired: true, transformFunction: null }, optionsNodes: { classPropertyName: "optionsNodes", publicName: "optionsNodes", isSignal: true, isRequired: true, transformFunction: null }, injectData: { classPropertyName: "injectData", publicName: "injectData", isSignal: true, isRequired: true, transformFunction: null }, httpContextData: { classPropertyName: "httpContextData", publicName: "httpContextData", isSignal: true, isRequired: false, transformFunction: null }, fileBaseUrl: { classPropertyName: "fileBaseUrl", publicName: "fileBaseUrl", isSignal: true, isRequired: false, transformFunction: null }, injectFunc: { classPropertyName: "injectFunc", publicName: "injectFunc", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange", onSelect: "onSelect", onContextMenu: "onContextMenu", onForceRender: "onForceRender" }, providers: [
1033
1001
  {
1034
1002
  provide: DesignBuilder,
1035
1003
  useFactory: (preview) => {
@@ -1063,7 +1031,7 @@ class Preview {
1063
1031
  },
1064
1032
  ], viewQueries: [{ propertyName: "dynamicDirective", first: true, predicate: ["child"], descendants: true, read: DynamicDirective }], ngImport: i0, template: "<ng-container #child [axisDynamic]=\"loadAndOptions()?.[1]\" [standalone]=\"true\" [isDesign]=\"true\"></ng-container>", styles: [":host{padding:4px}\n"], dependencies: [{ kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1065
1033
  }
1066
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: Preview, decorators: [{
1034
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Preview, decorators: [{
1067
1035
  type: Component,
1068
1036
  args: [{ selector: 'axis-design-preview', imports: [DynamicDirective, CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
1069
1037
  {
@@ -1112,10 +1080,10 @@ class Cmplib {
1112
1080
  });
1113
1081
  }
1114
1082
  cmplibs = inject(AXIS_DESIGN_CMPLIBS_TOKEN, { optional: true });
1115
- cmplib = model(...(ngDevMode ? [undefined, { debugName: "cmplib" }] : []));
1116
- dragOptions = signal(undefined, ...(ngDevMode ? [{ debugName: "dragOptions" }] : []));
1117
- selectMode = input.required(...(ngDevMode ? [{ debugName: "selectMode" }] : []));
1118
- tags = input(...(ngDevMode ? [undefined, { debugName: "tags" }] : []));
1083
+ cmplib = model(...(ngDevMode ? [undefined, { debugName: "cmplib" }] : /* istanbul ignore next */ []));
1084
+ dragOptions = signal(undefined, ...(ngDevMode ? [{ debugName: "dragOptions" }] : /* istanbul ignore next */ []));
1085
+ selectMode = input.required(...(ngDevMode ? [{ debugName: "selectMode" }] : /* istanbul ignore next */ []));
1086
+ tags = input(...(ngDevMode ? [undefined, { debugName: "tags" }] : /* istanbul ignore next */ []));
1119
1087
  dragExample;
1120
1088
  clickExample = output();
1121
1089
  dragStart = output();
@@ -1172,12 +1140,12 @@ class Cmplib {
1172
1140
  this.dragEnd.emit();
1173
1141
  }
1174
1142
  }
1175
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: Cmplib, deps: [], target: i0.ɵɵFactoryTarget.Component });
1176
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: Cmplib, isStandalone: true, selector: "axis-cmplib", inputs: { cmplib: { classPropertyName: "cmplib", publicName: "cmplib", isSignal: true, isRequired: false, transformFunction: null }, selectMode: { classPropertyName: "selectMode", publicName: "selectMode", isSignal: true, isRequired: true, transformFunction: null }, tags: { classPropertyName: "tags", publicName: "tags", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cmplib: "cmplibChange", clickExample: "clickExample", dragStart: "dragStart", dragEnd: "dragEnd" }, viewQueries: [{ propertyName: "dragElement", first: true, predicate: ["dragElement"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: "<div nz-flex nzAlign=\"center\">\n <input style=\"flex:1\" type=\"text\" nz-input placeholder=\"\u641C\u7D22\" nzBorderless ngModel\n (ngModelChange)=\"searchValue$.next($event)\" />\n <nz-select [(ngModel)]=\"cmplib\" nzSize=\"small\" nzBorderless style=\"width: auto;font-size: 12px;\">\n @for (lib of cmplibs; track $index) {\n <nz-option [nzValue]=\"lib.lib\" [nzLabel]=\"lib.libName\"></nz-option>\n }\n </nz-select>\n</div>\n<nz-collapse nzAccordion>\n @for (group of displayCmpLib(); track group.groupName) {\n <nz-collapse-panel [nzHeader]=\"`${group.groupName}(${group.children.length})`\">\n <div nz-row [nzGutter]=\"[8,8]\">\n @for (item of group.children; track item.component) {\n <div nz-col [nzSpan]=\"item.span\">\n <nz-card nzSize=\"small\" nzHoverable [nzCover]=\"coverTemplate\" [nzTitle]=\"item.component\"\n [nzExtra]=\"item.moreExamples? more:''\" [nzBodyStyle]=\"{padding:0}\" (click)=\"onClick(item.example)\"\n [draggable]=\"selectMode()=='drag'\" (mouseenter)=\"preloadDragElement(item.example,item)\"\n (dragstart)=\"onDragStart($event)\" (dragend)=\"onDragEnd($event)\">\n </nz-card>\n <ng-template #coverTemplate>\n <img style=\"margin: 4px;object-fit: contain;\" [style.height.px]=\"item.height\"\n [src]=\"item.coverImg\" />\n </ng-template>\n <ng-template #more>\n <a nz-button nzType=\"link\" nzSize=\"small\" nz-dropdown [nzDropdownMenu]=\"examples\">\n <nz-icon nzType=\"ellipsis\"></nz-icon>\n </a>\n <nz-dropdown-menu #examples=\"nzDropdownMenu\">\n <ul nz-menu nzSelectable>\n @for (item of item.moreExamples; track item.name) {\n <li nz-menu-item (click)=\"onClick(item)\" [draggable]=\"selectMode()=='drag'\"\n (mouseenter)=\"preloadDragElement(item)\" (dragstart)=\"onDragStart($event)\"\n (dragend)=\"onDragEnd($event)\">{{item.name}}</li>\n }\n </ul>\n </nz-dropdown-menu>\n </ng-template>\n </div>\n }\n </div>\n </nz-collapse-panel>\n }\n</nz-collapse>\n<div class=\"dragElementContainer\">\n <div #dragElement>\n @if (dragOptions()) {\n <ng-container [axisDynamic]=\"dragOptions()\" [standalone]=\"true\"></ng-container>\n {{dragOptions().type}}\n }\n </div>\n</div>", styles: [".dragElementContainer{position:absolute;z-index:-9999;top:100px}\n"], dependencies: [{ kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i1$1.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i1$1.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { kind: "ngmodule", type: NzCardModule }, { kind: "component", type: i2$1.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "directive", type: i3$2.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: i3$2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵ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: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i6$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i6$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i7$1.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzArrow", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "directive", type: i7$1.NzDropDownADirective, selector: "a[nz-dropdown]" }, { kind: "component", type: i7$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i7$1.NzDropdownButtonDirective, selector: "[nz-button][nz-dropdown]" }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i2.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled", "readonly"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: FormsModule }, { 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$1.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i12.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i12.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzPrefix", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1143
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Cmplib, deps: [], target: i0.ɵɵFactoryTarget.Component });
1144
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: Cmplib, isStandalone: true, selector: "axis-cmplib", inputs: { cmplib: { classPropertyName: "cmplib", publicName: "cmplib", isSignal: true, isRequired: false, transformFunction: null }, selectMode: { classPropertyName: "selectMode", publicName: "selectMode", isSignal: true, isRequired: true, transformFunction: null }, tags: { classPropertyName: "tags", publicName: "tags", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cmplib: "cmplibChange", clickExample: "clickExample", dragStart: "dragStart", dragEnd: "dragEnd" }, viewQueries: [{ propertyName: "dragElement", first: true, predicate: ["dragElement"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: "<div nz-flex nzAlign=\"center\">\n <input style=\"flex:1\" type=\"text\" nz-input placeholder=\"\u641C\u7D22\" nzVariant=\"borderless\" ngModel\n (ngModelChange)=\"searchValue$.next($event)\" />\n <nz-select [(ngModel)]=\"cmplib\" nzSize=\"small\" nzVariant=\"borderless\" style=\"width: auto;\">\n @for (lib of cmplibs; track $index) {\n <nz-option [nzValue]=\"lib.lib\" [nzLabel]=\"lib.libName\"></nz-option>\n }\n </nz-select>\n</div>\n<nz-collapse nzAccordion>\n @for (group of displayCmpLib(); track group.groupName) {\n <nz-collapse-panel [nzHeader]=\"`${group.groupName}(${group.children.length})`\">\n <div nz-row [nzGutter]=\"[8,8]\">\n @for (item of group.children; track item.component) {\n <div nz-col [nzSpan]=\"item.span\">\n <nz-card nzSize=\"small\" nzHoverable [nzCover]=\"coverTemplate\" [nzTitle]=\"item.component\"\n [nzExtra]=\"item.moreExamples? more:''\" [nzBodyStyle]=\"{padding:0}\" (click)=\"onClick(item.example)\"\n [draggable]=\"selectMode()=='drag'\" (mouseenter)=\"preloadDragElement(item.example,item)\"\n (dragstart)=\"onDragStart($event)\" (dragend)=\"onDragEnd($event)\">\n </nz-card>\n <ng-template #coverTemplate>\n <img style=\"margin: 4px;object-fit: contain;\" [style.height.px]=\"item.height\"\n [src]=\"item.coverImg\" />\n </ng-template>\n <ng-template #more>\n <a nz-button nzType=\"link\" nzSize=\"small\" nz-dropdown [nzDropdownMenu]=\"examples\">\n <nz-icon nzType=\"ellipsis\"></nz-icon>\n </a>\n <nz-dropdown-menu #examples=\"nzDropdownMenu\">\n <ul nz-menu nzSelectable>\n @for (item of item.moreExamples; track item.name) {\n <li nz-menu-item (click)=\"onClick(item)\" [draggable]=\"selectMode()=='drag'\"\n (mouseenter)=\"preloadDragElement(item)\" (dragstart)=\"onDragStart($event)\"\n (dragend)=\"onDragEnd($event)\">{{item.name}}</li>\n }\n </ul>\n </nz-dropdown-menu>\n </ng-template>\n </div>\n }\n </div>\n </nz-collapse-panel>\n }\n</nz-collapse>\n<div class=\"dragElementContainer\">\n <div #dragElement>\n @if (dragOptions()) {\n <ng-container [axisDynamic]=\"dragOptions()\" [standalone]=\"true\"></ng-container>\n {{dragOptions().type}}\n }\n </div>\n</div>", styles: [".dragElementContainer{position:absolute;z-index:-9999;top:100px}\n"], dependencies: [{ kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i1$1.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i1$1.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { kind: "ngmodule", type: NzCardModule }, { kind: "component", type: i2$1.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "directive", type: i3$2.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: i3$2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵ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: "ngmodule", type: NzDropdownModule }, { kind: "directive", type: i6$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i6$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i7$1.NzDropdownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzArrow", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "directive", type: i7$1.NzDropdownADirective, selector: "a[nz-dropdown]" }, { kind: "component", type: i7$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i2.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled", "readonly"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: FormsModule }, { 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$1.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i12.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i12.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzPrefix", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1177
1145
  }
1178
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: Cmplib, decorators: [{
1146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Cmplib, decorators: [{
1179
1147
  type: Component,
1180
- args: [{ selector: 'axis-cmplib', imports: [NzCollapseModule, NzCardModule, NzGridModule, DynamicDirective, NzButtonModule, NzDropDownModule, NzInputModule, FormsModule, NzIconModule, NzFlexModule, NzSelectModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div nz-flex nzAlign=\"center\">\n <input style=\"flex:1\" type=\"text\" nz-input placeholder=\"\u641C\u7D22\" nzBorderless ngModel\n (ngModelChange)=\"searchValue$.next($event)\" />\n <nz-select [(ngModel)]=\"cmplib\" nzSize=\"small\" nzBorderless style=\"width: auto;font-size: 12px;\">\n @for (lib of cmplibs; track $index) {\n <nz-option [nzValue]=\"lib.lib\" [nzLabel]=\"lib.libName\"></nz-option>\n }\n </nz-select>\n</div>\n<nz-collapse nzAccordion>\n @for (group of displayCmpLib(); track group.groupName) {\n <nz-collapse-panel [nzHeader]=\"`${group.groupName}(${group.children.length})`\">\n <div nz-row [nzGutter]=\"[8,8]\">\n @for (item of group.children; track item.component) {\n <div nz-col [nzSpan]=\"item.span\">\n <nz-card nzSize=\"small\" nzHoverable [nzCover]=\"coverTemplate\" [nzTitle]=\"item.component\"\n [nzExtra]=\"item.moreExamples? more:''\" [nzBodyStyle]=\"{padding:0}\" (click)=\"onClick(item.example)\"\n [draggable]=\"selectMode()=='drag'\" (mouseenter)=\"preloadDragElement(item.example,item)\"\n (dragstart)=\"onDragStart($event)\" (dragend)=\"onDragEnd($event)\">\n </nz-card>\n <ng-template #coverTemplate>\n <img style=\"margin: 4px;object-fit: contain;\" [style.height.px]=\"item.height\"\n [src]=\"item.coverImg\" />\n </ng-template>\n <ng-template #more>\n <a nz-button nzType=\"link\" nzSize=\"small\" nz-dropdown [nzDropdownMenu]=\"examples\">\n <nz-icon nzType=\"ellipsis\"></nz-icon>\n </a>\n <nz-dropdown-menu #examples=\"nzDropdownMenu\">\n <ul nz-menu nzSelectable>\n @for (item of item.moreExamples; track item.name) {\n <li nz-menu-item (click)=\"onClick(item)\" [draggable]=\"selectMode()=='drag'\"\n (mouseenter)=\"preloadDragElement(item)\" (dragstart)=\"onDragStart($event)\"\n (dragend)=\"onDragEnd($event)\">{{item.name}}</li>\n }\n </ul>\n </nz-dropdown-menu>\n </ng-template>\n </div>\n }\n </div>\n </nz-collapse-panel>\n }\n</nz-collapse>\n<div class=\"dragElementContainer\">\n <div #dragElement>\n @if (dragOptions()) {\n <ng-container [axisDynamic]=\"dragOptions()\" [standalone]=\"true\"></ng-container>\n {{dragOptions().type}}\n }\n </div>\n</div>", styles: [".dragElementContainer{position:absolute;z-index:-9999;top:100px}\n"] }]
1148
+ args: [{ selector: 'axis-cmplib', imports: [NzCollapseModule, NzCardModule, NzGridModule, DynamicDirective, NzButtonModule, NzDropdownModule, NzInputModule, FormsModule, NzIconModule, NzFlexModule, NzSelectModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div nz-flex nzAlign=\"center\">\n <input style=\"flex:1\" type=\"text\" nz-input placeholder=\"\u641C\u7D22\" nzVariant=\"borderless\" ngModel\n (ngModelChange)=\"searchValue$.next($event)\" />\n <nz-select [(ngModel)]=\"cmplib\" nzSize=\"small\" nzVariant=\"borderless\" style=\"width: auto;\">\n @for (lib of cmplibs; track $index) {\n <nz-option [nzValue]=\"lib.lib\" [nzLabel]=\"lib.libName\"></nz-option>\n }\n </nz-select>\n</div>\n<nz-collapse nzAccordion>\n @for (group of displayCmpLib(); track group.groupName) {\n <nz-collapse-panel [nzHeader]=\"`${group.groupName}(${group.children.length})`\">\n <div nz-row [nzGutter]=\"[8,8]\">\n @for (item of group.children; track item.component) {\n <div nz-col [nzSpan]=\"item.span\">\n <nz-card nzSize=\"small\" nzHoverable [nzCover]=\"coverTemplate\" [nzTitle]=\"item.component\"\n [nzExtra]=\"item.moreExamples? more:''\" [nzBodyStyle]=\"{padding:0}\" (click)=\"onClick(item.example)\"\n [draggable]=\"selectMode()=='drag'\" (mouseenter)=\"preloadDragElement(item.example,item)\"\n (dragstart)=\"onDragStart($event)\" (dragend)=\"onDragEnd($event)\">\n </nz-card>\n <ng-template #coverTemplate>\n <img style=\"margin: 4px;object-fit: contain;\" [style.height.px]=\"item.height\"\n [src]=\"item.coverImg\" />\n </ng-template>\n <ng-template #more>\n <a nz-button nzType=\"link\" nzSize=\"small\" nz-dropdown [nzDropdownMenu]=\"examples\">\n <nz-icon nzType=\"ellipsis\"></nz-icon>\n </a>\n <nz-dropdown-menu #examples=\"nzDropdownMenu\">\n <ul nz-menu nzSelectable>\n @for (item of item.moreExamples; track item.name) {\n <li nz-menu-item (click)=\"onClick(item)\" [draggable]=\"selectMode()=='drag'\"\n (mouseenter)=\"preloadDragElement(item)\" (dragstart)=\"onDragStart($event)\"\n (dragend)=\"onDragEnd($event)\">{{item.name}}</li>\n }\n </ul>\n </nz-dropdown-menu>\n </ng-template>\n </div>\n }\n </div>\n </nz-collapse-panel>\n }\n</nz-collapse>\n<div class=\"dragElementContainer\">\n <div #dragElement>\n @if (dragOptions()) {\n <ng-container [axisDynamic]=\"dragOptions()\" [standalone]=\"true\"></ng-container>\n {{dragOptions().type}}\n }\n </div>\n</div>", styles: [".dragElementContainer{position:absolute;z-index:-9999;top:100px}\n"] }]
1181
1149
  }], ctorParameters: () => [], propDecorators: { cmplib: [{ type: i0.Input, args: [{ isSignal: true, alias: "cmplib", required: false }] }, { type: i0.Output, args: ["cmplibChange"] }], selectMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectMode", required: true }] }], tags: [{ type: i0.Input, args: [{ isSignal: true, alias: "tags", required: false }] }], clickExample: [{ type: i0.Output, args: ["clickExample"] }], dragStart: [{ type: i0.Output, args: ["dragStart"] }], dragEnd: [{ type: i0.Output, args: ["dragEnd"] }], dragElement: [{
1182
1150
  type: ViewChild,
1183
1151
  args: ["dragElement", { read: ElementRef, static: true }]
@@ -1271,15 +1239,14 @@ class ShortcutKey {
1271
1239
  this.design.tools.shortcutKeysModal.set(true);
1272
1240
  }
1273
1241
  copy() {
1274
- const { selected } = this.design.tree.selectListSelection;
1275
- let options = selected.map(nodeId => this.design.optionsNodes.get(nodeId)).map(node => node?.options);
1242
+ let options = Array.from(this.design.tree.selectedNodeids()).map(nodeId => this.design.optionsNodes.get(nodeId)).map(node => node?.options);
1276
1243
  if (options.length == 1) {
1277
1244
  options = options[0];
1278
1245
  }
1279
1246
  this.design.clipboard.copy(JSON.stringify(options, null, 2));
1280
1247
  }
1281
1248
  cut() {
1282
- const { selected } = this.design.tree.selectListSelection;
1249
+ const selected = Array.from(this.design.tree.selectedNodeids());
1283
1250
  this.cutNodeIds = selected;
1284
1251
  const options = selected.map(nodeId => this.design.optionsNodes.get(nodeId)).map(node => node?.options);
1285
1252
  this.design.clipboard.copy(JSON.stringify(options, null, 2));
@@ -1296,7 +1263,7 @@ class ShortcutKey {
1296
1263
  else {
1297
1264
  objs = [j];
1298
1265
  }
1299
- if (objs?.length && this.design.tree.selectListSelection.selected.length > 0) {
1266
+ if (objs?.length && this.design.tree.selectedNodeids().length > 0) {
1300
1267
  if (this.cutNodeIds?.length && isEquals(objs.map(r => r.id), this.cutNodeIds)) {
1301
1268
  this.design.onNodesMove(this.cutNodeIds);
1302
1269
  this.cutNodeIds = undefined;
@@ -1314,18 +1281,18 @@ class ShortcutKey {
1314
1281
  }
1315
1282
 
1316
1283
  class DesignOptions extends ValueAccessOptions {
1317
- injectData = signal({}, ...(ngDevMode ? [{ debugName: "injectData" }] : []));
1318
- injectFunc = signal(undefined, ...(ngDevMode ? [{ debugName: "injectFunc" }] : []));
1319
- allPermissions = signal({}, ...(ngDevMode ? [{ debugName: "allPermissions" }] : []));
1320
- httpContextData = signal(undefined, ...(ngDevMode ? [{ debugName: "httpContextData" }] : []));
1321
- fileBaseUrl = signal("", ...(ngDevMode ? [{ debugName: "fileBaseUrl" }] : []));
1284
+ injectData = signal({}, ...(ngDevMode ? [{ debugName: "injectData" }] : /* istanbul ignore next */ []));
1285
+ injectFunc = signal(undefined, ...(ngDevMode ? [{ debugName: "injectFunc" }] : /* istanbul ignore next */ []));
1286
+ allPermissions = signal({}, ...(ngDevMode ? [{ debugName: "allPermissions" }] : /* istanbul ignore next */ []));
1287
+ httpContextData = signal(undefined, ...(ngDevMode ? [{ debugName: "httpContextData" }] : /* istanbul ignore next */ []));
1288
+ fileBaseUrl = signal("", ...(ngDevMode ? [{ debugName: "fileBaseUrl" }] : /* istanbul ignore next */ []));
1322
1289
  }
1323
1290
 
1324
1291
  class Toolbar {
1325
1292
  design = inject(Design);
1326
1293
  cdr = inject(ChangeDetectorRef);
1327
- onlyPreview = signal(false, ...(ngDevMode ? [{ debugName: "onlyPreview" }] : []));
1328
- shortcutKeysModal = model(false, ...(ngDevMode ? [{ debugName: "shortcutKeysModal" }] : []));
1294
+ onlyPreview = signal(false, ...(ngDevMode ? [{ debugName: "onlyPreview" }] : /* istanbul ignore next */ []));
1295
+ shortcutKeysModal = model(false, ...(ngDevMode ? [{ debugName: "shortcutKeysModal" }] : /* istanbul ignore next */ []));
1329
1296
  history = [];
1330
1297
  historyIndex = 0;
1331
1298
  putHistory(options, desc) {
@@ -1360,10 +1327,10 @@ class Toolbar {
1360
1327
  this.cdr.markForCheck();
1361
1328
  }
1362
1329
  }
1363
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: Toolbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
1364
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: Toolbar, isStandalone: true, selector: "axis-toolbar", inputs: { shortcutKeysModal: { classPropertyName: "shortcutKeysModal", publicName: "shortcutKeysModal", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { shortcutKeysModal: "shortcutKeysModalChange" }, ngImport: i0, template: "<div class=\"tools\" nz-flex nzGap=\"4px\">\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" nz-tooltip=\"\u5FEB\u6377\u952E\u8BF4\u660E\"\n (click)=\"shortcutKeysModal.set(true)\">\n <nz-icon nzType=\"exclamation-circle\" nzTheme=\"outline\" />\n </button>\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" nz-tooltip=\"\u7F16\u8F91\u5386\u53F2\" nz-popover\n [nzPopoverTitle]=\"historyTitle\" nzPopoverTrigger=\"click\" [nzPopoverContent]=\"historyTemp\"\n nzPopoverPlacement=\"bottom\" nzPopoverOverlayClassName=\"history-popover\">\n <nz-icon nzType=\"history\" nzTheme=\"outline\" />\n </button>\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" [nz-tooltip]=\"onlyPreview()?'\u6062\u590D':'\u653E\u5927'\"\n (click)=\"onlyPreview.set(!onlyPreview())\">\n <nz-icon [nzType]=\"onlyPreview()?'fullscreen-exit':'fullscreen'\" />\n </button>\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" nz-tooltip=\"\u91CD\u65B0\u8F7D\u5165\"\n (click)=\"design.preview.forceRender()\">\n <nz-icon nzType=\"reload\" />\n </button>\n</div>\n\n<ng-template #historyTitle>\n <div nz-flex>\n <div style=\"flex:1\">\u7F16\u8F91\u5386\u53F2</div>\n <button nz-button nzSize=\"small\" nzType=\"link\" nzShape=\"circle\" nz-tooltip=\"\u64A4\u9500\" (click)=\"undo()\"\n [disabled]=\"historyIndex==history.length-1\">\n <nz-icon nzType=\"undo\" nzTheme=\"outline\" />\n </button>\n <button nz-button nzSize=\"small\" nzType=\"link\" nzShape=\"circle\" nz-tooltip=\"\u91CD\u505A\" (click)=\"redo()\"\n [disabled]=\"historyIndex==0\">\n <nz-icon nzType=\"redo\" nzTheme=\"outline\" />\n </button>\n </div>\n</ng-template>\n\n<ng-template #historyTemp>\n <div nz-flex nzVertical nzGap=\"6px\" style=\"max-height: 300px;overflow: auto;\">\n @for (item of history; track item.time;let i=$index) {\n <div nz-flex nzAlign=\"center\" [class.active]=\"i == historyIndex\" class=\"history-item\" (click)=\"switchHistory(i)\">\n <div style=\"width: 20px;\">\n @if (i == historyIndex) {\n <nz-icon nzType=\"aim\" nzTheme=\"outline\" />\n }\n </div>\n <div nz-flex nzVertical>\n <span>{{item.desc}}</span>\n <span style=\"font-size: 10px;color:rgba(0,0,0,0.38)\"> {{item.time | axisHowLong}}</span>\n </div>\n </div>\n }\n </div>\n</ng-template>\n\n<nz-modal [(nzVisible)]=\"shortcutKeysModal\" nzTitle=\"\u5FEB\u6377\u952E\u8BF4\u660E\" nzDraggable [nzOkText]=\"null\" nzCancelText=\"\u5173\u95ED\"\n (nzOnCancel)=\"shortcutKeysModal.set(false)\">\n <ng-container *nzModalContent>\n <nz-table nzTemplateMode nzSize=\"small\">\n <thead>\n <tr>\n <th>\u529F\u80FD</th>\n <th>\u5FEB\u6377\u952E</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>\u67E5\u770B\u5FEB\u6377\u952E\u8BF4\u660E</td>\n <td>Ctrl Meta H</td>\n </tr>\n <tr>\n <td>\u591A\u9009&\u53CD\u9009</td>\n <td>Ctrl \u5355\u51FB / Meta \u5355\u51FB</td>\n </tr>\n <tr>\n <td>\u590D\u5236</td>\n <td>Ctrl C</td>\n </tr>\n <tr>\n <td>\u526A\u5207</td>\n <td>Ctrl X</td>\n </tr>\n <tr>\n <td>\u7C98\u8D34</td>\n <td>Ctrl V</td>\n </tr>\n <tr>\n <td>\u64A4\u9500</td>\n <td>Ctrl Z</td>\n </tr>\n <tr>\n <td>\u91CD\u505A</td>\n <td>Ctrl Shift Z</td>\n </tr>\n <tr>\n <td>\u9884\u89C8\u653E\u5927&\u6062\u590D</td>\n <td>Ctrl Meta C</td>\n </tr>\n <tr>\n <td>\u91CD\u65B0\u8F7D\u5165</td>\n <td>Ctrl Meta R</td>\n </tr>\n </tbody>\n </nz-table>\n </ng-container>\n</nz-modal>", styles: [".tools{position:absolute;right:20px;top:10px}::ng-deep .history-popover .ant-popover-inner-content{width:100%;padding:12px 0}.history-item{padding:0 12px;cursor:pointer}.history-item:hover{background-color:var(--ant-primary-1)}.active{color:var(--ant-primary-color);pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i1$2.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i1$2.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i2$2.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "directive", type: i2$2.NzTableCellDirective, selector: "th:not(.nz-disable-th), td:not(.nz-disable-td)" }, { kind: "directive", type: i2$2.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i2$2.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i2$2.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i2$2.NzTrDirective, selector: "tr:not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$1.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzTooltipModule }, { kind: "directive", type: i9.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵ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: "ngmodule", type: NzPopoverModule }, { kind: "directive", type: i8$1.NzPopoverDirective, selector: "[nz-popover]", inputs: ["nzPopoverArrowPointAtCenter", "nzPopoverTitle", "nzPopoverTitleContext", "nzPopoverContent", "nzPopoverContentContext", "nz-popover", "nzPopoverTrigger", "nzPopoverPlacement", "nzPopoverOrigin", "nzPopoverVisible", "nzPopoverMouseEnterDelay", "nzPopoverMouseLeaveDelay", "nzPopoverOverlayClassName", "nzPopoverOverlayStyle", "nzPopoverOverlayClickable", "nzPopoverBackdrop"], outputs: ["nzPopoverVisibleChange"], exportAs: ["nzPopover"] }, { kind: "pipe", type: HowLongPipe, name: "axisHowLong" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1330
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Toolbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
1331
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: Toolbar, isStandalone: true, selector: "axis-toolbar", inputs: { shortcutKeysModal: { classPropertyName: "shortcutKeysModal", publicName: "shortcutKeysModal", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { shortcutKeysModal: "shortcutKeysModalChange" }, ngImport: i0, template: "<div class=\"tools\" nz-flex nzGap=\"4px\">\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" nz-tooltip=\"\u5FEB\u6377\u952E\u8BF4\u660E\"\n (click)=\"shortcutKeysModal.set(true)\">\n <nz-icon nzType=\"exclamation-circle\" nzTheme=\"outline\" />\n </button>\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" nz-tooltip=\"\u7F16\u8F91\u5386\u53F2\" nz-popover\n [nzPopoverTitle]=\"historyTitle\" nzPopoverTrigger=\"click\" [nzPopoverContent]=\"historyTemp\"\n nzPopoverPlacement=\"bottom\" nzPopoverOverlayClassName=\"history-popover\">\n <nz-icon nzType=\"history\" nzTheme=\"outline\" />\n </button>\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" [nz-tooltip]=\"onlyPreview()?'\u6062\u590D':'\u653E\u5927'\"\n (click)=\"onlyPreview.set(!onlyPreview())\">\n <nz-icon [nzType]=\"onlyPreview()?'fullscreen-exit':'fullscreen'\" />\n </button>\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" nz-tooltip=\"\u91CD\u65B0\u8F7D\u5165\"\n (click)=\"design.preview.forceRender()\">\n <nz-icon nzType=\"reload\" />\n </button>\n</div>\n\n<ng-template #historyTitle>\n <div nz-flex>\n <div style=\"flex:1\">\u7F16\u8F91\u5386\u53F2</div>\n <button nz-button nzSize=\"small\" nzType=\"link\" nzShape=\"circle\" nz-tooltip=\"\u64A4\u9500\" (click)=\"undo()\"\n [disabled]=\"historyIndex==history.length-1\">\n <nz-icon nzType=\"undo\" nzTheme=\"outline\" />\n </button>\n <button nz-button nzSize=\"small\" nzType=\"link\" nzShape=\"circle\" nz-tooltip=\"\u91CD\u505A\" (click)=\"redo()\"\n [disabled]=\"historyIndex==0\">\n <nz-icon nzType=\"redo\" nzTheme=\"outline\" />\n </button>\n </div>\n</ng-template>\n\n<ng-template #historyTemp>\n <div nz-flex nzVertical nzGap=\"6px\" style=\"max-height: 300px;overflow: auto;\">\n @for (item of history; track item.time;let i=$index) {\n <div nz-flex nzAlign=\"center\" [class.active]=\"i == historyIndex\" class=\"history-item\" (click)=\"switchHistory(i)\">\n <div style=\"width: 20px;\">\n @if (i == historyIndex) {\n <nz-icon nzType=\"aim\" nzTheme=\"outline\" />\n }\n </div>\n <div nz-flex nzVertical>\n <span>{{item.desc}}</span>\n <span style=\"font-size: 10px;color:rgba(0,0,0,0.38)\"> {{item.time | axisHowLong}}</span>\n </div>\n </div>\n }\n </div>\n</ng-template>\n\n<nz-modal [(nzVisible)]=\"shortcutKeysModal\" nzTitle=\"\u5FEB\u6377\u952E\u8BF4\u660E\" nzDraggable [nzOkText]=\"null\" nzCancelText=\"\u5173\u95ED\"\n (nzOnCancel)=\"shortcutKeysModal.set(false)\">\n <ng-container *nzModalContent>\n <nz-table nzTemplateMode nzSize=\"small\">\n <thead>\n <tr>\n <th>\u529F\u80FD</th>\n <th>\u5FEB\u6377\u952E</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>\u67E5\u770B\u5FEB\u6377\u952E\u8BF4\u660E</td>\n <td>Ctrl Meta H</td>\n </tr>\n <tr>\n <td>\u591A\u9009&\u53CD\u9009</td>\n <td>Ctrl \u5355\u51FB / Meta \u5355\u51FB</td>\n </tr>\n <tr>\n <td>\u590D\u5236</td>\n <td>Ctrl C</td>\n </tr>\n <tr>\n <td>\u526A\u5207</td>\n <td>Ctrl X</td>\n </tr>\n <tr>\n <td>\u7C98\u8D34</td>\n <td>Ctrl V</td>\n </tr>\n <tr>\n <td>\u64A4\u9500</td>\n <td>Ctrl Z</td>\n </tr>\n <tr>\n <td>\u91CD\u505A</td>\n <td>Ctrl Shift Z</td>\n </tr>\n <tr>\n <td>\u9884\u89C8\u653E\u5927&\u6062\u590D</td>\n <td>Ctrl Meta C</td>\n </tr>\n <tr>\n <td>\u91CD\u65B0\u8F7D\u5165</td>\n <td>Ctrl Meta R</td>\n </tr>\n </tbody>\n </nz-table>\n </ng-container>\n</nz-modal>", styles: [".tools{position:absolute;right:20px;top:10px}::ng-deep .history-popover .ant-popover-inner-content{width:100%;padding:12px 0}.history-item{padding:0 12px;cursor:pointer}.history-item:hover{background-color:var(--ant-primary-1)}.active{color:var(--ant-primary-color);pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i1$2.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i1$2.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i2$2.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "directive", type: i2$2.NzTableCellDirective, selector: "th:not(.nz-disable-th), td:not(.nz-disable-td)" }, { kind: "directive", type: i2$2.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i2$2.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i2$2.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i2$2.NzTrDirective, selector: "tr:not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$1.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzTooltipModule }, { kind: "directive", type: i5.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵ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: "ngmodule", type: NzPopoverModule }, { kind: "directive", type: i8$1.NzPopoverDirective, selector: "[nz-popover]", inputs: ["nzPopoverArrowPointAtCenter", "nzPopoverTitle", "nzPopoverTitleContext", "nzPopoverContent", "nzPopoverContentContext", "nz-popover", "nzPopoverTrigger", "nzPopoverPlacement", "nzPopoverOrigin", "nzPopoverVisible", "nzPopoverMouseEnterDelay", "nzPopoverMouseLeaveDelay", "nzPopoverOverlayClassName", "nzPopoverOverlayStyle", "nzPopoverOverlayClickable", "nzPopoverBackdrop"], outputs: ["nzPopoverVisibleChange"], exportAs: ["nzPopover"] }, { kind: "pipe", type: HowLongPipe, name: "axisHowLong" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1365
1332
  }
1366
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: Toolbar, decorators: [{
1333
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Toolbar, decorators: [{
1367
1334
  type: Component,
1368
1335
  args: [{ selector: 'axis-toolbar', imports: [NzModalModule, NzTableModule, NzFlexModule, NzIconModule, NzTooltipModule, NzButtonModule, NzPopoverModule, HowLongPipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"tools\" nz-flex nzGap=\"4px\">\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" nz-tooltip=\"\u5FEB\u6377\u952E\u8BF4\u660E\"\n (click)=\"shortcutKeysModal.set(true)\">\n <nz-icon nzType=\"exclamation-circle\" nzTheme=\"outline\" />\n </button>\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" nz-tooltip=\"\u7F16\u8F91\u5386\u53F2\" nz-popover\n [nzPopoverTitle]=\"historyTitle\" nzPopoverTrigger=\"click\" [nzPopoverContent]=\"historyTemp\"\n nzPopoverPlacement=\"bottom\" nzPopoverOverlayClassName=\"history-popover\">\n <nz-icon nzType=\"history\" nzTheme=\"outline\" />\n </button>\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" [nz-tooltip]=\"onlyPreview()?'\u6062\u590D':'\u653E\u5927'\"\n (click)=\"onlyPreview.set(!onlyPreview())\">\n <nz-icon [nzType]=\"onlyPreview()?'fullscreen-exit':'fullscreen'\" />\n </button>\n <button nz-button nzSize=\"small\" nzType=\"text\" nzShape=\"circle\" nz-tooltip=\"\u91CD\u65B0\u8F7D\u5165\"\n (click)=\"design.preview.forceRender()\">\n <nz-icon nzType=\"reload\" />\n </button>\n</div>\n\n<ng-template #historyTitle>\n <div nz-flex>\n <div style=\"flex:1\">\u7F16\u8F91\u5386\u53F2</div>\n <button nz-button nzSize=\"small\" nzType=\"link\" nzShape=\"circle\" nz-tooltip=\"\u64A4\u9500\" (click)=\"undo()\"\n [disabled]=\"historyIndex==history.length-1\">\n <nz-icon nzType=\"undo\" nzTheme=\"outline\" />\n </button>\n <button nz-button nzSize=\"small\" nzType=\"link\" nzShape=\"circle\" nz-tooltip=\"\u91CD\u505A\" (click)=\"redo()\"\n [disabled]=\"historyIndex==0\">\n <nz-icon nzType=\"redo\" nzTheme=\"outline\" />\n </button>\n </div>\n</ng-template>\n\n<ng-template #historyTemp>\n <div nz-flex nzVertical nzGap=\"6px\" style=\"max-height: 300px;overflow: auto;\">\n @for (item of history; track item.time;let i=$index) {\n <div nz-flex nzAlign=\"center\" [class.active]=\"i == historyIndex\" class=\"history-item\" (click)=\"switchHistory(i)\">\n <div style=\"width: 20px;\">\n @if (i == historyIndex) {\n <nz-icon nzType=\"aim\" nzTheme=\"outline\" />\n }\n </div>\n <div nz-flex nzVertical>\n <span>{{item.desc}}</span>\n <span style=\"font-size: 10px;color:rgba(0,0,0,0.38)\"> {{item.time | axisHowLong}}</span>\n </div>\n </div>\n }\n </div>\n</ng-template>\n\n<nz-modal [(nzVisible)]=\"shortcutKeysModal\" nzTitle=\"\u5FEB\u6377\u952E\u8BF4\u660E\" nzDraggable [nzOkText]=\"null\" nzCancelText=\"\u5173\u95ED\"\n (nzOnCancel)=\"shortcutKeysModal.set(false)\">\n <ng-container *nzModalContent>\n <nz-table nzTemplateMode nzSize=\"small\">\n <thead>\n <tr>\n <th>\u529F\u80FD</th>\n <th>\u5FEB\u6377\u952E</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>\u67E5\u770B\u5FEB\u6377\u952E\u8BF4\u660E</td>\n <td>Ctrl Meta H</td>\n </tr>\n <tr>\n <td>\u591A\u9009&\u53CD\u9009</td>\n <td>Ctrl \u5355\u51FB / Meta \u5355\u51FB</td>\n </tr>\n <tr>\n <td>\u590D\u5236</td>\n <td>Ctrl C</td>\n </tr>\n <tr>\n <td>\u526A\u5207</td>\n <td>Ctrl X</td>\n </tr>\n <tr>\n <td>\u7C98\u8D34</td>\n <td>Ctrl V</td>\n </tr>\n <tr>\n <td>\u64A4\u9500</td>\n <td>Ctrl Z</td>\n </tr>\n <tr>\n <td>\u91CD\u505A</td>\n <td>Ctrl Shift Z</td>\n </tr>\n <tr>\n <td>\u9884\u89C8\u653E\u5927&\u6062\u590D</td>\n <td>Ctrl Meta C</td>\n </tr>\n <tr>\n <td>\u91CD\u65B0\u8F7D\u5165</td>\n <td>Ctrl Meta R</td>\n </tr>\n </tbody>\n </nz-table>\n </ng-container>\n</nz-modal>", styles: [".tools{position:absolute;right:20px;top:10px}::ng-deep .history-popover .ant-popover-inner-content{width:100%;padding:12px 0}.history-item{padding:0 12px;cursor:pointer}.history-item:hover{background-color:var(--ant-primary-1)}.active{color:var(--ant-primary-color);pointer-events:none}\n"] }]
1369
1336
  }], propDecorators: { shortcutKeysModal: [{ type: i0.Input, args: [{ isSignal: true, alias: "shortcutKeysModal", required: false }] }, { type: i0.Output, args: ["shortcutKeysModalChange"] }] } });
@@ -1391,19 +1358,19 @@ class Design extends ValueAccess {
1391
1358
  else {
1392
1359
  return this.funcByInject ?? {};
1393
1360
  }
1394
- }, ...(ngDevMode ? [{ debugName: "injectFunc" }] : []));
1395
- treeNode = signal(undefined, ...(ngDevMode ? [{ debugName: "treeNode" }] : []));
1396
- loadAndOptions = signal(undefined, ...(ngDevMode ? [{ debugName: "loadAndOptions" }] : []));
1361
+ }, ...(ngDevMode ? [{ debugName: "injectFunc" }] : /* istanbul ignore next */ []));
1362
+ treeNode = signal(undefined, ...(ngDevMode ? [{ debugName: "treeNode" }] : /* istanbul ignore next */ []));
1363
+ loadAndOptions = signal(undefined, ...(ngDevMode ? [{ debugName: "loadAndOptions" }] : /* istanbul ignore next */ []));
1397
1364
  menu;
1398
- chooseComponentVisible = model(false, ...(ngDevMode ? [{ debugName: "chooseComponentVisible" }] : []));
1365
+ chooseComponentVisible = model(false, ...(ngDevMode ? [{ debugName: "chooseComponentVisible" }] : /* istanbul ignore next */ []));
1399
1366
  chooseComponentSubject = new Subject();
1400
- chooseComponentTags = signal([], ...(ngDevMode ? [{ debugName: "chooseComponentTags" }] : []));
1367
+ chooseComponentTags = signal([], ...(ngDevMode ? [{ debugName: "chooseComponentTags" }] : /* istanbul ignore next */ []));
1401
1368
  refreshScopeInfosSubject = new Subject();
1402
1369
  cacheSized = [300, 300];
1403
1370
  setting;
1404
1371
  settingRef;
1405
1372
  settingOptionsNodeId;
1406
- settingOptionsStr = model("", ...(ngDevMode ? [{ debugName: "settingOptionsStr" }] : []));
1373
+ settingOptionsStr = model("", ...(ngDevMode ? [{ debugName: "settingOptionsStr" }] : /* istanbul ignore next */ []));
1407
1374
  preview;
1408
1375
  tree;
1409
1376
  codeEditor;
@@ -1724,7 +1691,7 @@ class Design extends ValueAccess {
1724
1691
  onContextMenu(e, nodeId) {
1725
1692
  const node = this.optionsNodes.get(nodeId);
1726
1693
  if (node?.contextMenu) {
1727
- this.tree.onNodeClick(e, nodeId);
1694
+ this.tree.selectOne(nodeId, { sendEvent: false });
1728
1695
  const parent = node.isRoot ? undefined : this.optionsNodes.get(node.parentId);
1729
1696
  const injector = Injector.create({
1730
1697
  providers: [
@@ -1847,7 +1814,7 @@ class Design extends ValueAccess {
1847
1814
  return obj && obj.hasOwnProperty("id") && obj.hasOwnProperty("component");
1848
1815
  }
1849
1816
  onNodesMove(nodeIds) {
1850
- if (this.tree.selectListSelection.selected.length == 1) {
1817
+ if (this.tree.selectedNodeids().length == 1) {
1851
1818
  this.tree.addNodeForSelected(nodeIds.map(id => this.optionsNodes.get(id)), true, `粘贴${nodeIds.length}个组件`);
1852
1819
  }
1853
1820
  }
@@ -1927,10 +1894,10 @@ class Design extends ValueAccess {
1927
1894
  s.unsubscribe();
1928
1895
  }
1929
1896
  }
1930
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: Design, deps: [], target: i0.ɵɵFactoryTarget.Component });
1931
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: Design, isStandalone: true, selector: "axis-design", inputs: { chooseComponentVisible: { classPropertyName: "chooseComponentVisible", publicName: "chooseComponentVisible", isSignal: true, isRequired: false, transformFunction: null }, settingOptionsStr: { classPropertyName: "settingOptionsStr", publicName: "settingOptionsStr", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { chooseComponentVisible: "chooseComponentVisibleChange", settingOptionsStr: "settingOptionsStrChange" }, host: { attributes: { "tabindex": "-1", "autofocus": "true" }, listeners: { "keydown": "onKeyPress($event)" } }, viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "setting", first: true, predicate: ["setting"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "preview", first: true, predicate: ["preview"], descendants: true, static: true }, { propertyName: "tree", first: true, predicate: ["tree"], descendants: true, static: true }, { propertyName: "codeEditor", first: true, predicate: ["codeEditor"], descendants: true }, { propertyName: "tools", first: true, predicate: ["tools"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<nz-splitter (nzResize)=\"layoutEditor($event)\">\n <nz-splitter-panel [nzCollapsible]=\"!tools.onlyPreview()\" [nzDefaultSize]=\"cacheSized[0]\" nzMin=\"15%\" nzMax=\"40%\"\n [nzSize]=\"tools.onlyPreview()?0:undefined\">\n <nz-tabs nzCentered>\n <nz-tab nzTitle=\"\u7EC4\u4EF6\u6811\">\n <axis-design-tree style=\"margin-bottom: 300px;\" #tree [node]=\"treeNode()\" [optionsNodes]=\"optionsNodes\"\n (onSelect)=\"onTreeSelect($event)\" (onChange)=\"onChangeOptionsConfig($event)\"\n (onContextMenu)=\"onContextMenu($event.event,$event.nodeId)\"></axis-design-tree>\n </nz-tab>\n <nz-tab nzTitle=\"\u7EC4\u4EF6\u5E93\">\n <axis-cmplib selectMode=\"drag\" (dragStart)=\"onCmplibDragStart($event.example,$event.element)\"\n (dragEnd)=\"onCmplibDragEnd()\"></axis-cmplib>\n </nz-tab>\n </nz-tabs>\n </nz-splitter-panel>\n <nz-splitter-panel>\n <div nz-flex nzVertical style=\"height: 100%;width: 100%;position: relative;\">\n <h2 style=\"text-align: center;margin-top: 4px;\">\u9884\u89C8</h2>\n <axis-toolbar #tools></axis-toolbar>\n <axis-design-preview #preview style=\"flex:1;overflow: auto;\" [loadAndOptions]=\"loadAndOptions()\"\n [optionsNodes]=\"optionsNodes\" [injectData]=\"injectDataObs\" [injectFunc]=\"injectFunc()\"\n [httpContextData]=\"options.httpContextData()\" [fileBaseUrl]=\"options.fileBaseUrl()\"\n (onChange)=\"onChangeOptionsConfig($event)\" (onSelect)=\"onPreviewSelect($event)\"\n (onContextMenu)=\"onContextMenu($event.event,$event.nodeId)\"\n (onForceRender)=\"triggeEvents('forceRender').subscribe()\"></axis-design-preview>\n </div>\n </nz-splitter-panel>\n <nz-splitter-panel [nzCollapsible]=\"!tools.onlyPreview()\" [nzDefaultSize]=\"cacheSized[1]\" nzMin=\"15%\" nzMax=\"40%\"\n [nzSize]=\"tools.onlyPreview()?0:undefined\" style=\"position: relative;\">\n <nz-tabs nzCentered style=\"height: 100%;\">\n <nz-tab nzTitle=\"\u5C5E\u6027\u8BBE\u7F6E\" (nzClick)=\"syncToSetting()\">\n <ng-container #setting></ng-container>\n <div style=\"height: 300px;\"></div>\n @if (!settingOptionsStr()){\n <nz-empty style=\"height: 300px;\" nzNotFoundContent=\"\u8BF7\u5148\u9009\u62E9\u4E00\u4E2A\u7EC4\u4EF6\"></nz-empty>\n }\n </nz-tab>\n <nz-tab nzTitle=\"\u4EE3\u7801\" nzForceRender (nzSelect)=\"syncToCode();\">\n <ng-container #codeEditor=\"axisDynamic\"\n [axisDynamic]=\"{component:'axis-components/editor',inuse:true,mode:'json',readonly:!settingOptionsStr() && treeNode()!=null,otherOptions:{tabSize:2}}\"\n [standalone]=\"true\" [(ngModel)]=\"settingOptionsStr\"\n (ngModelChange)=\"onEditorChange($event)\"></ng-container>\n </nz-tab>\n </nz-tabs>\n </nz-splitter-panel>\n</nz-splitter>\n<ng-container #menu></ng-container>\n<nz-drawer [(nzVisible)]=\"chooseComponentVisible\" nzTitle=\"\u9009\u62E9\u7EC4\u4EF6\" [nzBodyStyle]=\"{padding:0}\"\n (nzOnClose)=\"chooseComponentVisible.set(false);chooseComponentSubject.next(undefined)\">\n <ng-container *nzDrawerContent>\n <axis-cmplib selectMode=\"click\" [tags]=\"chooseComponentTags()\"\n (clickExample)=\"chooseComponentVisible.set(false);chooseComponentSubject.next($event)\"></axis-cmplib>\n </ng-container>\n</nz-drawer>", styles: ["nz-tabs,::ng-deep .ant-tabs-content,::ng-deep .ant-tabs-tabpane{height:100%}::ng-deep .ant-tabs-content{overflow:auto}:host{display:block;width:100%;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: NzSplitterModule }, { kind: "component", type: i1$3.NzSplitterComponent, selector: "nz-splitter", inputs: ["nzLayout", "nzLazy"], outputs: ["nzResizeStart", "nzResize", "nzResizeEnd"], exportAs: ["nzSplitter"] }, { kind: "component", type: i1$3.NzSplitterPanelComponent, selector: "nz-splitter-panel", inputs: ["nzDefaultSize", "nzMin", "nzMax", "nzSize", "nzCollapsible", "nzResizable"], exportAs: ["nzSplitterPanel"] }, { kind: "ngmodule", type: NzTabsModule }, { kind: "component", type: i2$3.NzTabsComponent, selector: "nz-tabs,nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact", "nzDestroyInactiveTabPane"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabs"] }, { kind: "component", type: i2$3.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "component", type: Preview, selector: "axis-design-preview", inputs: ["loadAndOptions", "optionsNodes", "injectData", "httpContextData", "fileBaseUrl", "injectFunc"], outputs: ["onChange", "onSelect", "onContextMenu", "onForceRender"] }, { kind: "component", type: Tree, selector: "axis-design-tree", inputs: ["node", "optionsNodes"], outputs: ["onChange", "onSelect", "onContextMenu"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$1.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "component", type: Cmplib, selector: "axis-cmplib", inputs: ["cmplib", "selectMode", "tags"], outputs: ["cmplibChange", "clickExample", "dragStart", "dragEnd"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i10.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzDrawerModule }, { kind: "component", type: i6$2.NzDrawerComponent, selector: "nz-drawer", inputs: ["nzContent", "nzCloseIcon", "nzClosable", "nzMaskClosable", "nzMask", "nzCloseOnNavigation", "nzNoAnimation", "nzKeyboard", "nzTitle", "nzExtra", "nzFooter", "nzPlacement", "nzSize", "nzMaskStyle", "nzBodyStyle", "nzWrapClassName", "nzWidth", "nzHeight", "nzZIndex", "nzOffsetX", "nzOffsetY", "nzVisible"], outputs: ["nzOnViewInit", "nzOnClose", "nzVisibleChange"], exportAs: ["nzDrawer"] }, { kind: "directive", type: i6$2.NzDrawerContentDirective, selector: "[nzDrawerContent]", exportAs: ["nzDrawerContent"] }, { kind: "component", type: Toolbar, selector: "axis-toolbar", inputs: ["shortcutKeysModal"], outputs: ["shortcutKeysModalChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1897
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Design, deps: [], target: i0.ɵɵFactoryTarget.Component });
1898
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: Design, isStandalone: true, selector: "axis-design", inputs: { chooseComponentVisible: { classPropertyName: "chooseComponentVisible", publicName: "chooseComponentVisible", isSignal: true, isRequired: false, transformFunction: null }, settingOptionsStr: { classPropertyName: "settingOptionsStr", publicName: "settingOptionsStr", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { chooseComponentVisible: "chooseComponentVisibleChange", settingOptionsStr: "settingOptionsStrChange" }, host: { attributes: { "tabindex": "-1", "autofocus": "true" }, listeners: { "keydown": "onKeyPress($event)" } }, viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "setting", first: true, predicate: ["setting"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "preview", first: true, predicate: ["preview"], descendants: true, static: true }, { propertyName: "tree", first: true, predicate: ["tree"], descendants: true, static: true }, { propertyName: "codeEditor", first: true, predicate: ["codeEditor"], descendants: true }, { propertyName: "tools", first: true, predicate: ["tools"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<nz-splitter (nzResize)=\"layoutEditor($event)\">\n <nz-splitter-panel [nzCollapsible]=\"!tools.onlyPreview()\" [nzDefaultSize]=\"cacheSized[0]\" nzMin=\"15%\" nzMax=\"40%\"\n [nzSize]=\"tools.onlyPreview()?0:undefined\">\n <nz-tabs nzCentered>\n <nz-tab nzTitle=\"\u7EC4\u4EF6\u6811\">\n <axis-design-tree style=\"margin-bottom: 300px;\" #tree [node]=\"treeNode()\" [optionsNodes]=\"optionsNodes\"\n (onSelect)=\"onTreeSelect($event)\" (onChange)=\"onChangeOptionsConfig($event)\"\n (onContextMenu)=\"onContextMenu($event.event,$event.nodeId)\"></axis-design-tree>\n </nz-tab>\n <nz-tab nzTitle=\"\u7EC4\u4EF6\u5E93\">\n <axis-cmplib selectMode=\"drag\" (dragStart)=\"onCmplibDragStart($event.example,$event.element)\"\n (dragEnd)=\"onCmplibDragEnd()\"></axis-cmplib>\n </nz-tab>\n </nz-tabs>\n </nz-splitter-panel>\n <nz-splitter-panel>\n <div nz-flex nzVertical style=\"height: 100%;width: 100%;position: relative;\">\n <h2 style=\"text-align: center;margin-top: 4px;\">\u9884\u89C8</h2>\n <axis-toolbar #tools></axis-toolbar>\n <axis-design-preview #preview style=\"flex:1;overflow: auto;\" [loadAndOptions]=\"loadAndOptions()\"\n [optionsNodes]=\"optionsNodes\" [injectData]=\"injectDataObs\" [injectFunc]=\"injectFunc()\"\n [httpContextData]=\"options.httpContextData()\" [fileBaseUrl]=\"options.fileBaseUrl()\"\n (onChange)=\"onChangeOptionsConfig($event)\" (onSelect)=\"onPreviewSelect($event)\"\n (onContextMenu)=\"onContextMenu($event.event,$event.nodeId)\"\n (onForceRender)=\"triggeEvents('forceRender').subscribe()\"></axis-design-preview>\n </div>\n </nz-splitter-panel>\n <nz-splitter-panel [nzCollapsible]=\"!tools.onlyPreview()\" [nzDefaultSize]=\"cacheSized[1]\" nzMin=\"15%\" nzMax=\"40%\"\n [nzSize]=\"tools.onlyPreview()?0:undefined\" style=\"position: relative;\">\n <nz-tabs nzCentered style=\"height: 100%;\">\n <nz-tab nzTitle=\"\u5C5E\u6027\u8BBE\u7F6E\" (nzClick)=\"syncToSetting()\">\n <ng-container #setting></ng-container>\n <div style=\"height: 300px;\"></div>\n @if (!settingOptionsStr()){\n <nz-empty style=\"height: 300px;\" nzNotFoundContent=\"\u8BF7\u5148\u9009\u62E9\u4E00\u4E2A\u7EC4\u4EF6\"></nz-empty>\n }\n </nz-tab>\n <nz-tab nzTitle=\"\u4EE3\u7801\" nzForceRender (nzSelect)=\"syncToCode();\">\n <ng-container #codeEditor=\"axisDynamic\"\n [axisDynamic]=\"{component:'axis-components/editor',inuse:true,mode:'json',readonly:!settingOptionsStr() && treeNode()!=null,otherOptions:{tabSize:2}}\"\n [standalone]=\"true\" [(ngModel)]=\"settingOptionsStr\"\n (ngModelChange)=\"onEditorChange($event)\"></ng-container>\n </nz-tab>\n </nz-tabs>\n </nz-splitter-panel>\n</nz-splitter>\n<ng-container #menu></ng-container>\n<nz-drawer [(nzVisible)]=\"chooseComponentVisible\" nzTitle=\"\u9009\u62E9\u7EC4\u4EF6\" [nzBodyStyle]=\"{padding:0}\"\n (nzOnClose)=\"chooseComponentVisible.set(false);chooseComponentSubject.next(undefined)\">\n <ng-container *nzDrawerContent>\n <axis-cmplib selectMode=\"click\" [tags]=\"chooseComponentTags()\"\n (clickExample)=\"chooseComponentVisible.set(false);chooseComponentSubject.next($event)\"></axis-cmplib>\n </ng-container>\n</nz-drawer>", styles: ["nz-tabs,::ng-deep .ant-tabs-content,::ng-deep .ant-tabs-tabpane{height:100%}::ng-deep .ant-tabs-content{overflow:auto}:host{display:block;width:100%;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: NzSplitterModule }, { kind: "component", type: i1$3.NzSplitterComponent, selector: "nz-splitter", inputs: ["nzLayout", "nzLazy"], outputs: ["nzResizeStart", "nzResize", "nzResizeEnd"], exportAs: ["nzSplitter"] }, { kind: "component", type: i1$3.NzSplitterPanelComponent, selector: "nz-splitter-panel", inputs: ["nzDefaultSize", "nzMin", "nzMax", "nzSize", "nzCollapsible", "nzResizable"], exportAs: ["nzSplitterPanel"] }, { kind: "ngmodule", type: NzTabsModule }, { kind: "component", type: i2$3.NzTabsComponent, selector: "nz-tabs", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact", "nzDestroyInactiveTabPane", "nzIndicator"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabs"] }, { kind: "component", type: i2$3.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "component", type: Preview, selector: "axis-design-preview", inputs: ["loadAndOptions", "optionsNodes", "injectData", "httpContextData", "fileBaseUrl", "injectFunc"], outputs: ["onChange", "onSelect", "onContextMenu", "onForceRender"] }, { kind: "component", type: Tree, selector: "axis-design-tree", inputs: ["node", "optionsNodes"], outputs: ["onChange", "onSelect", "onContextMenu"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$1.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "component", type: Cmplib, selector: "axis-cmplib", inputs: ["cmplib", "selectMode", "tags"], outputs: ["cmplibChange", "clickExample", "dragStart", "dragEnd"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i9.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzDrawerModule }, { kind: "component", type: i6$2.NzDrawerComponent, selector: "nz-drawer", inputs: ["nzContent", "nzCloseIcon", "nzClosable", "nzMaskClosable", "nzMask", "nzCloseOnNavigation", "nzNoAnimation", "nzKeyboard", "nzTitle", "nzExtra", "nzFooter", "nzPlacement", "nzSize", "nzMaskStyle", "nzBodyStyle", "nzWrapClassName", "nzWidth", "nzHeight", "nzZIndex", "nzOffsetX", "nzOffsetY", "nzVisible"], outputs: ["nzOnViewInit", "nzOnClose", "nzVisibleChange"], exportAs: ["nzDrawer"] }, { kind: "directive", type: i6$2.NzDrawerContentDirective, selector: "[nzDrawerContent]", exportAs: ["nzDrawerContent"] }, { kind: "component", type: Toolbar, selector: "axis-toolbar", inputs: ["shortcutKeysModal"], outputs: ["shortcutKeysModalChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1932
1899
  }
1933
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: Design, decorators: [{
1900
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Design, decorators: [{
1934
1901
  type: Component,
1935
1902
  args: [{ selector: 'axis-design', imports: [NzSplitterModule, NzTabsModule, Preview, Tree, NzFlexModule, Cmplib, FormsModule, NzEmptyModule, DynamicDirective, NzDrawerModule, Toolbar], changeDetection: ChangeDetectionStrategy.OnPush, host: {
1936
1903
  tabindex: "-1",