@clr/angular 13.0.1 → 13.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (590) hide show
  1. package/README.md +0 -12
  2. package/button/button-group/button-group.d.ts +5 -3
  3. package/clarity.api.md +5553 -0
  4. package/data/datagrid/built-in/filters/datagrid-numeric-filter.d.ts +11 -3
  5. package/data/datagrid/built-in/filters/datagrid-string-filter.d.ts +9 -3
  6. package/data/datagrid/datagrid-column-toggle.d.ts +7 -3
  7. package/data/datagrid/datagrid-column.d.ts +10 -1
  8. package/data/datagrid/datagrid-footer.d.ts +3 -1
  9. package/data/datagrid/datagrid-row.d.ts +4 -1
  10. package/data/datagrid/render/main-renderer.d.ts +3 -2
  11. package/data/stack-view/stack-block.d.ts +12 -1
  12. package/data/stack-view/stack-control.d.ts +7 -2
  13. package/data/stack-view/stack-view-custom-tags.d.ts +13 -1
  14. package/data/stack-view/stack-view.module.d.ts +1 -1
  15. package/data/tree-view/tree-node.d.ts +3 -0
  16. package/esm2020/accordion/accordion-content.mjs +5 -5
  17. package/esm2020/accordion/accordion-description.mjs +5 -5
  18. package/esm2020/accordion/accordion-panel.mjs +6 -6
  19. package/esm2020/accordion/accordion-title.mjs +5 -5
  20. package/esm2020/accordion/accordion.mjs +5 -5
  21. package/esm2020/accordion/accordion.module.mjs +6 -6
  22. package/esm2020/accordion/chocolate/accordion-oompa-loompa.mjs +5 -5
  23. package/esm2020/accordion/chocolate/accordion-willy-wonka.mjs +5 -5
  24. package/esm2020/accordion/enums/accordion-status.enum.mjs +2 -2
  25. package/esm2020/accordion/enums/accordion-strategy.enum.mjs +2 -2
  26. package/esm2020/accordion/index.mjs +2 -2
  27. package/esm2020/accordion/models/accordion.model.mjs +2 -2
  28. package/esm2020/accordion/providers/accordion.service.mjs +5 -5
  29. package/esm2020/accordion/stepper/chocolate/stepper-oompa-loompa.mjs +5 -5
  30. package/esm2020/accordion/stepper/chocolate/stepper-willy-wonka.mjs +5 -5
  31. package/esm2020/accordion/stepper/index.mjs +2 -2
  32. package/esm2020/accordion/stepper/models/stepper.model.mjs +2 -2
  33. package/esm2020/accordion/stepper/providers/stepper.service.mjs +5 -5
  34. package/esm2020/accordion/stepper/step-button.mjs +5 -5
  35. package/esm2020/accordion/stepper/stepper-panel.mjs +6 -6
  36. package/esm2020/accordion/stepper/stepper.mjs +5 -5
  37. package/esm2020/accordion/stepper/stepper.module.mjs +6 -6
  38. package/esm2020/accordion/utils/animation.mjs +2 -2
  39. package/esm2020/button/button-group/button-group.mjs +20 -14
  40. package/esm2020/button/button-group/button-group.module.mjs +6 -6
  41. package/esm2020/button/button-group/button.mjs +5 -5
  42. package/esm2020/button/button-group/index.mjs +2 -2
  43. package/esm2020/button/button-loading/index.mjs +2 -2
  44. package/esm2020/button/button-loading/loading-button.mjs +3 -3
  45. package/esm2020/button/button-loading/loading-button.module.mjs +6 -6
  46. package/esm2020/button/button.module.mjs +6 -6
  47. package/esm2020/button/index.mjs +2 -2
  48. package/esm2020/button/providers/button-in-group.service.mjs +5 -5
  49. package/esm2020/clr-angular.module.mjs +6 -6
  50. package/esm2020/data/data.module.mjs +6 -6
  51. package/esm2020/data/datagrid/built-in/comparators/datagrid-property-comparator.mjs +6 -1
  52. package/esm2020/data/datagrid/built-in/filters/datagrid-numeric-filter-impl.mjs +2 -2
  53. package/esm2020/data/datagrid/built-in/filters/datagrid-numeric-filter.mjs +39 -18
  54. package/esm2020/data/datagrid/built-in/filters/datagrid-property-numeric-filter.mjs +6 -1
  55. package/esm2020/data/datagrid/built-in/filters/datagrid-property-string-filter.mjs +6 -1
  56. package/esm2020/data/datagrid/built-in/filters/datagrid-string-filter-impl.mjs +2 -2
  57. package/esm2020/data/datagrid/built-in/filters/datagrid-string-filter.mjs +29 -13
  58. package/esm2020/data/datagrid/built-in/nested-property.mjs +2 -2
  59. package/esm2020/data/datagrid/chocolate/actionable-oompa-loompa.mjs +5 -5
  60. package/esm2020/data/datagrid/chocolate/datagrid-willy-wonka.mjs +5 -5
  61. package/esm2020/data/datagrid/chocolate/expandable-oompa-loompa.mjs +5 -5
  62. package/esm2020/data/datagrid/datagrid-action-bar.mjs +5 -5
  63. package/esm2020/data/datagrid/datagrid-action-overflow.mjs +5 -5
  64. package/esm2020/data/datagrid/datagrid-cell.mjs +5 -5
  65. package/esm2020/data/datagrid/datagrid-column-separator.mjs +5 -5
  66. package/esm2020/data/datagrid/datagrid-column-toggle-button.mjs +5 -5
  67. package/esm2020/data/datagrid/datagrid-column-toggle-title.mjs +5 -5
  68. package/esm2020/data/datagrid/datagrid-column-toggle.mjs +39 -27
  69. package/esm2020/data/datagrid/datagrid-column.mjs +31 -6
  70. package/esm2020/data/datagrid/datagrid-detail-body.mjs +5 -5
  71. package/esm2020/data/datagrid/datagrid-detail-header.mjs +5 -5
  72. package/esm2020/data/datagrid/datagrid-detail-registerer.mjs +5 -5
  73. package/esm2020/data/datagrid/datagrid-detail.mjs +5 -5
  74. package/esm2020/data/datagrid/datagrid-filter.mjs +5 -5
  75. package/esm2020/data/datagrid/datagrid-footer.mjs +17 -13
  76. package/esm2020/data/datagrid/datagrid-hideable-column.mjs +5 -5
  77. package/esm2020/data/datagrid/datagrid-if-detail.mjs +5 -5
  78. package/esm2020/data/datagrid/datagrid-if-expanded.service.mjs +5 -5
  79. package/esm2020/data/datagrid/datagrid-items-trackby.mjs +5 -5
  80. package/esm2020/data/datagrid/datagrid-items.mjs +5 -5
  81. package/esm2020/data/datagrid/datagrid-page-size.mjs +5 -5
  82. package/esm2020/data/datagrid/datagrid-pagination.mjs +17 -5
  83. package/esm2020/data/datagrid/datagrid-placeholder.mjs +5 -5
  84. package/esm2020/data/datagrid/datagrid-row-detail.mjs +14 -9
  85. package/esm2020/data/datagrid/datagrid-row.mjs +16 -7
  86. package/esm2020/data/datagrid/datagrid.mjs +5 -5
  87. package/esm2020/data/datagrid/datagrid.module.mjs +6 -6
  88. package/esm2020/data/datagrid/enums/column-changes.enum.mjs +2 -2
  89. package/esm2020/data/datagrid/enums/display-mode.enum.mjs +2 -2
  90. package/esm2020/data/datagrid/enums/render-step.enum.mjs +2 -2
  91. package/esm2020/data/datagrid/enums/selection-type.mjs +2 -2
  92. package/esm2020/data/datagrid/enums/sort-order.enum.mjs +2 -2
  93. package/esm2020/data/datagrid/index.mjs +2 -2
  94. package/esm2020/data/datagrid/interfaces/column-state.interface.mjs +6 -1
  95. package/esm2020/data/datagrid/interfaces/comparator.interface.mjs +6 -1
  96. package/esm2020/data/datagrid/interfaces/filter.interface.mjs +6 -1
  97. package/esm2020/data/datagrid/interfaces/numeric-filter.interface.mjs +6 -1
  98. package/esm2020/data/datagrid/interfaces/state.interface.mjs +6 -1
  99. package/esm2020/data/datagrid/interfaces/string-filter.interface.mjs +6 -1
  100. package/esm2020/data/datagrid/providers/column-resizer.service.mjs +5 -5
  101. package/esm2020/data/datagrid/providers/column-state.provider.mjs +2 -2
  102. package/esm2020/data/datagrid/providers/columns.service.mjs +5 -5
  103. package/esm2020/data/datagrid/providers/custom-filter.mjs +2 -2
  104. package/esm2020/data/datagrid/providers/detail.service.mjs +5 -5
  105. package/esm2020/data/datagrid/providers/display-mode.service.mjs +5 -5
  106. package/esm2020/data/datagrid/providers/filters.mjs +5 -5
  107. package/esm2020/data/datagrid/providers/global-expandable-rows.mjs +5 -5
  108. package/esm2020/data/datagrid/providers/items.mjs +5 -5
  109. package/esm2020/data/datagrid/providers/page.mjs +5 -5
  110. package/esm2020/data/datagrid/providers/row-action-service.mjs +5 -5
  111. package/esm2020/data/datagrid/providers/selection.mjs +5 -5
  112. package/esm2020/data/datagrid/providers/sort.mjs +5 -5
  113. package/esm2020/data/datagrid/providers/state-debouncer.provider.mjs +5 -5
  114. package/esm2020/data/datagrid/providers/state.provider.mjs +5 -5
  115. package/esm2020/data/datagrid/providers/table-size.service.mjs +5 -5
  116. package/esm2020/data/datagrid/render/cell-renderer.mjs +5 -5
  117. package/esm2020/data/datagrid/render/constants.mjs +2 -2
  118. package/esm2020/data/datagrid/render/header-renderer.mjs +5 -5
  119. package/esm2020/data/datagrid/render/main-renderer.mjs +12 -9
  120. package/esm2020/data/datagrid/render/noop-dom-adapter.mjs +5 -5
  121. package/esm2020/data/datagrid/render/render-organizer.mjs +5 -5
  122. package/esm2020/data/datagrid/render/row-renderer.mjs +5 -5
  123. package/esm2020/data/datagrid/utils/datagrid-filter-registrar.mjs +5 -5
  124. package/esm2020/data/datagrid/wrapped-cell.mjs +5 -5
  125. package/esm2020/data/datagrid/wrapped-column.mjs +5 -5
  126. package/esm2020/data/datagrid/wrapped-row.mjs +5 -5
  127. package/esm2020/data/index.mjs +2 -2
  128. package/esm2020/data/stack-view/index.mjs +2 -2
  129. package/esm2020/data/stack-view/stack-block.mjs +40 -17
  130. package/esm2020/data/stack-view/stack-content-input.mjs +5 -5
  131. package/esm2020/data/stack-view/stack-control.mjs +14 -4
  132. package/esm2020/data/stack-view/stack-header.mjs +5 -5
  133. package/esm2020/data/stack-view/stack-input.mjs +5 -5
  134. package/esm2020/data/stack-view/stack-select.mjs +5 -5
  135. package/esm2020/data/stack-view/stack-view-custom-tags.mjs +50 -7
  136. package/esm2020/data/stack-view/stack-view.mjs +5 -5
  137. package/esm2020/data/stack-view/stack-view.module.mjs +10 -7
  138. package/esm2020/data/tree-view/index.mjs +2 -2
  139. package/esm2020/data/tree-view/models/async-array.mjs +2 -2
  140. package/esm2020/data/tree-view/models/declarative-tree-node.model.mjs +2 -2
  141. package/esm2020/data/tree-view/models/recursive-tree-node.model.mjs +2 -2
  142. package/esm2020/data/tree-view/models/selected-state.enum.mjs +2 -2
  143. package/esm2020/data/tree-view/models/tree-node.model.mjs +2 -2
  144. package/esm2020/data/tree-view/recursive-children.mjs +5 -5
  145. package/esm2020/data/tree-view/recursive-for-of.mjs +5 -5
  146. package/esm2020/data/tree-view/tree-features.service.mjs +5 -5
  147. package/esm2020/data/tree-view/tree-focus-manager.service.mjs +5 -5
  148. package/esm2020/data/tree-view/tree-node-link.mjs +5 -5
  149. package/esm2020/data/tree-view/tree-node.mjs +32 -14
  150. package/esm2020/data/tree-view/tree-view.module.mjs +6 -6
  151. package/esm2020/data/tree-view/tree.mjs +5 -5
  152. package/esm2020/emphasis/alert/alert-item.mjs +9 -7
  153. package/esm2020/emphasis/alert/alert-text.mjs +5 -5
  154. package/esm2020/emphasis/alert/alert.mjs +4 -4
  155. package/esm2020/emphasis/alert/alert.module.mjs +6 -6
  156. package/esm2020/emphasis/alert/alerts-pager.mjs +5 -5
  157. package/esm2020/emphasis/alert/alerts.mjs +5 -5
  158. package/esm2020/emphasis/alert/index.mjs +2 -2
  159. package/esm2020/emphasis/alert/providers/icon-and-types.service.mjs +5 -5
  160. package/esm2020/emphasis/alert/providers/multi-alert.service.mjs +4 -4
  161. package/esm2020/emphasis/alert/utils/alert-info-object.mjs +2 -2
  162. package/esm2020/emphasis/alert/utils/alert-types.mjs +2 -2
  163. package/esm2020/emphasis/emphasis.module.mjs +6 -6
  164. package/esm2020/emphasis/index.mjs +2 -2
  165. package/esm2020/forms/checkbox/checkbox-container.mjs +6 -6
  166. package/esm2020/forms/checkbox/checkbox-wrapper.mjs +6 -6
  167. package/esm2020/forms/checkbox/checkbox.mjs +6 -6
  168. package/esm2020/forms/checkbox/checkbox.module.mjs +7 -7
  169. package/esm2020/forms/checkbox/index.mjs +2 -2
  170. package/esm2020/forms/combobox/combobox-container.mjs +6 -6
  171. package/esm2020/forms/combobox/combobox.mjs +6 -9
  172. package/esm2020/forms/combobox/combobox.module.mjs +7 -7
  173. package/esm2020/forms/combobox/index.mjs +2 -2
  174. package/esm2020/forms/combobox/model/combobox.model.mjs +3 -3
  175. package/esm2020/forms/combobox/model/multi-select-combobox.model.mjs +3 -3
  176. package/esm2020/forms/combobox/model/pseudo-focus.model.mjs +3 -3
  177. package/esm2020/forms/combobox/model/single-select-combobox.model.mjs +3 -3
  178. package/esm2020/forms/combobox/option-items.directive.mjs +5 -5
  179. package/esm2020/forms/combobox/option-selected.directive.mjs +5 -5
  180. package/esm2020/forms/combobox/option.mjs +6 -6
  181. package/esm2020/forms/combobox/options.mjs +6 -6
  182. package/esm2020/forms/combobox/providers/combobox-container.service.mjs +5 -5
  183. package/esm2020/forms/combobox/providers/combobox-focus-handler.service.mjs +5 -5
  184. package/esm2020/forms/combobox/providers/option-selection.service.mjs +5 -5
  185. package/esm2020/forms/common/abstract-container.mjs +6 -6
  186. package/esm2020/forms/common/abstract-control.mjs +6 -6
  187. package/esm2020/forms/common/common.module.mjs +7 -7
  188. package/esm2020/forms/common/control-container.mjs +6 -6
  189. package/esm2020/forms/common/control.mjs +5 -5
  190. package/esm2020/forms/common/error.mjs +6 -6
  191. package/esm2020/forms/common/form.mjs +6 -6
  192. package/esm2020/forms/common/helper.mjs +6 -6
  193. package/esm2020/forms/common/if-control-state/abstract-if-state.mjs +5 -5
  194. package/esm2020/forms/common/if-control-state/if-control-state.service.mjs +5 -5
  195. package/esm2020/forms/common/if-control-state/if-error.mjs +5 -5
  196. package/esm2020/forms/common/if-control-state/if-success.mjs +5 -5
  197. package/esm2020/forms/common/index.mjs +2 -2
  198. package/esm2020/forms/common/label.mjs +5 -5
  199. package/esm2020/forms/common/layout.mjs +6 -6
  200. package/esm2020/forms/common/providers/container-id.service.mjs +9 -4
  201. package/esm2020/forms/common/providers/control-class.service.mjs +5 -5
  202. package/esm2020/forms/common/providers/control-id.service.mjs +5 -5
  203. package/esm2020/forms/common/providers/focus.service.mjs +5 -5
  204. package/esm2020/forms/common/providers/layout.service.mjs +5 -5
  205. package/esm2020/forms/common/providers/mark-control.service.mjs +5 -5
  206. package/esm2020/forms/common/providers/ng-control.service.mjs +5 -5
  207. package/esm2020/forms/common/success.mjs +6 -6
  208. package/esm2020/forms/common/wrapped-control.mjs +6 -6
  209. package/esm2020/forms/datalist/datalist-container.mjs +6 -6
  210. package/esm2020/forms/datalist/datalist-input.mjs +6 -6
  211. package/esm2020/forms/datalist/datalist.mjs +5 -5
  212. package/esm2020/forms/datalist/datalist.module.mjs +6 -6
  213. package/esm2020/forms/datalist/index.mjs +2 -2
  214. package/esm2020/forms/datalist/providers/datalist-id.service.mjs +5 -5
  215. package/esm2020/forms/datepicker/calendar.mjs +5 -5
  216. package/esm2020/forms/datepicker/date-container.mjs +55 -28
  217. package/esm2020/forms/datepicker/date-input.mjs +5 -5
  218. package/esm2020/forms/datepicker/datepicker-view-manager.mjs +16 -12
  219. package/esm2020/forms/datepicker/datepicker.module.mjs +6 -6
  220. package/esm2020/forms/datepicker/day.mjs +7 -5
  221. package/esm2020/forms/datepicker/daypicker.mjs +5 -5
  222. package/esm2020/forms/datepicker/index.mjs +2 -2
  223. package/esm2020/forms/datepicker/interfaces/date-range.interface.mjs +2 -2
  224. package/esm2020/forms/datepicker/interfaces/day-of-week.interface.mjs +2 -2
  225. package/esm2020/forms/datepicker/model/calendar-view.model.mjs +2 -2
  226. package/esm2020/forms/datepicker/model/calendar.model.mjs +2 -2
  227. package/esm2020/forms/datepicker/model/day-view.model.mjs +2 -2
  228. package/esm2020/forms/datepicker/model/day.model.mjs +2 -2
  229. package/esm2020/forms/datepicker/model/year-range.model.mjs +2 -2
  230. package/esm2020/forms/datepicker/monthpicker.mjs +5 -5
  231. package/esm2020/forms/datepicker/providers/date-form-control.service.mjs +5 -5
  232. package/esm2020/forms/datepicker/providers/date-io.service.mjs +5 -5
  233. package/esm2020/forms/datepicker/providers/date-navigation.service.mjs +5 -5
  234. package/esm2020/forms/datepicker/providers/datepicker-enabled.service.mjs +5 -5
  235. package/esm2020/forms/datepicker/providers/datepicker-focus.service.mjs +5 -5
  236. package/esm2020/forms/datepicker/providers/locale-helper.service.mjs +5 -5
  237. package/esm2020/forms/datepicker/providers/view-manager.service.mjs +5 -5
  238. package/esm2020/forms/datepicker/utils/constants.mjs +2 -2
  239. package/esm2020/forms/datepicker/utils/date-utils.mjs +2 -2
  240. package/esm2020/forms/datepicker/yearpicker.mjs +5 -5
  241. package/esm2020/forms/forms.module.mjs +6 -6
  242. package/esm2020/forms/index.mjs +2 -2
  243. package/esm2020/forms/input/index.mjs +2 -2
  244. package/esm2020/forms/input/input-container.mjs +6 -6
  245. package/esm2020/forms/input/input.mjs +6 -6
  246. package/esm2020/forms/input/input.module.mjs +7 -7
  247. package/esm2020/forms/password/index.mjs +2 -2
  248. package/esm2020/forms/password/password-container.mjs +12 -6
  249. package/esm2020/forms/password/password.mjs +6 -6
  250. package/esm2020/forms/password/password.module.mjs +7 -7
  251. package/esm2020/forms/radio/index.mjs +2 -2
  252. package/esm2020/forms/radio/radio-container.mjs +6 -6
  253. package/esm2020/forms/radio/radio-wrapper.mjs +6 -6
  254. package/esm2020/forms/radio/radio.mjs +6 -6
  255. package/esm2020/forms/radio/radio.module.mjs +7 -7
  256. package/esm2020/forms/range/index.mjs +2 -2
  257. package/esm2020/forms/range/range-container.mjs +6 -6
  258. package/esm2020/forms/range/range.mjs +6 -6
  259. package/esm2020/forms/range/range.module.mjs +7 -7
  260. package/esm2020/forms/select/index.mjs +2 -2
  261. package/esm2020/forms/select/select-container.mjs +6 -6
  262. package/esm2020/forms/select/select.mjs +6 -6
  263. package/esm2020/forms/select/select.module.mjs +7 -7
  264. package/esm2020/forms/textarea/index.mjs +2 -2
  265. package/esm2020/forms/textarea/textarea-container.mjs +6 -6
  266. package/esm2020/forms/textarea/textarea.mjs +6 -6
  267. package/esm2020/forms/textarea/textarea.module.mjs +7 -7
  268. package/esm2020/icon/icon.mjs +8 -8
  269. package/esm2020/icon/icon.module.mjs +6 -6
  270. package/esm2020/icon/index.mjs +2 -2
  271. package/esm2020/index.mjs +2 -2
  272. package/esm2020/layout/index.mjs +2 -2
  273. package/esm2020/layout/layout.module.mjs +6 -6
  274. package/esm2020/layout/main-container/index.mjs +2 -2
  275. package/esm2020/layout/main-container/main-container.mjs +5 -5
  276. package/esm2020/layout/main-container/main-container.module.mjs +6 -6
  277. package/esm2020/layout/nav/chocolate/index.mjs +2 -2
  278. package/esm2020/layout/nav/chocolate/main-container-willy-wonka.mjs +5 -5
  279. package/esm2020/layout/nav/chocolate/nav-detection-oompa-loompa.mjs +5 -5
  280. package/esm2020/layout/nav/header.mjs +55 -24
  281. package/esm2020/layout/nav/index.mjs +2 -2
  282. package/esm2020/layout/nav/nav-level.mjs +111 -9
  283. package/esm2020/layout/nav/navigation.module.mjs +6 -6
  284. package/esm2020/layout/nav/providers/responsive-navigation.service.mjs +5 -5
  285. package/esm2020/layout/nav/responsive-nav-codes.mjs +2 -2
  286. package/esm2020/layout/nav/responsive-nav-control-message.mjs +2 -2
  287. package/esm2020/layout/tabs/chocolate/active-oompa-loompa.mjs +5 -5
  288. package/esm2020/layout/tabs/chocolate/tabs-willy-wonka.mjs +5 -5
  289. package/esm2020/layout/tabs/enums/tabs-layout.enum.mjs +2 -2
  290. package/esm2020/layout/tabs/index.mjs +2 -2
  291. package/esm2020/layout/tabs/providers/tabs.service.mjs +5 -5
  292. package/esm2020/layout/tabs/tab-content.mjs +5 -7
  293. package/esm2020/layout/tabs/tab-link.directive.mjs +5 -6
  294. package/esm2020/layout/tabs/tab-overflow-content.mjs +5 -5
  295. package/esm2020/layout/tabs/tab.mjs +5 -5
  296. package/esm2020/layout/tabs/tabs-id.provider.mjs +2 -2
  297. package/esm2020/layout/tabs/tabs.mjs +5 -5
  298. package/esm2020/layout/tabs/tabs.module.mjs +6 -6
  299. package/esm2020/layout/vertical-nav/index.mjs +2 -2
  300. package/esm2020/layout/vertical-nav/providers/vertical-nav-group-registration.service.mjs +5 -5
  301. package/esm2020/layout/vertical-nav/providers/vertical-nav-group.service.mjs +5 -5
  302. package/esm2020/layout/vertical-nav/providers/vertical-nav-icon.service.mjs +5 -5
  303. package/esm2020/layout/vertical-nav/providers/vertical-nav.service.mjs +5 -5
  304. package/esm2020/layout/vertical-nav/vertical-nav-group-children.mjs +5 -5
  305. package/esm2020/layout/vertical-nav/vertical-nav-group.mjs +10 -6
  306. package/esm2020/layout/vertical-nav/vertical-nav-icon.mjs +5 -5
  307. package/esm2020/layout/vertical-nav/vertical-nav-link.mjs +27 -17
  308. package/esm2020/layout/vertical-nav/vertical-nav.mjs +5 -5
  309. package/esm2020/layout/vertical-nav/vertical-nav.module.mjs +6 -6
  310. package/esm2020/modal/index.mjs +2 -2
  311. package/esm2020/modal/modal-body.mjs +8 -5
  312. package/esm2020/modal/modal.mjs +11 -7
  313. package/esm2020/modal/modal.module.mjs +6 -6
  314. package/esm2020/popover/common/abstract-popover.mjs +18 -9
  315. package/esm2020/popover/common/popover-host-anchor.token.mjs +2 -2
  316. package/esm2020/popover/common/popover-options.interface.mjs +2 -2
  317. package/esm2020/popover/common/popover.mjs +2 -2
  318. package/esm2020/popover/dropdown/dropdown-item.mjs +5 -5
  319. package/esm2020/popover/dropdown/dropdown-menu.mjs +5 -5
  320. package/esm2020/popover/dropdown/dropdown-trigger.mjs +5 -5
  321. package/esm2020/popover/dropdown/dropdown.mjs +5 -5
  322. package/esm2020/popover/dropdown/dropdown.module.mjs +6 -6
  323. package/esm2020/popover/dropdown/index.mjs +2 -2
  324. package/esm2020/popover/dropdown/menu-positions.mjs +2 -2
  325. package/esm2020/popover/dropdown/providers/dropdown-focus-handler.service.mjs +9 -7
  326. package/esm2020/popover/dropdown/providers/dropdown.service.mjs +5 -5
  327. package/esm2020/popover/index.mjs +2 -2
  328. package/esm2020/popover/popover.module.mjs +6 -6
  329. package/esm2020/popover/signpost/index.mjs +2 -2
  330. package/esm2020/popover/signpost/providers/signpost-focus-manager.service.mjs +5 -5
  331. package/esm2020/popover/signpost/providers/signpost-id.service.mjs +5 -6
  332. package/esm2020/popover/signpost/signpost-content.mjs +6 -5
  333. package/esm2020/popover/signpost/signpost-positions.mjs +2 -2
  334. package/esm2020/popover/signpost/signpost-trigger.mjs +5 -5
  335. package/esm2020/popover/signpost/signpost.mjs +5 -5
  336. package/esm2020/popover/signpost/signpost.module.mjs +6 -6
  337. package/esm2020/popover/tooltip/index.mjs +2 -2
  338. package/esm2020/popover/tooltip/providers/tooltip-id.service.mjs +5 -5
  339. package/esm2020/popover/tooltip/tooltip-content.mjs +5 -5
  340. package/esm2020/popover/tooltip/tooltip-trigger.mjs +5 -5
  341. package/esm2020/popover/tooltip/tooltip.mjs +5 -5
  342. package/esm2020/popover/tooltip/tooltip.module.mjs +6 -6
  343. package/esm2020/progress/progress-bars/index.mjs +2 -2
  344. package/esm2020/progress/progress-bars/progress-bar.mjs +5 -5
  345. package/esm2020/progress/progress-bars/progress-bar.module.mjs +6 -6
  346. package/esm2020/progress/spinner/index.mjs +2 -2
  347. package/esm2020/progress/spinner/spinner.mjs +5 -5
  348. package/esm2020/progress/spinner/spinner.module.mjs +6 -6
  349. package/esm2020/public-api.mjs +2 -2
  350. package/esm2020/timeline/enums/timeline-layout.enum.mjs +2 -2
  351. package/esm2020/timeline/enums/timeline-step-state.enum.mjs +2 -2
  352. package/esm2020/timeline/index.mjs +2 -2
  353. package/esm2020/timeline/interface/icon-attribute.interface.mjs +2 -2
  354. package/esm2020/timeline/providers/timeline-icon-attribute.service.mjs +5 -5
  355. package/esm2020/timeline/timeline-step-description.mjs +5 -5
  356. package/esm2020/timeline/timeline-step-header.mjs +5 -5
  357. package/esm2020/timeline/timeline-step-title.mjs +5 -5
  358. package/esm2020/timeline/timeline-step.mjs +7 -19
  359. package/esm2020/timeline/timeline.mjs +5 -5
  360. package/esm2020/timeline/timeline.module.mjs +6 -6
  361. package/esm2020/utils/a11y/aria-live.service.mjs +5 -5
  362. package/esm2020/utils/a11y/index.mjs +2 -2
  363. package/esm2020/utils/animations/collapse/collapse.mjs +2 -2
  364. package/esm2020/utils/animations/collapse/index.mjs +2 -2
  365. package/esm2020/utils/animations/constants.mjs +2 -2
  366. package/esm2020/utils/animations/expandable-animation/expandable-animation.mjs +5 -5
  367. package/esm2020/utils/animations/expandable-animation/expandable-animation.module.mjs +6 -6
  368. package/esm2020/utils/animations/expandable-animation/index.mjs +6 -1
  369. package/esm2020/utils/animations/fade/fade.mjs +2 -2
  370. package/esm2020/utils/animations/fade/index.mjs +2 -2
  371. package/esm2020/utils/animations/fade-slide/fade-slide.mjs +2 -2
  372. package/esm2020/utils/animations/fade-slide/index.mjs +2 -2
  373. package/esm2020/utils/animations/index.mjs +2 -2
  374. package/esm2020/utils/animations/slide/index.mjs +2 -2
  375. package/esm2020/utils/animations/slide/slide.mjs +2 -2
  376. package/esm2020/utils/aria/aria.service.mjs +5 -5
  377. package/esm2020/utils/breakpoints/breakpoints.mjs +16 -2
  378. package/esm2020/utils/chocolate/oompa-loompa.mjs +5 -5
  379. package/esm2020/utils/chocolate/willy-wonka.mjs +5 -5
  380. package/esm2020/utils/component/is-boolean-attribute-set.mjs +2 -2
  381. package/esm2020/utils/conditional/conditional.module.mjs +6 -6
  382. package/esm2020/utils/conditional/if-active.directive.mjs +5 -5
  383. package/esm2020/utils/conditional/if-active.service.mjs +5 -5
  384. package/esm2020/utils/conditional/if-expanded.directive.mjs +5 -5
  385. package/esm2020/utils/conditional/if-expanded.service.mjs +5 -5
  386. package/esm2020/utils/conditional/if-open.directive.mjs +5 -5
  387. package/esm2020/utils/conditional/index.mjs +2 -2
  388. package/esm2020/utils/destroy/destroy.service.mjs +44 -0
  389. package/esm2020/utils/destroy/index.mjs +7 -0
  390. package/esm2020/utils/dom-adapter/dom-adapter.mjs +5 -5
  391. package/esm2020/utils/drag-and-drop/drag-and-drop.module.mjs +6 -6
  392. package/esm2020/utils/drag-and-drop/drag-event.mjs +6 -1
  393. package/esm2020/utils/drag-and-drop/drag-handle.mjs +5 -5
  394. package/esm2020/utils/drag-and-drop/draggable/draggable.mjs +5 -5
  395. package/esm2020/utils/drag-and-drop/draggable-ghost.mjs +5 -5
  396. package/esm2020/utils/drag-and-drop/droppable/droppable.mjs +5 -5
  397. package/esm2020/utils/drag-and-drop/if-dragged.mjs +5 -5
  398. package/esm2020/utils/drag-and-drop/index.mjs +2 -2
  399. package/esm2020/utils/drag-and-drop/interfaces/drag-event.interface.mjs +2 -2
  400. package/esm2020/utils/drag-and-drop/interfaces/drop-tolerance.interface.mjs +6 -1
  401. package/esm2020/utils/drag-and-drop/providers/drag-and-drop-event-bus.service.mjs +5 -5
  402. package/esm2020/utils/drag-and-drop/providers/drag-event-listener.service.mjs +12 -12
  403. package/esm2020/utils/drag-and-drop/providers/drag-handle-registrar.service.mjs +5 -5
  404. package/esm2020/utils/drag-and-drop/providers/draggable-snapshot.service.mjs +5 -5
  405. package/esm2020/utils/drag-and-drop/providers/global-drag-mode.service.mjs +5 -5
  406. package/esm2020/utils/enums/key-codes.enum.mjs +3 -2
  407. package/esm2020/utils/focus/arrow-key-direction.enum.mjs +2 -2
  408. package/esm2020/utils/focus/focus-on-view-init/focus-on-view-init.mjs +23 -18
  409. package/esm2020/utils/focus/focus-on-view-init/focus-on-view-init.module.mjs +6 -6
  410. package/esm2020/utils/focus/focus-on-view-init/focus-on-view-init.provider.mjs +2 -2
  411. package/esm2020/utils/focus/focus-on-view-init/index.mjs +2 -2
  412. package/esm2020/utils/focus/focus.service.mjs +5 -5
  413. package/esm2020/utils/focus/focusable-item/basic-focusable-item.service.mjs +5 -5
  414. package/esm2020/utils/focus/focusable-item/custom-focusable-item-provider.mjs +2 -2
  415. package/esm2020/utils/focus/focusable-item/focusable-item.mjs +2 -2
  416. package/esm2020/utils/focus/focusable-item/linkers.mjs +2 -2
  417. package/esm2020/utils/focus/key-focus/enums/focus-direction.enum.mjs +2 -2
  418. package/esm2020/utils/focus/key-focus/interfaces.mjs +2 -2
  419. package/esm2020/utils/focus/key-focus/key-focus-item.mjs +5 -5
  420. package/esm2020/utils/focus/key-focus/key-focus.mjs +5 -5
  421. package/esm2020/utils/focus/key-focus/key-focus.module.mjs +6 -6
  422. package/esm2020/utils/focus/key-focus/roving-tabindex.mjs +5 -5
  423. package/esm2020/utils/focus/key-focus/util.mjs +2 -2
  424. package/esm2020/utils/focus/wrap-observable.mjs +2 -2
  425. package/esm2020/utils/focus-trap/focus-trap-config.interface.mjs +2 -2
  426. package/esm2020/utils/focus-trap/focus-trap-tracker.service.mjs +5 -5
  427. package/esm2020/utils/focus-trap/focus-trap.directive.mjs +5 -5
  428. package/esm2020/utils/focus-trap/focus-trap.mjs +141 -0
  429. package/esm2020/utils/focus-trap/focus-trap.module.mjs +6 -6
  430. package/esm2020/utils/focus-trap/index.mjs +2 -2
  431. package/esm2020/utils/forms/validation.mjs +2 -2
  432. package/esm2020/utils/host-wrapping/dynamic-wrapper.mjs +3 -3
  433. package/esm2020/utils/host-wrapping/empty-anchor.mjs +6 -6
  434. package/esm2020/utils/host-wrapping/host-wrapper.mjs +3 -3
  435. package/esm2020/utils/host-wrapping/host-wrapping.module.mjs +7 -7
  436. package/esm2020/utils/i18n/common-strings.default.mjs +23 -5
  437. package/esm2020/utils/i18n/common-strings.interface.mjs +6 -1
  438. package/esm2020/utils/i18n/common-strings.service.mjs +5 -5
  439. package/esm2020/utils/i18n/index.mjs +2 -2
  440. package/esm2020/utils/id-generator/id-generator.service.mjs +2 -2
  441. package/esm2020/utils/index.mjs +3 -2
  442. package/esm2020/utils/key-codes/key-codes.mjs +2 -2
  443. package/esm2020/utils/loading/index.mjs +2 -2
  444. package/esm2020/utils/loading/loading-listener.mjs +2 -2
  445. package/esm2020/utils/loading/loading.mjs +5 -5
  446. package/esm2020/utils/loading/loading.module.mjs +6 -6
  447. package/esm2020/utils/outside-click/index.mjs +6 -1
  448. package/esm2020/utils/outside-click/outside-click.mjs +5 -5
  449. package/esm2020/utils/outside-click/outside-click.module.mjs +6 -6
  450. package/esm2020/utils/popover/enums/alignment.enum.mjs +2 -3
  451. package/esm2020/utils/popover/enums/axis.enum.mjs +2 -3
  452. package/esm2020/utils/popover/enums/positions.enum.mjs +2 -3
  453. package/esm2020/utils/popover/enums/side.enum.mjs +2 -3
  454. package/esm2020/utils/popover/enums/viewport-violation.enum.mjs +2 -3
  455. package/esm2020/utils/popover/index.mjs +2 -3
  456. package/esm2020/utils/popover/interfaces/popover-content-offset.interface.mjs +2 -3
  457. package/esm2020/utils/popover/interfaces/popover-position.interface.mjs +2 -3
  458. package/esm2020/utils/popover/interfaces/visibility-coords.interface.mjs +2 -3
  459. package/esm2020/utils/popover/popover-anchor.mjs +5 -6
  460. package/esm2020/utils/popover/popover-close-button.mjs +5 -6
  461. package/esm2020/utils/popover/popover-content.mjs +18 -13
  462. package/esm2020/utils/popover/popover-open-close-button.mjs +5 -6
  463. package/esm2020/utils/popover/popover.module.mjs +6 -7
  464. package/esm2020/utils/popover/position-operators.mjs +2 -3
  465. package/esm2020/utils/popover/providers/popover-events.service.mjs +5 -6
  466. package/esm2020/utils/popover/providers/popover-position.service.mjs +12 -7
  467. package/esm2020/utils/popover/providers/popover-toggle.service.mjs +5 -6
  468. package/esm2020/utils/scrolling/scrolling-service.mjs +5 -5
  469. package/esm2020/utils/template-ref/index.mjs +6 -1
  470. package/esm2020/utils/template-ref/template-ref-container.mjs +5 -5
  471. package/esm2020/utils/template-ref/template-ref.module.mjs +6 -6
  472. package/esm2020/wizard/index.mjs +2 -2
  473. package/esm2020/wizard/providers/button-hub.service.mjs +5 -5
  474. package/esm2020/wizard/providers/header-actions.service.mjs +5 -5
  475. package/esm2020/wizard/providers/page-collection.service.mjs +5 -5
  476. package/esm2020/wizard/providers/wizard-navigation.service.mjs +5 -5
  477. package/esm2020/wizard/wizard-button.mjs +5 -5
  478. package/esm2020/wizard/wizard-custom-tags.mjs +5 -5
  479. package/esm2020/wizard/wizard-header-action.mjs +5 -5
  480. package/esm2020/wizard/wizard-page-buttons.mjs +5 -5
  481. package/esm2020/wizard/wizard-page-header-actions.mjs +5 -5
  482. package/esm2020/wizard/wizard-page-navtitle.mjs +5 -5
  483. package/esm2020/wizard/wizard-page-title.mjs +5 -5
  484. package/esm2020/wizard/wizard-page.mjs +5 -5
  485. package/esm2020/wizard/wizard-stepnav-item.mjs +3 -3
  486. package/esm2020/wizard/wizard-stepnav.mjs +5 -5
  487. package/esm2020/wizard/wizard.mjs +35 -12
  488. package/esm2020/wizard/wizard.module.mjs +6 -6
  489. package/fesm2015/clr-angular.mjs +3225 -2560
  490. package/fesm2015/clr-angular.mjs.map +1 -1
  491. package/fesm2020/clr-angular.mjs +3240 -2541
  492. package/fesm2020/clr-angular.mjs.map +1 -1
  493. package/forms/checkbox/checkbox-container.d.ts +0 -5
  494. package/forms/checkbox/checkbox-wrapper.d.ts +0 -5
  495. package/forms/checkbox/checkbox.d.ts +0 -5
  496. package/forms/combobox/combobox-container.d.ts +0 -5
  497. package/forms/combobox/combobox.d.ts +0 -1
  498. package/forms/combobox/model/combobox.model.d.ts +0 -5
  499. package/forms/combobox/model/multi-select-combobox.model.d.ts +0 -5
  500. package/forms/combobox/model/pseudo-focus.model.d.ts +0 -5
  501. package/forms/combobox/model/single-select-combobox.model.d.ts +0 -5
  502. package/forms/combobox/option.d.ts +0 -5
  503. package/forms/combobox/options.d.ts +0 -5
  504. package/forms/common/abstract-container.d.ts +0 -5
  505. package/forms/common/form.d.ts +0 -5
  506. package/forms/common/layout.d.ts +0 -5
  507. package/forms/common/wrapped-control.d.ts +0 -5
  508. package/forms/datalist/datalist-input.d.ts +0 -5
  509. package/forms/datepicker/date-container.d.ts +12 -3
  510. package/forms/datepicker/datepicker-view-manager.d.ts +3 -1
  511. package/forms/input/input.d.ts +0 -5
  512. package/forms/password/password-container.d.ts +0 -5
  513. package/forms/password/password.d.ts +0 -5
  514. package/forms/radio/radio-container.d.ts +0 -5
  515. package/forms/radio/radio-wrapper.d.ts +0 -5
  516. package/forms/radio/radio.d.ts +0 -5
  517. package/forms/range/range-container.d.ts +0 -5
  518. package/forms/range/range.d.ts +0 -5
  519. package/forms/select/select.d.ts +0 -5
  520. package/forms/textarea/textarea.d.ts +0 -5
  521. package/layout/nav/header.d.ts +8 -0
  522. package/layout/nav/nav-level.d.ts +16 -4
  523. package/layout/vertical-nav/vertical-nav-group.d.ts +2 -1
  524. package/layout/vertical-nav/vertical-nav-link.d.ts +6 -5
  525. package/modal/modal-body.d.ts +1 -0
  526. package/modal/modal.d.ts +2 -1
  527. package/package.json +7 -17
  528. package/popover/common/abstract-popover.d.ts +3 -1
  529. package/popover/dropdown/providers/dropdown-focus-handler.service.d.ts +2 -2
  530. package/utils/breakpoints/breakpoints.d.ts +14 -0
  531. package/utils/destroy/destroy.service.d.ts +32 -0
  532. package/utils/destroy/index.d.ts +1 -0
  533. package/utils/enums/key-codes.enum.d.ts +1 -0
  534. package/utils/focus/focus-on-view-init/focus-on-view-init.d.ts +5 -4
  535. package/utils/focus-trap/focus-trap.d.ts +29 -0
  536. package/utils/host-wrapping/dynamic-wrapper.d.ts +0 -5
  537. package/utils/host-wrapping/host-wrapper.d.ts +0 -5
  538. package/utils/i18n/common-strings.interface.d.ts +33 -0
  539. package/utils/index.d.ts +1 -0
  540. package/utils/popover/popover-content.d.ts +2 -1
  541. package/wizard/wizard.d.ts +2 -1
  542. package/schematics/add/index.js +0 -123
  543. package/schematics/add/index.js.map +0 -1
  544. package/schematics/add/index.spec.js +0 -114
  545. package/schematics/add/index.spec.js.map +0 -1
  546. package/schematics/add/schema.json +0 -18
  547. package/schematics/collection.json +0 -10
  548. package/schematics/migration-collection.json +0 -25
  549. package/schematics/update/update-0.13.0.js +0 -147
  550. package/schematics/update/update-0.13.0.js.map +0 -1
  551. package/schematics/update/update-13.0.0.js +0 -37
  552. package/schematics/update/update-13.0.0.js.map +0 -1
  553. package/schematics/update/update-13.0.0.spec.js +0 -71
  554. package/schematics/update/update-13.0.0.spec.js.map +0 -1
  555. package/schematics/update/update-3.0.0.js +0 -89
  556. package/schematics/update/update-3.0.0.js.map +0 -1
  557. package/schematics/update/update-5.0.0.js +0 -37
  558. package/schematics/update/update-5.0.0.js.map +0 -1
  559. package/schematics/update/update-5.0.0.spec.js +0 -71
  560. package/schematics/update/update-5.0.0.spec.js.map +0 -1
  561. package/schematics/utility/add-assets-to-config-file.js +0 -25
  562. package/schematics/utility/add-assets-to-config-file.js.map +0 -1
  563. package/schematics/utility/add-module-import-to-module.js +0 -36
  564. package/schematics/utility/add-module-import-to-module.js.map +0 -1
  565. package/schematics/utility/angular-config-filename.js +0 -10
  566. package/schematics/utility/angular-config-filename.js.map +0 -1
  567. package/schematics/utility/compare-versions.js +0 -30
  568. package/schematics/utility/compare-versions.js.map +0 -1
  569. package/schematics/utility/config.js +0 -32
  570. package/schematics/utility/config.js.map +0 -1
  571. package/schematics/utility/find-app-module.js +0 -17
  572. package/schematics/utility/find-app-module.js.map +0 -1
  573. package/schematics/utility/get-file-content.js +0 -12
  574. package/schematics/utility/get-file-content.js.map +0 -1
  575. package/schematics/utility/get-index-html-path.js +0 -14
  576. package/schematics/utility/get-index-html-path.js.map +0 -1
  577. package/schematics/utility/get-json-file.js +0 -25
  578. package/schematics/utility/get-json-file.js.map +0 -1
  579. package/schematics/utility/get-main-path.js +0 -14
  580. package/schematics/utility/get-main-path.js.map +0 -1
  581. package/schematics/utility/get-typescript-source-file.js +0 -26
  582. package/schematics/utility/get-typescript-source-file.js.map +0 -1
  583. package/schematics/utility/ng-add-options.js +0 -8
  584. package/schematics/utility/ng-add-options.js.map +0 -1
  585. package/schematics/utility/run-npm-install.js +0 -14
  586. package/schematics/utility/run-npm-install.js.map +0 -1
  587. package/schematics/utility/setup-project.js +0 -37
  588. package/schematics/utility/setup-project.js.map +0 -1
  589. package/schematics/utility/update-json-file.js +0 -17
  590. package/schematics/utility/update-json-file.js.map +0 -1
