@tilde-nlp/ngx-common 3.0.2 → 4.0.1

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 (236) hide show
  1. package/README.md +2 -0
  2. package/{esm2020 → esm2022}/lib/close-button/close-button.component.mjs +4 -4
  3. package/{esm2020 → esm2022}/lib/close-button/close-button.module.mjs +11 -11
  4. package/{esm2020 → esm2022}/lib/company-product/company-product.component.mjs +4 -4
  5. package/{esm2020 → esm2022}/lib/company-product/company-product.module.mjs +5 -5
  6. package/esm2022/lib/confirmation-modal/confirmation-modal.component.mjs +25 -0
  7. package/esm2022/lib/confirmation-modal/confirmation-modal.module.mjs +21 -0
  8. package/esm2022/lib/confirmation-modal/index.mjs +6 -0
  9. package/esm2022/lib/confirmation-modal/models/confirmation-body.model.mjs +2 -0
  10. package/esm2022/lib/confirmation-modal/models/confirmation.enum.mjs +6 -0
  11. package/esm2022/lib/confirmation-modal/services/confirmation.service.mjs +25 -0
  12. package/esm2022/lib/confirmation-modal/services/index.mjs +2 -0
  13. package/{esm2020 → esm2022}/lib/directives/click-outside/click-outside.directive.mjs +4 -4
  14. package/{esm2020 → esm2022}/lib/directives/click-outside/click-outside.module.mjs +5 -5
  15. package/esm2022/lib/directives/drag-and-drop/drag-and-drop.directive.mjs +62 -0
  16. package/esm2022/lib/directives/drag-and-drop/drag-and-drop.module.mjs +24 -0
  17. package/esm2022/lib/directives/drag-and-drop/index.mjs +3 -0
  18. package/esm2022/lib/directives/index.mjs +4 -0
  19. package/esm2022/lib/directives/mat-button-loading/index.mjs +3 -0
  20. package/esm2022/lib/directives/mat-button-loading/mat-button-loading.directive.mjs +65 -0
  21. package/esm2022/lib/directives/mat-button-loading/mat-button-loading.module.mjs +20 -0
  22. package/esm2022/lib/file-upload/file-upload.component.mjs +107 -0
  23. package/esm2022/lib/file-upload/file-upload.module.mjs +42 -0
  24. package/esm2022/lib/file-upload/index.mjs +4 -0
  25. package/esm2022/lib/file-upload/models/file-upload-error-type.enum.mjs +8 -0
  26. package/esm2022/lib/file-upload/models/file-upload-error.model.mjs +2 -0
  27. package/esm2022/lib/file-upload/models/index.mjs +3 -0
  28. package/esm2022/lib/filter-bar/filter-bar.component.mjs +146 -0
  29. package/esm2022/lib/filter-bar/filter-bar.module.mjs +71 -0
  30. package/esm2022/lib/filter-bar/index.mjs +4 -0
  31. package/esm2022/lib/filter-bar/models/filter-bar-change-event.model.mjs +2 -0
  32. package/esm2022/lib/filter-bar/models/filter-bar-filter-item.model.mjs +2 -0
  33. package/esm2022/lib/filter-bar/models/filter-bar-filter.model.mjs +2 -0
  34. package/esm2022/lib/filter-bar/models/filter-bar-settings.model.mjs +2 -0
  35. package/esm2022/lib/filter-bar/models/index.mjs +4 -0
  36. package/{esm2020 → esm2022}/lib/footer/footer.component.mjs +4 -4
  37. package/{esm2020 → esm2022}/lib/footer/footer.module.mjs +11 -11
  38. package/esm2022/lib/helpers/html-element-parse.helper.mjs +15 -0
  39. package/esm2022/lib/helpers/index.mjs +4 -0
  40. package/{esm2020/lib/helpers/missing-translation-helper.mjs → esm2022/lib/helpers/missing-translation.helper.mjs} +1 -1
  41. package/esm2022/lib/helpers/save-file.helper.mjs +11 -0
  42. package/{esm2020 → esm2022}/lib/inline-message/inline-message.component.mjs +4 -4
  43. package/{esm2020 → esm2022}/lib/inline-message/inline-message.module.mjs +9 -9
  44. package/esm2022/lib/multi-functional-table/constants/disable-export-attribute-name.const.mjs +2 -0
  45. package/esm2022/lib/multi-functional-table/constants/index.mjs +2 -0
  46. package/esm2022/lib/multi-functional-table/index.mjs +5 -0
  47. package/esm2022/lib/multi-functional-table/models/batch-config.model.mjs +2 -0
  48. package/esm2022/lib/multi-functional-table/models/column-config.model.mjs +2 -0
  49. package/esm2022/lib/multi-functional-table/models/column-select-config.model.mjs +2 -0
  50. package/esm2022/lib/multi-functional-table/models/export-config.model.mjs +2 -0
  51. package/esm2022/lib/multi-functional-table/models/export-format.enum.mjs +5 -0
  52. package/esm2022/lib/multi-functional-table/models/filter-config.model.mjs +2 -0
  53. package/esm2022/lib/multi-functional-table/models/index.mjs +8 -0
  54. package/esm2022/lib/multi-functional-table/models/multi-functional-table-config.model.mjs +2 -0
  55. package/esm2022/lib/multi-functional-table/models/no-data-row-config.model.mjs +2 -0
  56. package/esm2022/lib/multi-functional-table/models/selected-column-local-storage-config.model.mjs +2 -0
  57. package/esm2022/lib/multi-functional-table/multi-functional-table.component.mjs +225 -0
  58. package/esm2022/lib/multi-functional-table/multi-functional-table.module.mjs +64 -0
  59. package/esm2022/lib/notification-message/notification-message.component.mjs +51 -0
  60. package/{esm2020 → esm2022}/lib/notification-message/notification-message.module.mjs +15 -15
  61. package/esm2022/lib/pipes/date-ago/date-ago.module.mjs +28 -0
  62. package/esm2022/lib/pipes/date-ago/date-ago.pipe.mjs +114 -0
  63. package/esm2022/lib/pipes/date-ago/index.mjs +3 -0
  64. package/esm2022/lib/pipes/date-ago/models/date-ago-interval.model.mjs +2 -0
  65. package/esm2022/lib/pipes/date-ago/models/date-ago-settings.model.mjs +2 -0
  66. package/esm2022/lib/pipes/date-ago/models/date-ago-settings.token.mjs +2 -0
  67. package/esm2022/lib/pipes/date-ago/models/date-ago.model.mjs +2 -0
  68. package/esm2022/lib/pipes/date-ago/models/index.mjs +5 -0
  69. package/{esm2020 → esm2022}/lib/pipes/filter-with-highlight/filter-with-highlight.module.mjs +5 -5
  70. package/{esm2020 → esm2022}/lib/pipes/filter-with-highlight/filter-with-highlight.pipe.mjs +4 -4
  71. package/esm2022/lib/pipes/index.mjs +5 -0
  72. package/{esm2020 → esm2022}/lib/pipes/sort-translations/sort-translations.module.mjs +5 -5
  73. package/{esm2020 → esm2022}/lib/pipes/sort-translations/sort-translations.pipe.mjs +4 -4
  74. package/esm2022/lib/pipes/sort-translations-by-property/index.mjs +3 -0
  75. package/esm2022/lib/pipes/sort-translations-by-property/sort-translations-by-property.module.mjs +18 -0
  76. package/esm2022/lib/pipes/sort-translations-by-property/sort-translations-by-property.pipe.mjs +40 -0
  77. package/{esm2020 → esm2022}/lib/plausible/plausible-event.directive.mjs +4 -4
  78. package/{esm2020 → esm2022}/lib/plausible/plausible.module.mjs +5 -5
  79. package/{esm2020 → esm2022}/lib/services/dom.service.mjs +4 -4
  80. package/{esm2020 → esm2022}/lib/services/icon.service.mjs +4 -4
  81. package/{esm2020 → esm2022}/lib/tld-loader/tld-loader.component.mjs +4 -4
  82. package/{esm2020 → esm2022}/lib/tld-loader/tld-loader.module.mjs +5 -5
  83. package/esm2022/public-api.mjs +19 -0
  84. package/fesm2022/tilde-nlp-ngx-common.mjs +1712 -0
  85. package/fesm2022/tilde-nlp-ngx-common.mjs.map +1 -0
  86. package/lib/close-button/close-button.component.d.ts +1 -1
  87. package/lib/company-product/company-product.component.d.ts +1 -1
  88. package/lib/confirmation-modal/confirmation-modal.component.d.ts +12 -0
  89. package/lib/confirmation-modal/confirmation-modal.module.d.ts +11 -0
  90. package/lib/confirmation-modal/index.d.ts +5 -0
  91. package/lib/confirmation-modal/models/confirmation-body.model.d.ts +8 -0
  92. package/lib/confirmation-modal/models/confirmation.enum.d.ts +4 -0
  93. package/lib/confirmation-modal/services/confirmation.service.d.ts +12 -0
  94. package/lib/confirmation-modal/services/index.d.ts +1 -0
  95. package/lib/directives/drag-and-drop/drag-and-drop.directive.d.ts +14 -0
  96. package/lib/directives/drag-and-drop/drag-and-drop.module.d.ts +8 -0
  97. package/lib/directives/drag-and-drop/index.d.ts +2 -0
  98. package/lib/directives/index.d.ts +2 -0
  99. package/lib/directives/mat-button-loading/index.d.ts +2 -0
  100. package/lib/directives/mat-button-loading/mat-button-loading.directive.d.ts +18 -0
  101. package/lib/directives/mat-button-loading/mat-button-loading.module.d.ts +8 -0
  102. package/lib/file-upload/file-upload.component.d.ts +29 -0
  103. package/lib/file-upload/file-upload.module.d.ts +13 -0
  104. package/lib/file-upload/index.d.ts +3 -0
  105. package/lib/file-upload/models/file-upload-error-type.enum.d.ts +6 -0
  106. package/lib/file-upload/models/file-upload-error.model.d.ts +6 -0
  107. package/lib/file-upload/models/index.d.ts +2 -0
  108. package/lib/filter-bar/filter-bar.component.d.ts +54 -0
  109. package/lib/filter-bar/filter-bar.module.d.ts +19 -0
  110. package/lib/filter-bar/index.d.ts +3 -0
  111. package/lib/filter-bar/models/filter-bar-change-event.model.d.ts +6 -0
  112. package/lib/filter-bar/models/filter-bar-filter-item.model.d.ts +4 -0
  113. package/lib/filter-bar/models/filter-bar-filter.model.d.ts +6 -0
  114. package/lib/filter-bar/models/filter-bar-settings.model.d.ts +19 -0
  115. package/lib/filter-bar/models/index.d.ts +3 -0
  116. package/lib/footer/footer.component.d.ts +1 -1
  117. package/lib/helpers/html-element-parse.helper.d.ts +3 -0
  118. package/lib/helpers/index.d.ts +3 -1
  119. package/lib/helpers/save-file.helper.d.ts +3 -0
  120. package/lib/inline-message/inline-message.component.d.ts +1 -1
  121. package/lib/multi-functional-table/constants/disable-export-attribute-name.const.d.ts +1 -0
  122. package/lib/multi-functional-table/constants/index.d.ts +1 -0
  123. package/lib/multi-functional-table/index.d.ts +4 -0
  124. package/lib/multi-functional-table/models/batch-config.model.d.ts +4 -0
  125. package/lib/multi-functional-table/models/column-config.model.d.ts +18 -0
  126. package/lib/multi-functional-table/models/column-select-config.model.d.ts +14 -0
  127. package/lib/multi-functional-table/models/export-config.model.d.ts +9 -0
  128. package/lib/multi-functional-table/models/export-format.enum.d.ts +3 -0
  129. package/lib/multi-functional-table/models/filter-config.model.d.ts +6 -0
  130. package/lib/multi-functional-table/models/index.d.ts +7 -0
  131. package/lib/multi-functional-table/models/multi-functional-table-config.model.d.ts +36 -0
  132. package/lib/multi-functional-table/models/no-data-row-config.model.d.ts +9 -0
  133. package/lib/multi-functional-table/models/selected-column-local-storage-config.model.d.ts +20 -0
  134. package/lib/multi-functional-table/multi-functional-table.component.d.ts +65 -0
  135. package/lib/multi-functional-table/multi-functional-table.module.d.ts +18 -0
  136. package/lib/notification-message/notification-message.component.d.ts +1 -1
  137. package/lib/pipes/date-ago/date-ago.module.d.ts +9 -0
  138. package/lib/pipes/date-ago/date-ago.pipe.d.ts +20 -0
  139. package/lib/pipes/date-ago/index.d.ts +2 -0
  140. package/lib/pipes/date-ago/models/date-ago-interval.model.d.ts +5 -0
  141. package/lib/pipes/date-ago/models/date-ago-settings.model.d.ts +26 -0
  142. package/lib/pipes/date-ago/models/date-ago-settings.token.d.ts +1 -0
  143. package/lib/pipes/date-ago/models/date-ago.model.d.ts +4 -0
  144. package/lib/pipes/date-ago/models/index.d.ts +4 -0
  145. package/lib/pipes/index.d.ts +2 -0
  146. package/lib/pipes/sort-translations-by-property/index.d.ts +2 -0
  147. package/lib/pipes/sort-translations-by-property/sort-translations-by-property.module.d.ts +8 -0
  148. package/lib/pipes/sort-translations-by-property/sort-translations-by-property.pipe.d.ts +15 -0
  149. package/lib/plausible/plausible-event.directive.d.ts +1 -1
  150. package/package.json +8 -14
  151. package/public-api.d.ts +4 -0
  152. package/styles/components/buttons.scss +19 -0
  153. package/styles/components/dialogs.scss +18 -0
  154. package/styles/components/icons.scss +16 -4
  155. package/styles/fonts/inter/inter.scss +567 -0
  156. package/styles/fonts/inter/woff/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2 +0 -0
  157. package/styles/fonts/inter/woff/inter-cyrillic-ext.woff2 +0 -0
  158. package/styles/fonts/inter/woff/inter-cyrillic.woff2 +0 -0
  159. package/styles/fonts/inter/woff/inter-greek-ext.woff2 +0 -0
  160. package/styles/fonts/inter/woff/inter-greek.woff2 +0 -0
  161. package/styles/fonts/inter/woff/inter-latin-ext.woff2 +0 -0
  162. package/styles/fonts/inter/woff/inter-latin.woff2 +0 -0
  163. package/styles/fonts/inter/woff/inter-vietnamese.woff2 +0 -0
  164. package/styles/fonts/material-icons/material-icons.scss +40 -0
  165. package/styles/fonts/material-icons/woff/material-icons-outlined.woff2 +0 -0
  166. package/styles/fonts/material-icons/woff/material-icons.woff2 +0 -0
  167. package/styles/fonts/roboto/roboto.scss +252 -0
  168. package/styles/fonts/roboto/woff/roboto-cyrillic-300.woff2 +0 -0
  169. package/styles/fonts/roboto/woff/roboto-cyrillic-400.woff2 +0 -0
  170. package/styles/fonts/roboto/woff/roboto-cyrillic-500.woff2 +0 -0
  171. package/styles/fonts/roboto/woff/roboto-cyrillic-700.woff2 +0 -0
  172. package/styles/fonts/roboto/woff/roboto-cyrillic-ext-300.woff2 +0 -0
  173. package/styles/fonts/roboto/woff/roboto-cyrillic-ext-400.woff2 +0 -0
  174. package/styles/fonts/roboto/woff/roboto-cyrillic-ext-500.woff2 +0 -0
  175. package/styles/fonts/roboto/woff/roboto-cyrillic-ext-700.woff2 +0 -0
  176. package/styles/fonts/roboto/woff/roboto-greek-300.woff2 +0 -0
  177. package/styles/fonts/roboto/woff/roboto-greek-400.woff2 +0 -0
  178. package/styles/fonts/roboto/woff/roboto-greek-500.woff2 +0 -0
  179. package/styles/fonts/roboto/woff/roboto-greek-700.woff2 +0 -0
  180. package/styles/fonts/roboto/woff/roboto-greek-ext-300.woff2 +0 -0
  181. package/styles/fonts/roboto/woff/roboto-greek-ext-400.woff2 +0 -0
  182. package/styles/fonts/roboto/woff/roboto-greek-ext-500.woff2 +0 -0
  183. package/styles/fonts/roboto/woff/roboto-greek-ext-700.woff2 +0 -0
  184. package/styles/fonts/roboto/woff/roboto-latin-300.woff2 +0 -0
  185. package/styles/fonts/roboto/woff/roboto-latin-400.woff2 +0 -0
  186. package/styles/fonts/roboto/woff/roboto-latin-500.woff2 +0 -0
  187. package/styles/fonts/roboto/woff/roboto-latin-700.woff2 +0 -0
  188. package/styles/fonts/roboto/woff/roboto-latin-ext-300.woff2 +0 -0
  189. package/styles/fonts/roboto/woff/roboto-latin-ext-400.woff2 +0 -0
  190. package/styles/fonts/roboto/woff/roboto-latin-ext-500.woff2 +0 -0
  191. package/styles/fonts/roboto/woff/roboto-latin-ext-700.woff2 +0 -0
  192. package/styles/fonts/roboto/woff/roboto-vietnamese-300.woff2 +0 -0
  193. package/styles/fonts/roboto/woff/roboto-vietnamese-400.woff2 +0 -0
  194. package/styles/fonts/roboto/woff/roboto-vietnamese-500.woff2 +0 -0
  195. package/styles/fonts/roboto/woff/roboto-vietnamese-700.woff2 +0 -0
  196. package/styles/mixins/material-overrides/mat-button-overrides.mixin.scss +13 -3
  197. package/styles/mixins/material-overrides/mat-form-field-overrides.mixin.scss +1 -0
  198. package/styles/mixins/material-overrides/mat-progress-bar-overrides.mixin.scss +15 -0
  199. package/styles/mixins/material-overrides/material-overrides.mixin.scss +2 -0
  200. package/styles/mixins/tld-all-mixins.mixin.scss +9 -1
  201. package/styles/tilde-fonts.scss +2 -2
  202. package/styles/tilde-style.scss +1 -0
  203. package/styles/variables/colors.variables.scss +1 -0
  204. package/esm2020/lib/directives/index.mjs +0 -2
  205. package/esm2020/lib/helpers/index.mjs +0 -2
  206. package/esm2020/lib/notification-message/notification-message.component.mjs +0 -51
  207. package/esm2020/lib/pipes/index.mjs +0 -3
  208. package/esm2020/public-api.mjs +0 -15
  209. package/fesm2015/tilde-nlp-ngx-common.mjs +0 -676
  210. package/fesm2015/tilde-nlp-ngx-common.mjs.map +0 -1
  211. package/fesm2020/tilde-nlp-ngx-common.mjs +0 -675
  212. package/fesm2020/tilde-nlp-ngx-common.mjs.map +0 -1
  213. /package/{esm2020 → esm2022}/lib/close-button/index.mjs +0 -0
  214. /package/{esm2020 → esm2022}/lib/company-product/index.mjs +0 -0
  215. /package/{esm2020 → esm2022}/lib/directives/click-outside/index.mjs +0 -0
  216. /package/{esm2020 → esm2022}/lib/footer/index.mjs +0 -0
  217. /package/{esm2020 → esm2022}/lib/inline-message/index.mjs +0 -0
  218. /package/{esm2020 → esm2022}/lib/inline-message/models/index.mjs +0 -0
  219. /package/{esm2020 → esm2022}/lib/inline-message/models/inline-message-icon-position.enum.mjs +0 -0
  220. /package/{esm2020 → esm2022}/lib/inline-message/models/inline-message-type.enum.mjs +0 -0
  221. /package/{esm2020 → esm2022}/lib/inline-message/models/inline-message.model.mjs +0 -0
  222. /package/{esm2020 → esm2022}/lib/notification-message/enums/index.mjs +0 -0
  223. /package/{esm2020 → esm2022}/lib/notification-message/enums/notification-message-type.enum.mjs +0 -0
  224. /package/{esm2020 → esm2022}/lib/notification-message/index.mjs +0 -0
  225. /package/{esm2020 → esm2022}/lib/notification-message/interfaces/index.mjs +0 -0
  226. /package/{esm2020 → esm2022}/lib/notification-message/interfaces/notification-message.model.mjs +0 -0
  227. /package/{esm2020 → esm2022}/lib/pipes/filter-with-highlight/index.mjs +0 -0
  228. /package/{esm2020 → esm2022}/lib/pipes/sort-translations/index.mjs +0 -0
  229. /package/{esm2020 → esm2022}/lib/plausible/index.mjs +0 -0
  230. /package/{esm2020 → esm2022}/lib/plausible/models/index.mjs +0 -0
  231. /package/{esm2020 → esm2022}/lib/plausible/models/plausible-event.model.mjs +0 -0
  232. /package/{esm2020 → esm2022}/lib/plausible/plausible.helper.mjs +0 -0
  233. /package/{esm2020 → esm2022}/lib/services/index.mjs +0 -0
  234. /package/{esm2020 → esm2022}/lib/tld-loader/index.mjs +0 -0
  235. /package/{esm2020 → esm2022}/tilde-nlp-ngx-common.mjs +0 -0
  236. /package/lib/helpers/{missing-translation-helper.d.ts → missing-translation.helper.d.ts} +0 -0
