@nova-ui/dashboards 20.0.0 → 20.0.4

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 (359) hide show
  1. package/fesm2022/nova-ui-dashboards.mjs +617 -968
  2. package/fesm2022/nova-ui-dashboards.mjs.map +1 -1
  3. package/index.d.ts +4694 -3
  4. package/package.json +12 -4
  5. package/sdk/atoms/src/lib/components/providers/kpi-scale-sync-broker.d.ts +1 -0
  6. package/sdk/atoms/src/lib/components/providers/kpi-scale-sync-broker.js +31 -14
  7. package/sdk/atoms/src/lib/components/providers/kpi-scale-sync-broker.js.map +1 -1
  8. package/sdk/atoms/src/lib/components/providers/refresher-settings.service.d.ts +2 -5
  9. package/sdk/atoms/src/lib/components/providers/refresher-settings.service.js +5 -7
  10. package/sdk/atoms/src/lib/components/providers/refresher-settings.service.js.map +1 -1
  11. package/sdk/atoms/src/lib/components/providers/refresher.d.ts +5 -3
  12. package/sdk/atoms/src/lib/components/providers/refresher.js +8 -10
  13. package/sdk/atoms/src/lib/components/providers/refresher.js.map +1 -1
  14. package/sdk/atoms/src/lib/components/table-widget/addons/paginator-feature-addon.service.d.ts +1 -0
  15. package/sdk/atoms/src/lib/components/table-widget/addons/paginator-feature-addon.service.js +5 -2
  16. package/sdk/atoms/src/lib/components/table-widget/addons/paginator-feature-addon.service.js.map +1 -1
  17. package/sdk/atoms/src/lib/components/table-widget/addons/search-feature-addon.service.d.ts +1 -0
  18. package/sdk/atoms/src/lib/components/table-widget/addons/search-feature-addon.service.js +5 -2
  19. package/sdk/atoms/src/lib/components/table-widget/addons/search-feature-addon.service.js.map +1 -1
  20. package/sdk/atoms/src/lib/components/table-widget/table-widget.component.d.ts +3 -0
  21. package/sdk/atoms/src/lib/components/table-widget/table-widget.component.js +21 -5
  22. package/sdk/atoms/src/lib/components/table-widget/table-widget.component.js.map +1 -1
  23. package/sdk/atoms/src/lib/components/table-widget/types.d.ts +1 -0
  24. package/sdk/atoms/src/lib/components/table-widget/types.js.map +1 -1
  25. package/sdk/atoms/src/lib/configurator/components/public-api.d.ts +0 -1
  26. package/sdk/atoms/src/lib/configurator/components/public-api.js +0 -1
  27. package/sdk/atoms/src/lib/configurator/components/public-api.js.map +1 -1
  28. package/sdk/atoms/src/lib/configurator/configurator.module.js +1 -2
  29. package/sdk/atoms/src/lib/configurator/configurator.module.js.map +1 -1
  30. package/sdk/atoms/src/lib/dashboards.module.js +1 -0
  31. package/sdk/atoms/src/lib/dashboards.module.js.map +1 -1
  32. package/sdk/schematics/ng-add/index.spec.js +2 -2
  33. package/sdk/schematics/ng-add/index.spec.js.map +1 -1
  34. package/lib/common/common.module.d.ts +0 -11
  35. package/lib/common/components/preview-overlay/preview-overlay.component.d.ts +0 -6
  36. package/lib/common/components/public-api.d.ts +0 -2
  37. package/lib/common/components/widget-error/widget-error.component.d.ts +0 -21
  38. package/lib/common/constants.d.ts +0 -2
  39. package/lib/common/pipes/dashboard-unit-conversion-pipe.d.ts +0 -21
  40. package/lib/common/pipes/public-api.d.ts +0 -1
  41. package/lib/common/public-api.d.ts +0 -4
  42. package/lib/components/dashboard/dashboard.component.d.ts +0 -40
  43. package/lib/components/dashboard/default-gridster-config.d.ts +0 -2
  44. package/lib/components/dashboard/public-api.d.ts +0 -2
  45. package/lib/components/dashboard/types.d.ts +0 -17
  46. package/lib/components/embedded-content/embedded-content.component.d.ts +0 -23
  47. package/lib/components/kpi-widget/kpi.component.d.ts +0 -34
  48. package/lib/components/kpi-widget/public-api.d.ts +0 -2
  49. package/lib/components/kpi-widget/types.d.ts +0 -25
  50. package/lib/components/layouts/base-layout.d.ts +0 -28
  51. package/lib/components/layouts/public-api.d.ts +0 -3
  52. package/lib/components/layouts/stack/stack.component.d.ts +0 -19
  53. package/lib/components/layouts/tiles/tiles.component.d.ts +0 -23
  54. package/lib/components/list-widget/list-elements/list-group-item/list-group-item.component.d.ts +0 -21
  55. package/lib/components/list-widget/list-elements/list-leaf-item/list-leaf-item.component.d.ts +0 -24
  56. package/lib/components/list-widget/list-elements/list-navigation-bar/list-navigation-bar.component.d.ts +0 -16
  57. package/lib/components/list-widget/list-widget.component.d.ts +0 -29
  58. package/lib/components/list-widget/public-api.d.ts +0 -5
  59. package/lib/components/list-widget/types.d.ts +0 -19
  60. package/lib/components/loading/loading.component.d.ts +0 -11
  61. package/lib/components/loading/public-api.d.ts +0 -1
  62. package/lib/components/proportional-widget/proportional-donut-content/proportional-donut-content.component.d.ts +0 -45
  63. package/lib/components/proportional-widget/proportional-widget.component.d.ts +0 -77
  64. package/lib/components/proportional-widget/public-api.d.ts +0 -3
  65. package/lib/components/proportional-widget/types.d.ts +0 -61
  66. package/lib/components/providers/data-source-adapter.d.ts +0 -29
  67. package/lib/components/providers/drilldown-data-source-adapter.d.ts +0 -21
  68. package/lib/components/providers/event-bus-debugger.d.ts +0 -14
  69. package/lib/components/providers/interaction/interaction-handler.d.ts +0 -20
  70. package/lib/components/providers/interaction/url-interaction-handler.d.ts +0 -19
  71. package/lib/components/providers/kpi-color-prioritizer.d.ts +0 -33
  72. package/lib/components/providers/kpi-data-source-adapter.d.ts +0 -21
  73. package/lib/components/providers/kpi-scale-sync-broker.d.ts +0 -38
  74. package/lib/components/providers/kpi-status-content-fallback-adapter.d.ts +0 -29
  75. package/lib/components/providers/loading-adapter.d.ts +0 -17
  76. package/lib/components/providers/pizzagna-broadcaster.service.d.ts +0 -23
  77. package/lib/components/providers/public-api.d.ts +0 -8
  78. package/lib/components/providers/refresher-settings.service.d.ts +0 -20
  79. package/lib/components/providers/refresher.d.ts +0 -34
  80. package/lib/components/providers/status-content-fallback-adapter.d.ts +0 -19
  81. package/lib/components/providers/table-data-source-adapter.d.ts +0 -14
  82. package/lib/components/providers/timeseries-data-source-adapter.d.ts +0 -15
  83. package/lib/components/providers/types.d.ts +0 -57
  84. package/lib/components/public-api.d.ts +0 -17
  85. package/lib/components/risk-score-tile/public-api.d.ts +0 -2
  86. package/lib/components/risk-score-tile/risk-score-tile.component.d.ts +0 -32
  87. package/lib/components/risk-score-tile/types.d.ts +0 -26
  88. package/lib/components/table-widget/addons/paginator-feature-addon.service.d.ts +0 -16
  89. package/lib/components/table-widget/addons/search-feature-addon.service.d.ts +0 -14
  90. package/lib/components/table-widget/addons/virtual-scroll-feature-addon.service.d.ts +0 -16
  91. package/lib/components/table-widget/delayed-mouse-presence-detection.directive.d.ts +0 -13
  92. package/lib/components/table-widget/public-api.d.ts +0 -3
  93. package/lib/components/table-widget/table-widget.component.d.ts +0 -139
  94. package/lib/components/table-widget/types.d.ts +0 -101
  95. package/lib/components/template-load-error/public-api.d.ts +0 -1
  96. package/lib/components/template-load-error/template-load-error.component.d.ts +0 -7
  97. package/lib/components/time-frame-selection/public-api.d.ts +0 -1
  98. package/lib/components/time-frame-selection/timeframe-selection.component.d.ts +0 -31
  99. package/lib/components/timeseries-widget/chart-presets/public-api.d.ts +0 -7
  100. package/lib/components/timeseries-widget/chart-presets/status-bar-chart/apply-status-endpoints.d.ts +0 -13
  101. package/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.d.ts +0 -51
  102. package/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.d.ts +0 -33
  103. package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.d.ts +0 -14
  104. package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.d.ts +0 -14
  105. package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.d.ts +0 -15
  106. package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.d.ts +0 -14
  107. package/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.d.ts +0 -54
  108. package/lib/components/timeseries-widget/public-api.d.ts +0 -7
  109. package/lib/components/timeseries-widget/timeseries-chart-preset.service.d.ts +0 -8
  110. package/lib/components/timeseries-widget/timeseries-helpers.d.ts +0 -9
  111. package/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.d.ts +0 -41
  112. package/lib/components/timeseries-widget/timeseries-scales.service.d.ts +0 -30
  113. package/lib/components/timeseries-widget/timeseries-widget.component.d.ts +0 -32
  114. package/lib/components/timeseries-widget/transformer/loess.d.ts +0 -6
  115. package/lib/components/timeseries-widget/transformer/public-api.d.ts +0 -9
  116. package/lib/components/timeseries-widget/transformer/transformer-change-point.d.ts +0 -2
  117. package/lib/components/timeseries-widget/transformer/transformer-difference.d.ts +0 -2
  118. package/lib/components/timeseries-widget/transformer/transformer-floating-average.d.ts +0 -2
  119. package/lib/components/timeseries-widget/transformer/transformer-lin-reg.d.ts +0 -2
  120. package/lib/components/timeseries-widget/transformer/transformer-loess-standardize.d.ts +0 -2
  121. package/lib/components/timeseries-widget/transformer/transformer-loess.d.ts +0 -2
  122. package/lib/components/timeseries-widget/transformer/transformer-normalize.d.ts +0 -2
  123. package/lib/components/timeseries-widget/transformer/transformer-percentile-std.d.ts +0 -2
  124. package/lib/components/timeseries-widget/transformer/transformer-standardize.d.ts +0 -2
  125. package/lib/components/timeseries-widget/types.d.ts +0 -131
  126. package/lib/components/types.d.ts +0 -54
  127. package/lib/components/widget/public-api.d.ts +0 -6
  128. package/lib/components/widget/types.d.ts +0 -38
  129. package/lib/components/widget/widget-body/widget-body.component.d.ts +0 -33
  130. package/lib/components/widget/widget-body-content/widget-body-content.component.d.ts +0 -37
  131. package/lib/components/widget/widget-header/types.d.ts +0 -11
  132. package/lib/components/widget/widget-header/widget-header.component.d.ts +0 -54
  133. package/lib/components/widget/widget.component.d.ts +0 -18
  134. package/lib/components/widget-search/types.d.ts +0 -7
  135. package/lib/components/widget-search/widget-search.component.d.ts +0 -27
  136. package/lib/configurator/components/color-picker/HTMLcolors.d.ts +0 -1
  137. package/lib/configurator/components/color-picker/color-picker.component.d.ts +0 -42
  138. package/lib/configurator/components/color-picker/color.service.d.ts +0 -8
  139. package/lib/configurator/components/configurator/configurator.component.d.ts +0 -33
  140. package/lib/configurator/components/drop-area/drop-area.component.d.ts +0 -5
  141. package/lib/configurator/components/form-stack/form-stack.component.d.ts +0 -25
  142. package/lib/configurator/components/formatters/donut-content-percentage-formatter/donut-content-percentage-configuration.component.d.ts +0 -13
  143. package/lib/configurator/components/formatters/donut-content-percentage-formatter/donut-content-percentage-formatter.component.d.ts +0 -23
  144. package/lib/configurator/components/formatters/donut-content-raw-formatter/donut-content-raw-formatter.component.d.ts +0 -19
  145. package/lib/configurator/components/formatters/donut-content-sum-formatter/donut-content-sum-formatter.component.d.ts +0 -13
  146. package/lib/configurator/components/formatters/icon-formatter/icon-formatter.component.d.ts +0 -17
  147. package/lib/configurator/components/formatters/link-formatter/link-formatter.component.d.ts +0 -15
  148. package/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.d.ts +0 -7
  149. package/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.d.ts +0 -12
  150. package/lib/configurator/components/formatters/si-units-formatter/si-units-formatter.component.d.ts +0 -20
  151. package/lib/configurator/components/formatters/status-with-icon-formatter/status-with-icon-formatter.component.d.ts +0 -18
  152. package/lib/configurator/components/formatters/types.d.ts +0 -7
  153. package/lib/configurator/components/formatters/widget-formatter-configurators/donut-formatter-configurator.component.d.ts +0 -31
  154. package/lib/configurator/components/heading/configurator-heading.component.d.ts +0 -14
  155. package/lib/configurator/components/items-dynamic/items-dynamic.component.d.ts +0 -39
  156. package/lib/configurator/components/preview-placeholder/preview-placeholder.component.d.ts +0 -6
  157. package/lib/configurator/components/public-api.d.ts +0 -26
  158. package/lib/configurator/components/types.d.ts +0 -12
  159. package/lib/configurator/components/widget-cloner/widget-cloner.component.d.ts +0 -44
  160. package/lib/configurator/components/widget-configurator-section/widget-configurator-section-coordinator.service.d.ts +0 -10
  161. package/lib/configurator/components/widget-configurator-section/widget-configurator-section.component.d.ts +0 -26
  162. package/lib/configurator/components/widget-editor/widget-editor.component.d.ts +0 -35
  163. package/lib/configurator/components/widget-editor-accordion/widget-editor-accordion-header/widget-editor-accordion-header.component.d.ts +0 -9
  164. package/lib/configurator/components/widget-editor-accordion/widget-editor-accordion.component.d.ts +0 -23
  165. package/lib/configurator/components/widgets/configurator-items/background-color-rules-configuration/background-color-rules-configuration.component.d.ts +0 -35
  166. package/lib/configurator/components/widgets/configurator-items/data-source-configuration/data-source-configuration.component.d.ts +0 -51
  167. package/lib/configurator/components/widgets/configurator-items/data-source-configuration-v2/data-source-configuration-v2.component.d.ts +0 -51
  168. package/lib/configurator/components/widgets/configurator-items/data-source-error/data-source-error.component.d.ts +0 -22
  169. package/lib/configurator/components/widgets/configurator-items/data-source-error/public-api.d.ts +0 -2
  170. package/lib/configurator/components/widgets/configurator-items/data-source-error/table/table-data-source-error.component.d.ts +0 -11
  171. package/lib/configurator/components/widgets/configurator-items/embedded-content-configuration/embedded-content-configuration.component.d.ts +0 -31
  172. package/lib/configurator/components/widgets/configurator-items/info-message-configuration/info-message-configuration.component.d.ts +0 -15
  173. package/lib/configurator/components/widgets/configurator-items/kpi-description-configuration/kpi-description-configuration.component.d.ts +0 -28
  174. package/lib/configurator/components/widgets/configurator-items/public-api.d.ts +0 -11
  175. package/lib/configurator/components/widgets/configurator-items/refresher-configuration/public-api.d.ts +0 -2
  176. package/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/refresh-rate-configurator.component.d.ts +0 -47
  177. package/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/time-units.d.ts +0 -21
  178. package/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/types.d.ts +0 -5
  179. package/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresher-configuration.component.d.ts +0 -33
  180. package/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.d.ts +0 -26
  181. package/lib/configurator/components/widgets/configurator-items/thresholds-configuration/thresholds-configuration.component.d.ts +0 -38
  182. package/lib/configurator/components/widgets/configurator-items/thresholds-configuration/thresholds-validator.d.ts +0 -2
  183. package/lib/configurator/components/widgets/configurator-items/timeseries-metadata-configuration/timeseries-metadata-configuration.component.d.ts +0 -40
  184. package/lib/configurator/components/widgets/configurator-items/title-and-description-configuration/title-and-description-configuration.component.d.ts +0 -24
  185. package/lib/configurator/components/widgets/drilldown/entity-formatting-configuration/entity-formatting-configuration.component.d.ts +0 -20
  186. package/lib/configurator/components/widgets/drilldown/grouping-configuration/grouping-configuration.component.d.ts +0 -33
  187. package/lib/configurator/components/widgets/drilldown/public-api.d.ts +0 -2
  188. package/lib/configurator/components/widgets/kpi/kpi-tiles-configuration/kpi-tiles-configuration.component.d.ts +0 -32
  189. package/lib/configurator/components/widgets/kpi/kpi-tiles-configuration/public-api.d.ts +0 -1
  190. package/lib/configurator/components/widgets/kpi/public-api.d.ts +0 -2
  191. package/lib/configurator/components/widgets/kpi/types.d.ts +0 -32
  192. package/lib/configurator/components/widgets/proportional/aggregators-configurators/aggregator-configurator/aggregator-configurator.component.d.ts +0 -27
  193. package/lib/configurator/components/widgets/proportional/aggregators-configurators/field-mapper-aggregator-configurator/field-mapper-aggregator-configurator.component.d.ts +0 -19
  194. package/lib/configurator/components/widgets/proportional/chart-options-editor/proportional-chart-options-editor.component.d.ts +0 -52
  195. package/lib/configurator/components/widgets/proportional/chart-options-editor-v2/proportional-chart-options-editor-v2.component.d.ts +0 -34
  196. package/lib/configurator/components/widgets/proportional/donut-content-configuration/donut-content-configuration.component.d.ts +0 -53
  197. package/lib/configurator/components/widgets/proportional/public-api.d.ts +0 -5
  198. package/lib/configurator/components/widgets/public-api.d.ts +0 -7
  199. package/lib/configurator/components/widgets/risk-score/public-api.d.ts +0 -2
  200. package/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.d.ts +0 -1
  201. package/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.d.ts +0 -32
  202. package/lib/configurator/components/widgets/risk-score/types.d.ts +0 -7
  203. package/lib/configurator/components/widgets/table/columns-editor/column-configuration/description-configuration/description-configuration.component.d.ts +0 -23
  204. package/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/formatter-configurator.component.d.ts +0 -37
  205. package/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.d.ts +0 -14
  206. package/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/value-selector/value-selector.component.d.ts +0 -13
  207. package/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/presentation-configuration.component.d.ts +0 -66
  208. package/lib/configurator/components/widgets/table/columns-editor/table-columns-configuration.component.d.ts +0 -46
  209. package/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/description-configuration/description-configuration-v2.component.d.ts +0 -27
  210. package/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/presentation-configuration/presentation-configuration-v2.component.d.ts +0 -75
  211. package/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/table-column-configuration/table-column-configuration.component.d.ts +0 -25
  212. package/lib/configurator/components/widgets/table/columns-editor-v2/table-columns-configuration-v2.component.d.ts +0 -71
  213. package/lib/configurator/components/widgets/table/filters-editor/table-filters-editor.component.d.ts +0 -27
  214. package/lib/configurator/components/widgets/table/public-api.d.ts +0 -12
  215. package/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.component.d.ts +0 -48
  216. package/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.service.d.ts +0 -12
  217. package/lib/configurator/components/widgets/timeseries/public-api.d.ts +0 -5
  218. package/lib/configurator/components/widgets/timeseries/timeseries-series-collection-configuration/timeseries-series-collection-configuration.component.d.ts +0 -34
  219. package/lib/configurator/components/widgets/timeseries/timeseries-tile-description-configuration/timeseries-tile-description-configuration.component.d.ts +0 -19
  220. package/lib/configurator/components/widgets/timeseries/timeseries-tile-indicator-data-configuration/timeseries-tile-indicator-data-configuration.component.d.ts +0 -32
  221. package/lib/configurator/components/widgets/timeseries/types.d.ts +0 -4
  222. package/lib/configurator/components/wizard/dashwiz/dashwiz-buttons.component.d.ts +0 -25
  223. package/lib/configurator/components/wizard/dashwiz/dashwiz.component.d.ts +0 -111
  224. package/lib/configurator/components/wizard/dashwiz/dashwiz.service.d.ts +0 -8
  225. package/lib/configurator/components/wizard/dashwiz/model.d.ts +0 -81
  226. package/lib/configurator/components/wizard/dashwiz/public-api.d.ts +0 -3
  227. package/lib/configurator/components/wizard/dashwiz-step/dashwiz-step.component.d.ts +0 -79
  228. package/lib/configurator/components/wizard/dashwiz-step/public-api.d.ts +0 -1
  229. package/lib/configurator/components/wizard/public-api.d.ts +0 -3
  230. package/lib/configurator/components/wizard/types.d.ts +0 -40
  231. package/lib/configurator/configurator.module.d.ts +0 -83
  232. package/lib/configurator/functions/has-control-in-error-state.d.ts +0 -11
  233. package/lib/configurator/functions/public-api.d.ts +0 -1
  234. package/lib/configurator/pipe/add-data.pipe.d.ts +0 -7
  235. package/lib/configurator/pipe/pizzagna-root.pipe.d.ts +0 -11
  236. package/lib/configurator/pipe/public-api.d.ts +0 -5
  237. package/lib/configurator/pipe/widget-configurator-section-header.pipe.d.ts +0 -8
  238. package/lib/configurator/pipe/widget-editor-accordion-form-state.pipe.d.ts +0 -10
  239. package/lib/configurator/pipe/widget-editor-accordion-header-icon.pipe.d.ts +0 -10
  240. package/lib/configurator/public-api.d.ts +0 -6
  241. package/lib/configurator/services/configurator-data-source-manager.service.d.ts +0 -21
  242. package/lib/configurator/services/configurator-heading.service.d.ts +0 -7
  243. package/lib/configurator/services/configurator.service.d.ts +0 -29
  244. package/lib/configurator/services/converters/base-converter.d.ts +0 -28
  245. package/lib/configurator/services/converters/kpi/kpi-section-converter/kpi-section-converter.service.d.ts +0 -19
  246. package/lib/configurator/services/converters/kpi/kpi-tiles-converter.service.d.ts +0 -18
  247. package/lib/configurator/services/converters/proportional/proportional-widget-chart-options-converter.service.d.ts +0 -16
  248. package/lib/configurator/services/converters/public-api.d.ts +0 -6
  249. package/lib/configurator/services/converters/shared/generic-array-converter/generic-array-converter.service.d.ts +0 -19
  250. package/lib/configurator/services/converters/shared/generic-converter/generic-converter.service.d.ts +0 -18
  251. package/lib/configurator/services/converters/shared/title-and-description-converter/title-and-description-converter.service.d.ts +0 -16
  252. package/lib/configurator/services/converters/table/table-columns-converter.service.d.ts +0 -31
  253. package/lib/configurator/services/converters/table/table-filters-converter.service.d.ts +0 -15
  254. package/lib/configurator/services/converters/table/table-scroll-type-converter.service.d.ts +0 -15
  255. package/lib/configurator/services/converters/timeseries/timeseries-metadata-converter.service.d.ts +0 -16
  256. package/lib/configurator/services/converters/timeseries/timeseries-series-converter.service.d.ts +0 -23
  257. package/lib/configurator/services/converters/timeseries/timeseries-tile-indicator-data-converter.service.d.ts +0 -15
  258. package/lib/configurator/services/converters/types.d.ts +0 -19
  259. package/lib/configurator/services/kpi-widget-color.service.d.ts +0 -11
  260. package/lib/configurator/services/preview.service.d.ts +0 -11
  261. package/lib/configurator/services/public-api.d.ts +0 -9
  262. package/lib/configurator/services/timeframe-serialization.service.d.ts +0 -9
  263. package/lib/configurator/services/types.d.ts +0 -29
  264. package/lib/configurator/services/widget-cloner.service.d.ts +0 -14
  265. package/lib/configurator/services/widget-editor.service.d.ts +0 -14
  266. package/lib/configurator/types.d.ts +0 -6
  267. package/lib/constants/default-palette.d.ts +0 -8
  268. package/lib/constants/public-api.d.ts +0 -1
  269. package/lib/constants/si-units-prefixes.d.ts +0 -7
  270. package/lib/dashboards.module.d.ts +0 -50
  271. package/lib/directives/gridster-item-widget-id/gridster-item-widget-id.directive.d.ts +0 -15
  272. package/lib/directives/public-api.d.ts +0 -2
  273. package/lib/directives/widget-editor/public-api.d.ts +0 -1
  274. package/lib/directives/widget-editor/widget-editor.directive.d.ts +0 -20
  275. package/lib/functions/get-parent-component-id.d.ts +0 -7
  276. package/lib/functions/map-data-to-formatter-properties.d.ts +0 -15
  277. package/lib/functions/merge-changes.d.ts +0 -13
  278. package/lib/functions/on-mark-as-touched.d.ts +0 -8
  279. package/lib/functions/parse-string-with-data.d.ts +0 -5
  280. package/lib/functions/proportional-aggregators/field-mapper.d.ts +0 -5
  281. package/lib/functions/proportional-aggregators/percentage-aggregator.d.ts +0 -11
  282. package/lib/functions/proportional-aggregators/public-api.d.ts +0 -4
  283. package/lib/functions/proportional-aggregators/sum-aggregator.d.ts +0 -5
  284. package/lib/functions/proportional-aggregators/types.d.ts +0 -25
  285. package/lib/functions/public-api.d.ts +0 -4
  286. package/lib/functions/round-array-values.d.ts +0 -1
  287. package/lib/functions/timeseries-datetime-formatter.d.ts +0 -4
  288. package/lib/pizzagna/components/pizzagna/pizzagna.component.d.ts +0 -34
  289. package/lib/pizzagna/components/pizzagna/public-api.d.ts +0 -1
  290. package/lib/pizzagna/directives/component-portal/component-portal.directive.d.ts +0 -47
  291. package/lib/pizzagna/directives/component-portal/public-api.d.ts +0 -1
  292. package/lib/pizzagna/functions/get-pizzagna-property-path.d.ts +0 -7
  293. package/lib/pizzagna/functions/public-api.d.ts +0 -1
  294. package/lib/pizzagna/pizzagna.module.d.ts +0 -10
  295. package/lib/pizzagna/public-api.d.ts +0 -6
  296. package/lib/pizzagna/services/component-portal.service.d.ts +0 -16
  297. package/lib/pizzagna/services/component-registry.service.d.ts +0 -16
  298. package/lib/pizzagna/services/dynamic-component-creator.service.d.ts +0 -10
  299. package/lib/pizzagna/services/pizzagna.service.d.ts +0 -27
  300. package/lib/pizzagna/services/public-api.d.ts +0 -4
  301. package/lib/services/category-chart-util.service.d.ts +0 -29
  302. package/lib/services/event-registry.service.d.ts +0 -9
  303. package/lib/services/kpi-color-comparators-registry.service.d.ts +0 -12
  304. package/lib/services/proportional-content-aggregators-registry.service.d.ts +0 -10
  305. package/lib/services/provider-registry.service.d.ts +0 -14
  306. package/lib/services/public-api.d.ts +0 -11
  307. package/lib/services/registry-service.d.ts +0 -27
  308. package/lib/services/table-formatter-registry.service.d.ts +0 -40
  309. package/lib/services/types.d.ts +0 -88
  310. package/lib/services/unit-test-registry.service.d.ts +0 -10
  311. package/lib/services/url-interaction.service.d.ts +0 -10
  312. package/lib/services/widget-configuration.service.d.ts +0 -9
  313. package/lib/services/widget-removal.service.d.ts +0 -15
  314. package/lib/services/widget-to-dashboard-event-proxy.service.d.ts +0 -53
  315. package/lib/services/widget-types.service.d.ts +0 -19
  316. package/lib/types.d.ts +0 -128
  317. package/lib/widget-types/common/configurator/components.d.ts +0 -5
  318. package/lib/widget-types/common/configurator/public-api.d.ts +0 -1
  319. package/lib/widget-types/common/public-api.d.ts +0 -2
  320. package/lib/widget-types/common/widget/components.d.ts +0 -37
  321. package/lib/widget-types/common/widget/legend.d.ts +0 -9
  322. package/lib/widget-types/common/widget/providers.d.ts +0 -14
  323. package/lib/widget-types/common/widget/public-api.d.ts +0 -4
  324. package/lib/widget-types/common/widget/types.d.ts +0 -8
  325. package/lib/widget-types/drilldown/drilldown-configurator.d.ts +0 -76
  326. package/lib/widget-types/drilldown/drilldown-widget.d.ts +0 -2
  327. package/lib/widget-types/drilldown/drilldown.d.ts +0 -5
  328. package/lib/widget-types/embedded-content/embedded-content-configurator.d.ts +0 -47
  329. package/lib/widget-types/embedded-content/embedded-content-widget.d.ts +0 -32
  330. package/lib/widget-types/embedded-content/embedded-content.d.ts +0 -5
  331. package/lib/widget-types/kpi/kpi-configurator.d.ts +0 -131
  332. package/lib/widget-types/kpi/kpi-widget.d.ts +0 -56
  333. package/lib/widget-types/kpi/kpi.d.ts +0 -5
  334. package/lib/widget-types/preview-placeholder.d.ts +0 -2
  335. package/lib/widget-types/proportional/donut-content-configurator-slice.d.ts +0 -58
  336. package/lib/widget-types/proportional/proportional-configurator.d.ts +0 -95
  337. package/lib/widget-types/proportional/proportional-widget.d.ts +0 -54
  338. package/lib/widget-types/proportional/proportional.d.ts +0 -5
  339. package/lib/widget-types/public-api.d.ts +0 -4
  340. package/lib/widget-types/risk-score/risk-score-configurator.d.ts +0 -97
  341. package/lib/widget-types/risk-score/risk-score-widget.d.ts +0 -55
  342. package/lib/widget-types/risk-score/risk-score.d.ts +0 -5
  343. package/lib/widget-types/table/default-table-formatters.d.ts +0 -2
  344. package/lib/widget-types/table/table-configurator.d.ts +0 -2
  345. package/lib/widget-types/table/table-widget.d.ts +0 -2
  346. package/lib/widget-types/table/table.d.ts +0 -2
  347. package/lib/widget-types/timeseries/timeseries-configurator.d.ts +0 -2
  348. package/lib/widget-types/timeseries/timeseries-widget.d.ts +0 -62
  349. package/lib/widget-types/timeseries/timeseries.d.ts +0 -5
  350. package/public-api.d.ts +0 -11
  351. package/sdk/atoms/src/lib/configurator/components/color-picker/HTMLcolors.d.ts +0 -1
  352. package/sdk/atoms/src/lib/configurator/components/color-picker/HTMLcolors.js +0 -166
  353. package/sdk/atoms/src/lib/configurator/components/color-picker/HTMLcolors.js.map +0 -1
  354. package/sdk/atoms/src/lib/configurator/components/color-picker/color-picker.component.d.ts +0 -39
  355. package/sdk/atoms/src/lib/configurator/components/color-picker/color-picker.component.js +0 -185
  356. package/sdk/atoms/src/lib/configurator/components/color-picker/color-picker.component.js.map +0 -1
  357. package/sdk/atoms/src/lib/configurator/components/color-picker/color.service.d.ts +0 -5
  358. package/sdk/atoms/src/lib/configurator/components/color-picker/color.service.js +0 -58
  359. package/sdk/atoms/src/lib/configurator/components/color-picker/color.service.js.map +0 -1