@@ -1,37 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
4
- * This software is released under MIT license.
5
- * The full license information can be found in LICENSE in the root directory of this project.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- const tasks_1 = require("@angular-devkit/schematics/tasks");
9
- const update_json_file_1 = require("../utility/update-json-file");
10
- const clarityCorePackageName = '@cds/core';
11
- const clarityAngularPackageName = '@clr/angular';
12
- const clarityCorePackageUpdateVersion = '^5.7.0';
13
- function default_1() {
14
- return (host, context) => {
15
- (0, update_json_file_1.updateJsonFile)(host, 'package.json', json => {
16
- // Do nothing if @cds/core is already a dependency
17
- const deps = (json === null || json === void 0 ? void 0 : json.dependencies) || {};
18
- if (Object.keys(deps).includes(clarityCorePackageName)) {
19
- return;
20
- }
21
- if (!json.dependencies) {
22
- json.dependencies = {};
23
- }
24
- const clarityAngularVersion = json.dependencies[clarityAngularPackageName];
25
- // Do nothing if @clr/angular is not a dependency
26
- if (!clarityAngularVersion) {
27
- return;
28
- }
29
- // Add the same version of @cds/core as
30
- // the version of @clr/angular that's in the package.json
31
- json.dependencies[clarityCorePackageName] = clarityCorePackageUpdateVersion;
32
- });
33
- context.addTask(new tasks_1.NodePackageInstallTask());
34
- };
35
- }
36
- exports.default = default_1;
37
- //# sourceMappingURL=update-13.0.0.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-13.0.0.js","sourceRoot":"","sources":["../../../../projects/schematics/src/update/update-13.0.0.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAGH,4DAA0E;AAC1E,kEAA6D;AAE7D,MAAM,sBAAsB,GAAG,WAAW,CAAC;AAC3C,MAAM,yBAAyB,GAAG,cAAc,CAAC;AACjD,MAAM,+BAA+B,GAAG,QAAQ,CAAC;AAEjD;IACE,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAQ,EAAE;QACrD,IAAA,iCAAc,EAAC,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE;YAC1C,kDAAkD;YAClD,MAAM,IAAI,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,KAAI,EAAE,CAAC;YACtC,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE;gBACtD,OAAO;aACR;YAED,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;gBACtB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;aACxB;YACD,MAAM,qBAAqB,GAAG,IAAI,CAAC,YAAY,CAAC,yBAAyB,CAAC,CAAC;YAC3E,iDAAiD;YACjD,IAAI,CAAC,qBAAqB,EAAE;gBAC1B,OAAO;aACR;YACD,uCAAuC;YACvC,yDAAyD;YACzD,IAAI,CAAC,YAAY,CAAC,sBAAsB,CAAC,GAAG,+BAA+B,CAAC;QAC9E,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;IAChD,CAAC,CAAC;AACJ,CAAC;AAxBD,4BAwBC"}
@@ -1,71 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
4
- * This software is released under MIT license.
5
- * The full license information can be found in LICENSE in the root directory of this project.
6
- */
7
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
8
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9
- return new (P || (P = Promise))(function (resolve, reject) {
10
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
11
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
12
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
13
- step((generator = generator.apply(thisArg, _arguments || [])).next());
14
- });
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- const testing_1 = require("@angular-devkit/schematics/testing");
18
- const schematics_1 = require("@angular-devkit/schematics");
19
- const setup_project_1 = require("../utility/setup-project");
20
- const get_file_content_1 = require("../utility/get-file-content");
21
- const clarityCorePackageName = '@cds/core';
22
- describe('Migration to version 13.0', () => {
23
- let runner;
24
- let workspaceTree;
25
- beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
26
- runner = new testing_1.SchematicTestRunner('migrations', require.resolve('../migration-collection.json'));
27
- workspaceTree = yield (0, setup_project_1.setupProject)(new testing_1.UnitTestTree(new schematics_1.HostTree()), runner, 'foo');
28
- }));
29
- it('should add the @cds/core package to the project dependencies', () => __awaiter(void 0, void 0, void 0, function* () {
30
- var _a;
31
- const packageJsonPath = '/package.json';
32
- const packageJsonString = (_a = workspaceTree.read(packageJsonPath)) === null || _a === void 0 ? void 0 : _a.toString();
33
- if (packageJsonString === undefined) {
34
- fail('Could not read package.json');
35
- }
36
- const packageJson = JSON.parse(packageJsonString);
37
- packageJson.dependencies['@clr/angular'] = '13.0.0';
38
- workspaceTree.overwrite(packageJsonPath, JSON.stringify(packageJson));
39
- const tree = yield runner.runSchematicAsync('migration-13.0', {}, workspaceTree).toPromise();
40
- expect(tree.files).toContain(packageJsonPath);
41
- const { dependencies } = JSON.parse((0, get_file_content_1.getFileContent)(tree, packageJsonPath));
42
- expect(dependencies).toBeDefined();
43
- expect(dependencies[clarityCorePackageName]).toEqual('^5.7.0');
44
- }));
45
- it('should not modify the project dependencies if @clr/angular is not a dependency', () => __awaiter(void 0, void 0, void 0, function* () {
46
- const tree = yield runner.runSchematicAsync('migration-13.0', {}, workspaceTree).toPromise();
47
- const packageJsonPath = '/package.json';
48
- expect(tree.files).toContain(packageJsonPath);
49
- const { dependencies } = JSON.parse((0, get_file_content_1.getFileContent)(tree, packageJsonPath));
50
- expect(dependencies).toBeDefined();
51
- expect(dependencies[clarityCorePackageName]).not.toBeDefined();
52
- }));
53
- it('should not modify the project dependencies if @cds/core is already a dependency', () => __awaiter(void 0, void 0, void 0, function* () {
54
- var _b;
55
- const packageJsonPath = '/package.json';
56
- const predefinedClarityCoreVersion = 'latest';
57
- const packageJsonString = (_b = workspaceTree.read(packageJsonPath)) === null || _b === void 0 ? void 0 : _b.toString();
58
- if (packageJsonString === undefined) {
59
- fail('Could not read package.json');
60
- }
61
- const packageJson = JSON.parse(packageJsonString);
62
- packageJson.dependencies[clarityCorePackageName] = predefinedClarityCoreVersion;
63
- workspaceTree.overwrite(packageJsonPath, JSON.stringify(packageJson));
64
- const tree = yield runner.runSchematicAsync('migration-13.0', {}, workspaceTree).toPromise();
65
- expect(tree.files).toContain(packageJsonPath);
66
- const { dependencies } = JSON.parse((0, get_file_content_1.getFileContent)(tree, packageJsonPath));
67
- expect(dependencies).toBeDefined();
68
- expect(dependencies[clarityCorePackageName]).toEqual(predefinedClarityCoreVersion);
69
- }));
70
- });
71
- //# sourceMappingURL=update-13.0.0.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-13.0.0.spec.js","sourceRoot":"","sources":["../../../../projects/schematics/src/update/update-13.0.0.spec.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;AAEH,gEAAuF;AACvF,2DAAsD;AACtD,4DAAwD;AACxD,kEAA6D;AAE7D,MAAM,sBAAsB,GAAG,WAAW,CAAC;AAE3C,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,IAAI,MAA2B,CAAC;IAChC,IAAI,aAA2B,CAAC;IAEhC,UAAU,CAAC,GAAS,EAAE;QACpB,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,OAAO,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC,CAAC;QAChG,aAAa,GAAG,MAAM,IAAA,4BAAY,EAAC,IAAI,sBAAY,CAAC,IAAI,qBAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACtF,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,8DAA8D,EAAE,GAAS,EAAE;;QAC5E,MAAM,eAAe,GAAG,eAAe,CAAC;QACxC,MAAM,iBAAiB,GAAG,MAAA,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,0CAAE,QAAQ,EAAE,CAAC;QAC1E,IAAI,iBAAiB,KAAK,SAAS,EAAE;YACnC,IAAI,CAAC,6BAA6B,CAAC,CAAC;SACrC;QACD,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAkB,CAAC,CAAC;QACnD,WAAW,CAAC,YAAY,CAAC,cAAc,CAAC,GAAG,QAAQ,CAAC;QACpD,aAAa,CAAC,SAAS,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;QAEtE,MAAM,IAAI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,0CAAE,QAAQ,EAAE,CAAC;QAC1E,IAAI,iBAAiB,KAAK,SAAS,EAAE;YACnC,IAAI,CAAC,6BAA6B,CAAC,CAAC;SACrC;QACD,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAkB,CAAC,CAAC;QACnD,WAAW,CAAC,YAAY,CAAC,sBAAsB,CAAC,GAAG,4BAA4B,CAAC;QAChF,aAAa,CAAC,SAAS,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;QAEtE,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,gBAAgB,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC,SAAS,EAAE,CAAC;QAC7F,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QAC9C,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,iCAAc,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC;QAE3E,MAAM,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,CAAC;QACnC,MAAM,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC;IACrF,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,89 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
4
- * This software is released under MIT license.
5
- * The full license information can be found in LICENSE in the root directory of this project.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- const schematics_1 = require("@angular-devkit/schematics");
9
- const tasks_1 = require("@angular-devkit/schematics/tasks");
10
- const fs = require("fs");
11
- // Read a file
12
- function readJsonFile(path) {
13
- return JSON.parse(fs.readFileSync(path, 'utf-8'));
14
- }
15
- // Writes changes to a JSON file
16
- function updateJsonFile(path, callback) {
17
- const json = readJsonFile(path);
18
- callback(json);
19
- fs.writeFileSync(path, JSON.stringify(json, null, 2));
20
- }
21
- function default_1(options) {
22
- return (host, context) => {
23
- const configFile = 'angular.json';
24
- if (!fs.existsSync(configFile)) {
25
- console.error('Could not install Clarity, requires Angular and Angular CLI version 6 or greater');
26
- return;
27
- }
28
- const config = readJsonFile(configFile);
29
- if (!options.project) {
30
- if (!config.defaultProject) {
31
- console.error('Could not find a default project, please specify --project PROJECT_NAME');
32
- return;
33
- }
34
- options.project = config.defaultProject;
35
- }
36
- // Add Clarity packages to package.json, if not found
37
- updateJsonFile('package.json', json => {
38
- const packages = Object.keys(json.dependencies);
39
- if (!packages.includes('@webcomponents/webcomponentsjs')) {
40
- json.dependencies['@webcomponents/webcomponentsjs'] = '^2.0.0';
41
- }
42
- if (packages.includes('@webcomponents/custom-elements')) {
43
- delete json.dependencies['@webcomponents/custom-elements'];
44
- }
45
- });
46
- // Add Clarity assets to .angular.json, if not found
47
- updateJsonFile(configFile, json => {
48
- const projects = Object.keys(json.projects);
49
- const project = projects.find(key => {
50
- if (key === options.project) {
51
- return true;
52
- }
53
- return false;
54
- });
55
- if (!project) {
56
- console.info(`Could not update CLI config file to add scripts and styles. You'll have to add them manually.`);
57
- return;
58
- }
59
- const target = json.projects[project].targets ? json.projects[project].targets : json.projects[project].architect;
60
- const scripts = target.build.options.scripts;
61
- const scriptsSearch = scripts.join('|');
62
- const pathPrefix = json.apps ? '../' : '';
63
- if (scriptsSearch.search('node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js') < 0) {
64
- // Want this second
65
- scripts.unshift(pathPrefix + 'node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js');
66
- }
67
- if (scriptsSearch.search('node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js') < 0) {
68
- // Want this first
69
- scripts.unshift(pathPrefix + 'node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js');
70
- }
71
- // Remove old polyfill
72
- const old = scripts.findIndex((file) => file === pathPrefix + 'node_modules/@webcomponents/custom-elements/custom-elements.min.js');
73
- if (old > -1) {
74
- scripts.splice(old, 1);
75
- }
76
- });
77
- // Chain a series of tasks to setup Clarity
78
- // 1. Add ClarityModule to NgModule
79
- // 2. Add BrowserAnimationsModule to NgModule
80
- // 3. Run npm install
81
- return (0, schematics_1.chain)([
82
- (_tree, context) => {
83
- context.addTask(new tasks_1.NodePackageInstallTask());
84
- },
85
- ])(host, context);
86
- };
87
- }
88
- exports.default = default_1;
89
- //# sourceMappingURL=update-3.0.0.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-3.0.0.js","sourceRoot":"","sources":["../../../../projects/schematics/src/update/update-3.0.0.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAEH,2DAAiF;AACjF,4DAA0E;AAC1E,yBAAyB;AAEzB,cAAc;AACd,SAAS,YAAY,CAAC,IAAY;IAChC,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,gCAAgC;AAChC,SAAS,cAAc,CAAC,IAAY,EAAE,QAAyB;IAC7D,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAChC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACf,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACxD,CAAC;AAED,mBAAyB,OAAY;IACnC,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,MAAM,UAAU,GAAG,cAAc,CAAC;QAElC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;YAC9B,OAAO,CAAC,KAAK,CAAC,kFAAkF,CAAC,CAAC;YAClG,OAAO;SACR;QAED,MAAM,MAAM,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;QAExC,IAAI,CAA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All Rights Reserved.
4
- * This software is released under MIT license.
5
- * The full license information can be found in LICENSE in the root directory of this project.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- const tasks_1 = require("@angular-devkit/schematics/tasks");
9
- const update_json_file_1 = require("../utility/update-json-file");
10
- const clarityCorePackageName = '@cds/core';
11
- const clarityAngularPackageName = '@clr/angular';
12
- const clarityCorePackageUpdateVersion = '^5.0.0';
13
- function default_1() {
14
- return (host, context) => {
15
- (0, update_json_file_1.updateJsonFile)(host, 'package.json', json => {
16
- // Do nothing if @cds/core is already a dependency
17
- const deps = (json === null || json === void 0 ? void 0 : json.dependencies) || {};
18
- if (Object.keys(deps).includes(clarityCorePackageName)) {
19
- return;
20
- }
21
- if (!json.dependencies) {
22
- json.dependencies = {};
23
- }
24
- const clarityAngularVersion = json.dependencies[clarityAngularPackageName];
25
- // Do nothing if @clr/angular is not a dependency
26
- if (!clarityAngularVersion) {
27
- return;
28
- }
29
- // Add the same version of @cds/core as
30
- // the version of @clr/angular that's in the package.json
31
- json.dependencies[clarityCorePackageName] = clarityCorePackageUpdateVersion;
32
- });
33
- context.addTask(new tasks_1.NodePackageInstallTask());
34
- };
35
- }
36
- exports.default = default_1;
37
- //# sourceMappingURL=update-5.0.0.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-5.0.0.js","sourceRoot":"","sources":["../../../../projects/schematics/src/update/update-5.0.0.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAGH,4DAA0E;AAC1E,kEAA6D;AAE7D,MAAM,sBAAsB,GAAG,WAAW,CAAC;AAC3C,MAAM,yBAAyB,GAAG,cAAc,CAAC;AACjD,MAAM,+BAA+B,GAAG,QAAQ,CAAC;AAEjD;IACE,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAQ,EAAE;QACrD,IAAA,iCAAc,EAAC,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE;YAC1C,kDAAkD;YAClD,MAAM,IAAI,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,KAAI,EAAE,CAAC;YACtC,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE;gBACtD,OAAO;aACR;YAED,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;gBACtB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;aACxB;YACD,MAAM,qBAAqB,GAAG,IAAI,CAAC,YAAY,CAAC,yBAAyB,CAAC,CAAC;YAC3E,iDAAiD;YACjD,IAAI,CAAC,qBAAqB,EAAE;gBAC1B,OAAO;aACR;YACD,uCAAuC;YACvC,yDAAyD;YACzD,IAAI,CAAC,YAAY,CAAC,sBAAsB,CAAC,GAAG,+BAA+B,CAAC;QAC9E,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;IAChD,CAAC,CAAC;AACJ,CAAC;AAxBD,4BAwBC"}
@@ -1,71 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
4
- * This software is released under MIT license.
5
- * The full license information can be found in LICENSE in the root directory of this project.
6
- */
7
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
8
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9
- return new (P || (P = Promise))(function (resolve, reject) {
10
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
11
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
12
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
13
- step((generator = generator.apply(thisArg, _arguments || [])).next());
14
- });
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- const testing_1 = require("@angular-devkit/schematics/testing");
18
- const schematics_1 = require("@angular-devkit/schematics");
19
- const setup_project_1 = require("../utility/setup-project");
20
- const get_file_content_1 = require("../utility/get-file-content");
21
- const clarityCorePackageName = '@cds/core';
22
- describe('Migration to version 5.0', () => {
23
- let runner;
24
- let workspaceTree;
25
- beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
26
- runner = new testing_1.SchematicTestRunner('migrations', require.resolve('../migration-collection.json'));
27
- workspaceTree = yield (0, setup_project_1.setupProject)(new testing_1.UnitTestTree(new schematics_1.HostTree()), runner, 'foo');
28
- }));
29
- it('should add the @cds/core package to the project dependencies', () => __awaiter(void 0, void 0, void 0, function* () {
30
- var _a;
31
- const packageJsonPath = '/package.json';
32
- const packageJsonString = (_a = workspaceTree.read(packageJsonPath)) === null || _a === void 0 ? void 0 : _a.toString();
33
- if (packageJsonString === undefined) {
34
- fail('Could not read package.json');
35
- }
36
- const packageJson = JSON.parse(packageJsonString);
37
- packageJson.dependencies['@clr/angular'] = '4.0.0';
38
- workspaceTree.overwrite(packageJsonPath, JSON.stringify(packageJson));
39
- const tree = yield runner.runSchematicAsync('migration-5.0', {}, workspaceTree).toPromise();
40
- expect(tree.files).toContain(packageJsonPath);
41
- const { dependencies } = JSON.parse((0, get_file_content_1.getFileContent)(tree, packageJsonPath));
42
- expect(dependencies).toBeDefined();
43
- expect(dependencies[clarityCorePackageName]).toEqual('^5.0.0');
44
- }));
45
- it('should not modify the project dependencies if @clr/angular is not a dependency', () => __awaiter(void 0, void 0, void 0, function* () {
46
- const tree = yield runner.runSchematicAsync('migration-5.0', {}, workspaceTree).toPromise();
47
- const packageJsonPath = '/package.json';
48
- expect(tree.files).toContain(packageJsonPath);
49
- const { dependencies } = JSON.parse((0, get_file_content_1.getFileContent)(tree, packageJsonPath));
50
- expect(dependencies).toBeDefined();
51
- expect(dependencies[clarityCorePackageName]).not.toBeDefined();
52
- }));
53
- it('should not modify the project dependencies if @cds/core is already a dependency', () => __awaiter(void 0, void 0, void 0, function* () {
54
- var _b;
55
- const packageJsonPath = '/package.json';
56
- const predefinedClarityCoreVersion = 'latest';
57
- const packageJsonString = (_b = workspaceTree.read(packageJsonPath)) === null || _b === void 0 ? void 0 : _b.toString();
58
- if (packageJsonString === undefined) {
59
- fail('Could not read package.json');
60
- }
61
- const packageJson = JSON.parse(packageJsonString);
62
- packageJson.dependencies[clarityCorePackageName] = predefinedClarityCoreVersion;
63
- workspaceTree.overwrite(packageJsonPath, JSON.stringify(packageJson));
64
- const tree = yield runner.runSchematicAsync('migration-5.0', {}, workspaceTree).toPromise();
65
- expect(tree.files).toContain(packageJsonPath);
66
- const { dependencies } = JSON.parse((0, get_file_content_1.getFileContent)(tree, packageJsonPath));
67
- expect(dependencies).toBeDefined();
68
- expect(dependencies[clarityCorePackageName]).toEqual(predefinedClarityCoreVersion);
69
- }));
70
- });
71
- //# sourceMappingURL=update-5.0.0.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-5.0.0.spec.js","sourceRoot":"","sources":["../../../../projects/schematics/src/update/update-5.0.0.spec.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;AAEH,gEAAuF;AACvF,2DAAsD;AACtD,4DAAwD;AACxD,kEAA6D;AAE7D,MAAM,sBAAsB,GAAG,WAAW,CAAC;AAE3C,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,IAAI,MAA2B,CAAC;IAChC,IAAI,aAA2B,CAAC;IAEhC,UAAU,CAAC,GAAS,EAAE;QACpB,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,OAAO,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC,CAAC;QAChG,aAAa,GAAG,MAAM,IAAA,4BAAY,EAAC,IAAI,sBAAY,CAAC,IAAI,qBAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACtF,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,8DAA8D,EAAE,GAAS,EAAE;;QAC5E,MAAM,eAAe,GAAG,eAAe,CAAC;QACxC,MAAM,iBAAiB,GAAG,MAAA,aAAa,CAAC,IAAI,CAAC,eAAe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*
3
- * Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
4
- * This software is released under MIT license.
5
- * The full license information can be found in LICENSE in the root directory of this project.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.updateStyleAssets = void 0;
9
- function stripExtension(fileName) {
10
- const extensionStartIndex = fileName.indexOf('.');
11
- return extensionStartIndex ? fileName.substring(0, extensionStartIndex) : fileName;
12
- }
13
- function updateStyleAssets(target, pathPrefix, assets) {
14
- const styles = target.build.options.styles || [];
15
- const stylesSearch = styles.join('|');
16
- assets.forEach(asset => {
17
- const assetWithoutExtension = stripExtension(asset);
18
- if (stylesSearch.search(assetWithoutExtension) === -1) {
19
- styles.unshift(pathPrefix + asset);
20
- }
21
- });
22
- target.build.options.styles = styles;
23
- }
24
- exports.updateStyleAssets = updateStyleAssets;
25
- //# sourceMappingURL=add-assets-to-config-file.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-assets-to-config-file.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/add-assets-to-config-file.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,SAAS,cAAc,CAAC,QAAgB;IACtC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAElD,OAAO,mBAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;AACrF,CAAC;AAED,SAAgB,iBAAiB,CAAC,MAAW,EAAE,UAAkB,EAAE,MAAqB;IACtF,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC;IACjD,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEtC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACrB,MAAM,qBAAqB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;QACpD,IAAI,YAAY,CAAC,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,EAAE;YACrD,MAAM,CAAC,OAAO,CAAC,UAAU,GAAG,KAAK,CAAC,CAAC;SACpC;IACH,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;AACvC,CAAC;AAZD,8CAYC"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
4
- * This software is released under MIT license.
5
- * The full license information can be found in LICENSE in the root directory of this project.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.addModuleImportToModule = void 0;
9
- const schematics_1 = require("@angular-devkit/schematics");
10
- const change_1 = require("@schematics/angular/utility/change");
11
- const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
12
- const get_typescript_source_file_1 = require("./get-typescript-source-file");
13
- /**
14
- * Import and add module to specific module path.
15
- * @param host {Tree} The source tree.
16
- * @param importedModuleName {String} The name of the imported module.
17
- * @param importedModulePath {String} The location of the imported module.
18
- * @param moduleToImportIn {String} The location of the module to import in.
19
- */
20
- function addModuleImportToModule(host, importedModuleName, importedModulePath, moduleToImportIn) {
21
- if (!moduleToImportIn) {
22
- throw new schematics_1.SchematicsException(`Entry module not found.`);
23
- }
24
- const moduleSource = (0, get_typescript_source_file_1.getTypeScriptSourceFile)(host, moduleToImportIn);
25
- if (!moduleSource) {
26
- throw new schematics_1.SchematicsException(`Module not found: ${moduleToImportIn}`);
27
- }
28
- const changes = (0, ast_utils_1.addImportToModule)(moduleSource, moduleToImportIn, importedModuleName, importedModulePath);
29
- const recorder = host.beginUpdate(moduleToImportIn);
30
- changes
31
- .filter((change) => change instanceof change_1.InsertChange)
32
- .forEach((change) => recorder.insertLeft(change.pos, change.toAdd));
33
- host.commitUpdate(recorder);
34
- }
35
- exports.addModuleImportToModule = addModuleImportToModule;
36
- //# sourceMappingURL=add-module-import-to-module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-module-import-to-module.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/add-module-import-to-module.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,2DAAuE;AACvE,+DAA0E;AAC1E,qEAA0E;AAC1E,6EAAuE;AAEvE;;;;;;GAMG;AACH,SAAgB,uBAAuB,CACrC,IAAU,EACV,kBAA0B,EAC1B,kBAA0B,EAC1B,gBAAwB;IAExB,IAAI,CAAC,gBAAgB,EAAE;QACrB,MAAM,IAAI,gCAAmB,CAAC,yBAAyB,CAAC,CAAC;KAC1D;IAED,MAAM,YAAY,GAAG,IAAA,oDAAuB,EAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;IACrE,IAAI,CAAC,YAAY,EAAE;QACjB,MAAM,IAAI,gCAAmB,CAAC,qBAAqB,gBAAgB,EAAE,CAAC,CAAC;KACxE;IAED,MAAM,OAAO,GAAG,IAAA,6BAAiB,EAAC,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;IAC1G,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAEpD,OAAO;SACJ,MAAM,CAAC,CAAC,MAAc,EAAE,EAAE,CAAC,MAAM,YAAY,qBAAY,CAAC;SAC1D,OAAO,CAAC,CAAC,MAAoB,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpF,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC;AAvBD,0DAuBC"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
4
- * This software is released under MIT license.
5
- * The full license information can be found in LICENSE in the root directory of this project.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.configFileName = void 0;
9
- exports.configFileName = 'angular.json';
10
- //# sourceMappingURL=angular-config-filename.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"angular-config-filename.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/angular-config-filename.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEU,QAAA,cAAc,GAAG,cAAc,CAAC"}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
4
- * This software is released under MIT license.
5
- * The full license information can be found in LICENSE in the root directory of this project.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.compareVersions = void 0;
9
- function removeNonDigitOrDots(text) {
10
- return text.replace(/[^\d.]/g, '');
11
- }
12
- function compareVersions(first, second) {
13
- first = removeNonDigitOrDots(first);
14
- second = removeNonDigitOrDots(second);
15
- const firstDigits = first.split('.');
16
- const secondDigits = second.split('.');
17
- for (let i = 0; i < 3; i += 1) {
18
- const firstDigit = Number(firstDigits[i]);
19
- const secondDigit = Number(secondDigits[i]);
20
- if (firstDigit > secondDigit) {
21
- return 1;
22
- }
23
- else if (secondDigit > firstDigit) {
24
- return -1;
25
- }
26
- }
27
- return 0;
28
- }
29
- exports.compareVersions = compareVersions;
30
- //# sourceMappingURL=compare-versions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compare-versions.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/compare-versions.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,SAAS,oBAAoB,CAAC,IAAY;IACxC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AACrC,CAAC;AAED,SAAgB,eAAe,CAAC,KAAa,EAAE,MAAc;IAC3D,KAAK,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;IACpC,MAAM,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAEtC,MAAM,WAAW,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACrC,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEvC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;QAC7B,MAAM,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1C,MAAM,WAAW,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5C,IAAI,UAAU,GAAG,WAAW,EAAE;YAC5B,OAAO,CAAC,CAAC;SACV;aAAM,IAAI,WAAW,GAAG,UAAU,EAAE;YACnC,OAAO,CAAC,CAAC,CAAC;SACX;KACF;IAED,OAAO,CAAC,CAAC;AACX,CAAC;AAlBD,0CAkBC"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAppFromConfig = exports.getConfig = exports.configPath = void 0;
4
- /**
5
- * @license
6
- * Copyright Google Inc. All Rights Reserved.
7
- *
8
- * Use of this source code is governed by an MIT-style license that can be
9
- * found in the LICENSE file at https://angular.io/license
10
- */
11
- const schematics_1 = require("@angular-devkit/schematics");
12
- exports.configPath = '/.angular-cli.json';
13
- function getConfig(host) {
14
- const configBuffer = host.read(exports.configPath);
15
- if (configBuffer === null) {
16
- throw new schematics_1.SchematicsException('Could not find .angular-cli.json');
17
- }
18
- const config = JSON.parse(configBuffer.toString());
19
- return config;
20
- }
21
- exports.getConfig = getConfig;
22
- function getAppFromConfig(config, appIndexOrName) {
23
- if (!config.apps) {
24
- return null;
25
- }
26
- if (parseInt(appIndexOrName) >= 0) {
27
- return config.apps[parseInt(appIndexOrName)];
28
- }
29
- return config.apps.filter(app => app.name === appIndexOrName)[0];
30
- }
31
- exports.getAppFromConfig = getAppFromConfig;
32
- //# sourceMappingURL=config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/config.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACH,2DAAuE;AAub1D,QAAA,UAAU,GAAG,oBAAoB,CAAC;AAE/C,SAAgB,SAAS,CAAC,IAAU;IAClC,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,kBAAU,CAAC,CAAC;IAC3C,IAAI,YAAY,KAAK,IAAI,EAAE;QACzB,MAAM,IAAI,gCAAmB,CAAC,kCAAkC,CAAC,CAAC;KACnE;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC;IAEnD,OAAO,MAAM,CAAC;AAChB,CAAC;AATD,8BASC;AAED,SAAgB,gBAAgB,CAAC,MAAiB,EAAE,cAAsB;IACxE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACb;IAED,IAAI,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;QACjC,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;KAC9C;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AACnE,CAAC;AAVD,4CAUC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
4
- * This software is released under MIT license.
5
- * The full license information can be found in LICENSE in the root directory of this project.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.findAppModule = void 0;
9
- const ng_ast_utils_1 = require("@schematics/angular/utility/ng-ast-utils");
10
- const get_main_path_1 = require("./get-main-path");
11
- function findAppModule(host, config, projectName) {
12
- const mainPath = (0, get_main_path_1.getMainPath)(config, projectName);
13
- const appModulePath = (0, ng_ast_utils_1.getAppModulePath)(host, mainPath);
14
- return appModulePath;
15
- }
16
- exports.findAppModule = findAppModule;
17
- //# sourceMappingURL=find-app-module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-app-module.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/find-app-module.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,2EAA4E;AAC5E,mDAA8C;AAE9C,SAAgB,aAAa,CAAC,IAAU,EAAE,MAAW,EAAE,WAAmB;IACxE,MAAM,QAAQ,GAAG,IAAA,2BAAW,EAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAClD,MAAM,aAAa,GAAG,IAAA,+BAAgB,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAEvD,OAAO,aAAa,CAAC;AACvB,CAAC;AALD,sCAKC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getFileContent = void 0;
4
- function getFileContent(tree, path) {
5
- const fileEntry = tree.get(path);
6
- if (!fileEntry) {
7
- throw new Error(`The file (${path}) does not exist.`);
8
- }
9
- return fileEntry.content.toString();
10
- }
11
- exports.getFileContent = getFileContent;
12
- //# sourceMappingURL=get-file-content.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-file-content.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/get-file-content.ts"],"names":[],"mappings":";;;AASA,SAAgB,cAAc,CAAC,IAAU,EAAE,IAAY;IACrD,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAEjC,IAAI,CAAC,SAAS,EAAE;QACd,MAAM,IAAI,KAAK,CAAC,aAAa,IAAI,mBAAmB,CAAC,CAAC;KACvD;IAED,OAAO,SAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;AACtC,CAAC;AARD,wCAQC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
4
- * This software is released under MIT license.
5
- * The full license information can be found in LICENSE in the root directory of this project.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.getIndexHtmlPath = void 0;
9
- function getIndexHtmlPath(config, projectName) {
10
- const project = config.projects[projectName];
11
- return project.architect.build.options.index;
12
- }
13
- exports.getIndexHtmlPath = getIndexHtmlPath;
14
- //# sourceMappingURL=get-index-html-path.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-index-html-path.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/get-index-html-path.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,SAAgB,gBAAgB,CAAC,MAAW,EAAE,WAAmB;IAC/D,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC7C,OAAO,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;AAC/C,CAAC;AAHD,4CAGC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
4
- * This software is released under MIT license.
5
- * The full license information can be found in LICENSE in the root directory of this project.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.getJsonFile = void 0;
9
- const schematics_1 = require("@angular-devkit/schematics");
10
- const core_1 = require("@angular-devkit/core");
11
- const getJsonFile = (tree, path) => {
12
- const file = tree.get(path);
13
- if (!file) {
14
- throw new core_1.FileDoesNotExistException(path);
15
- }
16
- try {
17
- const content = JSON.parse(file.content.toString());
18
- return content;
19
- }
20
- catch (e) {
21
- throw new schematics_1.SchematicsException(`File ${path} could not be parsed!`);
22
- }
23
- };
24
- exports.getJsonFile = getJsonFile;
25
- //# sourceMappingURL=get-json-file.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-json-file.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/get-json-file.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,2DAAiE;AACjE,+CAAiE;AAE1D,MAAM,WAAW,GAAG,CAAI,IAAU,EAAE,IAAY,EAAK,EAAE;IAC5D,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC5B,IAAI,CAAC,IAAI,EAAE;QACT,MAAM,IAAI,gCAAyB,CAAC,IAAI,CAAC,CAAC;KAC3C;IAED,IAAI;QACF,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEpD,OAAO,OAAY,CAAC;KACrB;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,IAAI,gCAAmB,CAAC,QAAQ,IAAI,uBAAuB,CAAC,CAAC;KACpE;AACH,CAAC,CAAC;AAbW,QAAA,WAAW,eAatB"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
4
- * This software is released under MIT license.
5
- * The full license information can be found in LICENSE in the root directory of this project.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.getMainPath = void 0;
9
- function getMainPath(config, projectName) {
10
- const project = config.projects[projectName];
11
- return project.architect.build.options.main;
12
- }
13
- exports.getMainPath = getMainPath;
14
- //# sourceMappingURL=get-main-path.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-main-path.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/get-main-path.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,SAAgB,WAAW,CAAC,MAAW,EAAE,WAAmB;IAC1D,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC7C,OAAO,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;AAC9C,CAAC;AAHD,kCAGC"}