@colijnit/corecomponents_v12 12.0.13 → 12.0.16

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 (632) hide show
  1. package/bundles/colijnit-corecomponents_v12.umd.js +7619 -0
  2. package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -0
  3. package/colijnit-corecomponents_v12.d.ts +26 -0
  4. package/colijnit-corecomponents_v12.metadata.json +1 -0
  5. package/esm2015/colijnit-corecomponents_v12.js +27 -0
  6. package/esm2015/lib/components/article-tile/article-tile.component.js +80 -0
  7. package/esm2015/lib/components/article-tile/article-tile.module.js +35 -0
  8. package/esm2015/lib/components/base/base-input.component.js +571 -0
  9. package/esm2015/lib/components/base/base.module.js +22 -0
  10. package/esm2015/lib/components/base/component-interface-name.js +4 -0
  11. package/esm2015/lib/components/base/configuration-adapter-component.interface.js +2 -0
  12. package/esm2015/lib/components/button/button.component.js +70 -0
  13. package/esm2015/lib/components/button/button.module.js +19 -0
  14. package/esm2015/lib/components/button-drop-down/button-drop-down.component.js +47 -0
  15. package/esm2015/lib/components/button-drop-down/button-drop-down.module.js +21 -0
  16. package/esm2015/lib/components/co-dialog/co-dialog.component.js +67 -0
  17. package/esm2015/lib/components/co-dialog/co-dialog.module.js +19 -0
  18. package/esm2015/lib/components/co-dialog-prompt/co-dialog-prompt.component.js +60 -0
  19. package/esm2015/lib/components/co-dialog-prompt/co-dialog-prompt.module.js +16 -0
  20. package/esm2015/lib/components/co-kanban/co-kanban.component.js +107 -0
  21. package/esm2015/lib/components/co-kanban/co-kanban.module.js +21 -0
  22. package/esm2015/lib/components/co-rich-text-editor/co-rich-text-editor.component.js +53 -0
  23. package/esm2015/lib/components/co-rich-text-editor/co-rich-text-editor.module.js +21 -0
  24. package/esm2015/lib/components/co-schedule/co-schedule.component.js +64 -0
  25. package/esm2015/lib/components/co-schedule/co-schedule.module.js +21 -0
  26. package/esm2015/lib/components/co-sidebar/co-sidebar.component.js +39 -0
  27. package/esm2015/lib/components/co-sidebar/co-sidebar.module.js +15 -0
  28. package/esm2015/lib/components/co-toggle/co-toggle.component.js +35 -0
  29. package/esm2015/lib/components/co-toggle/co-toggle.module.js +21 -0
  30. package/esm2015/lib/components/collapsible/collapsible.component.js +58 -0
  31. package/esm2015/lib/components/collapsible/collapsible.module.js +17 -0
  32. package/esm2015/lib/components/drop-down-list/drop-down-list.component.js +61 -0
  33. package/esm2015/lib/components/drop-down-list/drop-down.module.js +20 -0
  34. package/esm2015/lib/components/form/form.component.js +198 -0
  35. package/esm2015/lib/components/form/form.module.js +23 -0
  36. package/esm2015/lib/components/grid/base/base-grid.component.js +77 -0
  37. package/esm2015/lib/components/grid/base/base-inline-edit-grid.component.js +41 -0
  38. package/esm2015/lib/components/grid/base/base-selection-grid.component.js +83 -0
  39. package/esm2015/lib/components/grid/base/base-toolbar-grid.component.js +79 -0
  40. package/esm2015/lib/components/grid/co-grid.component.js +57 -0
  41. package/esm2015/lib/components/grid/co-grid.module.js +36 -0
  42. package/esm2015/lib/components/grid/enum/grid-lines.enum.js +9 -0
  43. package/esm2015/lib/components/grid/interface/grid-menu-event-args.js +2 -0
  44. package/esm2015/lib/components/grid/interface/grid-row-drag-event-args.js +2 -0
  45. package/esm2015/lib/components/grid/interface/grid-row-drop-event-args.js +2 -0
  46. package/esm2015/lib/components/icon/icon-cache.service.js +52 -0
  47. package/esm2015/lib/components/icon/icon.component.js +28 -0
  48. package/esm2015/lib/components/icon/icon.module.js +25 -0
  49. package/esm2015/lib/components/image/image.component.js +20 -0
  50. package/esm2015/lib/components/image/image.module.js +13 -0
  51. package/esm2015/lib/components/input-checkbox/input-checkbox.component.js +58 -0
  52. package/esm2015/lib/components/input-checkbox/input-checkbox.module.js +23 -0
  53. package/esm2015/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.component.js +68 -0
  54. package/esm2015/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.module.js +25 -0
  55. package/esm2015/lib/components/input-combo-box/input-combo-box.component.js +77 -0
  56. package/esm2015/lib/components/input-combo-box/input-combo-box.module.js +25 -0
  57. package/esm2015/lib/components/input-date-picker/input-date-picker.component.js +95 -0
  58. package/esm2015/lib/components/input-date-picker/input-date-picker.module.js +28 -0
  59. package/esm2015/lib/components/input-listbox/input-listbox.component.js +66 -0
  60. package/esm2015/lib/components/input-listbox/input-listbox.module.js +25 -0
  61. package/esm2015/lib/components/input-number-picker/input-number-picker.component.js +284 -0
  62. package/esm2015/lib/components/input-number-picker/input-number-picker.module.js +21 -0
  63. package/esm2015/lib/components/input-radio-button/input-radio-button.component.js +52 -0
  64. package/esm2015/lib/components/input-radio-button/input-radio-button.module.js +22 -0
  65. package/esm2015/lib/components/input-text/input-text.component.js +126 -0
  66. package/esm2015/lib/components/input-text/input-text.module.js +29 -0
  67. package/esm2015/lib/components/level-indicator/level-indicator-level.enum.js +7 -0
  68. package/esm2015/lib/components/level-indicator/level-indicator.component.js +34 -0
  69. package/esm2015/lib/components/level-indicator/level-indicator.module.js +15 -0
  70. package/esm2015/lib/components/multi-select-list/multi-select-list.component.js +69 -0
  71. package/esm2015/lib/components/multi-select-list/multi-select-list.module.js +19 -0
  72. package/esm2015/lib/components/pivot/co-pivot.component.js +171 -0
  73. package/esm2015/lib/components/pivot/co-pivot.module.js +19 -0
  74. package/esm2015/lib/components/popup/const/popup-window-token.js +3 -0
  75. package/esm2015/lib/components/popup/interface/popup-button.js +8 -0
  76. package/esm2015/lib/components/popup/interface/popup-close-event.js +2 -0
  77. package/esm2015/lib/components/popup/interface/popup-settings.js +42 -0
  78. package/esm2015/lib/components/popup/interface/popup.js +2 -0
  79. package/esm2015/lib/components/popup/model/popup-button-globals.js +11 -0
  80. package/esm2015/lib/components/popup/model/popup-window.js +38 -0
  81. package/esm2015/lib/components/popup/popup-buttons.component.js +53 -0
  82. package/esm2015/lib/components/popup/popup-message-display.component.js +47 -0
  83. package/esm2015/lib/components/popup/popup-window-shell.component.js +159 -0
  84. package/esm2015/lib/components/popup/popup.module.js +49 -0
  85. package/esm2015/lib/components/popup/service/popup-shower.service.js +87 -0
  86. package/esm2015/lib/components/popup/service/prompt.service.js +124 -0
  87. package/esm2015/lib/components/popup/text-input-popup.component.js +36 -0
  88. package/esm2015/lib/components/simple-grid/simple-grid-column.directive.js +36 -0
  89. package/esm2015/lib/components/simple-grid/simple-grid.component.js +112 -0
  90. package/esm2015/lib/components/simple-grid/simple-grid.module.js +24 -0
  91. package/esm2015/lib/components/tile/tile.component.js +71 -0
  92. package/esm2015/lib/components/tile/tile.module.js +23 -0
  93. package/esm2015/lib/core/constant/default-upper-bound-for-range-components.js +3 -0
  94. package/esm2015/lib/core/constant/java-max-int.js +2 -0
  95. package/esm2015/lib/core/constant/number-inputs-key-down-white-list.js +44 -0
  96. package/esm2015/lib/core/decorator/input-boolean.decorator.js +34 -0
  97. package/esm2015/lib/core/enum/co-document-image-display-kind.enum.js +7 -0
  98. package/esm2015/lib/core/enum/co-document-type.enum.js +11 -0
  99. package/esm2015/lib/core/enum/core-components-icon.enum.js +58 -0
  100. package/esm2015/lib/core/enum/file-type-internal.enum.js +17 -0
  101. package/esm2015/lib/core/enum/file-type.enum.js +11 -0
  102. package/esm2015/lib/core/enum/float-label-type.enum.js +7 -0
  103. package/esm2015/lib/core/enum/input-number-picker-show-mode.enum.js +8 -0
  104. package/esm2015/lib/core/enum/input-text-type.enum.js +6 -0
  105. package/esm2015/lib/core/enum/keyboard-code.enum.js +74 -0
  106. package/esm2015/lib/core/enum/object-right-type.enum.js +7 -0
  107. package/esm2015/lib/core/enum/popup-button-type.enum.js +12 -0
  108. package/esm2015/lib/core/enum/popup-type.enum.js +11 -0
  109. package/esm2015/lib/core/enum/schedule-view.enum.js +16 -0
  110. package/esm2015/lib/core/enum/table-name.enum.js +81 -0
  111. package/esm2015/lib/core/function/any-nill.function.js +6 -0
  112. package/esm2015/lib/core/function/is-nill.function.js +5 -0
  113. package/esm2015/lib/core/function/none-nill.function.js +17 -0
  114. package/esm2015/lib/core/function/not-nill.function.js +5 -0
  115. package/esm2015/lib/core/model/bounds-constrained-number-value.js +171 -0
  116. package/esm2015/lib/core/model/check-precision-and-scale-result.js +2 -0
  117. package/esm2015/lib/core/model/check-within-stepped-bounds-result.js +2 -0
  118. package/esm2015/lib/core/model/co-document-right.bo.js +3 -0
  119. package/esm2015/lib/core/model/co-document.bo.js +121 -0
  120. package/esm2015/lib/core/model/core-components-icon-svg.js +56 -0
  121. package/esm2015/lib/core/model/element-position.js +10 -0
  122. package/esm2015/lib/core/model/event/string-prompt-result-event.js +8 -0
  123. package/esm2015/lib/core/model/numerical-range.js +14 -0
  124. package/esm2015/lib/core/service/form-input-user-change-listener.service.js +25 -0
  125. package/esm2015/lib/core/service/form-master.service.js +102 -0
  126. package/esm2015/lib/core/service/ng-zone-wrapper.service.js +20 -0
  127. package/esm2015/lib/core/utils/array-utils.js +264 -0
  128. package/esm2015/lib/core/utils/browser-utils.js +100 -0
  129. package/esm2015/lib/core/utils/event-utils.js +53 -0
  130. package/esm2015/lib/core/utils/file-utils.js +267 -0
  131. package/esm2015/lib/core/utils/number-utils.js +309 -0
  132. package/esm2015/lib/core/utils/object-utils.js +186 -0
  133. package/esm2015/lib/core/utils/string-utils.js +94 -0
  134. package/esm2015/lib/core/validator/max-string-length.validator.js +10 -0
  135. package/esm2015/lib/core/validator/precision-scale.validator.js +11 -0
  136. package/esm2015/lib/core/validator/required.validator.js +5 -0
  137. package/esm2015/lib/directives/ripple/ripple-ref.js +26 -0
  138. package/esm2015/lib/directives/ripple/ripple-renderer.js +160 -0
  139. package/esm2015/lib/directives/ripple/ripple.directive.js +80 -0
  140. package/esm2015/lib/directives/ripple/ripple.module.js +24 -0
  141. package/esm2015/lib/directives/ripple/scroll-dispatcher.service.js +108 -0
  142. package/esm2015/lib/directives/ripple/scrollable.directive.js +40 -0
  143. package/esm2015/lib/directives/ripple/viewport-ruler.service.js +73 -0
  144. package/esm2015/lib/directives/stopclick/stop-click.directive.js +38 -0
  145. package/esm2015/lib/directives/stopclick/stop-click.module.js +15 -0
  146. package/esm2015/lib/pipes/append.pipe.js +17 -0
  147. package/esm2015/lib/pipes/append.pipe.module.js +15 -0
  148. package/esm2015/lib/pipes/price-display-pipe.module.js +15 -0
  149. package/esm2015/lib/pipes/price-display.pipe.js +20 -0
  150. package/esm2015/public-api.js +72 -0
  151. package/fesm2015/colijnit-corecomponents_v12.js +6985 -0
  152. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -0
  153. package/lib/components/article-tile/article-tile.component.d.ts +22 -0
  154. package/{src/lib → lib}/components/article-tile/article-tile.component.scss +0 -0
  155. package/lib/components/article-tile/article-tile.module.d.ts +2 -0
  156. package/lib/components/base/base-input.component.d.ts +146 -0
  157. package/lib/components/base/base.module.d.ts +2 -0
  158. package/lib/components/base/component-interface-name.d.ts +3 -0
  159. package/{src/lib/components/base/configuration-adapter-component.interface.ts → lib/components/base/configuration-adapter-component.interface.d.ts} +0 -0
  160. package/lib/components/button/button.component.d.ts +20 -0
  161. package/lib/components/button/button.module.d.ts +2 -0
  162. package/lib/components/button/style/_co-ripple.scss +69 -0
  163. package/lib/components/button/style/_layout.scss +64 -0
  164. package/lib/components/button/style/_material-definition.scss +9 -0
  165. package/lib/components/button/style/_theme.scss +81 -0
  166. package/lib/components/button/style/material.scss +22 -0
  167. package/lib/components/button-drop-down/button-drop-down.component.d.ts +16 -0
  168. package/lib/components/button-drop-down/button-drop-down.module.d.ts +2 -0
  169. package/lib/components/button-drop-down/style/_layout.scss +7 -0
  170. package/{src/lib/components/co-dialog-prompt/co-dialog-prompt.component.scss → lib/components/button-drop-down/style/_material-definition.scss} +0 -0
  171. package/lib/components/button-drop-down/style/_theme.scss +5 -0
  172. package/lib/components/button-drop-down/style/material.scss +4 -0
  173. package/{src/lib → lib}/components/card/card.scss +3 -1
  174. package/lib/components/co-dialog/co-dialog.component.d.ts +12 -0
  175. package/lib/components/co-dialog/co-dialog.module.d.ts +2 -0
  176. package/lib/components/co-dialog/style/_layout.scss +47 -0
  177. package/lib/components/co-dialog/style/_material-definition.scss +23 -0
  178. package/lib/components/co-dialog/style/_theme.scss +27 -0
  179. package/lib/components/co-dialog/style/material.scss +4 -0
  180. package/lib/components/co-dialog-prompt/co-dialog-prompt.component.d.ts +19 -0
  181. package/{src/lib/components/co-dialog/co-dialog.component.scss → lib/components/co-dialog-prompt/co-dialog-prompt.component.scss} +0 -0
  182. package/lib/components/co-dialog-prompt/co-dialog-prompt.module.d.ts +2 -0
  183. package/lib/components/co-kanban/co-kanban.component.d.ts +28 -0
  184. package/lib/components/co-kanban/co-kanban.module.d.ts +2 -0
  185. package/lib/components/co-kanban/style/_layout.scss +51 -0
  186. package/lib/components/co-kanban/style/_material-definition.scss +25 -0
  187. package/lib/components/co-kanban/style/_theme.scss +7 -0
  188. package/lib/components/co-kanban/style/material.scss +13 -0
  189. package/lib/components/co-rich-text-editor/co-rich-text-editor.component.d.ts +13 -0
  190. package/lib/components/co-rich-text-editor/co-rich-text-editor.module.d.ts +2 -0
  191. package/lib/components/co-rich-text-editor/style/_layout.scss +5 -0
  192. package/lib/components/co-rich-text-editor/style/_material-definition.scss +9 -0
  193. package/lib/components/co-rich-text-editor/style/_theme.scss +5 -0
  194. package/lib/components/co-rich-text-editor/style/material.scss +4 -0
  195. package/lib/components/co-schedule/co-schedule.component.d.ts +18 -0
  196. package/{src/lib → lib}/components/co-schedule/co-schedule.component.scss +0 -0
  197. package/lib/components/co-schedule/co-schedule.module.d.ts +2 -0
  198. package/lib/components/co-sidebar/co-sidebar.component.d.ts +10 -0
  199. package/{src/lib → lib}/components/co-sidebar/co-sidebar.component.scss +0 -0
  200. package/lib/components/co-sidebar/co-sidebar.module.d.ts +2 -0
  201. package/lib/components/co-toggle/co-toggle.component.d.ts +9 -0
  202. package/lib/components/co-toggle/co-toggle.component.scss +1 -0
  203. package/lib/components/co-toggle/co-toggle.module.d.ts +2 -0
  204. package/lib/components/collapsible/collapsible.component.d.ts +16 -0
  205. package/lib/components/collapsible/collapsible.module.d.ts +2 -0
  206. package/lib/components/collapsible/style/_layout.scss +53 -0
  207. package/lib/components/collapsible/style/_material-definition.scss +9 -0
  208. package/lib/components/collapsible/style/_theme.scss +9 -0
  209. package/lib/components/collapsible/style/material.scss +4 -0
  210. package/lib/components/drop-down-list/drop-down-list.component.d.ts +16 -0
  211. package/{src/lib → lib}/components/drop-down-list/drop-down-list.component.scss +0 -0
  212. package/lib/components/drop-down-list/drop-down.module.d.ts +2 -0
  213. package/lib/components/drop-down-list/style/_layout.scss +7 -0
  214. package/{src/lib/components/co-rich-text-editor/co-rich-text-editor.component.scss → lib/components/drop-down-list/style/_material-definition.scss} +0 -0
  215. package/lib/components/drop-down-list/style/_theme.scss +5 -0
  216. package/lib/components/drop-down-list/style/material.scss +4 -0
  217. package/lib/components/form/form.component.d.ts +40 -0
  218. package/lib/components/form/form.module.d.ts +2 -0
  219. package/lib/components/grid/base/base-grid.component.d.ts +24 -0
  220. package/lib/components/grid/base/base-inline-edit-grid.component.d.ts +9 -0
  221. package/lib/components/grid/base/base-selection-grid.component.d.ts +27 -0
  222. package/lib/components/grid/base/base-toolbar-grid.component.d.ts +17 -0
  223. package/lib/components/grid/co-grid.component.d.ts +6 -0
  224. package/lib/components/grid/co-grid.module.d.ts +2 -0
  225. package/{src/lib/components/grid/enum/grid-lines.enum.ts → lib/components/grid/enum/grid-lines.enum.d.ts} +2 -2
  226. package/lib/components/grid/interface/grid-menu-event-args.d.ts +3 -0
  227. package/lib/components/grid/interface/grid-row-drag-event-args.d.ts +3 -0
  228. package/lib/components/grid/interface/grid-row-drop-event-args.d.ts +3 -0
  229. package/lib/components/grid/style/_layout.scss +38 -0
  230. package/lib/components/grid/style/_material-definition.scss +17 -0
  231. package/lib/components/grid/style/_theme.scss +5 -0
  232. package/lib/components/grid/style/material.scss +4 -0
  233. package/lib/components/icon/icon-cache.service.d.ts +20 -0
  234. package/lib/components/icon/icon.component.d.ts +10 -0
  235. package/lib/components/icon/icon.module.d.ts +2 -0
  236. package/{src/lib → lib}/components/icon/icon.scss +3 -2
  237. package/lib/components/image/image.component.d.ts +4 -0
  238. package/lib/components/image/image.module.d.ts +2 -0
  239. package/lib/components/input-checkbox/input-checkbox.component.d.ts +16 -0
  240. package/lib/components/input-checkbox/input-checkbox.module.d.ts +2 -0
  241. package/lib/components/input-checkbox/style/_layout.scss +5 -0
  242. package/lib/components/input-checkbox/style/_material-definition.scss +2 -0
  243. package/lib/components/input-checkbox/style/_theme.scss +5 -0
  244. package/lib/components/input-checkbox/style/material.scss +4 -0
  245. package/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.component.d.ts +22 -0
  246. package/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.module.d.ts +2 -0
  247. package/lib/components/input-checkbox-multi-select/style/_layout.scss +5 -0
  248. package/lib/components/input-checkbox-multi-select/style/_material-definition.scss +7 -0
  249. package/lib/components/input-checkbox-multi-select/style/_theme.scss +5 -0
  250. package/lib/components/input-checkbox-multi-select/style/material.scss +4 -0
  251. package/lib/components/input-combo-box/input-combo-box.component.d.ts +25 -0
  252. package/lib/components/input-combo-box/input-combo-box.module.d.ts +2 -0
  253. package/lib/components/input-combo-box/style/_layout.scss +5 -0
  254. package/lib/components/input-combo-box/style/_material-definition.scss +7 -0
  255. package/lib/components/input-combo-box/style/_theme.scss +5 -0
  256. package/lib/components/input-combo-box/style/material.scss +4 -0
  257. package/lib/components/input-date-picker/input-date-picker.component.d.ts +30 -0
  258. package/lib/components/input-date-picker/input-date-picker.module.d.ts +2 -0
  259. package/lib/components/input-date-picker/style/_layout.scss +5 -0
  260. package/lib/components/input-date-picker/style/_material-definition.scss +8 -0
  261. package/lib/components/input-date-picker/style/_theme.scss +5 -0
  262. package/lib/components/input-date-picker/style/material.scss +4 -0
  263. package/lib/components/input-listbox/input-listbox.component.d.ts +14 -0
  264. package/lib/components/input-listbox/input-listbox.module.d.ts +2 -0
  265. package/lib/components/input-listbox/style/_layout.scss +22 -0
  266. package/lib/components/input-listbox/style/_material-definition.scss +10 -0
  267. package/lib/components/input-listbox/style/_theme.scss +14 -0
  268. package/lib/components/input-listbox/style/material.scss +4 -0
  269. package/lib/components/input-number-picker/input-number-picker.component.d.ts +65 -0
  270. package/lib/components/input-number-picker/input-number-picker.module.d.ts +2 -0
  271. package/lib/components/input-number-picker/style/_layout.scss +43 -0
  272. package/lib/components/input-number-picker/style/_material-definition.scss +17 -0
  273. package/lib/components/input-number-picker/style/_theme.scss +22 -0
  274. package/lib/components/input-number-picker/style/material.scss +4 -0
  275. package/lib/components/input-radio-button/input-radio-button.component.d.ts +15 -0
  276. package/lib/components/input-radio-button/input-radio-button.module.d.ts +2 -0
  277. package/lib/components/input-radio-button/style/_layout.scss +28 -0
  278. package/lib/components/input-radio-button/style/_material-definition.scss +9 -0
  279. package/lib/components/input-radio-button/style/_theme.scss +11 -0
  280. package/lib/components/input-radio-button/style/material.scss +4 -0
  281. package/lib/components/input-search/style/_layout.scss +42 -0
  282. package/lib/components/input-search/style/_material-definition.scss +6 -0
  283. package/lib/components/input-search/style/_theme.scss +10 -0
  284. package/lib/components/input-search/style/material.scss +4 -0
  285. package/lib/components/input-text/input-text.component.d.ts +47 -0
  286. package/lib/components/input-text/input-text.module.d.ts +2 -0
  287. package/lib/components/input-text/style/_layout.scss +5 -0
  288. package/lib/components/input-text/style/_material-definition.scss +3 -0
  289. package/lib/components/input-text/style/_theme.scss +5 -0
  290. package/lib/components/input-text/style/material.scss +4 -0
  291. package/{src/lib/components/level-indicator/level-indicator-level.enum.ts → lib/components/level-indicator/level-indicator-level.enum.d.ts} +2 -2
  292. package/lib/components/level-indicator/level-indicator.component.d.ts +9 -0
  293. package/lib/components/level-indicator/level-indicator.module.d.ts +2 -0
  294. package/{src/lib → lib}/components/level-indicator/level-indicator.scss +4 -2
  295. package/lib/components/multi-select-list/multi-select-list.component.d.ts +19 -0
  296. package/lib/components/multi-select-list/multi-select-list.module.d.ts +2 -0
  297. package/lib/components/multi-select-list/style/_layout.scss +5 -0
  298. package/lib/components/multi-select-list/style/_material-definition.scss +7 -0
  299. package/lib/components/multi-select-list/style/_theme.scss +5 -0
  300. package/lib/components/multi-select-list/style/material.scss +4 -0
  301. package/lib/components/pivot/co-pivot.component.d.ts +40 -0
  302. package/lib/components/pivot/co-pivot.module.d.ts +2 -0
  303. package/lib/components/pivot/style/_layout.scss +5 -0
  304. package/lib/components/pivot/style/_material-definition.scss +10 -0
  305. package/lib/components/pivot/style/_theme.scss +5 -0
  306. package/lib/components/pivot/style/material.scss +4 -0
  307. package/lib/components/popup/const/popup-window-token.d.ts +3 -0
  308. package/lib/components/popup/interface/popup-button.d.ts +8 -0
  309. package/{src/lib/components/popup/interface/popup-close-event.ts → lib/components/popup/interface/popup-close-event.d.ts} +0 -3
  310. package/lib/components/popup/interface/popup-settings.d.ts +21 -0
  311. package/lib/components/popup/interface/popup.d.ts +9 -0
  312. package/lib/components/popup/model/popup-button-globals.d.ts +9 -0
  313. package/lib/components/popup/model/popup-window.d.ts +21 -0
  314. package/lib/components/popup/popup-buttons.component.d.ts +13 -0
  315. package/{src/lib → lib}/components/popup/popup-buttons.component.scss +0 -0
  316. package/lib/components/popup/popup-message-display.component.d.ts +12 -0
  317. package/lib/components/popup/popup-window-shell.component.d.ts +42 -0
  318. package/{src/lib → lib}/components/popup/popup-window-shell.component.scss +8 -8
  319. package/lib/components/popup/popup.module.d.ts +4 -0
  320. package/lib/components/popup/service/popup-shower.service.d.ts +17 -0
  321. package/lib/components/popup/service/prompt.service.d.ts +17 -0
  322. package/lib/components/popup/text-input-popup.component.d.ts +12 -0
  323. package/lib/components/simple-grid/simple-grid-column.directive.d.ts +18 -0
  324. package/lib/components/simple-grid/simple-grid.component.d.ts +26 -0
  325. package/lib/components/simple-grid/simple-grid.module.d.ts +2 -0
  326. package/lib/components/simple-grid/style/_layout.scss +80 -0
  327. package/lib/components/simple-grid/style/_material-definition.scss +16 -0
  328. package/lib/components/simple-grid/style/_theme.scss +17 -0
  329. package/lib/components/simple-grid/style/material.scss +4 -0
  330. package/lib/components/tile/tile.component.d.ts +15 -0
  331. package/{src/lib → lib}/components/tile/tile.component.scss +4 -4
  332. package/lib/components/tile/tile.module.d.ts +2 -0
  333. package/lib/core/constant/default-upper-bound-for-range-components.d.ts +1 -0
  334. package/lib/core/constant/java-max-int.d.ts +1 -0
  335. package/lib/core/constant/number-inputs-key-down-white-list.d.ts +2 -0
  336. package/lib/core/decorator/input-boolean.decorator.d.ts +8 -0
  337. package/{src/lib/core/enum/co-document-image-display-kind.enum.ts → lib/core/enum/co-document-image-display-kind.enum.d.ts} +1 -1
  338. package/lib/core/enum/co-document-type.enum.d.ts +5 -0
  339. package/{src/lib/core/enum/core-components-icon.enum.ts → lib/core/enum/core-components-icon.enum.d.ts} +56 -57
  340. package/{src/lib/core/enum/file-type-internal.enum.ts → lib/core/enum/file-type-internal.enum.d.ts} +10 -10
  341. package/lib/core/enum/file-type.enum.d.ts +5 -0
  342. package/lib/core/enum/float-label-type.enum.d.ts +5 -0
  343. package/lib/core/enum/input-number-picker-show-mode.enum.d.ts +5 -0
  344. package/lib/core/enum/input-text-type.enum.d.ts +4 -0
  345. package/{src/lib/core/enum/keyboard-code.enum.ts → lib/core/enum/keyboard-code.enum.d.ts} +23 -24
  346. package/{src/lib/core/enum/object-right-type.enum.ts → lib/core/enum/object-right-type.enum.d.ts} +1 -1
  347. package/lib/core/enum/popup-button-type.enum.d.ts +9 -0
  348. package/lib/core/enum/popup-type.enum.d.ts +9 -0
  349. package/{src/lib/core/enum/schedule-view.enum.ts → lib/core/enum/schedule-view.enum.d.ts} +2 -2
  350. package/{src/lib/core/enum/table-name.enum.ts → lib/core/enum/table-name.enum.d.ts} +1 -1
  351. package/lib/core/function/any-nill.function.d.ts +1 -0
  352. package/lib/core/function/is-nill.function.d.ts +1 -0
  353. package/lib/core/function/none-nill.function.d.ts +1 -0
  354. package/lib/core/function/not-nill.function.d.ts +1 -0
  355. package/lib/core/model/bounds-constrained-number-value.d.ts +46 -0
  356. package/{src/lib/core/model/check-precision-and-scale-result.ts → lib/core/model/check-precision-and-scale-result.d.ts} +1 -2
  357. package/{src/lib/core/model/check-within-stepped-bounds-result.ts → lib/core/model/check-within-stepped-bounds-result.d.ts} +3 -3
  358. package/lib/core/model/co-document-right.bo.d.ts +6 -0
  359. package/lib/core/model/co-document.bo.d.ts +61 -0
  360. package/lib/core/model/core-components-icon-svg.d.ts +4 -0
  361. package/lib/core/model/element-position.d.ts +7 -0
  362. package/lib/core/model/event/string-prompt-result-event.d.ts +6 -0
  363. package/lib/core/model/numerical-range.d.ts +7 -0
  364. package/lib/core/service/form-input-user-change-listener.service.d.ts +10 -0
  365. package/lib/core/service/form-master.service.d.ts +26 -0
  366. package/lib/core/service/ng-zone-wrapper.service.d.ts +6 -0
  367. package/lib/core/utils/array-utils.d.ts +85 -0
  368. package/lib/core/utils/browser-utils.d.ts +15 -0
  369. package/lib/core/utils/event-utils.d.ts +12 -0
  370. package/lib/core/utils/file-utils.d.ts +29 -0
  371. package/lib/core/utils/number-utils.d.ts +89 -0
  372. package/lib/core/utils/object-utils.d.ts +31 -0
  373. package/lib/core/utils/string-utils.d.ts +25 -0
  374. package/lib/core/validator/max-string-length.validator.d.ts +2 -0
  375. package/lib/core/validator/precision-scale.validator.d.ts +2 -0
  376. package/lib/core/validator/required.validator.d.ts +2 -0
  377. package/lib/directives/ripple/ripple-ref.d.ts +21 -0
  378. package/lib/directives/ripple/ripple-renderer.d.ts +56 -0
  379. package/lib/directives/ripple/ripple.directive.d.ts +56 -0
  380. package/lib/directives/ripple/ripple.module.d.ts +2 -0
  381. package/lib/directives/ripple/scroll-dispatcher.service.d.ts +51 -0
  382. package/lib/directives/ripple/scrollable.directive.d.ts +20 -0
  383. package/lib/directives/ripple/viewport-ruler.service.d.ts +29 -0
  384. package/lib/directives/stopclick/stop-click.directive.d.ts +10 -0
  385. package/lib/directives/stopclick/stop-click.module.d.ts +2 -0
  386. package/{src/lib → lib}/modules/pagination/pagination.scss +4 -4
  387. package/lib/pipes/append.pipe.d.ts +4 -0
  388. package/lib/pipes/append.pipe.module.d.ts +2 -0
  389. package/lib/pipes/price-display-pipe.module.d.ts +2 -0
  390. package/lib/pipes/price-display.pipe.d.ts +4 -0
  391. package/{src/lib → lib}/style/_extendables.scss +0 -0
  392. package/{src/lib → lib}/style/_input.mixins.scss +0 -0
  393. package/lib/style/_mixin.scss +9 -0
  394. package/{src/lib → lib}/style/_responsiveness.mixins.scss +0 -0
  395. package/{src/lib → lib}/style/_responsiveness.scss +0 -0
  396. package/{src/lib → lib}/style/_transition.mixins.scss +0 -0
  397. package/{src/lib/style/_base-input.scss → lib/style/_variables.scss} +77 -95
  398. package/{src/lib → lib}/style/main.scss +0 -0
  399. package/{src/lib → lib}/style/material2/_core.scss +3 -3
  400. package/lib/style/material2/_material2-scss-barrel.scss +16 -0
  401. package/{src/lib → lib}/style/material2/ripple/_co-ripple.scss +0 -0
  402. package/{src/lib → lib}/style/material2/style/_elevation.scss +0 -0
  403. package/{src/lib → lib}/style/material2/style/_list-common.scss +0 -0
  404. package/{src/lib → lib}/style/material2/style/_variables.scss +0 -0
  405. package/{src/lib → lib}/style/material2/theming/_palette.scss +0 -0
  406. package/{src/lib → lib}/style/material2/theming/_theming.scss +0 -0
  407. package/{src/lib → lib}/style/material2/typography/_typography.scss +0 -0
  408. package/package.json +11 -3
  409. package/{src/public-api.ts → public-api.d.ts} +68 -66
  410. package/colijnit-corecomponents_v12-12.0.13.tgz +0 -0
  411. package/karma.conf.js +0 -44
  412. package/ng-package.json +0 -10
  413. package/src/lib/components/article-tile/article-tile.component.ts +0 -95
  414. package/src/lib/components/article-tile/article-tile.module.ts +0 -34
  415. package/src/lib/components/base/base-input.component.ts +0 -681
  416. package/src/lib/components/base/base.module.ts +0 -22
  417. package/src/lib/components/base/component-interface-name.ts +0 -6
  418. package/src/lib/components/button/button.component.ts +0 -94
  419. package/src/lib/components/button/button.module.ts +0 -18
  420. package/src/lib/components/button/button.scss +0 -111
  421. package/src/lib/components/button-drop-down/button-drop-down.component.scss +0 -19
  422. package/src/lib/components/button-drop-down/button-drop-down.component.ts +0 -53
  423. package/src/lib/components/button-drop-down/button-drop-down.module.ts +0 -17
  424. package/src/lib/components/card/card.component.ts +0 -92
  425. package/src/lib/components/card/card.module.ts +0 -34
  426. package/src/lib/components/co-dialog/co-dialog.component.ts +0 -88
  427. package/src/lib/components/co-dialog/co-dialog.module.ts +0 -15
  428. package/src/lib/components/co-dialog-prompt/co-dialog-prompt.component.ts +0 -70
  429. package/src/lib/components/co-dialog-prompt/co-dialog-prompt.module.ts +0 -15
  430. package/src/lib/components/co-kanban/co-kanban.component.ts +0 -128
  431. package/src/lib/components/co-kanban/co-kanban.module.ts +0 -18
  432. package/src/lib/components/co-rich-text-editor/co-rich-text-editor.component.ts +0 -69
  433. package/src/lib/components/co-rich-text-editor/co-rich-text-editor.module.ts +0 -18
  434. package/src/lib/components/co-schedule/co-schedule.component.ts +0 -96
  435. package/src/lib/components/co-schedule/co-schedule.module.ts +0 -19
  436. package/src/lib/components/co-sidebar/co-sidebar.component.ts +0 -42
  437. package/src/lib/components/co-sidebar/co-sidebar.module.ts +0 -13
  438. package/src/lib/components/co-toggle/co-toggle.component.scss +0 -0
  439. package/src/lib/components/co-toggle/co-toggle.component.ts +0 -46
  440. package/src/lib/components/co-toggle/co-toggle.module.ts +0 -18
  441. package/src/lib/components/drop-down-list/drop-down-list.component.ts +0 -65
  442. package/src/lib/components/drop-down-list/drop-down.module.ts +0 -18
  443. package/src/lib/components/form/form.component.ts +0 -223
  444. package/src/lib/components/form/form.module.ts +0 -22
  445. package/src/lib/components/grid/base/base-grid.component.ts +0 -83
  446. package/src/lib/components/grid/base/base-inline-edit-grid.component.ts +0 -36
  447. package/src/lib/components/grid/base/base-selection-grid.component.ts +0 -98
  448. package/src/lib/components/grid/base/base-toolbar-grid.component.ts +0 -75
  449. package/src/lib/components/grid/co-grid.component.scss +0 -29
  450. package/src/lib/components/grid/co-grid.component.ts +0 -70
  451. package/src/lib/components/grid/co-grid.module.ts +0 -49
  452. package/src/lib/components/grid/enum/column-align.enum.ts +0 -5
  453. package/src/lib/components/grid/interface/grid-menu-event-args.ts +0 -5
  454. package/src/lib/components/grid/interface/grid-row-drag-event-args.ts +0 -5
  455. package/src/lib/components/grid/interface/grid-row-drop-event-args.ts +0 -5
  456. package/src/lib/components/grid/model/co-grid-column.ts +0 -9
  457. package/src/lib/components/icon/icon-cache.service.ts +0 -57
  458. package/src/lib/components/icon/icon.component.ts +0 -30
  459. package/src/lib/components/icon/icon.module.ts +0 -24
  460. package/src/lib/components/image/image.component.ts +0 -20
  461. package/src/lib/components/image/image.css +0 -9
  462. package/src/lib/components/image/image.module.ts +0 -11
  463. package/src/lib/components/input-checkbox/input-checkbox.component.scss +0 -14
  464. package/src/lib/components/input-checkbox/input-checkbox.component.ts +0 -69
  465. package/src/lib/components/input-checkbox/input-checkbox.module.ts +0 -22
  466. package/src/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.component.scss +0 -8
  467. package/src/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.component.ts +0 -84
  468. package/src/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.module.ts +0 -24
  469. package/src/lib/components/input-combo-box/input-combo-box.component.scss +0 -8
  470. package/src/lib/components/input-combo-box/input-combo-box.component.ts +0 -96
  471. package/src/lib/components/input-combo-box/input-combo-box.module.ts +0 -24
  472. package/src/lib/components/input-date-picker/input-date-picker.component.scss +0 -30
  473. package/src/lib/components/input-date-picker/input-date-picker.component.ts +0 -121
  474. package/src/lib/components/input-date-picker/input-date-picker.module.ts +0 -27
  475. package/src/lib/components/input-number-picker/input-number-picker.component.scss +0 -49
  476. package/src/lib/components/input-number-picker/input-number-picker.component.ts +0 -316
  477. package/src/lib/components/input-number-picker/input-number-picker.module.ts +0 -16
  478. package/src/lib/components/input-radio-button/input-radio-button.component.scss +0 -89
  479. package/src/lib/components/input-radio-button/input-radio-button.component.ts +0 -74
  480. package/src/lib/components/input-radio-button/input-radio-button.module.ts +0 -20
  481. package/src/lib/components/input-text/input-text.component.ts +0 -155
  482. package/src/lib/components/input-text/input-text.module.ts +0 -27
  483. package/src/lib/components/input-text/input-text.scss +0 -4
  484. package/src/lib/components/level-indicator/level-indicator.component.ts +0 -41
  485. package/src/lib/components/level-indicator/level-indicator.module.ts +0 -13
  486. package/src/lib/components/multi-select-list/multi-select-list.component.scss +0 -1
  487. package/src/lib/components/multi-select-list/multi-select-list.component.ts +0 -78
  488. package/src/lib/components/multi-select-list/multi-select-list.module.ts +0 -17
  489. package/src/lib/components/pivot/co-pivot.component.scss +0 -0
  490. package/src/lib/components/pivot/co-pivot.component.ts +0 -246
  491. package/src/lib/components/pivot/co-pivot.module.ts +0 -16
  492. package/src/lib/components/popup/const/popup-window-token.ts +0 -4
  493. package/src/lib/components/popup/interface/popup-button.ts +0 -14
  494. package/src/lib/components/popup/interface/popup-settings.ts +0 -70
  495. package/src/lib/components/popup/interface/popup.ts +0 -17
  496. package/src/lib/components/popup/model/popup-button-globals.ts +0 -11
  497. package/src/lib/components/popup/model/popup-window.ts +0 -51
  498. package/src/lib/components/popup/popup-buttons.component.ts +0 -61
  499. package/src/lib/components/popup/popup-message-display.component.ts +0 -49
  500. package/src/lib/components/popup/popup-window-shell.component.ts +0 -222
  501. package/src/lib/components/popup/popup.module.ts +0 -48
  502. package/src/lib/components/popup/service/popup-shower.service.ts +0 -98
  503. package/src/lib/components/popup/service/prompt.service.ts +0 -127
  504. package/src/lib/components/popup/text-input-popup.component.ts +0 -36
  505. package/src/lib/components/tile/tile.component.ts +0 -70
  506. package/src/lib/components/tile/tile.module.ts +0 -21
  507. package/src/lib/core/abstract/collection-based-component.ts +0 -488
  508. package/src/lib/core/config/device-environment.ts +0 -26
  509. package/src/lib/core/constant/default-upper-bound-for-range-components.ts +0 -3
  510. package/src/lib/core/constant/java-max-int.ts +0 -1
  511. package/src/lib/core/constant/number-inputs-key-down-white-list.ts +0 -45
  512. package/src/lib/core/decorator/input-boolean.decorator.ts +0 -35
  513. package/src/lib/core/enum/co-direction.ts +0 -7
  514. package/src/lib/core/enum/co-document-type.enum.ts +0 -9
  515. package/src/lib/core/enum/co-orientation.ts +0 -18
  516. package/src/lib/core/enum/collection-based-component-input-driver-prop.enum.ts +0 -10
  517. package/src/lib/core/enum/color-sequence-name.enum.ts +0 -5
  518. package/src/lib/core/enum/file-type.enum.ts +0 -9
  519. package/src/lib/core/enum/float-label-type.enum.ts +0 -5
  520. package/src/lib/core/enum/input-number-picker-show-mode.enum.ts +0 -6
  521. package/src/lib/core/enum/input-text-type.enum.ts +0 -4
  522. package/src/lib/core/enum/keyboard-key.enum.ts +0 -77
  523. package/src/lib/core/enum/logical-operator-type.enum.ts +0 -5
  524. package/src/lib/core/enum/popup-button-type.enum.ts +0 -10
  525. package/src/lib/core/enum/popup-type.enum.ts +0 -9
  526. package/src/lib/core/enum/search-data-type.ts +0 -4
  527. package/src/lib/core/enum/search-property-state.ts +0 -5
  528. package/src/lib/core/enum/sort-data-type.ts +0 -6
  529. package/src/lib/core/enum/sort-direction.ts +0 -9
  530. package/src/lib/core/enum/value-comparison-type.ts +0 -11
  531. package/src/lib/core/function/any-nill.function.ts +0 -6
  532. package/src/lib/core/function/is-nill.function.ts +0 -4
  533. package/src/lib/core/function/none-nill.function.ts +0 -16
  534. package/src/lib/core/function/not-nill.function.ts +0 -4
  535. package/src/lib/core/interface/search-property.ts +0 -15
  536. package/src/lib/core/interface/sort-property.ts +0 -16
  537. package/src/lib/core/model/bounds-constrained-number-value.ts +0 -219
  538. package/src/lib/core/model/co-document-right.bo.ts +0 -9
  539. package/src/lib/core/model/co-document.bo.ts +0 -193
  540. package/src/lib/core/model/color-sequence.ts +0 -39
  541. package/src/lib/core/model/color.ts +0 -29
  542. package/src/lib/core/model/core-components-icon-svg.ts +0 -56
  543. package/src/lib/core/model/element-position.ts +0 -14
  544. package/src/lib/core/model/event/number-prompt-result-event.ts +0 -10
  545. package/src/lib/core/model/event/string-prompt-result-event.ts +0 -10
  546. package/src/lib/core/model/numerical-range.ts +0 -19
  547. package/src/lib/core/service/color-sequence.service.ts +0 -104
  548. package/src/lib/core/service/form-input-user-change-listener.service.ts +0 -31
  549. package/src/lib/core/service/form-master.service.ts +0 -119
  550. package/src/lib/core/service/ng-zone-wrapper.service.ts +0 -15
  551. package/src/lib/core/utils/array-utils.spec.ts +0 -588
  552. package/src/lib/core/utils/array-utils.ts +0 -301
  553. package/src/lib/core/utils/browser-utils.ts +0 -123
  554. package/src/lib/core/utils/business-object-utils.ts +0 -42
  555. package/src/lib/core/utils/css-utils.ts +0 -276
  556. package/src/lib/core/utils/element-ref.utils.ts +0 -12
  557. package/src/lib/core/utils/event-utils.ts +0 -61
  558. package/src/lib/core/utils/file-utils.ts +0 -291
  559. package/src/lib/core/utils/number-utils.spec.ts +0 -657
  560. package/src/lib/core/utils/number-utils.ts +0 -350
  561. package/src/lib/core/utils/object-utils.ts +0 -205
  562. package/src/lib/core/utils/parameter-value-conversion-utils.ts +0 -116
  563. package/src/lib/core/utils/search-utils.ts +0 -121
  564. package/src/lib/core/utils/sort-utils.ts +0 -108
  565. package/src/lib/core/utils/string-utils.ts +0 -100
  566. package/src/lib/core/validator/email.validator.ts +0 -10
  567. package/src/lib/core/validator/max-string-length.validator.ts +0 -11
  568. package/src/lib/core/validator/precision-scale.validator.ts +0 -14
  569. package/src/lib/core/validator/required.validator.ts +0 -9
  570. package/src/lib/directives/align-with/align-with.directive.ts +0 -158
  571. package/src/lib/directives/align-with/align-with.module.ts +0 -13
  572. package/src/lib/directives/clickoutside/click-outside-master.service.ts +0 -64
  573. package/src/lib/directives/clickoutside/click-outside.directive.ts +0 -72
  574. package/src/lib/directives/clickoutside/clickoutside.module.ts +0 -17
  575. package/src/lib/directives/parsevalue/parse-value.directive.ts +0 -42
  576. package/src/lib/directives/parsevalue/parse-value.module.ts +0 -13
  577. package/src/lib/directives/resize/resize-detect.directive.ts +0 -54
  578. package/src/lib/directives/resize/resize-detect.module.ts +0 -13
  579. package/src/lib/directives/ripple/ripple-ref.ts +0 -28
  580. package/src/lib/directives/ripple/ripple-renderer.ts +0 -217
  581. package/src/lib/directives/ripple/ripple.directive.ts +0 -116
  582. package/src/lib/directives/ripple/ripple.module.ts +0 -24
  583. package/src/lib/directives/ripple/scroll-dispatcher.service.ts +0 -129
  584. package/src/lib/directives/ripple/scrollable.directive.ts +0 -37
  585. package/src/lib/directives/ripple/viewport-ruler.service.ts +0 -84
  586. package/src/lib/directives/stopclick/stop-click.directive.ts +0 -35
  587. package/src/lib/directives/stopclick/stop-click.module.ts +0 -14
  588. package/src/lib/directives/template-wrapper/template-wrapper.directive.ts +0 -71
  589. package/src/lib/directives/template-wrapper/template-wrapper.module.ts +0 -13
  590. package/src/lib/model/data-item.ts +0 -9
  591. package/src/lib/model/enum/currency-code.enum.ts +0 -7
  592. package/src/lib/model/enum/language-code.enum.ts +0 -8
  593. package/src/lib/model/map/currencies.map.ts +0 -6
  594. package/src/lib/modules/drag-drop/drag-drop-container.component.ts +0 -115
  595. package/src/lib/modules/drag-drop/drag-drop-container.css +0 -34
  596. package/src/lib/modules/drag-drop/drag-drop-manager.service.ts +0 -414
  597. package/src/lib/modules/drag-drop/drag-drop.module.ts +0 -20
  598. package/src/lib/modules/drag-drop/draggable.directive.ts +0 -70
  599. package/src/lib/modules/drag-drop/model/co-drag-event.ts +0 -5
  600. package/src/lib/modules/drag-drop/model/co-drop-event.ts +0 -9
  601. package/src/lib/modules/drag-drop/model/drag-drop-container-element.ts +0 -7
  602. package/src/lib/modules/drag-drop/model/drag-drop-container.ts +0 -9
  603. package/src/lib/modules/media-monitor/flex-layout-breakpoint.enum.ts +0 -5
  604. package/src/lib/modules/media-monitor/media-monitor.module.ts +0 -14
  605. package/src/lib/modules/media-monitor/media-monitor.service.ts +0 -36
  606. package/src/lib/modules/pagination/paginate.pipe.ts +0 -122
  607. package/src/lib/modules/pagination/pagination-instance.ts +0 -18
  608. package/src/lib/modules/pagination/pagination.component.ts +0 -217
  609. package/src/lib/modules/pagination/pagination.module.ts +0 -25
  610. package/src/lib/modules/pagination/pagination.service.ts +0 -98
  611. package/src/lib/pipes/append.pipe.module.ts +0 -13
  612. package/src/lib/pipes/append.pipe.ts +0 -17
  613. package/src/lib/pipes/co-currency-pipe.module.ts +0 -13
  614. package/src/lib/pipes/co-currency.pipe.ts +0 -45
  615. package/src/lib/pipes/emun-keys.pipe.ts +0 -20
  616. package/src/lib/pipes/enum-keys-pipe.module.ts +0 -13
  617. package/src/lib/pipes/file-type-image-pipe.module.ts +0 -13
  618. package/src/lib/pipes/file-type-image.pipe.ts +0 -45
  619. package/src/lib/pipes/master-pipe.module.ts +0 -13
  620. package/src/lib/pipes/master.pipe.ts +0 -71
  621. package/src/lib/pipes/price-display-pipe.module.ts +0 -14
  622. package/src/lib/pipes/price-display.pipe.ts +0 -20
  623. package/src/lib/pipes/safe-style.pipe.module.ts +0 -13
  624. package/src/lib/pipes/safe-style.pipe.ts +0 -14
  625. package/src/lib/pipes/ucfirst-pipe.module.ts +0 -13
  626. package/src/lib/pipes/ucfirst.pipe.ts +0 -14
  627. package/src/lib/style/_variables.scss +0 -76
  628. package/src/lib/style/material2/_material2-scss-barrel.scss +0 -16
  629. package/src/test.ts +0 -28
  630. package/tsconfig.lib.json +0 -20
  631. package/tsconfig.lib.prod.json +0 -16
  632. package/tsconfig.spec.json +0 -17
