@theseam/ui-common 0.2.9

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 (1567) hide show
  1. package/asset-reader/asset-reader-helper.service.d.ts +7 -0
  2. package/asset-reader/asset-reader.module.d.ts +2 -0
  3. package/asset-reader/encrypted-asset-link.directive.d.ts +23 -0
  4. package/asset-reader/encrypted-asset-reader.d.ts +24 -0
  5. package/asset-reader/package.json +11 -0
  6. package/asset-reader/public-api.d.ts +4 -0
  7. package/asset-reader/theseam-ui-common-asset-reader.d.ts +4 -0
  8. package/asset-reader/theseam-ui-common-asset-reader.metadata.json +1 -0
  9. package/assets/.gitkeep +0 -0
  10. package/assets/vendor/intl-tel-input/css/intlTelInput.min.css +1 -0
  11. package/assets/vendor/intl-tel-input/img/flags.png +0 -0
  12. package/assets/vendor/intl-tel-input/img/flags@2x.png +0 -0
  13. package/assets/vendor/intl-tel-input/js/utils.js +501 -0
  14. package/breadcrumbs/breadcrumb.d.ts +11 -0
  15. package/breadcrumbs/breadcrumbs/breadcrumbs.component.d.ts +10 -0
  16. package/breadcrumbs/breadcrumbs-resolver.d.ts +5 -0
  17. package/breadcrumbs/breadcrumbs.module.d.ts +2 -0
  18. package/breadcrumbs/breadcrumbs.service.d.ts +20 -0
  19. package/breadcrumbs/package.json +11 -0
  20. package/breadcrumbs/public-api.d.ts +5 -0
  21. package/breadcrumbs/theseam-ui-common-breadcrumbs.d.ts +4 -0
  22. package/breadcrumbs/theseam-ui-common-breadcrumbs.metadata.json +1 -0
  23. package/bundles/theseam-ui-common-asset-reader.umd.js +533 -0
  24. package/bundles/theseam-ui-common-asset-reader.umd.js.map +1 -0
  25. package/bundles/theseam-ui-common-breadcrumbs.umd.js +587 -0
  26. package/bundles/theseam-ui-common-breadcrumbs.umd.js.map +1 -0
  27. package/bundles/theseam-ui-common-buttons.umd.js +719 -0
  28. package/bundles/theseam-ui-common-buttons.umd.js.map +1 -0
  29. package/bundles/theseam-ui-common-card.umd.js +480 -0
  30. package/bundles/theseam-ui-common-card.umd.js.map +1 -0
  31. package/bundles/theseam-ui-common-checkbox.umd.js +650 -0
  32. package/bundles/theseam-ui-common-checkbox.umd.js.map +1 -0
  33. package/bundles/theseam-ui-common-confirm-dialog.umd.js +491 -0
  34. package/bundles/theseam-ui-common-confirm-dialog.umd.js.map +1 -0
  35. package/bundles/theseam-ui-common-core.umd.js +604 -0
  36. package/bundles/theseam-ui-common-core.umd.js.map +1 -0
  37. package/bundles/theseam-ui-common-data-exporter.umd.js +96 -0
  38. package/bundles/theseam-ui-common-data-exporter.umd.js.map +1 -0
  39. package/bundles/theseam-ui-common-data-filters.umd.js +888 -0
  40. package/bundles/theseam-ui-common-data-filters.umd.js.map +1 -0
  41. package/bundles/theseam-ui-common-datatable-dynamic.umd.js +1499 -0
  42. package/bundles/theseam-ui-common-datatable-dynamic.umd.js.map +1 -0
  43. package/bundles/theseam-ui-common-datatable.umd.js +2247 -0
  44. package/bundles/theseam-ui-common-datatable.umd.js.map +1 -0
  45. package/bundles/theseam-ui-common-dynamic-component-loader.umd.js +180 -0
  46. package/bundles/theseam-ui-common-dynamic-component-loader.umd.js.map +1 -0
  47. package/bundles/theseam-ui-common-dynamic.umd.js +1253 -0
  48. package/bundles/theseam-ui-common-dynamic.umd.js.map +1 -0
  49. package/bundles/theseam-ui-common-footer-bar.umd.js +49 -0
  50. package/bundles/theseam-ui-common-footer-bar.umd.js.map +1 -0
  51. package/bundles/theseam-ui-common-form-field-error.umd.js +884 -0
  52. package/bundles/theseam-ui-common-form-field-error.umd.js.map +1 -0
  53. package/bundles/theseam-ui-common-form-field.umd.js +914 -0
  54. package/bundles/theseam-ui-common-form-field.umd.js.map +1 -0
  55. package/bundles/theseam-ui-common-framework.umd.js +3344 -0
  56. package/bundles/theseam-ui-common-framework.umd.js.map +1 -0
  57. package/bundles/theseam-ui-common-graphql.umd.js +357 -0
  58. package/bundles/theseam-ui-common-graphql.umd.js.map +1 -0
  59. package/bundles/theseam-ui-common-icon.umd.js +890 -0
  60. package/bundles/theseam-ui-common-icon.umd.js.map +1 -0
  61. package/bundles/theseam-ui-common-layout.umd.js +119 -0
  62. package/bundles/theseam-ui-common-layout.umd.js.map +1 -0
  63. package/bundles/theseam-ui-common-loading.umd.js +152 -0
  64. package/bundles/theseam-ui-common-loading.umd.js.map +1 -0
  65. package/bundles/theseam-ui-common-menu.umd.js +1152 -0
  66. package/bundles/theseam-ui-common-menu.umd.js.map +1 -0
  67. package/bundles/theseam-ui-common-modal.umd.js +1669 -0
  68. package/bundles/theseam-ui-common-modal.umd.js.map +1 -0
  69. package/bundles/theseam-ui-common-models.umd.js +63 -0
  70. package/bundles/theseam-ui-common-models.umd.js.map +1 -0
  71. package/bundles/theseam-ui-common-popover.umd.js +504 -0
  72. package/bundles/theseam-ui-common-popover.umd.js.map +1 -0
  73. package/bundles/theseam-ui-common-progress.umd.js +420 -0
  74. package/bundles/theseam-ui-common-progress.umd.js.map +1 -0
  75. package/bundles/theseam-ui-common-scrollbar.umd.js +240 -0
  76. package/bundles/theseam-ui-common-scrollbar.umd.js.map +1 -0
  77. package/bundles/theseam-ui-common-services.umd.js +178 -0
  78. package/bundles/theseam-ui-common-services.umd.js.map +1 -0
  79. package/bundles/theseam-ui-common-shared.umd.js +1115 -0
  80. package/bundles/theseam-ui-common-shared.umd.js.map +1 -0
  81. package/bundles/theseam-ui-common-storage.umd.js +178 -0
  82. package/bundles/theseam-ui-common-storage.umd.js.map +1 -0
  83. package/bundles/theseam-ui-common-story-helpers.umd.js +795 -0
  84. package/bundles/theseam-ui-common-story-helpers.umd.js.map +1 -0
  85. package/bundles/theseam-ui-common-tabbed.umd.js +628 -0
  86. package/bundles/theseam-ui-common-tabbed.umd.js.map +1 -0
  87. package/bundles/theseam-ui-common-table-cell-type.umd.js +222 -0
  88. package/bundles/theseam-ui-common-table-cell-type.umd.js.map +1 -0
  89. package/bundles/theseam-ui-common-table-cell-types.umd.js +1174 -0
  90. package/bundles/theseam-ui-common-table-cell-types.umd.js.map +1 -0
  91. package/bundles/theseam-ui-common-table.umd.js +475 -0
  92. package/bundles/theseam-ui-common-table.umd.js.map +1 -0
  93. package/bundles/theseam-ui-common-tel-input.umd.js +1055 -0
  94. package/bundles/theseam-ui-common-tel-input.umd.js.map +1 -0
  95. package/bundles/theseam-ui-common-test-helpers.umd.js +94 -0
  96. package/bundles/theseam-ui-common-test-helpers.umd.js.map +1 -0
  97. package/bundles/theseam-ui-common-tiled-select.umd.js +849 -0
  98. package/bundles/theseam-ui-common-tiled-select.umd.js.map +1 -0
  99. package/bundles/theseam-ui-common-toggle-edit.umd.js +893 -0
  100. package/bundles/theseam-ui-common-toggle-edit.umd.js.map +1 -0
  101. package/bundles/theseam-ui-common-toggle-group.umd.js +629 -0
  102. package/bundles/theseam-ui-common-toggle-group.umd.js.map +1 -0
  103. package/bundles/theseam-ui-common-unsaved-changes-dialog.umd.js +136 -0
  104. package/bundles/theseam-ui-common-unsaved-changes-dialog.umd.js.map +1 -0
  105. package/bundles/theseam-ui-common-utils.umd.js +1245 -0
  106. package/bundles/theseam-ui-common-utils.umd.js.map +1 -0
  107. package/bundles/theseam-ui-common-validators.umd.js +105 -0
  108. package/bundles/theseam-ui-common-validators.umd.js.map +1 -0
  109. package/bundles/theseam-ui-common-viewers.umd.js +699 -0
  110. package/bundles/theseam-ui-common-viewers.umd.js.map +1 -0
  111. package/bundles/theseam-ui-common-widget.umd.js +1710 -0
  112. package/bundles/theseam-ui-common-widget.umd.js.map +1 -0
  113. package/bundles/theseam-ui-common.umd.js +54 -0
  114. package/bundles/theseam-ui-common.umd.js.map +1 -0
  115. package/buttons/badge-button/badge-button.component.d.ts +18 -0
  116. package/buttons/button/button.component.d.ts +28 -0
  117. package/buttons/buttons.module.d.ts +2 -0
  118. package/buttons/package.json +11 -0
  119. package/buttons/progress-circle-button/progress-circle-button.component.d.ts +19 -0
  120. package/buttons/public-api.d.ts +5 -0
  121. package/buttons/theseam-ui-common-buttons.d.ts +4 -0
  122. package/buttons/theseam-ui-common-buttons.metadata.json +1 -0
  123. package/buttons/toggle-button/toggle-button.component.d.ts +26 -0
  124. package/card/card-action/card-action.component.d.ts +9 -0
  125. package/card/card-body/card-body.component.d.ts +12 -0
  126. package/card/card-footer/card-footer.component.d.ts +5 -0
  127. package/card/card-header/card-header.component.d.ts +7 -0
  128. package/card/card.component.d.ts +6 -0
  129. package/card/card.module.d.ts +2 -0
  130. package/card/package.json +11 -0
  131. package/card/public-api.d.ts +6 -0
  132. package/card/theseam-ui-common-card.d.ts +4 -0
  133. package/card/theseam-ui-common-card.metadata.json +1 -0
  134. package/checkbox/checkbox.component.d.ts +140 -0
  135. package/checkbox/checkbox.module.d.ts +2 -0
  136. package/checkbox/package.json +11 -0
  137. package/checkbox/public-api.d.ts +2 -0
  138. package/checkbox/theseam-ui-common-checkbox.d.ts +4 -0
  139. package/checkbox/theseam-ui-common-checkbox.metadata.json +1 -0
  140. package/confirm-dialog/confirm-click.directive.d.ts +24 -0
  141. package/confirm-dialog/confirm-dialog.component.d.ts +6 -0
  142. package/confirm-dialog/confirm-dialog.module.d.ts +2 -0
  143. package/confirm-dialog/confirm-dialog.service.d.ts +11 -0
  144. package/confirm-dialog/package.json +11 -0
  145. package/confirm-dialog/public-api.d.ts +4 -0
  146. package/confirm-dialog/theseam-ui-common-confirm-dialog.d.ts +4 -0
  147. package/confirm-dialog/theseam-ui-common-confirm-dialog.metadata.json +1 -0
  148. package/core/common-behaviors/active.d.ts +8 -0
  149. package/core/common-behaviors/constructor.d.ts +9 -0
  150. package/core/common-behaviors/disabled.d.ts +17 -0
  151. package/core/common-behaviors/element-ref.d.ts +4 -0
  152. package/core/common-behaviors/index.d.ts +9 -0
  153. package/core/common-behaviors/initialized.d.ts +30 -0
  154. package/core/common-behaviors/renderer2.d.ts +4 -0
  155. package/core/common-behaviors/size.d.ts +9 -0
  156. package/core/common-behaviors/tabindex.d.ts +18 -0
  157. package/core/common-behaviors/theme.d.ts +10 -0
  158. package/core/input-decorators/index.d.ts +2 -0
  159. package/core/input-decorators/input-boolean.decorator.d.ts +12 -0
  160. package/core/input-decorators/input-number.decorator.d.ts +12 -0
  161. package/core/package.json +11 -0
  162. package/core/public-api.d.ts +2 -0
  163. package/core/theseam-ui-common-core.d.ts +4 -0
  164. package/core/theseam-ui-common-core.metadata.json +1 -0
  165. package/data-exporter/data-exporter.d.ts +30 -0
  166. package/data-exporter/data-exporter.module.d.ts +2 -0
  167. package/data-exporter/exporters/csv-exporter.d.ts +8 -0
  168. package/data-exporter/exporters/xlsx-exporter.d.ts +8 -0
  169. package/data-exporter/package.json +11 -0
  170. package/data-exporter/public-api.d.ts +4 -0
  171. package/data-exporter/theseam-ui-common-data-exporter.d.ts +4 -0
  172. package/data-exporter/theseam-ui-common-data-exporter.metadata.json +1 -0
  173. package/data-filters/data-filter-container.d.ts +8 -0
  174. package/data-filters/data-filter-def.d.ts +10 -0
  175. package/data-filters/data-filter.d.ts +49 -0
  176. package/data-filters/data-filters.module.d.ts +2 -0
  177. package/data-filters/filters/data-filter-search/data-filter-search.component.d.ts +36 -0
  178. package/data-filters/filters/data-filter-search/search-filter-options.d.ts +2 -0
  179. package/data-filters/filters/data-filter-text/data-filter-text.component.d.ts +34 -0
  180. package/data-filters/filters/data-filter-text/text-filter-options.d.ts +25 -0
  181. package/data-filters/filters/data-filter-toggle-buttons/data-filter-toggle-buttons.component.d.ts +43 -0
  182. package/data-filters/package.json +11 -0
  183. package/data-filters/public-api.d.ts +9 -0
  184. package/data-filters/theseam-ui-common-data-filters.d.ts +4 -0
  185. package/data-filters/theseam-ui-common-data-filters.metadata.json +1 -0
  186. package/datatable/datatable/datatable.component.d.ts +195 -0
  187. package/datatable/datatable-action-menu/datatable-action-menu.component.d.ts +15 -0
  188. package/datatable/datatable-action-menu-item/datatable-action-menu-item.component.d.ts +28 -0
  189. package/datatable/datatable-column/datatable-column.component.d.ts +41 -0
  190. package/datatable/datatable-column-preferences/datatable-column-preferences.component.d.ts +14 -0
  191. package/datatable/datatable-column-preferences-button/datatable-column-preferences-button.component.d.ts +6 -0
  192. package/datatable/datatable-export-button/datatable-export-button.component.d.ts +24 -0
  193. package/datatable/datatable-menu-bar/datatable-menu-bar.component.d.ts +17 -0
  194. package/datatable/datatable-menu-bar-column-center/datatable-menu-bar-column-center.component.d.ts +5 -0
  195. package/datatable/datatable-menu-bar-column-left/datatable-menu-bar-column-left.component.d.ts +5 -0
  196. package/datatable/datatable-menu-bar-column-right/datatable-menu-bar-column-right.component.d.ts +5 -0
  197. package/datatable/datatable-menu-bar-row/datatable-menu-bar-row.component.d.ts +5 -0
  198. package/datatable/datatable-menu-bar-text/datatable-menu-bar-text.component.d.ts +10 -0
  199. package/datatable/datatable-row-detail/datatable-row-detail-tpl.directive.d.ts +5 -0
  200. package/datatable/datatable-row-detail/datatable-row-detail.directive.d.ts +37 -0
  201. package/datatable/datatable.module.d.ts +2 -0
  202. package/datatable/directives/datatable-action-menu-item.directive.d.ts +35 -0
  203. package/datatable/directives/datatable-action-menu-toggle.directive.d.ts +27 -0
  204. package/datatable/directives/datatable-cell-tpl.directive.d.ts +5 -0
  205. package/datatable/directives/datatable-filter.directive.d.ts +6 -0
  206. package/datatable/directives/datatable-row-action-item.directive.d.ts +5 -0
  207. package/datatable/models/datatable-accessor.d.ts +19 -0
  208. package/datatable/models/datatable-data-source.d.ts +14 -0
  209. package/datatable/models/datatable-gql-data-source.d.ts +7 -0
  210. package/datatable/models/menubar-item-data.d.ts +3 -0
  211. package/datatable/models/page-info.d.ts +6 -0
  212. package/datatable/models/preferences-accessor.d.ts +15 -0
  213. package/datatable/models/preferences.d.ts +9 -0
  214. package/datatable/models/sort-event.d.ts +4 -0
  215. package/datatable/models/sort-item.d.ts +4 -0
  216. package/datatable/models/table-column.d.ts +14 -0
  217. package/datatable/package.json +11 -0
  218. package/datatable/public-api.d.ts +38 -0
  219. package/datatable/services/datatable-column-changes.service.d.ts +6 -0
  220. package/datatable/services/datatable-preferences.service.d.ts +19 -0
  221. package/datatable/services/datatable-scrollbar-helper.service.d.ts +19 -0
  222. package/datatable/theseam-ui-common-datatable.d.ts +5 -0
  223. package/datatable/theseam-ui-common-datatable.metadata.json +1 -0
  224. package/datatable/tokens/datatable-accessor.d.ts +3 -0
  225. package/datatable/tokens/datatable-preferences-accessor.d.ts +3 -0
  226. package/datatable/tokens/menubar-item-data.d.ts +3 -0
  227. package/datatable/utils/with-stored-column-info.d.ts +3 -0
  228. package/datatable-dynamic/datatable-dynamic-action-menu/datatable-dynamic-action-menu.component.d.ts +32 -0
  229. package/datatable-dynamic/datatable-dynamic-def.d.ts +71 -0
  230. package/datatable-dynamic/datatable-dynamic-filter-container/datatable-dynamic-filter-container.component.d.ts +15 -0
  231. package/datatable-dynamic/datatable-dynamic-menu-bar-content/datatable-dynamic-menu-bar-content.component.d.ts +61 -0
  232. package/datatable-dynamic/datatable-dynamic-menu-bar-item-manifest.d.ts +16 -0
  233. package/datatable-dynamic/datatable-dynamic-menu-bar-token.d.ts +3 -0
  234. package/datatable-dynamic/datatable-dynamic.component.d.ts +89 -0
  235. package/datatable-dynamic/datatable-dynamic.module.d.ts +2 -0
  236. package/datatable-dynamic/directives/datatable-dynamic-action-menu-item.directive.d.ts +73 -0
  237. package/datatable-dynamic/dynamic-datatable-def.service.d.ts +59 -0
  238. package/datatable-dynamic/dynamic-datatable-row-actions.service.d.ts +16 -0
  239. package/datatable-dynamic/models/dynamic-datatable-action-menu-record.d.ts +17 -0
  240. package/datatable-dynamic/models/dynamic-datatable-filter-menu-item.d.ts +7 -0
  241. package/datatable-dynamic/models/dynamic-datatable-menu-bar.d.ts +63 -0
  242. package/datatable-dynamic/models/dynamic-datatable-row-action-context.d.ts +5 -0
  243. package/datatable-dynamic/models/dynamic-datatable-row-action.d.ts +17 -0
  244. package/datatable-dynamic/models/index.d.ts +5 -0
  245. package/datatable-dynamic/package.json +11 -0
  246. package/datatable-dynamic/public-api.d.ts +13 -0
  247. package/datatable-dynamic/theseam-ui-common-datatable-dynamic.d.ts +4 -0
  248. package/datatable-dynamic/theseam-ui-common-datatable-dynamic.metadata.json +1 -0
  249. package/datatable-dynamic/utils/defaults/set-dynamic-datatable-columns-defaults.d.ts +2 -0
  250. package/datatable-dynamic/utils/defaults/set-dynamic-datatable-def-defaults.d.ts +2 -0
  251. package/datatable-dynamic/utils/defaults/set-dynamic-datatable-filter-menu-defaults.d.ts +2 -0
  252. package/datatable-dynamic/utils/defaults/set-dynamic-datatable-options-defaults.d.ts +2 -0
  253. package/datatable-dynamic/utils/index.d.ts +4 -0
  254. package/dynamic/action/api/dynamic-action-api-def.d.ts +35 -0
  255. package/dynamic/action/api/dynamic-action-api-errors.d.ts +1 -0
  256. package/dynamic/action/api/dynamic-action-api.d.ts +3 -0
  257. package/dynamic/action/api/dynamic-action-api.service.d.ts +30 -0
  258. package/dynamic/action/dynamic-action-helper.service.d.ts +36 -0
  259. package/dynamic/action/index.d.ts +10 -0
  260. package/dynamic/action/link/dynamic-action-link-def.d.ts +58 -0
  261. package/dynamic/action/link/dynamic-action-link.d.ts +3 -0
  262. package/dynamic/action/link/dynamic-action-link.service.d.ts +14 -0
  263. package/dynamic/action/modal/dynamic-action-modal-def.d.ts +10 -0
  264. package/dynamic/action/modal/dynamic-action-modal.d.ts +3 -0
  265. package/dynamic/action/modal/dynamic-action-modal.service.d.ts +29 -0
  266. package/dynamic/dynamic-value-helper.service.d.ts +34 -0
  267. package/dynamic/evaluators/exporters-data-evaluator/exporters-data-evaluator.d.ts +16 -0
  268. package/dynamic/evaluators/exporters-data-evaluator/exporters-data-value.d.ts +8 -0
  269. package/dynamic/evaluators/exporters-data-evaluator/index.d.ts +2 -0
  270. package/dynamic/evaluators/index.d.ts +2 -0
  271. package/dynamic/evaluators/jexl-evaluator/index.d.ts +2 -0
  272. package/dynamic/evaluators/jexl-evaluator/jexl-evaluator.d.ts +9 -0
  273. package/dynamic/evaluators/jexl-evaluator/jexl-value.d.ts +11 -0
  274. package/dynamic/models/dynamic-action-confirm-def.d.ts +10 -0
  275. package/dynamic/models/dynamic-action-context.d.ts +2 -0
  276. package/dynamic/models/dynamic-action-def.d.ts +9 -0
  277. package/dynamic/models/dynamic-action-ui-anchor-def.d.ts +39 -0
  278. package/dynamic/models/dynamic-action-ui-button-def.d.ts +13 -0
  279. package/dynamic/models/dynamic-action-ui-def.d.ts +37 -0
  280. package/dynamic/models/dynamic-action.d.ts +11 -0
  281. package/dynamic/models/dynamic-value-base-type.d.ts +4 -0
  282. package/dynamic/models/dynamic-value-evaluatable-type.d.ts +2 -0
  283. package/dynamic/models/dynamic-value-evaluator.d.ts +6 -0
  284. package/dynamic/models/dynamic-value-primitive.d.ts +1 -0
  285. package/dynamic/models/dynamic-value-type.d.ts +4 -0
  286. package/dynamic/models/dynamic-value.d.ts +3 -0
  287. package/dynamic/models/index.d.ts +13 -0
  288. package/dynamic/package.json +11 -0
  289. package/dynamic/public-api.d.ts +6 -0
  290. package/dynamic/theseam-ui-common-dynamic.d.ts +4 -0
  291. package/dynamic/theseam-ui-common-dynamic.metadata.json +1 -0
  292. package/dynamic/tokens/api-config.d.ts +30 -0
  293. package/dynamic/tokens/dynamic-action.d.ts +3 -0
  294. package/dynamic/tokens/dynamic-data.d.ts +2 -0
  295. package/dynamic/tokens/dynamic-value-evaluator.d.ts +3 -0
  296. package/dynamic/tokens/index.d.ts +4 -0
  297. package/dynamic/utils/index.d.ts +1 -0
  298. package/dynamic/utils/is-action-type.d.ts +2 -0
  299. package/dynamic-component-loader/dynamic-component-loader.module.d.ts +7 -0
  300. package/dynamic-component-loader/dynamic-component-loader.service.d.ts +15 -0
  301. package/dynamic-component-loader/dynamic-component-manifest.d.ts +9 -0
  302. package/dynamic-component-loader/dynamic-component-tokens.d.ts +4 -0
  303. package/dynamic-component-loader/package.json +11 -0
  304. package/dynamic-component-loader/public-api.d.ts +4 -0
  305. package/dynamic-component-loader/theseam-ui-common-dynamic-component-loader.d.ts +4 -0
  306. package/dynamic-component-loader/theseam-ui-common-dynamic-component-loader.metadata.json +1 -0
  307. package/esm2015/asset-reader/asset-reader-helper.service.js +68 -0
  308. package/esm2015/asset-reader/asset-reader.module.js +15 -0
  309. package/esm2015/asset-reader/encrypted-asset-link.directive.js +69 -0
  310. package/esm2015/asset-reader/encrypted-asset-reader.js +20 -0
  311. package/esm2015/asset-reader/public-api.js +5 -0
  312. package/esm2015/asset-reader/theseam-ui-common-asset-reader.js +5 -0
  313. package/esm2015/breadcrumbs/breadcrumb.js +2 -0
  314. package/esm2015/breadcrumbs/breadcrumbs/breadcrumbs.component.js +21 -0
  315. package/esm2015/breadcrumbs/breadcrumbs-resolver.js +2 -0
  316. package/esm2015/breadcrumbs/breadcrumbs.module.js +21 -0
  317. package/esm2015/breadcrumbs/breadcrumbs.service.js +158 -0
  318. package/esm2015/breadcrumbs/public-api.js +6 -0
  319. package/esm2015/breadcrumbs/theseam-ui-common-breadcrumbs.js +5 -0
  320. package/esm2015/buttons/badge-button/badge-button.component.js +79 -0
  321. package/esm2015/buttons/button/button.component.js +111 -0
  322. package/esm2015/buttons/buttons.module.js +34 -0
  323. package/esm2015/buttons/progress-circle-button/progress-circle-button.component.js +60 -0
  324. package/esm2015/buttons/public-api.js +6 -0
  325. package/esm2015/buttons/theseam-ui-common-buttons.js +5 -0
  326. package/esm2015/buttons/toggle-button/toggle-button.component.js +88 -0
  327. package/esm2015/card/card-action/card-action.component.js +27 -0
  328. package/esm2015/card/card-body/card-body.component.js +32 -0
  329. package/esm2015/card/card-footer/card-footer.component.js +15 -0
  330. package/esm2015/card/card-header/card-header.component.js +22 -0
  331. package/esm2015/card/card.component.js +20 -0
  332. package/esm2015/card/card.module.js +33 -0
  333. package/esm2015/card/public-api.js +7 -0
  334. package/esm2015/card/theseam-ui-common-card.js +5 -0
  335. package/esm2015/checkbox/checkbox.component.js +276 -0
  336. package/esm2015/checkbox/checkbox.module.js +21 -0
  337. package/esm2015/checkbox/public-api.js +3 -0
  338. package/esm2015/checkbox/theseam-ui-common-checkbox.js +5 -0
  339. package/esm2015/confirm-dialog/confirm-click.directive.js +62 -0
  340. package/esm2015/confirm-dialog/confirm-dialog.component.js +20 -0
  341. package/esm2015/confirm-dialog/confirm-dialog.module.js +35 -0
  342. package/esm2015/confirm-dialog/confirm-dialog.service.js +38 -0
  343. package/esm2015/confirm-dialog/public-api.js +5 -0
  344. package/esm2015/confirm-dialog/theseam-ui-common-confirm-dialog.js +5 -0
  345. package/esm2015/core/common-behaviors/active.js +13 -0
  346. package/esm2015/core/common-behaviors/constructor.js +9 -0
  347. package/esm2015/core/common-behaviors/disabled.js +20 -0
  348. package/esm2015/core/common-behaviors/element-ref.js +2 -0
  349. package/esm2015/core/common-behaviors/index.js +10 -0
  350. package/esm2015/core/common-behaviors/initialized.js +62 -0
  351. package/esm2015/core/common-behaviors/renderer2.js +2 -0
  352. package/esm2015/core/common-behaviors/size.js +24 -0
  353. package/esm2015/core/common-behaviors/tabindex.js +22 -0
  354. package/esm2015/core/common-behaviors/theme.js +24 -0
  355. package/esm2015/core/input-decorators/index.js +3 -0
  356. package/esm2015/core/input-decorators/input-boolean.decorator.js +27 -0
  357. package/esm2015/core/input-decorators/input-number.decorator.js +27 -0
  358. package/esm2015/core/public-api.js +3 -0
  359. package/esm2015/core/theseam-ui-common-core.js +5 -0
  360. package/esm2015/data-exporter/data-exporter.js +7 -0
  361. package/esm2015/data-exporter/data-exporter.module.js +17 -0
  362. package/esm2015/data-exporter/exporters/csv-exporter.js +32 -0
  363. package/esm2015/data-exporter/exporters/xlsx-exporter.js +30 -0
  364. package/esm2015/data-exporter/public-api.js +5 -0
  365. package/esm2015/data-exporter/theseam-ui-common-data-exporter.js +5 -0
  366. package/esm2015/data-filters/data-filter-container.js +3 -0
  367. package/esm2015/data-filters/data-filter-def.js +3 -0
  368. package/esm2015/data-filters/data-filter.js +22 -0
  369. package/esm2015/data-filters/data-filters.module.js +50 -0
  370. package/esm2015/data-filters/filters/data-filter-search/data-filter-search.component.js +110 -0
  371. package/esm2015/data-filters/filters/data-filter-search/search-filter-options.js +2 -0
  372. package/esm2015/data-filters/filters/data-filter-text/data-filter-text.component.js +138 -0
  373. package/esm2015/data-filters/filters/data-filter-text/text-filter-options.js +2 -0
  374. package/esm2015/data-filters/filters/data-filter-toggle-buttons/data-filter-toggle-buttons.component.js +151 -0
  375. package/esm2015/data-filters/public-api.js +10 -0
  376. package/esm2015/data-filters/theseam-ui-common-data-filters.js +5 -0
  377. package/esm2015/datatable/datatable/datatable.component.js +584 -0
  378. package/esm2015/datatable/datatable-action-menu/datatable-action-menu.component.js +101 -0
  379. package/esm2015/datatable/datatable-action-menu-item/datatable-action-menu-item.component.js +30 -0
  380. package/esm2015/datatable/datatable-column/datatable-column.component.js +83 -0
  381. package/esm2015/datatable/datatable-column-preferences/datatable-column-preferences.component.js +46 -0
  382. package/esm2015/datatable/datatable-column-preferences-button/datatable-column-preferences-button.component.js +18 -0
  383. package/esm2015/datatable/datatable-export-button/datatable-export-button.component.js +98 -0
  384. package/esm2015/datatable/datatable-menu-bar/datatable-menu-bar.component.js +55 -0
  385. package/esm2015/datatable/datatable-menu-bar-column-center/datatable-menu-bar-column-center.component.js +16 -0
  386. package/esm2015/datatable/datatable-menu-bar-column-left/datatable-menu-bar-column-left.component.js +16 -0
  387. package/esm2015/datatable/datatable-menu-bar-column-right/datatable-menu-bar-column-right.component.js +16 -0
  388. package/esm2015/datatable/datatable-menu-bar-row/datatable-menu-bar-row.component.js +16 -0
  389. package/esm2015/datatable/datatable-menu-bar-text/datatable-menu-bar-text.component.js +32 -0
  390. package/esm2015/datatable/datatable-row-detail/datatable-row-detail-tpl.directive.js +15 -0
  391. package/esm2015/datatable/datatable-row-detail/datatable-row-detail.directive.js +69 -0
  392. package/esm2015/datatable/datatable.module.js +120 -0
  393. package/esm2015/datatable/directives/datatable-action-menu-item.directive.js +46 -0
  394. package/esm2015/datatable/directives/datatable-action-menu-toggle.directive.js +128 -0
  395. package/esm2015/datatable/directives/datatable-cell-tpl.directive.js +15 -0
  396. package/esm2015/datatable/directives/datatable-filter.directive.js +21 -0
  397. package/esm2015/datatable/directives/datatable-row-action-item.directive.js +15 -0
  398. package/esm2015/datatable/models/datatable-accessor.js +2 -0
  399. package/esm2015/datatable/models/datatable-data-source.js +42 -0
  400. package/esm2015/datatable/models/datatable-gql-data-source.js +15 -0
  401. package/esm2015/datatable/models/menubar-item-data.js +2 -0
  402. package/esm2015/datatable/models/page-info.js +2 -0
  403. package/esm2015/datatable/models/preferences-accessor.js +2 -0
  404. package/esm2015/datatable/models/preferences.js +2 -0
  405. package/esm2015/datatable/models/sort-event.js +2 -0
  406. package/esm2015/datatable/models/sort-item.js +2 -0
  407. package/esm2015/datatable/models/table-column.js +2 -0
  408. package/esm2015/datatable/public-api.js +39 -0
  409. package/esm2015/datatable/services/datatable-column-changes.service.js +17 -0
  410. package/esm2015/datatable/services/datatable-preferences.service.js +113 -0
  411. package/esm2015/datatable/services/datatable-scrollbar-helper.service.js +51 -0
  412. package/esm2015/datatable/theseam-ui-common-datatable.js +6 -0
  413. package/esm2015/datatable/tokens/datatable-accessor.js +3 -0
  414. package/esm2015/datatable/tokens/datatable-preferences-accessor.js +3 -0
  415. package/esm2015/datatable/tokens/menubar-item-data.js +3 -0
  416. package/esm2015/datatable/utils/with-stored-column-info.js +20 -0
  417. package/esm2015/datatable-dynamic/datatable-dynamic-action-menu/datatable-dynamic-action-menu.component.js +119 -0
  418. package/esm2015/datatable-dynamic/datatable-dynamic-def.js +2 -0
  419. package/esm2015/datatable-dynamic/datatable-dynamic-filter-container/datatable-dynamic-filter-container.component.js +53 -0
  420. package/esm2015/datatable-dynamic/datatable-dynamic-menu-bar-content/datatable-dynamic-menu-bar-content.component.js +160 -0
  421. package/esm2015/datatable-dynamic/datatable-dynamic-menu-bar-item-manifest.js +2 -0
  422. package/esm2015/datatable-dynamic/datatable-dynamic-menu-bar-token.js +3 -0
  423. package/esm2015/datatable-dynamic/datatable-dynamic.component.js +75 -0
  424. package/esm2015/datatable-dynamic/datatable-dynamic.module.js +49 -0
  425. package/esm2015/datatable-dynamic/directives/datatable-dynamic-action-menu-item.directive.js +408 -0
  426. package/esm2015/datatable-dynamic/dynamic-datatable-def.service.js +84 -0
  427. package/esm2015/datatable-dynamic/dynamic-datatable-row-actions.service.js +47 -0
  428. package/esm2015/datatable-dynamic/models/dynamic-datatable-action-menu-record.js +2 -0
  429. package/esm2015/datatable-dynamic/models/dynamic-datatable-filter-menu-item.js +2 -0
  430. package/esm2015/datatable-dynamic/models/dynamic-datatable-menu-bar.js +2 -0
  431. package/esm2015/datatable-dynamic/models/dynamic-datatable-row-action-context.js +2 -0
  432. package/esm2015/datatable-dynamic/models/dynamic-datatable-row-action.js +2 -0
  433. package/esm2015/datatable-dynamic/models/index.js +6 -0
  434. package/esm2015/datatable-dynamic/public-api.js +14 -0
  435. package/esm2015/datatable-dynamic/theseam-ui-common-datatable-dynamic.js +5 -0
  436. package/esm2015/datatable-dynamic/utils/defaults/set-dynamic-datatable-columns-defaults.js +8 -0
  437. package/esm2015/datatable-dynamic/utils/defaults/set-dynamic-datatable-def-defaults.js +13 -0
  438. package/esm2015/datatable-dynamic/utils/defaults/set-dynamic-datatable-filter-menu-defaults.js +6 -0
  439. package/esm2015/datatable-dynamic/utils/defaults/set-dynamic-datatable-options-defaults.js +6 -0
  440. package/esm2015/datatable-dynamic/utils/index.js +5 -0
  441. package/esm2015/dynamic/action/api/dynamic-action-api-def.js +2 -0
  442. package/esm2015/dynamic/action/api/dynamic-action-api-errors.js +4 -0
  443. package/esm2015/dynamic/action/api/dynamic-action-api.js +2 -0
  444. package/esm2015/dynamic/action/api/dynamic-action-api.service.js +215 -0
  445. package/esm2015/dynamic/action/dynamic-action-helper.service.js +163 -0
  446. package/esm2015/dynamic/action/index.js +11 -0
  447. package/esm2015/dynamic/action/link/dynamic-action-link-def.js +2 -0
  448. package/esm2015/dynamic/action/link/dynamic-action-link.js +2 -0
  449. package/esm2015/dynamic/action/link/dynamic-action-link.service.js +50 -0
  450. package/esm2015/dynamic/action/modal/dynamic-action-modal-def.js +2 -0
  451. package/esm2015/dynamic/action/modal/dynamic-action-modal.js +2 -0
  452. package/esm2015/dynamic/action/modal/dynamic-action-modal.service.js +92 -0
  453. package/esm2015/dynamic/dynamic-value-helper.service.js +101 -0
  454. package/esm2015/dynamic/evaluators/exporters-data-evaluator/exporters-data-evaluator.js +33 -0
  455. package/esm2015/dynamic/evaluators/exporters-data-evaluator/exporters-data-value.js +2 -0
  456. package/esm2015/dynamic/evaluators/exporters-data-evaluator/index.js +3 -0
  457. package/esm2015/dynamic/evaluators/index.js +3 -0
  458. package/esm2015/dynamic/evaluators/jexl-evaluator/index.js +3 -0
  459. package/esm2015/dynamic/evaluators/jexl-evaluator/jexl-evaluator.js +29 -0
  460. package/esm2015/dynamic/evaluators/jexl-evaluator/jexl-value.js +2 -0
  461. package/esm2015/dynamic/models/dynamic-action-confirm-def.js +2 -0
  462. package/esm2015/dynamic/models/dynamic-action-context.js +2 -0
  463. package/esm2015/dynamic/models/dynamic-action-def.js +3 -0
  464. package/esm2015/dynamic/models/dynamic-action-ui-anchor-def.js +2 -0
  465. package/esm2015/dynamic/models/dynamic-action-ui-button-def.js +2 -0
  466. package/esm2015/dynamic/models/dynamic-action-ui-def.js +2 -0
  467. package/esm2015/dynamic/models/dynamic-action.js +2 -0
  468. package/esm2015/dynamic/models/dynamic-value-base-type.js +2 -0
  469. package/esm2015/dynamic/models/dynamic-value-evaluatable-type.js +2 -0
  470. package/esm2015/dynamic/models/dynamic-value-evaluator.js +2 -0
  471. package/esm2015/dynamic/models/dynamic-value-primitive.js +2 -0
  472. package/esm2015/dynamic/models/dynamic-value-type.js +2 -0
  473. package/esm2015/dynamic/models/dynamic-value.js +2 -0
  474. package/esm2015/dynamic/models/index.js +14 -0
  475. package/esm2015/dynamic/public-api.js +7 -0
  476. package/esm2015/dynamic/theseam-ui-common-dynamic.js +5 -0
  477. package/esm2015/dynamic/tokens/api-config.js +29 -0
  478. package/esm2015/dynamic/tokens/dynamic-action.js +3 -0
  479. package/esm2015/dynamic/tokens/dynamic-data.js +3 -0
  480. package/esm2015/dynamic/tokens/dynamic-value-evaluator.js +3 -0
  481. package/esm2015/dynamic/tokens/index.js +5 -0
  482. package/esm2015/dynamic/utils/index.js +2 -0
  483. package/esm2015/dynamic/utils/is-action-type.js +4 -0
  484. package/esm2015/dynamic-component-loader/dynamic-component-loader.module.js +47 -0
  485. package/esm2015/dynamic-component-loader/dynamic-component-loader.service.js +91 -0
  486. package/esm2015/dynamic-component-loader/dynamic-component-manifest.js +2 -0
  487. package/esm2015/dynamic-component-loader/dynamic-component-tokens.js +5 -0
  488. package/esm2015/dynamic-component-loader/public-api.js +5 -0
  489. package/esm2015/dynamic-component-loader/theseam-ui-common-dynamic-component-loader.js +5 -0
  490. package/esm2015/footer-bar/footer-bar/footer-bar.component.js +16 -0
  491. package/esm2015/footer-bar/footer-bar.module.js +15 -0
  492. package/esm2015/footer-bar/public-api.js +3 -0
  493. package/esm2015/footer-bar/theseam-ui-common-footer-bar.js +5 -0
  494. package/esm2015/form-field/form-field-error.directive.js +28 -0
  495. package/esm2015/form-field/form-field-help-text.directive.js +15 -0
  496. package/esm2015/form-field/form-field-label-tpl.directive.js +15 -0
  497. package/esm2015/form-field/form-field-required-indicator.component.js +38 -0
  498. package/esm2015/form-field/form-field.component.js +193 -0
  499. package/esm2015/form-field/form-field.module.js +40 -0
  500. package/esm2015/form-field/input.directive.js +195 -0
  501. package/esm2015/form-field/public-api.js +8 -0
  502. package/esm2015/form-field/theseam-ui-common-form-field.js +5 -0
  503. package/esm2015/form-field-error/form-field-error/form-field-error.component.js +27 -0
  504. package/esm2015/form-field-error/form-field-error-list/form-field-error-list-item-tpl.directive.js +25 -0
  505. package/esm2015/form-field-error/form-field-error-list/form-field-error-list-item.directive.js +18 -0
  506. package/esm2015/form-field-error/form-field-error-list/form-field-error-list.component.js +370 -0
  507. package/esm2015/form-field-error/form-field-error.module.js +28 -0
  508. package/esm2015/form-field-error/public-api.js +6 -0
  509. package/esm2015/form-field-error/theseam-ui-common-form-field-error.js +5 -0
  510. package/esm2015/framework/base-layout/base-layout-action.js +2 -0
  511. package/esm2015/framework/base-layout/base-layout-nav.js +2 -0
  512. package/esm2015/framework/base-layout/base-layout-ref.js +2 -0
  513. package/esm2015/framework/base-layout/base-layout-tokens.js +3 -0
  514. package/esm2015/framework/base-layout/base-layout.component.js +117 -0
  515. package/esm2015/framework/base-layout/base-layout.module.js +45 -0
  516. package/esm2015/framework/base-layout/directives/base-layout-content-footer.directive.js +15 -0
  517. package/esm2015/framework/base-layout/directives/base-layout-content-header.directive.js +15 -0
  518. package/esm2015/framework/base-layout/directives/base-layout-content.directive.js +15 -0
  519. package/esm2015/framework/base-layout/directives/base-layout-nav-toggle.directive.js +37 -0
  520. package/esm2015/framework/base-layout/directives/base-layout-side-bar.directive.js +15 -0
  521. package/esm2015/framework/base-layout/directives/base-layout-top-bar.directive.js +15 -0
  522. package/esm2015/framework/base-layout/index.js +13 -0
  523. package/esm2015/framework/dashboard/dashboard-widget-container/dashboard-widget-container.component.js +19 -0
  524. package/esm2015/framework/dashboard/dashboard-widget-template-container/dashboard-widget-template-container.component.js +25 -0
  525. package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widget-portal-outlet.directive.js +121 -0
  526. package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widgets-item.js +2 -0
  527. package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor-token.js +3 -0
  528. package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor.js +2 -0
  529. package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences.service.js +173 -0
  530. package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widgets.component.js +176 -0
  531. package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widgets.service.js +165 -0
  532. package/esm2015/framework/dashboard/dashboard.component.js +25 -0
  533. package/esm2015/framework/dashboard/dashboard.module.js +39 -0
  534. package/esm2015/framework/dashboard/index.js +12 -0
  535. package/esm2015/framework/dynamic-router/dynamic-route-def.js +2 -0
  536. package/esm2015/framework/dynamic-router/dynamic-router.module.js +21 -0
  537. package/esm2015/framework/dynamic-router/hierarchy-router-outlet/hierarchy-route-animations.js +256 -0
  538. package/esm2015/framework/dynamic-router/hierarchy-router-outlet/hierarchy-router-outlet.component.js +114 -0
  539. package/esm2015/framework/dynamic-router/index.js +6 -0
  540. package/esm2015/framework/dynamic-router/resolvers/hierarchy-level.resolver.js +26 -0
  541. package/esm2015/framework/public-api.js +7 -0
  542. package/esm2015/framework/schema-form/index.js +4 -0
  543. package/esm2015/framework/schema-form/schema-form-framework.component.js +16 -0
  544. package/esm2015/framework/schema-form/schema-form-framework.js +27 -0
  545. package/esm2015/framework/schema-form/schema-form.module.js +35 -0
  546. package/esm2015/framework/schema-form-controls/schema-form-checkbox/schema-form-checkbox.component.js +41 -0
  547. package/esm2015/framework/schema-form-controls/schema-form-controls.module.js +50 -0
  548. package/esm2015/framework/schema-form-controls/schema-form-input/schema-form-input.component.js +34 -0
  549. package/esm2015/framework/schema-form-controls/schema-form-number/schema-form-number.component.js +40 -0
  550. package/esm2015/framework/schema-form-controls/schema-form-select/schema-form-select.component.js +36 -0
  551. package/esm2015/framework/schema-form-controls/schema-form-submit/schema-form-submit.component.js +46 -0
  552. package/esm2015/framework/schema-form-controls/schema-form-submit-split/schema-form-submit-split.component.js +142 -0
  553. package/esm2015/framework/side-nav/index.js +7 -0
  554. package/esm2015/framework/side-nav/side-nav-item/side-nav-item.component.js +151 -0
  555. package/esm2015/framework/side-nav/side-nav-toggle/side-nav-toggle.component.js +36 -0
  556. package/esm2015/framework/side-nav/side-nav-utils.js +81 -0
  557. package/esm2015/framework/side-nav/side-nav.component.js +195 -0
  558. package/esm2015/framework/side-nav/side-nav.models.js +2 -0
  559. package/esm2015/framework/side-nav/side-nav.module.js +37 -0
  560. package/esm2015/framework/side-nav/side-nav.service.js +174 -0
  561. package/esm2015/framework/theseam-ui-common-framework.js +13 -0
  562. package/esm2015/framework/top-bar/index.js +8 -0
  563. package/esm2015/framework/top-bar/top-bar-item.directive.js +15 -0
  564. package/esm2015/framework/top-bar/top-bar-menu-btn-detail.directive.js +15 -0
  565. package/esm2015/framework/top-bar/top-bar-menu-button/top-bar-menu-button.component.js +53 -0
  566. package/esm2015/framework/top-bar/top-bar-menu.directive.js +16 -0
  567. package/esm2015/framework/top-bar/top-bar-title/top-bar-title.component.js +19 -0
  568. package/esm2015/framework/top-bar/top-bar.component.js +82 -0
  569. package/esm2015/framework/top-bar/top-bar.module.js +46 -0
  570. package/esm2015/graphql/models/direction.js +8 -0
  571. package/esm2015/graphql/models/hint-definition.js +2 -0
  572. package/esm2015/graphql/models/hint-transform-operation.js +2 -0
  573. package/esm2015/graphql/models/hint-transformer.js +2 -0
  574. package/esm2015/graphql/models/hints-kind.js +9 -0
  575. package/esm2015/graphql/models/hints-token.js +2 -0
  576. package/esm2015/graphql/models/index.js +9 -0
  577. package/esm2015/graphql/models/query-processing-config.js +2 -0
  578. package/esm2015/graphql/models/variable.js +7 -0
  579. package/esm2015/graphql/public-api.js +2 -0
  580. package/esm2015/graphql/theseam-ui-common-graphql.js +5 -0
  581. package/esm2015/graphql/utils/contains-variable.js +14 -0
  582. package/esm2015/graphql/utils/gql-var.js +4 -0
  583. package/esm2015/graphql/utils/hints-tokens-containing-hint.js +4 -0
  584. package/esm2015/graphql/utils/index.js +11 -0
  585. package/esm2015/graphql/utils/inline-variables.js +50 -0
  586. package/esm2015/graphql/utils/parse-comments.js +24 -0
  587. package/esm2015/graphql/utils/parse-hints.js +116 -0
  588. package/esm2015/graphql/utils/remove-variable-definition.js +14 -0
  589. package/esm2015/graphql/utils/remove-variable-definitions-not-defined.js +19 -0
  590. package/esm2015/graphql/utils/remove-variable.js +22 -0
  591. package/esm2015/graphql/utils/to-gql.js +40 -0
  592. package/esm2015/icon/icon/icon.component.js +125 -0
  593. package/esm2015/icon/icon-btn/icon-btn.component.js +136 -0
  594. package/esm2015/icon/icon-notification/icon-notification.component.js +120 -0
  595. package/esm2015/icon/icon.js +2 -0
  596. package/esm2015/icon/icon.module.js +27 -0
  597. package/esm2015/icon/public-api.js +7 -0
  598. package/esm2015/icon/theseam-ui-common-icon.js +5 -0
  599. package/esm2015/icon/utils/file-extension-icon.js +33 -0
  600. package/esm2015/icon/utils/get-known-icon.js +82 -0
  601. package/esm2015/icon/utils/index.js +3 -0
  602. package/esm2015/layout/breakpoint-aliases.js +11 -0
  603. package/esm2015/layout/layout.module.js +18 -0
  604. package/esm2015/layout/layout.service.js +24 -0
  605. package/esm2015/layout/observe-media-query.js +41 -0
  606. package/esm2015/layout/public-api.js +5 -0
  607. package/esm2015/layout/theseam-ui-common-layout.js +5 -0
  608. package/esm2015/loading/loading/loading.component.js +28 -0
  609. package/esm2015/loading/loading-overlay.service.js +59 -0
  610. package/esm2015/loading/loading-themes.js +18 -0
  611. package/esm2015/loading/loading.models.js +2 -0
  612. package/esm2015/loading/loading.module.js +29 -0
  613. package/esm2015/loading/public-api.js +6 -0
  614. package/esm2015/loading/theseam-ui-common-loading.js +5 -0
  615. package/esm2015/menu/menu-animations.js +58 -0
  616. package/esm2015/menu/menu-divider.component.js +15 -0
  617. package/esm2015/menu/menu-footer/menu-footer.component.js +32 -0
  618. package/esm2015/menu/menu-footer-action/menu-footer-action.component.js +48 -0
  619. package/esm2015/menu/menu-header/menu-header.component.js +32 -0
  620. package/esm2015/menu/menu-item.component.js +127 -0
  621. package/esm2015/menu/menu-panel-token.js +6 -0
  622. package/esm2015/menu/menu-panel.js +2 -0
  623. package/esm2015/menu/menu-toggle.directive.js +248 -0
  624. package/esm2015/menu/menu.component.js +174 -0
  625. package/esm2015/menu/menu.module.js +43 -0
  626. package/esm2015/menu/public-api.js +12 -0
  627. package/esm2015/menu/theseam-ui-common-menu.js +5 -0
  628. package/esm2015/modal/directives/modal-close.directive.js +63 -0
  629. package/esm2015/modal/directives/modal-footer-tpl.directive.js +15 -0
  630. package/esm2015/modal/directives/modal-header-icon-tpl.directive.js +15 -0
  631. package/esm2015/modal/directives/modal-header-title-tpl.directive.js +15 -0
  632. package/esm2015/modal/directives/modal-title.directive.js +19 -0
  633. package/esm2015/modal/directives/modal.directive.js +25 -0
  634. package/esm2015/modal/modal/modal.component.js +149 -0
  635. package/esm2015/modal/modal-body/modal-body.component.js +22 -0
  636. package/esm2015/modal/modal-config.js +47 -0
  637. package/esm2015/modal/modal-container/modal-container.component.js +217 -0
  638. package/esm2015/modal/modal-footer/modal-footer.component.js +20 -0
  639. package/esm2015/modal/modal-header/modal-header.component.js +26 -0
  640. package/esm2015/modal/modal-injectors.js +23 -0
  641. package/esm2015/modal/modal-ref.js +126 -0
  642. package/esm2015/modal/modal-utils.js +14 -0
  643. package/esm2015/modal/modal.models.js +3 -0
  644. package/esm2015/modal/modal.module.js +83 -0
  645. package/esm2015/modal/modal.service.js +343 -0
  646. package/esm2015/modal/public-api.js +20 -0
  647. package/esm2015/modal/route-modal/route-modal.component.js +68 -0
  648. package/esm2015/modal/theseam-ui-common-modal.js +5 -0
  649. package/esm2015/models/component-type.js +4 -0
  650. package/esm2015/models/http-status-codes.js +20 -0
  651. package/esm2015/models/public-api.js +8 -0
  652. package/esm2015/models/size-prefixes.js +2 -0
  653. package/esm2015/models/size-types.js +2 -0
  654. package/esm2015/models/theme-names.js +26 -0
  655. package/esm2015/models/theme-prefixes.js +2 -0
  656. package/esm2015/models/theme-types.js +2 -0
  657. package/esm2015/models/theseam-ui-common-models.js +5 -0
  658. package/esm2015/popover/popover/popover.component.js +149 -0
  659. package/esm2015/popover/popover-animations.js +46 -0
  660. package/esm2015/popover/popover.directive.js +257 -0
  661. package/esm2015/popover/popover.module.js +30 -0
  662. package/esm2015/popover/public-api.js +5 -0
  663. package/esm2015/popover/theseam-ui-common-popover.js +5 -0
  664. package/esm2015/progress/progress-circle/progress-circle.component.js +63 -0
  665. package/esm2015/progress/progress.module.js +19 -0
  666. package/esm2015/progress/public-api.js +3 -0
  667. package/esm2015/progress/theseam-ui-common-progress.js +5 -0
  668. package/esm2015/public_api.js +43 -0
  669. package/esm2015/scrollbar/overlay-scrollbar.directive.js +61 -0
  670. package/esm2015/scrollbar/overlay-scrollbars-config-model.js +2 -0
  671. package/esm2015/scrollbar/overlay-scrollbars-config.js +13 -0
  672. package/esm2015/scrollbar/overlay-scrollbars.service.js +87 -0
  673. package/esm2015/scrollbar/public-api.js +6 -0
  674. package/esm2015/scrollbar/scrollbar.module.js +25 -0
  675. package/esm2015/scrollbar/theseam-ui-common-scrollbar.js +5 -0
  676. package/esm2015/services/asset-loader.service.js +33 -0
  677. package/esm2015/services/font-loader.service.js +81 -0
  678. package/esm2015/services/public-api.js +4 -0
  679. package/esm2015/services/router-helpers.service.js +26 -0
  680. package/esm2015/services/theseam-ui-common-services.js +5 -0
  681. package/esm2015/shared/components/index.js +2 -0
  682. package/esm2015/shared/components/password-input-reveal/password-input-reveal.component.js +71 -0
  683. package/esm2015/shared/directives/auto-focus.directive.js +53 -0
  684. package/esm2015/shared/directives/click-outside.directive.js +49 -0
  685. package/esm2015/shared/directives/disable-control.directive.js +27 -0
  686. package/esm2015/shared/directives/elem-resized.directive.js +29 -0
  687. package/esm2015/shared/directives/hover-class-toggle.directive.js +80 -0
  688. package/esm2015/shared/directives/hover-class.directive.js +74 -0
  689. package/esm2015/shared/directives/index.js +9 -0
  690. package/esm2015/shared/directives/ng-select-extra.directive.js +177 -0
  691. package/esm2015/shared/directives/ngx-quill-extra.directive.js +60 -0
  692. package/esm2015/shared/pipes/index.js +3 -0
  693. package/esm2015/shared/pipes/mask-chars.pipe.js +21 -0
  694. package/esm2015/shared/pipes/truncate.pipe.js +19 -0
  695. package/esm2015/shared/public-api.js +5 -0
  696. package/esm2015/shared/shared.module.js +58 -0
  697. package/esm2015/shared/theseam-ui-common-shared.js +5 -0
  698. package/esm2015/storage/local-storage.service.js +77 -0
  699. package/esm2015/storage/localstorage-memory.js +64 -0
  700. package/esm2015/storage/public-api.js +2 -0
  701. package/esm2015/storage/theseam-ui-common-storage.js +5 -0
  702. package/esm2015/story-helpers/arg-type-helpers.js +34 -0
  703. package/esm2015/story-helpers/args-to-tpl.js +76 -0
  704. package/esm2015/story-helpers/initial-route-factory.js +4 -0
  705. package/esm2015/story-helpers/initial-route.service.js +27 -0
  706. package/esm2015/story-helpers/on-story-bootstrapped-exec.js +64 -0
  707. package/esm2015/story-helpers/on-story-bootstrapped-trigger.js +38 -0
  708. package/esm2015/story-helpers/public-api.js +15 -0
  709. package/esm2015/story-helpers/route-button.js +12 -0
  710. package/esm2015/story-helpers/routes-arg-type.js +18 -0
  711. package/esm2015/story-helpers/story-empty-with-route.component.js +7 -0
  712. package/esm2015/story-helpers/story-empty.component.js +7 -0
  713. package/esm2015/story-helpers/story-helper-components.module.js +29 -0
  714. package/esm2015/story-helpers/story-initial-route.js +24 -0
  715. package/esm2015/story-helpers/story-modal-container.component.js +77 -0
  716. package/esm2015/story-helpers/story-toastr.service.js +33 -0
  717. package/esm2015/story-helpers/theseam-ui-common-story-helpers.js +5 -0
  718. package/esm2015/tabbed/directives/tabbed-tab-content.directive.js +14 -0
  719. package/esm2015/tabbed/directives/tabbed-tab.directive.js +36 -0
  720. package/esm2015/tabbed/public-api.js +8 -0
  721. package/esm2015/tabbed/tabbed-content/tabbed-content.component.js +17 -0
  722. package/esm2015/tabbed/tabbed-item/tabbed-item.component.js +30 -0
  723. package/esm2015/tabbed/tabbed.component.js +111 -0
  724. package/esm2015/tabbed/tabbed.module.js +36 -0
  725. package/esm2015/tabbed/tabbed.service.js +28 -0
  726. package/esm2015/tabbed/theseam-ui-common-tabbed.js +5 -0
  727. package/esm2015/table/public-api.js +3 -0
  728. package/esm2015/table/table/table.component.js +90 -0
  729. package/esm2015/table/table.module.js +23 -0
  730. package/esm2015/table/theseam-ui-common-table.js +5 -0
  731. package/esm2015/table-cell-type/public-api.js +12 -0
  732. package/esm2015/table-cell-type/services/table-cell-types-helpers.service.js +70 -0
  733. package/esm2015/table-cell-type/table-cell-type-action.js +2 -0
  734. package/esm2015/table-cell-type/table-cell-type-column.js +2 -0
  735. package/esm2015/table-cell-type/table-cell-type-config.js +2 -0
  736. package/esm2015/table-cell-type/table-cell-type-export-props.js +2 -0
  737. package/esm2015/table-cell-type/table-cell-type-manifest-provider.js +2 -0
  738. package/esm2015/table-cell-type/table-cell-type-models.js +2 -0
  739. package/esm2015/table-cell-type/table-cell-type-name.js +2 -0
  740. package/esm2015/table-cell-type/table-cell-type-selector.component.js +94 -0
  741. package/esm2015/table-cell-type/table-cell-type-tokens.js +4 -0
  742. package/esm2015/table-cell-type/table-cell-type.module.js +23 -0
  743. package/esm2015/table-cell-type/theseam-ui-common-table-cell-type.js +5 -0
  744. package/esm2015/table-cell-types/public-api.js +16 -0
  745. package/esm2015/table-cell-types/table-cell-type-date/table-cell-type-date-config.js +2 -0
  746. package/esm2015/table-cell-types/table-cell-type-date/table-cell-type-date.component.js +55 -0
  747. package/esm2015/table-cell-types/table-cell-type-date/table-cell-type-date.js +2 -0
  748. package/esm2015/table-cell-types/table-cell-type-decimal/table-cell-type-decimal-config.js +2 -0
  749. package/esm2015/table-cell-types/table-cell-type-icon/table-cell-type-icon-config.js +2 -0
  750. package/esm2015/table-cell-types/table-cell-type-icon/table-cell-type-icon.component.js +166 -0
  751. package/esm2015/table-cell-types/table-cell-type-integer/table-cell-type-integer-config.js +2 -0
  752. package/esm2015/table-cell-types/table-cell-type-manifests.js +91 -0
  753. package/esm2015/table-cell-types/table-cell-type-phone/table-cell-type-phone-config.js +2 -0
  754. package/esm2015/table-cell-types/table-cell-type-phone/table-cell-type-phone.component.js +66 -0
  755. package/esm2015/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle-config.js +2 -0
  756. package/esm2015/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle.component.js +160 -0
  757. package/esm2015/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon-config.js +2 -0
  758. package/esm2015/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon.component.js +78 -0
  759. package/esm2015/table-cell-types/table-cell-type-string/table-cell-type-string-config.js +2 -0
  760. package/esm2015/table-cell-types/table-cell-type-string/table-cell-type-string.component.js +150 -0
  761. package/esm2015/table-cell-types/table-cell-types.module.js +71 -0
  762. package/esm2015/table-cell-types/theseam-ui-common-table-cell-types.js +5 -0
  763. package/esm2015/tel-input/intl-tel-input.js +55 -0
  764. package/esm2015/tel-input/models/index.js +3 -0
  765. package/esm2015/tel-input/models/tel-input-country-data.js +2 -0
  766. package/esm2015/tel-input/models/tel-input-number-format-name.js +8 -0
  767. package/esm2015/tel-input/phone-number.pipe.js +51 -0
  768. package/esm2015/tel-input/public-api.js +10 -0
  769. package/esm2015/tel-input/tel-input/tel-input.component.js +167 -0
  770. package/esm2015/tel-input/tel-input-constants.js +18 -0
  771. package/esm2015/tel-input/tel-input-validator.js +27 -0
  772. package/esm2015/tel-input/tel-input.directive.js +164 -0
  773. package/esm2015/tel-input/tel-input.module.js +29 -0
  774. package/esm2015/tel-input/theseam-ui-common-tel-input.js +5 -0
  775. package/esm2015/tel-input/utils/add-country-code.js +23 -0
  776. package/esm2015/tel-input/utils/coerce-phone-number-format.js +22 -0
  777. package/esm2015/tel-input/utils/get-country-code.js +9 -0
  778. package/esm2015/tel-input/utils/get-dial-code.js +45 -0
  779. package/esm2015/tel-input/utils/get-global-intl-tel-input-globals.js +4 -0
  780. package/esm2015/tel-input/utils/get-global-intl-tel-input-utils.js +4 -0
  781. package/esm2015/tel-input/utils/get-intl-tel-input-utils.js +17 -0
  782. package/esm2015/tel-input/utils/get-validation-error-message.js +12 -0
  783. package/esm2015/tel-input/utils/index.js +10 -0
  784. package/esm2015/tel-input/utils/process-country-codes.js +49 -0
  785. package/esm2015/test-helpers/public-api.js +2 -0
  786. package/esm2015/test-helpers/theseam-ui-common-test-helpers.js +5 -0
  787. package/esm2015/test-helpers/tick-helper.js +74 -0
  788. package/esm2015/theseam-ui-common.js +5 -0
  789. package/esm2015/tiled-select/components/tiled-select/tiled-select.component.js +197 -0
  790. package/esm2015/tiled-select/components/tiled-select-tile/tiled-select-tile.component.js +125 -0
  791. package/esm2015/tiled-select/components/tiled-select-tile-icon/tiled-select-tile-icon.component.js +54 -0
  792. package/esm2015/tiled-select/directives/tiled-select-tile-icon-tpl.directive.js +16 -0
  793. package/esm2015/tiled-select/directives/tiled-select-tile-label-tpl.directive.js +15 -0
  794. package/esm2015/tiled-select/directives/tiled-select-tile-overlay.directive.js +19 -0
  795. package/esm2015/tiled-select/public-api.js +9 -0
  796. package/esm2015/tiled-select/theseam-ui-common-tiled-select.js +5 -0
  797. package/esm2015/tiled-select/tiled-select.models.js +2 -0
  798. package/esm2015/tiled-select/tiled-select.module.js +35 -0
  799. package/esm2015/toggle-edit/models/can-toggle-edit.js +2 -0
  800. package/esm2015/toggle-edit/models/index.js +3 -0
  801. package/esm2015/toggle-edit/models/toggle-edit-ref.js +2 -0
  802. package/esm2015/toggle-edit/public-api.js +7 -0
  803. package/esm2015/toggle-edit/theseam-ui-common-toggle-edit.js +5 -0
  804. package/esm2015/toggle-edit/toggle-edit-actions-container/toggle-edit-actions-container.component.js +15 -0
  805. package/esm2015/toggle-edit/toggle-edit-display-tpl.directive.js +15 -0
  806. package/esm2015/toggle-edit/toggle-edit-keyboard-listener.service.js +56 -0
  807. package/esm2015/toggle-edit/toggle-edit.component.js +403 -0
  808. package/esm2015/toggle-edit/toggle-edit.module.js +40 -0
  809. package/esm2015/toggle-group/public-api.js +4 -0
  810. package/esm2015/toggle-group/theseam-ui-common-toggle-group.js +5 -0
  811. package/esm2015/toggle-group/toggle-group-option.directive.js +44 -0
  812. package/esm2015/toggle-group/toggle-group.directive.js +192 -0
  813. package/esm2015/toggle-group/toggle-group.module.js +24 -0
  814. package/esm2015/unsaved-changes-dialog/public-api.js +5 -0
  815. package/esm2015/unsaved-changes-dialog/theseam-ui-common-unsaved-changes-dialog.js +5 -0
  816. package/esm2015/unsaved-changes-dialog/unsaved-changes-can-deactivate.js +27 -0
  817. package/esm2015/unsaved-changes-dialog/unsaved-changes-dialog.component.js +20 -0
  818. package/esm2015/unsaved-changes-dialog/unsaved-changes-dialog.guard.js +35 -0
  819. package/esm2015/unsaved-changes-dialog/unsaved-changes-dialog.module.js +12 -0
  820. package/esm2015/utils/calc-percentage.js +4 -0
  821. package/esm2015/utils/cdk/get-closest-widget-cdk-drag.js +18 -0
  822. package/esm2015/utils/create-padding.js +17 -0
  823. package/esm2015/utils/file-utils.js +68 -0
  824. package/esm2015/utils/form/get-control-name.js +31 -0
  825. package/esm2015/utils/form/get-control-path.js +37 -0
  826. package/esm2015/utils/form/has-required-control.js +50 -0
  827. package/esm2015/utils/form/is-empty-input-value.js +6 -0
  828. package/esm2015/utils/form/observe-control-is-different.js +18 -0
  829. package/esm2015/utils/form/observe-control-status.js +17 -0
  830. package/esm2015/utils/form/observe-control-valid.js +30 -0
  831. package/esm2015/utils/form/observe-control-value-change.js +10 -0
  832. package/esm2015/utils/form/observe-control-value.js +11 -0
  833. package/esm2015/utils/form/wait-on-non-pending-status.js +18 -0
  834. package/esm2015/utils/fractional-digits-count.js +19 -0
  835. package/esm2015/utils/get-attribute.js +7 -0
  836. package/esm2015/utils/has-attribute.js +7 -0
  837. package/esm2015/utils/has-property.js +7 -0
  838. package/esm2015/utils/input-masks.js +2 -0
  839. package/esm2015/utils/is-absolute-url.js +17 -0
  840. package/esm2015/utils/is-null-or-undefined.js +4 -0
  841. package/esm2015/utils/is-numeric.js +4 -0
  842. package/esm2015/utils/load-style-sheet.js +14 -0
  843. package/esm2015/utils/load-style.js +13 -0
  844. package/esm2015/utils/not-null-or-undefined.js +4 -0
  845. package/esm2015/utils/obj-utils.js +27 -0
  846. package/esm2015/utils/observe-query-list.js +5 -0
  847. package/esm2015/utils/operators/index.js +3 -0
  848. package/esm2015/utils/operators/map-each.js +6 -0
  849. package/esm2015/utils/operators/tap-first.js +14 -0
  850. package/esm2015/utils/pad-end.js +9 -0
  851. package/esm2015/utils/pad-start.js +9 -0
  852. package/esm2015/utils/polling-ticker.js +121 -0
  853. package/esm2015/utils/public-api.js +38 -0
  854. package/esm2015/utils/refreshable.js +65 -0
  855. package/esm2015/utils/router/index.js +7 -0
  856. package/esm2015/utils/router/is-empty-url-route.js +4 -0
  857. package/esm2015/utils/router/leaf-child-route.js +8 -0
  858. package/esm2015/utils/router/operators/activated-routes-with-data-property.js +11 -0
  859. package/esm2015/utils/router/route-snapshot-path-full.js +5 -0
  860. package/esm2015/utils/router/route-snapshot-path-relative.js +4 -0
  861. package/esm2015/utils/router/will-have-data-prop.js +10 -0
  862. package/esm2015/utils/subscriber-count.js +19 -0
  863. package/esm2015/utils/theseam-ui-common-utils.js +5 -0
  864. package/esm2015/utils/toggle-attribute.js +35 -0
  865. package/esm2015/utils/wait-on-condition-async.js +33 -0
  866. package/esm2015/utils/wrap-into-observable.js +8 -0
  867. package/esm2015/validators/decimal.validator.js +25 -0
  868. package/esm2015/validators/email-exists.validator.js +18 -0
  869. package/esm2015/validators/integer.validator.js +25 -0
  870. package/esm2015/validators/phone-length.validator.js +8 -0
  871. package/esm2015/validators/public-api.js +6 -0
  872. package/esm2015/validators/tax-id.validator.js +13 -0
  873. package/esm2015/validators/theseam-ui-common-validators.js +5 -0
  874. package/esm2015/viewers/pdf-viewer/index.js +4 -0
  875. package/esm2015/viewers/pdf-viewer/pdf-page/pdf-page.component.js +134 -0
  876. package/esm2015/viewers/pdf-viewer/pdf-renderer.service.js +27 -0
  877. package/esm2015/viewers/pdf-viewer/pdf-viewer.component.js +149 -0
  878. package/esm2015/viewers/pdf-viewer/pdf-viewer.module.js +24 -0
  879. package/esm2015/viewers/public-api.js +2 -0
  880. package/esm2015/viewers/theseam-ui-common-viewers.js +5 -0
  881. package/esm2015/widget/directives/widget-drag-handle.directive.js +146 -0
  882. package/esm2015/widget/directives/widget-icon-tpl.directive.js +15 -0
  883. package/esm2015/widget/directives/widget-title-tpl.directive.js +15 -0
  884. package/esm2015/widget/public-api.js +38 -0
  885. package/esm2015/widget/theseam-ui-common-widget.js +5 -0
  886. package/esm2015/widget/widget/widget.component.js +121 -0
  887. package/esm2015/widget/widget-content-components/widget-button-group/widget-button-group.component.js +16 -0
  888. package/esm2015/widget/widget-content-components/widget-button-group/widget-button-group.module.js +22 -0
  889. package/esm2015/widget/widget-content-components/widget-content-header/widget-content-header.component.js +16 -0
  890. package/esm2015/widget/widget-content-components/widget-content-header/widget-content-header.module.js +19 -0
  891. package/esm2015/widget/widget-content-components/widget-description/widget-description.component.js +12 -0
  892. package/esm2015/widget/widget-content-components/widget-description/widget-description.module.js +19 -0
  893. package/esm2015/widget/widget-content-components/widget-empty-label/widget-empty-label.component.js +39 -0
  894. package/esm2015/widget/widget-content-components/widget-empty-label/widget-empty-label.module.js +19 -0
  895. package/esm2015/widget/widget-content-components/widget-footer-link/widget-footer-link.component.js +16 -0
  896. package/esm2015/widget/widget-content-components/widget-footer-link/widget-footer-link.module.js +19 -0
  897. package/esm2015/widget/widget-content-components/widget-footer-text/widget-footer-text.component.js +16 -0
  898. package/esm2015/widget/widget-content-components/widget-footer-text/widget-footer-text.module.js +19 -0
  899. package/esm2015/widget/widget-content-components/widget-header-badge/widget-header-badge.component.js +31 -0
  900. package/esm2015/widget/widget-content-components/widget-header-badge/widget-header-badge.module.js +19 -0
  901. package/esm2015/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item-icon-tpl.directive.js +16 -0
  902. package/esm2015/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item.component.js +162 -0
  903. package/esm2015/widget/widget-content-components/widget-list-group/widget-list-group.component.js +19 -0
  904. package/esm2015/widget/widget-content-components/widget-list-group/widget-list-group.module.js +31 -0
  905. package/esm2015/widget/widget-content-components/widget-table/widget-table.component.js +35 -0
  906. package/esm2015/widget/widget-content-components/widget-table/widget-table.module.js +23 -0
  907. package/esm2015/widget/widget-content-components/widget-tile/widget-tile-footer/widget-tile-footer.component.js +19 -0
  908. package/esm2015/widget/widget-content-components/widget-tile/widget-tile-footer-item/widget-tile-footer-item.component.js +43 -0
  909. package/esm2015/widget/widget-content-components/widget-tile/widget-tile-group/widget-tile-group.component.js +16 -0
  910. package/esm2015/widget/widget-content-components/widget-tile/widget-tile-secondary-icon.directive.js +16 -0
  911. package/esm2015/widget/widget-content-components/widget-tile/widget-tile.component.js +108 -0
  912. package/esm2015/widget/widget-content-components/widget-tile/widget-tile.module.js +33 -0
  913. package/esm2015/widget/widget-content-components/widget-tile-list/widget-tile-list.component.js +15 -0
  914. package/esm2015/widget/widget-content-components/widget-tile-list/widget-tile-list.module.js +21 -0
  915. package/esm2015/widget/widget-footer/widget-footer.component.js +16 -0
  916. package/esm2015/widget/widget-registry.models.js +2 -0
  917. package/esm2015/widget/widget-registry.service.js +56 -0
  918. package/esm2015/widget/widget-token.js +3 -0
  919. package/esm2015/widget/widget.module.js +70 -0
  920. package/fesm2015/theseam-ui-common-asset-reader.js +173 -0
  921. package/fesm2015/theseam-ui-common-asset-reader.js.map +1 -0
  922. package/fesm2015/theseam-ui-common-breadcrumbs.js +202 -0
  923. package/fesm2015/theseam-ui-common-breadcrumbs.js.map +1 -0
  924. package/fesm2015/theseam-ui-common-buttons.js +362 -0
  925. package/fesm2015/theseam-ui-common-buttons.js.map +1 -0
  926. package/fesm2015/theseam-ui-common-card.js +145 -0
  927. package/fesm2015/theseam-ui-common-card.js.map +1 -0
  928. package/fesm2015/theseam-ui-common-checkbox.js +302 -0
  929. package/fesm2015/theseam-ui-common-checkbox.js.map +1 -0
  930. package/fesm2015/theseam-ui-common-confirm-dialog.js +153 -0
  931. package/fesm2015/theseam-ui-common-confirm-dialog.js.map +1 -0
  932. package/fesm2015/theseam-ui-common-core.js +231 -0
  933. package/fesm2015/theseam-ui-common-core.js.map +1 -0
  934. package/fesm2015/theseam-ui-common-data-exporter.js +81 -0
  935. package/fesm2015/theseam-ui-common-data-exporter.js.map +1 -0
  936. package/fesm2015/theseam-ui-common-data-filters.js +452 -0
  937. package/fesm2015/theseam-ui-common-data-filters.js.map +1 -0
  938. package/fesm2015/theseam-ui-common-datatable-dynamic.js +991 -0
  939. package/fesm2015/theseam-ui-common-datatable-dynamic.js.map +1 -0
  940. package/fesm2015/theseam-ui-common-datatable.js +1714 -0
  941. package/fesm2015/theseam-ui-common-datatable.js.map +1 -0
  942. package/fesm2015/theseam-ui-common-dynamic-component-loader.js +143 -0
  943. package/fesm2015/theseam-ui-common-dynamic-component-loader.js.map +1 -0
  944. package/fesm2015/theseam-ui-common-dynamic.js +699 -0
  945. package/fesm2015/theseam-ui-common-dynamic.js.map +1 -0
  946. package/fesm2015/theseam-ui-common-footer-bar.js +36 -0
  947. package/fesm2015/theseam-ui-common-footer-bar.js.map +1 -0
  948. package/fesm2015/theseam-ui-common-form-field-error.js +464 -0
  949. package/fesm2015/theseam-ui-common-form-field-error.js.map +1 -0
  950. package/fesm2015/theseam-ui-common-form-field.js +506 -0
  951. package/fesm2015/theseam-ui-common-form-field.js.map +1 -0
  952. package/fesm2015/theseam-ui-common-framework.js +2650 -0
  953. package/fesm2015/theseam-ui-common-framework.js.map +1 -0
  954. package/fesm2015/theseam-ui-common-graphql.js +331 -0
  955. package/fesm2015/theseam-ui-common-graphql.js.map +1 -0
  956. package/fesm2015/theseam-ui-common-icon.js +518 -0
  957. package/fesm2015/theseam-ui-common-icon.js.map +1 -0
  958. package/fesm2015/theseam-ui-common-layout.js +89 -0
  959. package/fesm2015/theseam-ui-common-layout.js.map +1 -0
  960. package/fesm2015/theseam-ui-common-loading.js +131 -0
  961. package/fesm2015/theseam-ui-common-loading.js.map +1 -0
  962. package/fesm2015/theseam-ui-common-menu.js +762 -0
  963. package/fesm2015/theseam-ui-common-menu.js.map +1 -0
  964. package/fesm2015/theseam-ui-common-modal.js +1234 -0
  965. package/fesm2015/theseam-ui-common-modal.js.map +1 -0
  966. package/fesm2015/theseam-ui-common-models.js +54 -0
  967. package/fesm2015/theseam-ui-common-models.js.map +1 -0
  968. package/fesm2015/theseam-ui-common-popover.js +476 -0
  969. package/fesm2015/theseam-ui-common-popover.js.map +1 -0
  970. package/fesm2015/theseam-ui-common-progress.js +87 -0
  971. package/fesm2015/theseam-ui-common-progress.js.map +1 -0
  972. package/fesm2015/theseam-ui-common-scrollbar.js +184 -0
  973. package/fesm2015/theseam-ui-common-scrollbar.js.map +1 -0
  974. package/fesm2015/theseam-ui-common-services.js +140 -0
  975. package/fesm2015/theseam-ui-common-services.js.map +1 -0
  976. package/fesm2015/theseam-ui-common-shared.js +696 -0
  977. package/fesm2015/theseam-ui-common-shared.js.map +1 -0
  978. package/fesm2015/theseam-ui-common-storage.js +147 -0
  979. package/fesm2015/theseam-ui-common-storage.js.map +1 -0
  980. package/fesm2015/theseam-ui-common-story-helpers.js +441 -0
  981. package/fesm2015/theseam-ui-common-story-helpers.js.map +1 -0
  982. package/fesm2015/theseam-ui-common-tabbed.js +262 -0
  983. package/fesm2015/theseam-ui-common-tabbed.js.map +1 -0
  984. package/fesm2015/theseam-ui-common-table-cell-type.js +191 -0
  985. package/fesm2015/theseam-ui-common-table-cell-type.js.map +1 -0
  986. package/fesm2015/theseam-ui-common-table-cell-types.js +799 -0
  987. package/fesm2015/theseam-ui-common-table-cell-types.js.map +1 -0
  988. package/fesm2015/theseam-ui-common-table.js +118 -0
  989. package/fesm2015/theseam-ui-common-table.js.map +1 -0
  990. package/fesm2015/theseam-ui-common-tel-input.js +681 -0
  991. package/fesm2015/theseam-ui-common-tel-input.js.map +1 -0
  992. package/fesm2015/theseam-ui-common-test-helpers.js +81 -0
  993. package/fesm2015/theseam-ui-common-test-helpers.js.map +1 -0
  994. package/fesm2015/theseam-ui-common-tiled-select.js +448 -0
  995. package/fesm2015/theseam-ui-common-tiled-select.js.map +1 -0
  996. package/fesm2015/theseam-ui-common-toggle-edit.js +521 -0
  997. package/fesm2015/theseam-ui-common-toggle-edit.js.map +1 -0
  998. package/fesm2015/theseam-ui-common-toggle-group.js +260 -0
  999. package/fesm2015/theseam-ui-common-toggle-group.js.map +1 -0
  1000. package/fesm2015/theseam-ui-common-unsaved-changes-dialog.js +97 -0
  1001. package/fesm2015/theseam-ui-common-unsaved-changes-dialog.js.map +1 -0
  1002. package/fesm2015/theseam-ui-common-utils.js +797 -0
  1003. package/fesm2015/theseam-ui-common-utils.js.map +1 -0
  1004. package/fesm2015/theseam-ui-common-validators.js +94 -0
  1005. package/fesm2015/theseam-ui-common-validators.js.map +1 -0
  1006. package/fesm2015/theseam-ui-common-viewers.js +328 -0
  1007. package/fesm2015/theseam-ui-common-viewers.js.map +1 -0
  1008. package/fesm2015/theseam-ui-common-widget.js +1187 -0
  1009. package/fesm2015/theseam-ui-common-widget.js.map +1 -0
  1010. package/fesm2015/theseam-ui-common.js +47 -0
  1011. package/fesm2015/theseam-ui-common.js.map +1 -0
  1012. package/footer-bar/footer-bar/footer-bar.component.d.ts +5 -0
  1013. package/footer-bar/footer-bar.module.d.ts +2 -0
  1014. package/footer-bar/package.json +11 -0
  1015. package/footer-bar/public-api.d.ts +2 -0
  1016. package/footer-bar/theseam-ui-common-footer-bar.d.ts +4 -0
  1017. package/footer-bar/theseam-ui-common-footer-bar.metadata.json +1 -0
  1018. package/form-field/form-field-error.directive.d.ts +12 -0
  1019. package/form-field/form-field-help-text.directive.d.ts +5 -0
  1020. package/form-field/form-field-label-tpl.directive.d.ts +5 -0
  1021. package/form-field/form-field-required-indicator.component.d.ts +9 -0
  1022. package/form-field/form-field.component.d.ts +114 -0
  1023. package/form-field/form-field.module.d.ts +2 -0
  1024. package/form-field/input.directive.d.ts +72 -0
  1025. package/form-field/package.json +11 -0
  1026. package/form-field/public-api.d.ts +7 -0
  1027. package/form-field/theseam-ui-common-form-field.d.ts +4 -0
  1028. package/form-field/theseam-ui-common-form-field.metadata.json +1 -0
  1029. package/form-field-error/form-field-error/form-field-error.component.d.ts +8 -0
  1030. package/form-field-error/form-field-error-list/form-field-error-list-item-tpl.directive.d.ts +9 -0
  1031. package/form-field-error/form-field-error-list/form-field-error-list-item.directive.d.ts +6 -0
  1032. package/form-field-error/form-field-error-list/form-field-error-list.component.d.ts +63 -0
  1033. package/form-field-error/form-field-error.module.d.ts +2 -0
  1034. package/form-field-error/package.json +11 -0
  1035. package/form-field-error/public-api.d.ts +5 -0
  1036. package/form-field-error/theseam-ui-common-form-field-error.d.ts +4 -0
  1037. package/form-field-error/theseam-ui-common-form-field-error.metadata.json +1 -0
  1038. package/framework/base-layout/_base-layout-theme.scss +3 -0
  1039. package/framework/base-layout/base-layout-action.d.ts +31 -0
  1040. package/framework/base-layout/base-layout-nav.d.ts +18 -0
  1041. package/framework/base-layout/base-layout-ref.d.ts +14 -0
  1042. package/framework/base-layout/base-layout-tokens.d.ts +3 -0
  1043. package/framework/base-layout/base-layout.component.d.ts +43 -0
  1044. package/framework/base-layout/base-layout.component.scss +81 -0
  1045. package/framework/base-layout/base-layout.module.d.ts +2 -0
  1046. package/framework/base-layout/directives/base-layout-content-footer.directive.d.ts +6 -0
  1047. package/framework/base-layout/directives/base-layout-content-header.directive.d.ts +6 -0
  1048. package/framework/base-layout/directives/base-layout-content.directive.d.ts +6 -0
  1049. package/framework/base-layout/directives/base-layout-nav-toggle.directive.d.ts +14 -0
  1050. package/framework/base-layout/directives/base-layout-side-bar.directive.d.ts +6 -0
  1051. package/framework/base-layout/directives/base-layout-top-bar.directive.d.ts +6 -0
  1052. package/framework/base-layout/index.d.ts +12 -0
  1053. package/framework/base-layout/styles/_utilities.scss +3 -0
  1054. package/framework/base-layout/styles/_variables.scss +9 -0
  1055. package/framework/dashboard/_dashboard-theme.scss +3 -0
  1056. package/framework/dashboard/dashboard-widget-container/dashboard-widget-container.component.d.ts +8 -0
  1057. package/framework/dashboard/dashboard-widget-container/dashboard-widget-container.component.scss +0 -0
  1058. package/framework/dashboard/dashboard-widget-template-container/dashboard-widget-template-container.component.d.ts +11 -0
  1059. package/framework/dashboard/dashboard-widget-template-container/dashboard-widget-template-container.component.scss +0 -0
  1060. package/framework/dashboard/dashboard-widgets/dashboard-widget-portal-outlet.directive.d.ts +47 -0
  1061. package/framework/dashboard/dashboard-widgets/dashboard-widgets-item.d.ts +43 -0
  1062. package/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor-token.d.ts +3 -0
  1063. package/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor.d.ts +15 -0
  1064. package/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences.service.d.ts +27 -0
  1065. package/framework/dashboard/dashboard-widgets/dashboard-widgets.component.d.ts +58 -0
  1066. package/framework/dashboard/dashboard-widgets/dashboard-widgets.component.scss +48 -0
  1067. package/framework/dashboard/dashboard-widgets/dashboard-widgets.service.d.ts +34 -0
  1068. package/framework/dashboard/dashboard.component.d.ts +8 -0
  1069. package/framework/dashboard/dashboard.component.scss +0 -0
  1070. package/framework/dashboard/dashboard.module.d.ts +2 -0
  1071. package/framework/dashboard/index.d.ts +11 -0
  1072. package/framework/dashboard/styles/_utilities.scss +3 -0
  1073. package/framework/dashboard/styles/_variables.scss +2 -0
  1074. package/framework/dynamic-router/dynamic-route-def.d.ts +8 -0
  1075. package/framework/dynamic-router/dynamic-router.module.d.ts +2 -0
  1076. package/framework/dynamic-router/hierarchy-router-outlet/hierarchy-route-animations.d.ts +5 -0
  1077. package/framework/dynamic-router/hierarchy-router-outlet/hierarchy-router-outlet.component.d.ts +23 -0
  1078. package/framework/dynamic-router/index.d.ts +5 -0
  1079. package/framework/dynamic-router/resolvers/hierarchy-level.resolver.d.ts +7 -0
  1080. package/framework/package.json +11 -0
  1081. package/framework/public-api.d.ts +6 -0
  1082. package/framework/schema-form/index.d.ts +3 -0
  1083. package/framework/schema-form/schema-form-framework.component.d.ts +5 -0
  1084. package/framework/schema-form/schema-form-framework.d.ts +18 -0
  1085. package/framework/schema-form/schema-form.module.d.ts +2 -0
  1086. package/framework/schema-form-controls/schema-form-checkbox/schema-form-checkbox.component.d.ts +21 -0
  1087. package/framework/schema-form-controls/schema-form-controls.module.d.ts +2 -0
  1088. package/framework/schema-form-controls/schema-form-input/schema-form-input.component.d.ts +19 -0
  1089. package/framework/schema-form-controls/schema-form-number/schema-form-number.component.d.ts +22 -0
  1090. package/framework/schema-form-controls/schema-form-select/schema-form-select.component.d.ts +20 -0
  1091. package/framework/schema-form-controls/schema-form-submit/schema-form-submit.component.d.ts +18 -0
  1092. package/framework/schema-form-controls/schema-form-submit-split/schema-form-submit-split.component.d.ts +34 -0
  1093. package/framework/side-nav/_side-nav-theme.scss +5 -0
  1094. package/framework/side-nav/index.d.ts +6 -0
  1095. package/framework/side-nav/side-nav-item/side-nav-item.component.d.ts +65 -0
  1096. package/framework/side-nav/side-nav-item/side-nav-item.component.scss +158 -0
  1097. package/framework/side-nav/side-nav-toggle/side-nav-toggle.component.d.ts +11 -0
  1098. package/framework/side-nav/side-nav-toggle/side-nav-toggle.component.scss +32 -0
  1099. package/framework/side-nav/side-nav-utils.d.ts +18 -0
  1100. package/framework/side-nav/side-nav.component.d.ts +40 -0
  1101. package/framework/side-nav/side-nav.component.scss +47 -0
  1102. package/framework/side-nav/side-nav.models.d.ts +64 -0
  1103. package/framework/side-nav/side-nav.module.d.ts +2 -0
  1104. package/framework/side-nav/side-nav.service.d.ts +21 -0
  1105. package/framework/side-nav/styles/_themes/light/_variables.scss +29 -0
  1106. package/framework/side-nav/styles/_themes/primary/_variables.scss +31 -0
  1107. package/framework/side-nav/styles/_utilities.scss +3 -0
  1108. package/framework/side-nav/styles/_variables.scss +2 -0
  1109. package/framework/theseam-ui-common-framework.d.ts +12 -0
  1110. package/framework/theseam-ui-common-framework.metadata.json +1 -0
  1111. package/framework/top-bar/index.d.ts +7 -0
  1112. package/framework/top-bar/top-bar-item.directive.d.ts +5 -0
  1113. package/framework/top-bar/top-bar-menu-btn-detail.directive.d.ts +5 -0
  1114. package/framework/top-bar/top-bar-menu-button/top-bar-menu-button.component.d.ts +20 -0
  1115. package/framework/top-bar/top-bar-menu.directive.d.ts +5 -0
  1116. package/framework/top-bar/top-bar-title/top-bar-title.component.d.ts +7 -0
  1117. package/framework/top-bar/top-bar.component.d.ts +59 -0
  1118. package/framework/top-bar/top-bar.module.d.ts +2 -0
  1119. package/graphql/models/direction.d.ts +6 -0
  1120. package/graphql/models/hint-definition.d.ts +7 -0
  1121. package/graphql/models/hint-transform-operation.d.ts +5 -0
  1122. package/graphql/models/hint-transformer.d.ts +3 -0
  1123. package/graphql/models/hints-kind.d.ts +7 -0
  1124. package/graphql/models/hints-token.d.ts +7 -0
  1125. package/graphql/models/index.d.ts +8 -0
  1126. package/graphql/models/query-processing-config.d.ts +9 -0
  1127. package/graphql/models/variable.d.ts +5 -0
  1128. package/graphql/package.json +11 -0
  1129. package/graphql/public-api.d.ts +1 -0
  1130. package/graphql/theseam-ui-common-graphql.d.ts +4 -0
  1131. package/graphql/theseam-ui-common-graphql.metadata.json +1 -0
  1132. package/graphql/utils/contains-variable.d.ts +2 -0
  1133. package/graphql/utils/gql-var.d.ts +3 -0
  1134. package/graphql/utils/hints-tokens-containing-hint.d.ts +2 -0
  1135. package/graphql/utils/index.d.ts +10 -0
  1136. package/graphql/utils/inline-variables.d.ts +2 -0
  1137. package/graphql/utils/parse-comments.d.ts +2 -0
  1138. package/graphql/utils/parse-hints.d.ts +17 -0
  1139. package/graphql/utils/remove-variable-definition.d.ts +2 -0
  1140. package/graphql/utils/remove-variable-definitions-not-defined.d.ts +3 -0
  1141. package/graphql/utils/remove-variable.d.ts +2 -0
  1142. package/graphql/utils/to-gql.d.ts +1 -0
  1143. package/icon/icon/icon.component.d.ts +54 -0
  1144. package/icon/icon-btn/icon-btn.component.d.ts +74 -0
  1145. package/icon/icon-notification/icon-notification.component.d.ts +47 -0
  1146. package/icon/icon.d.ts +2 -0
  1147. package/icon/icon.module.d.ts +2 -0
  1148. package/icon/package.json +11 -0
  1149. package/icon/public-api.d.ts +6 -0
  1150. package/icon/theseam-ui-common-icon.d.ts +4 -0
  1151. package/icon/theseam-ui-common-icon.metadata.json +1 -0
  1152. package/icon/utils/file-extension-icon.d.ts +3 -0
  1153. package/icon/utils/get-known-icon.d.ts +2 -0
  1154. package/icon/utils/index.d.ts +2 -0
  1155. package/layout/breakpoint-aliases.d.ts +20 -0
  1156. package/layout/layout.module.d.ts +2 -0
  1157. package/layout/layout.service.d.ts +12 -0
  1158. package/layout/observe-media-query.d.ts +8 -0
  1159. package/layout/package.json +11 -0
  1160. package/layout/public-api.d.ts +4 -0
  1161. package/layout/theseam-ui-common-layout.d.ts +4 -0
  1162. package/layout/theseam-ui-common-layout.metadata.json +1 -0
  1163. package/loading/loading/loading.component.d.ts +9 -0
  1164. package/loading/loading-overlay.service.d.ts +13 -0
  1165. package/loading/loading-themes.d.ts +3 -0
  1166. package/loading/loading.models.d.ts +1 -0
  1167. package/loading/loading.module.d.ts +4 -0
  1168. package/loading/package.json +11 -0
  1169. package/loading/public-api.d.ts +5 -0
  1170. package/loading/theseam-ui-common-loading.d.ts +4 -0
  1171. package/loading/theseam-ui-common-loading.metadata.json +1 -0
  1172. package/menu/menu-animations.d.ts +8 -0
  1173. package/menu/menu-divider.component.d.ts +2 -0
  1174. package/menu/menu-footer/menu-footer.component.d.ts +9 -0
  1175. package/menu/menu-footer-action/menu-footer-action.component.d.ts +19 -0
  1176. package/menu/menu-header/menu-header.component.d.ts +9 -0
  1177. package/menu/menu-item.component.d.ts +41 -0
  1178. package/menu/menu-panel-token.d.ts +6 -0
  1179. package/menu/menu-panel.d.ts +20 -0
  1180. package/menu/menu-toggle.directive.d.ts +53 -0
  1181. package/menu/menu.component.d.ts +62 -0
  1182. package/menu/menu.module.d.ts +2 -0
  1183. package/menu/package.json +11 -0
  1184. package/menu/public-api.d.ts +11 -0
  1185. package/menu/theseam-ui-common-menu.d.ts +4 -0
  1186. package/menu/theseam-ui-common-menu.metadata.json +1 -0
  1187. package/modal/directives/modal-close.directive.d.ts +20 -0
  1188. package/modal/directives/modal-footer-tpl.directive.d.ts +5 -0
  1189. package/modal/directives/modal-header-icon-tpl.directive.d.ts +5 -0
  1190. package/modal/directives/modal-header-title-tpl.directive.d.ts +5 -0
  1191. package/modal/directives/modal-title.directive.d.ts +6 -0
  1192. package/modal/directives/modal.directive.d.ts +8 -0
  1193. package/modal/modal/modal.component.d.ts +56 -0
  1194. package/modal/modal-body/modal-body.component.d.ts +7 -0
  1195. package/modal/modal-config.d.ts +93 -0
  1196. package/modal/modal-container/modal-container.component.d.ts +77 -0
  1197. package/modal/modal-footer/modal-footer.component.d.ts +6 -0
  1198. package/modal/modal-header/modal-header.component.d.ts +11 -0
  1199. package/modal/modal-injectors.d.ts +23 -0
  1200. package/modal/modal-ref.d.ts +50 -0
  1201. package/modal/modal-utils.d.ts +8 -0
  1202. package/modal/modal.models.d.ts +24 -0
  1203. package/modal/modal.module.d.ts +2 -0
  1204. package/modal/modal.service.d.ts +95 -0
  1205. package/modal/package.json +11 -0
  1206. package/modal/public-api.d.ts +19 -0
  1207. package/modal/route-modal/route-modal.component.d.ts +16 -0
  1208. package/modal/theseam-ui-common-modal.d.ts +4 -0
  1209. package/modal/theseam-ui-common-modal.metadata.json +1 -0
  1210. package/models/component-type.d.ts +2 -0
  1211. package/models/http-status-codes.d.ts +18 -0
  1212. package/models/package.json +11 -0
  1213. package/models/public-api.d.ts +7 -0
  1214. package/models/size-prefixes.d.ts +1 -0
  1215. package/models/size-types.d.ts +1 -0
  1216. package/models/theme-names.d.ts +2 -0
  1217. package/models/theme-prefixes.d.ts +1 -0
  1218. package/models/theme-types.d.ts +2 -0
  1219. package/models/theseam-ui-common-models.d.ts +4 -0
  1220. package/models/theseam-ui-common-models.metadata.json +1 -0
  1221. package/package.json +61 -0
  1222. package/popover/package.json +11 -0
  1223. package/popover/popover/popover.component.d.ts +44 -0
  1224. package/popover/popover-animations.d.ts +4 -0
  1225. package/popover/popover.directive.d.ts +57 -0
  1226. package/popover/popover.module.d.ts +2 -0
  1227. package/popover/public-api.d.ts +4 -0
  1228. package/popover/theseam-ui-common-popover.d.ts +4 -0
  1229. package/popover/theseam-ui-common-popover.metadata.json +1 -0
  1230. package/progress/package.json +11 -0
  1231. package/progress/progress-circle/_progress-circle-theme.scss +3 -0
  1232. package/progress/progress-circle/progress-circle.component.d.ts +27 -0
  1233. package/progress/progress-circle/progress-circle.component.scss +105 -0
  1234. package/progress/progress-circle/styles/_utilities.scss +3 -0
  1235. package/progress/progress-circle/styles/_variables.scss +8 -0
  1236. package/progress/progress.module.d.ts +2 -0
  1237. package/progress/public-api.d.ts +2 -0
  1238. package/progress/theseam-ui-common-progress.d.ts +4 -0
  1239. package/progress/theseam-ui-common-progress.metadata.json +1 -0
  1240. package/public_api.d.ts +2 -0
  1241. package/scrollbar/overlay-scrollbar.directive.d.ts +21 -0
  1242. package/scrollbar/overlay-scrollbars-config-model.d.ts +2 -0
  1243. package/scrollbar/overlay-scrollbars-config.d.ts +51 -0
  1244. package/scrollbar/overlay-scrollbars.service.d.ts +20 -0
  1245. package/scrollbar/package.json +11 -0
  1246. package/scrollbar/public-api.d.ts +5 -0
  1247. package/scrollbar/scrollbar.module.d.ts +2 -0
  1248. package/scrollbar/theseam-ui-common-scrollbar.d.ts +4 -0
  1249. package/scrollbar/theseam-ui-common-scrollbar.metadata.json +1 -0
  1250. package/services/asset-loader.service.d.ts +13 -0
  1251. package/services/font-loader.service.d.ts +43 -0
  1252. package/services/package.json +11 -0
  1253. package/services/public-api.d.ts +3 -0
  1254. package/services/router-helpers.service.d.ts +7 -0
  1255. package/services/theseam-ui-common-services.d.ts +4 -0
  1256. package/services/theseam-ui-common-services.metadata.json +1 -0
  1257. package/shared/components/index.d.ts +1 -0
  1258. package/shared/components/password-input-reveal/password-input-reveal.component.d.ts +14 -0
  1259. package/shared/directives/auto-focus.directive.d.ts +15 -0
  1260. package/shared/directives/click-outside.directive.d.ts +10 -0
  1261. package/shared/directives/disable-control.directive.d.ts +6 -0
  1262. package/shared/directives/elem-resized.directive.d.ts +17 -0
  1263. package/shared/directives/hover-class-toggle.directive.d.ts +33 -0
  1264. package/shared/directives/hover-class.directive.d.ts +28 -0
  1265. package/shared/directives/index.d.ts +8 -0
  1266. package/shared/directives/ng-select-extra.directive.d.ts +39 -0
  1267. package/shared/directives/ngx-quill-extra.directive.d.ts +20 -0
  1268. package/shared/package.json +11 -0
  1269. package/shared/pipes/index.d.ts +2 -0
  1270. package/shared/pipes/mask-chars.pipe.d.ts +4 -0
  1271. package/shared/pipes/truncate.pipe.d.ts +4 -0
  1272. package/shared/public-api.d.ts +4 -0
  1273. package/shared/shared.module.d.ts +2 -0
  1274. package/shared/theseam-ui-common-shared.d.ts +4 -0
  1275. package/shared/theseam-ui-common-shared.metadata.json +1 -0
  1276. package/storage/local-storage.service.d.ts +28 -0
  1277. package/storage/localstorage-memory.d.ts +37 -0
  1278. package/storage/package.json +11 -0
  1279. package/storage/public-api.d.ts +1 -0
  1280. package/storage/theseam-ui-common-storage.d.ts +4 -0
  1281. package/storage/theseam-ui-common-storage.metadata.json +1 -0
  1282. package/story-helpers/arg-type-helpers.d.ts +5 -0
  1283. package/story-helpers/args-to-tpl.d.ts +24 -0
  1284. package/story-helpers/initial-route-factory.d.ts +2 -0
  1285. package/story-helpers/initial-route.service.d.ts +7 -0
  1286. package/story-helpers/on-story-bootstrapped-exec.d.ts +29 -0
  1287. package/story-helpers/on-story-bootstrapped-trigger.d.ts +23 -0
  1288. package/story-helpers/package.json +11 -0
  1289. package/story-helpers/public-api.d.ts +14 -0
  1290. package/story-helpers/route-button.d.ts +5 -0
  1291. package/story-helpers/routes-arg-type.d.ts +2 -0
  1292. package/story-helpers/story-empty-with-route.component.d.ts +2 -0
  1293. package/story-helpers/story-empty.component.d.ts +2 -0
  1294. package/story-helpers/story-helper-components.module.d.ts +2 -0
  1295. package/story-helpers/story-initial-route.d.ts +4 -0
  1296. package/story-helpers/story-modal-container.component.d.ts +20 -0
  1297. package/story-helpers/story-toastr.service.d.ts +30 -0
  1298. package/story-helpers/theseam-ui-common-story-helpers.d.ts +4 -0
  1299. package/story-helpers/theseam-ui-common-story-helpers.metadata.json +1 -0
  1300. package/styles/_storybook-fixes.scss +7 -0
  1301. package/styles/_variables.scss +0 -0
  1302. package/styles/bootstrap/_bootstrap.scss +45 -0
  1303. package/styles/bootstrap/_bs-styles.scss +105 -0
  1304. package/styles/bootstrap/_bs-utilities.scss +5 -0
  1305. package/styles/bootstrap/_bs-variables.scss +141 -0
  1306. package/styles/common/_forms.scss +15 -0
  1307. package/styles/common/_global.scss +9 -0
  1308. package/styles/common/_hacks.scss +14 -0
  1309. package/styles/common/_table.scss +124 -0
  1310. package/styles/common/_text.scss +1 -0
  1311. package/styles/theme.scss +19 -0
  1312. package/styles/utilities.scss +14 -0
  1313. package/styles/vendor/_vendor.scss +3 -0
  1314. package/styles/vendor/ng-select/_ng-select-bs4.scss +445 -0
  1315. package/styles/vendor/ngx-datatable/_ngx-datatable.scss +108 -0
  1316. package/styles/vendor/quill/_quill.scss +26 -0
  1317. package/tabbed/directives/tabbed-tab-content.directive.d.ts +4 -0
  1318. package/tabbed/directives/tabbed-tab.directive.d.ts +9 -0
  1319. package/tabbed/package.json +11 -0
  1320. package/tabbed/public-api.d.ts +7 -0
  1321. package/tabbed/tabbed-content/tabbed-content.component.d.ts +7 -0
  1322. package/tabbed/tabbed-item/tabbed-item.component.d.ts +14 -0
  1323. package/tabbed/tabbed.component.d.ts +36 -0
  1324. package/tabbed/tabbed.module.d.ts +2 -0
  1325. package/tabbed/tabbed.service.d.ts +8 -0
  1326. package/tabbed/theseam-ui-common-tabbed.d.ts +4 -0
  1327. package/tabbed/theseam-ui-common-tabbed.metadata.json +1 -0
  1328. package/table/package.json +11 -0
  1329. package/table/public-api.d.ts +2 -0
  1330. package/table/table/table.component.d.ts +43 -0
  1331. package/table/table.module.d.ts +2 -0
  1332. package/table/theseam-ui-common-table.d.ts +4 -0
  1333. package/table/theseam-ui-common-table.metadata.json +1 -0
  1334. package/table-cell-type/package.json +11 -0
  1335. package/table-cell-type/public-api.d.ts +11 -0
  1336. package/table-cell-type/services/table-cell-types-helpers.service.d.ts +15 -0
  1337. package/table-cell-type/table-cell-type-action.d.ts +13 -0
  1338. package/table-cell-type/table-cell-type-column.d.ts +12 -0
  1339. package/table-cell-type/table-cell-type-config.d.ts +12 -0
  1340. package/table-cell-type/table-cell-type-export-props.d.ts +15 -0
  1341. package/table-cell-type/table-cell-type-manifest-provider.d.ts +7 -0
  1342. package/table-cell-type/table-cell-type-models.d.ts +39 -0
  1343. package/table-cell-type/table-cell-type-name.d.ts +1 -0
  1344. package/table-cell-type/table-cell-type-selector.component.d.ts +25 -0
  1345. package/table-cell-type/table-cell-type-tokens.d.ts +4 -0
  1346. package/table-cell-type/table-cell-type.module.d.ts +2 -0
  1347. package/table-cell-type/theseam-ui-common-table-cell-type.d.ts +4 -0
  1348. package/table-cell-type/theseam-ui-common-table-cell-type.metadata.json +1 -0
  1349. package/table-cell-types/package.json +11 -0
  1350. package/table-cell-types/public-api.d.ts +15 -0
  1351. package/table-cell-types/table-cell-type-date/table-cell-type-date-config.d.ts +9 -0
  1352. package/table-cell-types/table-cell-type-date/table-cell-type-date.component.d.ts +12 -0
  1353. package/table-cell-types/table-cell-type-date/table-cell-type-date.d.ts +3 -0
  1354. package/table-cell-types/table-cell-type-decimal/table-cell-type-decimal-config.d.ts +3 -0
  1355. package/table-cell-types/table-cell-type-icon/table-cell-type-icon-config.d.ts +34 -0
  1356. package/table-cell-types/table-cell-type-icon/table-cell-type-icon.component.d.ts +53 -0
  1357. package/table-cell-types/table-cell-type-integer/table-cell-type-integer-config.d.ts +3 -0
  1358. package/table-cell-types/table-cell-type-manifests.d.ts +10 -0
  1359. package/table-cell-types/table-cell-type-phone/table-cell-type-phone-config.d.ts +13 -0
  1360. package/table-cell-types/table-cell-type-phone/table-cell-type-phone.component.d.ts +17 -0
  1361. package/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle-config.d.ts +29 -0
  1362. package/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle.component.d.ts +48 -0
  1363. package/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon-config.d.ts +49 -0
  1364. package/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon.component.d.ts +21 -0
  1365. package/table-cell-types/table-cell-type-string/table-cell-type-string-config.d.ts +10 -0
  1366. package/table-cell-types/table-cell-type-string/table-cell-type-string.component.d.ts +45 -0
  1367. package/table-cell-types/table-cell-types.module.d.ts +2 -0
  1368. package/table-cell-types/theseam-ui-common-table-cell-types.d.ts +6 -0
  1369. package/table-cell-types/theseam-ui-common-table-cell-types.metadata.json +1 -0
  1370. package/tel-input/intl-tel-input.d.ts +300 -0
  1371. package/tel-input/models/index.d.ts +2 -0
  1372. package/tel-input/models/tel-input-country-data.d.ts +9 -0
  1373. package/tel-input/models/tel-input-number-format-name.d.ts +4 -0
  1374. package/tel-input/package.json +11 -0
  1375. package/tel-input/phone-number.pipe.d.ts +11 -0
  1376. package/tel-input/public-api.d.ts +9 -0
  1377. package/tel-input/tel-input/tel-input.component.d.ts +83 -0
  1378. package/tel-input/tel-input-constants.d.ts +4 -0
  1379. package/tel-input/tel-input-validator.d.ts +7 -0
  1380. package/tel-input/tel-input.directive.d.ts +28 -0
  1381. package/tel-input/tel-input.module.d.ts +2 -0
  1382. package/tel-input/theseam-ui-common-tel-input.d.ts +4 -0
  1383. package/tel-input/theseam-ui-common-tel-input.metadata.json +1 -0
  1384. package/tel-input/utils/add-country-code.d.ts +7 -0
  1385. package/tel-input/utils/coerce-phone-number-format.d.ts +7 -0
  1386. package/tel-input/utils/get-country-code.d.ts +2 -0
  1387. package/tel-input/utils/get-dial-code.d.ts +9 -0
  1388. package/tel-input/utils/get-global-intl-tel-input-globals.d.ts +2 -0
  1389. package/tel-input/utils/get-global-intl-tel-input-utils.d.ts +2 -0
  1390. package/tel-input/utils/get-intl-tel-input-utils.d.ts +2 -0
  1391. package/tel-input/utils/get-validation-error-message.d.ts +5 -0
  1392. package/tel-input/utils/index.d.ts +9 -0
  1393. package/tel-input/utils/process-country-codes.d.ts +8 -0
  1394. package/test-helpers/package.json +11 -0
  1395. package/test-helpers/public-api.d.ts +1 -0
  1396. package/test-helpers/theseam-ui-common-test-helpers.d.ts +4 -0
  1397. package/test-helpers/theseam-ui-common-test-helpers.metadata.json +1 -0
  1398. package/test-helpers/tick-helper.d.ts +70 -0
  1399. package/theseam-ui-common.d.ts +4 -0
  1400. package/theseam-ui-common.metadata.json +1 -0
  1401. package/tiled-select/components/tiled-select/tiled-select.component.d.ts +50 -0
  1402. package/tiled-select/components/tiled-select-tile/tiled-select-tile.component.d.ts +41 -0
  1403. package/tiled-select/components/tiled-select-tile-icon/tiled-select-tile-icon.component.d.ts +26 -0
  1404. package/tiled-select/directives/tiled-select-tile-icon-tpl.directive.d.ts +5 -0
  1405. package/tiled-select/directives/tiled-select-tile-label-tpl.directive.d.ts +5 -0
  1406. package/tiled-select/directives/tiled-select-tile-overlay.directive.d.ts +7 -0
  1407. package/tiled-select/package.json +11 -0
  1408. package/tiled-select/public-api.d.ts +8 -0
  1409. package/tiled-select/theseam-ui-common-tiled-select.d.ts +4 -0
  1410. package/tiled-select/theseam-ui-common-tiled-select.metadata.json +1 -0
  1411. package/tiled-select/tiled-select.models.d.ts +11 -0
  1412. package/tiled-select/tiled-select.module.d.ts +2 -0
  1413. package/toggle-edit/models/can-toggle-edit.d.ts +7 -0
  1414. package/toggle-edit/models/index.d.ts +2 -0
  1415. package/toggle-edit/models/toggle-edit-ref.d.ts +30 -0
  1416. package/toggle-edit/package.json +11 -0
  1417. package/toggle-edit/public-api.d.ts +6 -0
  1418. package/toggle-edit/theseam-ui-common-toggle-edit.d.ts +4 -0
  1419. package/toggle-edit/theseam-ui-common-toggle-edit.metadata.json +1 -0
  1420. package/toggle-edit/toggle-edit-actions-container/toggle-edit-actions-container.component.d.ts +5 -0
  1421. package/toggle-edit/toggle-edit-display-tpl.directive.d.ts +5 -0
  1422. package/toggle-edit/toggle-edit-keyboard-listener.service.d.ts +14 -0
  1423. package/toggle-edit/toggle-edit.component.d.ts +90 -0
  1424. package/toggle-edit/toggle-edit.module.d.ts +2 -0
  1425. package/toggle-group/package.json +11 -0
  1426. package/toggle-group/public-api.d.ts +3 -0
  1427. package/toggle-group/theseam-ui-common-toggle-group.d.ts +4 -0
  1428. package/toggle-group/theseam-ui-common-toggle-group.metadata.json +1 -0
  1429. package/toggle-group/toggle-group-option.directive.d.ts +15 -0
  1430. package/toggle-group/toggle-group.directive.d.ts +36 -0
  1431. package/toggle-group/toggle-group.module.d.ts +2 -0
  1432. package/unsaved-changes-dialog/package.json +11 -0
  1433. package/unsaved-changes-dialog/public-api.d.ts +4 -0
  1434. package/unsaved-changes-dialog/theseam-ui-common-unsaved-changes-dialog.d.ts +4 -0
  1435. package/unsaved-changes-dialog/theseam-ui-common-unsaved-changes-dialog.metadata.json +1 -0
  1436. package/unsaved-changes-dialog/unsaved-changes-can-deactivate.d.ts +4 -0
  1437. package/unsaved-changes-dialog/unsaved-changes-dialog.component.d.ts +5 -0
  1438. package/unsaved-changes-dialog/unsaved-changes-dialog.guard.d.ts +8 -0
  1439. package/unsaved-changes-dialog/unsaved-changes-dialog.module.d.ts +2 -0
  1440. package/utils/calc-percentage.d.ts +1 -0
  1441. package/utils/cdk/get-closest-widget-cdk-drag.d.ts +8 -0
  1442. package/utils/create-padding.d.ts +1 -0
  1443. package/utils/file-utils.d.ts +12 -0
  1444. package/utils/form/get-control-name.d.ts +22 -0
  1445. package/utils/form/get-control-path.d.ts +27 -0
  1446. package/utils/form/has-required-control.d.ts +31 -0
  1447. package/utils/form/is-empty-input-value.d.ts +1 -0
  1448. package/utils/form/observe-control-is-different.d.ts +13 -0
  1449. package/utils/form/observe-control-status.d.ts +7 -0
  1450. package/utils/form/observe-control-valid.d.ts +14 -0
  1451. package/utils/form/observe-control-value-change.d.ts +9 -0
  1452. package/utils/form/observe-control-value.d.ts +6 -0
  1453. package/utils/form/wait-on-non-pending-status.d.ts +12 -0
  1454. package/utils/fractional-digits-count.d.ts +8 -0
  1455. package/utils/get-attribute.d.ts +4 -0
  1456. package/utils/has-attribute.d.ts +4 -0
  1457. package/utils/has-property.d.ts +1 -0
  1458. package/utils/input-masks.d.ts +1 -0
  1459. package/utils/is-absolute-url.d.ts +1 -0
  1460. package/utils/is-null-or-undefined.d.ts +1 -0
  1461. package/utils/is-numeric.d.ts +1 -0
  1462. package/utils/load-style-sheet.d.ts +1 -0
  1463. package/utils/load-style.d.ts +1 -0
  1464. package/utils/not-null-or-undefined.d.ts +1 -0
  1465. package/utils/obj-utils.d.ts +8 -0
  1466. package/utils/observe-query-list.d.ts +3 -0
  1467. package/utils/operators/index.d.ts +2 -0
  1468. package/utils/operators/map-each.d.ts +2 -0
  1469. package/utils/operators/tap-first.d.ts +5 -0
  1470. package/utils/package.json +11 -0
  1471. package/utils/pad-end.d.ts +1 -0
  1472. package/utils/pad-start.d.ts +1 -0
  1473. package/utils/polling-ticker.d.ts +13 -0
  1474. package/utils/public-api.d.ts +37 -0
  1475. package/utils/refreshable.d.ts +20 -0
  1476. package/utils/router/index.d.ts +6 -0
  1477. package/utils/router/is-empty-url-route.d.ts +2 -0
  1478. package/utils/router/leaf-child-route.d.ts +2 -0
  1479. package/utils/router/operators/activated-routes-with-data-property.d.ts +7 -0
  1480. package/utils/router/route-snapshot-path-full.d.ts +2 -0
  1481. package/utils/router/route-snapshot-path-relative.d.ts +2 -0
  1482. package/utils/router/will-have-data-prop.d.ts +2 -0
  1483. package/utils/subscriber-count.d.ts +1 -0
  1484. package/utils/theseam-ui-common-utils.d.ts +4 -0
  1485. package/utils/theseam-ui-common-utils.metadata.json +1 -0
  1486. package/utils/toggle-attribute.d.ts +16 -0
  1487. package/utils/wait-on-condition-async.d.ts +1 -0
  1488. package/utils/wrap-into-observable.d.ts +2 -0
  1489. package/validators/decimal.validator.d.ts +9 -0
  1490. package/validators/email-exists.validator.d.ts +10 -0
  1491. package/validators/integer.validator.d.ts +9 -0
  1492. package/validators/package.json +11 -0
  1493. package/validators/phone-length.validator.d.ts +7 -0
  1494. package/validators/public-api.d.ts +5 -0
  1495. package/validators/tax-id.validator.d.ts +11 -0
  1496. package/validators/theseam-ui-common-validators.d.ts +4 -0
  1497. package/validators/theseam-ui-common-validators.metadata.json +1 -0
  1498. package/viewers/package.json +11 -0
  1499. package/viewers/pdf-viewer/index.d.ts +3 -0
  1500. package/viewers/pdf-viewer/pdf-page/pdf-page.component.d.ts +39 -0
  1501. package/viewers/pdf-viewer/pdf-renderer.service.d.ts +6 -0
  1502. package/viewers/pdf-viewer/pdf-viewer.component.d.ts +59 -0
  1503. package/viewers/pdf-viewer/pdf-viewer.module.d.ts +2 -0
  1504. package/viewers/public-api.d.ts +1 -0
  1505. package/viewers/theseam-ui-common-viewers.d.ts +4 -0
  1506. package/viewers/theseam-ui-common-viewers.metadata.json +1 -0
  1507. package/widget/_widget-theme.scss +15 -0
  1508. package/widget/directives/widget-drag-handle.directive.d.ts +53 -0
  1509. package/widget/directives/widget-icon-tpl.directive.d.ts +5 -0
  1510. package/widget/directives/widget-title-tpl.directive.d.ts +5 -0
  1511. package/widget/package.json +11 -0
  1512. package/widget/public-api.d.ts +37 -0
  1513. package/widget/styles/_utilities.scss +3 -0
  1514. package/widget/styles/_variables.scss +27 -0
  1515. package/widget/theseam-ui-common-widget.d.ts +4 -0
  1516. package/widget/theseam-ui-common-widget.metadata.json +1 -0
  1517. package/widget/widget/widget.component.d.ts +78 -0
  1518. package/widget/widget/widget.component.scss +107 -0
  1519. package/widget/widget-content-components/widget-button-group/widget-button-group.component.d.ts +5 -0
  1520. package/widget/widget-content-components/widget-button-group/widget-button-group.component.scss +3 -0
  1521. package/widget/widget-content-components/widget-button-group/widget-button-group.module.d.ts +2 -0
  1522. package/widget/widget-content-components/widget-content-header/widget-content-header.component.d.ts +5 -0
  1523. package/widget/widget-content-components/widget-content-header/widget-content-header.component.scss +6 -0
  1524. package/widget/widget-content-components/widget-content-header/widget-content-header.module.d.ts +2 -0
  1525. package/widget/widget-content-components/widget-description/widget-description.component.d.ts +2 -0
  1526. package/widget/widget-content-components/widget-description/widget-description.component.scss +0 -0
  1527. package/widget/widget-content-components/widget-description/widget-description.module.d.ts +2 -0
  1528. package/widget/widget-content-components/widget-empty-label/widget-empty-label.component.d.ts +15 -0
  1529. package/widget/widget-content-components/widget-empty-label/widget-empty-label.component.scss +9 -0
  1530. package/widget/widget-content-components/widget-empty-label/widget-empty-label.module.d.ts +2 -0
  1531. package/widget/widget-content-components/widget-footer-link/widget-footer-link.component.d.ts +5 -0
  1532. package/widget/widget-content-components/widget-footer-link/widget-footer-link.component.scss +8 -0
  1533. package/widget/widget-content-components/widget-footer-link/widget-footer-link.module.d.ts +2 -0
  1534. package/widget/widget-content-components/widget-footer-text/widget-footer-text.component.d.ts +5 -0
  1535. package/widget/widget-content-components/widget-footer-text/widget-footer-text.component.scss +7 -0
  1536. package/widget/widget-content-components/widget-footer-text/widget-footer-text.module.d.ts +2 -0
  1537. package/widget/widget-content-components/widget-header-badge/widget-header-badge.component.d.ts +12 -0
  1538. package/widget/widget-content-components/widget-header-badge/widget-header-badge.component.scss +5 -0
  1539. package/widget/widget-content-components/widget-header-badge/widget-header-badge.module.d.ts +2 -0
  1540. package/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item-icon-tpl.directive.d.ts +5 -0
  1541. package/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item.component.d.ts +57 -0
  1542. package/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item.component.scss +0 -0
  1543. package/widget/widget-content-components/widget-list-group/widget-list-group.component.d.ts +5 -0
  1544. package/widget/widget-content-components/widget-list-group/widget-list-group.component.scss +0 -0
  1545. package/widget/widget-content-components/widget-list-group/widget-list-group.module.d.ts +2 -0
  1546. package/widget/widget-content-components/widget-table/widget-table.component.d.ts +14 -0
  1547. package/widget/widget-content-components/widget-table/widget-table.component.scss +0 -0
  1548. package/widget/widget-content-components/widget-table/widget-table.module.d.ts +2 -0
  1549. package/widget/widget-content-components/widget-tile/widget-tile-footer/widget-tile-footer.component.d.ts +5 -0
  1550. package/widget/widget-content-components/widget-tile/widget-tile-footer/widget-tile-footer.component.scss +0 -0
  1551. package/widget/widget-content-components/widget-tile/widget-tile-footer-item/widget-tile-footer-item.component.d.ts +15 -0
  1552. package/widget/widget-content-components/widget-tile/widget-tile-footer-item/widget-tile-footer-item.component.scss +5 -0
  1553. package/widget/widget-content-components/widget-tile/widget-tile-group/widget-tile-group.component.d.ts +5 -0
  1554. package/widget/widget-content-components/widget-tile/widget-tile-group/widget-tile-group.component.scss +14 -0
  1555. package/widget/widget-content-components/widget-tile/widget-tile-secondary-icon.directive.d.ts +5 -0
  1556. package/widget/widget-content-components/widget-tile/widget-tile.component.d.ts +44 -0
  1557. package/widget/widget-content-components/widget-tile/widget-tile.component.scss +70 -0
  1558. package/widget/widget-content-components/widget-tile/widget-tile.module.d.ts +2 -0
  1559. package/widget/widget-content-components/widget-tile-list/widget-tile-list.component.d.ts +5 -0
  1560. package/widget/widget-content-components/widget-tile-list/widget-tile-list.component.scss +6 -0
  1561. package/widget/widget-content-components/widget-tile-list/widget-tile-list.module.d.ts +2 -0
  1562. package/widget/widget-footer/widget-footer.component.d.ts +5 -0
  1563. package/widget/widget-footer/widget-footer.component.scss +16 -0
  1564. package/widget/widget-registry.models.d.ts +20 -0
  1565. package/widget/widget-registry.service.d.ts +16 -0
  1566. package/widget/widget-token.d.ts +3 -0
  1567. package/widget/widget.module.d.ts +2 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theseam-ui-common-form-field.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../projects/ui-common/form-field/form-field-error.directive.ts","../../../projects/ui-common/form-field/form-field-help-text.directive.ts","../../../projects/ui-common/form-field/form-field-label-tpl.directive.ts","../../../projects/ui-common/form-field/input.directive.ts","../../../projects/ui-common/form-field/form-field.component.ts","../../../projects/ui-common/form-field/form-field-required-indicator.component.ts","../../../projects/ui-common/form-field/form-field.module.ts","../../../projects/ui-common/form-field/theseam-ui-common-form-field.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || from);\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import { BooleanInput } from '@angular/cdk/coercion'\nimport { Directive, Input, TemplateRef } from '@angular/core'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\n\n@Directive({\n selector: '[seamFormFieldError]'\n})\nexport class FormFieldErrorDirective {\n static ngAcceptInputType_external: BooleanInput\n\n @Input()\n get validatorName(): string | undefined | null { return this._validatorName || this.seamFormFieldError }\n set validatorName(value: string | undefined | null) { this._validatorName = value }\n private _validatorName: string | undefined | null\n\n @Input() seamFormFieldError: string | undefined | null\n\n @Input() @InputBoolean() external: boolean = false\n\n constructor(public template: TemplateRef<any>) {}\n\n}\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamFormFieldHelpText]'\n})\nexport class FormFieldHelpTextDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamFormFieldLabelTpl]'\n})\nexport class FormFieldLabelTplDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'\nimport { Directive, DoCheck, ElementRef, HostBinding, Input, Optional, Self } from '@angular/core'\nimport { FormGroupDirective, NgControl, NgForm } from '@angular/forms'\nimport { Subject } from 'rxjs'\n\nimport { NgSelectComponent } from '@ng-select/ng-select'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\nimport { toggleAttribute } from '@theseam/ui-common/utils'\n\n// NOTE: Partially based on mat-input: https://github.com/angular/material2/blob/master/src/lib/input/input.ts\n\nlet nextUniqueId = 0\n\n@Directive({\n // TODO: Consider removing restriction and instead adding a dev warning. A few\n // inputs in the app need to be changed for this first.\n selector: 'input[seamInput], textarea[seamInput], ng-select[seamInput], seam-checkbox[seamInput] [ngbRadioGroup], seam-tel-input[seamInput], quill-editor[seamInput]',\n exportAs: 'seamInput',\n})\nexport class InputDirective implements DoCheck {\n static ngAcceptInputType_required: BooleanInput\n static ngAcceptInputType_disabled: BooleanInput\n static ngAcceptInputType_readonly: BooleanInput\n\n protected _uid = `lib-input-${nextUniqueId++}`\n\n // TODO: Remove this being added to all seamInput elements or break this\n // directive up. Some elements in our app already have worked around this\n // class being there, so some refactoring will be required before removal.\n @HostBinding('class.form-control') _isFormControl = true\n @HostBinding('class.form-control-sm') get _isFormControlSmall() {\n return this._isFormControl && this.seamInputSize === 'sm'\n }\n @HostBinding('class.is-invalid') get _isInvalid() {\n return this.ngControl && this.ngControl.invalid && (this.ngControl.dirty || this.ngControl.touched)\n }\n\n @HostBinding('attr.id') get _attrId() { return this._isNgSelect() ? undefined : this.id }\n @HostBinding('attr.placeholder') get _attrPlaceholder() { return this.placeholder }\n @HostBinding('attr.aria-describedby') ariaDescribedBy: string | undefined\n\n @Input() seamInputSize: 'sm' | 'normal' = 'normal'\n\n @Input()\n get id(): string | undefined | null { return this._id }\n set id(value: string | undefined | null) { this._id = value || this._uid }\n protected _id: string | undefined | null\n\n /** Input type of the element. */\n @Input()\n get type(): string | undefined | null { return this._type }\n set type(value: string | undefined | null) {\n this._type = value || 'text'\n // this._validateType()\n\n // When using Angular inputs, developers are no longer able to set the properties on the native\n // input element. To ensure that bindings for `type` work, we need to sync the setter\n // with the native property. Textarea elements don't support the type property or attribute.\n if ((!this._isTextarea() && !this._isNgSelect()) /* && getSupportedInputTypes().has(this._type) */) {\n (this._elementRef.nativeElement as HTMLInputElement).type = this._type\n }\n }\n protected _type: string | undefined | null = 'text'\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n @Input() placeholder: string | undefined | null\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n @Input() @InputBoolean() required: boolean = false\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n @Input()\n get disabled(): boolean {\n if (this.ngControl && this.ngControl.disabled !== null) {\n return this.ngControl.disabled\n }\n return this._disabled\n }\n set disabled(value: boolean) {\n this._disabled = coerceBooleanProperty(value)\n\n // Browsers may not fire the blur event if the input is disabled too quickly.\n // Reset from here to ensure that the element doesn't become stuck.\n if (this.focused) {\n this.focused = false\n this.stateChanges.next()\n }\n }\n protected _disabled = false\n\n focused = false\n\n readonly stateChanges: Subject<void> = new Subject<void>()\n\n // @Input()\n // get value(): string { return this._inputValueAccessor.value; }\n // set value(value: string) {\n // if (value !== this.value) {\n // this._inputValueAccessor.value = value;\n // this.stateChanges.next();\n // }\n // }\n\n /** Whether the element is readonly. */\n @Input() @InputBoolean() readonly: boolean = false\n\n constructor(\n public _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>,\n @Optional() @Self() public ngControl: NgControl,\n @Optional() private _parentForm: NgForm,\n @Optional() private _parentFormGroup: FormGroupDirective,\n // 3rd party support\n @Optional() private _ngSelect: NgSelectComponent\n ) {\n // Force setter to be called in case id was not specified.\n this.id = this.id\n\n if (!this._shouldHaveFormControlCssClass()) {\n this._isFormControl = false\n }\n }\n\n ngDoCheck() {\n if (this._isNgSelect()) {\n this._ngSelect.labelForId = this.id\n this._ngSelect.setDisabledState(this.disabled)\n } else {\n toggleAttribute(this._elementRef.nativeElement, 'required', this.required)\n toggleAttribute(this._elementRef.nativeElement, 'disabled', this.disabled)\n }\n }\n\n /** Should only be textual inputs, but initially our app added to all form controls. */\n protected _shouldHaveFormControlCssClass() {\n return !this._isSeamCheckbox()\n && !this._isRadioInput()\n && !this._isNgbRadioGroup()\n && !this._isTelInput()\n && !this._isQuillEditor()\n }\n\n /** Determines if the component host is a textarea. */\n protected _isTextarea() {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'textarea'\n }\n\n /** Determines if the component host is a ng-select. */\n protected _isNgSelect() {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'ng-select'\n }\n\n /** Determines if the component host is a seam-checkbox. */\n protected _isSeamCheckbox() {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'seam-checkbox'\n }\n\n /** Determines if the component host is a radio input. */\n protected _isRadioInput() {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'input' &&\n this._elementRef.nativeElement.type.toLowerCase() === 'radio'\n }\n\n protected _isNgbRadioGroup() {\n return this._elementRef.nativeElement.getAttribute('ngbRadioGroup') !== null\n }\n\n protected _isTelInput() {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'seam-tel-input'\n }\n\n protected _isQuillEditor() {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'quill-editor'\n }\n\n /** Make sure the input is a supported type. */\n // protected _validateType() {\n // if (MAT_INPUT_INVALID_TYPES.indexOf(this._type) > -1) {\n // throw getMatInputUnsupportedTypeError(this._type)\n // }\n // }\n\n /** Focuses the input. */\n focus(): void {\n this._elementRef.nativeElement.focus()\n }\n\n /** Unfocuses the input. */\n blur(): void {\n this._elementRef.nativeElement.blur()\n }\n\n setValue(value: any) {\n if (this.ngControl) {\n const control = this.ngControl.control\n if (control) {\n control.setValue(value)\n }\n }\n }\n\n}\n","import { BooleanInput } from '@angular/cdk/coercion'\nimport {\n Component,\n ContentChild,\n ContentChildren,\n ElementRef,\n HostBinding,\n Input,\n OnDestroy,\n OnInit,\n QueryList\n} from '@angular/core'\nimport { BehaviorSubject, combineLatest, Observable, ReplaySubject, Subscription } from 'rxjs'\nimport { distinctUntilChanged, filter, map, startWith, switchMap, tap } from 'rxjs/operators'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\nimport { IErrorRecord } from '@theseam/ui-common/form-field-error'\n\nimport { FormFieldErrorDirective } from './form-field-error.directive'\nimport { FormFieldHelpTextDirective } from './form-field-help-text.directive'\nimport { FormFieldLabelTplDirective } from './form-field-label-tpl.directive'\nimport { InputDirective } from './input.directive'\n\nlet nextLabelUniqueId = 0\n\n/**\n * Should wrap all form controls.\n */\n@Component({\n selector: 'seam-form-field',\n templateUrl: './form-field.component.html',\n styleUrls: ['./form-field.component.scss']\n})\nexport class TheSeamFormFieldComponent implements OnInit, OnDestroy {\n static ngAcceptInputType_inline: BooleanInput\n\n private readonly _helpTextStrSubject = new BehaviorSubject<string | undefined>(undefined)\n private readonly _helpTextTplSubject = new BehaviorSubject<FormFieldHelpTextDirective | undefined>(undefined)\n private readonly _contentInputSubject = new BehaviorSubject<InputDirective | undefined>(undefined)\n\n /** @ignore */\n protected _labelUid = `seam-label-${nextLabelUniqueId++}`\n\n /** @ignore */\n protected _helpTextUid = `seam-help-text-${nextLabelUniqueId++}`\n\n /** @ignore */\n public _errorPadding = '0px'\n\n /** @ignore */\n @HostBinding('style.display') get _displayStyle() { return this.inline ? 'inline-block' : 'block' }\n\n /**\n * Used to declare an inline element.\n *\n * NOTE: Not well tested or supported, so it may have some issues currently\n * and could change.\n */\n @Input() @InputBoolean() inline: boolean = false\n\n /** Add a text label for the form control. */\n @Input() label: string | undefined | null\n\n /**\n * The label can be on top or inline.\n *\n * > Only supports `ltr` direction, so inline will only place the label on the\n * > left.\n */\n @Input() labelPosition: 'top' | 'inline' = 'top'\n\n /**\n * CSS class to add to the label element.\n *\n * Accepts a single space separated string of classes, like the html class\n * attribute.\n */\n @Input() labelClass: string | undefined | null\n\n /** Max errors to display. */\n @Input() maxErrors = -1\n\n /**\n * A padding error is an always allocated space equivalent to a single line\n * error string.\n */\n @Input() numPaddingErrors = 1\n\n /**\n * `id` attribute to add to the label element. This should not be needed in\n * most situations, because a unique id will be generated if not provided.\n */\n @Input()\n get labelId(): string | undefined | null { return this._labelId }\n set labelId(value: string | undefined | null) { this._labelId = value || this._labelUid }\n /** @ignore */\n protected _labelId: string | undefined | null\n\n /**\n * Help text added below the control.\n */\n @Input()\n get helpText(): string | undefined | null { return this._helpTextStrSubject.value }\n set helpText(value: string | undefined | null) {\n this._helpTextStrSubject.next(value || undefined)\n }\n\n /**\n * `id` attribute to add to the label element. This should not be needed in\n * most situations, because a unique id will be generated if not provided.\n */\n @Input()\n get helpTextId(): string | undefined | null { return this._helpTextId }\n set helpTextId(value: string | undefined | null) { this._helpTextId = value || this._helpTextUid }\n /** @ignore */\n protected _helpTextId: string | undefined | null\n\n /** @ignore */\n @ContentChild(FormFieldHelpTextDirective, { static: true })\n get helpTextTpl(): FormFieldLabelTplDirective | undefined { return this._helpTextTplSubject.value }\n set helpTextTpl(value: FormFieldLabelTplDirective | undefined) {\n this._helpTextTplSubject.next(value || undefined)\n }\n\n /** @ignore */\n @ContentChild(FormFieldLabelTplDirective, { static: true }) labelTpl?: FormFieldLabelTplDirective\n\n /** @ignore */\n @ContentChild(InputDirective, { static: true })\n get contentInput(): InputDirective | undefined { return this._contentInputSubject.value }\n set contentInput(value: InputDirective | undefined) { this._contentInputSubject.next(value || undefined) }\n\n\n /** @ignore */\n @ContentChildren(FormFieldErrorDirective)\n get fieldErrors() { return this._fieldErrors }\n set fieldErrors(value: QueryList<FormFieldErrorDirective[]> | undefined | null) {\n this._fieldErrors = value\n\n if (this._sub) { this._sub.unsubscribe() }\n if (this.fieldErrors) {\n this._sub = this.fieldErrors.changes\n .pipe(startWith(this.fieldErrors))\n .pipe(map(v => v.toArray() as FormFieldErrorDirective[]))\n .pipe(tap(v => {\n const records: IErrorRecord[] = []\n for (const item of v) {\n if (item.validatorName) {\n records.push({\n validatorName: item.validatorName,\n error: null,\n template: item.template,\n external: item.external\n })\n }\n }\n this._fieldErrorsSubject2.next(records)\n }))\n .subscribe(v => this._fieldErrorsSubject.next(v))\n }\n }\n /** @ignore */\n private _fieldErrors: QueryList<FormFieldErrorDirective[]> | undefined | null\n /** @ignore */\n private _sub?: Subscription\n\n /** @ignore */\n private readonly _fieldErrorsSubject = new ReplaySubject<FormFieldErrorDirective[]>(1)\n /** @ignore */\n public readonly fieldErrors$: Observable<FormFieldErrorDirective[]> = this._fieldErrorsSubject.asObservable()\n\n /** @ignore */\n private readonly _fieldErrorsSubject2 = new ReplaySubject<IErrorRecord[]>(1)\n /** @ignore */\n public readonly fieldErrors2$: Observable<IErrorRecord[]> = this._fieldErrorsSubject2.asObservable()\n\n get isPasswordInput() {\n return this.contentInput && this.contentInput.type && this.contentInput.type === 'password'\n }\n get passwordInputElement() {\n return this.contentInput && this.contentInput._elementRef && this.contentInput._elementRef.nativeElement\n }\n\n get hasHelpText() { return !!this._helpTextStrSubject.value || !!this._helpTextTplSubject.value }\n // get hasHelpText() { return !!this.helpText || !!this._helpTextTpl }\n\n private _helpTextSub = Subscription.EMPTY\n\n /** @ignore */\n constructor(\n private readonly _elementRef: ElementRef\n ) { }\n\n /** @ignore */\n ngOnInit() {\n this._helpTextSub = this._contentInputSubject.pipe(\n filter(contentInput => !!contentInput),\n switchMap(contentInput => combineLatest([\n this._helpTextStrSubject,\n this._helpTextTplSubject\n ]).pipe(\n map(() => this.hasHelpText),\n distinctUntilChanged(),\n tap(() => {\n if (!!contentInput) {\n contentInput.ariaDescribedBy = this._helpTextId || undefined\n }\n })\n ))\n ).subscribe()\n }\n\n /** @ignore */\n ngOnDestroy() {\n this._sub?.unsubscribe()\n this._helpTextSub?.unsubscribe()\n }\n\n /** @ignore */\n public isValidatorMatch(validatorName: string, tplValidatorName: string, errors: any): boolean {\n const tplValidatorNames = tplValidatorName.split(' ')\n\n for (let i = 0; i < tplValidatorNames.length; i++) {\n const name = tplValidatorNames[i]\n if (name === validatorName && i === 0) {\n return true\n }\n }\n\n return false\n }\n\n /** @ignore */\n public _labelElemResized(labelElem: HTMLLabelElement) {\n if (labelElem) {\n this._errorPadding = `${labelElem.getBoundingClientRect().width}px`\n } else {\n this._errorPadding = '0px'\n }\n }\n\n public getElement(): HTMLElement {\n return this._elementRef.nativeElement\n }\n\n}\n","import { BooleanInput } from '@angular/cdk/coercion'\nimport { ChangeDetectionStrategy, Component, Input, Optional } from '@angular/core'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\n\nimport { TheSeamFormFieldComponent } from './form-field.component'\n\n@Component({\n selector: 'seam-form-field-required-indicator',\n template: `\n <ng-container *ngIf=\"_formField?.contentInput; else noControl\">\n <ng-container *ngIf=\"_formField?.contentInput?.required\">*</ng-container>\n </ng-container>\n <ng-template #noControl>\n <ng-container *ngIf=\"required\">*</ng-container>\n </ng-template>\n `,\n styles: [],\n host: {\n 'class': 'text-danger'\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormFieldRequiredIndicatorComponent {\n static ngAcceptInputType_required: BooleanInput\n\n /** Used if a form control is not found. */\n @Input() @InputBoolean() required: boolean = false\n\n constructor(\n @Optional() public readonly _formField: TheSeamFormFieldComponent\n ) { }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { ReactiveFormsModule } from '@angular/forms'\n\nimport { TheSeamFormFieldErrorModule } from '@theseam/ui-common/form-field-error'\nimport { TheSeamSharedModule } from '@theseam/ui-common/shared'\n\nimport { FormFieldErrorDirective } from './form-field-error.directive'\nimport { FormFieldHelpTextDirective } from './form-field-help-text.directive'\nimport { FormFieldLabelTplDirective } from './form-field-label-tpl.directive'\nimport { FormFieldRequiredIndicatorComponent } from './form-field-required-indicator.component'\nimport { TheSeamFormFieldComponent } from './form-field.component'\nimport { InputDirective } from './input.directive'\n\n@NgModule({\n declarations: [\n TheSeamFormFieldComponent,\n InputDirective,\n FormFieldErrorDirective,\n FormFieldLabelTplDirective,\n FormFieldRequiredIndicatorComponent,\n FormFieldHelpTextDirective\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n TheSeamFormFieldErrorModule,\n TheSeamSharedModule\n ],\n exports: [\n TheSeamFormFieldComponent,\n InputDirective,\n FormFieldErrorDirective,\n FormFieldLabelTplDirective,\n FormFieldRequiredIndicatorComponent,\n FormFieldHelpTextDirective\n ]\n})\nexport class TheSeamFormFieldModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["Directive","TemplateRef","Input","InputBoolean","Subject","coerceBooleanProperty","toggleAttribute","ElementRef","NgControl","Optional","Self","NgForm","FormGroupDirective","NgSelectComponent","HostBinding","BehaviorSubject","ReplaySubject","Subscription","startWith","map","tap","filter","switchMap","combineLatest","distinctUntilChanged","Component","ContentChild","ContentChildren","ChangeDetectionStrategy","NgModule","CommonModule","ReactiveFormsModule","TheSeamFormFieldErrorModule","TheSeamSharedModule"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC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;;gBAxBNsB,cAAS,SAAC;oBACT,QAAQ,EAAE,oCAAoC;oBAC9C,QAAQ,EAAE,gSAOT;oBAED,IAAI,EAAE;wBACJ,OAAO,EAAE,aAAa;qBACvB;oBACD,eAAe,EAAEG,4BAAuB,CAAC,MAAM;iBAChD;;;gBAjBQ,yBAAyB,uBAyB7BnB,aAAQ;;;2BAHVP,UAAK;;IAAmB;QAAfC,mBAAY,EAAE;yEAA0B;;;QCWpD;;;;;gBAxBC0B,aAAQ,SAAC;oBACR,YAAY,EAAE;wBACZ,yBAAyB;wBACzB,cAAc;wBACd,uBAAuB;wBACvB,0BAA0B;wBAC1B,mCAAmC;wBACnC,0BAA0B;qBAC3B;oBACD,OAAO,EAAE;wBACPC,mBAAY;wBACZC,yBAAmB;wBACnBC,0CAA2B;wBAC3BC,0BAAmB;qBACpB;oBACD,OAAO,EAAE;wBACP,yBAAyB;wBACzB,cAAc;wBACd,uBAAuB;wBACvB,0BAA0B;wBAC1B,mCAAmC;wBACnC,0BAA0B;qBAC3B;iBACF;;;ICrCD;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3344 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/portal'), require('rxjs'), require('@fortawesome/free-solid-svg-icons'), require('@theseam/ui-common/layout'), require('@angular/common'), require('@theseam/ui-common/buttons'), require('@theseam/ui-common/icon'), require('@theseam/ui-common/scrollbar'), require('rxjs/operators'), require('@angular/cdk/coercion'), require('@angular/cdk/drag-drop'), require('@theseam/ui-common/core'), require('@theseam/ui-common/widget'), require('@theseam/ui-common/dynamic-component-loader'), require('@theseam/ui-common/utils'), require('@theseam/ui-common/shared'), require('@angular/animations'), require('@angular/router'), require('@angular/cdk/a11y'), require('@ng-bootstrap/ng-bootstrap'), require('@fortawesome/free-regular-svg-icons'), require('@theseam/ui-common/menu'), require('@ajsf/core'), require('@angular/forms'), require('@ng-select/ng-select'), require('@theseam/ui-common/checkbox'), require('@theseam/ui-common/form-field')) :
3
+ typeof define === 'function' && define.amd ? define('@theseam/ui-common/framework', ['exports', '@angular/core', '@angular/cdk/portal', 'rxjs', '@fortawesome/free-solid-svg-icons', '@theseam/ui-common/layout', '@angular/common', '@theseam/ui-common/buttons', '@theseam/ui-common/icon', '@theseam/ui-common/scrollbar', 'rxjs/operators', '@angular/cdk/coercion', '@angular/cdk/drag-drop', '@theseam/ui-common/core', '@theseam/ui-common/widget', '@theseam/ui-common/dynamic-component-loader', '@theseam/ui-common/utils', '@theseam/ui-common/shared', '@angular/animations', '@angular/router', '@angular/cdk/a11y', '@ng-bootstrap/ng-bootstrap', '@fortawesome/free-regular-svg-icons', '@theseam/ui-common/menu', '@ajsf/core', '@angular/forms', '@ng-select/ng-select', '@theseam/ui-common/checkbox', '@theseam/ui-common/form-field'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.theseam = global.theseam || {}, global.theseam['ui-common'] = global.theseam['ui-common'] || {}, global.theseam['ui-common'].framework = {}), global.ng.core, global.ng.cdk.portal, global.rxjs, global.freeSolidSvgIcons, global.theseam['ui-common'].layout, global.ng.common, global.theseam['ui-common'].buttons, global.theseam['ui-common'].icon, global.theseam['ui-common'].scrollbar, global.rxjs.operators, global.ng.cdk.coercion, global.ng.cdk.dragDrop, global.theseam['ui-common'].core, global.theseam['ui-common'].widget, global.theseam['ui-common']['dynamic-component-loader'], global.theseam['ui-common'].utils, global.theseam['ui-common'].shared, global.ng.animations, global.ng.router, global.ng.cdk.a11y, global.ngBootstrap, global.freeRegularSvgIcons, global.theseam['ui-common'].menu, global.core$1, global.ng.forms, global.ngSelect, global.theseam['ui-common'].checkbox, global.theseam['ui-common']['form-field']));
5
+ }(this, (function (exports, i0, portal, rxjs, freeSolidSvgIcons, layout, common, buttons, icon, scrollbar, operators, coercion, dragDrop, core, widget, i1, utils, shared, animations, router, a11y, ngBootstrap, freeRegularSvgIcons, menu, core$1, forms, ngSelect, checkbox, formField) { 'use strict';
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () {
17
+ return e[k];
18
+ }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n['default'] = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
+
30
+ var BaseLayoutContentFooterDirective = /** @class */ (function () {
31
+ function BaseLayoutContentFooterDirective(_elementRef) {
32
+ this._elementRef = _elementRef;
33
+ }
34
+ return BaseLayoutContentFooterDirective;
35
+ }());
36
+ BaseLayoutContentFooterDirective.decorators = [
37
+ { type: i0.Directive, args: [{
38
+ selector: '[seamBaseLayoutContentFooter]'
39
+ },] }
40
+ ];
41
+ BaseLayoutContentFooterDirective.ctorParameters = function () { return [
42
+ { type: i0.ElementRef }
43
+ ]; };
44
+
45
+ var BaseLayoutContentHeaderDirective = /** @class */ (function () {
46
+ function BaseLayoutContentHeaderDirective(_elementRef) {
47
+ this._elementRef = _elementRef;
48
+ }
49
+ return BaseLayoutContentHeaderDirective;
50
+ }());
51
+ BaseLayoutContentHeaderDirective.decorators = [
52
+ { type: i0.Directive, args: [{
53
+ selector: '[seamBaseLayoutContentHeader]'
54
+ },] }
55
+ ];
56
+ BaseLayoutContentHeaderDirective.ctorParameters = function () { return [
57
+ { type: i0.ElementRef }
58
+ ]; };
59
+
60
+ var BaseLayoutContentDirective = /** @class */ (function () {
61
+ function BaseLayoutContentDirective(_elementRef) {
62
+ this._elementRef = _elementRef;
63
+ }
64
+ return BaseLayoutContentDirective;
65
+ }());
66
+ BaseLayoutContentDirective.decorators = [
67
+ { type: i0.Directive, args: [{
68
+ selector: '[seamBaseLayoutContent]'
69
+ },] }
70
+ ];
71
+ BaseLayoutContentDirective.ctorParameters = function () { return [
72
+ { type: i0.ElementRef }
73
+ ]; };
74
+
75
+ var THESEAM_BASE_LAYOUT_REF = new i0.InjectionToken('seamBaseLayoutRef');
76
+
77
+ /**
78
+ * Can be used to toggle the expand state of the registered nav.
79
+ */
80
+ var BaseLayoutNavToggleDirective = /** @class */ (function () {
81
+ function BaseLayoutNavToggleDirective(_baseLayout) {
82
+ this.type = 'button';
83
+ /** Screenreader label for the button. */
84
+ this.ariaLabel = 'Navigation toggle';
85
+ this.baseLayout = _baseLayout;
86
+ }
87
+ Object.defineProperty(BaseLayoutNavToggleDirective.prototype, "_attrType", {
88
+ get: function () { return this.type; },
89
+ enumerable: false,
90
+ configurable: true
91
+ });
92
+ Object.defineProperty(BaseLayoutNavToggleDirective.prototype, "_attrAriaLabel", {
93
+ get: function () { return this.ariaLabel || null; },
94
+ enumerable: false,
95
+ configurable: true
96
+ });
97
+ BaseLayoutNavToggleDirective.prototype._onClick = function () {
98
+ if (this.baseLayout && this.baseLayout.registeredNav) {
99
+ this.baseLayout.registeredNav.toggle();
100
+ }
101
+ };
102
+ return BaseLayoutNavToggleDirective;
103
+ }());
104
+ BaseLayoutNavToggleDirective.decorators = [
105
+ { type: i0.Directive, args: [{
106
+ selector: 'button[seamBaseLayoutNavToggle]',
107
+ exportAs: 'seamBaseLayoutNavToggle'
108
+ },] }
109
+ ];
110
+ BaseLayoutNavToggleDirective.ctorParameters = function () { return [
111
+ { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [THESEAM_BASE_LAYOUT_REF,] }] }
112
+ ]; };
113
+ BaseLayoutNavToggleDirective.propDecorators = {
114
+ _attrType: [{ type: i0.HostBinding, args: ['attr.type',] }],
115
+ type: [{ type: i0.Input }],
116
+ _attrAriaLabel: [{ type: i0.HostBinding, args: ['attr.aria-label',] }],
117
+ ariaLabel: [{ type: i0.Input, args: ['aria-label',] }],
118
+ _onClick: [{ type: i0.HostListener, args: ['click',] }]
119
+ };
120
+
121
+ var BaseLayoutSideBarDirective = /** @class */ (function () {
122
+ function BaseLayoutSideBarDirective(_elementRef) {
123
+ this._elementRef = _elementRef;
124
+ }
125
+ return BaseLayoutSideBarDirective;
126
+ }());
127
+ BaseLayoutSideBarDirective.decorators = [
128
+ { type: i0.Directive, args: [{
129
+ selector: '[seamBaseLayoutSideBar]'
130
+ },] }
131
+ ];
132
+ BaseLayoutSideBarDirective.ctorParameters = function () { return [
133
+ { type: i0.ElementRef }
134
+ ]; };
135
+
136
+ var BaseLayoutTopBarDirective = /** @class */ (function () {
137
+ function BaseLayoutTopBarDirective(_elementRef) {
138
+ this._elementRef = _elementRef;
139
+ }
140
+ return BaseLayoutTopBarDirective;
141
+ }());
142
+ BaseLayoutTopBarDirective.decorators = [
143
+ { type: i0.Directive, args: [{
144
+ selector: '[seamBaseLayoutTopBar]'
145
+ },] }
146
+ ];
147
+ BaseLayoutTopBarDirective.ctorParameters = function () { return [
148
+ { type: i0.ElementRef }
149
+ ]; };
150
+
151
+ var THE_SEAM_BASE_LAYOUT = {
152
+ provide: THESEAM_BASE_LAYOUT_REF,
153
+ // tslint:disable-next-line:no-use-before-declare
154
+ useExisting: i0.forwardRef(function () { return TheSeamBaseLayoutComponent; }),
155
+ multi: false,
156
+ };
157
+ var TheSeamBaseLayoutComponent = /** @class */ (function () {
158
+ function TheSeamBaseLayoutComponent(_viewContainerRef, _layout) {
159
+ this._viewContainerRef = _viewContainerRef;
160
+ this._layout = _layout;
161
+ this.faAngleDoubleRight = freeSolidSvgIcons.faAngleDoubleRight;
162
+ this.faAngleDoubleLeft = freeSolidSvgIcons.faAngleDoubleLeft;
163
+ this.overlayNav = false;
164
+ this._hasSideBar = new rxjs.BehaviorSubject(false);
165
+ this._registeredNav = new rxjs.BehaviorSubject(undefined);
166
+ this.registeredNav$ = this._registeredNav.asObservable();
167
+ this._registeredActions = new rxjs.BehaviorSubject([]);
168
+ this.registeredActions$ = this._registeredActions.asObservable();
169
+ this.isMobile$ = this._layout.isMobile$;
170
+ this.hasSideBar$ = this._hasSideBar.asObservable();
171
+ }
172
+ Object.defineProperty(TheSeamBaseLayoutComponent.prototype, "registeredNav", {
173
+ get: function () { return this._registeredNav.value; },
174
+ enumerable: false,
175
+ configurable: true
176
+ });
177
+ Object.defineProperty(TheSeamBaseLayoutComponent.prototype, "registeredActions", {
178
+ get: function () { return this._registeredActions.value; },
179
+ enumerable: false,
180
+ configurable: true
181
+ });
182
+ TheSeamBaseLayoutComponent.prototype.ngOnInit = function () {
183
+ if (this._topBarTpl) {
184
+ this._topBarPortal = new portal.TemplatePortal(this._topBarTpl, this._viewContainerRef);
185
+ }
186
+ if (this._sideBarTpl) {
187
+ this._sideBarPortal = new portal.TemplatePortal(this._sideBarTpl, this._viewContainerRef);
188
+ this._hasSideBar.next(true);
189
+ }
190
+ if (this._contentTpl) {
191
+ this._contentPortal = new portal.TemplatePortal(this._contentTpl, this._viewContainerRef);
192
+ }
193
+ if (this._contentHeaderTpl) {
194
+ this._contentHeaderPortal = new portal.TemplatePortal(this._contentHeaderTpl, this._viewContainerRef);
195
+ }
196
+ if (this._contentFooterTpl) {
197
+ this._contentFooterPortal = new portal.TemplatePortal(this._contentFooterTpl, this._viewContainerRef);
198
+ }
199
+ };
200
+ TheSeamBaseLayoutComponent.prototype.registerNav = function (nav) {
201
+ // TODO: Allow multiple registered navs
202
+ // if (this.registeredNav) {
203
+ // throw new Error('[TheSeamBaseLayoutComponent] A nav is already registered.')
204
+ // }
205
+ // console.log('register nav', nav)
206
+ this._registeredNav.next(nav);
207
+ };
208
+ TheSeamBaseLayoutComponent.prototype.unregisterNav = function (nav) {
209
+ if (this.registeredNav === nav) {
210
+ this._registeredNav.next(undefined);
211
+ }
212
+ };
213
+ TheSeamBaseLayoutComponent.prototype.registerAction = function (action) {
214
+ var actions = this._registeredActions.value;
215
+ if (actions.findIndex(function (a) { return a.name === action.name; }) !== -1) {
216
+ if (i0.isDevMode()) {
217
+ console.warn("[TheSeamBaseLayoutComponent] registerAction(): Action " + action.name + " not " +
218
+ 'registered, because another action by that name is already registered.');
219
+ }
220
+ return;
221
+ }
222
+ actions.push(action);
223
+ };
224
+ TheSeamBaseLayoutComponent.prototype.unregisterAction = function (action) {
225
+ var actionName = typeof action === 'string' ? action : action.name;
226
+ var actions = this._registeredActions.value;
227
+ this._registeredActions.next(actions.filter(function (f) { return f.name !== actionName; }));
228
+ };
229
+ TheSeamBaseLayoutComponent.prototype.isActionRegistered = function (actionName) {
230
+ var actions = this._registeredActions.value;
231
+ var action = actions.find(function (f) { return f.name === actionName; });
232
+ return !!action;
233
+ };
234
+ TheSeamBaseLayoutComponent.prototype._handleButtonAction = function (action) {
235
+ this._execButtonAction(action).subscribe();
236
+ };
237
+ TheSeamBaseLayoutComponent.prototype._execButtonAction = function (action) {
238
+ var fnRes = action.exec();
239
+ return rxjs.isObservable(fnRes) ? fnRes : rxjs.from(Promise.resolve(fnRes));
240
+ };
241
+ return TheSeamBaseLayoutComponent;
242
+ }());
243
+ TheSeamBaseLayoutComponent.decorators = [
244
+ { type: i0.Component, args: [{
245
+ selector: 'seam-base-layout',
246
+ template: "<div class=\"base-layout-side-bar-nav-content-mobile\" *ngIf=\"isMobile$ | async\">\n <ng-template [cdkPortalOutlet]=\"_sideBarPortal\"></ng-template>\n</div>\n\n<div class=\"base-layout-top-bar-container border-bottom bordered\">\n <ng-template [cdkPortalOutlet]=\"_topBarPortal\"></ng-template>\n</div>\n<div class=\"base-layout-main-container\">\n <div *ngIf=\"hasSideBar$ | async\"\n class=\"base-layout-side-bar-container border-right bordered\">\n <div class=\"base-layout-side-bar-nav-content\" *ngIf=\"!(isMobile$ | async)\">\n <ng-template [cdkPortalOutlet]=\"_sideBarPortal\"></ng-template>\n </div>\n </div>\n <div class=\"base-layout-content-container\">\n <div class=\"base-layout-content-container-header\">\n <!-- <ng-template [cdkPortalOutlet]=\"_contentHeaderPortal\"></ng-template> -->\n\n <div class=\"d-flex d-flex-row\">\n <div class=\"flex-grow-1\">\n <ng-template [cdkPortalOutlet]=\"_contentHeaderPortal\"></ng-template>\n </div>\n <div class=\"d-flex\">\n <ng-container *ngFor=\"let action of registeredActions$ | async; first as isFirst\">\n <div>\n <ng-container [ngTemplateOutlet]=\"$any(action)?.template\"></ng-container>\n </div>\n </ng-container>\n </div>\n </div>\n\n\n </div>\n <div class=\"base-layout-content-container-inner\" seamOverlayScrollbar>\n <ng-template [cdkPortalOutlet]=\"_contentPortal\"></ng-template>\n </div>\n <div class=\"base-layout-content-container-footer\">\n <ng-template [cdkPortalOutlet]=\"_contentFooterPortal\"></ng-template>\n </div>\n </div>\n</div>\n",
247
+ providers: [THE_SEAM_BASE_LAYOUT],
248
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
249
+ encapsulation: i0.ViewEncapsulation.None,
250
+ styles: ["seam-base-layout{display:flex;flex-direction:column;height:100%;width:100%}seam-base-layout .base-layout-side-bar-nav-content-mobile{position:absolute;top:0;bottom:0;left:0;float:left;z-index:9999}seam-base-layout .base-layout-side-bar-container{flex:0 0 auto;display:flex;flex-direction:column}seam-base-layout .base-layout-side-bar-container .base-layout-side-bar-nav-content{flex:1 1 0}seam-base-layout .base-layout-main-container{flex:1 1 100%;display:flex;flex-direction:row;transform:translateZ(0)}seam-base-layout .base-layout-top-bar-container{flex:0 0 auto}seam-base-layout .base-layout-content-container{flex:1 1 auto;display:flex;flex-direction:column}seam-base-layout .base-layout-content-container .base-layout-content-container-header{flex:0 0 auto}seam-base-layout .base-layout-content-container .base-layout-content-container-inner{flex:1 1 auto}seam-base-layout .base-layout-content-container .base-layout-content-container-footer{flex:0 0 auto}seam-base-layout .base-layout-content-container-header{margin:.25rem}seam-base-layout .btn-baselayout-action{margin:0 0 0 .25rem;color:#212529;background-color:#e9ecef;padding:.5rem 1rem;font-size:1rem;line-height:1.5;border-radius:.25rem;border:none;color:#6c757d}seam-base-layout .btn-baselayout-action:hover{color:#212529;background-color:#d3d9df;border-color:#cbd3da}seam-base-layout .btn-baselayout-action.focus,seam-base-layout .btn-baselayout-action:focus{color:#212529;background-color:#d3d9df;border-color:#cbd3da;box-shadow:0 0 0 .2rem hsla(210,6%,81%,.5)}seam-base-layout .btn-baselayout-action.disabled,seam-base-layout .btn-baselayout-action:disabled{color:#212529;background-color:#e9ecef;border-color:#e9ecef}.show>seam-base-layout .btn-baselayout-action.dropdown-toggle,seam-base-layout .btn-baselayout-action:not(:disabled):not(.disabled).active,seam-base-layout .btn-baselayout-action:not(:disabled):not(.disabled):active{color:#212529;background-color:#d3d9df;border-color:#c4ccd4}.show>seam-base-layout .btn-baselayout-action.dropdown-toggle:focus,seam-base-layout .btn-baselayout-action:not(:disabled):not(.disabled).active:focus,seam-base-layout .btn-baselayout-action:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem hsla(210,6%,81%,.5)}seam-base-layout .btn-baselayout-action.focus,seam-base-layout .btn-baselayout-action:focus,seam-base-layout .btn-baselayout-action:hover{color:#6c757d}"]
251
+ },] }
252
+ ];
253
+ TheSeamBaseLayoutComponent.ctorParameters = function () { return [
254
+ { type: i0.ViewContainerRef },
255
+ { type: layout.TheSeamLayoutService }
256
+ ]; };
257
+ TheSeamBaseLayoutComponent.propDecorators = {
258
+ overlayNav: [{ type: i0.Input }],
259
+ _topBarTpl: [{ type: i0.ContentChild, args: [BaseLayoutTopBarDirective, { static: true, read: i0.TemplateRef },] }],
260
+ _sideBarTpl: [{ type: i0.ContentChild, args: [BaseLayoutSideBarDirective, { static: true, read: i0.TemplateRef },] }],
261
+ _contentTpl: [{ type: i0.ContentChild, args: [BaseLayoutContentDirective, { static: true, read: i0.TemplateRef },] }],
262
+ _contentHeaderTpl: [{ type: i0.ContentChild, args: [BaseLayoutContentHeaderDirective, { static: true, read: i0.TemplateRef },] }],
263
+ _contentFooterTpl: [{ type: i0.ContentChild, args: [BaseLayoutContentFooterDirective, { static: true, read: i0.TemplateRef },] }]
264
+ };
265
+
266
+ var TheSeamBaseLayoutModule = /** @class */ (function () {
267
+ function TheSeamBaseLayoutModule() {
268
+ }
269
+ return TheSeamBaseLayoutModule;
270
+ }());
271
+ TheSeamBaseLayoutModule.decorators = [
272
+ { type: i0.NgModule, args: [{
273
+ declarations: [
274
+ TheSeamBaseLayoutComponent,
275
+ BaseLayoutContentDirective,
276
+ BaseLayoutSideBarDirective,
277
+ BaseLayoutTopBarDirective,
278
+ BaseLayoutNavToggleDirective,
279
+ BaseLayoutContentHeaderDirective,
280
+ BaseLayoutContentFooterDirective
281
+ ],
282
+ imports: [
283
+ common.CommonModule,
284
+ portal.PortalModule,
285
+ scrollbar.TheSeamScrollbarModule,
286
+ icon.TheSeamIconModule,
287
+ buttons.TheSeamButtonsModule
288
+ ],
289
+ exports: [
290
+ TheSeamBaseLayoutComponent,
291
+ BaseLayoutContentDirective,
292
+ BaseLayoutSideBarDirective,
293
+ BaseLayoutTopBarDirective,
294
+ BaseLayoutNavToggleDirective,
295
+ BaseLayoutContentHeaderDirective,
296
+ BaseLayoutContentFooterDirective
297
+ ]
298
+ },] }
299
+ ];
300
+
301
+ var DashboardWidgetContainerComponent = /** @class */ (function () {
302
+ function DashboardWidgetContainerComponent() {
303
+ }
304
+ DashboardWidgetContainerComponent.prototype.ngOnInit = function () { };
305
+ return DashboardWidgetContainerComponent;
306
+ }());
307
+ DashboardWidgetContainerComponent.decorators = [
308
+ { type: i0.Component, args: [{
309
+ selector: 'seam-dashboard-widget-container',
310
+ template: "<ng-template><ng-content></ng-content></ng-template>\n",
311
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
312
+ styles: [""]
313
+ },] }
314
+ ];
315
+ DashboardWidgetContainerComponent.ctorParameters = function () { return []; };
316
+ DashboardWidgetContainerComponent.propDecorators = {
317
+ def: [{ type: i0.Input }],
318
+ templateRef: [{ type: i0.ViewChild, args: [i0.TemplateRef,] }]
319
+ };
320
+
321
+ /*! *****************************************************************************
322
+ Copyright (c) Microsoft Corporation.
323
+
324
+ Permission to use, copy, modify, and/or distribute this software for any
325
+ purpose with or without fee is hereby granted.
326
+
327
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
328
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
329
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
330
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
331
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
332
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
333
+ PERFORMANCE OF THIS SOFTWARE.
334
+ ***************************************************************************** */
335
+ /* global Reflect, Promise */
336
+ var extendStatics = function (d, b) {
337
+ extendStatics = Object.setPrototypeOf ||
338
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
339
+ function (d, b) { for (var p in b)
340
+ if (Object.prototype.hasOwnProperty.call(b, p))
341
+ d[p] = b[p]; };
342
+ return extendStatics(d, b);
343
+ };
344
+ function __extends(d, b) {
345
+ if (typeof b !== "function" && b !== null)
346
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
347
+ extendStatics(d, b);
348
+ function __() { this.constructor = d; }
349
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
350
+ }
351
+ var __assign = function () {
352
+ __assign = Object.assign || function __assign(t) {
353
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
354
+ s = arguments[i];
355
+ for (var p in s)
356
+ if (Object.prototype.hasOwnProperty.call(s, p))
357
+ t[p] = s[p];
358
+ }
359
+ return t;
360
+ };
361
+ return __assign.apply(this, arguments);
362
+ };
363
+ function __rest(s, e) {
364
+ var t = {};
365
+ for (var p in s)
366
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
367
+ t[p] = s[p];
368
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
369
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
370
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
371
+ t[p[i]] = s[p[i]];
372
+ }
373
+ return t;
374
+ }
375
+ function __decorate(decorators, target, key, desc) {
376
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
377
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
378
+ r = Reflect.decorate(decorators, target, key, desc);
379
+ else
380
+ for (var i = decorators.length - 1; i >= 0; i--)
381
+ if (d = decorators[i])
382
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
383
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
384
+ }
385
+ function __param(paramIndex, decorator) {
386
+ return function (target, key) { decorator(target, key, paramIndex); };
387
+ }
388
+ function __metadata(metadataKey, metadataValue) {
389
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
390
+ return Reflect.metadata(metadataKey, metadataValue);
391
+ }
392
+ function __awaiter(thisArg, _arguments, P, generator) {
393
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
394
+ return new (P || (P = Promise))(function (resolve, reject) {
395
+ function fulfilled(value) { try {
396
+ step(generator.next(value));
397
+ }
398
+ catch (e) {
399
+ reject(e);
400
+ } }
401
+ function rejected(value) { try {
402
+ step(generator["throw"](value));
403
+ }
404
+ catch (e) {
405
+ reject(e);
406
+ } }
407
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
408
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
409
+ });
410
+ }
411
+ function __generator(thisArg, body) {
412
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
413
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
414
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
415
+ function verb(n) { return function (v) { return step([n, v]); }; }
416
+ function step(op) {
417
+ if (f)
418
+ throw new TypeError("Generator is already executing.");
419
+ while (_)
420
+ try {
421
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
422
+ return t;
423
+ if (y = 0, t)
424
+ op = [op[0] & 2, t.value];
425
+ switch (op[0]) {
426
+ case 0:
427
+ case 1:
428
+ t = op;
429
+ break;
430
+ case 4:
431
+ _.label++;
432
+ return { value: op[1], done: false };
433
+ case 5:
434
+ _.label++;
435
+ y = op[1];
436
+ op = [0];
437
+ continue;
438
+ case 7:
439
+ op = _.ops.pop();
440
+ _.trys.pop();
441
+ continue;
442
+ default:
443
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
444
+ _ = 0;
445
+ continue;
446
+ }
447
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
448
+ _.label = op[1];
449
+ break;
450
+ }
451
+ if (op[0] === 6 && _.label < t[1]) {
452
+ _.label = t[1];
453
+ t = op;
454
+ break;
455
+ }
456
+ if (t && _.label < t[2]) {
457
+ _.label = t[2];
458
+ _.ops.push(op);
459
+ break;
460
+ }
461
+ if (t[2])
462
+ _.ops.pop();
463
+ _.trys.pop();
464
+ continue;
465
+ }
466
+ op = body.call(thisArg, _);
467
+ }
468
+ catch (e) {
469
+ op = [6, e];
470
+ y = 0;
471
+ }
472
+ finally {
473
+ f = t = 0;
474
+ }
475
+ if (op[0] & 5)
476
+ throw op[1];
477
+ return { value: op[0] ? op[1] : void 0, done: true };
478
+ }
479
+ }
480
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
481
+ if (k2 === undefined)
482
+ k2 = k;
483
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
484
+ }) : (function (o, m, k, k2) {
485
+ if (k2 === undefined)
486
+ k2 = k;
487
+ o[k2] = m[k];
488
+ });
489
+ function __exportStar(m, o) {
490
+ for (var p in m)
491
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
492
+ __createBinding(o, m, p);
493
+ }
494
+ function __values(o) {
495
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
496
+ if (m)
497
+ return m.call(o);
498
+ if (o && typeof o.length === "number")
499
+ return {
500
+ next: function () {
501
+ if (o && i >= o.length)
502
+ o = void 0;
503
+ return { value: o && o[i++], done: !o };
504
+ }
505
+ };
506
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
507
+ }
508
+ function __read(o, n) {
509
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
510
+ if (!m)
511
+ return o;
512
+ var i = m.call(o), r, ar = [], e;
513
+ try {
514
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
515
+ ar.push(r.value);
516
+ }
517
+ catch (error) {
518
+ e = { error: error };
519
+ }
520
+ finally {
521
+ try {
522
+ if (r && !r.done && (m = i["return"]))
523
+ m.call(i);
524
+ }
525
+ finally {
526
+ if (e)
527
+ throw e.error;
528
+ }
529
+ }
530
+ return ar;
531
+ }
532
+ /** @deprecated */
533
+ function __spread() {
534
+ for (var ar = [], i = 0; i < arguments.length; i++)
535
+ ar = ar.concat(__read(arguments[i]));
536
+ return ar;
537
+ }
538
+ /** @deprecated */
539
+ function __spreadArrays() {
540
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
541
+ s += arguments[i].length;
542
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
543
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
544
+ r[k] = a[j];
545
+ return r;
546
+ }
547
+ function __spreadArray(to, from, pack) {
548
+ if (pack || arguments.length === 2)
549
+ for (var i = 0, l = from.length, ar; i < l; i++) {
550
+ if (ar || !(i in from)) {
551
+ if (!ar)
552
+ ar = Array.prototype.slice.call(from, 0, i);
553
+ ar[i] = from[i];
554
+ }
555
+ }
556
+ return to.concat(ar || from);
557
+ }
558
+ function __await(v) {
559
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
560
+ }
561
+ function __asyncGenerator(thisArg, _arguments, generator) {
562
+ if (!Symbol.asyncIterator)
563
+ throw new TypeError("Symbol.asyncIterator is not defined.");
564
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
565
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
566
+ function verb(n) { if (g[n])
567
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
568
+ function resume(n, v) { try {
569
+ step(g[n](v));
570
+ }
571
+ catch (e) {
572
+ settle(q[0][3], e);
573
+ } }
574
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
575
+ function fulfill(value) { resume("next", value); }
576
+ function reject(value) { resume("throw", value); }
577
+ function settle(f, v) { if (f(v), q.shift(), q.length)
578
+ resume(q[0][0], q[0][1]); }
579
+ }
580
+ function __asyncDelegator(o) {
581
+ var i, p;
582
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
583
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
584
+ }
585
+ function __asyncValues(o) {
586
+ if (!Symbol.asyncIterator)
587
+ throw new TypeError("Symbol.asyncIterator is not defined.");
588
+ var m = o[Symbol.asyncIterator], i;
589
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
590
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
591
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
592
+ }
593
+ function __makeTemplateObject(cooked, raw) {
594
+ if (Object.defineProperty) {
595
+ Object.defineProperty(cooked, "raw", { value: raw });
596
+ }
597
+ else {
598
+ cooked.raw = raw;
599
+ }
600
+ return cooked;
601
+ }
602
+ ;
603
+ var __setModuleDefault = Object.create ? (function (o, v) {
604
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
605
+ }) : function (o, v) {
606
+ o["default"] = v;
607
+ };
608
+ function __importStar(mod) {
609
+ if (mod && mod.__esModule)
610
+ return mod;
611
+ var result = {};
612
+ if (mod != null)
613
+ for (var k in mod)
614
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
615
+ __createBinding(result, mod, k);
616
+ __setModuleDefault(result, mod);
617
+ return result;
618
+ }
619
+ function __importDefault(mod) {
620
+ return (mod && mod.__esModule) ? mod : { default: mod };
621
+ }
622
+ function __classPrivateFieldGet(receiver, state, kind, f) {
623
+ if (kind === "a" && !f)
624
+ throw new TypeError("Private accessor was defined without a getter");
625
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
626
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
627
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
628
+ }
629
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
630
+ if (kind === "m")
631
+ throw new TypeError("Private method is not writable");
632
+ if (kind === "a" && !f)
633
+ throw new TypeError("Private accessor was defined without a setter");
634
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
635
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
636
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
637
+ }
638
+
639
+ var THESEAM_DASHBOARD_WIDGETS_PREFERENCES_ACCESSOR = new i0.InjectionToken('ITheSeamDashboardWidgetsPreferencesAccessor');
640
+
641
+ // TODO: This needs a unit test to make sure it will not cause a race condition
642
+ // if update is called faster than the previous can respond.
643
+ //
644
+ // The ideal approach I am thinking, without steping through the process too
645
+ // thoroughly is to hold the new data emit until all pending updates are done.
646
+ // Any pending updates other than the most recently requested will be ignored
647
+ // and just wait on the most recent, and if already running it should be
648
+ // canceled if possible. Also, incase something happens that causes the new data
649
+ // emissions to get held up too long, there could be a threshold time that the
650
+ // new data can be held up.
651
+ /**
652
+ * Manages anything dealing with retrieving and updating dashboard widget
653
+ * preference data from the provided accessor.
654
+ */
655
+ var DashboardWidgetsPreferencesService = /** @class */ (function () {
656
+ // private _pending = false
657
+ // public get pending() { return this._pending }
658
+ function DashboardWidgetsPreferencesService(_prefsAccessor) {
659
+ this._prefsAccessor = _prefsAccessor;
660
+ this._tablePrefsMap = new Map();
661
+ }
662
+ DashboardWidgetsPreferencesService.prototype.preferences = function (preferenceKey) {
663
+ var prefs = this._tablePrefsMap.get(preferenceKey);
664
+ if (!prefs) {
665
+ var refreshSubject = new rxjs.Subject();
666
+ prefs = {
667
+ observable: this._createObservable(refreshSubject, preferenceKey),
668
+ refresh: refreshSubject
669
+ };
670
+ this._tablePrefsMap.set(preferenceKey, prefs);
671
+ }
672
+ return prefs.observable;
673
+ };
674
+ DashboardWidgetsPreferencesService.prototype._createObservable = function (refreshSubject, prefKey) {
675
+ var _this = this;
676
+ if (!this._prefsAccessor) {
677
+ return rxjs.of({});
678
+ }
679
+ var accessor = function (key) { return _this._prefsAccessor ? _this._prefsAccessor.get(key) : rxjs.of('{}'); };
680
+ return refreshSubject.pipe(operators.startWith({}),
681
+ // tap(() => console.log('Start requesting: ', prefKey)),
682
+ operators.switchMap(function () { return accessor(prefKey).pipe(operators.map(function (v) {
683
+ if (!v) {
684
+ return null;
685
+ }
686
+ // TODO: Add a schema validator and migration tool to avoid parsing issues.
687
+ try {
688
+ return JSON.parse(v);
689
+ }
690
+ catch (error) {
691
+ if (i0.isDevMode()) {
692
+ console.error(error);
693
+ }
694
+ return null;
695
+ }
696
+ }), operators.map(function (v) { return !!v ? v : {}; })); }), operators.shareReplay({ bufferSize: 1, refCount: true }));
697
+ };
698
+ DashboardWidgetsPreferencesService.prototype.refresh = function (preferenceKey) {
699
+ var prefs = this._tablePrefsMap.get(preferenceKey);
700
+ if (prefs) {
701
+ // this._pending = true
702
+ // prefs.refresh.next()
703
+ return prefs.observable.pipe(
704
+ // tap(() => prefs.refresh.next()),
705
+ operators.tap(function () { return setTimeout(function () { prefs.refresh.next(); }, 0); }), operators.mapTo(undefined), operators.take(1));
706
+ }
707
+ return rxjs.of(undefined);
708
+ };
709
+ DashboardWidgetsPreferencesService.prototype.selectLayout = function (preferenceKey, layoutName) {
710
+ return this.preferences(preferenceKey).pipe(operators.map(function (prefs) { return (prefs.layouts || []).find(function (l) { return l.name === layoutName; }); }));
711
+ };
712
+ // TODO: Improve this updating to not be more generic, so we can quickly add
713
+ // edits for different preference schema's.
714
+ //
715
+ // TODO: Decide if a send queue/merging of pending queue is needed to avoid
716
+ // out of order updates. This shouldn't be an issue, with how fast preferences
717
+ // will most likely be changing, but it could happen in situations, such as
718
+ // network issues.
719
+ DashboardWidgetsPreferencesService.prototype.updateLayout = function (preferenceKey, layout) {
720
+ var _this = this;
721
+ if (!this._prefsAccessor) {
722
+ return rxjs.of(undefined);
723
+ }
724
+ if (!utils.hasProperty(layout, 'name')) {
725
+ throw Error("Unable to save layout preference. 'name' is required for a layout preference.");
726
+ }
727
+ var _layout = this.toSerializeableLayout(layout);
728
+ // this._pending = true
729
+ return this.preferences(preferenceKey).pipe(operators.map(function (prefs) {
730
+ // Making the preferences immutable may not be necessary, but for now
731
+ // this obj->str->obj will work as a naive clone.
732
+ var layouts = JSON.parse(JSON.stringify(prefs.layouts || []));
733
+ var _layoutPref = layouts.find(function (c) { return c.name === _layout.name; });
734
+ // console.log('has', _layoutPref)
735
+ if (_layoutPref) {
736
+ if (utils.hasProperty(_layout, 'name')) {
737
+ _layoutPref.name = _layout.name;
738
+ }
739
+ if (utils.hasProperty(_layout, 'label')) {
740
+ _layoutPref.label = _layout.label;
741
+ }
742
+ if (utils.hasProperty(_layout, 'items')) {
743
+ _layoutPref.items = _layout.items;
744
+ }
745
+ }
746
+ else {
747
+ layouts.push(Object.assign({}, _layout));
748
+ }
749
+ var newPrefs = Object.assign(Object.assign({}, prefs), { layouts: layouts });
750
+ return newPrefs;
751
+ }),
752
+ // tap(v => console.log('newPrefs', v)),
753
+ operators.take(1), operators.switchMap(function (newPrefs) { return _this._prefsAccessor
754
+ ? _this._prefsAccessor.update(preferenceKey, JSON.stringify(newPrefs))
755
+ : rxjs.of(newPrefs); }), operators.switchMap(function () { return _this.refresh(preferenceKey).pipe(operators.mapTo(undefined)); }));
756
+ // .subscribe()
757
+ };
758
+ DashboardWidgetsPreferencesService.prototype.toSerializeableLayout = function (layout) {
759
+ var serialized = {
760
+ name: layout.name,
761
+ label: layout.label,
762
+ items: this.toSerializeableItems(layout.items) || []
763
+ };
764
+ return serialized;
765
+ };
766
+ // public toDeserializedLayout(layout: IDashboardWidgetItemLayoutSerialized): IDashboardWidgetItemLayoutDef {
767
+ // // For now there is nothing to do. Eventually this should have at least
768
+ // // validation on the deserialized object.
769
+ // return layout
770
+ // }
771
+ /**
772
+ * Returns the serializable widget items as objects that can be serialized to
773
+ * a JSON string for storage.
774
+ */
775
+ DashboardWidgetsPreferencesService.prototype.toSerializeableItems = function (widgets) {
776
+ var e_1, _a;
777
+ var serialized = [];
778
+ try {
779
+ for (var widgets_1 = __values(widgets), widgets_1_1 = widgets_1.next(); !widgets_1_1.done; widgets_1_1 = widgets_1.next()) {
780
+ var w = widgets_1_1.value;
781
+ // if (!w.__itemDef.component || typeof w.__itemDef.component !== 'string') {
782
+ // console.warn(`[DashboardWidgetsService] Widget item def must have a string 'component' property to be serialized.`, w)
783
+ // continue
784
+ // }
785
+ // serialized.push({
786
+ // widgetId: w.widgetId,
787
+ // col: w.col,
788
+ // order: w.order,
789
+ // component: w.__itemDef.component
790
+ // })
791
+ // TODO: Remove this, it is only here for initial dev debugging.
792
+ serialized.push({
793
+ widgetId: w.widgetId,
794
+ col: w.col,
795
+ order: w.order,
796
+ // component: w.__itemDef.component as string
797
+ });
798
+ }
799
+ }
800
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
801
+ finally {
802
+ try {
803
+ if (widgets_1_1 && !widgets_1_1.done && (_a = widgets_1.return)) _a.call(widgets_1);
804
+ }
805
+ finally { if (e_1) throw e_1.error; }
806
+ }
807
+ return serialized;
808
+ };
809
+ return DashboardWidgetsPreferencesService;
810
+ }());
811
+ DashboardWidgetsPreferencesService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DashboardWidgetsPreferencesService_Factory() { return new DashboardWidgetsPreferencesService(i0__namespace.ɵɵinject(THESEAM_DASHBOARD_WIDGETS_PREFERENCES_ACCESSOR, 8)); }, token: DashboardWidgetsPreferencesService, providedIn: "root" });
812
+ DashboardWidgetsPreferencesService.decorators = [
813
+ { type: i0.Injectable, args: [{
814
+ providedIn: 'root'
815
+ },] }
816
+ ];
817
+ DashboardWidgetsPreferencesService.ctorParameters = function () { return [
818
+ { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [THESEAM_DASHBOARD_WIDGETS_PREFERENCES_ACCESSOR,] }] }
819
+ ]; };
820
+
821
+ var DashboardWidgetsService = /** @class */ (function () {
822
+ function DashboardWidgetsService(_dynamicComponentLoaderModule, _preferences) {
823
+ var _this = this;
824
+ this._dynamicComponentLoaderModule = _dynamicComponentLoaderModule;
825
+ this._preferences = _preferences;
826
+ this.preferenceKey = 'datatable-widgets';
827
+ this.defaultNumColumns = 3;
828
+ /** Used for operations, such as 'addWidget', if the column is not specified. */
829
+ this.defaultColumn = 0;
830
+ this._widgets = new rxjs.BehaviorSubject([]);
831
+ this._numColumns = new rxjs.BehaviorSubject(this.defaultNumColumns);
832
+ this._viewContainerRefSubject = new rxjs.BehaviorSubject(undefined);
833
+ this.numColumns$ = this._numColumns.asObservable();
834
+ // Widget items without preferences
835
+ var _widgetItems$ = rxjs.combineLatest([this._widgets, this._viewContainerRefSubject])
836
+ .pipe(operators.switchMap(function (_a) {
837
+ var _b = __read(_a, 2), defs = _b[0], vcr = _b[1];
838
+ return _this.createWidgetItems(defs, vcr);
839
+ }));
840
+ // Widget items with preferences
841
+ this.widgetItems$ = rxjs.combineLatest([_widgetItems$, this.numColumns$])
842
+ .pipe(
843
+ // Wait until the current tick is done, incase both the widgets and
844
+ // number of columns are set durring the same tick. Without the audit,
845
+ // this would get called twice when the component is initialized with
846
+ // both inputs set one after the other individually.
847
+ operators.auditTime(0), operators.switchMap(function (_a) {
848
+ var _b = __read(_a, 2), items = _b[0], numColumns = _b[1];
849
+ return _this._preferences.selectLayout(_this.preferenceKey, _this._layoutName(numColumns)).pipe(operators.map(function (layout) { return layout ? _this.withLayoutPreferences(items, layout) : items; }));
850
+ }), operators.shareReplay({ bufferSize: 1, refCount: true }));
851
+ this.widgetColumns$ = this.widgetItems$
852
+ .pipe(operators.map(function (items) { return _this.toColumnRecords(items); }), operators.shareReplay({ bufferSize: 1, refCount: true }));
853
+ }
854
+ Object.defineProperty(DashboardWidgetsService.prototype, "widgets", {
855
+ get: function () { return this._widgets.value; },
856
+ set: function (value) { this._widgets.next(value); },
857
+ enumerable: false,
858
+ configurable: true
859
+ });
860
+ Object.defineProperty(DashboardWidgetsService.prototype, "numColumns", {
861
+ get: function () { return this._numColumns.value; },
862
+ set: function (value) {
863
+ if (value !== this._numColumns.value) {
864
+ this._numColumns.next(value);
865
+ }
866
+ },
867
+ enumerable: false,
868
+ configurable: true
869
+ });
870
+ DashboardWidgetsService.prototype._layoutName = function (numColumns) {
871
+ return "columns-" + numColumns;
872
+ };
873
+ DashboardWidgetsService.prototype.setViewContainerRef = function (vcr) {
874
+ this._viewContainerRefSubject.next(vcr);
875
+ };
876
+ DashboardWidgetsService.prototype.createWidgetItems = function (defs, vcr) {
877
+ var _this = this;
878
+ var _createObservables = (defs || []).map(function (d) { return _this.createWidgetItem(d, vcr); });
879
+ var items$ = _createObservables.length > 0 ? rxjs.combineLatest(_createObservables) : rxjs.of([]);
880
+ return items$.pipe(operators.map(function (items) { return items.filter(utils.notNullOrUndefined); }), operators.tap(function (items) {
881
+ if (i0.isDevMode()) {
882
+ var ids = items.map(function (v) { return v.widgetId; });
883
+ if ((new Set(ids)).size !== ids.length) {
884
+ console.warn("[DashboardWidgetsService] Duplicate widget's with the same 'widgetId' found.");
885
+ }
886
+ }
887
+ }));
888
+ };
889
+ DashboardWidgetsService.prototype.createWidgetItem = function (def, vcr) {
890
+ var _this = this;
891
+ if (!def.widgetId || typeof def.widgetId !== 'string' || def.widgetId.length < 1) {
892
+ if (i0.isDevMode()) {
893
+ console.warn("[DashboardWidgetsService] Widget ignored. All widgets must have a 'widgetId'.", def);
894
+ }
895
+ return rxjs.of(undefined);
896
+ }
897
+ return this.createWidgetPortal(def, vcr).pipe(operators.map(function (portal) { return (Object.assign(Object.assign({}, def), { col: def.col || _this.defaultColumn, order: def.order || 0, portal: portal, __itemDef: def })); }));
898
+ };
899
+ DashboardWidgetsService.prototype.createWidgetPortal = function (def, vcr) {
900
+ if (typeof def.component === 'string') {
901
+ return this._dynamicComponentLoaderModule
902
+ .getComponentFactory(def.component)
903
+ .pipe(operators.map(function (componentFactory) {
904
+ return new portal.ComponentPortal(componentFactory.componentType, vcr, undefined, componentFactory.ngModule.componentFactoryResolver);
905
+ }), operators.take(1));
906
+ }
907
+ return def.componentFactoryResolver
908
+ ? rxjs.of(new portal.ComponentPortal(def.component, vcr, undefined, def.componentFactoryResolver))
909
+ : rxjs.of(new portal.ComponentPortal(def.component, vcr));
910
+ };
911
+ DashboardWidgetsService.prototype.updateOrder = function () {
912
+ return this.widgetColumns$
913
+ .pipe(operators.take(1), operators.tap(function (columns) { return columns.forEach(function (col) {
914
+ var i = 0;
915
+ col.items.forEach(function (itm) { return itm.order = i++; });
916
+ }); }), operators.mapTo(undefined));
917
+ };
918
+ DashboardWidgetsService.prototype.toColumnRecords = function (items) {
919
+ var e_1, _a;
920
+ var _this = this;
921
+ var columns = [];
922
+ for (var i = 0; i < this.numColumns; i++) {
923
+ columns.push({ column: i, items: [] });
924
+ }
925
+ var colNotFound = [];
926
+ var _loop_1 = function (item) {
927
+ var col = columns.find(function (c) { return c.column === item.col; });
928
+ if (!col) {
929
+ // columns.push({ column: item.col, items: [ item ] })
930
+ // if (item.col < 0) {
931
+ // const col0: IDashboardWidgetsColumnRecord | undefined = columns.find(c => c.column === 0)
932
+ // if (col0) {
933
+ // col0.items.push(item)
934
+ // }
935
+ // } else if (item.col > this.numColumns - 1) {
936
+ // const colMax: IDashboardWidgetsColumnRecord | undefined = columns.find(c => c.column === this.numColumns - 1)
937
+ // if (colMax) {
938
+ // colMax.items.push(item)
939
+ // }
940
+ // }
941
+ colNotFound.push(item);
942
+ }
943
+ else {
944
+ col.items.push(item);
945
+ }
946
+ };
947
+ try {
948
+ // Distribute items into columns
949
+ for (var items_1 = __values(items), items_1_1 = items_1.next(); !items_1_1.done; items_1_1 = items_1.next()) {
950
+ var item = items_1_1.value;
951
+ _loop_1(item);
952
+ }
953
+ }
954
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
955
+ finally {
956
+ try {
957
+ if (items_1_1 && !items_1_1.done && (_a = items_1.return)) _a.call(items_1);
958
+ }
959
+ finally { if (e_1) throw e_1.error; }
960
+ }
961
+ var _loop_2 = function (i) {
962
+ var item = colNotFound[i];
963
+ var col = columns
964
+ .find(function (c) { return c.column === i % _this.numColumns; });
965
+ if (col) {
966
+ col.items.push(item);
967
+ }
968
+ };
969
+ for (var i = 0; i < colNotFound.length; i++) {
970
+ _loop_2(i);
971
+ }
972
+ // Sort columns
973
+ columns = columns.sort(function (a, b) { return a.column - b.column; });
974
+ // Sort columns items
975
+ columns.forEach(function (col) { return col.items.sort(function (a, b) { return a.order - b.order; }); });
976
+ return columns;
977
+ };
978
+ DashboardWidgetsService.prototype.withLayoutPreferences = function (items, layout) {
979
+ var e_2, _a;
980
+ var _items = [];
981
+ var _loop_3 = function (item) {
982
+ var itemPref = layout.items.find(function (x) { return x.widgetId === item.widgetId; });
983
+ _items.push(Object.assign(Object.assign({}, item), (itemPref || {})));
984
+ };
985
+ try {
986
+ for (var items_2 = __values(items), items_2_1 = items_2.next(); !items_2_1.done; items_2_1 = items_2.next()) {
987
+ var item = items_2_1.value;
988
+ _loop_3(item);
989
+ }
990
+ }
991
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
992
+ finally {
993
+ try {
994
+ if (items_2_1 && !items_2_1.done && (_a = items_2.return)) _a.call(items_2);
995
+ }
996
+ finally { if (e_2) throw e_2.error; }
997
+ }
998
+ return _items;
999
+ };
1000
+ DashboardWidgetsService.prototype.savePreferences = function () {
1001
+ var _this = this;
1002
+ // Right now the items are moved between the column record arrays, but the
1003
+ // 'col' prop is not updated, so it is mapped to corrected items here from
1004
+ // the column records.
1005
+ var items$ = this.widgetColumns$.pipe(operators.map(function (columns) { return []
1006
+ .concat.apply([], __spreadArray([], __read((columns.map(function (c) { return c.items.map(function (itm) { return (Object.assign(Object.assign({}, itm), { col: c.column })); }); }))))); }));
1007
+ return rxjs.combineLatest([items$, this.numColumns$]).pipe(operators.auditTime(0), operators.take(1), operators.switchMap(function (_a) {
1008
+ var _b = __read(_a, 2), items = _b[0], numColumns = _b[1];
1009
+ return _this._preferences.updateLayout(_this.preferenceKey, {
1010
+ name: _this._layoutName(numColumns),
1011
+ items: items
1012
+ });
1013
+ }), operators.mapTo(undefined));
1014
+ };
1015
+ return DashboardWidgetsService;
1016
+ }());
1017
+ DashboardWidgetsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DashboardWidgetsService_Factory() { return new DashboardWidgetsService(i0__namespace.ɵɵinject(i1__namespace.TheSeamDynamicComponentLoader), i0__namespace.ɵɵinject(DashboardWidgetsPreferencesService)); }, token: DashboardWidgetsService, providedIn: "root" });
1018
+ DashboardWidgetsService.decorators = [
1019
+ { type: i0.Injectable, args: [{
1020
+ providedIn: 'root'
1021
+ },] }
1022
+ ];
1023
+ DashboardWidgetsService.ctorParameters = function () { return [
1024
+ { type: i1.TheSeamDynamicComponentLoader },
1025
+ { type: DashboardWidgetsPreferencesService }
1026
+ ]; };
1027
+
1028
+ var DashboardWidgetsComponent = /** @class */ (function () {
1029
+ function DashboardWidgetsComponent(_dashboardWidgets, _viewContainerRef, _cdr, _baseLayoutRef) {
1030
+ var _this = this;
1031
+ this._dashboardWidgets = _dashboardWidgets;
1032
+ this._viewContainerRef = _viewContainerRef;
1033
+ this._cdr = _cdr;
1034
+ this._baseLayoutRef = _baseLayoutRef;
1035
+ this.faLock = freeSolidSvgIcons.faLock;
1036
+ this.faUnlock = freeSolidSvgIcons.faUnlock;
1037
+ this._actionWidgetDragToggleName = 'widget-drag-toggle';
1038
+ this._ngUnsubscribe = new rxjs.Subject();
1039
+ this._gapSize = new rxjs.BehaviorSubject(30);
1040
+ this.widgetsDraggable = false;
1041
+ this._dragToggleVisible = new rxjs.BehaviorSubject(true);
1042
+ this._containers = new rxjs.BehaviorSubject([]);
1043
+ this._layoutChange = new rxjs.Subject();
1044
+ this.widgetsChange = new i0.EventEmitter();
1045
+ this._widthChange = new rxjs.Subject();
1046
+ this.containers$ = this._containers.asObservable();
1047
+ this._gapStyleSize$ = this._gapSize.pipe(operators.auditTime(0), operators.map(function (size) { return size / 2; }), operators.shareReplay({ bufferSize: 1, refCount: true }));
1048
+ this._widthChange.pipe(operators.debounceTime(30), operators.tap(function (width) {
1049
+ if (width > 1300) {
1050
+ _this.numColumns = 3;
1051
+ }
1052
+ else if (width > 800) {
1053
+ _this.numColumns = 2;
1054
+ }
1055
+ else {
1056
+ _this.numColumns = 1;
1057
+ }
1058
+ }), operators.takeUntil(this._ngUnsubscribe)).subscribe();
1059
+ this.widgetItems$ = this._dashboardWidgets.widgetItems$;
1060
+ this.widgetColumns$ = this._dashboardWidgets.widgetColumns$;
1061
+ }
1062
+ Object.defineProperty(DashboardWidgetsComponent.prototype, "gapSize", {
1063
+ get: function () { return this._gapSize.value; },
1064
+ set: function (val) {
1065
+ this._gapSize.next(coercion.coerceNumberProperty(val));
1066
+ },
1067
+ enumerable: false,
1068
+ configurable: true
1069
+ });
1070
+ Object.defineProperty(DashboardWidgetsComponent.prototype, "dragToggleVisible", {
1071
+ get: function () { return this._dragToggleVisible.value; },
1072
+ set: function (val) {
1073
+ this._dragToggleVisible.next(coercion.coerceBooleanProperty(val));
1074
+ },
1075
+ enumerable: false,
1076
+ configurable: true
1077
+ });
1078
+ Object.defineProperty(DashboardWidgetsComponent.prototype, "numColumns", {
1079
+ get: function () { return this._dashboardWidgets.numColumns; },
1080
+ set: function (val) {
1081
+ this._dashboardWidgets.numColumns = coercion.coerceNumberProperty(val);
1082
+ },
1083
+ enumerable: false,
1084
+ configurable: true
1085
+ });
1086
+ Object.defineProperty(DashboardWidgetsComponent.prototype, "widgets", {
1087
+ get: function () { return this._dashboardWidgets.widgets; },
1088
+ set: function (value) { this._dashboardWidgets.widgets = value || []; },
1089
+ enumerable: false,
1090
+ configurable: true
1091
+ });
1092
+ DashboardWidgetsComponent.prototype.ngOnInit = function () {
1093
+ var _this = this;
1094
+ // this._dashboardWidgets.setViewContainerRef(this._viewContainerRef)
1095
+ this._layoutChange.pipe(operators.switchMap(function () { return _this.widgetItems$.pipe(operators.take(1), operators.tap(function (widgetItems) { return _this.widgetsChange.emit(widgetItems); }),
1096
+ // map(widgetItems => this._dashboardWidgets.toSerializeableItems(widgetItems)),
1097
+ // tap(v => console.log('serializable', v)),
1098
+ operators.switchMap(function () { return _this._dashboardWidgets.savePreferences(); })); }), operators.takeUntil(this._ngUnsubscribe)).subscribe();
1099
+ };
1100
+ DashboardWidgetsComponent.prototype.ngOnDestroy = function () {
1101
+ this._unregisterToggleAction();
1102
+ this._ngUnsubscribe.next();
1103
+ this._ngUnsubscribe.complete();
1104
+ };
1105
+ DashboardWidgetsComponent.prototype.ngAfterViewInit = function () {
1106
+ var _this = this;
1107
+ var _a;
1108
+ if (this._baseLayoutRef) {
1109
+ this._dragToggleVisible.pipe(operators.distinctUntilChanged(), operators.tap(function (visible) {
1110
+ var isRegistered = _this._isActionToggleActionRegistered();
1111
+ if (visible && !isRegistered) {
1112
+ _this._registerToggleAction();
1113
+ }
1114
+ else if (!visible && isRegistered) {
1115
+ _this._unregisterToggleAction();
1116
+ }
1117
+ }), operators.takeUntil(this._ngUnsubscribe)).subscribe();
1118
+ }
1119
+ (_a = this.containers) === null || _a === void 0 ? void 0 : _a.changes.pipe(operators.startWith(undefined), operators.map(function () { var _a; return ((_a = _this.containers) === null || _a === void 0 ? void 0 : _a.toArray()) || []; }), operators.takeUntil(this._ngUnsubscribe), operators.finalize(function () { return _this._containers.next([]); })).subscribe(function (v) { return _this._containers.next(v); });
1120
+ };
1121
+ DashboardWidgetsComponent.prototype._registerToggleAction = function () {
1122
+ if (this._baseLayoutRef) {
1123
+ // This should probably use a component dynamically created from the
1124
+ // config and return a ref to it, instead of using a template.
1125
+ if (this._toggleBtnTpl) {
1126
+ this._baseLayoutRef.registerAction({
1127
+ // type: 'button',
1128
+ type: 'template',
1129
+ name: this._actionWidgetDragToggleName,
1130
+ label: 'Toggle Widget Dragging',
1131
+ // exec: () => {
1132
+ // console.log('toggle')
1133
+ // },
1134
+ template: this._toggleBtnTpl
1135
+ });
1136
+ }
1137
+ }
1138
+ };
1139
+ DashboardWidgetsComponent.prototype._unregisterToggleAction = function () {
1140
+ if (this._baseLayoutRef) {
1141
+ this._baseLayoutRef.unregisterAction(this._actionWidgetDragToggleName);
1142
+ }
1143
+ };
1144
+ DashboardWidgetsComponent.prototype._isActionToggleActionRegistered = function () {
1145
+ if (!this._baseLayoutRef) {
1146
+ return false;
1147
+ }
1148
+ return this._baseLayoutRef.isActionRegistered(this._actionWidgetDragToggleName);
1149
+ };
1150
+ DashboardWidgetsComponent.prototype.drop = function (event) {
1151
+ var _this = this;
1152
+ if (event.previousContainer === event.container) {
1153
+ dragDrop.moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);
1154
+ this._dashboardWidgets.updateOrder().subscribe(function () { return _this._layoutChange.next(); });
1155
+ }
1156
+ else {
1157
+ dragDrop.transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);
1158
+ this._dashboardWidgets.updateOrder().subscribe(function () { return _this._layoutChange.next(); });
1159
+ }
1160
+ };
1161
+ DashboardWidgetsComponent.prototype._containerTrackByFn = function (index, item) {
1162
+ return item.widgetId;
1163
+ };
1164
+ DashboardWidgetsComponent.prototype._columnsTrackByFn = function (index, record) {
1165
+ return record.column;
1166
+ };
1167
+ DashboardWidgetsComponent.prototype.toggleDragging = function () {
1168
+ this.widgetsDraggable = !this.widgetsDraggable;
1169
+ this._cdr.detectChanges();
1170
+ };
1171
+ DashboardWidgetsComponent.prototype._resized = function (event) {
1172
+ this._widthChange.next(event.size.width);
1173
+ };
1174
+ return DashboardWidgetsComponent;
1175
+ }());
1176
+ DashboardWidgetsComponent.decorators = [
1177
+ { type: i0.Component, args: [{
1178
+ selector: 'seam-dashboard-widgets',
1179
+ template: "<!--\n This is an ugly trick I am using to render the component into an <ng-content>\n wrapped in an <ng-template> to move the component to different outlets without\n reinitializing it. This way the widget won't reload when moving between\n columns. When I remember how I programatically did this I will remove this\n weirdness.\n -->\n <seam-dashboard-widget-container *ngFor=\"let item of widgetItems$ | async; trackBy: _containerTrackByFn\" [def]=\"$any(item)\">\n <!-- <ng-template [cdkPortalOutlet]=\"item.portal\"></ng-template> -->\n <ng-template [seamDashboardWidgetPortalOutlet]=\"item.portal\"></ng-template>\n</seam-dashboard-widget-container>\n\n<div class=\"dashboard-widgets-base d-flex flex-row justify-content-around\"\n style=\"flex: 1410px;\"\n [style.padding.px]=\"_gapStyleSize$ | async\"\n (seamElemResized)=\"_resized($event)\"\n cdkDropListGroup>\n <div *ngFor=\"let col of widgetColumns$ | async; trackBy: _columnsTrackByFn\"\n class=\"d-flex flex-column flex-grow-1 dashboard-widgets-list\"\n cdkDropList\n [cdkDropListData]=\"col.items\"\n (cdkDropListDropped)=\"drop($any($event))\">\n <div *ngFor=\"let item of col.items; trackBy: _containerTrackByFn\"\n class=\"dashboard-widgets-list-item\"\n [attr.data-widget-id]=\"item.widgetId\"\n cdkDrag\n [cdkDragDisabled]=\"!widgetsDraggable\">\n <div [style.margin.px]=\"_gapStyleSize$ | async\">\n <seam-dashboard-widget-template-container [item]=\"item\"></seam-dashboard-widget-template-container>\n </div>\n </div>\n </div>\n</div>\n\n<ng-template #toggleBtnTpl>\n <button seamButton theme=\"baselayout-action\" title=\"{{ widgetsDraggable ? 'Lock the Dashboard' : 'Modify Dashboard' }}\" (click)=\"toggleDragging()\">\n <seam-icon [icon]=\"widgetsDraggable ? faUnlock : faLock\"></seam-icon>\n </button>\n</ng-template>\n",
1180
+ providers: [
1181
+ {
1182
+ provide: widget.THESEAM_WIDGET_ACCESSOR,
1183
+ // tslint:disable-next-line:no-use-before-declare
1184
+ useExisting: i0.forwardRef(function () { return DashboardWidgetsComponent; })
1185
+ }
1186
+ ],
1187
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1188
+ encapsulation: i0.ViewEncapsulation.None,
1189
+ styles: ["seam-dashboard-widgets{display:flex;justify-content:center}seam-dashboard-widgets .dashboard-widgets-base{max-width:1410px}seam-dashboard-widgets .dashboard-widgets-list{flex-basis:400px;max-width:500px}seam-dashboard-widgets .dashboard-widgets-list.cdk-drop-list-dragging .dashboard-widgets-list-item:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.dashboard-widgets-list-item.cdk-drag-preview{box-sizing:border-box}.dashboard-widgets-list-item.cdk-drag-preview>div{border-radius:.25rem;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.dashboard-widgets-list-item.cdk-drag-disabled .cdk-drag-handle{cursor:default}.dashboard-widgets-list-item .cdk-drag-handle{cursor:move}.dashboard-widgets-list-item.cdk-drag-placeholder{opacity:0}.dashboard-widgets-list-item.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}"]
1190
+ },] }
1191
+ ];
1192
+ DashboardWidgetsComponent.ctorParameters = function () { return [
1193
+ { type: DashboardWidgetsService },
1194
+ { type: i0.ViewContainerRef },
1195
+ { type: i0.ChangeDetectorRef },
1196
+ { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [THESEAM_BASE_LAYOUT_REF,] }] }
1197
+ ]; };
1198
+ DashboardWidgetsComponent.propDecorators = {
1199
+ gapSize: [{ type: i0.Input }],
1200
+ widgetsDraggable: [{ type: i0.Input }],
1201
+ dragToggleVisible: [{ type: i0.Input }],
1202
+ numColumns: [{ type: i0.Input }],
1203
+ widgets: [{ type: i0.Input }],
1204
+ containers: [{ type: i0.ViewChildren, args: [DashboardWidgetContainerComponent,] }],
1205
+ cdkDragDirectives: [{ type: i0.ViewChildren, args: [dragDrop.CdkDrag,] }],
1206
+ _toggleBtnTpl: [{ type: i0.ViewChild, args: ['toggleBtnTpl', { static: true },] }],
1207
+ widgetsChange: [{ type: i0.Output }]
1208
+ };
1209
+ __decorate([
1210
+ core.InputBoolean()
1211
+ ], DashboardWidgetsComponent.prototype, "widgetsDraggable", void 0);
1212
+
1213
+ var DashboardWidgetTemplateContainerComponent = /** @class */ (function () {
1214
+ function DashboardWidgetTemplateContainerComponent(_dashboardWidgetsComponent) {
1215
+ var _this = this;
1216
+ this._dashboardWidgetsComponent = _dashboardWidgetsComponent;
1217
+ this.template$ = this._dashboardWidgetsComponent.containers$.pipe(operators.map(function (containers) { return containers.find(function (c) { var _a; return c.def.widgetId === ((_a = _this.item) === null || _a === void 0 ? void 0 : _a.widgetId); }); }), operators.map(function (container) { return container && container.templateRef; }));
1218
+ }
1219
+ DashboardWidgetTemplateContainerComponent.prototype.ngOnInit = function () { };
1220
+ return DashboardWidgetTemplateContainerComponent;
1221
+ }());
1222
+ DashboardWidgetTemplateContainerComponent.decorators = [
1223
+ { type: i0.Component, args: [{
1224
+ selector: 'seam-dashboard-widget-template-container',
1225
+ template: "<ng-template [ngTemplateOutlet]=\"$any(template$ | async)\"></ng-template>\n",
1226
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1227
+ styles: [""]
1228
+ },] }
1229
+ ];
1230
+ DashboardWidgetTemplateContainerComponent.ctorParameters = function () { return [
1231
+ { type: DashboardWidgetsComponent }
1232
+ ]; };
1233
+ DashboardWidgetTemplateContainerComponent.propDecorators = {
1234
+ item: [{ type: i0.Input }]
1235
+ };
1236
+
1237
+ /**
1238
+ * Mostly copied from
1239
+ * `https://github.com/angular/components/blob/master/src/cdk/portal/portal-directives.ts`
1240
+ * until I can figure out how to hold off removing the DOM nodes with the
1241
+ * cdkPortalOutlet. When we update to Angular 9 I may be able to do this better
1242
+ * with the new DomPortal.
1243
+ *
1244
+ * Directive version of a PortalOutlet. Because the directive *is* a
1245
+ * PortalOutlet, portals can be directly attached to it, enabling declarative
1246
+ * use.
1247
+ *
1248
+ * Usage: `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
1249
+ */
1250
+ var DashboardWidgetPortalOutletDirective = /** @class */ (function (_super) {
1251
+ __extends(DashboardWidgetPortalOutletDirective, _super);
1252
+ function DashboardWidgetPortalOutletDirective(_componentFactoryResolver, _viewContainerRef, _elementRef) {
1253
+ var _this = _super.call(this) || this;
1254
+ _this._componentFactoryResolver = _componentFactoryResolver;
1255
+ _this._viewContainerRef = _viewContainerRef;
1256
+ _this._elementRef = _elementRef;
1257
+ /** Whether the portal component is initialized. */
1258
+ _this._isInitialized = false;
1259
+ /** Emits when a portal is attached to the outlet. */
1260
+ _this.attached = new i0.EventEmitter();
1261
+ return _this;
1262
+ }
1263
+ Object.defineProperty(DashboardWidgetPortalOutletDirective.prototype, "portal", {
1264
+ /** Portal associated with the Portal outlet. */
1265
+ get: function () {
1266
+ return this._attachedPortal;
1267
+ },
1268
+ set: function (portal) {
1269
+ // console.log('[DashboardWidgetPortalOutletDirective] set portal', portal, this.hasAttached())
1270
+ // Ignore the cases where the `portal` is set to a falsy value before the lifecycle hooks have
1271
+ // run. This handles the cases where the user might do something like `<div cdkPortalOutlet>`
1272
+ // and attach a portal programmatically in the parent component. When Angular does the first CD
1273
+ // round, it will fire the setter with empty string, causing the user's content to be cleared.
1274
+ if (this.hasAttached() && !portal && !this._isInitialized) {
1275
+ return;
1276
+ }
1277
+ if (this.hasAttached()) {
1278
+ _super.prototype.detach.call(this);
1279
+ }
1280
+ if (portal) {
1281
+ _super.prototype.attach.call(this, portal);
1282
+ }
1283
+ this._attachedPortal = portal;
1284
+ },
1285
+ enumerable: false,
1286
+ configurable: true
1287
+ });
1288
+ Object.defineProperty(DashboardWidgetPortalOutletDirective.prototype, "attachedRef", {
1289
+ /** Component or view reference that is attached to the portal. */
1290
+ get: function () {
1291
+ return this._attachedRef;
1292
+ },
1293
+ enumerable: false,
1294
+ configurable: true
1295
+ });
1296
+ DashboardWidgetPortalOutletDirective.prototype.ngOnInit = function () {
1297
+ this._isInitialized = true;
1298
+ };
1299
+ DashboardWidgetPortalOutletDirective.prototype.ngOnDestroy = function () {
1300
+ var _this = this;
1301
+ // console.log('[DashboardWidgetPortalOutletDirective] ngOnDestroy')
1302
+ // TODO: Figure out the right way to call dispose without messing up
1303
+ // animation. This setTimeout way assumes the transition is 500ms, but that
1304
+ // may not always be the case and isn't guaranteed to match the animation ms
1305
+ // duration, since setTimeout isn't really meant for accurate timing. It
1306
+ // also makes debugging animations difficult, because you can pause an
1307
+ // animation, but the timeout will still run.
1308
+ setTimeout(function () {
1309
+ _super.prototype.dispose.call(_this);
1310
+ _this._attachedPortal = null;
1311
+ _this._attachedRef = null;
1312
+ }, 500);
1313
+ };
1314
+ /**
1315
+ * Attach the given ComponentPortal to this PortalOutlet using the ComponentFactoryResolver.
1316
+ *
1317
+ * @param portal Portal to be attached to the portal outlet.
1318
+ * @returns Reference to the created component.
1319
+ */
1320
+ DashboardWidgetPortalOutletDirective.prototype.attachComponentPortal = function (portal) {
1321
+ portal.setAttachedHost(this);
1322
+ // If the portal specifies an origin, use that as the logical location of the component
1323
+ // in the application tree. Otherwise use the location of this PortalOutlet.
1324
+ var viewContainerRef = portal.viewContainerRef != null ?
1325
+ portal.viewContainerRef :
1326
+ this._viewContainerRef;
1327
+ var resolver = portal.componentFactoryResolver || this._componentFactoryResolver;
1328
+ var componentFactory = resolver.resolveComponentFactory(portal.component);
1329
+ var ref = viewContainerRef.createComponent(componentFactory, viewContainerRef.length, portal.injector || viewContainerRef.injector);
1330
+ _super.prototype.setDisposeFn.call(this, function () { return ref.destroy(); });
1331
+ this._attachedPortal = portal;
1332
+ this._attachedRef = ref;
1333
+ this.attached.emit(ref);
1334
+ return ref;
1335
+ };
1336
+ /**
1337
+ * Attach the given TemplatePortal to this PortlHost as an embedded View.
1338
+ * @param portal Portal to be attached.
1339
+ * @returns Reference to the created embedded view.
1340
+ */
1341
+ DashboardWidgetPortalOutletDirective.prototype.attachTemplatePortal = function (portal) {
1342
+ var _this = this;
1343
+ portal.setAttachedHost(this);
1344
+ var viewRef = this._viewContainerRef.createEmbeddedView(portal.templateRef, portal.context);
1345
+ _super.prototype.setDisposeFn.call(this, function () { return _this._viewContainerRef.clear(); });
1346
+ this._attachedPortal = portal;
1347
+ this._attachedRef = viewRef;
1348
+ this.attached.emit(viewRef);
1349
+ return viewRef;
1350
+ };
1351
+ return DashboardWidgetPortalOutletDirective;
1352
+ }(portal.BasePortalOutlet));
1353
+ DashboardWidgetPortalOutletDirective.decorators = [
1354
+ { type: i0.Directive, args: [{
1355
+ selector: '[seamDashboardWidgetPortalOutlet]',
1356
+ exportAs: 'seamDashboardWidgetPortalOutlet',
1357
+ inputs: ['portal: seamDashboardWidgetPortalOutlet']
1358
+ },] }
1359
+ ];
1360
+ DashboardWidgetPortalOutletDirective.ctorParameters = function () { return [
1361
+ { type: i0.ComponentFactoryResolver },
1362
+ { type: i0.ViewContainerRef },
1363
+ { type: i0.ElementRef }
1364
+ ]; };
1365
+ DashboardWidgetPortalOutletDirective.propDecorators = {
1366
+ attached: [{ type: i0.Output }]
1367
+ };
1368
+
1369
+ var DashboardComponent = /** @class */ (function () {
1370
+ function DashboardComponent() {
1371
+ this.widgetsDraggable = true;
1372
+ }
1373
+ return DashboardComponent;
1374
+ }());
1375
+ DashboardComponent.decorators = [
1376
+ { type: i0.Component, args: [{
1377
+ selector: 'seam-dashboard',
1378
+ template: "<seam-dashboard-widgets [widgets]=\"widgets\" [widgetsDraggable]=\"widgetsDraggable\"></seam-dashboard-widgets>\n",
1379
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1380
+ styles: [""]
1381
+ },] }
1382
+ ];
1383
+ DashboardComponent.ctorParameters = function () { return []; };
1384
+ DashboardComponent.propDecorators = {
1385
+ widgets: [{ type: i0.Input }],
1386
+ widgetsDraggable: [{ type: i0.Input }]
1387
+ };
1388
+ __decorate([
1389
+ core.InputBoolean()
1390
+ ], DashboardComponent.prototype, "widgetsDraggable", void 0);
1391
+
1392
+ var TheSeamDashboardModule = /** @class */ (function () {
1393
+ function TheSeamDashboardModule() {
1394
+ }
1395
+ return TheSeamDashboardModule;
1396
+ }());
1397
+ TheSeamDashboardModule.decorators = [
1398
+ { type: i0.NgModule, args: [{
1399
+ declarations: [
1400
+ DashboardComponent,
1401
+ DashboardWidgetsComponent,
1402
+ DashboardWidgetContainerComponent,
1403
+ DashboardWidgetTemplateContainerComponent,
1404
+ DashboardWidgetPortalOutletDirective
1405
+ ],
1406
+ imports: [
1407
+ common.CommonModule,
1408
+ portal.PortalModule,
1409
+ dragDrop.DragDropModule,
1410
+ buttons.TheSeamButtonsModule,
1411
+ icon.TheSeamIconModule,
1412
+ shared.TheSeamSharedModule
1413
+ ],
1414
+ exports: [
1415
+ DashboardComponent,
1416
+ DashboardWidgetsComponent,
1417
+ DashboardWidgetPortalOutletDirective
1418
+ ]
1419
+ },] }
1420
+ ];
1421
+
1422
+ function isNavItemType(item, type) {
1423
+ return item.itemType === type;
1424
+ }
1425
+ function isNavItemActive(item) {
1426
+ var _a, _b;
1427
+ return (_b = (_a = item.__state) === null || _a === void 0 ? void 0 : _a.active) !== null && _b !== void 0 ? _b : false;
1428
+ }
1429
+ function isExpanded(item) {
1430
+ var _a, _b;
1431
+ return (_b = (_a = item.__state) === null || _a === void 0 ? void 0 : _a.expanded) !== null && _b !== void 0 ? _b : false;
1432
+ }
1433
+ function hasChildren(item) {
1434
+ return canHaveChildren(item) && utils.hasProperty(item, 'children') && item.children.length > 0;
1435
+ }
1436
+ function canHaveChildren(item) {
1437
+ return isNavItemType(item, 'basic') || isNavItemType(item, 'link');
1438
+ }
1439
+ function hasActiveChild(item) {
1440
+ var e_1, _c;
1441
+ if (!hasChildren(item)) {
1442
+ return false;
1443
+ }
1444
+ try {
1445
+ for (var _d = __values(item.children), _e = _d.next(); !_e.done; _e = _d.next()) {
1446
+ var child = _e.value;
1447
+ if (getItemStateProp(child, 'active')) {
1448
+ return true;
1449
+ }
1450
+ }
1451
+ }
1452
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1453
+ finally {
1454
+ try {
1455
+ if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
1456
+ }
1457
+ finally { if (e_1) throw e_1.error; }
1458
+ }
1459
+ return false;
1460
+ }
1461
+ function hasExpandedChild(item) {
1462
+ var e_2, _c;
1463
+ if (!hasChildren(item)) {
1464
+ return false;
1465
+ }
1466
+ try {
1467
+ for (var _d = __values(item.children), _e = _d.next(); !_e.done; _e = _d.next()) {
1468
+ var child = _e.value;
1469
+ if (getItemStateProp(child, 'expanded')) {
1470
+ return true;
1471
+ }
1472
+ }
1473
+ }
1474
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1475
+ finally {
1476
+ try {
1477
+ if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
1478
+ }
1479
+ finally { if (e_2) throw e_2.error; }
1480
+ }
1481
+ return false;
1482
+ }
1483
+ function canBeActive(item) {
1484
+ return isNavItemType(item, 'basic') || isNavItemType(item, 'link');
1485
+ }
1486
+ function canExpand(item) {
1487
+ return canHaveChildren(item);
1488
+ }
1489
+ function findLinkItems(items) {
1490
+ var linkItems = [];
1491
+ var _fn = function (_items) {
1492
+ var e_3, _c;
1493
+ try {
1494
+ for (var _items_1 = __values(_items), _items_1_1 = _items_1.next(); !_items_1_1.done; _items_1_1 = _items_1.next()) {
1495
+ var item = _items_1_1.value;
1496
+ if (isNavItemType(item, 'link')) {
1497
+ linkItems.push(item);
1498
+ }
1499
+ if (canHaveChildren(item) && utils.hasProperty(item, 'children')) {
1500
+ _fn(item.children);
1501
+ }
1502
+ }
1503
+ }
1504
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
1505
+ finally {
1506
+ try {
1507
+ if (_items_1_1 && !_items_1_1.done && (_c = _items_1.return)) _c.call(_items_1);
1508
+ }
1509
+ finally { if (e_3) throw e_3.error; }
1510
+ }
1511
+ };
1512
+ _fn(items);
1513
+ return linkItems;
1514
+ }
1515
+ function setItemStateProp(item, prop, value) {
1516
+ if (utils.hasProperty(item, '__state')) {
1517
+ item.__state[prop] = value;
1518
+ }
1519
+ }
1520
+ function getItemStateProp(item, prop) {
1521
+ return setDefaultState(item).__state[prop];
1522
+ }
1523
+ function setDefaultState(item) {
1524
+ if (utils.hasProperty(item, '__state')) {
1525
+ return item;
1526
+ }
1527
+ item.__state = {
1528
+ active: false,
1529
+ expanded: false
1530
+ };
1531
+ // TODO: See if there is a nice way to fix the typing for this.
1532
+ return item;
1533
+ }
1534
+
1535
+ var TheSeamSideNavService = /** @class */ (function () {
1536
+ function TheSeamSideNavService(_router) {
1537
+ this._router = _router;
1538
+ this._updatingCount = new rxjs.BehaviorSubject(0);
1539
+ this.itemChanged = new rxjs.Subject();
1540
+ this.loading$ = this._updatingCount.pipe(operators.map(function (count) { return count > 0; }), operators.distinctUntilChanged(), operators.shareReplay({ bufferSize: 1, refCount: true }));
1541
+ }
1542
+ TheSeamSideNavService.prototype.createItemsObservable = function (items) {
1543
+ var _this = this;
1544
+ return rxjs.defer(function () {
1545
+ _this.updateItemsStates(items);
1546
+ return new rxjs.Observable(function (subscriber) {
1547
+ var stateChangeSub = _this.itemChanged.pipe(operators.switchMap(function () { return _this.loading$.pipe(operators.filter(function (loading) { return !loading; })); })).subscribe(function () {
1548
+ subscriber.next(items);
1549
+ });
1550
+ try {
1551
+ _this.updateItemsStates(items);
1552
+ }
1553
+ catch (err) {
1554
+ subscriber.error(err);
1555
+ }
1556
+ // const linkItems = findLinkItems(items)
1557
+ var routeChangeSub = _this._router.events.pipe(operators.filter(function (event) { return event instanceof router.NavigationEnd; })).subscribe(function () {
1558
+ try {
1559
+ _this.updateItemsStates(items);
1560
+ }
1561
+ catch (err) {
1562
+ subscriber.error(err);
1563
+ }
1564
+ });
1565
+ return function () {
1566
+ stateChangeSub.unsubscribe();
1567
+ routeChangeSub.unsubscribe();
1568
+ };
1569
+ }).pipe(operators.startWith(items));
1570
+ });
1571
+ };
1572
+ TheSeamSideNavService.prototype._incUpdatingCount = function () {
1573
+ this._updatingCount.next(this._updatingCount.value + 1);
1574
+ };
1575
+ TheSeamSideNavService.prototype._decrUpdatingCount = function () {
1576
+ this._updatingCount.next(this._updatingCount.value - 1);
1577
+ };
1578
+ TheSeamSideNavService.prototype.updateItemsStates = function (items) {
1579
+ var e_1, _a;
1580
+ this._incUpdatingCount();
1581
+ try {
1582
+ try {
1583
+ for (var items_1 = __values(items), items_1_1 = items_1.next(); !items_1_1.done; items_1_1 = items_1.next()) {
1584
+ var item = items_1_1.value;
1585
+ if (hasChildren(item)) {
1586
+ this.updateItemsStates(item.children);
1587
+ }
1588
+ this.updateItemState(item);
1589
+ }
1590
+ }
1591
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1592
+ finally {
1593
+ try {
1594
+ if (items_1_1 && !items_1_1.done && (_a = items_1.return)) _a.call(items_1);
1595
+ }
1596
+ finally { if (e_1) throw e_1.error; }
1597
+ }
1598
+ this._decrUpdatingCount();
1599
+ }
1600
+ catch (err) {
1601
+ this._decrUpdatingCount();
1602
+ throw err;
1603
+ }
1604
+ };
1605
+ TheSeamSideNavService.prototype.updateItemState = function (item) {
1606
+ this._incUpdatingCount();
1607
+ try {
1608
+ setDefaultState(item);
1609
+ if (isNavItemType(item, 'link')) {
1610
+ var url = this._getUrl(item);
1611
+ if (utils.notNullOrUndefined(url)) {
1612
+ var opts = this._getMatchOptions(item);
1613
+ this.setItemStateProp(item, 'active', this._router.isActive(url, opts));
1614
+ }
1615
+ }
1616
+ // TODO: Implement this in a more optimized way. Unless our apps start
1617
+ // having large side-navs constantly updating their state, this shouldn't
1618
+ // have much impact on performance.
1619
+ this._updateItemExpandedState(item);
1620
+ this._decrUpdatingCount();
1621
+ }
1622
+ catch (err) {
1623
+ this._decrUpdatingCount();
1624
+ throw err;
1625
+ }
1626
+ };
1627
+ TheSeamSideNavService.prototype._updateItemsExpandedState = function (items) {
1628
+ var e_2, _a;
1629
+ try {
1630
+ for (var items_2 = __values(items), items_2_1 = items_2.next(); !items_2_1.done; items_2_1 = items_2.next()) {
1631
+ var item = items_2_1.value;
1632
+ if (hasChildren(item)) {
1633
+ this._updateItemsExpandedState(item.children);
1634
+ }
1635
+ this._updateItemExpandedState(item);
1636
+ }
1637
+ }
1638
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1639
+ finally {
1640
+ try {
1641
+ if (items_2_1 && !items_2_1.done && (_a = items_2.return)) _a.call(items_2);
1642
+ }
1643
+ finally { if (e_2) throw e_2.error; }
1644
+ }
1645
+ };
1646
+ TheSeamSideNavService.prototype._updateItemExpandedState = function (item) {
1647
+ if (!canExpand(item)) {
1648
+ if (getItemStateProp(item, 'expanded')) {
1649
+ this.setItemStateProp(item, 'expanded', false);
1650
+ }
1651
+ return;
1652
+ }
1653
+ if (hasChildren(item)) {
1654
+ this._updateItemsExpandedState(item.children);
1655
+ }
1656
+ if (hasActiveChild(item) || hasExpandedChild(item)) {
1657
+ if (!getItemStateProp(item, 'expanded')) {
1658
+ this.setItemStateProp(item, 'expanded', true);
1659
+ }
1660
+ }
1661
+ else {
1662
+ if (getItemStateProp(item, 'expanded')) {
1663
+ this.setItemStateProp(item, 'expanded', false);
1664
+ }
1665
+ }
1666
+ };
1667
+ TheSeamSideNavService.prototype._getNavExtras = function (item) {
1668
+ var navigationExtras = {};
1669
+ if (utils.hasProperty(item, 'queryParams')) {
1670
+ navigationExtras.queryParams = item.queryParams;
1671
+ }
1672
+ if (utils.hasProperty(item, 'fragment')) {
1673
+ navigationExtras.fragment = item.fragment;
1674
+ }
1675
+ if (utils.hasProperty(item, 'queryParamsHandling')) {
1676
+ navigationExtras.queryParamsHandling = item.queryParamsHandling;
1677
+ }
1678
+ if (utils.hasProperty(item, 'preserveFragment')) {
1679
+ navigationExtras.preserveFragment = item.preserveFragment;
1680
+ }
1681
+ return navigationExtras;
1682
+ };
1683
+ TheSeamSideNavService.prototype._getUrl = function (item) {
1684
+ var link = item.link;
1685
+ if (typeof link === 'string') {
1686
+ return this._router.createUrlTree([link], this._getNavExtras(item)).toString();
1687
+ }
1688
+ else if (Array.isArray(link)) {
1689
+ return this._router.createUrlTree(link, this._getNavExtras(item)).toString();
1690
+ }
1691
+ return null;
1692
+ };
1693
+ TheSeamSideNavService.prototype._getMatchOptions = function (item) {
1694
+ var defaultMatchOpts = {
1695
+ paths: 'subset',
1696
+ queryParams: 'subset',
1697
+ fragment: 'ignored',
1698
+ matrixParams: 'ignored'
1699
+ };
1700
+ if (utils.hasProperty(item, 'matchOptions')) {
1701
+ return Object.assign(Object.assign({}, defaultMatchOpts), item.matchOptions);
1702
+ }
1703
+ return defaultMatchOpts;
1704
+ };
1705
+ TheSeamSideNavService.prototype.setItemStateProp = function (item, prop, value) {
1706
+ var currentValue = getItemStateProp(item, prop);
1707
+ if (currentValue !== value) {
1708
+ setItemStateProp(item, prop, value);
1709
+ var changed = {
1710
+ item: item,
1711
+ prop: prop,
1712
+ prevValue: currentValue,
1713
+ newValue: value
1714
+ };
1715
+ this.itemChanged.next(changed);
1716
+ }
1717
+ };
1718
+ return TheSeamSideNavService;
1719
+ }());
1720
+ TheSeamSideNavService.decorators = [
1721
+ { type: i0.Injectable }
1722
+ ];
1723
+ TheSeamSideNavService.ctorParameters = function () { return [
1724
+ { type: router.Router }
1725
+ ]; };
1726
+
1727
+ var EXPANDED_STATE$1 = 'expanded';
1728
+ var COLLAPSED_STATE$1 = 'collapsed';
1729
+ var EXPANDED_OVERLAY_STATE = 'expanded-overlay';
1730
+ var COLLAPSED_OVERLAY_STATE = 'collapsed-overlay';
1731
+ var EXPANDED_STATES = [EXPANDED_STATE$1, EXPANDED_OVERLAY_STATE];
1732
+ var COLLAPSED_STATES = [COLLAPSED_STATE$1, COLLAPSED_OVERLAY_STATE];
1733
+ var EXPAND_STATES = __spreadArray(__spreadArray([], __read(EXPANDED_STATES)), __read(COLLAPSED_STATES));
1734
+ function sideNavExpandStateChangeFn(fromState, toState) {
1735
+ // console.log({ fromState, toState })
1736
+ return fromState !== toState &&
1737
+ (
1738
+ // NOTE: The current way the side nav is being used it causes the
1739
+ // component to sometimes get placed in the wrong location initially. It
1740
+ // is fast enough to not be noticed without an initial animation usually,
1741
+ // so it is commented out below until the initial placement issue it
1742
+ // fixed.
1743
+ //
1744
+ // (
1745
+ // fromState === 'void' && EXPAND_STATES.indexOf(toState) !== -1
1746
+ // ||
1747
+ // toState === 'void' && EXPAND_STATES.indexOf(fromState) !== -1
1748
+ // )
1749
+ // ||
1750
+ ((EXPANDED_STATES.indexOf(fromState) !== -1 && COLLAPSED_STATES.indexOf(toState) !== -1)
1751
+ ||
1752
+ (EXPANDED_STATES.indexOf(toState) !== -1 && COLLAPSED_STATES.indexOf(fromState) !== -1)));
1753
+ }
1754
+ var SideNavComponent = /** @class */ (function () {
1755
+ function SideNavComponent(_layout, _sideNav, _baseLayoutRef) {
1756
+ var _this = this;
1757
+ this._layout = _layout;
1758
+ this._sideNav = _sideNav;
1759
+ this._baseLayoutRef = _baseLayoutRef;
1760
+ this._ngUnsubscribe = new rxjs.Subject();
1761
+ // @HostBinding('@sideNavExpand') _sideNavExpand = EXPANDED_STATE
1762
+ // _sideNavExpand = EXPANDED_STATE
1763
+ // @HostBinding('@sideNavAnim') _sideNavExpand = EXPANDED_STATE
1764
+ this._sideNavExpand = 'initial';
1765
+ this.hasHeaderToggle = true;
1766
+ this._items = new rxjs.BehaviorSubject([]);
1767
+ this._expanded = new rxjs.BehaviorSubject(true);
1768
+ this.expanded$ = this._expanded.asObservable();
1769
+ this._overlay = new rxjs.BehaviorSubject(false);
1770
+ this.overlay$ = this._overlay.asObservable();
1771
+ this._backdropHidden = new rxjs.BehaviorSubject(true);
1772
+ this.items$ = this._items.asObservable().pipe(operators.switchMap(function (items) { return _this._sideNav.createItemsObservable(items); }), operators.shareReplay({ bufferSize: 1, refCount: true }));
1773
+ this.isMobile$ = this._layout.isMobile$.pipe(operators.tap(function (isMobile) { return isMobile && _this.collapse(); }));
1774
+ this.sideNavExpandedState$ = rxjs.combineLatest([this.expanded$, this.overlay$]).pipe(operators.map(function (_a) {
1775
+ var _b = __read(_a, 2), expanded = _b[0], overlay = _b[1];
1776
+ return expanded
1777
+ ? overlay ? EXPANDED_OVERLAY_STATE : EXPANDED_STATE$1
1778
+ : overlay ? COLLAPSED_OVERLAY_STATE : COLLAPSED_STATE$1;
1779
+ }), operators.distinctUntilChanged());
1780
+ }
1781
+ Object.defineProperty(SideNavComponent.prototype, "items", {
1782
+ get: function () { return this._items.value; },
1783
+ set: function (value) { this._items.next(value); },
1784
+ enumerable: false,
1785
+ configurable: true
1786
+ });
1787
+ Object.defineProperty(SideNavComponent.prototype, "expanded", {
1788
+ get: function () { return this._expanded.value; },
1789
+ set: function (value) { this._expanded.next(coercion.coerceBooleanProperty(value)); },
1790
+ enumerable: false,
1791
+ configurable: true
1792
+ });
1793
+ Object.defineProperty(SideNavComponent.prototype, "overlay", {
1794
+ get: function () { return this._overlay.value; },
1795
+ set: function (value) { this._overlay.next(coercion.coerceBooleanProperty(value)); },
1796
+ enumerable: false,
1797
+ configurable: true
1798
+ });
1799
+ SideNavComponent.prototype.ngOnInit = function () {
1800
+ var _this = this;
1801
+ if (this._baseLayoutRef) {
1802
+ this._baseLayoutRef.registerNav(this);
1803
+ }
1804
+ this.isMobile$
1805
+ .pipe(operators.takeUntil(this._ngUnsubscribe))
1806
+ .subscribe(function (b) { return _this.overlay = b; });
1807
+ this.sideNavExpandedState$
1808
+ .pipe(operators.takeUntil(this._ngUnsubscribe))
1809
+ .subscribe(function (v) { return _this._sideNavExpand = v; });
1810
+ };
1811
+ SideNavComponent.prototype.ngOnDestroy = function () {
1812
+ this._ngUnsubscribe.next();
1813
+ this._ngUnsubscribe.complete();
1814
+ if (this._baseLayoutRef) {
1815
+ this._baseLayoutRef.unregisterNav(this);
1816
+ }
1817
+ };
1818
+ SideNavComponent.prototype.expand = function () {
1819
+ this.expanded = true;
1820
+ };
1821
+ SideNavComponent.prototype.collapse = function () {
1822
+ this.expanded = false;
1823
+ };
1824
+ SideNavComponent.prototype.toggle = function () {
1825
+ this.expanded = !this.expanded;
1826
+ };
1827
+ SideNavComponent.prototype.animateStart = function () {
1828
+ if (this.expanded) {
1829
+ this._backdropHidden.next(false);
1830
+ }
1831
+ };
1832
+ SideNavComponent.prototype.animateEnd = function () {
1833
+ if (!this.expanded) {
1834
+ this._backdropHidden.next(true);
1835
+ }
1836
+ };
1837
+ return SideNavComponent;
1838
+ }());
1839
+ SideNavComponent.decorators = [
1840
+ { type: i0.Component, args: [{
1841
+ selector: 'seam-side-nav',
1842
+ template: "<div class=\"side-nav-backdrop\" *ngIf=\"isMobile$ | async\"\n [@sideNavBackdrop]=\"_sideNavExpand\"\n [class.side-nav-backdrop-hidden]=\"_backdropHidden | async\"></div>\n\n<div class=\"side-nav-inner-wrapper\" [@sideNavExpand]=\"_sideNavExpand\"\n (@sideNavExpand.start)=\"animateStart()\"\n (@sideNavExpand.done)=\"animateEnd()\">\n <nav class=\"nav side-nav-content\">\n <seam-side-nav-toggle *ngIf=\"hasHeaderToggle\"\n [expanded]=\"expanded$ | async\"\n (toggleExpand)=\"toggle()\">\n </seam-side-nav-toggle>\n <div class=\"side-nav-items-container\" seamOverlayScrollbar>\n <seam-side-nav-item *ngFor=\"let item of items$ | async\"\n [compact]=\"!(expanded$ | async)\"\n [itemType]=\"$any(item)?.itemType\"\n [icon]=\"$any(item)?.icon\"\n [label]=\"$any(item)?.label\"\n [link]=\"$any(item)?.link\"\n [badgeText]=\"$any(item)?.badge?.text\"\n [badgeTheme]=\"$any(item)?.badge?.theme || 'danger'\"\n [badgeSrContent]=\"$any(item)?.badge?.srContent\"\n [badgeTooltip]=\"$any(item)?.badge?.tooltip\"\n [queryParams]=\"$any(item)?.queryParams\"\n [children]=\"$any(item)?.children\"\n [active]=\"$any(item).__state.active\"\n [expanded]=\"$any(item).__state.expanded\">\n </seam-side-nav-item>\n </div>\n </nav>\n</div>\n",
1843
+ providers: [
1844
+ TheSeamSideNavService
1845
+ ],
1846
+ animations: [
1847
+ //
1848
+ // TODO: This animation code turned into a mess. Clean it up and make it
1849
+ // more smooth.
1850
+ //
1851
+ animations.trigger('sideNavAnim', [
1852
+ animations.transition(sideNavExpandStateChangeFn, [
1853
+ animations.group([
1854
+ animations.query('@sideNavBackdrop', animations.animateChild(), { optional: true }),
1855
+ animations.query('@sideNavExpand', animations.animateChild(), { optional: true }),
1856
+ ]),
1857
+ ]),
1858
+ ]),
1859
+ animations.trigger('sideNavBackdrop', [
1860
+ animations.state(EXPANDED_OVERLAY_STATE, animations.style({ opacity: '1' })),
1861
+ animations.state(COLLAPSED_OVERLAY_STATE, animations.style({ opacity: '0' })),
1862
+ // transition((fromState, toState, element, params) => {
1863
+ // console.log('sideNavBackdrop v', fromState, toState, element, params)
1864
+ // return false
1865
+ // }, []),
1866
+ animations.transition(sideNavExpandStateChangeFn, animations.animate('0.2s ease-in-out')),
1867
+ ]),
1868
+ animations.trigger('sideNavExpand', [
1869
+ // TODO: Make width configurable.
1870
+ animations.state(EXPANDED_STATE$1, animations.style({ width: '260px' })),
1871
+ animations.state(COLLAPSED_STATE$1, animations.style({ width: '50px', 'overflow-x': 'hidden' })),
1872
+ animations.state(EXPANDED_OVERLAY_STATE, animations.style({
1873
+ position: 'absolute',
1874
+ top: 0,
1875
+ height: '100%',
1876
+ bottom: 0,
1877
+ left: 0,
1878
+ float: 'left',
1879
+ zIndex: '9999',
1880
+ width: 'calc(100vw - 50px)',
1881
+ transform: 'translateX(0)'
1882
+ })),
1883
+ animations.state(COLLAPSED_OVERLAY_STATE, animations.style({
1884
+ position: 'absolute',
1885
+ top: 0,
1886
+ height: '100%',
1887
+ bottom: 0,
1888
+ left: 0,
1889
+ float: 'left',
1890
+ zIndex: '9999',
1891
+ width: 'calc(100vw - 50px)',
1892
+ transform: 'translateX(calc(-100vw + 50px))',
1893
+ 'overflow-x': 'hidden'
1894
+ })),
1895
+ // transition(`${EXPANDED_STATE} <=> ${COLLAPSED_STATE}`, animate('0.2s ease-in-out')),
1896
+ animations.transition(sideNavExpandStateChangeFn, animations.animate('0.2s ease-in-out')),
1897
+ // transition(`${EXPANDED_STATE} <=> ${COLLAPSED_STATE}`, [
1898
+ // // query(':leave', animateChild(), { optional: true }),
1899
+ // // query(':enter', animateChild(), { optional: true }),
1900
+ // group([
1901
+ // query(':leave', animateChild(), { optional: true }),
1902
+ // query(':enter', animateChild(), { optional: true }),
1903
+ // query('@compactAnim', animateChild(), { optional: true }),
1904
+ // animate('5.2s ease-in-out')
1905
+ // ])
1906
+ // ]),
1907
+ ])
1908
+ ],
1909
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1910
+ encapsulation: i0.ViewEncapsulation.None,
1911
+ styles: [".seam-side-nav,seam-side-nav{display:block;height:100%;position:relative;z-index:2;overflow:hidden}.seam-side-nav .side-nav-inner-wrapper,seam-side-nav .side-nav-inner-wrapper{background:#357ebd;height:100%}.seam-side-nav .side-nav-backdrop,seam-side-nav .side-nav-backdrop{background:rgba(52,58,64,.6);width:100vw;height:100vh}.seam-side-nav .side-nav-backdrop.side-nav-backdrop-hidden,seam-side-nav .side-nav-backdrop.side-nav-backdrop-hidden{display:none;width:0;height:0;padding:0;margin:0}.seam-side-nav .side-nav-content,seam-side-nav .side-nav-content{display:flex;flex-direction:column;height:100%;flex-wrap:nowrap}.seam-side-nav .side-nav-items-container,seam-side-nav .side-nav-items-container{display:flex;flex-direction:column;width:100%;flex:1 1 100%}"]
1912
+ },] }
1913
+ ];
1914
+ SideNavComponent.ctorParameters = function () { return [
1915
+ { type: layout.TheSeamLayoutService },
1916
+ { type: TheSeamSideNavService },
1917
+ { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [THESEAM_BASE_LAYOUT_REF,] }] }
1918
+ ]; };
1919
+ SideNavComponent.propDecorators = {
1920
+ _sideNavExpand: [{ type: i0.HostBinding, args: ['@sideNavAnim',] }],
1921
+ hasHeaderToggle: [{ type: i0.Input }],
1922
+ items: [{ type: i0.Input }],
1923
+ expanded: [{ type: i0.Input }],
1924
+ overlay: [{ type: i0.Input }]
1925
+ };
1926
+ __decorate([
1927
+ core.InputBoolean()
1928
+ ], SideNavComponent.prototype, "hasHeaderToggle", void 0);
1929
+
1930
+ var EXPANDED_STATE = 'expanded';
1931
+ var COLLAPSED_STATE = 'collapsed';
1932
+ var FULL_STATE = 'full';
1933
+ var COMPACT_STATE = 'compact';
1934
+ var SideNavItemComponent = /** @class */ (function () {
1935
+ function SideNavItemComponent(_sideNav, _parent) {
1936
+ this._sideNav = _sideNav;
1937
+ this._parent = _parent;
1938
+ this._ngUnsubscribe = new rxjs.Subject();
1939
+ this.faAngleLeft = freeSolidSvgIcons.faAngleLeft;
1940
+ this.active = false;
1941
+ this._link = new rxjs.BehaviorSubject(undefined);
1942
+ this.link$ = this._link.asObservable();
1943
+ this.hierLevel = 0;
1944
+ this.indentSize = 10;
1945
+ this._expanded = new rxjs.BehaviorSubject(false);
1946
+ this.expanded$ = this._expanded.asObservable();
1947
+ this._compact = new rxjs.BehaviorSubject(false);
1948
+ this.compact$ = this._compact.asObservable();
1949
+ this.badgeTheme = 'danger';
1950
+ this.childGroupAnimState$ = this.expanded$
1951
+ .pipe(operators.map(function (expanded) { return expanded ? EXPANDED_STATE : COLLAPSED_STATE; }));
1952
+ this.compactAnimState$ = this.compact$
1953
+ .pipe(operators.map(function (compact) { return compact ? COMPACT_STATE : FULL_STATE; }));
1954
+ }
1955
+ Object.defineProperty(SideNavItemComponent.prototype, "link", {
1956
+ get: function () { return this._link.value; },
1957
+ set: function (value) { this._link.next(value); },
1958
+ enumerable: false,
1959
+ configurable: true
1960
+ });
1961
+ Object.defineProperty(SideNavItemComponent.prototype, "expanded", {
1962
+ get: function () { return this._expanded.value; },
1963
+ set: function (value) { this._expanded.next(coercion.coerceBooleanProperty(value)); },
1964
+ enumerable: false,
1965
+ configurable: true
1966
+ });
1967
+ Object.defineProperty(SideNavItemComponent.prototype, "compact", {
1968
+ get: function () { return this._compact.value; },
1969
+ set: function (value) { this._compact.next(coercion.coerceBooleanProperty(value)); },
1970
+ enumerable: false,
1971
+ configurable: true
1972
+ });
1973
+ Object.defineProperty(SideNavItemComponent.prototype, "badgeTooltip", {
1974
+ get: function () { return this._badgeTooltip; },
1975
+ set: function (value) {
1976
+ if (value !== null && value !== undefined) {
1977
+ if (typeof value === 'string') {
1978
+ this._badgeTooltip = {
1979
+ tooltip: value,
1980
+ placement: 'auto',
1981
+ disabled: false
1982
+ };
1983
+ }
1984
+ else {
1985
+ this._badgeTooltip = Object.assign(Object.assign({}, value), { placement: value.placement || 'auto', disabled: typeof (value === null || value === void 0 ? void 0 : value.disabled) === 'boolean'
1986
+ ? value.disabled
1987
+ : typeof value.tooltip === 'string' ? false : true });
1988
+ }
1989
+ }
1990
+ else {
1991
+ this._badgeTooltip = undefined;
1992
+ }
1993
+ },
1994
+ enumerable: false,
1995
+ configurable: true
1996
+ });
1997
+ Object.defineProperty(SideNavItemComponent.prototype, "_isActiveCssClass", {
1998
+ get: function () { return this.active; },
1999
+ enumerable: false,
2000
+ configurable: true
2001
+ });
2002
+ Object.defineProperty(SideNavItemComponent.prototype, "_attrDataHierLevel", {
2003
+ get: function () { return this.hierLevel; },
2004
+ enumerable: false,
2005
+ configurable: true
2006
+ });
2007
+ SideNavItemComponent.prototype.ngOnDestroy = function () {
2008
+ this._ngUnsubscribe.next();
2009
+ this._ngUnsubscribe.complete();
2010
+ };
2011
+ Object.defineProperty(SideNavItemComponent.prototype, "hasChildren", {
2012
+ get: function () {
2013
+ return Array.isArray(this.children) && this.children.length > 0;
2014
+ },
2015
+ enumerable: false,
2016
+ configurable: true
2017
+ });
2018
+ SideNavItemComponent.prototype.toggleChildren = function () {
2019
+ this.expanded = !this.expanded;
2020
+ };
2021
+ SideNavItemComponent.prototype._linkClicked = function () {
2022
+ // Close nav when link is clicked while in overlay state
2023
+ if (this._sideNav.overlay) {
2024
+ this._sideNav.collapse();
2025
+ }
2026
+ };
2027
+ return SideNavItemComponent;
2028
+ }());
2029
+ SideNavItemComponent.decorators = [
2030
+ { type: i0.Component, args: [{
2031
+ selector: 'seam-side-nav-item',
2032
+ template: "<div class=\"d-flex flex-row\">\n <ng-container *ngIf=\"itemType === 'basic'\">\n <ng-template [ngTemplateOutlet]=\"itemTypeBasic\"></ng-template>\n </ng-container>\n <ng-container *ngIf=\"itemType === 'link'\">\n <ng-template [ngTemplateOutlet]=\"itemTypeLink\"></ng-template>\n </ng-container>\n <ng-container *ngIf=\"itemType === 'divider'\">\n <ng-template [ngTemplateOutlet]=\"itemTypeDivider\"></ng-template>\n </ng-container>\n <ng-container *ngIf=\"itemType === 'title'\">\n <ng-template [ngTemplateOutlet]=\"itemTypeTitle\"></ng-template>\n </ng-container>\n</div>\n\n<ng-container *ngIf=\"hasChildren\">\n <div class=\"side-nav--group side-nav--group--level-{{ hierLevel + 1 }}\"\n [@childGroupAnim]=\"childGroupAnimState$ | async\">\n <seam-side-nav-item *ngFor=\"let child of children\"\n [hierLevel]=\"compact ? 0 : (hierLevel + 1)\"\n [compact]=\"compact\"\n [itemType]=\"$any(child).itemType\"\n [icon]=\"$any(child).icon\"\n [label]=\"$any(child).label\"\n [link]=\"$any(child).link\"\n [badgeText]=\"$any(child).badge?.text\"\n [badgeTheme]=\"$any(child).badge?.theme || 'danger'\"\n [badgeSrContent]=\"$any(child).badge?.srContent\"\n [queryParams]=\"$any(child).queryParams\"\n routerLinkActive=\"active\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n [children]=\"$any(child)?.children\"\n [active]=\"$any(child).__state.active\"\n [expanded]=\"$any(child).__state.expanded\">\n </seam-side-nav-item>\n </div>\n</ng-container>\n\n<ng-template #itemTypeBasic>\n <button class=\"side-nav-item btn side-nav-btn p-0 d-flex flex-row rounded-0 text-decoration-none text-nowrap w-100\"\n cdkMonitorElementFocus\n (click)=\"toggleChildren()\"\n [attr.aria-expanded]=\"expanded\">\n <div class=\"nav-link d-flex flex-row w-100\" [class.pr-0]=\"compact\">\n <div [style.padding-left.px]=\"hierLevel * indentSize\"></div>\n <div class=\"side-nav-item--icon\">\n <seam-icon *ngIf=\"icon\" [icon]=\"icon\"></seam-icon>\n <ng-container *ngIf=\"compact\">\n <ng-template [ngTemplateOutlet]=\"itemBadge\"></ng-template>\n </ng-container>\n </div>\n <!-- NOTE: This is temporarily formatted oddly while fixing animation. -->\n <span style=\"margin-left: 11px;\" [@compactAnim]=\"compactAnimState$ | async\">\n <span *ngIf=\"!compact\" side-nav-item-label>\n {{ label }}\n </span>\n </span>\n <span *ngIf=\"compact\" class=\"sr-only\" side-nav-item-label>{{ label }}</span>\n <ng-container *ngIf=\"!compact\">\n <ng-template [ngTemplateOutlet]=\"itemBadge\"></ng-template>\n </ng-container>\n </div>\n\n <div *ngIf=\"hasChildren && !compact\"\n class=\"btn side-nav-btn side-nav-item--toggle-btn-container rounded-0\">\n <seam-icon\n class=\"side-nav-item--toggle-btn\"\n [class.side-nav-item--toggle-btn-expanded]=\"expanded\"\n [icon]=\"faAngleLeft\"\n type>\n </seam-icon>\n </div>\n </button>\n</ng-template>\n\n<ng-template #itemTypeLink>\n <a *ngIf=\"link; else noLink\" class=\"side-nav-item nav-link d-flex flex-row text-nowrap w-100 align-items-center\"\n [class.pr-0]=\"compact\"\n [routerLink]=\"link\"\n [queryParams]=\"queryParams\"\n routerLinkActive=\"active\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n (click)=\"_linkClicked()\">\n <div [style.padding-left.px]=\"hierLevel * indentSize\"></div>\n <div class=\"side-nav-item--icon\">\n <seam-icon *ngIf=\"icon\" [icon]=\"icon\"></seam-icon>\n <ng-container *ngIf=\"compact\">\n <ng-template [ngTemplateOutlet]=\"itemBadge\"></ng-template>\n </ng-container>\n </div>\n <span *ngIf=\"!compact\" style=\"margin-left: 11px;\" side-nav-item-label>\n {{ label }}\n </span>\n <span *ngIf=\"compact\" class=\"sr-only\" side-nav-item-label>{{ label }}</span>\n <ng-container *ngIf=\"!compact\">\n <ng-template [ngTemplateOutlet]=\"itemBadge\"></ng-template>\n </ng-container>\n </a>\n\n <ng-template #noLink>\n <a class=\"side-nav-item nav-link d-flex flex-row text-nowrap w-100 align-items-center\" [class.pr-0]=\"compact\">\n <div [style.padding-left.px]=\"hierLevel * indentSize\"></div>\n <div class=\"side-nav-item--icon\">\n <seam-icon *ngIf=\"icon\" [icon]=\"icon\"></seam-icon>\n </div>\n <span *ngIf=\"!compact\" style=\"margin-left: 11px;\" side-nav-item-label>\n {{ label }}\n </span>\n <span *ngIf=\"compact\" class=\"sr-only\" side-nav-item-label>{{ label }}</span>\n </a>\n </ng-template>\n\n <button *ngIf=\"hasChildren && !compact\"\n type=\"button\"\n class=\"btn side-nav-btn side-nav-item--toggle-btn-container rounded-0\"\n (click)=\"toggleChildren()\"\n [attr.aria-expanded]=\"expanded\"\n cdkMonitorElementFocus>\n <seam-icon\n class=\"side-nav-item--toggle-btn\"\n [class.side-nav-item--toggle-btn-expanded]=\"expanded\"\n [icon]=\"faAngleLeft\"\n type>\n </seam-icon>\n <span class=\"sr-only\">Group Toggle</span>\n </button>\n</ng-template>\n\n<ng-template #itemTypeDivider>\n <div class=\"px-2 w-100\">\n <hr class=\"side-nav-item--divider\" />\n </div>\n</ng-template>\n\n<ng-template #itemTypeTitle>\n <ng-container *ngIf=\"!compact\">\n <span class=\"side-nav-item--title pt-1\" side-nav-item-label>{{ label }}</span>\n </ng-container>\n</ng-template>\n\n<ng-template #itemBadge>\n <div *ngIf=\"badgeText\"\n class=\"side-nav-item--badge\"\n [class.side-nav-item--badge-no-icon]=\"!icon\"\n [ngbTooltip]=\"$any(badgeTooltip)?.tooltip\"\n [tooltipClass]=\"$any(badgeTooltip)?.class\"\n [placement]=\"$any(badgeTooltip)?.placement\"\n [container]=\"$any(badgeTooltip)?.container\"\n [disableTooltip]=\"!badgeTooltip || !!$any(badgeTooltip)?.disabled\">\n <span class=\"badge badge-pill badge-{{ badgeTheme }}\">\n {{ badgeText }}\n <span *ngIf=\"badgeSrContent\">{{ badgeSrContent }}</span>\n </span>\n </div>\n</ng-template>\n",
2033
+ exportAs: 'seamSideNavItem',
2034
+ animations: [
2035
+ animations.trigger('childGroupAnim', [
2036
+ animations.state(EXPANDED_STATE, animations.style({ height: '*' })),
2037
+ animations.state(COLLAPSED_STATE, animations.style({ height: 0, 'overflow-y': 'hidden', visibility: 'hidden' })),
2038
+ animations.transition(EXPANDED_STATE + " <=> " + COLLAPSED_STATE, animations.animate('0.2s ease-in-out')),
2039
+ ]),
2040
+ animations.trigger('compactAnim', [
2041
+ // transition('* <=> *', [
2042
+ // query(':enter', [
2043
+ // style({ opacity: '0' }),
2044
+ // animate('5.2s ease-in-out', style({ opacity: '1' }))
2045
+ // ], { optional: true }),
2046
+ // query(':leave', [
2047
+ // style({ opacity: '1' }),
2048
+ // animate('5.2s ease-in-out', style({ opacity: '0' }))
2049
+ // ], { optional: true })
2050
+ // ])
2051
+ // state(FULL_STATE, style({ opacity: '1' })),
2052
+ // state(COMPACT_STATE, style({ opacity: '0' })),
2053
+ // transition(`${FULL_STATE} <=> ${COMPACT_STATE}`, animate('5.2s ease-in-out')),
2054
+ // transition(`${FULL_STATE} <=> ${COMPACT_STATE}`, [
2055
+ // transition('* <=> *', [
2056
+ // query(':leave', [
2057
+ // style({ opacity: '1' }),
2058
+ // animate('5.2s ease-in-out', style({ opacity: '0' }))
2059
+ // ], { optional: true })
2060
+ // ]),
2061
+ ])
2062
+ ],
2063
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2064
+ encapsulation: i0.ViewEncapsulation.None,
2065
+ styles: ["seam-side-nav-item{display:block;transition:background-color .25s ease-in-out}seam-side-nav-item.seam-side-nav-item--active,seam-side-nav-item.seam-side-nav-item--active .active,seam-side-nav-item.seam-side-nav-item--active:active{background-color:#2a6395}seam-side-nav-item.seam-side-nav-item--active .side-nav-item:hover{background-color:#2f71a9}seam-side-nav-item.seam-side-nav-item--active .nav-link{color:#fff}seam-side-nav-item:not(.side-nav-item--icon) .side-nav-item--badge{top:-10px;position:relative;margin-left:5px}seam-side-nav-item .side-nav-item--icon{width:24px;max-width:24px;min-width:24px;height:24px;max-height:24px;min-height:24px;text-align:center}seam-side-nav-item .side-nav-item--icon .side-nav-item--badge{top:-35px;right:-12px;position:relative}seam-side-nav-item .side-nav-item--icon .side-nav-item--badge.side-nav-item--badge-no-icon{top:-13px}seam-side-nav-item .side-nav-item{min-height:45px;transition:background-color .25s ease-in-out}seam-side-nav-item .side-nav-item:hover{background-color:#2f71a9}seam-side-nav-item .side-nav-item.active{pointer-events:none;cursor:default}seam-side-nav-item a.side-nav-item:not([href]):not([tabindex]){color:#ccc}seam-side-nav-item a.side-nav-item:not([href]):not([tabindex]):hover{background-color:transparent}seam-side-nav-item .nav-link{color:#fff}seam-side-nav-item .side-nav-btn{font-weight:400;color:#fff;text-decoration:none}seam-side-nav-item .side-nav-btn:hover{color:#2f71a9;text-decoration:underline}seam-side-nav-item .side-nav-btn.focus,seam-side-nav-item .side-nav-btn:focus{text-decoration:underline;box-shadow:none}seam-side-nav-item .side-nav-btn.disabled,seam-side-nav-item .side-nav-btn:disabled{color:#ccc;pointer-events:none}seam-side-nav-item .cdk-keyboard-focused{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}seam-side-nav-item .side-nav-item--toggle-btn-container{transition:background-color .25s ease-in-out;padding:.5rem 1rem}seam-side-nav-item button.side-nav-item--toggle-btn-container:hover{background-color:#2f71a9}seam-side-nav-item .side-nav-item--toggle-btn{color:#fff}seam-side-nav-item .side-nav-item--toggle-btn .svg-inline--fa{transition:transform .1s ease-in-out}seam-side-nav-item .side-nav-item--toggle-btn.side-nav-item--toggle-btn-expanded .svg-inline--fa{transform:rotate(-90deg)}seam-side-nav-item .side-nav--group{will-change:height;overflow:hidden}seam-side-nav-item .side-nav--group--level-1{background-color:#3276b1}seam-side-nav-item .side-nav--group--level-2{background-color:#2e6ea5}seam-side-nav-item .side-nav--group--level-3{background-color:#2b6699}seam-side-nav-item .side-nav--group--level-4{background-color:#285e8d}seam-side-nav-item .side-nav--group--level-5{background-color:#245681}seam-side-nav-item .side-nav--group--level-6{background-color:#214e75}seam-side-nav-item .side-nav--group--level-7{background-color:#1e4669}seam-side-nav-item .side-nav--group--level-8{background-color:#1a3e5d}seam-side-nav-item .side-nav--group--level-9{background-color:#173651}seam-side-nav-item .side-nav-item--divider{display:block;border-top:1px solid #2a6395;width:100%}seam-side-nav-item .side-nav-item--title{color:#fff;font-size:24px;padding-left:10px}"]
2066
+ },] }
2067
+ ];
2068
+ SideNavItemComponent.ctorParameters = function () { return [
2069
+ { type: SideNavComponent },
2070
+ { type: SideNavItemComponent, decorators: [{ type: i0.Optional }, { type: i0.SkipSelf }, { type: i0.Host }] }
2071
+ ]; };
2072
+ SideNavItemComponent.propDecorators = {
2073
+ itemType: [{ type: i0.Input }],
2074
+ icon: [{ type: i0.Input }],
2075
+ label: [{ type: i0.Input }],
2076
+ active: [{ type: i0.Input }],
2077
+ link: [{ type: i0.Input }],
2078
+ queryParams: [{ type: i0.Input }],
2079
+ children: [{ type: i0.Input }],
2080
+ hierLevel: [{ type: i0.Input }],
2081
+ indentSize: [{ type: i0.Input }],
2082
+ expanded: [{ type: i0.Input }],
2083
+ compact: [{ type: i0.Input }],
2084
+ badgeText: [{ type: i0.Input }],
2085
+ badgeTheme: [{ type: i0.Input }],
2086
+ badgeSrContent: [{ type: i0.Input }],
2087
+ badgeTooltip: [{ type: i0.Input }],
2088
+ _isActiveCssClass: [{ type: i0.HostBinding, args: ['class.seam-side-nav-item--active',] }],
2089
+ _attrDataHierLevel: [{ type: i0.HostBinding, args: ['attr.data-hier-level',] }]
2090
+ };
2091
+ __decorate([
2092
+ core.InputBoolean()
2093
+ ], SideNavItemComponent.prototype, "active", void 0);
2094
+ __decorate([
2095
+ core.InputNumber(0)
2096
+ ], SideNavItemComponent.prototype, "hierLevel", void 0);
2097
+ __decorate([
2098
+ core.InputNumber(10)
2099
+ ], SideNavItemComponent.prototype, "indentSize", void 0);
2100
+
2101
+ var SideNavToggleComponent = /** @class */ (function () {
2102
+ function SideNavToggleComponent() {
2103
+ this.faBars = freeSolidSvgIcons.faBars;
2104
+ this.expanded = false;
2105
+ this.toggleExpand = new i0.EventEmitter();
2106
+ }
2107
+ SideNavToggleComponent.prototype.ngOnInit = function () { };
2108
+ SideNavToggleComponent.prototype.toggle = function () {
2109
+ this.toggleExpand.emit();
2110
+ };
2111
+ return SideNavToggleComponent;
2112
+ }());
2113
+ SideNavToggleComponent.decorators = [
2114
+ { type: i0.Component, args: [{
2115
+ selector: 'seam-side-nav-toggle',
2116
+ template: "<div class=\"side-nav-toggle--content\" *ngIf=\"expanded\">\n <ng-content></ng-content>\n</div>\n<button seamIconBtn [icon]=\"faBars\"\n iconType=\"borderless-styled-square\"\n btnSize=\"sm\"\n class=\"side-nav-toggle--btn ml-1\"\n (click)=\"toggle()\">\n <span class=\"sr-only\">Toggle sidebar</span>\n</button>\n",
2117
+ host: {
2118
+ '[class.side-nav-toggle--compact]': '!expanded'
2119
+ },
2120
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2121
+ encapsulation: i0.ViewEncapsulation.None,
2122
+ styles: ["seam-side-nav-toggle{display:flex;flex-direction:row;flex-shrink:0;position:relative;height:45px;width:100%}seam-side-nav-toggle .side-nav-toggle--content{flex:1 1 0}seam-side-nav-toggle .side-nav-toggle--btn{position:absolute;top:0;right:5px;color:#fff}seam-side-nav-toggle .side-nav-toggle--btn seam-icon{padding:5px}"]
2123
+ },] }
2124
+ ];
2125
+ SideNavToggleComponent.ctorParameters = function () { return []; };
2126
+ SideNavToggleComponent.propDecorators = {
2127
+ expanded: [{ type: i0.Input }],
2128
+ toggleExpand: [{ type: i0.Output }]
2129
+ };
2130
+ __decorate([
2131
+ core.InputBoolean()
2132
+ ], SideNavToggleComponent.prototype, "expanded", void 0);
2133
+
2134
+ var TheSeamSideNavModule = /** @class */ (function () {
2135
+ function TheSeamSideNavModule() {
2136
+ }
2137
+ return TheSeamSideNavModule;
2138
+ }());
2139
+ TheSeamSideNavModule.decorators = [
2140
+ { type: i0.NgModule, args: [{
2141
+ declarations: [
2142
+ SideNavItemComponent,
2143
+ SideNavComponent,
2144
+ SideNavToggleComponent
2145
+ ],
2146
+ imports: [
2147
+ common.CommonModule,
2148
+ router.RouterModule,
2149
+ icon.TheSeamIconModule,
2150
+ a11y.A11yModule,
2151
+ scrollbar.TheSeamScrollbarModule,
2152
+ layout.TheSeamLayoutModule,
2153
+ ngBootstrap.NgbTooltipModule
2154
+ ],
2155
+ exports: [
2156
+ SideNavItemComponent,
2157
+ SideNavComponent,
2158
+ SideNavToggleComponent
2159
+ ]
2160
+ },] }
2161
+ ];
2162
+
2163
+ var TopBarMenuButtonBase = /** @class */ (function () {
2164
+ function TopBarMenuButtonBase() {
2165
+ }
2166
+ return TopBarMenuButtonBase;
2167
+ }());
2168
+ var _TopBarMenuButtonMixinBase = core.mixinDisabled(TopBarMenuButtonBase);
2169
+ var TopBarMenuButtonComponent = /** @class */ (function (_super) {
2170
+ __extends(TopBarMenuButtonComponent, _super);
2171
+ function TopBarMenuButtonComponent() {
2172
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
2173
+ _this.faAngleDown = freeSolidSvgIcons.faAngleDown;
2174
+ _this.profileIcon = freeRegularSvgIcons.faUserCircle;
2175
+ _this.compact = false;
2176
+ return _this;
2177
+ }
2178
+ Object.defineProperty(TopBarMenuButtonComponent.prototype, "_hasCompactClass", {
2179
+ get: function () { return this.compact; },
2180
+ enumerable: false,
2181
+ configurable: true
2182
+ });
2183
+ Object.defineProperty(TopBarMenuButtonComponent.prototype, "_hasPadding0Class", {
2184
+ get: function () { return this.compact; },
2185
+ enumerable: false,
2186
+ configurable: true
2187
+ });
2188
+ Object.defineProperty(TopBarMenuButtonComponent.prototype, "_hasRoundedClass", {
2189
+ get: function () { return this.compact; },
2190
+ enumerable: false,
2191
+ configurable: true
2192
+ });
2193
+ Object.defineProperty(TopBarMenuButtonComponent.prototype, "_hasBtnLinkClass", {
2194
+ get: function () { return !this.compact; },
2195
+ enumerable: false,
2196
+ configurable: true
2197
+ });
2198
+ TopBarMenuButtonComponent.prototype.ngOnInit = function () { };
2199
+ TopBarMenuButtonComponent.prototype.ngOnDestroy = function () { };
2200
+ return TopBarMenuButtonComponent;
2201
+ }(_TopBarMenuButtonMixinBase));
2202
+ TopBarMenuButtonComponent.decorators = [
2203
+ { type: i0.Component, args: [{
2204
+ // tslint:disable-next-line:component-selector
2205
+ selector: 'button[seamTopBarMenuButton]',
2206
+ template: "<div class=\"d-flex flex-row\" *ngIf=\"!compact; else compactTpl\">\n <div class=\"text-left flex-grow-1 text-truncate\">\n <ng-template [ngTemplateOutlet]=\"$any(detailTpl)\"></ng-template>\n </div>\n <!-- Arrow Button -->\n <div class=\"pl-2 d-flex flex-column\">\n <div class=\"flex-grow-1\"></div>\n <seam-icon class=\"d-block\" [icon]=\"faAngleDown\"></seam-icon>\n <div class=\"flex-grow-1\"></div>\n </div>\n</div>\n<ng-template #compactTpl>\n <seam-icon [icon]=\"profileIcon\" iconType=\"borderless-styled-square\"></seam-icon>\n</ng-template>\n",
2207
+ exportAs: 'seamButton',
2208
+ // tslint:disable-next-line:use-input-property-decorator
2209
+ inputs: ['disabled'],
2210
+ // tslint:disable-next-line:use-host-property-decorator
2211
+ host: {
2212
+ 'attr.type': 'button',
2213
+ 'class': 'btn border text-decoration-none py-0',
2214
+ '[attr.aria-disabled]': 'disabled.toString()',
2215
+ '[attr.disabled]': 'disabled || null',
2216
+ },
2217
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2218
+ styles: [":host{min-width:200px;border-radius:0;border-top:0!important;border-bottom:0!important;border-right:0!important}:host.top-bar-menu-button--compact{min-width:40px;border-left:0!important}"]
2219
+ },] }
2220
+ ];
2221
+ TopBarMenuButtonComponent.propDecorators = {
2222
+ detailTpl: [{ type: i0.Input }],
2223
+ compact: [{ type: i0.Input }],
2224
+ _hasCompactClass: [{ type: i0.HostBinding, args: ['class.top-bar-menu-button--compact',] }],
2225
+ _hasPadding0Class: [{ type: i0.HostBinding, args: ['class.p-0',] }],
2226
+ _hasRoundedClass: [{ type: i0.HostBinding, args: ['class.rounded',] }],
2227
+ _hasBtnLinkClass: [{ type: i0.HostBinding, args: ['class.btn-link',] }]
2228
+ };
2229
+ __decorate([
2230
+ core.InputBoolean()
2231
+ ], TopBarMenuButtonComponent.prototype, "compact", void 0);
2232
+
2233
+ var TopBarTitleComponent = /** @class */ (function () {
2234
+ function TopBarTitleComponent() {
2235
+ }
2236
+ TopBarTitleComponent.prototype.ngOnInit = function () { };
2237
+ return TopBarTitleComponent;
2238
+ }());
2239
+ TopBarTitleComponent.decorators = [
2240
+ { type: i0.Component, args: [{
2241
+ selector: 'seam-top-bar-title',
2242
+ template: "<h2 class=\"mb-0\" [ngStyle]=\"{ 'font-size.px': 32 }\" [ngStyle.lt-md]=\"{ 'font-size.px': 26 }\" [ngStyle.lt-sm]=\"{ 'font-size.px': 20, 'line-height': 1 }\">\n {{ titleText }}\n <br fxHide.gt-sm>\n <small *ngIf=\"subTitleText\" class=\"text-muted\">{{ subTitleText }}</small>\n</h2>\n",
2243
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2244
+ styles: [":host{flex:1 1 auto;display:flex;flex-direction:row;align-items:center}"]
2245
+ },] }
2246
+ ];
2247
+ TopBarTitleComponent.ctorParameters = function () { return []; };
2248
+ TopBarTitleComponent.propDecorators = {
2249
+ titleText: [{ type: i0.Input }],
2250
+ subTitleText: [{ type: i0.Input }]
2251
+ };
2252
+
2253
+ var TopBarItemDirective = /** @class */ (function () {
2254
+ function TopBarItemDirective(template) {
2255
+ this.template = template;
2256
+ }
2257
+ return TopBarItemDirective;
2258
+ }());
2259
+ TopBarItemDirective.decorators = [
2260
+ { type: i0.Directive, args: [{
2261
+ selector: '[seamTopBarItem]'
2262
+ },] }
2263
+ ];
2264
+ TopBarItemDirective.ctorParameters = function () { return [
2265
+ { type: i0.TemplateRef }
2266
+ ]; };
2267
+
2268
+ var TopBarMenuBtnDetailDirective = /** @class */ (function () {
2269
+ function TopBarMenuBtnDetailDirective(template) {
2270
+ this.template = template;
2271
+ }
2272
+ return TopBarMenuBtnDetailDirective;
2273
+ }());
2274
+ TopBarMenuBtnDetailDirective.decorators = [
2275
+ { type: i0.Directive, args: [{
2276
+ selector: '[seamTopBarMenuBtnDetail]'
2277
+ },] }
2278
+ ];
2279
+ TopBarMenuBtnDetailDirective.ctorParameters = function () { return [
2280
+ { type: i0.TemplateRef }
2281
+ ]; };
2282
+
2283
+ var TopBarMenuDirective = /** @class */ (function () {
2284
+ function TopBarMenuDirective(menu) {
2285
+ this.menu = menu;
2286
+ }
2287
+ return TopBarMenuDirective;
2288
+ }());
2289
+ TopBarMenuDirective.decorators = [
2290
+ { type: i0.Directive, args: [{
2291
+ selector: 'seam-menu[seamTopBarMenu]'
2292
+ },] }
2293
+ ];
2294
+ TopBarMenuDirective.ctorParameters = function () { return [
2295
+ { type: menu.MenuComponent, decorators: [{ type: i0.Self }] }
2296
+ ]; };
2297
+
2298
+ /**
2299
+ * Top bar of an app.
2300
+ *
2301
+ * The top bar is fairly opinionated, so most parts are not intended to be
2302
+ * customized unless there is an input.
2303
+ *
2304
+ * > If you have to make a change and apply it externally with a css class or js
2305
+ * > make sure there is an issue to get the feature changed, so we don't have
2306
+ * > different modifications across our apps. Also, this will help make sure
2307
+ * > your change should have even been done.
2308
+ */
2309
+ var TheSeamTopBarComponent = /** @class */ (function () {
2310
+ function TheSeamTopBarComponent(_layout) {
2311
+ this._layout = _layout;
2312
+ /** @ignore */
2313
+ this._ngUnsubscribe = new rxjs.Subject();
2314
+ /** @ignore */
2315
+ this.faBars = freeSolidSvgIcons.faBars;
2316
+ /** Link target used when `logoHref` is specified. Defaults to `"_blank"` */
2317
+ this.logoHrefTarget = '_blank';
2318
+ /** Route to link to when `logo` is clicked. Defaults to `/`. */
2319
+ this.logoRoute = '/';
2320
+ /** Determines if the title should be displayed. */
2321
+ this.hasTitle = false;
2322
+ this.isMobile$ = this._layout.isMobile$;
2323
+ }
2324
+ /** @ignore */
2325
+ TheSeamTopBarComponent.prototype.ngOnInit = function () { };
2326
+ /** @ignore */
2327
+ TheSeamTopBarComponent.prototype.ngOnDestroy = function () {
2328
+ this._ngUnsubscribe.next();
2329
+ this._ngUnsubscribe.complete();
2330
+ };
2331
+ /** @ignore */
2332
+ TheSeamTopBarComponent.prototype.ngAfterContentInit = function () {
2333
+ var _this = this;
2334
+ if (this._topBarItems) {
2335
+ this._items$ = this._topBarItems.changes.pipe(operators.startWith(undefined), operators.takeUntil(this._ngUnsubscribe), operators.map(function () { var _a; return ((_a = _this._topBarItems) === null || _a === void 0 ? void 0 : _a.toArray()) || []; }), operators.shareReplay({ bufferSize: 1, refCount: true }));
2336
+ }
2337
+ };
2338
+ return TheSeamTopBarComponent;
2339
+ }());
2340
+ TheSeamTopBarComponent.decorators = [
2341
+ { type: i0.Component, args: [{
2342
+ selector: 'seam-top-bar',
2343
+ template: "<!-- Nav Toggle -->\n<div class=\"d-flex flex-column justify-content-center pr-2\" *ngIf=\"isMobile$ | async\">\n <button seamBaseLayoutNavToggle seamIconBtn [icon]=\"faBars\" iconType=\"borderless-styled-square\"></button>\n</div>\n\n<!-- Logo -->\n<div class=\"top-bar--logo d-flex flex-column justify-content-center\" *ngIf=\"logoHref; else useLogoRoute\"\n [class.top-bar--logo-mobile]=\"isMobile$ | async\">\n <a [href]=\"logoHref\" [target]=\"logoHrefTarget\">\n <div>\n <img [src]=\"logo\" [src.lt-md]=\"hasTitle ? logoSm : logo\" alt=\"Logo\">\n </div>\n </a>\n</div>\n\n<ng-template #useLogoRoute>\n <div class=\"top-bar--logo d-flex flex-column justify-content-center\" [routerLink]=\"logoRoute\"\n [class.top-bar--logo-mobile]=\"isMobile$ | async\">\n <div>\n <img [src]=\"logo\" [src.lt-md]=\"hasTitle ? logoSm : logo\" alt=\"Logo\">\n </div>\n </div>\n</ng-template>\n\n<!-- Title -->\n<div class=\"d-flex flex-column flex-grow-1\">\n <seam-top-bar-title *ngIf=\"hasTitle\"\n [titleText]=\"titleText\"\n [subTitleText]=\"subTitleText\"\n [class.ml-2]=\"isMobile$ | async\">\n </seam-top-bar-title>\n</div>\n\n<!-- Items -->\n<div class=\"top-bar-icon-container mr-2\">\n <ng-container *ngFor=\"let item of _items$ | async\">\n <ng-template [ngTemplateOutlet]=\"item.template\"></ng-template>\n </ng-container>\n</div>\n\n<!-- Menu -->\n<button seamTopBarMenuButton\n [seamMenuToggle]=\"_topBarMenu?.menu\"\n [detailTpl]=\"_topBarMenuBtnDetailTpl?.template\"\n [compact]=\"isMobile$ | async\">\n</button>\n",
2344
+ exportAs: 'seamTopBar',
2345
+ host: {
2346
+ 'class': 'bg-white'
2347
+ },
2348
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2349
+ styles: [":host{flex:1 1 100%;display:flex;flex-direction:row;padding:8px}.top-bar--logo{flex:0 0 auto;overflow:hidden;cursor:pointer}.top-bar--logo img{max-height:60px;max-width:200px}.top-bar--logo.top-bar--logo-mobile{max-height:40px;max-width:150px}.top-bar--logo.top-bar--logo-mobile>div{max-height:100%;max-width:100%}.top-bar--logo.top-bar--logo-mobile>div img{max-height:40px;max-width:100%}.top-bar-icon-container{margin:auto 0}"]
2350
+ },] }
2351
+ ];
2352
+ TheSeamTopBarComponent.ctorParameters = function () { return [
2353
+ { type: layout.TheSeamLayoutService }
2354
+ ]; };
2355
+ TheSeamTopBarComponent.propDecorators = {
2356
+ _topBarMenu: [{ type: i0.ContentChild, args: [TopBarMenuDirective, { static: true },] }],
2357
+ _topBarItems: [{ type: i0.ContentChildren, args: [TopBarItemDirective,] }],
2358
+ _topBarMenuBtnDetailTpl: [{ type: i0.ContentChild, args: [TopBarMenuBtnDetailDirective,] }],
2359
+ logo: [{ type: i0.Input }],
2360
+ logoSm: [{ type: i0.Input }],
2361
+ logoHref: [{ type: i0.Input }],
2362
+ logoHrefTarget: [{ type: i0.Input }],
2363
+ logoRoute: [{ type: i0.Input }],
2364
+ hasTitle: [{ type: i0.Input }],
2365
+ titleText: [{ type: i0.Input }],
2366
+ subTitleText: [{ type: i0.Input }]
2367
+ };
2368
+ __decorate([
2369
+ core.InputBoolean()
2370
+ ], TheSeamTopBarComponent.prototype, "hasTitle", void 0);
2371
+
2372
+ var TheSeamTopBarModule = /** @class */ (function () {
2373
+ function TheSeamTopBarModule() {
2374
+ }
2375
+ return TheSeamTopBarModule;
2376
+ }());
2377
+ TheSeamTopBarModule.decorators = [
2378
+ { type: i0.NgModule, args: [{
2379
+ declarations: [
2380
+ TheSeamTopBarComponent,
2381
+ TopBarTitleComponent,
2382
+ TopBarMenuButtonComponent,
2383
+ TopBarMenuDirective,
2384
+ TopBarItemDirective,
2385
+ TopBarMenuBtnDetailDirective
2386
+ ],
2387
+ imports: [
2388
+ common.CommonModule,
2389
+ layout.TheSeamLayoutModule,
2390
+ buttons.TheSeamButtonsModule,
2391
+ icon.TheSeamIconModule,
2392
+ menu.TheSeamMenuModule,
2393
+ TheSeamBaseLayoutModule,
2394
+ router.RouterModule
2395
+ ],
2396
+ exports: [
2397
+ TheSeamTopBarComponent,
2398
+ TopBarMenuButtonComponent,
2399
+ TopBarMenuDirective,
2400
+ menu.TheSeamMenuModule,
2401
+ TopBarItemDirective,
2402
+ TopBarMenuBtnDetailDirective
2403
+ ]
2404
+ },] }
2405
+ ];
2406
+
2407
+ var fader = animations.trigger('routeAnimations', [
2408
+ animations.transition('* <=> *', [
2409
+ // Set a default style for enter and leave
2410
+ animations.query(':enter, :leave', [
2411
+ animations.style({
2412
+ position: 'absolute',
2413
+ left: 0,
2414
+ width: '100%',
2415
+ opacity: 0,
2416
+ transform: 'scale(0) translateY(100%)',
2417
+ }),
2418
+ ], { optional: true }),
2419
+ // Animate the new page in
2420
+ animations.query(':enter', [
2421
+ animations.animate('600ms ease', animations.style({ opacity: 1, transform: 'scale(1) translateY(0)' })),
2422
+ ], { optional: true })
2423
+ ]),
2424
+ ]);
2425
+ // function slideTo(direction) {
2426
+ // return [
2427
+ // query(':enter, :leave', [
2428
+ // style({
2429
+ // position: 'absolute',
2430
+ // top: 0,
2431
+ // [direction]: 0,
2432
+ // width: '100%'
2433
+ // })
2434
+ // ], { optional: true }),
2435
+ // query(':enter', [
2436
+ // style({ [direction]: '-100%'})
2437
+ // ], { optional: true }),
2438
+ // group([
2439
+ // query(':leave', [
2440
+ // animate('1000ms ease', style({ [direction]: '100%'}))
2441
+ // ], { optional: true }),
2442
+ // query(':enter', [
2443
+ // animate('1000ms ease', style({ [direction]: '0%'}))
2444
+ // ], { optional: true })
2445
+ // ]),
2446
+ // // Normalize the page style... Might not be necessary
2447
+ // // Required only if you have child animations on the page
2448
+ // query(':leave', animateChild(), { optional: true }),
2449
+ // query(':enter', animateChild(), { optional: true }),
2450
+ // ]
2451
+ // }
2452
+ // TODO: Refactor the slider animation, because AOT or ng-packagr, I haven't
2453
+ // looked into what exactly is preventing it, doesn't allow the function call.
2454
+ // export const slider =
2455
+ // trigger('routeAnimations', [
2456
+ // transition('* => isLeft', slideTo('left') ),
2457
+ // transition('* => isRight', slideTo('right') ),
2458
+ // transition('isRight => *', slideTo('left') ),
2459
+ // transition('isLeft => *', slideTo('right') )
2460
+ // ])
2461
+ // export const contentLeave =
2462
+ // trigger('contentLeave', [
2463
+ // transition(':leave', [
2464
+ // ])
2465
+ // ])
2466
+ var slider = animations.trigger('routeAnimations', [
2467
+ animations.transition('* => isLeft', [
2468
+ animations.query('.router-container :enter, .router-container :leave', [
2469
+ animations.style({
2470
+ position: 'absolute',
2471
+ top: 0,
2472
+ left: 0,
2473
+ width: '100%'
2474
+ })
2475
+ ], { optional: true }),
2476
+ animations.query('.router-container :enter', [
2477
+ animations.style({ left: '-100%' })
2478
+ ], { optional: true }),
2479
+ animations.query('.hierarchy-router-outlet--content', [
2480
+ animations.style({ left: '0%', position: 'absolute' })
2481
+ ], { optional: true }),
2482
+ animations.group([
2483
+ animations.query('.router-container :leave', [
2484
+ animations.animate('1000ms ease', animations.style({ left: '100%' }))
2485
+ ], { optional: true }),
2486
+ animations.query('.router-container :enter', [
2487
+ animations.animate('1000ms ease', animations.style({ left: '0%' }))
2488
+ ], { optional: true }),
2489
+ animations.query('.hierarchy-router-outlet--content', [
2490
+ animations.animate('1000ms ease', animations.style({ left: '-100%' }))
2491
+ ], { optional: true }),
2492
+ ]),
2493
+ // Normalize the page style... Might not be necessary
2494
+ // Required only if you have child animations on the page
2495
+ animations.query('.router-container :leave', animations.animateChild(), { optional: true }),
2496
+ animations.query('.router-container :enter', animations.animateChild(), { optional: true }),
2497
+ ]),
2498
+ animations.transition('* => isRight', [
2499
+ animations.query('.router-container :enter, .router-container :leave', [
2500
+ animations.style({
2501
+ position: 'absolute',
2502
+ top: 0,
2503
+ right: 0,
2504
+ width: '100%'
2505
+ })
2506
+ ], { optional: true }),
2507
+ animations.query('.router-container :enter', [
2508
+ animations.style({ right: '-100%' })
2509
+ ], { optional: true }),
2510
+ animations.query('.hierarchy-router-outlet--content', [
2511
+ animations.style({ left: '0%', position: 'absolute' })
2512
+ ], { optional: true }),
2513
+ animations.group([
2514
+ animations.query('.router-container :leave', [
2515
+ animations.animate('1000ms ease', animations.style({ right: '100%' }))
2516
+ ], { optional: true }),
2517
+ animations.query('.router-container :enter', [
2518
+ animations.animate('1000ms ease', animations.style({ right: '0%' }))
2519
+ ], { optional: true }),
2520
+ animations.query('.hierarchy-router-outlet--content', [
2521
+ animations.animate('1000ms ease', animations.style({ left: '-100%' }))
2522
+ ], { optional: true }),
2523
+ ]),
2524
+ // Normalize the page style... Might not be necessary
2525
+ // Required only if you have child animations on the page
2526
+ animations.query('.router-container :leave', animations.animateChild(), { optional: true }),
2527
+ animations.query('.router-container :enter', animations.animateChild(), { optional: true }),
2528
+ ]),
2529
+ animations.transition('isRight => *', [
2530
+ animations.query('.router-container :enter, .router-container :leave', [
2531
+ animations.style({
2532
+ position: 'absolute',
2533
+ top: 0,
2534
+ left: 0,
2535
+ width: '100%'
2536
+ })
2537
+ ], { optional: true }),
2538
+ animations.query('.router-container :enter', [
2539
+ animations.style({ left: '-100%' })
2540
+ ], { optional: true }),
2541
+ animations.query('.hierarchy-router-outlet--content', [
2542
+ animations.style({ left: '0%', position: 'absolute' })
2543
+ ], { optional: true }),
2544
+ animations.group([
2545
+ animations.query('.router-container :leave', [
2546
+ animations.animate('1000ms ease', animations.style({ left: '100%' }))
2547
+ ], { optional: true }),
2548
+ animations.query('.router-container :enter', [
2549
+ animations.animate('1000ms ease', animations.style({ left: '0%' }))
2550
+ ], { optional: true }),
2551
+ animations.query('.hierarchy-router-outlet--content', [
2552
+ animations.animate('1000ms ease', animations.style({ left: '-100%' }))
2553
+ ], { optional: true }),
2554
+ ]),
2555
+ // Normalize the page style... Might not be necessary
2556
+ // Required only if you have child animations on the page
2557
+ animations.query('.router-container :leave', animations.animateChild(), { optional: true }),
2558
+ animations.query('.router-container :enter', animations.animateChild(), { optional: true }),
2559
+ ]),
2560
+ animations.transition('isLeft => *', [
2561
+ animations.query('.router-container :enter, .router-container :leave', [
2562
+ animations.style({
2563
+ position: 'absolute',
2564
+ top: 0,
2565
+ right: 0,
2566
+ width: '100%'
2567
+ })
2568
+ ], { optional: true }),
2569
+ animations.query('.router-container :enter', [
2570
+ animations.style({ right: '-100%' })
2571
+ ], { optional: true }),
2572
+ animations.group([
2573
+ animations.query('.router-container :leave', [
2574
+ animations.animate('1000ms ease', animations.style({ right: '100%' }))
2575
+ ], { optional: true }),
2576
+ animations.query('.router-container :enter', [
2577
+ animations.animate('1000ms ease', animations.style({ right: '0%' }))
2578
+ ], { optional: true })
2579
+ ]),
2580
+ // Normalize the page style... Might not be necessary
2581
+ // Required only if you have child animations on the page
2582
+ animations.query('.router-container :leave', animations.animateChild(), { optional: true }),
2583
+ animations.query('.router-container :enter', animations.animateChild(), { optional: true }),
2584
+ ])
2585
+ ]);
2586
+ var transformer = animations.trigger('routeAnimations', [
2587
+ animations.transition('* => isLeft', transformTo({ x: -100, y: -100, rotate: -720 })),
2588
+ animations.transition('* => isRight', transformTo({ x: 100, y: -100, rotate: 90 })),
2589
+ animations.transition('isRight => *', transformTo({ x: -100, y: -100, rotate: 360 })),
2590
+ animations.transition('isLeft => *', transformTo({ x: 100, y: -100, rotate: -360 }))
2591
+ ]);
2592
+ function transformTo(_a) {
2593
+ var _b = _a.x, x = _b === void 0 ? 100 : _b, _c = _a.y, y = _c === void 0 ? 0 : _c, _d = _a.rotate, rotate = _d === void 0 ? 0 : _d;
2594
+ var optional = { optional: true };
2595
+ return [
2596
+ animations.query(':enter, :leave', [
2597
+ animations.style({
2598
+ position: 'absolute',
2599
+ top: 0,
2600
+ left: 0,
2601
+ width: '100%'
2602
+ })
2603
+ ], optional),
2604
+ animations.query(':enter', [
2605
+ animations.style({ transform: "translate(" + x + "%, " + y + "%) rotate(" + rotate + "deg)" })
2606
+ ], { optional: true }),
2607
+ animations.group([
2608
+ animations.query(':leave', [
2609
+ animations.animate('600ms ease-out', animations.style({ transform: "translate(" + x + "%, " + y + "%) rotate(" + rotate + "deg)" }))
2610
+ ], optional),
2611
+ animations.query(':enter', [
2612
+ animations.animate('600ms ease-out', animations.style({ transform: "translate(0, 0) rotate(0)" }))
2613
+ ], { optional: true })
2614
+ ]),
2615
+ ];
2616
+ }
2617
+ var stepper = animations.trigger('routeAnimations', [
2618
+ animations.transition('* <=> *', [
2619
+ animations.query(':enter, :leave', [
2620
+ animations.style({
2621
+ position: 'absolute',
2622
+ left: 0,
2623
+ width: '100%',
2624
+ }),
2625
+ ], { optional: true }),
2626
+ animations.group([
2627
+ animations.query(':enter', [
2628
+ animations.animate('2000ms ease', animations.keyframes([
2629
+ animations.style({ transform: 'scale(0) translateX(100%)', offset: 0 }),
2630
+ animations.style({ transform: 'scale(0.5) translateX(25%)', offset: 0.3 }),
2631
+ animations.style({ transform: 'scale(1) translateX(0%)', offset: 1 }),
2632
+ ])),
2633
+ ], { optional: true }),
2634
+ animations.query(':leave', [
2635
+ animations.animate('2000ms ease', animations.keyframes([
2636
+ animations.style({ transform: 'scale(1)', offset: 0 }),
2637
+ animations.style({ transform: 'scale(0.5) translateX(-25%) rotate(0)', offset: 0.35 }),
2638
+ animations.style({ opacity: 0, transform: 'translateX(-50%) rotate(-180deg) scale(6)', offset: 1 }),
2639
+ ])),
2640
+ ], { optional: true })
2641
+ ]),
2642
+ ])
2643
+ ]);
2644
+ var sideToSide = animations.trigger('routeAnimations', [
2645
+ animations.transition('* => *', [
2646
+ animations.style({
2647
+ position: 'fixed',
2648
+ width: '100%',
2649
+ transform: 'translateX(-100%)'
2650
+ }),
2651
+ animations.animate('1000ms ease', animations.style({ transform: 'translateX(0%)' }))
2652
+ ]),
2653
+ animations.transition(':leave', [
2654
+ animations.style({
2655
+ position: 'fixed',
2656
+ width: '100%',
2657
+ transform: 'translateX(0%)'
2658
+ }),
2659
+ animations.animate('1000ms ease', animations.style({ transform: 'translateX(-100%)' }))
2660
+ ])
2661
+ ]);
2662
+
2663
+ function routeChanges(router$1) {
2664
+ return router$1.events.pipe(operators.filter(function (event) { return event instanceof router.NavigationStart || event instanceof router.NavigationEnd; }), operators.distinctUntilChanged(function (x, y) { return x.id === y.id; }), operators.map(function (event) { return ({ url: event.url }); }));
2665
+ }
2666
+ //
2667
+ // TODO: Animation improvement: Try adding a full component animation that
2668
+ // queries the <ng-content> and <router-outlet> blocks. When the outlet
2669
+ // activates, set the animation state to a transition that moves both blocks
2670
+ // together.
2671
+ //
2672
+ var _uid = 0;
2673
+ var HierarchyRouterOutletComponent = /** @class */ (function () {
2674
+ function HierarchyRouterOutletComponent(_route, _router) {
2675
+ this._route = _route;
2676
+ this._router = _router;
2677
+ this._uid = _uid++;
2678
+ this._ngUnsubscribe = new rxjs.Subject();
2679
+ this.animState = 'isRight';
2680
+ // animState = ''
2681
+ this.outletActive = false;
2682
+ this.ngContentVisible = true;
2683
+ this._router.events.pipe(operators.filter(function (event) { return event instanceof router.NavigationEnd; }),
2684
+ // tap(v => console.log(`_hasChildren()[${this._uid}]`, this._hasChildren())),
2685
+ operators.takeUntil(this._ngUnsubscribe))
2686
+ .subscribe();
2687
+ // routeChanges(this._router)
2688
+ // .pipe(
2689
+ // untilDestroyed(this),
2690
+ // tap(() => {
2691
+ // // if (this._hasChildren()) {
2692
+ // // this.animState = 'isLeft'
2693
+ // // } else {
2694
+ // // this.animState = 'isRight'
2695
+ // // }
2696
+ // })
2697
+ // )
2698
+ // .subscribe(v => console.log(`routeChanges[${this._uid}]`, v))
2699
+ }
2700
+ HierarchyRouterOutletComponent.prototype.ngOnInit = function () { };
2701
+ HierarchyRouterOutletComponent.prototype.ngOnDestroy = function () {
2702
+ this._ngUnsubscribe.next();
2703
+ this._ngUnsubscribe.complete();
2704
+ };
2705
+ HierarchyRouterOutletComponent.prototype._hasChildren = function () {
2706
+ var count = this._route.pathFromRoot.length - 1;
2707
+ var countFull = 0;
2708
+ if (this._router.parseUrl(this._router.url).root.children.primary) {
2709
+ countFull = this._router.parseUrl(this._router.url).root.children.primary.segments.length;
2710
+ }
2711
+ // console.log(`_hasChildren[${this._uid}]`, { count, countFull })
2712
+ return countFull > count;
2713
+ };
2714
+ HierarchyRouterOutletComponent.prototype.prepareRoute = function (outlet) {
2715
+ // console.log(`outlet[${this._uid}]`, outlet, this.animState, this._hasChildren(), this.outletActive)
2716
+ if (outlet.isActivated) {
2717
+ // console.log(outlet.isActivated)
2718
+ // console.log(outlet.component)
2719
+ console.log(this.animState);
2720
+ return this.animState;
2721
+ }
2722
+ else {
2723
+ return undefined;
2724
+ }
2725
+ // console.log(`prepareRoute[${this._uid}]`, this.animState, this._hasChildren())
2726
+ // console.log('activatedRouteData', outlet && outlet.activatedRouteData)
2727
+ // if (outlet && outlet.isActivated) {
2728
+ // console.log('activatedRoute', outlet.activatedRoute && outlet.activatedRoute.snapshot.url)
2729
+ // }
2730
+ // return outlet && outlet.activatedRouteData && outlet.activatedRouteData['animation']
2731
+ // console.log('')
2732
+ // return this.animState
2733
+ };
2734
+ HierarchyRouterOutletComponent.prototype.outletActivate = function (event) {
2735
+ // console.log(`outletActivate[${this._uid}]`, event)
2736
+ this.outletActive = true;
2737
+ };
2738
+ HierarchyRouterOutletComponent.prototype.outletDeactivate = function (event) {
2739
+ // console.log(`outletDeactivate[${this._uid}]`, event)
2740
+ this.outletActive = false;
2741
+ };
2742
+ HierarchyRouterOutletComponent.prototype.routeAnimationsStart = function (event) {
2743
+ // console.log('routeAnimationsStart', event)
2744
+ this.ngContentVisible = true;
2745
+ };
2746
+ HierarchyRouterOutletComponent.prototype.routeAnimationsDone = function (event) {
2747
+ // console.log('routeAnimationsDone', event)
2748
+ this.ngContentVisible = !this.outletActive;
2749
+ };
2750
+ return HierarchyRouterOutletComponent;
2751
+ }());
2752
+ HierarchyRouterOutletComponent.decorators = [
2753
+ { type: i0.Component, args: [{
2754
+ selector: 'seam-hierarchy-router-outlet',
2755
+ template: "<div class=\"h-100\"\n [@routeAnimations]=\"prepareRoute(outlet)\"\n (@routeAnimations.start)=\"routeAnimationsStart($event)\"\n (@routeAnimations.done)=\"routeAnimationsDone($event)\">\n <div class=\"hierarchy-router-outlet--content h-100\" *ngIf=\"ngContentVisible\">\n <!-- {{ animState }} -->\n <div class=\"border border-info h-100\">\n <ng-content></ng-content>\n </div>\n </div>\n <div class=\"router-container\"\n [class.h-100]=\"!ngContentVisible\"\n >\n <!-- <div [@routeAnimations]=\"animState\"> -->\n <!-- <div class=\"hierarchy-router-outlet--route-content\"> -->\n <router-outlet #outlet=\"outlet\"\n (activate)=\"outletActivate($event)\"\n (deactivate)=\"outletDeactivate($event)\">\n </router-outlet>\n </div>\n</div>\n",
2756
+ animations: [
2757
+ // fader,
2758
+ slider,
2759
+ // transformer,
2760
+ // stepper,
2761
+ // sideToSide
2762
+ // contentLeave
2763
+ ],
2764
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2765
+ styles: [":host{display:block;height:100%}:host ::ng-deep router-outlet+*{background-color:#fff;height:100%}"]
2766
+ },] }
2767
+ ];
2768
+ HierarchyRouterOutletComponent.ctorParameters = function () { return [
2769
+ { type: router.ActivatedRoute },
2770
+ { type: router.Router }
2771
+ ]; };
2772
+
2773
+ var HierarchyLevelResolver = /** @class */ (function () {
2774
+ function HierarchyLevelResolver() {
2775
+ }
2776
+ HierarchyLevelResolver.prototype.resolve = function (route, state) {
2777
+ // console.log('[HierarchyLevelResolver]', route)
2778
+ // console.log('[HierarchyLevelResolver]', state)
2779
+ return this._getMaxHierLevel(route);
2780
+ };
2781
+ HierarchyLevelResolver.prototype._getMaxHierLevel = function (route) {
2782
+ var curr = route;
2783
+ while (curr.parent) {
2784
+ curr = curr.parent;
2785
+ if (curr.data['hierLevel']) {
2786
+ return curr.data['hierLevel'] + 1;
2787
+ }
2788
+ }
2789
+ return 0;
2790
+ };
2791
+ return HierarchyLevelResolver;
2792
+ }());
2793
+ HierarchyLevelResolver.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function HierarchyLevelResolver_Factory() { return new HierarchyLevelResolver(); }, token: HierarchyLevelResolver, providedIn: "root" });
2794
+ HierarchyLevelResolver.decorators = [
2795
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
2796
+ ];
2797
+ HierarchyLevelResolver.ctorParameters = function () { return []; };
2798
+
2799
+ var TheSeamDynamicRouterModule = /** @class */ (function () {
2800
+ function TheSeamDynamicRouterModule() {
2801
+ }
2802
+ return TheSeamDynamicRouterModule;
2803
+ }());
2804
+ TheSeamDynamicRouterModule.decorators = [
2805
+ { type: i0.NgModule, args: [{
2806
+ declarations: [
2807
+ HierarchyRouterOutletComponent
2808
+ ],
2809
+ imports: [
2810
+ common.CommonModule,
2811
+ router.RouterModule
2812
+ ],
2813
+ exports: [
2814
+ HierarchyRouterOutletComponent
2815
+ ]
2816
+ },] }
2817
+ ];
2818
+
2819
+ var TheSeamSchemaFormCheckboxComponent = /** @class */ (function () {
2820
+ function TheSeamSchemaFormCheckboxComponent(jsf) {
2821
+ this.jsf = jsf;
2822
+ this.controlDisabled = false;
2823
+ this.boundControl = false;
2824
+ this.trueValue = true;
2825
+ this.falseValue = false;
2826
+ }
2827
+ TheSeamSchemaFormCheckboxComponent.prototype.ngOnInit = function () {
2828
+ this.options = this.layoutNode.options || {};
2829
+ this.jsf.initializeControl(this);
2830
+ if (this.controlValue === null || this.controlValue === undefined) {
2831
+ this.controlValue = this.options.title;
2832
+ }
2833
+ };
2834
+ TheSeamSchemaFormCheckboxComponent.prototype.updateValue = function (event) {
2835
+ event.preventDefault();
2836
+ this.jsf.updateValue(this, event.target.checked ? this.trueValue : this.falseValue);
2837
+ };
2838
+ Object.defineProperty(TheSeamSchemaFormCheckboxComponent.prototype, "isChecked", {
2839
+ get: function () {
2840
+ return this.jsf.getFormControlValue(this) === this.trueValue;
2841
+ },
2842
+ enumerable: false,
2843
+ configurable: true
2844
+ });
2845
+ return TheSeamSchemaFormCheckboxComponent;
2846
+ }());
2847
+ TheSeamSchemaFormCheckboxComponent.decorators = [
2848
+ { type: i0.Component, args: [{
2849
+ selector: 'seam-schema-form-checkbox',
2850
+ template: "<div class=\"mb-3\">\n <seam-form-field *ngIf=\"boundControl\">\n <seam-checkbox seamInput\n [formControl]=\"$any(formControl)\"\n [ngClass]=\"options?.fieldHtmlClass\"\n [id]=\"'control' + layoutNode?._id\"\n [name]=\"controlName\"\n [required]=\"options?.required\">\n {{ options?.title }}<seam-form-field-required-indicator class=\"pl-1\" [required]=\"options?.required\"></seam-form-field-required-indicator>\n </seam-checkbox>\n </seam-form-field>\n\n <seam-form-field *ngIf=\"!boundControl\">\n <seam-checkbox seamInput\n [ngClass]=\"options?.fieldHtmlClass\"\n [id]=\"'control' + layoutNode?._id\"\n [name]=\"controlName\"\n [required]=\"options?.required\"\n [value]=\"controlValue\"\n (change)=\"updateValue($event)\">\n {{ options?.title }}<seam-form-field-required-indicator class=\"pl-1\" [required]=\"options?.required\"></seam-form-field-required-indicator>\n </seam-checkbox>\n </seam-form-field>\n</div>\n",
2851
+ styles: [""]
2852
+ },] }
2853
+ ];
2854
+ TheSeamSchemaFormCheckboxComponent.ctorParameters = function () { return [
2855
+ { type: core$1.JsonSchemaFormService }
2856
+ ]; };
2857
+ TheSeamSchemaFormCheckboxComponent.propDecorators = {
2858
+ layoutNode: [{ type: i0.Input }],
2859
+ layoutIndex: [{ type: i0.Input }],
2860
+ dataIndex: [{ type: i0.Input }]
2861
+ };
2862
+
2863
+ var TheSeamSchemaFormInputComponent = /** @class */ (function () {
2864
+ function TheSeamSchemaFormInputComponent(jsf) {
2865
+ this.jsf = jsf;
2866
+ this.controlDisabled = false;
2867
+ this.boundControl = false;
2868
+ this.autoCompleteList = [];
2869
+ }
2870
+ TheSeamSchemaFormInputComponent.prototype.ngOnInit = function () {
2871
+ this.options = this.layoutNode.options || {};
2872
+ this.jsf.initializeControl(this);
2873
+ };
2874
+ TheSeamSchemaFormInputComponent.prototype.updateValue = function (event) {
2875
+ this.jsf.updateValue(this, event.target.value);
2876
+ };
2877
+ return TheSeamSchemaFormInputComponent;
2878
+ }());
2879
+ TheSeamSchemaFormInputComponent.decorators = [
2880
+ { type: i0.Component, args: [{
2881
+ selector: 'seam-schema-form-input',
2882
+ template: "<seam-form-field *ngIf=\"boundControl\">\n <ng-template seamFormFieldLabelTpl let-required=\"required\">\n <ng-container *ngIf=\"!options?.notitle\">\n {{ options?.title }}<seam-form-field-required-indicator class=\"pl-1\"></seam-form-field-required-indicator>\n </ng-container>\n </ng-template>\n <input seamInput\n [formControl]=\"$any(formControl)\"\n [ngClass]=\"options?.fieldHtmlClass\"\n [id]=\"'control' + layoutNode?._id\"\n [name]=\"controlName\"\n [required]=\"options?.required\"\n\n [attr.aria-describedby]=\"'control' + layoutNode?._id + 'Status'\"\n [attr.list]=\"'control' + layoutNode?._id + 'Autocomplete'\"\n [attr.maxlength]=\"options?.maxLength\"\n [attr.minlength]=\"options?.minLength\"\n [attr.pattern]=\"options?.pattern\"\n [attr.placeholder]=\"options?.placeholder\"\n [attr.required]=\"options?.required\"\n [readonly]=\"options?.readonly ? 'readonly' : null\"\n [type]=\"layoutNode?.type\">\n <datalist *ngIf=\"options?.typeahead?.source\"\n [id]=\"'control' + layoutNode?._id + 'Autocomplete'\">\n <option *ngFor=\"let word of options?.typeahead?.source\" [value]=\"word\">\n </datalist>\n</seam-form-field>\n\n<seam-form-field *ngIf=\"!boundControl\">\n <ng-template seamFormFieldLabelTpl let-required=\"required\">\n <ng-container *ngIf=\"!options?.notitle\">\n {{ options?.title }}<seam-form-field-required-indicator class=\"pl-1\"></seam-form-field-required-indicator>\n </ng-container>\n </ng-template>\n <input seamInput\n [ngClass]=\"options?.fieldHtmlClass\"\n [id]=\"'control' + layoutNode?._id\"\n [name]=\"controlName\"\n [required]=\"options?.required\"\n [value]=\"controlValue\"\n (input)=\"updateValue($event)\"\n\n [attr.aria-describedby]=\"'control' + layoutNode?._id + 'Status'\"\n [attr.list]=\"'control' + layoutNode?._id + 'Autocomplete'\"\n [attr.maxlength]=\"options?.maxLength\"\n [attr.minlength]=\"options?.minLength\"\n [attr.pattern]=\"options?.pattern\"\n [attr.placeholder]=\"options?.placeholder\"\n [attr.required]=\"options?.required\"\n [readonly]=\"options?.readonly ? 'readonly' : null\"\n [type]=\"layoutNode?.type\"\n [disabled]=\"controlDisabled\">\n <datalist *ngIf=\"options?.typeahead?.source\"\n [id]=\"'control' + layoutNode?._id + 'Autocomplete'\">\n <option *ngFor=\"let word of options?.typeahead?.source\" [value]=\"word\">\n </datalist>\n</seam-form-field>\n",
2883
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2884
+ styles: [":host{display:block}"]
2885
+ },] }
2886
+ ];
2887
+ TheSeamSchemaFormInputComponent.ctorParameters = function () { return [
2888
+ { type: core$1.JsonSchemaFormService }
2889
+ ]; };
2890
+ TheSeamSchemaFormInputComponent.propDecorators = {
2891
+ layoutNode: [{ type: i0.Input }],
2892
+ layoutIndex: [{ type: i0.Input }],
2893
+ dataIndex: [{ type: i0.Input }]
2894
+ };
2895
+
2896
+ var TheSeamSchemaFormNumberComponent = /** @class */ (function () {
2897
+ function TheSeamSchemaFormNumberComponent(jsf) {
2898
+ this.jsf = jsf;
2899
+ this.controlDisabled = false;
2900
+ this.boundControl = false;
2901
+ this.allowNegative = true;
2902
+ this.allowDecimal = true;
2903
+ this.allowExponents = false;
2904
+ this.lastValidNumber = '';
2905
+ }
2906
+ TheSeamSchemaFormNumberComponent.prototype.ngOnInit = function () {
2907
+ this.options = this.layoutNode.options || {};
2908
+ this.jsf.initializeControl(this);
2909
+ if (this.layoutNode.dataType === 'integer') {
2910
+ this.allowDecimal = false;
2911
+ }
2912
+ };
2913
+ TheSeamSchemaFormNumberComponent.prototype.updateValue = function (event) {
2914
+ this.jsf.updateValue(this, event.target.value);
2915
+ };
2916
+ return TheSeamSchemaFormNumberComponent;
2917
+ }());
2918
+ TheSeamSchemaFormNumberComponent.decorators = [
2919
+ { type: i0.Component, args: [{
2920
+ selector: 'seam-schema-form-number',
2921
+ template: "<seam-form-field *ngIf=\"boundControl\">\n <ng-template seamFormFieldLabelTpl let-required=\"required\">\n <ng-container *ngIf=\"!options?.notitle\">\n {{ options?.title }}<seam-form-field-required-indicator class=\"pl-1\"></seam-form-field-required-indicator>\n </ng-container>\n </ng-template>\n <input seamInput\n [formControl]=\"$any(formControl)\"\n [ngClass]=\"options?.fieldHtmlClass\"\n [id]=\"'control' + layoutNode?._id\"\n [name]=\"controlName\"\n [required]=\"options?.required\"\n [attr.max]=\"options?.maximum\"\n [attr.min]=\"options?.minimum\"\n [attr.step]=\"options?.multipleOf || options?.step || 'any'\"\n\n [attr.aria-describedby]=\"'control' + layoutNode?._id + 'Status'\"\n [attr.list]=\"'control' + layoutNode?._id + 'Autocomplete'\"\n [attr.maxlength]=\"options?.maxLength\"\n [attr.minlength]=\"options?.minLength\"\n [attr.pattern]=\"options?.pattern\"\n [attr.placeholder]=\"options?.placeholder\"\n [attr.required]=\"options?.required\"\n [readonly]=\"options?.readonly ? 'readonly' : null\"\n [type]=\"layoutNode?.type === 'range' ? 'range' : 'number'\">\n <span *ngIf=\"layoutNode?.type === 'range'\" [innerHTML]=\"controlValue\"></span>\n</seam-form-field>\n\n<seam-form-field *ngIf=\"!boundControl\">\n <ng-template seamFormFieldLabelTpl let-required=\"required\">\n <ng-container *ngIf=\"!options?.notitle\">\n {{ options?.title }}<seam-form-field-required-indicator class=\"pl-1\"></seam-form-field-required-indicator>\n </ng-container>\n </ng-template>\n <input seamInput\n [ngClass]=\"options?.fieldHtmlClass\"\n [id]=\"'control' + layoutNode?._id\"\n [name]=\"controlName\"\n [required]=\"options?.required\"\n [attr.max]=\"options?.maximum\"\n [attr.min]=\"options?.minimum\"\n [attr.step]=\"options?.multipleOf || options?.step || 'any'\"\n [value]=\"controlValue\"\n (input)=\"updateValue($event)\"\n\n [attr.aria-describedby]=\"'control' + layoutNode?._id + 'Status'\"\n [attr.list]=\"'control' + layoutNode?._id + 'Autocomplete'\"\n [attr.maxlength]=\"options?.maxLength\"\n [attr.minlength]=\"options?.minLength\"\n [attr.pattern]=\"options?.pattern\"\n [attr.placeholder]=\"options?.placeholder\"\n [attr.required]=\"options?.required\"\n [readonly]=\"options?.readonly ? 'readonly' : null\"\n [type]=\"layoutNode?.type === 'range' ? 'range' : 'number'\"\n [disabled]=\"controlDisabled\">\n <span *ngIf=\"layoutNode?.type === 'range'\" [innerHTML]=\"controlValue\"></span>\n</seam-form-field>\n",
2922
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2923
+ styles: [":host{display:block}"]
2924
+ },] }
2925
+ ];
2926
+ TheSeamSchemaFormNumberComponent.ctorParameters = function () { return [
2927
+ { type: core$1.JsonSchemaFormService }
2928
+ ]; };
2929
+ TheSeamSchemaFormNumberComponent.propDecorators = {
2930
+ layoutNode: [{ type: i0.Input }],
2931
+ layoutIndex: [{ type: i0.Input }],
2932
+ dataIndex: [{ type: i0.Input }]
2933
+ };
2934
+
2935
+ var TheSeamSchemaFormSelectComponent = /** @class */ (function () {
2936
+ function TheSeamSchemaFormSelectComponent(jsf) {
2937
+ this.jsf = jsf;
2938
+ this.controlDisabled = false;
2939
+ this.boundControl = false;
2940
+ this.selectList = [];
2941
+ this.isArray = core$1.isArray;
2942
+ }
2943
+ TheSeamSchemaFormSelectComponent.prototype.ngOnInit = function () {
2944
+ this.options = this.layoutNode.options || {};
2945
+ this.selectList = core$1.buildTitleMap(this.options.titleMap || this.options.enumNames, this.options.enum, !!this.options.required, !!this.options.flatList);
2946
+ this.jsf.initializeControl(this);
2947
+ };
2948
+ TheSeamSchemaFormSelectComponent.prototype.updateValue = function (event) {
2949
+ this.jsf.updateValue(this, event.value);
2950
+ };
2951
+ return TheSeamSchemaFormSelectComponent;
2952
+ }());
2953
+ TheSeamSchemaFormSelectComponent.decorators = [
2954
+ { type: i0.Component, args: [{
2955
+ selector: 'seam-schema-form-select',
2956
+ template: "<seam-form-field *ngIf=\"boundControl\">\n <ng-template seamFormFieldLabelTpl let-required=\"required\">\n <ng-container *ngIf=\"!options?.notitle\">\n {{ options?.title }}<seam-form-field-required-indicator class=\"pl-1\"></seam-form-field-required-indicator>\n </ng-container>\n </ng-template>\n <ng-select seamInput\n [formControl]=\"$any(formControl)\"\n [ngClass]=\"options?.fieldHtmlClass\"\n [id]=\"'control' + layoutNode?._id\"\n [required]=\"options?.required\"\n [items]=\"selectList\"\n bindLabel=\"name\"\n bindValue=\"value\"\n [clearable]=\"false\"\n appendTo=\"body\"\n\n [attr.aria-describedby]=\"'control' + layoutNode?._id + 'Status'\"\n [attr.placeholder]=\"options?.placeholder\"\n [attr.required]=\"options?.required\"\n [readonly]=\"options?.readonly ? true : false\">\n <ng-template ng-label-tmp let-item=\"item\">\n <span [innerHTML]=\"item.name\"></span>\n </ng-template>\n <ng-template ng-option-tmp let-item=\"item\" let-index=\"index\">\n <span [innerHTML]=\"item.name\"></span>\n </ng-template>\n </ng-select>\n</seam-form-field>\n\n<seam-form-field *ngIf=\"!boundControl\">\n <ng-template seamFormFieldLabelTpl let-required=\"required\">\n <ng-container *ngIf=\"!options?.notitle\">\n {{ options?.title }}<seam-form-field-required-indicator class=\"pl-1\"></seam-form-field-required-indicator>\n </ng-container>\n </ng-template>\n <ng-select seamInput\n [ngClass]=\"options?.fieldHtmlClass\"\n [id]=\"'control' + layoutNode?._id\"\n [required]=\"options?.required\"\n [items]=\"selectList\"\n bindLabel=\"name\"\n bindValue=\"value\"\n [clearable]=\"false\"\n (change)=\"updateValue($event)\"\n appendTo=\"body\"\n\n [attr.aria-describedby]=\"'control' + layoutNode?._id + 'Status'\"\n [attr.placeholder]=\"options?.placeholder\"\n [attr.required]=\"options?.required\"\n [readonly]=\"options?.readonly ? true : false\"\n [disabled]=\"controlDisabled\">\n <ng-template ng-option-tmp let-item=\"item\" let-index=\"index\">\n <span [innerHTML]=\"item.name\"></span>\n </ng-template>\n </ng-select>\n</seam-form-field>\n",
2957
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2958
+ styles: [":host{display:block}"]
2959
+ },] }
2960
+ ];
2961
+ TheSeamSchemaFormSelectComponent.ctorParameters = function () { return [
2962
+ { type: core$1.JsonSchemaFormService }
2963
+ ]; };
2964
+ TheSeamSchemaFormSelectComponent.propDecorators = {
2965
+ layoutNode: [{ type: i0.Input }],
2966
+ layoutIndex: [{ type: i0.Input }],
2967
+ dataIndex: [{ type: i0.Input }]
2968
+ };
2969
+
2970
+ // NOTE: This component is a little hacky, because I am basically creating a
2971
+ // data widget that acts like a data and 'submit' widget at the same time.
2972
+ //
2973
+ // TODO: Try and think of a nicer way to implement this, but still make sense
2974
+ // from a schema definition. The library may need to me forked to actually
2975
+ // support this in the way I expect, but maybe there is another way.
2976
+ var TheSeamSchemaFormSubmitSplitComponent = /** @class */ (function () {
2977
+ function TheSeamSchemaFormSubmitSplitComponent(jsf) {
2978
+ this.jsf = jsf;
2979
+ /** @ignore */
2980
+ this._ngUnsubscribe = new rxjs.Subject();
2981
+ this.controlDisabled = false;
2982
+ this.boundControl = false;
2983
+ this._buttonLabel = '';
2984
+ this._dropdownDisabled = false;
2985
+ this._selectList = [];
2986
+ }
2987
+ /** @ignore */
2988
+ TheSeamSchemaFormSubmitSplitComponent.prototype.ngOnInit = function () {
2989
+ var _this = this;
2990
+ this.options = this.layoutNode.options || {};
2991
+ this.jsf.initializeControl(this);
2992
+ // NOTE: This is commented out, because there is a bug with submit widgets
2993
+ // manually defined in layout. All nodes initialized from the provided
2994
+ // layout have their options populated from the defaults and 'disabled' is
2995
+ // on of the default properties, so the 'disableInvalidSubmit' condition
2996
+ // never gets reached.
2997
+ //
2998
+ // My initial idea for fixing would be to check if the disabled property
2999
+ // exists and is a boolean, or possibly anything defined that can coerce
3000
+ // into a boolean. I can't think of a reason disabled should be anything
3001
+ // else, so that may be an acceptable fix, but I don't want to enable that
3002
+ // yet.
3003
+ //
3004
+ // if (hasOwn(this.options, 'disabled')) {
3005
+ // console.log('[TheSeamSchemaFormSubmitSplitComponent] hasDisabled', this.options.disabled)
3006
+ // this.controlDisabled = this.options.disabled
3007
+ // } else
3008
+ if (this.jsf.formOptions.disableInvalidSubmit) {
3009
+ this.controlDisabled = !this.jsf.isValid;
3010
+ this.jsf.isValidChanges.subscribe(function (isValid) { return _this.controlDisabled = !isValid; });
3011
+ }
3012
+ if (this.controlValue === null || this.controlValue === undefined) {
3013
+ this.controlValue = this.options.title;
3014
+ }
3015
+ if (core$1.hasOwn(this.options, 'title')) {
3016
+ this._buttonLabel = this.options.title;
3017
+ }
3018
+ this._initDropdown();
3019
+ // console.log('this', this)
3020
+ };
3021
+ /** @ignore */
3022
+ TheSeamSchemaFormSubmitSplitComponent.prototype.ngOnDestroy = function () {
3023
+ this._ngUnsubscribe.next();
3024
+ this._ngUnsubscribe.complete();
3025
+ };
3026
+ TheSeamSchemaFormSubmitSplitComponent.prototype.updateValue = function (event) {
3027
+ if (typeof this.options.onClick === 'function') {
3028
+ this.options.onClick(event);
3029
+ }
3030
+ else {
3031
+ this.jsf.updateValue(this, event.target.value);
3032
+ }
3033
+ };
3034
+ TheSeamSchemaFormSubmitSplitComponent.prototype._initDropdown = function () {
3035
+ var _this = this;
3036
+ var _a;
3037
+ if (!core$1.hasOwn(this.layoutNode, 'items') || !(this.layoutNode.items || []).length) {
3038
+ return;
3039
+ }
3040
+ if (i0.isDevMode()) {
3041
+ if (this.layoutNode.items.length > 1) {
3042
+ console.warn("TheSeamSchemaFormSubmitSplitComponent only supports one item." +
3043
+ " items after index 0 will be ignored.");
3044
+ }
3045
+ }
3046
+ var idx = 0;
3047
+ var item = this.layoutNode.items[idx];
3048
+ this._dropdownObj = {
3049
+ layoutNode: item,
3050
+ layoutIndex: (this.layoutIndex || []).concat(idx),
3051
+ dataIndex: ((_a = this.layoutNode) === null || _a === void 0 ? void 0 : _a.dataType) === 'array' ? (this.dataIndex || []).concat(idx) : this.dataIndex,
3052
+ options: item.options || {}
3053
+ };
3054
+ this.jsf.initializeControl(this._dropdownObj);
3055
+ var items = core$1.buildTitleMap(this._dropdownObj.options.titleMap || this._dropdownObj.options.enumNames, this._dropdownObj.options.enum, !!this._dropdownObj.options.required, !!this._dropdownObj.options.flatList);
3056
+ this._selectList = items;
3057
+ // TODO: Should this be checking if the control is bound?
3058
+ var dropdownControl = this._getDropdownControl();
3059
+ if (!dropdownControl) {
3060
+ return;
3061
+ }
3062
+ utils.observeControlValue(dropdownControl).pipe(operators.takeUntil(this._ngUnsubscribe)).subscribe(function (value) {
3063
+ _this._setSelectListCheckedProp(value);
3064
+ _this._selectedItem = _this._getSelectedItem();
3065
+ });
3066
+ utils.observeControlStatus(dropdownControl).pipe(operators.takeUntil(this._ngUnsubscribe)).subscribe(function (value) {
3067
+ _this._dropdownDisabled = dropdownControl.disabled;
3068
+ });
3069
+ };
3070
+ TheSeamSchemaFormSubmitSplitComponent.prototype._getDropdownControl = function () {
3071
+ return this._dropdownObj.formControl;
3072
+ };
3073
+ TheSeamSchemaFormSubmitSplitComponent.prototype._setSelectListCheckedProp = function (value) {
3074
+ var e_1, _b;
3075
+ var items = this._selectList;
3076
+ try {
3077
+ for (var items_1 = __values(items), items_1_1 = items_1.next(); !items_1_1.done; items_1_1 = items_1.next()) {
3078
+ var item = items_1_1.value;
3079
+ if (item.value === value) {
3080
+ item.checked = true;
3081
+ }
3082
+ else if (item.checked) {
3083
+ item.checked = false;
3084
+ }
3085
+ }
3086
+ }
3087
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3088
+ finally {
3089
+ try {
3090
+ if (items_1_1 && !items_1_1.done && (_b = items_1.return)) _b.call(items_1);
3091
+ }
3092
+ finally { if (e_1) throw e_1.error; }
3093
+ }
3094
+ this._selectList = __spreadArray([], __read(items));
3095
+ };
3096
+ TheSeamSchemaFormSubmitSplitComponent.prototype._getSelectedItem = function () {
3097
+ return (this._selectList || []).find(function (x) { return x.checked === true; });
3098
+ };
3099
+ TheSeamSchemaFormSubmitSplitComponent.prototype._setDropdownValue = function (value) {
3100
+ var formControl = this._getDropdownControl();
3101
+ formControl === null || formControl === void 0 ? void 0 : formControl.setValue(value);
3102
+ };
3103
+ return TheSeamSchemaFormSubmitSplitComponent;
3104
+ }());
3105
+ TheSeamSchemaFormSubmitSplitComponent.decorators = [
3106
+ { type: i0.Component, args: [{
3107
+ selector: 'seam-schema-form-submit-split',
3108
+ template: "<div\n [class]=\"options?.htmlClass || ''\">\n <div [class.btn-group]=\"_dropdownObj\">\n <button seamButton theme=\"primary\" type=\"submit\"\n [attr.aria-describedby]=\"'control' + layoutNode?._id + 'Status'\"\n [attr.readonly]=\"options?.readonly ? 'readonly' : null\"\n [attr.required]=\"options?.required\"\n [class]=\"'btn btn-primary ' + (options?.fieldHtmlClass || '')\"\n [disabled]=\"controlDisabled\"\n [id]=\"'control' + layoutNode?._id\"\n [name]=\"controlName\"\n [value]=\"controlValue\"\n (click)=\"updateValue($event)\">\n {{ _buttonLabel }}\n <span *ngIf=\"_selectedItem\">\n [{{ _selectedItem.name }}]\n </span>\n </button>\n <ng-container *ngIf=\"_dropdownObj\">\n <button\n [seamMenuToggle]=\"menu\" seamButton theme=\"primary\"\n class=\"dropdown-toggle dropdown-toggle-split\"\n [disabled]=\"_dropdownDisabled\">\n <span class=\"sr-only\">Toggle Dropdown</span>\n </button>\n <seam-menu #menu>\n <ng-container *ngFor=\"let item of _selectList\">\n <button seamMenuItem\n [class.active]=\"item.checked\"\n (click)=\"_setDropdownValue(item.value)\">\n {{ item.name }}\n </button>\n </ng-container>\n </seam-menu>\n </ng-container>\n </div>\n</div>\n",
3109
+ styles: [":host{display:block}"]
3110
+ },] }
3111
+ ];
3112
+ TheSeamSchemaFormSubmitSplitComponent.ctorParameters = function () { return [
3113
+ { type: core$1.JsonSchemaFormService }
3114
+ ]; };
3115
+ TheSeamSchemaFormSubmitSplitComponent.propDecorators = {
3116
+ layoutNode: [{ type: i0.Input }],
3117
+ layoutIndex: [{ type: i0.Input }],
3118
+ dataIndex: [{ type: i0.Input }]
3119
+ };
3120
+
3121
+ var TheSeamSchemaFormFrameworkComponent = /** @class */ (function () {
3122
+ function TheSeamSchemaFormFrameworkComponent() {
3123
+ }
3124
+ return TheSeamSchemaFormFrameworkComponent;
3125
+ }());
3126
+ TheSeamSchemaFormFrameworkComponent.decorators = [
3127
+ { type: i0.Component, args: [{
3128
+ selector: 'seam-schema-form-framework',
3129
+ template: "<select-widget-widget\n [dataIndex]=\"$any(dataIndex)\"\n [layoutIndex]=\"$any(layoutIndex)\"\n [layoutNode]=\"layoutNode\">\n</select-widget-widget>\n",
3130
+ styles: [""]
3131
+ },] }
3132
+ ];
3133
+ TheSeamSchemaFormFrameworkComponent.propDecorators = {
3134
+ layoutNode: [{ type: i0.Input }],
3135
+ layoutIndex: [{ type: i0.Input }],
3136
+ dataIndex: [{ type: i0.Input }]
3137
+ };
3138
+
3139
+ var TheSeamFramework = /** @class */ (function (_super) {
3140
+ __extends(TheSeamFramework, _super);
3141
+ function TheSeamFramework() {
3142
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
3143
+ _this.name = 'seam-framework';
3144
+ _this.framework = TheSeamSchemaFormFrameworkComponent;
3145
+ _this.widgets = {
3146
+ 'checkbox': TheSeamSchemaFormCheckboxComponent,
3147
+ // 'submit': TheSeamSchemaFormSubmitComponent,
3148
+ 'submit': TheSeamSchemaFormSubmitSplitComponent,
3149
+ 'text': TheSeamSchemaFormInputComponent,
3150
+ 'number': TheSeamSchemaFormNumberComponent,
3151
+ 'select': TheSeamSchemaFormSelectComponent
3152
+ };
3153
+ return _this;
3154
+ }
3155
+ return TheSeamFramework;
3156
+ }(core$1.Framework));
3157
+ TheSeamFramework.decorators = [
3158
+ { type: i0.Injectable }
3159
+ ];
3160
+
3161
+ var TheSeamSchemaFormSubmitComponent = /** @class */ (function () {
3162
+ function TheSeamSchemaFormSubmitComponent(jsf) {
3163
+ this.jsf = jsf;
3164
+ this.controlDisabled = false;
3165
+ this.boundControl = false;
3166
+ }
3167
+ TheSeamSchemaFormSubmitComponent.prototype.ngOnInit = function () {
3168
+ var _this = this;
3169
+ this.options = this.layoutNode.options || {};
3170
+ this.jsf.initializeControl(this);
3171
+ if (core$1.hasOwn(this.options, 'disabled')) {
3172
+ this.controlDisabled = this.options.disabled;
3173
+ }
3174
+ else if (this.jsf.formOptions.disableInvalidSubmit) {
3175
+ this.controlDisabled = !this.jsf.isValid;
3176
+ this.jsf.isValidChanges.subscribe(function (isValid) { return _this.controlDisabled = !isValid; });
3177
+ }
3178
+ if (this.controlValue === null || this.controlValue === undefined) {
3179
+ this.controlValue = this.options.title;
3180
+ }
3181
+ };
3182
+ TheSeamSchemaFormSubmitComponent.prototype.updateValue = function (event) {
3183
+ if (typeof this.options.onClick === 'function') {
3184
+ this.options.onClick(event);
3185
+ }
3186
+ else {
3187
+ this.jsf.updateValue(this, event.target.value);
3188
+ }
3189
+ };
3190
+ return TheSeamSchemaFormSubmitComponent;
3191
+ }());
3192
+ TheSeamSchemaFormSubmitComponent.decorators = [
3193
+ { type: i0.Component, args: [{
3194
+ selector: 'seam-schema-form-submit',
3195
+ template: "<div\n [class]=\"options?.htmlClass || ''\">\n <input\n [attr.aria-describedby]=\"'control' + layoutNode?._id + 'Status'\"\n [attr.readonly]=\"options?.readonly ? 'readonly' : null\"\n [attr.required]=\"options?.required\"\n [class]=\"'btn btn-primary ' + (options?.fieldHtmlClass || '')\"\n [disabled]=\"controlDisabled\"\n [id]=\"'control' + layoutNode?._id\"\n [name]=\"controlName\"\n [type]=\"layoutNode?.type\"\n [value]=\"controlValue\"\n (click)=\"updateValue($event)\">\n</div>\n"
3196
+ },] }
3197
+ ];
3198
+ TheSeamSchemaFormSubmitComponent.ctorParameters = function () { return [
3199
+ { type: core$1.JsonSchemaFormService }
3200
+ ]; };
3201
+ TheSeamSchemaFormSubmitComponent.propDecorators = {
3202
+ layoutNode: [{ type: i0.Input }],
3203
+ layoutIndex: [{ type: i0.Input }],
3204
+ dataIndex: [{ type: i0.Input }]
3205
+ };
3206
+
3207
+ var controls = [
3208
+ TheSeamSchemaFormCheckboxComponent,
3209
+ TheSeamSchemaFormSubmitComponent,
3210
+ TheSeamSchemaFormSelectComponent,
3211
+ TheSeamSchemaFormInputComponent,
3212
+ TheSeamSchemaFormNumberComponent,
3213
+ TheSeamSchemaFormSubmitSplitComponent
3214
+ ];
3215
+ var TheSeamSchemaFormControlsModule = /** @class */ (function () {
3216
+ function TheSeamSchemaFormControlsModule() {
3217
+ }
3218
+ return TheSeamSchemaFormControlsModule;
3219
+ }());
3220
+ TheSeamSchemaFormControlsModule.decorators = [
3221
+ { type: i0.NgModule, args: [{
3222
+ declarations: __spreadArray([], __read(controls)),
3223
+ imports: [
3224
+ common.CommonModule,
3225
+ forms.ReactiveFormsModule,
3226
+ core$1.JsonSchemaFormModule,
3227
+ formField.TheSeamFormFieldModule,
3228
+ checkbox.TheSeamCheckboxModule,
3229
+ menu.TheSeamMenuModule,
3230
+ buttons.TheSeamButtonsModule,
3231
+ ngSelect.NgSelectModule
3232
+ ],
3233
+ exports: __spreadArray(__spreadArray([], __read(controls)), [
3234
+ core$1.JsonSchemaFormModule
3235
+ ]),
3236
+ entryComponents: __spreadArray([], __read(controls))
3237
+ },] }
3238
+ ];
3239
+
3240
+ var TheSeamSchemaFormModule = /** @class */ (function () {
3241
+ function TheSeamSchemaFormModule() {
3242
+ }
3243
+ return TheSeamSchemaFormModule;
3244
+ }());
3245
+ TheSeamSchemaFormModule.decorators = [
3246
+ { type: i0.NgModule, args: [{
3247
+ declarations: [
3248
+ TheSeamSchemaFormFrameworkComponent
3249
+ ],
3250
+ imports: [
3251
+ common.CommonModule,
3252
+ core$1.JsonSchemaFormModule,
3253
+ TheSeamSchemaFormControlsModule,
3254
+ core$1.WidgetLibraryModule,
3255
+ ],
3256
+ providers: [
3257
+ core$1.JsonSchemaFormService,
3258
+ core$1.FrameworkLibraryService,
3259
+ core$1.WidgetLibraryService,
3260
+ { provide: core$1.Framework, useClass: TheSeamFramework, multi: true }
3261
+ ],
3262
+ exports: [
3263
+ TheSeamSchemaFormFrameworkComponent,
3264
+ core$1.JsonSchemaFormModule
3265
+ ],
3266
+ entryComponents: [
3267
+ TheSeamSchemaFormFrameworkComponent
3268
+ ]
3269
+ },] }
3270
+ ];
3271
+
3272
+ /**
3273
+ * Generated bundle index. Do not edit.
3274
+ */
3275
+
3276
+ exports.BaseLayoutContentDirective = BaseLayoutContentDirective;
3277
+ exports.BaseLayoutContentFooterDirective = BaseLayoutContentFooterDirective;
3278
+ exports.BaseLayoutContentHeaderDirective = BaseLayoutContentHeaderDirective;
3279
+ exports.BaseLayoutNavToggleDirective = BaseLayoutNavToggleDirective;
3280
+ exports.BaseLayoutSideBarDirective = BaseLayoutSideBarDirective;
3281
+ exports.BaseLayoutTopBarDirective = BaseLayoutTopBarDirective;
3282
+ exports.DashboardComponent = DashboardComponent;
3283
+ exports.DashboardWidgetContainerComponent = DashboardWidgetContainerComponent;
3284
+ exports.DashboardWidgetPortalOutletDirective = DashboardWidgetPortalOutletDirective;
3285
+ exports.DashboardWidgetTemplateContainerComponent = DashboardWidgetTemplateContainerComponent;
3286
+ exports.DashboardWidgetsComponent = DashboardWidgetsComponent;
3287
+ exports.DashboardWidgetsPreferencesService = DashboardWidgetsPreferencesService;
3288
+ exports.DashboardWidgetsService = DashboardWidgetsService;
3289
+ exports.HierarchyLevelResolver = HierarchyLevelResolver;
3290
+ exports.HierarchyRouterOutletComponent = HierarchyRouterOutletComponent;
3291
+ exports.SideNavComponent = SideNavComponent;
3292
+ exports.SideNavItemComponent = SideNavItemComponent;
3293
+ exports.SideNavToggleComponent = SideNavToggleComponent;
3294
+ exports.THESEAM_BASE_LAYOUT_REF = THESEAM_BASE_LAYOUT_REF;
3295
+ exports.THESEAM_DASHBOARD_WIDGETS_PREFERENCES_ACCESSOR = THESEAM_DASHBOARD_WIDGETS_PREFERENCES_ACCESSOR;
3296
+ exports.THE_SEAM_BASE_LAYOUT = THE_SEAM_BASE_LAYOUT;
3297
+ exports.TheSeamBaseLayoutComponent = TheSeamBaseLayoutComponent;
3298
+ exports.TheSeamBaseLayoutModule = TheSeamBaseLayoutModule;
3299
+ exports.TheSeamDashboardModule = TheSeamDashboardModule;
3300
+ exports.TheSeamDynamicRouterModule = TheSeamDynamicRouterModule;
3301
+ exports.TheSeamFramework = TheSeamFramework;
3302
+ exports.TheSeamSchemaFormFrameworkComponent = TheSeamSchemaFormFrameworkComponent;
3303
+ exports.TheSeamSchemaFormModule = TheSeamSchemaFormModule;
3304
+ exports.TheSeamSideNavModule = TheSeamSideNavModule;
3305
+ exports.TheSeamTopBarComponent = TheSeamTopBarComponent;
3306
+ exports.TheSeamTopBarModule = TheSeamTopBarModule;
3307
+ exports.TopBarItemDirective = TopBarItemDirective;
3308
+ exports.TopBarMenuBtnDetailDirective = TopBarMenuBtnDetailDirective;
3309
+ exports.TopBarMenuButtonComponent = TopBarMenuButtonComponent;
3310
+ exports.TopBarMenuDirective = TopBarMenuDirective;
3311
+ exports.TopBarTitleComponent = TopBarTitleComponent;
3312
+ exports.canBeActive = canBeActive;
3313
+ exports.canExpand = canExpand;
3314
+ exports.canHaveChildren = canHaveChildren;
3315
+ exports.fader = fader;
3316
+ exports.findLinkItems = findLinkItems;
3317
+ exports.getItemStateProp = getItemStateProp;
3318
+ exports.hasActiveChild = hasActiveChild;
3319
+ exports.hasChildren = hasChildren;
3320
+ exports.hasExpandedChild = hasExpandedChild;
3321
+ exports.isExpanded = isExpanded;
3322
+ exports.isNavItemActive = isNavItemActive;
3323
+ exports.isNavItemType = isNavItemType;
3324
+ exports.routeChanges = routeChanges;
3325
+ exports.setDefaultState = setDefaultState;
3326
+ exports.setItemStateProp = setItemStateProp;
3327
+ exports.sideNavExpandStateChangeFn = sideNavExpandStateChangeFn;
3328
+ exports.sideToSide = sideToSide;
3329
+ exports.slider = slider;
3330
+ exports.stepper = stepper;
3331
+ exports.transformer = transformer;
3332
+ exports.ɵa = TheSeamSideNavService;
3333
+ exports.ɵb = TheSeamSchemaFormControlsModule;
3334
+ exports.ɵc = TheSeamSchemaFormCheckboxComponent;
3335
+ exports.ɵd = TheSeamSchemaFormSubmitComponent;
3336
+ exports.ɵe = TheSeamSchemaFormSelectComponent;
3337
+ exports.ɵf = TheSeamSchemaFormInputComponent;
3338
+ exports.ɵg = TheSeamSchemaFormNumberComponent;
3339
+ exports.ɵh = TheSeamSchemaFormSubmitSplitComponent;
3340
+
3341
+ Object.defineProperty(exports, '__esModule', { value: true });
3342
+
3343
+ })));
3344
+ //# sourceMappingURL=theseam-ui-common-framework.umd.js.map