@coolon/angular-ui-powerups 14.47.4 → 16.0.0-alpha.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 (480) hide show
  1. package/assets/table.scss +1 -18
  2. package/esm2022/lib/angular-ui-powerups.module.mjs +80 -0
  3. package/esm2022/lib/components/busy-overlay/busy-overlay.component.mjs +34 -0
  4. package/esm2022/lib/components/cards/abstract-card-container.component.mjs +37 -0
  5. package/esm2022/lib/components/cards/card-container/card-container.component.mjs +131 -0
  6. package/{esm2020 → esm2022}/lib/components/cards/card-stack/card-stack.component.mjs +4 -4
  7. package/esm2022/lib/components/commands/command/command.component.mjs +115 -0
  8. package/esm2022/lib/components/commands/command-face/command-face.component.mjs +85 -0
  9. package/{esm2020 → esm2022}/lib/components/commands/command-face.mjs +2 -1
  10. package/{esm2020 → esm2022}/lib/components/commands/flex.component.mjs +4 -4
  11. package/esm2022/lib/components/commands/group/command-container.mjs +22 -0
  12. package/esm2022/lib/components/commands/group/popup-aware.component.mjs +28 -0
  13. package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +90 -0
  14. package/esm2022/lib/components/commands/group/popup-menu/more-menu.component.mjs +58 -0
  15. package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +106 -0
  16. package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +55 -0
  17. package/{esm2020 → esm2022}/lib/components/commands/group/tool-bar/tool-bar.component.mjs +4 -4
  18. package/esm2022/lib/components/commands/separator.component.mjs +42 -0
  19. package/esm2022/lib/components/components.module.mjs +340 -0
  20. package/{esm2020 → esm2022}/lib/components/disposable-component.mjs +4 -4
  21. package/esm2022/lib/components/empty-state/empty-state.component.mjs +23 -0
  22. package/esm2022/lib/components/exports.mjs +93 -0
  23. package/esm2022/lib/components/focus-container/focus-container.component.mjs +38 -0
  24. package/esm2022/lib/components/focusable.component.mjs +51 -0
  25. package/esm2022/lib/components/forms/abstract-input.component.mjs +175 -0
  26. package/esm2022/lib/components/forms/abstract-list-input.component.mjs +72 -0
  27. package/esm2022/lib/components/forms/abstract-value-input.component.mjs +72 -0
  28. package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +133 -0
  29. package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +29 -0
  30. package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +86 -0
  31. package/esm2022/lib/components/forms/number-input/number-input.component.mjs +35 -0
  32. package/esm2022/lib/components/forms/password-input/password-input.component.mjs +25 -0
  33. package/esm2022/lib/components/forms/select-input/select-input.component.mjs +130 -0
  34. package/esm2022/lib/components/forms/string-input/string-input.component.mjs +53 -0
  35. package/esm2022/lib/components/forms/text-input/text-input.component.mjs +31 -0
  36. package/{esm2020 → esm2022}/lib/components/icon/icon.component.mjs +11 -9
  37. package/esm2022/lib/components/labelled-value/labelled-value.component.mjs +22 -0
  38. package/esm2022/lib/components/loading-container/loading-container.component.mjs +54 -0
  39. package/{esm2020 → esm2022}/lib/components/noop/noop.component.mjs +4 -4
  40. package/esm2022/lib/components/resize-aware.component.mjs +47 -0
  41. package/esm2022/lib/components/scroll-container/scroll-container.component.mjs +37 -0
  42. package/esm2022/lib/components/section-header/section-header.component.mjs +36 -0
  43. package/esm2022/lib/components/switch-case/switch-case.component.mjs +132 -0
  44. package/esm2022/lib/components/tables/abstract-table-model.mjs +254 -0
  45. package/esm2022/lib/components/tables/abstract-table.component.mjs +156 -0
  46. package/esm2022/lib/components/tables/column/column-list-model.mjs +44 -0
  47. package/esm2022/lib/components/tables/column/column-model.mjs +190 -0
  48. package/esm2022/lib/components/tables/column/column-template/column-template.directive.mjs +40 -0
  49. package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +16 -0
  50. package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +38 -0
  51. package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +56 -0
  52. package/esm2022/lib/components/tables/column/property-column-model.mjs +98 -0
  53. package/esm2022/lib/components/tables/column/selection-column-model.mjs +51 -0
  54. package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +60 -0
  55. package/esm2022/lib/components/tables/editor/edit-session.mjs +26 -0
  56. package/esm2022/lib/components/tables/filter/column-text-search-formatter.mjs +53 -0
  57. package/esm2022/lib/components/tables/filter/table-filter-model.mjs +58 -0
  58. package/esm2022/lib/components/tables/paginator/paginator.component.mjs +45 -0
  59. package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +103 -0
  60. package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +23 -0
  61. package/esm2022/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.mjs +16 -0
  62. package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +51 -0
  63. package/esm2022/lib/components/tables/renderer/selection-cell/selection-cell.component.mjs +33 -0
  64. package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +129 -0
  65. package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +101 -0
  66. package/esm2022/lib/components/tables/renderer/table-header-cell/table-header-cell.component.mjs +34 -0
  67. package/esm2022/lib/components/tables/table/table.component.mjs +175 -0
  68. package/esm2022/lib/components/tables/table-row-menu/table-row-menu.component.mjs +84 -0
  69. package/esm2022/lib/components/tables/tree-table/decorated-tree-node.mjs +174 -0
  70. package/esm2022/lib/components/tables/tree-table/flattened-tree-list-model.mjs +32 -0
  71. package/esm2022/lib/components/tables/tree-table/tree-expansion-model.mjs +70 -0
  72. package/esm2022/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.mjs +73 -0
  73. package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +100 -0
  74. package/esm2022/lib/components/tables/tree-table/tree-label-column-model.mjs +44 -0
  75. package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +115 -0
  76. package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +108 -0
  77. package/esm2022/lib/components/text/markdown/markdown.component.mjs +83 -0
  78. package/esm2022/lib/components/types/bounds.class.mjs +31 -0
  79. package/{esm2020 → esm2022}/lib/components/types/dimension.class.mjs +3 -1
  80. package/esm2022/lib/components/types/point.class.mjs +15 -0
  81. package/esm2022/lib/components/vertical-focus-container/vertical-focus-container.component.mjs +80 -0
  82. package/esm2022/lib/directives/command.directive.mjs +126 -0
  83. package/esm2022/lib/directives/directives.module.mjs +68 -0
  84. package/esm2022/lib/directives/focus-binding-factory.mjs +32 -0
  85. package/esm2022/lib/directives/focus-binding.directive.mjs +66 -0
  86. package/esm2022/lib/directives/focus-binding.mjs +83 -0
  87. package/{esm2020 → esm2022}/lib/directives/garbage-collector.directive.mjs +4 -4
  88. package/esm2022/lib/directives/highlight-text-model.directive.mjs +28 -0
  89. package/esm2022/lib/directives/highlight.pipe.mjs +49 -0
  90. package/esm2022/lib/interaction/activity-ref.mjs +69 -0
  91. package/{esm2020 → esm2022}/lib/interaction/activity.mjs +19 -13
  92. package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +28 -0
  93. package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +66 -0
  94. package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +135 -0
  95. package/esm2022/lib/interaction/components/activity-body/activity-body.component.mjs +20 -0
  96. package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +250 -0
  97. package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +65 -0
  98. package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +43 -0
  99. package/esm2022/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.mjs +96 -0
  100. package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +25 -0
  101. package/esm2022/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.mjs +23 -0
  102. package/esm2022/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.mjs +31 -0
  103. package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +94 -0
  104. package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +79 -0
  105. package/{esm2020 → esm2022}/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +4 -4
  106. package/{esm2020 → esm2022}/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +4 -4
  107. package/{esm2020 → esm2022}/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +4 -4
  108. package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +30 -0
  109. package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-editor-model.mjs +52 -0
  110. package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +193 -0
  111. package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +143 -0
  112. package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +102 -0
  113. package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +52 -0
  114. package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +37 -0
  115. package/esm2022/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.mjs +134 -0
  116. package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +77 -0
  117. package/esm2022/lib/interaction/interaction.module.mjs +195 -0
  118. package/esm2022/lib/interaction/services/interaction-service-routing-adapter.mjs +32 -0
  119. package/esm2022/lib/interaction/services/interaction.service.mjs +157 -0
  120. package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +51 -0
  121. package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +68 -0
  122. package/esm2022/lib/place/components/abstract-place-navigation.component.mjs +109 -0
  123. package/{esm2020 → esm2022}/lib/place/components/list-place-nav/list-place-nav.component.mjs +6 -6
  124. package/{esm2020 → esm2022}/lib/place/components/not-authorised-notice/not-authorised-notice.component.mjs +4 -4
  125. package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +279 -0
  126. package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +97 -0
  127. package/{esm2020 → esm2022}/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.mjs +6 -6
  128. package/esm2022/lib/place/exports.mjs +48 -0
  129. package/{esm2020 → esm2022}/lib/place/guards/consolidated-param-map.mjs +3 -2
  130. package/{esm2020 → esm2022}/lib/place/guards/noop-auth-guard.service.mjs +4 -4
  131. package/esm2022/lib/place/guards/place.guard.mjs +158 -0
  132. package/esm2022/lib/place/navigation/place-component-deactivation-handler.mjs +87 -0
  133. package/esm2022/lib/place/navigation/session/abstract-pop-state-navigation.mjs +15 -0
  134. package/esm2022/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.mjs +45 -0
  135. package/esm2022/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.mjs +159 -0
  136. package/esm2022/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.mjs +66 -0
  137. package/esm2022/lib/place/navigation/session/interactions/navigating-during-interaction.mjs +35 -0
  138. package/esm2022/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.mjs +54 -0
  139. package/esm2022/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +89 -0
  140. package/{esm2020 → esm2022}/lib/place/navigation/session/navigating.mjs +4 -6
  141. package/esm2022/lib/place/navigation/session/navigation-context.mjs +19 -0
  142. package/esm2022/lib/place/navigation/session/navigation-session.mjs +176 -0
  143. package/esm2022/lib/place/place-access-guard.mjs +15 -0
  144. package/esm2022/lib/place/place-component.mjs +200 -0
  145. package/esm2022/lib/place/place-definition.mjs +213 -0
  146. package/esm2022/lib/place/place-history.mjs +148 -0
  147. package/esm2022/lib/place/place-router.mjs +352 -0
  148. package/esm2022/lib/place/place.module.mjs +94 -0
  149. package/esm2022/lib/place/route/parameter-definition.mjs +121 -0
  150. package/esm2022/lib/place/route/visit-segment-sanitiser.mjs +46 -0
  151. package/esm2022/lib/place/url-service.mjs +68 -0
  152. package/esm2022/lib/place/url-snapshot.mjs +125 -0
  153. package/esm2022/lib/place/visit-segment.mjs +88 -0
  154. package/esm2022/lib/place/visit.mjs +97 -0
  155. package/{esm2020 → esm2022}/lib/services/markdown/markdown.service.mjs +4 -4
  156. package/{esm2020 → esm2022}/lib/services/visibility-service.mjs +8 -5
  157. package/{fesm2020 → fesm2022}/coolon-angular-ui-powerups.mjs +1834 -1534
  158. package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -0
  159. package/lib/angular-ui-powerups.module.d.ts +5 -5
  160. package/lib/components/alignment.d.ts +1 -1
  161. package/lib/components/busy-overlay/busy-overlay.component.d.ts +1 -1
  162. package/lib/components/cards/abstract-card-container.component.d.ts +1 -1
  163. package/lib/components/cards/card-container/card-container.component.d.ts +1 -1
  164. package/lib/components/cards/card-stack/card-stack.component.d.ts +1 -1
  165. package/lib/components/commands/command/command.component.d.ts +2 -2
  166. package/lib/components/commands/command-face/command-face.component.d.ts +1 -1
  167. package/lib/components/commands/flex.component.d.ts +1 -1
  168. package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +2 -2
  169. package/lib/components/commands/group/popup-menu/more-menu.component.d.ts +1 -1
  170. package/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.d.ts +2 -2
  171. package/lib/components/commands/group/popup-menu/popup-menu.component.d.ts +1 -1
  172. package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +1 -1
  173. package/lib/components/commands/separator.component.d.ts +1 -1
  174. package/lib/components/components.module.d.ts +21 -23
  175. package/lib/components/disposable-component.d.ts +1 -1
  176. package/lib/components/empty-state/empty-state.component.d.ts +1 -1
  177. package/lib/components/exports.d.ts +0 -2
  178. package/lib/components/focus-container/focus-container.component.d.ts +1 -1
  179. package/lib/components/focusable.component.d.ts +1 -1
  180. package/lib/components/forms/abstract-input.component.d.ts +1 -1
  181. package/lib/components/forms/abstract-list-input.component.d.ts +1 -1
  182. package/lib/components/forms/abstract-value-input.component.d.ts +1 -1
  183. package/lib/components/forms/autocomplete-input/autocomplete-input.component.d.ts +3 -3
  184. package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +1 -1
  185. package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +1 -1
  186. package/lib/components/forms/number-input/number-input.component.d.ts +1 -1
  187. package/lib/components/forms/password-input/password-input.component.d.ts +1 -1
  188. package/lib/components/forms/select-input/select-input.component.d.ts +1 -2
  189. package/lib/components/forms/string-input/string-input.component.d.ts +1 -1
  190. package/lib/components/forms/text-input/text-input.component.d.ts +1 -1
  191. package/lib/components/icon/icon.component.d.ts +1 -1
  192. package/lib/components/labelled-value/labelled-value.component.d.ts +1 -1
  193. package/lib/components/loading-container/loading-container.component.d.ts +1 -1
  194. package/lib/components/noop/noop.component.d.ts +1 -1
  195. package/lib/components/resize-aware.component.d.ts +1 -1
  196. package/lib/components/scroll-container/scroll-container.component.d.ts +1 -1
  197. package/lib/components/section-header/section-header.component.d.ts +1 -1
  198. package/lib/components/switch-case/switch-case.component.d.ts +3 -3
  199. package/lib/components/tables/abstract-table-model.d.ts +1 -3
  200. package/lib/components/tables/abstract-table.component.d.ts +1 -1
  201. package/lib/components/tables/column/column-model.d.ts +1 -1
  202. package/lib/components/tables/column/column-template/column-template.directive.d.ts +1 -1
  203. package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +1 -1
  204. package/lib/components/tables/filter/enable-cell-text-search.decorator.d.ts +1 -1
  205. package/lib/components/tables/filter/text-search-predicate.d.ts +1 -1
  206. package/lib/components/tables/paginator/paginator.component.d.ts +1 -1
  207. package/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.d.ts +1 -1
  208. package/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.d.ts +1 -1
  209. package/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.d.ts +1 -1
  210. package/lib/components/tables/renderer/selection-cell/selection-cell.component.d.ts +1 -1
  211. package/lib/components/tables/renderer/table-body/table-body.component.d.ts +1 -1
  212. package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +1 -1
  213. package/lib/components/tables/renderer/table-header-cell/table-header-cell.component.d.ts +1 -1
  214. package/lib/components/tables/table/table.component.d.ts +1 -1
  215. package/lib/components/tables/table-row-menu/table-row-menu.component.d.ts +2 -2
  216. package/lib/components/tables/tree-table/decorated-tree-node.d.ts +1 -1
  217. package/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.d.ts +1 -1
  218. package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +1 -1
  219. package/lib/components/tables/tree-table/tree-table-component.d.ts +1 -1
  220. package/lib/components/tables/tree-table/tree-table-model.d.ts +1 -1
  221. package/lib/components/text/markdown/markdown.component.d.ts +1 -1
  222. package/lib/components/vertical-focus-container/vertical-focus-container.component.d.ts +1 -1
  223. package/lib/directives/command.directive.d.ts +3 -3
  224. package/lib/directives/directives.module.d.ts +5 -5
  225. package/lib/directives/focus-binding.directive.d.ts +1 -1
  226. package/lib/directives/garbage-collector.directive.d.ts +1 -1
  227. package/lib/directives/highlight-text-model.directive.d.ts +1 -1
  228. package/lib/interaction/activity.d.ts +2 -2
  229. package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +1 -1
  230. package/lib/interaction/components/abstract-dialog.component.d.ts +1 -1
  231. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +1 -1
  232. package/lib/interaction/components/activity-body/activity-body.component.d.ts +1 -1
  233. package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -2
  234. package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +1 -1
  235. package/lib/interaction/components/activity-title/activity-title.component.d.ts +1 -1
  236. package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
  237. package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +1 -1
  238. package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +1 -1
  239. package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +1 -1
  240. package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +1 -1
  241. package/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.d.ts +1 -1
  242. package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +1 -1
  243. package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +1 -1
  244. package/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.d.ts +1 -1
  245. package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +1 -1
  246. package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +1 -1
  247. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +2 -2
  248. package/lib/interaction/components/input-activities/input-activity.d.ts +3 -7
  249. package/lib/interaction/components/input-activities/select-input-activity.d.ts +2 -4
  250. package/lib/interaction/components/input-activities/string-input-activity.d.ts +1 -1
  251. package/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.d.ts +1 -1
  252. package/lib/interaction/directives/interaction-context-trigger-for.directive.d.ts +1 -1
  253. package/lib/interaction/interaction.module.d.ts +6 -6
  254. package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +2 -2
  255. package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +2 -2
  256. package/lib/place/components/abstract-place-navigation.component.d.ts +3 -4
  257. package/lib/place/components/list-place-nav/list-place-nav.component.d.ts +1 -1
  258. package/lib/place/components/not-authorised-notice/not-authorised-notice.component.d.ts +1 -1
  259. package/lib/place/components/place-outlet/place-outlet.component.d.ts +1 -1
  260. package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +1 -1
  261. package/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.d.ts +1 -1
  262. package/lib/place/exports.d.ts +0 -1
  263. package/lib/place/guards/noop-auth-guard.service.d.ts +2 -2
  264. package/lib/place/guards/place.guard.d.ts +4 -4
  265. package/lib/place/place-access-guard.d.ts +2 -2
  266. package/lib/place/place-component.d.ts +3 -6
  267. package/lib/place/place-router.d.ts +9 -2
  268. package/lib/place/place.module.d.ts +5 -5
  269. package/lib/place/route/json-types.d.ts +2 -2
  270. package/package.json +15 -23
  271. package/schematics/activity/index.js +1 -2
  272. package/schematics/activity/index.js.map +1 -1
  273. package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +5 -4
  274. package/schematics/aup-i18n/index.js +6 -6
  275. package/schematics/aup-i18n/index.js.map +1 -1
  276. package/schematics/bootstrap-app/index.js +10 -10
  277. package/schematics/bootstrap-app/index.js.map +1 -1
  278. package/schematics/component/index.js +2 -2
  279. package/schematics/component/index.js.map +1 -1
  280. package/schematics/component/schema.d.ts +1 -1
  281. package/schematics/component/schema.json +6 -6
  282. package/schematics/place-add/index.js +3 -3
  283. package/schematics/place-add/index.js.map +1 -1
  284. package/schematics/place-add/schema.d.ts +1 -1
  285. package/schematics/place-add/schema.json +4 -4
  286. package/schematics/place-add/templates/component/__name@dasherize__.component.scss.template +0 -1
  287. package/schematics/place-routes/index.js.map +1 -1
  288. package/schematics/place-routes/place-def.js +1 -1
  289. package/schematics/place-routes/place-def.js.map +1 -1
  290. package/schematics/place-routes/schema.json +2 -1
  291. package/schematics/place-routes/templates/place-routes.ts.template +3 -2
  292. package/schematics/utils/import-def.js +3 -3
  293. package/schematics/utils/import-def.js.map +1 -1
  294. package/schematics/utils/stringy.js +3 -3
  295. package/schematics/utils/stringy.js.map +1 -1
  296. package/schematics/utils/workspace.js +3 -3
  297. package/schematics/utils/workspace.js.map +1 -1
  298. package/esm2020/lib/angular-ui-powerups.module.mjs +0 -80
  299. package/esm2020/lib/components/busy-overlay/busy-overlay.component.mjs +0 -32
  300. package/esm2020/lib/components/cards/abstract-card-container.component.mjs +0 -34
  301. package/esm2020/lib/components/cards/card-container/card-container.component.mjs +0 -129
  302. package/esm2020/lib/components/commands/command/command.component.mjs +0 -103
  303. package/esm2020/lib/components/commands/command-face/command-face.component.mjs +0 -80
  304. package/esm2020/lib/components/commands/group/command-container.mjs +0 -21
  305. package/esm2020/lib/components/commands/group/popup-aware.component.mjs +0 -26
  306. package/esm2020/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +0 -84
  307. package/esm2020/lib/components/commands/group/popup-menu/more-menu.component.mjs +0 -57
  308. package/esm2020/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +0 -101
  309. package/esm2020/lib/components/commands/group/popup-menu/popup-menu.component.mjs +0 -53
  310. package/esm2020/lib/components/commands/separator.component.mjs +0 -41
  311. package/esm2020/lib/components/components.module.mjs +0 -350
  312. package/esm2020/lib/components/empty-state/empty-state.component.mjs +0 -23
  313. package/esm2020/lib/components/exports.mjs +0 -95
  314. package/esm2020/lib/components/focus-container/focus-container.component.mjs +0 -37
  315. package/esm2020/lib/components/focusable.component.mjs +0 -48
  316. package/esm2020/lib/components/forms/abstract-input.component.mjs +0 -154
  317. package/esm2020/lib/components/forms/abstract-list-input.component.mjs +0 -65
  318. package/esm2020/lib/components/forms/abstract-value-input.component.mjs +0 -65
  319. package/esm2020/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +0 -120
  320. package/esm2020/lib/components/forms/checkbox-input/checkbox-input.component.mjs +0 -29
  321. package/esm2020/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +0 -78
  322. package/esm2020/lib/components/forms/number-input/number-input.component.mjs +0 -33
  323. package/esm2020/lib/components/forms/password-input/password-input.component.mjs +0 -24
  324. package/esm2020/lib/components/forms/select-input/select-input.component.mjs +0 -121
  325. package/esm2020/lib/components/forms/string-input/string-input.component.mjs +0 -48
  326. package/esm2020/lib/components/forms/text-input/text-input.component.mjs +0 -30
  327. package/esm2020/lib/components/labelled-value/labelled-value.component.mjs +0 -20
  328. package/esm2020/lib/components/loading-container/loading-container.component.mjs +0 -50
  329. package/esm2020/lib/components/resize-aware.component.mjs +0 -45
  330. package/esm2020/lib/components/scroll-container/scroll-container.component.mjs +0 -35
  331. package/esm2020/lib/components/section-header/section-header.component.mjs +0 -36
  332. package/esm2020/lib/components/switch-case/switch-case.component.mjs +0 -126
  333. package/esm2020/lib/components/tables/abstract-table-model.mjs +0 -246
  334. package/esm2020/lib/components/tables/abstract-table.component.mjs +0 -149
  335. package/esm2020/lib/components/tables/column/column-list-model.mjs +0 -43
  336. package/esm2020/lib/components/tables/column/column-model.mjs +0 -184
  337. package/esm2020/lib/components/tables/column/column-template/column-template.directive.mjs +0 -35
  338. package/esm2020/lib/components/tables/column/custom-template-column-model.mjs +0 -16
  339. package/esm2020/lib/components/tables/column/custom-value-column-model.mjs +0 -37
  340. package/esm2020/lib/components/tables/column/list-propery-column-model.mjs +0 -54
  341. package/esm2020/lib/components/tables/column/property-column-model.mjs +0 -96
  342. package/esm2020/lib/components/tables/column/selection-column-model.mjs +0 -50
  343. package/esm2020/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +0 -55
  344. package/esm2020/lib/components/tables/editor/edit-session.mjs +0 -23
  345. package/esm2020/lib/components/tables/filter/column-text-search-formatter.mjs +0 -51
  346. package/esm2020/lib/components/tables/filter/table-filter-model.mjs +0 -56
  347. package/esm2020/lib/components/tables/paginator/paginator.component.mjs +0 -44
  348. package/esm2020/lib/components/tables/renderer/cell-portal-ref.mjs +0 -93
  349. package/esm2020/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +0 -22
  350. package/esm2020/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.mjs +0 -15
  351. package/esm2020/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +0 -47
  352. package/esm2020/lib/components/tables/renderer/selection-cell/selection-cell.component.mjs +0 -28
  353. package/esm2020/lib/components/tables/renderer/table-body/table-body.component.mjs +0 -120
  354. package/esm2020/lib/components/tables/renderer/table-cell/table-cell.component.mjs +0 -93
  355. package/esm2020/lib/components/tables/renderer/table-header-cell/table-header-cell.component.mjs +0 -32
  356. package/esm2020/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.mjs +0 -36
  357. package/esm2020/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +0 -55
  358. package/esm2020/lib/components/tables/table/table.component.mjs +0 -170
  359. package/esm2020/lib/components/tables/table-row-menu/table-row-menu.component.mjs +0 -80
  360. package/esm2020/lib/components/tables/tree-table/decorated-tree-node.mjs +0 -171
  361. package/esm2020/lib/components/tables/tree-table/flattened-tree-list-model.mjs +0 -29
  362. package/esm2020/lib/components/tables/tree-table/tree-expansion-model.mjs +0 -70
  363. package/esm2020/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.mjs +0 -72
  364. package/esm2020/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +0 -91
  365. package/esm2020/lib/components/tables/tree-table/tree-label-column-model.mjs +0 -42
  366. package/esm2020/lib/components/tables/tree-table/tree-table-component.mjs +0 -113
  367. package/esm2020/lib/components/tables/tree-table/tree-table-model.mjs +0 -105
  368. package/esm2020/lib/components/text/markdown/markdown.component.mjs +0 -78
  369. package/esm2020/lib/components/types/bounds.class.mjs +0 -27
  370. package/esm2020/lib/components/types/point.class.mjs +0 -13
  371. package/esm2020/lib/components/vertical-focus-container/vertical-focus-container.component.mjs +0 -77
  372. package/esm2020/lib/directives/command.directive.mjs +0 -122
  373. package/esm2020/lib/directives/directives.module.mjs +0 -68
  374. package/esm2020/lib/directives/focus-binding-factory.mjs +0 -30
  375. package/esm2020/lib/directives/focus-binding.directive.mjs +0 -62
  376. package/esm2020/lib/directives/focus-binding.mjs +0 -79
  377. package/esm2020/lib/directives/highlight-text-model.directive.mjs +0 -27
  378. package/esm2020/lib/directives/highlight.pipe.mjs +0 -48
  379. package/esm2020/lib/interaction/activity-ref.mjs +0 -65
  380. package/esm2020/lib/interaction/components/abstract-confirm-dialog.component.mjs +0 -27
  381. package/esm2020/lib/interaction/components/abstract-dialog.component.mjs +0 -61
  382. package/esm2020/lib/interaction/components/activity-actions/activity-actions.component.mjs +0 -122
  383. package/esm2020/lib/interaction/components/activity-body/activity-body.component.mjs +0 -23
  384. package/esm2020/lib/interaction/components/activity-container/activity-container.component.mjs +0 -241
  385. package/esm2020/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +0 -59
  386. package/esm2020/lib/interaction/components/activity-title/activity-title.component.mjs +0 -41
  387. package/esm2020/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.mjs +0 -89
  388. package/esm2020/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +0 -24
  389. package/esm2020/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.mjs +0 -22
  390. package/esm2020/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.mjs +0 -30
  391. package/esm2020/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +0 -91
  392. package/esm2020/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +0 -73
  393. package/esm2020/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +0 -29
  394. package/esm2020/lib/interaction/components/editors/inline-string-editor/inline-editor-model.mjs +0 -50
  395. package/esm2020/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +0 -179
  396. package/esm2020/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +0 -133
  397. package/esm2020/lib/interaction/components/input-activities/input-activity.mjs +0 -103
  398. package/esm2020/lib/interaction/components/input-activities/select-input-activity.mjs +0 -65
  399. package/esm2020/lib/interaction/components/input-activities/string-input-activity.mjs +0 -37
  400. package/esm2020/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.mjs +0 -128
  401. package/esm2020/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +0 -73
  402. package/esm2020/lib/interaction/interaction.module.mjs +0 -195
  403. package/esm2020/lib/interaction/services/interaction-service-routing-adapter.mjs +0 -29
  404. package/esm2020/lib/interaction/services/interaction.service.mjs +0 -144
  405. package/esm2020/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +0 -47
  406. package/esm2020/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +0 -62
  407. package/esm2020/lib/place/components/abstract-place-navigation.component.mjs +0 -101
  408. package/esm2020/lib/place/components/place-outlet/place-outlet.component.mjs +0 -257
  409. package/esm2020/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +0 -94
  410. package/esm2020/lib/place/exports.mjs +0 -49
  411. package/esm2020/lib/place/guards/place.guard.mjs +0 -154
  412. package/esm2020/lib/place/navigation/place-component-deactivation-handler.mjs +0 -83
  413. package/esm2020/lib/place/navigation/session/abstract-pop-state-navigation.mjs +0 -14
  414. package/esm2020/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.mjs +0 -43
  415. package/esm2020/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.mjs +0 -152
  416. package/esm2020/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.mjs +0 -62
  417. package/esm2020/lib/place/navigation/session/interactions/navigating-during-interaction.mjs +0 -38
  418. package/esm2020/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.mjs +0 -52
  419. package/esm2020/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +0 -88
  420. package/esm2020/lib/place/navigation/session/navigation-context.mjs +0 -14
  421. package/esm2020/lib/place/navigation/session/navigation-session.mjs +0 -173
  422. package/esm2020/lib/place/place-access-guard.mjs +0 -15
  423. package/esm2020/lib/place/place-auth-service.mjs +0 -142
  424. package/esm2020/lib/place/place-component.mjs +0 -203
  425. package/esm2020/lib/place/place-definition.mjs +0 -204
  426. package/esm2020/lib/place/place-history.mjs +0 -145
  427. package/esm2020/lib/place/place-router.mjs +0 -319
  428. package/esm2020/lib/place/place.module.mjs +0 -94
  429. package/esm2020/lib/place/route/parameter-definition.mjs +0 -122
  430. package/esm2020/lib/place/route/visit-segment-sanitiser.mjs +0 -41
  431. package/esm2020/lib/place/url-service.mjs +0 -65
  432. package/esm2020/lib/place/url-snapshot.mjs +0 -122
  433. package/esm2020/lib/place/visit-segment.mjs +0 -86
  434. package/esm2020/lib/place/visit.mjs +0 -95
  435. package/fesm2015/coolon-angular-ui-powerups.mjs +0 -11330
  436. package/fesm2015/coolon-angular-ui-powerups.mjs.map +0 -1
  437. package/fesm2020/coolon-angular-ui-powerups.mjs.map +0 -1
  438. package/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.d.ts +0 -15
  439. package/lib/components/tables/renderer/table-more-menu/table-more-menu.component.d.ts +0 -23
  440. package/lib/place/place-auth-service.d.ts +0 -49
  441. /package/{esm2020 → esm2022}/coolon-angular-ui-powerups.mjs +0 -0
  442. /package/{esm2020 → esm2022}/index.mjs +0 -0
  443. /package/{esm2020 → esm2022}/lib/animations/exports.mjs +0 -0
  444. /package/{esm2020 → esm2022}/lib/animations/slide-animations.mjs +0 -0
  445. /package/{esm2020 → esm2022}/lib/components/alignment.mjs +0 -0
  446. /package/{esm2020 → esm2022}/lib/components/commands/group/popup-container.mjs +0 -0
  447. /package/{esm2020 → esm2022}/lib/components/tables/column/column-text-properties.mjs +0 -0
  448. /package/{esm2020 → esm2022}/lib/components/tables/column/editor-controls-column-model.mjs +0 -0
  449. /package/{esm2020 → esm2022}/lib/components/tables/editor/editable-cell-renderer.mjs +0 -0
  450. /package/{esm2020 → esm2022}/lib/components/tables/filter/enable-cell-text-search.decorator.mjs +0 -0
  451. /package/{esm2020 → esm2022}/lib/components/tables/filter/text-search-predicate.mjs +0 -0
  452. /package/{esm2020 → esm2022}/lib/components/tables/renderer/cell-editors.mjs +0 -0
  453. /package/{esm2020 → esm2022}/lib/components/tables/renderer/cell-renderer.mjs +0 -0
  454. /package/{esm2020 → esm2022}/lib/components/tables/table/table-model.mjs +0 -0
  455. /package/{esm2020 → esm2022}/lib/components/track-by.mjs +0 -0
  456. /package/{esm2020 → esm2022}/lib/directives/exports.mjs +0 -0
  457. /package/{esm2020 → esm2022}/lib/interaction/abstract-interaction-context.mjs +0 -0
  458. /package/{esm2020 → esm2022}/lib/interaction/alert.mjs +0 -0
  459. /package/{esm2020 → esm2022}/lib/interaction/components/editors/edit-context.mjs +0 -0
  460. /package/{esm2020 → esm2022}/lib/interaction/confirm.mjs +0 -0
  461. /package/{esm2020 → esm2022}/lib/interaction/exports.mjs +0 -0
  462. /package/{esm2020 → esm2022}/lib/interaction/in-place-interaction-context.mjs +0 -0
  463. /package/{esm2020 → esm2022}/lib/interaction/interaction-context.mjs +0 -0
  464. /package/{esm2020 → esm2022}/lib/interaction/route-synchronisation-adapter.mjs +0 -0
  465. /package/{esm2020 → esm2022}/lib/interaction/services/modal-interaction-context.factory.mjs +0 -0
  466. /package/{esm2020 → esm2022}/lib/place/components/place-outlet/route-animations.mjs +0 -0
  467. /package/{esm2020 → esm2022}/lib/place/nav-item.mjs +0 -0
  468. /package/{esm2020 → esm2022}/lib/place/navigation/session/event-cleanup/event-clean-up-session.mjs +0 -0
  469. /package/{esm2020 → esm2022}/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.mjs +0 -0
  470. /package/{esm2020 → esm2022}/lib/place/navigation/session/pop-state-navigation.mjs +0 -0
  471. /package/{esm2020 → esm2022}/lib/place/place-config.mjs +0 -0
  472. /package/{esm2020 → esm2022}/lib/place/place.decorator.mjs +0 -0
  473. /package/{esm2020 → esm2022}/lib/place/route/formatter.mjs +0 -0
  474. /package/{esm2020 → esm2022}/lib/place/route/json-types.mjs +0 -0
  475. /package/{esm2020 → esm2022}/lib/place/route/parameter-decorators.mjs +0 -0
  476. /package/{esm2020 → esm2022}/lib/place/route/parameter-sanitiser.mjs +0 -0
  477. /package/{esm2020 → esm2022}/lib/place/route/parameter-snapshot.mjs +0 -0
  478. /package/{esm2020 → esm2022}/lib/services/exports.mjs +0 -0
  479. /package/{esm2020 → esm2022}/lib/services/markdown/pill-plugin.mjs +0 -0
  480. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