@@ -1,675 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, Directive, Input, HostListener, NgModule, Component, Pipe, EventEmitter, Output, ViewChild } from '@angular/core';
3
- import * as i1 from '@angular/material/icon';
4
- import * as i2 from '@angular/platform-browser';
5
- import * as i1$1 from '@angular/common';
6
- import { CommonModule } from '@angular/common';
7
- import * as i2$1 from '@angular/material/tooltip';
8
- import { MatTooltipModule } from '@angular/material/tooltip';
9
- import * as i1$2 from '@ngx-translate/core';
10
- import { TranslateModule } from '@ngx-translate/core';
11
- import { Observable, of } from 'rxjs';
12
- import * as i1$3 from '@angular/material/button';
13
- import { MatButtonModule } from '@angular/material/button';
14
- import { FlexLayoutModule } from '@angular/flex-layout';
15
- import * as i6 from '@angular/router';
16
- import { RouterModule } from '@angular/router';
17
- import * as i2$2 from '@angular/flex-layout/flex';
18
- import * as i3 from '@angular/flex-layout/extended';
19
-
20
- class IconService {
21
- constructor(iconRegistry, sanitizer) {
22
- this.iconRegistry = iconRegistry;
23
- this.sanitizer = sanitizer;
24
- }
25
- //https://material.angular.io/components/icon/examples
26
- /** Registers svg icons to mat icon registry. Icon SVG's should be under some key in object. Icon name can be used with property name in lowercase. */
27
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
28
- registerIcons(icons) {
29
- for (const key in icons) {
30
- this.iconRegistry.addSvgIconLiteral(key.toLowerCase(), this.sanitizer.bypassSecurityTrustHtml(icons[key]));
31
- }
32
- }
33
- registerIconFromUrl(name, url) {
34
- this.iconRegistry.addSvgIcon(name, this.sanitizer.bypassSecurityTrustResourceUrl(url));
35
- }
36
- addSvgIconSet(path, namespace) {
37
- namespace ?
38
- this.iconRegistry.addSvgIconSetInNamespace(namespace, this.sanitizer.bypassSecurityTrustResourceUrl(path)) :
39
- this.iconRegistry.addSvgIconSet(this.sanitizer.bypassSecurityTrustResourceUrl(path));
40
- }
41
- }
42
- IconService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconService, deps: [{ token: i1.MatIconRegistry }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable });
43
- IconService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconService, providedIn: 'root' });
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconService, decorators: [{
45
- type: Injectable,
46
- args: [{
47
- providedIn: 'root'
48
- }]
49
- }], ctorParameters: function () { return [{ type: i1.MatIconRegistry }, { type: i2.DomSanitizer }]; } });
50
-
51
- const _localStorage = typeof localStorage !== 'undefined' ? localStorage : null;
52
- const _window = typeof window !== 'undefined' ? window : null;
53
- class DOMService {
54
- get window() {
55
- return _window;
56
- }
57
- get localStorage() {
58
- return _localStorage;
59
- }
60
- }
61
- DOMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DOMService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
62
- DOMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DOMService, providedIn: 'root' });
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DOMService, decorators: [{
64
- type: Injectable,
65
- args: [{
66
- providedIn: 'root'
67
- }]
68
- }] });
69
-
70
- /* eslint-disable @typescript-eslint/no-explicit-any */
71
- class PlausibleHelper {
72
- /**
73
- * Adds plausible for selected domain and adds additional script for custom event (goal) triggering
74
- * @param domain domain that is registered in your plausible account
75
- * @returns
76
- */
77
- static addPlausible(domain) {
78
- const domService = new DOMService();
79
- const windowObj = domService.window;
80
- if (!windowObj || !domain) {
81
- return;
82
- }
83
- const plausibleSrc = "https://plausible.io/js/plausible.js";
84
- const script = document.createElement("script");
85
- script.src = plausibleSrc;
86
- script.setAttribute("data-domain", domain);
87
- document.head.append(script);
88
- // Add plausible custom event functionality https://plausible.io/docs/custom-event-goals#code-example-for-tracking-link-clicks
89
- windowObj.plausible = windowObj.plausible || ((...params) => { (windowObj.plausible.q = windowObj.plausible.q || []).push(params); });
90
- }
91
- /**
92
- * Emits custom plausible event
93
- * @param id plausible event id that should be the same as registered in plausible
94
- * @param properties an object with custom properties for the event
95
- * @returns
96
- */
97
- static customEvent(id, properties) {
98
- const windowObj = window;
99
- if (!windowObj?.plausible) {
100
- return;
101
- }
102
- windowObj.plausible(id, { props: properties });
103
- }
104
- }
105
-
106
- class PlausibleEventDirective {
107
- constructor() {
108
- this.id = "";
109
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
110
- this.properties = null;
111
- }
112
- /** Plausible event id. */
113
- set libPlausibleEvent(value) {
114
- if (!value) {
115
- return;
116
- }
117
- this.id = value.eventId;
118
- if (value.properties) {
119
- this.properties = {};
120
- value.properties.forEach(item => this.properties[item.key] = item.value);
121
- }
122
- }
123
- onClick() {
124
- if (this.id.length) {
125
- PlausibleHelper.customEvent(this.id, this.properties);
126
- }
127
- }
128
- }
129
- PlausibleEventDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PlausibleEventDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
130
- PlausibleEventDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: PlausibleEventDirective, selector: "[libPlausibleEvent]", inputs: { libPlausibleEvent: "libPlausibleEvent" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PlausibleEventDirective, decorators: [{
132
- type: Directive,
133
- args: [{
134
- selector: '[libPlausibleEvent]'
135
- }]
136
- }], propDecorators: { libPlausibleEvent: [{
137
- type: Input
138
- }], onClick: [{
139
- type: HostListener,
140
- args: ["click"]
141
- }] } });
142
-
143
- class PlausibleModule {
144
- }
145
- PlausibleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PlausibleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
146
- PlausibleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PlausibleModule, declarations: [PlausibleEventDirective], imports: [CommonModule], exports: [PlausibleEventDirective] });
147
- PlausibleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PlausibleModule, imports: [CommonModule] });
148
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PlausibleModule, decorators: [{
149
- type: NgModule,
150
- args: [{
151
- declarations: [
152
- PlausibleEventDirective
153
- ],
154
- imports: [
155
- CommonModule
156
- ],
157
- exports: [
158
- PlausibleEventDirective
159
- ]
160
- }]
161
- }] });
162
-
163
- var InlineMessageIconPosition;
164
- (function (InlineMessageIconPosition) {
165
- InlineMessageIconPosition[InlineMessageIconPosition["START"] = 0] = "START";
166
- InlineMessageIconPosition[InlineMessageIconPosition["END"] = 1] = "END";
167
- })(InlineMessageIconPosition || (InlineMessageIconPosition = {}));
168
-
169
- class InlineMessageComponent {
170
- constructor() {
171
- this.END_ICON_POSITION = InlineMessageIconPosition.END;
172
- this.iconName = "info";
173
- }
174
- }
175
- InlineMessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InlineMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
176
- InlineMessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InlineMessageComponent, selector: "lib-inline-message", inputs: { iconName: "iconName", message: "message" }, ngImport: i0, template: "<div class=\"tld-inline-message {{message.type}}\">\r\n <span class=\"material-icons\" [class.order-end]=\"message.iconPosition === END_ICON_POSITION\"\r\n [matTooltip]=\"message.iconTooltip? (message.iconTooltip | translate: message.localizationParams) : ''\" *ngIf=\"iconName\">{{iconName}}</span>\r\n <section *ngIf=\"message\">\r\n <div class=\"text-s-semi-bold title\" *ngIf=\"message.title\"\r\n [innerHtml]=\"message.title | translate: message.localizationParams\">\r\n </div>\r\n <p class=\"text-s description\" *ngIf=\"message.description\" [innerHtml]=\"message.description | translate:\r\n message.localizationParams\"></p>\r\n </section>\r\n</div>", styles: [":host{display:block}.tld-inline-message{display:flex;flex-direction:row}.tld-inline-message.error .material-icons{color:var(--error-dark)}.tld-inline-message.info .material-icons{color:var(--base-40)}.tld-inline-message.warning .material-icons{color:var(--warning-dark)}.tld-inline-message .material-icons{font-size:16px;margin-right:.5rem;display:inline-block}.tld-inline-message .material-icons.order-end{order:2}.tld-inline-message .title,.tld-inline-message .description{margin:0}.tld-inline-message .title+.description{margin-top:.5rem}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] });
177
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InlineMessageComponent, decorators: [{
178
- type: Component,
179
- args: [{ selector: 'lib-inline-message', template: "<div class=\"tld-inline-message {{message.type}}\">\r\n <span class=\"material-icons\" [class.order-end]=\"message.iconPosition === END_ICON_POSITION\"\r\n [matTooltip]=\"message.iconTooltip? (message.iconTooltip | translate: message.localizationParams) : ''\" *ngIf=\"iconName\">{{iconName}}</span>\r\n <section *ngIf=\"message\">\r\n <div class=\"text-s-semi-bold title\" *ngIf=\"message.title\"\r\n [innerHtml]=\"message.title | translate: message.localizationParams\">\r\n </div>\r\n <p class=\"text-s description\" *ngIf=\"message.description\" [innerHtml]=\"message.description | translate:\r\n message.localizationParams\"></p>\r\n </section>\r\n</div>", styles: [":host{display:block}.tld-inline-message{display:flex;flex-direction:row}.tld-inline-message.error .material-icons{color:var(--error-dark)}.tld-inline-message.info .material-icons{color:var(--base-40)}.tld-inline-message.warning .material-icons{color:var(--warning-dark)}.tld-inline-message .material-icons{font-size:16px;margin-right:.5rem;display:inline-block}.tld-inline-message .material-icons.order-end{order:2}.tld-inline-message .title,.tld-inline-message .description{margin:0}.tld-inline-message .title+.description{margin-top:.5rem}\n"] }]
180
- }], propDecorators: { iconName: [{
181
- type: Input
182
- }], message: [{
183
- type: Input
184
- }] } });
185
-
186
- class InlineMessageModule {
187
- }
188
- InlineMessageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InlineMessageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
189
- InlineMessageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: InlineMessageModule, declarations: [InlineMessageComponent], imports: [CommonModule,
190
- TranslateModule,
191
- MatTooltipModule], exports: [InlineMessageComponent] });
192
- InlineMessageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InlineMessageModule, imports: [CommonModule,
193
- TranslateModule,
194
- MatTooltipModule] });
195
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InlineMessageModule, decorators: [{
196
- type: NgModule,
197
- args: [{
198
- declarations: [
199
- InlineMessageComponent
200
- ],
201
- imports: [
202
- CommonModule,
203
- TranslateModule,
204
- MatTooltipModule
205
- ],
206
- exports: [
207
- InlineMessageComponent
208
- ]
209
- }]
210
- }] });
211
-
212
- var InlineMessageType;
213
- (function (InlineMessageType) {
214
- InlineMessageType["INFO"] = "info";
215
- InlineMessageType["WARNING"] = "warning";
216
- InlineMessageType["ERROR"] = "error";
217
- })(InlineMessageType || (InlineMessageType = {}));
218
-
219
- class FilterWithHighlightPipe {
220
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
221
- transform(value, filter, key) {
222
- if (!filter.length) {
223
- return [...value];
224
- }
225
- const filteredArr = [];
226
- const regex = new RegExp(filter, 'gi');
227
- for (let element of value) {
228
- const elementText = key ? element[key] : element;
229
- const match = elementText.match(regex);
230
- if (!match) {
231
- continue;
232
- }
233
- let newElement;
234
- const textWithHighlight = elementText.replace(regex, (match) => `<span class="filter-highlight">${match}</span>`);
235
- if (key) {
236
- newElement = { ...element };
237
- newElement[key] = textWithHighlight;
238
- }
239
- else {
240
- element = textWithHighlight;
241
- }
242
- filteredArr.push(newElement ?? element);
243
- }
244
- return filteredArr;
245
- }
246
- }
247
- FilterWithHighlightPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterWithHighlightPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
248
- FilterWithHighlightPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FilterWithHighlightPipe, name: "filterWithHighlight" });
249
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterWithHighlightPipe, decorators: [{
250
- type: Pipe,
251
- args: [{
252
- name: 'filterWithHighlight'
253
- }]
254
- }] });
255
-
256
- class FilterWithHighlightModule {
257
- }
258
- FilterWithHighlightModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterWithHighlightModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
259
- FilterWithHighlightModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FilterWithHighlightModule, declarations: [FilterWithHighlightPipe], imports: [CommonModule], exports: [FilterWithHighlightPipe] });
260
- FilterWithHighlightModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterWithHighlightModule, imports: [CommonModule] });
261
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterWithHighlightModule, decorators: [{
262
- type: NgModule,
263
- args: [{
264
- declarations: [
265
- FilterWithHighlightPipe
266
- ],
267
- imports: [
268
- CommonModule
269
- ],
270
- exports: [
271
- FilterWithHighlightPipe
272
- ]
273
- }]
274
- }] });
275
-
276
- /* eslint-disable @typescript-eslint/no-explicit-any */
277
- /**
278
- * Pipe used to sort translated values.
279
- */
280
- class SortTranslationsPipe {
281
- constructor(translate) {
282
- this.translate = translate;
283
- }
284
- /**
285
- *
286
- * @param objects array of objects to be sorted
287
- * @param localizationPrefix prefix for localization code. This is used to get necessary object translations.
288
- * @param key Which object property needs to be used for sorting.
289
- * @param currentLanguage This is necessary to update values if language is changed.
290
- * @returns
291
- */
292
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
293
- transform(objects, localizationPrefix, key = null, currentLanguage, translationKey = null) {
294
- const arrayCopy = [...objects];
295
- if (localizationPrefix) {
296
- return new Observable((subscriber) => {
297
- this.translate.get(localizationPrefix ?? "").subscribe((translations) => {
298
- const array = this.sortObjects(arrayCopy, key, translations);
299
- subscriber.next(array);
300
- subscriber.complete();
301
- });
302
- });
303
- }
304
- else {
305
- return of(this.sortObjects(arrayCopy, key));
306
- }
307
- }
308
- sortObjects(array, key, translations) {
309
- return array.sort((a, b) => {
310
- const aValue = key ? a[key] : a;
311
- const aTranslation = translations ? translations[aValue.toUpperCase()] : aValue;
312
- const bValue = key ? b[key] : b;
313
- const bTranslation = translations ? translations[bValue.toUpperCase()] : bValue;
314
- if (aTranslation < bTranslation)
315
- return -1;
316
- else if (aTranslation > bTranslation)
317
- return 1;
318
- else
319
- return 0;
320
- });
321
- }
322
- }
323
- SortTranslationsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SortTranslationsPipe, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Pipe });
324
- SortTranslationsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SortTranslationsPipe, name: "sortTranslations" });
325
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SortTranslationsPipe, decorators: [{
326
- type: Pipe,
327
- args: [{
328
- name: 'sortTranslations'
329
- }]
330
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; } });
331
-
332
- class SortTranslationsModule {
333
- }
334
- SortTranslationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SortTranslationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
335
- SortTranslationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SortTranslationsModule, declarations: [SortTranslationsPipe], imports: [CommonModule], exports: [SortTranslationsPipe] });
336
- SortTranslationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SortTranslationsModule, imports: [CommonModule] });
337
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SortTranslationsModule, decorators: [{
338
- type: NgModule,
339
- args: [{
340
- declarations: [SortTranslationsPipe],
341
- imports: [
342
- CommonModule
343
- ],
344
- exports: [
345
- SortTranslationsPipe
346
- ]
347
- }]
348
- }] });
349
-
350
- class ClickOutsideDirective {
351
- constructor(elementRef) {
352
- this.elementRef = elementRef;
353
- this.clickOutside = new EventEmitter();
354
- }
355
- onClick(target) {
356
- const clickedInside = this.elementRef.nativeElement.contains(target);
357
- if (!clickedInside) {
358
- this.clickOutside.emit();
359
- }
360
- }
361
- }
362
- ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClickOutsideDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
363
- ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: ClickOutsideDirective, selector: "[clickOutside]", outputs: { clickOutside: "clickOutside" }, host: { listeners: { "document:click": "onClick($event.target)" } }, ngImport: i0 });
364
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClickOutsideDirective, decorators: [{
365
- type: Directive,
366
- args: [{
367
- // eslint-disable-next-line @angular-eslint/directive-selector
368
- selector: '[clickOutside]'
369
- }]
370
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { clickOutside: [{
371
- type: Output
372
- }], onClick: [{
373
- type: HostListener,
374
- args: ['document:click', ['$event.target']]
375
- }] } });
376
-
377
- class ClickOutsideModule {
378
- }
379
- ClickOutsideModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClickOutsideModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
380
- ClickOutsideModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ClickOutsideModule, declarations: [ClickOutsideDirective], imports: [CommonModule], exports: [ClickOutsideDirective] });
381
- ClickOutsideModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClickOutsideModule, imports: [CommonModule] });
382
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClickOutsideModule, decorators: [{
383
- type: NgModule,
384
- args: [{
385
- declarations: [
386
- ClickOutsideDirective
387
- ],
388
- imports: [
389
- CommonModule
390
- ],
391
- exports: [
392
- ClickOutsideDirective
393
- ]
394
- }]
395
- }] });
396
-
397
- class CloseButtonComponent {
398
- constructor() {
399
- // any type because emitter doesn't really need a value
400
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
401
- this.tldClick = new EventEmitter();
402
- this.ariaCode = "CLOSE_BUTTON";
403
- }
404
- clicked() {
405
- this.tldClick.emit(null);
406
- }
407
- }
408
- CloseButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CloseButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
409
- CloseButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CloseButtonComponent, selector: "tld-close-button", inputs: { ariaCode: "ariaCode", disabled: "disabled", tooltip: "tooltip" }, outputs: { tldClick: "tldClick" }, viewQueries: [{ propertyName: "clearButton", first: true, predicate: ["clearButton"], descendants: true }], ngImport: i0, template: "<button [matTooltip]=\"tooltip | translate\"\r\n#clearButton mat-icon-button (click)=\"clicked()\" [attr.aria-label]=\"'ARIA_LABELS.'+ariaCode | translate\"\r\n [disabled]=\"disabled\">\r\n <span class=\"material-icons\">\r\n close\r\n </span>\r\n</button>", dependencies: [{ kind: "component", type: i1$3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i2$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] });
410
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CloseButtonComponent, decorators: [{
411
- type: Component,
412
- args: [{ selector: 'tld-close-button', template: "<button [matTooltip]=\"tooltip | translate\"\r\n#clearButton mat-icon-button (click)=\"clicked()\" [attr.aria-label]=\"'ARIA_LABELS.'+ariaCode | translate\"\r\n [disabled]=\"disabled\">\r\n <span class=\"material-icons\">\r\n close\r\n </span>\r\n</button>" }]
413
- }], propDecorators: { tldClick: [{
414
- type: Output
415
- }], ariaCode: [{
416
- type: Input
417
- }], clearButton: [{
418
- type: ViewChild,
419
- args: ["clearButton"]
420
- }], disabled: [{
421
- type: Input
422
- }], tooltip: [{
423
- type: Input
424
- }] } });
425
-
426
- class CloseButtonModule {
427
- }
428
- CloseButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CloseButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
429
- CloseButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CloseButtonModule, declarations: [CloseButtonComponent], imports: [CommonModule,
430
- MatButtonModule,
431
- TranslateModule,
432
- MatTooltipModule], exports: [CloseButtonComponent] });
433
- CloseButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CloseButtonModule, imports: [CommonModule,
434
- MatButtonModule,
435
- TranslateModule,
436
- MatTooltipModule] });
437
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CloseButtonModule, decorators: [{
438
- type: NgModule,
439
- args: [{
440
- declarations: [
441
- CloseButtonComponent
442
- ],
443
- imports: [
444
- CommonModule,
445
- MatButtonModule,
446
- TranslateModule,
447
- MatTooltipModule
448
- ],
449
- exports: [
450
- CloseButtonComponent
451
- ]
452
- }]
453
- }] });
454
-
455
- class NotificationMessageComponent {
456
- constructor() {
457
- this.buttonClicked = new EventEmitter();
458
- this.closeClicked = new EventEmitter();
459
- this.linkClicked = new EventEmitter();
460
- this.iconNames = {
461
- "BASIC": "info",
462
- "ERROR": "error",
463
- "SUCCESS": "check_circle",
464
- "WARNING": "info",
465
- };
466
- }
467
- ngOnInit() {
468
- this.className = this.message.type.toLocaleLowerCase();
469
- }
470
- buttonClick() {
471
- this.buttonClicked.next(null);
472
- }
473
- closeClick() {
474
- this.closeClicked.next(null);
475
- }
476
- linkClick() {
477
- this.linkClicked.next(null);
478
- }
479
- }
480
- NotificationMessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
481
- NotificationMessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NotificationMessageComponent, selector: "lib-tld-notification-message", inputs: { message: "message", inline: "inline" }, outputs: { buttonClicked: "buttonClicked", closeClicked: "closeClicked", linkClicked: "linkClicked" }, ngImport: i0, template: "<div class=\"notification-message {{className}}\">\r\n <div class=\"notification-message-container tld-default-border\" [ngClass.lt-md]=\"'mobile'\" [class.inline]=\"inline\"\r\n fxLayout=\"row\" fxLayoutAlign=\"start start\" [attr.id]=\"message.id\" aria-live=\"polite\" fxLayout=\"row\">\r\n <span class=\"material-icons message-icon\">\r\n {{iconNames[message.type]}}\r\n </span>\r\n <div class=\"items-container\" fxFlex>\r\n <div fxLayout=\"row\">\r\n <div class=\"text-container\" fxFlex>\r\n <h1 *ngIf=\"message.title\" class=\"message-title\"\r\n [innerHtml]=\"message.title | translate: message.localizationParams\"></h1>\r\n <p *ngIf=\"message.body\" class=\"message-body\">\r\n <span [innerHtml]=\"message.body | translate: message.localizationParams\"></span>\r\n <span *ngIf=\"message.support\" [innerHtml]=\"message.support | translate: message.localizationParams\"></span>\r\n </p>\r\n </div>\r\n <tld-close-button *ngIf=\"!message.hideClose\" class=\"close-button\" (tldClick)=\"closeClick()\">\r\n </tld-close-button>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutGap=\"16px\" fxLayoutAlign=\"start center\"\r\n *ngIf=\"message.buttonText || message.linkHref || message.routerLink\">\r\n <button class=\"message-action-button\" color=\"accent\" mat-flat-button *ngIf=\"message.buttonText\"\r\n (click)=\"buttonClick()\">{{message.buttonText | translate}} </button>\r\n <a class=\"message-action-link\" *ngIf=\"message.linkHref && message.linkText\" (click)=\"linkClick()\"\r\n [attr.href]=\"message.linkHref\">{{message.linkText |\r\n translate}}</a>\r\n <a class=\"message-action-link\" *ngIf=\"message.routerLink && message.linkText\" (click)=\"linkClick()\"\r\n [routerLink]=\"[message.routerLink]\">{{message.linkText |\r\n translate}}</a>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".notification-message.basic .notification-message-container{background-color:var(--base-100);border-color:var(--base-100)}.notification-message.basic .notification-message-container .message-icon{color:var(--base-40)}.notification-message.basic .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.error .notification-message-container{background-color:var(--error-light);border-color:var(--base-100)}.notification-message.error .notification-message-container .message-icon{color:var(--error-dark)}.notification-message.error .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.warning .notification-message-container{background-color:var(--warning-light);border-color:var(--base-100)}.notification-message.warning .notification-message-container .message-icon{color:var(--warning-dark)}.notification-message.warning .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.success .notification-message-container{background-color:var(--success-light);border-color:var(--base-100)}.notification-message.success .notification-message-container .message-icon{color:var(--success-dark)}.notification-message.success .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message .notification-message-container{border:1px solid var(--base-95);border-radius:.5em}.notification-message .notification-message-container.mobile{padding:.6em .4em!important}.notification-message .notification-message-container.mobile .items-container{margin-left:.4em!important}.notification-message .notification-message-container.mobile .items-container div+div{margin-top:.2em!important}.notification-message .notification-message-container.mobile .items-container .message-title+.message-body{margin-top:0!important}.notification-message .notification-message-container .text-container:first-child{line-height:1.5em}.notification-message .notification-message-container .text-container .message-title{font-weight:500;margin:0}.notification-message .notification-message-container .text-container .message-body{margin:0}.notification-message .notification-message-container:not(.inline){padding:1.5em}.notification-message .notification-message-container:not(.inline) .items-container{margin-left:1em}.notification-message .notification-message-container:not(.inline) .items-container div+div,.notification-message .notification-message-container:not(.inline) .items-container .message-title+.message-body{margin-top:1em}.notification-message .notification-message-container:not(.inline) .message-title{font-size:1.25em}.notification-message .notification-message-container:not(.inline) .message-body{line-height:1.5em}.notification-message .notification-message-container.inline{padding:.75em 1em}.notification-message .notification-message-container.inline .items-container{margin-left:.75em}.notification-message .notification-message-container.inline .items-container div+div{margin-top:.5em}.notification-message .notification-message-container.inline .items-container .message-title+.message-body{margin-top:.2em}.notification-message .notification-message-container.inline .message-title{font-size:1em}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i2$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i2$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i3.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: CloseButtonComponent, selector: "tld-close-button", inputs: ["ariaCode", "disabled", "tooltip"], outputs: ["tldClick"] }, { kind: "component", type: i1$3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i6.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] });
482
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationMessageComponent, decorators: [{
483
- type: Component,
484
- args: [{ selector: 'lib-tld-notification-message', template: "<div class=\"notification-message {{className}}\">\r\n <div class=\"notification-message-container tld-default-border\" [ngClass.lt-md]=\"'mobile'\" [class.inline]=\"inline\"\r\n fxLayout=\"row\" fxLayoutAlign=\"start start\" [attr.id]=\"message.id\" aria-live=\"polite\" fxLayout=\"row\">\r\n <span class=\"material-icons message-icon\">\r\n {{iconNames[message.type]}}\r\n </span>\r\n <div class=\"items-container\" fxFlex>\r\n <div fxLayout=\"row\">\r\n <div class=\"text-container\" fxFlex>\r\n <h1 *ngIf=\"message.title\" class=\"message-title\"\r\n [innerHtml]=\"message.title | translate: message.localizationParams\"></h1>\r\n <p *ngIf=\"message.body\" class=\"message-body\">\r\n <span [innerHtml]=\"message.body | translate: message.localizationParams\"></span>\r\n <span *ngIf=\"message.support\" [innerHtml]=\"message.support | translate: message.localizationParams\"></span>\r\n </p>\r\n </div>\r\n <tld-close-button *ngIf=\"!message.hideClose\" class=\"close-button\" (tldClick)=\"closeClick()\">\r\n </tld-close-button>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutGap=\"16px\" fxLayoutAlign=\"start center\"\r\n *ngIf=\"message.buttonText || message.linkHref || message.routerLink\">\r\n <button class=\"message-action-button\" color=\"accent\" mat-flat-button *ngIf=\"message.buttonText\"\r\n (click)=\"buttonClick()\">{{message.buttonText | translate}} </button>\r\n <a class=\"message-action-link\" *ngIf=\"message.linkHref && message.linkText\" (click)=\"linkClick()\"\r\n [attr.href]=\"message.linkHref\">{{message.linkText |\r\n translate}}</a>\r\n <a class=\"message-action-link\" *ngIf=\"message.routerLink && message.linkText\" (click)=\"linkClick()\"\r\n [routerLink]=\"[message.routerLink]\">{{message.linkText |\r\n translate}}</a>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".notification-message.basic .notification-message-container{background-color:var(--base-100);border-color:var(--base-100)}.notification-message.basic .notification-message-container .message-icon{color:var(--base-40)}.notification-message.basic .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.error .notification-message-container{background-color:var(--error-light);border-color:var(--base-100)}.notification-message.error .notification-message-container .message-icon{color:var(--error-dark)}.notification-message.error .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.warning .notification-message-container{background-color:var(--warning-light);border-color:var(--base-100)}.notification-message.warning .notification-message-container .message-icon{color:var(--warning-dark)}.notification-message.warning .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.success .notification-message-container{background-color:var(--success-light);border-color:var(--base-100)}.notification-message.success .notification-message-container .message-icon{color:var(--success-dark)}.notification-message.success .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message .notification-message-container{border:1px solid var(--base-95);border-radius:.5em}.notification-message .notification-message-container.mobile{padding:.6em .4em!important}.notification-message .notification-message-container.mobile .items-container{margin-left:.4em!important}.notification-message .notification-message-container.mobile .items-container div+div{margin-top:.2em!important}.notification-message .notification-message-container.mobile .items-container .message-title+.message-body{margin-top:0!important}.notification-message .notification-message-container .text-container:first-child{line-height:1.5em}.notification-message .notification-message-container .text-container .message-title{font-weight:500;margin:0}.notification-message .notification-message-container .text-container .message-body{margin:0}.notification-message .notification-message-container:not(.inline){padding:1.5em}.notification-message .notification-message-container:not(.inline) .items-container{margin-left:1em}.notification-message .notification-message-container:not(.inline) .items-container div+div,.notification-message .notification-message-container:not(.inline) .items-container .message-title+.message-body{margin-top:1em}.notification-message .notification-message-container:not(.inline) .message-title{font-size:1.25em}.notification-message .notification-message-container:not(.inline) .message-body{line-height:1.5em}.notification-message .notification-message-container.inline{padding:.75em 1em}.notification-message .notification-message-container.inline .items-container{margin-left:.75em}.notification-message .notification-message-container.inline .items-container div+div{margin-top:.5em}.notification-message .notification-message-container.inline .items-container .message-title+.message-body{margin-top:.2em}.notification-message .notification-message-container.inline .message-title{font-size:1em}\n"] }]
485
- }], propDecorators: { message: [{
486
- type: Input
487
- }], buttonClicked: [{
488
- type: Output
489
- }], closeClicked: [{
490
- type: Output
491
- }], linkClicked: [{
492
- type: Output
493
- }], inline: [{
494
- type: Input
495
- }] } });
496
-
497
- class NotificationMessageModule {
498
- }
499
- NotificationMessageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationMessageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
500
- NotificationMessageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: NotificationMessageModule, declarations: [NotificationMessageComponent], imports: [CommonModule,
501
- FlexLayoutModule,
502
- CloseButtonModule,
503
- MatButtonModule,
504
- TranslateModule,
505
- RouterModule], exports: [NotificationMessageComponent] });
506
- NotificationMessageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationMessageModule, imports: [CommonModule,
507
- FlexLayoutModule,
508
- CloseButtonModule,
509
- MatButtonModule,
510
- TranslateModule,
511
- RouterModule] });
512
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationMessageModule, decorators: [{
513
- type: NgModule,
514
- args: [{
515
- declarations: [
516
- NotificationMessageComponent
517
- ],
518
- imports: [
519
- CommonModule,
520
- FlexLayoutModule,
521
- CloseButtonModule,
522
- MatButtonModule,
523
- TranslateModule,
524
- RouterModule
525
- ],
526
- exports: [
527
- NotificationMessageComponent
528
- ]
529
- }]
530
- }] });
531
-
532
- var NotificationMessageType;
533
- (function (NotificationMessageType) {
534
- NotificationMessageType["BASIC"] = "BASIC";
535
- NotificationMessageType["WARNING"] = "WARNING";
536
- NotificationMessageType["SUCCESS"] = "SUCCESS";
537
- NotificationMessageType["ERROR"] = "ERROR";
538
- })(NotificationMessageType || (NotificationMessageType = {}));
539
-
540
- class TldLoaderComponent {
541
- }
542
- TldLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TldLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
543
- TldLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TldLoaderComponent, selector: "lib-tld-loader", ngImport: i0, template: "<div class=\"tld-loader accent-color\" fxLayout=\"row\" fxLayoutGap=\"10px\">\r\n <div class=\"accent-bg-color tld-loader-element element-1\"></div>\r\n <div class=\"accent-bg-color tld-loader-element element-2\"></div>\r\n <div class=\"accent-bg-color tld-loader-element element-3\"></div>\r\n</div>\r\n", styles: [".tld-loader .tld-loader-element{will-change:transform;border-radius:50%;animation:grow .6s ease-in-out infinite alternate;width:24px;height:24px}.tld-loader .tld-loader-element.element-2{animation-delay:.2s}.tld-loader .tld-loader-element.element-3{animation-delay:.4s}@keyframes grow{to{transform:translate(-50%) scale(0)}}\n"] });
544
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TldLoaderComponent, decorators: [{
545
- type: Component,
546
- args: [{ selector: 'lib-tld-loader', template: "<div class=\"tld-loader accent-color\" fxLayout=\"row\" fxLayoutGap=\"10px\">\r\n <div class=\"accent-bg-color tld-loader-element element-1\"></div>\r\n <div class=\"accent-bg-color tld-loader-element element-2\"></div>\r\n <div class=\"accent-bg-color tld-loader-element element-3\"></div>\r\n</div>\r\n", styles: [".tld-loader .tld-loader-element{will-change:transform;border-radius:50%;animation:grow .6s ease-in-out infinite alternate;width:24px;height:24px}.tld-loader .tld-loader-element.element-2{animation-delay:.2s}.tld-loader .tld-loader-element.element-3{animation-delay:.4s}@keyframes grow{to{transform:translate(-50%) scale(0)}}\n"] }]
547
- }] });
548
-
549
- class TldLoaderModule {
550
- }
551
- TldLoaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TldLoaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
552
- TldLoaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TldLoaderModule, declarations: [TldLoaderComponent], exports: [TldLoaderComponent] });
553
- TldLoaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TldLoaderModule });
554
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TldLoaderModule, decorators: [{
555
- type: NgModule,
556
- args: [{
557
- declarations: [
558
- TldLoaderComponent
559
- ],
560
- exports: [
561
- TldLoaderComponent
562
- ]
563
- }]
564
- }] });
565
-
566
- class MissingTranslationHelper {
567
- handle(params) {
568
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
569
- return params.interpolateParams?.default || params.key;
570
- }
571
- }
572
-
573
- class CompanyProductComponent {
574
- constructor() {
575
- this.company = "";
576
- this.product = "";
577
- }
578
- }
579
- CompanyProductComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompanyProductComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
580
- CompanyProductComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CompanyProductComponent, selector: "lib-company-product", inputs: { company: "company", product: "product" }, ngImport: i0, template: "<div fxHide.lt-md class=\"tilde-product-title\">\r\n <span class=\"company\">\r\n {{company | uppercase}}\r\n </span>\r\n <span class=\"product\">\r\n {{product}}\r\n </span>\r\n</div>", styles: [".tilde-product-title{font-family:Roboto;text-decoration:none!important}.tilde-product-title .company{font-weight:700;font-size:.75rem;line-height:1rem;color:#616e7c;letter-spacing:1px;display:block}.tilde-product-title .product{font-weight:500;font-size:1.25rem;line-height:1.5rem;color:#1f2933;display:block}\n"], dependencies: [{ kind: "pipe", type: i1$1.UpperCasePipe, name: "uppercase" }] });
581
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompanyProductComponent, decorators: [{
582
- type: Component,
583
- args: [{ selector: 'lib-company-product', template: "<div fxHide.lt-md class=\"tilde-product-title\">\r\n <span class=\"company\">\r\n {{company | uppercase}}\r\n </span>\r\n <span class=\"product\">\r\n {{product}}\r\n </span>\r\n</div>", styles: [".tilde-product-title{font-family:Roboto;text-decoration:none!important}.tilde-product-title .company{font-weight:700;font-size:.75rem;line-height:1rem;color:#616e7c;letter-spacing:1px;display:block}.tilde-product-title .product{font-weight:500;font-size:1.25rem;line-height:1.5rem;color:#1f2933;display:block}\n"] }]
584
- }], propDecorators: { company: [{
585
- type: Input
586
- }], product: [{
587
- type: Input
588
- }] } });
589
-
590
- class CompanyProductModule {
591
- }
592
- CompanyProductModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompanyProductModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
593
- CompanyProductModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CompanyProductModule, declarations: [CompanyProductComponent], imports: [CommonModule], exports: [CompanyProductComponent] });
594
- CompanyProductModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompanyProductModule, imports: [CommonModule] });
595
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompanyProductModule, decorators: [{
596
- type: NgModule,
597
- args: [{
598
- declarations: [
599
- CompanyProductComponent
600
- ],
601
- imports: [
602
- CommonModule
603
- ],
604
- exports: [CompanyProductComponent]
605
- }]
606
- }] });
607
-
608
- class FooterComponent {
609
- constructor() {
610
- this.defaultTermsRoute = "terms-of-use";
611
- this.defaultPrivacyRoute = "privacy-policy";
612
- this.privacyRoute = this.defaultPrivacyRoute;
613
- this.termsOfUseRoute = this.defaultTermsRoute;
614
- this.contactUsRoute = "https://tilde.com/about/get-in-touch";
615
- this.currentYear = new Date().getFullYear();
616
- }
617
- ngOnInit() {
618
- if (this.baseUrl) {
619
- this.privacyRoute = this.baseUrl + this.privacyRoute;
620
- this.termsOfUseRoute = this.baseUrl + this.termsOfUseRoute;
621
- }
622
- }
623
- }
624
- FooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
625
- FooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FooterComponent, selector: "tld-footer", inputs: { privacyRoute: "privacyRoute", termsOfUseRoute: "termsOfUseRoute", contactUsRoute: "contactUsRoute", baseUrl: "baseUrl" }, ngImport: i0, template: "<footer fxLayout=\"row\" class=\"text-m\">\r\n <div fxFlex fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutAlign.xs=\"center center\" fxLayout.xs=\"column\"\r\n fxLayoutGap=\"16px\">\r\n <div>\r\n {{ 'FOOTER.TITLE' | translate: {currentYear: currentYear} }}\r\n </div>\r\n <div fxLayoutGap=\"1rem\">\r\n <ng-container *ngIf=\"baseUrl; else localRoutes\">\r\n <a class=\"semi-bold\" *ngIf=\"termsOfUseRoute\" [attr.href]=\"termsOfUseRoute\" target=\"_blank\"> {{\r\n 'FOOTER.TERMS_OF_USE' |\r\n translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"privacyRoute\" [attr.href]=\"privacyRoute\" target=\"_blank\"> {{ 'FOOTER.PRIVACY'\r\n | translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"contactUsRoute\" [routerLink]=\"[contactUsRoute]\"> {{ 'FOOTER.CONTACT_US'| translate\r\n }}</a>\r\n\r\n </ng-container>\r\n <ng-template #localRoutes>\r\n <a class=\"semi-bold\" *ngIf=\"termsOfUseRoute\" [routerLink]=\"[termsOfUseRoute]\"> {{ 'FOOTER.TERMS_OF_USE' |\r\n translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"privacyRoute\" [routerLink]=\"[privacyRoute]\"> {{ 'FOOTER.PRIVACY'| translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"contactUsRoute\" [routerLink]=\"[contactUsRoute]\"> {{ 'FOOTER.CONTACT_US'| translate\r\n }}</a>\r\n </ng-template>\r\n </div>\r\n </div>\r\n</footer>\r\n", styles: [":host footer{color:var(--base-30);padding:1rem 2rem;margin-bottom:0;border-top:1px solid var(--base-70);margin-top:1rem}:host footer a{color:var(--base-30);text-decoration:none}:host footer a:hover{color:var(--base-30);text-decoration:underline}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i2$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i2$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i6.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] });
626
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FooterComponent, decorators: [{
627
- type: Component,
628
- args: [{ selector: 'tld-footer', template: "<footer fxLayout=\"row\" class=\"text-m\">\r\n <div fxFlex fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutAlign.xs=\"center center\" fxLayout.xs=\"column\"\r\n fxLayoutGap=\"16px\">\r\n <div>\r\n {{ 'FOOTER.TITLE' | translate: {currentYear: currentYear} }}\r\n </div>\r\n <div fxLayoutGap=\"1rem\">\r\n <ng-container *ngIf=\"baseUrl; else localRoutes\">\r\n <a class=\"semi-bold\" *ngIf=\"termsOfUseRoute\" [attr.href]=\"termsOfUseRoute\" target=\"_blank\"> {{\r\n 'FOOTER.TERMS_OF_USE' |\r\n translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"privacyRoute\" [attr.href]=\"privacyRoute\" target=\"_blank\"> {{ 'FOOTER.PRIVACY'\r\n | translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"contactUsRoute\" [routerLink]=\"[contactUsRoute]\"> {{ 'FOOTER.CONTACT_US'| translate\r\n }}</a>\r\n\r\n </ng-container>\r\n <ng-template #localRoutes>\r\n <a class=\"semi-bold\" *ngIf=\"termsOfUseRoute\" [routerLink]=\"[termsOfUseRoute]\"> {{ 'FOOTER.TERMS_OF_USE' |\r\n translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"privacyRoute\" [routerLink]=\"[privacyRoute]\"> {{ 'FOOTER.PRIVACY'| translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"contactUsRoute\" [routerLink]=\"[contactUsRoute]\"> {{ 'FOOTER.CONTACT_US'| translate\r\n }}</a>\r\n </ng-template>\r\n </div>\r\n </div>\r\n</footer>\r\n", styles: [":host footer{color:var(--base-30);padding:1rem 2rem;margin-bottom:0;border-top:1px solid var(--base-70);margin-top:1rem}:host footer a{color:var(--base-30);text-decoration:none}:host footer a:hover{color:var(--base-30);text-decoration:underline}\n"] }]
629
- }], ctorParameters: function () { return []; }, propDecorators: { privacyRoute: [{
630
- type: Input
631
- }], termsOfUseRoute: [{
632
- type: Input
633
- }], contactUsRoute: [{
634
- type: Input
635
- }], baseUrl: [{
636
- type: Input
637
- }] } });
638
-
639
- class FooterModule {
640
- }
641
- FooterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FooterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
642
- FooterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FooterModule, declarations: [FooterComponent], imports: [CommonModule,
643
- FlexLayoutModule,
644
- TranslateModule,
645
- RouterModule], exports: [FooterComponent] });
646
- FooterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FooterModule, imports: [CommonModule,
647
- FlexLayoutModule,
648
- TranslateModule,
649
- RouterModule] });
650
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FooterModule, decorators: [{
651
- type: NgModule,
652
- args: [{
653
- declarations: [
654
- FooterComponent
655
- ],
656
- imports: [
657
- CommonModule,
658
- FlexLayoutModule,
659
- TranslateModule,
660
- RouterModule
661
- ],
662
- exports: [FooterComponent]
663
- }]
664
- }] });
665
-
666
- /*
667
- * Public API Surface of ngx-common
668
- */
669
-
670
- /**
671
- * Generated bundle index. Do not edit.
672
- */
673
-
674
- export { ClickOutsideDirective, ClickOutsideModule, CloseButtonComponent, CloseButtonModule, CompanyProductComponent, CompanyProductModule, DOMService, FilterWithHighlightModule, FilterWithHighlightPipe, FooterComponent, FooterModule, IconService, InlineMessageComponent, InlineMessageIconPosition, InlineMessageModule, InlineMessageType, MissingTranslationHelper, NotificationMessageComponent, NotificationMessageModule, NotificationMessageType, PlausibleEventDirective, PlausibleHelper, PlausibleModule, SortTranslationsModule, SortTranslationsPipe, TldLoaderComponent, TldLoaderModule };
675
- //# sourceMappingURL=tilde-nlp-ngx-common.mjs.map