@valtimo/dashboard 10.6.0 → 10.7.0

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 (222) hide show
  1. package/esm2020/lib/components/dashboard/dashboard.component.mjs +85 -0
  2. package/esm2020/lib/components/widget-dashboard/widget-dashboard.component.mjs +56 -0
  3. package/esm2020/lib/components/widget-dashboard-content/widget-dashboard-content.component.mjs +122 -0
  4. package/esm2020/lib/constants/data-features.constants.mjs +21 -0
  5. package/esm2020/lib/constants/index.mjs +19 -0
  6. package/esm2020/lib/constants/injection-tokens.mjs +20 -0
  7. package/esm2020/lib/constants/layout.constants.mjs +19 -0
  8. package/esm2020/lib/dashboard-routing.module.mjs +10 -10
  9. package/esm2020/lib/dashboard.module.mjs +37 -13
  10. package/esm2020/lib/data-sources/case-count/case-count.module.mjs +61 -0
  11. package/esm2020/lib/data-sources/case-count/case-count.specification.mjs +74 -0
  12. package/esm2020/lib/data-sources/case-count/components/case-count-configuration/case-count-configuration.component.mjs +149 -0
  13. package/esm2020/lib/data-sources/case-count/components/case-count-configuration/index.mjs +17 -0
  14. package/esm2020/lib/data-sources/case-count/components/index.mjs +17 -0
  15. package/esm2020/lib/data-sources/case-count/index.mjs +20 -0
  16. package/esm2020/lib/data-sources/case-count/models/case-count.model.mjs +26 -0
  17. package/esm2020/lib/data-sources/case-count/models/index.mjs +17 -0
  18. package/esm2020/lib/data-sources/index.mjs +18 -0
  19. package/esm2020/lib/data-sources/test/components/index.mjs +17 -0
  20. package/esm2020/lib/data-sources/test/components/test-configuration/index.mjs +17 -0
  21. package/esm2020/lib/data-sources/test/components/test-configuration/test-configuration.component.mjs +80 -0
  22. package/esm2020/lib/data-sources/test/index.mjs +20 -0
  23. package/esm2020/lib/data-sources/test/models/index.mjs +17 -0
  24. package/esm2020/lib/data-sources/test/models/test.model.mjs +17 -0
  25. package/esm2020/lib/data-sources/test/test.module.mjs +39 -0
  26. package/esm2020/lib/data-sources/test/test.specification.mjs +44 -0
  27. package/esm2020/lib/display-types/bar-chart/bar-chart.module.mjs +36 -0
  28. package/esm2020/lib/display-types/bar-chart/bar-chart.specification.mjs +35 -0
  29. package/esm2020/lib/display-types/bar-chart/components/bar-chart-display/bar-chart-display.component.mjs +32 -0
  30. package/esm2020/lib/display-types/bar-chart/components/bar-chart-display/index.mjs +17 -0
  31. package/esm2020/lib/display-types/bar-chart/components/index.mjs +17 -0
  32. package/esm2020/lib/display-types/bar-chart/index.mjs +20 -0
  33. package/esm2020/lib/display-types/bar-chart/models/bar-chart.model.mjs +17 -0
  34. package/esm2020/lib/display-types/bar-chart/models/index.mjs +17 -0
  35. package/esm2020/lib/display-types/big-number/big-number.module.mjs +53 -0
  36. package/esm2020/lib/display-types/big-number/big-number.specification.mjs +67 -0
  37. package/esm2020/lib/display-types/big-number/components/big-number-configuration/big-number-configuration.component.mjs +124 -0
  38. package/esm2020/lib/display-types/big-number/components/big-number-configuration/index.mjs +17 -0
  39. package/esm2020/lib/display-types/big-number/components/big-number-display/big-number-display.component.mjs +56 -0
  40. package/esm2020/lib/display-types/big-number/components/big-number-display/index.mjs +17 -0
  41. package/esm2020/lib/display-types/big-number/components/index.mjs +18 -0
  42. package/esm2020/lib/display-types/big-number/index.mjs +20 -0
  43. package/esm2020/lib/display-types/big-number/models/big-number.model.mjs +17 -0
  44. package/esm2020/lib/display-types/big-number/models/index.mjs +17 -0
  45. package/esm2020/lib/display-types/index.mjs +19 -0
  46. package/esm2020/lib/display-types/meter/components/index.mjs +17 -0
  47. package/esm2020/lib/display-types/meter/components/meter-display/index.mjs +17 -0
  48. package/esm2020/lib/display-types/meter/components/meter-display/meter-display.component.mjs +32 -0
  49. package/esm2020/lib/display-types/meter/index.mjs +20 -0
  50. package/esm2020/lib/display-types/meter/meter.module.mjs +36 -0
  51. package/esm2020/lib/display-types/meter/meter.specification.mjs +35 -0
  52. package/esm2020/lib/display-types/meter/models/index.mjs +17 -0
  53. package/esm2020/lib/display-types/meter/models/meter.model.mjs +17 -0
  54. package/esm2020/lib/models/configuration.model.mjs +17 -0
  55. package/esm2020/lib/models/dashboard.model.mjs +17 -0
  56. package/esm2020/lib/models/data-source.model.mjs +17 -0
  57. package/esm2020/lib/models/display-type.model.mjs +17 -0
  58. package/esm2020/lib/models/index.mjs +23 -0
  59. package/esm2020/lib/models/layout.model.mjs +17 -0
  60. package/esm2020/lib/models/widget-data.model.mjs +17 -0
  61. package/esm2020/lib/models/widget-display.model.mjs +25 -0
  62. package/esm2020/lib/pipes/index.mjs +17 -0
  63. package/esm2020/lib/pipes/widget-translate/index.mjs +18 -0
  64. package/esm2020/lib/pipes/widget-translate/widget-translate-pipe.module.mjs +33 -0
  65. package/esm2020/lib/pipes/widget-translate/widget-translate.pipe.mjs +35 -0
  66. package/esm2020/lib/services/dashboard.service.mjs +38 -0
  67. package/esm2020/lib/services/index.mjs +19 -0
  68. package/esm2020/lib/services/widget-api.service.mjs +38 -0
  69. package/esm2020/lib/services/widget-layout.service.mjs +121 -0
  70. package/esm2020/lib/services/widget-translation.service.mjs +61 -0
  71. package/esm2020/lib/services/widget.service.mjs +62 -0
  72. package/esm2020/public_api.mjs +10 -2
  73. package/fesm2015/valtimo-dashboard.mjs +2047 -90
  74. package/fesm2015/valtimo-dashboard.mjs.map +1 -1
  75. package/fesm2020/valtimo-dashboard.mjs +2213 -90
  76. package/fesm2020/valtimo-dashboard.mjs.map +1 -1
  77. package/lib/{dashboard.component.d.ts → components/dashboard/dashboard.component.d.ts} +3 -8
  78. package/lib/components/dashboard/dashboard.component.d.ts.map +1 -0
  79. package/lib/components/widget-dashboard/widget-dashboard.component.d.ts +20 -0
  80. package/lib/components/widget-dashboard/widget-dashboard.component.d.ts.map +1 -0
  81. package/lib/components/widget-dashboard-content/widget-dashboard-content.component.d.ts +34 -0
  82. package/lib/components/widget-dashboard-content/widget-dashboard-content.component.d.ts.map +1 -0
  83. package/lib/constants/data-features.constants.d.ts +6 -0
  84. package/lib/constants/data-features.constants.d.ts.map +1 -0
  85. package/lib/constants/index.d.ts +4 -0
  86. package/lib/constants/index.d.ts.map +1 -0
  87. package/lib/constants/injection-tokens.d.ts +6 -0
  88. package/lib/constants/injection-tokens.d.ts.map +1 -0
  89. package/lib/constants/layout.constants.d.ts +4 -0
  90. package/lib/constants/layout.constants.d.ts.map +1 -0
  91. package/lib/dashboard-routing.module.d.ts.map +1 -1
  92. package/lib/dashboard.module.d.ts +12 -8
  93. package/lib/dashboard.module.d.ts.map +1 -1
  94. package/lib/data-sources/case-count/case-count.module.d.ts +13 -0
  95. package/lib/data-sources/case-count/case-count.module.d.ts.map +1 -0
  96. package/lib/data-sources/case-count/case-count.specification.d.ts +3 -0
  97. package/lib/data-sources/case-count/case-count.specification.d.ts.map +1 -0
  98. package/lib/data-sources/case-count/components/case-count-configuration/case-count-configuration.component.d.ts +44 -0
  99. package/lib/data-sources/case-count/components/case-count-configuration/case-count-configuration.component.d.ts.map +1 -0
  100. package/lib/data-sources/case-count/components/case-count-configuration/index.d.ts +2 -0
  101. package/lib/data-sources/case-count/components/case-count-configuration/index.d.ts.map +1 -0
  102. package/lib/data-sources/case-count/components/index.d.ts +2 -0
  103. package/lib/data-sources/case-count/components/index.d.ts.map +1 -0
  104. package/lib/data-sources/case-count/index.d.ts +5 -0
  105. package/lib/data-sources/case-count/index.d.ts.map +1 -0
  106. package/lib/data-sources/case-count/models/case-count.model.d.ts +19 -0
  107. package/lib/data-sources/case-count/models/case-count.model.d.ts.map +1 -0
  108. package/lib/data-sources/case-count/models/index.d.ts +2 -0
  109. package/lib/data-sources/case-count/models/index.d.ts.map +1 -0
  110. package/lib/data-sources/index.d.ts +3 -0
  111. package/lib/data-sources/index.d.ts.map +1 -0
  112. package/lib/data-sources/test/components/index.d.ts +2 -0
  113. package/lib/data-sources/test/components/index.d.ts.map +1 -0
  114. package/lib/data-sources/test/components/test-configuration/index.d.ts +2 -0
  115. package/lib/data-sources/test/components/test-configuration/index.d.ts.map +1 -0
  116. package/lib/data-sources/test/components/test-configuration/test-configuration.component.d.ts +26 -0
  117. package/lib/data-sources/test/components/test-configuration/test-configuration.component.d.ts.map +1 -0
  118. package/lib/data-sources/test/index.d.ts +5 -0
  119. package/lib/data-sources/test/index.d.ts.map +1 -0
  120. package/lib/data-sources/test/models/index.d.ts +2 -0
  121. package/lib/data-sources/test/models/index.d.ts.map +1 -0
  122. package/lib/data-sources/test/models/test.model.d.ts +6 -0
  123. package/lib/data-sources/test/models/test.model.d.ts.map +1 -0
  124. package/lib/data-sources/test/test.module.d.ts +12 -0
  125. package/lib/data-sources/test/test.module.d.ts.map +1 -0
  126. package/lib/data-sources/test/test.specification.d.ts +3 -0
  127. package/lib/data-sources/test/test.specification.d.ts.map +1 -0
  128. package/lib/display-types/bar-chart/bar-chart.module.d.ts +9 -0
  129. package/lib/display-types/bar-chart/bar-chart.module.d.ts.map +1 -0
  130. package/lib/display-types/bar-chart/bar-chart.specification.d.ts +3 -0
  131. package/lib/display-types/bar-chart/bar-chart.specification.d.ts.map +1 -0
  132. package/lib/display-types/bar-chart/components/bar-chart-display/bar-chart-display.component.d.ts +11 -0
  133. package/lib/display-types/bar-chart/components/bar-chart-display/bar-chart-display.component.d.ts.map +1 -0
  134. package/lib/display-types/bar-chart/components/bar-chart-display/index.d.ts +2 -0
  135. package/lib/display-types/bar-chart/components/bar-chart-display/index.d.ts.map +1 -0
  136. package/lib/display-types/bar-chart/components/index.d.ts +2 -0
  137. package/lib/display-types/bar-chart/components/index.d.ts.map +1 -0
  138. package/lib/display-types/bar-chart/index.d.ts +5 -0
  139. package/lib/display-types/bar-chart/index.d.ts.map +1 -0
  140. package/lib/display-types/bar-chart/models/bar-chart.model.d.ts +8 -0
  141. package/lib/display-types/bar-chart/models/bar-chart.model.d.ts.map +1 -0
  142. package/lib/display-types/bar-chart/models/index.d.ts +2 -0
  143. package/lib/display-types/bar-chart/models/index.d.ts.map +1 -0
  144. package/lib/display-types/big-number/big-number.module.d.ts +13 -0
  145. package/lib/display-types/big-number/big-number.module.d.ts.map +1 -0
  146. package/lib/display-types/big-number/big-number.specification.d.ts +3 -0
  147. package/lib/display-types/big-number/big-number.specification.d.ts.map +1 -0
  148. package/lib/display-types/big-number/components/big-number-configuration/big-number-configuration.component.d.ts +37 -0
  149. package/lib/display-types/big-number/components/big-number-configuration/big-number-configuration.component.d.ts.map +1 -0
  150. package/lib/display-types/big-number/components/big-number-configuration/index.d.ts +2 -0
  151. package/lib/display-types/big-number/components/big-number-configuration/index.d.ts.map +1 -0
  152. package/lib/display-types/big-number/components/big-number-display/big-number-display.component.d.ts +13 -0
  153. package/lib/display-types/big-number/components/big-number-display/big-number-display.component.d.ts.map +1 -0
  154. package/lib/display-types/big-number/components/big-number-display/index.d.ts +2 -0
  155. package/lib/display-types/big-number/components/big-number-display/index.d.ts.map +1 -0
  156. package/lib/display-types/big-number/components/index.d.ts +3 -0
  157. package/lib/display-types/big-number/components/index.d.ts.map +1 -0
  158. package/lib/display-types/big-number/index.d.ts +5 -0
  159. package/lib/display-types/big-number/index.d.ts.map +1 -0
  160. package/lib/display-types/big-number/models/big-number.model.d.ts +14 -0
  161. package/lib/display-types/big-number/models/big-number.model.d.ts.map +1 -0
  162. package/lib/display-types/big-number/models/index.d.ts +2 -0
  163. package/lib/display-types/big-number/models/index.d.ts.map +1 -0
  164. package/lib/display-types/index.d.ts +4 -0
  165. package/lib/display-types/index.d.ts.map +1 -0
  166. package/lib/display-types/meter/components/index.d.ts +2 -0
  167. package/lib/display-types/meter/components/index.d.ts.map +1 -0
  168. package/lib/display-types/meter/components/meter-display/index.d.ts +2 -0
  169. package/lib/display-types/meter/components/meter-display/index.d.ts.map +1 -0
  170. package/lib/display-types/meter/components/meter-display/meter-display.component.d.ts +11 -0
  171. package/lib/display-types/meter/components/meter-display/meter-display.component.d.ts.map +1 -0
  172. package/lib/display-types/meter/index.d.ts +5 -0
  173. package/lib/display-types/meter/index.d.ts.map +1 -0
  174. package/lib/display-types/meter/meter.module.d.ts +9 -0
  175. package/lib/display-types/meter/meter.module.d.ts.map +1 -0
  176. package/lib/display-types/meter/meter.specification.d.ts +3 -0
  177. package/lib/display-types/meter/meter.specification.d.ts.map +1 -0
  178. package/lib/display-types/meter/models/index.d.ts +2 -0
  179. package/lib/display-types/meter/models/index.d.ts.map +1 -0
  180. package/lib/display-types/meter/models/meter.model.d.ts +8 -0
  181. package/lib/display-types/meter/models/meter.model.d.ts.map +1 -0
  182. package/lib/models/configuration.model.d.ts +18 -0
  183. package/lib/models/configuration.model.d.ts.map +1 -0
  184. package/lib/models/dashboard.model.d.ts +15 -0
  185. package/lib/models/dashboard.model.d.ts.map +1 -0
  186. package/lib/models/data-source.model.d.ts +14 -0
  187. package/lib/models/data-source.model.d.ts.map +1 -0
  188. package/lib/models/display-type.model.d.ts +23 -0
  189. package/lib/models/display-type.model.d.ts.map +1 -0
  190. package/lib/models/index.d.ts +8 -0
  191. package/lib/models/index.d.ts.map +1 -0
  192. package/lib/models/layout.model.d.ts +18 -0
  193. package/lib/models/layout.model.d.ts.map +1 -0
  194. package/lib/models/widget-data.model.d.ts +6 -0
  195. package/lib/models/widget-data.model.d.ts.map +1 -0
  196. package/lib/models/widget-display.model.d.ts +9 -0
  197. package/lib/models/widget-display.model.d.ts.map +1 -0
  198. package/lib/pipes/index.d.ts +2 -0
  199. package/lib/pipes/index.d.ts.map +1 -0
  200. package/lib/pipes/widget-translate/index.d.ts +3 -0
  201. package/lib/pipes/widget-translate/index.d.ts.map +1 -0
  202. package/lib/pipes/widget-translate/widget-translate-pipe.module.d.ts +9 -0
  203. package/lib/pipes/widget-translate/widget-translate-pipe.module.d.ts.map +1 -0
  204. package/lib/pipes/widget-translate/widget-translate.pipe.d.ts +12 -0
  205. package/lib/pipes/widget-translate/widget-translate.pipe.d.ts.map +1 -0
  206. package/lib/services/dashboard.service.d.ts +15 -0
  207. package/lib/services/dashboard.service.d.ts.map +1 -0
  208. package/lib/services/index.d.ts +4 -0
  209. package/lib/services/index.d.ts.map +1 -0
  210. package/lib/services/widget-api.service.d.ts +15 -0
  211. package/lib/services/widget-api.service.d.ts.map +1 -0
  212. package/lib/services/widget-layout.service.d.ts +29 -0
  213. package/lib/services/widget-layout.service.d.ts.map +1 -0
  214. package/lib/services/widget-translation.service.d.ts +15 -0
  215. package/lib/services/widget-translation.service.d.ts.map +1 -0
  216. package/lib/services/widget.service.d.ts +19 -0
  217. package/lib/services/widget.service.d.ts.map +1 -0
  218. package/package.json +7 -6
  219. package/public_api.d.ts +9 -1
  220. package/public_api.d.ts.map +1 -1
  221. package/esm2020/lib/dashboard.component.mjs +0 -89
  222. package/lib/dashboard.component.d.ts.map +0 -1
