@anglr/common 21.3.0 → 22.0.0-beta.20250123101532

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 (293) hide show
  1. package/changelog.md +20 -0
  2. package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js +5 -4
  3. package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js.map +1 -1
  4. package/es2022/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js +4 -4
  5. package/es2022/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js.map +1 -1
  6. package/es2022/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js +4 -4
  7. package/es2022/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js.map +1 -1
  8. package/es2022/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js +4 -4
  9. package/es2022/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js.map +1 -1
  10. package/es2022/forms/src/directives/groupHasError/groupHasError.directive.js +4 -5
  11. package/es2022/forms/src/directives/groupHasError/groupHasError.directive.js.map +1 -1
  12. package/es2022/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js +3 -4
  13. package/es2022/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js.map +1 -1
  14. package/es2022/forms/src/directives/hasError/hasError.directive.js +3 -4
  15. package/es2022/forms/src/directives/hasError/hasError.directive.js.map +1 -1
  16. package/es2022/forms/src/directives/numberInput/maxValueNumberValidator.directive.js +5 -5
  17. package/es2022/forms/src/directives/numberInput/maxValueNumberValidator.directive.js.map +1 -1
  18. package/es2022/forms/src/directives/numberInput/minValueNumberValidator.directive.js +5 -5
  19. package/es2022/forms/src/directives/numberInput/minValueNumberValidator.directive.js.map +1 -1
  20. package/es2022/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js +4 -4
  21. package/es2022/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js.map +1 -1
  22. package/es2022/forms/src/directives/numberInput/numberInputValidator.directive.js +5 -5
  23. package/es2022/forms/src/directives/numberInput/numberInputValidator.directive.js.map +1 -1
  24. package/es2022/forms/src/directives/requiredClass/requiredClass.directive.js +3 -4
  25. package/es2022/forms/src/directives/requiredClass/requiredClass.directive.js.map +1 -1
  26. package/es2022/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js +3 -4
  27. package/es2022/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js.map +1 -1
  28. package/es2022/forms/src/misc/utils.js +2 -1
  29. package/es2022/forms/src/misc/utils.js.map +1 -1
  30. package/es2022/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +14 -9
  31. package/es2022/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js.map +1 -1
  32. package/es2022/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js +4 -4
  33. package/es2022/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js.map +1 -1
  34. package/es2022/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js +4 -4
  35. package/es2022/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js.map +1 -1
  36. package/es2022/forms/src/modules/errorMessage/modules/errorMessage.module.js +5 -13
  37. package/es2022/forms/src/modules/errorMessage/modules/errorMessage.module.js.map +1 -1
  38. package/es2022/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js +3 -3
  39. package/es2022/forms/src/modules/formPipes/modules/formPipes.module.js +5 -5
  40. package/es2022/forms/src/modules/formPipes/modules/formPipes.module.js.map +1 -1
  41. package/es2022/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +3 -3
  42. package/es2022/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +3 -3
  43. package/es2022/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +3 -3
  44. package/es2022/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +3 -3
  45. package/es2022/forms/src/modules/hasError.module.js +4 -4
  46. package/es2022/forms/src/modules/numberInput.module.js +7 -7
  47. package/es2022/forms/src/modules/numberInput.module.js.map +1 -1
  48. package/es2022/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js +5 -4
  49. package/es2022/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js.map +1 -1
  50. package/es2022/forms/src/services/formModelBuilder/formModelBuilder.service.js +3 -3
  51. package/es2022/forms/src/services/submitted/submitted.service.js +3 -3
  52. package/es2022/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js +4 -4
  53. package/es2022/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js.map +1 -1
  54. package/es2022/hotkeys/src/components/cheatSheet/cheatSheet.component.js +4 -4
  55. package/es2022/hotkeys/src/components/cheatSheet/cheatSheet.component.js.map +1 -1
  56. package/es2022/hotkeys/src/services/appHotkeys.service.js +3 -3
  57. package/es2022/material/src/components/confirmationDialog/confirmationDialog.component.js +10 -7
  58. package/es2022/material/src/components/confirmationDialog/confirmationDialog.component.js.map +1 -1
  59. package/es2022/material/src/components/movableTitledDialog/movableTitledDialog.component.js +12 -7
  60. package/es2022/material/src/components/movableTitledDialog/movableTitledDialog.component.js.map +1 -1
  61. package/es2022/material/src/components/titledDialog/titledDialog.component.js +9 -6
  62. package/es2022/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
  63. package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js +3 -4
  64. package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js.map +1 -1
  65. package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js +3 -4
  66. package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js.map +1 -1
  67. package/es2022/material/src/modules/confirmationDialog.module.js +6 -15
  68. package/es2022/material/src/modules/confirmationDialog.module.js.map +1 -1
  69. package/es2022/material/src/modules/debugDataCopyClick.module.js +4 -4
  70. package/es2022/material/src/modules/movableTitledDialog.module.js +7 -8
  71. package/es2022/material/src/modules/movableTitledDialog.module.js.map +1 -1
  72. package/es2022/material/src/modules/titledDialog.module.js +5 -16
  73. package/es2022/material/src/modules/titledDialog.module.js.map +1 -1
  74. package/es2022/material/src/services/titledDialog/titledDialog.service.js +3 -3
  75. package/es2022/router/src/services/routing/dataRouter.js +3 -3
  76. package/es2022/router/src/services/routing/dataRouterData.js +3 -3
  77. package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js +6 -6
  78. package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js.map +1 -1
  79. package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js +4 -4
  80. package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js.map +1 -1
  81. package/es2022/src/decorators/asSignal/asSignal.decorator.js.map +1 -1
  82. package/es2022/src/decorators/componentDisplay/componentDisplay.decorator.js.map +1 -1
  83. package/es2022/src/decorators/componentDisplayBlock/componentDisplayBlock.decorator.js.map +1 -1
  84. package/es2022/src/decorators/componentDisplayFlex/componentDisplayFlex.decorator.js.map +1 -1
  85. package/es2022/src/decorators/componentHostStyle/componentHostStyle.decorator.js.map +1 -1
  86. package/es2022/src/decorators/scrollableContent/scrollableContent.decorator.js.map +1 -1
  87. package/es2022/src/decorators/typeProvider/typeProvider.decorator.js +0 -1
  88. package/es2022/src/decorators/typeProvider/typeProvider.decorator.js.map +1 -1
  89. package/es2022/src/decorators/withFullscreenContentCssClass/withFullscreenContentCssClass.decorator.js.map +1 -1
  90. package/es2022/src/directives/bodyRender/bodyRender.directive.js +3 -4
  91. package/es2022/src/directives/bodyRender/bodyRender.directive.js.map +1 -1
  92. package/es2022/src/directives/clickOutside/clickOutside.directive.js +4 -5
  93. package/es2022/src/directives/clickOutside/clickOutside.directive.js.map +1 -1
  94. package/es2022/src/directives/ellipsisTooltip/ellipsisTooltip.directive.js +3 -4
  95. package/es2022/src/directives/ellipsisTooltip/ellipsisTooltip.directive.js.map +1 -1
  96. package/es2022/src/directives/goBack/goBack.directive.js +3 -4
  97. package/es2022/src/directives/goBack/goBack.directive.js.map +1 -1
  98. package/es2022/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +3 -4
  99. package/es2022/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js.map +1 -1
  100. package/es2022/src/directives/positionTo/positionTo.directive.js +4 -5
  101. package/es2022/src/directives/positionTo/positionTo.directive.js.map +1 -1
  102. package/es2022/src/modules/castPipes/modules/castPipes.module.js +5 -5
  103. package/es2022/src/modules/castPipes/modules/castPipes.module.js.map +1 -1
  104. package/es2022/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +3 -3
  105. package/es2022/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +3 -3
  106. package/es2022/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +3 -3
  107. package/es2022/src/modules/castPipes/pipes/castType/castType.pipe.js +3 -3
  108. package/es2022/src/modules/commonDynamic.module.js +4 -4
  109. package/es2022/src/modules/commonLocalize.module.js +7 -7
  110. package/es2022/src/modules/commonLocalize.module.js.map +1 -1
  111. package/es2022/src/modules/commonUtils.module.js +9 -9
  112. package/es2022/src/modules/commonUtils.module.js.map +1 -1
  113. package/es2022/src/modules/debugData/components/debugData/debugData.component.js +4 -4
  114. package/es2022/src/modules/debugData/components/debugData/debugData.component.js.map +1 -1
  115. package/es2022/src/modules/debugData/modules/debugData.module.js +4 -4
  116. package/es2022/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js +3 -3
  117. package/es2022/src/modules/file/components/file/file.component.js +4 -4
  118. package/es2022/src/modules/file/components/file/file.component.js.map +1 -1
  119. package/es2022/src/modules/file/components/fileInput/fileInput.component.js +7 -7
  120. package/es2022/src/modules/file/components/fileInput/fileInput.component.js.map +1 -1
  121. package/es2022/src/modules/file/components/uploadButton/uploadButton.component.js +7 -7
  122. package/es2022/src/modules/file/components/uploadButton/uploadButton.component.js.map +1 -1
  123. package/es2022/src/modules/file/directive/fileInput/fileInput.directive.js +3 -4
  124. package/es2022/src/modules/file/directive/fileInput/fileInput.directive.js.map +1 -1
  125. package/es2022/src/modules/file/directive/fileTemplate/fileTemplate.directive.js +3 -4
  126. package/es2022/src/modules/file/directive/fileTemplate/fileTemplate.directive.js.map +1 -1
  127. package/es2022/src/modules/file/modules/file.module.js +4 -4
  128. package/es2022/src/modules/logger/components/console/console.component.js +5 -5
  129. package/es2022/src/modules/logger/components/console/console.component.js.map +1 -1
  130. package/es2022/src/modules/logger/services/console/consoleComponent.service.js +3 -3
  131. package/es2022/src/modules/logger/services/console/consoleComponentService.options.js +3 -3
  132. package/es2022/src/modules/logger/services/logger/logger.service.js +3 -3
  133. package/es2022/src/modules/logger/services/rest/restSink.options.js +3 -3
  134. package/es2022/src/modules/logger/types/loggerOptions.js +3 -3
  135. package/es2022/src/modules/multiButton/components/multiButton/multiButton.component.js +9 -7
  136. package/es2022/src/modules/multiButton/components/multiButton/multiButton.component.js.map +1 -1
  137. package/es2022/src/modules/multiButton/modules/multiButton.module.js +5 -9
  138. package/es2022/src/modules/multiButton/modules/multiButton.module.js.map +1 -1
  139. package/es2022/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js +9 -6
  140. package/es2022/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js.map +1 -1
  141. package/es2022/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js +4 -4
  142. package/es2022/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js.map +1 -1
  143. package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js +4 -4
  144. package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js.map +1 -1
  145. package/es2022/src/modules/progressIndicator/modules/progressIndicator.module.js +7 -15
  146. package/es2022/src/modules/progressIndicator/modules/progressIndicator.module.js.map +1 -1
  147. package/es2022/src/modules/progressIndicator/services/progressIndicator.service.js +3 -3
  148. package/es2022/src/modules/progressIndicator/services/progressIndicatorOptions.js.map +1 -1
  149. package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js +7 -5
  150. package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js.map +1 -1
  151. package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js +5 -5
  152. package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -1
  153. package/es2022/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +3 -3
  154. package/es2022/src/modules/tooltip/modules/tooltip.module.js +6 -10
  155. package/es2022/src/modules/tooltip/modules/tooltip.module.js.map +1 -1
  156. package/es2022/src/pipes/displayProperties/displayProperties.pipe.js +3 -4
  157. package/es2022/src/pipes/displayProperties/displayProperties.pipe.js.map +1 -1
  158. package/es2022/src/pipes/firstUppercase/firstUppercase.pipe.js +4 -5
  159. package/es2022/src/pipes/firstUppercase/firstUppercase.pipe.js.map +1 -1
  160. package/es2022/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.js +8 -9
  161. package/es2022/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.js.map +1 -1
  162. package/es2022/src/pipes/isNaN/isNaN.pipe.js +3 -4
  163. package/es2022/src/pipes/isNaN/isNaN.pipe.js.map +1 -1
  164. package/es2022/src/pipes/isPresent/isPresent.pipe.js +3 -4
  165. package/es2022/src/pipes/isPresent/isPresent.pipe.js.map +1 -1
  166. package/es2022/src/pipes/keys/keys.pipe.js +4 -4
  167. package/es2022/src/pipes/keys/keys.pipe.js.map +1 -1
  168. package/es2022/src/pipes/localize/localize.pipe.js +4 -5
  169. package/es2022/src/pipes/localize/localize.pipe.js.map +1 -1
  170. package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +5 -5
  171. package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js.map +1 -1
  172. package/es2022/src/pipes/numeral/numeral.pipe.js +4 -4
  173. package/es2022/src/pipes/numeral/numeral.pipe.js.map +1 -1
  174. package/es2022/src/pipes/trimText/trimText.pipe.js +4 -4
  175. package/es2022/src/pipes/trimText/trimText.pipe.js.map +1 -1
  176. package/es2022/src/pipes/urlEncode/urlEncode.pipe.js +4 -4
  177. package/es2022/src/pipes/urlEncode/urlEncode.pipe.js.map +1 -1
  178. package/es2022/src/services/cookies/cookies.service.js +3 -3
  179. package/es2022/src/services/notifications/defaultNotifications.service.js +3 -3
  180. package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js +3 -3
  181. package/es2022/src/services/statusCode/statusCode.service.js +3 -3
  182. package/es2022/src/services/stringLocalization/noStringLocalization.service.js +3 -3
  183. package/es2022/src/services/temporaryStorage/memoryTemporaryStorage.service.js +3 -3
  184. package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js +3 -3
  185. package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +3 -3
  186. package/eslint.config.js +6 -0
  187. package/floating-ui/src/services/floatingUiDomPosition.service.d.ts.map +1 -1
  188. package/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.d.ts.map +1 -1
  189. package/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.d.ts.map +1 -1
  190. package/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.d.ts.map +1 -1
  191. package/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.html +1 -1
  192. package/forms/src/directives/groupHasError/groupHasError.directive.d.ts.map +1 -1
  193. package/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.d.ts.map +1 -1
  194. package/forms/src/directives/hasError/hasError.directive.d.ts.map +1 -1
  195. package/forms/src/directives/numberInput/maxValueNumberValidator.directive.d.ts +1 -1
  196. package/forms/src/directives/numberInput/minValueNumberValidator.directive.d.ts +1 -1
  197. package/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.d.ts +1 -1
  198. package/forms/src/directives/numberInput/numberInputValidator.directive.d.ts +1 -1
  199. package/forms/src/directives/requiredClass/requiredClass.directive.d.ts.map +1 -1
  200. package/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.d.ts.map +1 -1
  201. package/forms/src/misc/utils.d.ts.map +1 -1
  202. package/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.d.ts +1 -1
  203. package/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.d.ts.map +1 -1
  204. package/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.html +4 -3
  205. package/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.d.ts +1 -1
  206. package/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.d.ts +1 -1
  207. package/forms/src/modules/errorMessage/modules/errorMessage.module.d.ts +1 -3
  208. package/forms/src/modules/errorMessage/modules/errorMessage.module.d.ts.map +1 -1
  209. package/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.d.ts +1 -1
  210. package/forms/src/modules/formPipes/modules/formPipes.module.d.ts +1 -1
  211. package/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.d.ts +1 -1
  212. package/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.d.ts +1 -1
  213. package/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.d.ts +1 -1
  214. package/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.d.ts +1 -1
  215. package/forms/src/modules/numberInput.module.d.ts +1 -1
  216. package/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.d.ts.map +1 -1
  217. package/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.d.ts.map +1 -1
  218. package/hotkeys/src/components/cheatSheet/cheatSheet.component.d.ts.map +1 -1
  219. package/material/src/components/confirmationDialog/confirmationDialog.component.d.ts +1 -1
  220. package/material/src/components/confirmationDialog/confirmationDialog.component.d.ts.map +1 -1
  221. package/material/src/components/movableTitledDialog/movableTitledDialog.component.d.ts +1 -1
  222. package/material/src/components/movableTitledDialog/movableTitledDialog.component.d.ts.map +1 -1
  223. package/material/src/components/movableTitledDialog/movableTitledDialog.component.html +1 -1
  224. package/material/src/components/titledDialog/titledDialog.component.d.ts +1 -1
  225. package/material/src/components/titledDialog/titledDialog.component.d.ts.map +1 -1
  226. package/material/src/components/titledDialog/titledDialog.component.html +2 -2
  227. package/material/src/directives/confirmationDialog/confirmationDialog.directive.d.ts.map +1 -1
  228. package/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.d.ts.map +1 -1
  229. package/material/src/modules/confirmationDialog.module.d.ts +4 -6
  230. package/material/src/modules/confirmationDialog.module.d.ts.map +1 -1
  231. package/material/src/modules/movableTitledDialog.module.d.ts +5 -5
  232. package/material/src/modules/movableTitledDialog.module.d.ts.map +1 -1
  233. package/material/src/modules/titledDialog.module.d.ts +2 -4
  234. package/material/src/modules/titledDialog.module.d.ts.map +1 -1
  235. package/package.json +44 -44
  236. package/router/src/decorators/moduleRoutes.decorator.d.ts.map +1 -1
  237. package/src/components/collapsibleIcon/collapsibleIcon.component.d.ts.map +1 -1
  238. package/src/components/collapsibleTitle/collapsibleTitle.component.d.ts.map +1 -1
  239. package/src/decorators/typeProvider/typeProvider.decorator.d.ts.map +1 -1
  240. package/src/directives/bodyRender/bodyRender.directive.d.ts.map +1 -1
  241. package/src/directives/clickOutside/clickOutside.directive.d.ts +3 -3
  242. package/src/directives/clickOutside/clickOutside.directive.d.ts.map +1 -1
  243. package/src/directives/ellipsisTooltip/ellipsisTooltip.directive.d.ts.map +1 -1
  244. package/src/directives/goBack/goBack.directive.d.ts.map +1 -1
  245. package/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.d.ts.map +1 -1
  246. package/src/directives/positionTo/positionTo.directive.d.ts +3 -3
  247. package/src/directives/positionTo/positionTo.directive.d.ts.map +1 -1
  248. package/src/modules/castPipes/modules/castPipes.module.d.ts +1 -1
  249. package/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.d.ts +1 -1
  250. package/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.d.ts +1 -1
  251. package/src/modules/castPipes/pipes/asRequired/asRequired.pipe.d.ts +1 -1
  252. package/src/modules/castPipes/pipes/castType/castType.pipe.d.ts +1 -1
  253. package/src/modules/commonLocalize.module.d.ts +1 -1
  254. package/src/modules/commonUtils.module.d.ts +1 -1
  255. package/src/modules/debugData/components/debugData/debugData.component.d.ts.map +1 -1
  256. package/src/modules/file/components/file/file.component.d.ts.map +1 -1
  257. package/src/modules/file/components/fileInput/fileInput.component.d.ts.map +1 -1
  258. package/src/modules/file/components/uploadButton/uploadButton.component.d.ts.map +1 -1
  259. package/src/modules/file/directive/fileInput/fileInput.directive.d.ts.map +1 -1
  260. package/src/modules/file/directive/fileTemplate/fileTemplate.directive.d.ts.map +1 -1
  261. package/src/modules/logger/components/console/console.component.d.ts +3 -3
  262. package/src/modules/logger/components/console/console.component.d.ts.map +1 -1
  263. package/src/modules/multiButton/components/multiButton/multiButton.component.d.ts +1 -1
  264. package/src/modules/multiButton/components/multiButton/multiButton.component.d.ts.map +1 -1
  265. package/src/modules/multiButton/components/multiButton/multiButton.component.html +1 -1
  266. package/src/modules/multiButton/modules/multiButton.module.d.ts +1 -2
  267. package/src/modules/multiButton/modules/multiButton.module.d.ts.map +1 -1
  268. package/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.d.ts +1 -1
  269. package/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.d.ts.map +1 -1
  270. package/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.html +4 -1
  271. package/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.d.ts +1 -1
  272. package/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.d.ts.map +1 -1
  273. package/src/modules/progressIndicator/modules/progressIndicator.module.d.ts +1 -3
  274. package/src/modules/progressIndicator/modules/progressIndicator.module.d.ts.map +1 -1
  275. package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts +1 -1
  276. package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts.map +1 -1
  277. package/src/modules/tooltip/components/tooltip/tooltip.component.html +13 -5
  278. package/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts.map +1 -1
  279. package/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.d.ts +1 -1
  280. package/src/modules/tooltip/modules/tooltip.module.d.ts +4 -5
  281. package/src/modules/tooltip/modules/tooltip.module.d.ts.map +1 -1
  282. package/src/pipes/displayProperties/displayProperties.pipe.d.ts.map +1 -1
  283. package/src/pipes/firstUppercase/firstUppercase.pipe.d.ts +3 -3
  284. package/src/pipes/firstUppercase/firstUppercase.pipe.d.ts.map +1 -1
  285. package/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.d.ts +7 -7
  286. package/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.d.ts.map +1 -1
  287. package/src/pipes/isNaN/isNaN.pipe.d.ts.map +1 -1
  288. package/src/pipes/isPresent/isPresent.pipe.d.ts.map +1 -1
  289. package/src/pipes/localize/localize.pipe.d.ts +3 -3
  290. package/src/pipes/localize/localize.pipe.d.ts.map +1 -1
  291. package/src/pipes/mergeCssClasses/mergeCssClasses.pipe.d.ts +3 -3
  292. package/src/pipes/mergeCssClasses/mergeCssClasses.pipe.d.ts.map +1 -1
  293. package/version.bak +1 -1
