@theseam/ui-common 0.2.10 → 0.2.14

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 (353) hide show
  1. package/assets/vendor/intl-tel-input/js/utils.js +255 -254
  2. package/bundles/theseam-ui-common-asset-reader.umd.js +7 -9
  3. package/bundles/theseam-ui-common-asset-reader.umd.js.map +1 -1
  4. package/bundles/theseam-ui-common-breadcrumbs.umd.js +6 -8
  5. package/bundles/theseam-ui-common-breadcrumbs.umd.js.map +1 -1
  6. package/bundles/theseam-ui-common-buttons.umd.js +5 -5
  7. package/bundles/theseam-ui-common-buttons.umd.js.map +1 -1
  8. package/bundles/theseam-ui-common-card.umd.js +6 -6
  9. package/bundles/theseam-ui-common-card.umd.js.map +1 -1
  10. package/bundles/theseam-ui-common-checkbox.umd.js +4 -4
  11. package/bundles/theseam-ui-common-checkbox.umd.js.map +1 -1
  12. package/bundles/theseam-ui-common-confirm-dialog.umd.js +4 -4
  13. package/bundles/theseam-ui-common-confirm-dialog.umd.js.map +1 -1
  14. package/bundles/theseam-ui-common-core.umd.js +4 -4
  15. package/bundles/theseam-ui-common-core.umd.js.map +1 -1
  16. package/bundles/theseam-ui-common-data-exporter.umd.js +5 -5
  17. package/bundles/theseam-ui-common-data-filters.umd.js +9 -6
  18. package/bundles/theseam-ui-common-data-filters.umd.js.map +1 -1
  19. package/bundles/theseam-ui-common-datatable-dynamic.umd.js +7 -7
  20. package/bundles/theseam-ui-common-datatable-dynamic.umd.js.map +1 -1
  21. package/bundles/theseam-ui-common-datatable.umd.js +1313 -378
  22. package/bundles/theseam-ui-common-datatable.umd.js.map +1 -1
  23. package/bundles/theseam-ui-common-dynamic-component-loader.umd.js +5 -7
  24. package/bundles/theseam-ui-common-dynamic-component-loader.umd.js.map +1 -1
  25. package/bundles/theseam-ui-common-dynamic.umd.js +7 -9
  26. package/bundles/theseam-ui-common-dynamic.umd.js.map +1 -1
  27. package/bundles/theseam-ui-common-footer-bar.umd.js +3 -3
  28. package/bundles/theseam-ui-common-form-field-error.umd.js +5 -5
  29. package/bundles/theseam-ui-common-form-field-error.umd.js.map +1 -1
  30. package/bundles/theseam-ui-common-form-field.umd.js +5 -5
  31. package/bundles/theseam-ui-common-form-field.umd.js.map +1 -1
  32. package/bundles/theseam-ui-common-framework.umd.js +27 -29
  33. package/bundles/theseam-ui-common-framework.umd.js.map +1 -1
  34. package/bundles/theseam-ui-common-graphql.umd.js +958 -8
  35. package/bundles/theseam-ui-common-graphql.umd.js.map +1 -1
  36. package/bundles/theseam-ui-common-icon.umd.js +5 -5
  37. package/bundles/theseam-ui-common-icon.umd.js.map +1 -1
  38. package/bundles/theseam-ui-common-layout.umd.js +5 -7
  39. package/bundles/theseam-ui-common-layout.umd.js.map +1 -1
  40. package/bundles/theseam-ui-common-loading.umd.js +4 -4
  41. package/bundles/theseam-ui-common-menu.umd.js +5 -5
  42. package/bundles/theseam-ui-common-menu.umd.js.map +1 -1
  43. package/bundles/theseam-ui-common-modal.umd.js +6 -6
  44. package/bundles/theseam-ui-common-modal.umd.js.map +1 -1
  45. package/bundles/theseam-ui-common-models.umd.js +3 -3
  46. package/bundles/theseam-ui-common-popover.umd.js +4 -4
  47. package/bundles/theseam-ui-common-progress.umd.js +5 -5
  48. package/bundles/theseam-ui-common-progress.umd.js.map +1 -1
  49. package/bundles/theseam-ui-common-scrollbar.umd.js +7 -9
  50. package/bundles/theseam-ui-common-scrollbar.umd.js.map +1 -1
  51. package/bundles/theseam-ui-common-services.umd.js +6 -8
  52. package/bundles/theseam-ui-common-services.umd.js.map +1 -1
  53. package/bundles/theseam-ui-common-shared.umd.js +4 -4
  54. package/bundles/theseam-ui-common-shared.umd.js.map +1 -1
  55. package/bundles/theseam-ui-common-storage.umd.js +5 -7
  56. package/bundles/theseam-ui-common-storage.umd.js.map +1 -1
  57. package/bundles/theseam-ui-common-story-helpers.umd.js +4 -4
  58. package/bundles/theseam-ui-common-story-helpers.umd.js.map +1 -1
  59. package/bundles/theseam-ui-common-tabbed.umd.js +5 -5
  60. package/bundles/theseam-ui-common-tabbed.umd.js.map +1 -1
  61. package/bundles/theseam-ui-common-table-cell-type.umd.js +5 -7
  62. package/bundles/theseam-ui-common-table-cell-type.umd.js.map +1 -1
  63. package/bundles/theseam-ui-common-table-cell-types.umd.js +258 -32
  64. package/bundles/theseam-ui-common-table-cell-types.umd.js.map +1 -1
  65. package/bundles/theseam-ui-common-table.umd.js +5 -5
  66. package/bundles/theseam-ui-common-table.umd.js.map +1 -1
  67. package/bundles/theseam-ui-common-tel-input.umd.js +6 -6
  68. package/bundles/theseam-ui-common-tel-input.umd.js.map +1 -1
  69. package/bundles/theseam-ui-common-testing.umd.js +568 -0
  70. package/bundles/theseam-ui-common-testing.umd.js.map +1 -0
  71. package/bundles/theseam-ui-common-tiled-select.umd.js +56 -39
  72. package/bundles/theseam-ui-common-tiled-select.umd.js.map +1 -1
  73. package/bundles/theseam-ui-common-toggle-edit.umd.js +8 -10
  74. package/bundles/theseam-ui-common-toggle-edit.umd.js.map +1 -1
  75. package/bundles/theseam-ui-common-toggle-group.umd.js +4 -4
  76. package/bundles/theseam-ui-common-toggle-group.umd.js.map +1 -1
  77. package/bundles/theseam-ui-common-unsaved-changes-dialog.umd.js +5 -7
  78. package/bundles/theseam-ui-common-unsaved-changes-dialog.umd.js.map +1 -1
  79. package/bundles/theseam-ui-common-utils.umd.js +174 -81
  80. package/bundles/theseam-ui-common-utils.umd.js.map +1 -1
  81. package/bundles/theseam-ui-common-validators.umd.js +3 -3
  82. package/bundles/theseam-ui-common-viewers.umd.js +6 -8
  83. package/bundles/theseam-ui-common-viewers.umd.js.map +1 -1
  84. package/bundles/theseam-ui-common-widget.umd.js +18 -20
  85. package/bundles/theseam-ui-common-widget.umd.js.map +1 -1
  86. package/bundles/theseam-ui-common.umd.js +2 -2
  87. package/buttons/theseam-ui-common-buttons.metadata.json +1 -1
  88. package/card/theseam-ui-common-card.metadata.json +1 -1
  89. package/data-filters/data-filter.d.ts +10 -6
  90. package/data-filters/theseam-ui-common-data-filters.metadata.json +1 -1
  91. package/datatable/datatable/datatable.component.d.ts +46 -32
  92. package/datatable/datatable-column/datatable-column.component.d.ts +26 -25
  93. package/datatable/datatable-column-preferences/datatable-column-preferences.component.d.ts +7 -5
  94. package/datatable/datatable-column-preferences-button/datatable-column-preferences-button.component.d.ts +7 -1
  95. package/datatable/datatable-menu-bar/datatable-menu-bar.component.d.ts +1 -1
  96. package/datatable/directives/datatable-filter.directive.d.ts +1 -1
  97. package/datatable/models/columns-alteration.d.ts +61 -0
  98. package/datatable/models/columns-alterations/hide-column.columns-alteration.d.ts +15 -0
  99. package/datatable/models/columns-alterations/order.columns-alteration.d.ts +20 -0
  100. package/datatable/models/columns-alterations/sort.columns-alteration.d.ts +14 -0
  101. package/datatable/models/columns-alterations/width.columns-alteration.d.ts +16 -0
  102. package/datatable/models/datatable-accessor.d.ts +5 -3
  103. package/datatable/models/internal-column-props.d.ts +7 -0
  104. package/datatable/models/page-info.d.ts +12 -0
  105. package/datatable/models/preferences-accessor.d.ts +1 -1
  106. package/datatable/models/preferences.d.ts +11 -3
  107. package/datatable/models/sort-item.d.ts +2 -1
  108. package/datatable/services/columns-alterations-manager.service.d.ts +39 -0
  109. package/datatable/services/columns-manager.service.d.ts +55 -0
  110. package/datatable/services/datatable-preferences.service.d.ts +10 -7
  111. package/datatable/theseam-ui-common-datatable.d.ts +2 -0
  112. package/datatable/theseam-ui-common-datatable.metadata.json +1 -1
  113. package/datatable/tokens/datatable-preferences-accessor.d.ts +2 -2
  114. package/datatable/utils/create-action-menu-column.d.ts +3 -0
  115. package/datatable/utils/create-checkbox-column.d.ts +3 -0
  116. package/datatable/utils/get-column-prop.d.ts +5 -0
  117. package/datatable/utils/map-columns-alterations-states.d.ts +2 -0
  118. package/datatable/utils/remove-unused-diffs.d.ts +7 -0
  119. package/datatable/utils/set-column-defaults.d.ts +2 -0
  120. package/datatable/utils/translate-templates.d.ts +2 -0
  121. package/datatable/utils/with-stored-column-info.d.ts +2 -2
  122. package/datatable-dynamic/theseam-ui-common-datatable-dynamic.metadata.json +1 -1
  123. package/esm2015/buttons/progress-circle-button/progress-circle-button.component.js +1 -1
  124. package/esm2015/card/card-action/card-action.component.js +1 -1
  125. package/esm2015/card/card-body/card-body.component.js +1 -1
  126. package/esm2015/data-filters/data-filter.js +5 -2
  127. package/esm2015/data-filters/filters/data-filter-search/data-filter-search.component.js +1 -1
  128. package/esm2015/data-filters/filters/data-filter-text/data-filter-text.component.js +1 -1
  129. package/esm2015/datatable/datatable/datatable.component.js +195 -211
  130. package/esm2015/datatable/datatable-action-menu/datatable-action-menu.component.js +1 -1
  131. package/esm2015/datatable/datatable-column/datatable-column.component.js +1 -1
  132. package/esm2015/datatable/datatable-column-preferences/datatable-column-preferences.component.js +42 -19
  133. package/esm2015/datatable/datatable-column-preferences-button/datatable-column-preferences-button.component.js +38 -4
  134. package/esm2015/datatable/datatable-export-button/datatable-export-button.component.js +7 -6
  135. package/esm2015/datatable/datatable-menu-bar/datatable-menu-bar.component.js +1 -1
  136. package/esm2015/datatable/datatable-menu-bar-column-center/datatable-menu-bar-column-center.component.js +1 -1
  137. package/esm2015/datatable/datatable-menu-bar-column-left/datatable-menu-bar-column-left.component.js +1 -1
  138. package/esm2015/datatable/datatable-menu-bar-column-right/datatable-menu-bar-column-right.component.js +1 -1
  139. package/esm2015/datatable/datatable-menu-bar-row/datatable-menu-bar-row.component.js +1 -1
  140. package/esm2015/datatable/models/columns-alteration.js +38 -0
  141. package/esm2015/datatable/models/columns-alterations/hide-column.columns-alteration.js +38 -0
  142. package/esm2015/datatable/models/columns-alterations/order.columns-alteration.js +81 -0
  143. package/esm2015/datatable/models/columns-alterations/sort.columns-alteration.js +33 -0
  144. package/esm2015/datatable/models/columns-alterations/width.columns-alteration.js +41 -0
  145. package/esm2015/datatable/models/datatable-accessor.js +1 -1
  146. package/esm2015/datatable/models/internal-column-props.js +15 -0
  147. package/esm2015/datatable/models/page-info.js +1 -1
  148. package/esm2015/datatable/models/preferences-accessor.js +1 -1
  149. package/esm2015/datatable/models/preferences.js +6 -2
  150. package/esm2015/datatable/models/sort-item.js +1 -1
  151. package/esm2015/datatable/services/columns-alterations-manager.service.js +134 -0
  152. package/esm2015/datatable/services/columns-manager.service.js +257 -0
  153. package/esm2015/datatable/services/datatable-preferences.service.js +78 -32
  154. package/esm2015/datatable/theseam-ui-common-datatable.js +3 -1
  155. package/esm2015/datatable/tokens/datatable-preferences-accessor.js +2 -2
  156. package/esm2015/datatable/utils/create-action-menu-column.js +18 -0
  157. package/esm2015/datatable/utils/create-checkbox-column.js +15 -0
  158. package/esm2015/datatable/utils/get-column-prop.js +9 -0
  159. package/esm2015/datatable/utils/map-columns-alterations-states.js +39 -0
  160. package/esm2015/datatable/utils/remove-unused-diffs.js +9 -0
  161. package/esm2015/datatable/utils/set-column-defaults.js +10 -0
  162. package/esm2015/datatable/utils/translate-templates.js +12 -0
  163. package/esm2015/datatable/utils/with-stored-column-info.js +1 -1
  164. package/esm2015/datatable-dynamic/datatable-dynamic-action-menu/datatable-dynamic-action-menu.component.js +1 -1
  165. package/esm2015/datatable-dynamic/datatable-dynamic-filter-container/datatable-dynamic-filter-container.component.js +1 -1
  166. package/esm2015/datatable-dynamic/datatable-dynamic.component.js +1 -1
  167. package/esm2015/form-field/form-field.component.js +1 -1
  168. package/esm2015/form-field-error/form-field-error/form-field-error.component.js +1 -1
  169. package/esm2015/framework/base-layout/base-layout.component.js +1 -1
  170. package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widgets.component.js +1 -1
  171. package/esm2015/framework/dynamic-router/hierarchy-router-outlet/hierarchy-router-outlet.component.js +1 -1
  172. package/esm2015/framework/schema-form-controls/schema-form-input/schema-form-input.component.js +1 -1
  173. package/esm2015/framework/schema-form-controls/schema-form-number/schema-form-number.component.js +1 -1
  174. package/esm2015/framework/schema-form-controls/schema-form-select/schema-form-select.component.js +1 -1
  175. package/esm2015/framework/schema-form-controls/schema-form-submit-split/schema-form-submit-split.component.js +1 -1
  176. package/esm2015/framework/side-nav/side-nav-item/side-nav-item.component.js +1 -1
  177. package/esm2015/framework/side-nav/side-nav-toggle/side-nav-toggle.component.js +1 -1
  178. package/esm2015/framework/side-nav/side-nav.component.js +1 -1
  179. package/esm2015/framework/top-bar/top-bar-menu-button/top-bar-menu-button.component.js +1 -1
  180. package/esm2015/framework/top-bar/top-bar-title/top-bar-title.component.js +1 -1
  181. package/esm2015/framework/top-bar/top-bar.component.js +1 -1
  182. package/esm2015/graphql/datatable/create-page-info-observable.js +38 -0
  183. package/esm2015/graphql/datatable/datatable-graphql-query-ref.js +236 -0
  184. package/esm2015/graphql/datatable/datatable-graphql.service.js +35 -0
  185. package/esm2015/graphql/datatable/datatable-helpers.js +170 -0
  186. package/esm2015/graphql/datatable/get-page-info.js +11 -0
  187. package/esm2015/graphql/datatable/index.js +7 -0
  188. package/esm2015/graphql/datatable/map-filter-states.js +64 -0
  189. package/esm2015/graphql/datatable/map-page-info.js +14 -0
  190. package/esm2015/graphql/datatable/mapper-context.js +2 -0
  191. package/esm2015/graphql/models/gql-datatable-accessor.js +2 -0
  192. package/esm2015/graphql/models/index.js +2 -1
  193. package/esm2015/graphql/models/query-processing-config.js +1 -1
  194. package/esm2015/graphql/public-api.js +2 -1
  195. package/esm2015/graphql/utils/parse-hints.js +3 -3
  196. package/esm2015/icon/icon/icon.component.js +1 -1
  197. package/esm2015/loading/loading/loading.component.js +1 -1
  198. package/esm2015/menu/menu.component.js +1 -1
  199. package/esm2015/modal/modal-body/modal-body.component.js +1 -1
  200. package/esm2015/modal/modal-container/modal-container.component.js +1 -1
  201. package/esm2015/popover/popover/popover.component.js +1 -1
  202. package/esm2015/progress/progress-circle/progress-circle.component.js +1 -1
  203. package/esm2015/tabbed/tabbed.component.js +1 -1
  204. package/esm2015/table/table/table.component.js +1 -1
  205. package/esm2015/table-cell-types/public-api.js +8 -1
  206. package/esm2015/table-cell-types/table-cell-type-currency/table-cell-type-currency-config.js +2 -0
  207. package/esm2015/table-cell-types/table-cell-type-currency/table-cell-type-currency.component.js +74 -0
  208. package/esm2015/table-cell-types/table-cell-type-currency/table-cell-type-currency.js +2 -0
  209. package/esm2015/table-cell-types/table-cell-type-decimal/table-cell-type-decimal-config.js +1 -1
  210. package/esm2015/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.component.js +73 -0
  211. package/esm2015/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.js +2 -0
  212. package/esm2015/table-cell-types/table-cell-type-icon/table-cell-type-icon.component.js +1 -1
  213. package/esm2015/table-cell-types/table-cell-type-integer/table-cell-type-integer-config.js +1 -1
  214. package/esm2015/table-cell-types/table-cell-type-integer/table-cell-type-integer.component.js +71 -0
  215. package/esm2015/table-cell-types/table-cell-type-integer/table-cell-type-integer.js +2 -0
  216. package/esm2015/table-cell-types/table-cell-type-manifests.js +29 -17
  217. package/esm2015/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle.component.js +1 -1
  218. package/esm2015/table-cell-types/table-cell-types.module.js +9 -2
  219. package/esm2015/tel-input/tel-input/tel-input.component.js +1 -1
  220. package/esm2015/testing/current-tick-time.js +16 -0
  221. package/esm2015/testing/fake-toastr.js +29 -0
  222. package/esm2015/testing/get-harness.js +16 -0
  223. package/esm2015/testing/public-api.js +7 -0
  224. package/esm2015/testing/render-story.js +12 -0
  225. package/esm2015/testing/story-expect.js +39 -0
  226. package/esm2015/testing/theseam-ui-common-testing.js +5 -0
  227. package/esm2015/testing/tick-helper.js +74 -0
  228. package/esm2015/tiled-select/components/tiled-select/tiled-select.component.js +25 -17
  229. package/esm2015/tiled-select/components/tiled-select-tile/tiled-select-tile.component.js +5 -2
  230. package/esm2015/tiled-select/components/tiled-select-tile-icon/tiled-select-tile-icon.component.js +1 -1
  231. package/esm2015/tiled-select/public-api.js +2 -1
  232. package/esm2015/tiled-select/tiled-select.models.js +1 -1
  233. package/esm2015/tiled-select/tiled-select.module.js +4 -4
  234. package/esm2015/toggle-edit/toggle-edit-actions-container/toggle-edit-actions-container.component.js +1 -1
  235. package/esm2015/toggle-edit/toggle-edit.component.js +1 -1
  236. package/esm2015/utils/array-move.js +62 -0
  237. package/esm2015/utils/public-api.js +2 -1
  238. package/esm2015/utils/router/is-empty-url-route.js +1 -1
  239. package/esm2015/utils/subscriber-count.js +31 -4
  240. package/esm2015/widget/widget/widget.component.js +1 -1
  241. package/esm2015/widget/widget-content-components/widget-button-group/widget-button-group.component.js +1 -1
  242. package/esm2015/widget/widget-content-components/widget-content-header/widget-content-header.component.js +1 -1
  243. package/esm2015/widget/widget-content-components/widget-empty-label/widget-empty-label.component.js +1 -1
  244. package/esm2015/widget/widget-content-components/widget-footer-link/widget-footer-link.component.js +1 -1
  245. package/esm2015/widget/widget-content-components/widget-footer-text/widget-footer-text.component.js +1 -1
  246. package/esm2015/widget/widget-content-components/widget-header-badge/widget-header-badge.component.js +1 -1
  247. package/esm2015/widget/widget-content-components/widget-tile/widget-tile-footer-item/widget-tile-footer-item.component.js +1 -1
  248. package/esm2015/widget/widget-content-components/widget-tile/widget-tile-group/widget-tile-group.component.js +1 -1
  249. package/esm2015/widget/widget-content-components/widget-tile/widget-tile.component.js +1 -1
  250. package/esm2015/widget/widget-content-components/widget-tile-list/widget-tile-list.component.js +1 -1
  251. package/esm2015/widget/widget-footer/widget-footer.component.js +1 -1
  252. package/fesm2015/theseam-ui-common-buttons.js +1 -1
  253. package/fesm2015/theseam-ui-common-card.js +2 -2
  254. package/fesm2015/theseam-ui-common-data-filters.js +6 -3
  255. package/fesm2015/theseam-ui-common-data-filters.js.map +1 -1
  256. package/fesm2015/theseam-ui-common-datatable-dynamic.js +3 -3
  257. package/fesm2015/theseam-ui-common-datatable.js +1105 -319
  258. package/fesm2015/theseam-ui-common-datatable.js.map +1 -1
  259. package/fesm2015/theseam-ui-common-form-field-error.js +1 -1
  260. package/fesm2015/theseam-ui-common-form-field.js +1 -1
  261. package/fesm2015/theseam-ui-common-framework.js +13 -13
  262. package/fesm2015/theseam-ui-common-graphql.js +555 -5
  263. package/fesm2015/theseam-ui-common-graphql.js.map +1 -1
  264. package/fesm2015/theseam-ui-common-icon.js +1 -1
  265. package/fesm2015/theseam-ui-common-loading.js +1 -1
  266. package/fesm2015/theseam-ui-common-menu.js +1 -1
  267. package/fesm2015/theseam-ui-common-modal.js +2 -2
  268. package/fesm2015/theseam-ui-common-popover.js +1 -1
  269. package/fesm2015/theseam-ui-common-progress.js +1 -1
  270. package/fesm2015/theseam-ui-common-tabbed.js +1 -1
  271. package/fesm2015/theseam-ui-common-table-cell-types.js +234 -22
  272. package/fesm2015/theseam-ui-common-table-cell-types.js.map +1 -1
  273. package/fesm2015/theseam-ui-common-table.js +1 -1
  274. package/fesm2015/theseam-ui-common-tel-input.js +1 -1
  275. package/fesm2015/theseam-ui-common-testing.js +191 -0
  276. package/fesm2015/theseam-ui-common-testing.js.map +1 -0
  277. package/fesm2015/theseam-ui-common-tiled-select.js +34 -21
  278. package/fesm2015/theseam-ui-common-tiled-select.js.map +1 -1
  279. package/fesm2015/theseam-ui-common-toggle-edit.js +2 -2
  280. package/fesm2015/theseam-ui-common-utils.js +92 -4
  281. package/fesm2015/theseam-ui-common-utils.js.map +1 -1
  282. package/fesm2015/theseam-ui-common-widget.js +12 -12
  283. package/form-field/theseam-ui-common-form-field.metadata.json +1 -1
  284. package/form-field-error/theseam-ui-common-form-field-error.metadata.json +1 -1
  285. package/framework/theseam-ui-common-framework.metadata.json +1 -1
  286. package/graphql/datatable/create-page-info-observable.d.ts +4 -0
  287. package/graphql/datatable/datatable-graphql-query-ref.d.ts +65 -0
  288. package/graphql/datatable/datatable-graphql.service.d.ts +26 -0
  289. package/graphql/datatable/datatable-helpers.d.ts +12 -0
  290. package/graphql/datatable/get-page-info.d.ts +4 -0
  291. package/graphql/datatable/index.d.ts +6 -0
  292. package/graphql/datatable/map-filter-states.d.ts +18 -0
  293. package/graphql/datatable/map-page-info.d.ts +11 -0
  294. package/graphql/datatable/mapper-context.d.ts +6 -0
  295. package/graphql/models/gql-datatable-accessor.d.ts +9 -0
  296. package/graphql/models/index.d.ts +1 -0
  297. package/graphql/models/query-processing-config.d.ts +4 -0
  298. package/graphql/public-api.d.ts +1 -0
  299. package/graphql/theseam-ui-common-graphql.metadata.json +1 -1
  300. package/icon/theseam-ui-common-icon.metadata.json +1 -1
  301. package/loading/theseam-ui-common-loading.metadata.json +1 -1
  302. package/menu/theseam-ui-common-menu.metadata.json +1 -1
  303. package/modal/theseam-ui-common-modal.metadata.json +1 -1
  304. package/package.json +1 -1
  305. package/popover/theseam-ui-common-popover.metadata.json +1 -1
  306. package/progress/theseam-ui-common-progress.metadata.json +1 -1
  307. package/styles/vendor/ngx-datatable/_ngx-datatable.scss +87 -82
  308. package/styles/vendor/ngx-datatable/_themes/bootstrap/_variables.scss +3 -2
  309. package/tabbed/theseam-ui-common-tabbed.metadata.json +1 -1
  310. package/table/theseam-ui-common-table.metadata.json +1 -1
  311. package/table-cell-types/public-api.d.ts +7 -0
  312. package/table-cell-types/table-cell-type-currency/table-cell-type-currency-config.d.ts +39 -0
  313. package/table-cell-types/table-cell-type-currency/table-cell-type-currency.component.d.ts +19 -0
  314. package/table-cell-types/table-cell-type-currency/table-cell-type-currency.d.ts +3 -0
  315. package/table-cell-types/table-cell-type-decimal/table-cell-type-decimal-config.d.ts +31 -1
  316. package/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.component.d.ts +19 -0
  317. package/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.d.ts +3 -0
  318. package/table-cell-types/table-cell-type-integer/table-cell-type-integer-config.d.ts +23 -1
  319. package/table-cell-types/table-cell-type-integer/table-cell-type-integer.component.d.ts +19 -0
  320. package/table-cell-types/table-cell-type-integer/table-cell-type-integer.d.ts +3 -0
  321. package/table-cell-types/table-cell-type-manifests.d.ts +2 -1
  322. package/table-cell-types/theseam-ui-common-table-cell-types.metadata.json +1 -1
  323. package/tel-input/theseam-ui-common-tel-input.metadata.json +1 -1
  324. package/testing/current-tick-time.d.ts +13 -0
  325. package/testing/fake-toastr.d.ts +30 -0
  326. package/testing/get-harness.d.ts +7 -0
  327. package/testing/package.json +11 -0
  328. package/testing/public-api.d.ts +6 -0
  329. package/testing/render-story.d.ts +2 -0
  330. package/testing/story-expect.d.ts +5 -0
  331. package/{test-helpers/theseam-ui-common-test-helpers.d.ts → testing/theseam-ui-common-testing.d.ts} +0 -0
  332. package/testing/theseam-ui-common-testing.metadata.json +1 -0
  333. package/{test-helpers → testing}/tick-helper.d.ts +0 -0
  334. package/tiled-select/components/tiled-select/tiled-select.component.d.ts +7 -3
  335. package/tiled-select/components/tiled-select-tile/tiled-select-tile.component.d.ts +1 -0
  336. package/tiled-select/theseam-ui-common-tiled-select.metadata.json +1 -1
  337. package/tiled-select/tiled-select.models.d.ts +3 -1
  338. package/toggle-edit/theseam-ui-common-toggle-edit.metadata.json +1 -1
  339. package/utils/array-move.d.ts +49 -0
  340. package/utils/public-api.d.ts +1 -0
  341. package/utils/subscriber-count.d.ts +13 -1
  342. package/utils/theseam-ui-common-utils.metadata.json +1 -1
  343. package/widget/theseam-ui-common-widget.metadata.json +1 -1
  344. package/bundles/theseam-ui-common-test-helpers.umd.js +0 -94
  345. package/bundles/theseam-ui-common-test-helpers.umd.js.map +0 -1
  346. package/esm2015/test-helpers/public-api.js +0 -2
  347. package/esm2015/test-helpers/theseam-ui-common-test-helpers.js +0 -5
  348. package/esm2015/test-helpers/tick-helper.js +0 -74
  349. package/fesm2015/theseam-ui-common-test-helpers.js +0 -81
  350. package/fesm2015/theseam-ui-common-test-helpers.js.map +0 -1
  351. package/test-helpers/package.json +0 -11
  352. package/test-helpers/public-api.d.ts +0 -1
  353. package/test-helpers/theseam-ui-common-test-helpers.metadata.json +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"theseam-ui-common-table-cell-type.umd.js","sources":["../../../projects/ui-common/table-cell-type/table-cell-type-tokens.ts","../../../projects/ui-common/table-cell-type/table-cell-type-selector.component.ts","../../../projects/ui-common/table-cell-type/services/table-cell-types-helpers.service.ts","../../../projects/ui-common/table-cell-type/table-cell-type.module.ts","../../../projects/ui-common/table-cell-type/theseam-ui-common-table-cell-type.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core'\n\nimport { ITableCellTypeManifest, TableCellData } from './table-cell-type-models'\n\nexport const TABLE_CELL_TYPE_MANIFEST = new InjectionToken<ITableCellTypeManifest>('TABLE_CELL_TYPE_MANIFEST')\n\nexport const TABLE_CELL_DATA = new InjectionToken<TableCellData<any, any>>('TABLE_CELL_DATA')\n","import { ComponentPortal, PortalInjector } from '@angular/cdk/portal'\nimport { ComponentType } from '@angular/cdk/portal'\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n Injector,\n Input,\n isDevMode,\n OnChanges,\n OnInit,\n Optional,\n SimpleChanges\n} from '@angular/core'\nimport { Subject } from 'rxjs'\n\nimport { TableCellTypeConfig } from './table-cell-type-config'\nimport type { TheSeamTableColumn } from './table-cell-type-models'\nimport { ITableCellTypeManifest, TableCellData, TableCellDataChange } from './table-cell-type-models'\nimport { TABLE_CELL_DATA, TABLE_CELL_TYPE_MANIFEST } from './table-cell-type-tokens'\n\n@Component({\n selector: 'seam-table-cell-type-selector',\n template: `\n <ng-template *ngIf=\"componentPortal; else noPortal\" [cdkPortalOutlet]=\"componentPortal\"></ng-template>\n <ng-template #noPortal>{{ value }}</ng-template>\n `,\n styles: [],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TableCellTypeSelectorComponent<T extends string = any, D = any, V = any> implements OnInit, AfterViewInit, OnChanges {\n\n @Input() type: T | undefined | null\n @Input() value: V | undefined | null\n @Input() rowIndex: number | undefined | null\n @Input() row: D | undefined | null\n @Input() colData: TheSeamTableColumn<T, TableCellTypeConfig<T>> | undefined | null\n\n public componentPortal?: ComponentPortal<{}>\n\n private _data: TableCellData<T, TableCellTypeConfig<T>> | undefined\n private _dataChangeSubject?: Subject<TableCellDataChange<T, TableCellTypeConfig<T>>>\n private _manifests: ITableCellTypeManifest[]\n\n constructor(\n private _injector: Injector,\n private _ref: ChangeDetectorRef,\n @Optional() @Inject(TABLE_CELL_TYPE_MANIFEST) manifests?: ITableCellTypeManifest[]\n ) { this._manifests = manifests || [] }\n\n ngOnInit() { }\n\n ngAfterViewInit() {\n if (!this.type) {\n return\n }\n\n const comp = this._getComponent(this.type)\n if (comp) {\n this._dataChangeSubject = new Subject<TableCellDataChange<T, TableCellTypeConfig<T>>>()\n\n this._data = {\n row: this.row,\n rowIndex: this.rowIndex ?? -1,\n colData: this.colData ?? {},\n value: this.value,\n changed: this._dataChangeSubject.asObservable()\n }\n\n this.componentPortal = new ComponentPortal(comp, null, this._createInjector(this._data))\n this._ref.detectChanges()\n } else {\n if (isDevMode()) {\n throw new Error(`CellType '${this.type}' not found.`)\n } else {\n // TODO: Implement fallback\n }\n }\n }\n\n private _getComponent(name: string): ComponentType<{}> | undefined {\n const manifest = this._manifests.find(m => m.name === name)\n return manifest ? manifest.component : undefined\n }\n\n private _createInjector(cellData: TableCellData<T, TableCellTypeConfig<T>>): PortalInjector {\n const injectorTokens = new WeakMap()\n injectorTokens.set(TABLE_CELL_DATA, cellData)\n return new PortalInjector(this._injector, injectorTokens)\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (this._data) {\n const dataChanged = [\n this._tryUpdateDataProp(changes, 'row'),\n this._tryUpdateDataProp(changes, 'rowIndex'),\n this._tryUpdateDataProp(changes, 'colData'),\n this._tryUpdateDataProp(changes, 'value')\n ].findIndex(b => b === true) !== -1\n\n if (dataChanged && this._dataChangeSubject) {\n this._dataChangeSubject.next({\n data: this._data,\n changes\n })\n }\n }\n }\n\n private _tryUpdateDataProp(changes: SimpleChanges, prop: keyof Omit<TableCellData<T, TableCellTypeConfig<T>>, 'changed'>): boolean {\n if (this._data && changes.hasOwnProperty(prop)) {\n this._data[prop] = changes[prop].currentValue\n return true\n }\n return false\n }\n\n}\n","import { Injectable } from '@angular/core'\nimport { from, Observable, Subject, Subscriber } from 'rxjs'\nimport { takeUntil } from 'rxjs/operators'\n\nimport { DynamicActionHelperService, DynamicActionModalDef, DynamicValueHelperService } from '@theseam/ui-common/dynamic'\n\nimport { TableCellTypeConfig } from '../table-cell-type-config'\nimport { CaluclatedValueContextType, ICalucatedValueContext, TableCellData } from '../table-cell-type-models'\nimport { TableCellTypeName } from '../table-cell-type-name'\n\n@Injectable({\n providedIn: 'root'\n})\nexport class TableCellTypesHelpersService {\n\n constructor(\n private _dynamicActionHelper: DynamicActionHelperService,\n private _valueHelper: DynamicValueHelperService\n ) { }\n\n public parseValueProp(value: any, contextOrContextFn: CaluclatedValueContextType) {\n const context = this._resolveValueContext(contextOrContextFn)\n return this._valueHelper.evalSync(value, context)\n }\n\n public getValueContext<T extends TableCellTypeName>(value: any, data?: TableCellData<T, TableCellTypeConfig<T>>): ICalucatedValueContext {\n return {\n row: data && data.row,\n rowIndex: data && data.rowIndex,\n colData: data && data.colData,\n value: value\n }\n }\n\n private _resolveValueContext(contextOrContextFn: CaluclatedValueContextType) {\n let context = contextOrContextFn\n if (typeof context === 'function') {\n context = context()\n }\n return context\n }\n\n public handleModalAction<R = any>(\n action: DynamicActionModalDef,\n contextOrContextFn: CaluclatedValueContextType\n ) {\n // TODO: Try to simplify this observable. It seems fairly easy to read like\n // this, but seems like it is doing more than it needs to with the multiple\n // subjects.\n return new Observable((subscriber: Subscriber<R>) => {\n // Passed to helper function to emit results to subscriber.\n const resultSubject = new Subject<any>()\n // Used to stop observing.\n const stopSubject = new Subject<any>()\n\n // Observe results to emit to subscriber.\n resultSubject\n .pipe(takeUntil(stopSubject))\n .subscribe(\n result => subscriber.next(result),\n err => subscriber.error(err),\n () => stopSubject.complete()\n )\n\n // Handle the potentially deep chain of actions.\n this._handleModalAction(action, contextOrContextFn, resultSubject)\n .pipe(takeUntil(stopSubject))\n .subscribe(\n () => {},\n err => subscriber.error(err),\n () => subscriber.complete()\n )\n\n // Clean up on unsubscribe.\n return () => {\n stopSubject.next(undefined)\n stopSubject.complete()\n }\n })\n }\n\n private _handleModalAction(\n action: DynamicActionModalDef,\n contextOrContextFn: CaluclatedValueContextType,\n resultSubject: Subject<any>\n ) {\n const context = this._resolveValueContext(contextOrContextFn)\n return from(this._dynamicActionHelper.exec(action, context))\n }\n}\n","import { PortalModule } from '@angular/cdk/portal'\nimport { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { TableCellTypeSelectorComponent } from './table-cell-type-selector.component'\n\n@NgModule({\n declarations: [\n TableCellTypeSelectorComponent\n ],\n imports: [\n CommonModule,\n PortalModule\n ],\n providers: [ ],\n exports: [\n TableCellTypeSelectorComponent\n ],\n entryComponents: [ ]\n})\nexport class TheSeamTableCellTypeModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["InjectionToken","Subject","ComponentPortal","isDevMode","PortalInjector","Component","ChangeDetectionStrategy","Injector","ChangeDetectorRef","Optional","Inject","Input","Observable","takeUntil","from","Injectable","DynamicActionHelperService","DynamicValueHelperService","NgModule","CommonModule","PortalModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIa,wBAAwB,GAAG,IAAIA,iBAAc,CAAyB,0BAA0B,EAAC;MAEjG,eAAe,GAAG,IAAIA,iBAAc,CAA0B,iBAAiB;;;MCwC1F,wCACU,SAAmB,EACnB,IAAuB,EACe,SAAoC;UAF1E,cAAS,GAAT,SAAS,CAAU;UACnB,SAAI,GAAJ,IAAI,CAAmB;UAE7B,IAAI,CAAC,UAAU,GAAG,SAAS,IAAI,EAAE,CAAA;OAAE;MAEvC,iDAAQ,GAAR,eAAc;MAEd,wDAAe,GAAf;;UACE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;cACd,OAAM;WACP;UAED,IAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;UAC1C,IAAI,IAAI,EAAE;cACR,IAAI,CAAC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AAQ,EACR,UAAA,GAAG,IAAI,OAAA,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,GAAA,EAC5B,cAAM,OAAA,UAAU,CAAC,QAAQ,EAAE,GAAA,CAC5B,CAAA;;cAGH,OAAO;kBACL,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;kBAC3B,WAAW,CAAC,QAAQ,EAAE,CAAA;eACvB,CAAA;WACF,CAAC,CAAA;OACH;MAEO,yDAAkB,GAAlB,UACN,MAA6B,EAC7B,kBAA8C,EAC9C,aAA2B;UAE3B,IAAM,OAAO,GAAG,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,CAAA;UAC7D,OAAOC,SAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;OAC7D;;;;;cA9EFC,aAAU,SAAC;kBACV,UAAU,EAAE,MAAM;eACnB;;;cARQC,6BAA0B;cAAyBC,4BAAyB;;;;MCgBrF;;;;;cAdCC,WAAQ,SAAC;kBACR,YAAY,EAAE;sBACZ,8BAA8B;mBAC/B;kBACD,OAAO,EAAE;sBACPC,mBAAY;sBACZC,mBAAY;mBACb;kBACD,SAAS,EAAE,EAAG;kBACd,OAAO,EAAE;sBACP,8BAA8B;mBAC/B;kBACD,eAAe,EAAE,EAAG;eACrB;;;ECnBD;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"theseam-ui-common-table-cell-type.umd.js","sources":["../../../projects/ui-common/table-cell-type/table-cell-type-tokens.ts","../../../projects/ui-common/table-cell-type/table-cell-type-selector.component.ts","../../../projects/ui-common/table-cell-type/services/table-cell-types-helpers.service.ts","../../../projects/ui-common/table-cell-type/table-cell-type.module.ts","../../../projects/ui-common/table-cell-type/theseam-ui-common-table-cell-type.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core'\n\nimport { ITableCellTypeManifest, TableCellData } from './table-cell-type-models'\n\nexport const TABLE_CELL_TYPE_MANIFEST = new InjectionToken<ITableCellTypeManifest>('TABLE_CELL_TYPE_MANIFEST')\n\nexport const TABLE_CELL_DATA = new InjectionToken<TableCellData<any, any>>('TABLE_CELL_DATA')\n","import { ComponentPortal, PortalInjector } from '@angular/cdk/portal'\nimport { ComponentType } from '@angular/cdk/portal'\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n Injector,\n Input,\n isDevMode,\n OnChanges,\n OnInit,\n Optional,\n SimpleChanges\n} from '@angular/core'\nimport { Subject } from 'rxjs'\n\nimport { TableCellTypeConfig } from './table-cell-type-config'\nimport type { TheSeamTableColumn } from './table-cell-type-models'\nimport { ITableCellTypeManifest, TableCellData, TableCellDataChange } from './table-cell-type-models'\nimport { TABLE_CELL_DATA, TABLE_CELL_TYPE_MANIFEST } from './table-cell-type-tokens'\n\n@Component({\n selector: 'seam-table-cell-type-selector',\n template: `\n <ng-template *ngIf=\"componentPortal; else noPortal\" [cdkPortalOutlet]=\"componentPortal\"></ng-template>\n <ng-template #noPortal>{{ value }}</ng-template>\n `,\n styles: [],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TableCellTypeSelectorComponent<T extends string = any, D = any, V = any> implements OnInit, AfterViewInit, OnChanges {\n\n @Input() type: T | undefined | null\n @Input() value: V | undefined | null\n @Input() rowIndex: number | undefined | null\n @Input() row: D | undefined | null\n @Input() colData: TheSeamTableColumn<T, TableCellTypeConfig<T>> | undefined | null\n\n public componentPortal?: ComponentPortal<{}>\n\n private _data: TableCellData<T, TableCellTypeConfig<T>> | undefined\n private _dataChangeSubject?: Subject<TableCellDataChange<T, TableCellTypeConfig<T>>>\n private _manifests: ITableCellTypeManifest[]\n\n constructor(\n private _injector: Injector,\n private _ref: ChangeDetectorRef,\n @Optional() @Inject(TABLE_CELL_TYPE_MANIFEST) manifests?: ITableCellTypeManifest[]\n ) { this._manifests = manifests || [] }\n\n ngOnInit() { }\n\n ngAfterViewInit() {\n if (!this.type) {\n return\n }\n\n const comp = this._getComponent(this.type)\n if (comp) {\n this._dataChangeSubject = new Subject<TableCellDataChange<T, TableCellTypeConfig<T>>>()\n\n this._data = {\n row: this.row,\n rowIndex: this.rowIndex ?? -1,\n colData: this.colData ?? {},\n value: this.value,\n changed: this._dataChangeSubject.asObservable()\n }\n\n this.componentPortal = new ComponentPortal(comp, null, this._createInjector(this._data))\n this._ref.detectChanges()\n } else {\n if (isDevMode()) {\n throw new Error(`CellType '${this.type}' not found.`)\n } else {\n // TODO: Implement fallback\n }\n }\n }\n\n private _getComponent(name: string): ComponentType<{}> | undefined {\n const manifest = this._manifests.find(m => m.name === name)\n return manifest ? manifest.component : undefined\n }\n\n private _createInjector(cellData: TableCellData<T, TableCellTypeConfig<T>>): PortalInjector {\n const injectorTokens = new WeakMap()\n injectorTokens.set(TABLE_CELL_DATA, cellData)\n return new PortalInjector(this._injector, injectorTokens)\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (this._data) {\n const dataChanged = [\n this._tryUpdateDataProp(changes, 'row'),\n this._tryUpdateDataProp(changes, 'rowIndex'),\n this._tryUpdateDataProp(changes, 'colData'),\n this._tryUpdateDataProp(changes, 'value')\n ].findIndex(b => b === true) !== -1\n\n if (dataChanged && this._dataChangeSubject) {\n this._dataChangeSubject.next({\n data: this._data,\n changes\n })\n }\n }\n }\n\n private _tryUpdateDataProp(changes: SimpleChanges, prop: keyof Omit<TableCellData<T, TableCellTypeConfig<T>>, 'changed'>): boolean {\n if (this._data && changes.hasOwnProperty(prop)) {\n this._data[prop] = changes[prop].currentValue\n return true\n }\n return false\n }\n\n}\n","import { Injectable } from '@angular/core'\nimport { from, Observable, Subject, Subscriber } from 'rxjs'\nimport { takeUntil } from 'rxjs/operators'\n\nimport { DynamicActionHelperService, DynamicActionModalDef, DynamicValueHelperService } from '@theseam/ui-common/dynamic'\n\nimport { TableCellTypeConfig } from '../table-cell-type-config'\nimport { CaluclatedValueContextType, ICalucatedValueContext, TableCellData } from '../table-cell-type-models'\nimport { TableCellTypeName } from '../table-cell-type-name'\n\n@Injectable({\n providedIn: 'root'\n})\nexport class TableCellTypesHelpersService {\n\n constructor(\n private _dynamicActionHelper: DynamicActionHelperService,\n private _valueHelper: DynamicValueHelperService\n ) { }\n\n public parseValueProp(value: any, contextOrContextFn: CaluclatedValueContextType) {\n const context = this._resolveValueContext(contextOrContextFn)\n return this._valueHelper.evalSync(value, context)\n }\n\n public getValueContext<T extends TableCellTypeName>(value: any, data?: TableCellData<T, TableCellTypeConfig<T>>): ICalucatedValueContext {\n return {\n row: data && data.row,\n rowIndex: data && data.rowIndex,\n colData: data && data.colData,\n value: value\n }\n }\n\n private _resolveValueContext(contextOrContextFn: CaluclatedValueContextType) {\n let context = contextOrContextFn\n if (typeof context === 'function') {\n context = context()\n }\n return context\n }\n\n public handleModalAction<R = any>(\n action: DynamicActionModalDef,\n contextOrContextFn: CaluclatedValueContextType\n ) {\n // TODO: Try to simplify this observable. It seems fairly easy to read like\n // this, but seems like it is doing more than it needs to with the multiple\n // subjects.\n return new Observable((subscriber: Subscriber<R>) => {\n // Passed to helper function to emit results to subscriber.\n const resultSubject = new Subject<any>()\n // Used to stop observing.\n const stopSubject = new Subject<any>()\n\n // Observe results to emit to subscriber.\n resultSubject\n .pipe(takeUntil(stopSubject))\n .subscribe(\n result => subscriber.next(result),\n err => subscriber.error(err),\n () => stopSubject.complete()\n )\n\n // Handle the potentially deep chain of actions.\n this._handleModalAction(action, contextOrContextFn, resultSubject)\n .pipe(takeUntil(stopSubject))\n .subscribe(\n () => {},\n err => subscriber.error(err),\n () => subscriber.complete()\n )\n\n // Clean up on unsubscribe.\n return () => {\n stopSubject.next(undefined)\n stopSubject.complete()\n }\n })\n }\n\n private _handleModalAction(\n action: DynamicActionModalDef,\n contextOrContextFn: CaluclatedValueContextType,\n resultSubject: Subject<any>\n ) {\n const context = this._resolveValueContext(contextOrContextFn)\n return from(this._dynamicActionHelper.exec(action, context))\n }\n}\n","import { PortalModule } from '@angular/cdk/portal'\nimport { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { TableCellTypeSelectorComponent } from './table-cell-type-selector.component'\n\n@NgModule({\n declarations: [\n TableCellTypeSelectorComponent\n ],\n imports: [\n CommonModule,\n PortalModule\n ],\n providers: [ ],\n exports: [\n TableCellTypeSelectorComponent\n ],\n entryComponents: [ ]\n})\nexport class TheSeamTableCellTypeModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["InjectionToken","Subject","ComponentPortal","isDevMode","PortalInjector","Component","ChangeDetectionStrategy","Injector","ChangeDetectorRef","Optional","Inject","Input","Observable","takeUntil","from","Injectable","DynamicActionHelperService","DynamicValueHelperService","NgModule","CommonModule","PortalModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;MAIa,wBAAwB,GAAG,IAAIA,iBAAc,CAAyB,0BAA0B,EAAC;MAEjG,eAAe,GAAG,IAAIA,iBAAc,CAA0B,iBAAiB;;;MCwC1F,wCACU,SAAmB,EACnB,IAAuB,EACe,SAAoC;UAF1E,cAAS,GAAT,SAAS,CAAU;UACnB,SAAI,GAAJ,IAAI,CAAmB;UAE7B,IAAI,CAAC,UAAU,GAAG,SAAS,IAAI,EAAE,CAAA;OAAE;MAEvC,iDAAQ,GAAR,eAAc;MAEd,wDAAe,GAAf;;UACE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;cACd,OAAM;WACP;UAED,IAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;UAC1C,IAAI,IAAI,EAAE;cACR,IAAI,CAAC,kBAAkB,GAAG,IAAIC,YAAO,EAAkD,CAAA;cAEvF,IAAI,CAAC,KAAK,GAAG;kBACX,GAAG,EAAE,IAAI,CAAC,GAAG;kBACb,QAAQ,EAAE,MAAA,IAAI,CAAC,QAAQ,mCAAI,CAAC,CAAC;kBAC7B,OAAO,EAAE,MAAA,IAAI,CAAC,OAAO,mCAAI,EAAE;kBAC3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AAA;eACvB,CAAA;WACF,CAAC,CAAA;OACH;MAEO,yDAAkB,GAAlB,UACN,MAA6B,EAC7B,kBAA8C,EAC9C,aAA2B;UAE3B,IAAM,OAAO,GAAG,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,CAAA;UAC7D,OAAOC,SAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;OAC7D;;;;;cA9EFC,aAAU,SAAC;kBACV,UAAU,EAAE,MAAM;eACnB;;;cARQC,6BAA0B;cAAyBC,4BAAyB;;;;MCgBrF;;;;;cAdCC,WAAQ,SAAC;kBACR,YAAY,EAAE;sBACZ,8BAA8B;mBAC/B;kBACD,OAAO,EAAE;sBACPC,mBAAY;sBACZC,mBAAY;mBACb;kBACD,SAAS,EAAE,EAAG;kBACd,OAAO,EAAE;sBACP,8BAA8B;mBAC/B;kBACD,eAAe,EAAE,EAAG;eACrB;;;ECnBD;;;;;;;;;;;;;;;;"}
@@ -1,8 +1,80 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@theseam/ui-common/table-cell-type'), require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@theseam/ui-common/datatable'), require('@theseam/ui-common/icon'), require('@theseam/ui-common/table'), require('@theseam/ui-common/tel-input'), require('@theseam/ui-common/utils'), require('@angular/cdk/coercion'), require('@angular/cdk/portal'), require('@angular/common'), require('@angular/router'), require('@ng-bootstrap/ng-bootstrap'), require('@theseam/ui-common/asset-reader'), require('@theseam/ui-common/popover'), require('@theseam/ui-common/progress'), require('@theseam/ui-common/shared')) :
3
- typeof define === 'function' && define.amd ? define('@theseam/ui-common/table-cell-types', ['exports', '@theseam/ui-common/table-cell-type', '@angular/core', 'rxjs', 'rxjs/operators', '@theseam/ui-common/datatable', '@theseam/ui-common/icon', '@theseam/ui-common/table', '@theseam/ui-common/tel-input', '@theseam/ui-common/utils', '@angular/cdk/coercion', '@angular/cdk/portal', '@angular/common', '@angular/router', '@ng-bootstrap/ng-bootstrap', '@theseam/ui-common/asset-reader', '@theseam/ui-common/popover', '@theseam/ui-common/progress', '@theseam/ui-common/shared'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.theseam = global.theseam || {}, global.theseam['ui-common'] = global.theseam['ui-common'] || {}, global.theseam['ui-common']['table-cell-types'] = {}), global.theseam['ui-common']['table-cell-type'], global.ng.core, global.rxjs, global.rxjs.operators, global.theseam['ui-common'].datatable, global.theseam['ui-common'].icon, global.theseam['ui-common'].table, global.theseam['ui-common']['tel-input'], global.theseam['ui-common'].utils, global.ng.cdk.coercion, global.ng.cdk.portal, global.ng.common, global.ng.router, global.ngBootstrap, global.theseam['ui-common']['asset-reader'], global.theseam['ui-common'].popover, global.theseam['ui-common'].progress, global.theseam['ui-common'].shared));
5
- }(this, (function (exports, tableCellType, core, rxjs, operators, datatable, icon, table, telInput, utils, coercion, portal, common, router, ngBootstrap, assetReader, popover, progress, shared) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@theseam/ui-common/table-cell-type'), require('@angular/common'), require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@theseam/ui-common/utils'), require('@angular/cdk/coercion'), require('@theseam/ui-common/datatable'), require('@theseam/ui-common/icon'), require('@theseam/ui-common/table'), require('@theseam/ui-common/tel-input'), require('@angular/cdk/portal'), require('@angular/router'), require('@ng-bootstrap/ng-bootstrap'), require('@theseam/ui-common/asset-reader'), require('@theseam/ui-common/popover'), require('@theseam/ui-common/progress'), require('@theseam/ui-common/shared')) :
3
+ typeof define === 'function' && define.amd ? define('@theseam/ui-common/table-cell-types', ['exports', '@theseam/ui-common/table-cell-type', '@angular/common', '@angular/core', 'rxjs', 'rxjs/operators', '@theseam/ui-common/utils', '@angular/cdk/coercion', '@theseam/ui-common/datatable', '@theseam/ui-common/icon', '@theseam/ui-common/table', '@theseam/ui-common/tel-input', '@angular/cdk/portal', '@angular/router', '@ng-bootstrap/ng-bootstrap', '@theseam/ui-common/asset-reader', '@theseam/ui-common/popover', '@theseam/ui-common/progress', '@theseam/ui-common/shared'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.theseam = global.theseam || {}, global.theseam["ui-common"] = global.theseam["ui-common"] || {}, global.theseam["ui-common"]["table-cell-types"] = {}), global.theseam["ui-common"]["table-cell-type"], global.ng.common, global.ng.core, global.rxjs, global.rxjs.operators, global.theseam["ui-common"].utils, global.ng.cdk.coercion, global.theseam["ui-common"].datatable, global.theseam["ui-common"].icon, global.theseam["ui-common"].table, global.theseam["ui-common"]["tel-input"], global.ng.cdk.portal, global.ng.router, global.ngBootstrap, global.theseam["ui-common"]["asset-reader"], global.theseam["ui-common"].popover, global.theseam["ui-common"].progress, global.theseam["ui-common"].shared));
5
+ })(this, (function (exports, tableCellType, common, core, rxjs, operators, utils, coercion, datatable, icon, table, telInput, portal, router, ngBootstrap, assetReader, popover, progress, shared) { 'use strict';
6
+
7
+ var TableCellTypeCurrencyComponent = /** @class */ (function () {
8
+ // TODO: implement
9
+ // titleAttr?: string
10
+ function TableCellTypeCurrencyComponent(_cdf, _tableCellTypeHelpers, _tableData) {
11
+ var _this = this;
12
+ var _a, _b;
13
+ this._cdf = _cdf;
14
+ this._tableCellTypeHelpers = _tableCellTypeHelpers;
15
+ this._ngUnsubscribe = new rxjs.Subject();
16
+ var tableData = _tableData;
17
+ this.value = tableData && this._formatCurrency(tableData.value, tableData);
18
+ this.row = tableData && tableData.row;
19
+ this.rowIndex = tableData && tableData.rowIndex;
20
+ this.colData = tableData && tableData.colData;
21
+ this.textAlign = this._parseConfigValue((_b = (_a = tableData === null || tableData === void 0 ? void 0 : tableData.colData) === null || _a === void 0 ? void 0 : _a.cellTypeConfig) === null || _b === void 0 ? void 0 : _b.textAlign, tableData) || 'right';
22
+ // this.titleAttr = this._parseConfigValue(tableData?.colData?.cellTypeConfig?.titleAttr, tableData) || this.value
23
+ if (tableData) {
24
+ tableData.changed
25
+ .pipe(operators.takeUntil(this._ngUnsubscribe))
26
+ .subscribe(function (v) {
27
+ if (v.changes.hasOwnProperty('value')) {
28
+ _this.value = _this._formatCurrency(v.changes.value.currentValue, tableData);
29
+ _this._cdf.markForCheck();
30
+ }
31
+ if (v.changes.hasOwnProperty('colData')) {
32
+ _this.colData = v.changes.colData.currentValue;
33
+ _this._cdf.markForCheck();
34
+ }
35
+ });
36
+ }
37
+ }
38
+ TableCellTypeCurrencyComponent.prototype.ngOnInit = function () { };
39
+ TableCellTypeCurrencyComponent.prototype.ngOnDestroy = function () {
40
+ this._ngUnsubscribe.next();
41
+ this._ngUnsubscribe.complete();
42
+ };
43
+ TableCellTypeCurrencyComponent.prototype._formatCurrency = function (currentValue, tableData) {
44
+ var _a;
45
+ var config = (_a = tableData === null || tableData === void 0 ? void 0 : tableData.colData) === null || _a === void 0 ? void 0 : _a.cellTypeConfig;
46
+ var locale = this._parseConfigValue(config === null || config === void 0 ? void 0 : config.locale, tableData) || 'en-US';
47
+ var currency = this._parseConfigValue(config === null || config === void 0 ? void 0 : config.currency, tableData) || '$';
48
+ var currencyCode = this._parseConfigValue(config === null || config === void 0 ? void 0 : config.currencyCode, tableData) || 'USD';
49
+ var minIntegerDigits = this._parseConfigValue(config === null || config === void 0 ? void 0 : config.minIntegerDigits, tableData) || 1;
50
+ var minFractionDigits = this._parseConfigValue(config === null || config === void 0 ? void 0 : config.minFractionDigits, tableData) || 0;
51
+ var maxFractionDigits = this._parseConfigValue(config === null || config === void 0 ? void 0 : config.maxFractionDigits, tableData) || 2;
52
+ var format = minIntegerDigits + "." + minFractionDigits + "-" + maxFractionDigits;
53
+ return common.formatCurrency(currentValue, locale, currency, currencyCode, format);
54
+ };
55
+ TableCellTypeCurrencyComponent.prototype._parseConfigValue = function (val, tableData) {
56
+ var _this = this;
57
+ var contextFn = function () { return _this._tableCellTypeHelpers.getValueContext(val, tableData); };
58
+ return this._tableCellTypeHelpers.parseValueProp(val, contextFn);
59
+ };
60
+ return TableCellTypeCurrencyComponent;
61
+ }());
62
+ TableCellTypeCurrencyComponent.decorators = [
63
+ { type: core.Component, args: [{
64
+ selector: 'seam-table-cell-type-currency',
65
+ template: "<div [class]=\"'text-' + textAlign\">\n <seam-table-cell-type-selector\n type=\"string\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"></seam-table-cell-type-selector>\n</div>\n",
66
+ changeDetection: core.ChangeDetectionStrategy.OnPush,
67
+ styles: [""]
68
+ },] }
69
+ ];
70
+ TableCellTypeCurrencyComponent.ctorParameters = function () { return [
71
+ { type: core.ChangeDetectorRef },
72
+ { type: tableCellType.TableCellTypesHelpersService },
73
+ { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [tableCellType.TABLE_CELL_DATA,] }] }
74
+ ]; };
75
+ TableCellTypeCurrencyComponent.propDecorators = {
76
+ value: [{ type: core.Input }]
77
+ };
6
78
 
7
79
  var TableCellTypeDateComponent = /** @class */ (function () {
8
80
  function TableCellTypeDateComponent(_cdf, _tableData) {
@@ -57,6 +129,75 @@
57
129
  format: [{ type: core.Input }]
58
130
  };
59
131
 
132
+ var TableCellTypeDecimalComponent = /** @class */ (function () {
133
+ function TableCellTypeDecimalComponent(_cdf, _tableCellTypeHelpers, _tableData) {
134
+ var _this = this;
135
+ var _a, _b;
136
+ this._cdf = _cdf;
137
+ this._tableCellTypeHelpers = _tableCellTypeHelpers;
138
+ this._ngUnsubscribe = new rxjs.Subject();
139
+ var tableData = _tableData;
140
+ this.value = tableData && this._formatDecimal(tableData.value, tableData);
141
+ this.row = tableData && tableData.row;
142
+ this.rowIndex = tableData && tableData.rowIndex;
143
+ this.colData = tableData && tableData.colData;
144
+ this.textAlign = this._parseConfigValue((_b = (_a = tableData === null || tableData === void 0 ? void 0 : tableData.colData) === null || _a === void 0 ? void 0 : _a.cellTypeConfig) === null || _b === void 0 ? void 0 : _b.textAlign, tableData) || 'right';
145
+ if (tableData) {
146
+ tableData.changed
147
+ .pipe(operators.takeUntil(this._ngUnsubscribe))
148
+ .subscribe(function (v) {
149
+ if (v.changes.hasOwnProperty('value')) {
150
+ _this.value = _this._formatDecimal(v.changes.value.currentValue, tableData);
151
+ _this._cdf.markForCheck();
152
+ }
153
+ if (v.changes.hasOwnProperty('colData')) {
154
+ _this.colData = v.changes.colData.currentValue;
155
+ _this._cdf.markForCheck();
156
+ }
157
+ });
158
+ }
159
+ }
160
+ TableCellTypeDecimalComponent.prototype.ngOnInit = function () { };
161
+ TableCellTypeDecimalComponent.prototype.ngOnDestroy = function () {
162
+ this._ngUnsubscribe.next();
163
+ this._ngUnsubscribe.complete();
164
+ };
165
+ TableCellTypeDecimalComponent.prototype._formatDecimal = function (currentValue, tableData) {
166
+ var _a;
167
+ var config = (_a = tableData === null || tableData === void 0 ? void 0 : tableData.colData) === null || _a === void 0 ? void 0 : _a.cellTypeConfig;
168
+ var formatDecimal = utils.notNullOrUndefined(config === null || config === void 0 ? void 0 : config.formatNumber) ?
169
+ this._parseConfigValue(coercion.coerceBooleanProperty(config === null || config === void 0 ? void 0 : config.formatNumber), tableData) : true;
170
+ var locale = this._parseConfigValue(config === null || config === void 0 ? void 0 : config.locale, tableData) || 'en-US';
171
+ var minIntegerDigits = this._parseConfigValue(config === null || config === void 0 ? void 0 : config.minIntegerDigits, tableData) || 1;
172
+ var minFractionDigits = this._parseConfigValue(config === null || config === void 0 ? void 0 : config.minFractionDigits, tableData) || 0;
173
+ var maxFractionDigits = this._parseConfigValue(config === null || config === void 0 ? void 0 : config.maxFractionDigits, tableData) || 3;
174
+ var format = minIntegerDigits + "." + minFractionDigits + "-" + maxFractionDigits;
175
+ return formatDecimal ? common.formatNumber(currentValue, locale, format) : currentValue;
176
+ };
177
+ TableCellTypeDecimalComponent.prototype._parseConfigValue = function (val, tableData) {
178
+ var _this = this;
179
+ var contextFn = function () { return _this._tableCellTypeHelpers.getValueContext(val, tableData); };
180
+ return this._tableCellTypeHelpers.parseValueProp(val, contextFn);
181
+ };
182
+ return TableCellTypeDecimalComponent;
183
+ }());
184
+ TableCellTypeDecimalComponent.decorators = [
185
+ { type: core.Component, args: [{
186
+ selector: 'seam-table-cell-type-decimal',
187
+ template: "<div [class]=\"'text-' + textAlign\">\n <seam-table-cell-type-selector\n type=\"string\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"></seam-table-cell-type-selector>\n</div>\n",
188
+ changeDetection: core.ChangeDetectionStrategy.OnPush,
189
+ styles: [""]
190
+ },] }
191
+ ];
192
+ TableCellTypeDecimalComponent.ctorParameters = function () { return [
193
+ { type: core.ChangeDetectorRef },
194
+ { type: tableCellType.TableCellTypesHelpersService },
195
+ { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [tableCellType.TABLE_CELL_DATA,] }] }
196
+ ]; };
197
+ TableCellTypeDecimalComponent.propDecorators = {
198
+ value: [{ type: core.Input }]
199
+ };
200
+
60
201
  var TableCellTypeIconComponent = /** @class */ (function () {
61
202
  function TableCellTypeIconComponent(_cdf, _tableCellTypeHelpers, _datatable, _table, _tableData) {
62
203
  var _this = this;
@@ -212,7 +353,7 @@
212
353
  selector: 'seam-table-cell-type-icon',
213
354
  template: "<ng-container *ngIf=\"_icon\">\n <div *ngIf=\"!_tplType || _tplType === 'default'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\">\n <a class=\"d-block m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [attr.target]=\"_target\"\n [ngbTooltip]=\"_tooltip\"\n [tooltipClass]=\"$any(_tooltipClass)\"\n [placement]=\"$any(_tooltipPlacement)\"\n [container]=\"$any(_tooltipContainer)\"\n [disableTooltip]=\"_tooltipDisabled\">\n <seam-icon [icon]=\"_icon\" size=\"lg\" [iconType]=\"_iconType\" [iconClass]=\"_iconClass || ''\"></seam-icon>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </a>\n </div>\n\n <div *ngIf=\"_tplType === 'link'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\">\n <a class=\"d-block m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n [routerLink]=\"_link\"\n [queryParams]=\"_queryParams\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [attr.target]=\"_target\"\n [ngbTooltip]=\"_tooltip\"\n [tooltipClass]=\"$any(_tooltipClass)\"\n [placement]=\"$any(_tooltipPlacement)\"\n [container]=\"$any(_tooltipContainer)\"\n [disableTooltip]=\"_tooltipDisabled\">\n <seam-icon *ngIf=\"_icon\" [icon]=\"_icon\" size=\"lg\" [iconType]=\"_iconType\" [iconClass]=\"_iconClass\"></seam-icon>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </a>\n </div>\n\n <div *ngIf=\"_tplType === 'link-external'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\">\n <a class=\"d-block m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n [attr.href]=\"_link\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [attr.target]=\"_target\"\n [ngbTooltip]=\"_tooltip\"\n [tooltipClass]=\"$any(_tooltipClass)\"\n [placement]=\"$any(_tooltipPlacement)\"\n [container]=\"$any(_tooltipContainer)\"\n [disableTooltip]=\"_tooltipDisabled\">\n <seam-icon *ngIf=\"_icon\" [icon]=\"_icon\" size=\"lg\" [iconType]=\"_iconType\" [iconClass]=\"_iconClass\"></seam-icon>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </a>\n </div>\n\n <div *ngIf=\"_tplType === 'link-encrypted'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\">\n <button\n class=\"btn btn-link p-0 m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n type=\"button\"\n [seamEncryptedAssetLink]=\"_link\"\n [seamDetectMimeFromContent]=\"_detectMimeContent\"\n [seamDownloadAsset]=\"_download\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [ngbTooltip]=\"_tooltip\"\n [tooltipClass]=\"$any(_tooltipClass)\"\n [placement]=\"$any(_tooltipPlacement)\"\n [container]=\"$any(_tooltipContainer)\"\n [disableTooltip]=\"_tooltipDisabled\">\n <seam-icon *ngIf=\"_icon\" iconType=\"styled-square\" [icon]=\"_icon\" size=\"lg\" [iconType]=\"_iconType\" [iconClass]=\"_iconClass\"></seam-icon>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </button>\n </div>\n\n <div *ngIf=\"_tplType === 'button'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n (click)=\"_doButtonAction()\">\n <button\n class=\"btn btn-link p-0 m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n type=\"button\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [ngbTooltip]=\"_tooltip\"\n [tooltipClass]=\"$any(_tooltipClass)\"\n [placement]=\"$any(_tooltipPlacement)\"\n [container]=\"$any(_tooltipContainer)\"\n [disableTooltip]=\"_tooltipDisabled\">\n <seam-icon *ngIf=\"_icon\" iconType=\"styled-square\" [icon]=\"_icon\" size=\"lg\" [iconType]=\"_iconType\" [iconClass]=\"_iconClass\"></seam-icon>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </button>\n </div>\n</ng-container>\n",
214
355
  changeDetection: core.ChangeDetectionStrategy.OnPush,
215
- styles: [":host.datatable-cell-type ::ng-deep .seam-icon--img{max-height:40px}:host.datatable-cell-type a{max-height:40px}:host.datatable-cell-type button{max-height:40px}:host:not(.datatable-cell-type) ::ng-deep .seam-icon--img{max-height:20px}:host:not(.datatable-cell-type) a{max-height:20px}:host:not(.datatable-cell-type) button{max-height:20px}.datatable-icon-fix{margin-top:calc(-1px - .75rem);height:calc(50px)}"]
356
+ styles: [":host.datatable-cell-type ::ng-deep .seam-icon--img{max-height:40px}:host.datatable-cell-type a{max-height:40px}:host.datatable-cell-type button{max-height:40px}:host:not(.datatable-cell-type) ::ng-deep .seam-icon--img{max-height:20px}:host:not(.datatable-cell-type) a{max-height:20px}:host:not(.datatable-cell-type) button{max-height:20px}.datatable-icon-fix{margin-top:calc(-1px - .75rem);height:calc(50px)}\n"]
216
357
  },] }
217
358
  ];
