@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-toggle-edit.js","sources":["../../../projects/ui-common/toggle-edit/toggle-edit-display-tpl.directive.ts","../../../projects/ui-common/toggle-edit/toggle-edit-keyboard-listener.service.ts","../../../projects/ui-common/toggle-edit/toggle-edit.component.ts","../../../projects/ui-common/toggle-edit/toggle-edit-actions-container/toggle-edit-actions-container.component.ts","../../../projects/ui-common/toggle-edit/toggle-edit.module.ts","../../../projects/ui-common/toggle-edit/theseam-ui-common-toggle-edit.ts"],"sourcesContent":["import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamToggleEditDisplayTpl]'\n})\nexport class ToggleEditDisplayTplDirective {\n\n constructor(public template: TemplateRef<any>) {}\n\n}\n","import { DOCUMENT } from '@angular/common'\nimport { Inject, Injectable } from '@angular/core'\n\nimport { ICanToggleEdit } from './models'\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ToggleEditKeyboardListenerService {\n\n private _elements: ICanToggleEdit[] = []\n\n private _isListening = false\n\n private _document: Document\n\n constructor(\n @Inject(DOCUMENT) private document: any\n ) {\n this._document = document\n }\n\n public add(element: ICanToggleEdit): void {\n this._elements.push(element)\n this._startListening()\n }\n\n public remove(element: ICanToggleEdit): void {\n this._elements = this._elements.filter(v => v !== element)\n if (this._elements.length === 0) {\n this._stopListening()\n }\n }\n\n public isListening(): boolean {\n return this._isListening\n }\n\n private _startListening(): void {\n if (this.isListening()) {\n return\n }\n\n this._document.body.addEventListener('keydown', this._keydownListener, true)\n\n this._isListening = true\n }\n\n private _stopListening(): void {\n if (!this.isListening()) {\n return\n }\n\n this._document.body.removeEventListener('keydown', this._keydownListener, true)\n\n this._isListening = false\n }\n\n private _keydownListener = (event: KeyboardEvent): boolean | void => {\n for (const element of this._elements) {\n if (element.isEditing()) {\n element.keydownEvent(event)\n }\n }\n }\n\n}\n","import { FocusMonitor } from '@angular/cdk/a11y'\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'\nimport { ENTER, ESCAPE } from '@angular/cdk/keycodes'\nimport { ConnectionPositionPair, Overlay, OverlayRef, PositionStrategy } from '@angular/cdk/overlay'\nimport { TemplatePortal } from '@angular/cdk/portal'\nimport {\n AfterViewInit,\n Component,\n ContentChild,\n DoCheck,\n ElementRef,\n EventEmitter,\n Host,\n HostBinding,\n Input,\n NgZone,\n OnDestroy,\n OnInit,\n Optional,\n Output,\n Renderer2,\n Self,\n TemplateRef,\n ViewChild,\n ViewContainerRef,\n} from '@angular/core'\nimport { AbstractControl, ControlContainer, FormControl, FormGroup } from '@angular/forms'\n\nimport { faCheck, faPen, faTimes } from '@fortawesome/free-solid-svg-icons'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\nimport { TheSeamFormFieldComponent } from '@theseam/ui-common/form-field'\n\nimport { ICanToggleEdit } from './models/can-toggle-edit'\nimport { IToggleEditRef } from './models/toggle-edit-ref'\nimport { ToggleEditDisplayTplDirective } from './toggle-edit-display-tpl.directive'\nimport { ToggleEditKeyboardListenerService } from './toggle-edit-keyboard-listener.service'\n\n\n@Component({\n selector: 'seam-toggle-edit',\n templateUrl: './toggle-edit.component.html',\n styleUrls: ['./toggle-edit.component.scss']\n})\nexport class ToggleEditComponent implements OnInit, OnDestroy, AfterViewInit, DoCheck, ICanToggleEdit, IToggleEditRef {\n static ngAcceptInputType_cancelOnBlur: BooleanInput\n static ngAcceptInputType_waitOnSubmit: BooleanInput\n\n faPen = faPen\n faTimes = faTimes\n faCheck = faCheck\n\n private _previousDisabled = false\n\n /** Use `hasFocus()` to check for focus. This is only for monitoring focus lost. */\n private _focused = false\n private _focusObserver?: MutationObserver\n private _actionsFocused = false\n private _submitting = false\n\n /**\n * Input value before editing.\n *\n * If the edit change is canceled the input value will be reset back to this\n * value.\n */\n private _beforeEditValue = null\n\n @HostBinding('class.toggle-edit-active') get _toggleEditActiveClass() { return this.editing }\n\n @Input() @InputBoolean() cancelOnBlur = true\n @Input() @InputBoolean() waitOnSubmit = false\n\n @Input() placeholder = ''\n\n @Input()\n get editing(): boolean { return this._editing }\n set editing(value: boolean) {\n if (this.disabled && value) { return }\n\n if (!this._editing) {\n this.updateBeforeEditValue()\n }\n this._editing = coerceBooleanProperty(value)\n this.editingChange.emit(value)\n }\n private _editing = false\n\n @Output() changeAccepted = new EventEmitter<IToggleEditRef>()\n @Output() changeDeclined = new EventEmitter<IToggleEditRef>()\n @Output() editingChange = new EventEmitter<boolean>()\n\n @ViewChild('templatePortalContent', { static: true }) templatePortalContent?: TemplateRef<any>\n public templatePortal?: TemplatePortal<any>\n\n public modalRef?: OverlayRef\n\n @ContentChild(ToggleEditDisplayTplDirective, { static: true }) displayTpl?: ToggleEditDisplayTplDirective\n\n constructor(\n private _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>,\n @Optional() @Self() private controlContainer: ControlContainer,\n @Optional() @Host() private formFieldComponent: TheSeamFormFieldComponent,\n private _kbListener: ToggleEditKeyboardListenerService,\n private _focusMonitor: FocusMonitor,\n private _ngZone: NgZone,\n private _renderer: Renderer2,\n private _viewContainerRef: ViewContainerRef,\n private _overlay: Overlay\n ) {\n this._ngZone.runOutsideAngular(() => {\n this._focusObserver = new MutationObserver(() => {\n this._ngZone.run(() => {\n if (this.hasFocus()) {\n if (this.disabled) { return }\n this._onFocus()\n } else {\n this._onBlur()\n }\n })\n })\n })\n }\n\n ngOnInit() {\n this._initMonitors()\n if (this.formFieldComponent) {\n // TODO: Consider making this smarter, such as avoiding overwritting when input set.\n this.formFieldComponent.numPaddingErrors = 0\n }\n }\n\n ngOnDestroy() {\n this._destroyMonitors()\n }\n\n ngAfterViewInit() {\n if (this.formFieldComponent && this.formFieldComponent.contentInput) {\n this.formFieldComponent.contentInput.stateChanges.subscribe(_ => {\n this._checkDisabledChange()\n })\n }\n setTimeout(() => {\n if (this.templatePortalContent) {\n this.templatePortal = new TemplatePortal(this.templatePortalContent, this._viewContainerRef)\n }\n })\n this._checkDisabledChange()\n }\n\n ngDoCheck() {\n this._checkDisabledChange()\n }\n\n private _initMonitors() {\n this._kbListener.add(this)\n\n this._focusMonitor.monitor(this._elementRef.nativeElement, true)\n this._focusObserver?.observe(this._elementRef.nativeElement, {\n attributes: true,\n attributeFilter: ['class'],\n childList: false,\n characterData: false\n })\n }\n\n private _destroyMonitors() {\n this._kbListener.remove(this)\n\n this._focusObserver?.disconnect()\n this._focused = false\n this._focusMonitor.stopMonitoring(this._elementRef.nativeElement)\n this._renderer.removeAttribute(this._elementRef.nativeElement, 'tabindex')\n }\n\n // Make this disabled checking implementation better. It gets called to much\n // trying to be accurate.\n private _checkDisabledChange() {\n const isDisabled = this.disabled\n if (isDisabled !== this._previousDisabled) {\n\n }\n }\n\n public get disabled() {\n const control = this.getControl()\n if (control) {\n return control.disabled\n }\n return false\n }\n\n public canSubmit(): boolean {\n const control = this.getControl()\n if (control) {\n return control.valid\n }\n return true\n }\n\n public isSubmitting(): boolean {\n return this._submitting\n }\n\n public submitComplete(error?: any): void {\n const control = this.getControl()\n if (control) {\n control.enable()\n }\n this._submitting = false\n\n if (!error) {\n this.stopEditing()\n }\n }\n\n public updateBeforeEditValue(): void {\n const control = this.getControl()\n if (control) {\n this._beforeEditValue = control.value\n }\n }\n\n public getValue(): string | null {\n const control = this.getControl()\n if (control) {\n return control.value\n }\n\n return null\n }\n\n public resetValue(): void {\n const control = this.getControl()\n if (control) {\n // Reset without emitting then update which will emit, because reset will\n // emit changes before setting pristine\n control.reset(this._beforeEditValue, { emitEvent: false })\n control.updateValueAndValidity()\n }\n }\n\n public isFormGroup(): boolean {\n return !!this.controlContainer\n }\n\n public getFormGroup(): FormGroup | null {\n if (!this.isFormGroup()) { return null }\n return <FormGroup>this.controlContainer.control\n }\n\n public isInFormField(): boolean {\n return !!this.formFieldComponent\n }\n\n public getFormControl(): FormControl | null {\n if (!this.isInFormField()) { return null }\n if (!this.formFieldComponent.contentInput) { return null }\n return <FormControl>this.formFieldComponent.contentInput.ngControl.control\n }\n\n public hasControl(): boolean {\n return !!this.getControl()\n }\n\n public getControl(): AbstractControl | null {\n if (this.isFormGroup()) {\n return this.getFormGroup()\n } else if (this.isInFormField()) {\n return this.getFormControl()\n }\n return null\n }\n\n public submitEdit(): void {\n if (!this.canSubmit()) {\n return\n }\n\n if (this.waitOnSubmit) {\n const control = this.getControl()\n if (control) {\n control.disable()\n }\n this._submitting = true\n }\n\n this.stopEditing()\n\n this.changeAccepted.emit(<IToggleEditRef>this)\n }\n\n public cancelEdit(): void {\n // Reset without emitting then update which will emit, because reset will\n // emit changes before setting pristine\n this.resetValue()\n this.stopEditing()\n\n this.changeDeclined.emit(<IToggleEditRef>this)\n }\n\n private _onFocus(): void {\n // Return if already focused\n if (this._focused) { return }\n\n this._focused = true\n this._actionsFocused = false\n }\n\n private _onBlur(): void {\n // Return if focus hasn't been detected\n if (!this._focused) { return }\n\n if (this.editing && this.cancelOnBlur) {\n setTimeout(() => {\n if (!this._actionsFocused) {\n this.cancelEdit()\n }\n })\n }\n\n this._focused = false\n }\n\n public hasFocus(): boolean {\n return this._elementRef.nativeElement.classList.contains('cdk-focused')\n }\n\n public focusContent(): void {\n // Set the tab index to `-1` to allow the root element of the component to\n // receive `focus` event from javascript, but not get focused by keyboard\n // navigation. This is for the focus monitor. If a button is clicked the\n // focus monitor emits a blur before the focus of the input. This will avoid\n // the blur by letting the component itself receive focus events.\n this._renderer.setAttribute(this._elementRef.nativeElement, 'tabindex', '-1')\n this._elementRef.nativeElement.focus()\n }\n\n public toggleEditing(isEditing?: boolean): void {\n if (this.editing === isEditing) { return }\n const _editing = isEditing === undefined ? !this.editing : !!isEditing\n if (_editing) {\n this.startEditing()\n } else {\n this.stopEditing()\n }\n }\n\n public isEditing(): boolean {\n return this.editing\n }\n\n public startEditing(): void {\n if (this.disabled) { return }\n if (this.isEditing()) {\n return\n }\n\n this.updateBeforeEditValue()\n\n this.focusContent()\n\n this.editing = true\n\n this.modalRef = this._overlay.create({\n hasBackdrop: false,\n positionStrategy: this.getOverlayPosition(this._elementRef.nativeElement),\n })\n\n this.modalRef.attach(this.templatePortal)\n }\n\n public stopEditing(): void {\n if (!this.isEditing()) {\n return\n }\n\n if (this.isSubmitting()) {\n return\n }\n\n if (this.modalRef?.hasAttached()) {\n this.modalRef.detach()\n }\n\n // NOTE: This is a hack to avoid a focus lost issue introduced by a focus\n // acuired issue's hack.\n this._elementRef.nativeElement.focus()\n this._elementRef.nativeElement.blur()\n this._focusMonitor.stopMonitoring(this._elementRef.nativeElement)\n this._renderer.removeAttribute(this._elementRef.nativeElement, 'tabindex')\n this._focusMonitor.monitor(this._elementRef.nativeElement, true)\n\n this.editing = false\n }\n\n public keydownEvent(event: KeyboardEvent): void {\n // tslint:disable-next-line:deprecation\n switch (event.keyCode) {\n case ESCAPE: {\n this.cancelEdit()\n break\n }\n case ENTER: {\n this.submitEdit()\n break\n }\n }\n }\n\n private getOverlayPosition(origin: HTMLElement): PositionStrategy {\n const positionStrategy = this._overlay.position()\n .flexibleConnectedTo(origin)\n .withPositions(this.getPositions())\n .withFlexibleDimensions(false)\n .withPush(false)\n\n return positionStrategy\n }\n\n private getPositions(): ConnectionPositionPair[] {\n return [\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n },\n {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top',\n },\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom'\n },\n ]\n }\n\n public resized(): void {\n if (this.modalRef && this.modalRef.hasAttached()) {\n this.modalRef.updatePosition()\n }\n }\n\n public actionsFocusChange(event: any): void {\n this._actionsFocused = !!event\n }\n\n}\n","import { Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-toggle-edit-actions-container',\n templateUrl: './toggle-edit-actions-container.component.html',\n styleUrls: ['./toggle-edit-actions-container.component.scss']\n})\nexport class ToggleEditActionsContainerComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { A11yModule } from '@angular/cdk/a11y'\nimport { OverlayModule } from '@angular/cdk/overlay'\nimport { PortalModule } from '@angular/cdk/portal'\nimport { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { ReactiveFormsModule } from '@angular/forms'\n\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome'\n\nimport { TheSeamFormFieldModule } from '@theseam/ui-common/form-field'\nimport { TheSeamLoadingModule } from '@theseam/ui-common/loading'\nimport { TheSeamSharedModule } from '@theseam/ui-common/shared'\n\nimport { ToggleEditActionsContainerComponent } from './toggle-edit-actions-container/toggle-edit-actions-container.component'\nimport { ToggleEditDisplayTplDirective } from './toggle-edit-display-tpl.directive'\nimport { ToggleEditComponent } from './toggle-edit.component'\n\n@NgModule({\n declarations: [\n ToggleEditDisplayTplDirective,\n ToggleEditActionsContainerComponent,\n ToggleEditComponent,\n ],\n imports: [\n CommonModule,\n TheSeamSharedModule,\n FontAwesomeModule,\n ReactiveFormsModule,\n TheSeamFormFieldModule,\n OverlayModule,\n PortalModule,\n A11yModule,\n TheSeamLoadingModule\n ],\n exports: [\n ToggleEditDisplayTplDirective,\n ToggleEditComponent\n ]\n})\nexport class TheSeamToggleEditModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MAKa,6BAA6B;IAExC,YAAmB,QAA0B;QAA1B,aAAQ,GAAR,QAAQ,CAAkB;KAAI;;;YALlD,SAAS,SAAC;gBACT,QAAQ,EAAE,4BAA4B;aACvC;;;YAJmB,WAAW;;;MCQlB,iCAAiC;IAQ5C,YAC4B,QAAa;QAAb,aAAQ,GAAR,QAAQ,CAAK;QAPjC,cAAS,GAAqB,EAAE,CAAA;QAEhC,iBAAY,GAAG,KAAK,CAAA;QA8CpB,qBAAgB,GAAG,CAAC,KAAoB;YAC9C,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE;gBACpC,IAAI,OAAO,CAAC,SAAS,EAAE,EAAE;oBACvB,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAA;iBAC5B;aACF;SACF,CAAA;QA7CC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAA;KAC1B;IAEM,GAAG,CAAC,OAAuB;QAChC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC5B,IAAI,CAAC,eAAe,EAAE,CAAA;KACvB;IAEM,MAAM,CAAC,OAAuB;QACnC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC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iBACpB;gBACD,OAAO,EAAE;oBACP,YAAY;oBACZ,mBAAmB;oBACnB,iBAAiB;oBACjB,mBAAmB;oBACnB,sBAAsB;oBACtB,aAAa;oBACb,YAAY;oBACZ,UAAU;oBACV,oBAAoB;iBACrB;gBACD,OAAO,EAAE;oBACP,6BAA6B;oBAC7B,mBAAmB;iBACpB;aACF;;;ACtCD;;;;;;"}
@@ -0,0 +1,260 @@
1
+ import { coerceBooleanProperty, coerceArray } from '@angular/cdk/coercion';
2
+ import { EventEmitter, Directive, ElementRef, ChangeDetectorRef, Input, Output, HostBinding, forwardRef, ContentChildren, NgModule } from '@angular/core';
3
+ import { __decorate } from 'tslib';
4
+ import { NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
5
+ import { Subject, of, combineLatest, from } from 'rxjs';
6
+ import { takeUntil, startWith, map, switchMap, filter, tap } from 'rxjs/operators';
7
+ import { InputBoolean } from '@theseam/ui-common/core';
8
+ import { CommonModule } from '@angular/common';
9
+
10
+ class ToggleGroupOptionDirective {
11
+ constructor(_elementRef, _cdr) {
12
+ this._elementRef = _elementRef;
13
+ this._cdr = _cdr;
14
+ this._selected = false;
15
+ /** Internal use only for now. */
16
+ this._canUnselect = true;
17
+ this.selectionChange = new EventEmitter();
18
+ }
19
+ get selected() { return this._selected; }
20
+ set selected(value) {
21
+ if (!this._canUnselect && !value) {
22
+ return;
23
+ }
24
+ this._selected = coerceBooleanProperty(value);
25
+ this.selectionChange.emit(this._selected);
26
+ this._cdr.markForCheck();
27
+ }
28
+ get _checkioSelectedClass() {
29
+ return this._selected;
30
+ }
31
+ get value() {
32
+ return this.seamToggleGroupOption;
33
+ }
34
+ }
35
+ ToggleGroupOptionDirective.decorators = [
36
+ { type: Directive, args: [{
37
+ selector: '[seamToggleGroupOption]',
38
+ exportAs: 'seamToggleGroupOption'
39
+ },] }
40
+ ];
41
+ ToggleGroupOptionDirective.ctorParameters = () => [
42
+ { type: ElementRef },
43
+ { type: ChangeDetectorRef }
44
+ ];
45
+ ToggleGroupOptionDirective.propDecorators = {
46
+ seamToggleGroupOption: [{ type: Input }],
47
+ selected: [{ type: Input }],
48
+ selectionChange: [{ type: Output }],
49
+ _checkioSelectedClass: [{ type: HostBinding, args: ['class.lib-toggle-group-option-selected',] }]
50
+ };
51
+
52
+ const TOGGLE_GROUP_VALUE_ACCESSOR = {
53
+ provide: NG_VALUE_ACCESSOR,
54
+ // tslint:disable-next-line:no-use-before-declare
55
+ useExisting: forwardRef(() => ToggleGroupDirective),
56
+ multi: true,
57
+ };
58
+ class ToggleGroupDirective {
59
+ constructor() {
60
+ this._ngUnsubscribe = new Subject();
61
+ this.disabled = false;
62
+ this.multiple = false;
63
+ this.selectionToggleable = true;
64
+ // TODO: Add min/max selected inputs to make toggling better for multi select
65
+ this.change = new EventEmitter();
66
+ }
67
+ ngOnDestroy() {
68
+ this._ngUnsubscribe.next();
69
+ this._ngUnsubscribe.complete();
70
+ }
71
+ ngAfterViewInit() {
72
+ setTimeout(() => {
73
+ this._updateDirectiveStates();
74
+ if (this.optionDirectives) {
75
+ this.options = this.optionDirectives.changes
76
+ .pipe(takeUntil(this._ngUnsubscribe))
77
+ .pipe(startWith(this.optionDirectives))
78
+ .pipe(map(v => v.toArray()));
79
+ this.options.pipe(switchMap(opts => {
80
+ const _tmp = of(undefined);
81
+ if (opts) {
82
+ const _v = [];
83
+ for (const opt of opts) {
84
+ _v.push(opt.selectionChange.pipe(filter(v => opt.selected !== this.isSelected(opt.value)), tap(v => {
85
+ if (this.isSelected(opt.value)) {
86
+ this.unselectValue(opt.value);
87
+ }
88
+ else {
89
+ this.selectValue(opt.value);
90
+ }
91
+ })));
92
+ }
93
+ return combineLatest(_v);
94
+ }
95
+ return _tmp;
96
+ })).subscribe();
97
+ }
98
+ this.change
99
+ .pipe(switchMap(_ => {
100
+ var _a;
101
+ return from(((_a = this.optionDirectives) === null || _a === void 0 ? void 0 : _a.toArray()) || [])
102
+ .pipe(tap(opt => { this._updateDirectiveState(opt); }));
103
+ }))
104
+ .subscribe();
105
+ });
106
+ }
107
+ get value() {
108
+ return this.val;
109
+ }
110
+ set value(value) {
111
+ const _value = this.multiple
112
+ ? value !== null && value !== undefined
113
+ ? coerceArray(value)
114
+ : value
115
+ : value;
116
+ this.val = (this.multiple) ? [...(_value || [])] : _value || '';
117
+ this.change.emit(this.val);
118
+ if (this.onChange) {
119
+ this.onChange(_value);
120
+ }
121
+ if (this.onTouched) {
122
+ this.onTouched();
123
+ }
124
+ }
125
+ writeValue(value) {
126
+ this.value = value;
127
+ }
128
+ registerOnChange(fn) {
129
+ this.onChange = fn;
130
+ }
131
+ registerOnTouched(fn) {
132
+ this.onTouched = fn;
133
+ }
134
+ setDisabledState(isDisabled) {
135
+ this.disabled = isDisabled;
136
+ }
137
+ isSelected(value) {
138
+ if (this.multiple) {
139
+ const idx = (this.value || []).findIndex(v => v === value);
140
+ return idx !== -1;
141
+ }
142
+ else {
143
+ // TODO: Clean this up when the directive no longer allows array value type when multiple is false
144
+ const v = Array.isArray(this.value) && this.value.length === 1
145
+ ? this.value[0]
146
+ : this.value;
147
+ return v === value;
148
+ }
149
+ }
150
+ unselectValue(value) {
151
+ if (this.multiple) {
152
+ this.value = (this.value || []).filter(v => v !== value);
153
+ }
154
+ else {
155
+ this.value = undefined;
156
+ }
157
+ }
158
+ selectValue(value) {
159
+ if (this.multiple) {
160
+ const _value = [...(this.value || [])];
161
+ this.value = value ? [..._value, value] : _value;
162
+ }
163
+ else {
164
+ this.value = value;
165
+ }
166
+ }
167
+ getOptionDirectiveByValue(value) {
168
+ if (!this.optionDirectives || this.optionDirectives.length < 1) {
169
+ return null;
170
+ }
171
+ return this.optionDirectives.toArray()
172
+ .find(opt => opt.value === value);
173
+ }
174
+ _updateDirectiveStates() {
175
+ if (this.optionDirectives) {
176
+ for (const opt of this.optionDirectives.toArray()) {
177
+ this._updateDirectiveState(opt);
178
+ }
179
+ }
180
+ }
181
+ _updateDirectiveState(opt) {
182
+ const selected = this.isSelected(opt.value);
183
+ if (opt.selected !== selected) {
184
+ if (!opt._canUnselect) {
185
+ opt._canUnselect = true;
186
+ }
187
+ opt.selected = selected;
188
+ }
189
+ if (!this.selectionToggleable) {
190
+ if (!this.multiple || (this.value && this.value.length <= 1)) {
191
+ if (opt.selected) {
192
+ if (opt._canUnselect) {
193
+ opt._canUnselect = false;
194
+ }
195
+ }
196
+ else {
197
+ if (!opt._canUnselect) {
198
+ opt._canUnselect = true;
199
+ }
200
+ }
201
+ }
202
+ else {
203
+ if (!opt._canUnselect) {
204
+ opt._canUnselect = true;
205
+ }
206
+ }
207
+ }
208
+ }
209
+ }
210
+ ToggleGroupDirective.decorators = [
211
+ { type: Directive, args: [{
212
+ selector: '[seamToggleGroup]',
213
+ exportAs: 'seamToggleGroup',
214
+ providers: [TOGGLE_GROUP_VALUE_ACCESSOR]
215
+ },] }
216
+ ];
217
+ ToggleGroupDirective.ctorParameters = () => [];
218
+ ToggleGroupDirective.propDecorators = {
219
+ val: [{ type: Input, args: ['value',] }],
220
+ disabled: [{ type: Input }],
221
+ multiple: [{ type: Input }],
222
+ selectionToggleable: [{ type: Input }],
223
+ change: [{ type: Output }],
224
+ optionDirectives: [{ type: ContentChildren, args: [ToggleGroupOptionDirective,] }]
225
+ };
226
+ __decorate([
227
+ InputBoolean()
228
+ ], ToggleGroupDirective.prototype, "disabled", void 0);
229
+ __decorate([
230
+ InputBoolean()
231
+ ], ToggleGroupDirective.prototype, "multiple", void 0);
232
+ __decorate([
233
+ InputBoolean()
234
+ ], ToggleGroupDirective.prototype, "selectionToggleable", void 0);
235
+
236
+ class TheSeamToggleGroupModule {
237
+ }
238
+ TheSeamToggleGroupModule.decorators = [
239
+ { type: NgModule, args: [{
240
+ declarations: [
241
+ ToggleGroupDirective,
242
+ ToggleGroupOptionDirective
243
+ ],
244
+ imports: [
245
+ CommonModule,
246
+ ReactiveFormsModule
247
+ ],
248
+ exports: [
249
+ ToggleGroupDirective,
250
+ ToggleGroupOptionDirective
251
+ ]
252
+ },] }
253
+ ];
254
+
255
+ /**
256
+ * Generated bundle index. Do not edit.
257
+ */
258
+
259
+ export { TOGGLE_GROUP_VALUE_ACCESSOR, TheSeamToggleGroupModule, ToggleGroupDirective, ToggleGroupOptionDirective };
260
+ //# sourceMappingURL=theseam-ui-common-toggle-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theseam-ui-common-toggle-group.js","sources":["../../../projects/ui-common/toggle-group/toggle-group-option.directive.ts","../../../projects/ui-common/toggle-group/toggle-group.directive.ts","../../../projects/ui-common/toggle-group/toggle-group.module.ts","../../../projects/ui-common/toggle-group/theseam-ui-common-toggle-group.ts"],"sourcesContent":["import { coerceBooleanProperty } from '@angular/cdk/coercion'\nimport { ChangeDetectorRef, Directive, ElementRef, EventEmitter, HostBinding, Input, Output } from '@angular/core'\n\n@Directive({\n selector: '[seamToggleGroupOption]',\n exportAs: 'seamToggleGroupOption'\n})\nexport class ToggleGroupOptionDirective {\n\n @Input() seamToggleGroupOption: string | undefined | null\n\n @Input()\n get selected(): boolean { return this._selected }\n set selected(value: boolean) {\n if (!this._canUnselect && !value) { return }\n this._selected = coerceBooleanProperty(value)\n this.selectionChange.emit(this._selected)\n this._cdr.markForCheck()\n }\n private _selected = false\n\n /** Internal use only for now. */\n _canUnselect = true\n\n @Output() selectionChange = new EventEmitter<boolean>()\n\n @HostBinding('class.lib-toggle-group-option-selected') get _checkioSelectedClass() {\n return this._selected\n }\n\n constructor(\n private readonly _elementRef: ElementRef,\n private readonly _cdr: ChangeDetectorRef\n ) { }\n\n get value(): string | undefined | null {\n return this.seamToggleGroupOption\n }\n\n}\n","import { BooleanInput, coerceArray } from '@angular/cdk/coercion'\nimport { AfterViewInit, ContentChildren, Directive, EventEmitter, forwardRef, Input, OnDestroy, Output, QueryList } from '@angular/core'\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'\nimport { combineLatest, from, Observable, of, Subject } from 'rxjs'\nimport { filter, map, startWith, switchMap, takeUntil, tap } from 'rxjs/operators'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\n\nimport { ToggleGroupOptionDirective } from './toggle-group-option.directive'\n\nexport const TOGGLE_GROUP_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n // tslint:disable-next-line:no-use-before-declare\n useExisting: forwardRef(() => ToggleGroupDirective),\n multi: true,\n}\n\n@Directive({\n selector: '[seamToggleGroup]',\n exportAs: 'seamToggleGroup',\n providers: [ TOGGLE_GROUP_VALUE_ACCESSOR ]\n})\nexport class ToggleGroupDirective implements OnDestroy, AfterViewInit, ControlValueAccessor {\n static ngAcceptInputType_disabled: BooleanInput\n static ngAcceptInputType_multiple: BooleanInput\n static ngAcceptInputType_selectionToggleable: BooleanInput\n\n private readonly _ngUnsubscribe = new Subject()\n\n // tslint:disable-next-line:no-input-rename\n @Input('value') val: string | string[] | undefined | null\n\n @Input() @InputBoolean() disabled: boolean = false\n @Input() @InputBoolean() multiple: boolean = false\n @Input() @InputBoolean() selectionToggleable: boolean = true\n\n // TODO: Add min/max selected inputs to make toggling better for multi select\n\n @Output() readonly change = new EventEmitter<string | string[] | undefined | null>()\n\n @ContentChildren(ToggleGroupOptionDirective) optionDirectives?: QueryList<ToggleGroupOptionDirective>\n\n public options?: Observable<ToggleGroupOptionDirective[]>\n\n onChange: any\n onTouched: any\n\n constructor() { }\n\n ngOnDestroy() {\n this._ngUnsubscribe.next()\n this._ngUnsubscribe.complete()\n }\n\n ngAfterViewInit() {\n setTimeout(() => {\n this._updateDirectiveStates()\n\n if (this.optionDirectives) {\n this.options = this.optionDirectives.changes\n .pipe(takeUntil(this._ngUnsubscribe))\n .pipe(startWith(this.optionDirectives))\n .pipe(map(v => v.toArray() as ToggleGroupOptionDirective[]))\n\n this.options.pipe(switchMap(opts => {\n const _tmp = of(undefined)\n if (opts) {\n const _v: Observable<boolean>[] = []\n for (const opt of opts) {\n _v.push(opt.selectionChange.pipe(\n filter(v => opt.selected !== this.isSelected(opt.value)),\n tap(v => {\n if (this.isSelected(opt.value)) {\n this.unselectValue(opt.value)\n } else {\n this.selectValue(opt.value)\n }\n })\n ))\n }\n return combineLatest(_v)\n }\n return _tmp\n })).subscribe()\n }\n\n this.change\n .pipe(switchMap(_ => from(this.optionDirectives?.toArray() || [])\n .pipe(tap(opt => { this._updateDirectiveState(opt) }))\n ))\n .subscribe()\n })\n }\n\n get value(): string | string[] | undefined | null {\n return this.val\n }\n\n set value(value: string | string[] | undefined | null) {\n const _value = this.multiple\n ? value !== null && value !== undefined\n ? coerceArray(value)\n : value\n : value\n\n this.val = (this.multiple) ? [ ...(<string[]>_value || []) ] : _value || ''\n this.change.emit(this.val)\n if (this.onChange) { this.onChange(_value) }\n if (this.onTouched) { this.onTouched() }\n }\n\n writeValue(value: any): void {\n this.value = value\n }\n\n registerOnChange(fn: any): void {\n this.onChange = fn\n }\n\n registerOnTouched(fn: any): void {\n this.onTouched = fn\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled\n }\n\n isSelected(value: string | undefined | null) {\n if (this.multiple) {\n const idx = (<string[]>this.value || []).findIndex(v => v === value)\n return idx !== -1\n } else {\n // TODO: Clean this up when the directive no longer allows array value type when multiple is false\n const v = Array.isArray(this.value) && this.value.length === 1\n ? this.value[0]\n : this.value\n return v === value\n }\n }\n\n unselectValue(value: string | undefined | null) {\n if (this.multiple) {\n this.value = (<string[]>this.value || []).filter(v => v !== value)\n } else {\n this.value = undefined\n }\n }\n\n selectValue(value: string | undefined | null) {\n if (this.multiple) {\n const _value = [ ...(<string[]>this.value || []) ]\n this.value = value ? [ ..._value, value ] : _value\n } else {\n this.value = value\n }\n }\n\n getOptionDirectiveByValue(value: string) {\n if (!this.optionDirectives || this.optionDirectives.length < 1) {\n return null\n }\n\n return this.optionDirectives.toArray()\n .find(opt => opt.value === value)\n }\n\n private _updateDirectiveStates(): void {\n if (this.optionDirectives) {\n for (const opt of this.optionDirectives.toArray()) {\n this._updateDirectiveState(opt)\n }\n }\n }\n\n private _updateDirectiveState(opt: ToggleGroupOptionDirective): void {\n const selected = this.isSelected(opt.value)\n if (opt.selected !== selected) {\n if (!opt._canUnselect) {\n opt._canUnselect = true\n }\n opt.selected = selected\n }\n if (!this.selectionToggleable) {\n if (!this.multiple || (this.value && this.value.length <= 1)) {\n if (opt.selected) {\n if (opt._canUnselect) {\n opt._canUnselect = false\n }\n } else {\n if (!opt._canUnselect) {\n opt._canUnselect = true\n }\n }\n } else {\n if (!opt._canUnselect) {\n opt._canUnselect = true\n }\n }\n }\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { ReactiveFormsModule } from '@angular/forms'\n\nimport { ToggleGroupOptionDirective } from './toggle-group-option.directive'\nimport { ToggleGroupDirective } from './toggle-group.directive'\n\n@NgModule({\n declarations: [\n ToggleGroupDirective,\n ToggleGroupOptionDirective\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule\n ],\n exports: [\n ToggleGroupDirective,\n ToggleGroupOptionDirective\n ]\n})\nexport class TheSeamToggleGroupModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAOa,0BAA0B;IAuBrC,YACmB,WAAuB,EACvB,IAAuB;QADvB,gBAAW,GAAX,WAAW,CAAY;QACvB,SAAI,GAAJ,IAAI,CAAmB;QAblC,cAAS,GAAG,KAAK,CAAA;;QAGzB,iBAAY,GAAG,IAAI,CAAA;QAET,oBAAe,GAAG,IAAI,YAAY,EAAW,CAAA;KASlD;IAtBL,IACI,QAAQ,KAAc,OAAO,IAAI,CAAC,SAAS,CAAA,EAAE;IACjD,IAAI,QAAQ,CAAC,KAAc;QACzB,IAAI,CAAC,IAAI,CAAC,YAAY,IAAI,CAAC,KAAK,EAAE;YAAE,OAAM;SAAE;QAC5C,IAAI,CAAC,SAAS,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAA;QAC7C,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI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C3B;aACF;;;ACpBD;;;;;;"}
@@ -0,0 +1,97 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, NgModule, isDevMode, Injectable, Directive, HostListener } from '@angular/core';
3
+
4
+ // TODO: Decide if this component should be implemented or just use the native
5
+ // browser dialog for in-app routing also.
6
+ class UnsavedChangesDialogComponent {
7
+ constructor() { }
8
+ ngOnInit() {
9
+ }
10
+ }
11
+ UnsavedChangesDialogComponent.decorators = [
12
+ { type: Component, args: [{
13
+ selector: 'seam-unsaved-changes-dialog',
14
+ template: `
15
+ <p>
16
+ unsaved-changes-dialog works!
17
+ </p>
18
+ `
19
+ },] }
20
+ ];
21
+ UnsavedChangesDialogComponent.ctorParameters = () => [];
22
+
23
+ class TheSeamUnsavedChangesDialogModule {
24
+ }
25
+ TheSeamUnsavedChangesDialogModule.decorators = [
26
+ { type: NgModule, args: [{
27
+ declarations: [UnsavedChangesDialogComponent],
28
+ imports: [],
29
+ exports: [UnsavedChangesDialogComponent]
30
+ },] }
31
+ ];
32
+
33
+ class UnsavedChangesDialogGuard {
34
+ /**
35
+ * NOTE: Must be synchronous for now to allow `window:beforeunload` event support.
36
+ */
37
+ canDeactivate(component) {
38
+ if (isDevMode()) {
39
+ if (!component.unsavedChangesCanDeactivate) {
40
+ console.warn('Route Component with [UnsavedChangesDialogGuard] guard must extend [UnsavedChangesCanDeactivate] class.');
41
+ }
42
+ const w = window;
43
+ // Avoid redirect prevention in Storybook
44
+ if (w && w.__STORYBOOK_CLIENT_API__) {
45
+ return true;
46
+ }
47
+ }
48
+ if (!component.unsavedChangesCanDeactivate()) {
49
+ if (confirm('You have unsaved changes! If you leave, your changes will be lost.')) {
50
+ return true;
51
+ }
52
+ else {
53
+ return false;
54
+ }
55
+ }
56
+ return true;
57
+ }
58
+ }
59
+ UnsavedChangesDialogGuard.ɵprov = i0.ɵɵdefineInjectable({ factory: function UnsavedChangesDialogGuard_Factory() { return new UnsavedChangesDialogGuard(); }, token: UnsavedChangesDialogGuard, providedIn: "root" });
60
+ UnsavedChangesDialogGuard.decorators = [
61
+ { type: Injectable, args: [{
62
+ providedIn: 'root'
63
+ },] }
64
+ ];
65
+
66
+ // tslint:disable-next-line: directive-class-suffix
67
+ class UnsavedChangesCanDeactivate {
68
+ __unloadNotification($event) {
69
+ if (isDevMode()) {
70
+ if (!this.unsavedChangesCanDeactivate) {
71
+ console.warn('Route Component with [UnsavedChangesDialogGuard] guard must extend [UnsavedChangesCanDeactivate] class.');
72
+ }
73
+ const w = window;
74
+ // Avoid redirect prevention in Storybook
75
+ if (w && w.__STORYBOOK_CLIENT_API__) {
76
+ return true;
77
+ }
78
+ }
79
+ if (!this.unsavedChangesCanDeactivate()) {
80
+ // $event.returnValue = true
81
+ $event.returnValue = 'You have unsaved changes! If you leave, your changes will be lost.';
82
+ }
83
+ }
84
+ }
85
+ UnsavedChangesCanDeactivate.decorators = [
86
+ { type: Directive }
87
+ ];
88
+ UnsavedChangesCanDeactivate.propDecorators = {
89
+ __unloadNotification: [{ type: HostListener, args: ['window:beforeunload', ['$event'],] }]
90
+ };
91
+
92
+ /**
93
+ * Generated bundle index. Do not edit.
94
+ */
95
+
96
+ export { TheSeamUnsavedChangesDialogModule, UnsavedChangesCanDeactivate, UnsavedChangesDialogComponent, UnsavedChangesDialogGuard };
97
+ //# sourceMappingURL=theseam-ui-common-unsaved-changes-dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theseam-ui-common-unsaved-changes-dialog.js","sources":["../../../projects/ui-common/unsaved-changes-dialog/unsaved-changes-dialog.component.ts","../../../projects/ui-common/unsaved-changes-dialog/unsaved-changes-dialog.module.ts","../../../projects/ui-common/unsaved-changes-dialog/unsaved-changes-dialog.guard.ts","../../../projects/ui-common/unsaved-changes-dialog/unsaved-changes-can-deactivate.ts","../../../projects/ui-common/unsaved-changes-dialog/theseam-ui-common-unsaved-changes-dialog.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core'\n\n// TODO: Decide if this component should be implemented or just use the native\n// browser dialog for in-app routing also.\n\n@Component({\n selector: 'seam-unsaved-changes-dialog',\n template: `\n <p>\n unsaved-changes-dialog works!\n </p>\n `,\n styles: []\n})\nexport class UnsavedChangesDialogComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { NgModule } from '@angular/core'\n\nimport { UnsavedChangesDialogComponent } from './unsaved-changes-dialog.component'\n\n@NgModule({\n declarations: [UnsavedChangesDialogComponent],\n imports: [],\n exports: [UnsavedChangesDialogComponent]\n})\nexport class TheSeamUnsavedChangesDialogModule { }\n","import { Injectable, isDevMode } from '@angular/core'\nimport { CanDeactivate } from '@angular/router'\n\nimport { UnsavedChangesCanDeactivate } from './unsaved-changes-can-deactivate'\n\n@Injectable({\n providedIn: 'root'\n})\nexport class UnsavedChangesDialogGuard implements CanDeactivate<UnsavedChangesCanDeactivate> {\n\n /**\n * NOTE: Must be synchronous for now to allow `window:beforeunload` event support.\n */\n canDeactivate(component: UnsavedChangesCanDeactivate): boolean {\n if (isDevMode()) {\n if (!component.unsavedChangesCanDeactivate) {\n console.warn('Route Component with [UnsavedChangesDialogGuard] guard must extend [UnsavedChangesCanDeactivate] class.')\n }\n\n const w = window as any\n // Avoid redirect prevention in Storybook\n if (w && w.__STORYBOOK_CLIENT_API__) {\n return true\n }\n }\n\n if (!component.unsavedChangesCanDeactivate()) {\n if (confirm('You have unsaved changes! If you leave, your changes will be lost.')) {\n return true\n } else {\n return false\n }\n }\n return true\n }\n\n}\n","import { Directive, HostListener, isDevMode } from '@angular/core'\n\n@Directive()\n// tslint:disable-next-line: directive-class-suffix\nexport abstract class UnsavedChangesCanDeactivate {\n\n abstract unsavedChangesCanDeactivate(): boolean\n\n @HostListener('window:beforeunload', ['$event'])\n __unloadNotification($event: any) {\n if (isDevMode()) {\n if (!this.unsavedChangesCanDeactivate) {\n console.warn('Route Component with [UnsavedChangesDialogGuard] guard must extend [UnsavedChangesCanDeactivate] class.')\n }\n\n const w = window as any\n // Avoid redirect prevention in Storybook\n if (w && w.__STORYBOOK_CLIENT_API__) {\n return true\n }\n }\n\n if (!this.unsavedChangesCanDeactivate()) {\n // $event.returnValue = true\n $event.returnValue = 'You have unsaved changes! If you leave, your changes will be lost.'\n }\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAEA;AACA;MAWa,6BAA6B;IAExC,iBAAiB;IAEjB,QAAQ;KACP;;;YAdF,SAAS,SAAC;gBACT,QAAQ,EAAE,6BAA6B;gBACvC,QAAQ,EAAE;;;;GAIT;aAEF;;;;MCJY,iCAAiC;;;YAL7C,QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,6BAA6B,CAAC;gBAC7C,OAAO,EAAE,EAAE;gBACX,OAAO,EAAE,CAAC,6BAA6B,CAAC;aACzC;;;MCAY,yBAAyB;;;;IAKpC,aAAa,CAAC,SAAsC;QAClD,IAAI,SAAS,EAAE,EAAE;YACf,IAAI,CAAC,SAAS,CAAC,2BAA2B,EAAE;gBAC1C,OAAO,CAAC,IAAI,CAAC,yGAAyG,CAAC,CAAA;aACxH;YAED,MAAM,CAAC,GAAG,MAAa,CAAA;;YAEvB,IAAI,CAAC,IAAI,CAAC,CAAC,wBAAwB,EAAE;gBACnC,OAAO,IAAI,CAAA;aACZ;SACF;QAED,IAAI,CAAC,SAAS,CAAC,2BAA2B,EAAE,EAAE;YAC5C,IAAI,OAAO,CAAC,oEAAoE,CAAC,EAAE;gBACjF,OAAO,IAAI,CAAA;aACZ;iBAAM;gBACL,OAAO,KAAK,CAAA;aACb;SACF;QACD,OAAO,IAAI,CAAA;KACZ;;;;YA7BF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;ACJD;MACsB,2BAA2B;IAK7C,oBAAoB,CAAC,MAAW;QAC9B,IAAI,SAAS,EAAE,EAAE;YACf,IAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE;gBACrC,OAAO,CAAC,IAAI,CAAC,yGAAyG,CAAC,CAAA;aACxH;YAED,MAAM,CAAC,GAAG,MAAa,CAAA;;YAEvB,IAAI,CAAC,IAAI,CAAC,CAAC,wBAAwB,EAAE;gBACnC,OAAO,IAAI,CAAA;aACZ;SACF;QAED,IAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE;;YAEvC,MAAM,CAAC,WAAW,GAAG,oEAAoE,CAAA;SAC1F;KACF;;;YAxBJ,SAAS;;;mCAML,YAAY,SAAC,qBAAqB,EAAE,CAAC,QAAQ,CAAC;;;ACRnD;;;;;;"}
@@ -0,0 +1,797 @@
1
+ import { switchMap, startWith, map, distinctUntilChanged, mapTo, filter, take, pairwise, toArray, tap, shareReplay, publishReplay, refCount, skip } from 'rxjs/operators';
2
+ import { of, merge, interval, from, combineLatest, Observable, isObservable, BehaviorSubject, Subject } from 'rxjs';
3
+ import { __rest, __awaiter } from 'tslib';
4
+ import fileType from '@marklb/file-type';
5
+
6
+ /**
7
+ *
8
+ */
9
+ function getAttribute(element, name) {
10
+ return element.getAttribute(name);
11
+ }
12
+
13
+ /**
14
+ *
15
+ */
16
+ function hasAttribute(element, name) {
17
+ return element.hasAttribute(name);
18
+ }
19
+
20
+ /**
21
+ * Finds the closest CdkDrag to an element by looking at the DOM.
22
+ * @param element Element relative to which to look for a cdkDrag.
23
+ * @param openDialogs References to the currently available cdkDrag.
24
+ */
25
+ function getClosestWidgetCdkDrag(element, dragDirectives) {
26
+ let parent = element.nativeElement.parentElement;
27
+ while (parent && !(parent.classList.contains('cdk-drag') && hasAttribute(parent, 'data-widget-id'))) {
28
+ parent = parent.parentElement;
29
+ }
30
+ const parentId = parent ? getAttribute(parent, 'data-widget-id') : null;
31
+ return parentId ?
32
+ dragDirectives.find(drag => getAttribute(drag.getRootElement(), 'data-widget-id') === parentId)
33
+ : null;
34
+ }
35
+
36
+ /**
37
+ * Get the name of the control.
38
+ *
39
+ * Example:
40
+ *
41
+ * ```js
42
+ * const group = new FormGroup({
43
+ * name: new Control(),
44
+ * age: new Control()
45
+ * })
46
+ *
47
+ * for (const c of group.controls) {
48
+ * console.log(getControlName(c))
49
+ * }
50
+ *
51
+ * // Output:
52
+ * // >> 'name'
53
+ * // >> 'age'
54
+ * ```
55
+ */
56
+ function getControlName(c) {
57
+ if (!c.parent) {
58
+ return null;
59
+ }
60
+ // NOTE: Typed as 'any' because using string for array index is not valid for
61
+ // array index type, but it works and we actually want the index as a string
62
+ // anyway.
63
+ const controls = c.parent.controls;
64
+ return Object.keys(controls).find(name => c === controls[name]) || null;
65
+ }
66
+
67
+ /**
68
+ * Get the path to a control.
69
+ *
70
+ * The path is built by walking back the `parent` properties until `parent` is
71
+ * `null`.
72
+ *
73
+ * Example:
74
+ *
75
+ * ```js
76
+ * const group = new FormGroup({
77
+ * name: new FormControl(),
78
+ * address: new FormGroup({
79
+ * city: new FormControl(),
80
+ * state: new FormControl()
81
+ * })
82
+ * })
83
+ *
84
+ * const control = group.get('address.city')
85
+ * console.log(getControlPath(control))
86
+ *
87
+ * // Output:
88
+ * >> 'address.city'
89
+ * ```
90
+ *
91
+ */
92
+ function getControlPath(c, path = '') {
93
+ path = getControlName(c) + path;
94
+ if (c.parent && getControlName(c.parent)) {
95
+ path = '.' + path;
96
+ return getControlPath(c.parent, path);
97
+ }
98
+ else {
99
+ return path;
100
+ }
101
+ }
102
+
103
+ /**
104
+ * Observe the value of a control.
105
+ */
106
+ function observeControlValue(control) {
107
+ return of(control)
108
+ .pipe(switchMap(_control => _control.valueChanges
109
+ .pipe(startWith(_control.value))));
110
+ }
111
+
112
+ /**
113
+ * Observe the changed state of the input value from the time this function is
114
+ * called.
115
+ *
116
+ * When this function is called the value is stored. Each time the control's
117
+ * value changes the value is compared with the initial value. Currenly the
118
+ * values are compared as stringified objects using `JSON.stringify`.
119
+ *
120
+ * TODO: Allow the value compare implementation to be optionally changed.
121
+ */
122
+ function observeControlIsDifferent(control) {
123
+ const _initial = JSON.stringify(control.value);
124
+ return observeControlValue(control)
125
+ .pipe(map(value => JSON.stringify(value) !== _initial), distinctUntilChanged());
126
+ }
127
+
128
+ /**
129
+ * Wait on the status of a form control to not be `'PENDING'`.
130
+ *
131
+ * NOTE: This function is mainly just a work around for an issue where
132
+ * `statusChanges` sometimes emits `'Pending'` without emitting another state
133
+ * when complete. Seems to happen with async validators if the value changes
134
+ * before completing, even if the validator completes(subscription `complete`
135
+ * if observable).
136
+ */
137
+ function waitOnNonPendingStatus(control) {
138
+ return merge(control.statusChanges, interval(30).pipe(mapTo(control), map(c => c.status)))
139
+ .pipe(startWith(control.status))
140
+ .pipe(filter(v => v !== 'PENDING'))
141
+ .pipe(take(1));
142
+ }
143
+
144
+ /**
145
+ * Observe the status of a control using a work around for status not changing
146
+ * after pending.
147
+ */
148
+ function observeControlStatus(control) {
149
+ return of(control)
150
+ .pipe(switchMap(_control => _control.statusChanges
151
+ .pipe(startWith(_control.status))
152
+ .pipe(switchMap(status => status === 'PENDING'
153
+ ? waitOnNonPendingStatus(control)
154
+ .pipe(startWith(status))
155
+ : of(status)))));
156
+ }
157
+
158
+ /**
159
+ * Observe the valid state of a control.
160
+ *
161
+ * By default `waitOnPending` is false and the control states map to:
162
+ * 'VALID' => true
163
+ * 'INVALID' => false
164
+ * 'PENDING' => false
165
+ *
166
+ * If `waitOnPending` is true the valid result when 'PENDING' remains the same
167
+ * as it was before 'PENDING' until it is no longer 'PENDING'.
168
+ */
169
+ function observeControlValid(control, waitOnPending = false) {
170
+ if (waitOnPending) {
171
+ return observeControlStatus(control)
172
+ .pipe(distinctUntilChanged())
173
+ .pipe(startWith(undefined))
174
+ .pipe(pairwise())
175
+ .pipe(map(v => ({ previous: v[0], current: v[1] })))
176
+ .pipe(map(v => v.current === 'PENDING' ? v.previous : v.current))
177
+ .pipe(map(status => status === 'VALID'));
178
+ }
179
+ else {
180
+ return observeControlStatus(control)
181
+ .pipe(distinctUntilChanged())
182
+ .pipe(map(status => status === 'VALID'));
183
+ }
184
+ }
185
+
186
+ /**
187
+ * Observe the value of a control with the previous.
188
+ */
189
+ function observeControlValueChange(control) {
190
+ return observeControlValue(control)
191
+ .pipe(startWith(undefined), pairwise(), map(v => ({ previous: v[0], current: v[1] })));
192
+ }
193
+
194
+ // Source: https://stackoverflow.com/a/59361497/7926298
195
+ function hasProperty(style, prop
196
+ // ): style is T & { [P in K]-?: Exclude<T[K], undefined> } {
197
+ ) {
198
+ return style.hasOwnProperty(prop) && style[prop] !== undefined;
199
+ }
200
+
201
+ /**
202
+ * Check if control has a required control.
203
+ *
204
+ * ----------------------------------------------------------------------------
205
+ * NOTE: I am not sure about if this should be used or not.
206
+ *
207
+ * From my understanding this assumes that all the validators do not have some
208
+ * unexpected side-effect from being called like this. It could be argued that
209
+ * the validator is flawed and should be fixed if that is the case, but I am not
210
+ * convinced that is correct yet.
211
+ *
212
+ * An example that I think is valid for this argument: A FormControl configured
213
+ * to only check validators when a specific condition happens, because of a
214
+ * reason that it has to do a long process. In that situation should this
215
+ * function be smart enough to consider that or is it up to the validator to
216
+ * consider this function possibly being used.
217
+ *
218
+ * This seems to assume the required validator will always be a synchronous
219
+ * validator. That is a valid assumption if thinking about showing a required
220
+ * state in the UI, but a FormControl does not neccessarily have to be used in
221
+ * UI. So, I think it could be valid to have an async validator that uses the
222
+ * name `required` for it error, but I do not have a good example, so I could be
223
+ * wrong.
224
+ * ----------------------------------------------------------------------------
225
+ *
226
+ * Source: https://gist.github.com/jsdevtom/5589af349a395b37e699b67417ef025b
227
+ * @experimental
228
+ * @ignore
229
+ */
230
+ function hasRequiredControl(abstractControl) {
231
+ if (abstractControl.validator) {
232
+ const validator = abstractControl.validator({});
233
+ if (validator && validator.required) {
234
+ return true;
235
+ }
236
+ }
237
+ const _abstractControl = abstractControl;
238
+ if (hasProperty(_abstractControl, 'controls')) {
239
+ for (const controlName in _abstractControl.controls) {
240
+ if (_abstractControl.controls[controlName]) {
241
+ if (hasRequiredControl(_abstractControl.controls[controlName])) {
242
+ return true;
243
+ }
244
+ }
245
+ }
246
+ }
247
+ return false;
248
+ }
249
+
250
+ // Source: https://github.com/angular/angular/blob/master/packages/forms/src/validators.ts#L16
251
+ function isEmptyInputValue(value) {
252
+ // we don't check for string here so it also works with arrays
253
+ return value == null || value.length === 0;
254
+ }
255
+
256
+ function mapEach(predicate) {
257
+ return (source$) => source$.pipe(switchMap(v => from(v).pipe(map(m => predicate(m)), toArray())));
258
+ }
259
+
260
+ /**
261
+ * Like tap, but only calls predicate on first emission.
262
+ */
263
+ function tapFirst(predicate) {
264
+ let _initialized = false;
265
+ return (source$) => source$.pipe(tap(v => {
266
+ if (!_initialized) {
267
+ predicate(v);
268
+ _initialized = true;
269
+ }
270
+ }));
271
+ }
272
+
273
+ function leafChildRoute(activatedRoute) {
274
+ let route = activatedRoute;
275
+ while (route.firstChild) {
276
+ route = route.firstChild;
277
+ }
278
+ return route;
279
+ }
280
+
281
+ function hasRouteConfigDataProp(route, prop) {
282
+ return !!(route && route.routeConfig && route.routeConfig.data && route.routeConfig.data.hasOwnProperty(prop));
283
+ }
284
+ function hasRouteConfigResolveProp(route, prop) {
285
+ return !!(route && route.routeConfig && route.routeConfig.resolve && route.routeConfig.resolve.hasOwnProperty(prop));
286
+ }
287
+ function willHaveDataProp(route, prop) {
288
+ return hasRouteConfigDataProp(route, prop) || hasRouteConfigResolveProp(route, prop);
289
+ }
290
+
291
+ function activatedRoutesWithDataProperty(prop, mustHaveDefined = false) {
292
+ const _data = (r) => r.data.pipe(map(_d => ({ route: r, data: _d })));
293
+ return (source$) => source$.pipe(map(route => leafChildRoute(route)), map(route => route.pathFromRoot), switchMap(routes => combineLatest(routes.map(r => _data(r)))), map(v => v.filter(_v => _v.data.hasOwnProperty(prop))), map(v => mustHaveDefined
294
+ ? v.filter(_v => willHaveDataProp(_v.route, prop))
295
+ : v));
296
+ }
297
+
298
+ function routeSnapshotPathRelative(route) {
299
+ return route.url.reduce((path, urlSegment) => path += '/' + urlSegment.path, '');
300
+ }
301
+
302
+ function routeSnapshotPathFull(route) {
303
+ return route.pathFromRoot.reduce((path, _route) => path += routeSnapshotPathRelative(_route), '');
304
+ }
305
+
306
+ function isEmptyUrlRoute(activatedRoute) {
307
+ return activatedRoute.snapshot.url.length === 0;
308
+ }
309
+
310
+ function calcPercentage(total, n) {
311
+ return total && total > 0 ? (n / total) * 100 : 0;
312
+ }
313
+
314
+ /**
315
+ * Polyfil for `Element.toggleAttribute`
316
+ *
317
+ * Toggles a value without a value. Useful for attributes, such as `disabled`,
318
+ * `readonly`, and `hidden`, that only needs to exist on the `Element` without
319
+ * requiring a value.
320
+ *
321
+ * Most browsers natively support this feature, but IE, which we still try to
322
+ * support for at least the main parts of the app, has "Unknown" support of this
323
+ * feature. Until IE support is dropped this polyfil should be used to toggle an
324
+ * attribute.
325
+ *
326
+ * Source:
327
+ * https://developer.mozilla.org/en-US/docs/Web/API/Element/toggleAttribute#Polyfill
328
+ */
329
+ function toggleAttribute(element, name, force) {
330
+ if (force !== void 0) {
331
+ force = !!force;
332
+ }
333
+ if (element.getAttribute(name) !== null) {
334
+ if (force) {
335
+ return true;
336
+ }
337
+ element.removeAttribute(name);
338
+ return false;
339
+ }
340
+ else {
341
+ if (force === false) {
342
+ return false;
343
+ }
344
+ element.setAttribute(name, '');
345
+ return true;
346
+ }
347
+ }
348
+
349
+ const phoneNumberMask = ['(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/];
350
+
351
+ function isNullOrUndefined(value) {
352
+ return value === undefined || value === null;
353
+ }
354
+
355
+ function loadStyle(content) {
356
+ return new Promise((resolve, reject) => {
357
+ const s = document.createElement('style');
358
+ s.onload = () => resolve(s);
359
+ s.onerror = (e) => {
360
+ document.head.removeChild(s);
361
+ reject(e);
362
+ };
363
+ s.innerHTML = content;
364
+ document.head.appendChild(s);
365
+ });
366
+ }
367
+
368
+ function loadStyleSheet(path) {
369
+ return new Promise((resolve, reject) => {
370
+ const s = document.createElement('link');
371
+ s.onload = () => resolve(s);
372
+ s.onerror = (e) => {
373
+ document.head.removeChild(s);
374
+ reject(e);
375
+ };
376
+ s.rel = 'stylesheet';
377
+ s.href = path;
378
+ document.head.appendChild(s);
379
+ });
380
+ }
381
+
382
+ /** Returns object without property */
383
+ function withoutProperty(obj, propName) {
384
+ const _a = obj, _b = propName, _ = _a[_b], without = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);
385
+ return without;
386
+ }
387
+ /** Returns object without properties */
388
+ function withoutProperties(obj, propNames) {
389
+ let without = obj;
390
+ for (const propName of propNames) {
391
+ without = withoutProperty(without, propName);
392
+ }
393
+ return without;
394
+ }
395
+ /** Delete property of object */
396
+ function deleteProperty(obj, propName) {
397
+ if (obj.hasOwnProperty(propName)) {
398
+ delete obj[propName];
399
+ }
400
+ }
401
+ /** Delete properties of object */
402
+ function deleteProperties(obj, propNames) {
403
+ for (const propName of propNames) {
404
+ deleteProperty(obj, propName);
405
+ }
406
+ }
407
+
408
+ // import { Buffer } from 'buffer/'
409
+ const Buffer = require('buffer/').Buffer;
410
+ function readFileAsync(file) {
411
+ return new Promise((resolve, reject) => {
412
+ const reader = new FileReader();
413
+ reader.onload = () => {
414
+ resolve(reader.result);
415
+ };
416
+ reader.readAsArrayBuffer(file);
417
+ });
418
+ }
419
+ function readFileAsDataUrlAsync(file) {
420
+ return __awaiter(this, void 0, void 0, function* () {
421
+ return new Promise((resolve, reject) => {
422
+ const reader = new FileReader();
423
+ reader.onload = () => {
424
+ resolve(reader.result);
425
+ };
426
+ reader.readAsDataURL(file);
427
+ });
428
+ });
429
+ }
430
+ function fileBufferToBlob(fileBuffer, defaultMime = 'application/octet-stream') {
431
+ return __awaiter(this, void 0, void 0, function* () {
432
+ const fType = fileType(fileBuffer);
433
+ const mime = (fType) ? fType.mime : defaultMime;
434
+ const blob = new Blob([fileBuffer], { type: mime });
435
+ return blob;
436
+ });
437
+ }
438
+ function fileBufferToObjectUrl(fileBuffer, defaultMime = 'application/octet-stream') {
439
+ return __awaiter(this, void 0, void 0, function* () {
440
+ const file = yield fileBufferToBlob(fileBuffer, defaultMime);
441
+ const fileURL = URL.createObjectURL(file);
442
+ return fileURL;
443
+ });
444
+ }
445
+ function fileDataFromBuffer(fileBuffer, defaultMime = 'application/octet-stream') {
446
+ return __awaiter(this, void 0, void 0, function* () {
447
+ const _fileBuffer = Buffer.from(fileBuffer);
448
+ const fType = fileType(_fileBuffer);
449
+ const ext = fType && fType.ext || undefined;
450
+ const mime = fType ? fType.mime : defaultMime;
451
+ const blob = new Blob([_fileBuffer], { type: mime });
452
+ const fileData = { ext, mime, blob };
453
+ return fileData;
454
+ });
455
+ }
456
+ function openBlob(blob, target, filename) {
457
+ // NOTE: IE and MSEdge do not allow Blob resources as a source for
458
+ // tabs or iframes. msSaveOrOpenBlob is used as a workaround. I
459
+ // haven't been able to find a way to just open the Blob file in
460
+ // another tab yet for IE or MSEdge.
461
+ if (window.navigator.msSaveOrOpenBlob) {
462
+ window.navigator.msSaveOrOpenBlob(blob, filename);
463
+ }
464
+ else {
465
+ const url = URL.createObjectURL(blob);
466
+ const win = window.open(url, target);
467
+ // TODO: Consider if always setting opener to null is to restrictive
468
+ // if (win && target && target.toLowerCase() === '_blank') {
469
+ // win.opener = null
470
+ // }
471
+ }
472
+ }
473
+
474
+ function notNullOrUndefined(value) {
475
+ return value !== null && value !== undefined;
476
+ }
477
+
478
+ function waitOnConditionAsync(condition, timeoutDuration = -1, throwOnTimeout = true) {
479
+ return __awaiter(this, void 0, void 0, function* () {
480
+ const timeStart = new Date();
481
+ const _waitFunc = (callback) => {
482
+ let conditionSuccess = false;
483
+ if (condition()) {
484
+ callback(true);
485
+ conditionSuccess = true;
486
+ }
487
+ if (!conditionSuccess) {
488
+ const timeNow = new Date();
489
+ const duration = timeNow - timeStart;
490
+ if (timeoutDuration > -1 && duration > timeoutDuration) {
491
+ if (throwOnTimeout) {
492
+ throw new Error('Timed out waiting on condition.');
493
+ }
494
+ else {
495
+ callback(false);
496
+ }
497
+ }
498
+ setTimeout(() => { _waitFunc(callback); }, 30);
499
+ }
500
+ };
501
+ return new Promise((resolve, reject) => {
502
+ const fn = (b) => {
503
+ resolve(b);
504
+ };
505
+ _waitFunc(fn);
506
+ });
507
+ });
508
+ }
509
+
510
+ class IntervalTimer {
511
+ constructor(_callback, intervalTime, startOnInit = true) {
512
+ this._callback = _callback;
513
+ this._intervalId = null;
514
+ this._intervalTime = intervalTime;
515
+ if (startOnInit) {
516
+ this.start();
517
+ }
518
+ }
519
+ set intervalTime(time) {
520
+ this._intervalTime = time;
521
+ }
522
+ start() {
523
+ if (this._intervalId === null) {
524
+ this._intervalId = window.setInterval(() => {
525
+ this._callback();
526
+ }, this._intervalTime);
527
+ }
528
+ }
529
+ stop() {
530
+ if (this._intervalId !== null) {
531
+ clearInterval(this._intervalId);
532
+ this._intervalId = null;
533
+ }
534
+ }
535
+ reset(newIntervalTime) {
536
+ if (newIntervalTime) {
537
+ this.intervalTime = newIntervalTime;
538
+ }
539
+ this.stop();
540
+ this.start();
541
+ }
542
+ }
543
+ // tslint:disable:no-inferrable-types
544
+ class PollingTickerOptions {
545
+ constructor() {
546
+ this.emitOnInit = true;
547
+ }
548
+ }
549
+ // tslint:enable:no-inferrable-types
550
+ // TODO: Simplify complexity.
551
+ /**
552
+ * Call an action and emits the result to its subscriber on an interval or when
553
+ * ticker emits. When the ticker emits, the interval time will reset.
554
+ *
555
+ * When subscribed to, the action will be called and emitted right away unless
556
+ * the `emitOnInit` option is set to false.
557
+ */
558
+ function pollingTicker(action, pollingInterval, ticker, options) {
559
+ return new Observable((subscriber) => {
560
+ const _opts = Object.assign(Object.assign({}, (new PollingTickerOptions())), (options || {}));
561
+ let timer = null;
562
+ let actionSub = null;
563
+ let tickerSub = null;
564
+ try {
565
+ const handleAction = () => {
566
+ if (timer) {
567
+ timer.stop();
568
+ }
569
+ const actionResult = action();
570
+ if (isObservable(actionResult)) {
571
+ if (actionSub) {
572
+ actionSub.unsubscribe();
573
+ }
574
+ actionSub = actionResult.subscribe((v) => { subscriber.next(v); if (timer) {
575
+ timer.reset();
576
+ } }, (err) => { subscriber.error(err); }, () => {
577
+ actionSub = null;
578
+ if (timer) {
579
+ timer.start();
580
+ }
581
+ });
582
+ }
583
+ else {
584
+ subscriber.next(actionResult);
585
+ }
586
+ if (timer) {
587
+ timer.start();
588
+ }
589
+ };
590
+ if (_opts.emitOnInit) {
591
+ handleAction();
592
+ }
593
+ if (pollingInterval) {
594
+ timer = new IntervalTimer(() => {
595
+ handleAction();
596
+ }, pollingInterval);
597
+ }
598
+ if (ticker) {
599
+ tickerSub = ticker.subscribe(newPollingInterval => {
600
+ if (newPollingInterval && timer) {
601
+ timer.stop();
602
+ if (newPollingInterval) {
603
+ timer.intervalTime = newPollingInterval;
604
+ }
605
+ }
606
+ handleAction();
607
+ if (timer) {
608
+ timer.reset();
609
+ }
610
+ });
611
+ }
612
+ }
613
+ catch (err) {
614
+ subscriber.error(err);
615
+ }
616
+ return () => {
617
+ if (timer) {
618
+ timer.stop();
619
+ }
620
+ if (actionSub) {
621
+ actionSub.unsubscribe();
622
+ }
623
+ if (tickerSub) {
624
+ tickerSub.unsubscribe();
625
+ }
626
+ };
627
+ });
628
+ }
629
+
630
+ class Refreshable {
631
+ constructor(action, pollingInterval) {
632
+ this._initialized = false;
633
+ this._pollingInterval = new BehaviorSubject(0);
634
+ this._ticker = new Subject();
635
+ this._pending = new BehaviorSubject(false);
636
+ /**
637
+ * Intercepts the action call to monitor pending state
638
+ */
639
+ this._actionHandler = (action) => {
640
+ return () => {
641
+ this._pending.next(true);
642
+ const actionResult = action();
643
+ if (isObservable(actionResult)) {
644
+ return actionResult.pipe(tap(() => { this._pending.next(false); }));
645
+ }
646
+ else {
647
+ this._pending.next(true);
648
+ return actionResult;
649
+ }
650
+ };
651
+ };
652
+ if (pollingInterval !== null && pollingInterval !== undefined) {
653
+ this._pollingInterval.next(pollingInterval);
654
+ }
655
+ this.pending$ = this._pending.asObservable()
656
+ .pipe(distinctUntilChanged(), shareReplay(1));
657
+ this.data$ = pollingTicker(this._actionHandler(action), pollingInterval, this._ticker)
658
+ .pipe(tapFirst(() => this._initialized = true), publishReplay(), refCount());
659
+ }
660
+ get initialized() { return this._initialized; }
661
+ /**
662
+ * Selects the data observable
663
+ */
664
+ select(refresh) {
665
+ if (refresh && this._initialized && !this._pending.value) {
666
+ this._ticker.next();
667
+ }
668
+ return this.data$;
669
+ }
670
+ refresh() {
671
+ let result$;
672
+ if (this._initialized) {
673
+ // TODO: Add a test and maybe refactor this to be more clear. It worked in
674
+ // my manual tests, but there may be some situations where this doesn't
675
+ // work, since the ticker isn't the only way to trigger a refresh. Right
676
+ // now it should be fine, but if an async operator is added to be run
677
+ // each time `data$` is subscribed to, then this could fail if the data
678
+ // emits one extra time before the ticker is triggered.
679
+ let _polled = false;
680
+ result$ = this.data$
681
+ .pipe(tap(_ => !_polled && (_polled = true) && this._ticker.next()), skip(1));
682
+ }
683
+ else {
684
+ result$ = this.data$;
685
+ }
686
+ return result$
687
+ .pipe(take(1), mapTo(undefined));
688
+ }
689
+ }
690
+
691
+ function wrapIntoObservable(value) {
692
+ if (isObservable(value)) {
693
+ return value;
694
+ }
695
+ return from(Promise.resolve(value));
696
+ }
697
+
698
+ /**
699
+ * Explaination:
700
+ * ^ - beginning of the string
701
+ * (?: - beginning of a non-captured group
702
+ * [a-z]+ - any character of 'a' to 'z' 1 or more times
703
+ * : - string (colon character)
704
+ * )? - end of the non-captured group. Group appearing 0 or 1 times
705
+ * // - string (two forward slash characters)
706
+ * 'i' - non case-sensitive flag
707
+ *
708
+ * source: https://stackoverflow.com/a/19709846
709
+ */
710
+ const IS_ABSOLUTE_URL_REGEX = new RegExp('^(?:[a-z]+:)?//', 'i');
711
+ function isAbsoluteUrl(url) {
712
+ return IS_ABSOLUTE_URL_REGEX.test(url);
713
+ }
714
+
715
+ /**
716
+ * This is just for helping debug observables that aren't being unsubscribed
717
+ * from correctly.
718
+ */
719
+ function subscriberCount(sourceObservable, description) {
720
+ let counter = 0;
721
+ return new Observable((subscriber) => {
722
+ const subscription = sourceObservable.subscribe(subscriber);
723
+ counter++;
724
+ console.log(`${description} subscriptions: ${counter}`);
725
+ return () => {
726
+ subscription.unsubscribe();
727
+ counter--;
728
+ console.log(`${description} subscriptions: ${counter}`);
729
+ };
730
+ });
731
+ }
732
+
733
+ function observeQueryList(queryList, emitCurrentValue = true) {
734
+ return queryList.changes.pipe(startWith(queryList), map(v => v.toArray()));
735
+ }
736
+
737
+ function createPadding(len, chars) {
738
+ // if (chars.length <= len) {
739
+ // return chars
740
+ // }
741
+ if (chars.length === 0) {
742
+ throw Error(`Padding characters must be at least 1 char length.`);
743
+ }
744
+ let str = chars;
745
+ while (str.length < len) {
746
+ str += chars;
747
+ }
748
+ if (str.length > len) {
749
+ str = str.slice(0, len);
750
+ }
751
+ return str;
752
+ }
753
+
754
+ function padEnd(stringToPad, paddingLength = 0, paddingChars = ' ') {
755
+ const strLength = paddingLength ? stringToPad.length : 0;
756
+ if (!paddingLength || strLength >= paddingLength) {
757
+ return stringToPad;
758
+ }
759
+ return stringToPad + createPadding(paddingLength - strLength, paddingChars);
760
+ }
761
+
762
+ function padStart(stringToPad, paddingLength = 0, paddingChars = ' ') {
763
+ const strLength = paddingLength ? stringToPad.length : 0;
764
+ if (!paddingLength || strLength >= paddingLength) {
765
+ return stringToPad;
766
+ }
767
+ return createPadding(paddingLength - strLength, paddingChars) + stringToPad;
768
+ }
769
+
770
+ function isNumeric(value) {
771
+ return !isNaN(Number(value) - parseFloat(value));
772
+ }
773
+
774
+ /**
775
+ * Returns the number of fractional digits.
776
+ *
777
+ * NOTE: This is intended for input validation, so trailing 0's will be included
778
+ * in the total. Also, localization is not considered, so '.' is assumed to be
779
+ * the fractional separator.
780
+ */
781
+ function fractionalDigitsCount(value) {
782
+ if (!isNumeric(value)) {
783
+ return null;
784
+ }
785
+ const a = value.split('.');
786
+ if (a.length !== 2) {
787
+ return null;
788
+ }
789
+ return a[1].length;
790
+ }
791
+
792
+ /**
793
+ * Generated bundle index. Do not edit.
794
+ */
795
+
796
+ export { PollingTickerOptions, Refreshable, activatedRoutesWithDataProperty, calcPercentage, createPadding, deleteProperties, deleteProperty, fileBufferToBlob, fileBufferToObjectUrl, fileDataFromBuffer, fractionalDigitsCount, getAttribute, getClosestWidgetCdkDrag, getControlName, getControlPath, hasAttribute, hasProperty, hasRequiredControl, isAbsoluteUrl, isEmptyInputValue, isEmptyUrlRoute, isNullOrUndefined, isNumeric, leafChildRoute, loadStyle, loadStyleSheet, mapEach, notNullOrUndefined, observeControlIsDifferent, observeControlStatus, observeControlValid, observeControlValue, observeControlValueChange, observeQueryList, openBlob, padEnd, padStart, phoneNumberMask, pollingTicker, readFileAsDataUrlAsync, readFileAsync, routeSnapshotPathFull, routeSnapshotPathRelative, tapFirst, toggleAttribute, waitOnConditionAsync, waitOnNonPendingStatus, willHaveDataProp, withoutProperties, withoutProperty, wrapIntoObservable };
797
+ //# sourceMappingURL=theseam-ui-common-utils.js.map