@valtimo/components 5.15.0 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/assets/css/carbon-beagle-compatibility.scss +118 -0
  2. package/assets/css/carbon.scss +82 -0
  3. package/esm2020/lib/components/alert/alert.component.mjs +3 -3
  4. package/esm2020/lib/components/alert/alert.module.mjs +5 -5
  5. package/esm2020/lib/components/alert/alert.service.mjs +3 -3
  6. package/esm2020/lib/components/bpmn-js-diagram/bpmn-js-diagram.component.mjs +4 -4
  7. package/esm2020/lib/components/bpmn-js-diagram/bpmn-js-diagram.module.mjs +5 -5
  8. package/esm2020/lib/components/breadcrumb-navigation/breadcrumb-navigation.component.mjs +12 -10
  9. package/esm2020/lib/components/breadcrumb-navigation/breadcrumb-navigation.module.mjs +5 -5
  10. package/esm2020/lib/components/camunda/form/camunda-form.components.mjs +6 -6
  11. package/esm2020/lib/components/camunda/form/camunda-form.module.mjs +5 -5
  12. package/esm2020/lib/components/camunda/form/custom/camunda-custom-form.component.mjs +4 -4
  13. package/esm2020/lib/components/camunda/form/custom/camunda-custom-form.module.mjs +5 -5
  14. package/esm2020/lib/components/camunda/form/generated/camunda-generated-form.component.mjs +7 -7
  15. package/esm2020/lib/components/camunda/form/generated/camunda-generated-form.module.mjs +5 -5
  16. package/esm2020/lib/components/camunda/form/generated/formfield/boolean/camunda-boolean-formfield.component.mjs +7 -7
  17. package/esm2020/lib/components/camunda/form/generated/formfield/camunda-formfield-generator.directive.mjs +3 -3
  18. package/esm2020/lib/components/camunda/form/generated/formfield/camunda-formfield.service.mjs +3 -3
  19. package/esm2020/lib/components/camunda/form/generated/formfield/choicefield/camunda-choicefield-formfield.component.mjs +6 -6
  20. package/esm2020/lib/components/camunda/form/generated/formfield/date/camunda-date-formfield.component.mjs +7 -7
  21. package/esm2020/lib/components/camunda/form/generated/formfield/enum/camunda-enum-formfield.component.mjs +6 -6
  22. package/esm2020/lib/components/camunda/form/generated/formfield/long/camunda-long-formfield.component.mjs +7 -7
  23. package/esm2020/lib/components/camunda/form/generated/formfield/string/camunda-string-formfield.component.mjs +7 -7
  24. package/esm2020/lib/components/camunda/form/generated/formfield/textarea/camunda-textarea-formfield.component.mjs +7 -7
  25. package/esm2020/lib/components/camunda/form/generated/formfield/validation/camunda-formfield-validation.component.mjs +4 -4
  26. package/esm2020/lib/components/card/card.component.mjs +4 -4
  27. package/esm2020/lib/components/card/card.module.mjs +5 -5
  28. package/esm2020/lib/components/components.module.mjs +4 -4
  29. package/esm2020/lib/components/data-list/data-list.component.mjs +4 -4
  30. package/esm2020/lib/components/data-list/data-list.module.mjs +5 -5
  31. package/esm2020/lib/components/documenten-api-metadata-modal/documenten-api-metadata-modal.component.mjs +3 -3
  32. package/esm2020/lib/components/documenten-api-metadata-modal/documenten-api-metadata-modal.module.mjs +15 -17
  33. package/esm2020/lib/components/dropzone/dropzone.component.mjs +8 -8
  34. package/esm2020/lib/components/dropzone/dropzone.module.mjs +5 -5
  35. package/esm2020/lib/components/field-auto-focus/field-auto-focus.directive.mjs +3 -3
  36. package/esm2020/lib/components/field-auto-focus/field-auto-focus.module.mjs +5 -5
  37. package/esm2020/lib/components/file-size/file-size.module.mjs +5 -5
  38. package/esm2020/lib/components/file-size/file-size.pipe.mjs +3 -3
  39. package/esm2020/lib/components/filter-sidebar/filter-sidebar.component.mjs +3 -3
  40. package/esm2020/lib/components/filter-sidebar/filter-sidebar.module.mjs +5 -5
  41. package/esm2020/lib/components/form-io/documenten-api-uploader/documenten-api-uploader.component.mjs +7 -7
  42. package/esm2020/lib/components/form-io/form-io-builder.component.mjs +4 -4
  43. package/esm2020/lib/components/form-io/form-io-uploader/form-io-uploader.component.mjs +5 -5
  44. package/esm2020/lib/components/form-io/form-io.component.mjs +6 -6
  45. package/esm2020/lib/components/form-io/form-io.module.mjs +13 -15
  46. package/esm2020/lib/components/form-io/services/form-io-dom.service.mjs +3 -3
  47. package/esm2020/lib/components/form-io/services/form-io-state.service.mjs +3 -3
  48. package/esm2020/lib/components/left-sidebar/left-sidebar.component.mjs +79 -87
  49. package/esm2020/lib/components/left-sidebar/left-sidebar.module.mjs +26 -7
  50. package/esm2020/lib/components/list/ListFilterPipe.directive.mjs +3 -3
  51. package/esm2020/lib/components/list/list.component.mjs +7 -7
  52. package/esm2020/lib/components/list/list.module.mjs +5 -5
  53. package/esm2020/lib/components/menu/menu-item-text.component.mjs +12 -55
  54. package/esm2020/lib/components/menu/menu-routing.module.mjs +5 -5
  55. package/esm2020/lib/components/menu/menu.module.mjs +27 -11
  56. package/esm2020/lib/components/menu/menu.service.mjs +49 -6
  57. package/esm2020/lib/components/modal/modal.component.mjs +3 -3
  58. package/esm2020/lib/components/modal/modal.module.mjs +5 -5
  59. package/esm2020/lib/components/multiselect-dropdown/multiselect-dropdown.component.mjs +6 -6
  60. package/esm2020/lib/components/multiselect-dropdown/multiselect-dropdown.module.mjs +5 -5
  61. package/esm2020/lib/components/page-header/page-header.component.mjs +6 -6
  62. package/esm2020/lib/components/page-header/page-header.module.mjs +5 -5
  63. package/esm2020/lib/components/page-title/page-title.component.mjs +11 -9
  64. package/esm2020/lib/components/page-title/page-title.module.mjs +5 -5
  65. package/esm2020/lib/components/progress-bar/progress-bar.component.mjs +3 -3
  66. package/esm2020/lib/components/progress-bar/progress-bar.module.mjs +5 -5
  67. package/esm2020/lib/components/right-sidebar/right-sidebar.component.mjs +103 -63
  68. package/esm2020/lib/components/right-sidebar/right-sidebar.module.mjs +45 -19
  69. package/esm2020/lib/components/search-fields/search-fields.component.mjs +7 -7
  70. package/esm2020/lib/components/search-fields/search-fields.module.mjs +15 -17
  71. package/esm2020/lib/components/searchable-dropdown/searchable-dropdown.component.mjs +3 -3
  72. package/esm2020/lib/components/searchable-dropdown/searchable-dropdown.module.mjs +5 -5
  73. package/esm2020/lib/components/searchable-dropdown-select/searchable-dropdown-select.component.mjs +5 -5
  74. package/esm2020/lib/components/searchable-dropdown-select/searchable-dropdown-select.module.mjs +5 -5
  75. package/esm2020/lib/components/spinner/spinner.component.mjs +5 -5
  76. package/esm2020/lib/components/spinner/spinner.module.mjs +5 -5
  77. package/esm2020/lib/components/timeline/timeline.component.mjs +5 -5
  78. package/esm2020/lib/components/timeline/timeline.module.mjs +5 -5
  79. package/esm2020/lib/components/topbar/topbar.component.mjs +50 -12
  80. package/esm2020/lib/components/topbar/topbar.module.mjs +7 -6
  81. package/esm2020/lib/components/uploader/uploader-drag-drop.directive.mjs +3 -3
  82. package/esm2020/lib/components/uploader/uploader.component.mjs +5 -5
  83. package/esm2020/lib/components/uploader/uploader.module.mjs +5 -5
  84. package/esm2020/lib/components/version/version.service.mjs +10 -8
  85. package/esm2020/lib/components/view-content/view-content.service.mjs +3 -3
  86. package/esm2020/lib/components/webcam/webcam.component.mjs +3 -3
  87. package/esm2020/lib/components/webcam/webcam.module.mjs +5 -5
  88. package/esm2020/lib/components/widget/widget.component.mjs +3 -3
  89. package/esm2020/lib/components/widget/widget.module.mjs +5 -5
  90. package/esm2020/lib/pipes/case-count.pipe.mjs +22 -0
  91. package/esm2020/lib/pipes/components-pipes.module.mjs +16 -0
  92. package/esm2020/lib/pipes/index.mjs +4 -0
  93. package/esm2020/lib/pipes/menu-item-translation.pipe.mjs +34 -0
  94. package/esm2020/lib/services/shell.service.mjs +52 -0
  95. package/esm2020/lib/services/valtimo-modal.service.mjs +3 -3
  96. package/esm2020/public_api.mjs +4 -2
  97. package/fesm2015/valtimo-components.mjs +861 -762
  98. package/fesm2015/valtimo-components.mjs.map +1 -1
  99. package/fesm2020/valtimo-components.mjs +859 -762
  100. package/fesm2020/valtimo-components.mjs.map +1 -1
  101. package/{valtimo-components.d.ts → index.d.ts} +0 -0
  102. package/lib/components/alert/alert.component.d.ts +1 -1
  103. package/lib/components/bpmn-js-diagram/bpmn-js-diagram.component.d.ts +1 -1
  104. package/lib/components/breadcrumb-navigation/breadcrumb-navigation.component.d.ts +4 -2
  105. package/lib/components/breadcrumb-navigation/breadcrumb-navigation.component.d.ts.map +1 -1
  106. package/lib/components/camunda/form/camunda-form.components.d.ts +1 -1
  107. package/lib/components/camunda/form/custom/camunda-custom-form.component.d.ts +1 -1
  108. package/lib/components/camunda/form/generated/camunda-generated-form.component.d.ts +4 -4
  109. package/lib/components/camunda/form/generated/camunda-generated-form.component.d.ts.map +1 -1
  110. package/lib/components/camunda/form/generated/formfield/boolean/camunda-boolean-formfield.component.d.ts +3 -3
  111. package/lib/components/camunda/form/generated/formfield/boolean/camunda-boolean-formfield.component.d.ts.map +1 -1
  112. package/lib/components/camunda/form/generated/formfield/camunda-formfield-generator.directive.d.ts +1 -1
  113. package/lib/components/camunda/form/generated/formfield/choicefield/camunda-choicefield-formfield.component.d.ts +3 -3
  114. package/lib/components/camunda/form/generated/formfield/choicefield/camunda-choicefield-formfield.component.d.ts.map +1 -1
  115. package/lib/components/camunda/form/generated/formfield/date/camunda-date-formfield.component.d.ts +3 -3
  116. package/lib/components/camunda/form/generated/formfield/date/camunda-date-formfield.component.d.ts.map +1 -1
  117. package/lib/components/camunda/form/generated/formfield/enum/camunda-enum-formfield.component.d.ts +3 -3
  118. package/lib/components/camunda/form/generated/formfield/enum/camunda-enum-formfield.component.d.ts.map +1 -1
  119. package/lib/components/camunda/form/generated/formfield/long/camunda-long-formfield.component.d.ts +3 -3
  120. package/lib/components/camunda/form/generated/formfield/long/camunda-long-formfield.component.d.ts.map +1 -1
  121. package/lib/components/camunda/form/generated/formfield/string/camunda-string-formfield.component.d.ts +3 -3
  122. package/lib/components/camunda/form/generated/formfield/string/camunda-string-formfield.component.d.ts.map +1 -1
  123. package/lib/components/camunda/form/generated/formfield/textarea/camunda-textarea-formfield.component.d.ts +3 -3
  124. package/lib/components/camunda/form/generated/formfield/textarea/camunda-textarea-formfield.component.d.ts.map +1 -1
  125. package/lib/components/camunda/form/generated/formfield/validation/camunda-formfield-validation.component.d.ts +3 -3
  126. package/lib/components/camunda/form/generated/formfield/validation/camunda-formfield-validation.component.d.ts.map +1 -1
  127. package/lib/components/card/card.component.d.ts +1 -1
  128. package/lib/components/data-list/data-list.component.d.ts +1 -1
  129. package/lib/components/documenten-api-metadata-modal/documenten-api-metadata-modal.component.d.ts +1 -1
  130. package/lib/components/dropzone/dropzone.component.d.ts +1 -1
  131. package/lib/components/field-auto-focus/field-auto-focus.directive.d.ts +1 -1
  132. package/lib/components/file-size/file-size.pipe.d.ts +1 -1
  133. package/lib/components/filter-sidebar/filter-sidebar.component.d.ts +1 -1
  134. package/lib/components/form-io/documenten-api-uploader/documenten-api-uploader.component.d.ts +1 -1
  135. package/lib/components/form-io/form-io-builder.component.d.ts +1 -1
  136. package/lib/components/form-io/form-io-uploader/form-io-uploader.component.d.ts +1 -1
  137. package/lib/components/form-io/form-io.component.d.ts +1 -1
  138. package/lib/components/left-sidebar/left-sidebar.component.d.ts +28 -31
  139. package/lib/components/left-sidebar/left-sidebar.component.d.ts.map +1 -1
  140. package/lib/components/left-sidebar/left-sidebar.module.d.ts +7 -4
  141. package/lib/components/left-sidebar/left-sidebar.module.d.ts.map +1 -1
  142. package/lib/components/list/ListFilterPipe.directive.d.ts +1 -1
  143. package/lib/components/list/list.component.d.ts +1 -1
  144. package/lib/components/menu/menu-item-text.component.d.ts +2 -1
  145. package/lib/components/menu/menu-item-text.component.d.ts.map +1 -1
  146. package/lib/components/menu/menu.module.d.ts +8 -8
  147. package/lib/components/menu/menu.module.d.ts.map +1 -1
  148. package/lib/components/menu/menu.service.d.ts +6 -1
  149. package/lib/components/menu/menu.service.d.ts.map +1 -1
  150. package/lib/components/modal/modal.component.d.ts +1 -1
  151. package/lib/components/multiselect-dropdown/multiselect-dropdown.component.d.ts +1 -1
  152. package/lib/components/page-header/page-header.component.d.ts +1 -1
  153. package/lib/components/page-title/page-title.component.d.ts +9 -7
  154. package/lib/components/page-title/page-title.component.d.ts.map +1 -1
  155. package/lib/components/progress-bar/progress-bar.component.d.ts +1 -1
  156. package/lib/components/right-sidebar/right-sidebar.component.d.ts +32 -20
  157. package/lib/components/right-sidebar/right-sidebar.component.d.ts.map +1 -1
  158. package/lib/components/right-sidebar/right-sidebar.module.d.ts +2 -1
  159. package/lib/components/right-sidebar/right-sidebar.module.d.ts.map +1 -1
  160. package/lib/components/search-fields/search-fields.component.d.ts +1 -1
  161. package/lib/components/searchable-dropdown/searchable-dropdown.component.d.ts +2 -2
  162. package/lib/components/searchable-dropdown/searchable-dropdown.component.d.ts.map +1 -1
  163. package/lib/components/searchable-dropdown-select/searchable-dropdown-select.component.d.ts +1 -1
  164. package/lib/components/spinner/spinner.component.d.ts +1 -1
  165. package/lib/components/timeline/timeline.component.d.ts +1 -1
  166. package/lib/components/topbar/topbar.component.d.ts +19 -2
  167. package/lib/components/topbar/topbar.component.d.ts.map +1 -1
  168. package/lib/components/topbar/topbar.module.d.ts +2 -1
  169. package/lib/components/topbar/topbar.module.d.ts.map +1 -1
  170. package/lib/components/uploader/uploader-drag-drop.directive.d.ts +1 -1
  171. package/lib/components/uploader/uploader.component.d.ts +1 -1
  172. package/lib/components/version/version.service.d.ts +5 -2
  173. package/lib/components/version/version.service.d.ts.map +1 -1
  174. package/lib/components/webcam/webcam.component.d.ts +1 -1
  175. package/lib/components/widget/widget.component.d.ts +1 -1
  176. package/lib/pipes/case-count.pipe.d.ts +8 -0
  177. package/lib/pipes/case-count.pipe.d.ts.map +1 -0
  178. package/lib/pipes/components-pipes.module.d.ts +8 -0
  179. package/lib/pipes/components-pipes.module.d.ts.map +1 -0
  180. package/lib/pipes/index.d.ts +4 -0
  181. package/lib/pipes/index.d.ts.map +1 -0
  182. package/lib/pipes/menu-item-translation.pipe.d.ts +13 -0
  183. package/lib/pipes/menu-item-translation.pipe.d.ts.map +1 -0
  184. package/lib/services/shell.service.d.ts +21 -0
  185. package/lib/services/shell.service.d.ts.map +1 -0
  186. package/package.json +14 -11
  187. package/public_api.d.ts +3 -1
  188. package/public_api.d.ts.map +1 -1
  189. package/esm2020/lib/components/menu/menu.component.mjs +0 -66
  190. package/esm2020/lib/components/menu/submenu-item-text.component.mjs +0 -77
  191. package/lib/components/menu/menu.component.d.ts +0 -26
  192. package/lib/components/menu/menu.component.d.ts.map +0 -1
  193. package/lib/components/menu/submenu-item-text.component.d.ts +0 -8
  194. package/lib/components/menu/submenu-item-text.component.d.ts.map +0 -1
