@coolon/angular-ui-powerups 16.0.1 → 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 -18
  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 -5
  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 -33
  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,364 +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
- /**
13
- * @license
14
- * Copyright Google Inc. All Rights Reserved.
15
- *
16
- * Use of this source code is governed by an MIT-style license that can be
17
- * found in the LICENSE file at https://angular.io/license
18
- */
19
- // tslint:disable:no-big-function
20
- const testing_1 = require("@angular-devkit/schematics/testing");
21
- // import { Schema as ApplicationOptions } from '../application/schema';
22
- // import { createAppModule } from '../utility/test';
23
- // import { Schema as WorkspaceOptions } from '../workspace/schema';
24
- // import { ChangeDetection, Schema as ComponentOptions, Style } from './schema';
25
- describe('Add Place Schematic', () => {
26
- const schematicRunner = new testing_1.SchematicTestRunner('@coolon/angular-ui-powerups', require.resolve('../collection.json'));
27
- const workspaceOptions = {
28
- name: 'testWorkspace',
29
- newProjectRoot: 'apps',
30
- version: '10.1.1'
31
- };
32
- // const appOptions: ApplicationOptions = {
33
- const appOptions = {
34
- name: 'bar',
35
- routing: true,
36
- prefix: 'the-prefix',
37
- };
38
- const defaultOptions = {
39
- project: appOptions.name,
40
- name: 'places/new-place'
41
- };
42
- let appTree;
43
- beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
44
- appTree = yield schematicRunner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
45
- appTree = yield schematicRunner.runExternalSchematicAsync('@schematics/angular', 'application', appOptions, appTree).toPromise();
46
- appTree = yield schematicRunner
47
- .runSchematicAsync('bootstrap-app', {
48
- project: appOptions.name,
49
- initialPlaceName: undefined // need to disable this for the test as bootstrap will invoke us if specified
50
- }, appTree)
51
- .toPromise();
52
- }));
53
- it('should create a component', () => __awaiter(void 0, void 0, void 0, function* () {
54
- const options = Object.assign({}, defaultOptions);
55
- const tree = yield schematicRunner.runSchematicAsync('place-add', options, appTree).toPromise();
56
- const files = tree.files;
57
- expect(files).toEqual(jasmine.arrayContaining([
58
- '/apps/bar/src/app/places/new-place/new-place.component.scss',
59
- '/apps/bar/src/app/places/new-place/new-place.component.html',
60
- '/apps/bar/src/app/places/new-place/new-place.component.spec.ts',
61
- '/apps/bar/src/app/places/new-place/new-place.component.ts'
62
- ]));
63
- const moduleContent = tree.readContent('/apps/bar/src/app/places/new-place/new-place.component.ts');
64
- expect(moduleContent).toMatch(/export class NewPlaceComponent extends PlaceComponent/);
65
- expect(moduleContent).toMatch(/path: 'new-place'/);
66
- expect(moduleContent).toMatch(/nav: I18n.places.newPlace.nav/);
67
- expect(moduleContent).toMatch(/selector: 'the-prefix-new-place'/);
68
- expect(moduleContent).toMatch(/import.*I18n.*from '\.\.\/\.\.\/i18n'/);
69
- }));
70
- it('should add it to the place module', () => __awaiter(void 0, void 0, void 0, function* () {
71
- const options = Object.assign({}, defaultOptions);
72
- const tree = yield schematicRunner.runSchematicAsync('place-add', options, appTree).toPromise();
73
- // const moduleContent = tree.readContent('/projects/bar/src/app/app.module.ts');
74
- // expect(moduleContent).toMatch(/import.*Foo.*from '.\/foo\/foo.component'/);
75
- // expect(moduleContent).toMatch(/declarations:\s*\[[^\]]+?,\r?\n\s+FooComponent\r?\n/m);
76
- }));
77
- it('should create an i18n file', () => __awaiter(void 0, void 0, void 0, function* () {
78
- const options = Object.assign({}, defaultOptions);
79
- const tree = yield schematicRunner.runSchematicAsync('place-add', options, appTree).toPromise();
80
- const files = tree.files;
81
- expect(files).toEqual(jasmine.arrayContaining([
82
- '/apps/bar/src/i18n/places/new-place.yml',
83
- ]));
84
- }));
85
- // it('should set change detection to OnPush', async () => {
86
- // const options = { ...defaultOptions, changeDetection: 'OnPush' };
87
- //
88
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
89
- // const tsContent = tree.readContent('/projects/bar/src/app/foo/foo.component.ts');
90
- // expect(tsContent).toMatch(/changeDetection: ChangeDetectionStrategy.OnPush/);
91
- // });
92
- // it('should not set view encapsulation', async () => {
93
- // const options = { ...defaultOptions };
94
- //
95
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
96
- // const tsContent = tree.readContent('/projects/bar/src/app/foo/foo.component.ts');
97
- // expect(tsContent).not.toMatch(/encapsulation: ViewEncapsulation/);
98
- // });
99
- //
100
- // it('should set view encapsulation to Emulated', async () => {
101
- // const options = { ...defaultOptions, viewEncapsulation: 'Emulated' };
102
- //
103
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
104
- // const tsContent = tree.readContent('/projects/bar/src/app/foo/foo.component.ts');
105
- // expect(tsContent).toMatch(/encapsulation: ViewEncapsulation.Emulated/);
106
- // });
107
- //
108
- // it('should set view encapsulation to None', async () => {
109
- // const options = { ...defaultOptions, viewEncapsulation: 'None' };
110
- //
111
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
112
- // const tsContent = tree.readContent('/projects/bar/src/app/foo/foo.component.ts');
113
- // expect(tsContent).toMatch(/encapsulation: ViewEncapsulation.None/);
114
- // });
115
- // it('should create a flat component', async () => {
116
- // const options = { ...defaultOptions, flat: true };
117
- //
118
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
119
- // const files = tree.files;
120
- // expect(files).toEqual(
121
- // jasmine.arrayContaining([
122
- // '/projects/bar/src/app/foo.component.css',
123
- // '/projects/bar/src/app/foo.component.html',
124
- // '/projects/bar/src/app/foo.component.spec.ts',
125
- // '/projects/bar/src/app/foo.component.ts',
126
- // ]),
127
- // );
128
- // });
129
- // it('should find the closest module', async () => {
130
- // const options = { ...defaultOptions };
131
- // const fooModule = '/projects/bar/src/app/foo/foo.module.ts';
132
- // appTree.create(
133
- // fooModule,
134
- // `
135
- // import { NgModule } from '@angular/core';
136
- // @NgModule({
137
- // imports: [],
138
- // declarations: []
139
- // })
140
- // export class FooModule { }
141
- // `
142
- // );
143
- //
144
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
145
- // const fooModuleContent = tree.readContent(fooModule);
146
- // expect(fooModuleContent).toMatch(/import { FooComponent } from '.\/foo.component'/);
147
- // });
148
- // it('should export the component', async () => {
149
- // const options = { ...defaultOptions, export: true };
150
- //
151
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
152
- // const appModuleContent = tree.readContent('/projects/bar/src/app/app.module.ts');
153
- // expect(appModuleContent).toMatch(/exports: \[FooComponent\]/);
154
- // });
155
- // it('should set the entry component', async () => {
156
- // const options = { ...defaultOptions, entryComponent: true };
157
- //
158
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
159
- // const appModuleContent = tree.readContent('/projects/bar/src/app/app.module.ts');
160
- // expect(appModuleContent).toMatch(/entryComponents: \[FooComponent\]/);
161
- // });
162
- // it('should import into a specified module', async () => {
163
- // const options = { ...defaultOptions, module: 'app.module.ts' };
164
- //
165
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
166
- // const appModule = tree.readContent('/projects/bar/src/app/app.module.ts');
167
- //
168
- // expect(appModule).toMatch(/import { FooComponent } from '.\/foo\/foo.component'/);
169
- // });
170
- // it('should fail if specified module does not exist', async () => {
171
- // const options = { ...defaultOptions, module: '/projects/bar/src/app.moduleXXX.ts' };
172
- // let thrownError: Error | null = null;
173
- // try {
174
- // await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
175
- // } catch (err) {
176
- // thrownError = err;
177
- // }
178
- // expect(thrownError).toBeDefined();
179
- // });
180
- // it('should handle upper case paths', async () => {
181
- // const pathOption = 'projects/bar/src/app/SOME/UPPER/DIR';
182
- // const options = { ...defaultOptions, path: pathOption };
183
- //
184
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
185
- // let files = tree.files;
186
- // let root = `/${pathOption}/foo/foo.component`;
187
- // expect(files).toEqual(
188
- // jasmine.arrayContaining([`${root}.css`, `${root}.html`, `${root}.spec.ts`, `${root}.ts`])
189
- // );
190
- //
191
- // const options2 = { ...options, name: 'BAR' };
192
- // const tree2 = await schematicRunner.runSchematicAsync('component', options2, tree).toPromise();
193
- // files = tree2.files;
194
- // root = `/${pathOption}/bar/bar.component`;
195
- // expect(files).toEqual(
196
- // jasmine.arrayContaining([`${root}.css`, `${root}.html`, `${root}.spec.ts`, `${root}.ts`])
197
- // );
198
- // });
199
- // it('should create a component in a sub-directory', async () => {
200
- // const options = { ...defaultOptions, path: 'projects/bar/src/app/a/b/c' };
201
- //
202
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
203
- // const files = tree.files;
204
- // const root = `/${options.path}/foo/foo.component`;
205
- // expect(files).toEqual(
206
- // jasmine.arrayContaining([`${root}.css`, `${root}.html`, `${root}.spec.ts`, `${root}.ts`])
207
- // );
208
- // });
209
- // it('should use the prefix', async () => {
210
- // const options = { ...defaultOptions, prefix: 'pre' };
211
- //
212
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
213
- // const content = tree.readContent('/projects/bar/src/app/foo/foo.component.ts');
214
- // expect(content).toMatch(/selector: 'pre-foo'/);
215
- // });
216
- // it('should use the default project prefix if none is passed', async () => {
217
- // const options = { ...defaultOptions, prefix: undefined };
218
- //
219
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
220
- // const content = tree.readContent('/projects/bar/src/app/foo/foo.component.ts');
221
- // expect(content).toMatch(/selector: 'app-foo'/);
222
- // });
223
- // it('should use the supplied prefix if it is ""', async () => {
224
- // const options = { ...defaultOptions, prefix: '' };
225
- //
226
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
227
- // const content = tree.readContent('/projects/bar/src/app/foo/foo.component.ts');
228
- // expect(content).toMatch(/selector: 'foo'/);
229
- // });
230
- // it('should respect the inlineTemplate option', async () => {
231
- // const options = { ...defaultOptions, inlineTemplate: true };
232
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
233
- // const content = tree.readContent('/projects/bar/src/app/foo/foo.component.ts');
234
- // expect(content).toMatch(/template: /);
235
- // expect(content).not.toMatch(/templateUrl: /);
236
- // expect(tree.files).not.toContain('/projects/bar/src/app/foo/foo.component.html');
237
- // });
238
- //
239
- // it('should respect the inlineStyle option', async () => {
240
- // const options = { ...defaultOptions, inlineStyle: true };
241
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
242
- // const content = tree.readContent('/projects/bar/src/app/foo/foo.component.ts');
243
- // expect(content).toMatch(/styles: \[/);
244
- // expect(content).not.toMatch(/styleUrls: /);
245
- // expect(tree.files).not.toContain('/projects/bar/src/app/foo/foo.component.css');
246
- // });
247
- //
248
- // it('should respect the displayBlock option when inlineStyle is `false`', async () => {
249
- // const options = { ...defaultOptions, displayBlock: true };
250
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
251
- // const content = tree.readContent('/projects/bar/src/app/foo/foo.component.css');
252
- // expect(content).toMatch(/:host {\r?\n display: block;\r?\n}/);
253
- // });
254
- //
255
- // it('should respect the displayBlock option when inlineStyle is `false` and use correct syntax for `scss`', async () => {
256
- // const options = { ...defaultOptions, displayBlock: true, style: 'scss' };
257
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
258
- // const content = tree.readContent('/projects/bar/src/app/foo/foo.component.scss');
259
- // expect(content).toMatch(/:host {\r?\n display: block;\r?\n}/);
260
- // });
261
- //
262
- // it('should respect the displayBlock option when inlineStyle is `false` and use correct syntax for `sass', async () => {
263
- // const options = { ...defaultOptions, displayBlock: true, style: 'sass' };
264
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
265
- // const content = tree.readContent('/projects/bar/src/app/foo/foo.component.sass');
266
- // expect(content).toMatch(/\\:host\r?\n display: block;\r?\n/);
267
- // });
268
- //
269
- // it('should respect the displayBlock option when inlineStyle is `true`', async () => {
270
- // const options = { ...defaultOptions, displayBlock: true, inlineStyle: true };
271
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
272
- // const content = tree.readContent('/projects/bar/src/app/foo/foo.component.ts');
273
- // expect(content).toMatch(/:host {\r?\n(\s*)display: block;(\s*)}\r?\n/);
274
- // });
275
- // it('should respect the style option', async () => {
276
- // const options = { ...defaultOptions, style: Style.Sass };
277
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
278
- // const content = tree.readContent('/projects/bar/src/app/foo/foo.component.ts');
279
- // expect(content).toMatch(/styleUrls: \['.\/foo.component.sass/);
280
- // expect(tree.files).toContain('/projects/bar/src/app/foo/foo.component.sass');
281
- // expect(tree.files).not.toContain('/projects/bar/src/app/foo/foo.component.css');
282
- // });
283
- // it('should respect the type option', async () => {
284
- // const options = { ...defaultOptions, type: 'Route' };
285
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
286
- // const content = tree.readContent('/projects/bar/src/app/foo/foo.route.ts');
287
- // const testContent = tree.readContent('/projects/bar/src/app/foo/foo.route.spec.ts');
288
- // expect(content).toContain('export class FooRoute implements OnInit');
289
- // expect(testContent).toContain("describe('FooRoute'");
290
- // expect(tree.files).toContain('/projects/bar/src/app/foo/foo.route.css');
291
- // expect(tree.files).toContain('/projects/bar/src/app/foo/foo.route.html');
292
- // });
293
- // it('should allow empty string in the type option', async () => {
294
- // const options = { ...defaultOptions, type: '' };
295
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
296
- // const content = tree.readContent('/projects/bar/src/app/foo/foo.ts');
297
- // const testContent = tree.readContent('/projects/bar/src/app/foo/foo.spec.ts');
298
- // expect(content).toContain('export class Foo implements OnInit');
299
- // expect(testContent).toContain("describe('Foo'");
300
- // expect(tree.files).toContain('/projects/bar/src/app/foo/foo.css');
301
- // expect(tree.files).toContain('/projects/bar/src/app/foo/foo.html');
302
- // });
303
- // it('should use the module flag even if the module is a routing module', async () => {
304
- // const routingFileName = 'app-routing.module.ts';
305
- // const routingModulePath = `/projects/bar/src/app/${routingFileName}`;
306
- // const newTree = createAppModule(appTree, routingModulePath);
307
- // const options = { ...defaultOptions, module: routingFileName };
308
- // const tree = await schematicRunner.runSchematicAsync('component', options, newTree).toPromise();
309
- // const content = tree.readContent(routingModulePath);
310
- // expect(content).toMatch(/import { FooComponent } from '.\/foo\/foo.component/);
311
- // });
312
- // it('should handle a path in the name option', async () => {
313
- // const options = { ...defaultOptions, name: 'dir/test-component' };
314
- //
315
- // const tree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
316
- // const content = tree.readContent('/projects/bar/src/app/app.module.ts');
317
- // expect(content).toMatch(
318
- // /import { TestComponentComponent } from '\.\/dir\/test-component\/test-component.component'/
319
- // );
320
- // });
321
- // it('should handle a path in the name and module options', async () => {
322
- // appTree = await schematicRunner
323
- // .runSchematicAsync('module', { name: 'admin/module', project: 'bar' }, appTree)
324
- // .toPromise();
325
- //
326
- // const options = { ...defaultOptions, name: 'other/test-component', module: 'admin/module' };
327
- // appTree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
328
- //
329
- // const content = appTree.readContent('/projects/bar/src/app/admin/module/module.module.ts');
330
- // expect(content).toMatch(
331
- // /import { TestComponentComponent } from '..\/..\/other\/test-component\/test-component.component'/
332
- // );
333
- // });
334
- // it('should create the right selector with a path in the name', async () => {
335
- // const options = { ...defaultOptions, name: 'sub/test' };
336
- // appTree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
337
- // const content = appTree.readContent('/projects/bar/src/app/sub/test/test.component.ts');
338
- // expect(content).toMatch(/selector: 'app-test'/);
339
- // });
340
- // it('should respect the skipSelector option', async () => {
341
- // const options = { ...defaultOptions, name: 'sub/test', skipSelector: true };
342
- // appTree = await schematicRunner.runSchematicAsync('component', options, appTree).toPromise();
343
- // const content = appTree.readContent('/projects/bar/src/app/sub/test/test.component.ts');
344
- // expect(content).not.toMatch(/selector: 'app-test'/);
345
- // });
346
- // it('should respect the sourceRoot value', async () => {
347
- // const config = JSON.parse(appTree.readContent('/angular.json'));
348
- // config.projects.bar.sourceRoot = 'projects/bar/custom';
349
- // appTree.overwrite('/angular.json', JSON.stringify(config, null, 2));
350
- //
351
- // // should fail without a module in that dir
352
- // await expectAsync(
353
- // schematicRunner.runSchematicAsync('component', defaultOptions, appTree).toPromise(),
354
- // ).toBeRejected();
355
- //
356
- // // move the module
357
- // appTree.rename('/projects/bar/src/app/app.module.ts', '/projects/bar/custom/app/app.module.ts');
358
- // appTree = await schematicRunner
359
- // .runSchematicAsync('component', defaultOptions, appTree)
360
- // .toPromise();
361
- // expect(appTree.files).toContain('/projects/bar/custom/app/foo/foo.component.ts');
362
- // });
363
- });
364
- //# sourceMappingURL=index.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/activity/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;GAMG;AACH,iCAAiC;AACjC,gEAAuF;AACvF,wEAAwE;AACxE,qDAAqD;AACrD,oEAAoE;AACpE,iFAAiF;AAEjF,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,MAAM,eAAe,GAAG,IAAI,6BAAmB,CAC7C,6BAA6B,EAC7B,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CACtC,CAAC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AAqG;IACrG,oCAAoC;IACpC,+DAA+D;IAC/D,oBAAoB;IACpB,sFAAsF;IACtF,MAAM;AAER,CAAC,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- export interface Schema {
2
- project: string;
3
- name: string;
4
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/activity/schema.ts"],"names":[],"mappings":""}
@@ -1,27 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "AddActivitySchematic",
4
- "type": "object",
5
- "description": "Add a new activity component",
6
- "properties": {
7
- "project": {
8
- "type": "string",
9
- "description": "The name of the project.",
10
- "$default": {
11
- "$source": "projectName"
12
- }
13
- },
14
- "name": {
15
- "type": "string",
16
- "description": "The name of the activity component.",
17
- "$default": {
18
- "$source": "argv",
19
- "index": 0
20
- },
21
- "x-prompt": "What name would you like to use for the activity?"
22
- }
23
- },
24
- "required": [
25
- "name"
26
- ]
27
- }
@@ -1,5 +0,0 @@
1
- <aup-activity-title>{{i18n.title()}}</aup-activity-title>
2
- <aup-activity-body>
3
- <p><%=name%> works!</p>
4
- </aup-activity-body>
5
- <aup-activity-actions [confirmFace]="i18n.actions.confirm" [cancelFace]="i18n.actions.cancel"></aup-activity-actions>
@@ -1,4 +0,0 @@
1
- :host {
2
- display: flex;
3
- flex-direction: column;
4
- }
@@ -1,25 +0,0 @@
1
- import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { <%=capitalize(camelize(name))%>Component } from './<%=dasherize(name)%>.component';
4
-
5
- describe('<%=capitalize(camelize(name))%>Component', () => {
6
- let component: <%=capitalize(camelize(name))%>Component;
7
- let fixture: ComponentFixture<<%=capitalize(camelize(name))%>Component>;
8
-
9
- beforeEach(async(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [ <%=capitalize(camelize(name))%>Component ]
12
- })
13
- .compileComponents();
14
- }));
15
-
16
- beforeEach(() => {
17
- fixture = TestBed.createComponent(<%=capitalize(camelize(name))%>Component);
18
- component = fixture.componentInstance;
19
- fixture.detectChanges();
20
- });
21
-
22
- it('should create', () => {
23
- expect(component).toBeTruthy();
24
- });
25
- });
@@ -1,40 +0,0 @@
1
- import {Component, Inject, OnInit} from '@angular/core';
2
- import { Dsl, Command } from '@coolon/pectin';
3
- import {Activity} from "@coolon/angular-ui-powerups";
4
- import { I18n } from '<%=pathToRoot%>/i18n';
5
-
6
- @Component({
7
- selector: '<%=selectorPrefix%>-<%=dasherize(name)%>',
8
- templateUrl: './<%=dasherize(name)%>.component.html',
9
- styleUrls: ['./<%=dasherize(name)%>.component.scss'],
10
- })
11
- export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capitalize(camelize(name))%>Component.Data, void> implements OnInit {
12
-
13
- readonly i18n = <%=i18nNamespace%>;
14
-
15
- constructor() {
16
- super();
17
- const {chain} = Dsl.disposeWith(this);
18
-
19
- // Actity data is pre injected into...
20
- // this.activityData
21
-
22
- this.confirmCommand = Command.create(() => {
23
- this.done();
24
- });
25
- this.cancelCommand = Command.create(() => {
26
- this.cancel();
27
- });
28
-
29
- this.busyWhile(this.confirmCommand.busy);
30
- }
31
-
32
- ngOnInit() {
33
- }
34
-
35
- }
36
-
37
- export namespace <%=capitalize(camelize(name))%>Component {
38
- export interface Data {
39
- }
40
- }
@@ -1,9 +0,0 @@
1
- title: "<%=capitalize(camelize(name))%>"
2
-
3
- actions(CommandFace[]):
4
- confirm:
5
- text: "Save"
6
- color: "primary"
7
- style: "raised"
8
- cancel:
9
- text: "Cancel"
@@ -1,4 +0,0 @@
1
- import { Rule, Source } from '@angular-devkit/schematics';
2
- import { Schema } from './schema';
3
- export declare function run(_options: Schema): Rule;
4
- export declare function applyWithOverwrite(source: Source, rules: Rule[]): Rule;
@@ -1,86 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.applyWithOverwrite = exports.run = void 0;
4
- const core_1 = require("@angular-devkit/core");
5
- const schematics_1 = require("@angular-devkit/schematics");
6
- const package_util_1 = require("../package-util");
7
- const workspace_1 = require("../utils/workspace");
8
- // @see https://javascript-conference.com/blog/how-to-create-your-own-angular-schematics/
9
- function run(_options) {
10
- return (tree, _context) => {
11
- const workspace = workspace_1.Workspace.load(tree, _context);
12
- const buildContext = workspace.getProject(_options.project);
13
- const templateSource = applyWithOverwrite((0, schematics_1.url)('./templates'), [
14
- (0, schematics_1.applyTemplates)(Object.assign(Object.assign({}, _options), core_1.strings)),
15
- (0, schematics_1.move)(buildContext.sourceRoot),
16
- ]);
17
- // tslint:disable-next-line:no-shadowed-variable
18
- const updatePackageDependencies = (tree, _) => {
19
- return (0, package_util_1.updatePackageJson)(tree, (draft) => {
20
- draft.devDependencies = Object.assign(Object.assign({}, draft.devDependencies), { '@coolon/i18n-resource-generator': '^3.0.2' });
21
- });
22
- };
23
- const rules = [templateSource, updatePackageDependencies];
24
- return (0, schematics_1.chain)(rules)(tree, _context);
25
- };
26
- }
27
- exports.run = run;
28
- // See https://stackoverflow.com/a/53230034
29
- function applyWithOverwrite(source, rules) {
30
- return (tree, _context) => {
31
- const rule = (0, schematics_1.mergeWith)((0, schematics_1.apply)(source, [
32
- ...rules,
33
- (0, schematics_1.forEach)((fileEntry) => {
34
- if (tree.exists(fileEntry.path)) {
35
- tree.overwrite(fileEntry.path, fileEntry.content);
36
- return null;
37
- }
38
- return fileEntry;
39
- }),
40
- ]));
41
- return rule(tree, _context);
42
- };
43
- }
44
- exports.applyWithOverwrite = applyWithOverwrite;
45
- // function generateApp(name: string): Rule {
46
- // return externalSchematic('@nx/angular', 'application', {
47
- // name,
48
- // version: '9.0.0',
49
- // directory: name,
50
- // routing: true,
51
- // style: 'scss',
52
- // inlineStyle: false,
53
- // inlineTemplate: false
54
- // });
55
- // }
56
- // export function addFiles(_options: any): Rule {
57
- // const name = _options.name;
58
- //
59
- // return (tree: Tree, _context: SchematicContext) => {
60
- //
61
- // const templateSource = apply(url('./files'), [
62
- // template({ ..._options, ...strings })
63
- // ]);
64
- // const fileMerge = mergeWith(templateSource, MergeStrategy.Overwrite);
65
- //
66
- // const rule = chain([
67
- // fileMerge
68
- // ]);
69
- //
70
- // return rule(tree, _context) as Rule;
71
- // };
72
- // }
73
- // function addDependencies(options: Schema): Rule {
74
- // return (tree: Tree, _context: SchematicContext) => {
75
- // _context.addTask(new RunSchematicTask('add-dependencies', options));
76
- // return tree;
77
- // };
78
- // }
79
- //
80
- // function addRequiredFiles(options: Schema): Rule {
81
- // return (tree: Tree, _context: SchematicContext) => {
82
- // _context.addTask(new RunSchematicTask('add-files', options));
83
- // return tree;
84
- // };
85
- // }
86
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/aup-i18n/index.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAC7C,2DAYoC;AACpC,kDAAkD;AAClD,kDAA6C;AAG7C,yFAAyF;AAEzF,SAAgB,GAAG,CAAC,QAAgB;IAClC,OAAO,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;QAChD,MAAM,SAAS,GAAG,qBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACjD,MAAM,YAAY,GAAG,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE5D,MAAM,cAAc,GAAG,kBAAkB,CAAC,IAAA,gBAAG,EAAC,aAAa,CAAC,EAAE;YAC5D,IAAA,2BAAc,kCAAK,QAAQ,GAAK,cAAO,EAAE;YACzC,IAAA,iBAAI,EAAC,YAAY,CAAC,UAAU,CAAC;SAC9B,CAAC,CAAC;QAEH,gDAAgD;QAChD,MAAM,yBAAyB,GAAS,CACtC,IAAU,EACV,CAAmB,EACb,EAAE;YACR,OAAO,IAAA,gCAA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U;AACV,4EAA4E;AAC5E,EAAE;AACF,2BAA2B;AAC3B,kBAAkB;AAClB,UAAU;AACV,EAAE;AACF,2CAA2C;AAC3C,OAAO;AACP,IAAI;AAEJ,oDAAoD;AACpD,yDAAyD;AACzD,2EAA2E;AAC3E,mBAAmB;AACnB,OAAO;AACP,IAAI;AACJ,EAAE;AACF,qDAAqD;AACrD,yDAAyD;AACzD,oEAAoE;AACpE,mBAAmB;AACnB,OAAO;AACP,IAAI"}
@@ -1,3 +0,0 @@
1
- export interface Schema {
2
- project: string;
3
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/aup-i18n/schema.ts"],"names":[],"mappings":""}
@@ -1,18 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "AupI18nSchematic",
4
- "type": "object",
5
- "description": "Install Angular UI Powerup I18n defaults",
6
- "properties": {
7
- "project": {
8
- "type": "string",
9
- "description": "The name of the project.",
10
- "$default": {
11
- "$source": "projectName"
12
- }
13
- }
14
- },
15
- "required": [
16
- "project"
17
- ]
18
- }