218
359
  TableCellTypeIconComponent.ctorParameters = function () { return [
@@ -228,6 +369,73 @@
228
369
  _isDatatable: [{ type: core.HostBinding, args: ['class.datatable-cell-type',] }]
229
370
  };
230
371
 
372
+ var TableCellTypeIntegerComponent = /** @class */ (function () {
373
+ function TableCellTypeIntegerComponent(_cdf, _tableCellTypeHelpers, _tableData) {
374
+ var _this = this;
375
+ var _a, _b;
376
+ this._cdf = _cdf;
377
+ this._tableCellTypeHelpers = _tableCellTypeHelpers;
378
+ this._ngUnsubscribe = new rxjs.Subject();
379
+ var tableData = _tableData;
380
+ this.value = tableData && this._formatInteger(tableData.value, tableData);
381
+ this.row = tableData && tableData.row;
382
+ this.rowIndex = tableData && tableData.rowIndex;
383
+ this.colData = tableData && tableData.colData;
384
+ this.textAlign = this._parseConfigValue((_b = (_a = tableData === null || tableData === void 0 ? void 0 : tableData.colData) === null || _a === void 0 ? void 0 : _a.cellTypeConfig) === null || _b === void 0 ? void 0 : _b.textAlign, tableData) || 'right';
385
+ if (tableData) {
386
+ tableData.changed
387
+ .pipe(operators.takeUntil(this._ngUnsubscribe))
388
+ .subscribe(function (v) {
389
+ if (v.changes.hasOwnProperty('value')) {
390
+ _this.value = _this._formatInteger(v.changes.value.currentValue, tableData);
391
+ _this._cdf.markForCheck();
392
+ }
393
+ if (v.changes.hasOwnProperty('colData')) {
394
+ _this.colData = v.changes.colData.currentValue;
395
+ _this._cdf.markForCheck();
396
+ }
397
+ });
398
+ }
399
+ }
400
+ TableCellTypeIntegerComponent.prototype.ngOnInit = function () { };
401
+ TableCellTypeIntegerComponent.prototype.ngOnDestroy = function () {
402
+ this._ngUnsubscribe.next();
403
+ this._ngUnsubscribe.complete();
404
+ };
405
+ TableCellTypeIntegerComponent.prototype._formatInteger = function (currentValue, tableData) {
406
+ var _a;
407
+ var config = (_a = tableData === null || tableData === void 0 ? void 0 : tableData.colData) === null || _a === void 0 ? void 0 : _a.cellTypeConfig;
408
+ var formatInteger = utils.notNullOrUndefined(config === null || config === void 0 ? void 0 : config.formatNumber) ?
409
+ this._parseConfigValue(coercion.coerceBooleanProperty(config === null || config === void 0 ? void 0 : config.formatNumber), tableData) : true;
410
+ var locale = this._parseConfigValue(config === null || config === void 0 ? void 0 : config.locale, tableData) || 'en-US';
411
+ var minIntegerDigits = this._parseConfigValue(config === null || config === void 0 ? void 0 : config.minIntegerDigits, tableData) || 1;
412
+ var format = minIntegerDigits + ".0-0";
413
+ return formatInteger ? common.formatNumber(currentValue, locale, format) : currentValue;
414
+ };
415
+ TableCellTypeIntegerComponent.prototype._parseConfigValue = function (val, tableData) {
416
+ var _this = this;
417
+ var contextFn = function () { return _this._tableCellTypeHelpers.getValueContext(val, tableData); };
418
+ return this._tableCellTypeHelpers.parseValueProp(val, contextFn);
419
+ };
420
+ return TableCellTypeIntegerComponent;
421
+ }());
422
+ TableCellTypeIntegerComponent.decorators = [
423
+ { type: core.Component, args: [{
424
+ selector: 'seam-table-cell-type-integer',
425
+ template: "<div [class]=\"'text-' + textAlign\">\n <seam-table-cell-type-selector\n type=\"string\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"></seam-table-cell-type-selector>\n</div>\n",
426
+ changeDetection: core.ChangeDetectionStrategy.OnPush,
427
+ styles: [""]
428
+ },] }
429
+ ];
430
+ TableCellTypeIntegerComponent.ctorParameters = function () { return [
431
+ { type: core.ChangeDetectorRef },
432
+ { type: tableCellType.TableCellTypesHelpersService },
433
+ { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [tableCellType.TABLE_CELL_DATA,] }] }
434
+ ]; };
435
+ TableCellTypeIntegerComponent.propDecorators = {
436
+ value: [{ type: core.Input }]
437
+ };
438
+
231
439
  var TableCellTypePhoneComponent = /** @class */ (function () {
232
440
  function TableCellTypePhoneComponent(_cdf, _tableData) {
233
441
  var _this = this;
@@ -513,7 +721,7 @@
513
721
  selector: 'seam-table-cell-type-progress-circle',
514
722
  template: "<ng-container *ngIf=\"!_tplType || _tplType === 'default'\">\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n</ng-container>\n\n<ng-container *ngIf=\"_tplType === 'link'\">\n <a class=\"d-block m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n [routerLink]=\"_link\"\n [queryParams]=\"_queryParams\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [attr.target]=\"_target\">\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n\n </a>\n</ng-container>\n\n<ng-container *ngIf=\"_tplType === 'link-external'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\">\n <a class=\"d-block m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n [attr.href]=\"_link\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [attr.target]=\"_target\">\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n </a>\n</ng-container>\n\n<ng-container *ngIf=\"_tplType === 'link-encrypted'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\">\n <button\n class=\"btn btn-link p-0 m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n type=\"button\"\n [seamEncryptedAssetLink]=\"_link\"\n [seamDetectMimeFromContent]=\"_detectMimeContent\"\n [seamDownloadAsset]=\"_download\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\">\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n </button>\n</ng-container>\n\n<ng-container *ngIf=\"_tplType === 'button'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n (click)=\"_doButtonAction()\">\n <button\n class=\"btn btn-link p-0 m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n type=\"button\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\">\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n </button>\n</ng-container>\n\n<ng-template #progressCircleTpl>\n <div class=\"progress-circle-wrapper\">\n <seam-progress-circle\n class=\"progress-circle\"\n [fillBackground]=\"fillBackground\"\n [showText]=\"showText\"\n [hiddenOnEmpty]=\"hiddenOnEmpty\"\n [percentage]=\"$any(value)\"\n [pending]=\"pending\"\n [ngbTooltip]=\"tooltip\"\n [tooltipClass]=\"$any(tooltipClass)\"\n [placement]=\"$any(tooltipPlacement)\"\n [container]=\"$any(tooltipContainer)\">\n </seam-progress-circle>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </div>\n</ng-template>\n",
515
723
  changeDetection: core.ChangeDetectionStrategy.OnPush,
516
- styles: [":host.datatable-cell-type .progress-circle-wrapper{max-height:25px}:host.datatable-cell-type .progress-circle{position:relative;width:25px;height:25px;margin:0 auto}:host.datatable-cell-type .progress-circle ::ng-deep .seam-progress-circle{padding:0}:host:not(.datatable-cell-type) .progress-circle-wrapper{height:22px;max-height:22px}:host:not(.datatable-cell-type) .progress-circle{position:relative;width:25px;height:25px;margin:calc(-.03rem) auto 0}:host:not(.datatable-cell-type) .progress-circle ::ng-deep .seam-progress-circle{padding:0}"]
724
+ styles: [":host.datatable-cell-type .progress-circle-wrapper{max-height:25px}:host.datatable-cell-type .progress-circle{position:relative;width:25px;height:25px;margin:0 auto}:host.datatable-cell-type .progress-circle ::ng-deep .seam-progress-circle{padding:0}:host:not(.datatable-cell-type) .progress-circle-wrapper{height:22px;max-height:22px}:host:not(.datatable-cell-type) .progress-circle{position:relative;width:25px;height:25px;margin:0 auto;margin-top:calc(-.03rem)}:host:not(.datatable-cell-type) .progress-circle ::ng-deep .seam-progress-circle{padding:0}\n"]
517
725
  },] }
