@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-datatable.js","sources":["../../../projects/ui-common/datatable/models/datatable-data-source.ts","../../../projects/ui-common/datatable/datatable-action-menu-item/datatable-action-menu-item.component.ts","../../../projects/ui-common/datatable/datatable-action-menu/datatable-action-menu.component.ts","../../../projects/ui-common/datatable/directives/datatable-cell-tpl.directive.ts","../../../projects/ui-common/datatable/services/datatable-column-changes.service.ts","../../../projects/ui-common/datatable/datatable-column/datatable-column.component.ts","../../../projects/ui-common/datatable/directives/datatable-filter.directive.ts","../../../projects/ui-common/datatable/datatable-menu-bar/datatable-menu-bar.component.ts","../../../projects/ui-common/datatable/datatable-row-detail/datatable-row-detail-tpl.directive.ts","../../../projects/ui-common/datatable/datatable-row-detail/datatable-row-detail.directive.ts","../../../projects/ui-common/datatable/directives/datatable-row-action-item.directive.ts","../../../projects/ui-common/datatable/tokens/datatable-preferences-accessor.ts","../../../projects/ui-common/datatable/utils/with-stored-column-info.ts","../../../projects/ui-common/datatable/services/datatable-preferences.service.ts","../../../projects/ui-common/datatable/tokens/datatable-accessor.ts","../../../projects/ui-common/datatable/datatable/datatable.component.ts","../../../projects/ui-common/datatable/datatable-column-preferences/datatable-column-preferences.component.ts","../../../projects/ui-common/datatable/datatable-column-preferences-button/datatable-column-preferences-button.component.ts","../../../projects/ui-common/datatable/datatable-export-button/datatable-export-button.component.ts","../../../projects/ui-common/datatable/datatable-menu-bar-column-center/datatable-menu-bar-column-center.component.ts","../../../projects/ui-common/datatable/datatable-menu-bar-column-left/datatable-menu-bar-column-left.component.ts","../../../projects/ui-common/datatable/datatable-menu-bar-column-right/datatable-menu-bar-column-right.component.ts","../../../projects/ui-common/datatable/datatable-menu-bar-row/datatable-menu-bar-row.component.ts","../../../projects/ui-common/datatable/tokens/menubar-item-data.ts","../../../projects/ui-common/datatable/datatable-menu-bar-text/datatable-menu-bar-text.component.ts","../../../projects/ui-common/datatable/directives/datatable-action-menu-item.directive.ts","../../../projects/ui-common/datatable/directives/datatable-action-menu-toggle.directive.ts","../../../projects/ui-common/datatable/models/datatable-gql-data-source.ts","../../../projects/ui-common/datatable/services/datatable-scrollbar-helper.service.ts","../../../projects/ui-common/datatable/datatable.module.ts","../../../projects/ui-common/datatable/theseam-ui-common-datatable.ts"],"sourcesContent":["import { DataSource } from '@angular/cdk/collections'\nimport { BehaviorSubject, Observable, of } from 'rxjs'\nimport { map, startWith, switchMap } from 'rxjs/operators'\n\nimport { DataFilterState } from '@theseam/ui-common/data-filters'\n\nimport { TheSeamDatatableAccessor } from './datatable-accessor'\nimport { TheSeamPageInfo } from './page-info'\nimport { SortItem } from './sort-item'\n\nexport abstract class DatatableDataSource<TRow> extends DataSource<TRow> {\n\n private readonly _datatableSubject = new BehaviorSubject<TheSeamDatatableAccessor | undefined>(undefined)\n\n public readonly sorts$: Observable<SortItem[]>\n public readonly filterStates$: Observable<DataFilterState[]>\n public readonly page$: Observable<TheSeamPageInfo>\n\n constructor() {\n super()\n\n this.sorts$ = this._datatableSubject.pipe(\n switchMap(_datatable => {\n if (!_datatable) {\n return of([])\n }\n\n return _datatable.sort.pipe(\n map(v => v.sorts),\n startWith(_datatable.sorts)\n )\n })\n )\n\n this.filterStates$ = this._datatableSubject.pipe(\n switchMap(_datatable => {\n if (!_datatable) {\n return of([])\n }\n\n return _datatable.filterStates\n })\n )\n\n this.page$ = this._datatableSubject.pipe(\n switchMap(_datatable => {\n if (!_datatable) {\n return of({\n offset: 0,\n pageSize: 0,\n limit: undefined,\n count: 0\n })\n }\n\n return _datatable.page.pipe(\n startWith(_datatable.pageInfo)\n )\n })\n )\n }\n\n // connect(): Observable<readonly TRow[]> {\n // return this.\n // }\n\n // disconnect(): void {\n // throw new Error('Method not implemented.')\n // }\n\n public setDatatableAccessor(accessor: TheSeamDatatableAccessor): void {\n this._datatableSubject.next(accessor)\n }\n\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output\n} from '@angular/core'\n\nimport { ThemeTypes } from '@theseam/ui-common/models'\n\n@Component({\n selector: 'seam-datatable-action-menu-item',\n template: ``,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableActionMenuItemComponent {\n\n @Input() label: string | undefined | null\n\n // tslint:disable-next-line:no-input-rename\n @Input('attr.href') href: string | undefined | null\n @Input() target: string | undefined | null\n\n // Allow routerLink inputs on menu item\n @Input() queryParams: {[k: string]: any} | undefined | null\n @Input() fragment: string | undefined | null\n @Input() queryParamsHandling: any\n @Input() preserveFragment: boolean| undefined | null\n @Input() skipLocationChange: boolean| undefined | null\n @Input() replaceUrl: boolean| undefined | null\n @Input() state: {[k: string]: any} | undefined | null\n @Input() routerLink: string | any[] | undefined | null\n\n @Input() confirmDialog: { message?: string, alert?: string | { message: string, type: ThemeTypes } } | undefined | null\n\n @Input() disabled: boolean | undefined | null\n\n @Output() readonly click = new EventEmitter<any>()\n\n}\n","import { ConnectionPositionPair } from '@angular/cdk/overlay'\nimport { Component, ContentChildren, QueryList } from '@angular/core'\nimport { NavigationExtras, Router } from '@angular/router'\n\nimport { faEllipsisH } from '@fortawesome/free-solid-svg-icons'\n\nimport { SeamConfirmDialogService } from '@theseam/ui-common/confirm-dialog'\n\nimport { DatatableActionMenuItemComponent } from '../datatable-action-menu-item/datatable-action-menu-item.component'\n\n@Component({\n selector: 'seam-datatable-action-menu',\n templateUrl: './datatable-action-menu.component.html',\n styleUrls: ['./datatable-action-menu.component.scss']\n})\nexport class DatatableActionMenuComponent {\n\n faEllipsisH = faEllipsisH\n\n @ContentChildren(DatatableActionMenuItemComponent) items?: QueryList<DatatableActionMenuItemComponent>\n\n /** @ignore */\n _actionMenuPositions: ConnectionPositionPair[] = [\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top',\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom',\n },\n {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top',\n },\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom',\n },\n ]\n\n constructor(\n private _confirmDialog: SeamConfirmDialogService,\n private _router: Router\n ) { }\n\n activateItem(event: any, item: DatatableActionMenuItemComponent) {\n if (item.confirmDialog) {\n this._confirmDialog.open(item.confirmDialog.message, item.confirmDialog.alert)\n .afterClosed()\n .subscribe(v => {\n if (v === 'confirm') {\n item.click.emit(event)\n if (item.href) {\n const win = window.open(item.href, item.target || undefined)\n // TODO: Consider if always setting opener to null is to restrictive\n // if (win && item.target && item.target.toLowerCase() === '_blank') {\n // win.opener = null\n // }\n } else {\n const extras: NavigationExtras = {}\n if (item.queryParams) { extras.queryParams = item.queryParams }\n if (item.fragment) { extras.fragment = item.fragment }\n if (item.queryParamsHandling) { extras.queryParamsHandling = item.queryParamsHandling }\n if (item.preserveFragment) { extras.preserveFragment = item.preserveFragment }\n if (item.skipLocationChange) { extras.skipLocationChange = item.skipLocationChange }\n if (item.replaceUrl) { extras.replaceUrl = item.replaceUrl }\n if (item.state) { extras.state = item.state }\n\n const commands = Array.isArray(item.routerLink) ? item.routerLink : [item.routerLink]\n this._router.navigate(commands, extras)\n }\n }\n })\n } else {\n item.click.emit(event)\n }\n }\n\n}\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamDatatableCellTpl]'\n})\nexport class DatatableCellTplDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { Injectable } from '@angular/core'\nimport { Observable, Subject } from 'rxjs'\n\n@Injectable()\nexport class DatatableColumnChangesService {\n\n private columnInputChanges = new Subject<undefined>()\n\n get columnInputChanges$(): Observable<undefined> {\n return this.columnInputChanges.asObservable()\n }\n\n onInputChange(): void {\n this.columnInputChanges.next(undefined)\n }\n\n}\n","import { Component, ContentChild, Input, OnChanges, OnInit, PipeTransform, SimpleChanges, TemplateRef } from '@angular/core'\n\nimport { ColumnChangesService } from '@marklb/ngx-datatable'\n\nimport { DatatableCellTplDirective } from '../directives/datatable-cell-tpl.directive'\nimport { DatatableColumnChangesService } from '../services/datatable-column-changes.service'\n\n// HACK: Union type prevents the not found warning\ntype _PipeTransform = PipeTransform | PipeTransform\n\n// TODO: The column component should implement `ITheSeamDatatableColumn`, since\n// providing some properties by input and some by template could be confusing.\n\n@Component({\n selector: 'seam-datatable-column',\n templateUrl: './datatable-column.component.html',\n styleUrls: ['./datatable-column.component.scss']\n})\nexport class DatatableColumnComponent implements OnInit, OnChanges {\n\n @Input() name: string | undefined | null\n @Input() prop: string | number | undefined | null\n\n @Input() flexGrow: number | undefined | null\n @Input() minWidth: number | undefined | null\n @Input() maxWidth: number | undefined | null\n @Input() width: number | undefined | null\n\n @Input() resizeable: boolean | undefined | null\n @Input() sortable: boolean | undefined | null\n @Input() draggable: boolean | undefined | null\n\n @Input() canAutoResize: boolean | undefined | null\n\n @Input() comparator: ((valueA: any, valueB: any, rowA?: any, rowB?: any, sortDirection?: 'asc' | 'desc') => -1 | 0 | 1) | undefined | null\n\n @Input() headerTemplate: TemplateRef<any> | undefined | null\n\n @Input() checkboxable: boolean | undefined | null\n @Input() headerCheckboxable: boolean | undefined | null\n\n @Input() headerClass: string | ((data: any) => string|any) | undefined | null\n @Input() cellClass: string | ((data: any) => string|any) | undefined | null\n\n @Input() frozenLeft: boolean | undefined | null\n @Input() frozenRight: boolean | undefined | null\n\n @Input() pipe: _PipeTransform | undefined | null\n\n @Input() isTreeColumn: boolean | undefined | null\n @Input() treeLevelIndent: number | undefined | null\n\n @Input() summaryFunc: ((cells: any[]) => any) | undefined | null\n @Input() summaryTemplate: TemplateRef<any> | undefined | null\n\n @Input() hidden: boolean | undefined | null\n\n private _isFirstChange = true\n\n @ContentChild(DatatableCellTplDirective, { static: true }) cellTplDirective?: DatatableCellTplDirective\n\n // tslint:disable-next-line: no-input-rename\n @Input('cellTemplate')\n _cellTemplateInput: TemplateRef<any> | undefined | null\n\n @ContentChild(DatatableCellTplDirective, { read: TemplateRef, static: true })\n _cellTemplateQuery?: TemplateRef<any>\n\n get cellTemplate(): TemplateRef<any> | undefined | null {\n return this._cellTemplateInput || this._cellTemplateQuery\n }\n\n // @Input('headerTemplate')\n // _headerTemplateInput: TemplateRef<any>;\n\n // @ContentChild(DataTableColumnHeaderDirective, { read: TemplateRef, static: true })\n // _headerTemplateQuery: TemplateRef<any>;\n\n // get headerTemplate(): TemplateRef<any> {\n // return this._headerTemplateInput || this._headerTemplateQuery;\n // }\n\n // @Input('treeToggleTemplate')\n // _treeToggleTemplateInput: TemplateRef<any>;\n\n // @ContentChild(DataTableColumnCellTreeToggle, { read: TemplateRef, static: true })\n // _treeToggleTemplateQuery: TemplateRef<any>;\n\n // get treeToggleTemplate(): TemplateRef<any> {\n // return this._treeToggleTemplateInput || this._treeToggleTemplateQuery;\n // }\n\n constructor(\n private _columnChangesService: DatatableColumnChangesService\n ) {}\n\n ngOnInit() { }\n\n ngOnChanges(changes: SimpleChanges) {\n if (this._isFirstChange) {\n this._isFirstChange = false\n } else {\n this._columnChangesService.onInputChange()\n }\n }\n\n public getCellDirective(): DatatableCellTplDirective | null {\n if (this.cellTplDirective) {\n return this.cellTplDirective\n }\n\n return null\n }\n\n}\n","import { Directive, Inject, Self } from '@angular/core'\n\nimport { IDataFilter, THESEAM_DATA_FILTER } from '@theseam/ui-common/data-filters'\n\n@Directive({\n selector: '[seamDatatableFilter]'\n})\nexport class DatatableFilterDirective {\n\n private _filter?: IDataFilter\n\n constructor(\n @Self() @Inject(THESEAM_DATA_FILTER) dataFilters: IDataFilter[]\n ) {\n if (dataFilters && dataFilters.length > 0) {\n this._filter = dataFilters[0]\n }\n }\n\n get filter() {\n return this._filter\n }\n\n}\n","import { AfterViewInit, Component, ContentChildren, EventEmitter, forwardRef, OnInit, QueryList } from '@angular/core'\n\nimport { IDataFilter, THESEAM_DATA_FILTER_CONTAINER } from '@theseam/ui-common/data-filters'\nimport { notNullOrUndefined } from '@theseam/ui-common/utils'\n\nimport { DatatableFilterDirective } from '../directives/datatable-filter.directive'\n\nexport const _THESEAM_DATA_FILTER_CONTAINER: any = {\n provide: THESEAM_DATA_FILTER_CONTAINER,\n // tslint:disable-next-line:no-use-before-declare\n useExisting: forwardRef(() => DatatableMenuBarComponent)\n}\n\n@Component({\n selector: 'seam-datatable-menu-bar',\n templateUrl: './datatable-menu-bar.component.html',\n styleUrls: ['./datatable-menu-bar.component.scss'],\n providers: [ _THESEAM_DATA_FILTER_CONTAINER ]\n})\nexport class DatatableMenuBarComponent implements OnInit, AfterViewInit {\n\n @ContentChildren(DatatableFilterDirective)\n get filterDirectives(): QueryList<DatatableFilterDirective> | undefined {\n return this._filterDirectives\n }\n set filterDirectives(value: QueryList<DatatableFilterDirective> | undefined) {\n this._filterDirectives = value\n this.filtersChanged.emit(this.filters())\n }\n private _filterDirectives: QueryList<DatatableFilterDirective> | undefined\n\n private _filtersArr: IDataFilter[] = []\n\n public readonly filtersChanged = new EventEmitter<IDataFilter[]>()\n\n constructor() { }\n\n ngOnInit() { }\n\n ngAfterViewInit() {\n // console.log('_filterDirectives', this._filterDirectives, this.filters())\n }\n\n public filters(): IDataFilter[] {\n const fDirectives = this._filterDirectives\n ? this._filterDirectives.map(f => f.filter).filter(notNullOrUndefined)\n : []\n\n const fArr = this._filtersArr\n .filter(f => fDirectives.findIndex(fd => fd.uid === f.uid) === -1)\n return [ ...fArr, ...fDirectives ]\n }\n\n public addFilter(dataFilter: IDataFilter): void {\n this._filtersArr.push(dataFilter)\n this.filtersChanged.emit(this.filters())\n }\n\n public removeFilter(dataFilter: IDataFilter): void {\n this._filtersArr = this._filtersArr.filter(f => f !== dataFilter)\n this.filtersChanged.emit(this.filters())\n }\n\n}\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamDatatableRowDetailTpl]'\n})\nexport class DatatableRowDetailTplDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { ContentChild, Directive, EventEmitter, Input, Output, TemplateRef } from '@angular/core'\n\nimport { DatatableRowDetailTplDirective } from './datatable-row-detail-tpl.directive'\n\n@Directive({\n // tslint:disable-next-line: directive-selector\n selector: 'seam-datatable-row-detail'\n})\nexport class TheSeamDatatableRowDetailDirective {\n\n /**\n * The detail row height is required especially\n * when virtual scroll is enabled.\n */\n @Input() rowHeight: number | ((row?: any, index?: number) => number) | undefined | null = 0\n\n // tslint:disable-next-line: no-input-rename\n @Input('template')\n _templateInput: TemplateRef<any> | undefined | null\n\n @ContentChild(DatatableRowDetailTplDirective, { read: TemplateRef, static: true })\n _templateQuery: TemplateRef<any> | undefined | null\n\n get template(): TemplateRef<any> | undefined | null {\n return this._templateInput || this._templateQuery\n }\n\n /**\n * Row detail row visbility was toggled.\n */\n // NOTE: This will trigger from the internal ngx-datatable toggle event.\n @Output() toggle: EventEmitter<any> = new EventEmitter()\n\n /**\n * Internal use for wrapper only.\n *\n * To avoid confusion with this directives output and the ngx-datatable\n * directive being wrapped, this directive emits `_toggle` stream to the\n * `ngx-datatable-row-detail` directive and emits it's `toggle` stream out to\n * this directives `toggle` stream.\n * @ignore\n */\n _toggle: EventEmitter<any> = new EventEmitter()\n\n /**\n * Toggle the expansion of the row\n */\n toggleExpandRow(row: any): void {\n this._toggle.emit({\n type: 'row',\n value: row\n })\n }\n\n /**\n * API method to expand all the rows.\n */\n expandAllRows(): void {\n this._toggle.emit({\n type: 'all',\n value: true\n })\n }\n\n /**\n * API method to collapse all the rows.\n */\n collapseAllRows(): void {\n this._toggle.emit({\n type: 'all',\n value: false\n })\n }\n\n}\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamDatatableRowActionItem]'\n})\nexport class DatatableRowActionItemDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { InjectionToken } from '@angular/core'\n\nimport { ITheSeamDatatablePreferencesAccessor } from '../models/preferences-accessor'\n\nexport const THESEAM_DATATABLE_PREFERENCES_ACCESSOR = new InjectionToken<ITheSeamDatatablePreferencesAccessor>(\n 'ITheSeamDatatablePreferencesAccessor'\n)\n","import { hasProperty } from '@theseam/ui-common/utils'\n\nimport { ITheSeamDatatablePreferencesColumn } from '../models/preferences'\nimport { TheSeamDatatableColumn } from '../models/table-column'\n\nexport function withStoredColumnInfo(\n columns: TheSeamDatatableColumn[],\n preferenceColumns: ITheSeamDatatablePreferencesColumn[]\n): TheSeamDatatableColumn[] {\n const _columns: TheSeamDatatableColumn[] = []\n for (const col of columns) {\n const storedCol = preferenceColumns.find(v => v.prop === col.prop)\n if (storedCol) {\n const _col = { ...col }\n if (hasProperty(storedCol, 'width')) { _col.width = Math.max(storedCol.width, 0) }\n _col.canAutoResize = storedCol.canAutoResize\n _columns.push(_col)\n } else {\n _columns.push(col)\n }\n }\n return _columns\n}\n","import { Inject, Injectable, isDevMode, Optional } from '@angular/core'\nimport { Observable, of, Subject } from 'rxjs'\nimport { map, shareReplay, startWith, switchMap, take, tap } from 'rxjs/operators'\n\nimport { hasProperty } from '@theseam/ui-common/utils'\nimport { ITheSeamDatatablePreferences, ITheSeamDatatablePreferencesColumn } from '../models/preferences'\nimport type { ITheSeamDatatablePreferencesAccessor } from '../models/preferences-accessor'\nimport { THESEAM_DATATABLE_PREFERENCES_ACCESSOR } from '../tokens/datatable-preferences-accessor'\nimport { withStoredColumnInfo } from '../utils/with-stored-column-info'\n\nexport interface IDatatablePreferencesMapRecord {\n observable: Observable<ITheSeamDatatablePreferences>\n refresh: Subject<void>\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DatatablePreferencesService {\n\n private readonly _tablePrefsMap = new Map<string, IDatatablePreferencesMapRecord>()\n private _pending = false\n\n public get pending() { return this._pending }\n\n constructor(\n @Optional() @Inject(THESEAM_DATATABLE_PREFERENCES_ACCESSOR) private _prefsAccessor?: ITheSeamDatatablePreferencesAccessor\n ) { }\n\n public preferences(preferenceKey: string): Observable<ITheSeamDatatablePreferences> {\n let prefs = this._tablePrefsMap.get(preferenceKey)\n if (!prefs) {\n const refreshSubject = new Subject<void>()\n prefs = {\n observable: this._createObservable(refreshSubject, preferenceKey),\n refresh: refreshSubject\n }\n this._tablePrefsMap.set(preferenceKey, prefs)\n }\n return prefs.observable\n }\n\n private _createObservable(refreshSubject: Subject<void>, prefKey: string): Observable<ITheSeamDatatablePreferences> {\n if (!this._prefsAccessor) {\n return of({})\n }\n\n const accessor = (key: string): Observable<string> =>\n this._prefsAccessor ? this._prefsAccessor.get(key) : of('{}')\n\n return refreshSubject.pipe(\n startWith({}),\n switchMap(() => accessor(prefKey).pipe(\n map(v => {\n if (!v) {\n return null\n }\n\n // TODO: Add a schema validator and migration tool to avoid parsing issues.\n try {\n return JSON.parse(v) as ITheSeamDatatablePreferences\n } catch (error) {\n if (isDevMode()) {\n console.error(error)\n }\n return null\n }\n }),\n map(v => !!v ? v : {}),\n // tap(v => console.log('preferences$', v))\n // tap(v => this._pending = false)\n )),\n shareReplay(1)\n )\n }\n\n public refresh(preferenceKey: string): void {\n const prefs = this._tablePrefsMap.get(preferenceKey)\n if (prefs) {\n this._pending = true\n prefs.refresh.next()\n }\n }\n\n // TODO: Improve this updating to be more generic, so we can quickly add\n // edits for different preference schema's.\n //\n // TODO: Decide if a send queue/merging of pending queue is needed to avoid\n // out of order updates. This shouldn't be an issue, with how fast preferences\n // will most likely be changing, but it could happen in situations, such as\n // network issues.\n public setColumnPreference(preferenceKey: string, column: ITheSeamDatatablePreferencesColumn): void {\n if (!this._prefsAccessor) {\n return\n }\n\n this._pending = true\n this.preferences(preferenceKey).pipe(\n map(prefs => {\n // Making the preferences immutable may not be necessary, but for now\n // this obj->str->obj will work as a naive clone.\n const columns = JSON.parse(JSON.stringify(prefs.columns || []))\n const _colPref = columns.find((c: any) => c.prop === column.prop)\n // console.log('has', _colPref)\n if (_colPref) {\n // console.log('hasProperty(column, \"width\"))', hasProperty(column, 'width'))\n if (hasProperty(column, 'width')) { _colPref.width = column.width }\n if (hasProperty(column, 'canAutoResize')) { _colPref.canAutoResize = column.canAutoResize }\n if (hasProperty(column, 'hidden')) { _colPref.hidden = column.hidden }\n } else {\n columns.push({ ...column })\n }\n const newPrefs: ITheSeamDatatablePreferences = { ...prefs, columns }\n return newPrefs\n }),\n // tap(v => console.log('newPrefs', v)),\n take(1),\n switchMap(newPrefs => this._prefsAccessor\n ? this._prefsAccessor.update(preferenceKey, JSON.stringify(newPrefs))\n : of(newPrefs)\n ),\n tap(() => this.refresh(preferenceKey))\n )\n .subscribe()\n }\n\n public withColumnPreferences<T>(preferenceKey: string, columns: T[]): Observable<T[]> {\n return this.preferences(preferenceKey).pipe(\n startWith({} as ITheSeamDatatablePreferences),\n map(preferences => preferences && preferences.columns\n ? withStoredColumnInfo(columns, preferences.columns) as T[]\n : columns\n )\n )\n }\n\n}\n","import { InjectionToken } from '@angular/core'\n\nimport { TheSeamDatatableAccessor } from '../models/datatable-accessor'\n\nexport const THESEAM_DATATABLE_ACCESSOR = new InjectionToken<TheSeamDatatableAccessor>(\n 'TheSeamDatatableAccessor'\n)\n","import { animate, style, transition, trigger } from '@angular/animations'\nimport { BooleanInput, coerceArray, NumberInput } from '@angular/cdk/coercion'\nimport {\n AfterContentInit, ChangeDetectionStrategy, Component, ContentChild, ContentChildren,\n ElementRef, EventEmitter, forwardRef, InjectionToken, Input, KeyValueDiffer,\n KeyValueDiffers, OnDestroy, OnInit, Output, QueryList, TemplateRef, ViewChild\n} from '@angular/core'\nimport { BehaviorSubject, combineLatest, Observable, of, Subject, Subscription } from 'rxjs'\nimport { concatMap, map, shareReplay, startWith, switchMap, takeUntil, tap } from 'rxjs/operators'\nimport { DatatableDataSource } from './../models/datatable-data-source'\n\nimport { faChevronDown, faChevronRight, faSpinner } from '@fortawesome/free-solid-svg-icons'\nimport {\n ColumnMode,\n ContextmenuType,\n DataTableColumnCellTreeToggle,\n DataTableColumnDirective,\n DataTableColumnHeaderDirective,\n DatatableComponent as NgxDatatableComponent,\n DatatableRowDetailDirective,\n setColumnDefaults,\n SortType,\n TableColumn,\n translateTemplates,\n TreeStatus\n} from '@marklb/ngx-datatable'\nimport type { SelectionType } from '@marklb/ngx-datatable'\n\nimport { InputBoolean, InputNumber } from '@theseam/ui-common/core'\nimport { composeDataFilters, composeDataFilterStates, DataFilterState, IDataFilter } from '@theseam/ui-common/data-filters'\nimport { IElementResizedEvent } from '@theseam/ui-common/shared'\nimport { hasProperty, notNullOrUndefined } from '@theseam/ui-common/utils'\n\nimport { CollectionViewer, DataSource, isDataSource, ListRange } from '@angular/cdk/collections'\nimport { isObservable } from 'rxjs'\nimport { DatatableActionMenuComponent } from '../datatable-action-menu/datatable-action-menu.component'\nimport { DatatableColumnComponent } from '../datatable-column/datatable-column.component'\nimport { DatatableMenuBarComponent } from '../datatable-menu-bar/datatable-menu-bar.component'\nimport { TheSeamDatatableRowDetailDirective } from '../datatable-row-detail/datatable-row-detail.directive'\nimport { DatatableRowActionItemDirective } from '../directives/datatable-row-action-item.directive'\nimport { TheSeamDatatableAccessor } from '../models/datatable-accessor'\nimport { TheSeamPageInfo } from '../models/page-info'\nimport { SortEvent } from '../models/sort-event'\nimport { SortItem } from '../models/sort-item'\nimport { TheSeamDatatableColumn } from '../models/table-column'\nimport { DatatableColumnChangesService } from '../services/datatable-column-changes.service'\nimport { DatatablePreferencesService } from '../services/datatable-preferences.service'\nimport { THESEAM_DATATABLE_ACCESSOR } from '../tokens/datatable-accessor'\n\nexport function _setColumnDefaults(columns: TheSeamDatatableColumn[]): void {\n for (const column of columns) {\n if (!column.hasOwnProperty('hidden')) {\n column.hidden = false\n }\n }\n setColumnDefaults(columns)\n}\n\n/**\n * NOTE: This is still being worked on. I am trying to figure out this model\n * because `ngx-datatable` just uses an untyped object and sets properties in\n * multiple places.\n */\nexport interface ICellContext {\n allRowsSelected: false\n\n selectFn: () => any\n sortDir?: 'asc' | 'desc'\n sortFn: () => any\n\n expanded?: boolean\n\n onCheckboxChangeFn?: any\n activateFn?: any\n row?: any\n group?: any\n value?: any\n column?: TheSeamDatatableColumn\n rowHeight?: number\n isSelected?: boolean\n rowIndex?: number\n treeStatus?: TreeStatus\n onTreeAction?: any\n}\n\n/**\n * Intended for internal classes declared by the `TheSeamDatatableModule`.\n */\nexport const THESEAM_DATATABLE = new InjectionToken<IDataFilter>('LibDatatable')\n\nexport const _THESEAM_DATATABLE: any = {\n provide: THESEAM_DATATABLE,\n // tslint:disable-next-line:no-use-before-declare\n useExisting: forwardRef(() => DatatableComponent)\n}\n\nexport const _THESEAM_DATATABLE_ACCESSOR: any = {\n provide: THESEAM_DATATABLE_ACCESSOR,\n // tslint:disable-next-line:no-use-before-declare\n useExisting: forwardRef(() => DatatableComponent)\n}\n\n// TODO: Reduce reliance on BehaviorSubject based observables, because it should\n// be easier to avoit over emitting observables.\n@Component({\n selector: 'seam-datatable',\n templateUrl: './datatable.component.html',\n styleUrls: ['./datatable.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [\n trigger('slideDown', [\n transition(':enter', [\n style({ transform: 'translateY(-20%)', opacity: '0' }),\n animate('250ms', style({ transform: 'translateY(0)', opacity: '1' })),\n ]),\n transition(':leave', [\n style({ transform: 'translateY(0)', opacity: '1' }),\n animate('250ms', style({ transform: 'translateY(-20%)', opacity: '0' })),\n ])\n ])\n ],\n providers: [ _THESEAM_DATATABLE, DatatableColumnChangesService, _THESEAM_DATATABLE_ACCESSOR ]\n})\nexport class DatatableComponent implements OnInit, OnDestroy, AfterContentInit, TheSeamDatatableAccessor, CollectionViewer {\n static ngAcceptInputType_externalPaging: BooleanInput\n static ngAcceptInputType_externalSorting: BooleanInput\n static ngAcceptInputType_externalFiltering: BooleanInput\n static ngAcceptInputType_loadingIndicator: BooleanInput\n static ngAcceptInputType_reorderable: BooleanInput\n static ngAcceptInputType_swapColumns: BooleanInput\n static ngAcceptInputType_groupExpansionDefault: BooleanInput\n static ngAcceptInputType_selectAllRowsOnPage: BooleanInput\n static ngAcceptInputType_summaryRow: BooleanInput\n static ngAcceptInputType_virtualization: BooleanInput\n static ngAcceptInputType_scrollbarV: BooleanInput\n static ngAcceptInputType_scrollbarH: BooleanInput\n static ngAcceptInputType_limit: NumberInput\n static ngAcceptInputType_count: NumberInput\n static ngAcceptInputType_offset: NumberInput\n static ngAcceptInputType_headerHeight: NumberInput\n static ngAcceptInputType_rowHeight: NumberInput\n static ngAcceptInputType_footerHeight: NumberInput\n static ngAcceptInputType_summaryHeight: NumberInput\n static ngAcceptInputType_columns: TheSeamDatatableColumn[] | undefined | null\n static ngAcceptInputType_sorts: SortItem[] | undefined | null\n\n faChevronDown = faChevronDown\n faChevronRight = faChevronRight\n faSpinner = faSpinner\n\n private readonly _ngUnsubscribe = new Subject()\n private readonly _filtersSubject = new BehaviorSubject<IDataFilter[]>([])\n private readonly _columnsObservable = new BehaviorSubject<Observable<TheSeamDatatableColumn[]> | undefined>(undefined)\n private readonly _dataSourceSubject = new BehaviorSubject<DataSource<any> | any[] | undefined>(undefined)\n\n public readonly filterStates: Observable<DataFilterState[]>\n\n get filters(): IDataFilter[] { return this._filtersSubject.value }\n\n public readonly filters$: Observable<IDataFilter[]>\n\n @Input()\n get preferencesKey(): string | undefined | null { return this._preferencesKey.value }\n set preferencesKey(value: string | undefined | null) { this._preferencesKey.next(value || undefined) }\n private _preferencesKey = new BehaviorSubject<string | undefined | null>(undefined)\n\n @Input() targetMarkerTemplate: any\n\n @Input()\n get columns(): TheSeamDatatableColumn[] { return this._columns.value }\n set columns(value: TheSeamDatatableColumn[]) {\n // console.log('columns input', value)\n this._columns.next(Array.isArray(value) ? value : [])\n }\n private _columns = new BehaviorSubject<TheSeamDatatableColumn[]>([])\n\n @Input()\n get rows(): any[] { return this._rows.value }\n set rows(value: any[]) { this._rows.next(value || []) }\n private _rows = new BehaviorSubject<any[]>([])\n\n public rows$: Observable<any[]>\n\n @Input() columnMode: ColumnMode | undefined | null = ColumnMode.force\n\n @Input() groupRowsBy: string | undefined | null\n @Input() groupedRows: any[] | undefined | null\n\n @Input() selected: any[] | undefined | null = []\n\n @Input() @InputBoolean() externalPaging: boolean = false\n @Input() @InputBoolean() externalSorting: boolean = false\n @Input() @InputBoolean() externalFiltering: boolean = false\n\n @Input() @InputNumber() limit: number | undefined\n @Input() @InputNumber(0) count: number = 0\n @Input() @InputNumber(0) offset: number = 0\n\n @Input() @InputBoolean() loadingIndicator: boolean = false\n\n @Input() selectionType: SelectionType | undefined | null\n\n @Input() @InputBoolean() reorderable: boolean = true\n @Input() @InputBoolean() swapColumns: boolean = false\n\n @Input() sortType: SortType | undefined | null = SortType.single\n\n @Input()\n get sorts(): SortItem[] { return this.ngxDatatable ? this.ngxDatatable.sorts : this._sorts }\n set sorts(value: SortItem[]) {\n this._sorts = notNullOrUndefined(value) ? coerceArray(value) : []\n }\n _sorts: SortItem[] = []\n\n @Input() cssClasses: any | undefined | null = {\n sortAscending: 'datatable-icon-up',\n sortDescending: 'datatable-icon-down',\n pagerLeftArrow: 'datatable-icon-left',\n pagerRightArrow: 'datatable-icon-right',\n pagerPrevious: 'datatable-icon-prev',\n pagerNext: 'datatable-icon-skip'\n }\n\n @Input() messages: any | undefined | null = {\n // Message to show when array is presented\n // but contains no values\n emptyMessage: 'No records found',\n\n // Footer total message\n totalMessage: 'total',\n\n // Footer selected message\n selectedMessage: 'selected'\n }\n\n @Input() rowIdentity: ((x: any) => any) | undefined | null = ((x: any) => x)\n\n @Input() rowClass: any | undefined | null\n\n @Input() selectCheck: any | undefined | null\n @Input() displayCheck: ((row: any, column?: any, value?: any) => boolean) | undefined | null\n\n @Input() @InputBoolean() groupExpansionDefault: boolean = false\n\n @Input() trackByProp: string | undefined | null\n\n @Input() @InputBoolean() selectAllRowsOnPage: boolean = false\n\n @Input() treeFromRelation: string | undefined | null\n @Input() treeToRelation: string | undefined | null\n @Input() @InputBoolean() summaryRow: boolean = false\n @Input() @InputNumber() summaryHeight: number = 30\n @Input() summaryPosition: string | undefined | null = 'top'\n\n @Input() @InputBoolean() virtualization: boolean = true\n\n @Input() @InputNumber() headerHeight: number = 50\n @Input() @InputNumber() rowHeight: number = 50\n @Input() @InputNumber() footerHeight: number = 40\n\n @Input() @InputBoolean() scrollbarV: boolean = true\n @Input() @InputBoolean() scrollbarH: boolean = true\n\n @Input()\n set dataSource(value: DataSource<any> | any[] | undefined | null) {\n if (value instanceof DatatableDataSource) {\n value.setDatatableAccessor(this)\n }\n this._dataSourceSubject.next(value || undefined)\n }\n\n @Output() readonly scroll = new EventEmitter<any>()\n @Output() readonly activate = new EventEmitter<any>()\n @Output() readonly select = new EventEmitter<any>()\n @Output() readonly sort = new EventEmitter<SortEvent>()\n @Output() readonly page = new EventEmitter<TheSeamPageInfo>()\n @Output() readonly reorder = new EventEmitter<any>()\n @Output() readonly resize = new EventEmitter<any>()\n @Output() readonly tableContextmenu = new EventEmitter<{ event: MouseEvent, type: ContextmenuType, content: any }>(false)\n @Output() readonly treeAction = new EventEmitter<any>()\n\n @Output() readonly actionRefreshRequest = new EventEmitter<void>()\n @Output() readonly hiddenColumnsChange = new EventEmitter<string[]>()\n\n @ContentChildren(DatatableColumnComponent) columnComponents?: QueryList<DatatableColumnComponent>\n\n @ContentChild(DatatableActionMenuComponent, { static: true }) actionMenu?: DatatableActionMenuComponent\n @ContentChild(DatatableRowActionItemDirective, { static: true }) rowActionItem?: DatatableRowActionItemDirective\n @ContentChild(TheSeamDatatableRowDetailDirective, { static: true }) rowDetail?: TheSeamDatatableRowDetailDirective\n\n @ContentChild(DatatableMenuBarComponent)\n get menuBarComponent(): DatatableMenuBarComponent | undefined { return this._menuBarComponent }\n set menuBarComponent(value: DatatableMenuBarComponent | undefined) {\n this._menuBarComponent = value\n\n if (this._menuBarSub) { this._menuBarSub.unsubscribe() }\n\n if (value) {\n this._setMenuBarFilters(value.filters())\n\n this._menuBarSub = this._menuBarComponent?.filtersChanged\n .subscribe(v => { this._setMenuBarFilters(value.filters()) })\n }\n }\n private _menuBarComponent: DatatableMenuBarComponent | undefined\n private _menuBarSub: Subscription | undefined\n\n @ViewChild(NgxDatatableComponent) ngxDatatable?: NgxDatatableComponent\n @ViewChild(NgxDatatableComponent, { read: ElementRef }) ngxDatatableElement?: ElementRef\n @ViewChild(DatatableRowDetailDirective) ngxRowDetail?: DatatableRowDetailDirective\n\n @ViewChild('actionMenuCellTpl', { static: true }) actionMenuCellTpl?: TemplateRef<DataTableColumnDirective>\n @ViewChild('treeToggleTpl', { static: true }) treeToggleTpl?: TemplateRef<DataTableColumnCellTreeToggle>\n @ViewChild('headerTpl', { static: true }) headerTpl?: TemplateRef<DataTableColumnHeaderDirective>\n @ViewChild('blankHeaderTpl', { static: true }) blankHeaderTpl?: TemplateRef<DataTableColumnHeaderDirective>\n @ViewChild('cellTypeSelectorTpl', { static: true }) cellTypeSelectorTpl?: TemplateRef<DataTableColumnDirective>\n\n public columnComponents$?: Observable<DatatableColumnComponent[]>\n private _colDiffersInp: { [propName: string]: KeyValueDiffer<any, any> } = {}\n private _colDiffersTpl: { [propName: string]: KeyValueDiffer<any, any> } = {}\n\n public readonly columns$: Observable<TheSeamDatatableColumn[]>\n public readonly displayColumns$: Observable<TheSeamDatatableColumn[]>\n\n viewChange: Observable<ListRange>\n\n private _rowDetailToggleSubscription = Subscription.EMPTY\n\n constructor(\n private readonly _columnChangesService: DatatableColumnChangesService,\n private readonly _differs: KeyValueDiffers,\n private readonly _preferences: DatatablePreferencesService\n ) {\n // this.displayColumns$ = this.hiddenColumns$.pipe(\n // switchMap(hiddenColumns => this.columns$.pipe(map(cols => cols.filter(c => hiddenColumns.findIndex(hc => hc === c.prop) === -1))))\n // )\n\n const applyPrefs = (cols: TheSeamDatatableColumn[]) => this._preferencesKey.pipe(\n switchMap(name => !!name\n // NOTE: This pending check is temporary to avoid table using previously\n // retrieved preference while the new one is being updated on the\n // server.\n ? !this._preferences.pending\n ? this._preferences.withColumnPreferences(name, cols)\n : of(cols)\n : of(cols)\n )\n )\n\n this.columns$ = this._columnsObservable.pipe(switchMap(colsObs => colsObs ?? of([])))\n\n this.displayColumns$ = this.columns$.pipe(\n map(cols => cols.filter(c => !c.hidden)),\n tap(v => this._removeUnusedDiffs(v)),\n switchMap(cols => applyPrefs(cols)),\n )\n\n this.filters$ = this._filtersSubject.asObservable()\n\n this.filterStates = this._filtersSubject.asObservable().pipe(\n switchMap(filters => composeDataFilterStates(filters))\n )\n\n // this.rows$ = this._filtersSubject.asObservable()\n // .pipe(\n // switchMap(filters => {\n // if (this.externalFiltering) {\n // return this._rows.asObservable()\n // }\n // return this._rows.asObservable().pipe(composeDataFilters(filters))\n // })\n // )\n\n this.rows$ = this._dataSourceSubject.pipe(\n switchMap(dataSource => {\n // console.log('dataSource', dataSource)\n let dataStream: Observable<any[]>\n\n if (isDataSource(dataSource)) {\n // console.log('~datasource')\n dataStream = dataSource.connect(this) as any\n } else if (isObservable(dataSource)) {\n // console.log('~observable')\n dataStream = dataSource as any\n } else if (Array.isArray(dataSource)) {\n // console.log('~array')\n dataStream = of(dataSource)\n } else {\n // console.log('~rows fallback')\n dataStream = this._rows.asObservable()\n // .pipe(tap(v => console.log('rows~', v)))\n }\n\n if (!this.externalFiltering) {\n // console.log('not using externalFiltering')\n dataStream = dataStream.pipe(\n switchMap(rows => this._filtersSubject.pipe(\n // tap(v => console.log('filters', v)),\n concatMap(filters => of(rows).pipe(composeDataFilters(filters))),\n // tap(v => console.log('composed filters', v)),\n ))\n )\n\n // dataStream = this._filtersSubject.pipe(\n // tap(v => console.log('filters', v)),\n // concatMap(filters => dataStream.pipe(composeDataFilters(filters))),\n // tap(v => console.log('composed filters', v)),\n // )\n }\n\n return dataStream.pipe(\n // tap(v => console.log('stream', v)),\n takeUntil(this._ngUnsubscribe)\n )\n })\n )\n\n // this.hiddenColumns$ = this._hiddenColumns.asObservable()\n\n // this._hiddenColumns.pipe(\n // skip(1),\n // distinctUntilChanged((a, b) => {\n // const _a = Array.isArray(a) ? a : []\n // const _b = Array.isArray(b) ? b : []\n // if (_a.length !== _b.length) { return false }\n // const _as = _a.sort()\n // const _bs = _b.sort()\n // return !_as.sort().every((value: string, index: number) => _bs[index] === value)\n // }),\n // tap(v => this.hiddenColumnsChange.emit(v)),\n // untilDestroyed(this)\n // ).subscribe(v => console.log('hiddenColumnsChange', v))\n\n // TODO: Implement viewChange for CollectionViewer.\n this.viewChange = this.page.pipe(map(p => ({ start: 0, end: p.count })))\n }\n\n ngOnInit() {\n if (this.rowDetail) {\n this._rowDetailToggleSubscription = this.rowDetail._toggle.subscribe(event => {\n if (this.ngxRowDetail) {\n this.ngxRowDetail.toggle.emit(event)\n }\n })\n }\n }\n\n ngOnDestroy() {\n this._rowDetailToggleSubscription.unsubscribe()\n }\n\n ngAfterContentInit() {\n this.columnComponents$ = this._columnChangesService.columnInputChanges$.pipe(\n map(() => this.columnComponents?.toArray() ?? []),\n startWith(this.columnComponents?.toArray() ?? []),\n shareReplay({ bufferSize: 1, refCount: true })\n )\n\n const _columns = combineLatest([\n this.columnComponents$,\n this._columns\n ]).pipe(\n map(v => this._getMergedTplAndInpColumns(v[0], v[1] ?? [])),\n // tap(v => console.log('cols', v)),\n shareReplay({ bufferSize: 1, refCount: true }),\n )\n this._columnsObservable.next(_columns)\n }\n\n private _getMergedTplAndInpColumns(\n tplCols: DatatableColumnComponent[],\n inpCols: TheSeamDatatableColumn[]\n ): TheSeamDatatableColumn[] {\n const cols: TheSeamDatatableColumn[] = []\n\n if (this.selectionType === 'checkbox') {\n const checkBoxCol: TheSeamDatatableColumn = {\n prop: '$$__checkbox__',\n name: '',\n width: 40,\n sortable: false,\n canAutoResize: false,\n draggable: false,\n resizeable: false,\n headerCheckboxable: true,\n checkboxable: true\n }\n\n cols.push(checkBoxCol)\n }\n\n const _tplCols = translateTemplates(<any>(tplCols || []))\n for (const col of inpCols) {\n const tplCol = _tplCols.find(t => t.prop === col.prop)\n // console.log({ col: { ...(col || {}) }, tplCol: { ...(tplCol || {}) } })\n\n const dtColumns = (this.ngxDatatable && this.ngxDatatable._internalColumns) || []\n const prev = dtColumns.find(c => c.prop === col.prop)\n\n const inpColDiff = this._getColDiff(col)\n const _inpCol = inpColDiff ? {} : this._hasPrevColDiff(col) ? {} : col\n if (inpColDiff) {\n inpColDiff.forEachRemovedItem(r => {\n if (prev && prev.hasOwnProperty(r.key)) {\n const k = r.key as keyof TableColumn\n delete prev[k]\n }\n })\n inpColDiff.forEachAddedItem(r => (_inpCol as any)[r.key] = r.currentValue)\n inpColDiff.forEachChangedItem(r => (_inpCol as any)[r.key] = r.currentValue)\n }\n\n let _tplCol: TheSeamDatatableColumn = {}\n if (tplCol) {\n const tplColDiff = tplCol ? this._getColDiff(tplCol, true) : undefined\n _tplCol = tplColDiff ? {} : this._hasPrevColDiff(col, true) ? {} : tplCol\n if (tplColDiff) {\n tplColDiff.forEachRemovedItem(r => {\n if (prev && prev.hasOwnProperty(r.key)) {\n const k = r.key as keyof TableColumn\n delete prev[k]\n }\n })\n tplColDiff.forEachAddedItem(r => (_tplCol as any)[r.key] = r.currentValue)\n tplColDiff.forEachChangedItem(r => (_tplCol as any)[r.key] = r.currentValue)\n }\n }\n\n const _col: TheSeamDatatableColumn = {\n ...(prev || {}),\n ..._inpCol,\n ..._tplCol\n }\n\n cols.push(_col)\n }\n\n if (this.rowActionItem) {\n const actionMenuColumn: TheSeamDatatableColumn = {\n prop: '$$__actionMenu__',\n name: '',\n width: 50,\n minWidth: 50,\n maxWidth: 50,\n resizeable: false,\n sortable: false,\n draggable: false,\n // TODO: Fix column auto sizing with fixed column and cell overlay before enabling.\n // frozenRight: true,\n cellTemplate: this.actionMenuCellTpl,\n headerTemplate: this.blankHeaderTpl\n }\n cols.push(actionMenuColumn)\n }\n\n for (const col of cols) {\n if (col.isTreeColumn && hasProperty(col, 'treeToggleTemplate')) {\n col.treeToggleTemplate = this.treeToggleTpl\n }\n\n if (!hasProperty(col, 'headerTemplate')) {\n col.headerTemplate = this.headerTpl\n }\n\n if (hasProperty(col, 'cellType')) {\n col.cellTemplate = this.cellTypeSelectorTpl\n }\n }\n\n // setColumnDefaults(cols)\n _setColumnDefaults(cols)\n\n\n // console.log(cols.map(c => ({ prop: c.prop, canAutoResize: c.canAutoResize })))\n\n return cols\n }\n\n private _hasPrevColDiff(col: TheSeamDatatableColumn, isTpl: boolean = false): boolean {\n if (!col || !col.prop) {\n return false\n }\n\n const differsMap = isTpl ? this._colDiffersTpl : this._colDiffersInp\n\n return !!differsMap\n }\n\n private _getColDiff(col: TheSeamDatatableColumn, isTpl: boolean = false) {\n if (!col || !col.prop) {\n return\n }\n\n const differsMap = isTpl ? this._colDiffersTpl : this._colDiffersInp\n\n if (!differsMap[col.prop]) {\n differsMap[col.prop] = this._differs.find({}).create()\n }\n\n const differ = differsMap[col.prop]\n\n const diff = differ.diff(col)\n return diff\n }\n\n private _removeUnusedDiffs(cols: TheSeamDatatableColumn[]) {\n const inpKeys = Object.keys(this._colDiffersInp)\n inpKeys.filter(k => cols.findIndex(c => c.prop === k) === -1)\n .forEach(k => { delete this._colDiffersInp[k] })\n\n const tplKeys = Object.keys(this._colDiffersTpl)\n tplKeys.filter(k => cols.findIndex(c => c.prop === k) === -1)\n .forEach(k => { delete this._colDiffersTpl[k] })\n }\n\n private _setMenuBarFilters(filters: IDataFilter[]) {\n // console.log('_setMenuBarFilters', filters)\n this._filtersSubject.next(filters || [])\n }\n\n public getColumnComponent(propName: string): DatatableColumnComponent | null {\n if (!this.columnComponents || this.columnComponents.length === 0) {\n return null\n }\n\n const tpl = this.columnComponents.find(t => t.prop === propName)\n if (tpl) {\n return tpl\n }\n\n return null\n }\n\n _columnData(col: any): { col: any, comp: DatatableColumnComponent | null } {\n const comp = this.getColumnComponent(col.prop)\n return { col, comp }\n }\n\n _getRowExpanded(row: any) {\n if (this.ngxDatatable && this.ngxDatatable.bodyComponent) {\n return this.ngxDatatable.bodyComponent.getRowExpanded(row)\n }\n return false\n }\n\n public trackByFnColumn(index: number, item: any) {\n return item.prop\n }\n\n public onDatatableResize(event: IElementResizedEvent) {\n if (this.ngxDatatable && this.ngxDatatableElement && this.ngxDatatableElement.nativeElement) {\n // TODO: Consider integrating this into the ngx-datatable library to avoid\n // multiple resize calls when the table resizes itself.\n this.ngxDatatable.recalculate()\n }\n }\n\n _onResize(event: any) {\n // console.log('resize', event, event.column.prop)\n this.resize.emit(event)\n\n if (event.isDone && this.columns) {\n const columns = this.columns\n const col = columns.find(c => c.prop === event.column.prop)\n if (col) {\n col.canAutoResize = false\n }\n\n if (this.preferencesKey) {\n const pref = { prop: event.column.prop, width: event.column.width, canAutoResize: false }\n this._preferences.setColumnPreference(this.preferencesKey, pref)\n }\n\n this.columns = [ ...this.columns ]\n }\n }\n\n _onTreeAction(event: any) {\n const index = event.rowIndex\n const row = event.row\n if (row.treeStatus === 'collapsed') {\n row.treeStatus = 'expanded'\n } else {\n row.treeStatus = 'collapsed'\n }\n this.rows = [ ...this.rows ]\n }\n\n public triggerActionRefreshRequest() {\n this.actionRefreshRequest.emit(undefined)\n }\n\n public get pageInfo(): TheSeamPageInfo {\n return {\n offset: this.ngxDatatable?.offset ?? 0,\n pageSize: this.ngxDatatable?.pageSize ?? 0,\n limit: this.ngxDatatable?.limit,\n count: this.ngxDatatable?.count ?? 0\n }\n }\n\n}\n","import { ChangeDetectionStrategy, Component, Inject, OnInit } from '@angular/core'\nimport { FormControl } from '@angular/forms'\nimport { combineLatest, Observable, of } from 'rxjs'\nimport { map } from 'rxjs/operators'\n\nimport { observeControlValue } from '@theseam/ui-common/utils'\n\nimport { DatatableComponent, THESEAM_DATATABLE } from '../datatable/datatable.component'\nimport { TheSeamDatatableColumn } from '../models/table-column'\n\n@Component({\n selector: 'seam-datatable-column-preferences',\n templateUrl: './datatable-column-preferences.component.html',\n styleUrls: ['./datatable-column-preferences.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableColumnPreferencesComponent implements OnInit {\n\n _columns$: Observable<TheSeamDatatableColumn[]>\n\n _filterControl = new FormControl()\n\n constructor(\n @Inject(THESEAM_DATATABLE) private _datatable: DatatableComponent,\n ) {\n this._columns$ = combineLatest([\n this._datatable.columns$ ?? of([]),\n observeControlValue<string>(this._filterControl)\n ]).pipe(\n map(([ columns, filter ]) => {\n const _filter = (filter || '').trim().toLowerCase()\n return columns.filter(c => `${(c.name || c.prop || '')}`.toLowerCase().indexOf(_filter) !== -1)\n }),\n map(cols => cols.sort((a, b) => a.prop === b.prop ? 0 : (<string>a.prop) > (<string>b.prop) ? 1 : -1))\n )\n }\n\n ngOnInit() { }\n\n _onChange(event: any, col: TheSeamDatatableColumn) {\n // TODO: Figure out the right way to update this value. If it is set by\n // column component input this may not work right.\n const columns = this._datatable.columns || []\n const column = columns.find(c => c.prop === col.prop)\n if (column) {\n column.hidden = !event.checked\n this._datatable.columns = [ ...columns ]\n }\n }\n\n _onCloseClick() {\n // TODO: Implement when PopoverRef is implemented.\n }\n\n}\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\nimport { faColumns } from '@fortawesome/free-solid-svg-icons'\n\n@Component({\n selector: 'seam-datatable-column-preferences-button',\n templateUrl: './datatable-column-preferences-button.component.html',\n styleUrls: ['./datatable-column-preferences-button.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableColumnPreferencesButtonComponent implements OnInit {\n\n icon = faColumns\n\n constructor() { }\n\n ngOnInit() { }\n\n}\n","import { ChangeDetectionStrategy, Component, Inject, Input, isDevMode, OnInit, Optional } from '@angular/core'\nimport { of } from 'rxjs'\nimport { catchError, concatMap, map, take, tap } from 'rxjs/operators'\n\nimport { faFileDownload } from '@fortawesome/free-solid-svg-icons'\nimport { ToastrService } from 'ngx-toastr'\n\nimport { IDataExporter } from '@theseam/ui-common/data-exporter'\nimport { DynamicValueHelperService, THESEAM_DYNAMIC_DATA } from '@theseam/ui-common/dynamic'\nimport { TheSeamLoadingOverlayService } from '@theseam/ui-common/loading'\nimport { hasProperty } from '@theseam/ui-common/utils'\n\nimport { DatatableComponent, THESEAM_DATATABLE } from '../datatable/datatable.component'\nimport { TheSeamDatatableColumn } from '../models/table-column'\n\nexport interface IDatatableExportButtonData {\n exporters: IDataExporter[]\n}\n\n@Component({\n selector: 'seam-datatable-export-button',\n templateUrl: './datatable-export-button.component.html',\n styleUrls: ['./datatable-export-button.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableExportButtonComponent implements OnInit {\n\n icon = faFileDownload\n\n @Input() exporters: IDataExporter[] | undefined | null\n\n get disabled() {\n return !(this.exporters && this.exporters.length > 0)\n }\n\n constructor(\n @Inject(THESEAM_DATATABLE) private readonly _datatable: DatatableComponent,\n private readonly _toastr: ToastrService,\n private readonly _loading: TheSeamLoadingOverlayService,\n private readonly _valueHelper: DynamicValueHelperService,\n @Optional() @Inject(THESEAM_DYNAMIC_DATA) private readonly _data?: IDatatableExportButtonData\n ) {\n if (this._data && this._data.exporters) {\n this.exporters = this._data.exporters\n }\n }\n\n ngOnInit() { }\n\n _onExporterClicked(exporter: IDataExporter) {\n if (!exporter.export) {\n const msg = isDevMode()\n ? `Exporter '${exporter.name}' is missing an export method.`\n : `${exporter.label} export is not available.`\n this._toastr.error(msg, 'Data Export')\n }\n\n const export$ = this._datatable.rows$\n .pipe(\n take(1),\n map(rows => {\n if (exporter.skipDataMapping) {\n return rows\n }\n return this._mapExportData(this._datatable.columns || [], rows)\n }),\n concatMap(data => exporter.export(data)),\n catchError(err => {\n console.error(err)\n return of(false)\n }),\n tap(success => {\n if (success) {\n this._toastr.success(`${exporter.label} export complete.`, 'Data Export')\n } else {\n this._toastr.error(`${exporter.label} export failed.`, 'Data Export')\n }\n })\n )\n\n this._loading.while(export$).subscribe()\n }\n\n private _mapExportData(columns: TheSeamDatatableColumn[], rows: any[]) {\n const data: any[] = []\n\n for (const row of rows) {\n const newRow: any = {}\n\n for (const col of columns) {\n if (!col.exportIgnore) {\n const colName = col.exportHeader || col.name || col.prop\n if (colName) {\n newRow[colName] = this._rowValue(col, row)\n }\n }\n }\n\n data.push(newRow)\n }\n\n return data\n }\n\n private _rowValue(column: TheSeamDatatableColumn, row: any) {\n if (hasProperty(column as any, 'exportValue')) {\n const context = { value: column.prop ? row[column.prop] : undefined, row }\n return this._valueHelper.evalSync((column as any).exportValue, context)\n }\n\n const colProp = column.prop\n if (colProp) {\n return row[colProp]\n }\n return undefined\n }\n\n}\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-datatable-menu-bar-column-center',\n templateUrl: './datatable-menu-bar-column-center.component.html',\n styleUrls: ['./datatable-menu-bar-column-center.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableMenuBarColumnCenterComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-datatable-menu-bar-column-left',\n templateUrl: './datatable-menu-bar-column-left.component.html',\n styleUrls: ['./datatable-menu-bar-column-left.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableMenuBarColumnLeftComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-datatable-menu-bar-column-right',\n templateUrl: './datatable-menu-bar-column-right.component.html',\n styleUrls: ['./datatable-menu-bar-column-right.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableMenuBarColumnRightComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-datatable-menu-bar-row',\n templateUrl: './datatable-menu-bar-row.component.html',\n styleUrls: ['./datatable-menu-bar-row.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableMenuBarRowComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { InjectionToken } from '@angular/core'\n\nimport { MenubarItemData } from '../models/menubar-item-data'\n\nexport const THESEAM_MENUBAR_ITEM_DATA = new InjectionToken<MenubarItemData>('MenubarItemData')\n","import { ChangeDetectionStrategy, Component, Inject, Input, OnInit, Optional } from '@angular/core'\n\nimport { hasProperty, notNullOrUndefined } from '@theseam/ui-common/utils'\nimport { DatatableMenuBarComponent } from './../datatable-menu-bar/datatable-menu-bar.component'\nimport { MenubarItemData } from './../models/menubar-item-data'\nimport { THESEAM_MENUBAR_ITEM_DATA } from './../tokens/menubar-item-data'\n\n\n@Component({\n selector: 'seam-datatable-menu-bar-text',\n templateUrl: './datatable-menu-bar-text.component.html',\n styleUrls: ['./datatable-menu-bar-text.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableMenuBarTextComponent implements OnInit {\n\n @Input()\n public value: string | undefined | null\n\n constructor(\n private _menuBar: DatatableMenuBarComponent,\n @Optional() @Inject(THESEAM_MENUBAR_ITEM_DATA) private _data: MenubarItemData | null\n ) {\n if (notNullOrUndefined(this._data)) {\n if (hasProperty(this._data, 'value')) {\n this.value = this._data.value\n }\n }\n }\n\n ngOnInit(): void { }\n\n}\n","// import { QueryParamsHandling } from '@angular/router/src/config'\nimport { ComponentType } from '@angular/cdk/portal'\nimport { HttpClient, HttpHeaders } from '@angular/common/http'\nimport { Component, Directive, EventEmitter, HostBinding, Input, isDevMode, OnDestroy, OnInit, Optional, Output } from '@angular/core'\nimport { Subscription } from 'rxjs'\n\n// import jexl from 'jexl'\n\nimport { TheSeamDynamicComponentLoader } from '@theseam/ui-common/dynamic-component-loader'\nimport { Modal } from '@theseam/ui-common/modal'\n\n//\n// TODO: Move the dynamic datatable logic out of this component when refactoring.\n//\n\n// export interface IActionMenuItemEndpointConfig {\n// /**\n// * Api endpoint.\n// */\n// endpoint?: string\n\n// endpointExpr?: string\n\n// method: 'GET' | 'POST' | 'PATCH' | 'DELETE'\n\n// bodyExpr?: string\n\n// paramsExpr?: string\n// }\n\n// export interface IActionMenuItemModalConfig {\n// component: ComponentType<{}> | string\n// }\n\nexport interface TheSeamDatatableRow {\n [prop: string]: any\n}\n\n@Directive({\n selector: '[seamDatatableActionMenuItem]'\n})\nexport class DatatableActionMenuItemDirective implements OnInit, OnDestroy {\n\n @HostBinding('class.list-group-item') _listGroupItem = true\n @HostBinding('class.list-group-item-action') _listGroupItemAction = true\n\n @Input() label: string | undefined | null\n\n // tslint:disable-next-line:no-input-rename\n @Input('attr.href') href: string | undefined | null\n @Input() target: string | undefined | null\n\n // Allow routerLink inputs on menu item\n @Input() queryParams: { [k: string]: any } | undefined | null\n @Input() fragment: string | undefined | null\n // @Input() queryParamsHandling: QueryParamsHandling\n @Input() queryParamsHandling: any | undefined | null\n @Input() preserveFragment: boolean | undefined | null\n @Input() skipLocationChange: boolean | undefined | null\n @Input() replaceUrl: boolean | undefined | null\n @Input() state: {[k: string]: any} | undefined | null\n @Input() routerLink: string | any[] | undefined | null\n\n @Input() confirmDialog: any\n\n // @Input()\n // get endpointConfig(): IActionMenuItemEndpointConfig { return this._endpointConfig }\n // set endpointConfig(value: IActionMenuItemEndpointConfig) {\n // this._endpointConfig = value\n // if (value) {\n // // TODO: Handle this in a way that can be canceled.\n // this._endpointConfigSub = this.click\n // .pipe(untilDestroyed(this))\n // .subscribe(e => this._handleEndpointAction())\n // } else {\n // if (this._endpointConfigSub) {\n // this._endpointConfigSub.unsubscribe()\n // }\n // }\n // }\n // private _endpointConfig: IActionMenuItemEndpointConfig\n // private _endpointConfigSub: Subscription\n\n // @Input()\n // get modalConfig(): IActionMenuItemModalConfig { return this._modalConfig }\n // set modalConfig(value: IActionMenuItemModalConfig) {\n // this._modalConfig = value\n // if (value) {\n // // TODO: Handle this in a way that can be canceled.\n // this._modalConfigSub = this.click\n // .pipe(untilDestroyed(this))\n // .subscribe(e => this._handleModalAction())\n // } else {\n // if (this._modalConfigSub) {\n // this._modalConfigSub.unsubscribe()\n // }\n // }\n // }\n // private _modalConfig: IActionMenuItemModalConfig\n // private _modalConfigSub: Subscription\n\n @Input() row: TheSeamDatatableRow | undefined | null\n\n @Output() click = new EventEmitter<any>()\n\n constructor(\n private readonly _modal: Modal,\n private readonly _dynamicComponentLoader: TheSeamDynamicComponentLoader,\n @Optional() private readonly _http: HttpClient,\n ) { }\n\n ngOnInit() { }\n\n ngOnDestroy() { }\n\n // private _handleEndpointAction() {\n // if (!this._http) {\n // if (isDevMode()) {\n // console.warn(`[DatatableActionMenuItemDirective] Endpoint actions require \\`HttpClientModule\\` to be imported.`)\n // }\n // return\n // }\n\n // // console.log('_handleEndpointAction')\n // // TODO: This should probably be done through a provider that uses the api.\n // if (isDevMode()) {\n // console.warn(`[DatatableActionMenuItemDirective] '_handleEndpointAction()' is not ready for production yet.`)\n // } else {\n // // I don't expect this to be attempted in prod before completed, so I am just adding a console warning.\n // console.warn(`Unable to complete request. Contact support for assistance.`)\n // }\n\n // let endpoint = ''\n // const method = this._endpointConfig.method\n // const context = { row: this.row }\n // // console.log('context', context)\n\n // if (this._endpointConfig.endpoint) {\n // endpoint = this._endpointConfig.endpoint\n // }\n\n // if (this._endpointConfig.endpointExpr) {\n // // TODO: Use async jexl.\n // endpoint = jexl.evalSync(this._endpointConfig.endpointExpr, context)\n // }\n\n // const url = `http://localhost:57648/api/${endpoint}`\n\n // const options: any = {}\n // if (this._endpointConfig.bodyExpr) {\n // // TODO: Use async jexl.\n // options.body = jexl.evalSync(this._endpointConfig.bodyExpr, context)\n // }\n // if (this._endpointConfig.paramsExpr) {\n // // TODO: Use async jexl.\n // options.params = jexl.evalSync(this._endpointConfig.paramsExpr, context)\n // }\n\n // const headers = new HttpHeaders({\n // 'Content-Type': 'application/json'\n // })\n\n // this._http.request<any>(method, url, { ...options, headers })\n // .subscribe()\n // // .subscribe(v => console.log('v', v))\n // }\n\n // private _handleModalAction() {\n // if (typeof this._modalConfig.component === 'string') {\n // this._dynamicComponentLoader.getComponentFactory(this._modalConfig.component)\n // .subscribe(componentFactory => {\n // const factoryResolver = (<any /* ComponentFactoryBoundToModule */>componentFactory).ngModule.componentFactoryResolver\n // this._modal.openFromComponent(componentFactory.componentType, undefined, factoryResolver)\n // })\n // } else {\n // this._modal.openFromComponent(this._modalConfig.component)\n // }\n // }\n\n}\n","import { ESCAPE } from '@angular/cdk/keycodes'\nimport { ConnectionPositionPair, Overlay, OverlayRef, PositionStrategy } from '@angular/cdk/overlay'\nimport { TemplatePortal } from '@angular/cdk/portal'\nimport { Directive, ElementRef, HostListener, Input, TemplateRef, ViewContainerRef } from '@angular/core'\n\n@Directive({\n selector: '[seamDatatableActionMenuToggle]',\n exportAs: 'seamDatatableActionMenuToggle'\n})\nexport class DatatableActionMenuToggleDirective {\n\n @Input() seamDatatableActionMenuToggle: TemplateRef<HTMLElement> | undefined | null\n\n private _active = false\n private _overlayRef?: OverlayRef\n private _actionDown = false\n\n @HostListener('document:keydown', [ '$event' ])\n _onKeydown(event: any) {\n if (event.keyCode === ESCAPE) {\n this.disable()\n }\n }\n\n @HostListener('click', [ '$event' ])\n _onClick(event: any) {\n this.toggle()\n }\n\n @HostListener('mousedown', [ '$event' ]) _mouseDown(event: any) { this.onInputDown(event) }\n @HostListener('pointerdown', [ '$event' ]) _pointerDown(event: any) { this.onInputDown(event) }\n\n @HostListener('mouseup', [ '$event' ]) _mouseUp(event: any) { this.onInputUp(event) }\n @HostListener('pointerup', [ '$event' ]) _pointerUp(event: any) { this.onInputUp(event) }\n\n constructor(\n private _elementRef: ElementRef<HTMLElement>,\n private _viewContainerRef: ViewContainerRef,\n private _overlay: Overlay,\n ) { }\n\n public get active(): boolean { return this._active }\n\n public toggle() {\n if (this._active) {\n this.disable()\n } else {\n this.enable()\n }\n }\n\n public enable() {\n if (this.active) { return }\n if (!this.seamDatatableActionMenuToggle) { return }\n\n this._overlayRef = this._overlay.create({\n hasBackdrop: false,\n positionStrategy: this.getOverlayPosition(this._elementRef.nativeElement),\n })\n\n this._overlayRef.attach(new TemplatePortal(this.seamDatatableActionMenuToggle, this._viewContainerRef))\n\n this._active = true\n }\n\n public disable() {\n if (!this.active) { return }\n\n if (this._overlayRef?.hasAttached()) {\n this._overlayRef.detach()\n }\n\n this._active = false\n }\n\n private getOverlayPosition(origin: HTMLElement): PositionStrategy {\n const positionStrategy = this._overlay.position()\n .flexibleConnectedTo(origin)\n .withPositions(this.getPositions())\n .withFlexibleDimensions(false)\n .withPush(false)\n\n return positionStrategy\n }\n\n private getPositions(): ConnectionPositionPair[] {\n return [\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top',\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom',\n },\n {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top',\n },\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom',\n },\n ]\n }\n\n onFocusChangeOverlay(event: any) {\n if (event === null) {\n if (!this._actionDown) {\n // this.disable()\n }\n }\n }\n\n onInputDown(event: any) {\n this._actionDown = true\n }\n\n onInputUp(event: any) {\n this._actionDown = false\n }\n\n}\n","import { CollectionViewer } from '@angular/cdk/collections'\nimport { combineLatest, Observable } from 'rxjs'\n\nimport { DatatableDataSource } from './datatable-data-source'\n\n\nexport class DatatableGqlDataSource<TRow> extends DatatableDataSource<TRow> {\n\n connect(collectionViewer: CollectionViewer): Observable<readonly TRow[]> {\n throw new Error('Method not implemented.')\n\n // return combineLatest([\n // this.sorts$,\n // this.filterStates$,\n // this.page$\n // ]).pipe()\n }\n\n disconnect(collectionViewer: CollectionViewer): void {\n throw new Error('Method not implemented.')\n }\n\n\n}\n","import { Injectable, NgZone } from '@angular/core'\n\nimport { OverlayScrollbarsService } from '@theseam/ui-common/scrollbar'\n\n@Injectable()\nexport class TheSeamDatatableScrollbarHelperService {\n\n width = 0\n\n /**\n * Animates programmatic scrolling, such as switching pages.\n *\n * NOTE: Animating the scrolling works, but the datatable may need changes\n * before this is enabled, because it seems a little stuttery when it moves.\n */\n animatedScrolling = false\n animatedScrollingTime = 250\n\n constructor(\n private _ngZone: NgZone,\n private _scrollbars: OverlayScrollbarsService\n ) { }\n\n onInitScroller(scroller: any): void {\n this._scrollbars.initializeInstance(scroller.parentElement, {\n callbacks: {\n onScroll: (e) => {\n this._ngZone.run(() => {\n scroller.onScrolled(e)\n })\n }\n }\n })\n }\n\n onDestroyScroller(scroller: any): void {\n this._scrollbars.destroyInstance(scroller.parentElement)\n }\n\n setOffset(scroller: any, offsetY: number): void {\n this._ngZone.runOutsideAngular(() => {\n if (this.animatedScrolling) {\n this._scrollbars.getInstance(scroller.parentElement)\n .scroll({ y: offsetY }, this.animatedScrollingTime)\n } else {\n this._scrollbars.getInstance(scroller.parentElement)\n .scroll({ y: offsetY })\n }\n })\n }\n}\n","import { A11yModule } from '@angular/cdk/a11y'\nimport { OverlayModule } from '@angular/cdk/overlay'\nimport { PortalModule } from '@angular/cdk/portal'\nimport { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { ReactiveFormsModule } from '@angular/forms'\nimport { RouterModule } from '@angular/router'\n\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome'\nimport { NgxDatatableModule, ScrollbarHelper } from '@marklb/ngx-datatable'\nimport { ToastrModule } from 'ngx-toastr'\n\nimport { TheSeamButtonsModule } from '@theseam/ui-common/buttons'\nimport { TheSeamCheckboxModule } from '@theseam/ui-common/checkbox'\nimport { TheSeamConfirmDialogModule } from '@theseam/ui-common/confirm-dialog'\nimport { TheSeamFormFieldModule } from '@theseam/ui-common/form-field'\nimport { TheSeamIconModule } from '@theseam/ui-common/icon'\nimport { TheSeamLoadingModule } from '@theseam/ui-common/loading'\nimport { TheSeamMenuModule } from '@theseam/ui-common/menu'\nimport { TheSeamPopoverModule } from '@theseam/ui-common/popover'\nimport { TheSeamSharedModule } from '@theseam/ui-common/shared'\nimport { TheSeamTableCellTypeModule } from '@theseam/ui-common/table-cell-type'\n\nimport { DatatableActionMenuItemComponent } from './datatable-action-menu-item/datatable-action-menu-item.component'\nimport { DatatableActionMenuComponent } from './datatable-action-menu/datatable-action-menu.component'\nimport { DatatableColumnPreferencesButtonComponent } from './datatable-column-preferences-button/datatable-column-preferences-button.component' // tslint:disable-line: max-line-length\nimport { DatatableColumnPreferencesComponent } from './datatable-column-preferences/datatable-column-preferences.component'\nimport { DatatableColumnComponent } from './datatable-column/datatable-column.component'\nimport { DatatableExportButtonComponent } from './datatable-export-button/datatable-export-button.component'\nimport { DatatableMenuBarColumnCenterComponent } from './datatable-menu-bar-column-center/datatable-menu-bar-column-center.component'\nimport { DatatableMenuBarColumnLeftComponent } from './datatable-menu-bar-column-left/datatable-menu-bar-column-left.component'\nimport { DatatableMenuBarColumnRightComponent } from './datatable-menu-bar-column-right/datatable-menu-bar-column-right.component'\nimport { DatatableMenuBarRowComponent } from './datatable-menu-bar-row/datatable-menu-bar-row.component'\nimport { DatatableMenuBarTextComponent } from './datatable-menu-bar-text/datatable-menu-bar-text.component'\nimport { DatatableMenuBarComponent } from './datatable-menu-bar/datatable-menu-bar.component'\nimport { DatatableRowDetailTplDirective } from './datatable-row-detail/datatable-row-detail-tpl.directive'\nimport { TheSeamDatatableRowDetailDirective } from './datatable-row-detail/datatable-row-detail.directive'\nimport { DatatableComponent } from './datatable/datatable.component'\nimport { DatatableActionMenuItemDirective } from './directives/datatable-action-menu-item.directive'\nimport { DatatableActionMenuToggleDirective } from './directives/datatable-action-menu-toggle.directive'\nimport { DatatableCellTplDirective } from './directives/datatable-cell-tpl.directive'\nimport { DatatableFilterDirective } from './directives/datatable-filter.directive'\nimport { DatatableRowActionItemDirective } from './directives/datatable-row-action-item.directive'\nimport { TheSeamDatatableScrollbarHelperService } from './services/datatable-scrollbar-helper.service'\n\n@NgModule({\n declarations: [\n DatatableComponent,\n DatatableCellTplDirective,\n DatatableColumnComponent,\n DatatableActionMenuComponent,\n DatatableActionMenuToggleDirective,\n DatatableActionMenuItemComponent,\n DatatableMenuBarComponent,\n DatatableFilterDirective,\n DatatableRowActionItemDirective,\n DatatableExportButtonComponent,\n TheSeamDatatableRowDetailDirective,\n DatatableRowDetailTplDirective,\n DatatableColumnPreferencesComponent,\n DatatableColumnPreferencesButtonComponent,\n DatatableActionMenuItemDirective,\n DatatableMenuBarRowComponent,\n DatatableMenuBarColumnLeftComponent,\n DatatableMenuBarColumnCenterComponent,\n DatatableMenuBarColumnRightComponent,\n DatatableMenuBarTextComponent,\n ],\n imports: [\n CommonModule,\n NgxDatatableModule,\n FontAwesomeModule,\n OverlayModule,\n A11yModule,\n TheSeamSharedModule,\n RouterModule,\n TheSeamMenuModule,\n TheSeamButtonsModule,\n TheSeamIconModule,\n ToastrModule,\n TheSeamLoadingModule,\n PortalModule,\n TheSeamConfirmDialogModule,\n TheSeamPopoverModule,\n TheSeamCheckboxModule,\n TheSeamFormFieldModule,\n ReactiveFormsModule,\n TheSeamTableCellTypeModule\n ],\n exports: [\n DatatableComponent,\n DatatableCellTplDirective,\n DatatableColumnComponent,\n DatatableActionMenuComponent,\n DatatableActionMenuItemComponent,\n DatatableMenuBarComponent,\n DatatableFilterDirective,\n DatatableRowActionItemDirective,\n DatatableExportButtonComponent,\n TheSeamDatatableRowDetailDirective,\n DatatableRowDetailTplDirective,\n DatatableColumnPreferencesComponent,\n DatatableColumnPreferencesButtonComponent,\n DatatableActionMenuItemDirective,\n DatatableMenuBarRowComponent,\n DatatableMenuBarColumnLeftComponent,\n DatatableMenuBarColumnCenterComponent,\n DatatableMenuBarColumnRightComponent,\n DatatableMenuBarTextComponent\n ],\n providers: [\n { provide: ScrollbarHelper, useClass: TheSeamDatatableScrollbarHelperService }\n ],\n entryComponents: [\n DatatableColumnPreferencesComponent,\n DatatableExportButtonComponent,\n DatatableMenuBarTextComponent\n ]\n})\nexport class TheSeamDatatableModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {THESEAM_DATATABLE_ACCESSOR as ɵa} from './tokens/datatable-accessor';"],"names":["NgxDatatableComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUsB,mBAA0B,SAAQ,UAAgB;IAQtE;QACE,KAAK,EAAE,CAAA;QAPQ,sBAAiB,GAAG,IAAI,eAAe,CAAuC,SAAS,CAAC,CAAA;QASvG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,CACvC,SAAS,CAAC,UAAU;YAClB,IAAI,CAAC,UAAU,EAAE;gBACf,OAAO,EAAE,CAAC,EAAE,CAAC,CAAA;aACd;YAED,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CACzB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,EACjB,SAAS,CAAC,UAAU,CAAC,KA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AAmC;oBACnC,qCAAqC;oBACrC,oCAAoC;oBACpC,6BAA6B;iBAC9B;gBACD,OAAO,EAAE;oBACP,YAAY;oBACZ,kBAAkB;oBAClB,iBAAiB;oBACjB,aAAa;oBACb,UAAU;oBACV,mBAAmB;oBACnB,YAAY;oBACZ,iBAAiB;oBACjB,oBAAoB;oBACpB,iBAAiB;oBACjB,YAAY;oBACZ,oBAAoB;oBACpB,YAAY;oBACZ,0BAA0B;oBAC1B,oBAAoB;oBACpB,qBAAqB;oBACrB,sBAAsB;oBACtB,mBAAmB;oBACnB,0BAA0B;iBAC3B;gBACD,OAAO,EAAE;oBACP,kBAAkB;oBAClB,yBAAyB;oBACzB,wBAAwB;oBACxB,4BAA4B;oBAC5B,gCAAgC;oBAChC,yBAAyB;oBACzB,wBAAwB;oBACxB,+BAA+B;oBAC/B,8BAA8B;oBAC9B,kCAAkC;oBAClC,8BAA8B;oBAC9B,mCAAmC;oBACnC,yCAAyC;oBACzC,gCAAgC;oBAChC,4BAA4B;oBAC5B,mCAAmC;oBACnC,qCAAqC;oBACrC,oCAAoC;oBACpC,6BAA6B;iBAC9B;gBACD,SAAS,EAAE;oBACT,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,sCAAsC,EAAE;iBAC/E;gBACD,eAAe,EAAE;oBACf,mCAAmC;oBACnC,8BAA8B;oBAC9B,6BAA6B;iBAC9B;aACF;;;ACtHD;;;;;;"}
@@ -0,0 +1,143 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, NgModuleFactory, Injectable, Compiler, Injector, Optional, Inject, NgModuleFactoryLoader, SystemJsNgModuleLoader, ANALYZE_FOR_ENTRY_COMPONENTS, NgModule } from '@angular/core';
3
+ import { ROUTES } from '@angular/router';
4
+ import { throwError, from, of } from 'rxjs';
5
+ import { switchMap, mergeMap } from 'rxjs/operators';
6
+ import { wrapIntoObservable } from '@theseam/ui-common/utils';
7
+
8
+ const DYNAMIC_COMPONENT = new InjectionToken('DYNAMIC_COMPONENT');
9
+ const DYNAMIC_MODULE = new InjectionToken('DYNAMIC_MODULE');
10
+ const DYNAMIC_COMPONENT_MANIFESTS = new InjectionToken('DYNAMIC_COMPONENT_MANIFESTS');
11
+
12
+ class TheSeamDynamicComponentLoader {
13
+ constructor(compiler, injector, manifests,
14
+ // TODO: Remove the loader now that all our code should have updated from
15
+ // the string `loadChildren` by now.
16
+ _loader) {
17
+ this.compiler = compiler;
18
+ this.injector = injector;
19
+ this._loader = _loader;
20
+ this._manifests = manifests || [];
21
+ }
22
+ /** Retrieve a ComponentFactory, based on the specified componentId (defined in the IDynamicComponentManifest array). */
23
+ getComponentFactory(componentId, injector) {
24
+ const manifest = this._manifests
25
+ .find(m => m.componentId === componentId);
26
+ if (!manifest) {
27
+ return throwError(`TheSeamDynamicComponentLoader: Unknown componentId "${componentId}"`);
28
+ }
29
+ // const path = manifest.loadChildren
30
+ // const p = this.load<T>(path, componentId, injector)
31
+ // return from(p)
32
+ const moduleFactory$ = this.loadModuleFactory(manifest.loadChildren);
33
+ return moduleFactory$
34
+ .pipe(switchMap(m => from(this.loadFactory(m, componentId, injector))));
35
+ }
36
+ load(path, componentId, injector) {
37
+ return this._loader.load(path)
38
+ .then((ngModuleFactory) => this.loadFactory(ngModuleFactory, componentId, injector));
39
+ }
40
+ loadModuleFactory(loadChildren) {
41
+ if (typeof loadChildren === 'string') {
42
+ return from(this._loader.load(loadChildren));
43
+ }
44
+ else {
45
+ return wrapIntoObservable(loadChildren()).pipe(mergeMap((t) => {
46
+ if (t instanceof NgModuleFactory) {
47
+ return of(t);
48
+ }
49
+ else {
50
+ return from(this.compiler.compileModuleAsync(t));
51
+ }
52
+ }));
53
+ }
54
+ }
55
+ loadFactory(ngModuleFactory, componentId, injector) {
56
+ const moduleRef = ngModuleFactory.create(injector || this.injector);
57
+ const dynamicComponentType = moduleRef.injector.get(DYNAMIC_COMPONENT, null);
58
+ if (!dynamicComponentType) {
59
+ const dynamicModule = moduleRef.injector.get(DYNAMIC_MODULE, null);
60
+ if (!dynamicModule) {
61
+ throw new Error('TheSeamDynamicComponentLoader: Dynamic module for'
62
+ + ` componentId "${componentId}" does not contain`
63
+ + ' DYNAMIC_COMPONENT or DYNAMIC_MODULE as a provider.');
64
+ }
65
+ if (dynamicModule.componentId !== componentId) {
66
+ throw new Error('TheSeamDynamicComponentLoader: Dynamic module for'
67
+ + `${componentId} does not match manifest.`);
68
+ }
69
+ const path = dynamicModule.loadChildren;
70
+ if (!path) {
71
+ throw new Error(`${componentId} unknown!`);
72
+ }
73
+ // return this.load<T>(path, componentId, injector)
74
+ const moduleFactory$ = this.loadModuleFactory(dynamicModule.loadChildren);
75
+ return moduleFactory$
76
+ .pipe(switchMap(m => from(this.loadFactory(m, componentId, injector))))
77
+ .toPromise();
78
+ }
79
+ return Promise.resolve(moduleRef.componentFactoryResolver.resolveComponentFactory(dynamicComponentType));
80
+ }
81
+ }
82
+ TheSeamDynamicComponentLoader.ɵprov = i0.ɵɵdefineInjectable({ factory: function TheSeamDynamicComponentLoader_Factory() { return new TheSeamDynamicComponentLoader(i0.ɵɵinject(i0.Compiler), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(DYNAMIC_COMPONENT_MANIFESTS, 8), i0.ɵɵinject(i0.NgModuleFactoryLoader, 8)); }, token: TheSeamDynamicComponentLoader, providedIn: "root" });
83
+ TheSeamDynamicComponentLoader.decorators = [
84
+ { type: Injectable, args: [{
85
+ providedIn: 'root'
86
+ },] }
87
+ ];
88
+ TheSeamDynamicComponentLoader.ctorParameters = () => [
89
+ { type: Compiler },
90
+ { type: Injector },
91
+ { type: Array, decorators: [{ type: Optional }, { type: Inject, args: [DYNAMIC_COMPONENT_MANIFESTS,] }] },
92
+ { type: NgModuleFactoryLoader, decorators: [{ type: Optional }] }
93
+ ];
94
+
95
+ class TheSeamDynamicComponentLoaderModule {
96
+ static forRoot(manifests) {
97
+ return {
98
+ ngModule: TheSeamDynamicComponentLoaderModule,
99
+ providers: [
100
+ TheSeamDynamicComponentLoader,
101
+ { provide: NgModuleFactoryLoader, useClass: SystemJsNgModuleLoader },
102
+ // provider for Angular CLI to analyze
103
+ { provide: ROUTES, useValue: manifests, multi: true },
104
+ // provider for TheSeamDynamicComponentLoader to analyze
105
+ { provide: DYNAMIC_COMPONENT_MANIFESTS, useValue: manifests },
106
+ ],
107
+ };
108
+ }
109
+ static forModule(manifest) {
110
+ return {
111
+ ngModule: TheSeamDynamicComponentLoaderModule,
112
+ providers: [
113
+ { provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: manifest, multi: true },
114
+ // provider for @angular/router to parse
115
+ { provide: ROUTES, useValue: manifest, multi: true },
116
+ // provider for TheSeamDynamicComponentLoader to analyze
117
+ { provide: DYNAMIC_MODULE, useValue: manifest }
118
+ ],
119
+ };
120
+ }
121
+ static forChild(component) {
122
+ return {
123
+ ngModule: TheSeamDynamicComponentLoaderModule,
124
+ providers: [
125
+ { provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: component, multi: true },
126
+ // provider for @angular/router to parse
127
+ { provide: ROUTES, useValue: [], multi: true },
128
+ // provider for TheSeamDynamicComponentLoader to analyze
129
+ { provide: DYNAMIC_COMPONENT, useValue: component },
130
+ ],
131
+ };
132
+ }
133
+ }
134
+ TheSeamDynamicComponentLoaderModule.decorators = [
135
+ { type: NgModule }
136
+ ];
137
+
138
+ /**
139
+ * Generated bundle index. Do not edit.
140
+ */
141
+
142
+ export { DYNAMIC_COMPONENT, DYNAMIC_COMPONENT_MANIFESTS, DYNAMIC_MODULE, TheSeamDynamicComponentLoader, TheSeamDynamicComponentLoaderModule };
143
+ //# sourceMappingURL=theseam-ui-common-dynamic-component-loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theseam-ui-common-dynamic-component-loader.js","sources":["../../../projects/ui-common/dynamic-component-loader/dynamic-component-tokens.ts","../../../projects/ui-common/dynamic-component-loader/dynamic-component-loader.service.ts","../../../projects/ui-common/dynamic-component-loader/dynamic-component-loader.module.ts","../../../projects/ui-common/dynamic-component-loader/theseam-ui-common-dynamic-component-loader.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core'\n\nexport const DYNAMIC_COMPONENT = new InjectionToken<any>('DYNAMIC_COMPONENT')\n\nexport const DYNAMIC_MODULE = new InjectionToken<any>('DYNAMIC_MODULE')\n\nexport const DYNAMIC_COMPONENT_MANIFESTS = new InjectionToken<any>('DYNAMIC_COMPONENT_MANIFESTS')\n","import { Compiler, ComponentFactory, Inject, Injectable, Injector, NgModuleFactory, NgModuleFactoryLoader, Optional } from '@angular/core'\nimport { Observable, of } from 'rxjs'\nimport { from, throwError } from 'rxjs'\nimport { mergeMap, switchMap } from 'rxjs/operators'\n\nimport { LoadChildren } from '@angular/router'\nimport { IDynamicComponentManifest } from './dynamic-component-manifest'\nimport {\n DYNAMIC_COMPONENT,\n DYNAMIC_COMPONENT_MANIFESTS,\n DYNAMIC_MODULE\n} from './dynamic-component-tokens'\n\nimport { wrapIntoObservable } from '@theseam/ui-common/utils'\n\n@Injectable({\n providedIn: 'root'\n})\nexport class TheSeamDynamicComponentLoader {\n\n private _manifests: IDynamicComponentManifest[]\n\n constructor(\n private compiler: Compiler,\n private injector: Injector,\n @Optional() @Inject(DYNAMIC_COMPONENT_MANIFESTS) manifests: IDynamicComponentManifest[],\n // TODO: Remove the loader now that all our code should have updated from\n // the string `loadChildren` by now.\n @Optional() private _loader: NgModuleFactoryLoader\n ) { this._manifests = manifests || [] }\n\n /** Retrieve a ComponentFactory, based on the specified componentId (defined in the IDynamicComponentManifest array). */\n getComponentFactory<T>(componentId: string, injector?: Injector): Observable<ComponentFactory<T>> {\n const manifest = this._manifests\n .find(m => m.componentId === componentId)\n if (!manifest) {\n return throwError(`TheSeamDynamicComponentLoader: Unknown componentId \"${componentId}\"`)\n }\n\n // const path = manifest.loadChildren\n\n // const p = this.load<T>(path, componentId, injector)\n // return from(p)\n\n const moduleFactory$ = this.loadModuleFactory(manifest.loadChildren)\n\n return moduleFactory$\n .pipe(switchMap(m => from(this.loadFactory<any>(m, componentId, injector))))\n }\n\n load<T>(path: string, componentId: string, injector?: Injector): Promise<ComponentFactory<T>> {\n return this._loader.load(path)\n .then((ngModuleFactory) => this.loadFactory<T>(ngModuleFactory, componentId, injector))\n }\n\n private loadModuleFactory(loadChildren: LoadChildren): Observable<NgModuleFactory<any>> {\n if (typeof loadChildren === 'string') {\n return from(this._loader.load(loadChildren))\n } else {\n return wrapIntoObservable(loadChildren()).pipe(mergeMap((t: any) => {\n if (t instanceof NgModuleFactory) {\n return of(t)\n } else {\n return from(this.compiler.compileModuleAsync(t))\n }\n }))\n }\n }\n\n private loadFactory<T>(ngModuleFactory: NgModuleFactory<any>, componentId: string, injector?: Injector): Promise<ComponentFactory<T>> {\n const moduleRef = ngModuleFactory.create(injector || this.injector)\n const dynamicComponentType = moduleRef.injector.get(DYNAMIC_COMPONENT, null)\n if (!dynamicComponentType) {\n const dynamicModule: IDynamicComponentManifest = moduleRef.injector.get(DYNAMIC_MODULE, null)\n\n if (!dynamicModule) {\n throw new Error(\n 'TheSeamDynamicComponentLoader: Dynamic module for'\n + ` componentId \"${componentId}\" does not contain`\n + ' DYNAMIC_COMPONENT or DYNAMIC_MODULE as a provider.',\n )\n }\n if (dynamicModule.componentId !== componentId) {\n throw new Error(\n 'TheSeamDynamicComponentLoader: Dynamic module for'\n + `${componentId} does not match manifest.`,\n )\n }\n\n const path = dynamicModule.loadChildren\n\n if (!path) {\n throw new Error(`${componentId} unknown!`)\n }\n\n // return this.load<T>(path, componentId, injector)\n const moduleFactory$ = this.loadModuleFactory(dynamicModule.loadChildren)\n\n return moduleFactory$\n .pipe(switchMap(m => from(this.loadFactory<any>(m, componentId, injector))))\n .toPromise()\n }\n\n return Promise.resolve(moduleRef.componentFactoryResolver.resolveComponentFactory<T>(dynamicComponentType))\n }\n}\n","import {\n ANALYZE_FOR_ENTRY_COMPONENTS,\n ModuleWithProviders,\n NgModule,\n NgModuleFactoryLoader,\n SystemJsNgModuleLoader,\n Type,\n} from '@angular/core'\nimport { ROUTES } from '@angular/router'\n\nimport { TheSeamDynamicComponentLoader } from './dynamic-component-loader.service'\nimport type { IDynamicComponentManifest } from './dynamic-component-manifest'\nimport {\n DYNAMIC_COMPONENT,\n DYNAMIC_COMPONENT_MANIFESTS,\n DYNAMIC_MODULE\n} from './dynamic-component-tokens'\n\n@NgModule()\nexport class TheSeamDynamicComponentLoaderModule {\n static forRoot(manifests: IDynamicComponentManifest[]): ModuleWithProviders<TheSeamDynamicComponentLoaderModule> {\n return {\n ngModule: TheSeamDynamicComponentLoaderModule,\n providers: [\n TheSeamDynamicComponentLoader,\n { provide: NgModuleFactoryLoader, useClass: SystemJsNgModuleLoader },\n // provider for Angular CLI to analyze\n { provide: ROUTES, useValue: manifests, multi: true },\n // provider for TheSeamDynamicComponentLoader to analyze\n { provide: DYNAMIC_COMPONENT_MANIFESTS, useValue: manifests },\n ],\n }\n }\n static forModule(manifest: IDynamicComponentManifest): ModuleWithProviders<TheSeamDynamicComponentLoaderModule> {\n return {\n ngModule: TheSeamDynamicComponentLoaderModule,\n providers: [\n { provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: manifest, multi: true },\n // provider for @angular/router to parse\n { provide: ROUTES, useValue: manifest, multi: true },\n // provider for TheSeamDynamicComponentLoader to analyze\n { provide: DYNAMIC_MODULE, useValue: manifest }],\n }\n }\n static forChild(component: Type<any>): ModuleWithProviders<TheSeamDynamicComponentLoaderModule> {\n return {\n ngModule: TheSeamDynamicComponentLoaderModule,\n providers: [\n { provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: component, multi: true },\n // provider for @angular/router to parse\n { provide: ROUTES, useValue: [], multi: true },\n // provider for TheSeamDynamicComponentLoader to analyze\n { provide: DYNAMIC_COMPONENT, useValue: component },\n ],\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAEa,iBAAiB,GAAG,IAAI,cAAc,CAAM,mBAA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EAAE,OAAO,EAAE,4BAA4B,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE;;gBAE3E,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;;gBAE9C,EAAE,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,SAAS,EAAE;aACpD;SACF,CAAA;KACF;;;YArCF,QAAQ;;;AClBT;;;;;;"}
@@ -0,0 +1,699 @@
1
+ import { __awaiter } from 'tslib';
2
+ import { HttpHeaders, HttpClient } from '@angular/common/http';
3
+ import * as i0 from '@angular/core';
4
+ import { InjectionToken, isDevMode, Injectable, Inject, Optional, Injector } from '@angular/core';
5
+ import { from, of } from 'rxjs';
6
+ import { switchMap, map } from 'rxjs/operators';
7
+ import { isAbsoluteUrl, hasProperty, notNullOrUndefined } from '@theseam/ui-common/utils';
8
+ import { Modal } from '@theseam/ui-common/modal';
9
+ import * as i2 from '@theseam/ui-common/confirm-dialog';
10
+ import { SeamConfirmDialogService } from '@theseam/ui-common/confirm-dialog';
11
+ import { THESEAM_DATA_EXPORTER } from '@theseam/ui-common/data-exporter';
12
+ import { DatePipe } from '@angular/common';
13
+ import jexl from 'jexl';
14
+
15
+ const THESEAM_DYNAMIC_VALUE_EVALUATOR = new InjectionToken('Evaluator that can be used for evaluating a DynamicValue');
16
+
17
+ /**
18
+ *
19
+ */
20
+ class DynamicValueHelperService {
21
+ constructor(evaluators) {
22
+ this._evaluatorMap = new Map();
23
+ // Only one evaluator should exist for a type, so map them for faster lookup.
24
+ for (const e of evaluators) {
25
+ if (isDevMode()) {
26
+ if (this._evaluatorMap.has(e.type)) {
27
+ console.warn(`[DynamicValueHelperService] Multiple evaluators found for type '${e.type}'`);
28
+ }
29
+ }
30
+ this._evaluatorMap.set(e.type, e);
31
+ }
32
+ }
33
+ /**
34
+ * Evaluate a dynamic value to its actual value.
35
+ *
36
+ * TODO: Improve context and return typing.
37
+ */
38
+ eval(value, context) {
39
+ if (this.isEvaluatableType(value, true)) {
40
+ return this._evalEvaluatable(value, context);
41
+ }
42
+ // Use `evalSync` if `eval` isn't provided and `evalSync` is.
43
+ if (this.isEvaluatableType(value, false)) {
44
+ return Promise.resolve(this._evalEvaluatableSync(value, context));
45
+ }
46
+ return Promise.resolve(value);
47
+ }
48
+ /**
49
+ * Evaluate a dynamic value to its actual value.
50
+ *
51
+ * TODO: Improve context and return typing.
52
+ */
53
+ evalSync(value, context) {
54
+ if (this.isEvaluatableType(value, false)) {
55
+ return this._evalEvaluatableSync(value, context);
56
+ }
57
+ return value;
58
+ }
59
+ /**
60
+ * Checks if a DynamicValue is a type that can be evaluated.
61
+ */
62
+ isEvaluatableType(value, isAsync) {
63
+ if (value === undefined || value === null) {
64
+ return false;
65
+ }
66
+ if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
67
+ return false;
68
+ }
69
+ if (!value.type) {
70
+ return false;
71
+ }
72
+ if (this._evaluatorMap.has(value.type)) {
73
+ return true;
74
+ }
75
+ return false;
76
+ }
77
+ /**
78
+ *
79
+ */
80
+ _evalEvaluatable(value, context) {
81
+ const evaluator = this._evaluatorMap.get(value.type);
82
+ if (!evaluator) {
83
+ throw Error(`[DynamicValueHelperService] Evaluator '${value ? value.type : undefined}' not found.`);
84
+ }
85
+ if (!evaluator.eval) {
86
+ throw Error(`[DynamicValueHelperService] Evaluator '${value ? value.type : undefined}' does not implement 'eval()'.`);
87
+ }
88
+ return evaluator.eval(value, context);
89
+ }
90
+ /**
91
+ *
92
+ */
93
+ _evalEvaluatableSync(value, context) {
94
+ const evaluator = this._evaluatorMap.get(value.type);
95
+ if (!evaluator) {
96
+ throw Error(`[DynamicValueHelperService] Evaluator '${value ? value.type : undefined}' not found.`);
97
+ }
98
+ if (!evaluator.evalSync) {
99
+ throw Error(`[DynamicValueHelperService] Evaluator '${value ? value.type : undefined}' does not implement 'evalSync()'.`);
100
+ }
101
+ return evaluator.evalSync(value, context);
102
+ }
103
+ }
104
+ DynamicValueHelperService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DynamicValueHelperService_Factory() { return new DynamicValueHelperService(i0.ɵɵinject(THESEAM_DYNAMIC_VALUE_EVALUATOR)); }, token: DynamicValueHelperService, providedIn: "root" });
105
+ DynamicValueHelperService.decorators = [
106
+ { type: Injectable, args: [{
107
+ providedIn: 'root'
108
+ },] }
109
+ ];
110
+ DynamicValueHelperService.ctorParameters = () => [
111
+ { type: Array, decorators: [{ type: Inject, args: [THESEAM_DYNAMIC_VALUE_EVALUATOR,] }] }
112
+ ];
113
+
114
+ const VALID_REQUEST_METHODS = [
115
+ 'GET',
116
+ 'POST',
117
+ 'PUT',
118
+ 'PATCH',
119
+ 'DELETE'
120
+ ];
121
+ function isValidRequestMethod(method) {
122
+ return VALID_REQUEST_METHODS.indexOf(method) !== -1;
123
+ }
124
+ const THESEAM_API_CONFIG_DEFAULT = {
125
+ url: '/',
126
+ methodHeaders: {
127
+ 'GET': { 'Content-Type': 'application/json' },
128
+ 'POST': { 'Content-Type': 'application/json' },
129
+ 'PUT': { 'Content-Type': 'application/json' },
130
+ 'PATCH': { 'Content-Type': 'application/json' },
131
+ 'DELETE': { 'Content-Type': 'application/json' }
132
+ }
133
+ };
134
+ // export const THESEAM_API_CONFIG = new InjectionToken<IApiConfig[]>(
135
+ // 'Api config token, config options for actions that make an api request in library'
136
+ // )
137
+ const THESEAM_API_CONFIG = new InjectionToken('Api config token, config options for actions that make an api request in library', {
138
+ providedIn: 'root',
139
+ factory: () => [THESEAM_API_CONFIG_DEFAULT]
140
+ });
141
+
142
+ function dynamicActionApiNotSupportedError() {
143
+ return Error(`Dynamic action type 'api' not supported.`);
144
+ }
145
+
146
+ /**
147
+ * Handles execution of api call actions.
148
+ *
149
+ * This action service should be generic enough to
150
+ * work with any url endpoint, but will be biased towards our api where needed.
151
+ */
152
+ class DynamicActionApiService {
153
+ constructor(_valueHelper, _http, _configs) {
154
+ this._valueHelper = _valueHelper;
155
+ this._http = _http;
156
+ this._configs = _configs;
157
+ this.type = 'api';
158
+ this.label = 'Api Action';
159
+ }
160
+ exec(args, context) {
161
+ if (!this._isSupported()) {
162
+ throw dynamicActionApiNotSupportedError();
163
+ }
164
+ return from(this._getExecInfo(args, context)).pipe(switchMap(x => this._http.request(x.method, x.url, x.options))).toPromise();
165
+ }
166
+ getUiProps(args, context) {
167
+ return __awaiter(this, void 0, void 0, function* () {
168
+ return {
169
+ _actionDef: args,
170
+ triggerType: 'click'
171
+ };
172
+ });
173
+ }
174
+ _getExecInfo(args, context) {
175
+ return __awaiter(this, void 0, void 0, function* () {
176
+ const method = args.method || 'GET';
177
+ const url = yield this._getUrl(args, context);
178
+ if (url === null) {
179
+ throw new Error('[DynamicActionApiService] Unable to determine url.');
180
+ }
181
+ const body = yield this._getBody(args, context);
182
+ const params = yield this._getParams(args, context);
183
+ const headers = yield this._getHeaders(args, context);
184
+ const result = {
185
+ url,
186
+ method,
187
+ options: { body, params, headers }
188
+ };
189
+ return result;
190
+ });
191
+ }
192
+ _getUrl(args, context) {
193
+ return __awaiter(this, void 0, void 0, function* () {
194
+ const config = this._getApiConfig(args);
195
+ let endpoint = '';
196
+ if (args.endpoint) {
197
+ endpoint = yield this._valueHelper.eval(args.endpoint, context);
198
+ }
199
+ if (isAbsoluteUrl(endpoint)) {
200
+ return endpoint;
201
+ }
202
+ if (config && config.url !== undefined && config.url !== null) {
203
+ const url = yield this._valueHelper.eval(config.url, context);
204
+ if (typeof url === 'string') {
205
+ const addSlash = endpoint.length > 0 && endpoint.indexOf('/') !== 0 &&
206
+ url.length > 0 && url.indexOf('/') !== 0;
207
+ return `${config.url}${addSlash ? '/' : ''}${endpoint}`;
208
+ }
209
+ }
210
+ return null;
211
+ });
212
+ }
213
+ _getApiConfig(args) {
214
+ const configs = this._configs || [];
215
+ if (args.id === undefined || args.id === null) {
216
+ return configs.length > 0 ? configs[0] : null;
217
+ }
218
+ for (const config of configs) {
219
+ if (config.id && config.id === args.id) {
220
+ return config;
221
+ }
222
+ }
223
+ return null;
224
+ }
225
+ _getBody(args, context) {
226
+ return __awaiter(this, void 0, void 0, function* () {
227
+ if (args.body !== undefined && args.body !== null) {
228
+ return yield this._valueHelper.eval(args.body, context);
229
+ }
230
+ return undefined;
231
+ });
232
+ }
233
+ _getParams(args, context) {
234
+ return __awaiter(this, void 0, void 0, function* () {
235
+ if (args.params !== undefined && args.params !== null) {
236
+ return yield this._valueHelper.eval(args.params, context);
237
+ }
238
+ return undefined;
239
+ });
240
+ }
241
+ _getHeaders(args, context) {
242
+ return __awaiter(this, void 0, void 0, function* () {
243
+ let headers = {};
244
+ const config = this._getApiConfig(args);
245
+ // TODO: Make sure I am handling these values correctly. This could be
246
+ // much cleaner. Tests with all the js primitives, null, undefined, and
247
+ // dynamic action types should be written.
248
+ if (config && config.methodHeaders) {
249
+ const method = typeof args.method === 'string'
250
+ ? args.method.trim().toUpperCase()
251
+ : 'GET'; // Default method type
252
+ if (!isValidRequestMethod(method)) {
253
+ throw Error(`API request method must be one of ${VALID_REQUEST_METHODS}`);
254
+ }
255
+ const h = method && config.methodHeaders[method];
256
+ if (h !== undefined && h !== null) {
257
+ headers = (yield this._evalHeaders(h, context));
258
+ }
259
+ }
260
+ // TODO: Cleanup messing multiple level logic
261
+ const argHeaders = args.headers;
262
+ if (argHeaders !== undefined && argHeaders !== null) {
263
+ if (typeof argHeaders === 'string') {
264
+ headers = argHeaders;
265
+ }
266
+ else {
267
+ const _val = this._valueHelper.eval(argHeaders, context); // TODO: Fix argHeaders type
268
+ if (typeof _val === 'string') {
269
+ headers = _val;
270
+ }
271
+ else {
272
+ const keys = Object.keys(argHeaders);
273
+ for (const key of keys) {
274
+ if (!isValidRequestMethod(key)) {
275
+ throw Error(`API request method must be one of ${VALID_REQUEST_METHODS}`);
276
+ }
277
+ // TODO: Fix types
278
+ const value = argHeaders[key];
279
+ if (typeof value === 'string') {
280
+ headers[key] = value;
281
+ }
282
+ else if (Array.isArray(value)) {
283
+ headers[key] = (yield Promise.all(value.map((v) => __awaiter(this, void 0, void 0, function* () { return yield this._valueHelper.eval(v, context); }))));
284
+ }
285
+ else {
286
+ headers[key] = yield this._valueHelper.eval(value, context);
287
+ }
288
+ }
289
+ }
290
+ }
291
+ }
292
+ return new HttpHeaders(headers);
293
+ });
294
+ }
295
+ _evalHeaders(headers, context) {
296
+ return __awaiter(this, void 0, void 0, function* () {
297
+ let res = {};
298
+ // TODO: Cleanup messing multiple level logic
299
+ if (typeof headers === 'string') {
300
+ res = headers;
301
+ }
302
+ else {
303
+ const _val = this._valueHelper.eval(headers, context); // TODO: Fix argHeaders type
304
+ if (typeof _val === 'string') {
305
+ res = _val;
306
+ }
307
+ else {
308
+ const keys = Object.keys(headers);
309
+ for (const key of keys) {
310
+ const value = headers[key];
311
+ if (typeof value === 'string') {
312
+ res[key] = value;
313
+ }
314
+ else if (Array.isArray(value)) {
315
+ res[key] = yield Promise.all(value.map((v) => __awaiter(this, void 0, void 0, function* () { return yield this._valueHelper.eval(v, context); })));
316
+ }
317
+ else {
318
+ res[key] = yield this._valueHelper.eval(value, context);
319
+ }
320
+ }
321
+ }
322
+ }
323
+ return res;
324
+ });
325
+ }
326
+ _isSupported() {
327
+ if (isDevMode()) {
328
+ console.warn(`[DynamicActionApiService] Action is not ready for production yet.`);
329
+ }
330
+ else {
331
+ // I don't expect this to be attempted in prod before completed, so I am just adding a console warning.
332
+ console.warn(`Unable to complete request. Contact support for assistance.`);
333
+ }
334
+ if (!this._http) {
335
+ if (isDevMode()) {
336
+ console.warn(`[DynamicActionApiService] Endpoint actions require \`HttpClientModule\` to be imported.`);
337
+ }
338
+ return false;
339
+ }
340
+ return true;
341
+ }
342
+ }
343
+ DynamicActionApiService.decorators = [
344
+ { type: Injectable }
345
+ ];
346
+ DynamicActionApiService.ctorParameters = () => [
347
+ { type: DynamicValueHelperService },
348
+ { type: HttpClient, decorators: [{ type: Optional }] },
349
+ { type: Array, decorators: [{ type: Optional }, { type: Inject, args: [THESEAM_API_CONFIG,] }] }
350
+ ];
351
+
352
+ /**
353
+ * Handles execution of link actions.
354
+ */
355
+ class DynamicActionLinkService {
356
+ constructor(_valueHandler) {
357
+ this._valueHandler = _valueHandler;
358
+ this.type = 'link';
359
+ this.label = 'Link Action';
360
+ }
361
+ // exec?: (args: IDynamicActionDef<T>, context: D) => Observable<R>
362
+ // execSync?: (args: IDynamicActionDef<T>, context: D) => R
363
+ getUiProps(args, context) {
364
+ return __awaiter(this, void 0, void 0, function* () {
365
+ const link = yield this._valueHandler.eval(args.link);
366
+ const external = !!(yield this._valueHandler.eval(args.external));
367
+ const asset = !!(yield this._valueHandler.eval(args.asset));
368
+ const target = yield this._valueHandler.eval(args.target);
369
+ const queryParams = yield this._valueHandler.eval(args.queryParams);
370
+ const def = {
371
+ _actionDef: args,
372
+ triggerType: asset ? 'link-asset' : external ? 'link-external' : 'link',
373
+ linkUrl: link,
374
+ // blockClickExpr: { type: 'jexl', expr: 'event.button == 0 && event.ctrlKey == true ? true : false' }
375
+ };
376
+ if (target) {
377
+ if (!def.linkExtras) {
378
+ def.linkExtras = {};
379
+ }
380
+ def.linkExtras.target = target;
381
+ }
382
+ if (queryParams) {
383
+ if (!def.linkExtras) {
384
+ def.linkExtras = {};
385
+ }
386
+ def.linkExtras.queryParams = queryParams;
387
+ }
388
+ return def;
389
+ });
390
+ }
391
+ }
392
+ DynamicActionLinkService.decorators = [
393
+ { type: Injectable }
394
+ ];
395
+ DynamicActionLinkService.ctorParameters = () => [
396
+ { type: DynamicValueHelperService }
397
+ ];
398
+
399
+ const THESEAM_DYNAMIC_ACTION = new InjectionToken('Action for executing a DynamicAction');
400
+
401
+ class DynamicActionHelperService {
402
+ constructor(_valueHelper,
403
+ // TODO: Consider making the action confirm more generic
404
+ _confirmDialog, actions) {
405
+ this._valueHelper = _valueHelper;
406
+ this._confirmDialog = _confirmDialog;
407
+ this._actionMap = new Map();
408
+ // Only one evaluator should exist for a type, so map them for faster lookup.
409
+ for (const e of (actions || [])) {
410
+ if (isDevMode()) {
411
+ if (this._actionMap.has(e.type)) {
412
+ console.warn(`[DynamicActionHelperService] Multiple actions found for type '${e.type}'`);
413
+ }
414
+ }
415
+ this._actionMap.set(e.type, e);
416
+ }
417
+ }
418
+ /**
419
+ * Execute an async action.
420
+ *
421
+ * TODO: Improve context and return typing.
422
+ */
423
+ exec(actionDef, context) {
424
+ return __awaiter(this, void 0, void 0, function* () {
425
+ const action = this._actionMap.get(actionDef.type);
426
+ if (!action) {
427
+ throw Error(`[DynamicActionHelperService] Action '${actionDef ? actionDef.type : undefined}' not found.`);
428
+ }
429
+ if (!action.exec) {
430
+ throw Error(`[DynamicActionHelperService] Action '${actionDef ? actionDef.type : undefined}' does not implement 'exec()'.`);
431
+ }
432
+ if (yield this.requiresConfirmation(actionDef, context)) {
433
+ const confirmed = yield this.promptConfirmation(actionDef, context);
434
+ if (!confirmed) {
435
+ // TODO: Decide a good way to handle a rejected confirm.
436
+ return 'rejected';
437
+ }
438
+ }
439
+ return yield action.exec(actionDef, context);
440
+ });
441
+ }
442
+ /**
443
+ * Execute an action.
444
+ *
445
+ * TODO: Improve context and return typing.
446
+ */
447
+ execSync(actionDef, context) {
448
+ const action = this._actionMap.get(actionDef.type);
449
+ if (!action) {
450
+ throw Error(`[DynamicActionHelperService] Action '${actionDef ? actionDef.type : undefined}' not found.`);
451
+ }
452
+ if (!action.execSync) {
453
+ throw Error(`[DynamicActionHelperService] Action '${actionDef ? actionDef.type : undefined}' does not implement 'execSync()'.`);
454
+ }
455
+ return action.execSync(actionDef, context);
456
+ }
457
+ /**
458
+ * Get UI props for action.
459
+ *
460
+ * TODO: Improve context and return typing.
461
+ */
462
+ getUiProps(actionDef, context) {
463
+ const action = this._actionMap.get(actionDef.type);
464
+ if (!action) {
465
+ throw Error(`[DynamicActionHelperService] Action '${actionDef ? actionDef.type : undefined}' not found.`);
466
+ }
467
+ if (!action.getUiProps) {
468
+ throw Error(`[DynamicActionHelperService] Action '${actionDef ? actionDef.type : undefined}' does not implement 'getUiProps()'.`);
469
+ }
470
+ return action.getUiProps(actionDef, context);
471
+ }
472
+ /**
473
+ * Checks if a DynamicActionDef is a type that can be executed.
474
+ */
475
+ isExecutableType(value, isAsync) {
476
+ if (value === undefined || value === null) {
477
+ return false;
478
+ }
479
+ const action = this._actionMap.get(value.type);
480
+ if (!action) {
481
+ return false;
482
+ }
483
+ if (isAsync && !action.exec) {
484
+ return false;
485
+ }
486
+ if (!isAsync && !action.execSync) {
487
+ return false;
488
+ }
489
+ return true;
490
+ }
491
+ requiresConfirmation(actionDef, context) {
492
+ return __awaiter(this, void 0, void 0, function* () {
493
+ if (!hasProperty(actionDef, 'confirmDef')) {
494
+ return false;
495
+ }
496
+ if (hasProperty(actionDef.confirmDef, 'disabled')) {
497
+ return !(yield this._valueHelper.eval(actionDef.confirmDef.disabled, context));
498
+ }
499
+ return true;
500
+ });
501
+ }
502
+ requiresConfirmationSync(actionDef, context) {
503
+ if (!hasProperty(actionDef, 'confirmDef')) {
504
+ return false;
505
+ }
506
+ if (hasProperty(actionDef.confirmDef, 'disabled')) {
507
+ const disabled = !this._valueHelper.evalSync(actionDef.confirmDef.disabled, context);
508
+ if (!disabled) {
509
+ throw Error(`[DynamicActionHelperService] Action '${actionDef ? actionDef.type : undefined}' can't open ` +
510
+ `confirm dialog. Only async actions support confirm dialog.`);
511
+ }
512
+ return false;
513
+ }
514
+ throw Error(`[DynamicActionHelperService] Action '${actionDef ? actionDef.type : undefined}' can't open ` +
515
+ `confirm dialog. Only async actions support confirm dialog.`);
516
+ }
517
+ promptConfirmation(actionDef, context) {
518
+ return __awaiter(this, void 0, void 0, function* () {
519
+ if (!this._confirmDialog) {
520
+ throw Error(`[DynamicActionHelperService] Action '${actionDef ? actionDef.type : undefined}' can't open ` +
521
+ `confirm dialog. Confirm dialog service is not injected.`);
522
+ }
523
+ const confirmDef = actionDef.confirmDef;
524
+ if (!confirmDef) {
525
+ throw Error(`[DynamicActionHelperService] Action '${actionDef ? actionDef.type : undefined}' can't open ` +
526
+ `confirm dialog. Confirm def is not defined.`);
527
+ }
528
+ let message;
529
+ if (hasProperty(confirmDef, 'message')) {
530
+ message = yield this._valueHelper.eval(confirmDef.message, context);
531
+ }
532
+ let alert;
533
+ if (hasProperty(confirmDef, 'alert')) {
534
+ alert = yield this._valueHelper.eval(confirmDef.alert, context);
535
+ }
536
+ const modalDef = this._confirmDialog.open(message, alert);
537
+ return modalDef.afterClosed().pipe(map(v => v === 'confirm')).toPromise();
538
+ });
539
+ }
540
+ }
541
+ DynamicActionHelperService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DynamicActionHelperService_Factory() { return new DynamicActionHelperService(i0.ɵɵinject(DynamicValueHelperService), i0.ɵɵinject(i2.SeamConfirmDialogService, 8), i0.ɵɵinject(THESEAM_DYNAMIC_ACTION, 8)); }, token: DynamicActionHelperService, providedIn: "root" });
542
+ DynamicActionHelperService.decorators = [
543
+ { type: Injectable, args: [{
544
+ providedIn: 'root'
545
+ },] }
546
+ ];
547
+ DynamicActionHelperService.ctorParameters = () => [
548
+ { type: DynamicValueHelperService },
549
+ { type: SeamConfirmDialogService, decorators: [{ type: Optional }] },
550
+ { type: Array, decorators: [{ type: Optional }, { type: Inject, args: [THESEAM_DYNAMIC_ACTION,] }] }
551
+ ];
552
+
553
+ /**
554
+ * Handles execution of modal actions.
555
+ */
556
+ class DynamicActionModalService {
557
+ constructor(_valueHelper, _modal, _injector) {
558
+ this._valueHelper = _valueHelper;
559
+ this._modal = _modal;
560
+ this._injector = _injector;
561
+ this.type = 'modal';
562
+ this.label = 'Modal Action';
563
+ }
564
+ exec(args, context) {
565
+ return __awaiter(this, void 0, void 0, function* () {
566
+ const component = this._getComponent(args, context);
567
+ const data = this._getData(args, context);
568
+ return this._openModal(component, data).pipe(switchMap(modalRef => modalRef.afterClosed().pipe(switchMap(result => {
569
+ const resultAction = this._getModalResultAction(args, result);
570
+ // TODO: Come up with a way to pass data from previous action
571
+ if (resultAction) {
572
+ const dynamicActionHelper = this._getDynamicActionHelper();
573
+ return dynamicActionHelper.exec(resultAction, context);
574
+ }
575
+ return of(result);
576
+ })))).toPromise();
577
+ });
578
+ }
579
+ // execSync?: (args: IDynamicActionDef<T>, context: D) => R
580
+ getUiProps(args, context) {
581
+ return __awaiter(this, void 0, void 0, function* () {
582
+ return {
583
+ _actionDef: args,
584
+ triggerType: 'click'
585
+ };
586
+ });
587
+ }
588
+ /**
589
+ * Get the dynamic action helper from the injector. The injector order causes
590
+ * the dynamic action helper to not be in the injector when the constructor is
591
+ * called.
592
+ */
593
+ _getDynamicActionHelper() {
594
+ return this._injector.get(DynamicActionHelperService);
595
+ }
596
+ _getComponent(args, context) {
597
+ let component = args && args.component;
598
+ if (component) {
599
+ component = this._valueHelper.evalSync(component, context);
600
+ }
601
+ return component;
602
+ }
603
+ _getData(args, context) {
604
+ let data = args && args.data;
605
+ if (data) {
606
+ data = this._valueHelper.evalSync(data, context);
607
+ }
608
+ return data;
609
+ }
610
+ _getModalResultAction(args, result) {
611
+ if (args.resultActions && args.resultActions[result]) {
612
+ return args.resultActions[result];
613
+ }
614
+ }
615
+ _openModal(modal, data) {
616
+ // TODO: Replace with JSON valid config from input def model
617
+ const config = {
618
+ data,
619
+ modalSize: 'lg'
620
+ };
621
+ if (typeof modal === 'string') {
622
+ return this._modal.openFromLazyComponent(modal, config);
623
+ }
624
+ else {
625
+ return of(this._modal.openFromComponent(modal, config));
626
+ }
627
+ }
628
+ }
629
+ DynamicActionModalService.decorators = [
630
+ { type: Injectable }
631
+ ];
632
+ DynamicActionModalService.ctorParameters = () => [
633
+ { type: DynamicValueHelperService },
634
+ { type: Modal },
635
+ { type: Injector }
636
+ ];
637
+
638
+ class ExportersDataEvaluator {
639
+ constructor(_injector) {
640
+ this._injector = _injector;
641
+ this.type = 'exporters-data';
642
+ }
643
+ eval(value, context) {
644
+ return __awaiter(this, void 0, void 0, function* () {
645
+ return this.evalSync(value, context);
646
+ });
647
+ }
648
+ evalSync(value, context) {
649
+ return {
650
+ exporters: this._exporters(value.exporters || [])
651
+ };
652
+ }
653
+ _exporters(exporters) {
654
+ const dataExporters = (this._injector.get(THESEAM_DATA_EXPORTER) || []);
655
+ return exporters
656
+ .map(e => dataExporters.find(de => de.name === e))
657
+ .filter(notNullOrUndefined);
658
+ }
659
+ }
660
+ ExportersDataEvaluator.decorators = [
661
+ { type: Injectable }
662
+ ];
663
+ ExportersDataEvaluator.ctorParameters = () => [
664
+ { type: Injector }
665
+ ];
666
+
667
+ // NOTE: ng-packagr ignores the "types" and "typeRoots" settings in tsconfig.
668
+ class JexlEvaluator {
669
+ constructor() {
670
+ this.type = 'jexl';
671
+ this._jexl = new jexl.Jexl();
672
+ this._jexl.addTransform('date', (val, row) => new DatePipe('en-US').transform(val, 'yyyy-MM-dd h:mm aaa'));
673
+ }
674
+ eval(value, context) {
675
+ return this._jexl.eval(value.expr, context);
676
+ }
677
+ evalSync(value, context) {
678
+ return this._jexl.evalSync(value.expr, context);
679
+ }
680
+ }
681
+ JexlEvaluator.decorators = [
682
+ { type: Injectable }
683
+ ];
684
+ JexlEvaluator.ctorParameters = () => [];
685
+
686
+ // import { TableCellTypeName } from '@theseam/ui-common/table-cell-type'
687
+
688
+ const THESEAM_DYNAMIC_DATA = new InjectionToken('THESEAM_DYNAMIC_DATA');
689
+
690
+ function isActionType(action, typeName) {
691
+ return action.type === typeName;
692
+ }
693
+
694
+ /**
695
+ * Generated bundle index. Do not edit.
696
+ */
697
+
698
+ export { DynamicActionApiService, DynamicActionHelperService, DynamicActionLinkService, DynamicActionModalService, DynamicValueHelperService, ExportersDataEvaluator, JexlEvaluator, THESEAM_API_CONFIG, THESEAM_API_CONFIG_DEFAULT, THESEAM_DYNAMIC_ACTION, THESEAM_DYNAMIC_DATA, THESEAM_DYNAMIC_VALUE_EVALUATOR, VALID_REQUEST_METHODS, isActionType, isValidRequestMethod };
699
+ //# sourceMappingURL=theseam-ui-common-dynamic.js.map