@coolon/angular-ui-powerups 16.0.2 → 16.1.0-alpha.190

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 (537) hide show
  1. package/assets/activities/activities.scss +8 -6
  2. package/assets/activities/input-activities.scss +14 -6
  3. package/assets/draw.scss +20 -0
  4. package/assets/form.scss +77 -23
  5. package/assets/icons.scss +2 -1
  6. package/assets/interaction/editor/inline-string-editor.scss +4 -0
  7. package/assets/interaction.scss +1 -1
  8. package/assets/layout.scss +3 -0
  9. package/assets/place.scss +31 -0
  10. package/assets/styles.scss +4 -0
  11. package/assets/table.scss +60 -18
  12. package/assets/tabs.scss +15 -2
  13. package/esm2022/lib/angular-ui-powerups.module.mjs +9 -9
  14. package/esm2022/lib/animations/slide-animations.mjs +15 -10
  15. package/esm2022/lib/components/alignment.mjs +1 -1
  16. package/esm2022/lib/components/busy-overlay/busy-overlay.component.mjs +19 -20
  17. package/esm2022/lib/components/cards/abstract-card-container.component.mjs +36 -13
  18. package/esm2022/lib/components/cards/card-container/card-container.component.mjs +7 -10
  19. package/esm2022/lib/components/commands/button-renderer/button-renderer.component.mjs +115 -0
  20. package/esm2022/lib/components/commands/command/command.component.mjs +66 -56
  21. package/esm2022/lib/components/commands/command-face/command-face.component.mjs +21 -13
  22. package/esm2022/lib/components/commands/command-face.mjs +12 -11
  23. package/esm2022/lib/components/commands/flex.component.mjs +4 -6
  24. package/esm2022/lib/components/commands/group/command-container.mjs +1 -1
  25. package/esm2022/lib/components/commands/group/popup-aware.component.mjs +31 -8
  26. package/esm2022/lib/components/commands/group/popup-container.mjs +1 -1
  27. package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +37 -31
  28. package/esm2022/lib/components/commands/group/popup-menu/more-menu.component.mjs +20 -27
  29. package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +19 -14
  30. package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +24 -29
  31. package/esm2022/lib/components/commands/group/tool-bar/tool-bar.component.mjs +12 -19
  32. package/esm2022/lib/components/commands/separator.component.mjs +8 -16
  33. package/esm2022/lib/components/components.module.mjs +83 -53
  34. package/esm2022/lib/components/disposable-component.mjs +54 -7
  35. package/esm2022/lib/components/empty-state/empty-state.component.mjs +7 -11
  36. package/esm2022/lib/components/exports.mjs +16 -5
  37. package/esm2022/lib/components/file/file-download/file-download.component.mjs +89 -0
  38. package/esm2022/lib/components/focus-container/focus-container.component.mjs +4 -6
  39. package/esm2022/lib/components/focusable.component.mjs +5 -5
  40. package/esm2022/lib/components/forms/abstract-input.component.mjs +70 -24
  41. package/esm2022/lib/components/forms/abstract-list-input.component.mjs +11 -19
  42. package/esm2022/lib/components/forms/abstract-value-input.component.mjs +11 -19
  43. package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +29 -37
  44. package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +10 -10
  45. package/esm2022/lib/components/forms/form-field.mjs +2 -0
  46. package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +22 -28
  47. package/esm2022/lib/components/forms/number-input/number-input.component.mjs +89 -14
  48. package/esm2022/lib/components/forms/password-input/password-input.component.mjs +43 -8
  49. package/esm2022/lib/components/forms/search-input/search-input.component.mjs +33 -0
  50. package/esm2022/lib/components/forms/select-input/select-input.component.mjs +44 -45
  51. package/esm2022/lib/components/forms/string-input/string-input.component.mjs +46 -25
  52. package/esm2022/lib/components/forms/text-input/text-input.component.mjs +12 -10
  53. package/esm2022/lib/components/icon/icon.component.mjs +10 -7
  54. package/esm2022/lib/components/labelled-value/labelled-value.component.mjs +4 -6
  55. package/esm2022/lib/components/loadable-component.mjs +69 -0
  56. package/esm2022/lib/components/loading-container/loading-container.component.mjs +32 -29
  57. package/esm2022/lib/components/noop/noop.component.mjs +5 -7
  58. package/esm2022/lib/components/resize-aware.component.mjs +64 -27
  59. package/esm2022/lib/components/scroll-container/scroll-container.component.mjs +17 -15
  60. package/esm2022/lib/components/section-header/section-header.component.mjs +4 -6
  61. package/esm2022/lib/components/switch-case/switch-case.component.mjs +28 -28
  62. package/esm2022/lib/components/tables/abstract-table-model.mjs +123 -64
  63. package/esm2022/lib/components/tables/abstract-table.component.mjs +34 -15
  64. package/esm2022/lib/components/tables/column/column-manager.mjs +81 -0
  65. package/esm2022/lib/components/tables/column/column-model.mjs +23 -12
  66. package/esm2022/lib/components/tables/column/column-order-manager.mjs +19 -0
  67. package/esm2022/lib/components/tables/column/column-template/column-template.directive.mjs +4 -4
  68. package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +3 -3
  69. package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +5 -5
  70. package/esm2022/lib/components/tables/column/editor-controls-column-model.mjs +5 -5
  71. package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +7 -6
  72. package/esm2022/lib/components/tables/column/property-column-model.mjs +6 -6
  73. package/esm2022/lib/components/tables/column/selection-column-model.mjs +35 -13
  74. package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +13 -13
  75. package/esm2022/lib/components/tables/editor/edit-session.mjs +5 -3
  76. package/esm2022/lib/components/tables/editor/editable-cell-renderer.mjs +1 -1
  77. package/esm2022/lib/components/tables/filter/column-text-search-formatter.mjs +1 -1
  78. package/esm2022/lib/components/tables/filter/enable-cell-text-search.decorator.mjs +3 -2
  79. package/esm2022/lib/components/tables/filter/table-filter-model.mjs +16 -11
  80. package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +16 -2
  81. package/esm2022/lib/components/tables/footer/footer-row-model.mjs +38 -0
  82. package/esm2022/lib/components/tables/paginator/paginator.component.mjs +12 -12
  83. package/esm2022/lib/components/tables/renderer/abstract-cell-renderer.mjs +7 -0
  84. package/esm2022/lib/components/tables/renderer/cell-editors.mjs +1 -1
  85. package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +23 -7
  86. package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +6 -8
  87. package/esm2022/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.mjs +5 -7
  88. package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +26 -14
  89. package/esm2022/lib/components/tables/renderer/selection-cell/selection-cell.component.mjs +11 -8
  90. package/esm2022/lib/components/tables/renderer/table-action-column/menu-builder.mjs +2 -0
  91. package/esm2022/lib/components/tables/renderer/table-action-column/table-action-column.component.mjs +153 -0
  92. package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +180 -63
  93. package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +12 -12
  94. package/esm2022/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu-popup.component.mjs +45 -0
  95. package/esm2022/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu.component.mjs +71 -0
  96. package/esm2022/lib/components/tables/renderer/table-footer-row/table-footer-row.component.mjs +30 -0
  97. package/esm2022/lib/components/tables/renderer/table-header-cell/table-header-cell.component.mjs +5 -7
  98. package/esm2022/lib/components/tables/table/table-model.mjs +12 -3
  99. package/esm2022/lib/components/tables/table/table.component.mjs +54 -68
  100. package/esm2022/lib/components/tables/tree-table/decorated-tree-node.mjs +5 -4
  101. package/esm2022/lib/components/tables/tree-table/flattened-tree-list-model.mjs +1 -1
  102. package/esm2022/lib/components/tables/tree-table/tree-expansion-model.mjs +5 -5
  103. package/esm2022/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.mjs +5 -7
  104. package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +16 -13
  105. package/esm2022/lib/components/tables/tree-table/tree-label-column-model.mjs +4 -7
  106. package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +27 -16
  107. package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +5 -8
  108. package/esm2022/lib/components/text/markdown/markdown.component.mjs +25 -22
  109. package/esm2022/lib/components/track.mjs +24 -0
  110. package/esm2022/lib/components/types/bounds.class.mjs +1 -5
  111. package/esm2022/lib/components/vertical-focus-container/vertical-focus-container.component.mjs +17 -17
  112. package/esm2022/lib/directives/command.directive.mjs +25 -14
  113. package/esm2022/lib/directives/directives.module.mjs +10 -10
  114. package/esm2022/lib/directives/exports.mjs +2 -1
  115. package/esm2022/lib/directives/focus-binding-factory.mjs +4 -4
  116. package/esm2022/lib/directives/focus-binding.directive.mjs +6 -8
  117. package/esm2022/lib/directives/focus-binding.mjs +4 -5
  118. package/esm2022/lib/directives/garbage-collector.directive.mjs +5 -4
  119. package/esm2022/lib/directives/highlight-text-model.directive.mjs +11 -9
  120. package/esm2022/lib/directives/highlight.pipe.mjs +12 -11
  121. package/esm2022/lib/directives/resize-observer.directive.mjs +40 -0
  122. package/esm2022/lib/interaction/abstract-interaction-context.mjs +6 -7
  123. package/esm2022/lib/interaction/activity-context.mjs +4 -0
  124. package/esm2022/lib/interaction/activity-ref.mjs +4 -4
  125. package/esm2022/lib/interaction/activity.mjs +39 -35
  126. package/esm2022/lib/interaction/alert.mjs +2 -2
  127. package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +13 -10
  128. package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +4 -45
  129. package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +42 -28
  130. package/esm2022/lib/interaction/components/activity-body/activity-body.component.mjs +10 -6
  131. package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +53 -22
  132. package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +55 -19
  133. package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +6 -8
  134. package/esm2022/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.mjs +41 -31
  135. package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +5 -5
  136. package/esm2022/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.mjs +5 -5
  137. package/esm2022/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.mjs +5 -5
  138. package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +6 -8
  139. package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +11 -11
  140. package/esm2022/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +12 -12
  141. package/esm2022/lib/interaction/components/alert-renderer/alert-renderer.component.mjs +55 -0
  142. package/esm2022/lib/interaction/components/confirm-renderer/confirm-renderer.component.mjs +54 -0
  143. package/esm2022/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +6 -10
  144. package/esm2022/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +6 -10
  145. package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +9 -11
  146. package/esm2022/lib/interaction/components/editors/edit-context.mjs +1 -1
  147. package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-editor-model.mjs +5 -5
  148. package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +55 -48
  149. package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +32 -25
  150. package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +21 -16
  151. package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +49 -33
  152. package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +30 -28
  153. package/esm2022/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.mjs +18 -15
  154. package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +134 -0
  155. package/esm2022/lib/interaction/confirm.mjs +26 -2
  156. package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +6 -6
  157. package/esm2022/lib/interaction/exports.mjs +6 -1
  158. package/esm2022/lib/interaction/in-place-interaction-context.mjs +1 -1
  159. package/esm2022/lib/interaction/interaction-context-provider.mjs +17 -0
  160. package/esm2022/lib/interaction/interaction-context.mjs +3 -2
  161. package/esm2022/lib/interaction/interaction.module.mjs +44 -29
  162. package/esm2022/lib/interaction/route-synchronisation-adapter.mjs +1 -1
  163. package/esm2022/lib/interaction/services/interaction-service-routing-adapter.mjs +4 -4
  164. package/esm2022/lib/interaction/services/interaction.service.mjs +23 -11
  165. package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +9 -10
  166. package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +23 -5
  167. package/esm2022/lib/interaction/services/modal-interaction-context.factory.mjs +1 -1
  168. package/esm2022/lib/place/components/abstract-place-navigation.component.mjs +39 -31
  169. package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +7 -7
  170. package/esm2022/lib/place/components/not-authorised-notice/not-authorised-notice.component.mjs +5 -7
  171. package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +49 -44
  172. package/esm2022/lib/place/components/place-outlet/route-animations.mjs +1 -1
  173. package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +25 -16
  174. package/esm2022/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.mjs +7 -7
  175. package/esm2022/lib/place/exports.mjs +2 -1
  176. package/esm2022/lib/place/guards/consolidated-param-map.mjs +4 -4
  177. package/esm2022/lib/place/guards/noop-auth-guard.service.mjs +5 -7
  178. package/esm2022/lib/place/guards/place.guard.mjs +19 -16
  179. package/esm2022/lib/place/navigation/place-component-deactivation-handler.mjs +2 -2
  180. package/esm2022/lib/place/navigation/session/abstract-pop-state-navigation.mjs +1 -1
  181. package/esm2022/lib/place/navigation/session/event-cleanup/event-clean-up-session.mjs +1 -1
  182. package/esm2022/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.mjs +1 -1
  183. package/esm2022/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.mjs +1 -1
  184. package/esm2022/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.mjs +1 -1
  185. package/esm2022/lib/place/navigation/session/interactions/navigating-during-interaction.mjs +2 -2
  186. package/esm2022/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.mjs +1 -1
  187. package/esm2022/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.mjs +3 -3
  188. package/esm2022/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +3 -6
  189. package/esm2022/lib/place/navigation/session/navigating.mjs +2 -2
  190. package/esm2022/lib/place/navigation/session/navigation-context.mjs +1 -1
  191. package/esm2022/lib/place/navigation/session/navigation-session.mjs +2 -2
  192. package/esm2022/lib/place/navigation/session/pop-state-navigation.mjs +1 -1
  193. package/esm2022/lib/place/place-access-guard.mjs +1 -1
  194. package/esm2022/lib/place/place-auth-service.mjs +152 -0
  195. package/esm2022/lib/place/place-component.mjs +62 -48
  196. package/esm2022/lib/place/place-config.mjs +1 -1
  197. package/esm2022/lib/place/place-definition.mjs +15 -4
  198. package/esm2022/lib/place/place-history.mjs +6 -8
  199. package/esm2022/lib/place/place-router.mjs +87 -94
  200. package/esm2022/lib/place/place.decorator.mjs +2 -2
  201. package/esm2022/lib/place/place.module.mjs +16 -12
  202. package/esm2022/lib/place/route/formatter.mjs +2 -2
  203. package/esm2022/lib/place/route/json-types.mjs +1 -1
  204. package/esm2022/lib/place/route/parameter-decorators.mjs +54 -50
  205. package/esm2022/lib/place/route/parameter-definition.mjs +6 -2
  206. package/esm2022/lib/place/route/parameter-sanitiser.mjs +7 -2
  207. package/esm2022/lib/place/route/parameter-snapshot.mjs +1 -1
  208. package/esm2022/lib/place/route/visit-segment-sanitiser.mjs +1 -1
  209. package/esm2022/lib/place/url-service.mjs +4 -4
  210. package/esm2022/lib/place/url-snapshot.mjs +3 -3
  211. package/esm2022/lib/place/visit-segment.mjs +2 -2
  212. package/esm2022/lib/place/visit.mjs +2 -2
  213. package/esm2022/lib/services/markdown/markdown.service.mjs +5 -7
  214. package/esm2022/lib/services/markdown/pill-plugin.mjs +1 -3
  215. package/esm2022/lib/services/visibility-service.mjs +9 -9
  216. package/fesm2022/coolon-angular-ui-powerups.mjs +4720 -3041
  217. package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
  218. package/lib/angular-ui-powerups.module.d.ts +5 -5
  219. package/lib/animations/slide-animations.d.ts +1 -0
  220. package/lib/components/busy-overlay/busy-overlay.component.d.ts +4 -7
  221. package/lib/components/cards/abstract-card-container.component.d.ts +9 -7
  222. package/lib/components/cards/card-container/card-container.component.d.ts +3 -4
  223. package/lib/components/commands/button-renderer/button-renderer.component.d.ts +30 -0
  224. package/lib/components/commands/command/command.component.d.ts +15 -17
  225. package/lib/components/commands/command-face/command-face.component.d.ts +5 -5
  226. package/lib/components/commands/command-face.d.ts +8 -9
  227. package/lib/components/commands/flex.component.d.ts +1 -3
  228. package/lib/components/commands/group/popup-aware.component.d.ts +9 -4
  229. package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +7 -7
  230. package/lib/components/commands/group/popup-menu/more-menu.component.d.ts +4 -6
  231. package/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.d.ts +7 -5
  232. package/lib/components/commands/group/popup-menu/popup-menu.component.d.ts +5 -7
  233. package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +3 -7
  234. package/lib/components/commands/separator.component.d.ts +3 -6
  235. package/lib/components/components.module.d.ts +57 -51
  236. package/lib/components/disposable-component.d.ts +21 -3
  237. package/lib/components/empty-state/empty-state.component.d.ts +1 -4
  238. package/lib/components/exports.d.ts +15 -4
  239. package/lib/components/file/file-download/file-download.component.d.ts +45 -0
  240. package/lib/components/focus-container/focus-container.component.d.ts +1 -3
  241. package/lib/components/forms/abstract-input.component.d.ts +21 -13
  242. package/lib/components/forms/abstract-list-input.component.d.ts +4 -8
  243. package/lib/components/forms/abstract-value-input.component.d.ts +3 -7
  244. package/lib/components/forms/autocomplete-input/autocomplete-input.component.d.ts +8 -14
  245. package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +3 -3
  246. package/lib/components/forms/form-field.d.ts +5 -0
  247. package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +3 -8
  248. package/lib/components/forms/number-input/number-input.component.d.ts +17 -7
  249. package/lib/components/forms/password-input/password-input.component.d.ts +8 -4
  250. package/lib/components/forms/search-input/search-input.component.d.ts +10 -0
  251. package/lib/components/forms/select-input/select-input.component.d.ts +7 -10
  252. package/lib/components/forms/string-input/string-input.component.d.ts +10 -6
  253. package/lib/components/forms/text-input/text-input.component.d.ts +4 -3
  254. package/lib/components/labelled-value/labelled-value.component.d.ts +1 -3
  255. package/lib/components/loadable-component.d.ts +20 -0
  256. package/lib/components/loading-container/loading-container.component.d.ts +6 -9
  257. package/lib/components/noop/noop.component.d.ts +0 -1
  258. package/lib/components/resize-aware.component.d.ts +25 -6
  259. package/lib/components/scroll-container/scroll-container.component.d.ts +2 -3
  260. package/lib/components/section-header/section-header.component.d.ts +1 -3
  261. package/lib/components/switch-case/switch-case.component.d.ts +10 -12
  262. package/lib/components/tables/abstract-table-model.d.ts +50 -23
  263. package/lib/components/tables/abstract-table.component.d.ts +8 -7
  264. package/lib/components/tables/column/column-manager.d.ts +19 -0
  265. package/lib/components/tables/column/column-model.d.ts +8 -4
  266. package/lib/components/tables/column/column-order-manager.d.ts +20 -0
  267. package/lib/components/tables/column/custom-template-column-model.d.ts +3 -2
  268. package/lib/components/tables/column/custom-value-column-model.d.ts +3 -2
  269. package/lib/components/tables/column/editor-controls-column-model.d.ts +3 -2
  270. package/lib/components/tables/column/list-propery-column-model.d.ts +3 -2
  271. package/lib/components/tables/column/property-column-model.d.ts +3 -2
  272. package/lib/components/tables/column/selection-column-model.d.ts +10 -4
  273. package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +4 -6
  274. package/lib/components/tables/editor/edit-session.d.ts +1 -1
  275. package/lib/components/tables/editor/editable-cell-renderer.d.ts +1 -1
  276. package/lib/components/tables/filter/enable-cell-text-search.decorator.d.ts +1 -1
  277. package/lib/components/tables/filter/text-search-predicate.d.ts +9 -0
  278. package/lib/components/tables/footer/footer-row-model.d.ts +22 -0
  279. package/lib/components/tables/paginator/paginator.component.d.ts +2 -4
  280. package/lib/components/tables/renderer/abstract-cell-renderer.d.ts +6 -0
  281. package/lib/components/tables/renderer/cell-editors.d.ts +5 -5
  282. package/lib/components/tables/renderer/cell-portal-ref.d.ts +21 -14
  283. package/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.d.ts +0 -1
  284. package/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.d.ts +0 -1
  285. package/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.d.ts +3 -2
  286. package/lib/components/tables/renderer/table-action-column/menu-builder.d.ts +7 -0
  287. package/lib/components/tables/renderer/table-action-column/table-action-column.component.d.ts +42 -0
  288. package/lib/components/tables/renderer/table-body/table-body.component.d.ts +47 -24
  289. package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +3 -5
  290. package/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu-popup.component.d.ts +19 -0
  291. package/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu.component.d.ts +24 -0
  292. package/lib/components/tables/renderer/table-footer-row/table-footer-row.component.d.ts +11 -0
  293. package/lib/components/tables/renderer/table-header-cell/table-header-cell.component.d.ts +0 -1
  294. package/lib/components/tables/table/table-model.d.ts +4 -4
  295. package/lib/components/tables/table/table.component.d.ts +18 -14
  296. package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +1 -1
  297. package/lib/components/tables/tree-table/tree-expansion-model.d.ts +2 -2
  298. package/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.d.ts +0 -1
  299. package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +3 -3
  300. package/lib/components/tables/tree-table/tree-label-column-model.d.ts +3 -3
  301. package/lib/components/tables/tree-table/tree-table-component.d.ts +7 -4
  302. package/lib/components/tables/tree-table/tree-table-model.d.ts +4 -5
  303. package/lib/components/text/markdown/markdown.component.d.ts +3 -4
  304. package/lib/components/{track-by.d.ts → track.d.ts} +4 -7
  305. package/lib/components/types/bounds.class.d.ts +0 -2
  306. package/lib/components/vertical-focus-container/vertical-focus-container.component.d.ts +3 -6
  307. package/lib/directives/command.directive.d.ts +7 -5
  308. package/lib/directives/directives.module.d.ts +5 -5
  309. package/lib/directives/exports.d.ts +1 -0
  310. package/lib/directives/focus-binding.directive.d.ts +2 -3
  311. package/lib/directives/highlight-text-model.directive.d.ts +1 -1
  312. package/lib/directives/resize-observer.directive.d.ts +16 -0
  313. package/lib/interaction/abstract-interaction-context.d.ts +1 -1
  314. package/lib/interaction/activity-context.d.ts +9 -0
  315. package/lib/interaction/activity-ref.d.ts +2 -2
  316. package/lib/interaction/activity.d.ts +9 -9
  317. package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +2 -1
  318. package/lib/interaction/components/abstract-dialog.component.d.ts +5 -14
  319. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +15 -13
  320. package/lib/interaction/components/activity-body/activity-body.component.d.ts +3 -4
  321. package/lib/interaction/components/activity-container/activity-container.component.d.ts +11 -5
  322. package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +4 -5
  323. package/lib/interaction/components/activity-title/activity-title.component.d.ts +2 -4
  324. package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +7 -8
  325. package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +1 -3
  326. package/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.d.ts +2 -4
  327. package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +6 -1
  328. package/lib/interaction/components/alert-renderer/alert-renderer.component.d.ts +17 -0
  329. package/lib/interaction/components/confirm-renderer/confirm-renderer.component.d.ts +15 -0
  330. package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +1 -1
  331. package/lib/interaction/components/editors/edit-context.d.ts +1 -1
  332. package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +7 -9
  333. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +9 -7
  334. package/lib/interaction/components/input-activities/input-activity.d.ts +5 -3
  335. package/lib/interaction/components/input-activities/select-input-activity.d.ts +4 -2
  336. package/lib/interaction/components/input-activities/string-input-activity.d.ts +1 -1
  337. package/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.d.ts +4 -5
  338. package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +53 -0
  339. package/lib/interaction/confirm.d.ts +4 -0
  340. package/lib/interaction/directives/interaction-context-trigger-for.directive.d.ts +3 -3
  341. package/lib/interaction/exports.d.ts +5 -0
  342. package/lib/interaction/interaction-context-provider.d.ts +11 -0
  343. package/lib/interaction/interaction-context.d.ts +7 -1
  344. package/lib/interaction/interaction.module.d.ts +35 -32
  345. package/lib/interaction/services/interaction-service-routing-adapter.d.ts +3 -3
  346. package/lib/interaction/services/interaction.service.d.ts +2 -1
  347. package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +2 -3
  348. package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +4 -3
  349. package/lib/place/components/abstract-place-navigation.component.d.ts +8 -8
  350. package/lib/place/components/not-authorised-notice/not-authorised-notice.component.d.ts +0 -1
  351. package/lib/place/components/place-outlet/place-outlet.component.d.ts +9 -11
  352. package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +4 -3
  353. package/lib/place/exports.d.ts +1 -0
  354. package/lib/place/guards/noop-auth-guard.service.d.ts +0 -1
  355. package/lib/place/guards/place.guard.d.ts +2 -2
  356. package/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.d.ts +0 -1
  357. package/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.d.ts +2 -2
  358. package/lib/place/place-access-guard.d.ts +2 -2
  359. package/lib/place/place-auth-service.d.ts +49 -0
  360. package/lib/place/place-component.d.ts +11 -12
  361. package/lib/place/place-definition.d.ts +2 -0
  362. package/lib/place/place-history.d.ts +0 -1
  363. package/lib/place/place-router.d.ts +11 -13
  364. package/lib/place/place.decorator.d.ts +1 -1
  365. package/lib/place/place.module.d.ts +6 -5
  366. package/lib/place/route/json-types.d.ts +1 -3
  367. package/lib/place/route/parameter-decorators.d.ts +3 -4
  368. package/lib/place/route/parameter-definition.d.ts +3 -3
  369. package/lib/place/route/parameter-sanitiser.d.ts +7 -0
  370. package/lib/place/url-snapshot.d.ts +3 -3
  371. package/lib/place/visit-segment.d.ts +4 -4
  372. package/lib/place/visit.d.ts +2 -2
  373. package/lib/services/markdown/markdown.service.d.ts +0 -1
  374. package/lib/services/visibility-service.d.ts +1 -1
  375. package/package.json +20 -19
  376. package/esm2022/lib/components/cards/card-stack/card-stack.component.mjs +0 -81
  377. package/esm2022/lib/components/tables/column/column-list-model.mjs +0 -44
  378. package/esm2022/lib/components/tables/table-row-menu/table-row-menu.component.mjs +0 -84
  379. package/esm2022/lib/components/track-by.mjs +0 -24
  380. package/lib/components/cards/card-stack/card-stack.component.d.ts +0 -68
  381. package/lib/components/tables/column/column-list-model.d.ts +0 -13
  382. package/lib/components/tables/table-row-menu/table-row-menu.component.d.ts +0 -28
  383. package/schematics/activity/index.d.ts +0 -3
  384. package/schematics/activity/index.js +0 -32
  385. package/schematics/activity/index.js.map +0 -1
  386. package/schematics/activity/index.spec.d.ts +0 -1
  387. package/schematics/activity/index.spec.js +0 -364
  388. package/schematics/activity/index.spec.js.map +0 -1
  389. package/schematics/activity/schema.d.ts +0 -4
  390. package/schematics/activity/schema.js +0 -3
  391. package/schematics/activity/schema.js.map +0 -1
  392. package/schematics/activity/schema.json +0 -27
  393. package/schematics/activity/templates/component/__name@dasherize__.component.html.template +0 -5
  394. package/schematics/activity/templates/component/__name@dasherize__.component.scss.template +0 -4
  395. package/schematics/activity/templates/component/__name@dasherize__.component.spec.ts.template +0 -25
  396. package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +0 -40
  397. package/schematics/activity/templates/component/__name@dasherize__.i18n.yml.template +0 -9
  398. package/schematics/aup-i18n/index.d.ts +0 -4
  399. package/schematics/aup-i18n/index.js +0 -86
  400. package/schematics/aup-i18n/index.js.map +0 -1
  401. package/schematics/aup-i18n/schema.d.ts +0 -3
  402. package/schematics/aup-i18n/schema.js +0 -3
  403. package/schematics/aup-i18n/schema.js.map +0 -1
  404. package/schematics/aup-i18n/schema.json +0 -18
  405. package/schematics/aup-i18n/templates/app/aup.i18n.yml.template +0 -80
  406. package/schematics/bootstrap-app/index.d.ts +0 -4
  407. package/schematics/bootstrap-app/index.js +0 -109
  408. package/schematics/bootstrap-app/index.js.map +0 -1
  409. package/schematics/bootstrap-app/schema.d.ts +0 -3
  410. package/schematics/bootstrap-app/schema.js +0 -3
  411. package/schematics/bootstrap-app/schema.js.map +0 -1
  412. package/schematics/bootstrap-app/schema.json +0 -18
  413. package/schematics/bootstrap-app/templates/i18n.config.json.template +0 -11
  414. package/schematics/bootstrap-app/templates/src/app/app-routing.module.ts.template +0 -23
  415. package/schematics/bootstrap-app/templates/src/app/app.component.html.template +0 -7
  416. package/schematics/bootstrap-app/templates/src/app/app.component.scss.template +0 -12
  417. package/schematics/bootstrap-app/templates/src/app/app.component.ts.template +0 -19
  418. package/schematics/bootstrap-app/templates/src/app/app.module.ts.template +0 -74
  419. package/schematics/bootstrap-app/templates/src/app/components/components.module.ts.template +0 -16
  420. package/schematics/bootstrap-app/templates/src/app/i18n.ts.template +0 -9
  421. package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/MaterialIcons-Regular.eot +0 -0
  422. package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/MaterialIcons-Regular.ijmap +0 -1
  423. package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/MaterialIcons-Regular.svg +0 -2373
  424. package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/MaterialIcons-Regular.ttf +0 -0
  425. package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/MaterialIcons-Regular.woff +0 -0
  426. package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/MaterialIcons-Regular.woff2 +0 -0
  427. package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/README.md +0 -9
  428. package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/codepoints +0 -932
  429. package/schematics/bootstrap-app/templates/src/assets/fonts/material-design-icons/material-icons.css +0 -36
  430. package/schematics/bootstrap-app/templates/src/index.html.template +0 -13
  431. package/schematics/bootstrap-app/templates/src/styles/global-variables.scss.template +0 -13
  432. package/schematics/bootstrap-app/templates/src/styles.scss.template +0 -85
  433. package/schematics/collection.json +0 -48
  434. package/schematics/component/index.d.ts +0 -3
  435. package/schematics/component/index.js +0 -36
  436. package/schematics/component/index.js.map +0 -1
  437. package/schematics/component/index.spec.d.ts +0 -1
  438. package/schematics/component/index.spec.js +0 -364
  439. package/schematics/component/index.spec.js.map +0 -1
  440. package/schematics/component/schema.d.ts +0 -5
  441. package/schematics/component/schema.js +0 -3
  442. package/schematics/component/schema.js.map +0 -1
  443. package/schematics/component/schema.json +0 -39
  444. package/schematics/component/templates/component/__name@dasherize__.component.html.template +0 -1
  445. package/schematics/component/templates/component/__name@dasherize__.component.scss.template +0 -4
  446. package/schematics/component/templates/component/__name@dasherize__.component.spec.ts.template +0 -25
  447. package/schematics/component/templates/component/__name@dasherize__.component.ts.template +0 -24
  448. package/schematics/component/templates/component/__name@dasherize__.i18n.yml.template +0 -1
  449. package/schematics/ng-add/index.d.ts +0 -3
  450. package/schematics/ng-add/index.js +0 -37
  451. package/schematics/ng-add/index.js.map +0 -1
  452. package/schematics/package-util.d.ts +0 -13
  453. package/schematics/package-util.js +0 -61
  454. package/schematics/package-util.js.map +0 -1
  455. package/schematics/place-add/index.d.ts +0 -3
  456. package/schematics/place-add/index.js +0 -45
  457. package/schematics/place-add/index.js.map +0 -1
  458. package/schematics/place-add/index.spec.d.ts +0 -1
  459. package/schematics/place-add/index.spec.js +0 -364
  460. package/schematics/place-add/index.spec.js.map +0 -1
  461. package/schematics/place-add/schema.d.ts +0 -4
  462. package/schematics/place-add/schema.js +0 -3
  463. package/schematics/place-add/schema.js.map +0 -1
  464. package/schematics/place-add/schema.json +0 -27
  465. package/schematics/place-add/templates/component/__name@dasherize__.component.html.template +0 -1
  466. package/schematics/place-add/templates/component/__name@dasherize__.component.scss.template +0 -4
  467. package/schematics/place-add/templates/component/__name@dasherize__.component.spec.ts.template +0 -25
  468. package/schematics/place-add/templates/component/__name@dasherize__.component.ts.template +0 -35
  469. package/schematics/place-add/templates/component/__name@dasherize__.i18n.yml.template +0 -5
  470. package/schematics/place-bootstrap/index.d.ts +0 -3
  471. package/schematics/place-bootstrap/index.js +0 -21
  472. package/schematics/place-bootstrap/index.js.map +0 -1
  473. package/schematics/place-bootstrap/schema.d.ts +0 -4
  474. package/schematics/place-bootstrap/schema.js +0 -3
  475. package/schematics/place-bootstrap/schema.js.map +0 -1
  476. package/schematics/place-bootstrap/schema.json +0 -28
  477. package/schematics/place-bootstrap/templates/__name@dasherize__/place-routes.ts.template +0 -3
  478. package/schematics/place-bootstrap/templates/__name@dasherize__/places.module.ts.template +0 -16
  479. package/schematics/place-routes/index.d.ts +0 -3
  480. package/schematics/place-routes/index.js +0 -24
  481. package/schematics/place-routes/index.js.map +0 -1
  482. package/schematics/place-routes/place-builder.d.ts +0 -18
  483. package/schematics/place-routes/place-builder.js +0 -123
  484. package/schematics/place-routes/place-builder.js.map +0 -1
  485. package/schematics/place-routes/place-class-scanner.d.ts +0 -47
  486. package/schematics/place-routes/place-class-scanner.js +0 -223
  487. package/schematics/place-routes/place-class-scanner.js.map +0 -1
  488. package/schematics/place-routes/place-def.d.ts +0 -62
  489. package/schematics/place-routes/place-def.js +0 -195
  490. package/schematics/place-routes/place-def.js.map +0 -1
  491. package/schematics/place-routes/schema.d.ts +0 -4
  492. package/schematics/place-routes/schema.js +0 -3
  493. package/schematics/place-routes/schema.js.map +0 -1
  494. package/schematics/place-routes/schema.json +0 -26
  495. package/schematics/place-routes/templates/place-routes.ts.template +0 -15
  496. package/schematics/utils/build-context.d.ts +0 -74
  497. package/schematics/utils/build-context.js +0 -189
  498. package/schematics/utils/build-context.js.map +0 -1
  499. package/schematics/utils/decorators/decorated-class.d.ts +0 -13
  500. package/schematics/utils/decorators/decorated-class.js +0 -28
  501. package/schematics/utils/decorators/decorated-class.js.map +0 -1
  502. package/schematics/utils/decorators/decorated-source-file.d.ts +0 -15
  503. package/schematics/utils/decorators/decorated-source-file.js +0 -27
  504. package/schematics/utils/decorators/decorated-source-file.js.map +0 -1
  505. package/schematics/utils/import-def.d.ts +0 -30
  506. package/schematics/utils/import-def.js +0 -97
  507. package/schematics/utils/import-def.js.map +0 -1
  508. package/schematics/utils/method-scanner.d.ts +0 -16
  509. package/schematics/utils/method-scanner.js +0 -70
  510. package/schematics/utils/method-scanner.js.map +0 -1
  511. package/schematics/utils/mixin.d.ts +0 -11
  512. package/schematics/utils/mixin.js +0 -27
  513. package/schematics/utils/mixin.js.map +0 -1
  514. package/schematics/utils/parameter-def.d.ts +0 -5
  515. package/schematics/utils/parameter-def.js +0 -3
  516. package/schematics/utils/parameter-def.js.map +0 -1
  517. package/schematics/utils/path-helper.d.ts +0 -14
  518. package/schematics/utils/path-helper.js +0 -30
  519. package/schematics/utils/path-helper.js.map +0 -1
  520. package/schematics/utils/schematic-tree-file-system.d.ts +0 -30
  521. package/schematics/utils/schematic-tree-file-system.js +0 -113
  522. package/schematics/utils/schematic-tree-file-system.js.map +0 -1
  523. package/schematics/utils/source-file-scanner.d.ts +0 -14
  524. package/schematics/utils/source-file-scanner.js +0 -89
  525. package/schematics/utils/source-file-scanner.js.map +0 -1
  526. package/schematics/utils/source-file-utilities.d.ts +0 -6
  527. package/schematics/utils/source-file-utilities.js +0 -36
  528. package/schematics/utils/source-file-utilities.js.map +0 -1
  529. package/schematics/utils/stringy.d.ts +0 -15
  530. package/schematics/utils/stringy.js +0 -50
  531. package/schematics/utils/stringy.js.map +0 -1
  532. package/schematics/utils/template-utilities.d.ts +0 -2
  533. package/schematics/utils/template-utilities.js +0 -24
  534. package/schematics/utils/template-utilities.js.map +0 -1
  535. package/schematics/utils/workspace.d.ts +0 -15
  536. package/schematics/utils/workspace.js +0 -59
  537. package/schematics/utils/workspace.js.map +0 -1