@@ -8,30 +8,30 @@ import * as i0 from "@angular/core";
8
8
  * Module for number input components, pipes and directives
9
9
  */
10
10
  export class NumberInputModule {
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: NumberInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
12
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.1", ngImport: i0, type: NumberInputModule, declarations: [MaxValueNumberValidatorDirective,
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NumberInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
12
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: NumberInputModule, imports: [MaxValueNumberValidatorDirective,
13
13
  MinValueNumberValidatorDirective,
14
14
  NumberInputControlValueAccessor,
15
15
  NumberInputValidatorDirective], exports: [MaxValueNumberValidatorDirective,
16
16
  MinValueNumberValidatorDirective,
17
17
  NumberInputControlValueAccessor,
18
18
  NumberInputValidatorDirective] }); }
19
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: NumberInputModule }); }
19
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NumberInputModule }); }
20
20
  }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: NumberInputModule, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NumberInputModule, decorators: [{
22
22
  type: NgModule,
23
23
  args: [{
24
- declarations: [
24
+ imports: [
25
25
  MaxValueNumberValidatorDirective,
26
26
  MinValueNumberValidatorDirective,
27
27
  NumberInputControlValueAccessor,
28
- NumberInputValidatorDirective
28
+ NumberInputValidatorDirective,
29
29
  ],
30
30
  exports: [
31
31
  MaxValueNumberValidatorDirective,
32
32
  MinValueNumberValidatorDirective,
33
33
  NumberInputControlValueAccessor,
34
- NumberInputValidatorDirective
34
+ NumberInputValidatorDirective,
35
35
  ]
36
36
  }]
37
37
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"numberInput.module.js","sourceRoot":"","sources":["../../../../forms/src/modules/numberInput.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,gCAAgC,EAAC,MAAM,6DAA6D,CAAC;AAC7G,OAAO,EAAC,gCAAgC,EAAC,MAAM,6DAA6D,CAAC;AAC7G,OAAO,EAAC,+BAA+B,EAAC,MAAM,qEAAqE,CAAC;AACpH,OAAO,EAAC,6BAA6B,EAAC,MAAM,0DAA0D,CAAC;;AAEvG;;GAEG;AAkBH,MAAM,OAAO,iBAAiB;8GAAjB,iBAAiB;+GAAjB,iBAAiB,iBAbtB,gCAAgC;YAChC,gCAAgC;YAChC,+BAA+B;YAC/B,6BAA6B,aAI7B,gCAAgC;YAChC,gCAAgC;YAChC,+BAA+B;YAC/B,6BAA6B;+GAGxB,iBAAiB;;2FAAjB,iBAAiB;kBAjB7B,QAAQ;mBACT;oBACI,YAAY,EACZ;wBACI,gCAAgC;wBAChC,gCAAgC;wBAChC,+BAA+B;wBAC/B,6BAA6B;qBAChC;oBACD,OAAO,EACP;wBACI,gCAAgC;wBAChC,gCAAgC;wBAChC,+BAA+B;wBAC/B,6BAA6B;qBAChC;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {MaxValueNumberValidatorDirective} from '../directives/numberInput/maxValueNumberValidator.directive';\nimport {MinValueNumberValidatorDirective} from '../directives/numberInput/minValueNumberValidator.directive';\nimport {NumberInputControlValueAccessor} from '../directives/numberInput/numberInputControlValueAccessor.directive';\nimport {NumberInputValidatorDirective} from '../directives/numberInput/numberInputValidator.directive';\n\n/**\n * Module for number input components, pipes and directives\n */\n@NgModule(\n{\n declarations: \n [\n MaxValueNumberValidatorDirective,\n MinValueNumberValidatorDirective,\n NumberInputControlValueAccessor,\n NumberInputValidatorDirective\n ],\n exports:\n [\n MaxValueNumberValidatorDirective,\n MinValueNumberValidatorDirective,\n NumberInputControlValueAccessor,\n NumberInputValidatorDirective\n ]\n})\nexport class NumberInputModule\n{\n}"]}
1
+ {"version":3,"file":"numberInput.module.js","sourceRoot":"","sources":["../../../../forms/src/modules/numberInput.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,gCAAgC,EAAC,MAAM,6DAA6D,CAAC;AAC7G,OAAO,EAAC,gCAAgC,EAAC,MAAM,6DAA6D,CAAC;AAC7G,OAAO,EAAC,+BAA+B,EAAC,MAAM,qEAAqE,CAAC;AACpH,OAAO,EAAC,6BAA6B,EAAC,MAAM,0DAA0D,CAAC;;AAEvG;;GAEG;AAkBH,MAAM,OAAO,iBAAiB;8GAAjB,iBAAiB;+GAAjB,iBAAiB,YAbtB,gCAAgC;YAChC,gCAAgC;YAChC,+BAA+B;YAC/B,6BAA6B,aAI7B,gCAAgC;YAChC,gCAAgC;YAChC,+BAA+B;YAC/B,6BAA6B;+GAGxB,iBAAiB;;2FAAjB,iBAAiB;kBAjB7B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,gCAAgC;wBAChC,gCAAgC;wBAChC,+BAA+B;wBAC/B,6BAA6B;qBAChC;oBACD,OAAO,EACP;wBACI,gCAAgC;wBAChC,gCAAgC;wBAChC,+BAA+B;wBAC/B,6BAA6B;qBAChC;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {MaxValueNumberValidatorDirective} from '../directives/numberInput/maxValueNumberValidator.directive';\nimport {MinValueNumberValidatorDirective} from '../directives/numberInput/minValueNumberValidator.directive';\nimport {NumberInputControlValueAccessor} from '../directives/numberInput/numberInputControlValueAccessor.directive';\nimport {NumberInputValidatorDirective} from '../directives/numberInput/numberInputValidator.directive';\n\n/**\n * Module for number input components, pipes and directives\n */\n@NgModule(\n{\n imports: \n [\n MaxValueNumberValidatorDirective,\n MinValueNumberValidatorDirective,\n NumberInputControlValueAccessor,\n NumberInputValidatorDirective,\n ],\n exports:\n [\n MaxValueNumberValidatorDirective,\n MinValueNumberValidatorDirective,\n NumberInputControlValueAccessor,\n NumberInputValidatorDirective,\n ]\n})\nexport class NumberInputModule\n{\n}"]}
@@ -1,6 +1,7 @@
1
1
  import { Injectable, Inject, Optional } from '@angular/core';
2
2
  import { STRING_LOCALIZATION } from '@anglr/common';
3
- import { extend, isString } from '@jscrpt/common';
3
+ import { isString } from '@jscrpt/common';
4
+ import { extend } from '@jscrpt/common/extend';
4
5
  import { IGNORED_VALIDATION_ERRORS, VALIDATION_ERROR_MESSAGES } from '../../misc/tokens';
5
6
  import * as i0 from "@angular/core";
6
7
  /**
@@ -62,10 +63,10 @@ export class ErrorMessagesExtractor {
62
63
  });
63
64
  return result;
64
65
  }
65
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ErrorMessagesExtractor, deps: [{ token: STRING_LOCALIZATION }, { token: IGNORED_VALIDATION_ERRORS }, { token: VALIDATION_ERROR_MESSAGES, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
66
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ErrorMessagesExtractor, providedIn: 'root' }); }
66
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ErrorMessagesExtractor, deps: [{ token: STRING_LOCALIZATION }, { token: IGNORED_VALIDATION_ERRORS }, { token: VALIDATION_ERROR_MESSAGES, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
67
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ErrorMessagesExtractor, providedIn: 'root' }); }
67
68
  }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ErrorMessagesExtractor, decorators: [{
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ErrorMessagesExtractor, decorators: [{
69
70
  type: Injectable,
70
71
  args: [{ providedIn: 'root' }]
71
72
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"errorMessagesExtractor.service.js","sourceRoot":"","sources":["../../../../../forms/src/services/errorMessagesExtractor/error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AC,yBAAyB;;0BAChC,MAAM;2BAAC,yBAAyB;;0BAAG,QAAQ","sourcesContent":["import {Injectable, Inject, Optional} from '@angular/core';\nimport {FormControl} from '@angular/forms';\nimport {StringLocalization, STRING_LOCALIZATION} from '@anglr/common';\nimport {StringDictionary, extend, isString} from '@jscrpt/common';\n\nimport {IGNORED_VALIDATION_ERRORS, VALIDATION_ERROR_MESSAGES} from '../../misc/tokens';\nimport {ValidationErrorsResult} from './errorMessagesExtractor.interface';\n\n/**\n * Default error messages displayed\n */\nconst defaultErrorMessages: StringDictionary =\n{\n required: 'Field is required.',\n number: 'Value must be number.',\n pattern: 'Value is not valid.',\n minValue: 'Value is too small.',\n maxValue: 'Value is too big.',\n minlength: 'Value is short.',\n maxlength: 'Value is too long.'\n};\n\n/**\n * Service used for extracting error messages from form control\n */\n@Injectable({providedIn: 'root'})\nexport class ErrorMessagesExtractor\n{\n //######################### protected fields #########################\n\n /**\n * Dictionary with error names that have defined message\n */\n protected _errorMessages: StringDictionary;\n\n //######################### constructor #########################\n constructor(@Inject(STRING_LOCALIZATION) protected _stringLocalization: StringLocalization,\n @Inject(IGNORED_VALIDATION_ERRORS) protected _ignoredValidationErrors: string[],\n @Inject(VALIDATION_ERROR_MESSAGES) @Optional() globalErrorMessages?: StringDictionary)\n {\n this._errorMessages = extend(true, {}, defaultErrorMessages, globalErrorMessages);\n }\n\n //######################### public methods #########################\n\n /**\n * Gets validation errors result for provided control, or null of no errors are present\n * @param control - Form control instance that should be inspected for errors\n * @param messages - Object containing error messages that should patch existing error messages\n */\n public getErrors(control: FormControl, messages?: StringDictionary): ValidationErrorsResult\n {\n const errorMessages: StringDictionary = extend(true, {}, this._errorMessages, messages);\n\n //no control or no errors\n if(!control || !control.errors)\n {\n return null;\n }\n\n const result: ValidationErrorsResult =\n {\n errors: Object.keys(control.errors).filter(itm => this._ignoredValidationErrors.indexOf(itm) < 0),\n errorMessages: []\n };\n\n result.errors.forEach(error =>\n {\n const errorData = control.errors[error];\n \n //error message is present for error\n if(errorMessages[error])\n {\n result.errorMessages.push(this._stringLocalization.get(errorMessages[error], control.errors));\n }\n //display error data if it is string and there is missing translation\n else if(isString(errorData))\n {\n result.errorMessages.push(errorData);\n }\n //error data are array of strings, each string is considered error message\n else if(Array.isArray(errorData))\n {\n errorData.forEach(errorItm =>\n {\n if(isString(errorItm))\n {\n result.errorMessages.push(this._stringLocalization.get(errorItm, control.errors));\n }\n });\n }\n });\n\n return result;\n }\n}"]}
1
+ {"version":3,"file":"errorMessagesExtractor.service.js","sourceRoot":"","sources":["../../../../../forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AAE3D,OAAO,EAAqB,mBAAmB,EAAC,MAAM,eAAe,CAAC;AACtE,OAAO,EAAmB,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAE7C,OAAO,EAAC,yBAAyB,EAAE,yBAAyB,EAAC,MAAM,mBAAmB,CAAC;;AAGvF;;GAEG;AACH,MAAM,oBAAoB,GAC1B;IACI,QAAQ,EAAE,oBAAoB;IAC9B,MAAM,EAAE,uBAAuB;IAC/B,OAAO,EAAE,qBAAqB;IAC9B,QAAQ,EAAE,qBAAqB;IAC/B,QAAQ,EAAE,mBAAmB;IAC7B,SAAS,EAAE,iBAAiB;IAC5B,SAAS,EAAE,oBAAoB;CAClC,CAAC;AAEF;;GAEG;AAEH,MAAM,OAAO,sBAAsB;IAS/B,iEAAiE;IACjE,YAAmD,mBAAuC,EACjC,wBAAkC,EAChC,mBAAsC;QAF9C,wBAAmB,GAAnB,mBAAmB,CAAoB;QACjC,6BAAwB,GAAxB,wBAAwB,CAAU;QAGvF,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,oBAAoB,EAAE,mBAAmB,CAAC,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AC,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;oBACtF,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAClB,CAAC;8GApEQ,sBAAsB,kBAUX,mBAAmB,aACnB,yBAAyB,aACzB,yBAAyB;kHAZpC,sBAAsB,cADV,MAAM;;2FAClB,sBAAsB;kBADlC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;0BAWf,MAAM;2BAAC,mBAAmB;;0BAC1B,MAAM;2BAAC,yBAAyB;;0BAChC,MAAM;2BAAC,yBAAyB;;0BAAG,QAAQ","sourcesContent":["import {Injectable, Inject, Optional} from '@angular/core';\nimport {FormControl} from '@angular/forms';\nimport {StringLocalization, STRING_LOCALIZATION} from '@anglr/common';\nimport {StringDictionary, isString} from '@jscrpt/common';\nimport {extend} from '@jscrpt/common/extend';\n\nimport {IGNORED_VALIDATION_ERRORS, VALIDATION_ERROR_MESSAGES} from '../../misc/tokens';\nimport {ValidationErrorsResult} from './errorMessagesExtractor.interface';\n\n/**\n * Default error messages displayed\n */\nconst defaultErrorMessages: StringDictionary =\n{\n required: 'Field is required.',\n number: 'Value must be number.',\n pattern: 'Value is not valid.',\n minValue: 'Value is too small.',\n maxValue: 'Value is too big.',\n minlength: 'Value is short.',\n maxlength: 'Value is too long.'\n};\n\n/**\n * Service used for extracting error messages from form control\n */\n@Injectable({providedIn: 'root'})\nexport class ErrorMessagesExtractor\n{\n //######################### protected fields #########################\n\n /**\n * Dictionary with error names that have defined message\n */\n protected _errorMessages: StringDictionary;\n\n //######################### constructor #########################\n constructor(@Inject(STRING_LOCALIZATION) protected _stringLocalization: StringLocalization,\n @Inject(IGNORED_VALIDATION_ERRORS) protected _ignoredValidationErrors: string[],\n @Inject(VALIDATION_ERROR_MESSAGES) @Optional() globalErrorMessages?: StringDictionary)\n {\n this._errorMessages = extend(true, {}, defaultErrorMessages, globalErrorMessages);\n }\n\n //######################### public methods #########################\n\n /**\n * Gets validation errors result for provided control, or null of no errors are present\n * @param control - Form control instance that should be inspected for errors\n * @param messages - Object containing error messages that should patch existing error messages\n */\n public getErrors(control: FormControl, messages?: StringDictionary): ValidationErrorsResult\n {\n const errorMessages: StringDictionary = extend(true, {}, this._errorMessages, messages);\n\n //no control or no errors\n if(!control || !control.errors)\n {\n return null;\n }\n\n const result: ValidationErrorsResult =\n {\n errors: Object.keys(control.errors).filter(itm => this._ignoredValidationErrors.indexOf(itm) < 0),\n errorMessages: []\n };\n\n result.errors.forEach(error =>\n {\n const errorData = control.errors[error];\n \n //error message is present for error\n if(errorMessages[error])\n {\n result.errorMessages.push(this._stringLocalization.get(errorMessages[error], control.errors));\n }\n //display error data if it is string and there is missing translation\n else if(isString(errorData))\n {\n result.errorMessages.push(errorData);\n }\n //error data are array of strings, each string is considered error message\n else if(Array.isArray(errorData))\n {\n errorData.forEach(errorItm =>\n {\n if(isString(errorItm))\n {\n result.errorMessages.push(this._stringLocalization.get(errorItm, control.errors));\n }\n });\n }\n });\n\n return result;\n }\n}"]}
@@ -21,10 +21,10 @@ export class FormModelBuilder {
21
21
  injector: this._injector,
22
22
  });
23
23
  }
24
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: FormModelBuilder, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
25
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: FormModelBuilder }); }
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: FormModelBuilder, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
25
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: FormModelBuilder }); }
26
26
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: FormModelBuilder, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: FormModelBuilder, decorators: [{
28
28
  type: Injectable
29
29
  }], ctorParameters: () => [{ type: i0.Injector }] });
