@elderbyte/ngx-starter 17.11.0-beta → 17.11.0-beta3

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 (325) hide show
  1. package/esm2022/lib/common/enums/elder-enum-translation.service.mjs +4 -4
  2. package/esm2022/lib/common/format/curency-format-util.mjs +43 -0
  3. package/esm2022/lib/common/format/duration-format-util.mjs +44 -0
  4. package/esm2022/lib/common/format/iso-interval-format-util.mjs +109 -0
  5. package/esm2022/lib/common/format/public_api.mjs +4 -1
  6. package/esm2022/lib/common/forms/elder-form-field-control-base.directive.mjs +4 -4
  7. package/esm2022/lib/common/forms/elder-from-field-base.mjs +4 -4
  8. package/esm2022/lib/common/forms/elder-from-field-customizable-base.mjs +4 -4
  9. package/esm2022/lib/common/forms/elder-from-field-entity-base.mjs +4 -4
  10. package/esm2022/lib/common/forms/elder-from-field-multi-entity-base.mjs +4 -4
  11. package/esm2022/lib/common/forms/form-field-base.component.mjs +4 -4
  12. package/esm2022/lib/common/forms/multi-model-base.component.mjs +4 -4
  13. package/esm2022/lib/common/forms/template-composite-control.mjs +4 -4
  14. package/esm2022/lib/common/forms/value-accessor-base.mjs +4 -4
  15. package/esm2022/lib/common/http/http-client-builder.service.mjs +4 -4
  16. package/esm2022/lib/common/http/http-client-pristine.mjs +4 -4
  17. package/esm2022/lib/common/http/transfer/data-transfer-factory.mjs +4 -4
  18. package/esm2022/lib/common/url/elder-router.service.mjs +4 -4
  19. package/esm2022/lib/common/url/elder-url-fragment-params.service.mjs +4 -4
  20. package/esm2022/lib/components/access-denied/elder-access-denied.component.mjs +4 -4
  21. package/esm2022/lib/components/access-denied/elder-access-denied.module.mjs +5 -5
  22. package/esm2022/lib/components/auditing/audited-entity/elder-audited-entity.component.mjs +4 -4
  23. package/esm2022/lib/components/auditing/elder-audit.module.mjs +5 -5
  24. package/esm2022/lib/components/badge/elder-badge/elder-badge.component.mjs +10 -10
  25. package/esm2022/lib/components/badge/elder-badge.directive.mjs +4 -4
  26. package/esm2022/lib/components/badge/elder-badge.module.mjs +5 -5
  27. package/esm2022/lib/components/button-group/elder-button-group/elder-button-group.component.mjs +4 -4
  28. package/esm2022/lib/components/button-group/elder-button-group.module.mjs +5 -5
  29. package/esm2022/lib/components/card-organizer/card-organizer/elder-card-organizer.component.mjs +4 -4
  30. package/esm2022/lib/components/card-organizer/card-organizer/elder-stack-card.directive.mjs +4 -4
  31. package/esm2022/lib/components/card-organizer/card-stack/elder-card-stack.component.mjs +4 -4
  32. package/esm2022/lib/components/card-organizer/elder-card-organizer.module.mjs +5 -5
  33. package/esm2022/lib/components/cards/elder-card/elder-card-header/elder-card-header.component.mjs +4 -4
  34. package/esm2022/lib/components/cards/elder-card/elder-card.component.mjs +19 -19
  35. package/esm2022/lib/components/cards/elder-card/elder-card.module.mjs +5 -5
  36. package/esm2022/lib/components/chips/elder-chip-label.directive.mjs +4 -4
  37. package/esm2022/lib/components/chips/elder-chips.module.mjs +5 -5
  38. package/esm2022/lib/components/connectivity/elder-connectivity.module.mjs +5 -5
  39. package/esm2022/lib/components/connectivity/elder-connectivity.service.mjs +4 -4
  40. package/esm2022/lib/components/connectivity/offline-indicator/elder-offline-indicator.component.mjs +4 -4
  41. package/esm2022/lib/components/containers/elder-containers.module.mjs +5 -5
  42. package/esm2022/lib/components/containers/elder-scroll-container/elder-scroll-container.component.mjs +4 -4
  43. package/esm2022/lib/components/csv/elder-csv-export-btn/elder-csv-export-btn.component.mjs +4 -4
  44. package/esm2022/lib/components/csv/elder-csv-stream-exporter-builder.service.mjs +4 -4
  45. package/esm2022/lib/components/csv/elder-csv.module.mjs +5 -5
  46. package/esm2022/lib/components/currency/elder-currency.module.mjs +5 -5
  47. package/esm2022/lib/components/currency/elder-currency.pipe.mjs +16 -13
  48. package/esm2022/lib/components/data-transfer/elder-data-transfer.module.mjs +5 -5
  49. package/esm2022/lib/components/data-transfer/elder-data-transfer.service.mjs +4 -4
  50. package/esm2022/lib/components/data-transfer/http-data-transfer/http-data-transfer.component.mjs +4 -4
  51. package/esm2022/lib/components/data-transfer/http-data-transfer-aggregate/http-data-transfer-aggregate.component.mjs +4 -4
  52. package/esm2022/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.mjs +4 -4
  53. package/esm2022/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.mjs +4 -4
  54. package/esm2022/lib/components/data-view/base/elder-data-view-base.mjs +4 -4
  55. package/esm2022/lib/components/data-view/common/data-context-state-indicator/data-context-state-indicator.component.mjs +4 -4
  56. package/esm2022/lib/components/data-view/common/elder-data-common.module.mjs +5 -5
  57. package/esm2022/lib/components/data-view/common/elder-data-toolbar/elder-data-toolbar.component.mjs +7 -7
  58. package/esm2022/lib/components/data-view/common/elder-single-sort/elder-single-sort.component.mjs +4 -4
  59. package/esm2022/lib/components/data-view/common/selection/data-context-selection.directive.mjs +4 -4
  60. package/esm2022/lib/components/data-view/common/selection/elder-selection-master-checkbox/elder-selection-master-checkbox.component.mjs +4 -4
  61. package/esm2022/lib/components/data-view/grid/elder-grid/elder-grid.component.mjs +10 -10
  62. package/esm2022/lib/components/data-view/grid/elder-grid.module.mjs +5 -5
  63. package/esm2022/lib/components/data-view/master-detail/elder-detail-dialog/elder-detail-dialog.component.mjs +4 -4
  64. package/esm2022/lib/components/data-view/master-detail/elder-detail.directive.mjs +4 -4
  65. package/esm2022/lib/components/data-view/master-detail/elder-master-activation.directive.mjs +4 -4
  66. package/esm2022/lib/components/data-view/master-detail/elder-master-detail.component.mjs +4 -4
  67. package/esm2022/lib/components/data-view/master-detail/elder-master-detail.module.mjs +5 -5
  68. package/esm2022/lib/components/data-view/master-detail/elder-master-detail.service.mjs +4 -4
  69. package/esm2022/lib/components/data-view/master-detail/elder-master.directive.mjs +4 -4
  70. package/esm2022/lib/components/data-view/simple/elder-simple-selection-view/elder-simple-selection-view.component.mjs +4 -4
  71. package/esm2022/lib/components/data-view/simple/elder-simple-selection-view/elder-simple-selection-view.module.mjs +5 -5
  72. package/esm2022/lib/components/data-view/table/activation/elder-delete-active.directive.mjs +4 -4
  73. package/esm2022/lib/components/data-view/table/activation/elder-table-activation.directive.mjs +4 -4
  74. package/esm2022/lib/components/data-view/table/elder-number-cell.directive.mjs +4 -4
  75. package/esm2022/lib/components/data-view/table/elder-paginator-intl.mjs +4 -4
  76. package/esm2022/lib/components/data-view/table/elder-table/elder-table-toolbar.directive.mjs +4 -4
  77. package/esm2022/lib/components/data-view/table/elder-table/elder-table.component.mjs +4 -4
  78. package/esm2022/lib/components/data-view/table/elder-table-column.directive.mjs +4 -4
  79. package/esm2022/lib/components/data-view/table/elder-table-extension.directive.mjs +4 -4
  80. package/esm2022/lib/components/data-view/table/elder-table-root.directive.mjs +4 -4
  81. package/esm2022/lib/components/data-view/table/elder-table-row.directive.mjs +4 -4
  82. package/esm2022/lib/components/data-view/table/elder-table-sort.directive.mjs +4 -4
  83. package/esm2022/lib/components/data-view/table/elder-table.module.mjs +5 -5
  84. package/esm2022/lib/components/data-view/table/model/elder-table-model.mjs +4 -4
  85. package/esm2022/lib/components/dialogs/confirm-dialog/elder-confirm-dialog.component.mjs +4 -4
  86. package/esm2022/lib/components/dialogs/elder-dialog.module.mjs +5 -5
  87. package/esm2022/lib/components/dialogs/elder-dialog.service.mjs +4 -4
  88. package/esm2022/lib/components/dialogs/question-dialog/elder-question-dialog.component.mjs +4 -4
  89. package/esm2022/lib/components/dialogs/selection-dialog/elder-selection-dialog/elder-selection-dialog.component.mjs +4 -4
  90. package/esm2022/lib/components/dialogs/selection-dialog/elder-selection-dialog.directive.mjs +4 -4
  91. package/esm2022/lib/components/errors/elder-error.module.mjs +5 -5
  92. package/esm2022/lib/components/errors/exception-detail/elder-exception-detail.component.mjs +4 -4
  93. package/esm2022/lib/components/expand-toggle-button/elder-expand-toggle-button.component.mjs +4 -4
  94. package/esm2022/lib/components/expand-toggle-button/elder-expand-toggle-button.module.mjs +5 -5
  95. package/esm2022/lib/components/files/blob-viewer/elder-blob-viewer.component.mjs +4 -4
  96. package/esm2022/lib/components/files/drag-n-drop/elder-drop-zone/elder-drop-zone.component.mjs +4 -4
  97. package/esm2022/lib/components/files/drag-n-drop/global-drag-drop.service.mjs +4 -4
  98. package/esm2022/lib/components/files/elder-file-drop-zone.directive.mjs +4 -4
  99. package/esm2022/lib/components/files/elder-file-select.directive.mjs +4 -4
  100. package/esm2022/lib/components/files/elder-file.module.mjs +5 -5
  101. package/esm2022/lib/components/files/file-select/file-select.component.mjs +4 -4
  102. package/esm2022/lib/components/files/file-upload/file-upload.component.mjs +4 -4
  103. package/esm2022/lib/components/forms/clipboard/elder-clipboard.service.mjs +4 -4
  104. package/esm2022/lib/components/forms/directives/base/elder-class-hostbinding-base.mjs +4 -4
  105. package/esm2022/lib/components/forms/directives/elder-clipboard-put.directive.mjs +4 -4
  106. package/esm2022/lib/components/forms/directives/elder-delayed-focus.directive.mjs +4 -4
  107. package/esm2022/lib/components/forms/directives/elder-form-field-dense.directive.mjs +4 -4
  108. package/esm2022/lib/components/forms/directives/elder-form-field-label.directive.mjs +4 -4
  109. package/esm2022/lib/components/forms/directives/elder-form-field-no-hint.directive.mjs +4 -4
  110. package/esm2022/lib/components/forms/directives/elder-form-field-no-spinner.directive.mjs +4 -4
  111. package/esm2022/lib/components/forms/directives/elder-forms-directives.module.mjs +5 -5
  112. package/esm2022/lib/components/forms/directives/elder-initial-value.directive.mjs +4 -4
  113. package/esm2022/lib/components/forms/directives/elder-input-pattern.directive.mjs +4 -4
  114. package/esm2022/lib/components/forms/directives/elder-key-event.directive.mjs +4 -4
  115. package/esm2022/lib/components/forms/directives/elder-next-focusable.directive.mjs +4 -4
  116. package/esm2022/lib/components/forms/directives/elder-plug-parent-form.directive.mjs +4 -4
  117. package/esm2022/lib/components/forms/directives/elder-stop-event-propagation.directive.mjs +4 -4
  118. package/esm2022/lib/components/forms/directives/elder-tab-focus-trap.directive.mjs +4 -4
  119. package/esm2022/lib/components/forms/directives/elder-touched.directive.mjs +4 -4
  120. package/esm2022/lib/components/forms/directives/elder-triple-state-checkbox.directive.mjs +4 -4
  121. package/esm2022/lib/components/forms/directives/validation/elder-validation-error.directive.mjs +4 -4
  122. package/esm2022/lib/components/forms/directives/validation/strategies/common-validation-message-strategy.mjs +4 -4
  123. package/esm2022/lib/components/forms/directives/validation/strategies/dynamic-validation-message-strategy.mjs +4 -4
  124. package/esm2022/lib/components/forms/directives/validation/validation-message-renderer.service.mjs +4 -4
  125. package/esm2022/lib/components/forms/directives/validation/validators/elder-max.validator.mjs +4 -4
  126. package/esm2022/lib/components/forms/directives/validation/validators/elder-min.validator.mjs +4 -4
  127. package/esm2022/lib/components/forms/directives/validation/validators/elder-multiple-of.validator.mjs +4 -4
  128. package/esm2022/lib/components/forms/directives/validation/validators/elder-required-ignore-zero.validator.mjs +4 -4
  129. package/esm2022/lib/components/forms/elder-forms.module.mjs +5 -5
  130. package/esm2022/lib/components/forms/search/domain/context/search-context.service.mjs +4 -4
  131. package/esm2022/lib/components/forms/search/domain/input/search-input-state.mjs +9 -19
  132. package/esm2022/lib/components/forms/search/domain/url/elder-search-url.directive.mjs +4 -4
  133. package/esm2022/lib/components/forms/search/domain/url/elder-search-url.service.mjs +4 -4
  134. package/esm2022/lib/components/forms/search/elder-search-context.directive.mjs +6 -6
  135. package/esm2022/lib/components/forms/search/elder-search-input.directive.mjs +33 -33
  136. package/esm2022/lib/components/forms/search/elder-search.module.mjs +5 -5
  137. package/esm2022/lib/components/forms/search/filter/default-input-filter-converter.mjs +47 -0
  138. package/esm2022/lib/components/forms/search/filter/include-exclude-input-converter.mjs +25 -53
  139. package/esm2022/lib/components/forms/search/filter/input-filter-converter.mjs +2 -0
  140. package/esm2022/lib/components/forms/search/search-box/elder-search-box.component.mjs +4 -4
  141. package/esm2022/lib/components/forms/search/search-box/elder-search-panel.component.mjs +4 -4
  142. package/esm2022/lib/components/global-search/elder-global-search.component.mjs +4 -4
  143. package/esm2022/lib/components/global-search/elder-global-search.module.mjs +5 -5
  144. package/esm2022/lib/components/global-search/elder-global-search.service.mjs +4 -4
  145. package/esm2022/lib/components/graph/elder-progress-bar/elder-progress-bar.component.mjs +4 -4
  146. package/esm2022/lib/components/graph/elder-progress-bar/elder-progress-bar.module.mjs +5 -5
  147. package/esm2022/lib/components/headers/elder-header/elder-header.component.mjs +4 -4
  148. package/esm2022/lib/components/headers/elder-header.module.mjs +5 -5
  149. package/esm2022/lib/components/http-support/elder-http-client.service.mjs +4 -4
  150. package/esm2022/lib/components/i18n/entities/elder-i18n-entities.module.mjs +5 -5
  151. package/esm2022/lib/components/i18n/entities/elder-localized-input/elder-localized-input.component.mjs +4 -4
  152. package/esm2022/lib/components/i18n/entities/elder-localized-input-dialog/elder-localized-input-dialog.component.mjs +4 -4
  153. package/esm2022/lib/components/i18n/entities/elder-localized-input-dialog.service.mjs +4 -4
  154. package/esm2022/lib/components/i18n/entities/elder-localized-input-table/elder-localized-input-table.component.mjs +4 -4
  155. package/esm2022/lib/components/i18n/entities/elder-localized-text-column.directive.mjs +4 -4
  156. package/esm2022/lib/components/i18n/entities/elder-localized-texts.directive.mjs +4 -4
  157. package/esm2022/lib/components/i18n/entities/picker/i18n-pick-async.pipe.mjs +4 -4
  158. package/esm2022/lib/components/i18n/entities/picker/i18n-pick.pipe.mjs +4 -4
  159. package/esm2022/lib/components/i18n/entities/picker/localisation-picker.service.mjs +4 -4
  160. package/esm2022/lib/components/i18n/language/elder-language-interceptor.mjs +4 -4
  161. package/esm2022/lib/components/i18n/language/elder-language.module.mjs +5 -5
  162. package/esm2022/lib/components/i18n/language/elder-language.service.mjs +4 -4
  163. package/esm2022/lib/components/i18n/language/language-switcher/elder-language-switcher.component.mjs +4 -4
  164. package/esm2022/lib/components/i18n/locales/elder-locales-de-ch.module.mjs +5 -5
  165. package/esm2022/lib/components/iframes/data-view/data-view-iframe/data-view-iframe.component.mjs +4 -4
  166. package/esm2022/lib/components/iframes/data-view/data-view-iframe-adapter.directive.mjs +4 -4
  167. package/esm2022/lib/components/iframes/elder-iframe.module.mjs +5 -5
  168. package/esm2022/lib/components/iframes/iframe-close.directive.mjs +4 -4
  169. package/esm2022/lib/components/iframes/iframe-dialog/iframe-dialog.component.mjs +4 -4
  170. package/esm2022/lib/components/iframes/iframe-host/iframe-host.component.mjs +4 -4
  171. package/esm2022/lib/components/iframes/iframe-side-content/iframe-side-content.component.mjs +4 -4
  172. package/esm2022/lib/components/iframes/iframe.service.mjs +4 -4
  173. package/esm2022/lib/components/infinitescroll/elder-infinite-autocomplete.directive.mjs +4 -4
  174. package/esm2022/lib/components/infinitescroll/elder-infinite-scroll.directive.mjs +4 -4
  175. package/esm2022/lib/components/infinitescroll/elder-infinite-scroll.module.mjs +5 -5
  176. package/esm2022/lib/components/input/autocomplete/elder-autocomplete/elder-suggestion-panel.component.mjs +4 -4
  177. package/esm2022/lib/components/input/autocomplete/elder-autocomplete-many.directive.mjs +4 -4
  178. package/esm2022/lib/components/input/autocomplete/elder-autocomplete.directive.mjs +4 -4
  179. package/esm2022/lib/components/input/autocomplete/elder-autocomplete.module.mjs +5 -5
  180. package/esm2022/lib/components/labels/elder-labels.module.mjs +5 -5
  181. package/esm2022/lib/components/labels/labels-input/labels-input.component.mjs +4 -4
  182. package/esm2022/lib/components/measures/dimensions/dimensions-input/elder-dimensions-input.component.mjs +4 -4
  183. package/esm2022/lib/components/measures/dimensions/validation/elder-required-dimensions.validator.mjs +4 -4
  184. package/esm2022/lib/components/measures/directives/elder-unit-select.directive.mjs +4 -4
  185. package/esm2022/lib/components/measures/elder-measures.module.mjs +9 -9
  186. package/esm2022/lib/components/measures/elder-quantity-transform.pipe.mjs +5 -16
  187. package/esm2022/lib/components/measures/elder-quantity.pipe.mjs +15 -46
  188. package/esm2022/lib/components/measures/elder-unit.service.mjs +4 -4
  189. package/esm2022/lib/components/measures/quantity-input/quantity-form-field/elder-quantity-form-field.component.mjs +4 -4
  190. package/esm2022/lib/components/measures/quantity-input/quantity-input-control/elder-quantity-input-control.component.mjs +8 -10
  191. package/esm2022/lib/components/measures/quantity-input/validation/elder-quantity-range.validator.mjs +4 -4
  192. package/esm2022/lib/components/measures/quantity-input/validation/elder-required-quantity.validator.mjs +4 -4
  193. package/esm2022/lib/components/measures/util/elder-quantity.service.mjs +70 -4
  194. package/esm2022/lib/components/navigation/bread-crumbs/bread-crumbs/elder-bread-crumbs.component.mjs +4 -4
  195. package/esm2022/lib/components/navigation/bread-crumbs/elder-bread-crumbs.module.mjs +5 -5
  196. package/esm2022/lib/components/navigation/nav/elder-nav.module.mjs +5 -5
  197. package/esm2022/lib/components/navigation/nav/nav-group/elder-nav-group.component.mjs +4 -4
  198. package/esm2022/lib/components/navigation/nav/nav-link/elder-nav-link.component.mjs +4 -4
  199. package/esm2022/lib/components/navigation/nav/nav-list/elder-nav-list.component.mjs +4 -4
  200. package/esm2022/lib/components/navigation/toolbar/elder-toolbar-column.directive.mjs +4 -4
  201. package/esm2022/lib/components/navigation/toolbar/elder-toolbar.module.mjs +5 -5
  202. package/esm2022/lib/components/navigation/toolbar/elder-toolbar.service.mjs +4 -4
  203. package/esm2022/lib/components/navigation/toolbar/toolbar/elder-toolbar.component.mjs +4 -4
  204. package/esm2022/lib/components/navigation/toolbar/toolbar-title/elder-toolbar-title.component.mjs +4 -4
  205. package/esm2022/lib/components/navigation/toolbar/toolbar-title/elder-toolbar-title.service.mjs +4 -4
  206. package/esm2022/lib/components/overlays/elder-overlay-origin.directive.mjs +4 -4
  207. package/esm2022/lib/components/overlays/elder-overlay-ref.mjs +4 -4
  208. package/esm2022/lib/components/overlays/elder-overlay-trigger.directive.mjs +4 -4
  209. package/esm2022/lib/components/overlays/elder-overlay.component.mjs +4 -4
  210. package/esm2022/lib/components/overlays/elder-overlay.module.mjs +5 -5
  211. package/esm2022/lib/components/panels/card-panel/elder-card-panel.component.mjs +4 -4
  212. package/esm2022/lib/components/panels/elder-dialog-panel/elder-dialog-panel.component.mjs +4 -4
  213. package/esm2022/lib/components/panels/elder-panel.module.mjs +5 -5
  214. package/esm2022/lib/components/panels/flat/elder-panel.component.mjs +4 -4
  215. package/esm2022/lib/components/panels/toggle-panel/elder-toggle-panel-trigger.directive.mjs +4 -4
  216. package/esm2022/lib/components/panels/toggle-panel/elder-toggle-panel.component.mjs +10 -10
  217. package/esm2022/lib/components/scrollbar/elder-scrollbar.directive.mjs +4 -4
  218. package/esm2022/lib/components/scrollbar/elder-scrollbar.module.mjs +5 -5
  219. package/esm2022/lib/components/select/auto/elder-auto-select-first.directive.mjs +4 -4
  220. package/esm2022/lib/components/select/auto/elder-auto-select-first.service.mjs +4 -4
  221. package/esm2022/lib/components/select/auto/elder-auto-select-suggest-first.directive.mjs +4 -4
  222. package/esm2022/lib/components/select/elder-select-base.mjs +4 -4
  223. package/esm2022/lib/components/select/elder-select-chip.directive.mjs +10 -10
  224. package/esm2022/lib/components/select/elder-select-on-tab.directive.mjs +4 -4
  225. package/esm2022/lib/components/select/elder-select-value.directive.mjs +4 -4
  226. package/esm2022/lib/components/select/elder-select.module.mjs +6 -5
  227. package/esm2022/lib/components/select/filter/elder-chip-filter-style-resolver.mjs +10 -10
  228. package/esm2022/lib/components/select/filter/elder-chips-filter.directive.mjs +20 -101
  229. package/esm2022/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.mjs +4 -4
  230. package/esm2022/lib/components/select/filter/include-exclude-selection-model.mjs +108 -0
  231. package/esm2022/lib/components/select/multi/elder-chip-select-option/elder-select-option.component.mjs +4 -4
  232. package/esm2022/lib/components/select/multi/elder-multi-select-base.mjs +4 -4
  233. package/esm2022/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component.mjs +4 -4
  234. package/esm2022/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.mjs +4 -4
  235. package/esm2022/lib/components/select/multi/elder-multi-select-form-field.mjs +4 -4
  236. package/esm2022/lib/components/select/multi/elder-mutli-select-all-directive.mjs +4 -4
  237. package/esm2022/lib/components/select/multi/elder-search-include-exclude.directive.mjs +12 -21
  238. package/esm2022/lib/components/select/popup/selection-model-popup-trigger-adapter.directive.mjs +4 -4
  239. package/esm2022/lib/components/select/popup/selection-model-popup.directive.mjs +4 -4
  240. package/esm2022/lib/components/select/popup/templated-selection-dialog/templated-selection-dialog.component.mjs +4 -4
  241. package/esm2022/lib/components/select/single/elder-clear-select.directive.mjs +4 -4
  242. package/esm2022/lib/components/select/single/elder-select/elder-select.component.mjs +4 -4
  243. package/esm2022/lib/components/select/single/elder-select-form-field.mjs +4 -4
  244. package/esm2022/lib/components/select-chip-list/chip-list-select/elder-chip-list-select.component.mjs +4 -4
  245. package/esm2022/lib/components/select-chip-list/elder-chip-list-select.module.mjs +5 -5
  246. package/esm2022/lib/components/shell/drawers/elder-route-outlet-drawer.service.mjs +4 -4
  247. package/esm2022/lib/components/shell/drawers/elder-router-outlet.service.mjs +4 -4
  248. package/esm2022/lib/components/shell/elder-shell-slot.directive.mjs +4 -4
  249. package/esm2022/lib/components/shell/elder-shell.module.mjs +5 -5
  250. package/esm2022/lib/components/shell/elder-shell.service.mjs +4 -4
  251. package/esm2022/lib/components/shell/header/elder-app-header/elder-app-header.component.mjs +4 -4
  252. package/esm2022/lib/components/shell/shell/elder-shell.component.mjs +13 -13
  253. package/esm2022/lib/components/shell/shell-navigation-toggle/elder-shell-navigation-toggle.component.mjs +4 -4
  254. package/esm2022/lib/components/tabs/elder-tab/elder-tab.directive.mjs +4 -4
  255. package/esm2022/lib/components/tabs/elder-tab-group-routing/elder-tab-group-routing.directive.mjs +4 -4
  256. package/esm2022/lib/components/tabs/elder-tab.module.mjs +5 -5
  257. package/esm2022/lib/components/theme/elder-theme-applier.directive.mjs +4 -4
  258. package/esm2022/lib/components/theme/elder-theme-preference.service.mjs +4 -4
  259. package/esm2022/lib/components/theme/elder-theme-toggle/elder-theme-toggle.component.mjs +4 -4
  260. package/esm2022/lib/components/theme/elder-theme.directive.mjs +4 -4
  261. package/esm2022/lib/components/theme/elder-theme.module.mjs +5 -5
  262. package/esm2022/lib/components/theme/elder-theme.service.mjs +4 -4
  263. package/esm2022/lib/components/time/date-adapters/custom-date-adapter.mjs +4 -4
  264. package/esm2022/lib/components/time/duration/elder-duration-input/elder-duration-input.component.mjs +4 -4
  265. package/esm2022/lib/components/time/elder-date-switcher/elder-date-switcher.component.mjs +4 -4
  266. package/esm2022/lib/components/time/elder-date-time-input/elder-date-time-input.component.mjs +4 -4
  267. package/esm2022/lib/components/time/elder-interval-input/elder-interval-input.component.mjs +4 -4
  268. package/esm2022/lib/components/time/elder-local-date-input/elder-local-date-input.component.mjs +4 -4
  269. package/esm2022/lib/components/time/elder-local-time-input/elder-local-time-input.component.mjs +4 -4
  270. package/esm2022/lib/components/time/elder-time.module.mjs +5 -5
  271. package/esm2022/lib/components/time/period/elder-period-input/elder-period-input.component.mjs +4 -4
  272. package/esm2022/lib/components/time/pipes/to-iso-date-string.pipe.mjs +4 -4
  273. package/esm2022/lib/components/toasts/elder-toast.module.mjs +5 -5
  274. package/esm2022/lib/components/toasts/elder-toast.service.mjs +4 -4
  275. package/esm2022/lib/components/toasts/standard-toast/standard-toast.component.mjs +4 -4
  276. package/esm2022/lib/components/url-fragment/elder-url-fragment.module.mjs +5 -5
  277. package/esm2022/lib/components/url-fragment/url-fragment-switcher/elder-url-fragment-switcher.component.mjs +4 -4
  278. package/esm2022/lib/components/viewers/elder-svg-viewer/elder-svg-viewer.component.mjs +4 -4
  279. package/esm2022/lib/components/viewers/elder-viewers.module.mjs +5 -5
  280. package/esm2022/lib/features/event-source/fetch/reactive-fetch-event-source.service.mjs +4 -4
  281. package/esm2022/lib/features/event-source/standard/elder-event-source.service.mjs +4 -4
  282. package/esm2022/lib/features/kafent/access-token-provider.mjs +4 -4
  283. package/esm2022/lib/features/kafent/kafent-config.mjs +4 -4
  284. package/esm2022/lib/features/kafent/kafent-event-stream.mjs +4 -4
  285. package/esm2022/lib/features/kafent/kafent-event.service.mjs +4 -4
  286. package/esm2022/lib/features/kafent/kafent.module.mjs +5 -5
  287. package/esm2022/lib/features/kafent/sse/kafent-event-stream-sse.service.mjs +4 -4
  288. package/esm2022/lib/pipes/bytes.pipe.mjs +4 -4
  289. package/esm2022/lib/pipes/elder-pipes.module.mjs +11 -11
  290. package/esm2022/lib/pipes/elder-repeat.pipe.mjs +4 -4
  291. package/esm2022/lib/pipes/elder-round.pipe.mjs +4 -4
  292. package/esm2022/lib/pipes/elder-safe-url.pipe.mjs +4 -4
  293. package/esm2022/lib/pipes/elder-truncate.pipe.mjs +4 -4
  294. package/esm2022/lib/pipes/iso-duration.pipe.mjs +8 -26
  295. package/esm2022/lib/pipes/iso-interval-parse.pipe.mjs +4 -4
  296. package/esm2022/lib/pipes/iso-interval.pipe.mjs +24 -73
  297. package/esm2022/lib/pipes/time-ago.pipe.mjs +4 -4
  298. package/esm2022/lib/pipes/time-duration.pipe.mjs +4 -4
  299. package/esm2022/lib/pipes/weight.pipe.mjs +4 -4
  300. package/fesm2022/elderbyte-ngx-starter.mjs +2225 -2080
  301. package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
  302. package/lib/common/format/curency-format-util.d.ts +24 -0
  303. package/lib/common/format/duration-format-util.d.ts +23 -0
  304. package/lib/{components/forms/search/filter/default-input-converter.d.ts → common/format/iso-interval-format-util.d.ts} +13 -11
  305. package/lib/common/format/public_api.d.ts +3 -0
  306. package/lib/components/currency/elder-currency.pipe.d.ts +7 -4
  307. package/lib/components/forms/search/domain/input/search-input-state.d.ts +4 -20
  308. package/lib/components/forms/search/elder-search-input.directive.d.ts +11 -13
  309. package/lib/components/forms/search/filter/default-input-filter-converter.d.ts +31 -0
  310. package/lib/components/forms/search/filter/include-exclude-input-converter.d.ts +13 -29
  311. package/lib/components/forms/search/filter/input-filter-converter.d.ts +16 -0
  312. package/lib/components/measures/elder-quantity.pipe.d.ts +4 -15
  313. package/lib/components/measures/quantity-input/quantity-input-control/elder-quantity-input-control.component.d.ts +2 -4
  314. package/lib/components/measures/util/elder-quantity.service.d.ts +12 -0
  315. package/lib/components/select/elder-select.module.d.ts +1 -0
  316. package/lib/components/select/filter/elder-chip-filter-style-resolver.d.ts +3 -3
  317. package/lib/components/select/filter/elder-chips-filter.directive.d.ts +3 -32
  318. package/lib/components/select/filter/include-exclude-selection-model.d.ts +46 -0
  319. package/lib/components/select/multi/elder-search-include-exclude.directive.d.ts +2 -3
  320. package/lib/pipes/iso-duration.pipe.d.ts +0 -3
  321. package/lib/pipes/iso-interval.pipe.d.ts +5 -12
  322. package/package.json +1 -1
  323. package/esm2022/lib/components/forms/search/filter/default-input-converter.mjs +0 -32
  324. package/esm2022/lib/components/forms/search/filter/input-converter.mjs +0 -2
  325. package/lib/components/forms/search/filter/input-converter.d.ts +0 -7
