@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-utils.js","sources":["../../../projects/ui-common/utils/get-attribute.ts","../../../projects/ui-common/utils/has-attribute.ts","../../../projects/ui-common/utils/cdk/get-closest-widget-cdk-drag.ts","../../../projects/ui-common/utils/form/get-control-name.ts","../../../projects/ui-common/utils/form/get-control-path.ts","../../../projects/ui-common/utils/form/observe-control-value.ts","../../../projects/ui-common/utils/form/observe-control-is-different.ts","../../../projects/ui-common/utils/form/wait-on-non-pending-status.ts","../../../projects/ui-common/utils/form/observe-control-status.ts","../../../projects/ui-common/utils/form/observe-control-valid.ts","../../../projects/ui-common/utils/form/observe-control-value-change.ts","../../../projects/ui-common/utils/has-property.ts","../../../projects/ui-common/utils/form/has-required-control.ts","../../../projects/ui-common/utils/form/is-empty-input-value.ts","../../../projects/ui-common/utils/operators/map-each.ts","../../../projects/ui-common/utils/operators/tap-first.ts","../../../projects/ui-common/utils/router/leaf-child-route.ts","../../../projects/ui-common/utils/router/will-have-data-prop.ts","../../../projects/ui-common/utils/router/operators/activated-routes-with-data-property.ts","../../../projects/ui-common/utils/router/route-snapshot-path-relative.ts","../../../projects/ui-common/utils/router/route-snapshot-path-full.ts","../../../projects/ui-common/utils/router/is-empty-url-route.ts","../../../projects/ui-common/utils/calc-percentage.ts","../../../projects/ui-common/utils/toggle-attribute.ts","../../../projects/ui-common/utils/input-masks.ts","../../../projects/ui-common/utils/is-null-or-undefined.ts","../../../projects/ui-common/utils/load-style.ts","../../../projects/ui-common/utils/load-style-sheet.ts","../../../projects/ui-common/utils/obj-utils.ts","../../../projects/ui-common/utils/file-utils.ts","../../../projects/ui-common/utils/not-null-or-undefined.ts","../../../projects/ui-common/utils/wait-on-condition-async.ts","../../../projects/ui-common/utils/polling-ticker.ts","../../../projects/ui-common/utils/refreshable.ts","../../../projects/ui-common/utils/wrap-into-observable.ts","../../../projects/ui-common/utils/is-absolute-url.ts","../../../projects/ui-common/utils/subscriber-count.ts","../../../projects/ui-common/utils/observe-query-list.ts","../../../projects/ui-common/utils/create-padding.ts","../../../projects/ui-common/utils/pad-end.ts","../../../projects/ui-common/utils/pad-start.ts","../../../projects/ui-common/utils/is-numeric.ts","../../../projects/ui-common/utils/fractional-digits-count.ts","../../../projects/ui-common/utils/theseam-ui-common-utils.ts"],"sourcesContent":["/**\n *\n */\nexport function getAttribute<E extends HTMLElement>(element: E, name: string): string | null {\n return element.getAttribute(name)\n}\n","/**\n *\n */\nexport function hasAttribute<E extends HTMLElement>(element: E, name: string): boolean {\n return element.hasAttribute(name)\n}\n","import { CdkDrag } from '@angular/cdk/drag-drop'\nimport { ElementRef } from '@angular/core'\n\nimport { getAttribute } from '../get-attribute'\nimport { hasAttribute } from '../has-attribute'\n\n/**\n * Finds the closest CdkDrag to an element by looking at the DOM.\n * @param element Element relative to which to look for a cdkDrag.\n * @param openDialogs References to the currently available cdkDrag.\n */\nexport function getClosestWidgetCdkDrag(element: ElementRef<HTMLElement>, dragDirectives: CdkDrag<any>[]) {\n let parent: HTMLElement | null = element.nativeElement.parentElement\n\n while (parent && !(parent.classList.contains('cdk-drag') && hasAttribute(parent, 'data-widget-id'))) {\n parent = parent.parentElement\n }\n\n const parentId = parent ? getAttribute(parent, 'data-widget-id') : null\n return parentId ?\n dragDirectives.find(drag => getAttribute(drag.getRootElement(), 'data-widget-id') === parentId)\n : null\n}\n","import { AbstractControl } from '@angular/forms'\n\n/**\n * Get the name of the control.\n *\n * Example:\n *\n * ```js\n * const group = new FormGroup({\n * name: new Control(),\n * age: new Control()\n * })\n *\n * for (const c of group.controls) {\n * console.log(getControlName(c))\n * }\n *\n * // Output:\n * // >> 'name'\n * // >> 'age'\n * ```\n */\nexport function getControlName(c: AbstractControl): string | null {\n if (!c.parent) { return null }\n // NOTE: Typed as 'any' because using string for array index is not valid for\n // array index type, but it works and we actually want the index as a string\n // anyway.\n const controls: any = c.parent.controls\n return Object.keys(controls).find(name => c === controls[name]) || null\n}\n","import { AbstractControl } from '@angular/forms'\n\nimport { getControlName } from './get-control-name'\n\n/**\n * Get the path to a control.\n *\n * The path is built by walking back the `parent` properties until `parent` is\n * `null`.\n *\n * Example:\n *\n * ```js\n * const group = new FormGroup({\n * name: new FormControl(),\n * address: new FormGroup({\n * city: new FormControl(),\n * state: new FormControl()\n * })\n * })\n *\n * const control = group.get('address.city')\n * console.log(getControlPath(control))\n *\n * // Output:\n * >> 'address.city'\n * ```\n *\n */\nexport function getControlPath(c: AbstractControl, path: string = ''): string | null {\n path = getControlName(c) + path\n\n if (c.parent && getControlName(c.parent)) {\n path = '.' + path\n return getControlPath(c.parent, path)\n } else {\n return path\n }\n}\n","import { AbstractControl } from '@angular/forms'\nimport { Observable, of } from 'rxjs'\nimport { startWith, switchMap } from 'rxjs/operators'\n\n/**\n * Observe the value of a control.\n */\nexport function observeControlValue<T = any>(control: AbstractControl): Observable<T> {\n return of(control)\n .pipe(switchMap(_control => _control.valueChanges\n .pipe(startWith(_control.value))\n ))\n}\n","import { AbstractControl } from '@angular/forms'\nimport { Observable } from 'rxjs'\nimport { distinctUntilChanged, map } from 'rxjs/operators'\n\nimport { observeControlValue } from './observe-control-value'\n\n/**\n * Observe the changed state of the input value from the time this function is\n * called.\n *\n * When this function is called the value is stored. Each time the control's\n * value changes the value is compared with the initial value. Currenly the\n * values are compared as stringified objects using `JSON.stringify`.\n *\n * TODO: Allow the value compare implementation to be optionally changed.\n */\nexport function observeControlIsDifferent(control: AbstractControl): Observable<boolean> {\n const _initial = JSON.stringify(control.value)\n return observeControlValue(control)\n .pipe(\n map(value => JSON.stringify(value) !== _initial),\n distinctUntilChanged(),\n )\n}\n","import { AbstractControl } from '@angular/forms'\nimport { interval, merge, Observable } from 'rxjs'\nimport { filter, map, mapTo, startWith, take } from 'rxjs/operators'\n\n/**\n * Wait on the status of a form control to not be `'PENDING'`.\n *\n * NOTE: This function is mainly just a work around for an issue where\n * `statusChanges` sometimes emits `'Pending'` without emitting another state\n * when complete. Seems to happen with async validators if the value changes\n * before completing, even if the validator completes(subscription `complete`\n * if observable).\n */\nexport function waitOnNonPendingStatus(control: AbstractControl): Observable<string> {\n return merge(\n control.statusChanges,\n interval(30).pipe(mapTo(control), map(c => c.status))\n )\n .pipe(startWith(control.status))\n .pipe(filter(v => v !== 'PENDING'))\n .pipe(take(1))\n}\n","import { AbstractControl } from '@angular/forms'\nimport { Observable, of } from 'rxjs'\nimport { startWith, switchMap } from 'rxjs/operators'\n\nimport { waitOnNonPendingStatus } from './wait-on-non-pending-status'\n\n/**\n * Observe the status of a control using a work around for status not changing\n * after pending.\n */\nexport function observeControlStatus(control: AbstractControl): Observable<string> {\n return of(control)\n .pipe(switchMap(_control => _control.statusChanges\n .pipe(startWith(_control.status))\n .pipe(switchMap(status => status === 'PENDING'\n ? waitOnNonPendingStatus(control)\n .pipe(startWith(status))\n : of(status)\n ))\n ))\n}\n","import { AbstractControl } from '@angular/forms'\nimport { Observable } from 'rxjs'\nimport { distinctUntilChanged, map, pairwise, startWith } from 'rxjs/operators'\n\nimport { observeControlStatus } from './observe-control-status'\n\n/**\n * Observe the valid state of a control.\n *\n * By default `waitOnPending` is false and the control states map to:\n * 'VALID' => true\n * 'INVALID' => false\n * 'PENDING' => false\n *\n * If `waitOnPending` is true the valid result when 'PENDING' remains the same\n * as it was before 'PENDING' until it is no longer 'PENDING'.\n */\nexport function observeControlValid(control: AbstractControl, waitOnPending: boolean = false): Observable<boolean> {\n if (waitOnPending) {\n return observeControlStatus(control)\n .pipe(distinctUntilChanged())\n .pipe(startWith(undefined))\n .pipe(pairwise())\n .pipe(map(v => ({ previous: v[0], current: v[1] })))\n .pipe(map(v => v.current === 'PENDING' ? v.previous : v.current))\n .pipe(map(status => status === 'VALID'))\n } else {\n return observeControlStatus(control)\n .pipe(distinctUntilChanged())\n .pipe(map(status => status === 'VALID'))\n }\n}\n","import { AbstractControl } from '@angular/forms'\nimport { Observable } from 'rxjs'\nimport { map, pairwise, startWith } from 'rxjs/operators'\n\nimport { observeControlValue } from './observe-control-value'\n\n/**\n * Observe the value of a control with the previous.\n */\nexport function observeControlValueChange(control: AbstractControl): Observable<{ previous: any, current: any }> {\n return observeControlValue(control)\n .pipe(\n startWith(undefined),\n pairwise(),\n map(v => ({ previous: v[0], current: v[1] }))\n )\n}\n","// Source: https://stackoverflow.com/a/59361497/7926298\nexport function hasProperty<T extends object, K extends keyof T>(\n style: T,\n prop: K\n// ): style is T & { [P in K]-?: Exclude<T[K], undefined> } {\n): style is T & Required<Record<K, Exclude<T[K], undefined>>> {\n return style.hasOwnProperty(prop) && style[prop] !== undefined\n}\n","import { AbstractControl } from '@angular/forms'\n\nimport { hasProperty } from '../has-property'\n\n/**\n * Check if control has a required control.\n *\n * ----------------------------------------------------------------------------\n * NOTE: I am not sure about if this should be used or not.\n *\n * From my understanding this assumes that all the validators do not have some\n * unexpected side-effect from being called like this. It could be argued that\n * the validator is flawed and should be fixed if that is the case, but I am not\n * convinced that is correct yet.\n *\n * An example that I think is valid for this argument: A FormControl configured\n * to only check validators when a specific condition happens, because of a\n * reason that it has to do a long process. In that situation should this\n * function be smart enough to consider that or is it up to the validator to\n * consider this function possibly being used.\n *\n * This seems to assume the required validator will always be a synchronous\n * validator. That is a valid assumption if thinking about showing a required\n * state in the UI, but a FormControl does not neccessarily have to be used in\n * UI. So, I think it could be valid to have an async validator that uses the\n * name `required` for it error, but I do not have a good example, so I could be\n * wrong.\n * ----------------------------------------------------------------------------\n *\n * Source: https://gist.github.com/jsdevtom/5589af349a395b37e699b67417ef025b\n * @experimental\n * @ignore\n */\nexport function hasRequiredControl(abstractControl: AbstractControl): boolean {\n if (abstractControl.validator) {\n const validator = abstractControl.validator({}as AbstractControl)\n if (validator && validator.required) {\n return true\n }\n }\n\n const _abstractControl: any = abstractControl\n if (hasProperty(_abstractControl, 'controls')) {\n for (const controlName in _abstractControl.controls) {\n if (_abstractControl.controls[controlName]) {\n if (hasRequiredControl(_abstractControl.controls[controlName])) {\n return true\n }\n }\n }\n }\n\n return false\n}\n","// Source: https://github.com/angular/angular/blob/master/packages/forms/src/validators.ts#L16\nexport function isEmptyInputValue(value: any): boolean {\n // we don't check for string here so it also works with arrays\n return value == null || value.length === 0\n}\n","import { from, Observable } from 'rxjs'\nimport { map, switchMap, toArray } from 'rxjs/operators'\n\nexport function mapEach<T, R>(predicate: (value: T) => R) {\n return (source$: Observable<T[]>): Observable<R[]> =>\n source$.pipe(switchMap(v => from(v).pipe(map(m => predicate(m)), toArray())))\n}\n","import { Observable } from 'rxjs'\nimport { tap } from 'rxjs/operators'\n\n/**\n * Like tap, but only calls predicate on first emission.\n */\nexport function tapFirst<T>(predicate: (value: T) => void) {\n let _initialized = false\n return (source$: Observable<T>): Observable<T> =>\n source$.pipe(\n tap(v => {\n if (!_initialized) {\n predicate(v)\n _initialized = true\n }\n })\n )\n}\n","import { ActivatedRoute } from '@angular/router'\n\nexport function leafChildRoute(activatedRoute: ActivatedRoute): ActivatedRoute {\n let route = activatedRoute\n while (route.firstChild) { route = route.firstChild }\n return route\n}\n","import { ActivatedRoute } from '@angular/router'\n\nfunction hasRouteConfigDataProp(route: ActivatedRoute, prop: string): boolean {\n return !!(route && route.routeConfig && route.routeConfig.data && route.routeConfig.data.hasOwnProperty(prop))\n}\n\nfunction hasRouteConfigResolveProp(route: ActivatedRoute, prop: string): boolean {\n return !!(route && route.routeConfig && route.routeConfig.resolve && route.routeConfig.resolve.hasOwnProperty(prop))\n}\n\nexport function willHaveDataProp(route: ActivatedRoute, prop: string): boolean {\n return hasRouteConfigDataProp(route, prop) || hasRouteConfigResolveProp(route, prop)\n}\n","import { ActivatedRoute, Data } from '@angular/router'\nimport { combineLatest, Observable } from 'rxjs'\nimport { map, switchMap } from 'rxjs/operators'\n\nimport { leafChildRoute } from '../leaf-child-route'\nimport { willHaveDataProp } from '../will-have-data-prop'\n\nexport interface IActivatedRouteWithData {\n route: ActivatedRoute\n data: Data\n}\n\nexport function activatedRoutesWithDataProperty(prop: string, mustHaveDefined: boolean = false) {\n const _data = (r: ActivatedRoute) => r.data.pipe(map(_d => ({ route: r, data: _d })))\n return (source$: Observable<ActivatedRoute>): Observable<IActivatedRouteWithData[]> =>\n source$.pipe(\n map(route => leafChildRoute(route)),\n map(route => route.pathFromRoot),\n switchMap(routes => combineLatest(routes.map(r => _data(r)))),\n map(v => v.filter(_v => _v.data.hasOwnProperty(prop))),\n map(v => mustHaveDefined\n ? v.filter(_v => willHaveDataProp(_v.route, prop))\n : v\n )\n )\n}\n","import { ActivatedRouteSnapshot } from '@angular/router'\n\nexport function routeSnapshotPathRelative(route: ActivatedRouteSnapshot) {\n return route.url.reduce((path, urlSegment) => path += '/' + urlSegment.path, '')\n}\n","import { ActivatedRouteSnapshot } from '@angular/router'\n\nimport { routeSnapshotPathRelative } from './route-snapshot-path-relative'\n\nexport function routeSnapshotPathFull(route: ActivatedRouteSnapshot) {\n return route.pathFromRoot.reduce((path, _route) => path += routeSnapshotPathRelative(_route), '')\n}\n","import { ActivatedRoute } from '@angular/router'\r\n\r\nexport function isEmptyUrlRoute(activatedRoute: ActivatedRoute): boolean {\r\n return activatedRoute.snapshot.url.length === 0\r\n}\r\n","export function calcPercentage(total: number, n: number) {\n return total && total > 0 ? (n / total) * 100 : 0\n}\n","/**\n * Polyfil for `Element.toggleAttribute`\n *\n * Toggles a value without a value. Useful for attributes, such as `disabled`,\n * `readonly`, and `hidden`, that only needs to exist on the `Element` without\n * requiring a value.\n *\n * Most browsers natively support this feature, but IE, which we still try to\n * support for at least the main parts of the app, has \"Unknown\" support of this\n * feature. Until IE support is dropped this polyfil should be used to toggle an\n * attribute.\n *\n * Source:\n * https://developer.mozilla.org/en-US/docs/Web/API/Element/toggleAttribute#Polyfill\n */\nexport function toggleAttribute(element: HTMLElement, name: string, force: boolean): boolean {\n if (force !== void 0) { force = !!force }\n\n if (element.getAttribute(name) !== null) {\n if (force) { return true }\n\n element.removeAttribute(name)\n return false\n } else {\n if (force === false) { return false }\n\n element.setAttribute(name, '')\n return true\n }\n}\n","export const phoneNumberMask = ['(', /[1-9]/, /\\d/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/]\n","export function isNullOrUndefined(value: any) {\n return value === undefined || value === null\n}\n","export function loadStyle(content: string): Promise<HTMLStyleElement> {\n return new Promise((resolve, reject) => {\n const s = document.createElement('style')\n s.onload = () => resolve(s)\n s.onerror = (e) => {\n document.head.removeChild(s)\n reject(e)\n }\n s.innerHTML = content\n document.head.appendChild(s)\n })\n}\n","export function loadStyleSheet(path: string): Promise<HTMLLinkElement> {\n return new Promise((resolve, reject) => {\n const s = document.createElement('link')\n s.onload = () => resolve(s)\n s.onerror = (e) => {\n document.head.removeChild(s)\n reject(e)\n }\n s.rel = 'stylesheet'\n s.href = path\n document.head.appendChild(s)\n })\n}\n","/** Returns object without property */\nexport function withoutProperty<T, K extends keyof T>(obj: T, propName: K): Pick<T, Exclude<keyof T, K>> {\n const { [propName]: _, ...without } = obj\n return without\n}\n\n/** Returns object without properties */\nexport function withoutProperties<T, K extends keyof T>(obj: T, propNames: K[]): Pick<T, Exclude<keyof T, K>> {\n let without: any = obj\n for (const propName of propNames) {\n without = withoutProperty(without, propName)\n }\n return without\n}\n\n/** Delete property of object */\nexport function deleteProperty<T extends {}, K extends keyof T>(obj: T, propName: K): void {\n if (obj.hasOwnProperty(propName)) {\n delete obj[propName]\n }\n}\n\n/** Delete properties of object */\nexport function deleteProperties<T, K extends keyof T>(obj: T, propNames: K[]): void {\n for (const propName of propNames) {\n deleteProperty(obj, propName)\n }\n}\n","import fileType from '@marklb/file-type'\n// import { Buffer } from 'buffer/'\nconst Buffer = require('buffer/').Buffer\n\nexport function readFileAsync(file: any): Promise<ArrayBuffer | null> {\n return new Promise<ArrayBuffer | null>((resolve, reject) => {\n const reader = new FileReader()\n reader.onload = () => {\n resolve(reader.result as ArrayBuffer | null)\n }\n reader.readAsArrayBuffer(file)\n })\n}\n\nexport async function readFileAsDataUrlAsync(file: Blob): Promise<string | null> {\n return new Promise<string | null>((resolve, reject) => {\n const reader = new FileReader()\n reader.onload = () => {\n resolve(reader.result as string | null)\n }\n reader.readAsDataURL(file)\n })\n}\n\nexport async function fileBufferToBlob(\n fileBuffer: Buffer,\n defaultMime: string = 'application/octet-stream'\n): Promise<Blob> {\n const fType = fileType(fileBuffer)\n const mime = (fType) ? fType.mime : defaultMime\n const blob = new Blob([fileBuffer as any], { type: mime })\n return blob\n}\n\nexport async function fileBufferToObjectUrl(\n fileBuffer: Buffer,\n defaultMime: string = 'application/octet-stream'\n): Promise<string> {\n const file = await fileBufferToBlob(fileBuffer, defaultMime)\n const fileURL = URL.createObjectURL(file)\n return fileURL\n}\n\nexport interface IFileData {\n ext?: string\n mime?: string\n blob: Blob\n}\n\nexport async function fileDataFromBuffer(\n fileBuffer: Buffer | Uint8Array | ArrayBuffer,\n defaultMime: string = 'application/octet-stream'\n): Promise<IFileData> {\n const _fileBuffer = Buffer.from(fileBuffer)\n const fType = fileType(_fileBuffer as any)\n const ext = fType && fType.ext || undefined\n const mime = fType ? fType.mime : defaultMime\n const blob = new Blob([_fileBuffer as any], { type: mime })\n const fileData: IFileData = { ext, mime, blob }\n return fileData\n}\n\nexport function openBlob(blob: Blob, target?: string, filename?: string) {\n // NOTE: IE and MSEdge do not allow Blob resources as a source for\n // tabs or iframes. msSaveOrOpenBlob is used as a workaround. I\n // haven't been able to find a way to just open the Blob file in\n // another tab yet for IE or MSEdge.\n if (window.navigator.msSaveOrOpenBlob) {\n window.navigator.msSaveOrOpenBlob(blob, filename)\n } else {\n const url = URL.createObjectURL(blob)\n const win = window.open(url, target)\n // TODO: Consider if always setting opener to null is to restrictive\n // if (win && target && target.toLowerCase() === '_blank') {\n // win.opener = null\n // }\n\n }\n}\n","export function notNullOrUndefined<T>(value: T | null | undefined): value is T {\n return value !== null && value !== undefined\n}\n","export async function waitOnConditionAsync(\n condition: () => boolean,\n timeoutDuration: number = -1,\n throwOnTimeout: boolean = true\n): Promise<any> {\n const timeStart: any = new Date()\n\n const _waitFunc = (callback: (boolean: boolean) => any) => {\n let conditionSuccess = false\n\n if (condition()) {\n callback(true)\n conditionSuccess = true\n }\n\n if (!conditionSuccess) {\n const timeNow: any = new Date()\n const duration = timeNow - timeStart\n if (timeoutDuration > -1 && duration > timeoutDuration) {\n if (throwOnTimeout) {\n throw new Error('Timed out waiting on condition.')\n } else {\n callback(false)\n }\n }\n\n setTimeout(() => { _waitFunc(callback) }, 30)\n }\n }\n\n return new Promise((resolve, reject) => {\n const fn = (b: boolean) => {\n resolve(b)\n }\n _waitFunc(fn)\n })\n}\n","import { isObservable, Observable, Subscriber, Subscription } from 'rxjs'\n\nclass IntervalTimer {\n\n private _intervalTime: number\n private _intervalId: number | null = null\n\n constructor(\n private _callback: () => void,\n intervalTime: number,\n startOnInit: boolean = true\n ) {\n this._intervalTime = intervalTime\n if (startOnInit) {\n this.start()\n }\n }\n\n set intervalTime(time: number) {\n this._intervalTime = time\n }\n\n public start(): void {\n if (this._intervalId === null) {\n this._intervalId = window.setInterval(() => {\n this._callback()\n }, this._intervalTime)\n }\n }\n\n public stop(): void {\n if (this._intervalId !== null) {\n clearInterval(this._intervalId)\n this._intervalId = null\n }\n }\n\n public reset(newIntervalTime?: number): void {\n if (newIntervalTime) {\n this.intervalTime = newIntervalTime\n }\n this.stop()\n this.start()\n }\n\n}\n\nexport type PollingActionFn<R> = () => R | Observable<R>\n\n// tslint:disable:no-inferrable-types\nexport class PollingTickerOptions {\n emitOnInit?: boolean = true\n}\n// tslint:enable:no-inferrable-types\n\n// TODO: Simplify complexity.\n\n/**\n * Call an action and emits the result to its subscriber on an interval or when\n * ticker emits. When the ticker emits, the interval time will reset.\n *\n * When subscribed to, the action will be called and emitted right away unless\n * the `emitOnInit` option is set to false.\n */\nexport function pollingTicker<R>(\n action: PollingActionFn<R>,\n pollingInterval?: number,\n ticker?: Observable<number | void>,\n options?: PollingTickerOptions\n): Observable<R> {\n return new Observable((subscriber: Subscriber<R>) => {\n const _opts = { ...(new PollingTickerOptions()), ...(options || {}) }\n\n let timer: IntervalTimer | null = null\n let actionSub: Subscription | null = null\n let tickerSub: Subscription | null = null\n\n try {\n const handleAction = () => {\n if (timer) { timer.stop() }\n\n const actionResult = action()\n\n if (isObservable(actionResult)) {\n if (actionSub) {\n actionSub.unsubscribe()\n }\n actionSub = actionResult.subscribe(\n (v: R) => { subscriber.next(v); if (timer) { timer.reset() } },\n (err) => { subscriber.error(err) },\n () => {\n actionSub = null\n if (timer) { timer.start() }\n }\n )\n } else {\n subscriber.next(actionResult)\n }\n if (timer) { timer.start() }\n }\n\n if (_opts.emitOnInit) {\n handleAction()\n }\n\n if (pollingInterval) {\n timer = new IntervalTimer(() => {\n handleAction()\n }, pollingInterval)\n }\n\n if (ticker) {\n tickerSub = ticker.subscribe(newPollingInterval => {\n if (newPollingInterval && timer) {\n timer.stop()\n if (newPollingInterval) {\n timer.intervalTime = newPollingInterval\n }\n }\n handleAction()\n if (timer) { timer.reset() }\n })\n }\n } catch (err) {\n subscriber.error(err)\n }\n\n return () => {\n if (timer) {\n timer.stop()\n }\n if (actionSub) {\n actionSub.unsubscribe()\n }\n if (tickerSub) {\n tickerSub.unsubscribe()\n }\n }\n })\n}\n","import { BehaviorSubject, isObservable, Observable, Subject } from 'rxjs'\nimport { distinctUntilChanged, mapTo, publishReplay, refCount, shareReplay, skip, take, tap } from 'rxjs/operators'\n\nimport { tapFirst } from './operators/tap-first'\nimport { pollingTicker } from './polling-ticker'\n\nexport class Refreshable<T> {\n\n private _initialized = false\n private _pollingInterval = new BehaviorSubject<number>(0)\n private _ticker = new Subject<void>()\n private _pending = new BehaviorSubject<boolean>(false)\n\n public data$: Observable<T>\n public pending$: Observable<boolean>\n\n constructor(\n action: () => (T | Observable<T>),\n pollingInterval?: number\n ) {\n if (pollingInterval !== null && pollingInterval !== undefined) {\n this._pollingInterval.next(pollingInterval)\n }\n\n this.pending$ = this._pending.asObservable()\n .pipe(\n distinctUntilChanged(),\n shareReplay(1)\n )\n\n this.data$ = pollingTicker(this._actionHandler(action), pollingInterval, this._ticker)\n .pipe(\n tapFirst(() => this._initialized = true),\n publishReplay(),\n refCount()\n )\n }\n\n get initialized(): boolean { return this._initialized }\n\n /**\n * Intercepts the action call to monitor pending state\n */\n private _actionHandler = (action: () => (T | Observable<T>)) => {\n return () => {\n this._pending.next(true)\n\n const actionResult = action()\n if (isObservable(actionResult)) {\n return actionResult.pipe(tap(() => { this._pending.next(false) }))\n } else {\n this._pending.next(true)\n return actionResult\n }\n }\n }\n\n /**\n * Selects the data observable\n */\n public select(refresh?: boolean): Observable<T> {\n if (refresh && this._initialized && !this._pending.value) { this._ticker.next() }\n return this.data$\n }\n\n public refresh(): Observable<void> {\n let result$: Observable<any>\n\n if (this._initialized) {\n // TODO: Add a test and maybe refactor this to be more clear. It worked in\n // my manual tests, but there may be some situations where this doesn't\n // work, since the ticker isn't the only way to trigger a refresh. Right\n // now it should be fine, but if an async operator is added to be run\n // each time `data$` is subscribed to, then this could fail if the data\n // emits one extra time before the ticker is triggered.\n let _polled = false\n result$ = this.data$\n .pipe(\n tap(_ => !_polled && (_polled = true) && this._ticker.next()),\n skip(1)\n )\n } else {\n result$ = this.data$\n }\n\n return result$\n .pipe(\n take(1),\n mapTo(undefined)\n )\n }\n\n}\n","import { from, isObservable, Observable } from 'rxjs'\n\nexport function wrapIntoObservable<T>(value: T | Promise<T>| Observable<T>): Observable<T> {\n if (isObservable(value)) {\n return value\n }\n\n return from(Promise.resolve(value))\n}\n","\n/**\n * Explaination:\n * ^ - beginning of the string\n * (?: - beginning of a non-captured group\n * [a-z]+ - any character of 'a' to 'z' 1 or more times\n * : - string (colon character)\n * )? - end of the non-captured group. Group appearing 0 or 1 times\n * // - string (two forward slash characters)\n * 'i' - non case-sensitive flag\n *\n * source: https://stackoverflow.com/a/19709846\n */\nconst IS_ABSOLUTE_URL_REGEX = new RegExp('^(?:[a-z]+:)?//', 'i')\n\nexport function isAbsoluteUrl(url: string): boolean {\n return IS_ABSOLUTE_URL_REGEX.test(url)\n}\n","import { Observable, Subscriber } from 'rxjs'\n\n/**\n * This is just for helping debug observables that aren't being unsubscribed\n * from correctly.\n */\nfunction subscriberCount<T>(sourceObservable: Observable<T>, description: string) {\n let counter = 0\n return new Observable((subscriber: Subscriber<T>) => {\n const subscription = sourceObservable.subscribe(subscriber)\n counter++\n console.log(`${description} subscriptions: ${counter}`)\n\n return () => {\n subscription.unsubscribe()\n counter--\n console.log(`${description} subscriptions: ${counter}`)\n }\n })\n}\n","import { QueryList } from '@angular/core'\nimport { Observable } from 'rxjs'\nimport { map, startWith } from 'rxjs/operators'\n\nexport function observeQueryList<T>(queryList: QueryList<T>, emitCurrentValue = true): Observable<T[]> {\n return queryList.changes.pipe(\n startWith(queryList),\n map(v => v.toArray() as T[])\n )\n}\n","\nexport function createPadding(len: number, chars: string): string {\n // if (chars.length <= len) {\n // return chars\n // }\n\n if (chars.length === 0) {\n throw Error(`Padding characters must be at least 1 char length.`)\n }\n\n let str = chars\n while (str.length < len) {\n str += chars\n }\n\n if (str.length > len) {\n str = str.slice(0, len)\n }\n\n return str\n}\n","import { createPadding } from './create-padding'\n\nexport function padEnd(\n stringToPad: string,\n paddingLength: number | undefined = 0,\n paddingChars: string | undefined = ' '\n): string {\n const strLength = paddingLength ? stringToPad.length : 0\n\n if (!paddingLength || strLength >= paddingLength) {\n return stringToPad\n }\n\n return stringToPad + createPadding(paddingLength - strLength, paddingChars)\n}\n","import { createPadding } from './create-padding'\n\nexport function padStart(\n stringToPad: string,\n paddingLength: number | undefined = 0,\n paddingChars: string | undefined = ' '\n): string {\n const strLength = paddingLength ? stringToPad.length : 0\n\n if (!paddingLength || strLength >= paddingLength) {\n return stringToPad\n }\n\n return createPadding(paddingLength - strLength, paddingChars) + stringToPad\n}\n","export function isNumeric(value: any): boolean {\n return !isNaN(Number(value) - parseFloat(value))\n}\n","import { isNumeric } from './is-numeric'\n\n/**\n * Returns the number of fractional digits.\n *\n * NOTE: This is intended for input validation, so trailing 0's will be included\n * in the total. Also, localization is not considered, so '.' is assumed to be\n * the fractional separator.\n */\nexport function fractionalDigitsCount(value: string): number | null {\n if (!isNumeric(value)) {\n return null\n }\n\n const a = value.split('.')\n if (a.length !== 2) {\n return null\n }\n\n return a[1].length\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAAA;;;SAGgB,YAAY,CAAwB,OAAU,EAAE,IAAY;IAC1E,OAAO,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;AACnC;;ACL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GAAG,WAAW,CAAC,MAAM,GAAG,CAAC,CAAA;IAExD,IAAI,CAAC,aAAa,IAAI,SAAS,IAAI,aAAa,EAAE;QAChD,OAAO,WAAW,CAAA;KACnB;IAED,OAAO,WAAW,GAAG,aAAa,CAAC,aAAa,GAAG,SAAS,EAAE,YAAY,CAAC,CAAA;AAC7E;;SCZgB,QAAQ,CACtB,WAAmB,EACnB,gBAAoC,CAAC,EACrC,eAAmC,GAAG;IAEtC,MAAM,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC,MAAM,GAAG,CAAC,CAAA;IAExD,IAAI,CAAC,aAAa,IAAI,SAAS,IAAI,aAAa,EAAE;QAChD,OAAO,WAAW,CAAA;KACnB;IAED,OAAO,aAAa,CAAC,aAAa,GAAG,SAAS,EAAE,YAAY,CAAC,GAAG,WAAW,CAAA;AAC7E;;SCdgB,SAAS,CAAC,KAAU;IAClC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAA;AAClD;;ACAA;;;;;;;SAOgB,qBAAqB,CAAC,KAAa;IACjD,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;QACrB,OAAO,IAAI,CAAA;KACZ;IAED,MAAM,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAC1B,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QAClB,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAA;AACpB;;ACpBA;;;;;;"}
@@ -0,0 +1,94 @@
1
+ import { isObservable } from 'rxjs';
2
+ import { map } from 'rxjs/operators';
3
+ import { Validators } from '@angular/forms';
4
+ import { isEmptyInputValue, isNumeric } from '@theseam/ui-common/utils';
5
+
6
+ /**
7
+ * Validates that value matches on of the following:
8
+ * '' // empty string
9
+ * 'xxxxxxxxx' // 'x' is a number
10
+ * 'xx-xxxxxxx' // 'x' is a number
11
+ * 'xxx-xx-xxxx' // 'x' is a number
12
+ */
13
+ function taxIdValidator(control) {
14
+ const isValid = /^$|^\d{9}$|^\d{2}-\d{7}$|^\d{3}-\d{2}-\d{4}$/.test(control.value);
15
+ return isValid
16
+ ? null : { taxId: {} };
17
+ }
18
+
19
+ /**
20
+ * Validates that an email already exists.
21
+ */
22
+ function emailExistsValidator(emailExists) {
23
+ return (control) => {
24
+ const validationResult = (exists) => {
25
+ return exists === false ? null : { 'emailExists': {} };
26
+ };
27
+ const fnRes = emailExists(control.value);
28
+ if (isObservable(fnRes)) {
29
+ return fnRes.pipe(map(validationResult));
30
+ }
31
+ return Promise.resolve(fnRes).then(validationResult);
32
+ };
33
+ }
34
+
35
+ /**
36
+ * Validates that a value is a valid phone number length.
37
+ */
38
+ function phoneLengthValidator(control) {
39
+ return control.value.length === 0 || (control.value.length <= 18 && control.value.length >= 7)
40
+ ? null : { 'phoneLength': {} };
41
+ }
42
+
43
+ const DECIMAL_REGEX = /^([-+]{1})?\d*(\.\d*)?$/;
44
+ function _decimalValidator() {
45
+ return (control) => {
46
+ if (isEmptyInputValue(control.value)) {
47
+ return null; // don't validate empty values to allow optional controls
48
+ }
49
+ const isDecimal = !Array.isArray(control.value) &&
50
+ isNumeric(control.value) &&
51
+ (Validators.pattern(DECIMAL_REGEX)(control) === null);
52
+ if (!isDecimal) {
53
+ return { 'decimal': { 'reason': 'Must be valid decimal number.' } };
54
+ }
55
+ return null;
56
+ };
57
+ }
58
+ /**
59
+ * Validates control value is a valid decimal number.
60
+ *
61
+ * NOTE: This does not allow any js valid decimal number. It only accepts them
62
+ * in a format expected by our backend.
63
+ */
64
+ const decimalValidator = _decimalValidator();
65
+
66
+ const INTEGER_REGEX = /^([-+]{1})?[0-9]*$/;
67
+ function _integerValidator() {
68
+ return (control) => {
69
+ if (isEmptyInputValue(control.value)) {
70
+ return null; // don't validate empty values to allow optional controls
71
+ }
72
+ const isInteger = !Array.isArray(control.value) &&
73
+ isNumeric(control.value) &&
74
+ (Validators.pattern(INTEGER_REGEX)(control) === null);
75
+ if (!isInteger) {
76
+ return { 'integer': { 'reason': 'Must be valid integer.' } };
77
+ }
78
+ return null;
79
+ };
80
+ }
81
+ /**
82
+ * Validates control value is a valid integer number.
83
+ *
84
+ * NOTE: This does not allow any js valid integer number. It only accepts them
85
+ * in a format expected by our backend.
86
+ */
87
+ const integerValidator = _integerValidator();
88
+
89
+ /**
90
+ * Generated bundle index. Do not edit.
91
+ */
92
+
93
+ export { DECIMAL_REGEX, INTEGER_REGEX, decimalValidator, emailExistsValidator, integerValidator, phoneLengthValidator, taxIdValidator };
94
+ //# sourceMappingURL=theseam-ui-common-validators.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theseam-ui-common-validators.js","sources":["../../../projects/ui-common/validators/tax-id.validator.ts","../../../projects/ui-common/validators/email-exists.validator.ts","../../../projects/ui-common/validators/phone-length.validator.ts","../../../projects/ui-common/validators/decimal.validator.ts","../../../projects/ui-common/validators/integer.validator.ts","../../../projects/ui-common/validators/theseam-ui-common-validators.ts"],"sourcesContent":["import { FormControl } from '@angular/forms'\n\n/**\n * Validates that value matches on of the following:\n * '' // empty string\n * 'xxxxxxxxx' // 'x' is a number\n * 'xx-xxxxxxx' // 'x' is a number\n * 'xxx-xx-xxxx' // 'x' is a number\n */\nexport function taxIdValidator(control: FormControl) {\n const isValid = /^$|^\\d{9}$|^\\d{2}-\\d{7}$|^\\d{3}-\\d{2}-\\d{4}$/.test(control.value)\n return isValid\n ? null : { taxId: {} }\n}\n","import { FormControl } from '@angular/forms'\nimport { isObservable, Observable } from 'rxjs'\nimport { map } from 'rxjs/operators'\n\n/**\n * Validates that an email already exists.\n */\nexport function emailExistsValidator(\n emailExists: (email: string) => Promise<boolean> | Observable<boolean> | boolean\n) {\n return (control: FormControl) => {\n const validationResult = (exists: boolean) => {\n return exists === false ? null : { 'emailExists': {} }\n }\n\n const fnRes = emailExists(control.value)\n if (isObservable(fnRes)) {\n return fnRes.pipe(map(validationResult))\n }\n return Promise.resolve(fnRes).then(validationResult)\n }\n}\n","import { FormControl } from '@angular/forms'\n\n/**\n * Validates that a value is a valid phone number length.\n */\nexport function phoneLengthValidator(control: FormControl) {\n return control.value.length === 0 || (control.value.length <= 18 && control.value.length >= 7)\n ? null : { 'phoneLength': {} }\n}\n","import { AbstractControl, ValidatorFn, Validators } from '@angular/forms'\n\nimport { isEmptyInputValue, isNumeric } from '@theseam/ui-common/utils'\n\nexport const DECIMAL_REGEX = /^([-+]{1})?\\d*(\\.\\d*)?$/\n\nfunction _decimalValidator(): ValidatorFn {\n return (control: AbstractControl) => {\n if (isEmptyInputValue(control.value)) {\n return null // don't validate empty values to allow optional controls\n }\n\n const isDecimal =\n !Array.isArray(control.value) &&\n isNumeric(control.value) &&\n (Validators.pattern(DECIMAL_REGEX)(control) === null)\n\n if (!isDecimal) {\n return { 'decimal': { 'reason': 'Must be valid decimal number.' } }\n }\n\n return null\n }\n}\n\n/**\n * Validates control value is a valid decimal number.\n *\n * NOTE: This does not allow any js valid decimal number. It only accepts them\n * in a format expected by our backend.\n */\nexport const decimalValidator: ValidatorFn = _decimalValidator()\n","import { AbstractControl, ValidatorFn, Validators } from '@angular/forms'\n\nimport { isEmptyInputValue, isNumeric } from '@theseam/ui-common/utils'\n\nexport const INTEGER_REGEX = /^([-+]{1})?[0-9]*$/\n\nfunction _integerValidator(): ValidatorFn {\n return (control: AbstractControl) => {\n if (isEmptyInputValue(control.value)) {\n return null // don't validate empty values to allow optional controls\n }\n\n const isInteger =\n !Array.isArray(control.value) &&\n isNumeric(control.value) &&\n (Validators.pattern(INTEGER_REGEX)(control) === null)\n\n if (!isInteger) {\n return { 'integer': { 'reason': 'Must be valid integer.' } }\n }\n return null\n }\n}\n\n/**\n * Validates control value is a valid integer number.\n *\n * NOTE: This does not allow any js valid integer number. It only accepts them\n * in a format expected by our backend.\n */\nexport const integerValidator: ValidatorFn = _integerValidator()\n","/**\n * Generated bundle index. Do not edit.\n */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AAS,CAAC,OAAO,CAAC,KAAK,CAAC;aACvB,UAAU,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,CAAA;QAEvD,IAAI,CAAC,SAAS,EAAE;YACd,OAAO,EAAE,SAAS,EAAE,EAAE,QAAQ,EAAE,+BAA+B,EAAE,EAAE,CAAA;SACpE;QAED,OAAO,IAAI,CAAA;KACZ,CAAA;AACH,CAAC;AAED;;;;;;MAMa,gBAAgB,GAAgB,iBAAiB;;MC3BjD,aAAa,GAAG,qBAAoB;AAEjD,SAAS,iBAAiB;IACxB,OAAO,CAAC,OAAwB;QAC9B,IAAI,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACpC,OAAO,IAAI,CAAA;SACZ;QAED,MAAM,SAAS,GACb,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;YAC7B,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC;aACvB,UAAU,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,CAAA;QAEvD,IAAI,CAAC,SAAS,EAAE;YACd,OAAO,EAAE,SAAS,EAAE,EAAE,QAAQ,EAAE,wBAAwB,EAAE,EAAE,CAAA;SAC7D;QACD,OAAO,IAAI,CAAA;KACZ,CAAA;AACH,CAAC;AAED;;;;;;MAMa,gBAAgB,GAAgB,iBAAiB;;AC9B9D;;;;;;"}
@@ -0,0 +1,328 @@
1
+ import { __awaiter, __decorate } from 'tslib';
2
+ import * as i0 from '@angular/core';
3
+ import { Component, Input, HostBinding, ViewChild, Injectable, NgModule } from '@angular/core';
4
+ import { Subject, from, ReplaySubject, BehaviorSubject, of } from 'rxjs';
5
+ import { takeUntil, auditTime, switchMap, tap, shareReplay, map } from 'rxjs/operators';
6
+ import { InputBoolean } from '@theseam/ui-common/core';
7
+ import { waitOnConditionAsync, wrapIntoObservable } from '@theseam/ui-common/utils';
8
+ import { coerceNumberProperty, coerceArray } from '@angular/cdk/coercion';
9
+ import { CommonModule } from '@angular/common';
10
+ import { TheSeamSharedModule } from '@theseam/ui-common/shared';
11
+
12
+ class TheSeamPdfPageComponent {
13
+ constructor() {
14
+ this._ngUnsubscribe = new Subject();
15
+ this.shadow = false;
16
+ /**
17
+ * Canvas will responsively scale and rerender if scaled more than
18
+ * `renderUpdateThreshold` pixels.
19
+ */
20
+ this.responsive = false;
21
+ /**
22
+ * The canvas will be rerendered if the canvas size changes by this many
23
+ * pixels from the last render.
24
+ *
25
+ * To make the canvas responsive using only the initial size for its render
26
+ * set the threshold to `-1`. You can still trigger a rerender by calling the
27
+ * `render()` method.
28
+ *
29
+ * NOTE: Only used when `responsive` is `true`.
30
+ */
31
+ this.renderUpdateThreshold = 100;
32
+ this.rendering = false;
33
+ this._renderRequestSubject = new Subject();
34
+ this._render$ = this._renderRequestSubject.pipe(takeUntil(this._ngUnsubscribe), auditTime(500), switchMap(_ => from(waitOnConditionAsync(() => this.rendering === false, 30 * 1000))), switchMap(_ => from(this._render())));
35
+ }
36
+ get page() { return this._page; }
37
+ set page(value) {
38
+ this._page = value;
39
+ setTimeout(() => { this.render(); });
40
+ }
41
+ get _shadow() { return this.shadow; }
42
+ ngOnDestroy() {
43
+ this._ngUnsubscribe.next();
44
+ this._ngUnsubscribe.complete();
45
+ }
46
+ ngAfterViewInit() {
47
+ this._render$.subscribe();
48
+ this.render();
49
+ }
50
+ render() {
51
+ this._renderRequestSubject.next();
52
+ }
53
+ _render() {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ if (!this.pdfContainer || !this.pdfCanvas) {
56
+ return;
57
+ }
58
+ try {
59
+ const w = this.pdfContainer.nativeElement.clientWidth;
60
+ const desiredWidth = w;
61
+ const viewport = this.page.getViewport({ scale: 1 });
62
+ const scale = desiredWidth / viewport.width;
63
+ const scaledViewport = this.page.getViewport({ scale });
64
+ // Prepare canvas using PDF page dimensions
65
+ const canvas = this.pdfCanvas.nativeElement;
66
+ const context = canvas.getContext('2d');
67
+ canvas.height = scaledViewport.height;
68
+ canvas.width = scaledViewport.width;
69
+ canvas.style.height = `${scaledViewport.height}px`;
70
+ canvas.style.width = `${scaledViewport.width}px`;
71
+ // Render PDF page into canvas context
72
+ const renderContext = {
73
+ canvasContext: context,
74
+ viewport: scaledViewport
75
+ };
76
+ const renderTask = yield this.page.render(renderContext).promise;
77
+ // TODO: Allow canceling instead of only waiting
78
+ // await renderTask.cancel()
79
+ this.rendering = false;
80
+ if (this.responsive) {
81
+ canvas.style.width = '100%';
82
+ canvas.style.height = '100%';
83
+ }
84
+ }
85
+ catch (err) {
86
+ // PDF loading error
87
+ console.error(err);
88
+ }
89
+ });
90
+ }
91
+ onResized() {
92
+ if (!this.responsive || this.renderUpdateThreshold === -1) {
93
+ return;
94
+ }
95
+ if (!this.pdfContainer || !this.pdfCanvas) {
96
+ return;
97
+ }
98
+ const containerRect = this.pdfContainer.nativeElement.getBoundingClientRect();
99
+ const pdfWidth = this.pdfCanvas.nativeElement.width;
100
+ const pdfHeight = this.pdfCanvas.nativeElement.height;
101
+ const wDiff = Math.abs(containerRect.width - pdfWidth);
102
+ const hDiff = Math.abs(containerRect.height - pdfHeight);
103
+ if (wDiff > this.renderUpdateThreshold || hDiff > this.renderUpdateThreshold) {
104
+ this.render();
105
+ }
106
+ }
107
+ }
108
+ TheSeamPdfPageComponent.decorators = [
109
+ { type: Component, args: [{
110
+ selector: 'seam-pdf-page',
111
+ template: `
112
+ <div #pdfContainer
113
+ (seamElemResized)="onResized()">
114
+ <canvas #pdfCanvas></canvas>
115
+ </div>
116
+ `,
117
+ styles: [`
118
+ :host { display: block; }
119
+ canvas { display: block; }
120
+ `]
121
+ },] }
122
+ ];
123
+ TheSeamPdfPageComponent.ctorParameters = () => [];
124
+ TheSeamPdfPageComponent.propDecorators = {
125
+ page: [{ type: Input }],
126
+ shadow: [{ type: Input }],
127
+ _shadow: [{ type: HostBinding, args: ['class.shadow',] }],
128
+ pdfContainer: [{ type: ViewChild, args: ['pdfContainer', { static: true },] }],
129
+ pdfCanvas: [{ type: ViewChild, args: ['pdfCanvas', { static: true },] }],
130
+ responsive: [{ type: Input }],
131
+ renderUpdateThreshold: [{ type: Input }]
132
+ };
133
+ __decorate([
134
+ InputBoolean()
135
+ ], TheSeamPdfPageComponent.prototype, "shadow", void 0);
136
+ __decorate([
137
+ InputBoolean()
138
+ ], TheSeamPdfPageComponent.prototype, "responsive", void 0);
139
+
140
+ class PdfRendererService {
141
+ constructor() {
142
+ const pdfjsImport = wrapIntoObservable(import('pdfjs-dist/legacy/build/pdf'));
143
+ this._pdfjs$ = pdfjsImport.pipe(tap((pdfJs) => {
144
+ if (!pdfJs.GlobalWorkerOptions.workerSrc) {
145
+ // tslint:disable-next-line:max-line-length
146
+ pdfJs.GlobalWorkerOptions.workerSrc = `https://cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfJs.version}/pdf.worker.min.js`;
147
+ }
148
+ }), shareReplay({ bufferSize: 1, refCount: true }));
149
+ }
150
+ getDocument(url) {
151
+ return from(fetch(url)).pipe(switchMap(v => this._pdfjs$.pipe(switchMap(pdfjs => pdfjs.getDocument(v).promise))));
152
+ }
153
+ }
154
+ PdfRendererService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PdfRendererService_Factory() { return new PdfRendererService(); }, token: PdfRendererService, providedIn: "root" });
155
+ PdfRendererService.decorators = [
156
+ { type: Injectable, args: [{
157
+ providedIn: 'root'
158
+ },] }
159
+ ];
160
+ PdfRendererService.ctorParameters = () => [];
161
+
162
+ class TheSeamPdfViewerComponent {
163
+ constructor(_pdfRenderer) {
164
+ this._pdfRenderer = _pdfRenderer;
165
+ this.shadow = false;
166
+ /**
167
+ * Canvas will responsively scale and rerender if scaled more than
168
+ * `renderUpdateThreshold` pixels.
169
+ */
170
+ this.responsive = false;
171
+ this._renderUpdateThreshold = 100;
172
+ this._pageRange = [];
173
+ this._pageNumber = -1;
174
+ this._pageNumbers = [];
175
+ this._documentSubject = new ReplaySubject(1);
176
+ /**
177
+ * Undefined means all a pages
178
+ */
179
+ this._pageNumbersSubject = new BehaviorSubject(undefined);
180
+ this.document$ = this._documentSubject.asObservable().pipe(switchMap(url => {
181
+ if (!url) {
182
+ return of();
183
+ }
184
+ return this._pdfRenderer.getDocument(url);
185
+ }));
186
+ const pageNumbers$ = this._pageNumbersSubject.asObservable();
187
+ this.pages$ = this.document$.pipe(switchMap(doc => pageNumbers$.pipe(map(pageNumbers => {
188
+ const pages = [];
189
+ for (let i = 0; i < doc.numPages; i++) {
190
+ if (!pageNumbers || pageNumbers.indexOf(i + 1) !== -1) {
191
+ pages.push(from(doc.getPage(i + 1)));
192
+ }
193
+ }
194
+ return pages;
195
+ }))));
196
+ }
197
+ get pdfUrl() { return this._pdfUrl; }
198
+ set pdfUrl(value) {
199
+ this._pdfUrl = value;
200
+ this._documentSubject.next(value);
201
+ }
202
+ /**
203
+ * The canvas will be rerendered if the canvas size changes by this many
204
+ * pixels from the last render.
205
+ *
206
+ * To make the canvas responsive using only the initial size for its render
207
+ * set the threshold to `-1`. You can still trigger a rerender by calling the
208
+ * `render()` method.
209
+ *
210
+ * NOTE: Only used when `responsive` is `true`.
211
+ */
212
+ set renderUpdateThreshold(value) { this._renderUpdateThreshold = coerceNumberProperty(value); }
213
+ get renderUpdateThreshold() { return this._renderUpdateThreshold; }
214
+ /**
215
+ * Range of pages to render.
216
+ *
217
+ * Example(page 1 to page 3):
218
+ * [pageRange]="[1,3]"
219
+ */
220
+ get pageRange() { return this._pageRange; }
221
+ set pageRange(value) {
222
+ this._pageRange = value;
223
+ if (!this._pageRange) {
224
+ this._pageNumbersSubject.next(undefined);
225
+ }
226
+ try {
227
+ const range = coerceArray(this._pageRange);
228
+ if (range.length !== 2) {
229
+ throw new Error('[pdf-viewer] Invalid Page Range. Range array must have two numbers only.');
230
+ }
231
+ if (range[0] > range[1]) {
232
+ throw new Error('[pdf-viewer] Invalid Page Range. Start of the range must be less than or equal to the end.');
233
+ }
234
+ const nums = [];
235
+ for (let i = range[0]; i <= range[1]; i++) {
236
+ nums.push(i);
237
+ }
238
+ this._pageNumbersSubject.next(nums);
239
+ }
240
+ catch (err) {
241
+ // TODO: Decide how to conveniently display these errors.
242
+ console.error(err);
243
+ this._pageNumbersSubject.next([]);
244
+ }
245
+ }
246
+ /**
247
+ * Render a specific page.
248
+ */
249
+ get pageNumber() { return this._pageNumber; }
250
+ set pageNumber(value) {
251
+ this._pageNumber = coerceNumberProperty(value, -1);
252
+ this._pageNumbersSubject.next(this._pageNumber === -1 ? undefined : [this._pageNumber]);
253
+ }
254
+ /**
255
+ * Specific page numbers to render.
256
+ */
257
+ get pageNumbers() { return this._pageNumbers; }
258
+ set pageNumbers(value) {
259
+ this._pageNumbers = value;
260
+ if (Array.isArray(this._pageNumbers)) {
261
+ this._pageNumbersSubject.next(this._pageNumbers);
262
+ }
263
+ else {
264
+ this._pageNumbersSubject.next(undefined);
265
+ }
266
+ }
267
+ }
268
+ TheSeamPdfViewerComponent.decorators = [
269
+ { type: Component, args: [{
270
+ selector: 'seam-pdf-viewer',
271
+ template: `
272
+ <ng-container *ngFor="let page of pages$ | async">
273
+ <seam-pdf-page
274
+ class="mb-2"
275
+ [page]="page | async"
276
+ [responsive]="responsive"
277
+ [shadow]="shadow"
278
+ [renderUpdateThreshold]="renderUpdateThreshold">
279
+ </seam-pdf-page>
280
+ </ng-container>
281
+ `,
282
+ styles: [`:host { display: block; }`]
283
+ },] }
284
+ ];
285
+ TheSeamPdfViewerComponent.ctorParameters = () => [
286
+ { type: PdfRendererService }
287
+ ];
288
+ TheSeamPdfViewerComponent.propDecorators = {
289
+ pdfUrl: [{ type: Input }],
290
+ shadow: [{ type: Input }],
291
+ responsive: [{ type: Input }],
292
+ renderUpdateThreshold: [{ type: Input }],
293
+ pageRange: [{ type: Input }],
294
+ pageNumber: [{ type: Input }],
295
+ pageNumbers: [{ type: Input }]
296
+ };
297
+ __decorate([
298
+ InputBoolean()
299
+ ], TheSeamPdfViewerComponent.prototype, "shadow", void 0);
300
+ __decorate([
301
+ InputBoolean()
302
+ ], TheSeamPdfViewerComponent.prototype, "responsive", void 0);
303
+
304
+ class TheSeamPdfViewerModule {
305
+ }
306
+ TheSeamPdfViewerModule.decorators = [
307
+ { type: NgModule, args: [{
308
+ imports: [
309
+ CommonModule,
310
+ TheSeamSharedModule
311
+ ],
312
+ declarations: [
313
+ TheSeamPdfViewerComponent,
314
+ TheSeamPdfPageComponent
315
+ ],
316
+ exports: [
317
+ TheSeamPdfViewerComponent,
318
+ TheSeamPdfPageComponent
319
+ ]
320
+ },] }
321
+ ];
322
+
323
+ /**
324
+ * Generated bundle index. Do not edit.
325
+ */
326
+
327
+ export { TheSeamPdfPageComponent, TheSeamPdfViewerComponent, TheSeamPdfViewerModule };
328
+ //# sourceMappingURL=theseam-ui-common-viewers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theseam-ui-common-viewers.js","sources":["../../../projects/ui-common/viewers/pdf-viewer/pdf-page/pdf-page.component.ts","../../../projects/ui-common/viewers/pdf-viewer/pdf-renderer.service.ts","../../../projects/ui-common/viewers/pdf-viewer/pdf-viewer.component.ts","../../../projects/ui-common/viewers/pdf-viewer/pdf-viewer.module.ts","../../../projects/ui-common/viewers/theseam-ui-common-viewers.ts"],"sourcesContent":["import { BooleanInput } from '@angular/cdk/coercion'\nimport { AfterViewInit, Component, ElementRef, HostBinding, Input, OnDestroy, ViewChild } from '@angular/core'\nimport { from, Observable, Subject } from 'rxjs'\nimport { auditTime, switchMap, takeUntil } from 'rxjs/operators'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\nimport { waitOnConditionAsync } from '@theseam/ui-common/utils'\n\n@Component({\n selector: 'seam-pdf-page',\n template: `\n <div #pdfContainer\n (seamElemResized)=\"onResized()\">\n <canvas #pdfCanvas></canvas>\n </div>\n `,\n styles: [`\n :host { display: block; }\n canvas { display: block; }\n `]\n})\nexport class TheSeamPdfPageComponent implements OnDestroy, AfterViewInit {\n static ngAcceptInputType_shadow: BooleanInput\n static ngAcceptInputType_responsive: BooleanInput\n\n private readonly _ngUnsubscribe = new Subject()\n\n @Input()\n public get page() { return this._page }\n public set page(value) {\n this._page = value\n setTimeout(() => { this.render() })\n }\n private _page: any\n\n @Input() @InputBoolean() shadow: boolean = false\n\n @HostBinding('class.shadow') get _shadow() { return this.shadow }\n\n @ViewChild('pdfContainer', { static: true }) pdfContainer?: ElementRef<HTMLDivElement>\n @ViewChild('pdfCanvas', { static: true }) pdfCanvas?: ElementRef<HTMLCanvasElement>\n\n /**\n * Canvas will responsively scale and rerender if scaled more than\n * `renderUpdateThreshold` pixels.\n */\n @Input() @InputBoolean() responsive = false\n\n /**\n * The canvas will be rerendered if the canvas size changes by this many\n * pixels from the last render.\n *\n * To make the canvas responsive using only the initial size for its render\n * set the threshold to `-1`. You can still trigger a rerender by calling the\n * `render()` method.\n *\n * NOTE: Only used when `responsive` is `true`.\n */\n @Input() renderUpdateThreshold = 100\n\n public rendering = false\n\n private _renderRequestSubject = new Subject<void>()\n\n private _render$: Observable<void>\n\n constructor() {\n this._render$ = this._renderRequestSubject.pipe(\n takeUntil(this._ngUnsubscribe),\n auditTime(500),\n switchMap(_ => from(waitOnConditionAsync(() => this.rendering === false, 30 * 1000))),\n switchMap(_ => from(this._render()))\n )\n }\n\n ngOnDestroy() {\n this._ngUnsubscribe.next()\n this._ngUnsubscribe.complete()\n }\n\n ngAfterViewInit() {\n this._render$.subscribe()\n this.render()\n }\n\n public render() {\n this._renderRequestSubject.next()\n }\n\n private async _render() {\n if (!this.pdfContainer || !this.pdfCanvas) {\n return\n }\n\n try {\n const w = this.pdfContainer.nativeElement.clientWidth\n const desiredWidth = w\n const viewport = this.page.getViewport({ scale: 1 })\n const scale = desiredWidth / viewport.width\n const scaledViewport = this.page.getViewport({ scale })\n\n // Prepare canvas using PDF page dimensions\n const canvas: HTMLCanvasElement = this.pdfCanvas.nativeElement\n const context = canvas.getContext('2d')\n canvas.height = scaledViewport.height\n canvas.width = scaledViewport.width\n canvas.style.height = `${scaledViewport.height}px`\n canvas.style.width = `${scaledViewport.width}px`\n\n // Render PDF page into canvas context\n const renderContext = {\n canvasContext: context,\n viewport: scaledViewport\n }\n\n const renderTask = await this.page.render(renderContext).promise\n\n // TODO: Allow canceling instead of only waiting\n // await renderTask.cancel()\n this.rendering = false\n if (this.responsive) {\n canvas.style.width = '100%'\n canvas.style.height = '100%'\n }\n } catch (err) {\n // PDF loading error\n console.error(err)\n }\n }\n\n onResized() {\n if (!this.responsive || this.renderUpdateThreshold === -1) { return }\n\n if (!this.pdfContainer || !this.pdfCanvas) {\n return\n }\n\n const containerRect = this.pdfContainer.nativeElement.getBoundingClientRect()\n const pdfWidth = this.pdfCanvas.nativeElement.width\n const pdfHeight = this.pdfCanvas.nativeElement.height\n const wDiff = Math.abs(containerRect.width - pdfWidth)\n const hDiff = Math.abs(containerRect.height - pdfHeight)\n if (wDiff > this.renderUpdateThreshold || hDiff > this.renderUpdateThreshold) {\n this.render()\n }\n\n }\n\n}\n","import { Injectable } from '@angular/core'\nimport { from, Observable } from 'rxjs'\nimport { shareReplay, switchMap, tap } from 'rxjs/operators'\n\nimport { wrapIntoObservable } from '@theseam/ui-common/utils'\n\n@Injectable({\n providedIn: 'root'\n})\nexport class PdfRendererService {\n\n private readonly _pdfjs$: Observable<any>\n\n constructor() {\n const pdfjsImport = wrapIntoObservable(import('pdfjs-dist/legacy/build/pdf'))\n this._pdfjs$ = pdfjsImport.pipe(\n tap((pdfJs: any) => {\n if (!pdfJs.GlobalWorkerOptions.workerSrc) {\n // tslint:disable-next-line:max-line-length\n pdfJs.GlobalWorkerOptions.workerSrc = `https://cdnjs.cloudflare.com/ajax/libs/pdf.js/${ (pdfJs as any).version }/pdf.worker.min.js`\n }\n }),\n shareReplay({ bufferSize: 1, refCount: true })\n )\n }\n\n public getDocument(url: string): Observable<any> {\n return from(fetch(url)).pipe(\n switchMap(v => this._pdfjs$.pipe(\n switchMap(pdfjs => pdfjs.getDocument(v).promise)\n ))\n )\n }\n}\n","import { BooleanInput, coerceArray, coerceNumberProperty } from '@angular/cdk/coercion'\nimport { Component, Input } from '@angular/core'\nimport { BehaviorSubject, from, Observable, of, ReplaySubject } from 'rxjs'\nimport { map, shareReplay, switchMap, tap } from 'rxjs/operators'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\nimport { wrapIntoObservable } from '@theseam/ui-common/utils'\n\nimport { PdfRendererService } from './pdf-renderer.service'\n\n@Component({\n selector: 'seam-pdf-viewer',\n template: `\n <ng-container *ngFor=\"let page of pages$ | async\">\n <seam-pdf-page\n class=\"mb-2\"\n [page]=\"page | async\"\n [responsive]=\"responsive\"\n [shadow]=\"shadow\"\n [renderUpdateThreshold]=\"renderUpdateThreshold\">\n </seam-pdf-page>\n </ng-container>\n `,\n styles: [`:host { display: block; }`]\n})\nexport class TheSeamPdfViewerComponent {\n static ngAcceptInputType_shadow: BooleanInput\n static ngAcceptInputType_responsive: BooleanInput\n\n @Input()\n get pdfUrl(): string | undefined | null { return this._pdfUrl }\n set pdfUrl(value: string | undefined | null) {\n this._pdfUrl = value\n this._documentSubject.next(value)\n }\n private _pdfUrl: string | undefined | null\n\n @Input() @InputBoolean() shadow = false\n\n /**\n * Canvas will responsively scale and rerender if scaled more than\n * `renderUpdateThreshold` pixels.\n */\n @Input() @InputBoolean() responsive = false\n\n /**\n * The canvas will be rerendered if the canvas size changes by this many\n * pixels from the last render.\n *\n * To make the canvas responsive using only the initial size for its render\n * set the threshold to `-1`. You can still trigger a rerender by calling the\n * `render()` method.\n *\n * NOTE: Only used when `responsive` is `true`.\n */\n @Input()\n set renderUpdateThreshold(value: number) { this._renderUpdateThreshold = coerceNumberProperty(value) }\n get renderUpdateThreshold(): number { return this._renderUpdateThreshold }\n private _renderUpdateThreshold: number = 100\n\n /**\n * Range of pages to render.\n *\n * Example(page 1 to page 3):\n * [pageRange]=\"[1,3]\"\n */\n @Input()\n get pageRange(): number[] { return this._pageRange }\n set pageRange(value: number[]) {\n this._pageRange = value\n\n if (!this._pageRange) {\n this._pageNumbersSubject.next(undefined)\n }\n\n try {\n const range = coerceArray(this._pageRange)\n if (range.length !== 2) {\n throw new Error('[pdf-viewer] Invalid Page Range. Range array must have two numbers only.')\n }\n if (range[0] > range[1]) {\n throw new Error('[pdf-viewer] Invalid Page Range. Start of the range must be less than or equal to the end.')\n }\n\n const nums: number[] = []\n for (let i = range[0]; i <= range[1]; i++) {\n nums.push(i)\n }\n this._pageNumbersSubject.next(nums)\n } catch (err) {\n // TODO: Decide how to conveniently display these errors.\n console.error(err)\n this._pageNumbersSubject.next([])\n }\n }\n private _pageRange: number[] = []\n\n /**\n * Render a specific page.\n */\n @Input()\n get pageNumber(): number { return this._pageNumber }\n set pageNumber(value: number) {\n this._pageNumber = coerceNumberProperty(value, -1)\n this._pageNumbersSubject.next(this._pageNumber === -1 ? undefined : [ this._pageNumber ])\n }\n private _pageNumber = -1\n\n /**\n * Specific page numbers to render.\n */\n @Input()\n get pageNumbers(): number[] { return this._pageNumbers }\n set pageNumbers(value: number[]) {\n this._pageNumbers = value\n if (Array.isArray(this._pageNumbers)) {\n this._pageNumbersSubject.next(this._pageNumbers)\n } else {\n this._pageNumbersSubject.next(undefined)\n }\n }\n private _pageNumbers: number[] = []\n\n private _documentSubject = new ReplaySubject<any>(1)\n public document$: Observable<any>\n public pages$: Observable<any[]>\n\n /**\n * Undefined means all a pages\n */\n private _pageNumbersSubject = new BehaviorSubject<number[] | undefined>(undefined)\n\n constructor(\n private readonly _pdfRenderer: PdfRendererService\n ) {\n this.document$ = this._documentSubject.asObservable().pipe(\n switchMap(url => {\n if (!url) {\n return of()\n }\n return this._pdfRenderer.getDocument(url)\n })\n )\n\n const pageNumbers$ = this._pageNumbersSubject.asObservable()\n\n this.pages$ = this.document$.pipe(\n switchMap(doc => pageNumbers$.pipe(\n map(pageNumbers => {\n const pages: any[] = []\n for (let i = 0; i < doc.numPages; i++) {\n if (!pageNumbers || pageNumbers.indexOf(i + 1) !== -1) {\n pages.push(from(doc.getPage(i + 1)))\n }\n }\n return pages\n })\n ))\n )\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { TheSeamSharedModule } from '@theseam/ui-common/shared'\n\nimport { TheSeamPdfPageComponent } from './pdf-page/pdf-page.component'\nimport { TheSeamPdfViewerComponent } from './pdf-viewer.component'\n\n@NgModule({\n imports: [\n CommonModule,\n TheSeamSharedModule\n ],\n declarations: [\n TheSeamPdfViewerComponent,\n TheSeamPdfPageComponent\n ],\n exports: [\n TheSeamPdfViewerComponent,\n TheSeamPdfPageComponent\n ]\n})\nexport class TheSeamPdfViewerModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;MAqBa,uBAAuB;IA6ClC;QAzCiB,mBAAc,GAAG,IAAI,OAAO,EAAE,CAAA;QAUtB,WAAM,GAAY,KAAK,CAAA;;;;;QAWvB,eAAU,GAAG,KAAK,CAAA;;;;;;;;;;;QAYlC,0BAAqB,GAAG,GAAG,CAAA;QAE7B,cAAS,GAAG,KAAK,CAAA;QAEhB,0BAAqB,GAAG,IAAI,OAAO,EAAQ,CAAA;QAKjD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAC7C,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,EAC9B,SAAS,CAAC,GAAG,CAAC,EACd,SAAS,CAAC,CAAC,IAAI,IAAI,CAAC,oBAAoB,CAAC,MAAM,IAAI,CAAC,SAAS,KAAK,KAAK,EAAE,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,EACrF,SAAS,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CACrC,CAAA;KACF;IA9CD,IACW,IAAI,KAAK,OAAO,IAAI,CAAC,KAAK,CAAA,EAAE;IACvC,IAAW,IAAI,CAAC,KAAK;QACnB,IAAI,CAAC,KAAK,GAAG,KA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BACZ,mBAAmB;iBACpB;gBACD,YAAY,EAAE;oBACZ,yBAAyB;oBACzB,uBAAuB;iBACxB;gBACD,OAAO,EAAE;oBACP,yBAAyB;oBACzB,uBAAuB;iBACxB;aACF;;;ACrBD;;;;;;"}
@@ -0,0 +1,1187 @@
1
+ import { coerceBooleanProperty } from '@angular/cdk/coercion';
2
+ import { CdkDrag, DragDropModule } from '@angular/cdk/drag-drop';
3
+ import * as i0 from '@angular/core';
4
+ import { InjectionToken, Directive, ElementRef, NgZone, Optional, Inject, Input, TemplateRef, Component, ChangeDetectionStrategy, NgModule, ViewEncapsulation, HostBinding, Renderer2, ContentChild, EventEmitter, Output, Injectable } from '@angular/core';
5
+ import { Subject, BehaviorSubject, throwError, of } from 'rxjs';
6
+ import { auditTime, takeUntil, take, switchMap, filter, map } from 'rxjs/operators';
7
+ import { getClosestWidgetCdkDrag } from '@theseam/ui-common/utils';
8
+ import { CommonModule } from '@angular/common';
9
+ import { TheSeamButtonsModule } from '@theseam/ui-common/buttons';
10
+ import { mixinTheme, mixinActive, mixinDisabled, InputBoolean, mixinTabIndex } from '@theseam/ui-common/core';
11
+ import { FocusMonitor } from '@angular/cdk/a11y';
12
+ import { TheSeamIconModule } from '@theseam/ui-common/icon';
13
+ import { __decorate } from 'tslib';
14
+ import { TheSeamTableModule } from '@theseam/ui-common/table';
15
+ import { TheSeamTableCellTypesModule } from '@theseam/ui-common/table-cell-types';
16
+ import { trigger, transition, style, animate } from '@angular/animations';
17
+ import { faCog, faAngleDown } from '@fortawesome/free-solid-svg-icons';
18
+ import { ComponentPortal } from '@angular/cdk/portal';
19
+ import * as i2 from '@theseam/ui-common/dynamic-component-loader';
20
+ import { TheSeamDynamicComponentLoader } from '@theseam/ui-common/dynamic-component-loader';
21
+ import { CdkTableModule } from '@angular/cdk/table';
22
+ import { RouterModule } from '@angular/router';
23
+ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
24
+ import { TheSeamLoadingModule } from '@theseam/ui-common/loading';
25
+
26
+ function extendStyles(dest, source) {
27
+ for (const key in source) {
28
+ if (source.hasOwnProperty(key)) {
29
+ // tslint:disable-next-line: no-non-null-assertion
30
+ dest[key] = source[key];
31
+ }
32
+ }
33
+ return dest;
34
+ }
35
+ function toggleNativeDragInteractions(element, enable) {
36
+ const userSelect = enable ? '' : 'none';
37
+ extendStyles(element.style, {
38
+ touchAction: enable ? '' : 'none',
39
+ webkitUserDrag: enable ? '' : 'none',
40
+ webkitTapHighlightColor: enable ? '' : 'transparent',
41
+ userSelect: userSelect,
42
+ msUserSelect: userSelect,
43
+ webkitUserSelect: userSelect,
44
+ MozUserSelect: userSelect
45
+ });
46
+ }
47
+ const THESEAM_WIDGET_ACCESSOR = new InjectionToken('TheSeamWidgetAccessor');
48
+ class WidgetDragHandleDirective {
49
+ constructor(element, _ngZone, _dashboardWidgets, __parentDrag) {
50
+ this.element = element;
51
+ this._ngZone = _ngZone;
52
+ this._dashboardWidgets = _dashboardWidgets;
53
+ this.__parentDrag = __parentDrag;
54
+ this._ngUnsubscribe = new Subject();
55
+ this._attachedToDom = new BehaviorSubject(false);
56
+ this._doneCheckingAttached = false;
57
+ /** Emits when the state of the handle has changed. */
58
+ this._stateChanges = new Subject();
59
+ this._disabled = false;
60
+ toggleNativeDragInteractions(element.nativeElement, false);
61
+ }
62
+ /** Needed because CdkDrag reads this variable */
63
+ get _parentDrag() { return this.getParentCdkDrag(); }
64
+ /** Whether starting to drag through this handle is disabled. */
65
+ get disabled() { return this._disabled; }
66
+ set disabled(value) {
67
+ this._disabled = coerceBooleanProperty(value);
68
+ this._stateChanges.next(this);
69
+ }
70
+ ngOnInit() {
71
+ if (this._dashboardWidgets) {
72
+ this._dashboardWidgets.widgetsChange.pipe(auditTime(0), takeUntil(this._ngUnsubscribe)).subscribe(() => {
73
+ if (this._knownParentDrag) {
74
+ const isAttached = this.isAttachedToDom();
75
+ if (isAttached) {
76
+ const parent = this.getParentCdkDrag();
77
+ if (this._knownParentDrag !== parent) {
78
+ this._attachedToDom.next(isAttached);
79
+ }
80
+ }
81
+ }
82
+ });
83
+ }
84
+ }
85
+ ngAfterViewInit() {
86
+ if (this.__parentDrag || this._dashboardWidgets) {
87
+ // FIXME: This only works until the widget is moved to another template
88
+ // outlet. Now that the component isn't reinitialized when moving between
89
+ // lists the handle needs to now reflex that change to its new CdkDrag
90
+ // parent and possibly tell its previous parent to forget it.
91
+ // HACK: This is a hack to allow the `CdkDrag` directive to manage a
92
+ // handle that is not visible to `ContentChildren` query.
93
+ this._ngZone.onStable.asObservable()
94
+ // .pipe(take(1), untilDestroyed(this))
95
+ .pipe(take(1),
96
+ // With the weird trick being done to keep widgets initialized when switching columns
97
+ switchMap(() => this._attachedToDom.pipe(filter(v => v === true))),
98
+ // take(1)
99
+ takeUntil(this._ngUnsubscribe))
100
+ .subscribe(() => {
101
+ const parent = this.getParentCdkDrag();
102
+ if (this._knownParentDrag && this._knownParentDrag !== parent) {
103
+ this._knownParentDrag._dragRef.disableHandle(this.element.nativeElement);
104
+ this._knownParentDrag = undefined;
105
+ }
106
+ if (parent) {
107
+ this._knownParentDrag = parent;
108
+ parent._handles.reset([...parent._handles._results, this]);
109
+ parent._handles.notifyOnChanges();
110
+ parent._dragRef.enableHandle(this.element.nativeElement);
111
+ }
112
+ });
113
+ }
114
+ }
115
+ ngOnDestroy() {
116
+ this._stateChanges.complete();
117
+ this._attachedToDom.complete();
118
+ this._ngUnsubscribe.next();
119
+ this._ngUnsubscribe.complete();
120
+ }
121
+ ngDoCheck() {
122
+ // The attached observable only emits once, so we can stop checking if
123
+ // attached.
124
+ if (this._doneCheckingAttached) {
125
+ return;
126
+ }
127
+ const isAttached = this.isAttachedToDom();
128
+ if (isAttached !== this._attachedToDom.value) {
129
+ this._attachedToDom.next(isAttached);
130
+ this._doneCheckingAttached = true;
131
+ }
132
+ }
133
+ isAttachedToDom() {
134
+ return document.body.contains(this.element.nativeElement);
135
+ }
136
+ /** Closest parent draggable instance. */
137
+ getParentCdkDrag() {
138
+ if (this.__parentDrag) {
139
+ return this.__parentDrag;
140
+ }
141
+ else if (this._dashboardWidgets && this._dashboardWidgets.cdkDragDirectives) {
142
+ const dragsArr = this._dashboardWidgets.cdkDragDirectives.toArray();
143
+ const closest = getClosestWidgetCdkDrag(this.element, dragsArr);
144
+ return (closest !== undefined && closest !== null) ? closest : undefined;
145
+ }
146
+ }
147
+ }
148
+ WidgetDragHandleDirective.decorators = [
149
+ { type: Directive, args: [{
150
+ selector: '[seamWidgetDragHandle]',
151
+ host: {
152
+ 'class': 'cdk-drag-handle'
153
+ }
154
+ },] }
155
+ ];
156
+ WidgetDragHandleDirective.ctorParameters = () => [
157
+ { type: ElementRef },
158
+ { type: NgZone },
159
+ { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [THESEAM_WIDGET_ACCESSOR,] }] },
160
+ { type: CdkDrag, decorators: [{ type: Optional }] }
161
+ ];
162
+ WidgetDragHandleDirective.propDecorators = {
163
+ disabled: [{ type: Input, args: ['cdkDragHandleDisabled',] }]
164
+ };
165
+
166
+ class WidgetIconTplDirective {
167
+ constructor(template) {
168
+ this.template = template;
169
+ }
170
+ }
171
+ WidgetIconTplDirective.decorators = [
172
+ { type: Directive, args: [{
173
+ selector: '[seamWidgetIconTpl]'
174
+ },] }
175
+ ];
176
+ WidgetIconTplDirective.ctorParameters = () => [
177
+ { type: TemplateRef }
178
+ ];
179
+
180
+ class WidgetTitleTplDirective {
181
+ constructor(template) {
182
+ this.template = template;
183
+ }
184
+ }
185
+ WidgetTitleTplDirective.decorators = [
186
+ { type: Directive, args: [{
187
+ selector: '[seamWidgetTitleTpl]'
188
+ },] }
189
+ ];
190
+ WidgetTitleTplDirective.ctorParameters = () => [
191
+ { type: TemplateRef }
192
+ ];
193
+
194
+ class WidgetButtonGroupComponent {
195
+ constructor() { }
196
+ ngOnInit() {
197
+ }
198
+ }
199
+ WidgetButtonGroupComponent.decorators = [
200
+ { type: Component, args: [{
201
+ selector: 'seam-widget-button-group',
202
+ template: "<ng-content select=\"[seamButton]\"></ng-content>\n",
203
+ changeDetection: ChangeDetectionStrategy.OnPush,
204
+ styles: [":host{display:block}"]
205
+ },] }
206
+ ];
207
+ WidgetButtonGroupComponent.ctorParameters = () => [];
208
+
209
+ class TheSeamWidgetButtonGroupModule {
210
+ }
211
+ TheSeamWidgetButtonGroupModule.decorators = [
212
+ { type: NgModule, args: [{
213
+ declarations: [
214
+ WidgetButtonGroupComponent
215
+ ],
216
+ imports: [
217
+ CommonModule,
218
+ TheSeamButtonsModule
219
+ ],
220
+ exports: [
221
+ WidgetButtonGroupComponent,
222
+ TheSeamButtonsModule
223
+ ]
224
+ },] }
225
+ ];
226
+
227
+ class WidgetContentHeaderComponent {
228
+ constructor() { }
229
+ ngOnInit() {
230
+ }
231
+ }
232
+ WidgetContentHeaderComponent.decorators = [
233
+ { type: Component, args: [{
234
+ selector: 'seam-widget-content-header',
235
+ template: "<ng-content></ng-content>\n",
236
+ encapsulation: ViewEncapsulation.None,
237
+ styles: ["seam-widget-content-header{display:block;padding:.5rem .5rem 1rem}"]
238
+ },] }
239
+ ];
240
+ WidgetContentHeaderComponent.ctorParameters = () => [];
241
+
242
+ class TheSeamWidgetContentHeaderModule {
243
+ }
244
+ TheSeamWidgetContentHeaderModule.decorators = [
245
+ { type: NgModule, args: [{
246
+ declarations: [
247
+ WidgetContentHeaderComponent
248
+ ],
249
+ imports: [
250
+ CommonModule
251
+ ],
252
+ exports: [
253
+ WidgetContentHeaderComponent
254
+ ]
255
+ },] }
256
+ ];
257
+
258
+ class WidgetDescriptionComponent {
259
+ }
260
+ WidgetDescriptionComponent.decorators = [
261
+ { type: Component, args: [{
262
+ selector: 'seam-widget-description',
263
+ template: "<p><ng-content></ng-content></p>\n",
264
+ changeDetection: ChangeDetectionStrategy.OnPush,
265
+ styles: [""]
266
+ },] }
267
+ ];
268
+
269
+ class TheSeamWidgetDescriptionModule {
270
+ }
271
+ TheSeamWidgetDescriptionModule.decorators = [
272
+ { type: NgModule, args: [{
273
+ declarations: [
274
+ WidgetDescriptionComponent
275
+ ],
276
+ imports: [
277
+ CommonModule
278
+ ],
279
+ exports: [
280
+ WidgetDescriptionComponent
281
+ ]
282
+ },] }
283
+ ];
284
+
285
+ class WidgetEmptyLabelComponent {
286
+ constructor(_elementRef) {
287
+ this._elementRef = _elementRef;
288
+ }
289
+ get _btnCss() { return this._isButton() ? true : false; }
290
+ get _btnLinkCss() { return this._isButton() ? true : false; }
291
+ get _attrType() {
292
+ return this._type || this._isButton() ? 'button' : undefined;
293
+ }
294
+ get type() { return this._type; }
295
+ ngOnInit() { }
296
+ /** Determines if the component host is a button. */
297
+ _isButton() {
298
+ return this._elementRef.nativeElement.nodeName.toLowerCase() === 'button';
299
+ }
300
+ /** Determines if the component host is an anchor. */
301
+ _isAnchor() {
302
+ return this._elementRef.nativeElement.nodeName.toLowerCase() === 'a';
303
+ }
304
+ }
305
+ WidgetEmptyLabelComponent.decorators = [
306
+ { type: Component, args: [{
307
+ selector: 'seam-widget-empty-label,a[seam-widget-empty-label],button[seam-widget-empty-label]',
308
+ template: "<ng-content></ng-content>\n",
309
+ encapsulation: ViewEncapsulation.None,
310
+ styles: ["seam-widget-empty-label{display:block;width:100%;text-align:left;font-size:15px;padding:.5rem}"]
311
+ },] }
312
+ ];
313
+ WidgetEmptyLabelComponent.ctorParameters = () => [
314
+ { type: ElementRef }
315
+ ];
316
+ WidgetEmptyLabelComponent.propDecorators = {
317
+ _btnCss: [{ type: HostBinding, args: ['class.btn',] }],
318
+ _btnLinkCss: [{ type: HostBinding, args: ['class.btn-link',] }],
319
+ _attrType: [{ type: HostBinding, args: ['attr.type',] }],
320
+ type: [{ type: Input }]
321
+ };
322
+
323
+ class TheSeamWidgetEmptyLabelModule {
324
+ }
325
+ TheSeamWidgetEmptyLabelModule.decorators = [
326
+ { type: NgModule, args: [{
327
+ declarations: [
328
+ WidgetEmptyLabelComponent
329
+ ],
330
+ imports: [
331
+ CommonModule
332
+ ],
333
+ exports: [
334
+ WidgetEmptyLabelComponent
335
+ ]
336
+ },] }
337
+ ];
338
+
339
+ class WidgetFooterLinkComponent {
340
+ constructor() { }
341
+ ngOnInit() { }
342
+ }
343
+ WidgetFooterLinkComponent.decorators = [
344
+ { type: Component, args: [{
345
+ // tslint:disable-next-line:component-selector
346
+ selector: 'a[seam-widget-footer-link]',
347
+ template: "<ng-content></ng-content>\n",
348
+ encapsulation: ViewEncapsulation.None,
349
+ styles: ["a[seam-widget-footer-link]{display:block;text-align:center;margin-top:.5rem}"]
350
+ },] }
351
+ ];
352
+ WidgetFooterLinkComponent.ctorParameters = () => [];
353
+
354
+ class TheSeamWidgetFooterLinkModule {
355
+ }
356
+ TheSeamWidgetFooterLinkModule.decorators = [
357
+ { type: NgModule, args: [{
358
+ declarations: [
359
+ WidgetFooterLinkComponent
360
+ ],
361
+ imports: [
362
+ CommonModule
363
+ ],
364
+ exports: [
365
+ WidgetFooterLinkComponent
366
+ ]
367
+ },] }
368
+ ];
369
+
370
+ class WidgetFooterTextComponent {
371
+ constructor() { }
372
+ ngOnInit() {
373
+ }
374
+ }
375
+ WidgetFooterTextComponent.decorators = [
376
+ { type: Component, args: [{
377
+ selector: 'seam-widget-footer-text',
378
+ template: "<em>\n <ng-content></ng-content>\n</em>\n",
379
+ encapsulation: ViewEncapsulation.None,
380
+ styles: ["seam-widget-footer-text{display:block;font-size:13px;margin-top:.5rem}"]
381
+ },] }
382
+ ];
383
+ WidgetFooterTextComponent.ctorParameters = () => [];
384
+
385
+ class TheSeamWidgetFooterTextModule {
386
+ }
387
+ TheSeamWidgetFooterTextModule.decorators = [
388
+ { type: NgModule, args: [{
389
+ declarations: [
390
+ WidgetFooterTextComponent
391
+ ],
392
+ imports: [
393
+ CommonModule
394
+ ],
395
+ exports: [
396
+ WidgetFooterTextComponent
397
+ ]
398
+ },] }
399
+ ];
400
+
401
+ class WidgetHeaderBadgeBase {
402
+ constructor(_elementRef) {
403
+ this._elementRef = _elementRef;
404
+ }
405
+ }
406
+ const _WidgetHeaderBadgeMixinBase = mixinTheme(WidgetHeaderBadgeBase, 'badge');
407
+ class WidgetHeaderBadgeComponent extends _WidgetHeaderBadgeMixinBase {
408
+ constructor(_elementRef) { super(_elementRef); }
409
+ ngOnInit() { }
410
+ }
411
+ WidgetHeaderBadgeComponent.decorators = [
412
+ { type: Component, args: [{
413
+ selector: 'seam-widget-header-badge',
414
+ template: "<ng-content></ng-content>\n",
415
+ // tslint:disable-next-line:use-input-property-decorator
416
+ inputs: ['theme'],
417
+ // tslint:disable-next-line:use-host-property-decorator
418
+ host: {
419
+ 'class': 'badge float-right'
420
+ },
421
+ encapsulation: ViewEncapsulation.None,
422
+ changeDetection: ChangeDetectionStrategy.OnPush,
423
+ styles: ["seam-widget-header-badge.badge{font-size:17px}"]
424
+ },] }
425
+ ];
426
+ WidgetHeaderBadgeComponent.ctorParameters = () => [
427
+ { type: ElementRef }
428
+ ];
429
+
430
+ class TheSeamWidgetHeaderBadgeModule {
431
+ }
432
+ TheSeamWidgetHeaderBadgeModule.decorators = [
433
+ { type: NgModule, args: [{
434
+ declarations: [
435
+ WidgetHeaderBadgeComponent
436
+ ],
437
+ imports: [
438
+ CommonModule
439
+ ],
440
+ exports: [
441
+ WidgetHeaderBadgeComponent
442
+ ]
443
+ },] }
444
+ ];
445
+
446
+ class WidgetListGroupItemIconTplDirective {
447
+ constructor(template) {
448
+ this.template = template;
449
+ }
450
+ }
451
+ WidgetListGroupItemIconTplDirective.decorators = [
452
+ { type: Directive, args: [{
453
+ selector: '[seamWidgetListGroupItemIconTpl]',
454
+ exportAs: 'seamWidgetListGroupItemIconTpl'
455
+ },] }
456
+ ];
457
+ WidgetListGroupItemIconTplDirective.ctorParameters = () => [
458
+ { type: TemplateRef }
459
+ ];
460
+
461
+ // tslint:disable-next-line: max-line-length
462
+ const WIDGET_LIST_GROUP_ITEM_INPUTS = ['disabled', 'theme', 'active', 'icon', 'iconClass', 'label', 'secondaryIcon', 'secondaryIconClass', 'secondaryIconTitle'];
463
+ class WidgetListGroupItemBase {
464
+ constructor(_elementRef, _renderer) {
465
+ this._elementRef = _elementRef;
466
+ this._renderer = _renderer;
467
+ }
468
+ /** Focuses the element. */
469
+ focus() {
470
+ this._getHostElement().focus();
471
+ }
472
+ _getHostElement() {
473
+ return this._elementRef.nativeElement;
474
+ }
475
+ }
476
+ WidgetListGroupItemBase.decorators = [
477
+ { type: Directive }
478
+ ];
479
+ WidgetListGroupItemBase.ctorParameters = () => [
480
+ { type: ElementRef },
481
+ { type: Renderer2 }
482
+ ];
483
+ WidgetListGroupItemBase.propDecorators = {
484
+ iconTpl: [{ type: ContentChild, args: [WidgetListGroupItemIconTplDirective, { static: true },] }]
485
+ };
486
+ class WidgetListGroupItemActionableBase extends WidgetListGroupItemBase {
487
+ constructor(_elementRef, _focusMonitor, _renderer) {
488
+ super(_elementRef, _renderer);
489
+ this._elementRef = _elementRef;
490
+ this._focusMonitor = _focusMonitor;
491
+ this._renderer = _renderer;
492
+ this._focusMonitor.monitor(this._elementRef, true);
493
+ }
494
+ ngOnDestroy() {
495
+ this._focusMonitor.stopMonitoring(this._elementRef);
496
+ }
497
+ }
498
+ WidgetListGroupItemActionableBase.decorators = [
499
+ { type: Directive }
500
+ ];
501
+ WidgetListGroupItemActionableBase.ctorParameters = () => [
502
+ { type: ElementRef },
503
+ { type: FocusMonitor },
504
+ { type: Renderer2 }
505
+ ];
506
+ const _WidgetListGroupItemBase = mixinActive(mixinTheme(mixinDisabled(WidgetListGroupItemBase), 'list-group-item'));
507
+ const _WidgetListGroupItemActionableBase = mixinActive(mixinTheme(mixinDisabled(WidgetListGroupItemActionableBase), 'list-group-item'));
508
+ class WidgetListGroupItemComponent extends _WidgetListGroupItemBase {
509
+ constructor(_elementRef, _renderer) {
510
+ super(_elementRef, _renderer);
511
+ this._elementRef = _elementRef;
512
+ this._renderer = _renderer;
513
+ }
514
+ ngOnInit() { }
515
+ }
516
+ WidgetListGroupItemComponent.decorators = [
517
+ { type: Component, args: [{
518
+ selector: 'seam-widget-list-group-item',
519
+ template: "<div class=\"d-flex flex-row\">\n <ng-container *ngIf=\"iconTpl; else noIconTpl\">\n <span class=\"pr-2\">\n <ng-container *ngTemplateOutlet=\"$any(iconTpl)\"></ng-container>\n </span>\n </ng-container>\n <ng-template #noIconTpl>\n <span class=\"pr-2\">\n <seam-icon *ngIf=\"icon\"\n [icon]=\"icon\"\n [iconClass]=\"iconClass\"\n iconType=\"borderless-styled-square\">\n </seam-icon>\n </span>\n </ng-template>\n\n <div class=\"d-flex flex-column justify-content-center flex-grow-1\">\n {{ label }}\n </div>\n\n <seam-icon *ngIf=\"secondaryIcon\"\n iconType=\"borderless-styled-square\"\n class=\"secondary-icon align-self-center ml-1\"\n [icon]=\"secondaryIcon\"\n [iconClass]=\"secondaryIconClass\"\n [title]=\"secondaryIconTitle\"\n size=\"lg\">\n </seam-icon>\n</div>\n",
520
+ exportAs: 'seamWidgetListGroupItem',
521
+ inputs: WIDGET_LIST_GROUP_ITEM_INPUTS,
522
+ host: {
523
+ 'class': 'list-group-item',
524
+ '[class.active]': 'active',
525
+ '[attr.aria-disabled]': 'disabled.toString()',
526
+ '[attr.disabled]': 'disabled || null',
527
+ },
528
+ changeDetection: ChangeDetectionStrategy.OnPush,
529
+ styles: [""]
530
+ },] }
531
+ ];
532
+ WidgetListGroupItemComponent.ctorParameters = () => [
533
+ { type: ElementRef },
534
+ { type: Renderer2 }
535
+ ];
536
+ class WidgetListGroupItemButtonComponent extends _WidgetListGroupItemActionableBase {
537
+ constructor(_elementRef, _focusMonitor, _renderer) {
538
+ super(_elementRef, _focusMonitor, _renderer);
539
+ this._elementRef = _elementRef;
540
+ this._focusMonitor = _focusMonitor;
541
+ this._renderer = _renderer;
542
+ /** ARIA type for the button. */
543
+ this.type = 'button';
544
+ }
545
+ ngOnInit() { }
546
+ ngOnDestroy() { super.ngOnDestroy(); }
547
+ }
548
+ WidgetListGroupItemButtonComponent.decorators = [
549
+ { type: Component, args: [{
550
+ // tslint:disable-next-line:component-selector
551
+ selector: 'button[seam-widget-list-group-item],button[seamWidgetListGroupItem]',
552
+ template: "<div class=\"d-flex flex-row\">\n <ng-container *ngIf=\"iconTpl; else noIconTpl\">\n <span class=\"pr-2\">\n <ng-container *ngTemplateOutlet=\"$any(iconTpl)\"></ng-container>\n </span>\n </ng-container>\n <ng-template #noIconTpl>\n <span class=\"pr-2\">\n <seam-icon *ngIf=\"icon\"\n [icon]=\"icon\"\n [iconClass]=\"iconClass\"\n iconType=\"borderless-styled-square\">\n </seam-icon>\n </span>\n </ng-template>\n\n <div class=\"d-flex flex-column justify-content-center flex-grow-1\">\n {{ label }}\n </div>\n\n <seam-icon *ngIf=\"secondaryIcon\"\n iconType=\"borderless-styled-square\"\n class=\"secondary-icon align-self-center ml-1\"\n [icon]=\"secondaryIcon\"\n [iconClass]=\"secondaryIconClass\"\n [title]=\"secondaryIconTitle\"\n size=\"lg\">\n </seam-icon>\n</div>\n",
553
+ exportAs: 'seamWidgetListGroupItem',
554
+ inputs: WIDGET_LIST_GROUP_ITEM_INPUTS,
555
+ host: {
556
+ '[attr.type]': 'type',
557
+ 'class': 'list-group-item list-group-item-action',
558
+ '[class.active]': 'active',
559
+ '[attr.aria-disabled]': 'disabled.toString()',
560
+ '[attr.disabled]': 'disabled || null',
561
+ },
562
+ changeDetection: ChangeDetectionStrategy.OnPush,
563
+ styles: [""]
564
+ },] }
565
+ ];
566
+ WidgetListGroupItemButtonComponent.ctorParameters = () => [
567
+ { type: ElementRef },
568
+ { type: FocusMonitor },
569
+ { type: Renderer2 }
570
+ ];
571
+ WidgetListGroupItemButtonComponent.propDecorators = {
572
+ type: [{ type: Input }]
573
+ };
574
+ class WidgetListGroupItemAnchorComponent extends _WidgetListGroupItemActionableBase {
575
+ constructor(_elementRef, _focusMonitor, _renderer) {
576
+ super(_elementRef, _focusMonitor, _renderer);
577
+ this._elementRef = _elementRef;
578
+ this._focusMonitor = _focusMonitor;
579
+ this._renderer = _renderer;
580
+ }
581
+ ngOnInit() { }
582
+ ngOnDestroy() { super.ngOnDestroy(); }
583
+ _haltDisabledEvents(event) {
584
+ // A disabled button shouldn't apply any actions
585
+ if (this.disabled) {
586
+ event.preventDefault();
587
+ event.stopImmediatePropagation();
588
+ }
589
+ }
590
+ }
591
+ WidgetListGroupItemAnchorComponent.decorators = [
592
+ { type: Component, args: [{
593
+ // tslint:disable-next-line:component-selector
594
+ selector: 'a[seam-widget-list-group-item],a[seamWidgetListGroupItem]',
595
+ template: "<div class=\"d-flex flex-row\">\n <ng-container *ngIf=\"iconTpl; else noIconTpl\">\n <span class=\"pr-2\">\n <ng-container *ngTemplateOutlet=\"$any(iconTpl)\"></ng-container>\n </span>\n </ng-container>\n <ng-template #noIconTpl>\n <span class=\"pr-2\">\n <seam-icon *ngIf=\"icon\"\n [icon]=\"icon\"\n [iconClass]=\"iconClass\"\n iconType=\"borderless-styled-square\">\n </seam-icon>\n </span>\n </ng-template>\n\n <div class=\"d-flex flex-column justify-content-center flex-grow-1\">\n {{ label }}\n </div>\n\n <seam-icon *ngIf=\"secondaryIcon\"\n iconType=\"borderless-styled-square\"\n class=\"secondary-icon align-self-center ml-1\"\n [icon]=\"secondaryIcon\"\n [iconClass]=\"secondaryIconClass\"\n [title]=\"secondaryIconTitle\"\n size=\"lg\">\n </seam-icon>\n</div>\n",
596
+ exportAs: 'seamWidgetListGroupItem',
597
+ inputs: WIDGET_LIST_GROUP_ITEM_INPUTS,
598
+ host: {
599
+ 'class': 'list-group-item list-group-item-action',
600
+ '[class.active]': 'active',
601
+ '[attr.tabindex]': 'disabled ? -1 : (tabIndex || 0)',
602
+ '[attr.aria-disabled]': 'disabled.toString()',
603
+ '[attr.disabled]': 'disabled || null',
604
+ '(click)': '_haltDisabledEvents($event)',
605
+ },
606
+ changeDetection: ChangeDetectionStrategy.OnPush,
607
+ styles: [""]
608
+ },] }
609
+ ];
610
+ WidgetListGroupItemAnchorComponent.ctorParameters = () => [
611
+ { type: ElementRef },
612
+ { type: FocusMonitor },
613
+ { type: Renderer2 }
614
+ ];
615
+ WidgetListGroupItemAnchorComponent.propDecorators = {
616
+ tabIndex: [{ type: Input }]
617
+ };
618
+
619
+ // TODO: Make `ListGroup` a root component and wrap it with `WidgetListGroup`.
620
+ class WidgetListGroupComponent {
621
+ constructor() { }
622
+ ngOnInit() { }
623
+ }
624
+ WidgetListGroupComponent.decorators = [
625
+ { type: Component, args: [{
626
+ selector: 'seam-widget-list-group',
627
+ template: "<ng-content select=\"seam-widget-list-group-item,\n a[seam-widget-list-group-item],\n a[seamWidgetListGroupItem],\n button[seam-widget-list-group-item],\n button[seamWidgetListGroupItem]\">\n</ng-content>\n",
628
+ host: {
629
+ 'class': 'list-group'
630
+ },
631
+ changeDetection: ChangeDetectionStrategy.OnPush,
632
+ styles: [""]
633
+ },] }
634
+ ];
635
+ WidgetListGroupComponent.ctorParameters = () => [];
636
+
637
+ class TheSeamWidgetListGroupModule {
638
+ }
639
+ TheSeamWidgetListGroupModule.decorators = [
640
+ { type: NgModule, args: [{
641
+ declarations: [
642
+ WidgetListGroupComponent,
643
+ WidgetListGroupItemAnchorComponent,
644
+ WidgetListGroupItemButtonComponent,
645
+ WidgetListGroupItemComponent,
646
+ WidgetListGroupItemIconTplDirective
647
+ ],
648
+ imports: [
649
+ CommonModule,
650
+ TheSeamIconModule
651
+ ],
652
+ exports: [
653
+ WidgetListGroupComponent,
654
+ WidgetListGroupItemAnchorComponent,
655
+ WidgetListGroupItemButtonComponent,
656
+ WidgetListGroupItemComponent,
657
+ WidgetListGroupItemIconTplDirective
658
+ ]
659
+ },] }
660
+ ];
661
+
662
+ class WidgetTableComponent {
663
+ constructor() {
664
+ this.rows = [];
665
+ this.size = 'sm';
666
+ this.hasHeader = true;
667
+ this.actionRefreshRequest = new EventEmitter();
668
+ }
669
+ _actionRefreshRequest() {
670
+ this.actionRefreshRequest.emit();
671
+ }
672
+ }
673
+ WidgetTableComponent.decorators = [
674
+ { type: Component, args: [{
675
+ selector: 'seam-widget-table',
676
+ template: "<seam-table\n [columns]=\"columns\"\n [rows]=\"rows\"\n [trackBy]=\"trackBy\"\n [size]=\"size\"\n [hasHeader]=\"hasHeader\"\n (actionRefreshRequest)=\"_actionRefreshRequest()\">\n</seam-table>\n",
677
+ changeDetection: ChangeDetectionStrategy.OnPush,
678
+ styles: [""]
679
+ },] }
680
+ ];
681
+ WidgetTableComponent.ctorParameters = () => [];
682
+ WidgetTableComponent.propDecorators = {
683
+ columns: [{ type: Input }],
684
+ rows: [{ type: Input }],
685
+ trackBy: [{ type: Input }],
686
+ size: [{ type: Input }],
687
+ hasHeader: [{ type: Input }],
688
+ actionRefreshRequest: [{ type: Output }]
689
+ };
690
+ __decorate([
691
+ InputBoolean()
692
+ ], WidgetTableComponent.prototype, "hasHeader", void 0);
693
+
694
+ class TheSeamWidgetTableModule {
695
+ }
696
+ TheSeamWidgetTableModule.decorators = [
697
+ { type: NgModule, args: [{
698
+ declarations: [
699
+ WidgetTableComponent
700
+ ],
701
+ imports: [
702
+ CommonModule,
703
+ TheSeamTableModule,
704
+ TheSeamTableCellTypesModule
705
+ ],
706
+ exports: [
707
+ WidgetTableComponent
708
+ ]
709
+ },] }
710
+ ];
711
+
712
+ class WidgetTileFooterComponent {
713
+ constructor() { }
714
+ ngOnInit() {
715
+ }
716
+ }
717
+ WidgetTileFooterComponent.decorators = [
718
+ { type: Component, args: [{
719
+ selector: 'seam-widget-tile-footer,[seam-widget-tile-footer]',
720
+ template: "\n <ng-content select=\"seam-widget-tile-footer-item,[seam-widget-tile-footer-item]\"></ng-content>\n\n",
721
+ host: {
722
+ class: 'd-flex flex-row justify-content-end'
723
+ },
724
+ changeDetection: ChangeDetectionStrategy.OnPush,
725
+ styles: [""]
726
+ },] }
727
+ ];
728
+ WidgetTileFooterComponent.ctorParameters = () => [];
729
+
730
+ class WidgetTileFooterItemComponent {
731
+ constructor(_elementRef) {
732
+ this._elementRef = _elementRef;
733
+ this.disabled = false;
734
+ }
735
+ get _attrType() {
736
+ return this._type || this._isButton() ? 'button' : undefined;
737
+ }
738
+ get _DisabledCss() { return this.disabled; }
739
+ get type() { return this._type; }
740
+ ngOnInit() { }
741
+ /** Determines if the component host is a button. */
742
+ _isButton() {
743
+ return this._elementRef.nativeElement.nodeName.toLowerCase() === 'button';
744
+ }
745
+ }
746
+ WidgetTileFooterItemComponent.decorators = [
747
+ { type: Component, args: [{
748
+ selector: 'seam-widget-tile-footer-item,a[seam-widget-tile-footer-item],button[seam-widget-tile-footer-item]',
749
+ template: "<ng-content></ng-content>\n",
750
+ host: {
751
+ class: 'btn btn-link py-0 px-1'
752
+ },
753
+ changeDetection: ChangeDetectionStrategy.OnPush,
754
+ styles: [":host{font-size:12px}"]
755
+ },] }
756
+ ];
757
+ WidgetTileFooterItemComponent.ctorParameters = () => [
758
+ { type: ElementRef }
759
+ ];
760
+ WidgetTileFooterItemComponent.propDecorators = {
761
+ _attrType: [{ type: HostBinding, args: ['attr.type',] }],
762
+ _DisabledCss: [{ type: HostBinding, args: ['class.disabled',] }],
763
+ type: [{ type: Input }],
764
+ disabled: [{ type: Input }]
765
+ };
766
+ __decorate([
767
+ InputBoolean()
768
+ ], WidgetTileFooterItemComponent.prototype, "disabled", void 0);
769
+
770
+ class WidgetTileGroupComponent {
771
+ constructor() { }
772
+ ngOnInit() {
773
+ }
774
+ }
775
+ WidgetTileGroupComponent.decorators = [
776
+ { type: Component, args: [{
777
+ selector: 'seam-widget-tile-group',
778
+ template: "<ng-content select=\"[seam-widget-tile],seam-widget-tile\"></ng-content>\n<ng-content select=\"seam-widget-tile-footer\"></ng-content>\n",
779
+ changeDetection: ChangeDetectionStrategy.OnPush,
780
+ styles: [":host{display:block;margin-bottom:.5rem}:host:last-child{margin-bottom:0}:host ::ng-deep [seam-widget-tile]{margin-bottom:0}"]
781
+ },] }
782
+ ];
783
+ WidgetTileGroupComponent.ctorParameters = () => [];
784
+
785
+ class WidgetTileSecondaryIconDirective {
786
+ constructor(template) {
787
+ this.template = template;
788
+ }
789
+ }
790
+ WidgetTileSecondaryIconDirective.decorators = [
791
+ { type: Directive, args: [{
792
+ selector: '[seamWidgetTileSecondaryIcon]',
793
+ exportAs: 'seamWidgetTileSecondaryIcon'
794
+ },] }
795
+ ];
796
+ WidgetTileSecondaryIconDirective.ctorParameters = () => [
797
+ { type: TemplateRef }
798
+ ];
799
+
800
+ class TheSeamWidgetTileBase {
801
+ constructor(_elementRef, _focusMonitor, _renderer) {
802
+ this._elementRef = _elementRef;
803
+ this._focusMonitor = _focusMonitor;
804
+ this._renderer = _renderer;
805
+ this._focusMonitor.monitor(this._elementRef, true);
806
+ }
807
+ ngOnDestroy() {
808
+ this._focusMonitor.stopMonitoring(this._elementRef);
809
+ }
810
+ /** Focuses the button. */
811
+ focus() {
812
+ this._getHostElement().focus();
813
+ }
814
+ _getHostElement() {
815
+ return this._elementRef.nativeElement;
816
+ }
817
+ }
818
+ TheSeamWidgetTileBase.decorators = [
819
+ { type: Component, args: [{ template: '' },] }
820
+ ];
821
+ TheSeamWidgetTileBase.ctorParameters = () => [
822
+ { type: ElementRef },
823
+ { type: FocusMonitor },
824
+ { type: Renderer2 }
825
+ ];
826
+ const _TheSeamWidgetTileMixinBase = mixinTabIndex(mixinDisabled(TheSeamWidgetTileBase));
827
+ // TODO: Should this component be split into separate components for button and anchor.
828
+ class WidgetTileComponent extends _TheSeamWidgetTileMixinBase {
829
+ constructor(_elementRef, _focusMonitor, _renderer) {
830
+ super(_elementRef, _focusMonitor, _renderer);
831
+ this.grayscaleOnDisable = true;
832
+ this._haltDisabledEvents = (event) => {
833
+ // A disabled button shouldn't apply any actions
834
+ if (this.disabled) {
835
+ event.preventDefault();
836
+ event.stopImmediatePropagation();
837
+ }
838
+ };
839
+ }
840
+ get _attrType() {
841
+ return this._type || this._isButton() ? 'button' : undefined;
842
+ }
843
+ get _btnCss() { return this._isButton() ? true : false; }
844
+ get _disabledCss() { return this.disabled; }
845
+ get _ariaDisabled() { return this.disabled.toString(); }
846
+ get _attrDisabled() { return this.disabled || null; }
847
+ get _attrTabIndex() { return this.disabled ? -1 : (this.tabIndex || 0); }
848
+ get type() { return this._type; }
849
+ ngOnInit() {
850
+ if (this._isAnchor()) {
851
+ this._clickUnListen = this._renderer.listen(this._getHostElement(), 'click', this._haltDisabledEvents);
852
+ }
853
+ }
854
+ ngOnDestroy() {
855
+ super.ngOnDestroy();
856
+ if (this._clickUnListen) {
857
+ this._clickUnListen();
858
+ }
859
+ }
860
+ /** Determines if the component host is a button. */
861
+ _isButton() {
862
+ return this._elementRef.nativeElement.nodeName.toLowerCase() === 'button';
863
+ }
864
+ /** Determines if the component host is an anchor. */
865
+ _isAnchor() {
866
+ return this._elementRef.nativeElement.nodeName.toLowerCase() === 'a';
867
+ }
868
+ }
869
+ WidgetTileComponent.decorators = [
870
+ { type: Component, args: [{
871
+ selector: 'seam-widget-tile, a[seam-widget-tile], button[seam-widget-tile]',
872
+ template: "<div class=\"d-flex flex-row\">\n <div style=\"position: relative\">\n <seam-icon\n [icon]=\"icon\"\n iconType=\"styled-square\"\n [iconClass]=\"iconClass\"\n [disabled]=\"disabled\">\n </seam-icon>\n\n <seam-icon *ngIf=\"notificationIcon\"\n class=\"widget-tile--notification-icon\"\n [icon]=\"notificationIcon\"\n iconType=\"image-fill\"\n [iconClass]=\"notificationIconClass\"\n [disabled]=\"disabled\">\n </seam-icon>\n </div>\n <div class=\"flex-grow-1 text-left pl-2\" style=\"margin: auto 0;\">\n <ng-content></ng-content>\n </div>\n <div *ngIf=\"secondaryIcon\">\n <ng-template [ngTemplateOutlet]=\"secondaryIcon.template\"></ng-template>\n </div>\n</div>\n",
873
+ inputs: ['disabled'],
874
+ exportAs: 'seamWidgetTile',
875
+ encapsulation: ViewEncapsulation.None,
876
+ styles: ["a[seam-widget-tile],button[seam-widget-tile],seam-widget-tile{display:block;width:100%;padding:4px;text-decoration:none;color:#212529;font-size:14px;font-weight:400;line-height:18px;border:1px solid #dee2e6;border-radius:10px;margin-bottom:.5rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}a[seam-widget-tile]:hover,button[seam-widget-tile]:hover,seam-widget-tile:hover{color:#212529;background-color:#f4f4f4;text-decoration:none}a[seam-widget-tile].focus,a[seam-widget-tile]:focus,button[seam-widget-tile].focus,button[seam-widget-tile]:focus,seam-widget-tile.focus,seam-widget-tile:focus{box-shadow:0 0 0 .2rem rgba(53,126,189,.25);outline:0}a[seam-widget-tile].disabled,a[seam-widget-tile]:disabled,button[seam-widget-tile].disabled,button[seam-widget-tile]:disabled,seam-widget-tile.disabled,seam-widget-tile:disabled{opacity:.65;pointer-events:none;cursor:default;filter:grayscale(1)}a[seam-widget-tile]:last-child,button[seam-widget-tile]:last-child,seam-widget-tile:last-child{margin-bottom:0}a[seam-widget-tile] .widget-tile--notification-icon,button[seam-widget-tile] .widget-tile--notification-icon,seam-widget-tile .widget-tile--notification-icon{position:absolute;bottom:-3px;right:-3px;width:15px!important;height:15px!important}a[seam-widget-tile] seam-icon img[src$=\".svg\"],button[seam-widget-tile] seam-icon img[src$=\".svg\"],seam-widget-tile seam-icon img[src$=\".svg\"]{height:100%}"]
877
+ },] }
878
+ ];
879
+ WidgetTileComponent.ctorParameters = () => [
880
+ { type: ElementRef },
881
+ { type: FocusMonitor },
882
+ { type: Renderer2 }
883
+ ];
884
+ WidgetTileComponent.propDecorators = {
885
+ _attrType: [{ type: HostBinding, args: ['attr.type',] }],
886
+ _btnCss: [{ type: HostBinding, args: ['class.btn',] }],
887
+ _disabledCss: [{ type: HostBinding, args: ['class.disabled',] }],
888
+ _ariaDisabled: [{ type: HostBinding, args: ['attr.aria-disabled',] }],
889
+ _attrDisabled: [{ type: HostBinding, args: ['attr.disabled',] }],
890
+ _attrTabIndex: [{ type: HostBinding, args: ['attr.tabindex',] }],
891
+ type: [{ type: Input }],
892
+ icon: [{ type: Input }],
893
+ grayscaleOnDisable: [{ type: Input }],
894
+ iconClass: [{ type: Input }],
895
+ notificationIcon: [{ type: Input }],
896
+ notificationIconClass: [{ type: Input }],
897
+ secondaryIcon: [{ type: ContentChild, args: [WidgetTileSecondaryIconDirective, { static: true },] }]
898
+ };
899
+ __decorate([
900
+ InputBoolean()
901
+ ], WidgetTileComponent.prototype, "grayscaleOnDisable", void 0);
902
+
903
+ class TheSeamWidgetTileModule {
904
+ }
905
+ TheSeamWidgetTileModule.decorators = [
906
+ { type: NgModule, args: [{
907
+ declarations: [
908
+ WidgetTileComponent,
909
+ WidgetTileSecondaryIconDirective,
910
+ WidgetTileFooterComponent,
911
+ WidgetTileGroupComponent,
912
+ WidgetTileFooterItemComponent
913
+ ],
914
+ imports: [
915
+ CommonModule,
916
+ TheSeamIconModule
917
+ ],
918
+ exports: [
919
+ WidgetTileComponent,
920
+ WidgetTileSecondaryIconDirective,
921
+ WidgetTileFooterComponent,
922
+ WidgetTileGroupComponent,
923
+ WidgetTileFooterItemComponent
924
+ ]
925
+ },] }
926
+ ];
927
+
928
+ class WidgetTileListComponent {
929
+ constructor() { }
930
+ ngOnInit() {
931
+ }
932
+ }
933
+ WidgetTileListComponent.decorators = [
934
+ { type: Component, args: [{
935
+ selector: 'seam-widget-tile-list',
936
+ template: "<ng-content select=\"[seam-widget-tile],seam-widget-tile,seam-widget-tile-group\"></ng-content>\n",
937
+ styles: [":host{display:flex;flex-direction:column}"]
938
+ },] }
939
+ ];
940
+ WidgetTileListComponent.ctorParameters = () => [];
941
+
942
+ class TheSeamWidgetTileListModule {
943
+ }
944
+ TheSeamWidgetTileListModule.decorators = [
945
+ { type: NgModule, args: [{
946
+ declarations: [
947
+ WidgetTileListComponent
948
+ ],
949
+ imports: [
950
+ CommonModule
951
+ ],
952
+ exports: [
953
+ WidgetTileListComponent,
954
+ TheSeamWidgetTileModule
955
+ ]
956
+ },] }
957
+ ];
958
+
959
+ /**
960
+ * Widget
961
+ *
962
+ * Widgets are designed with the intention of being on a dashboard. Other uses
963
+ * may be supported as the need arises.
964
+ *
965
+ * The only HTML/CSS use should be a widget content component, unless there is a
966
+ * case requiring more advanced design. This is so that we can manage a common
967
+ * style for our widgets. If a case requiring non widget content components is
968
+ * used then the situation should be considered for becoming a widget component.
969
+ */
970
+ class WidgetComponent {
971
+ /** @ignore */
972
+ constructor() {
973
+ /** @ignore */
974
+ this.configIcon = faCog;
975
+ /** @ignore */
976
+ this.collapseIcon = faAngleDown;
977
+ this.collapsed = false;
978
+ /**
979
+ * Toggles the top header bar of a widget. This should be true for most
980
+ * widgets.
981
+ */
982
+ this.hasHeader = true;
983
+ /** Shows widget loading instead of content. */
984
+ this.loading = false;
985
+ /** @ignore */
986
+ // NOTE: Config is still being worked on.
987
+ this.hasConfig = false;
988
+ /** @ignore */
989
+ // NOTE: Collapse is still being worked on.
990
+ this.canCollapse = false;
991
+ }
992
+ /**
993
+ * Icon displayed in the top header.
994
+ *
995
+ * If a more advanced icon is needed you can use `seamWidgetIconTpl` template
996
+ * directive, but a `SeamIcon` input is recommended, because allowing custom
997
+ * icons that do not follow the tested types can lead to inconsitency quickly
998
+ * as different developers keep making tweaks.
999
+ */
1000
+ get icon() { return this._iconUrl || this._iconObj; }
1001
+ set icon(value) {
1002
+ if (typeof value === 'string') {
1003
+ this._iconUrl = value;
1004
+ this._iconObj = undefined;
1005
+ }
1006
+ else {
1007
+ this._iconUrl = undefined;
1008
+ this._iconObj = value;
1009
+ }
1010
+ }
1011
+ /** @ignore */
1012
+ ngOnInit() { }
1013
+ /**
1014
+ * Toggles a widget's collapsed state.
1015
+ *
1016
+ * NOTE: Collapse is still being worked on.
1017
+ * @depracated
1018
+ * @ignore
1019
+ */
1020
+ collapse() {
1021
+ this.collapsed = !this.collapsed;
1022
+ }
1023
+ }
1024
+ WidgetComponent.decorators = [
1025
+ { type: Component, args: [{
1026
+ selector: 'seam-widget',
1027
+ template: "<div class=\"seam-widget border rounded overflow-hidden\">\n <div class=\"widget-header\" seamWidgetDragHandle *ngIf=\"hasHeader\">\n <div class=\"widget-header-content p-2 text-nowrap\">\n <span class=\"mr-1 widget-header-icon\">\n <ng-container *ngIf=\"iconTpl; else noIconTpl\">\n <ng-template\n [ngTemplateOutlet]=\"iconTpl.template\"\n [ngTemplateOutletContext]=\"{ $implicit: icon, icon: icon, title: titleText }\">\n </ng-template>\n </ng-container>\n <ng-template #noIconTpl>\n <fa-icon *ngIf=\"_iconObj\"\n class=\"widget-header-icon--fa {{ iconClass }}\"\n [icon]=\"_iconObj\"></fa-icon>\n <img *ngIf=\"_iconUrl\"\n class=\"widget-header-icon--img {{ iconClass }}\"\n [src]=\"_iconUrl\" [alt]=\"titleText\">\n </ng-template>\n </span>\n <span class=\"widget-header-title text-truncate\">\n <ng-container *ngIf=\"titleTpl; else noTitleTpl\">\n <ng-template\n [ngTemplateOutlet]=\"titleTpl.template\"\n [ngTemplateOutletContext]=\"{ $implicit: titleText, icon: icon, title: titleText }\">\n </ng-template>\n </ng-container>\n <ng-template #noTitleTpl>{{ titleText }}</ng-template>\n </span>\n </div>\n <div class=\"widget-header-btns-container\" *ngIf=\"hasConfig || canCollapse\">\n <div *ngIf=\"hasConfig\">\n <!-- <button seamIconBtn [icon]=\"configIcon\"\n class=\"widget-header-btn-config\"\n iconType=\"\">\n <span class=\"sr-only\">Widget configuration menu</span>\n </button> -->\n <button seamButton class=\"widget-header-btn-config p-0\">\n <seam-icon class=\"d-block\" [icon]=\"configIcon\" iconClass=\"text-secondary\"></seam-icon>\n <span class=\"sr-only\">Widget configuration menu</span>\n </button>\n </div>\n\n <div *ngIf=\"canCollapse\" class=\"px-0\">\n <button seamButton class=\"widget-header-btn-collapse p-0\" (click)=\"collapse()\">\n <seam-icon class=\"d-block\" [icon]=\"collapseIcon\" iconClass=\"text-secondary\" style=\"margin-left: -10px; margin-right: -5px;\"></seam-icon>\n <span class=\"sr-only\">Widget collapse</span>\n </button>\n </div>\n </div>\n </div>\n <div class=\"position-relative\" [style.height.px]=\"loading ? 150 : undefined\">\n <ng-container *ngIf=\"!collapsed\">\n <div class=\"p-2\" *ngIf=\"!loading else loadingTpl\">\n <ng-content></ng-content>\n </div>\n <ng-content select=\"seam-widget-footer\"></ng-content>\n <ng-template #loadingTpl>\n <div class=\"position-absolute\" @loadingAnim style=\"top:0;right:0;bottom:0;left:0\">\n <seam-loading [theme]=\"'primary'\"></seam-loading>\n </div>\n </ng-template>\n </ng-container>\n </div>\n</div>\n",
1028
+ encapsulation: ViewEncapsulation.None,
1029
+ animations: [
1030
+ trigger('loadingAnim', [
1031
+ transition(':enter', [
1032
+ style({ opacity: 0 }),
1033
+ animate('250ms ease-in-out', style({ opacity: 1 }))
1034
+ ]),
1035
+ transition(':leave', [
1036
+ style({ opacity: 1 }),
1037
+ animate('250ms ease-in-out', style({ opacity: 0 }))
1038
+ ])
1039
+ ])
1040
+ ],
1041
+ styles: ["seam-widget{display:block;font-size:15px}seam-widget .seam-widget{background:#fff}seam-widget .widget-header{display:flex;flex-direction:row;border-bottom:1px solid #dee2e6;background:#f4f4f4;font-size:17px}seam-widget .widget-header .widget-header-content{flex:1 1 100%}seam-widget .widget-header .widget-header-btns-container{display:flex;flex-direction:row}seam-widget .widget-header .widget-header-btns-container>div{display:flex;flex-direction:column;justify-content:center;padding:4px}seam-widget .widget-header .widget-header-btns-container .widget-header-btn-config .seam-icon--fa{display:flex;flex-direction:row;justify-content:center;text-align:center;height:25px;width:30px}seam-widget .widget-header .widget-header-btns-container .widget-header-btn-config .seam-icon--fa .svg-inline--fa{max-width:100%;height:100%;width:100%}seam-widget .widget-header .widget-header-btns-container .widget-header-btn-collapse .seam-icon--fa{display:flex;flex-direction:row;justify-content:center;text-align:center;height:15px;width:30px}seam-widget .widget-header .widget-header-btns-container .widget-header-btn-collapse .seam-icon--fa .svg-inline--fa{max-width:100%;height:100%;width:100%}seam-widget .widget-header .widget-header-title{font-size:17px}seam-widget .widget-header-icon{display:inline-block;vertical-align:top;max-height:20px;max-width:20px;height:20px;width:20px}seam-widget .widget-header-icon .widget-header-icon--fa{display:flex;flex-direction:row;justify-content:center;text-align:center;max-height:20px;max-width:20px;height:20px;width:20px}seam-widget .widget-header-icon .widget-header-icon--fa .svg-inline--fa{max-width:100%;height:100%;width:100%}seam-widget .widget-header-icon .widget-header-icon--img{height:100%;max-height:20px;max-width:20px}"]
1042
+ },] }
1043
+ ];
1044
+ WidgetComponent.ctorParameters = () => [];
1045
+ WidgetComponent.propDecorators = {
1046
+ collapsed: [{ type: Input }],
1047
+ hasHeader: [{ type: Input }],
1048
+ titleText: [{ type: Input }],
1049
+ icon: [{ type: Input }],
1050
+ iconClass: [{ type: Input }],
1051
+ loading: [{ type: Input }],
1052
+ hasConfig: [{ type: Input }],
1053
+ canCollapse: [{ type: Input }],
1054
+ iconTpl: [{ type: ContentChild, args: [WidgetIconTplDirective, { static: true },] }],
1055
+ titleTpl: [{ type: ContentChild, args: [WidgetTitleTplDirective, { static: true },] }]
1056
+ };
1057
+ __decorate([
1058
+ InputBoolean()
1059
+ ], WidgetComponent.prototype, "collapsed", void 0);
1060
+ __decorate([
1061
+ InputBoolean()
1062
+ ], WidgetComponent.prototype, "hasHeader", void 0);
1063
+ __decorate([
1064
+ InputBoolean()
1065
+ ], WidgetComponent.prototype, "loading", void 0);
1066
+ __decorate([
1067
+ InputBoolean()
1068
+ ], WidgetComponent.prototype, "hasConfig", void 0);
1069
+ __decorate([
1070
+ InputBoolean()
1071
+ ], WidgetComponent.prototype, "canCollapse", void 0);
1072
+
1073
+ class WidgetFooterComponent {
1074
+ constructor() { }
1075
+ ngOnInit() { }
1076
+ }
1077
+ WidgetFooterComponent.decorators = [
1078
+ { type: Component, args: [{
1079
+ selector: 'seam-widget-footer',
1080
+ template: "<div class=\"widget-footer--left\">\n <ng-content select=\"seam-widget-footer-text\"></ng-content>\n</div>\n<div class=\"widget-footer--right\">\n <ng-content select=\"seam-widget-button-group\"></ng-content>\n</div>\n",
1081
+ changeDetection: ChangeDetectionStrategy.OnPush,
1082
+ encapsulation: ViewEncapsulation.None,
1083
+ styles: ["seam-widget-footer{display:flex;flex-direction:row;margin:.25rem}seam-widget-footer .widget-footer--left{flex:1 1 100%}seam-widget-footer .widget-footer--right{flex:0 0 auto}"]
1084
+ },] }
1085
+ ];
1086
+ WidgetFooterComponent.ctorParameters = () => [];
1087
+
1088
+ const THESEAM_WIDGETS = new InjectionToken('TheSeamWidgets');
1089
+
1090
+ /**
1091
+ * Registry is to provide a way to manage widgets in a way that we can load them
1092
+ * the same way throughout the app, whether the component itself is registered,
1093
+ * the component is lazy-loaded, or referenced by an id stored in the database.
1094
+ */
1095
+ class WidgetRegistryService {
1096
+ constructor(_widgets, _dynamicComponentLoader) {
1097
+ this._widgets = _widgets;
1098
+ this._dynamicComponentLoader = _dynamicComponentLoader;
1099
+ }
1100
+ createWidgetPortal(widgetId, viewContainerRef, injector, componentFactoryResolver) {
1101
+ const widgetDef = (this._widgets || []).find(w => w.widgetId === widgetId);
1102
+ if (!widgetDef) {
1103
+ return throwError(`WidgetRegstry: Unknown widgetId "${widgetId}"`);
1104
+ }
1105
+ if (typeof widgetDef.componentOrComponentId === 'string') {
1106
+ return this._dynamicComponentLoader
1107
+ .getComponentFactory(widgetDef.componentOrComponentId)
1108
+ .pipe(map(componentFactory => {
1109
+ let resolver = componentFactoryResolver;
1110
+ if (!resolver) {
1111
+ const m = componentFactory.ngModule;
1112
+ if (m && m.componentFactoryResolver) {
1113
+ resolver = m.componentFactoryResolver;
1114
+ }
1115
+ }
1116
+ const portal = new ComponentPortal(componentFactory.componentType, viewContainerRef, injector, resolver);
1117
+ return portal;
1118
+ }));
1119
+ }
1120
+ else {
1121
+ const portal = new ComponentPortal(widgetDef.componentOrComponentId, viewContainerRef, injector, componentFactoryResolver);
1122
+ return of(portal);
1123
+ }
1124
+ }
1125
+ }
1126
+ WidgetRegistryService.ɵprov = i0.ɵɵdefineInjectable({ factory: function WidgetRegistryService_Factory() { return new WidgetRegistryService(i0.ɵɵinject(THESEAM_WIDGETS), i0.ɵɵinject(i2.TheSeamDynamicComponentLoader)); }, token: WidgetRegistryService, providedIn: "root" });
1127
+ WidgetRegistryService.decorators = [
1128
+ { type: Injectable, args: [{
1129
+ providedIn: 'root'
1130
+ },] }
1131
+ ];
1132
+ WidgetRegistryService.ctorParameters = () => [
1133
+ { type: Array, decorators: [{ type: Inject, args: [THESEAM_WIDGETS,] }] },
1134
+ { type: TheSeamDynamicComponentLoader }
1135
+ ];
1136
+
1137
+ const contentModules = [
1138
+ TheSeamWidgetButtonGroupModule,
1139
+ TheSeamWidgetContentHeaderModule,
1140
+ TheSeamWidgetDescriptionModule,
1141
+ TheSeamWidgetEmptyLabelModule,
1142
+ TheSeamWidgetFooterLinkModule,
1143
+ TheSeamWidgetFooterTextModule,
1144
+ TheSeamWidgetHeaderBadgeModule,
1145
+ TheSeamWidgetListGroupModule,
1146
+ TheSeamWidgetTableModule,
1147
+ TheSeamWidgetTileListModule,
1148
+ TheSeamWidgetTileModule
1149
+ ];
1150
+ class TheSeamWidgetModule {
1151
+ }
1152
+ TheSeamWidgetModule.decorators = [
1153
+ { type: NgModule, args: [{
1154
+ declarations: [
1155
+ WidgetComponent,
1156
+ WidgetIconTplDirective,
1157
+ WidgetTitleTplDirective,
1158
+ WidgetDragHandleDirective,
1159
+ WidgetFooterComponent
1160
+ ],
1161
+ imports: [
1162
+ CommonModule,
1163
+ FontAwesomeModule,
1164
+ TheSeamIconModule,
1165
+ TheSeamLoadingModule,
1166
+ DragDropModule,
1167
+ TheSeamButtonsModule,
1168
+ CdkTableModule,
1169
+ ...contentModules
1170
+ ],
1171
+ exports: [
1172
+ RouterModule,
1173
+ WidgetComponent,
1174
+ WidgetIconTplDirective,
1175
+ WidgetTitleTplDirective,
1176
+ WidgetFooterComponent,
1177
+ ...contentModules
1178
+ ]
1179
+ },] }
1180
+ ];
1181
+
1182
+ /**
1183
+ * Generated bundle index. Do not edit.
1184
+ */
1185
+
1186
+ export { THESEAM_WIDGETS, THESEAM_WIDGET_ACCESSOR, TheSeamWidgetButtonGroupModule, TheSeamWidgetContentHeaderModule, TheSeamWidgetDescriptionModule, TheSeamWidgetEmptyLabelModule, TheSeamWidgetFooterLinkModule, TheSeamWidgetFooterTextModule, TheSeamWidgetHeaderBadgeModule, TheSeamWidgetListGroupModule, TheSeamWidgetModule, TheSeamWidgetTableModule, TheSeamWidgetTileListModule, TheSeamWidgetTileModule, WidgetButtonGroupComponent, WidgetComponent, WidgetContentHeaderComponent, WidgetDescriptionComponent, WidgetDragHandleDirective, WidgetEmptyLabelComponent, WidgetFooterComponent, WidgetFooterLinkComponent, WidgetFooterTextComponent, WidgetHeaderBadgeComponent, WidgetIconTplDirective, WidgetListGroupComponent, WidgetListGroupItemAnchorComponent, WidgetListGroupItemButtonComponent, WidgetListGroupItemComponent, WidgetListGroupItemIconTplDirective, WidgetRegistryService, WidgetTableComponent, WidgetTileComponent, WidgetTileFooterComponent, WidgetTileFooterItemComponent, WidgetTileGroupComponent, WidgetTileListComponent, WidgetTileSecondaryIconDirective, WidgetTitleTplDirective, extendStyles, toggleNativeDragInteractions };
1187
+ //# sourceMappingURL=theseam-ui-common-widget.js.map