@theseam/ui-common 0.2.9 → 0.2.13

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 (365) 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 +1353 -375
  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 +28 -30
  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 +48 -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-footer/datatable-footer-tpl.directive.d.ts +5 -0
  96. package/datatable/datatable-footer/datatable-footer.directive.d.ts +6 -0
  97. package/datatable/datatable-menu-bar/datatable-menu-bar.component.d.ts +1 -1
  98. package/datatable/directives/datatable-filter.directive.d.ts +1 -1
  99. package/datatable/models/columns-alteration.d.ts +61 -0
  100. package/datatable/models/columns-alterations/hide-column.columns-alteration.d.ts +15 -0
  101. package/datatable/models/columns-alterations/order.columns-alteration.d.ts +20 -0
  102. package/datatable/models/columns-alterations/sort.columns-alteration.d.ts +14 -0
  103. package/datatable/models/columns-alterations/width.columns-alteration.d.ts +16 -0
  104. package/datatable/models/datatable-accessor.d.ts +5 -3
  105. package/datatable/models/internal-column-props.d.ts +7 -0
  106. package/datatable/models/page-info.d.ts +12 -0
  107. package/datatable/models/preferences-accessor.d.ts +1 -1
  108. package/datatable/models/preferences.d.ts +11 -3
  109. package/datatable/models/sort-item.d.ts +2 -1
  110. package/datatable/public-api.d.ts +2 -0
  111. package/datatable/services/columns-alterations-manager.service.d.ts +39 -0
  112. package/datatable/services/columns-manager.service.d.ts +55 -0
  113. package/datatable/services/datatable-preferences.service.d.ts +10 -7
  114. package/datatable/theseam-ui-common-datatable.d.ts +2 -0
  115. package/datatable/theseam-ui-common-datatable.metadata.json +1 -1
  116. package/datatable/tokens/datatable-preferences-accessor.d.ts +2 -2
  117. package/datatable/utils/create-action-menu-column.d.ts +3 -0
  118. package/datatable/utils/create-checkbox-column.d.ts +3 -0
  119. package/datatable/utils/get-column-prop.d.ts +5 -0
  120. package/datatable/utils/map-columns-alterations-states.d.ts +2 -0
  121. package/datatable/utils/remove-unused-diffs.d.ts +7 -0
  122. package/datatable/utils/set-column-defaults.d.ts +2 -0
  123. package/datatable/utils/translate-templates.d.ts +2 -0
  124. package/datatable/utils/with-stored-column-info.d.ts +2 -2
  125. package/datatable-dynamic/theseam-ui-common-datatable-dynamic.metadata.json +1 -1
  126. package/esm2015/buttons/progress-circle-button/progress-circle-button.component.js +1 -1
  127. package/esm2015/card/card-action/card-action.component.js +1 -1
  128. package/esm2015/card/card-body/card-body.component.js +1 -1
  129. package/esm2015/data-filters/data-filter.js +5 -2
  130. package/esm2015/data-filters/filters/data-filter-search/data-filter-search.component.js +1 -1
  131. package/esm2015/data-filters/filters/data-filter-text/data-filter-text.component.js +1 -1
  132. package/esm2015/datatable/datatable/datatable.component.js +197 -211
  133. package/esm2015/datatable/datatable-action-menu/datatable-action-menu.component.js +1 -1
  134. package/esm2015/datatable/datatable-column/datatable-column.component.js +1 -1
  135. package/esm2015/datatable/datatable-column-preferences/datatable-column-preferences.component.js +42 -19
  136. package/esm2015/datatable/datatable-column-preferences-button/datatable-column-preferences-button.component.js +38 -4
  137. package/esm2015/datatable/datatable-export-button/datatable-export-button.component.js +1 -1
  138. package/esm2015/datatable/datatable-footer/datatable-footer-tpl.directive.js +15 -0
  139. package/esm2015/datatable/datatable-footer/datatable-footer.directive.js +18 -0
  140. package/esm2015/datatable/datatable-menu-bar/datatable-menu-bar.component.js +1 -1
  141. package/esm2015/datatable/datatable-menu-bar-column-center/datatable-menu-bar-column-center.component.js +1 -1
  142. package/esm2015/datatable/datatable-menu-bar-column-left/datatable-menu-bar-column-left.component.js +1 -1
  143. package/esm2015/datatable/datatable-menu-bar-column-right/datatable-menu-bar-column-right.component.js +1 -1
  144. package/esm2015/datatable/datatable-menu-bar-row/datatable-menu-bar-row.component.js +1 -1
  145. package/esm2015/datatable/datatable.module.js +7 -1
  146. package/esm2015/datatable/models/columns-alteration.js +38 -0
  147. package/esm2015/datatable/models/columns-alterations/hide-column.columns-alteration.js +38 -0
  148. package/esm2015/datatable/models/columns-alterations/order.columns-alteration.js +81 -0
  149. package/esm2015/datatable/models/columns-alterations/sort.columns-alteration.js +33 -0
  150. package/esm2015/datatable/models/columns-alterations/width.columns-alteration.js +41 -0
  151. package/esm2015/datatable/models/datatable-accessor.js +1 -1
  152. package/esm2015/datatable/models/internal-column-props.js +15 -0
  153. package/esm2015/datatable/models/page-info.js +1 -1
  154. package/esm2015/datatable/models/preferences-accessor.js +1 -1
  155. package/esm2015/datatable/models/preferences.js +6 -2
  156. package/esm2015/datatable/models/sort-item.js +1 -1
  157. package/esm2015/datatable/public-api.js +3 -1
  158. package/esm2015/datatable/services/columns-alterations-manager.service.js +134 -0
  159. package/esm2015/datatable/services/columns-manager.service.js +257 -0
  160. package/esm2015/datatable/services/datatable-preferences.service.js +78 -32
  161. package/esm2015/datatable/theseam-ui-common-datatable.js +3 -1
  162. package/esm2015/datatable/tokens/datatable-preferences-accessor.js +2 -2
  163. package/esm2015/datatable/utils/create-action-menu-column.js +18 -0
  164. package/esm2015/datatable/utils/create-checkbox-column.js +15 -0
  165. package/esm2015/datatable/utils/get-column-prop.js +9 -0
  166. package/esm2015/datatable/utils/map-columns-alterations-states.js +39 -0
  167. package/esm2015/datatable/utils/remove-unused-diffs.js +9 -0
  168. package/esm2015/datatable/utils/set-column-defaults.js +10 -0
  169. package/esm2015/datatable/utils/translate-templates.js +12 -0
  170. package/esm2015/datatable/utils/with-stored-column-info.js +1 -1
  171. package/esm2015/datatable-dynamic/datatable-dynamic-action-menu/datatable-dynamic-action-menu.component.js +1 -1
  172. package/esm2015/datatable-dynamic/datatable-dynamic-filter-container/datatable-dynamic-filter-container.component.js +1 -1
  173. package/esm2015/datatable-dynamic/datatable-dynamic.component.js +1 -1
  174. package/esm2015/form-field/form-field.component.js +1 -1
  175. package/esm2015/form-field-error/form-field-error/form-field-error.component.js +1 -1
  176. package/esm2015/framework/base-layout/base-layout.component.js +1 -1
  177. package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widgets.component.js +1 -1
  178. package/esm2015/framework/dynamic-router/hierarchy-router-outlet/hierarchy-router-outlet.component.js +1 -1
  179. package/esm2015/framework/schema-form-controls/schema-form-input/schema-form-input.component.js +1 -1
  180. package/esm2015/framework/schema-form-controls/schema-form-number/schema-form-number.component.js +1 -1
  181. package/esm2015/framework/schema-form-controls/schema-form-select/schema-form-select.component.js +1 -1
  182. package/esm2015/framework/schema-form-controls/schema-form-submit-split/schema-form-submit-split.component.js +1 -1
  183. package/esm2015/framework/side-nav/side-nav-item/side-nav-item.component.js +3 -3
  184. package/esm2015/framework/side-nav/side-nav-toggle/side-nav-toggle.component.js +1 -1
  185. package/esm2015/framework/side-nav/side-nav.component.js +1 -1
  186. package/esm2015/framework/top-bar/top-bar-menu-button/top-bar-menu-button.component.js +1 -1
  187. package/esm2015/framework/top-bar/top-bar-title/top-bar-title.component.js +1 -1
  188. package/esm2015/framework/top-bar/top-bar.component.js +1 -1
  189. package/esm2015/graphql/datatable/create-page-info-observable.js +38 -0
  190. package/esm2015/graphql/datatable/datatable-graphql-query-ref.js +236 -0
  191. package/esm2015/graphql/datatable/datatable-graphql.service.js +35 -0
  192. package/esm2015/graphql/datatable/datatable-helpers.js +170 -0
  193. package/esm2015/graphql/datatable/get-page-info.js +11 -0
  194. package/esm2015/graphql/datatable/index.js +7 -0
  195. package/esm2015/graphql/datatable/map-filter-states.js +64 -0
  196. package/esm2015/graphql/datatable/map-page-info.js +14 -0
  197. package/esm2015/graphql/datatable/mapper-context.js +2 -0
  198. package/esm2015/graphql/models/gql-datatable-accessor.js +2 -0
  199. package/esm2015/graphql/models/index.js +2 -1
  200. package/esm2015/graphql/models/query-processing-config.js +1 -1
  201. package/esm2015/graphql/public-api.js +2 -1
  202. package/esm2015/graphql/utils/parse-hints.js +3 -3
  203. package/esm2015/icon/icon/icon.component.js +1 -1
  204. package/esm2015/loading/loading/loading.component.js +1 -1
  205. package/esm2015/menu/menu.component.js +1 -1
  206. package/esm2015/modal/modal-body/modal-body.component.js +1 -1
  207. package/esm2015/modal/modal-container/modal-container.component.js +1 -1
  208. package/esm2015/popover/popover/popover.component.js +1 -1
  209. package/esm2015/progress/progress-circle/progress-circle.component.js +1 -1
  210. package/esm2015/tabbed/tabbed.component.js +1 -1
  211. package/esm2015/table/table/table.component.js +1 -1
  212. package/esm2015/table-cell-types/public-api.js +8 -1
  213. package/esm2015/table-cell-types/table-cell-type-currency/table-cell-type-currency-config.js +2 -0
  214. package/esm2015/table-cell-types/table-cell-type-currency/table-cell-type-currency.component.js +74 -0
  215. package/esm2015/table-cell-types/table-cell-type-currency/table-cell-type-currency.js +2 -0
  216. package/esm2015/table-cell-types/table-cell-type-decimal/table-cell-type-decimal-config.js +1 -1
  217. package/esm2015/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.component.js +73 -0
  218. package/esm2015/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.js +2 -0
  219. package/esm2015/table-cell-types/table-cell-type-icon/table-cell-type-icon.component.js +1 -1
  220. package/esm2015/table-cell-types/table-cell-type-integer/table-cell-type-integer-config.js +1 -1
  221. package/esm2015/table-cell-types/table-cell-type-integer/table-cell-type-integer.component.js +71 -0
  222. package/esm2015/table-cell-types/table-cell-type-integer/table-cell-type-integer.js +2 -0
  223. package/esm2015/table-cell-types/table-cell-type-manifests.js +29 -17
  224. package/esm2015/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle.component.js +1 -1
  225. package/esm2015/table-cell-types/table-cell-types.module.js +9 -2
  226. package/esm2015/tel-input/tel-input/tel-input.component.js +1 -1
  227. package/esm2015/testing/current-tick-time.js +16 -0
  228. package/esm2015/testing/fake-toastr.js +29 -0
  229. package/esm2015/testing/get-harness.js +16 -0
  230. package/esm2015/testing/public-api.js +7 -0
  231. package/esm2015/testing/render-story.js +12 -0
  232. package/esm2015/testing/story-expect.js +39 -0
  233. package/esm2015/testing/theseam-ui-common-testing.js +5 -0
  234. package/esm2015/testing/tick-helper.js +74 -0
  235. package/esm2015/tiled-select/components/tiled-select/tiled-select.component.js +25 -17
  236. package/esm2015/tiled-select/components/tiled-select-tile/tiled-select-tile.component.js +5 -2
  237. package/esm2015/tiled-select/components/tiled-select-tile-icon/tiled-select-tile-icon.component.js +1 -1
  238. package/esm2015/tiled-select/public-api.js +2 -1
  239. package/esm2015/tiled-select/tiled-select.models.js +1 -1
  240. package/esm2015/tiled-select/tiled-select.module.js +4 -4
  241. package/esm2015/toggle-edit/toggle-edit-actions-container/toggle-edit-actions-container.component.js +1 -1
  242. package/esm2015/toggle-edit/toggle-edit.component.js +1 -1
  243. package/esm2015/utils/array-move.js +62 -0
  244. package/esm2015/utils/public-api.js +2 -1
  245. package/esm2015/utils/subscriber-count.js +31 -4
  246. package/esm2015/widget/widget/widget.component.js +1 -1
  247. package/esm2015/widget/widget-content-components/widget-button-group/widget-button-group.component.js +1 -1
  248. package/esm2015/widget/widget-content-components/widget-content-header/widget-content-header.component.js +1 -1
  249. package/esm2015/widget/widget-content-components/widget-empty-label/widget-empty-label.component.js +1 -1
  250. package/esm2015/widget/widget-content-components/widget-footer-link/widget-footer-link.component.js +1 -1
  251. package/esm2015/widget/widget-content-components/widget-footer-text/widget-footer-text.component.js +1 -1
  252. package/esm2015/widget/widget-content-components/widget-header-badge/widget-header-badge.component.js +1 -1
  253. package/esm2015/widget/widget-content-components/widget-tile/widget-tile-footer-item/widget-tile-footer-item.component.js +1 -1
  254. package/esm2015/widget/widget-content-components/widget-tile/widget-tile-group/widget-tile-group.component.js +1 -1
  255. package/esm2015/widget/widget-content-components/widget-tile/widget-tile.component.js +1 -1
  256. package/esm2015/widget/widget-content-components/widget-tile-list/widget-tile-list.component.js +1 -1
  257. package/esm2015/widget/widget-footer/widget-footer.component.js +1 -1
  258. package/fesm2015/theseam-ui-common-buttons.js +1 -1
  259. package/fesm2015/theseam-ui-common-card.js +2 -2
  260. package/fesm2015/theseam-ui-common-data-filters.js +6 -3
  261. package/fesm2015/theseam-ui-common-data-filters.js.map +1 -1
  262. package/fesm2015/theseam-ui-common-datatable-dynamic.js +3 -3
  263. package/fesm2015/theseam-ui-common-datatable.js +1136 -316
  264. package/fesm2015/theseam-ui-common-datatable.js.map +1 -1
  265. package/fesm2015/theseam-ui-common-form-field-error.js +1 -1
  266. package/fesm2015/theseam-ui-common-form-field.js +1 -1
  267. package/fesm2015/theseam-ui-common-framework.js +14 -14
  268. package/fesm2015/theseam-ui-common-framework.js.map +1 -1
  269. package/fesm2015/theseam-ui-common-graphql.js +555 -5
  270. package/fesm2015/theseam-ui-common-graphql.js.map +1 -1
  271. package/fesm2015/theseam-ui-common-icon.js +1 -1
  272. package/fesm2015/theseam-ui-common-loading.js +1 -1
  273. package/fesm2015/theseam-ui-common-menu.js +1 -1
  274. package/fesm2015/theseam-ui-common-modal.js +2 -2
  275. package/fesm2015/theseam-ui-common-popover.js +1 -1
  276. package/fesm2015/theseam-ui-common-progress.js +1 -1
  277. package/fesm2015/theseam-ui-common-tabbed.js +1 -1
  278. package/fesm2015/theseam-ui-common-table-cell-types.js +234 -22
  279. package/fesm2015/theseam-ui-common-table-cell-types.js.map +1 -1
  280. package/fesm2015/theseam-ui-common-table.js +1 -1
  281. package/fesm2015/theseam-ui-common-tel-input.js +1 -1
  282. package/fesm2015/theseam-ui-common-testing.js +191 -0
  283. package/fesm2015/theseam-ui-common-testing.js.map +1 -0
  284. package/fesm2015/theseam-ui-common-tiled-select.js +34 -21
  285. package/fesm2015/theseam-ui-common-tiled-select.js.map +1 -1
  286. package/fesm2015/theseam-ui-common-toggle-edit.js +2 -2
  287. package/fesm2015/theseam-ui-common-utils.js +92 -4
  288. package/fesm2015/theseam-ui-common-utils.js.map +1 -1
  289. package/fesm2015/theseam-ui-common-widget.js +12 -12
  290. package/form-field/theseam-ui-common-form-field.metadata.json +1 -1
  291. package/form-field-error/theseam-ui-common-form-field-error.metadata.json +1 -1
  292. package/framework/side-nav/side-nav-item/side-nav-item.component.scss +36 -9
  293. package/framework/theseam-ui-common-framework.metadata.json +1 -1
  294. package/graphql/datatable/create-page-info-observable.d.ts +4 -0
  295. package/graphql/datatable/datatable-graphql-query-ref.d.ts +65 -0
  296. package/graphql/datatable/datatable-graphql.service.d.ts +26 -0
  297. package/graphql/datatable/datatable-helpers.d.ts +12 -0
  298. package/graphql/datatable/get-page-info.d.ts +4 -0
  299. package/graphql/datatable/index.d.ts +6 -0
  300. package/graphql/datatable/map-filter-states.d.ts +18 -0
  301. package/graphql/datatable/map-page-info.d.ts +11 -0
  302. package/graphql/datatable/mapper-context.d.ts +6 -0
  303. package/graphql/models/gql-datatable-accessor.d.ts +9 -0
  304. package/graphql/models/index.d.ts +1 -0
  305. package/graphql/models/query-processing-config.d.ts +4 -0
  306. package/graphql/public-api.d.ts +1 -0
  307. package/graphql/theseam-ui-common-graphql.metadata.json +1 -1
  308. package/icon/theseam-ui-common-icon.metadata.json +1 -1
  309. package/loading/theseam-ui-common-loading.metadata.json +1 -1
  310. package/menu/theseam-ui-common-menu.metadata.json +1 -1
  311. package/modal/theseam-ui-common-modal.metadata.json +1 -1
  312. package/package.json +1 -1
  313. package/popover/theseam-ui-common-popover.metadata.json +1 -1
  314. package/progress/theseam-ui-common-progress.metadata.json +1 -1
  315. package/styles/common/_table.scss +0 -5
  316. package/styles/vendor/ngx-datatable/_ngx-datatable.scss +478 -87
  317. package/styles/vendor/ngx-datatable/_themes/bootstrap/_variables.scss +174 -0
  318. package/styles/vendor/ngx-datatable/_themes/dark/_variables.scss +166 -0
  319. package/styles/vendor/ngx-datatable/_themes/material/_variables.scss +165 -0
  320. package/styles/vendor/ngx-datatable/_variables.scss +3 -0
  321. package/tabbed/theseam-ui-common-tabbed.metadata.json +1 -1
  322. package/table/theseam-ui-common-table.metadata.json +1 -1
  323. package/table-cell-types/public-api.d.ts +7 -0
  324. package/table-cell-types/table-cell-type-currency/table-cell-type-currency-config.d.ts +39 -0
  325. package/table-cell-types/table-cell-type-currency/table-cell-type-currency.component.d.ts +19 -0
  326. package/table-cell-types/table-cell-type-currency/table-cell-type-currency.d.ts +3 -0
  327. package/table-cell-types/table-cell-type-decimal/table-cell-type-decimal-config.d.ts +31 -1
  328. package/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.component.d.ts +19 -0
  329. package/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.d.ts +3 -0
  330. package/table-cell-types/table-cell-type-integer/table-cell-type-integer-config.d.ts +23 -1
  331. package/table-cell-types/table-cell-type-integer/table-cell-type-integer.component.d.ts +19 -0
  332. package/table-cell-types/table-cell-type-integer/table-cell-type-integer.d.ts +3 -0
  333. package/table-cell-types/table-cell-type-manifests.d.ts +2 -1
  334. package/table-cell-types/theseam-ui-common-table-cell-types.metadata.json +1 -1
  335. package/tel-input/theseam-ui-common-tel-input.metadata.json +1 -1
  336. package/testing/current-tick-time.d.ts +13 -0
  337. package/testing/fake-toastr.d.ts +30 -0
  338. package/testing/get-harness.d.ts +7 -0
  339. package/testing/package.json +11 -0
  340. package/testing/public-api.d.ts +6 -0
  341. package/testing/render-story.d.ts +2 -0
  342. package/testing/story-expect.d.ts +5 -0
  343. package/{test-helpers/theseam-ui-common-test-helpers.d.ts → testing/theseam-ui-common-testing.d.ts} +0 -0
  344. package/testing/theseam-ui-common-testing.metadata.json +1 -0
  345. package/{test-helpers → testing}/tick-helper.d.ts +0 -0
  346. package/tiled-select/components/tiled-select/tiled-select.component.d.ts +7 -3
  347. package/tiled-select/components/tiled-select-tile/tiled-select-tile.component.d.ts +1 -0
  348. package/tiled-select/theseam-ui-common-tiled-select.metadata.json +1 -1
  349. package/tiled-select/tiled-select.models.d.ts +3 -1
  350. package/toggle-edit/theseam-ui-common-toggle-edit.metadata.json +1 -1
  351. package/utils/array-move.d.ts +49 -0
  352. package/utils/public-api.d.ts +1 -0
  353. package/utils/subscriber-count.d.ts +13 -1
  354. package/utils/theseam-ui-common-utils.metadata.json +1 -1
  355. package/widget/theseam-ui-common-widget.metadata.json +1 -1
  356. package/bundles/theseam-ui-common-test-helpers.umd.js +0 -94
  357. package/bundles/theseam-ui-common-test-helpers.umd.js.map +0 -1
  358. package/esm2015/test-helpers/public-api.js +0 -2
  359. package/esm2015/test-helpers/theseam-ui-common-test-helpers.js +0 -5
  360. package/esm2015/test-helpers/tick-helper.js +0 -74
  361. package/fesm2015/theseam-ui-common-test-helpers.js +0 -81
  362. package/fesm2015/theseam-ui-common-test-helpers.js.map +0 -1
  363. package/test-helpers/package.json +0 -11
  364. package/test-helpers/public-api.d.ts +0 -1
  365. package/test-helpers/theseam-ui-common-test-helpers.metadata.json +0 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :
3
3
  typeof define === 'function' && define.amd ? define('@theseam/ui-common/unsaved-changes-dialog', ['exports', '@angular/core'], 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']['unsaved-changes-dialog'] = {}), global.ng.core));
5
- }(this, (function (exports, i0) { 'use strict';
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"]["unsaved-changes-dialog"] = {}), global.ng.core));
5
+ })(this, (function (exports, i0) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -13,14 +13,12 @@
13
13
  var d = Object.getOwnPropertyDescriptor(e, k);
14
14
  Object.defineProperty(n, k, d.get ? d : {
15
15
  enumerable: true,
16
- get: function () {
17
- return e[k];
18
- }
16
+ get: function () { return e[k]; }
19
17
  });
20
18
  }
21
19
  });
22
20
  }
23
- n['default'] = e;
21
+ n["default"] = e;
24
22
  return Object.freeze(n);
25
23
  }
26
24
 
@@ -132,5 +130,5 @@
132
130
 
133
131
  Object.defineProperty(exports, '__esModule', { value: true });
134
132
 
135
- })));
133
+ }));
136
134
  //# sourceMappingURL=theseam-ui-common-unsaved-changes-dialog.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"theseam-ui-common-unsaved-changes-dialog.umd.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":["Component","NgModule","isDevMode","Injectable","Directive","HostListener"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEA;EACA;;MAaE;OAAiB;MAEjB,gDAAQ,GAAR;OACC;;;;cAdFA,YAAS,SAAC;kBACT,QAAQ,EAAE,6BAA6B;kBACvC,QAAQ,EAAE,8DAIT;eAEF;;;;;MCJD;;;;;cALCC,WAAQ,SAAC;kBACR,YAAY,EAAE,CAAC,6BAA6B,CAAC;kBAC7C,OAAO,EAAE,EAAE;kBACX,OAAO,EAAE,CAAC,6BAA6B,CAAC;eACzC;;;;MCAD;;;;;MAKE,iDAAa,GAAb,UAAc,SAAsC;UAClD,IAAIC,YAAS,EAAE,EAAE;cACf,IAAI,CAAC,SAAS,CAAC,2BAA2B,EAAE;kBAC1C,OAAO,CAAC,IAAI,CAAC,yGAAyG,CAAC,CAAA;eACxH;cAED,IAAM,CAAC,GAAG,MAAa,CAAA;;cAEvB,IAAI,CAAC,IAAI,CAAC,CAAC,wBAAwB,EAAE;kBACnC,OAAO,IAAI,CAAA;eACZ;WACF;UAED,IAAI,CAAC,SAAS,CAAC,2BAA2B,EAAE,EAAE;cAC5C,IAAI,OAAO,CAAC,oEAAoE,CAAC,EAAE;kBACjF,OAAO,IAAI,CAAA;eACZ;mBAAM;kBACL,OAAO,KAAK,CAAA;eACb;WACF;UACD,OAAO,IAAI,CAAA;OACZ;;;;;cA7BFC,aAAU,SAAC;kBACV,UAAU,EAAE,MAAM;eACnB;;;ECJD;;MACA;;MAKI,0DAAoB,GAApB,UAAqB,MAAW;UAC9B,IAAID,YAAS,EAAE,EAAE;cACf,IAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE;kBACrC,OAAO,CAAC,IAAI,CAAC,yGAAyG,CAAC,CAAA;eACxH;cAED,IAAM,CAAC,GAAG,MAAa,CAAA;;cAEvB,IAAI,CAAC,IAAI,CAAC,CAAC,wBAAwB,EAAE;kBACnC,OAAO,IAAI,CAAA;eACZ;WACF;UAED,IAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE;;cAEvC,MAAM,CAAC,WAAW,GAAG,oEAAoE,CAAA;WAC1F;OACF;;;;cAxBJE,YAAS;;;qCAMLC,eAAY,SAAC,qBAAqB,EAAE,CAAC,QAAQ,CAAC;;;ECRnD;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"theseam-ui-common-unsaved-changes-dialog.umd.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":["Component","NgModule","isDevMode","Injectable","Directive","HostListener"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;EAEA;EACA;;MAaE;OAAiB;MAEjB,gDAAQ,GAAR;OACC;;;;cAdFA,YAAS,SAAC;kBACT,QAAQ,EAAE,6BAA6B;kBACvC,QAAQ,EAAE,8DAIT;eAEF;;;;;MCJD;;;;;cALCC,WAAQ,SAAC;kBACR,YAAY,EAAE,CAAC,6BAA6B,CAAC;kBAC7C,OAAO,EAAE,EAAE;kBACX,OAAO,EAAE,CAAC,6BAA6B,CAAC;eACzC;;;;MCAD;;;;;MAKE,iDAAa,GAAb,UAAc,SAAsC;UAClD,IAAIC,YAAS,EAAE,EAAE;cACf,IAAI,CAAC,SAAS,CAAC,2BAA2B,EAAE;kBAC1C,OAAO,CAAC,IAAI,CAAC,yGAAyG,CAAC,CAAA;eACxH;cAED,IAAM,CAAC,GAAG,MAAa,CAAA;;cAEvB,IAAI,CAAC,IAAI,CAAC,CAAC,wBAAwB,EAAE;kBACnC,OAAO,IAAI,CAAA;eACZ;WACF;UAED,IAAI,CAAC,SAAS,CAAC,2BAA2B,EAAE,EAAE;cAC5C,IAAI,OAAO,CAAC,oEAAoE,CAAC,EAAE;kBACjF,OAAO,IAAI,CAAA;eACZ;mBAAM;kBACL,OAAO,KAAK,CAAA;eACb;WACF;UACD,OAAO,IAAI,CAAA;OACZ;;;;;cA7BFC,aAAU,SAAC;kBACV,UAAU,EAAE,MAAM;eACnB;;;ECJD;;MACA;;MAKI,0DAAoB,GAApB,UAAqB,MAAW;UAC9B,IAAID,YAAS,EAAE,EAAE;cACf,IAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE;kBACrC,OAAO,CAAC,IAAI,CAAC,yGAAyG,CAAC,CAAA;eACxH;cAED,IAAM,CAAC,GAAG,MAAa,CAAA;;cAEvB,IAAI,CAAC,IAAI,CAAC,CAAC,wBAAwB,EAAE;kBACnC,OAAO,IAAI,CAAA;eACZ;WACF;UAED,IAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE;;cAEvC,MAAM,CAAC,WAAW,GAAG,oEAAoE,CAAA;WAC1F;OACF;;;;cAxBJE,YAAS;;;qCAMLC,eAAY,SAAC,qBAAqB,EAAE,CAAC,QAAQ,CAAC;;;ECRnD;;;;;;;;;;;;;;;"}
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs/operators'), require('rxjs'), require('@marklb/file-type')) :
3
3
  typeof define === 'function' && define.amd ? define('@theseam/ui-common/utils', ['exports', 'rxjs/operators', 'rxjs', '@marklb/file-type'], 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'].utils = {}), global.rxjs.operators, global.rxjs, global.fileType));
5
- }(this, (function (exports, operators, rxjs, fileType) { 'use strict';
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"].utils = {}), global.rxjs.operators, global.rxjs, global.fileType));
5
+ })(this, (function (exports, operators, rxjs, fileType) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -315,78 +315,6 @@
315
315
  return activatedRoute.snapshot.url.length === 0;
316
316
  }
317
317
 
318
- function calcPercentage(total, n) {
319
- return total && total > 0 ? (n / total) * 100 : 0;
320
- }
321
-
322
- /**
323
- * Polyfil for `Element.toggleAttribute`
324
- *
325
- * Toggles a value without a value. Useful for attributes, such as `disabled`,
326
- * `readonly`, and `hidden`, that only needs to exist on the `Element` without
327
- * requiring a value.
328
- *
329
- * Most browsers natively support this feature, but IE, which we still try to
330
- * support for at least the main parts of the app, has "Unknown" support of this
331
- * feature. Until IE support is dropped this polyfil should be used to toggle an
332
- * attribute.
333
- *
334
- * Source:
335
- * https://developer.mozilla.org/en-US/docs/Web/API/Element/toggleAttribute#Polyfill
336
- */
337
- function toggleAttribute(element, name, force) {
338
- if (force !== void 0) {
339
- force = !!force;
340
- }
341
- if (element.getAttribute(name) !== null) {
342
- if (force) {
343
- return true;
344
- }
345
- element.removeAttribute(name);
346
- return false;
347
- }
348
- else {
349
- if (force === false) {
350
- return false;
351
- }
352
- element.setAttribute(name, '');
353
- return true;
354
- }
355
- }
356
-
357
- var phoneNumberMask = ['(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/];
358
-
359
- function isNullOrUndefined(value) {
360
- return value === undefined || value === null;
361
- }
362
-
363
- function loadStyle(content) {
364
- return new Promise(function (resolve, reject) {
365
- var s = document.createElement('style');
366
- s.onload = function () { return resolve(s); };
367
- s.onerror = function (e) {
368
- document.head.removeChild(s);
369
- reject(e);
370
- };
371
- s.innerHTML = content;
372
- document.head.appendChild(s);
373
- });
374
- }
375
-
376
- function loadStyleSheet(path) {
377
- return new Promise(function (resolve, reject) {
378
- var s = document.createElement('link');
379
- s.onload = function () { return resolve(s); };
380
- s.onerror = function (e) {
381
- document.head.removeChild(s);
382
- reject(e);
383
- };
384
- s.rel = 'stylesheet';
385
- s.href = path;
386
- document.head.appendChild(s);
387
- });
388
- }
389
-
390
318
  /*! *****************************************************************************
391
319
  Copyright (c) Microsoft Corporation.
392
320
 
@@ -622,7 +550,7 @@
622
550
  ar[i] = from[i];
623
551
  }
624
552
  }
625
- return to.concat(ar || from);
553
+ return to.concat(ar || Array.prototype.slice.call(from));
626
554
  }
627
555
  function __await(v) {
628
556
  return this instanceof __await ? (this.v = v, this) : new __await(v);
@@ -705,6 +633,140 @@
705
633
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
706
634
  }
707
635
 
636
+ // Based on source: https://github.com/sindresorhus/array-move/blob/main/index.js
637
+ /**
638
+ Moves the item to the new position in the input array. Useful for huge arrays
639
+ where absolute performance is needed.
640
+
641
+ @param array - The array to modify.
642
+ @param fromIndex - The index of item to move. If negative, it will begin that
643
+ many elements from the end.
644
+ @param toIndex - The index of where to move the item. If negative, it will
645
+ begin that many elements from the end.
646
+ @example
647
+ ```
648
+ import { arrayMoveMutable } from '@theseam/ui-common/utils';
649
+
650
+ const input = ['a', 'b', 'c'];
651
+ arrayMoveMutable(input, 1, 2);
652
+ console.log(input);
653
+ //=> ['a', 'c', 'b']
654
+ ```
655
+ */
656
+ function arrayMoveMutable(array, fromIndex, toIndex) {
657
+ var startIndex = fromIndex < 0 ? array.length + fromIndex : fromIndex;
658
+ if (startIndex >= 0 && startIndex < array.length) {
659
+ var endIndex = toIndex < 0 ? array.length + toIndex : toIndex;
660
+ var _a = __read(array.splice(fromIndex, 1), 1), item = _a[0];
661
+ array.splice(endIndex, 0, item);
662
+ }
663
+ }
664
+ /**
665
+ Clones the given `array`, moves the item to a new position in the new array,
666
+ and then returns the new array. The given `array` is not mutated.
667
+
668
+ @param array - The array with the item to move.
669
+ @param fromIndex - The index of item to move. If negative, it will begin that
670
+ many elements from the end.
671
+ @param toIndex - The index of where to move the item. If negative, it will
672
+ begin that many elements from the end.
673
+ @returns A new array with the item moved to the new position.
674
+ @example
675
+ ```
676
+ import { arrayMoveImmutable } from '@theseam/ui-common/utils';
677
+
678
+ const input = ['a', 'b', 'c'];
679
+ const array1 = arrayMoveImmutable(input, 1, 2);
680
+ console.log(array1);
681
+ //=> ['a', 'c', 'b']
682
+
683
+ const array2 = arrayMoveImmutable(input, -1, 0);
684
+ console.log(array2);
685
+ //=> ['c', 'a', 'b']
686
+
687
+ const array3 = arrayMoveImmutable(input, -2, -3);
688
+ console.log(array3);
689
+ //=> ['b', 'a', 'c']
690
+ ```
691
+ */
692
+ function arrayMoveImmutable(array, fromIndex, toIndex) {
693
+ var newArray = __spreadArray([], __read(array));
694
+ arrayMoveMutable(newArray, fromIndex, toIndex);
695
+ return newArray;
696
+ }
697
+
698
+ function calcPercentage(total, n) {
699
+ return total && total > 0 ? (n / total) * 100 : 0;
700
+ }
701
+
702
+ /**
703
+ * Polyfil for `Element.toggleAttribute`
704
+ *
705
+ * Toggles a value without a value. Useful for attributes, such as `disabled`,
706
+ * `readonly`, and `hidden`, that only needs to exist on the `Element` without
707
+ * requiring a value.
708
+ *
709
+ * Most browsers natively support this feature, but IE, which we still try to
710
+ * support for at least the main parts of the app, has "Unknown" support of this
711
+ * feature. Until IE support is dropped this polyfil should be used to toggle an
712
+ * attribute.
713
+ *
714
+ * Source:
715
+ * https://developer.mozilla.org/en-US/docs/Web/API/Element/toggleAttribute#Polyfill
716
+ */
717
+ function toggleAttribute(element, name, force) {
718
+ if (force !== void 0) {
719
+ force = !!force;
720
+ }
721
+ if (element.getAttribute(name) !== null) {
722
+ if (force) {
723
+ return true;
724
+ }
725
+ element.removeAttribute(name);
726
+ return false;
727
+ }
728
+ else {
729
+ if (force === false) {
730
+ return false;
731
+ }
732
+ element.setAttribute(name, '');
733
+ return true;
734
+ }
735
+ }
736
+
737
+ var phoneNumberMask = ['(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/];
738
+
739
+ function isNullOrUndefined(value) {
740
+ return value === undefined || value === null;
741
+ }
742
+
743
+ function loadStyle(content) {
744
+ return new Promise(function (resolve, reject) {
745
+ var s = document.createElement('style');
746
+ s.onload = function () { return resolve(s); };
747
+ s.onerror = function (e) {
748
+ document.head.removeChild(s);
749
+ reject(e);
750
+ };
751
+ s.innerHTML = content;
752
+ document.head.appendChild(s);
753
+ });
754
+ }
755
+
756
+ function loadStyleSheet(path) {
757
+ return new Promise(function (resolve, reject) {
758
+ var s = document.createElement('link');
759
+ s.onload = function () { return resolve(s); };
760
+ s.onerror = function (e) {
761
+ document.head.removeChild(s);
762
+ reject(e);
763
+ };
764
+ s.rel = 'stylesheet';
765
+ s.href = path;
766
+ document.head.appendChild(s);
767
+ });
768
+ }
769
+
708
770
  /** Returns object without property */
709
771
  function withoutProperty(obj, propName) {
710
772
  var _a = obj, _b = propName, _ = _a[_b], without = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);
@@ -782,7 +844,7 @@
782
844
  return __awaiter(this, void 0, void 0, function () {
783
845
  var fType, mime, blob;
784
846
  return __generator(this, function (_a) {
785
- fType = fileType__default['default'](fileBuffer);
847
+ fType = fileType__default["default"](fileBuffer);
786
848
  mime = (fType) ? fType.mime : defaultMime;
787
849
  blob = new Blob([fileBuffer], { type: mime });
788
850
  return [2 /*return*/, blob];
@@ -810,7 +872,7 @@
810
872
  var _fileBuffer, fType, ext, mime, blob, fileData;
811
873
  return __generator(this, function (_a) {
812
874
  _fileBuffer = Buffer.from(fileBuffer);
813
- fType = fileType__default['default'](_fileBuffer);
875
+ fType = fileType__default["default"](_fileBuffer);
814
876
  ext = fType && fType.ext || undefined;
815
877
  mime = fType ? fType.mime : defaultMime;
816
878
  blob = new Blob([_fileBuffer], { type: mime });
@@ -1104,19 +1166,46 @@
1104
1166
  /**
1105
1167
  * This is just for helping debug observables that aren't being unsubscribed
1106
1168
  * from correctly.
1169
+ *
1170
+ * If description is 'foo' then you can check the how many observers are
1171
+ * subscribed with the expression `__subscriberCounts['foo']`. In a debugger you
1172
+ * can add the expression to the "Watch" expressions or in Chrome Devtools
1173
+ * Console you can add it to the live expressions(Add live expressions by
1174
+ * clicking the eye the the left of the Console filter input).
1107
1175
  */
1108
- function subscriberCount(sourceObservable, description) {
1176
+ function subscriberCount(sourceObservable, description, countChangedFn) {
1177
+ if (countChangedFn === void 0) { countChangedFn = logOnChange; }
1109
1178
  var counter = 0;
1110
1179
  return new rxjs.Observable(function (subscriber) {
1111
1180
  var subscription = sourceObservable.subscribe(subscriber);
1112
1181
  counter++;
1113
- console.log(description + " subscriptions: " + counter);
1182
+ if (countChangedFn !== undefined && countChangedFn !== null) {
1183
+ countChangedFn(description, counter, 'subscribed');
1184
+ }
1185
+ setGlobalSubscriberCount(description, counter);
1114
1186
  return function () {
1115
1187
  subscription.unsubscribe();
1116
1188
  counter--;
1117
- console.log(description + " subscriptions: " + counter);
1189
+ if (countChangedFn !== undefined && countChangedFn !== null) {
1190
+ countChangedFn(description, counter, 'unsubscribed');
1191
+ }
1192
+ setGlobalSubscriberCount(description, counter);
1118
1193
  };
1119
1194
  });
1195
+ }
1196
+ var logOnChange = function (description, count, reason) {
1197
+ console.log(description + " subscriptions: " + count + " [" + reason + "]");
1198
+ };
1199
+ var ɵ0 = logOnChange;
1200
+ function getGlobalSubscriberCounts() {
1201
+ var w = window;
1202
+ if (w.__subscriberCounts === undefined || w.__subscriberCounts === null) {
1203
+ w.__subscriberCounts = {};
1204
+ }
1205
+ return w.__subscriberCounts;
1206
+ }
1207
+ function setGlobalSubscriberCount(description, count) {
1208
+ getGlobalSubscriberCounts()[description] = count;
1120
1209
  }
1121
1210
 
1122
1211
  function observeQueryList(queryList, emitCurrentValue) {
@@ -1190,6 +1279,8 @@
1190
1279
  exports.PollingTickerOptions = PollingTickerOptions;
1191
1280
  exports.Refreshable = Refreshable;
1192
1281
  exports.activatedRoutesWithDataProperty = activatedRoutesWithDataProperty;
1282
+ exports.arrayMoveImmutable = arrayMoveImmutable;
1283
+ exports.arrayMoveMutable = arrayMoveMutable;
1193
1284
  exports.calcPercentage = calcPercentage;
1194
1285
  exports.createPadding = createPadding;
1195
1286
  exports.deleteProperties = deleteProperties;
@@ -1230,6 +1321,7 @@
1230
1321
  exports.readFileAsync = readFileAsync;
1231
1322
  exports.routeSnapshotPathFull = routeSnapshotPathFull;
1232
1323
  exports.routeSnapshotPathRelative = routeSnapshotPathRelative;
1324
+ exports.subscriberCount = subscriberCount;
1233
1325
  exports.tapFirst = tapFirst;
1234
1326
  exports.toggleAttribute = toggleAttribute;
1235
1327
  exports.waitOnConditionAsync = waitOnConditionAsync;
@@ -1238,8 +1330,9 @@
1238
1330
  exports.withoutProperties = withoutProperties;
1239
1331
  exports.withoutProperty = withoutProperty;
1240
1332
  exports.wrapIntoObservable = wrapIntoObservable;
1333
+ exports["ɵ0"] = ɵ0;
1241
1334
 
1242
1335
  Object.defineProperty(exports, '__esModule', { value: true });
1243
1336
 
1244
- })));
1337
+ }));
1245
1338
  //# sourceMappingURL=theseam-ui-common-utils.umd.js.map