@@ -1,55 +0,0 @@
1
- import { IProviderConfiguration } from "../../types";
2
- export declare const riskScoreWidget: {
3
- structure: {
4
- tiles: {
5
- id: string;
6
- componentType: string;
7
- properties: {
8
- elementClass: string;
9
- template: {
10
- componentType: string;
11
- providers: {
12
- adapter: IProviderConfiguration;
13
- };
14
- properties: {
15
- elementClass: string;
16
- };
17
- };
18
- };
19
- };
20
- "/": {
21
- id: string;
22
- componentType: string;
23
- providers: {
24
- refresher: IProviderConfiguration;
25
- eventProxy: IProviderConfiguration;
26
- };
27
- properties: {
28
- nodes: string[];
29
- };
30
- };
31
- header: import("../../types").IComponentConfiguration;
32
- loading: import("../../types").IComponentConfiguration;
33
- body: {
34
- properties: {
35
- elementClass: string;
36
- };
37
- id: string;
38
- componentType: string;
39
- providers?: Record<string, IProviderConfiguration>;
40
- };
41
- };
42
- configuration: {
43
- "/": {
44
- id: string;
45
- providers: {
46
- refresher: IProviderConfiguration;
47
- };
48
- };
49
- header: {
50
- properties: {
51
- title: string;
52
- };
53
- };
54
- };
55
- };
@@ -1,5 +0,0 @@
1
- import { IWidgetTypeDefinition } from "../../components/widget/types";
2
- /***********************************************************************************************************
3
- * KPI widget definition starts here
4
- ***********************************************************************************************************/
5
- export declare const riskScore: IWidgetTypeDefinition;
@@ -1,2 +0,0 @@
1
- import { IFormatterDefinition } from "../../components/types";
2
- export declare const DEFAULT_TABLE_FORMATTERS: IFormatterDefinition[];
@@ -1,2 +0,0 @@
1
- import { IPizzagna } from "../../types";
2
- export declare const tableConfigurator: IPizzagna;
@@ -1,2 +0,0 @@
1
- import { IPizzagna } from "../../types";
2
- export declare const tableWidget: IPizzagna;
@@ -1,2 +0,0 @@
1
- import { IWidgetTypeDefinition } from "../../components/widget/types";
2
- export declare const table: IWidgetTypeDefinition;
@@ -1,2 +0,0 @@
1
- import { IPizzagna } from "../../types";
2
- export declare const timeseriesConfigurator: IPizzagna;
@@ -1,62 +0,0 @@
1
- import { ITimeseriesWidgetConfig } from "../../components/timeseries-widget/types";
2
- import { IProviderConfiguration } from "../../types";
3
- export declare const timeseriesWidget: {
4
- structure: {
5
- mainContent: {
6
- id: string;
7
- componentType: string;
8
- properties: {
9
- nodes: string[];
10
- };
11
- };
12
- timeframeSelection: {
13
- id: string;
14
- componentType: string;
15
- };
16
- chart: {
17
- id: string;
18
- componentType: string;
19
- properties: {
20
- elementClass: string;
21
- configuration: ITimeseriesWidgetConfig;
22
- };
23
- providers: {
24
- adapter: IProviderConfiguration;
25
- };
26
- };
27
- "/": {
28
- id: string;
29
- componentType: string;
30
- providers: {
31
- refresher: IProviderConfiguration;
32
- eventProxy: IProviderConfiguration;
33
- };
34
- properties: {
35
- nodes: string[];
36
- };
37
- };
38
- header: import("../../types").IComponentConfiguration;
39
- loading: import("../../types").IComponentConfiguration;
40
- body: {
41
- properties: {
42
- elementClass: string;
43
- };
44
- id: string;
45
- componentType: string;
46
- providers?: Record<string, IProviderConfiguration>;
47
- };
48
- };
49
- configuration: {
50
- "/": {
51
- id: string;
52
- providers: {
53
- refresher: IProviderConfiguration;
54
- };
55
- };
56
- header: {
57
- properties: {
58
- title: string;
59
- };
60
- };
61
- };
62
- };
@@ -1,5 +0,0 @@
1
- import { IWidgetTypeDefinition } from "../../components/widget/types";
2
- /***********************************************************************************************************
3
- * Timeseries widget definition starts here
4
- ***********************************************************************************************************/
5
- export declare const timeseries: IWidgetTypeDefinition;
package/public-api.d.ts DELETED
@@ -1,11 +0,0 @@
1
- export * from "./lib/common/public-api";
2
- export * from "./lib/dashboards.module";
3
- export * from "./lib/types";
4
- export * from "./lib/services/public-api";
5
- export * from "./lib/configurator/public-api";
6
- export * from "./lib/pizzagna/public-api";
7
- export * from "./lib/components/public-api";
8
- export * from "./lib/directives/public-api";
9
- export * from "./lib/functions/public-api";
10
- export * from "./lib/widget-types/public-api";
11
- export * from "./lib/constants/public-api";
@@ -1 +0,0 @@
1
- export declare const HTML_COLORS: Map<string, string>;
@@ -1,166 +0,0 @@
1
- "use strict";
2
- // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to
6
- // deal in the Software without restriction, including without limitation the
7
- // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8
- // sell copies of the Software, and to permit persons to whom the Software is
9
- // furnished to do so, subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in
12
- // all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- // THE SOFTWARE.
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.HTML_COLORS = void 0;
23
- exports.HTML_COLORS = new Map([
24
- ["aliceblue", "#f0f8ff"],
25
- ["antiquewhite", "#faebd7"],
26
- ["aqua", "#00ffff"],
27
- ["aquamarine", "#7fffd4"],
28
- ["azure", "#f0ffff"],
29
- ["beige", "#f5f5dc"],
30
- ["bisque", "#ffe4c4"],
31
- ["black", "#000000"],
32
- ["blanchedalmond", "#ffebcd"],
33
- ["blue", "#0000ff"],
34
- ["blueviolet", "#8a2be2"],
35
- ["brown", "#a52a2a"],
36
- ["burlywood", "#deb887"],
37
- ["cadetblue", "#5f9ea0"],
38
- ["chartreuse", "#7fff00"],
39
- ["chocolate", "#d2691e"],
40
- ["coral", "#ff7f50"],
41
- ["cornflowerblue", "#6495ed"],
42
- ["cornsilk", "#fff8dc"],
43
- ["crimson", "#dc143c"],
44
- ["cyan", "#00ffff"],
45
- ["darkblue", "#00008b"],
46
- ["darkcyan", "#008b8b"],
47
- ["darkgoldenrod", "#b8860b"],
48
- ["darkgray", "#a9a9a9"],
49
- ["darkgreen", "#006400"],
50
- ["darkkhaki", "#bdb76b"],
51
- ["darkmagenta", "#8b008b"],
52
- ["darkolivegreen", "#556b2f"],
53
- ["darkorange", "#ff8c00"],
54
- ["darkorchid", "#9932cc"],
55
- ["darkred", "#8b0000"],
56
- ["darksalmon", "#e9967a"],
57
- ["darkseagreen", "#8fbc8f"],
58
- ["darkslateblue", "#483d8b"],
59
- ["darkslategray", "#2f4f4f"],
60
- ["darkturquoise", "#00ced1"],
61
- ["darkviolet", "#9400d3"],
62
- ["deeppink", "#ff1493"],
63
- ["deepskyblue", "#00bfff"],
64
- ["dimgray", "#696969"],
65
- ["dodgerblue", "#1e90ff"],
66
- ["firebrick", "#b22222"],
67
- ["floralwhite", "#fffaf0"],
68
- ["forestgreen", "#228b22"],
69
- ["fuchsia", "#ff00ff"],
70
- ["gainsboro", "#dcdcdc"],
71
- ["ghostwhite", "#f8f8ff"],
72
- ["gold", "#ffd700"],
73
- ["goldenrod", "#daa520"],
74
- ["gray", "#808080"],
75
- ["green", "#008000"],
76
- ["greenyellow", "#adff2f"],
77
- ["honeydew", "#f0fff0"],
78
- ["hotpink", "#ff69b4"],
79
- ["indianred ", "#cd5c5c"],
80
- ["indigo", "#4b0082"],
81
- ["ivory", "#fffff0"],
82
- ["khaki", "#f0e68c"],
83
- ["lavender", "#e6e6fa"],
84
- ["lavenderblush", "#fff0f5"],
85
- ["lawngreen", "#7cfc00"],
86
- ["lemonchiffon", "#fffacd"],
87
- ["lightblue", "#add8e6"],
88
- ["lightcoral", "#f08080"],
89
- ["lightcyan", "#e0ffff"],
90
- ["lightgoldenrodyellow", "#fafad2"],
91
- ["lightgrey", "#d3d3d3"],
92
- ["lightgreen", "#90ee90"],
93
- ["lightpink", "#ffb6c1"],
94
- ["lightsalmon", "#ffa07a"],
95
- ["lightseagreen", "#20b2aa"],
96
- ["lightskyblue", "#87cefa"],
97
- ["lightslategray", "#778899"],
98
- ["lightsteelblue", "#b0c4de"],
99
- ["lightyellow", "#ffffe0"],
100
- ["lime", "#00ff00"],
101
- ["limegreen", "#32cd32"],
102
- ["linen", "#faf0e6"],
103
- ["magenta", "#ff00ff"],
104
- ["maroon", "#800000"],
105
- ["mediumaquamarine", "#66cdaa"],
106
- ["mediumblue", "#0000cd"],
107
- ["mediumorchid", "#ba55d3"],
108
- ["mediumpurple", "#9370d8"],
109
- ["mediumseagreen", "#3cb371"],
110
- ["mediumslateblue", "#7b68ee"],
111
- ["mediumspringgreen", "#00fa9a"],
112
- ["mediumturquoise", "#48d1cc"],
113
- ["mediumvioletred", "#c71585"],
114
- ["midnightblue", "#191970"],
115
- ["mintcream", "#f5fffa"],
116
- ["mistyrose", "#ffe4e1"],
117
- ["moccasin", "#ffe4b5"],
118
- ["navajowhite", "#ffdead"],
119
- ["navy", "#000080"],
120
- ["oldlace", "#fdf5e6"],
121
- ["olive", "#808000"],
122
- ["olivedrab", "#6b8e23"],
123
- ["orange", "#ffa500"],
124
- ["orangered", "#ff4500"],
125
- ["orchid", "#da70d6"],
126
- ["palegoldenrod", "#eee8aa"],
127
- ["palegreen", "#98fb98"],
128
- ["paleturquoise", "#afeeee"],
129
- ["palevioletred", "#d87093"],
130
- ["papayawhip", "#ffefd5"],
131
- ["peachpuff", "#ffdab9"],
132
- ["peru", "#cd853f"],
133
- ["pink", "#ffc0cb"],
134
- ["plum", "#dda0dd"],
135
- ["powderblue", "#b0e0e6"],
136
- ["purple", "#800080"],
137
- ["rebeccapurple", "#663399"],
138
- ["red", "#ff0000"],
139
- ["rosybrown", "#bc8f8f"],
140
- ["royalblue", "#4169e1"],
141
- ["saddlebrown", "#8b4513"],
142
- ["salmon", "#fa8072"],
143
- ["sandybrown", "#f4a460"],
144
- ["seagreen", "#2e8b57"],
145
- ["seashell", "#fff5ee"],
146
- ["sienna", "#a0522d"],
147
- ["silver", "#c0c0c0"],
148
- ["skyblue", "#87ceeb"],
149
- ["slateblue", "#6a5acd"],
150
- ["slategray", "#708090"],
151
- ["snow", "#fffafa"],
152
- ["springgreen", "#00ff7f"],
153
- ["steelblue", "#4682b4"],
154
- ["tan", "#d2b48c"],
155
- ["teal", "#008080"],
156
- ["thistle", "#d8bfd8"],
157
- ["tomato", "#ff6347"],
158
- ["turquoise", "#40e0d0"],
159
- ["violet", "#ee82ee"],
160
- ["wheat", "#f5deb3"],
161
- ["white", "#ffffff"],
162
- ["whitesmoke", "#f5f5f5"],
163
- ["yellow", "#ffff00"],
164
- ["yellowgreen", "#9acd32"],
165
- ]);
166
- //# sourceMappingURL=HTMLcolors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HTMLcolors.js","sourceRoot":"","sources":["../../../../../../../../src/lib/configurator/components/color-picker/HTMLcolors.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAEJ,QAAA,WAAW,GAAwB,IAAI,GAAG,CAAC;IACpD,CAAC,WAAW,EAAE,SAAS,CAAC;IACxB,CAAC,cAAc,EAAE,SAAS,CAAC;IAC3B,CAAC,MAAM,EAAE,SAAS,CAAC;IACnB,CAAC,YAAY,EAAE,SAAS,CAAC;IACzB,CAAC,OAAO,EAAE,SAAS,CAAC;IACpB,CAAC,OAAO,EAAE,SAAS,CAAC;IACpB,CAAC,QAAQ,EAAE,SAAS,CAAC;IACrB,CAAC,OAAO,EAAE,SAAS,CAAC;IACpB,CAAC,gBAAgB,EAAE,SAAS,CAAC;IAC7B,CAAC,MAAM,EAAE,SAAS,CAAC;IACnB,CAAC,YAAY,EAAE,SAAS,CAAC;IACzB,CAAC,OAAO,EAAE,SAAS,CAAC;IACpB,CAAC,WAAW,EAAE,SAAS,CAAC;IACxB,CAAC,WAAW,EAAE,SAAS,CAAC;IACxB,CAAC,YAAY,EAAE,SAAS,CAAC;IACzB,CAAC,WAAW,EAAE,SAAS,CAAC;IACxB,CAAC,OAAO,EAAE,SAAS,CAAC;IACpB,CAAC,gBAAgB,EAAE,SAAS,CAAC;IAC7B,CAAC,UAAU,EAAE,SAAS,CAAC;IACvB,CAAC,SAAS,EAAE,SAAS,CAAC;IACtB,CAAC,MAAM,EAAE,SAAS,CAAC;IACnB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AE,SAAS,CAAC;IACvB,CAAC,QAAQ,EAAE,SAAS,CAAC;IACrB,CAAC,QAAQ,EAAE,SAAS,CAAC;IACrB,CAAC,SAAS,EAAE,SAAS,CAAC;IACtB,CAAC,WAAW,EAAE,SAAS,CAAC;IACxB,CAAC,WAAW,EAAE,SAAS,CAAC;IACxB,CAAC,MAAM,EAAE,SAAS,CAAC;IACnB,CAAC,aAAa,EAAE,SAAS,CAAC;IAC1B,CAAC,WAAW,EAAE,SAAS,CAAC;IACxB,CAAC,KAAK,EAAE,SAAS,CAAC;IAClB,CAAC,MAAM,EAAE,SAAS,CAAC;IACnB,CAAC,SAAS,EAAE,SAAS,CAAC;IACtB,CAAC,QAAQ,EAAE,SAAS,CAAC;IACrB,CAAC,WAAW,EAAE,SAAS,CAAC;IACxB,CAAC,QAAQ,EAAE,SAAS,CAAC;IACrB,CAAC,OAAO,EAAE,SAAS,CAAC;IACpB,CAAC,OAAO,EAAE,SAAS,CAAC;IACpB,CAAC,YAAY,EAAE,SAAS,CAAC;IACzB,CAAC,QAAQ,EAAE,SAAS,CAAC;IACrB,CAAC,aAAa,EAAE,SAAS,CAAC;CAC7B,CAAC,CAAC"}
@@ -1,39 +0,0 @@
1
- import { Overlay, OverlayConfig } from "@angular/cdk/overlay";
2
- import { AfterViewInit, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from "@angular/core";
3
- import { ControlValueAccessor } from "@angular/forms";
4
- import { IOptionValueObject, NuiFormFieldControl, OverlayUtilitiesService, SelectV2Component } from "@nova-ui/bits";
5
- import { ColorService } from "./color.service";
6
- import { IPaletteColor } from "../../../types";
7
- export declare class ColorPickerComponent implements NuiFormFieldControl, ControlValueAccessor, OnChanges, AfterViewInit, OnDestroy {
8
- protected changeDetection: ChangeDetectorRef;
9
- private colorService;
10
- private cdkOverlay;
11
- colors: string[];
12
- colorPalette: IPaletteColor[];
13
- cols: number | undefined;
14
- select: SelectV2Component;
15
- overlayConfig: OverlayConfig;
16
- value: string | IOptionValueObject;
17
- defaultColor: string;
18
- maxWidth: string;
19
- palette: Partial<IPaletteColor[]>;
20
- isBlackTick: boolean;
21
- isInErrorState: boolean;
22
- ariaLabel?: string | undefined;
23
- protected overlayUtilities: OverlayUtilitiesService;
24
- private selectResizeObserver;
25
- private destroy$;
26
- constructor(changeDetection: ChangeDetectorRef, colorService: ColorService, cdkOverlay: Overlay);
27
- ngOnChanges(changes: SimpleChanges): void;
28
- ngAfterViewInit(): void;
29
- ngOnDestroy(): void;
30
- onChange(value: any): void;
31
- _onTouched(): void;
32
- writeValue(value: string | IOptionValueObject): void;
33
- registerOnChange(fn: () => void): void;
34
- registerOnTouched(fn: () => void): void;
35
- setStyles: (color: string) => Record<string, any>;
36
- determineBlackTick(color: string): boolean;
37
- private initOverlayUtilities;
38
- private getContrastOnBgColor;
39
- }
@@ -1,185 +0,0 @@
1
- "use strict";
2
- // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to
6
- // deal in the Software without restriction, including without limitation the
7
- // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8
- // sell copies of the Software, and to permit persons to whom the Software is
9
- // furnished to do so, subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in
12
- // all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- // THE SOFTWARE.
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.ColorPickerComponent = void 0;
23
- const tslib_1 = require("tslib");
24
- const overlay_1 = require("@angular/cdk/overlay");
25
- const core_1 = require("@angular/core");
26
- const forms_1 = require("@angular/forms");
27
- const rxjs_1 = require("rxjs");
28
- const operators_1 = require("rxjs/operators");
29
- const bits_1 = require("@nova-ui/bits");
30
- const charts_1 = require("@nova-ui/charts");
31
- const color_service_1 = require("./color.service");
32
- // Left and right paddings of .color-picker-container element
33
- const CONTAINER_SIDE_PADDINGS_PX = 20;
34
- // Width of the .box element
35
- const BOX_WIDTH_PX = 30;
36
- let ColorPickerComponent = class ColorPickerComponent {
37
- constructor(changeDetection, colorService, cdkOverlay) {
38
- this.changeDetection = changeDetection;
39
- this.colorService = colorService;
40
- this.cdkOverlay = cdkOverlay;
41
- this.defaultColor = "var(--nui-color-bg-secondary)";
42
- this.overlayUtilities = new bits_1.OverlayUtilitiesService();
43
- this.destroy$ = new rxjs_1.Subject();
44
- this.setStyles = (color) => ({
45
- "background-color": color || this.defaultColor,
46
- });
47
- }
48
- ngOnChanges(changes) {
49
- if (changes.colors) {
50
- this.colors = changes.colors.currentValue;
51
- }
52
- if (changes.colorPalette) {
53
- this.colorPalette = changes.colorPalette.currentValue;
54
- }
55
- }
56
- ngAfterViewInit() {
57
- if (this.value) {
58
- this.select?.writeValue(this.value);
59
- this.isBlackTick = this.determineBlackTick(this.value.toString());
60
- }
61
- this.palette =
62
- this.colorPalette || this.colors.map((color) => ({ color }));
63
- this.initOverlayUtilities();
64
- this.select.valueSelected
65
- .pipe((0, operators_1.tap)((value) => this.writeValue(value)), (0, operators_1.tap)((value) => this.onChange(value)), (0, operators_1.takeUntil)(this.destroy$))
66
- .subscribe((value) => {
67
- if (value) {
68
- this.isBlackTick = this.determineBlackTick(value.toString());
69
- }
70
- });
71
- const positions = (0, bits_1.getOverlayPositions)();
72
- const positionStrategy = this.cdkOverlay
73
- .position()
74
- .flexibleConnectedTo(this.select.elRef.nativeElement)
75
- .withPush(false)
76
- .withViewportMargin(0)
77
- .withPositions([
78
- positions["bottom-right"],
79
- positions["bottom-left"],
80
- positions["top-right"],
81
- positions["top-left"],
82
- ]);
83
- this.overlayConfig = {
84
- maxWidth: this.cols
85
- ? this.cols * BOX_WIDTH_PX + CONTAINER_SIDE_PADDINGS_PX + "px"
86
- : "260px",
87
- positionStrategy,
88
- };
89
- }
90
- ngOnDestroy() {
91
- this.destroy$.next();
92
- this.destroy$.complete();
93
- }
94
- onChange(value) { }
95
- _onTouched() { }
96
- writeValue(value) {
97
- this.value = value;
98
- this.select?.writeValue(value);
99
- }
100
- registerOnChange(fn) {
101
- this.onChange = fn;
102
- }
103
- registerOnTouched(fn) {
104
- this._onTouched = fn;
105
- }
106
- determineBlackTick(color) {
107
- let hexColorValue = "#fff";
108
- if (this.colorService.isHEX(color)) {
109
- hexColorValue = color;
110
- }
111
- else {
112
- hexColorValue =
113
- (0, charts_1.getColorValueByName)(color) ||
114
- this.colorService.RGBToHexRGBToHex(color) ||
115
- this.colorService.colorKeywordsToHex(color);
116
- }
117
- return this.getContrastOnBgColor(hexColorValue) === "#fff";
118
- }
119
- initOverlayUtilities() {
120
- const dropdown = this.select.dropdown;
121
- const config = { updateSize: false };
122
- this.selectResizeObserver = this.overlayUtilities
123
- .setPopupComponent(this.select.dropdown)
124
- .getResizeObserver(config);
125
- dropdown.show$.pipe((0, operators_1.takeUntil)(this.destroy$)).subscribe(() => {
126
- this.overlayUtilities.syncWidth();
127
- this.selectResizeObserver.observe(this.select.elRef.nativeElement);
128
- });
129
- dropdown.hide$.pipe((0, operators_1.takeUntil)(this.destroy$)).subscribe(() => {
130
- this.selectResizeObserver.unobserve(this.select.elRef.nativeElement);
131
- });
132
- }
133
- // convert hex code to rgb and compare the contrast of pure black and pure white on bgColor
134
- getContrastOnBgColor(bgColor) {
135
- if (!bgColor) {
136
- return "";
137
- }
138
- return parseInt(bgColor.replace("#", ""), 16) > 0xffffff / 2
139
- ? "#fff"
140
- : "#000";
141
- }
142
- };
143
- exports.ColorPickerComponent = ColorPickerComponent;
144
- tslib_1.__decorate([
145
- (0, core_1.Input)(),
146
- tslib_1.__metadata("design:type", Array)
147
- ], ColorPickerComponent.prototype, "colors", void 0);
148
- tslib_1.__decorate([
149
- (0, core_1.Input)(),
150
- tslib_1.__metadata("design:type", Array)
151
- ], ColorPickerComponent.prototype, "colorPalette", void 0);
152
- tslib_1.__decorate([
153
- (0, core_1.Input)(),
154
- tslib_1.__metadata("design:type", Object)
155
- ], ColorPickerComponent.prototype, "cols", void 0);
156
- tslib_1.__decorate([
157
- (0, core_1.ViewChild)((0, core_1.forwardRef)(() => bits_1.SelectV2Component)),
158
- tslib_1.__metadata("design:type", bits_1.SelectV2Component)
159
- ], ColorPickerComponent.prototype, "select", void 0);
160
- exports.ColorPickerComponent = ColorPickerComponent = tslib_1.__decorate([
161
- (0, core_1.Component)({
162
- selector: "nui-color-picker",
163
- templateUrl: "./color-picker.component.html",
164
- styleUrls: ["./color-picker.component.less"],
165
- changeDetection: core_1.ChangeDetectionStrategy.OnPush,
166
- providers: [
167
- {
168
- provide: bits_1.NuiFormFieldControl,
169
- useExisting: (0, core_1.forwardRef)(() => ColorPickerComponent),
170
- multi: true,
171
- },
172
- {
173
- provide: forms_1.NG_VALUE_ACCESSOR,
174
- useExisting: (0, core_1.forwardRef)(() => ColorPickerComponent),
175
- multi: true,
176
- },
177
- color_service_1.ColorService,
178
- ],
179
- standalone: false,
180
- }),
181
- tslib_1.__metadata("design:paramtypes", [core_1.ChangeDetectorRef,
182
- color_service_1.ColorService,
183
- overlay_1.Overlay])
184
- ], ColorPickerComponent);
185
- //# sourceMappingURL=color-picker.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color-picker.component.js","sourceRoot":"","sources":["../../../../../../../../src/lib/configurator/components/color-picker/color-picker.component.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AA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E;;0DAA+B;AAC9B;IAAR,IAAA,YAAK,GAAE;;kDAA0B;AAG3B;IADN,IAAA,gBAAS,EAAC,IAAA,iBAAU,EAAC,GAAG,EAAE,CAAC,wBAAiB,CAAC,CAAC;sCAChC,wBAAiB;oDAAC;+BAbxB,oBAAoB;IApBhC,IAAA,gBAAS,EAAC;QACP,QAAQ,EAAE,kBAAkB;QAC5B,WAAW,EAAE,+BAA+B;QAC5C,SAAS,EAAE,CAAC,+BAA+B,CAAC;QAC5C,eAAe,EAAE,8BAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,0BAAmB;gBAC5B,WAAW,EAAE,IAAA,iBAAU,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;gBACnD,KAAK,EAAE,IAAI;aACd;YACD;gBACI,OAAO,EAAE,yBAAiB;gBAC1B,WAAW,EAAE,IAAA,iBAAU,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;gBACnD,KAAK,EAAE,IAAI;aACd;YACD,4BAAY;SACf;QACD,UAAU,EAAE,KAAK;KACpB,CAAC;6CAgCiC,wBAAiB;QACtB,4BAAY;QACd,iBAAO;GAjCtB,oBAAoB,CAmKhC"}
@@ -1,5 +0,0 @@
1
- export declare class ColorService {
2
- RGBToHexRGBToHex(rgbColor: string): string;
3
- isHEX(hexColor: string): boolean;
4
- colorKeywordsToHex(color: string): string;
5
- }
@@ -1,58 +0,0 @@
1
- "use strict";
2
- // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to
6
- // deal in the Software without restriction, including without limitation the
7
- // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8
- // sell copies of the Software, and to permit persons to whom the Software is
9
- // furnished to do so, subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in
12
- // all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- // THE SOFTWARE.
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.ColorService = void 0;
23
- const tslib_1 = require("tslib");
24
- const core_1 = require("@angular/core");
25
- const isNil_1 = tslib_1.__importDefault(require("lodash/isNil"));
26
- const HTMLcolors_1 = require("./HTMLcolors");
27
- let ColorService = class ColorService {
28
- RGBToHexRGBToHex(rgbColor) {
29
- // Choose correct separator
30
- const sep = rgbColor.indexOf(",") > -1 ? "," : " ";
31
- // Turn "rgb(r,g,b)" into [r,g,b]
32
- const rgbParts = rgbColor.substr(4).split(")")[0].split(sep);
33
- let r = (+rgbParts[0]).toString(16), g = (+rgbParts[1]).toString(16), b = (+rgbParts[2]).toString(16);
34
- if (r.length === 1) {
35
- r = "0" + r;
36
- }
37
- if (g.length === 1) {
38
- g = "0" + g;
39
- }
40
- if (b.length === 1) {
41
- b = "0" + b;
42
- }
43
- return "#" + r + g + b;
44
- }
45
- isHEX(hexColor) {
46
- return (/^#[0-9A-F]{6}$/i.test(hexColor) ||
47
- /^#([0-9A-F]{3}){1,2}$/i.test(hexColor));
48
- }
49
- colorKeywordsToHex(color) {
50
- const hexOfColor = HTMLcolors_1.HTML_COLORS.get(color);
51
- return !(0, isNil_1.default)(hexOfColor) ? hexOfColor : "";
52
- }
53
- };
54
- exports.ColorService = ColorService;
55
- exports.ColorService = ColorService = tslib_1.__decorate([
56
- (0, core_1.Injectable)()
57
- ], ColorService);
58
- //# sourceMappingURL=color.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color.service.js","sourceRoot":"","sources":["../../../../../../../../src/lib/configurator/components/color-picker/color.service.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,wCAA2C;AAC3C,iEAAiC;AAEjC,6CAA2C;AAGpC,IAAM,YAAY,GAAlB,MAAM,YAAY;IACd,gBAAgB,CAAC,QAAgB;QACpC,2BAA2B;QAC3B,MAAM,GAAG,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;QACnD,iCAAiC;QACjC,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAE7D,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,EAC/B,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,EAC/B,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAEpC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACjB,CAAC,GAAG,GAAG,GAAG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