@@ -0,0 +1,24 @@
1
+ import { CurrencyCode } from '../../components/currency/model/currency-code';
2
+ import { Currency } from '../../components/currency/model/currency';
3
+ export type CurrencyIndication = 'code' | 'symbol' | 'symbol-narrow' | string;
4
+ export declare class CurrencyFormatUtil {
5
+ /***************************************************************************
6
+ * *
7
+ * Public API *
8
+ * *
9
+ **************************************************************************/
10
+ /**
11
+ * @param currency amount and ISO 4217 currency code to format
12
+ * @param locale locale code for formatting rules (e.g. en-US)
13
+ * @param indication determines currency indicator in output (e.g. USD100 vs $100). Will fall back to 'symbol' if missing.
14
+ * @param digitsInfo see DecimalPipe for documentation
15
+ */
16
+ static formatElderCurrency(currency: Currency, locale: string, indication?: CurrencyIndication, digitsInfo?: string): string;
17
+ static determineCurrencySymbol(currencyCode: CurrencyCode, locale: string): string;
18
+ /***************************************************************************
19
+ * *
20
+ * Private methods *
21
+ * *
22
+ **************************************************************************/
23
+ private static determineCurrencyIndicator;
24
+ }
@@ -0,0 +1,23 @@
1
+ import { Duration, Period } from '@js-joda/core';
2
+ import { PeriodDuration } from '../time/period-duration';
3
+ export declare class DurationFormatUtil {
4
+ /***************************************************************************
5
+ * *
6
+ * Public API *
7
+ * *
8
+ **************************************************************************/
9
+ /**
10
+ * Converts any valid input of standard ISO 8601 duration format
11
+ * example input: PT2H10M12.1235675S, output: 2h, 10min, 12s, 124 ms
12
+ *
13
+ * a maximal input looks like this: P3Y6M4DT12H30M5S although
14
+ * all arguments except P are optional, decimal numbers allowed
15
+ */
16
+ static formatDuration(value: string | Duration | Period | PeriodDuration, format?: string): string;
17
+ /***************************************************************************
18
+ * *
19
+ * Private methods *
20
+ * *
21
+ **************************************************************************/
22
+ private static toPeriodDuration;
23
+ }
@@ -1,20 +1,22 @@
1
- import { InputConverter } from './input-converter';
2
- import { InputValue } from '../domain/input/input-value';
3
- import { Filter } from '../../../../common/data/filters/filter';
4
- export default class DefaultInputConverter implements InputConverter {
5
- readonly queryKey: string;
1
+ import { Interval } from '../time/interval';
2
+ import { ZoneId } from '@js-joda/core';
3
+ export declare class IsoIntervalFormatUtil {
6
4
  /***************************************************************************
7
5
  * *
8
- * Static Builders *
6
+ * Public API *
9
7
  * *
10
8
  **************************************************************************/
11
- static of(queryKey: string): DefaultInputConverter;
9
+ static formatIsoInterval(value: string | Interval, timezone: string | ZoneId, locale: string, format?: string, formatEnd?: string): string | null;
12
10
  /***************************************************************************
13
11
  * *
14
- * Constructors *
12
+ * Private methods *
15
13
  * *
16
14
  **************************************************************************/
17
- private constructor();
18
- convertToFilters(inputValue: InputValue): Filter[];
19
- convertToValue(filters: Filter[]): InputValue;
15
+ private static determineDisplayMode;
16
+ private static formatSubDay;
17
+ private static formatFullDays;
18
+ private static formatDetailedInterval;
19
+ private static formatInstant;
20
+ private static formatDate;
21
+ private static isPartialDay;
20
22
  }
@@ -1,2 +1,5 @@
1
1
  export * from './bytes-per-second-format';
2
2
  export * from './bytes-format';
3
+ export * from './curency-format-util';
4
+ export * from './iso-interval-format-util';
5
+ export * from './duration-format-util';
@@ -1,21 +1,24 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { CurrencyPipe } from '@angular/common';
3
2
  import { Currency } from './model/currency';
3
+ import { CurrencyIndication } from '../../common/format/curency-format-util';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ElderCurrencyPipe implements PipeTransform {
6
- private readonly currencyPipe;
6
+ private _locale;
7
7
  /***************************************************************************
8
8
  * *
9
9
  * Constructor *
10
10
  * *
11
11
  **************************************************************************/
12
- constructor(currencyPipe: CurrencyPipe);
12
+ constructor(_locale: string);
13
13
  /***************************************************************************
14
14
  * *
15
15
  * Public API *
16
16
  * *
17
17
  **************************************************************************/
18
- transform(currency: Currency, display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean, digitsInfo?: string, locale?: string): string;
18
+ /**
19
+ * @see formatElderCurrency
20
+ */
21
+ transform(currency: Currency, display?: CurrencyIndication, digitsInfo?: string, locale?: string): string;
19
22
  static ɵfac: i0.ɵɵFactoryDeclaration<ElderCurrencyPipe, never>;
20
23
  static ɵpipe: i0.ɵɵPipeDeclaration<ElderCurrencyPipe, "elderCurrency", true>;
21
24
  }
@@ -4,17 +4,9 @@ import { Filter } from '../../../../../common/data/filters/filter';
4
4
  */
5
5
  export declare class SearchInputState {
6
6
  /**
7
- * attribute The name name
7
+ * attribute The name
8
8
  */
9
9
  readonly attribute: string;
10
- /**
11
- * queryKey The query key
12
- */
13
- readonly queryKey: string;
14
- /**
15
- * queryValue The query value as string. Supports multi string value.
16
- */
17
- readonly queryValue: string | string[] | null;
18
10
  /**
19
11
  * value of the input
20
12
  */
@@ -27,7 +19,7 @@ export declare class SearchInputState {
27
19
  * Was the input changed by a user interaction
28
20
  */
29
21
  readonly userEvent: boolean;
30
- static of(attribute: string, queryKey: string, queryValue: string | string[] | null, filters: Filter[], pristine: boolean, userEvent: boolean): SearchInputState;
22
+ static of(attribute: string, filters: Filter[], pristine: boolean, userEvent: boolean): SearchInputState;
31
23
  static unknown(): SearchInputState;
32
24
  /***************************************************************************
33
25
  * *
@@ -36,17 +28,9 @@ export declare class SearchInputState {
36
28
  **************************************************************************/
37
29
  constructor(
38
30
  /**
39
- * attribute The name name
31
+ * attribute The name
40
32
  */
41
33
  attribute: string,
42
- /**
43
- * queryKey The query key
44
- */
45
- queryKey: string,
46
- /**
47
- * queryValue The query value as string. Supports multi string value.
48
- */
49
- queryValue: string | string[] | null,
50
34
  /**
51
35
  * value of the input
52
36
  */
@@ -83,5 +67,5 @@ export declare class SearchInputState {
83
67
  * Public Api *
84
68
  * *
85
69
  **************************************************************************/
86
- withQueryValue(value: string | string[] | null, pristine?: boolean): SearchInputState;
70
+ withFilter(filter: Filter, pristine?: boolean): SearchInputState;
87
71
  }
@@ -6,7 +6,7 @@ import { SearchInput } from './domain/input/search-input';
6
6
  import { SearchInputState } from './domain/input/search-input-state';
7
7
  import { LocalPagedDataSource } from '../../../common/data/datasource/local/local-paged-data-source';
8
8
  import { BooleanInput } from '@angular/cdk/coercion';
9
- import { InputConverter } from './filter/input-converter';
9
+ import { InputFilterConverter } from './filter/input-filter-converter';
10
10
  import { Filter } from '../../../common/data/filters/filter';
11
11
  import * as i0 from "@angular/core";
12
12
  /**
@@ -43,18 +43,6 @@ export declare class ElderSearchInputDirective implements SearchInput, OnInit, A
43
43
  private _extractedName;
44
44
  private readonly destroy$;
45
45
  private readonly log;
46
- /***************************************************************************
47
- * *
48
- * Properties *
49
- * *
50
- **************************************************************************/
51
- /**
52
- * (Optional) Usually the control name is used, this allows a custom query key
53
- */
54
- set queryKey(value: string);
55
- get queryKey(): string;
56
- get queryKey$(): Observable<string>;
57
- set filterSplitterMeger(inputConverter: InputConverter);
58
46
  /***************************************************************************
59
47
  * *
60
48
  * Constructor *
@@ -74,6 +62,13 @@ export declare class ElderSearchInputDirective implements SearchInput, OnInit, A
74
62
  * Properties *
75
63
  * *
76
64
  **************************************************************************/
65
+ /**
66
+ * (Optional) Usually the control name is used, this allows a custom query key
67
+ */
68
+ set queryKey(value: string);
69
+ get queryKey(): string;
70
+ get queryKey$(): Observable<string>;
71
+ set inputConverter(inputConverter: InputFilterConverter);
77
72
  get initialDone$(): Observable<void>;
78
73
  get state$(): Observable<SearchInputState>;
79
74
  get name(): string;
@@ -97,6 +92,9 @@ export declare class ElderSearchInputDirective implements SearchInput, OnInit, A
97
92
  private get valueChanges$();
98
93
  private buildInputStateObservable;
99
94
  private buildInputState;
95
+ private isFallbackValue;
96
+ private areAllPristine;
97
+ private isPristine;
100
98
  private convertQueryStringToRawModelValue;
101
99
  private convertRawModelValueToQueryString;
102
100
  private checkAndConvertFaultyValuesToNull;
@@ -0,0 +1,31 @@
1
+ import { InputFilterConverter } from './input-filter-converter';
2
+ import { InputValue } from '../domain/input/input-value';
3
+ import { Filter } from '../../../../common/data/filters/filter';
4
+ export default class DefaultInputFilterConverter implements InputFilterConverter {
5
+ private readonly queryKeyProviderFn;
6
+ /***************************************************************************
7
+ * *
8
+ * Static Builders *
9
+ * *
10
+ **************************************************************************/
11
+ static of(queryKeyProviderFn: () => string): DefaultInputFilterConverter;
12
+ /***************************************************************************
13
+ * *
14
+ * Constructors *
15
+ * *
16
+ **************************************************************************/
17
+ private constructor();
18
+ /***************************************************************************
19
+ * *
20
+ * Public API *
21
+ * *
22
+ **************************************************************************/
23
+ convertToFilters(inputValue: InputValue): Filter[];
24
+ convertToValue(filters: Filter[]): InputValue;
25
+ /***************************************************************************
26
+ * *
27
+ * Private methods *
28
+ * *
29
+ **************************************************************************/
30
+ private queryKey;
31
+ }
@@ -1,31 +1,18 @@
1
- import { InputConverter } from './input-converter';
1
+ import { InputFilterConverter } from './input-filter-converter';
2
2
  import { Filter } from '../../../../common/data/filters/filter';
3
3
  import { InputValue } from '../domain/input/input-value';
4
- import { Observable } from 'rxjs';
5
- import { ElderChipFilterEntity } from '../../../select/filter/elder-chips-filter.directive';
6
- export default class IncludeExcludeInputConverter implements InputConverter {
7
- readonly queryKey: string;
8
- private includeSuffix;
9
- private excludeSuffix;
10
- /***************************************************************************
11
- * *
12
- * Fields *
13
- * *
14
- **************************************************************************/
15
- private readonly selections$;
16
- private readonly _mergedSelections$;
17
- /***************************************************************************
18
- * *
19
- * Static Builders *
20
- * *
21
- **************************************************************************/
22
- static from(queryKey: string, includeSuffix: string, excludeSuffix: string): IncludeExcludeInputConverter;
4
+ import { IncludeExcludeSelectionModel } from '../../../select/filter/include-exclude-selection-model';
5
+ export default class IncludeExcludeInputConverter implements InputFilterConverter {
6
+ private readonly selectionModel;
7
+ private readonly queryKey;
8
+ private readonly includeSuffix;
9
+ private readonly excludeSuffix;
23
10
  /***************************************************************************
24
11
  * *
25
12
  * Constructors *
26
13
  * *
27
14
  **************************************************************************/
28
- private constructor();
15
+ constructor(selectionModel: IncludeExcludeSelectionModel, queryKey: string, includeSuffix: string, excludeSuffix: string);
29
16
  /***************************************************************************
30
17
  * *
31
18
  * Public API *
@@ -35,13 +22,11 @@ export default class IncludeExcludeInputConverter implements InputConverter {
35
22
  convertToFilters(inputValue: InputValue): Filter[];
36
23
  /***************************************************************************
37
24
  * *
38
- * Properties *
25
+ * Private Properties *
39
26
  * *
40
27
  **************************************************************************/
41
- set selection(selection: Map<string, ElderChipFilterEntity>);
42
- get mergedSelections$(): Observable<Map<string, ElderChipFilterEntity>>;
43
- get includeQueryKey(): string;
44
- get excludeQueryKey(): string;
28
+ private get includeQueryKey();
29
+ private get excludeQueryKey();
45
30
  /***************************************************************************
46
31
  * *
47
32
  * Private Methods *
@@ -52,9 +37,6 @@ export default class IncludeExcludeInputConverter implements InputConverter {
52
37
  private flattenFilterValues;
53
38
  private replaceEmptyArrayWithNull;
54
39
  private validateArrayAndReturn;
55
- private isIncluded;
56
- private isExcluded;
57
- private addAllSelections;
58
40
  /***************************************************************************
59
41
  * *
60
42
  * Split *
@@ -73,6 +55,8 @@ export default class IncludeExcludeInputConverter implements InputConverter {
73
55
  * *
74
56
  **************************************************************************/
75
57
  private mergeValues;
58
+ private updateSelectionModel;
59
+ private buildNewSelectionStates;
76
60
  private buildMergeIncludeValues;
77
61
  private buildMergeExcludeValues;
78
62
  }
@@ -0,0 +1,16 @@
1
+ import { Filter } from '../../../../common/data/filters/filter';
2
+ import { InputValue } from '../domain/input/input-value';
3
+ export interface InputFilterConverter {
4
+ /**
5
+ * Convert the Input Value to one or more Filters.
6
+ * Multiple Filters are returned in special cases such as include/exclude.
7
+ * @param inputValue
8
+ */
9
+ convertToFilters(inputValue: InputValue): Filter[];
10
+ /**
11
+ * Pick the relevant filters and convert to the InputValue.
12
+ * Usually an Input consumes one filter, but advanced cases can consume more.
13
+ * @param filter
14
+ */
15
+ convertToValue(filter: Filter[]): InputValue;
16
+ }
@@ -1,9 +1,7 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { DecimalPipe } from '@angular/common';
3
2
  import { Quantity } from './model/quantity';
4
3
  import { Unit } from './model/unit';
5
- import { ElderQuantityTransformPipe } from './elder-quantity-transform.pipe';
6
- import { ElderUnitService } from './elder-unit.service';
4
+ import { ElderQuantityService } from './util/elder-quantity.service';
7
5
  import * as i0 from "@angular/core";
8
6
  export interface QuantityPipeOptions {
9
7
  normalize?: boolean;
@@ -12,23 +10,14 @@ export interface QuantityPipeOptions {
12
10
  hideUnit?: boolean;
13
11
  }
14
12
  export declare class ElderQuantityPipe implements PipeTransform {
15
- private readonly unitService;
16
- private _elderQuantityTransformPipe;
17
- private _decimalPipe;
18
- /***************************************************************************
19
- * *
20
- * Fields *
21
- * *
22
- **************************************************************************/
23
- private static readonly EMPTY_STRING;
24
- private static readonly SPACE_STRING;
25
- private static readonly DEFAULT_DIGITS;
13
+ private _locale;
14
+ private readonly quantityService;
26
15
  /***************************************************************************
27
16
  * *
28
17
  * Constructor *
29
18
  * *
30
19
  **************************************************************************/
31
- constructor(unitService: ElderUnitService, _elderQuantityTransformPipe: ElderQuantityTransformPipe, _decimalPipe: DecimalPipe);
20
+ constructor(_locale: string, quantityService: ElderQuantityService);
32
21
  /***************************************************************************
33
22
  * *
34
23
  * Public API *
@@ -6,7 +6,6 @@ import { TranslateService } from '@ngx-translate/core';
6
6
  import { NgControl } from '@angular/forms';
7
7
  import { Observable } from 'rxjs';
8
8
  import { ElderUnitService } from '../../elder-unit.service';
9
- import { DecimalPipe } from '@angular/common';
10
9
  import { MatInput } from '@angular/material/input';
11
10
  import { Unit } from '../../model/unit';
12
11
  import { BooleanInput } from '@angular/cdk/coercion';
@@ -14,7 +13,6 @@ import * as i0 from "@angular/core";
14
13
  export declare class ElderQuantityInputControlComponent extends ElderFormFieldControlBase<Quantity> implements OnInit {
15
14
  ngControl: NgControl;
16
15
  private readonly unitService;
17
- private readonly decimalPipe;
18
16
  /***************************************************************************
19
17
  * *
20
18
  * Fields *
@@ -39,7 +37,7 @@ export declare class ElderQuantityInputControlComponent extends ElderFormFieldCo
39
37
  * Constructor *
40
38
  * *
41
39
  **************************************************************************/
42
- constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, translateService: TranslateService, ngControl: NgControl, unitService: ElderUnitService, decimalPipe: DecimalPipe);
40
+ constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, translateService: TranslateService, ngControl: NgControl, unitService: ElderUnitService);
43
41
  /***************************************************************************
44
42
  * *
45
43
  * Life Cycle *
@@ -74,6 +72,6 @@ export declare class ElderQuantityInputControlComponent extends ElderFormFieldCo
74
72
  * *
75
73
  **************************************************************************/
76
74
  protected valuesEquals(a: Quantity, b: Quantity): boolean;
77
- static ɵfac: i0.ɵɵFactoryDeclaration<ElderQuantityInputControlComponent, [null, null, null, null, { optional: true; self: true; }, null, null]>;
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElderQuantityInputControlComponent, [null, null, null, null, { optional: true; self: true; }, null]>;
78
76
  static ɵcmp: i0.ɵɵComponentDeclaration<ElderQuantityInputControlComponent, "elder-quantity-input", never, { "displayFormat": { "alias": "displayFormat"; "required": false; }; "quantityValue": { "alias": "quantityValue"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; "hideUnit": { "alias": "hideUnit"; "required": false; }; }, { "quantityValueChange": "quantityValueChange"; "unitChange": "unitChange"; }, never, never, true, never>;
79
77
  }
@@ -2,6 +2,7 @@ import { Unit } from '../model/unit';
2
2
  import { Quantity } from '../model/quantity';
3
3
  import { ElderUnitService } from '../elder-unit.service';
4
4
  import { Dimensions } from '../model/dimensions';
5
+ import { QuantityPipeOptions } from '../elder-quantity.pipe';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class ElderQuantityService {
7
8
  private readonly unitService;
@@ -11,6 +12,9 @@ export declare class ElderQuantityService {
11
12
  * *
12
13
  **************************************************************************/
13
14
  private readonly logger;
15
+ private static readonly EMPTY_STRING;
16
+ private static readonly SPACE_STRING;
17
+ private static readonly DEFAULT_DIGITS;
14
18
  private readonly QUANTITY_CACHE_SIZE;
15
19
  private readonly QUANTITY_CACHE;
16
20
  /***************************************************************************
@@ -119,6 +123,8 @@ export declare class ElderQuantityService {
119
123
  * @param quantity
120
124
  */
121
125
  normalize(quantity: Quantity): Quantity;
126
+ transformQuantity(quantity: Quantity, normalize?: boolean, targetUnit?: Unit | string): Quantity;
127
+ formatQuantity(quantity: Quantity, locale: string, normalize?: boolean | QuantityPipeOptions, targetUnit?: Unit | string, digitsInfo?: string): string;
122
128
  /***************************************************************************
123
129
  * *
124
130
  * Private Methods *
@@ -126,6 +132,12 @@ export declare class ElderQuantityService {
126
132
  **************************************************************************/
127
133
  private normalizeInternal;
128
134
  private getQuantityIdentifier;
135
+ /**
136
+ * Adapted from @angular/common number_pipe.ts
137
+ */
138
+ private strToNumber;
139
+ private static determineUserOptions;
140
+ private determineSuffix;
129
141
  static ɵfac: i0.ɵɵFactoryDeclaration<ElderQuantityService, never>;
130
142
  static ɵprov: i0.ɵɵInjectableDeclaration<ElderQuantityService>;
131
143
  }
@@ -56,6 +56,7 @@ export { ElderMultiSelectAllInitialDirective } from './multi/elder-mutli-select-
56
56
  export { ElderAutoSelectSuggestFirstDirective } from './auto/elder-auto-select-suggest-first.directive';
57
57
  export { ElderChipsFilterDirective } from './filter/elder-chips-filter.directive';
58
58
  export { ElderFilterChipTemplate } from './filter/elder-filter-chip-template/elder-filter-chip-template.component';
59
+ export * from './filter/include-exclude-selection-model';
59
60
  export { ElderSearchIncludeExcludeDirective } from './multi/elder-search-include-exclude.directive';
60
61
  export declare class ElderSelectModule {
61
62
  static ɵfac: i0.ɵɵFactoryDeclaration<ElderSelectModule, never>;
@@ -1,5 +1,5 @@
1
1
  import { SelectChipSpec } from '../multi/elder-multi-select-chips/select-chip-spec';
2
- import { ElderChipFilterEntity } from './elder-chips-filter.directive';
2
+ import { IncludeExcludeState } from './include-exclude-selection-model';
3
3
  export default class ElderChipFilterStyleResolver {
4
4
  /***************************************************************************
5
5
  * *
@@ -14,6 +14,6 @@ export default class ElderChipFilterStyleResolver {
14
14
  * Public API *
15
15
  * *
16
16
  **************************************************************************/
17
- resolveChipSpec(filterEntity: ElderChipFilterEntity): SelectChipSpec;
18
- resolveAvatar(filterEntity: ElderChipFilterEntity): string;
17
+ resolveChipSpec(filterEntity: IncludeExcludeState): SelectChipSpec;
18
+ resolveAvatar(filterEntity: IncludeExcludeState): string;
19
19
  }
@@ -1,17 +1,8 @@
1
1
  import { DestroyRef, ViewContainerRef } from '@angular/core';
2
2
  import { ElderMultiSelectChipsComponent } from '../multi/elder-multi-select-chips/elder-multi-select-chips.component';
3
- import { Observable } from 'rxjs';
4
3
  import { ElderSearchInputDirective } from '../../forms/search/elder-search-input.directive';
4
+ import { IncludeExcludeSelectionModel } from './include-exclude-selection-model';
5
5
  import * as i0 from "@angular/core";
6
- export interface ElderChipFilterEntity {
7
- id: string;
8
- selection: ElderChipFilterSelection;
9
- }
10
- export declare enum ElderChipFilterSelection {
11
- NEUTRAL = "NEUTRAL",
12
- INCLUDE = "INCLUDE",
13
- EXCLUDE = "EXCLUDE"
14
- }
15
6
  export declare class ElderChipsFilterDirective<T = any> {
16
7
  readonly elderMultiSelectChips: ElderMultiSelectChipsComponent;
17
8
  readonly elderSearchInput: ElderSearchInputDirective;
@@ -23,32 +14,14 @@ export declare class ElderChipsFilterDirective<T = any> {
23
14
  * *
24
15
  **************************************************************************/
25
16
  private readonly log;
26
- private readonly _selection$;
17
+ readonly selectionModel: IncludeExcludeSelectionModel;
27
18
  private readonly chipStyleResolver;
28
- private readonly initialDone$;
29
- private readonly _includeSuffix$;
30
- private readonly _excludeSuffix$;
31
- /***************************************************************************
32
- * *
33
- * Properties *
34
- * *
35
- **************************************************************************/
36
- set includeSuffix(suffix: string);
37
- set excludeSuffix(suffix: string);
38
19
  /***************************************************************************
39
20
  * *
40
21
  * Constructor *
41
22
  * *
42
23
  **************************************************************************/
43
24
  constructor(elderMultiSelectChips: ElderMultiSelectChipsComponent, elderSearchInput: ElderSearchInputDirective, vcr: ViewContainerRef, destroyRef: DestroyRef);
44
- /***************************************************************************
45
- * *
46
- * Properties *
47
- * *
48
- **************************************************************************/
49
- get selection(): ElderChipFilterEntity[];
50
- get selection$(): Observable<ElderChipFilterEntity[]>;
51
- set selection(listedEntityIds: ElderChipFilterEntity[]);
52
25
  /***************************************************************************
53
26
  * *
54
27
  * Private methods *
@@ -59,10 +32,8 @@ export declare class ElderChipsFilterDirective<T = any> {
59
32
  private resolveChipSpec;
60
33
  private resolveAvatar;
61
34
  private handleChipClick;
62
- private cycleFilterEntitySelection;
63
35
  private findFilterEntityByEntity;
64
36
  private findFilterEntityById;
65
- private updateChipEntities;
66
37
  static ɵfac: i0.ɵɵFactoryDeclaration<ElderChipsFilterDirective<any>, never>;
67
- static ɵdir: i0.ɵɵDirectiveDeclaration<ElderChipsFilterDirective<any>, "[elderChipsFilter]", never, { "includeSuffix": { "alias": "includeSuffix"; "required": false; }; "excludeSuffix": { "alias": "excludeSuffix"; "required": false; }; }, {}, never, never, true, never>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ElderChipsFilterDirective<any>, "[elderChipsFilter]", never, {}, {}, never, never, true, never>;
68
39
  }
@@ -0,0 +1,46 @@
1
+ import { Observable } from 'rxjs';
2
+ export declare class IncludeExcludeState {
3
+ readonly id: string;
4
+ mode: IncludeExcludeMode;
5
+ constructor(id: string, mode: IncludeExcludeMode);
6
+ }
7
+ export declare enum IncludeExcludeMode {
8
+ NEUTRAL = "NEUTRAL",
9
+ INCLUDE = "INCLUDE",
10
+ EXCLUDE = "EXCLUDE"
11
+ }
12
+ export declare class IncludeExcludeSelectionModel {
13
+ /***************************************************************************
14
+ * *
15
+ * Fields *
16
+ * *
17
+ **************************************************************************/
18
+ private readonly log;
19
+ private readonly stateById$;
20
+ /***************************************************************************
21
+ * *
22
+ * Properties *
23
+ * *
24
+ **************************************************************************/
25
+ get selection(): IncludeExcludeState[];
26
+ get selection$(): Observable<IncludeExcludeState[]>;
27
+ /***************************************************************************
28
+ * *
29
+ * Public API *
30
+ * *
31
+ **************************************************************************/
32
+ cycleExisting(id: string): IncludeExcludeState | null;
33
+ initTo(ids: string[], initialMode?: IncludeExcludeMode): void;
34
+ replaceSelection(newStates: IncludeExcludeState[]): void;
35
+ updateState(id: string, mode: IncludeExcludeMode): IncludeExcludeState;
36
+ updateStates(newStates: IncludeExcludeState[]): void;
37
+ isInMode(id: string, mode: IncludeExcludeMode): boolean;
38
+ findStateById(searchedId: string): IncludeExcludeState | null;
39
+ /***************************************************************************
40
+ * *
41
+ * Private methods *
42
+ * *
43
+ **************************************************************************/
44
+ private cycleFilterEntitySelection;
45
+ private toStateMap;
46
+ }
@@ -32,8 +32,7 @@ export declare class ElderSearchIncludeExcludeDirective {
32
32
  * *
33
33
  **************************************************************************/
34
34
  private setupSearchQueryTransforms;
35
- private setupConverter;
36
- private transformSelectionToMap;
35
+ private buildConverter;
37
36
  static ɵfac: i0.ɵɵFactoryDeclaration<ElderSearchIncludeExcludeDirective, never>;
38
- static ɵdir: i0.ɵɵDirectiveDeclaration<ElderSearchIncludeExcludeDirective, "[elderSearchIncludeExclude]", never, { "includeSuffix": { "alias": "includeSuffix"; "required": false; }; "excludeSuffix": { "alias": "excludeSuffix"; "required": false; }; }, {}, never, never, true, never>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ElderSearchIncludeExcludeDirective, "[elderSearchIncludeExclude]", never, { "includeSuffix": { "alias": "includeSuffix"; "required": false; }; "excludeSuffix": { "alias": "excludeSuffix"; "required": true; }; }, {}, never, never, true, never>;
39
38
  }
@@ -1,6 +1,5 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import { Duration, Period } from '@js-joda/core';
3
- import { ElderUnitService } from '../components/measures/elder-unit.service';
4
3
  import { PeriodDuration } from '../common/time/period-duration';
5
4
  import { IsoDurationStr } from '../components/time/duration/iso-duration-str';
6
5
  import * as i0 from "@angular/core";
@@ -12,9 +11,7 @@ import * as i0 from "@angular/core";
12
11
  * all arguments except P are optional, decimal numbers allowed
13
12
  */
14
13
  export declare class IsoDurationPipe implements PipeTransform {
15
- private readonly unitService;
16
14
  private readonly logger;
17
- constructor(unitService: ElderUnitService);
18
15
  /***************************************************************************
19
16
  * *
20
17
  * Public API *