@watermarkinsights/ripple 5.0.0 → 5.1.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.
- package/dist/cjs/{app-globals-d6c37251.js → app-globals-aad9863d.js} +2 -2
- package/dist/cjs/{chartFunctions-b32ecbeb.js → chartFunctions-e86ed63c.js} +8 -4
- package/dist/cjs/{index-0f1bacce.js → index-4853a7b4.js} +537 -494
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/priv-chart-popover.cjs.entry.js +1 -1
- package/dist/cjs/priv-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/priv-navigator-button.cjs.entry.js +1 -1
- package/dist/cjs/priv-navigator-item.cjs.entry.js +1 -1
- package/dist/cjs/ripple.cjs.js +3 -3
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/wm-button.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart.cjs.entry.js +2 -2
- package/dist/cjs/wm-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
- package/dist/cjs/wm-file.cjs.entry.js +1 -1
- package/dist/cjs/wm-input.cjs.entry.js +1 -1
- package/dist/cjs/wm-line-chart.cjs.entry.js +2 -2
- package/dist/cjs/wm-modal-footer.cjs.entry.js +1 -1
- package/dist/cjs/wm-modal-header.cjs.entry.js +1 -1
- package/dist/cjs/wm-modal.cjs.entry.js +1 -1
- package/dist/cjs/wm-navigation_3.cjs.entry.js +1 -1
- package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
- package/dist/cjs/wm-option_2.cjs.entry.js +1 -1
- package/dist/cjs/wm-pagination.cjs.entry.js +1 -1
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/wm-search.cjs.entry.js +1 -1
- package/dist/cjs/wm-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +1 -1
- package/dist/cjs/wm-tag-input.cjs.entry.js +1 -1
- package/dist/cjs/wm-tag-option.cjs.entry.js +1 -1
- package/dist/cjs/wm-textarea.cjs.entry.js +1 -1
- package/dist/cjs/wm-timepicker.cjs.entry.js +1 -1
- package/dist/cjs/wm-toggletip.cjs.entry.js +1 -1
- package/dist/cjs/wm-uploader.cjs.entry.js +1 -1
- package/dist/cjs/wm-wrapper.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/charts/chartFunctions.js +7 -3
- package/dist/esm/{app-globals-2df700e6.js → app-globals-4e667854.js} +2 -2
- package/dist/esm/{chartFunctions-e43ec877.js → chartFunctions-8098e455.js} +8 -4
- package/dist/esm/{index-5815b978.js → index-7923308f.js} +537 -494
- package/dist/esm/loader.js +3 -3
- package/dist/esm/priv-chart-popover.entry.js +1 -1
- package/dist/esm/priv-datepicker.entry.js +1 -1
- package/dist/esm/priv-navigator-button.entry.js +1 -1
- package/dist/esm/priv-navigator-item.entry.js +1 -1
- package/dist/esm/ripple.js +4 -4
- package/dist/esm/wm-action-menu_2.entry.js +1 -1
- package/dist/esm/wm-button.entry.js +1 -1
- package/dist/esm/wm-chart-slice.entry.js +1 -1
- package/dist/esm/wm-chart.entry.js +2 -2
- package/dist/esm/wm-datepicker.entry.js +1 -1
- package/dist/esm/wm-file-list.entry.js +1 -1
- package/dist/esm/wm-file.entry.js +1 -1
- package/dist/esm/wm-input.entry.js +1 -1
- package/dist/esm/wm-line-chart.entry.js +2 -2
- package/dist/esm/wm-modal-footer.entry.js +1 -1
- package/dist/esm/wm-modal-header.entry.js +1 -1
- package/dist/esm/wm-modal.entry.js +1 -1
- package/dist/esm/wm-navigation_3.entry.js +1 -1
- package/dist/esm/wm-navigator.entry.js +1 -1
- package/dist/esm/wm-option_2.entry.js +1 -1
- package/dist/esm/wm-pagination.entry.js +1 -1
- package/dist/esm/wm-progress-indicator_3.entry.js +2 -2
- package/dist/esm/wm-search.entry.js +1 -1
- package/dist/esm/wm-snackbar.entry.js +1 -1
- package/dist/esm/wm-tab-item_3.entry.js +1 -1
- package/dist/esm/wm-tag-input.entry.js +1 -1
- package/dist/esm/wm-tag-option.entry.js +1 -1
- package/dist/esm/wm-textarea.entry.js +1 -1
- package/dist/esm/wm-timepicker.entry.js +1 -1
- package/dist/esm/wm-toggletip.entry.js +1 -1
- package/dist/esm/wm-uploader.entry.js +1 -1
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/{app-globals-2df700e6.js → app-globals-4e667854.js} +1 -1
- package/dist/esm-es5/chartFunctions-8098e455.js +1 -0
- package/dist/esm-es5/index-7923308f.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
- package/dist/esm-es5/priv-datepicker.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart-slice.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-file-list.entry.js +1 -1
- package/dist/esm-es5/wm-file.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-footer.entry.js +1 -1
- package/dist/esm-es5/wm-modal-header.entry.js +1 -1
- package/dist/esm-es5/wm-modal.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-tag-option.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/esm-es5/wm-wrapper.entry.js +1 -1
- package/dist/loader/index.d.ts +3 -0
- package/dist/ripple/{p-df4ab5de.system.entry.js → p-00f8637e.system.entry.js} +1 -1
- package/dist/ripple/{p-0a05e6d7.system.entry.js → p-06c018cf.system.entry.js} +1 -1
- package/dist/ripple/{p-411f0d1d.entry.js → p-0707b4c2.entry.js} +1 -1
- package/dist/ripple/{p-e14c3721.entry.js → p-0bb464b1.entry.js} +1 -1
- package/dist/ripple/{p-6f47d86c.system.entry.js → p-0d0e0a1e.system.entry.js} +1 -1
- package/dist/ripple/{p-9b894527.entry.js → p-0e7025db.entry.js} +1 -1
- package/dist/ripple/{p-d65e9846.entry.js → p-0ec1e075.entry.js} +1 -1
- package/dist/ripple/{p-9a977fbd.entry.js → p-0f72ed3a.entry.js} +1 -1
- package/dist/ripple/{p-b5729148.system.entry.js → p-186a4d76.system.entry.js} +1 -1
- package/dist/ripple/{p-9433f29c.entry.js → p-18c1593b.entry.js} +1 -1
- package/dist/ripple/{p-194c06e1.entry.js → p-19f29a48.entry.js} +1 -1
- package/dist/ripple/{p-85e59e6a.system.entry.js → p-1ee68e06.system.entry.js} +1 -1
- package/dist/ripple/{p-46584e7e.system.entry.js → p-1fcc8007.system.entry.js} +1 -1
- package/dist/ripple/{p-87eb2f99.system.entry.js → p-28119849.system.entry.js} +1 -1
- package/dist/ripple/{p-0c218ac2.system.entry.js → p-2849847d.system.entry.js} +1 -1
- package/dist/ripple/{p-70c459b2.entry.js → p-2f39732e.entry.js} +1 -1
- package/dist/ripple/{p-ac727a0a.system.entry.js → p-30ee0f5c.system.entry.js} +1 -1
- package/dist/ripple/{p-44f2e1a7.entry.js → p-340f96b5.entry.js} +1 -1
- package/dist/ripple/{p-74565577.system.entry.js → p-3639dbbc.system.entry.js} +1 -1
- package/dist/ripple/{p-1b8584f9.entry.js → p-3e605541.entry.js} +1 -1
- package/dist/ripple/{p-440571f7.system.entry.js → p-439d839b.system.entry.js} +1 -1
- package/dist/ripple/{p-e80009db.entry.js → p-445d6915.entry.js} +1 -1
- package/dist/ripple/{p-1435a717.entry.js → p-48ed56a0.entry.js} +1 -1
- package/dist/ripple/{p-4a8016fb.entry.js → p-49f94f8a.entry.js} +1 -1
- package/dist/ripple/{p-764cee74.system.js → p-4ba32e58.system.js} +1 -1
- package/dist/ripple/{p-0bf7cdda.system.entry.js → p-510fab1c.system.entry.js} +1 -1
- package/dist/ripple/p-539b7be9.system.js +2 -0
- package/dist/ripple/{p-7ffb6f07.entry.js → p-57694990.entry.js} +1 -1
- package/dist/ripple/{p-e9d29b5b.system.entry.js → p-58a286e8.system.entry.js} +1 -1
- package/dist/ripple/{p-ef0854e6.entry.js → p-5ff41948.entry.js} +1 -1
- package/dist/ripple/{p-76740c92.entry.js → p-636ca7f2.entry.js} +1 -1
- package/dist/ripple/{p-0bef5c1b.system.entry.js → p-66a57d81.system.entry.js} +1 -1
- package/dist/ripple/p-681c1853.js +1 -0
- package/dist/ripple/{p-7d2bd039.entry.js → p-6b71806b.entry.js} +1 -1
- package/dist/ripple/{p-5c4245d9.system.entry.js → p-7afa2fdc.system.entry.js} +1 -1
- package/dist/ripple/{p-ce492826.js → p-7c12ac23.js} +1 -1
- package/dist/ripple/{p-5297476b.entry.js → p-7cb98aa5.entry.js} +1 -1
- package/dist/ripple/{p-87c85aac.system.entry.js → p-7dbc4abc.system.entry.js} +1 -1
- package/dist/ripple/{p-6f61a5f1.entry.js → p-8c7b9bad.entry.js} +1 -1
- package/dist/ripple/p-94a54d68.system.js +1 -0
- package/dist/ripple/{p-b878d9c7.entry.js → p-950edf62.entry.js} +1 -1
- package/dist/ripple/{p-6a231093.system.entry.js → p-96f3d9e7.system.entry.js} +1 -1
- package/dist/ripple/{p-47441a2a.system.entry.js → p-9bda128e.system.entry.js} +1 -1
- package/dist/ripple/{p-eab22c94.entry.js → p-9ca027b7.entry.js} +1 -1
- package/dist/ripple/{p-6372934d.entry.js → p-9d4ea9f8.entry.js} +1 -1
- package/dist/ripple/{p-49632308.system.entry.js → p-9d8817a7.system.entry.js} +1 -1
- package/dist/ripple/{p-9936c43c.system.entry.js → p-a0098136.system.entry.js} +1 -1
- package/dist/ripple/p-a431d6e5.js +2 -0
- package/dist/ripple/{p-7ade6e66.system.entry.js → p-a6119885.system.entry.js} +1 -1
- package/dist/ripple/{p-25cf3ccb.entry.js → p-a77f2168.entry.js} +1 -1
- package/dist/ripple/{p-3cc9b812.entry.js → p-adfaeeea.entry.js} +1 -1
- package/dist/ripple/{p-66960670.system.entry.js → p-b02c0c41.system.entry.js} +1 -1
- package/dist/ripple/{p-1166513e.system.entry.js → p-bbb8c02f.system.entry.js} +1 -1
- package/dist/ripple/{p-3b9a9d73.entry.js → p-bd7e892d.entry.js} +1 -1
- package/dist/ripple/{p-441354a5.system.entry.js → p-c9552e88.system.entry.js} +1 -1
- package/dist/ripple/{p-018498a7.system.entry.js → p-cd0a862f.system.entry.js} +1 -1
- package/dist/ripple/{p-25e011a6.entry.js → p-d344e490.entry.js} +1 -1
- package/dist/ripple/{p-dabff389.system.entry.js → p-d87e105b.system.entry.js} +1 -1
- package/dist/ripple/{p-44d8f4b2.system.entry.js → p-e0ff556b.system.entry.js} +1 -1
- package/dist/ripple/{p-8edd4ce6.system.entry.js → p-e19e1ece.system.entry.js} +1 -1
- package/dist/ripple/{p-c53f1dcb.entry.js → p-e3d8f2f6.entry.js} +1 -1
- package/dist/ripple/{p-116477b7.entry.js → p-e8eef357.entry.js} +1 -1
- package/dist/ripple/{p-e0ca71d3.entry.js → p-eb596891.entry.js} +1 -1
- package/dist/ripple/{p-35627044.system.entry.js → p-ec384895.system.entry.js} +1 -1
- package/dist/ripple/{p-5356db9b.entry.js → p-eccb5aaf.entry.js} +1 -1
- package/dist/ripple/{p-567c5edd.system.entry.js → p-edcb8f48.system.entry.js} +1 -1
- package/dist/ripple/{p-d8f1fd76.entry.js → p-f963be6d.entry.js} +1 -1
- package/dist/ripple/{p-838d75c2.system.js → p-fde81b94.system.js} +1 -1
- package/dist/ripple/{p-d37a720b.system.entry.js → p-ff7dac66.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -2
- package/package.json +2 -2
- package/dist/collection/components/charts/chartFunctions.spec.js +0 -16
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.e2e.js +0 -81
- package/dist/collection/components/charts/screenshots.e2e.js +0 -96
- package/dist/collection/components/charts/wm-chart/wm-chart.e2e.js +0 -213
- package/dist/collection/components/charts/wm-chart/wm-chart.spec.js +0 -37
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.e2e.js +0 -176
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.spec.js +0 -163
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.e2e.js +0 -69
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.spec.js +0 -79
- package/dist/collection/components/wm-action-menu/wm-action-menu.e2e.js +0 -200
- package/dist/collection/components/wm-action-menu/wm-action-menu.spec.js +0 -48
- package/dist/collection/components/wm-button/wm-button.e2e.js +0 -55
- package/dist/collection/components/wm-button/wm-button.spec.js +0 -74
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.spec.js +0 -76
- package/dist/collection/components/wm-datepicker/wm-datepicker.e2e.js +0 -382
- package/dist/collection/components/wm-datepicker/wm-datepicker.spec.js +0 -21
- package/dist/collection/components/wm-file/wm-file.spec.js +0 -194
- package/dist/collection/components/wm-file-list/wm-file-list.spec.js +0 -69
- package/dist/collection/components/wm-input/wm-input.e2e.js +0 -32
- package/dist/collection/components/wm-input/wm-input.spec.js +0 -173
- package/dist/collection/components/wm-menuitem/wm-menuitem.e2e.js +0 -23
- package/dist/collection/components/wm-menuitem/wm-menuitem.spec.js +0 -54
- package/dist/collection/components/wm-modal/wm-modal-footer.spec.js +0 -11
- package/dist/collection/components/wm-modal/wm-modal-header.spec.js +0 -8
- package/dist/collection/components/wm-modal/wm-modal.e2e.js +0 -104
- package/dist/collection/components/wm-modal/wm-modal.spec.js +0 -30
- package/dist/collection/components/wm-navigation/wm-navigation.e2e.js +0 -102
- package/dist/collection/components/wm-navigation/wm-navigation.spec.js +0 -91
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.e2e.js +0 -50
- package/dist/collection/components/wm-navigator/wm-navigator.e2e.js +0 -209
- package/dist/collection/components/wm-navigator/wm-navigator.spec.js +0 -177
- package/dist/collection/components/wm-option/wm-option.e2e.js +0 -22
- package/dist/collection/components/wm-option/wm-option.spec.js +0 -63
- package/dist/collection/components/wm-pagination/wm-pagination.e2e.js +0 -312
- package/dist/collection/components/wm-search/wm-search.e2e.js +0 -76
- package/dist/collection/components/wm-search/wm-search.spec.js +0 -71
- package/dist/collection/components/wm-select/wm-select.e2e.js +0 -521
- package/dist/collection/components/wm-select/wm-select.spec.js +0 -271
- package/dist/collection/components/wm-snackbar/wm-snackbar.e2e.js +0 -112
- package/dist/collection/components/wm-snackbar/wm-snackbar.spec.js +0 -9
- package/dist/collection/components/wm-tabs/wm-tabs.e2e.js +0 -91
- package/dist/collection/components/wm-tabs/wm-tabs.spec.js +0 -12
- package/dist/collection/components/wm-tag-input/wm-tag-input.e2e.js +0 -204
- package/dist/collection/components/wm-tag-input/wm-tag-input.spec.js +0 -195
- package/dist/collection/components/wm-textarea/wm-textarea.e2e.js +0 -41
- package/dist/collection/components/wm-textarea/wm-textarea.spec.js +0 -79
- package/dist/collection/components/wm-timepicker/wm-timepicker.e2e.js +0 -163
- package/dist/collection/components/wm-timepicker/wm-timepicker.spec.js +0 -147
- package/dist/collection/components/wm-toggletip/wm-toggletip.e2e.js +0 -69
- package/dist/collection/components/wm-toggletip/wm-toggletip.spec.js +0 -21
- package/dist/collection/components/wm-uploader/wm-uploader.e2e.js +0 -70
- package/dist/collection/components/wm-uploader/wm-uploader.spec.js +0 -234
- package/dist/collection/global/functions.spec.js +0 -126
- package/dist/collection/lang/lang.spec.js +0 -20
- package/dist/esm-es5/chartFunctions-e43ec877.js +0 -1
- package/dist/esm-es5/index-5815b978.js +0 -1
- package/dist/ripple/p-1eb84629.system.js +0 -2
- package/dist/ripple/p-7bf00a52.js +0 -2
- package/dist/ripple/p-9bf31e42.js +0 -1
- package/dist/ripple/p-aa41cf09.system.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-4853a7b4.js');
|
|
4
4
|
const functions = require('./functions-698530be.js');
|
|
5
5
|
|
|
6
6
|
const colors = {
|
|
@@ -321,6 +321,11 @@ async function getDetails(chartType) {
|
|
|
321
321
|
let acc = 0;
|
|
322
322
|
const children = Array.from(this.el.children);
|
|
323
323
|
this.total = children.reduce((total, slice) => (total += parseInt(slice.getAttribute("amount") || "0")), 0);
|
|
324
|
+
let chartColors = allChartsDetails[chartType].colors;
|
|
325
|
+
// Set colors when bar3 has only 2 slices
|
|
326
|
+
if (chartType === "bar3" && children.length === 2) {
|
|
327
|
+
chartColors = [chartColors[1], chartColors[3]];
|
|
328
|
+
}
|
|
324
329
|
children.forEach((c, i) => {
|
|
325
330
|
const amount = parseInt(c.getAttribute("amount") || "0");
|
|
326
331
|
const perc = amountToPercent(amount, this.total, true);
|
|
@@ -333,12 +338,11 @@ async function getDetails(chartType) {
|
|
|
333
338
|
if (chartType === "bar6") {
|
|
334
339
|
colorIndex = 0;
|
|
335
340
|
}
|
|
336
|
-
const color = allChartsDetails[chartType].colors[colorIndex];
|
|
337
341
|
const sliceDetails = {
|
|
338
342
|
amount: amount,
|
|
339
343
|
perc: perc,
|
|
340
344
|
legend: c.getAttribute("legend"),
|
|
341
|
-
color:
|
|
345
|
+
color: chartColors[colorIndex] || colors.gray,
|
|
342
346
|
offset: acc,
|
|
343
347
|
id: `${this.uid}-${i + 1}`,
|
|
344
348
|
title: c.getAttribute("popover-title"),
|
|
@@ -539,7 +543,7 @@ function renderStackedBar(chartType) {
|
|
|
539
543
|
}
|
|
540
544
|
return (index.h("div", { class: "chart-wrapper bar-wrapper" },
|
|
541
545
|
isHybridBar ? (index.h("div", { class: "single-perc" }, amountToPercent(this.slicesDetails[0].amount, this.total, true) + "%")) : (""),
|
|
542
|
-
this.
|
|
546
|
+
this.drawAxis(),
|
|
543
547
|
index.h("div", { class: `inner-stacked-bar-wrapper ${showValue(this.valueFormat)}` },
|
|
544
548
|
!isHybridBar ? (index.h("div", { class: "values" }, this.slicesDetails.map((s) => this.renderBarText(s, 5)))) : (""),
|
|
545
549
|
index.h("div", { class: "stacked-bar-segments-wrapper" }, this.slicesDetails.map((s) => renderStackedBarSegment.call(this, s, 5))),
|