@@ -0,0 +1,2 @@
1
+ export * from './big-number.model';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../projects/valtimo/dashboard/src/lib/display-types/big-number/models/index.ts"],"names":[],"mappings":"AAgBA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './bar-chart';
2
+ export * from './big-number';
3
+ export * from './meter';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/display-types/index.ts"],"names":[],"mappings":"AAgBA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './meter-display';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../projects/valtimo/dashboard/src/lib/display-types/meter/components/index.ts"],"names":[],"mappings":"AAgBA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './meter-display.component';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/valtimo/dashboard/src/lib/display-types/meter/components/meter-display/index.ts"],"names":[],"mappings":"AAgBA,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { DisplayComponent } from '../../../../models';
2
+ import { MeterData, MeterDisplayTypeProperties } from '../../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MeterDisplayComponent implements DisplayComponent {
5
+ displayTypeKey: string;
6
+ data: MeterData;
7
+ displayTypeProperties: MeterDisplayTypeProperties;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<MeterDisplayComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<MeterDisplayComponent, "valtimo-meter-display", never, { "displayTypeKey": "displayTypeKey"; "data": "data"; "displayTypeProperties": "displayTypeProperties"; }, {}, never, never, false>;
10
+ }
11
+ //# sourceMappingURL=meter-display.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meter-display.component.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/valtimo/dashboard/src/lib/display-types/meter/components/meter-display/meter-display.component.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,SAAS,EAAE,0BAA0B,EAAC,MAAM,cAAc,CAAC;;AAEnE,qBAMa,qBAAsB,YAAW,gBAAgB;IACnD,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,qBAAqB,EAAE,0BAA0B,CAAC;yCAHhD,qBAAqB;2CAArB,qBAAqB;CAIjC"}
@@ -0,0 +1,5 @@
1
+ export * from './components';
2
+ export * from './meter.module';
3
+ export * from './meter.specification';
4
+ export * from './models';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/dashboard/src/lib/display-types/meter/index.ts"],"names":[],"mappings":"AAgBA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC"}
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/meter-display/meter-display.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class MeterModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MeterModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MeterModule, [typeof i1.MeterDisplayComponent], [typeof i2.CommonModule], [typeof i1.MeterDisplayComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<MeterModule>;
8
+ }
9
+ //# sourceMappingURL=meter.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meter.module.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/dashboard/src/lib/display-types/meter/meter.module.ts"],"names":[],"mappings":";;;AAsBA,qBAMa,WAAW;yCAAX,WAAW;0CAAX,WAAW;0CAAX,WAAW;CAAG"}
@@ -0,0 +1,3 @@
1
+ import { DisplayTypeSpecification } from '../../models';
2
+ export declare const meterSpecification: DisplayTypeSpecification;
3
+ //# sourceMappingURL=meter.specification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meter.specification.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/dashboard/src/lib/display-types/meter/meter.specification.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,wBAAwB,EAAC,MAAM,cAAc,CAAC;AAGtD,eAAO,MAAM,kBAAkB,EAAE,wBAiBhC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './meter.model';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../projects/valtimo/dashboard/src/lib/display-types/meter/models/index.ts"],"names":[],"mappings":"AAgBA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,8 @@
1
+ interface MeterData {
2
+ value: number;
3
+ }
4
+ interface MeterDisplayTypeProperties {
5
+ title: string;
6
+ }
7
+ export { MeterData, MeterDisplayTypeProperties };
8
+ //# sourceMappingURL=meter.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meter.model.d.ts","sourceRoot":"","sources":["../../../../../../../projects/valtimo/dashboard/src/lib/display-types/meter/models/meter.model.ts"],"names":[],"mappings":"AAgBA,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,0BAA0B;IAClC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,OAAO,EAAC,SAAS,EAAE,0BAA0B,EAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ interface ConfigurationOutput {
3
+ valid: boolean;
4
+ data: object;
5
+ }
6
+ interface ConfigurationComponent {
7
+ disabled: boolean;
8
+ prefillConfiguration?: object;
9
+ configurationEvent: EventEmitter<ConfigurationOutput>;
10
+ }
11
+ interface DisplayTypeConfigurationComponent extends ConfigurationComponent {
12
+ displayTypeKey: string;
13
+ }
14
+ interface DataSourceConfigurationComponent extends ConfigurationComponent {
15
+ dataSourceKey: string;
16
+ }
17
+ export { ConfigurationComponent, DisplayTypeConfigurationComponent, DataSourceConfigurationComponent, ConfigurationOutput, };
18
+ //# sourceMappingURL=configuration.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/models/configuration.model.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAE3C,UAAU,mBAAmB;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,EAAE,YAAY,CAAC,mBAAmB,CAAC,CAAC;CACvD;AAED,UAAU,iCAAkC,SAAQ,sBAAsB;IACxE,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,gCAAiC,SAAQ,sBAAsB;IACvE,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,OAAO,EACL,sBAAsB,EACtB,iCAAiC,EACjC,gCAAgC,EAChC,mBAAmB,GACpB,CAAC"}
@@ -0,0 +1,15 @@
1
+ interface Dashboard {
2
+ key: string;
3
+ title: string;
4
+ widgets: Array<DashboardWidgetConfiguration>;
5
+ }
6
+ interface DashboardWidgetConfiguration {
7
+ key: string;
8
+ title: string;
9
+ dataSourceKey: string;
10
+ displayType: string;
11
+ dataSourceProperties: object;
12
+ displayTypeProperties: object;
13
+ }
14
+ export { Dashboard, DashboardWidgetConfiguration };
15
+ //# sourceMappingURL=dashboard.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/models/dashboard.model.ts"],"names":[],"mappings":"AAgBA,UAAU,SAAS;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,4BAA4B,CAAC,CAAC;CAC9C;AAED,UAAU,4BAA4B;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,OAAO,EAAC,SAAS,EAAE,4BAA4B,EAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Type } from '@angular/core';
2
+ import { DataSourceConfigurationComponent } from './configuration.model';
3
+ interface DataSourceSpecification {
4
+ dataSourceKey: string;
5
+ configurationComponent?: Type<DataSourceConfigurationComponent>;
6
+ translations: {
7
+ [langKey: string]: {
8
+ title: string;
9
+ [translationKey: string]: string;
10
+ };
11
+ };
12
+ }
13
+ export { DataSourceSpecification };
14
+ //# sourceMappingURL=data-source.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-source.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/models/data-source.model.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,OAAO,EAAC,gCAAgC,EAAC,MAAM,uBAAuB,CAAC;AAEvE,UAAU,uBAAuB;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,sBAAsB,CAAC,EAAE,IAAI,CAAC,gCAAgC,CAAC,CAAC;IAChE,YAAY,EAAE;QACZ,CAAC,OAAO,EAAE,MAAM,GAAG;YACjB,KAAK,EAAE,MAAM,CAAC;YACd,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;SAClC,CAAC;KACH,CAAC;CACH;AAED,OAAO,EAAC,uBAAuB,EAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { Type } from '@angular/core';
2
+ import { DisplayTypeConfigurationComponent } from './configuration.model';
3
+ interface DisplayComponent {
4
+ displayTypeKey: string;
5
+ displayTypeProperties: object;
6
+ data: object;
7
+ }
8
+ interface DisplayTypeSpecification {
9
+ displayTypeKey: string;
10
+ displayComponent: Type<DisplayComponent>;
11
+ configurationComponent?: Type<DisplayTypeConfigurationComponent>;
12
+ requiredDataFeatures: Array<string>;
13
+ width: number;
14
+ height: number;
15
+ translations: {
16
+ [langKey: string]: {
17
+ title: string;
18
+ [translationKey: string]: string;
19
+ };
20
+ };
21
+ }
22
+ export { DisplayComponent, DisplayTypeSpecification };
23
+ //# sourceMappingURL=display-type.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"display-type.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/models/display-type.model.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,OAAO,EAAC,iCAAiC,EAAC,MAAM,uBAAuB,CAAC;AAExE,UAAU,gBAAgB;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,wBAAwB;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACzC,sBAAsB,CAAC,EAAE,IAAI,CAAC,iCAAiC,CAAC,CAAC;IACjE,oBAAoB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE;QACZ,CAAC,OAAO,EAAE,MAAM,GAAG;YACjB,KAAK,EAAE,MAAM,CAAC;YACd,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;SAClC,CAAC;KACH,CAAC;CACH;AAED,OAAO,EAAC,gBAAgB,EAAE,wBAAwB,EAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export * from './configuration.model';
2
+ export * from './dashboard.model';
3
+ export * from './data-source.model';
4
+ export * from './display-type.model';
5
+ export * from './layout.model';
6
+ export * from './widget-data.model';
7
+ export * from './widget-display.model';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/models/index.ts"],"names":[],"mappings":"AAgBA,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,18 @@
1
+ interface WidgetConfigurationBin {
2
+ configurationKey: string;
3
+ width: number;
4
+ height: number;
5
+ }
6
+ interface PackResult {
7
+ height: number;
8
+ width: number;
9
+ items: Array<{
10
+ width: number;
11
+ height: number;
12
+ x: number;
13
+ y: number;
14
+ item: WidgetConfigurationBin;
15
+ }>;
16
+ }
17
+ export { WidgetConfigurationBin, PackResult };
18
+ //# sourceMappingURL=layout.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/models/layout.model.ts"],"names":[],"mappings":"AAgBA,UAAU,sBAAsB;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,UAAU;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,sBAAsB,CAAA;KAAC,CAAC,CAAC;CACnG;AAED,OAAO,EAAC,sBAAsB,EAAE,UAAU,EAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ interface WidgetData {
2
+ key: string;
3
+ data: object;
4
+ }
5
+ export { WidgetData };
6
+ //# sourceMappingURL=widget-data.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-data.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/models/widget-data.model.ts"],"names":[],"mappings":"AAgBA,UAAU,UAAU;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,OAAO,EAAC,UAAU,EAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ declare enum WidgetSeverity {
2
+ BLACK = "valtimo-severity__black",
3
+ GREEN = "valtimo-severity__green",
4
+ YELLOW = "valtimo-severity__yellow",
5
+ ORANGE = "valtimo-severity__orange",
6
+ RED = "valtimo-severity__red"
7
+ }
8
+ export { WidgetSeverity };
9
+ //# sourceMappingURL=widget-display.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-display.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/models/widget-display.model.ts"],"names":[],"mappings":"AAgBA,aAAK,cAAc;IACjB,KAAK,4BAA4B;IACjC,KAAK,4BAA4B;IACjC,MAAM,6BAA6B;IACnC,MAAM,6BAA6B;IACnC,GAAG,0BAA0B;CAC9B;AAED,OAAO,EAAC,cAAc,EAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './widget-translate';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/pipes/index.ts"],"names":[],"mappings":"AAgBA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './widget-translate.pipe';
2
+ export * from './widget-translate-pipe.module';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/dashboard/src/lib/pipes/widget-translate/index.ts"],"names":[],"mappings":"AAgBA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./widget-translate.pipe";
3
+ import * as i2 from "@ngx-translate/core";
4
+ export declare class WidgetTranslatePipeModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetTranslatePipeModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<WidgetTranslatePipeModule, [typeof i1.WidgetTranslatePipe], [typeof i2.TranslateModule], [typeof i1.WidgetTranslatePipe]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<WidgetTranslatePipeModule>;
8
+ }
9
+ //# sourceMappingURL=widget-translate-pipe.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-translate-pipe.module.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/dashboard/src/lib/pipes/widget-translate/widget-translate-pipe.module.ts"],"names":[],"mappings":";;;AAoBA,qBAKa,yBAAyB;yCAAzB,yBAAyB;0CAAzB,yBAAyB;0CAAzB,yBAAyB;CAAG"}
@@ -0,0 +1,12 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { WidgetTranslationService } from '../../services';
4
+ import * as i0 from "@angular/core";
5
+ export declare class WidgetTranslatePipe implements PipeTransform {
6
+ private readonly widgetTranslationService;
7
+ constructor(widgetTranslationService: WidgetTranslationService);
8
+ transform(translateKey: string, key: string): Observable<string>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetTranslatePipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<WidgetTranslatePipe, "widgetTranslate", false>;
11
+ }
12
+ //# sourceMappingURL=widget-translate.pipe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-translate.pipe.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/dashboard/src/lib/pipes/widget-translate/widget-translate.pipe.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,EAAC,wBAAwB,EAAC,MAAM,gBAAgB,CAAC;;AAExD,qBAGa,mBAAoB,YAAW,aAAa;IAC3C,OAAO,CAAC,QAAQ,CAAC,wBAAwB;gBAAxB,wBAAwB,EAAE,wBAAwB;IAE/E,SAAS,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;yCAHrD,mBAAmB;uCAAnB,mBAAmB;CAM/B"}
@@ -0,0 +1,15 @@
1
+ import { Observable } from 'rxjs';
2
+ import { Dashboard } from '../models';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import { ConfigService } from '@valtimo/config';
5
+ import * as i0 from "@angular/core";
6
+ export declare class DashboardService {
7
+ private readonly http;
8
+ private readonly configService;
9
+ private _endpointUri;
10
+ constructor(http: HttpClient, configService: ConfigService);
11
+ getDashboards(): Observable<Array<Dashboard>>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<DashboardService>;
14
+ }
15
+ //# sourceMappingURL=dashboard.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/services/dashboard.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,EAAC,SAAS,EAAC,MAAM,WAAW,CAAC;AACpC,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;;AAE9C,qBAGa,gBAAgB;IAGf,OAAO,CAAC,QAAQ,CAAC,IAAI;IAAc,OAAO,CAAC,QAAQ,CAAC,aAAa;IAF7E,OAAO,CAAC,YAAY,CAAS;gBAEA,IAAI,EAAE,UAAU,EAAmB,aAAa,EAAE,aAAa;IAIrF,aAAa,IAAI,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;yCAPzC,gBAAgB;6CAAhB,gBAAgB;CAU5B"}
@@ -0,0 +1,4 @@
1
+ export * from './dashboard.service';
2
+ export * from './widget-translation.service';
3
+ export * from './widget.service';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/services/index.ts"],"names":[],"mappings":"AAgBA,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { ConfigService } from '@valtimo/config';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { WidgetData } from '../models';
4
+ import { Observable } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class WidgetApiService {
7
+ private readonly configService;
8
+ private readonly http;
9
+ private _endpointUri;
10
+ constructor(configService: ConfigService, http: HttpClient);
11
+ getWidgetData(dashboardKey: string): Observable<WidgetData[]>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetApiService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<WidgetApiService>;
14
+ }
15
+ //# sourceMappingURL=widget-api.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-api.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/services/widget-api.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;;AAEhC,qBAGa,gBAAgB;IAGf,OAAO,CAAC,QAAQ,CAAC,aAAa;IAAiB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAFhF,OAAO,CAAC,YAAY,CAAS;gBAEA,aAAa,EAAE,aAAa,EAAmB,IAAI,EAAE,UAAU;IAIrF,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,UAAU,CAAC,UAAU,EAAE,CAAC;yCAPzD,gBAAgB;6CAAhB,gBAAgB;CAU5B"}
@@ -0,0 +1,29 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { WidgetService } from './widget.service';
4
+ import { DashboardWidgetConfiguration, PackResult } from '../models';
5
+ import * as i0 from "@angular/core";
6
+ export declare class WidgetLayoutService implements OnDestroy {
7
+ private readonly widgetService;
8
+ private readonly _widgetContainerWidth$;
9
+ private readonly _widgetConfigurations$;
10
+ private readonly _widgetPackResult$;
11
+ private _layoutSubscription;
12
+ get widgetPackResult$(): Observable<PackResult>;
13
+ private get widgetContainerWidth$();
14
+ private get widgetConfigurationBins$();
15
+ constructor(widgetService: WidgetService);
16
+ ngOnDestroy(): void;
17
+ setWidgetContainerWidth(width: number): void;
18
+ setWidgetConfigurations(configurations: Array<DashboardWidgetConfiguration>): void;
19
+ private openLayoutSubscription;
20
+ private getPackResult;
21
+ private checkIfPackResultExceedsBoundary;
22
+ private getAmountOfMinWidthColumns;
23
+ private getWidget1xWidth;
24
+ private getResultWithMaxWidth;
25
+ private getHeightConstraint;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetLayoutService, never>;
27
+ static ɵprov: i0.ɵɵInjectableDeclaration<WidgetLayoutService>;
28
+ }
29
+ //# sourceMappingURL=widget-layout.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-layout.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/services/widget-layout.service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAa,SAAS,EAAC,MAAM,eAAe,CAAC;AACpD,OAAO,EAA8C,UAAU,EAAe,MAAM,MAAM,CAAC;AAC3F,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAC,4BAA4B,EAAE,UAAU,EAAyB,MAAM,WAAW,CAAC;;AAI3F,qBACa,mBAAoB,YAAW,SAAS;IAqCvC,OAAO,CAAC,QAAQ,CAAC,aAAa;IApC1C,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAA4C;IACnF,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAEjC;IACN,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAgD;IAEnF,OAAO,CAAC,mBAAmB,CAAgB;IAE3C,IAAW,iBAAiB,IAAI,UAAU,CAAC,UAAU,CAAC,CAErD;IAED,OAAO,KAAK,qBAAqB,GAEhC;IAED,OAAO,KAAK,wBAAwB,GAkBnC;gBAE4B,aAAa,EAAE,aAAa;IAIzD,WAAW,IAAI,IAAI;IAInB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI5C,uBAAuB,CAAC,cAAc,EAAE,KAAK,CAAC,4BAA4B,CAAC,GAAG,IAAI;IAIlF,OAAO,CAAC,sBAAsB;IAgC9B,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,gCAAgC;IAIxC,OAAO,CAAC,0BAA0B;IAIlC,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,mBAAmB;yCAxHhB,mBAAmB;6CAAnB,mBAAmB;CAyI/B"}
@@ -0,0 +1,15 @@
1
+ import { TranslateService } from '@ngx-translate/core';
2
+ import { Observable } from 'rxjs';
3
+ import { WidgetService } from './widget.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class WidgetTranslationService {
6
+ private readonly translateService;
7
+ private readonly widgetService;
8
+ constructor(translateService: TranslateService, widgetService: WidgetService);
9
+ translate(translateKey: string, key: string): Observable<string>;
10
+ instant(translateKey: string, displayTypeKey: string): string;
11
+ private getTranslation;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetTranslationService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<WidgetTranslationService>;
14
+ }
15
+ //# sourceMappingURL=widget-translation.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-translation.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/services/widget-translation.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAgB,UAAU,EAAC,MAAM,MAAM,CAAC;AAE/C,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;;AAE/C,qBAGa,wBAAwB;IAEjC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBADb,gBAAgB,EAAE,gBAAgB,EAClC,aAAa,EAAE,aAAa;IAG/C,SAAS,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAYhE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM;IAS7D,OAAO,CAAC,cAAc;yCA3BX,wBAAwB;6CAAxB,wBAAwB;CAyDpC"}
@@ -0,0 +1,19 @@
1
+ import { DataSourceSpecification, DisplayTypeSpecification } from '../models';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class WidgetService {
5
+ private readonly supportedDisplayTypesFromToken;
6
+ private readonly supportedDataSourcesFromToken;
7
+ private readonly _supportedDisplayTypes$;
8
+ private readonly _supportedDataSources$;
9
+ get supportedDisplayTypes$(): Observable<Array<DisplayTypeSpecification>>;
10
+ get supportedDataSources$(): Observable<Array<DataSourceSpecification>>;
11
+ get supportedDisplayTypes(): Array<DisplayTypeSpecification>;
12
+ get supportedDataSources(): Array<DataSourceSpecification>;
13
+ constructor(supportedDisplayTypesFromToken: Array<DisplayTypeSpecification | null>, supportedDataSourcesFromToken: Array<DataSourceSpecification | null>);
14
+ private setSupportedDisplayTypes;
15
+ private setSupportedDataSources;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<WidgetService>;
18
+ }
19
+ //# sourceMappingURL=widget.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dashboard/src/lib/services/widget.service.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAC,uBAAuB,EAAE,wBAAwB,EAAC,MAAM,WAAW,CAAC;AAC5E,OAAO,EAA0B,UAAU,EAAC,MAAM,MAAM,CAAC;;AAEzD,qBAGa,aAAa;IAyBtB,OAAO,CAAC,QAAQ,CAAC,8BAA8B;IAE/C,OAAO,CAAC,QAAQ,CAAC,6BAA6B;IA1BhD,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAC4B;IAEpE,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAC4B;IAEnE,IAAW,sBAAsB,IAAI,UAAU,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAE/E;IAED,IAAW,qBAAqB,IAAI,UAAU,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAE7E;IAED,IAAW,qBAAqB,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAElE;IAED,IAAW,oBAAoB,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAEhE;gBAIkB,8BAA8B,EAAE,KAAK,CAAC,wBAAwB,GAAG,IAAI,CAAC,EAEtE,6BAA6B,EAAE,KAAK,CAAC,uBAAuB,GAAG,IAAI,CAAC;IAMvF,OAAO,CAAC,wBAAwB;IAMhC,OAAO,CAAC,uBAAuB;yCAvCpB,aAAa;6CAAb,aAAa;CA4CzB"}
package/package.json CHANGED
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "@valtimo/dashboard",
3
3
  "license": "EUPL-1.2",