518
726
  ];
519
727
  TableCellTypeProgressCircleComponent.ctorParameters = function () { return [
@@ -702,17 +910,17 @@
702
910
  multi: true
703
911
  };
704
912
  var ɵ1 = {
705
- name: 'integer',
706
- component: TableCellTypeStringComponent
913
+ name: 'currency',
914
+ component: TableCellTypeCurrencyComponent
707
915
  };
708
- var TABLE_CELL_TYPE_MANIFEST_INTEGER = {
916
+ var TABLE_CELL_TYPE_MANIFEST_CURRENCY = {
709
917
  provide: tableCellType.TABLE_CELL_TYPE_MANIFEST,
710
918
  useValue: ɵ1,
711
919
  multi: true
712
920
  };
713
921
  var ɵ2 = {
714
922
  name: 'decimal',
715
- component: TableCellTypeStringComponent
923
+ component: TableCellTypeDecimalComponent
716
924
  };
717
925
  var TABLE_CELL_TYPE_MANIFEST_DECIMAL = {
718
926
  provide: tableCellType.TABLE_CELL_TYPE_MANIFEST,
@@ -720,57 +928,66 @@
720
928
  multi: true
721
929
  };
722
930
  var ɵ3 = {
931
+ name: 'integer',
932
+ component: TableCellTypeIntegerComponent
933
+ };
934
+ var TABLE_CELL_TYPE_MANIFEST_INTEGER = {
935
+ provide: tableCellType.TABLE_CELL_TYPE_MANIFEST,
936
+ useValue: ɵ3,
937
+ multi: true
938
+ };
939
+ var ɵ4 = {
723
940
  name: 'date',
724
941
  component: TableCellTypeDateComponent
725
942
  };
726
943
  var TABLE_CELL_TYPE_MANIFEST_DATE = {
727
944
  provide: tableCellType.TABLE_CELL_TYPE_MANIFEST,
728
- useValue: ɵ3,
945
+ useValue: ɵ4,
729
946
  multi: true
730
947
  };
731
- var ɵ4 = {
948
+ var ɵ5 = {
732
949
  name: 'icon',
733
950
  component: TableCellTypeIconComponent
734
951
  };
735
952
  var TABLE_CELL_TYPE_MANIFEST_ICON = {
736
953
  provide: tableCellType.TABLE_CELL_TYPE_MANIFEST,
737
- useValue: ɵ4,
954
+ useValue: ɵ5,
738
955
  multi: true
739
956
  };
740
- var ɵ5 = {
957
+ var ɵ6 = {
741
958
  name: 'image',
742
959
  component: TableCellTypeIconComponent
743
960
  };
744
961
  var TABLE_CELL_TYPE_MANIFEST_IMAGE = {
745
962
  provide: tableCellType.TABLE_CELL_TYPE_MANIFEST,
746
- useValue: ɵ5,
963
+ useValue: ɵ6,
747
964
  multi: true
748
965
  };
749
- var ɵ6 = {
966
+ var ɵ7 = {
750
967
  name: 'progress-circle',
751
968
  component: TableCellTypeProgressCircleComponent
752
969
  };
753
970
  var TABLE_CELL_TYPE_MANIFEST_PROGRESS_CIRCLE = {
754
971
  provide: tableCellType.TABLE_CELL_TYPE_MANIFEST,
755
- useValue: ɵ6,
972
+ useValue: ɵ7,
756
973
  multi: true
757
974
  };
758
- var ɵ7 = {
975
+ var ɵ8 = {
759
976
  name: 'progress-circle-icon',
760
977
  component: TableCellTypeProgressCircleIconComponent
761
978
  };
762
979
  var TABLE_CELL_TYPE_MANIFEST_PROGRESS_CIRCLE_ICON = {
763
980
  provide: tableCellType.TABLE_CELL_TYPE_MANIFEST,
764
- useValue: ɵ7,
981
+ useValue: ɵ8,
765
982
  multi: true
766
983
  };
767
- var ɵ8 = {
984
+ var ɵ9 = {
768
985
  name: 'phone',
769
986
  component: TableCellTypePhoneComponent
770
987
  };
771
988
  var TABLE_CELL_TYPE_MANIFEST_PHONE = {
772
989
  provide: tableCellType.TABLE_CELL_TYPE_MANIFEST,
773
- useValue: ɵ8,
990
+ useValue: ɵ9,
774
991
  multi: true
775
992
  };
776
993
 
@@ -1009,7 +1226,7 @@
1009
1226
  ar[i] = from[i];
1010
1227
  }
1011
1228
  }
1012
- return to.concat(ar || from);
1229
+ return to.concat(ar || Array.prototype.slice.call(from));
1013
1230
  }
1014
1231
  function __await(v) {
1015
1232
  return this instanceof __await ? (this.v = v, this) : new __await(v);
@@ -1094,8 +1311,11 @@
1094
1311
 
1095
1312
  var cellTypeComponents = [
1096
1313
  TableCellTypeStringComponent,
1314
+ TableCellTypeCurrencyComponent,
1097
1315
  TableCellTypeDateComponent,
1316
+ TableCellTypeDecimalComponent,
1098
1317
  TableCellTypeIconComponent,
1318
+ TableCellTypeIntegerComponent,
1099
1319
  TableCellTypeProgressCircleComponent,
1100
1320
  TableCellTypeProgressCircleIconComponent,
1101
1321
  TableCellTypePhoneComponent
@@ -1103,6 +1323,7 @@
1103
1323
  var cellTypeProviders = [
1104
1324
  TABLE_CELL_TYPE_MANIFEST_STRING,
1105
1325
  TABLE_CELL_TYPE_MANIFEST_INTEGER,
1326
+ TABLE_CELL_TYPE_MANIFEST_CURRENCY,
1106
1327
  TABLE_CELL_TYPE_MANIFEST_DECIMAL,
1107
1328
  TABLE_CELL_TYPE_MANIFEST_DATE,
1108
1329
  TABLE_CELL_TYPE_MANIFEST_ICON,
@@ -1142,6 +1363,7 @@
1142
1363
  * Generated bundle index. Do not edit.
1143
1364
  */
1144
1365
 
1366
+ exports.TABLE_CELL_TYPE_MANIFEST_CURRENCY = TABLE_CELL_TYPE_MANIFEST_CURRENCY;
1145
1367
  exports.TABLE_CELL_TYPE_MANIFEST_DATE = TABLE_CELL_TYPE_MANIFEST_DATE;
1146
1368
  exports.TABLE_CELL_TYPE_MANIFEST_DECIMAL = TABLE_CELL_TYPE_MANIFEST_DECIMAL;
1147
1369
  exports.TABLE_CELL_TYPE_MANIFEST_ICON = TABLE_CELL_TYPE_MANIFEST_ICON;
@@ -1151,24 +1373,28 @@
1151
1373
  exports.TABLE_CELL_TYPE_MANIFEST_PROGRESS_CIRCLE = TABLE_CELL_TYPE_MANIFEST_PROGRESS_CIRCLE;
1152
1374
  exports.TABLE_CELL_TYPE_MANIFEST_PROGRESS_CIRCLE_ICON = TABLE_CELL_TYPE_MANIFEST_PROGRESS_CIRCLE_ICON;
1153
1375
  exports.TABLE_CELL_TYPE_MANIFEST_STRING = TABLE_CELL_TYPE_MANIFEST_STRING;
1376
+ exports.TableCellTypeCurrencyComponent = TableCellTypeCurrencyComponent;
1154
1377
  exports.TableCellTypeDateComponent = TableCellTypeDateComponent;
1378
+ exports.TableCellTypeDecimalComponent = TableCellTypeDecimalComponent;
1155
1379
  exports.TableCellTypeIconComponent = TableCellTypeIconComponent;
1380
+ exports.TableCellTypeIntegerComponent = TableCellTypeIntegerComponent;
1156
1381
  exports.TableCellTypePhoneComponent = TableCellTypePhoneComponent;
1157
1382
  exports.TableCellTypeProgressCircleComponent = TableCellTypeProgressCircleComponent;
1158
1383
  exports.TableCellTypeProgressCircleIconComponent = TableCellTypeProgressCircleIconComponent;
1159
1384
  exports.TableCellTypeStringComponent = TableCellTypeStringComponent;
1160
1385
  exports.TheSeamTableCellTypesModule = TheSeamTableCellTypesModule;
1161
- exports0 = ɵ0;
1162
- exports1 = ɵ1;
1163
- exports2 = ɵ2;
1164
- exports3 = ɵ3;
1165
- exports4 = ɵ4;
1166
- exports5 = ɵ5;
1167
- exports6 = ɵ6;
1168
- exports7 = ɵ7;
1169
- exports8 = ɵ8;
1386
+ exports["ɵ0"] = ɵ0;
1387
+ exports["ɵ1"] = ɵ1;
1388
+ exports["ɵ2"] = ɵ2;
1389
+ exports["ɵ3"] = ɵ3;
1390
+ exports["ɵ4"] = ɵ4;
1391
+ exports["ɵ5"] = ɵ5;
1392
+ exports["ɵ6"] = ɵ6;
1393
+ exports["ɵ7"] = ɵ7;
1394
+ exports["ɵ8"] = ɵ8;
1395
+ exports["ɵ9"] = ɵ9;
1170
1396
 
1171
1397
  Object.defineProperty(exports, '__esModule', { value: true });
1172
1398
 
1173
- })));
1399
+ }));
1174
1400
  //# sourceMappingURL=theseam-ui-common-table-cell-types.umd.js.map