30
30
  //# sourceMappingURL=formModelBuilder.service.js.map
@@ -40,10 +40,10 @@ export class SubmittedService {
40
40
  this._submittedChangeSubject.next();
41
41
  }
42
42
  }
43
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: SubmittedService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
44
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: SubmittedService }); }
43
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: SubmittedService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
44
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: SubmittedService }); }
45
45
  }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: SubmittedService, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: SubmittedService, decorators: [{
47
47
  type: Injectable
48
48
  }] });
49
49
  //# sourceMappingURL=submitted.service.js.map
@@ -1,5 +1,5 @@
1
1
  import { Injectable, Inject, Optional } from '@angular/core';
2
- import { extend } from '@jscrpt/common';
2
+ import { extend } from '@jscrpt/common/extend';
3
3
  import { ErrorMessagesExtractor } from '../errorMessagesExtractor/errorMessagesExtractor.service';
4
4
  import { VALIDATION_ERROR_RENDERER_FACTORY_OPTIONS } from '../../misc/tokens';
5
5
  import { DefaultValidationErrorsComponent, DefaultValidationErrorsContainerComponent } from '../../components';
@@ -25,10 +25,10 @@ export class ValidationErrorRendererFactory {
25
25
  create(control, containerView, injector, isSubmittedOrDirty) {
26
26
  return new this._options.rendererType(this._errorMessagesExtractor, control, containerView, injector, isSubmittedOrDirty, this._options);
27
27
  }
28
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ValidationErrorRendererFactory, deps: [{ token: i1.ErrorMessagesExtractor }, { token: VALIDATION_ERROR_RENDERER_FACTORY_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
29
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ValidationErrorRendererFactory, providedIn: 'root' }); }
28
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ValidationErrorRendererFactory, deps: [{ token: i1.ErrorMessagesExtractor }, { token: VALIDATION_ERROR_RENDERER_FACTORY_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
29
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ValidationErrorRendererFactory, providedIn: 'root' }); }
30
30
  }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ValidationErrorRendererFactory, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ValidationErrorRendererFactory, decorators: [{
32
32
  type: Injectable,
33
33
  args: [{ providedIn: 'root' }]
34
34
  }], ctorParameters: () => [{ type: i1.ErrorMessagesExtractor }, { type: undefined, decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"validationErrorRenderer.service.js","sourceRoot":"","sources":["../../../../../forms/src/services/validationErrorRenderer/validationErrorRender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I,CAAC,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAC,CAAC,CAAC;QACzH,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACpC,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,eAAe,GACrB;IACI,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,sBAAsB;IACvC,YAAY,EAAE,8BAA8B;IAC5C,SAAS,EAAE,gCAAgC;IAC3C,SAAS,EAAE,yCAAyC;CACvD,CAAC","sourcesContent":["import {Injectable, Inject, Optional, Injector, ComponentRef} from '@angular/core';\nimport {FormControl} from '@angular/forms';\nimport {extend, StringDictionary} from '@jscrpt/common';\n\nimport {ErrorMessagesExtractor} from '../errorMessagesExtractor/errorMessagesExtractor.service';\nimport {ValidationErrorRenderer, IsSubmittedOrDirtyFunc, ValidationErrorsRendererOptions, ValidationErrorRendererFactoryOptions, ValidationErrorsContainerComponent} from './validationErrorRenderer.interface';\nimport {ValidationErrorsResult} from '../errorMessagesExtractor/errorMessagesExtractor.interface';\nimport {VALIDATION_ERROR_RENDERER_FACTORY_OPTIONS} from '../../misc/tokens';\nimport {ValidationErrorsContainerView} from '../../misc/validationErrorsContainerView';\nimport {DefaultValidationErrorsComponent, DefaultValidationErrorsContainerComponent} from '../../components';\n\n/**\n * Service used for creating validation errors renderer\n */\n@Injectable({providedIn: 'root'})\nexport class ValidationErrorRendererFactory\n{\n //######################### protected fields #########################\n\n /**\n * Options for validation error renderer factory\n */\n protected _options: ValidationErrorRendererFactoryOptions;\n\n //######################### constructor #########################\n constructor(protected _errorMessagesExtractor: ErrorMessagesExtractor,\n @Optional() @Inject(VALIDATION_ERROR_RENDERER_FACTORY_OPTIONS) options: ValidationErrorRendererFactoryOptions)\n {\n this._options = extend(true, {}, DEFAULT_OPTIONS, options);\n }\n\n //######################### public methods #########################\n\n /**\n * Creates new instance of ValidationErrorRenderer\n * @param control - Control that is being processed for errors\n * @param containerView - Class that stores view container for rendering errors\n * @param injector - Injector for obtaining dependencies\n * @param isSubmittedOrDirty - Function used for testing if control is submitted or dirty\n */\n public create(control: FormControl,\n containerView: ValidationErrorsContainerView,\n injector: Injector,\n isSubmittedOrDirty: IsSubmittedOrDirtyFunc): ValidationErrorRenderer\n {\n return new this._options.rendererType(this._errorMessagesExtractor,\n control,\n containerView,\n injector,\n isSubmittedOrDirty,\n this._options);\n }\n}\n\n/**\n * Default implementation of validation error renderer\n */\nexport class DefaultValidationErrorRenderer implements ValidationErrorRenderer\n{\n //######################### protected fields #########################\n\n /**\n * Object storing last obtained errors\n */\n protected _lastErrors: ValidationErrorsResult;\n\n /**\n * Component used as validation errors container\n */\n protected _container: ComponentRef<ValidationErrorsContainerComponent>;\n\n //######################### constructor #########################\n constructor(protected _errorMessagesExtractor: ErrorMessagesExtractor,\n protected _control: FormControl,\n protected _containerView: ValidationErrorsContainerView,\n protected _injector: Injector,\n protected _isSubmittedOrDirty: IsSubmittedOrDirtyFunc,\n protected _options: ValidationErrorsRendererOptions)\n {\n this._initialize();\n }\n\n //######################### public methods - implementation of ValiDationErrorRenderer #########################\n\n /**\n * @inheritdoc\n */\n public destroy(): void\n {\n this._containerView.viewContainer.clear();\n this._container = null;\n }\n\n /**\n * @inheritdoc\n */\n public update(options: ValidationErrorsRendererOptions, errorMessages?: StringDictionary): boolean\n {\n let result = false;\n this._lastErrors = this._errorMessagesExtractor.getErrors(this._control, errorMessages);\n\n //has errors\n if(this._lastErrors)\n {\n this._isSubmittedOrDirty(() =>\n {\n // const errorsClasses = this._lastErrors.errors.map(error => `${this._options.prefix}${error.toLowerCase()}${this._options.suffix}`);\n const opts = extend(true, {}, this._options, options);\n\n this._container.instance.show(this._lastErrors, opts);\n result = true;\n },\n () =>\n {\n this._container.instance.hide();\n result = false;\n });\n }\n else\n {\n this._container.instance.hide();\n result = false;\n }\n\n return result;\n }\n\n /**\n * Initialize renderer\n */\n protected _initialize(): void\n {\n this._container = this._containerView.viewContainer.createComponent(this._options.container, {injector: this._injector});\n this._container.instance.hide();\n }\n}\n\n/**\n * Default options for validation error renderer factory\n */\nconst DEFAULT_OPTIONS: ValidationErrorRendererFactoryOptions =\n{\n prefix: 'ng-',\n suffix: '-error',\n wrapperDivClass: 'validation-error-div',\n rendererType: DefaultValidationErrorRenderer,\n component: DefaultValidationErrorsComponent,\n container: DefaultValidationErrorsContainerComponent,\n};"]}
1
+ {"version":3,"file":"validationErrorRenderer.service.js","sourceRoot":"","sources":["../../../../../forms/src/services/validationErrorRenderer/validationErrorRenderer.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAyB,MAAM,eAAe,CAAC;AAGnF,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAE7C,OAAO,EAAC,sBAAsB,EAAC,MAAM,0DAA0D,CAAC;AAGhG,OAAO,EAAC,yCAAyC,EAAC,MAAM,mBAAmB,CAAC;AAE5E,OAAO,EAAC,gCAAgC,EAAE,yCAAyC,EAAC,MAAM,kBAAkB,CAAC;;;AAE7G;;GAEG;AAEH,MAAM,OAAO,8BAA8B;IASvC,iEAAiE;IACjE,YAAsB,uBAA+C,EACM,OAA8C;QADnG,4BAAuB,GAAvB,uBAAuB,CAAwB;QAGjE,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED,oEAAoE;IAEpE;;;;;;OAMG;IACI,MAAM,CAAC,OAAoB,EACpB,aAA4C,EAC5C,QAAkB,EAClB,kBAA0C;QAEpD,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,uBAAuB,EAC5B,OAAO,EACP,aAAa,EACb,QAAQ,EACR,kBAAkB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AC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;gBACtD,MAAM,GAAG,IAAI,CAAC;YAClB,CAAC,EACD,GAAG,EAAE;gBAED,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;gBAChC,MAAM,GAAG,KAAK,CAAC;YACnB,CAAC,CAAC,CAAC;QAChC,CAAC;aAED,CAAC;YACG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YAChC,MAAM,GAAG,KAAK,CAAC;QACnB,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IAED;;OAEG;IACO,WAAW;QAEjB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAC,CAAC,CAAC;QACzH,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACpC,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,eAAe,GACrB;IACI,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,sBAAsB;IACvC,YAAY,EAAE,8BAA8B;IAC5C,SAAS,EAAE,gCAAgC;IAC3C,SAAS,EAAE,yCAAyC;CACvD,CAAC","sourcesContent":["import {Injectable, Inject, Optional, Injector, ComponentRef} from '@angular/core';\nimport {FormControl} from '@angular/forms';\nimport {StringDictionary} from '@jscrpt/common';\nimport {extend} from '@jscrpt/common/extend';\n\nimport {ErrorMessagesExtractor} from '../errorMessagesExtractor/errorMessagesExtractor.service';\nimport {ValidationErrorRenderer, IsSubmittedOrDirtyFunc, ValidationErrorsRendererOptions, ValidationErrorRendererFactoryOptions, ValidationErrorsContainerComponent} from './validationErrorRenderer.interface';\nimport {ValidationErrorsResult} from '../errorMessagesExtractor/errorMessagesExtractor.interface';\nimport {VALIDATION_ERROR_RENDERER_FACTORY_OPTIONS} from '../../misc/tokens';\nimport {ValidationErrorsContainerView} from '../../misc/validationErrorsContainerView';\nimport {DefaultValidationErrorsComponent, DefaultValidationErrorsContainerComponent} from '../../components';\n\n/**\n * Service used for creating validation errors renderer\n */\n@Injectable({providedIn: 'root'})\nexport class ValidationErrorRendererFactory\n{\n //######################### protected fields #########################\n\n /**\n * Options for validation error renderer factory\n */\n protected _options: ValidationErrorRendererFactoryOptions;\n\n //######################### constructor #########################\n constructor(protected _errorMessagesExtractor: ErrorMessagesExtractor,\n @Optional() @Inject(VALIDATION_ERROR_RENDERER_FACTORY_OPTIONS) options: ValidationErrorRendererFactoryOptions)\n {\n this._options = extend(true, {}, DEFAULT_OPTIONS, options);\n }\n\n //######################### public methods #########################\n\n /**\n * Creates new instance of ValidationErrorRenderer\n * @param control - Control that is being processed for errors\n * @param containerView - Class that stores view container for rendering errors\n * @param injector - Injector for obtaining dependencies\n * @param isSubmittedOrDirty - Function used for testing if control is submitted or dirty\n */\n public create(control: FormControl,\n containerView: ValidationErrorsContainerView,\n injector: Injector,\n isSubmittedOrDirty: IsSubmittedOrDirtyFunc): ValidationErrorRenderer\n {\n return new this._options.rendererType(this._errorMessagesExtractor,\n control,\n containerView,\n injector,\n isSubmittedOrDirty,\n this._options);\n }\n}\n\n/**\n * Default implementation of validation error renderer\n */\nexport class DefaultValidationErrorRenderer implements ValidationErrorRenderer\n{\n //######################### protected fields #########################\n\n /**\n * Object storing last obtained errors\n */\n protected _lastErrors: ValidationErrorsResult;\n\n /**\n * Component used as validation errors container\n */\n protected _container: ComponentRef<ValidationErrorsContainerComponent>;\n\n //######################### constructor #########################\n constructor(protected _errorMessagesExtractor: ErrorMessagesExtractor,\n protected _control: FormControl,\n protected _containerView: ValidationErrorsContainerView,\n protected _injector: Injector,\n protected _isSubmittedOrDirty: IsSubmittedOrDirtyFunc,\n protected _options: ValidationErrorsRendererOptions)\n {\n this._initialize();\n }\n\n //######################### public methods - implementation of ValiDationErrorRenderer #########################\n\n /**\n * @inheritdoc\n */\n public destroy(): void\n {\n this._containerView.viewContainer.clear();\n this._container = null;\n }\n\n /**\n * @inheritdoc\n */\n public update(options: ValidationErrorsRendererOptions, errorMessages?: StringDictionary): boolean\n {\n let result = false;\n this._lastErrors = this._errorMessagesExtractor.getErrors(this._control, errorMessages);\n\n //has errors\n if(this._lastErrors)\n {\n this._isSubmittedOrDirty(() =>\n {\n // const errorsClasses = this._lastErrors.errors.map(error => `${this._options.prefix}${error.toLowerCase()}${this._options.suffix}`);\n const opts = extend(true, {}, this._options, options);\n\n this._container.instance.show(this._lastErrors, opts);\n result = true;\n },\n () =>\n {\n this._container.instance.hide();\n result = false;\n });\n }\n else\n {\n this._container.instance.hide();\n result = false;\n }\n\n return result;\n }\n\n /**\n * Initialize renderer\n */\n protected _initialize(): void\n {\n this._container = this._containerView.viewContainer.createComponent(this._options.container, {injector: this._injector});\n this._container.instance.hide();\n }\n}\n\n/**\n * Default options for validation error renderer factory\n */\nconst DEFAULT_OPTIONS: ValidationErrorRendererFactoryOptions =\n{\n prefix: 'ng-',\n suffix: '-error',\n wrapperDivClass: 'validation-error-div',\n rendererType: DefaultValidationErrorRenderer,\n component: DefaultValidationErrorsComponent,\n container: DefaultValidationErrorsContainerComponent,\n};"]}
@@ -61,12 +61,12 @@ export class HotkeysCheatsheetComponent {
61
61
  toggleCheatSheet() {
62
62
  this.helpVisible$.next(!this.helpVisible$.value);
63
63
  }
64
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: HotkeysCheatsheetComponent, deps: [{ token: i1.HotkeysService }], target: i0.ɵɵFactoryTarget.Component }); }
65
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.1", type: HotkeysCheatsheetComponent, isStandalone: true, selector: "hotkeys-cheatsheet", inputs: { title: "title" }, ngImport: i0, template: "<div class=\"cfp-hotkeys-container fade\" [ngClass]=\"{'in': helpVisible$|async}\" style=\"display:none\">\n <div class=\"cfp-hotkeys\">\n <h4 class=\"cfp-hotkeys-title\">{{title}}</h4>\n\n <table>\n <tbody>\n @for(hotkey of hotkeys; track hotkey)\n {\n <tr>\n <td class=\"cfp-hotkeys-keys\">\n @for(key of hotkey.formatted; track key)\n {\n <span class=\"cfp-hotkeys-key\">{{key}}</span>\n }\n </td>\n \n <td class=\"cfp-hotkeys-text\">{{hotkey.description}}</td>\n </tr>\n }\n </tbody>\n </table>\n\n <div class=\"cfp-hotkeys-close\" (click)=\"toggleCheatSheet()\">&#215;</div>\n </div>\n</div>", styles: [".cfp-hotkeys-container \n{\n display: table !important;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n color: #333;\n font-size: 1em;\n background-color: rgba(255, 255, 255, 0.9);\n}\n\n.cfp-hotkeys-container.fade \n{\n z-index: -1024;\n visibility: hidden;\n opacity: 0;\n -webkit-transition: opacity 0.15s linear;\n -moz-transition: opacity 0.15s linear;\n -o-transition: opacity 0.15s linear;\n transition: opacity 0.15s linear;\n}\n\n.cfp-hotkeys-container.fade.in \n{\n z-index: 10002;\n visibility: visible;\n opacity: 1;\n}\n\n.cfp-hotkeys-title \n{\n font-weight: bold;\n text-align: center;\n font-size: 1.2em;\n}\n\n.cfp-hotkeys \n{\n width: 100%;\n height: 100%;\n display: table-cell;\n vertical-align: middle;\n}\n\n.cfp-hotkeys table \n{\n margin: auto;\n color: #333;\n}\n\n.cfp-content \n{\n display: table-cell;\n vertical-align: middle;\n}\n\n.cfp-hotkeys-keys \n{\n padding: 5px;\n text-align: right;\n}\n\n.cfp-hotkeys-key \n{\n display: inline-block;\n color: #fff;\n background-color: #333;\n border: 1px solid #333;\n border-radius: 5px;\n text-align: center;\n margin-right: 5px;\n box-shadow: inset 0 1px 0 #666, 0 1px 0 #bbb;\n padding: 5px 9px;\n font-size: 1em;\n}\n\n.cfp-hotkeys-text \n{\n padding-left: 10px;\n font-size: 1em;\n}\n\n.cfp-hotkeys-close \n{\n position: fixed;\n top: 20px;\n right: 20px;\n font-size: 2em;\n font-weight: bold;\n padding: 5px 10px;\n border: 1px solid #ddd;\n border-radius: 5px;\n min-height: 45px;\n min-width: 45px;\n text-align: center;\n}\n\n.cfp-hotkeys-close:hover \n{\n background-color: #fff;\n cursor: pointer;\n}\n\n@media all and (max-width: 500px) \n{\n .cfp-hotkeys \n {\n font-size: 0.8em;\n }\n}\n\n@media all and (min-width: 750px) \n{\n .cfp-hotkeys \n {\n font-size: 1.2em;\n }\n}"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
64
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HotkeysCheatsheetComponent, deps: [{ token: i1.HotkeysService }], target: i0.ɵɵFactoryTarget.Component }); }
65
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.0", type: HotkeysCheatsheetComponent, isStandalone: true, selector: "hotkeys-cheatsheet", inputs: { title: "title" }, ngImport: i0, template: "<div class=\"cfp-hotkeys-container fade\" [ngClass]=\"{'in': helpVisible$|async}\" style=\"display:none\">\n <div class=\"cfp-hotkeys\">\n <h4 class=\"cfp-hotkeys-title\">{{title}}</h4>\n\n <table>\n <tbody>\n @for(hotkey of hotkeys; track hotkey)\n {\n <tr>\n <td class=\"cfp-hotkeys-keys\">\n @for(key of hotkey.formatted; track key)\n {\n <span class=\"cfp-hotkeys-key\">{{key}}</span>\n }\n </td>\n \n <td class=\"cfp-hotkeys-text\">{{hotkey.description}}</td>\n </tr>\n }\n </tbody>\n </table>\n\n <div class=\"cfp-hotkeys-close\" (click)=\"toggleCheatSheet()\">&#215;</div>\n </div>\n</div>", styles: [".cfp-hotkeys-container \n{\n display: table !important;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n color: #333;\n font-size: 1em;\n background-color: rgba(255, 255, 255, 0.9);\n}\n\n.cfp-hotkeys-container.fade \n{\n z-index: -1024;\n visibility: hidden;\n opacity: 0;\n -webkit-transition: opacity 0.15s linear;\n -moz-transition: opacity 0.15s linear;\n -o-transition: opacity 0.15s linear;\n transition: opacity 0.15s linear;\n}\n\n.cfp-hotkeys-container.fade.in \n{\n z-index: 10002;\n visibility: visible;\n opacity: 1;\n}\n\n.cfp-hotkeys-title \n{\n font-weight: bold;\n text-align: center;\n font-size: 1.2em;\n}\n\n.cfp-hotkeys \n{\n width: 100%;\n height: 100%;\n display: table-cell;\n vertical-align: middle;\n}\n\n.cfp-hotkeys table \n{\n margin: auto;\n color: #333;\n}\n\n.cfp-content \n{\n display: table-cell;\n vertical-align: middle;\n}\n\n.cfp-hotkeys-keys \n{\n padding: 5px;\n text-align: right;\n}\n\n.cfp-hotkeys-key \n{\n display: inline-block;\n color: #fff;\n background-color: #333;\n border: 1px solid #333;\n border-radius: 5px;\n text-align: center;\n margin-right: 5px;\n box-shadow: inset 0 1px 0 #666, 0 1px 0 #bbb;\n padding: 5px 9px;\n font-size: 1em;\n}\n\n.cfp-hotkeys-text \n{\n padding-left: 10px;\n font-size: 1em;\n}\n\n.cfp-hotkeys-close \n{\n position: fixed;\n top: 20px;\n right: 20px;\n font-size: 2em;\n font-weight: bold;\n padding: 5px 10px;\n border: 1px solid #ddd;\n border-radius: 5px;\n min-height: 45px;\n min-width: 45px;\n text-align: center;\n}\n\n.cfp-hotkeys-close:hover \n{\n background-color: #fff;\n cursor: pointer;\n}\n\n@media all and (max-width: 500px) \n{\n .cfp-hotkeys \n {\n font-size: 0.8em;\n }\n}\n\n@media all and (min-width: 750px) \n{\n .cfp-hotkeys \n {\n font-size: 1.2em;\n }\n}"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
66
66
  }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: HotkeysCheatsheetComponent, decorators: [{
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HotkeysCheatsheetComponent, decorators: [{
68
68
  type: Component,
69
- args: [{ selector: 'hotkeys-cheatsheet', standalone: true, imports: [
69
+ args: [{ selector: 'hotkeys-cheatsheet', imports: [
70
70
  CommonModule,
71
71
  ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"cfp-hotkeys-container fade\" [ngClass]=\"{'in': helpVisible$|async}\" style=\"display:none\">\n <div class=\"cfp-hotkeys\">\n <h4 class=\"cfp-hotkeys-title\">{{title}}</h4>\n\n <table>\n <tbody>\n @for(hotkey of hotkeys; track hotkey)\n {\n <tr>\n <td class=\"cfp-hotkeys-keys\">\n @for(key of hotkey.formatted; track key)\n {\n <span class=\"cfp-hotkeys-key\">{{key}}</span>\n }\n </td>\n \n <td class=\"cfp-hotkeys-text\">{{hotkey.description}}</td>\n </tr>\n }\n </tbody>\n </table>\n\n <div class=\"cfp-hotkeys-close\" (click)=\"toggleCheatSheet()\">&#215;</div>\n </div>\n</div>", styles: [".cfp-hotkeys-container \n{\n display: table !important;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n color: #333;\n font-size: 1em;\n background-color: rgba(255, 255, 255, 0.9);\n}\n\n.cfp-hotkeys-container.fade \n{\n z-index: -1024;\n visibility: hidden;\n opacity: 0;\n -webkit-transition: opacity 0.15s linear;\n -moz-transition: opacity 0.15s linear;\n -o-transition: opacity 0.15s linear;\n transition: opacity 0.15s linear;\n}\n\n.cfp-hotkeys-container.fade.in \n{\n z-index: 10002;\n visibility: visible;\n opacity: 1;\n}\n\n.cfp-hotkeys-title \n{\n font-weight: bold;\n text-align: center;\n font-size: 1.2em;\n}\n\n.cfp-hotkeys \n{\n width: 100%;\n height: 100%;\n display: table-cell;\n vertical-align: middle;\n}\n\n.cfp-hotkeys table \n{\n margin: auto;\n color: #333;\n}\n\n.cfp-content \n{\n display: table-cell;\n vertical-align: middle;\n}\n\n.cfp-hotkeys-keys \n{\n padding: 5px;\n text-align: right;\n}\n\n.cfp-hotkeys-key \n{\n display: inline-block;\n color: #fff;\n background-color: #333;\n border: 1px solid #333;\n border-radius: 5px;\n text-align: center;\n margin-right: 5px;\n box-shadow: inset 0 1px 0 #666, 0 1px 0 #bbb;\n padding: 5px 9px;\n font-size: 1em;\n}\n\n.cfp-hotkeys-text \n{\n padding-left: 10px;\n font-size: 1em;\n}\n\n.cfp-hotkeys-close \n{\n position: fixed;\n top: 20px;\n right: 20px;\n font-size: 2em;\n font-weight: bold;\n padding: 5px 10px;\n border: 1px solid #ddd;\n border-radius: 5px;\n min-height: 45px;\n min-width: 45px;\n text-align: center;\n}\n\n.cfp-hotkeys-close:hover \n{\n background-color: #fff;\n cursor: pointer;\n}\n\n@media all and (max-width: 500px) \n{\n .cfp-hotkeys \n {\n font-size: 0.8em;\n }\n}\n\n@media all and (min-width: 750px) \n{\n .cfp-hotkeys \n {\n font-size: 1.2em;\n }\n}"] }]
72
72
  }], ctorParameters: () => [{ type: i1.HotkeysService }], propDecorators: { title: [{
@@ -1 +1 @@
1
- {"version":3,"file":"cheatSheet.component.js","sourceRoot":"","sources":["../../../../../hotkeys/src/components/cheatSheet/cheatSheet.component.ts","../../../../../hotkeys/src/components/cheatSheet/cheatSheet.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAqB,WAAW,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AAChH,OAAO,EAAC,YAAY,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAC,eAAe,EAAe,MAAM,MAAM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,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC;8GA/EQ,0BAA0B;kGAA1B,0BAA0B,0GCpBvC,y5BAwBM,+/DDRE,YAAY;;2FAIP,0BAA0B;kBAZtC,SAAS;+BAEI,oBAAoB,cAGlB,IAAI,WAEhB;wBACI,YAAY;qBACf,mBACgB,uBAAuB,CAAC,MAAM;mFAuBxC,KAAK;sBADX,KAAK","sourcesContent":["import {ChangeDetectionStrategy, Component, Input, OnDestroy, OnInit, PLATFORM_ID, inject} from '@angular/core';\nimport {CommonModule, isPlatformBrowser} from '@angular/common';\nimport {BehaviorSubject, Subscription} from 'rxjs';\nimport {Hotkey, HotkeysService} from 'angular2-hotkeys';\n\n/**\n * Component used for displaying current active hotkeys as cheat cheet\n */\n@Component(\n{\n selector: 'hotkeys-cheatsheet',\n templateUrl: 'cheatSheet.component.html',\n styleUrl: 'cheatSheet.component.css',\n standalone: true,\n imports:\n [\n CommonModule,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class HotkeysCheatsheetComponent implements OnInit, OnDestroy\n{\n //######################### private fields #########################\n\n /**\n * Indication whether is running in browser\n */\n private _isBrowser: boolean = isPlatformBrowser(inject(PLATFORM_ID));\n\n //######################### public properties #########################\n\n public helpVisible$: BehaviorSubject<boolean> = new BehaviorSubject(false);\n public subscription: Subscription|undefined|null;\n public hotkeys: Hotkey[]|undefined|null;\n\n //######################### public properties - inputs #########################\n\n /**\n * Title displayed in header of cheat sheet\n */\n @Input()\n public title: string = 'Keyboard Shortcuts:';\n\n //######################### constructor #########################\n constructor(private _hotkeysService: HotkeysService)\n {\n }\n\n //######################### public methods - implementation of OnInit #########################\n\n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n if(!this._isBrowser)\n {\n return;\n }\n\n this.subscription = this._hotkeysService.cheatSheetToggle.subscribe((isOpen) =>\n {\n if (isOpen !== false)\n {\n this.hotkeys = this._hotkeysService.hotkeys.filter(hotkey => hotkey.description);\n }\n\n if (isOpen === false)\n {\n this.helpVisible$.next(false);\n }\n else\n {\n this.toggleCheatSheet();\n }\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n if (this.subscription)\n {\n this.subscription.unsubscribe();\n }\n }\n\n //######################### public methods #########################\n\n /**\n * Toggles cheatsheet visibility\n */\n public toggleCheatSheet(): void\n {\n this.helpVisible$.next(!this.helpVisible$.value);\n }\n}","<div class=\"cfp-hotkeys-container fade\" [ngClass]=\"{'in': helpVisible$|async}\" style=\"display:none\">\n <div class=\"cfp-hotkeys\">\n <h4 class=\"cfp-hotkeys-title\">{{title}}</h4>\n\n <table>\n <tbody>\n @for(hotkey of hotkeys; track hotkey)\n {\n <tr>\n <td class=\"cfp-hotkeys-keys\">\n @for(key of hotkey.formatted; track key)\n {\n <span class=\"cfp-hotkeys-key\">{{key}}</span>\n }\n </td>\n \n <td class=\"cfp-hotkeys-text\">{{hotkey.description}}</td>\n </tr>\n }\n </tbody>\n </table>\n\n <div class=\"cfp-hotkeys-close\" (click)=\"toggleCheatSheet()\">&#215;</div>\n </div>\n</div>"]}
1
+ {"version":3,"file":"cheatSheet.component.js","sourceRoot":"","sources":["../../../../../hotkeys/src/components/cheatSheet/cheatSheet.component.ts","../../../../../hotkeys/src/components/cheatSheet/cheatSheet.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAqB,WAAW,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AAChH,OAAO,EAAC,YAAY,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAC,eAAe,EAAe,MAAM,MAAM,CAAC;AACnD,OAAO,EAAS,cAAc,EAAC,MAAM,kBAAkB,CAAC;;;;AAExD;;GAEG;AAYH,MAAM,OAAO,0BAA0B;IAuBnC,iEAAiE;IACjE,YAAoB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nBvC,y5BAwBM,+/DDTE,YAAY;;2FAIP,0BAA0B;kBAXtC,SAAS;+BAEI,oBAAoB,WAI9B;wBACI,YAAY;qBACf,mBACgB,uBAAuB,CAAC,MAAM;mFAuBxC,KAAK;sBADX,KAAK","sourcesContent":["import {ChangeDetectionStrategy, Component, Input, OnDestroy, OnInit, PLATFORM_ID, inject} from '@angular/core';\nimport {CommonModule, isPlatformBrowser} from '@angular/common';\nimport {BehaviorSubject, Subscription} from 'rxjs';\nimport {Hotkey, HotkeysService} from 'angular2-hotkeys';\n\n/**\n * Component used for displaying current active hotkeys as cheat cheet\n */\n@Component(\n{\n selector: 'hotkeys-cheatsheet',\n templateUrl: 'cheatSheet.component.html',\n styleUrl: 'cheatSheet.component.css',\n imports:\n [\n CommonModule,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class HotkeysCheatsheetComponent implements OnInit, OnDestroy\n{\n //######################### private fields #########################\n\n /**\n * Indication whether is running in browser\n */\n private _isBrowser: boolean = isPlatformBrowser(inject(PLATFORM_ID));\n\n //######################### public properties #########################\n\n public helpVisible$: BehaviorSubject<boolean> = new BehaviorSubject(false);\n public subscription: Subscription|undefined|null;\n public hotkeys: Hotkey[]|undefined|null;\n\n //######################### public properties - inputs #########################\n\n /**\n * Title displayed in header of cheat sheet\n */\n @Input()\n public title: string = 'Keyboard Shortcuts:';\n\n //######################### constructor #########################\n constructor(private _hotkeysService: HotkeysService)\n {\n }\n\n //######################### public methods - implementation of OnInit #########################\n\n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n if(!this._isBrowser)\n {\n return;\n }\n\n this.subscription = this._hotkeysService.cheatSheetToggle.subscribe((isOpen) =>\n {\n if (isOpen !== false)\n {\n this.hotkeys = this._hotkeysService.hotkeys.filter(hotkey => hotkey.description);\n }\n\n if (isOpen === false)\n {\n this.helpVisible$.next(false);\n }\n else\n {\n this.toggleCheatSheet();\n }\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n if (this.subscription)\n {\n this.subscription.unsubscribe();\n }\n }\n\n //######################### public methods #########################\n\n /**\n * Toggles cheatsheet visibility\n */\n public toggleCheatSheet(): void\n {\n this.helpVisible$.next(!this.helpVisible$.value);\n }\n}","<div class=\"cfp-hotkeys-container fade\" [ngClass]=\"{'in': helpVisible$|async}\" style=\"display:none\">\n <div class=\"cfp-hotkeys\">\n <h4 class=\"cfp-hotkeys-title\">{{title}}</h4>\n\n <table>\n <tbody>\n @for(hotkey of hotkeys; track hotkey)\n {\n <tr>\n <td class=\"cfp-hotkeys-keys\">\n @for(key of hotkey.formatted; track key)\n {\n <span class=\"cfp-hotkeys-key\">{{key}}</span>\n }\n </td>\n \n <td class=\"cfp-hotkeys-text\">{{hotkey.description}}</td>\n </tr>\n }\n </tbody>\n </table>\n\n <div class=\"cfp-hotkeys-close\" (click)=\"toggleCheatSheet()\">&#215;</div>\n </div>\n</div>"]}
@@ -127,10 +127,10 @@ export class AppHotkeysService {
127
127
  }
128
128
  this._hotkeys.push(hotkey);
129
129
  }
130
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: AppHotkeysService, deps: [{ token: i1.HotkeysService }], target: i0.ɵɵFactoryTarget.Injectable }); }
131
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: AppHotkeysService }); }
130
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: AppHotkeysService, deps: [{ token: i1.HotkeysService }], target: i0.ɵɵFactoryTarget.Injectable }); }
131
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: AppHotkeysService }); }
132
132
  }
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: AppHotkeysService, decorators: [{
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: AppHotkeysService, decorators: [{
134
134
  type: Injectable
135
135
  }], ctorParameters: () => [{ type: i1.HotkeysService }] });