@@ -0,0 +1,133 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { Component, ContentChild, Input, TemplateRef, ViewChild } from "@angular/core";
3
+ import { MatLegacyInput as MatInput } from "@angular/material/legacy-input";
4
+ import { DelegatingListModel, Dsl, Guard, ListModel, MutableValueModel, StoreInListModel, TrackExternal } from "@coolon/pectin";
5
+ import { isEmpty, isString } from 'lodash';
6
+ import { AbstractValueInputComponent } from '../abstract-value-input.component';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@angular/common";
9
+ import * as i2 from "@angular/forms";
10
+ import * as i3 from "@angular/material/legacy-form-field";
11
+ import * as i4 from "@angular/material/legacy-input";
12
+ import * as i5 from "@angular/material/legacy-core";
13
+ import * as i6 from "../../../directives/focus-binding.directive";
14
+ import * as i7 from "@angular/material/legacy-autocomplete";
15
+ /**
16
+ * Using templates (not only supported for nil values:
17
+ * <aup-autocomplete-input [valueModel]="myModel" [options]="myOptions">
18
+ * <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
19
+ * </aup-autocomplete-input>
20
+ */
21
+ export class AutocompleteInputComponent extends AbstractValueInputComponent {
22
+ rawTextContent$;
23
+ _options$ = new DelegatingListModel();
24
+ options$;
25
+ /**
26
+ * @deprecated use #options$ instead.
27
+ */
28
+ optionsModel;
29
+ options;
30
+ optionLabel;
31
+ allowNil;
32
+ autoActiveFirstOption = true;
33
+ autoFilter = true;
34
+ matInputComponent;
35
+ optionTemplateRef;
36
+ nilOptionTemplateRef;
37
+ inSearchUpdate$ = new Guard();
38
+ filterValue = new MutableValueModel();
39
+ filteredOptions;
40
+ optionLabelFormat = (option) => (option && this.optionLabel) ? option[this.optionLabel] : option;
41
+ filterFactory = (filterText) => {
42
+ const lowerCaseFilterValue = isString(filterText) ? filterText.toLowerCase() : '';
43
+ return (option) => {
44
+ const matches = !isEmpty(this.filterValue.value) && this.optionLabelFormat(option).toString().toLowerCase().includes(lowerCaseFilterValue);
45
+ return matches;
46
+ };
47
+ };
48
+ constructor() {
49
+ super();
50
+ const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
51
+ const filter$ = chain(this.filterValue).map(v => this.filterFactory(v), { allowNil: true });
52
+ this.filteredOptions = chain(this.options$)
53
+ .select(option => !this.autoFilter || filter$.value(option), { dependsOn: filter$ });
54
+ }
55
+ ngOnInit() {
56
+ }
57
+ ngAfterViewInit() {
58
+ const { when } = Dsl.disposeWith(this);
59
+ when(this.rawTextContent$).changes(content => {
60
+ this.matInputComponent.value = content;
61
+ }, {
62
+ unless: this.inSearchUpdate$
63
+ });
64
+ }
65
+ formatOption(option) {
66
+ return this.optionLabelFormat(option);
67
+ }
68
+ updateFilter($event) {
69
+ this.inSearchUpdate$.whileTrue(() => {
70
+ this.rawTextContent$.value = $event;
71
+ this.filterValue.value = $event;
72
+ });
73
+ }
74
+ onSelect($event) {
75
+ this.inSearchUpdate$.whileTrue(() => {
76
+ this.rawTextContent$.value = undefined;
77
+ // @ts-ignore
78
+ this.value$["value"] = $event.option.value;
79
+ });
80
+ }
81
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AutocompleteInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
82
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.6", type: AutocompleteInputComponent, selector: "aup-autocomplete-input", inputs: { rawTextContent$: "rawTextContent$", options$: "options$", optionsModel: "optionsModel", options: "options", optionLabel: "optionLabel", allowNil: "allowNil", autoActiveFirstOption: "autoActiveFirstOption", autoFilter: "autoFilter", optionLabelFormat: "optionLabelFormat", filterFactory: "filterFactory" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "nilOptionTemplateRef", first: true, predicate: ["nilOptionTemplate"], descendants: true }], viewQueries: [{ propertyName: "matInputComponent", first: true, predicate: MatInput, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"string\"\n matInput\n [matAutocomplete]=\"autocomplete\"\n placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"updateFilter($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-autocomplete #autocomplete [displayWith]=\"optionLabelFormat\"\n [autoActiveFirstOption]=\"autoActiveFirstOption\"\n (optionSelected)=\"onSelect($event)\">\n <mat-option *ngFor=\"let option of filteredOptions.value; let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n </mat-autocomplete>\n\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"\n >\n </ng-container>\n </div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatLegacyError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatLegacyFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLegacyHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLegacyLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatLegacyInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", exportAs: ["matInput"] }, { kind: "component", type: i5.MatLegacyOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i6.FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: i7.MatLegacyAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i7.MatLegacyAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }] });
83
+ }
84
+ __decorate([
85
+ TrackExternal(),
86
+ __metadata("design:type", MutableValueModel)
87
+ ], AutocompleteInputComponent.prototype, "rawTextContent$", void 0);
88
+ __decorate([
89
+ TrackExternal({ delegateTo: "_options$" }),
90
+ __metadata("design:type", ListModel)
91
+ ], AutocompleteInputComponent.prototype, "options$", void 0);
92
+ __decorate([
93
+ TrackExternal({ delegateTo: "_options$" }),
94
+ __metadata("design:type", ListModel)
95
+ ], AutocompleteInputComponent.prototype, "optionsModel", void 0);
96
+ __decorate([
97
+ StoreInListModel('optionsModel'),
98
+ __metadata("design:type", Array)
99
+ ], AutocompleteInputComponent.prototype, "options", void 0);
100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AutocompleteInputComponent, decorators: [{
101
+ type: Component,
102
+ args: [{ selector: 'aup-autocomplete-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"string\"\n matInput\n [matAutocomplete]=\"autocomplete\"\n placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"updateFilter($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-autocomplete #autocomplete [displayWith]=\"optionLabelFormat\"\n [autoActiveFirstOption]=\"autoActiveFirstOption\"\n (optionSelected)=\"onSelect($event)\">\n <mat-option *ngFor=\"let option of filteredOptions.value; let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n </mat-autocomplete>\n\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"\n >\n </ng-container>\n </div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\n"] }]
103
+ }], ctorParameters: function () { return []; }, propDecorators: { rawTextContent$: [{
104
+ type: Input
105
+ }], options$: [{
106
+ type: Input
107
+ }], optionsModel: [{
108
+ type: Input
109
+ }], options: [{
110
+ type: Input
111
+ }], optionLabel: [{
112
+ type: Input
113
+ }], allowNil: [{
114
+ type: Input
115
+ }], autoActiveFirstOption: [{
116
+ type: Input
117
+ }], autoFilter: [{
118
+ type: Input
119
+ }], matInputComponent: [{
120
+ type: ViewChild,
121
+ args: [MatInput]
122
+ }], optionTemplateRef: [{
123
+ type: ContentChild,
124
+ args: ['optionTemplate']
125
+ }], nilOptionTemplateRef: [{
126
+ type: ContentChild,
127
+ args: ['nilOptionTemplate']
128
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0lmPVwiYWxsb3dOaWxcIj57e3BsYWNlaG9sZGVyfX08L21hdC1vcHRpb24+XG4gIDwvbWF0LWF1dG9jb21wbGV0ZT5cblxuICA8bWF0LWhpbnQgKm5nSWY9XCJzaG93SGludFwiPnt7aGludH19PC9tYXQtaGludD5cbiAgPG1hdC1lcnJvciAqbmdJZj1cImhhc0Vycm9yc1wiPnt7Zmlyc3RFcnJvcn19PC9tYXQtZXJyb3I+XG48L21hdC1mb3JtLWZpZWxkPlxuPGRpdiBjbGFzcz1cIndpZHRoLXN0cnV0XCI+XG4gIDxtYXQtbGFiZWwgKm5nSWY9XCJsYWJlbFwiPnt7bGFiZWx9fTwvbWF0LWxhYmVsPlxuICA8ZGl2Pnt7cGxhY2Vob2xkZXJ9fTwvZGl2PlxuICA8ZGl2IGNsYXNzPVwiaXRlbVwiICpuZ0Zvcj1cImxldCBpdGVtIG9mIG9wdGlvbnNcIj5cbiAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiIW9wdGlvblRlbXBsYXRlUmVmXCI+e3tmb3JtYXRPcHRpb24oaXRlbSl9fTwvbmctY29udGFpbmVyPlxuICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJvcHRpb25UZW1wbGF0ZVJlZlwiXG4gICAgICAgICAgICAgICAgICBbbmdUZW1wbGF0ZU91dGxldF09XCJvcHRpb25UZW1wbGF0ZVJlZlwiXG4gICAgICAgICAgICAgICAgICBbbmdUZW1wbGF0ZU91dGxldENvbnRleHRdPVwieyAkaW1wbGljaXQ6IGl0ZW0sIGluZGV4OiAwIH1cIlxuICAgID5cbiAgICA8L25nLWNvbnRhaW5lcj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
@@ -0,0 +1,29 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { AbstractValueInputComponent } from '../abstract-value-input.component';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common";
5
+ import * as i2 from "@angular/forms";
6
+ import * as i3 from "@angular/material/legacy-form-field";
7
+ import * as i4 from "@angular/material/legacy-checkbox";
8
+ export class CheckboxInputComponent extends AbstractValueInputComponent {
9
+ // @Input() @TrackExternal({ delegateTo: 'inputModel' })
10
+ // valueModel: Form.ValueModelBase<boolean> | MutableValueModel<boolean>;
11
+ color = 'accent';
12
+ labelPosition = 'after';
13
+ constructor() {
14
+ super();
15
+ }
16
+ ngOnInit() {
17
+ }
18
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckboxInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.6", type: CheckboxInputComponent, selector: "aup-checkbox-input", inputs: { color: "color", labelPosition: "labelPosition" }, usesInheritance: true, ngImport: i0, template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"componentValue$.value\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n<mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n", styles: [":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-hint,mat-error{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatLegacyError, selector: "mat-error", inputs: ["id"] }, { kind: "directive", type: i3.MatLegacyHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: i4.MatLegacyCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
20
+ }
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckboxInputComponent, decorators: [{
22
+ type: Component,
23
+ args: [{ selector: 'aup-checkbox-input', template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"componentValue$.value\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n<mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n", styles: [":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-hint,mat-error{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}\n"] }]
24
+ }], ctorParameters: function () { return []; }, propDecorators: { color: [{
25
+ type: Input
26
+ }], labelPosition: [{
27
+ type: Input
28
+ }] } });
29
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3gtaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLXVpLXBvd2VydXBzL3NyYy9saWIvY29tcG9uZW50cy9mb3Jtcy9jaGVja2JveC1pbnB1dC9jaGVja2JveC1pbnB1dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL2Zvcm1zL2NoZWNrYm94LWlucHV0L2NoZWNrYm94LWlucHV0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRS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uICAvLyBASW5wdXQoKSBAVHJhY2tFeHRlcm5hbCh7IGRlbGVnYXRlVG86ICdpbnB1dE1vZGVsJyB9KVxuICAvLyB2YWx1ZU1vZGVsOiBGb3JtLlZhbHVlTW9kZWxCYXNlPGJvb2xlYW4+IHwgTXV0YWJsZVZhbHVlTW9kZWw8Ym9vbGVhbj47XG5cbiAgQElucHV0KClcbiAgY29sb3I6ICdwcmltYXJ5JyB8ICd3YXJuJyB8ICdhY2NlbnQnID0gJ2FjY2VudCc7XG5cbiAgQElucHV0KClcbiAgbGFiZWxQb3NpdGlvbjogJ2JlZm9yZScgfCAnYWZ0ZXInID0gJ2FmdGVyJztcblxuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcigpO1xuICB9XG5cbiAgbmdPbkluaXQoKSB7XG4gIH1cblxufVxuIiwiPCEtLSBUT0RPOiBhZGQgZm9jdXMgYmluZGluZyAtLT5cbjxtYXQtY2hlY2tib3hcbiAgWyhuZ01vZGVsKV09XCJjb21wb25lbnRWYWx1ZSQudmFsdWVcIlxuICBbY29sb3JdPVwiY29sb3JcIlxuICBbbGFiZWxQb3NpdGlvbl09XCJsYWJlbFBvc2l0aW9uXCJcbiAgW2Rpc2FibGVkXT1cIiFpc0VuYWJsZWQoKVwiXG4+e3tsYWJlbH19PC9tYXQtY2hlY2tib3g+XG48bWF0LWhpbnQgKm5nSWY9XCJzaG93SGludFwiPnt7aGludH19PC9tYXQtaGludD5cbjxtYXQtZXJyb3IgKm5nSWY9XCJoYXNFcnJvcnNcIj57e2ZpcnN0RXJyb3J9fTwvbWF0LWVycm9yPlxuIl19
@@ -0,0 +1,86 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { Component, ContentChild, Input, TemplateRef } from '@angular/core';
3
+ import { Binding, DelegatingListModel, Dsl, ListModel, MutableListModel, StoreInListModel, TrackExternal } from '@coolon/pectin';
4
+ import { AbstractListInputComponent } from '../abstract-list-input.component';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/common";
7
+ import * as i2 from "@angular/forms";
8
+ import * as i3 from "@angular/material/legacy-form-field";
9
+ import * as i4 from "@angular/material/legacy-select";
10
+ import * as i5 from "@angular/material/legacy-core";
11
+ import * as i6 from "../../../directives/focus-binding.directive";
12
+ /**
13
+ * Using templates:
14
+ * <aup-multiple-select-input [valueModel]="myModel" [options]="myOptions">
15
+ * <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
16
+ * <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
17
+ * </aup-multiple-select_input>
18
+ */
19
+ export class MultipleSelectInputComponent extends AbstractListInputComponent {
20
+ _options$ = new DelegatingListModel();
21
+ options$;
22
+ /**
23
+ * @deprecated use #options$ instead.
24
+ */
25
+ optionsModel;
26
+ options;
27
+ optionLabel;
28
+ optionTemplateRef;
29
+ optionLabelFormat = (option) => (option && this.optionLabel) ? option[this.optionLabel] : option;
30
+ ids$ = new MutableListModel();
31
+ constructor() {
32
+ super();
33
+ }
34
+ selectAll(items) {
35
+ this.ids$.value = items.map(item => this.options$.identityOf(item));
36
+ }
37
+ ngOnInit() {
38
+ // NOTE: this has to be done after our parameter have been bound or we'll clobber the initial selected values with the writeRight
39
+ const { chain } = Dsl.disposeWith(this);
40
+ const lookup = chain(this.options$).indexUsing(this.options$.identityOf);
41
+ const self = this;
42
+ this.registerDisposable(new Binding(this.componentList$, this.ids$, {
43
+ toLeft(selectedItems, currentLeftValue) {
44
+ const newValues = selectedItems.map(it => lookup.get(it)).filter(it => !it);
45
+ // if our lookup didn't find anything then we return the previous values so we don't clobber selections when the options go empty
46
+ return newValues.length < 1 && selectedItems.length > 0 ? currentLeftValue : newValues;
47
+ },
48
+ leftDependsOn: lookup,
49
+ toRight(leftValue, currentRightValue) {
50
+ return leftValue ? leftValue.map(it => self.options$.identityOf(it)) : [];
51
+ }
52
+ })).writeRight();
53
+ }
54
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: MultipleSelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
55
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.6", type: MultipleSelectInputComponent, selector: "aup-multiple-select-input", inputs: { options$: "options$", optionsModel: "optionsModel", options: "options", optionLabel: "optionLabel", optionLabelFormat: "optionLabelFormat" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [ngModel]=\"componentList$.value\"\n (ngModelChange)=\"selectAll($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngFor=\"let option of options$.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:30px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatLegacyError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatLegacyFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLegacyHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLegacyLabel, selector: "mat-label" }, { kind: "component", type: i4.MatLegacySelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatLegacyOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i6.FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }] });
56
+ }
57
+ __decorate([
58
+ TrackExternal({ delegateTo: "_options$" }),
59
+ __metadata("design:type", ListModel)
60
+ ], MultipleSelectInputComponent.prototype, "options$", void 0);
61
+ __decorate([
62
+ TrackExternal({ delegateTo: "_options$" }),
63
+ __metadata("design:type", ListModel)
64
+ ], MultipleSelectInputComponent.prototype, "optionsModel", void 0);
65
+ __decorate([
66
+ StoreInListModel('optionsModel'),
67
+ __metadata("design:type", Array)
68
+ ], MultipleSelectInputComponent.prototype, "options", void 0);
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: MultipleSelectInputComponent, decorators: [{
70
+ type: Component,
71
+ args: [{ selector: 'aup-multiple-select-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [ngModel]=\"componentList$.value\"\n (ngModelChange)=\"selectAll($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngFor=\"let option of options$.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:30px}\n"] }]
72
+ }], ctorParameters: function () { return []; }, propDecorators: { options$: [{
73
+ type: Input
74
+ }], optionsModel: [{
75
+ type: Input
76
+ }], options: [{
77
+ type: Input
78
+ }], optionLabel: [{
79
+ type: Input
80
+ }], optionTemplateRef: [{
81
+ type: ContentChild,
82
+ args: ['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1cIndpZHRoLXN0cnV0XCI+XG4gIDxtYXQtbGFiZWwgKm5nSWY9XCJsYWJlbFwiPnt7bGFiZWx9fTwvbWF0LWxhYmVsPlxuICA8ZGl2Pnt7cGxhY2Vob2xkZXJ9fTwvZGl2PlxuICA8ZGl2IGNsYXNzPVwiaXRlbVwiICpuZ0Zvcj1cImxldCBpdGVtIG9mIG9wdGlvbnNcIj57e29wdGlvbkxhYmVsRm9ybWF0KGl0ZW0pfX08L2Rpdj5cbjwvZGl2PlxuIl19
@@ -0,0 +1,35 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { AbstractValueInputComponent } from '../abstract-value-input.component';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common";
5
+ import * as i2 from "@angular/forms";
6
+ import * as i3 from "@angular/material/legacy-form-field";
7
+ import * as i4 from "@angular/material/legacy-input";
8
+ import * as i5 from "../../../directives/focus-binding.directive";
9
+ import * as i6 from "../../icon/icon.component";
10
+ export class NumberInputComponent extends AbstractValueInputComponent {
11
+ autocomplete;
12
+ min = Number.MIN_SAFE_INTEGER;
13
+ max = Number.MAX_SAFE_INTEGER;
14
+ iconPrefix;
15
+ constructor() {
16
+ super();
17
+ }
18
+ ngOnInit() {
19
+ }
20
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NumberInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
21
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.6", type: NumberInputComponent, selector: "aup-number-input", inputs: { autocomplete: "autocomplete", min: "min", max: "max", iconPrefix: "iconPrefix" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n >\n <mat-hint *ngIf=\"hint && !dense\" >{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\n</mat-form-field>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i2.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatLegacyError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatLegacyFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLegacyHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLegacyLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatLegacyPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i4.MatLegacyInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", exportAs: ["matInput"] }, { kind: "directive", type: i5.FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: i6.IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
22
+ }
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NumberInputComponent, decorators: [{
24
+ type: Component,
25
+ args: [{ selector: 'aup-number-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n >\n <mat-hint *ngIf=\"hint && !dense\" >{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\n</mat-form-field>\n" }]
26
+ }], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
27
+ type: Input
28
+ }], min: [{
29
+ type: Input
30
+ }], max: [{
31
+ type: Input
32
+ }], iconPrefix: [{
33
+ type: Input
34
+ }] } });
35
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4u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VdPVwiYXV0b2NvbXBsZXRlXCJcbiAgICAgICAgIFsobmdNb2RlbCldPVwiY29tcG9uZW50VmFsdWUkLnZhbHVlXCJcbiAgICAgICAgIFtkaXNhYmxlZF09XCIhZW5hYmxlZCQudmFsdWVcIlxuICAgICAgICAgKGtleWRvd24uZW50ZXIpPVwibm90aWZ5RW50ZXJLZXkoKVwiXG4gICAgICAgICAoa2V5ZG93bi5lc2NhcGUpPVwibm90aWZ5RXNjYXBlS2V5KClcIlxuICAgICAgICAgW3BlY3RpbkZvY3VzQmluZGluZ109XCJmb2N1c0NvbnRleHRcIlxuICAgICAgICAgW2Vycm9yU3RhdGVNYXRjaGVyXT1cImVycm9yU3RhdGVNYXRjaGVyXCJcbiAgICAgICAgIFttaW5dPVwibWluXCJcbiAgICAgICAgIFttYXhdPVwibWF4XCJcbiAgPlxuICA8bWF0LWhpbnQgKm5nSWY9XCJoaW50ICYmICFkZW5zZVwiID57e2hpbnR9fTwvbWF0LWhpbnQ+XG4gIDxtYXQtZXJyb3IgKm5nSWY9XCJoYXNFcnJvcnNcIj57e2ZpcnN0RXJyb3J9fTwvbWF0LWVycm9yPlxuICA8YXVwLWljb24gKm5nSWY9XCJpY29uUHJlZml4XCIgbWF0UHJlZml4IFtpY29uXT1cImljb25QcmVmaXhcIj48L2F1cC1pY29uPlxuPC9tYXQtZm9ybS1maWVsZD5cbiJdfQ==
@@ -0,0 +1,25 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { AbstractValueInputComponent } from '../abstract-value-input.component';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common";
5
+ import * as i2 from "@angular/forms";
6
+ import * as i3 from "@angular/material/legacy-form-field";
7
+ import * as i4 from "@angular/material/legacy-input";
8
+ import * as i5 from "../../../directives/focus-binding.directive";
9
+ export class PasswordInputComponent extends AbstractValueInputComponent {
10
+ autocomplete;
11
+ constructor() {
12
+ super();
13
+ }
14
+ ngOnInit() {
15
+ }
16
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: PasswordInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.6", type: PasswordInputComponent, selector: "aup-password-input", inputs: { autocomplete: "autocomplete" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatLegacyError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatLegacyFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLegacyHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLegacyLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatLegacyInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", exportAs: ["matInput"] }, { kind: "directive", type: i5.FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }] });
18
+ }
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: PasswordInputComponent, decorators: [{
20
+ type: Component,
21
+ args: [{ selector: 'aup-password-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n" }]
22
+ }], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
23
+ type: Input
24
+ }] } });
25
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFzc3dvcmQtaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLXVpLXBvd2VydXBzL3NyYy9saWIvY29tcG9uZW50cy9mb3Jtcy9wYXNzd29yZC1pbnB1dC9wYXNzd29yZC1pbnB1dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi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Zvcm0tZmllbGQ+XG5cbiJdfQ==
@@ -0,0 +1,130 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { Component, ContentChild, Input, TemplateRef } from '@angular/core';
3
+ import { Binding, DelegatingListModel, Dsl, ListModel, MutableValueModel, StoreInListModel, TrackExternal } from '@coolon/pectin';
4
+ import { isNil } from "lodash";
5
+ import { AbstractValueInputComponent } from '../abstract-value-input.component';
6
+ import * as i0 from "@angular/core";
7
+ import * as i1 from "@angular/common";
8
+ import * as i2 from "@angular/forms";
9
+ import * as i3 from "@angular/material/legacy-form-field";
10
+ import * as i4 from "@angular/material/legacy-select";
11
+ import * as i5 from "@angular/material/legacy-core";
12
+ import * as i6 from "../../../directives/focus-binding.directive";
13
+ /**
14
+ * Using templates:
15
+ * <aup-select-input [valueModel]="myModel" [options]="myOptions">
16
+ * <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
17
+ * <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
18
+ * </aup-select_input>
19
+ */
20
+ export class SelectInputComponent extends AbstractValueInputComponent {
21
+ _options$ = new DelegatingListModel();
22
+ options$;
23
+ /**
24
+ * @deprecated use #options$ instead.
25
+ */
26
+ optionsModel;
27
+ options;
28
+ optionLabel;
29
+ allowNil;
30
+ selectedOptionTemplateRef;
31
+ optionTemplateRef;
32
+ nilOptionTemplateRef;
33
+ optionLabelFormat = (option) => (option && this.optionLabel) ? option[this.optionLabel] : option;
34
+ isNil$;
35
+ id$ = new MutableValueModel();
36
+ cookedOptions$;
37
+ trackByIdentity = (index, item) => this.options$.identityOf(item) ?? index;
38
+ constructor() {
39
+ super();
40
+ const { chain } = Dsl.disposeWith(this);
41
+ this.cookedOptions$ = chain(this.options$).reduceToList(options => {
42
+ return options.length < 1 && !isNil(this.componentValue$.value) ? [this.componentValue$.value] : options;
43
+ }, { dependsOn: this.componentValue$ })
44
+ .identifiedWith(this.options$.identityOf);
45
+ this.cookedOptions$ = chain(this.options$)
46
+ .otherwise(chain(this.componentValue$).mapToList(v => [v]))
47
+ .identifiedWith(this.options$.identityOf);
48
+ }
49
+ select(item) {
50
+ this.id$.value = this.options$.identityOf(item);
51
+ }
52
+ ngOnInit() {
53
+ // NOTE: this has to be done after our parameter have been bound or we'll clobber the initial selected values with the writeRight
54
+ const { chain, before, when } = Dsl.disposeWith(this);
55
+ const lookup = chain(this.options$).indexUsing(this.options$.identityOf);
56
+ const self = this;
57
+ const binding = this.registerDisposable(new Binding(this.componentValue$, this.id$, {
58
+ toLeft(selectedId, currentValue) {
59
+ const newValue = lookup.get(selectedId); // the list is empty or we're missing form it so don't touch the real value.
60
+ return isNil(newValue) ? currentValue : newValue;
61
+ },
62
+ leftDependsOn: lookup,
63
+ toRight(selectedValue, selectedId) {
64
+ return self.options$.identityOf(selectedValue);
65
+ }
66
+ })).writeRight();
67
+ // TODO: we have to do this as the options identity function can change from identity to somethign else after
68
+ // we already have an initial value. In that case the stored id will be wrong.
69
+ // Probably a reasonable solution for it be to track changes in the identity function and handle it
70
+ // at a more fundamental level. This may include checking if the function has changed... but currently
71
+ // the function change things under the hood.
72
+ const snapshotValueAndId = (value) => ({
73
+ value: value,
74
+ id: this.options$.identityOf(value)
75
+ });
76
+ let lastIdSnapshot = snapshotValueAndId(this.componentValue$.value);
77
+ console.log(lastIdSnapshot);
78
+ before(this.options$).changes(() => {
79
+ lastIdSnapshot = snapshotValueAndId(this.componentValue$.value);
80
+ console.log(lastIdSnapshot);
81
+ });
82
+ when(this.options$).changes((is, was) => {
83
+ const newIdSnapshot = snapshotValueAndId(lastIdSnapshot.value);
84
+ console.log(lastIdSnapshot, newIdSnapshot);
85
+ if (newIdSnapshot !== lastIdSnapshot.id) {
86
+ this.id$.value = this.options$.identityOf(this.componentValue$.value);
87
+ }
88
+ });
89
+ }
90
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: SelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
91
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.6", type: SelectInputComponent, selector: "aup-select-input", inputs: { options$: "options$", optionsModel: "optionsModel", options: "options", optionLabel: "optionLabel", allowNil: "allowNil", optionLabelFormat: "optionLabelFormat" }, queries: [{ propertyName: "selectedOptionTemplateRef", first: true, predicate: ["selectedOptionTemplate"], descendants: true }, { propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "nilOptionTemplateRef", first: true, predicate: ["nilOptionTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n\n <!--\n TODO: dave has a scenario where the selected item isn't rendering that I can't reproduce so we explicity render it..\n It typically happens because the ngModel value isn't the one contained in the list - this means our source model\n identifyOf function has changed and our id$/lookup$/componentValue$ are out of sync.\n We get around this for now by explicity rendering the component value.\n Please Note: I haven't been able to reproduce this\n -->\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <mat-option *ngIf=\"allowNil\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of cookedOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div class=\"item\" *ngFor=\"let item of cookedOptions$.value\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"\n >\n </ng-container>\n </div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatLegacyError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatLegacyFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLegacyHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLegacyLabel, selector: "mat-label" }, { kind: "component", type: i4.MatLegacySelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "directive", type: i4.MatLegacySelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i5.MatLegacyOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i6.FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }] });
92
+ }
93
+ __decorate([
94
+ TrackExternal({ delegateTo: "_options$" }),
95
+ __metadata("design:type", ListModel)
96
+ ], SelectInputComponent.prototype, "options$", void 0);
97
+ __decorate([
98
+ TrackExternal({ delegateTo: "_options$" }),
99
+ __metadata("design:type", ListModel)
100
+ ], SelectInputComponent.prototype, "optionsModel", void 0);
101
+ __decorate([
102
+ StoreInListModel('optionsModel'),
103
+ __metadata("design:type", Array)
104
+ ], SelectInputComponent.prototype, "options", void 0);
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: SelectInputComponent, decorators: [{
106
+ type: Component,
107
+ args: [{ selector: 'aup-select-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n\n <!--\n TODO: dave has a scenario where the selected item isn't rendering that I can't reproduce so we explicity render it..\n It typically happens because the ngModel value isn't the one contained in the list - this means our source model\n identifyOf function has changed and our id$/lookup$/componentValue$ are out of sync.\n We get around this for now by explicity rendering the component value.\n Please Note: I haven't been able to reproduce this\n -->\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <mat-option *ngIf=\"allowNil\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of cookedOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div class=\"item\" *ngFor=\"let item of cookedOptions$.value\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"\n >\n </ng-container>\n </div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\n"] }]
108
+ }], ctorParameters: function () { return []; }, propDecorators: { options$: [{
109
+ type: Input
110
+ }], optionsModel: [{
111
+ type: Input
112
+ }], options: [{
113
+ type: Input
114
+ }], optionLabel: [{
115
+ type: Input
116
+ }], allowNil: [{
117
+ type: Input
118
+ }], selectedOptionTemplateRef: [{
119
+ type: ContentChild,
120
+ args: ['selectedOptionTemplate']
121
+ }], optionTemplateRef: [{
122
+ type: ContentChild,
123
+ args: ['optionTemplate']
124
+ }], nilOptionTemplateRef: [{
125
+ type: ContentChild,
126
+ args: ['nilOptionTemplate']
127
+ }], optionLabelFormat: [{
128
+ type: Input
129
+ }] } });
130
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci11aS1wb3dlcnVwcy9zcmMvbGliL2NvbXBvbmVudHMvZm9ybXMvc2VsZWN0LWlucHV0L3NlbGVjdC1pbnB1dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL2Zvcm1zL3NlbGVjdC1pbnB1dC9zZWxlY3QtaW5wdXQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxXQUFXLEVBQWtCLE1BQU0sZUFBZSxDQUFDO0FBQ25HLE9BQU8sRUFDTCxPQUFPL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