@@ -1,30 +0,0 @@
1
- import { ImportDeclaration, SourceFile } from 'ts-morph';
2
- import { BuildContext } from "./build-context";
3
- export declare abstract class ImportDef {
4
- readonly typeName: string;
5
- static create(typeName: string, importDeclarationOrSourceFile: ImportDeclaration | SourceFile | string): ImportDef;
6
- constructor(typeName: string);
7
- importPathFor(outDir: BuildContext.Dir): string;
8
- protected abstract getModuleSpecifierFor(outDir: BuildContext.Dir): string;
9
- }
10
- export declare namespace ImportDef {
11
- class SourceFileImport extends ImportDef {
12
- private readonly sourceFile;
13
- constructor(typeName: string, sourceFile: SourceFile);
14
- get id(): string;
15
- getModuleSpecifierFor(outDir: BuildContext.Dir): string;
16
- }
17
- class ImportDeclarationImport extends ImportDef {
18
- private readonly importDeclaration;
19
- constructor(typeName: string, importDeclaration: ImportDeclaration);
20
- get moduleSpecifier(): string;
21
- get id(): string;
22
- getModuleSpecifierFor(outDir: BuildContext.Dir): string;
23
- }
24
- class ExternalImport extends ImportDef {
25
- readonly moduleSpecifier: string;
26
- constructor(typeName: string, moduleSpecifier: string);
27
- get id(): string;
28
- getModuleSpecifierFor(outDir: BuildContext.Dir): string;
29
- }
30
- }
@@ -1,97 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ImportDef = void 0;
13
- const fast_memoize_decorator_1 = require("@typescript-plus/fast-memoize-decorator");
14
- const ts_morph_1 = require("ts-morph");
15
- class ImportDef {
16
- static create(typeName, importDeclarationOrSourceFile) {
17
- return importDeclarationOrSourceFile instanceof ts_morph_1.SourceFile ?
18
- new ImportDef.SourceFileImport(typeName, importDeclarationOrSourceFile) :
19
- importDeclarationOrSourceFile instanceof ts_morph_1.ImportDeclaration ?
20
- new ImportDef.ImportDeclarationImport(typeName, importDeclarationOrSourceFile) :
21
- new ImportDef.ExternalImport(typeName, importDeclarationOrSourceFile);
22
- }
23
- constructor(typeName) {
24
- this.typeName = typeName;
25
- }
26
- importPathFor(outDir) {
27
- const specifier = this.getModuleSpecifierFor(outDir);
28
- return specifier.endsWith('.ts') ? specifier.substr(0, specifier.length - '.ts'.length) : specifier;
29
- }
30
- }
31
- exports.ImportDef = ImportDef;
32
- (function (ImportDef) {
33
- class SourceFileImport extends ImportDef {
34
- constructor(typeName, sourceFile) {
35
- super(typeName);
36
- this.sourceFile = sourceFile;
37
- }
38
- get id() {
39
- return `${this.typeName} -> ${this.sourceFile.getFilePath()}`;
40
- }
41
- getModuleSpecifierFor(outDir) {
42
- const relativePath = outDir.getRelativePathTo(this.sourceFile.getFilePath());
43
- return relativePath.substr(0, relativePath.length - '.ts'.length);
44
- }
45
- }
46
- __decorate([
47
- (0, fast_memoize_decorator_1.Memoize)(),
48
- __metadata("design:type", Object),
49
- __metadata("design:paramtypes", [])
50
- ], SourceFileImport.prototype, "id", null);
51
- ImportDef.SourceFileImport = SourceFileImport;
52
- class ImportDeclarationImport extends ImportDef {
53
- constructor(typeName, importDeclaration) {
54
- super(typeName);
55
- this.importDeclaration = importDeclaration;
56
- }
57
- get moduleSpecifier() {
58
- return this.importDeclaration.getModuleSpecifierValue();
59
- }
60
- get id() {
61
- return `${this.typeName} -> ${this.moduleSpecifier}`;
62
- }
63
- getModuleSpecifierFor(outDir) {
64
- return this.importDeclaration.isModuleSpecifierRelative() ?
65
- outDir.getRelativePathTo(this.importDeclaration.getModuleSpecifierSourceFile().getFilePath()) :
66
- this.moduleSpecifier;
67
- }
68
- }
69
- __decorate([
70
- (0, fast_memoize_decorator_1.Memoize)(),
71
- __metadata("design:type", Object),
72
- __metadata("design:paramtypes", [])
73
- ], ImportDeclarationImport.prototype, "id", null);
74
- ImportDef.ImportDeclarationImport = ImportDeclarationImport;
75
- class ExternalImport extends ImportDef {
76
- constructor(typeName, moduleSpecifier) {
77
- super(typeName);
78
- this.moduleSpecifier = moduleSpecifier;
79
- if (moduleSpecifier.startsWith(".")) {
80
- throw new Error(`External imports must not be relative. Got ${moduleSpecifier}`);
81
- }
82
- }
83
- get id() {
84
- return `${this.typeName} -> ${this.moduleSpecifier}`;
85
- }
86
- getModuleSpecifierFor(outDir) {
87
- return this.moduleSpecifier;
88
- }
89
- }
90
- __decorate([
91
- (0, fast_memoize_decorator_1.Memoize)(),
92
- __metadata("design:type", Object),
93
- __metadata("design:paramtypes", [])
94
- ], ExternalImport.prototype, "id", null);
95
- ImportDef.ExternalImport = ExternalImport;
96
- })(ImportDef = exports.ImportDef || (exports.ImportDef = {}));
97
- //# sourceMappingURL=import-def.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"import-def.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/utils/import-def.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAkE;AAClE,uCAAyD;AAIzD,MAAsB,SAAS;IAE7B,MAAM,CAAC,MAAM,CAAC,QAAgB,EAAE,6BAAsE;QACpG,OAAO,6BAA6B,YAAY,qBAAU,CAAC,CA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AC,EA3DgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QA2DzB"}
@@ -1,16 +0,0 @@
1
- import { ClassDeclaration, MethodDeclaration, SourceFile, TypeNode } from 'ts-morph';
2
- import { BuildContext } from './build-context';
3
- import { ImportDef } from './import-def';
4
- import { ParameterDef } from './parameter-def';
5
- import { SourceFileScanner } from './source-file-scanner';
6
- export declare class MethodScanner extends SourceFileScanner {
7
- readonly method: MethodDeclaration;
8
- readonly classDecl: ClassDeclaration;
9
- readonly parameterWrapperTypes: RegExp[];
10
- constructor(method: MethodDeclaration, sourceFile: SourceFile, classDecl: ClassDeclaration, context: BuildContext);
11
- getImportDefs(): ImportDef[];
12
- getParameters(): ParameterDef[];
13
- getReturnTypeText(): string;
14
- getReturnTypeNode(): TypeNode | undefined;
15
- stripPartialWrapperTypes(typeName: string): string;
16
- }
@@ -1,70 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.MethodScanner = void 0;
13
- const fast_memoize_decorator_1 = require("@typescript-plus/fast-memoize-decorator");
14
- const lodash_1 = require("lodash");
15
- const source_file_scanner_1 = require("./source-file-scanner");
16
- class MethodScanner extends source_file_scanner_1.SourceFileScanner {
17
- constructor(method, sourceFile, classDecl, context) {
18
- super(sourceFile);
19
- this.method = method;
20
- this.classDecl = classDecl;
21
- // TODO: make this configurable
22
- this.parameterWrapperTypes = [
23
- /DeepPartial<(.+)>(\[\])?/,
24
- /Partial<(.+)(\[\])?>/
25
- ];
26
- }
27
- getImportDefs() {
28
- const parameterImports = (0, lodash_1.flatten)(this.method.getParameters()
29
- .map(p => this.extractImports(p.getTypeNode())));
30
- const returnTypeImports = this.extractImports(this.method.getReturnTypeNode());
31
- return (0, lodash_1.uniqBy)(returnTypeImports.concat(parameterImports), 'id');
32
- }
33
- getParameters() {
34
- return this.method.getParameters().map(p => {
35
- const typeName = p.getTypeNode();
36
- return {
37
- name: p.getName(),
38
- typeName: this.stripPartialWrapperTypes(typeName.getFullText()).trim(),
39
- optional: p.hasQuestionToken()
40
- };
41
- });
42
- }
43
- getReturnTypeText() {
44
- const returnTypeNode = this.getReturnTypeNode();
45
- return returnTypeNode ? returnTypeNode.getFullText() : null;
46
- }
47
- getReturnTypeNode() {
48
- return this.method.getReturnTypeNode();
49
- }
50
- stripPartialWrapperTypes(typeName) {
51
- const match = this.parameterWrapperTypes
52
- .map(regex => regex.exec(typeName.trim()))
53
- .find(result => result && result.length > 0);
54
- return match ? `${match[1]}${match[2] || ''}` : typeName;
55
- }
56
- }
57
- __decorate([
58
- (0, fast_memoize_decorator_1.Memoize)(),
59
- __metadata("design:type", Function),
60
- __metadata("design:paramtypes", []),
61
- __metadata("design:returntype", Array)
62
- ], MethodScanner.prototype, "getImportDefs", null);
63
- __decorate([
64
- (0, fast_memoize_decorator_1.Memoize)(),
65
- __metadata("design:type", Function),
66
- __metadata("design:paramtypes", []),
67
- __metadata("design:returntype", Array)
68
- ], MethodScanner.prototype, "getParameters", null);
69
- exports.MethodScanner = MethodScanner;
70
- //# sourceMappingURL=method-scanner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"method-scanner.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/utils/method-scanner.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAkE;AAClE,mCAAyC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,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IAC9D,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;IACzC,CAAC;IAED,wBAAwB,CAAC,QAAgB;QACvC,MAAM,KAAK,GAAG,IAAI,CAAC,qBAAqB;aACrC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;aACzC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC/C,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;IAC3D,CAAC;CACF;AApCC;IAAC,IAAA,gCAAO,GAAE;;;;kDAOT;AAED;IAAC,IAAA,gCAAO,GAAE;;;;kDAUT;AA/BH,sCAgDC"}
@@ -1,11 +0,0 @@
1
- export declare abstract class Mixin<T extends object> {
2
- }
3
- export declare namespace Mixin {
4
- function createProxy<T extends object, M extends Mixin<T>>(original: T, mixin: M): T & M;
5
- class Handler<T extends object> {
6
- private original;
7
- private mixin;
8
- constructor(original: T, mixin: Mixin<T>);
9
- get(target: T, property: string | number | symbol, receiver: any): any;
10
- }
11
- }
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Mixin = void 0;
4
- const lodash_1 = require("lodash");
5
- class Mixin {
6
- }
7
- exports.Mixin = Mixin;
8
- (function (Mixin) {
9
- function createProxy(original, mixin) {
10
- return new Proxy(original, new Handler(original, mixin));
11
- }
12
- Mixin.createProxy = createProxy;
13
- class Handler {
14
- // @ts-ignore
15
- constructor(original, mixin) {
16
- this.original = original;
17
- this.mixin = mixin;
18
- }
19
- // @ts-ignore
20
- get(target, property, receiver) {
21
- // @ts-ignore TODO: Should this be Object.hasOwnProperty? what if it's a chain of proxies??
22
- return !(0, lodash_1.isNil)(this.mixin[property]) ? this.mixin[property] : target[property];
23
- }
24
- }
25
- Mixin.Handler = Handler;
26
- })(Mixin = exports.Mixin || (exports.Mixin = {}));
27
- //# sourceMappingURL=mixin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mixin.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/utils/mixin.ts"],"names":[],"mappings":";;;AAAA,mCAA6B;AAE7B,MAAsB,KAAK;CAC1B;AADD,sBACC;AAED,WAAiB,KAAK;IAEpB,SAAgB,WAAW,CAAuC,QAAW,EAAE,KAAQ;QACrF,OAAO,IAAI,KAAK,CAAC,QAAQ,EAAE,IAAI,OAAO,CAAI,QAAQ,EAAE,KAAK,CAAC,CAAU,CAAC;IACvE,CAAC;IAFe,iBAAW,cAE1B,CAAA;IAED,MAAa,OAAO;QAClB,aAAa;QACb,YAAoB,QAAU,EAAU,KAAe;YAAnC,aAAQ,GAAR,QAAQ,CAAE;YAAU,UAAK,GAAL,KAAK,CAAU;QACvD,CAAC;QAED,aAAa;QACb,GAAG,CAAC,MAAS,EAAE,QAAkC,EAAE,QAAa;YAC9D,2FAA2F;YAC3F,OAAO,CAAC,IAAA,cAAK,EAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAChF,CAAC;KACF;IAVY,aAAO,UAUnB,CAAA;AACH,CAAC,EAjBgB,KAAK,GAAL,aAAK,KAAL,aAAK,QAiBrB"}
@@ -1,5 +0,0 @@
1
- export interface ParameterDef {
2
- name: string;
3
- typeName: string;
4
- optional: boolean;
5
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=parameter-def.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parameter-def.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/utils/parameter-def.ts"],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- import { BuildContext } from "./build-context";
2
- export declare class PathHelper {
3
- private readonly buildContext;
4
- constructor(buildContext: BuildContext);
5
- }
6
- export declare namespace PathHelper {
7
- class Dir {
8
- private readonly root;
9
- private readonly dir;
10
- private readonly pathToRoot;
11
- constructor(root: string, dir: string);
12
- relativePath(absPath: string): string;
13
- }
14
- }
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PathHelper = void 0;
4
- class PathHelper {
5
- constructor(buildContext) {
6
- this.buildContext = buildContext;
7
- }
8
- }
9
- exports.PathHelper = PathHelper;
10
- (function (PathHelper) {
11
- class Dir {
12
- constructor(root, dir) {
13
- // const sourcePrefix = 1 + this.sourceRoot.length;
14
- // const resourcePath = filePath.substr(1 + sourcePrefix, filePath.length - 1 - sourcePrefix - '.ts'.length);
15
- // const relativePath = this.outDir.substr(sourcePrefix).split('/').map(v => '..').join('/');
16
- // const absolutResourceClassPath = `${relativePath}/${resourcePath}`;
17
- this.root = root;
18
- this.dir = dir;
19
- this.pathToRoot = dir ? `${dir.split('/').map(d => '..').join('/')}/` : '';
20
- }
21
- relativePath(absPath) {
22
- if (!absPath.startsWith(this.root)) {
23
- throw new Error(`expected ${absPath} to start with ${this.root}`);
24
- }
25
- return this.pathToRoot + absPath.substr(1 + this.root.length);
26
- }
27
- }
28
- PathHelper.Dir = Dir;
29
- })(PathHelper = exports.PathHelper || (exports.PathHelper = {}));
30
- //# sourceMappingURL=path-helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"path-helper.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/utils/path-helper.ts"],"names":[],"mappings":";;;AAGA,MAAa,UAAU;IACrB,YAA6B,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IACvD,CAAC;CACF;AAHD,gCAGC;AAED,WAAiB,UAAU;IAEzB,MAAa,GAAG;QAGd,YAA6B,IAAY,EAAmB,GAAW;YACrE,mDAAmD;YACnD,6GAA6G;YAC7G,6FAA6F;YAC7F,sEAAsE;YAJ3C,SAAI,GAAJ,IAAI,CAAQ;YAAmB,QAAG,GAAH,GAAG,CAAQ;YAMrE,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7E,CAAC;QAED,YAAY,CAAC,OAAe;YAC1B,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBAClC,MAAM,IAAI,KAAK,CAAC,YAAY,OAAO,kBAAkB,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;aAClE;YACD,OAAO,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChE,CAAC;KACF;IAlBY,cAAG,MAkBf,CAAA;AACH,CAAC,EArBgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAqB1B"}
@@ -1,30 +0,0 @@
1
- /// <reference types="node" />
2
- import { SchematicContext, Tree } from '@angular-devkit/schematics';
3
- import { FileSystemHost } from 'ts-morph';
4
- export declare class SchematicTreeFileSystem implements FileSystemHost {
5
- private readonly tree;
6
- private readonly context;
7
- constructor(tree: Tree, context: SchematicContext);
8
- copy(srcPath: string, destPath: string): Promise<void>;
9
- copySync(srcPath: string, destPath: string): void;
10
- delete(path: string): Promise<void>;
11
- deleteSync(path: string): void;
12
- directoryExists(dirPath: string): Promise<boolean>;
13
- directoryExistsSync(dirPath: string): boolean;
14
- fileExists(filePath: string): Promise<boolean>;
15
- fileExistsSync(filePath: string): boolean;
16
- getCurrentDirectory(): string;
17
- glob(patterns: ReadonlyArray<string>): Promise<string[]>;
18
- globSync(patterns: ReadonlyArray<string>): string[];
19
- isCaseSensitive(): boolean;
20
- mkdir(dirPath: string): Promise<void>;
21
- mkdirSync(dirPath: string): void;
22
- move(srcPath: string, destPath: string): Promise<void>;
23
- moveSync(srcPath: string, destPath: string): void;
24
- readDirSync(dirPath: string): string[];
25
- readFile(filePath: string, encoding?: BufferEncoding): Promise<string>;
26
- readFileSync(filePath: string, encoding?: BufferEncoding): string;
27
- realpathSync(path: string): string;
28
- writeFile(filePath: string, fileText: string): Promise<void>;
29
- writeFileSync(filePath: string, fileText: string): void;
30
- }
@@ -1,113 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.SchematicTreeFileSystem = void 0;
13
- class SchematicTreeFileSystem {
14
- constructor(tree, context) {
15
- this.tree = tree;
16
- this.context = context;
17
- }
18
- copy(srcPath, destPath) {
19
- return __awaiter(this, void 0, void 0, function* () {
20
- return Promise.reject("not implemented");
21
- });
22
- }
23
- copySync(srcPath, destPath) {
24
- throw new Error("not implemented");
25
- }
26
- delete(path) {
27
- return __awaiter(this, void 0, void 0, function* () {
28
- return this.deleteSync(path);
29
- });
30
- }
31
- deleteSync(path) {
32
- return this.tree.delete(path);
33
- }
34
- directoryExists(dirPath) {
35
- return __awaiter(this, void 0, void 0, function* () {
36
- return this.directoryExistsSync(dirPath);
37
- });
38
- }
39
- directoryExistsSync(dirPath) {
40
- const p = `${dirPath}`;
41
- const exists = this.tree.exists(p);
42
- this.context.logger.info(this.tree.root.subdirs.join(','));
43
- this.context.logger.info(`dirExists->${p}? ${exists}`);
44
- return exists;
45
- }
46
- fileExists(filePath) {
47
- return __awaiter(this, void 0, void 0, function* () {
48
- return this.fileExistsSync(filePath);
49
- });
50
- }
51
- fileExistsSync(filePath) {
52
- const exists = this.tree.exists(filePath);
53
- // NOTE: If we turn the logging on this will show ts-morph trying to read
54
- // the tsconfig.app.json parent config from a double nested directory i.e
55
- // apps/test-bed/dummy-app/apps/test-bed/dummy-app/tsconfig.json
56
- // This is happening from within the typescript compiler so I'm not sure if
57
- // it's intended behaviour or not.
58
- this.context.logger.info(`fileExists->${filePath}? ${exists}`);
59
- return exists;
60
- }
61
- getCurrentDirectory() {
62
- return '';
63
- }
64
- glob(patterns) {
65
- return __awaiter(this, void 0, void 0, function* () {
66
- return Promise.reject("not implemented");
67
- });
68
- }
69
- globSync(patterns) {
70
- throw new Error("not implemented");
71
- }
72
- isCaseSensitive() {
73
- return false;
74
- }
75
- mkdir(dirPath) {
76
- return Promise.reject("not implemented");
77
- }
78
- mkdirSync(dirPath) {
79
- throw new Error("not implemented");
80
- }
81
- move(srcPath, destPath) {
82
- return Promise.resolve(undefined);
83
- }
84
- moveSync(srcPath, destPath) {
85
- throw new Error("not implemented");
86
- }
87
- readDirSync(dirPath) {
88
- const dir = this.tree.getDir(dirPath);
89
- return dir.subdirs.concat(dir.subfiles).map(name => `${dirPath}/${name}`);
90
- }
91
- readFile(filePath, encoding) {
92
- return __awaiter(this, void 0, void 0, function* () {
93
- return this.readFileSync(filePath, encoding);
94
- });
95
- }
96
- readFileSync(filePath, encoding) {
97
- // this.context.logger.info(`readFile->${filePath}`)
98
- return this.tree.get(filePath).content.toString(encoding || "utf8");
99
- }
100
- realpathSync(path) {
101
- return path;
102
- }
103
- writeFile(filePath, fileText) {
104
- return __awaiter(this, void 0, void 0, function* () {
105
- return this.writeFileSync(filePath, fileText);
106
- });
107
- }
108
- writeFileSync(filePath, fileText) {
109
- this.tree.create(filePath, fileText);
110
- }
111
- }
112
- exports.SchematicTreeFileSystem = SchematicTreeFileSystem;
113
- //# sourceMappingURL=schematic-tree-file-system.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schematic-tree-file-system.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/utils/schematic-tree-file-system.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,MAAa,uBAAuB;IAElC,YAA6B,IAAU,EAAmB,OAAyB;QAAtD,SAAI,GAAJ,IAAI,CAAM;QAAmB,YAAO,GAAP,OAAO,CAAkB;IACnF,CAAC;IAEK,IAAI,CAAC,OAAe,EAAE,QAAgB;;YAC1C,OAAO,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAC3C,CAAC;KAAA;IAED,QAAQ,CAAC,OAAe,EAAE,QAAgB;QACxC,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrC,CAAC;IAEK,MAAM,CAAC,IAAY;;YACvB,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC;KAAA;IAED,UAAU,CAAC,IAAY;QACrB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;IAEK,eAAe,CAAC,OAAe;;YACnC,OAAO,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;QAC3C,CAAC;KAAA;IAED,mBAAmB,CAAC,OAAe;QACjC,MAAM,CAAC,GAAG,GAAG,OAAO,EAAE,CAAC;QACvB,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAA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AE,QAAgB;QACxC,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrC,CAAC;IAED,WAAW,CAAC,OAAe;QACzB,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACtC,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,OAAO,IAAI,IAAI,EAAE,CAAC,CAAC;IAC5E,CAAC;IAEK,QAAQ,CAAC,QAAgB,EAAE,QAAyB;;YACxD,OAAO,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC/C,CAAC;KAAA;IAED,YAAY,CAAC,QAAgB,EAAE,QAAyB;QACtD,oDAAoD;QACpD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,IAAI,MAAM,CAAC,CAAC;IACtE,CAAC;IAED,YAAY,CAAC,IAAY;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IAEK,SAAS,CAAC,QAAgB,EAAE,QAAgB;;YAChD,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAAA;IAED,aAAa,CAAC,QAAgB,EAAE,QAAgB;QAC9C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACvC,CAAC;CAMF;AA9GD,0DA8GC"}
@@ -1,14 +0,0 @@
1
- import { Decorator, ImportDeclaration, ObjectLiteralExpression, SourceFile, TypeNode } from 'ts-morph';
2
- import { ImportDef } from './import-def';
3
- export declare class SourceFileScanner {
4
- readonly sourceFile: SourceFile;
5
- constructor(sourceFile: SourceFile);
6
- extractImports(type: TypeNode): ImportDef[];
7
- getImportDeclaration(typeName: string): ImportDeclaration;
8
- getObjectLiteralArgument(annotation: Decorator, position: number): ObjectLiteralExpression;
9
- getOptionsArg<T extends {}>(annotation: Decorator, structure: T, options?: {
10
- position: number;
11
- required: boolean;
12
- }): T;
13
- scanObjectLiteral<T extends object>(structure: T, expression: ObjectLiteralExpression): T;
14
- }
@@ -1,89 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SourceFileScanner = void 0;
4
- const lodash_1 = require("lodash");
5
- const ts_morph_1 = require("ts-morph");
6
- const import_def_1 = require("./import-def");
7
- const source_file_utilities_1 = require("./source-file-utilities");
8
- class SourceFileScanner {
9
- constructor(sourceFile) {
10
- this.sourceFile = sourceFile;
11
- }
12
- extractImports(type) {
13
- const result = [];
14
- type.getDescendantsOfKind(ts_morph_1.SyntaxKind.Identifier).forEach(v => {
15
- const importDeclaration = this.getImportDeclaration(v.getFullText());
16
- if (importDeclaration) {
17
- // console.log(importDeclaration.getModuleSpecifierValue());
18
- result.push(import_def_1.ImportDef.create(v.getFullText().trim(), importDeclaration));
19
- }
20
- });
21
- return result;
22
- }
23
- getImportDeclaration(typeName) {
24
- // importDecl.getModuleSpecifierSourceFile().getFilePath()
25
- const baseName = typeName.split('.')[0].trim(); // Page.Criteria we check for Page.
26
- return this.sourceFile.getImportDeclarations().find(d => {
27
- const namedImports = d.getNamedImports().map(i => i.getText());
28
- const result = namedImports.includes(baseName);
29
- // console.log(`${baseName} in [${namedImports.join(',')}] -> ${result}`);
30
- return result;
31
- });
32
- }
33
- getObjectLiteralArgument(annotation, position) {
34
- const args = annotation.getArguments();
35
- if (args.length > position && args[position] instanceof ts_morph_1.ObjectLiteralExpression) {
36
- return args[position];
37
- }
38
- return null;
39
- }
40
- getOptionsArg(annotation, structure, options = {
41
- position: 0,
42
- required: true
43
- }) {
44
- const objectLiteralArgument = this.getObjectLiteralArgument(annotation, options.position);
45
- if (!objectLiteralArgument) {
46
- if (options.required) {
47
- console.error(`expected object literal arg at position ${options.position}`, { expectedType: structure });
48
- }
49
- return structure;
50
- }
51
- else {
52
- return this.scanObjectLiteral(structure, objectLiteralArgument);
53
- }
54
- }
55
- scanObjectLiteral(structure, expression) {
56
- return Object.keys(structure).reduce((result, key) => {
57
- // @ts-ignore
58
- const defaultValue = structure[key];
59
- const property = expression.getProperty(key);
60
- if (property) {
61
- if ((0, lodash_1.isPlainObject)(defaultValue)) {
62
- const children = property.getChildren();
63
- const objectLiteral = children[2];
64
- return Object.assign(Object.assign({}, result), { [key]: this.scanObjectLiteral(defaultValue, objectLiteral) });
65
- }
66
- else {
67
- const pas = property.getStructure();
68
- if ((0, lodash_1.isArray)(defaultValue)) {
69
- return Object.assign(Object.assign({}, result), { [pas.name]: (0, source_file_utilities_1.parseArrayLiteralValue)(pas.initializer) });
70
- }
71
- else {
72
- return Object.assign(Object.assign({}, result), { [pas.name]: pas.initializer });
73
- }
74
- }
75
- }
76
- else {
77
- if ((0, lodash_1.isPlainObject)(defaultValue)) {
78
- // todo: add support for checking nested default values.
79
- return result;
80
- }
81
- else {
82
- return (0, lodash_1.isNil)(defaultValue) ? result : Object.assign(Object.assign({}, result), { [key]: defaultValue });
83
- }
84
- }
85
- }, {});
86
- }
87
- }
88
- exports.SourceFileScanner = SourceFileScanner;
89
- //# sourceMappingURL=source-file-scanner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source-file-scanner.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/utils/source-file-scanner.ts"],"names":[],"mappings":";;;AACA,mCAAuD;AACvD,uCAQkB;AAElB,6CAAyC;AACzC,mEAAiE;AAEjE,MAAa,iBAAiB;IAE5B,YAAqB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAC3C,CAAC;IAGD,cAAc,CAAC,IAAc;QAC3B,MAAM,MAAM,GAAgB,EAAE,CAAC;QAC/B,IAAI,CAAC,oBAAoB,CAAC,qBAAU,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YAC3D,MA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AY,MAAM,KAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,WAAqB,IAAG;qBAC7D;iBACF;aACF;iBAAM;gBACL,IAAI,IAAA,sBAAa,EAAC,YAAY,CAAC,EAAE;oBAC/B,wDAAwD;oBACxD,OAAO,MAAM,CAAC;iBACf;qBAAM;oBACL,OAAO,IAAA,cAAK,EAAC,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,iCAAM,MAAM,KAAE,CAAC,GAAG,CAAC,EAAE,YAAY,GAAE,CAAC;iBAC1E;aACF;QACH,CAAC,EAAE,EAAO,CAAC,CAAC;IAEd,CAAC;CAGF;AAnFD,8CAmFC"}
@@ -1,6 +0,0 @@
1
- import { ClassDeclaration, Decorator, Node, ts, Type } from 'ts-morph';
2
- export declare function isDecoratorNode(node: Node, name: string): node is Decorator;
3
- export declare function stripEnclosingQuotes(value: string): string;
4
- export declare function parseArrayLiteralValue(value: string): string[];
5
- export declare function findClassDecoratorNode(classDecl: ClassDeclaration, decoratorName: string): Decorator;
6
- export declare function stripImports(type: Type<ts.Type>): string;
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stripImports = exports.findClassDecoratorNode = exports.parseArrayLiteralValue = exports.stripEnclosingQuotes = exports.isDecoratorNode = void 0;
4
- const lodash_1 = require("lodash");
5
- const ts_morph_1 = require("ts-morph");
6
- function isDecoratorNode(node, name) {
7
- return node.getKind() === ts_morph_1.SyntaxKind.Decorator &&
8
- node.getText().startsWith(`${name}(`); // NOTE: I'm only supporting the @Decorator(...) style of usage (i.e. decorator factories).
9
- }
10
- exports.isDecoratorNode = isDecoratorNode;
11
- function stripEnclosingQuotes(value) {
12
- return (0, lodash_1.isNil)(value) ? value : value.replace(/(^["'])|(["']$)/g, '');
13
- }
14
- exports.stripEnclosingQuotes = stripEnclosingQuotes;
15
- function parseArrayLiteralValue(value) {
16
- return value ? stripEnclosingQuotes(value).trim().slice(1, -1).split(',').map(s => stripEnclosingQuotes(s.trim())) : [];
17
- }
18
- exports.parseArrayLiteralValue = parseArrayLiteralValue;
19
- function findClassDecoratorNode(classDecl, decoratorName) {
20
- let result = null;
21
- classDecl.forEachChild((node) => {
22
- if (isDecoratorNode(node, decoratorName)) {
23
- result = node;
24
- // stop iterating when the node is a class declaration
25
- return true;
26
- }
27
- return false;
28
- });
29
- return result;
30
- }
31
- exports.findClassDecoratorNode = findClassDecoratorNode;
32
- function stripImports(type) {
33
- return type.getText().replace(/import\([^\)]+\)\./g, '');
34
- }
35
- exports.stripImports = stripImports;
36
- //# sourceMappingURL=source-file-utilities.js.map