4
- "version": "10.6.0",
4
+ "version": "10.7.0",
5
5
  "peerDependencies": {
6
- "@angular/common": "^14.2.5",
7
- "@angular/core": "^14.2.5"
6
+ "@angular/common": "^14.3.0",
7
+ "@angular/core": "^14.3.0"
8
8
  },
9
9
  "dependencies": {
10
10
  "moment": "^2.29.4",
11
- "d3": "^7.6.1",
12
- "d3-shape": "^3.1.0",
11
+ "bin-pack-with-constraints": "^1.0.1",
12
+ "d3": "^7.8.4",
13
+ "d3-shape": "^3.2.0",
13
14
  "@ngx-translate/core": "^14.0.0",
14
15
  "@ngx-translate/http-loader": "7.0.0",
15
- "tslib": "^2.0.0"
16
+ "tslib": "^2.5.0"
16
17
  },
17
18
  "module": "fesm2015/valtimo-dashboard.mjs",
18
19
  "es2020": "fesm2020/valtimo-dashboard.mjs",
package/public_api.d.ts CHANGED
@@ -1,3 +1,11 @@
1
- export * from './lib/dashboard.component';
1
+ export * from './lib/components/dashboard/dashboard.component';
2
+ export * from './lib/components/widget-dashboard-content/widget-dashboard-content.component';
3
+ export * from './lib/components/widget-dashboard/widget-dashboard.component';
4
+ export * from './lib/constants';
2
5
  export * from './lib/dashboard.module';
6
+ export * from './lib/data-sources';
7
+ export * from './lib/display-types';
8
+ export * from './lib/models';
9
+ export * from './lib/pipes';
10
+ export * from './lib/services';
3
11
  //# sourceMappingURL=public_api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/dashboard/src/public_api.ts"],"names":[],"mappings":"AAoBA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/dashboard/src/public_api.ts"],"names":[],"mappings":"AAoBA,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8EAA8E,CAAC;AAC7F,cAAc,8DAA8D,CAAC;AAC7E,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}