@@ -1,70 +0,0 @@
1
- import { PopupButton } from './popup-button';
2
- import { PopupType } from '../../../core/enum/popup-type.enum';
3
- import { PopupButtonType } from '../../../core/enum/popup-button-type.enum';
4
-
5
- export class PopupSettings {
6
- // Title text for the header of a popup window. Will be localized.
7
- public title: string;
8
- // Whether to close the popup automatically when the user clicks outside of it.
9
- public autoClose: boolean;
10
- // Kind of popup to adjust styling.
11
- public type: PopupType;
12
- // Defines which buttons are shown.
13
- public buttons?: PopupButton[];
14
- // Set to true to hide the 'X' close icon in the top-right corner of the popup.
15
- public hideCloseIcon?: boolean;
16
- // Do not focus on first button when popping up (default behavior is to focus on the first button)
17
- public noButtonFocus?: boolean;
18
- // Whether the popup can be moved around
19
- public fixed?: boolean;
20
- // Whether content of the popup can be downloaded
21
- public downloadable?: boolean;
22
-
23
- constructor() {
24
- }
25
-
26
- public enableButtonByType(buttonType: PopupButtonType): void {
27
- const button: PopupButton = this._getButtonByType(buttonType);
28
- if (button) {
29
- button.disabled = false;
30
- }
31
- }
32
-
33
- public disableButtonByType(buttonType: PopupButtonType): void {
34
- const button: PopupButton = this._getButtonByType(buttonType);
35
- if (button) {
36
- button.disabled = true;
37
- }
38
- }
39
-
40
- public enableSaveButton(): void {
41
- this.enableButtonByType(PopupButtonType.Save);
42
- }
43
-
44
- public disableSaveButton(): void {
45
- this.disableButtonByType(PopupButtonType.Save);
46
- }
47
-
48
- public enableOpenButton(): void {
49
- this.enableButtonByType(PopupButtonType.Open);
50
- }
51
-
52
- public disableOpenButton(): void {
53
- this.disableButtonByType(PopupButtonType.Open);
54
- }
55
-
56
- private _getButtonByType(buttonType: PopupButtonType): PopupButton {
57
- let button: PopupButton = undefined;
58
-
59
- if (this.buttons) {
60
- for (let i: number = 0, len: number = this.buttons.length; i < len; i++) {
61
- if (this.buttons[i].closeType === buttonType) {
62
- button = this.buttons[i];
63
- break;
64
- }
65
- }
66
- }
67
-
68
- return button;
69
- }
70
- }
@@ -1,17 +0,0 @@
1
- import {EventEmitter} from "@angular/core";
2
- import { PopupWindowModel } from '../model/popup-window';
3
- import { PopupButtonType } from '../../../core/enum/popup-button-type.enum';
4
-
5
- // Base for all app popup components.
6
- export interface Popup<T = any> {
7
- // usable by AppPopups to request the closing of the mother AppPopupWindowComponent
8
- readonly closeRequest?: EventEmitter<PopupButtonType>;
9
-
10
- popupModel?: PopupWindowModel;
11
-
12
- // is called when the popup was just spawned
13
- onOpen?(): void;
14
-
15
- // Is called when the popup is closed by its mother AppPopupWindowComponent. Supply the output data in promise resolve.
16
- onClose(eventType: PopupButtonType): Promise<T>;
17
- }
@@ -1,11 +0,0 @@
1
- import { PopupButtonType } from '../../../core/enum/popup-button-type.enum';
2
- import { PopupButton } from '../interface/popup-button';
3
-
4
- export class PopupButtonGlobals {
5
- public static readonly Ok: PopupButton = new PopupButton('OK', 'ok-button', PopupButtonType.Ok);
6
- public static readonly Open: PopupButton = new PopupButton('OPEN', 'open-button', PopupButtonType.Open);
7
- public static readonly Save: PopupButton = new PopupButton('SAVE', 'save-button', PopupButtonType.Save);
8
- public static readonly Cancel: PopupButton = new PopupButton('CANCEL', 'cancel-button', PopupButtonType.Cancel);
9
- public static readonly Yes: PopupButton = new PopupButton('JA', 'ok-button', PopupButtonType.Yes);
10
- public static readonly No: PopupButton = new PopupButton('NEE', 'cancel-button', PopupButtonType.No);
11
- }
@@ -1,51 +0,0 @@
1
- import {ComponentFactory} from "@angular/core";
2
- import { PopupType } from '../../../core/enum/popup-type.enum';
3
- import { StringUtils } from '../../../core/utils/string-utils';
4
- import { PopupWindowShellComponent } from '../popup-window-shell.component';
5
- import { PopupButtonType } from '../../../core/enum/popup-button-type.enum';
6
- import { Popup } from '../interface/popup';
7
- import { PopupSettings } from '../interface/popup-settings';
8
-
9
- // Represent the base for app popup windows, with common fields and methods that each popup window has.
10
- export class PopupWindowModel {
11
- public static readonly closeDefaultOutputStr: string = "PopupWindowModel.closeDefault()";
12
-
13
- public get type(): PopupType {
14
- return this.settings ? this.settings.type : undefined;
15
- }
16
-
17
- public uuid: string = StringUtils.CreateGuid();
18
-
19
- // Reference to the actual popup window component.
20
- public popupWindowComponent?: PopupWindowShellComponent;
21
-
22
- constructor(public factory: ComponentFactory<Popup>, public settings: PopupSettings, public inputs: any) {
23
- }
24
-
25
- public closeDefault(): void {
26
- this.onClose(PopupButtonType.NoButton, PopupWindowModel.closeDefaultOutputStr);
27
- }
28
-
29
- public enableOpenButton(): void {
30
- if (this.settings) {
31
- this.settings.enableOpenButton();
32
- }
33
- }
34
-
35
- public disableOpenButton(): void {
36
- if (this.settings) {
37
- this.settings.disableOpenButton();
38
- }
39
- }
40
-
41
- public getTitle(): string {
42
- if (this.settings) {
43
- return this.settings.title;
44
- }
45
- }
46
-
47
- //noinspection JSUnusedLocalSymbols
48
- onClose(eventType: PopupButtonType, output?: any): void {
49
- return;
50
- }
51
- }
@@ -1,61 +0,0 @@
1
- import {Component, EventEmitter, Input, OnInit, Output, ViewChild} from "@angular/core";
2
- import {ButtonComponent} from "../button/button.component";
3
- import {PopupButtonGlobals} from "./model/popup-button-globals";
4
- import {PopupButton} from "./interface/popup-button";
5
-
6
- @Component({
7
- selector: 'co-popup-buttons',
8
- template: `
9
- <div class="popup-buttons">
10
- <co-button
11
- *ngFor="let button of buttons"
12
- [label]="button.label"
13
- [class]="button.cssClass"
14
- [disabled]="button.disabled"
15
- (click)="handleClick($event, button)"
16
- ></co-button>
17
- </div>
18
- `,
19
- styleUrls: [
20
- './popup-buttons.component.scss'
21
- ]
22
- })
23
- // Component that is part of the WindowComponent, and represents the panel with buttons on the bottom of app popups.
24
- export class PopupButtonsComponent implements OnInit {
25
-
26
- @Input()
27
- public popupWindow: any;
28
-
29
- @Output()
30
- public readonly buttonClick: EventEmitter<PopupButton> = new EventEmitter<PopupButton>();
31
-
32
- @ViewChild(ButtonComponent)
33
- public firstButton: ButtonComponent;
34
-
35
- public buttons: PopupButton[] = [PopupButtonGlobals.Ok, PopupButtonGlobals.Cancel];
36
-
37
- constructor() {
38
- }
39
-
40
- ngOnInit(): void {
41
- if (!this.popupWindow || !this.popupWindow.settings) {
42
- return;
43
- }
44
- if (this.popupWindow.settings.buttons) {
45
- this.buttons = this.popupWindow.settings.buttons;
46
- }
47
- }
48
-
49
- public handleClick(event: MouseEvent, button: PopupButton): void {
50
- event.preventDefault();
51
- event.stopImmediatePropagation();
52
- event.stopPropagation();
53
- this.buttonClick.emit(button);
54
- }
55
-
56
- public focusFirstButton(): void {
57
- if (this.firstButton) {
58
- this.firstButton.focus();
59
- }
60
- }
61
- }
@@ -1,49 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import { PopupButtonType } from '../../core/enum/popup-button-type.enum';
3
- import { FileUtils } from '../../core/utils/file-utils';
4
- import { BrowserUtils } from '../../core/utils/browser-utils';
5
- import { Popup } from './interface/popup';
6
-
7
- @Component({
8
- selector: "co-popup-message-display",
9
- template: `
10
- <span *ngIf="!image" class="message" [textContent]="message"></span>
11
- <img *ngIf="image" [src]="message"/>
12
- <ng-container *ngIf="details" label="DETAILS">
13
- <div class="overflow-y-auto overflow-x-hidden details">
14
- <span class="message wrap" [textContent]="details" style="overflow-wrap: break-word;"></span>
15
- </div>
16
- <span class="details-link" [textContent]="'COPY_MESSAGE_TO_CLIPBOARD'" (click)="handleCopyClick()"></span>
17
- </ng-container>
18
- `
19
- })
20
- export class PopupMessageDisplayComponent implements Popup<PopupButtonType> {
21
- @Input()
22
- public set message(value: string) {
23
- this._message = value;
24
- this.image = FileUtils.StringContainsDataUri(value);
25
- }
26
-
27
- public get message(): string {
28
- return this._message;
29
- }
30
-
31
- @Input()
32
- public details: string;
33
-
34
- public image: boolean = false;
35
-
36
- private _message: string = "";
37
-
38
- constructor() {
39
- }
40
-
41
- // @implements AppPopup
42
- async onClose(eventType: PopupButtonType): Promise<PopupButtonType> {
43
- return eventType;
44
- }
45
-
46
- public handleCopyClick(): void {
47
- BrowserUtils.CopyToClipboard(this.details);
48
- }
49
- }
@@ -1,222 +0,0 @@
1
- import {
2
- AfterViewInit,
3
- ChangeDetectionStrategy,
4
- ChangeDetectorRef,
5
- Component,
6
- ComponentRef,
7
- HostBinding,
8
- Inject,
9
- Input,
10
- OnDestroy,
11
- OnInit,
12
- ViewChild,
13
- ViewContainerRef
14
- } from "@angular/core";
15
- import {PopupButtonsComponent} from "./popup-buttons.component";
16
- import {Subscription} from "rxjs";
17
- import {PopupButtonType} from "../../core/enum/popup-button-type.enum";
18
- import {FileUtils} from "../../core/utils/file-utils";
19
- import {ObjectUtils} from "../../core/utils/object-utils";
20
- import {PopupType} from "../../core/enum/popup-type.enum";
21
- import {PopupMessageDisplayComponent} from "./popup-message-display.component";
22
- import {PopupWindowModel} from "./model/popup-window";
23
- import {Popup} from "./interface/popup";
24
- import {PopupButton} from "./interface/popup-button";
25
- import {POPUP_WINDOW_DATA} from "./const/popup-window-token";
26
- import {CoreComponentsIcon} from "../../core/enum/core-components-icon.enum";
27
- import {IconCacheService} from "../icon/icon-cache.service";
28
- import {SafeHtml} from "@angular/platform-browser";
29
-
30
- @Component({
31
- selector: "co-popup-window-shell",
32
- template: `
33
- <ng-container *ngIf="!isBlank">
34
- <co-button *ngIf="popupWindow?.settings.downloadable" class="circle shadowed popup-downloadable" [iconData]="downloadIcon"
35
- iconClass="light"
36
- (click)="onDownloadClick()"></co-button>
37
- <co-button *ngIf="!popupWindow?.settings.hideCloseIcon" class="circle shadowed popup-close" [iconData]="closeIcon"
38
- iconClass="light"
39
- (click)="onCloseClick()"></co-button>
40
- <div class="popup-wrapper" *ngIf="!isBlank">
41
- <div class="popup-title"><h2 [textContent]="popupWindow?.settings.title"></h2></div>
42
- <div class="popup-content" (mousedown)="$event.stopImmediatePropagation()">
43
- <ng-template #popupContent></ng-template>
44
- </div>
45
- <co-popup-buttons [popupWindow]="popupWindow" (buttonClick)="onButtonClick($event)"></co-popup-buttons>
46
- </div>
47
- </ng-container>
48
- <ng-template #popupContent *ngIf="isBlank"></ng-template>
49
- `,
50
- styleUrls: [
51
- "popup-window-shell.component.scss"
52
- ],
53
- changeDetection: ChangeDetectionStrategy.OnPush
54
- })
55
- // The main component for app popups. Visually represents the outer edges of the components.
56
- export class PopupWindowShellComponent implements AfterViewInit, OnDestroy, OnInit {
57
-
58
- public readonly icons: typeof CoreComponentsIcon = CoreComponentsIcon;
59
-
60
- @Input()
61
- public popupWindow: PopupWindowModel;
62
-
63
- @Input()
64
- @HostBinding("class.mobile-sizings")
65
- public hasMobileSizings: boolean;
66
-
67
- @ViewChild("popupContent", {read: ViewContainerRef})
68
- protected _viewContainer: ViewContainerRef;
69
-
70
- @ViewChild(PopupButtonsComponent)
71
- protected _appPopupButtons: PopupButtonsComponent;
72
-
73
- @HostBinding("class.popup-error")
74
- public isError: boolean;
75
-
76
- @HostBinding("class.popup-warning")
77
- public isWarning: boolean;
78
-
79
- @HostBinding("class.popup-notification")
80
- public isNotification: boolean;
81
-
82
- @HostBinding("class.popup-question")
83
- public isQuestion: boolean;
84
-
85
- @HostBinding("class.movable")
86
- public isMovable: boolean;
87
-
88
- public isBlank: boolean;
89
-
90
- public closeIcon: SafeHtml;
91
- public downloadIcon: SafeHtml;
92
-
93
- // @HostBinding('style.top.px')
94
- // public top: number = -1000; //start off-screen
95
- //
96
- // @HostBinding('style.left.px')
97
- // public left: number = -1000; //start off-screen
98
-
99
- private _popupCompRef: ComponentRef<Popup>;
100
-
101
- private _filterClickSub: Subscription;
102
-
103
- private _popupCloseRequestSub: Subscription;
104
-
105
- constructor(
106
- private _iconCache: IconCacheService,
107
- private _changeDetector: ChangeDetectorRef,
108
- public viewContainerRef: ViewContainerRef
109
- ) {
110
- }
111
-
112
- ngOnInit(): void {
113
- this.closeIcon = this._iconCache.getIcon(this.icons.CrossSkinny);
114
- this.downloadIcon = this._iconCache.getIcon(this.icons.Download);
115
- this._setHostBindings();
116
- }
117
-
118
- ngAfterViewInit(): void {
119
- this.popupWindow.popupWindowComponent = this;
120
- this._createPopupComponent();
121
- this._initOnClickAutoClose();
122
- this._initAppPopupCloseRequestHandler();
123
-
124
- if (!this.popupWindow.settings.noButtonFocus && this._appPopupButtons) {
125
- setTimeout(() => {
126
- this._appPopupButtons.focusFirstButton();
127
- });
128
- }
129
-
130
- this._changeDetector.detectChanges();
131
- }
132
-
133
- ngOnDestroy(): void {
134
- this._close();
135
- this._viewContainer.clear();
136
- this._popupCompRef = undefined;
137
- this._viewContainer = undefined;
138
- this._changeDetector = undefined;
139
- }
140
-
141
- public async close(eventType: PopupButtonType): Promise<void> {
142
- if (this._popupCompRef && this._popupCompRef.instance && this._popupCompRef.instance.onClose) {
143
- const onCloseOutput: any = await this._popupCompRef.instance.onClose(eventType);
144
- this.popupWindow.onClose(eventType, onCloseOutput);
145
- } else {
146
- this.popupWindow.onClose(eventType);
147
- }
148
- }
149
-
150
- public onButtonClick(button: PopupButton): void {
151
- if (!button.disabled) {
152
- this.close(button.closeType);
153
- }
154
- }
155
-
156
- public onDownloadClick(): void {
157
- try {
158
- const dataUri: string = (this._popupCompRef.instance as PopupMessageDisplayComponent).message;
159
- FileUtils.DownloadFromDataUri(dataUri, FileUtils.CreateDownloadFileNameFromBase64(dataUri));
160
- } catch (e) {
161
-
162
- }
163
- }
164
-
165
- public onCloseClick(): void {
166
- this.close(PopupButtonType.Cancel);
167
- }
168
-
169
- private _close = (): void => {
170
- this.onCloseClick();
171
- };
172
-
173
- private _createPopupComponent(): void {
174
- this._popupCompRef = this._viewContainer.createComponent(this.popupWindow.factory);
175
- ObjectUtils.ForOwnProperty(this.popupWindow.inputs, (value: any, key: string) => {
176
- this._popupCompRef.instance[key] = value;
177
- });
178
- // give the concrete popup component access to its underlying model (with settings etc, e.g. for dynamic disabling/enabling of popup buttons on bottom)
179
- this._popupCompRef.instance.popupModel = this.popupWindow;
180
- if (this._popupCompRef.instance.onOpen) {
181
- this._popupCompRef.instance.onOpen();
182
- }
183
- }
184
-
185
- private _initOnClickAutoClose(): void {
186
- if (this.popupWindow && this.popupWindow.settings && this.popupWindow.settings.autoClose) {
187
- if (this._filterClickSub) {
188
- this._filterClickSub.unsubscribe();
189
- }
190
- // this._filterClickSub = this._filterService.onClick.subscribe(() => {
191
- // this.onCloseClick();
192
- // });
193
- }
194
- }
195
-
196
- private _initAppPopupCloseRequestHandler(): void {
197
- if (!this._popupCompRef || !this._popupCompRef.instance || !this._popupCompRef.instance.closeRequest) {
198
- return;
199
- }
200
-
201
- if (this._popupCloseRequestSub) {
202
- this._popupCloseRequestSub.unsubscribe();
203
- }
204
- this._popupCloseRequestSub = this._popupCompRef.instance.closeRequest.subscribe((closeButton: PopupButtonType) => {
205
- if (!closeButton) {
206
- closeButton = PopupButtonType.NoButton;
207
- }
208
- this.close(closeButton);
209
- });
210
- }
211
-
212
- private _setHostBindings(): void {
213
- if (this.popupWindow) {
214
- this.isError = this.popupWindow.type === PopupType.Error;
215
- this.isWarning = this.popupWindow.type === PopupType.Warning;
216
- this.isNotification = this.popupWindow.type === PopupType.Notification;
217
- this.isQuestion = this.popupWindow.type === PopupType.Question;
218
- this.isBlank = this.popupWindow.type === PopupType.Blank;
219
- this.isMovable = !this.popupWindow.settings.fixed;
220
- }
221
- }
222
- }
@@ -1,48 +0,0 @@
1
- import { ModuleWithProviders, NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
-
4
- import { InputTextModule } from '../input-text/input-text.module';
5
- import { TextInputPopupComponent } from './text-input-popup.component';
6
- import { PopupMessageDisplayComponent } from './popup-message-display.component';
7
- import { PopupWindowShellComponent } from './popup-window-shell.component';
8
- import { PopupButtonsComponent } from './popup-buttons.component';
9
- import { ButtonModule } from '../button/button.module';
10
- import { PromptService } from './service/prompt.service';
11
- import { PopupShowerService } from './service/popup-shower.service';
12
- import { Overlay } from '@angular/cdk/overlay';
13
- import { IconCacheService } from '../icon/icon-cache.service';
14
-
15
- @NgModule({
16
- imports: [
17
- CommonModule,
18
- InputTextModule,
19
- ButtonModule
20
- ],
21
- declarations: [
22
- TextInputPopupComponent,
23
- PopupMessageDisplayComponent,
24
- PopupWindowShellComponent,
25
- PopupButtonsComponent
26
- ],
27
- entryComponents: [
28
- PopupMessageDisplayComponent,
29
- PopupWindowShellComponent
30
- ],
31
- exports: [
32
- TextInputPopupComponent,
33
- PopupWindowShellComponent
34
- ]
35
- })
36
- export class PopupModule {
37
- static forRoot(): ModuleWithProviders<PopupModule> {
38
- return {
39
- ngModule: PopupModule,
40
- providers: [
41
- PromptService,
42
- PopupShowerService,
43
- Overlay,
44
- IconCacheService
45
- ]
46
- };
47
- }
48
- }
@@ -1,98 +0,0 @@
1
- import {
2
- ApplicationRef,
3
- ComponentFactory,
4
- ComponentFactoryResolver,
5
- ComponentRef,
6
- EmbeddedViewRef,
7
- Injectable,
8
- Injector
9
- } from "@angular/core";
10
- import { PopupSettings } from '../interface/popup-settings';
11
- import { PopupCloseEvent } from '../interface/popup-close-event';
12
- import { Popup } from '../interface/popup';
13
- import { PopupWindowModel } from '../model/popup-window';
14
- import { PopupWindowShellComponent } from '../popup-window-shell.component';
15
- import { GlobalPositionStrategy, Overlay, OverlayConfig, OverlayRef } from '@angular/cdk/overlay';
16
- import { ComponentPortal } from '@angular/cdk/portal';
17
- import { POPUP_WINDOW_DATA } from '../const/popup-window-token';
18
- import { PopupButtonType } from '../../../core/enum/popup-button-type.enum';
19
-
20
- // Class responsible for showing popups throughout the application and returning results from user interaction with those popups.
21
- @Injectable()
22
- export class PopupShowerService {
23
-
24
- constructor(
25
- private _compFactoryResolver: ComponentFactoryResolver,
26
- private _appRef: ApplicationRef,
27
- private _overlay: Overlay,
28
- private _injector: Injector) {
29
- }
30
-
31
- public async showPopup<T = any>(popupCompClazz: any, popupSettings: PopupSettings, inputs: any = {}): Promise<PopupCloseEvent<T>> {
32
- const popupShellRef: ComponentRef<PopupWindowShellComponent> = this._createWindowShell();
33
- const popupShell: PopupWindowShellComponent = popupShellRef.instance;
34
- const config: OverlayConfig = this._getConfig();
35
- const popupCompFactory: ComponentFactory<Popup<T>> = this._compFactoryResolver.resolveComponentFactory(popupCompClazz);
36
-
37
- return new Promise<PopupCloseEvent>((resolve: Function) => {
38
-
39
- const popupWindow: PopupWindowModel = new PopupWindowModel(popupCompFactory, popupSettings, inputs);
40
- // the generic onClose handler: remove the closed popup and resolve our original createPopup call with its output data
41
- popupWindow.onClose = (eventType: PopupButtonType, output: any) => {
42
- this._appRef.detachView(popupShellRef.hostView);
43
- popupShellRef.destroy();
44
- resolve({
45
- eventType: eventType,
46
- output: output
47
- });
48
- };
49
- popupShell.popupWindow = popupWindow;
50
- });
51
- }
52
-
53
- private _createWindowShell(): ComponentRef<PopupWindowShellComponent> {
54
- const componentRef = this._compFactoryResolver
55
- .resolveComponentFactory(PopupWindowShellComponent)
56
- .create(this._injector);
57
- this._appRef.attachView(componentRef.hostView);
58
- const domElem = (componentRef.hostView as EmbeddedViewRef<any>).rootNodes[0] as HTMLElement;
59
- document.body.appendChild(domElem);
60
- return componentRef;
61
- }
62
-
63
- private _createOverlay(config: OverlayConfig): OverlayRef {
64
- return this._overlay.create(config);
65
- }
66
-
67
- private _getConfig(): OverlayConfig {
68
- const positionStrategy: GlobalPositionStrategy = this._overlay.position()
69
- .global()
70
- .centerHorizontally()
71
- .centerVertically();
72
-
73
- return new OverlayConfig({
74
- hasBackdrop: true,
75
- backdropClass: 'message-overlay-backdrop',
76
- panelClass: 'message-overlay',
77
- scrollStrategy: this._overlay.scrollStrategies.block(),
78
- positionStrategy
79
- });
80
- }
81
-
82
- private _attachDialogContainer(overlayRef: OverlayRef, popupWindow: PopupWindowModel /*, dialogRef: FilePreviewOverlayRef*/): PopupWindowShellComponent {
83
- const injector: Injector = this._createInjector(popupWindow);
84
- const containerPortal: ComponentPortal<PopupWindowShellComponent> = new ComponentPortal(PopupWindowShellComponent, null, injector);
85
- const containerRef: ComponentRef<PopupWindowShellComponent> = overlayRef.attach(containerPortal);
86
- return containerRef.instance;
87
- }
88
-
89
- private _createInjector(popupWindow: PopupWindowModel): Injector {
90
- const injectionTokens: any = new WeakMap();
91
- injectionTokens.set(POPUP_WINDOW_DATA, popupWindow);
92
- const options = {
93
- parent: this._injector,
94
- providers: injectionTokens
95
- };
96
- return Injector.create(options);
97
- }
98
- }