136
136
  //# sourceMappingURL=appHotkeys.service.js.map
@@ -1,12 +1,12 @@
1
1
  import { Component, ChangeDetectionStrategy, Inject, Optional } from '@angular/core';
2
+ import { NgClass } from '@angular/common';
2
3
  import { MatDialogRef } from '@angular/material/dialog';
3
- import { extend } from '@jscrpt/common';
4
+ import { LocalizePipe } from '@anglr/common';
5
+ import { extend } from '@jscrpt/common/extend';
4
6
  import { CONFIRMATION_DIALOG_OPTIONS } from '../../misc/tokens';
5
7
  import { TITLED_DIALOG_DATA } from '../../misc/tokens';
6
8
  import * as i0 from "@angular/core";
7
9
  import * as i1 from "@angular/material/dialog";
8
- import * as i2 from "@angular/common";
9
- import * as i3 from "../../../../src/pipes/localize/localize.pipe";
10
10
  /**
11
11
  * Default options for dialog
12
12
  * @internal
@@ -32,12 +32,15 @@ export class ConfirmationDialogComponent {
32
32
  this.dialog = dialog;
33
33
  this.options = extend(true, {}, defaultOptions, options ?? {}, data);
34
34
  }
35
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ConfirmationDialogComponent, deps: [{ token: TITLED_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: CONFIRMATION_DIALOG_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
36
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: ConfirmationDialogComponent, selector: "confirmation-dialog", ngImport: i0, template: "<div>{{options?.confirmationText | localize}}</div>\r\n\r\n<div [ngClass]=\"options?.cssClasses?.buttonsContainerDiv\">\r\n <button [ngClass]=\"options?.cssClasses?.closeButton\" (click)=\"dialog.close(false)\">\r\n <span [ngClass]=\"options?.cssClasses?.closeButtonIcon\"></span>\r\n <span>{{options?.dialogCancelText | localize}}</span>\r\n </button>\r\n \r\n <button [ngClass]=\"options?.cssClasses?.confirmButton\" (click)=\"dialog.close(true)\">\r\n <span [ngClass]=\"options?.cssClasses?.confirmButtonIcon\"></span>\r\n <span>{{options?.dialogConfirmText | localize}}</span>\r\n </button>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i3.LocalizeSAPipe, name: "localize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
35
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ConfirmationDialogComponent, deps: [{ token: TITLED_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: CONFIRMATION_DIALOG_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
36
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0", type: ConfirmationDialogComponent, isStandalone: true, selector: "confirmation-dialog", ngImport: i0, template: "<div>{{options?.confirmationText | localize}}</div>\r\n\r\n<div [ngClass]=\"options?.cssClasses?.buttonsContainerDiv\">\r\n <button [ngClass]=\"options?.cssClasses?.closeButton\" (click)=\"dialog.close(false)\">\r\n <span [ngClass]=\"options?.cssClasses?.closeButtonIcon\"></span>\r\n <span>{{options?.dialogCancelText | localize}}</span>\r\n </button>\r\n \r\n <button [ngClass]=\"options?.cssClasses?.confirmButton\" (click)=\"dialog.close(true)\">\r\n <span [ngClass]=\"options?.cssClasses?.confirmButtonIcon\"></span>\r\n <span>{{options?.dialogConfirmText | localize}}</span>\r\n </button>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
37
37
  }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ConfirmationDialogComponent, decorators: [{
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ConfirmationDialogComponent, decorators: [{
39
39
  type: Component,
40
- args: [{ selector: 'confirmation-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div>{{options?.confirmationText | localize}}</div>\r\n\r\n<div [ngClass]=\"options?.cssClasses?.buttonsContainerDiv\">\r\n <button [ngClass]=\"options?.cssClasses?.closeButton\" (click)=\"dialog.close(false)\">\r\n <span [ngClass]=\"options?.cssClasses?.closeButtonIcon\"></span>\r\n <span>{{options?.dialogCancelText | localize}}</span>\r\n </button>\r\n \r\n <button [ngClass]=\"options?.cssClasses?.confirmButton\" (click)=\"dialog.close(true)\">\r\n <span [ngClass]=\"options?.cssClasses?.confirmButtonIcon\"></span>\r\n <span>{{options?.dialogConfirmText | localize}}</span>\r\n </button>\r\n</div>\r\n" }]
40
+ args: [{ selector: 'confirmation-dialog', imports: [
41
+ NgClass,
42
+ LocalizePipe,
43
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div>{{options?.confirmationText | localize}}</div>\r\n\r\n<div [ngClass]=\"options?.cssClasses?.buttonsContainerDiv\">\r\n <button [ngClass]=\"options?.cssClasses?.closeButton\" (click)=\"dialog.close(false)\">\r\n <span [ngClass]=\"options?.cssClasses?.closeButtonIcon\"></span>\r\n <span>{{options?.dialogCancelText | localize}}</span>\r\n </button>\r\n \r\n <button [ngClass]=\"options?.cssClasses?.confirmButton\" (click)=\"dialog.close(true)\">\r\n <span [ngClass]=\"options?.cssClasses?.confirmButtonIcon\"></span>\r\n <span>{{options?.dialogConfirmText | localize}}</span>\r\n </button>\r\n</div>\r\n" }]
41
44
  }], ctorParameters: () => [{ type: undefined, decorators: [{
42
45
  type: Inject,
43
46
  args: [TITLED_DIALOG_DATA]
@@ -1 +1 @@
1
- {"version":3,"file":"confirmationDialog.component.js","sourceRoot":"","sources":["../../../../../material/src/components/confirmationDialog/confirmationDialog.component.ts","../../../../../material/src/components/confirmationDialog/confirmationDialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AACnF,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAEtC,OAAO,EAAC,2BAA2B,EAAC,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAC;;;;;AAGrD;;;GAGG;AACH,MAAM,cAAc,GACpB;IACI,gBAAgB,EAAE,0BAA0B;IAC5C,gBAAgB,EAAE,IAAI;IACtB,iBAAiB,EAAE,KAAK;IACxB,UAAU,EACV;QACI,mBAAmB,EAAE,kCAAkC;QACvD,WAAW,EAAE,yCAAyC;QACtD,eAAe,EAAE,WAAW;QAC5B,aAAa,EAAE,iBAAiB;QAChC,iBAAiB,EAAE,aAAa;KACnC;CACJ,CAAC;AAEF;;GAEG;AAOH,MAAM,OAAO,2BAA2B;IAUpC,iEAAiE;IACjE,YAAwC,IAA+B,EACpD,MAAwD,EACd,OAAkC;QAD5E,WAAM,GAAN,MAAM,CAAkD;QAGvE,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,OAAO,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;8GAhBQ,2BAA2B,kBAWhB,kBAAkB,yCAElB,2BAA2B;kGAbtC,2BAA2B,2DCpCxC,6oBAaA;;2FDuBa,2BAA2B;kBANvC,SAAS;+BAEI,qBAAqB,mBAEd,uBAAuB,CAAC,MAAM;;0BAalC,MAAM;2BAAC,kBAAkB;;0BAEzB,MAAM;2BAAC,2BAA2B;;0BAAG,QAAQ","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional} from '@angular/core';\nimport {MatDialogRef} from '@angular/material/dialog';\nimport {extend} from '@jscrpt/common';\n\nimport {CONFIRMATION_DIALOG_OPTIONS} from '../../misc/tokens';\nimport {TITLED_DIALOG_DATA} from '../../misc/tokens';\nimport {ConfirmationDialogOptions} from '../../misc/interfaces/confirmationDialog.interface';\n\n/**\n * Default options for dialog\n * @internal\n */\nconst defaultOptions: ConfirmationDialogOptions =\n{\n confirmationText: 'Do you wish to continue?',\n dialogCancelText: 'No',\n dialogConfirmText: 'Yes',\n cssClasses:\n {\n buttonsContainerDiv: 'flex-row flex-end margin-top-big',\n closeButton: 'btn btn-danger margin-right-extra-small',\n closeButtonIcon: 'fa fa-ban',\n confirmButton: 'btn btn-primary',\n confirmButtonIcon: 'fa fa-check'\n }\n};\n\n/**\n * Confirmation dialog component\n */\n@Component(\n{\n selector: 'confirmation-dialog',\n templateUrl: 'confirmationDialog.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ConfirmationDialogComponent\n{\n //######################### public properties - template bindings #########################\n\n /**\n * Options used for confirmation dialog component\n * @internal\n */\n public options: ConfirmationDialogOptions;\n\n //######################### constructor #########################\n constructor(@Inject(TITLED_DIALOG_DATA) data: ConfirmationDialogOptions,\n public dialog: MatDialogRef<ConfirmationDialogOptions, boolean>,\n @Inject(CONFIRMATION_DIALOG_OPTIONS) @Optional() options: ConfirmationDialogOptions)\n {\n this.options = extend(true, {}, defaultOptions, options ?? {}, data);\n }\n}\n","<div>{{options?.confirmationText | localize}}</div>\r\n\r\n<div [ngClass]=\"options?.cssClasses?.buttonsContainerDiv\">\r\n <button [ngClass]=\"options?.cssClasses?.closeButton\" (click)=\"dialog.close(false)\">\r\n <span [ngClass]=\"options?.cssClasses?.closeButtonIcon\"></span>\r\n <span>{{options?.dialogCancelText | localize}}</span>\r\n </button>\r\n \r\n <button [ngClass]=\"options?.cssClasses?.confirmButton\" (click)=\"dialog.close(true)\">\r\n <span [ngClass]=\"options?.cssClasses?.confirmButtonIcon\"></span>\r\n <span>{{options?.dialogConfirmText | localize}}</span>\r\n </button>\r\n</div>\r\n"]}
1
+ {"version":3,"file":"confirmationDialog.component.js","sourceRoot":"","sources":["../../../../../material/src/components/confirmationDialog/confirmationDialog.component.ts","../../../../../material/src/components/confirmationDialog/confirmationDialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AACnF,OAAO,EAAC,OAAO,EAAC,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAE7C,OAAO,EAAC,2BAA2B,EAAC,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAC;;;AAGrD;;;GAGG;AACH,MAAM,cAAc,GACpB;IACI,gBAAgB,EAAE,0BAA0B;IAC5C,gBAAgB,EAAE,IAAI;IACtB,iBAAiB,EAAE,KAAK;IACxB,UAAU,EACV;QACI,mBAAmB,EAAE,kCAAkC;QACvD,WAAW,EAAE,yCAAyC;QACtD,eAAe,EAAE,WAAW;QAC5B,aAAa,EAAE,iBAAiB;QAChC,iBAAiB,EAAE,aAAa;KACnC;CACJ,CAAC;AAEF;;GAEG;AAYH,MAAM,OAAO,2BAA2B;IAUpC,iEAAiE;IACjE,YAAwC,IAA+B,EACpD,MAAwD,EACd,OAAkC;QAD5E,WAAM,GAAN,MAAM,CAAkD;QAGvE,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,OAAO,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;8GAhBQ,2BAA2B,kBAWhB,kBAAkB,yCAElB,2BAA2B;kGAbtC,2BAA2B,+EC3CxC,6oBAaA,4CDyBQ,OAAO,+EACP,YAAY;;2FAIP,2BAA2B;kBAXvC,SAAS;+BAEI,qBAAqB,WAG/B;wBACI,OAAO;wBACP,YAAY;qBACf,mBACgB,uBAAuB,CAAC,MAAM;;0BAalC,MAAM;2BAAC,kBAAkB;;0BAEzB,MAAM;2BAAC,2BAA2B;;0BAAG,QAAQ","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional} from '@angular/core';\nimport {NgClass} from '@angular/common';\nimport {MatDialogRef} from '@angular/material/dialog';\nimport {LocalizePipe} from '@anglr/common';\nimport {extend} from '@jscrpt/common/extend';\n\nimport {CONFIRMATION_DIALOG_OPTIONS} from '../../misc/tokens';\nimport {TITLED_DIALOG_DATA} from '../../misc/tokens';\nimport {ConfirmationDialogOptions} from '../../misc/interfaces/confirmationDialog.interface';\n\n/**\n * Default options for dialog\n * @internal\n */\nconst defaultOptions: ConfirmationDialogOptions =\n{\n confirmationText: 'Do you wish to continue?',\n dialogCancelText: 'No',\n dialogConfirmText: 'Yes',\n cssClasses:\n {\n buttonsContainerDiv: 'flex-row flex-end margin-top-big',\n closeButton: 'btn btn-danger margin-right-extra-small',\n closeButtonIcon: 'fa fa-ban',\n confirmButton: 'btn btn-primary',\n confirmButtonIcon: 'fa fa-check'\n }\n};\n\n/**\n * Confirmation dialog component\n */\n@Component(\n{\n selector: 'confirmation-dialog',\n templateUrl: 'confirmationDialog.component.html',\n imports:\n [\n NgClass,\n LocalizePipe,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ConfirmationDialogComponent\n{\n //######################### public properties - template bindings #########################\n\n /**\n * Options used for confirmation dialog component\n * @internal\n */\n public options: ConfirmationDialogOptions;\n\n //######################### constructor #########################\n constructor(@Inject(TITLED_DIALOG_DATA) data: ConfirmationDialogOptions,\n public dialog: MatDialogRef<ConfirmationDialogOptions, boolean>,\n @Inject(CONFIRMATION_DIALOG_OPTIONS) @Optional() options: ConfirmationDialogOptions)\n {\n this.options = extend(true, {}, defaultOptions, options ?? {}, data);\n }\n}\n","<div>{{options?.confirmationText | localize}}</div>\r\n\r\n<div [ngClass]=\"options?.cssClasses?.buttonsContainerDiv\">\r\n <button [ngClass]=\"options?.cssClasses?.closeButton\" (click)=\"dialog.close(false)\">\r\n <span [ngClass]=\"options?.cssClasses?.closeButtonIcon\"></span>\r\n <span>{{options?.dialogCancelText | localize}}</span>\r\n </button>\r\n \r\n <button [ngClass]=\"options?.cssClasses?.confirmButton\" (click)=\"dialog.close(true)\">\r\n <span [ngClass]=\"options?.cssClasses?.confirmButtonIcon\"></span>\r\n <span>{{options?.dialogConfirmText | localize}}</span>\r\n </button>\r\n</div>\r\n"]}
@@ -1,18 +1,23 @@
1
1
  import { Component, ChangeDetectionStrategy } from '@angular/core';
2
+ import { NgComponentOutlet } from '@angular/common';
3
+ import { CdkDrag, CdkDragHandle } from '@angular/cdk/drag-drop';
4
+ import { LocalizePipe } from '@anglr/common';
2
5
  import { TitledDialogComponent } from '../titledDialog/titledDialog.component';
3
6
  import * as i0 from "@angular/core";
4
- import * as i1 from "../../../../src/directives/ngComponentOutletEx/ngComponentOutletEx.directive";
5
- import * as i2 from "@angular/cdk/drag-drop";
6
- import * as i3 from "../../../../src/pipes/localize/localize.pipe";
7
7
  /**
8
8
  * Component used as wrapper for material dialog enhanced with title, which is movable
9
9
  */
10
10
  export class MovableTitledDialogComponent extends TitledDialogComponent {
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: MovableTitledDialogComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
12
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: MovableTitledDialogComponent, selector: "movable-titled-dialog", usesInheritance: true, ngImport: i0, template: "<div class=\"flex-row titled-dialog-title\"\r\n cdkDrag\r\n cdkDragRootElement=\".cdk-overlay-pane\" \r\n cdkDragHandle>\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"], dependencies: [{ kind: "directive", type: i1.NgComponentOutletEx, selector: "[ngComponentOutletEx]", inputs: ["ngComponentOutletEx", "ngComponentOutletExInjector", "ngComponentOutletExContent"], outputs: ["ngComponentOutletExCreated"], exportAs: ["ngComponentOutletEx"] }, { kind: "directive", type: i2.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i2.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "pipe", type: i3.LocalizeSAPipe, name: "localize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: MovableTitledDialogComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
12
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0", type: MovableTitledDialogComponent, isStandalone: true, selector: "movable-titled-dialog", usesInheritance: true, ngImport: i0, template: "<div class=\"flex-row titled-dialog-title\"\r\n cdkDrag\r\n cdkDragRootElement=\".cdk-overlay-pane\" \r\n cdkDragHandle>\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-container *ngComponentOutlet=\"component; injector: injector\"/>\r\n</div>", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"], dependencies: [{ kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13
13
  }
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: MovableTitledDialogComponent, decorators: [{
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: MovableTitledDialogComponent, decorators: [{
15
15
  type: Component,
16
- args: [{ selector: 'movable-titled-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex-row titled-dialog-title\"\r\n cdkDrag\r\n cdkDragRootElement=\".cdk-overlay-pane\" \r\n cdkDragHandle>\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"] }]
16
+ args: [{ selector: 'movable-titled-dialog', imports: [
17
+ CdkDrag,
18
+ LocalizePipe,
19
+ CdkDragHandle,
20
+ NgComponentOutlet,
21
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex-row titled-dialog-title\"\r\n cdkDrag\r\n cdkDragRootElement=\".cdk-overlay-pane\" \r\n cdkDragHandle>\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-container *ngComponentOutlet=\"component; injector: injector\"/>\r\n</div>", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"] }]
17
22
  }] });
18
23
  //# sourceMappingURL=movableTitledDialog.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"movableTitledDialog.component.js","sourceRoot":"","sources":["../../../../../material/src/components/movableTitledDialog/movableTitledDialog.component.ts","../../../../../material/src/components/movableTitledDialog/movableTitledDialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAC,MAAM,eAAe,CAAC;AAEjE,OAAO,EAAC,qBAAqB,EAAC,MAAM,wCAAwC,CAAC;;;;;AAE7E;;GAEG;AAQH,MAAM,OAAO,4BAA6B,SAAQ,qBAAqB;8GAA1D,4BAA4B;kGAA5B,4BAA4B,oFCdzC,whBAaM;;2FDCO,4BAA4B;kBAPxC,SAAS;+BAEI,uBAAuB,mBAGhB,uBAAuB,CAAC,MAAM","sourcesContent":["import {Component, ChangeDetectionStrategy} from '@angular/core';\n\nimport {TitledDialogComponent} from '../titledDialog/titledDialog.component';\n\n/**\n * Component used as wrapper for material dialog enhanced with title, which is movable\n */\n@Component(\n{\n selector: 'movable-titled-dialog',\n templateUrl: 'movableTitledDialog.component.html',\n styleUrls: ['../titledDialog/titledDialog.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class MovableTitledDialogComponent extends TitledDialogComponent\n{\n}\n","<div class=\"flex-row titled-dialog-title\"\r\n cdkDrag\r\n cdkDragRootElement=\".cdk-overlay-pane\" \r\n cdkDragHandle>\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>"]}
1
+ {"version":3,"file":"movableTitledDialog.component.js","sourceRoot":"","sources":["../../../../../material/src/components/movableTitledDialog/movableTitledDialog.component.ts","../../../../../material/src/components/movableTitledDialog/movableTitledDialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAC,MAAM,eAAe,CAAC;AACjE,OAAO,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,OAAO,EAAE,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAC,qBAAqB,EAAC,MAAM,wCAAwC,CAAC;;AAE7E;;GAEG;AAeH,MAAM,OAAO,4BAA6B,SAAQ,qBAAqB;8GAA1D,4BAA4B;kGAA5B,4BAA4B,wGCxBzC,kfAaM,0XDIE,OAAO,mcACP,YAAY,iDACZ,aAAa,+FACb,iBAAiB;;2FAIZ,4BAA4B;kBAdxC,SAAS;+BAEI,uBAAuB,WAIjC;wBACI,OAAO;wBACP,YAAY;wBACZ,aAAa;wBACb,iBAAiB;qBACpB,mBACgB,uBAAuB,CAAC,MAAM","sourcesContent":["import {Component, ChangeDetectionStrategy} from '@angular/core';\nimport {NgComponentOutlet} from '@angular/common';\nimport {CdkDrag, CdkDragHandle} from '@angular/cdk/drag-drop';\nimport {LocalizePipe} from '@anglr/common';\n\nimport {TitledDialogComponent} from '../titledDialog/titledDialog.component';\n\n/**\n * Component used as wrapper for material dialog enhanced with title, which is movable\n */\n@Component(\n{\n selector: 'movable-titled-dialog',\n templateUrl: 'movableTitledDialog.component.html',\n styleUrl: '../titledDialog/titledDialog.component.css',\n imports:\n [\n CdkDrag,\n LocalizePipe,\n CdkDragHandle,\n NgComponentOutlet,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class MovableTitledDialogComponent extends TitledDialogComponent\n{\n}\n","<div class=\"flex-row titled-dialog-title\"\r\n cdkDrag\r\n cdkDragRootElement=\".cdk-overlay-pane\" \r\n cdkDragHandle>\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-container *ngComponentOutlet=\"component; injector: injector\"/>\r\n</div>"]}
@@ -1,10 +1,10 @@
1
1
  import { Component, ChangeDetectionStrategy, Inject, Injector, TemplateRef } from '@angular/core';
2
+ import { NgComponentOutlet } from '@angular/common';
2
3
  import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
4
+ import { LocalizePipe } from '@anglr/common';
3
5
  import { TITLED_DIALOG_DATA } from '../../misc/tokens';
4
6
  import * as i0 from "@angular/core";
5
7
  import * as i1 from "@angular/material/dialog";
6
- import * as i2 from "../../../../src/directives/ngComponentOutletEx/ngComponentOutletEx.directive";
7
- import * as i3 from "../../../../src/pipes/localize/localize.pipe";
8
8
  /**
9
9
  * Component used as wrapper for material dialog enhanced with title
10
10
  */
@@ -32,12 +32,15 @@ export class TitledDialogComponent {
32
32
  parent: injector
33
33
  });
34
34
  }
35
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: TitledDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
36
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: TitledDialogComponent, selector: "titled-dialog", ngImport: i0, template: "<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"], dependencies: [{ kind: "directive", type: i2.NgComponentOutletEx, selector: "[ngComponentOutletEx]", inputs: ["ngComponentOutletEx", "ngComponentOutletExInjector", "ngComponentOutletExContent"], outputs: ["ngComponentOutletExCreated"], exportAs: ["ngComponentOutletEx"] }, { kind: "pipe", type: i3.LocalizeSAPipe, name: "localize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
35
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: TitledDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
36
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0", type: TitledDialogComponent, isStandalone: true, selector: "titled-dialog", ngImport: i0, template: "<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-container *ngComponentOutlet=\"component; injector: injector\"/>\r\n</div>\r\n", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"], dependencies: [{ kind: "pipe", type: LocalizePipe, name: "localize" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
37
37
  }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: TitledDialogComponent, decorators: [{
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: TitledDialogComponent, decorators: [{
39
39
  type: Component,
40
- args: [{ selector: 'titled-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"] }]
40
+ args: [{ selector: 'titled-dialog', imports: [
41
+ LocalizePipe,
42
+ NgComponentOutlet,
43
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-container *ngComponentOutlet=\"component; injector: injector\"/>\r\n</div>\r\n", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"] }]
41
44
  }], ctorParameters: () => [{ type: undefined, decorators: [{
42
45
  type: Inject,
43
46
  args: [MAT_DIALOG_DATA]
@@ -1 +1 @@
1
- {"version":3,"file":"titledDialog.component.js","sourceRoot":"","sources":["../../../../../material/src/components/titledDialog/titledDialog.component.ts","../../../../../material/src/components/titledDialog/titledDialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAiB,WAAW,EAAC,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAGvE,OAAO,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAC;;;;;AAGrD;;GAEG;AAQH,MAAM,OAAO,qBAAqB;IAS9B;;OAEG;IACH,IAAW,SAAS;QAEhB,IAAG,IAAI,CAAC,IAAI,EAAE,sBAAsB,YAAY,WAAW,EAC3D,CAAC;YACG,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC;IAC5C,CAAC;IAED,iEAAiE;IACjE,YAA4C,IAA0B,EACnD,SAA6C,EACpD,QAAkB;QAFc,SAAI,GAAJ,IAAI,CAAsB;QACnD,cAAS,GAAT,SAAS,CAAoC;QAG5D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAC/B;YACI,SAAS,EACT;gBAEI;oBACI,OAAO,EAAE,kBAAkB;oBAC3B,QAAQ,EAAE,IAAI,CAAC,IAAI;iBACtB;aACJ;YACD,MAAM,EAAE,QAAQ;SACnB,CAAC,CAAC;IACP,CAAC;8GAvCQ,qBAAqB,kBAuBV,eAAe;kGAvB1B,qBAAqB,qDCjBlC,gcAUM;;2FDOO,qBAAqB;kBAPjC,SAAS;+BAEI,eAAe,mBAGR,uBAAuB,CAAC,MAAM;;0BAyBlC,MAAM;2BAAC,eAAe","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Injector, ValueProvider, TemplateRef} from '@angular/core';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\nimport {ComponentType} from '@angular/cdk/portal';\n\nimport {TITLED_DIALOG_DATA} from '../../misc/tokens';\nimport {ɵTitledDialogOptions} from '../../misc/interfaces/titledDialog.interface';\n\n/**\n * Component used as wrapper for material dialog enhanced with title\n */\n@Component(\n{\n selector: 'titled-dialog',\n templateUrl: 'titledDialog.component.html',\n styleUrls: ['titledDialog.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TitledDialogComponent\n{\n //######################### public properties - template bindings #########################\n\n /**\n * Injector used for creating component or template\n */\n public injector: Injector;\n\n /**\n * Instance of component that will be rendered in dialog\n */\n public get component(): ComponentType<any>\n {\n if(this.data?.componentOrTemplateRef instanceof TemplateRef)\n {\n return null;\n }\n\n return this.data.componentOrTemplateRef;\n }\n\n //######################### constructor #########################\n constructor(@Inject(MAT_DIALOG_DATA) public data: ɵTitledDialogOptions,\n public dialogRef: MatDialogRef<ɵTitledDialogOptions>,\n injector: Injector)\n {\n this.injector = Injector.create(\n {\n providers:\n [\n <ValueProvider>\n {\n provide: TITLED_DIALOG_DATA,\n useValue: data.data\n }\n ],\n parent: injector\n });\n }\n}","<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>"]}
1
+ {"version":3,"file":"titledDialog.component.js","sourceRoot":"","sources":["../../../../../material/src/components/titledDialog/titledDialog.component.ts","../../../../../material/src/components/titledDialog/titledDialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAiB,WAAW,EAAC,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAEvE,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAC;;;AAGrD;;GAEG;AAaH,MAAM,OAAO,qBAAqB;IAS9B;;OAEG;IACH,IAAW,SAAS;QAEhB,IAAG,IAAI,CAAC,IAAI,EAAE,sBAAsB,YAAY,WAAW,EAC3D,CAAC;YACG,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC;IAC5C,CAAC;IAED,iEAAiE;IACjE,YAA4C,IAA0B,EACnD,SAA6C,EACpD,QAAkB;QAFc,SAAI,GAAJ,IAAI,CAAsB;QACnD,cAAS,GAAT,SAAS,CAAoC;QAG5D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAC/B;YACI,SAAS,EACT;gBAEI;oBACI,OAAO,EAAE,kBAAkB;oBAC3B,QAAQ,EAAE,IAAI,CAAC,IAAI;iBACtB;aACJ;YACD,MAAM,EAAE,QAAQ;SACnB,CAAC,CAAC;IACP,CAAC;8GAvCQ,qBAAqB,kBAuBV,eAAe;kGAvB1B,qBAAqB,yECxBlC,8ZAWA,qXDQQ,YAAY,iDACZ,iBAAiB;;2FAIZ,qBAAqB;kBAZjC,SAAS;+BAEI,eAAe,WAIzB;wBACI,YAAY;wBACZ,iBAAiB;qBACpB,mBACgB,uBAAuB,CAAC,MAAM;;0BAyBlC,MAAM;2BAAC,eAAe","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Injector, ValueProvider, TemplateRef} from '@angular/core';\nimport {NgComponentOutlet} from '@angular/common';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\nimport {ComponentType} from '@angular/cdk/portal';\nimport {LocalizePipe} from '@anglr/common';\n\nimport {TITLED_DIALOG_DATA} from '../../misc/tokens';\nimport {ɵTitledDialogOptions} from '../../misc/interfaces/titledDialog.interface';\n\n/**\n * Component used as wrapper for material dialog enhanced with title\n */\n@Component(\n{\n selector: 'titled-dialog',\n templateUrl: 'titledDialog.component.html',\n styleUrl: 'titledDialog.component.css',\n imports:\n [\n LocalizePipe,\n NgComponentOutlet,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TitledDialogComponent\n{\n //######################### public properties - template bindings #########################\n\n /**\n * Injector used for creating component or template\n */\n public injector: Injector;\n\n /**\n * Instance of component that will be rendered in dialog\n */\n public get component(): ComponentType<any>\n {\n if(this.data?.componentOrTemplateRef instanceof TemplateRef)\n {\n return null;\n }\n\n return this.data.componentOrTemplateRef;\n }\n\n //######################### constructor #########################\n constructor(@Inject(MAT_DIALOG_DATA) public data: ɵTitledDialogOptions,\n public dialogRef: MatDialogRef<ɵTitledDialogOptions>,\n injector: Injector)\n {\n this.injector = Injector.create(\n {\n providers:\n [\n <ValueProvider>\n {\n provide: TITLED_DIALOG_DATA,\n useValue: data.data\n }\n ],\n parent: injector\n });\n }\n}","<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-container *ngComponentOutlet=\"component; injector: injector\"/>\r\n</div>\r\n"]}
@@ -73,14 +73,13 @@ export class ConfirmationDialogDirective {
73
73
  this.confirm.emit();
74
74
  }
75
75
  }
76
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ConfirmationDialogDirective, deps: [{ token: i1.TitledDialogService }], target: i0.ɵɵFactoryTarget.Directive }); }
77
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: ConfirmationDialogDirective, isStandalone: true, selector: "[confirmation]", inputs: { confirmationText: ["confirmation", "confirmationText"], confirmationTitle: "confirmationTitle", confirmationConfirm: "confirmationConfirm", confirmationCancel: "confirmationCancel", confirmationCssClasses: "confirmationCssClasses", skipConfirmation: "skipConfirmation", preventDefaultsAndPropagation: "preventDefaultsAndPropagation" }, outputs: { confirm: "confirm" }, host: { listeners: { "click": "click($event)" } }, ngImport: i0 }); }
76
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ConfirmationDialogDirective, deps: [{ token: i1.TitledDialogService }], target: i0.ɵɵFactoryTarget.Directive }); }
77
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: ConfirmationDialogDirective, isStandalone: true, selector: "[confirmation]", inputs: { confirmationText: ["confirmation", "confirmationText"], confirmationTitle: "confirmationTitle", confirmationConfirm: "confirmationConfirm", confirmationCancel: "confirmationCancel", confirmationCssClasses: "confirmationCssClasses", skipConfirmation: "skipConfirmation", preventDefaultsAndPropagation: "preventDefaultsAndPropagation" }, outputs: { confirm: "confirm" }, host: { listeners: { "click": "click($event)" } }, ngImport: i0 }); }
78
78
  }
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ConfirmationDialogDirective, decorators: [{
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ConfirmationDialogDirective, decorators: [{
80
80
  type: Directive,
81
81
  args: [{
82
82
  selector: '[confirmation]',
83
- standalone: true,
84
83
  }]
85
84
  }], ctorParameters: () => [{ type: i1.TitledDialogService }], propDecorators: { confirmationText: [{
86
85
  type: Input,
@@ -1 +1 @@
1
- {"version":3,"file":"confirmationDialog.directive.js","sourceRoot":"","sources":["../../../../../material/src/directives/confirmationDialog/confirmationDialog.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACnF,OAAO,EAAC,aAAa,EAAC,MAAM,MAAM,CAAC;AAEnC,OAAO,EAAC,mBAAmB,EAAC,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAC,2BAA2B,EAAC,MAAM,kEAAkE,CAAC;;;AAG7G;;GAEG;AAMH,MAAM,OAAO,2BAA2B;IAsDpC,iEAAiE;IACjE,YAAoB,OAA4B;QAA5B,YAAO,GAAP,OAAO,CAAqB;QArDhD,gFAAgF;QAEhF;;WAEG;QAEI,qBAAgB,GAA0B,SAAS,CAAC;QAE3D;;WAEG;QAEI,sBAAiB,GAAW,cAAc,CAAC;QAElD;;WAEG;QAEI,wBAAmB,GAA0B,SAAS,CAAC;QAE9D;;WAEG;QAEI,uBAAkB,GAA0B,SAAS,CAAC;QAE7D;;WAEG;QAEI,2BAAsB,GAAgD,SAAS,CAAC;QAEvF;;WAEG;QAEI,qBAAgB,GAAY,KAAK,CAAC;QAEzC;;WAEG;QAEI,kCAA6B,GAAY,IAAI,CAAC;QAErD,iFAAiF;QAEjF;;WAEG;QAEI,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ADnC,KAAK;gBASC,OAAO;sBADb,MAAM;gBAcM,KAAK;sBADjB,YAAY;uBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC","sourcesContent":["import {Directive, Input, EventEmitter, Output, HostListener} from '@angular/core';\nimport {lastValueFrom} from 'rxjs';\n\nimport {TitledDialogService} from '../../services/titledDialog/titledDialog.service';\nimport {ConfirmationDialogComponent} from '../../components/confirmationDialog/confirmationDialog.component';\nimport {ConfirmationDialogOptions, ConfirmationDialogCssClasses} from '../../misc/interfaces/confirmationDialog.interface';\n\n/**\n * Directive that enables confirmation dialog on click\n */\n@Directive(\n{\n selector: '[confirmation]',\n standalone: true,\n})\nexport class ConfirmationDialogDirective\n{\n //######################### public properties - inputs #########################\n\n /**\n * Confirmation text that is displayed in dialog\n */\n @Input('confirmation')\n public confirmationText: string|undefined|null = undefined;\n\n /**\n * Title for confirmation dialog\n */\n @Input()\n public confirmationTitle: string = 'Confirmation';\n\n /**\n * Text for confirm confirmation button\n */\n @Input()\n public confirmationConfirm: string|undefined|null = undefined;\n\n /**\n * Text for cancel confirmation button\n */\n @Input()\n public confirmationCancel: string|undefined|null = undefined;\n\n /**\n * Object with css classes to be applied to confirmation dialog component\n */\n @Input()\n public confirmationCssClasses: ConfirmationDialogCssClasses|undefined|null = undefined;\n\n /**\n * Condidition that determines whether display confirmation dialog or skip it and run confirm directly\n */\n @Input()\n public skipConfirmation: boolean = false;\n\n /**\n * Indication whether prevent default and stop propagation of click event, defaults to true\n */\n @Input()\n public preventDefaultsAndPropagation: boolean = true;\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when user confirms confirmation\n */\n @Output()\n public confirm: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### constructor #########################\n constructor(private _dialog: TitledDialogService)\n {\n }\n\n //######################### public methods - host #########################\n\n /**\n * Method called when user clicks on element\n */\n @HostListener('click', ['$event'])\n public async click(event: MouseEvent): Promise<void>\n {\n if(this.preventDefaultsAndPropagation)\n {\n event.stopPropagation();\n event.preventDefault();\n }\n\n if(this.skipConfirmation)\n {\n this.confirm.emit();\n\n return;\n }\n\n const result = await lastValueFrom(this._dialog.open<ConfirmationDialogComponent, ConfirmationDialogOptions, boolean>(ConfirmationDialogComponent,\n {\n title: this.confirmationTitle,\n width: '33vw',\n data:\n {\n confirmationText: this.confirmationText || undefined,\n dialogCancelText: this.confirmationCancel ?? undefined,\n dialogConfirmText: this.confirmationConfirm ?? undefined,\n cssClasses: this.confirmationCssClasses ?? {},\n }\n }).afterClosed());\n\n if(result)\n {\n this.confirm.emit();\n }\n }\n}"]}
1
+ {"version":3,"file":"confirmationDialog.directive.js","sourceRoot":"","sources":["../../../../../material/src/directives/confirmationDialog/confirmationDialog.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACnF,OAAO,EAAC,aAAa,EAAC,MAAM,MAAM,CAAC;AAEnC,OAAO,EAAC,mBAAmB,EAAC,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAC,2BAA2B,EAAC,MAAM,kEAAkE,CAAC;;;AAG7G;;GAEG;AAKH,MAAM,OAAO,2BAA2B;IAsDpC,iEAAiE;IACjE,YAAoB,OAA4B;QAA5B,YAAO,GAAP,OAAO,CAAqB;QArDhD,gFAAgF;QAEhF;;WAEG;QAEI,qBAAgB,GAA0B,SAAS,CAAC;QAE3D;;WAEG;QAEI,sBAAiB,GAAW,cAAc,CAAC;QAElD;;WAEG;QAEI,wBAAmB,GAA0B,SAAS,CAAC;QAE9D;;WAEG;QAEI,uBAAkB,GAA0B,SAAS,CAAC;QAE7D;;WAEG;QAEI,2BAAsB,GAAgD,SAAS,CAAC;QAEvF;;WAEG;QAEI,qBAAgB,GAAY,KAAK,CAAC;QAEzC;;WAEG;QAEI,kCAA6B,GAAY,IAAI,CAAC;QAErD,iFAAiF;QAEjF;;WAEG;QAEI,YAAO,GAAuB,IAAI,YAAY,EA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jB,YAAY;uBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC","sourcesContent":["import {Directive, Input, EventEmitter, Output, HostListener} from '@angular/core';\nimport {lastValueFrom} from 'rxjs';\n\nimport {TitledDialogService} from '../../services/titledDialog/titledDialog.service';\nimport {ConfirmationDialogComponent} from '../../components/confirmationDialog/confirmationDialog.component';\nimport {ConfirmationDialogOptions, ConfirmationDialogCssClasses} from '../../misc/interfaces/confirmationDialog.interface';\n\n/**\n * Directive that enables confirmation dialog on click\n */\n@Directive(\n{\n selector: '[confirmation]',\n})\nexport class ConfirmationDialogDirective\n{\n //######################### public properties - inputs #########################\n\n /**\n * Confirmation text that is displayed in dialog\n */\n @Input('confirmation')\n public confirmationText: string|undefined|null = undefined;\n\n /**\n * Title for confirmation dialog\n */\n @Input()\n public confirmationTitle: string = 'Confirmation';\n\n /**\n * Text for confirm confirmation button\n */\n @Input()\n public confirmationConfirm: string|undefined|null = undefined;\n\n /**\n * Text for cancel confirmation button\n */\n @Input()\n public confirmationCancel: string|undefined|null = undefined;\n\n /**\n * Object with css classes to be applied to confirmation dialog component\n */\n @Input()\n public confirmationCssClasses: ConfirmationDialogCssClasses|undefined|null = undefined;\n\n /**\n * Condidition that determines whether display confirmation dialog or skip it and run confirm directly\n */\n @Input()\n public skipConfirmation: boolean = false;\n\n /**\n * Indication whether prevent default and stop propagation of click event, defaults to true\n */\n @Input()\n public preventDefaultsAndPropagation: boolean = true;\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when user confirms confirmation\n */\n @Output()\n public confirm: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### constructor #########################\n constructor(private _dialog: TitledDialogService)\n {\n }\n\n //######################### public methods - host #########################\n\n /**\n * Method called when user clicks on element\n */\n @HostListener('click', ['$event'])\n public async click(event: MouseEvent): Promise<void>\n {\n if(this.preventDefaultsAndPropagation)\n {\n event.stopPropagation();\n event.preventDefault();\n }\n\n if(this.skipConfirmation)\n {\n this.confirm.emit();\n\n return;\n }\n\n const result = await lastValueFrom(this._dialog.open<ConfirmationDialogComponent, ConfirmationDialogOptions, boolean>(ConfirmationDialogComponent,\n {\n title: this.confirmationTitle,\n width: '33vw',\n data:\n {\n confirmationText: this.confirmationText || undefined,\n dialogCancelText: this.confirmationCancel ?? undefined,\n dialogConfirmText: this.confirmationConfirm ?? undefined,\n cssClasses: this.confirmationCssClasses ?? {},\n }\n }).afterClosed());\n\n if(result)\n {\n this.confirm.emit();\n }\n }\n}"]}
@@ -26,14 +26,13 @@ export class DebugDataCopyClickDirective {
26
26
  copyData() {
27
27
  this._clipboard.copy(JSON.stringify(this.data, null, 4));
28
28
  }
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: DebugDataCopyClickDirective, deps: [{ token: i1.Clipboard }], target: i0.ɵɵFactoryTarget.Directive }); }
30
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: DebugDataCopyClickDirective, isStandalone: true, selector: "debug-data[copyClick]", inputs: { data: ["copyClick", "data"] }, host: { listeners: { "click": "copyData()" }, properties: { "class.clickable": "this.clickable" } }, ngImport: i0 }); }
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DebugDataCopyClickDirective, deps: [{ token: i1.Clipboard }], target: i0.ɵɵFactoryTarget.Directive }); }
30
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: DebugDataCopyClickDirective, isStandalone: true, selector: "debug-data[copyClick]", inputs: { data: ["copyClick", "data"] }, host: { listeners: { "click": "copyData()" }, properties: { "class.clickable": "this.clickable" } }, ngImport: i0 }); }
31
31
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: DebugDataCopyClickDirective, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DebugDataCopyClickDirective, decorators: [{
33
33
  type: Directive,
34
34
  args: [{
35
35
  selector: 'debug-data[copyClick]',
36
- standalone: true,
37
36
  }]
38
37
  }], ctorParameters: () => [{ type: i1.Clipboard }], propDecorators: { data: [{
39
38
  type: Input,