package/public_api.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  export * from './lib/models';
2
+ export * from './lib/pipes';
2
3
  export * from './lib/services/valtimo-modal.service';
4
+ export * from './lib/services/shell.service';
3
5
  export * from './lib/components/camunda/form/camunda-form.components';
4
6
  export * from './lib/components/camunda/form/camunda-form.module';
5
7
  export * from './lib/components/topbar/topbar.component';
@@ -8,7 +10,7 @@ export * from './lib/components/menu/menu.service';
8
10
  export * from './lib/components/menu/menu-routing.module';
9
11
  export * from './lib/components/menu/menu.module';
10
12
  export * from './lib/components/menu/menu.init';
11
- export * from './lib/components/menu/menu.component';
13
+ export * from './lib/components/menu/menu-item-text.component';
12
14
  export * from './lib/components/right-sidebar/right-sidebar.component';
13
15
  export * from './lib/components/right-sidebar/right-sidebar.module';
14
16
  export * from './lib/components/left-sidebar/left-sidebar.component';
@@ -1 +1 @@
1
- {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/components/src/public_api.ts"],"names":[],"mappings":"AAoBA,cAAc,cAAc,CAAC;AAC7B,cAAc,sCAAsC,CAAC;AAErD,cAAc,uDAAuD,CAAC;AACtE,cAAc,mDAAmD,CAAC;AAElE,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AAEtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AAErD,cAAc,wDAAwD,CAAC;AACvE,cAAc,qDAAqD,CAAC;AAEpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,mDAAmD,CAAC;AAElE,cAAc,sCAAsC,CAA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cAAc,sEAAsE,CAAC;AACrF,cAAc,mEAAmE,CAAC;AAElF,cAAc,oFAAoF,CAAC;AACnG,cAAc,iFAAiF,CAAC;AAEhG,cAAc,qFAAqF,CAAC;AAEpG,cAAc,yDAAyD,CAAC;AAExE,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AAEzD,cAAc,mDAAmD,CAAC;AAClE,cAAc,sDAAsD,CAAC;AAErE,cAAc,+EAA+E,CAAC;AAC9F,cAAc,kFAAkF,CAAC;AAEjG,cAAc,mEAAmE,CAAC;AAClF,cAAc,sEAAsE,CAAC;AAErF,cAAc,qFAAqF,CAAC;AACpG,cAAc,wFAAwF,CAAC;AAEvG,cAAc,qDAAqD,CAAC;AACpE,cAAc,wDAAwD,CAAC"}
1
+ {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/components/src/public_api.ts"],"names":[],"mappings":"AAoBA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAE7C,cAAc,uDAAuD,CAAC;AACtE,cAAc,mDAAmD,CAAC;AAElE,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AAEtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gDAAgD,CAAC;AAE/D,cAAc,wDAAwD,CAAC;AACvE,cAAc,qDAAqD,CAAC;AAEpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,mDAAmD,CAAC;AAElE,cAAc,sCAAsC,CAAC;AACrD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,mCAAmC,CAAC;AAElD,cAAc,oDAAoD,CAAC;AACnE,cAAc,iDAAiD,CAAC;AAEhE,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAE9D,cAAc,wEAAwE,CAA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AAc,0CAA0C,CAAC;AAEzD,cAAc,mDAAmD,CAAC;AAClE,cAAc,sDAAsD,CAAC;AAErE,cAAc,+EAA+E,CAAC;AAC9F,cAAc,kFAAkF,CAAC;AAEjG,cAAc,mEAAmE,CAAC;AAClF,cAAc,sEAAsE,CAAC;AAErF,cAAc,qFAAqF,CAAC;AACpG,cAAc,wFAAwF,CAAC;AAEvG,cAAc,qDAAqD,CAAC;AACpE,cAAc,wDAAwD,CAAC"}
@@ -1,66 +0,0 @@
1
- /*
2
- * Copyright 2015-2020 Ritense BV, the Netherlands.
3
- *
4
- * Licensed under EUPL, Version 1.2 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" basis,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { Component } from '@angular/core';
17
- import { NavigationEnd } from '@angular/router';
18
- import * as i0 from "@angular/core";
19
- import * as i1 from "./menu.service";
20
- import * as i2 from "@angular/router";
21
- import * as i3 from "./menu-item-text.component";
22
- import * as i4 from "./submenu-item-text.component";
23
- import * as i5 from "@angular/common";
24
- import * as i6 from "@ngx-translate/core";
25
- export class MenuComponent {
26
- constructor(menuService, elRef, renderer, router) {
27
- this.menuService = menuService;
28
- this.elRef = elRef;
29
- this.renderer = renderer;
30
- this.router = router;
31
- this.includeFunctionObservables = {};
32
- this.includeFunctionObservables = this.menuService.includeFunctionObservables;
33
- }
34
- ngOnInit() {
35
- this.openRouterSubscription();
36
- this.menuItemSubscription = this.menuService.menuItems$.subscribe(value => (this.menuItems = value));
37
- }
38
- ngOnDestroy() {
39
- this.routerSubscription.unsubscribe();
40
- this.menuItemSubscription.unsubscribe();
41
- }
42
- openRouterSubscription() {
43
- this.routerSubscription = this.router.events.subscribe((event) => {
44
- if (event instanceof NavigationEnd) {
45
- this.closeSubMenu();
46
- }
47
- });
48
- }
49
- closeSubMenu() {
50
- const visibleSubMenuElm = this.elRef.nativeElement.querySelector('.sub-menu.visible');
51
- if (visibleSubMenuElm) {
52
- this.renderer.removeClass(visibleSubMenuElm, 'visible');
53
- const topLevelMenuItem = this.elRef.nativeElement.querySelector('li.parent.open');
54
- if (topLevelMenuItem) {
55
- this.renderer.removeClass(topLevelMenuItem, 'open');
56
- }
57
- }
58
- }
59
- }
60
- MenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MenuComponent, deps: [{ token: i1.MenuService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component });
61
- MenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MenuComponent, selector: "valtimo-menu", ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ul class=\"sidebar-elements\">\n <ng-container *ngFor=\"let menuItem of menuItems\">\n <li\n [class.parent]=\"menuItem.children\"\n [hidden]=\"!menuItem.show\"\n [routerLinkActive]=\"'active'\"\n [routerLinkActiveOptions]=\"{exact: true}\"\n [ngClass]=\"{\n 'menu-item--hidden': menuItem.includeFunction !== undefined,\n 'menu-item--visible':\n menuItem.includeFunction !== undefined &&\n (includeFunctionObservables[menuItem.title] | async)\n }\"\n >\n <a *ngIf=\"menuItem.link\" [routerLink]=\"menuItem.link\" class=\"sub-item\">\n <valtimo-menu-item-text [menuItem]=\"menuItem\"></valtimo-menu-item-text>\n </a>\n <a *ngIf=\"!menuItem.link\" class=\"sub-item\">\n <valtimo-menu-item-text [menuItem]=\"menuItem\"></valtimo-menu-item-text>\n </a>\n <ng-container *ngIf=\"menuItem.children\">\n <ul class=\"sub-menu\">\n <li class=\"title\">{{ menuItem.title | translate }}</li>\n <li\n *ngFor=\"let subMenuItem of menuItem.children\"\n [routerLinkActive]=\"'active'\"\n [routerLinkActiveOptions]=\"{exact: true}\"\n >\n <a *ngIf=\"subMenuItem.link\" [routerLink]=\"subMenuItem.link\">\n <valtimo-submenu-item-text [submenuItem]=\"subMenuItem\"></valtimo-submenu-item-text>\n </a>\n <a *ngIf=\"!subMenuItem.link\">\n <valtimo-submenu-item-text [submenuItem]=\"subMenuItem\"></valtimo-submenu-item-text>\n </a>\n </li>\n </ul>\n </ng-container>\n </li>\n </ng-container>\n</ul>\n", styles: [".c-default{cursor:default}.sub-item{cursor:pointer}.menu-item--hidden{display:none}.menu-item--visible{display:block}\n"], components: [{ type: i3.MenuItemTextComponent, selector: "valtimo-menu-item-text", inputs: ["menuItem"] }, { type: i4.SubmenuItemTextComponent, selector: "valtimo-submenu-item-text", inputs: ["submenuItem"] }], directives: [{ type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "async": i5.AsyncPipe, "translate": i6.TranslatePipe } });
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MenuComponent, decorators: [{
63
- type: Component,
64
- args: [{ selector: 'valtimo-menu', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ul class=\"sidebar-elements\">\n <ng-container *ngFor=\"let menuItem of menuItems\">\n <li\n [class.parent]=\"menuItem.children\"\n [hidden]=\"!menuItem.show\"\n [routerLinkActive]=\"'active'\"\n [routerLinkActiveOptions]=\"{exact: true}\"\n [ngClass]=\"{\n 'menu-item--hidden': menuItem.includeFunction !== undefined,\n 'menu-item--visible':\n menuItem.includeFunction !== undefined &&\n (includeFunctionObservables[menuItem.title] | async)\n }\"\n >\n <a *ngIf=\"menuItem.link\" [routerLink]=\"menuItem.link\" class=\"sub-item\">\n <valtimo-menu-item-text [menuItem]=\"menuItem\"></valtimo-menu-item-text>\n </a>\n <a *ngIf=\"!menuItem.link\" class=\"sub-item\">\n <valtimo-menu-item-text [menuItem]=\"menuItem\"></valtimo-menu-item-text>\n </a>\n <ng-container *ngIf=\"menuItem.children\">\n <ul class=\"sub-menu\">\n <li class=\"title\">{{ menuItem.title | translate }}</li>\n <li\n *ngFor=\"let subMenuItem of menuItem.children\"\n [routerLinkActive]=\"'active'\"\n [routerLinkActiveOptions]=\"{exact: true}\"\n >\n <a *ngIf=\"subMenuItem.link\" [routerLink]=\"subMenuItem.link\">\n <valtimo-submenu-item-text [submenuItem]=\"subMenuItem\"></valtimo-submenu-item-text>\n </a>\n <a *ngIf=\"!subMenuItem.link\">\n <valtimo-submenu-item-text [submenuItem]=\"subMenuItem\"></valtimo-submenu-item-text>\n </a>\n </li>\n </ul>\n </ng-container>\n </li>\n </ng-container>\n</ul>\n", styles: [".c-default{cursor:default}.sub-item{cursor:pointer}.menu-item--hidden{display:none}.menu-item--visible{display:block}\n"] }]
65
- }], ctorParameters: function () { return [{ type: i1.MenuService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.Router }]; } });
66
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0aW1vL2NvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL21lbnUvbWVudS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0aW1vL2NvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL21lbnUvbWVudS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVILE9BQU8sRUFBQyxTQUFTLEVBQTJDLE1BQU0sZUFBZSxDQUFDO0FBQ2xGLE9BQU8sRUFBUSxhQUFhLEVBQVMsTUFBTSxpQkFBaUIsQ0FBQzs7Ozs7Ozs7QUFVN0QsTUFBTSxPQUFPLGFBQWE7SUFNeEIsWUFDVSxXQUF3QixFQUN4QixLQUFpQixFQUNqQixRQUFtQixFQUNuQixNQUFjO1FBSGQsZ0JBQVcsR0FBWCxXQUFXLENBQWE7UUFDeEIsVUFBSyxHQUFMLEtBQUssQ0FBWTtRQUNqQixhQUFRLEdBQVIsUUFBUS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4gICAgICAgICAgICA8L2E+XG4gICAgICAgICAgICA8YSAqbmdJZj1cIiFzdWJNZW51SXRlbS5saW5rXCI+XG4gICAgICAgICAgICAgIDx2YWx0aW1vLXN1Ym1lbnUtaXRlbS10ZXh0IFtzdWJtZW51SXRlbV09XCJzdWJNZW51SXRlbVwiPjwvdmFsdGltby1zdWJtZW51LWl0ZW0tdGV4dD5cbiAgICAgICAgICAgIDwvYT5cbiAgICAgICAgICA8L2xpPlxuICAgICAgICA8L3VsPlxuICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgPC9saT5cbiAgPC9uZy1jb250YWluZXI+XG48L3VsPlxuIl19
@@ -1,77 +0,0 @@
1
- /*
2
- * Copyright 2015-2020 Ritense BV, the Netherlands.
3
- *
4
- * Licensed under EUPL, Version 1.2 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" basis,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { Component, Input } from '@angular/core';
17
- import * as i0 from "@angular/core";
18
- import * as i1 from "@angular/common";
19
- import * as i2 from "@ngx-translate/core";
20
- export class SubmenuItemTextComponent {
21
- }
22
- SubmenuItemTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SubmenuItemTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
23
- SubmenuItemTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SubmenuItemTextComponent, selector: "valtimo-submenu-item-text", inputs: { submenuItem: "submenuItem" }, ngImport: i0, template: `
24
- <div
25
- class="d-flex"
26
- [ngClass]="submenuItem.textClass"
27
- *ngIf="{
28
- translation: submenuItem.title | translate,
29
- pageTranslation: 'pages.' + submenuItem.title.toLowerCase() + '.title' | translate,
30
- count: submenuItem.count$ | async
31
- } as obs"
32
- >
33
- {{
34
- (obs.pageTranslation !== 'pages.' + submenuItem.title.toLowerCase() + '.title'
35
- ? obs.pageTranslation
36
- : '') ||
37
- (obs.translation !== submenuItem.title ? obs.translation : '') ||
38
- submenuItem.title
39
- }}
40
- <strong *ngIf="obs.count" class="ml-auto">
41
- {{ obs.count }}
42
- </strong>
43
- <ng-container *ngIf="!submenuItem.link">&gt;</ng-container>
44
- </div>
45
- `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "translate": i2.TranslatePipe, "async": i1.AsyncPipe } });
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SubmenuItemTextComponent, decorators: [{
47
- type: Component,
48
- args: [{
49
- selector: 'valtimo-submenu-item-text',
50
- template: `
51
- <div
52
- class="d-flex"
53
- [ngClass]="submenuItem.textClass"
54
- *ngIf="{
55
- translation: submenuItem.title | translate,
56
- pageTranslation: 'pages.' + submenuItem.title.toLowerCase() + '.title' | translate,
57
- count: submenuItem.count$ | async
58
- } as obs"
59
- >
60
- {{
61
- (obs.pageTranslation !== 'pages.' + submenuItem.title.toLowerCase() + '.title'
62
- ? obs.pageTranslation
63
- : '') ||
64
- (obs.translation !== submenuItem.title ? obs.translation : '') ||
65
- submenuItem.title
66
- }}
67
- <strong *ngIf="obs.count" class="ml-auto">
68
- {{ obs.count }}
69
- </strong>
70
- <ng-container *ngIf="!submenuItem.link">&gt;</ng-container>
71
- </div>
72
- `,
73
- }]
74
- }], propDecorators: { submenuItem: [{
75
- type: Input
76
- }] } });
77
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VibWVudS1pdGVtLXRle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uICAgICAgICAob2JzLnBhZ2VUcmFuc2xhdGlvbiAhPT0gJ3BhZ2VzLicgKyBzdWJtZW51SXRlbS50aXRsZS50b0xvd2VyQ2FzZSgpICsgJy50aXRsZSdcbiAgICAgICAgICA/IG9icy5wYWdlVHJhbnNsYXRpb25cbiAgICAgICAgICA6ICcnKSB8fFxuICAgICAgICAgIChvYnMudHJhbnNsYXRpb24gIT09IHN1Ym1lbnVJdGVtLnRpdGxlID8gb2JzLnRyYW5zbGF0aW9uIDogJycpIHx8XG4gICAgICAgICAgc3VibWVudUl0ZW0udGl0bGVcbiAgICAgIH19XG4gICAgICA8c3Ryb25nICpuZ0lmPVwib2JzLmNvdW50XCIgY2xhc3M9XCJtbC1hdXRvXCI+XG4gICAgICAgIHt7IG9icy5jb3VudCB9fVxuICAgICAgPC9zdHJvbmc+XG4gICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiIXN1Ym1lbnVJdGVtLmxpbmtcIj4mZ3Q7PC9uZy1jb250YWluZXI+XG4gICAgPC9kaXY+XG4gIGAsXG59KVxuZXhwb3J0IGNsYXNzIFN1Ym1lbnVJdGVtVGV4dENvbXBvbmVudCB7XG4gIEBJbnB1dCgpIHN1Ym1lbnVJdGVtOiBNZW51SXRlbTtcbn1cbiJdfQ==
@@ -1,26 +0,0 @@
1
- import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
- import { Router } from '@angular/router';
3
- import { MenuItem } from '@valtimo/config';
4
- import { Observable } from 'rxjs';
5
- import { MenuService } from './menu.service';
6
- import * as i0 from "@angular/core";
7
- export declare class MenuComponent implements OnInit, OnDestroy {
8
- private menuService;
9
- private elRef;
10
- private renderer;
11
- private router;
12
- menuItems: MenuItem[];
13
- includeFunctionObservables: {
14
- [key: string]: Observable<boolean>;
15
- };
16
- private routerSubscription;
17
- private menuItemSubscription;
18
- constructor(menuService: MenuService, elRef: ElementRef, renderer: Renderer2, router: Router);
19
- ngOnInit(): void;
20
- ngOnDestroy(): void;
21
- private openRouterSubscription;
22
- closeSubMenu(): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "valtimo-menu", never, {}, {}, never, never>;
25
- }
26
- //# sourceMappingURL=menu.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"menu.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/components/src/lib/components/menu/menu.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAY,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AAClF,OAAO,EAAuB,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,UAAU,EAAe,MAAM,MAAM,CAAC;AAC9C,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;;AAE3C,qBAKa,aAAc,YAAW,MAAM,EAAE,SAAS;IAOnD,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,MAAM;IATT,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,0BAA0B,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;KAAC,CAAM;IAC7E,OAAO,CAAC,kBAAkB,CAAe;IACzC,OAAO,CAAC,oBAAoB,CAAe;gBAGjC,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,SAAS,EACnB,MAAM,EAAE,MAAM;IAKxB,QAAQ,IAAI,IAAI;IAOhB,WAAW,IAAI,IAAI;IAKnB,OAAO,CAAC,sBAAsB;IAQvB,YAAY;yCAnCR,aAAa;2CAAb,aAAa;CA6CzB"}
@@ -1,8 +0,0 @@
1
- import { MenuItem } from '@valtimo/config';
2
- import * as i0 from "@angular/core";
3
- export declare class SubmenuItemTextComponent {
4
- submenuItem: MenuItem;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<SubmenuItemTextComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<SubmenuItemTextComponent, "valtimo-submenu-item-text", never, { "submenuItem": "submenuItem"; }, {}, never, never>;
7
- }
8
- //# sourceMappingURL=submenu-item-text.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"submenu-item-text.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/components/src/lib/components/menu/submenu-item-text.component.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;;AAEzC,qBA0Ba,wBAAwB;IAC1B,WAAW,EAAE,QAAQ,CAAC;yCADpB,wBAAwB;2CAAxB,wBAAwB;CAEpC"}