@watermarkinsights/ripple 5.11.0-2 → 5.11.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.
- package/dist/cjs/{app-globals-86975eea.js → app-globals-9ac264d7.js} +1 -1
- package/dist/cjs/{chartFunctions-a3a08880.js → chartFunctions-7314b414.js} +9 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ripple.cjs.js +1 -1
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart.cjs.entry.js +1 -1
- package/dist/cjs/wm-line-chart.cjs.entry.js +1 -1
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +3 -3
- package/dist/cjs/wm-tag-input.cjs.entry.js +1 -1
- package/dist/collection/components/charts/chartFunctions.js +9 -6
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +1 -1
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +2 -2
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +5 -5
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +6 -5
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +28 -19
- package/dist/esm/{app-globals-9eb5f635.js → app-globals-e7c0199c.js} +1 -1
- package/dist/esm/{chartFunctions-21d5a3d3.js → chartFunctions-c273c613.js} +9 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ripple.js +1 -1
- package/dist/esm/wm-action-menu_2.entry.js +2 -2
- package/dist/esm/wm-chart.entry.js +1 -1
- package/dist/esm/wm-line-chart.entry.js +1 -1
- package/dist/esm/wm-progress-indicator_3.entry.js +3 -3
- package/dist/esm/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/{app-globals-9eb5f635.js → app-globals-e7c0199c.js} +1 -1
- package/dist/esm-es5/chartFunctions-c273c613.js +1 -0
- package/dist/esm-es5/loader.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-chart.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/ripple/{p-79b5df24.entry.js → p-11c9fc2e.entry.js} +1 -1
- package/dist/ripple/{p-f9222794.system.entry.js → p-43055c83.system.entry.js} +1 -1
- package/dist/ripple/{p-1eb7a1a7.system.js → p-4b413899.system.js} +1 -1
- package/dist/ripple/p-4c1efa04.system.js +1 -0
- package/dist/ripple/{p-6a936730.js → p-564893b0.js} +1 -1
- package/dist/ripple/{p-9c366b37.system.entry.js → p-7ed7b66f.system.entry.js} +1 -1
- package/dist/ripple/{p-1c9e0cae.system.entry.js → p-831d25cb.system.entry.js} +1 -1
- package/dist/ripple/{p-cbfa468a.system.entry.js → p-88973d98.system.entry.js} +1 -1
- package/dist/ripple/{p-a45891a2.system.js → p-8a6c4a3b.system.js} +1 -1
- package/dist/ripple/p-96505312.js +1 -0
- package/dist/ripple/{p-839ce827.entry.js → p-ac0655a0.entry.js} +1 -1
- package/dist/ripple/{p-2f07262e.entry.js → p-b8873f91.entry.js} +1 -1
- package/dist/ripple/{p-0335da82.entry.js → p-bad14b66.entry.js} +1 -1
- package/dist/ripple/{p-663b70f8.entry.js → p-c66335a0.entry.js} +1 -1
- package/dist/ripple/{p-e8023928.system.entry.js → p-d254efea.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/global/interfaces.d.ts +1 -0
- package/package.json +1 -1
- package/dist/esm-es5/chartFunctions-21d5a3d3.js +0 -1
- package/dist/ripple/p-37b044c7.system.js +0 -1
- package/dist/ripple/p-f41ab9ea.js +0 -1
|
@@ -262,15 +262,16 @@
|
|
|
262
262
|
--wmcolor-taginput-maxtags-border: var(--wmcolor-input-border);
|
|
263
263
|
--wmcolor-taginput-maxtags-text: var(--wmcolor-text);
|
|
264
264
|
--wmcolor-taginput-option-background-hover: var(--wmcolor-option-background-hover);
|
|
265
|
+
--wmcolor-taginput-option-background-focus: var(--wmcolor-option-background-focus);
|
|
265
266
|
--wmcolor-taginput-option-background: var(--wmcolor-option-background);
|
|
266
267
|
--wmcolor-taginput-option-border: var(--wmcolor-option-border);
|
|
267
268
|
--wmcolor-taginput-option-text-selected: var(--wmcolor-option-text-disabled);
|
|
268
269
|
--wmcolor-taginput-option-text: var(--wmcolor-interactive);
|
|
269
270
|
--wmcolor-taginput-row-background-hover: var(--wmcolor-interactive-background-hover);
|
|
271
|
+
--wmcolor-taginput-row-background-focus: var(--wmcolor-interactive-background-focus);
|
|
270
272
|
--wmcolor-taginput-row-background-selected: var(--wmcolor-table-row-background-selected);
|
|
271
273
|
--wmcolor-taginput-row-background-table: var(--wmcolor-table-row-background);
|
|
272
274
|
--wmcolor-taginput-row-border-selected: var(--wmcolor-table-row-border-selected);
|
|
273
|
-
--wmcolor-taginput-tag-background-focus: var(--wmcolor-palelilacgray-dark); /* EXCEPTION */
|
|
274
275
|
--wmcolor-taginput-tag-background-highlight: var(--wmcolor-interactive-background-highlight);
|
|
275
276
|
--wmcolor-taginput-tag-background-locked: var(--wmcolor-interactive-disabled);
|
|
276
277
|
--wmcolor-taginput-tag-background: var(--wmcolor-palelilacgray); /* EXCEPTION */
|
|
@@ -438,7 +439,7 @@
|
|
|
438
439
|
padding: 0.5rem 1rem;
|
|
439
440
|
color: var(--wmcolor-taginput-maxtags-text);
|
|
440
441
|
font-size: 0.875rem;
|
|
441
|
-
border-
|
|
442
|
+
border-block-start: 1px solid var(--wmcolor-taginput-maxtags-border);
|
|
442
443
|
border-radius: 0 0 3px 3px;
|
|
443
444
|
}
|
|
444
445
|
:host .tag-area {
|
|
@@ -487,7 +488,7 @@
|
|
|
487
488
|
height: 1.25rem;
|
|
488
489
|
width: 1.25rem;
|
|
489
490
|
padding: 0;
|
|
490
|
-
margin-
|
|
491
|
+
margin-inline-start: 0.5rem;
|
|
491
492
|
}
|
|
492
493
|
:host .tag-area li .icon.remove-btn {
|
|
493
494
|
border: 1px solid var(--wmcolor-taginput-tagbutton-border);
|
|
@@ -533,7 +534,7 @@
|
|
|
533
534
|
height: 1.75rem;
|
|
534
535
|
padding: 0;
|
|
535
536
|
margin: 0;
|
|
536
|
-
|
|
537
|
+
inset-inline-end: 8px;
|
|
537
538
|
}
|
|
538
539
|
:host .input:focus {
|
|
539
540
|
outline: none;
|
|
@@ -564,8 +565,8 @@
|
|
|
564
565
|
-ms-border-radius: 3px;
|
|
565
566
|
border-radius: 3px;
|
|
566
567
|
position: absolute;
|
|
567
|
-
|
|
568
|
-
|
|
568
|
+
inset-block-start: calc(100% + 2px);
|
|
569
|
+
inset-inline-end: 0;
|
|
569
570
|
z-index: 100;
|
|
570
571
|
width: 100%;
|
|
571
572
|
font-size: 0.875rem;
|
|
@@ -584,8 +585,8 @@
|
|
|
584
585
|
transform: scale(1, 1);
|
|
585
586
|
}
|
|
586
587
|
:host .dropdown-wrapper.upwards {
|
|
587
|
-
|
|
588
|
-
|
|
588
|
+
inset-block-start: unset;
|
|
589
|
+
inset-block-end: calc(100% + 2px);
|
|
589
590
|
-ms-transform-origin: center bottom;
|
|
590
591
|
-webkit-transform-origin: center bottom;
|
|
591
592
|
-moz-transform-origin: center bottom;
|
|
@@ -619,34 +620,38 @@
|
|
|
619
620
|
font-weight: normal;
|
|
620
621
|
cursor: unset;
|
|
621
622
|
}
|
|
622
|
-
:host .dropdown-wrapper li.option:hover:not([aria-selected=true]), :host .dropdown-wrapper li.
|
|
623
|
+
:host .dropdown-wrapper li.option:hover:not([aria-selected=true]), :host .dropdown-wrapper li.add-new-btn:hover:not([aria-selected=true]),
|
|
623
624
|
:host .dropdown-wrapper div.option:hover:not([aria-selected=true]),
|
|
625
|
+
:host .dropdown-wrapper div.add-new-btn:hover:not([aria-selected=true]) {
|
|
626
|
+
outline: none;
|
|
627
|
+
background: var(--wmcolor-taginput-option-background-hover);
|
|
628
|
+
}
|
|
629
|
+
:host .dropdown-wrapper li.option.focused, :host .dropdown-wrapper li.add-new-btn.focused,
|
|
624
630
|
:host .dropdown-wrapper div.option.focused,
|
|
625
|
-
:host .dropdown-wrapper div.add-new-btn:hover:not([aria-selected=true]),
|
|
626
631
|
:host .dropdown-wrapper div.add-new-btn.focused {
|
|
627
632
|
outline: none;
|
|
628
|
-
background: var(--wmcolor-taginput-option-background-
|
|
633
|
+
background: var(--wmcolor-taginput-option-background-focus);
|
|
629
634
|
}
|
|
630
635
|
:host .dropdown-wrapper li.help-text,
|
|
631
636
|
:host .dropdown-wrapper div.help-text {
|
|
632
637
|
color: var(--wmcolor-taginput-help-text);
|
|
633
638
|
height: auto;
|
|
634
639
|
min-height: 2.6875rem;
|
|
635
|
-
padding-
|
|
636
|
-
padding-
|
|
640
|
+
padding-block-start: 0.25rem;
|
|
641
|
+
padding-block-end: 0.25rem;
|
|
637
642
|
white-space: normal;
|
|
638
643
|
}
|
|
639
644
|
:host .dropdown-wrapper li:not(:last-child),
|
|
640
645
|
:host .dropdown-wrapper div:not(:last-child) {
|
|
641
|
-
border-
|
|
646
|
+
border-block-end: 2px solid var(--wmcolor-taginput-option-border);
|
|
642
647
|
}
|
|
643
648
|
:host .info-text {
|
|
644
649
|
font-style: italic;
|
|
645
|
-
margin-
|
|
650
|
+
margin-block-start: 0.25rem;
|
|
646
651
|
}
|
|
647
652
|
:host .table-wrapper {
|
|
648
653
|
overflow: auto;
|
|
649
|
-
margin-
|
|
654
|
+
margin-block-start: 1.5rem;
|
|
650
655
|
}
|
|
651
656
|
:host .table-wrapper #table {
|
|
652
657
|
width: 100%;
|
|
@@ -660,7 +665,7 @@
|
|
|
660
665
|
background-color: var(--wmcolor-taginput-header-background-table);
|
|
661
666
|
}
|
|
662
667
|
:host .table-wrapper #table .headers th {
|
|
663
|
-
text-align:
|
|
668
|
+
text-align: start;
|
|
664
669
|
font-size: 0.75rem;
|
|
665
670
|
font-weight: 700;
|
|
666
671
|
text-transform: uppercase;
|
|
@@ -674,7 +679,11 @@
|
|
|
674
679
|
box-shadow: inset 0 0 0 1px var(--wmcolor-taginput-row-border-selected);
|
|
675
680
|
font-weight: 500;
|
|
676
681
|
}
|
|
677
|
-
:host .table-wrapper tr.focused
|
|
682
|
+
:host .table-wrapper tr.focused {
|
|
683
|
+
background-color: var(--wmcolor-taginput-row-background-focus);
|
|
684
|
+
box-shadow: none;
|
|
685
|
+
}
|
|
686
|
+
:host .table-wrapper tr:hover:not(.locked) {
|
|
678
687
|
background-color: var(--wmcolor-taginput-row-background-hover);
|
|
679
688
|
box-shadow: none;
|
|
680
689
|
}
|
|
@@ -690,7 +699,7 @@
|
|
|
690
699
|
-webkit-font-smoothing: antialiased;
|
|
691
700
|
-moz-osx-font-smoothing: grayscale;
|
|
692
701
|
content: "\f33e";
|
|
693
|
-
margin-
|
|
702
|
+
margin-inline-end: 0.5rem;
|
|
694
703
|
color: var(--wmcolor-taginput-tag-text);
|
|
695
704
|
}
|
|
696
705
|
:host .table-wrapper td {
|
|
@@ -343,6 +343,7 @@ async function getDetails(chartType) {
|
|
|
343
343
|
}
|
|
344
344
|
const sliceDetails = {
|
|
345
345
|
amount: amount,
|
|
346
|
+
visualAmount: amount,
|
|
346
347
|
perc: perc,
|
|
347
348
|
legend: c.getAttribute("legend"),
|
|
348
349
|
color: chartColors[colorIndex] || colors.gray,
|
|
@@ -453,10 +454,10 @@ function applyMinimumAngle(minimumAngle, slicesDetails, total) {
|
|
|
453
454
|
// apply new amounts based on adjust angles
|
|
454
455
|
let offsetAcc = 0;
|
|
455
456
|
slicesDetails = slicesDetails.map((s, idx) => {
|
|
456
|
-
const
|
|
457
|
+
const visualAmount = (adjustedAngles[idx] / 360) * total;
|
|
457
458
|
const newOffset = offsetAcc;
|
|
458
|
-
offsetAcc +=
|
|
459
|
-
return Object.assign(Object.assign({}, s), {
|
|
459
|
+
offsetAcc += visualAmount;
|
|
460
|
+
return Object.assign(Object.assign({}, s), { visualAmount: visualAmount, offset: newOffset });
|
|
460
461
|
});
|
|
461
462
|
}
|
|
462
463
|
return slicesDetails;
|
|
@@ -467,12 +468,14 @@ function renderDoughnut(chartType) {
|
|
|
467
468
|
// no sorting in progress indicators
|
|
468
469
|
let slicesDetails = isHybridDoughnut ? this.slicesDetails : sortSlicesDetails(this.slicesDetails, this.total);
|
|
469
470
|
slicesDetails = applyMinimumAngle(7, slicesDetails, this.total);
|
|
471
|
+
let perc = amountToPercent(slicesDetails[0].amount, this.total, true);
|
|
472
|
+
perc = perc === 0 ? "<1%" : perc + "%";
|
|
470
473
|
return (h("div", { class: "chart-wrapper doughnut-wrapper" },
|
|
471
474
|
h("svg", { width: outerSize + "px", height: outerSize + "px", id: `graphic-${this.uid}`, class: "doughnut-svg" },
|
|
472
475
|
renderFilter(),
|
|
473
476
|
slicesDetails.map((s) => renderPath.call(this, s, chartType)),
|
|
474
477
|
renderFocusOutline.call(this),
|
|
475
|
-
isHybridDoughnut ? (h("text", { class: "value", x: "50%", y: "50%", "font-size": "1.5rem", "font-weight": "500", "text-anchor": "middle", "dominant-baseline": "middle" },
|
|
478
|
+
isHybridDoughnut ? (h("text", { class: "value", x: "50%", y: "50%", "font-size": "1.5rem", "font-weight": "500", "text-anchor": "middle", "dominant-baseline": "middle" }, perc)) : (h("g", { transform: `translate(${this.chartDetails.padding / 2}, ${this.chartDetails.padding / 2})`, "text-anchor": "middle", "dominant-baseline": "middle" }, slicesDetails.map((s) => s.amount > 0 && !s.inSmallCluster ? renderDoughnutText.call(this, s) : ""))))));
|
|
476
479
|
}
|
|
477
480
|
function highlightSegmentInfo(infoEls, s) {
|
|
478
481
|
infoEls.forEach((el) => {
|
|
@@ -492,7 +495,7 @@ function removeSegmentInfoHighlight(infoEls) {
|
|
|
492
495
|
function renderPath(s, chartType) {
|
|
493
496
|
const percentageValue = amountToPercent(s.amount, this.total, true) + "%";
|
|
494
497
|
return (!isNaN(s.amount) && (h("g", { transform: `translate(${this.chartDetails.padding / 2}, ${this.chartDetails.padding / 2})` },
|
|
495
|
-
h("path", { id: s.id, class: "segment doughnut-segment", fill: s.
|
|
498
|
+
h("path", { id: s.id, class: "segment doughnut-segment", fill: s.visualAmount ? s.color : "transparent", d: getPathData.call(this, s.visualAmount, s.offset, chartType), onClick: (ev) => handleSliceClick.call(this, ev, s), onFocus: (ev) => handleSliceFocus.call(this, ev, s), onKeyDown: (ev) => handleSliceKeyDown.call(this, ev), role: "img", "aria-label": `${s.legend}, ${percentageValue}`, "data-segmentindex": s.index }))));
|
|
496
499
|
}
|
|
497
500
|
function renderFocusOutline() {
|
|
498
501
|
return this.isTabbing ? (h("g", { transform: `translate(${this.chartDetails.padding / 2}, ${this.chartDetails.padding / 2})` },
|
|
@@ -501,7 +504,7 @@ function renderFocusOutline() {
|
|
|
501
504
|
h("use", { tabindex: -1, id: "kfbg2", xlinkHref: `#${this.focusedSliceId}` }))) : ("");
|
|
502
505
|
}
|
|
503
506
|
function renderDoughnutText(s) {
|
|
504
|
-
const arcMiddle = amountToDegree(s.offset + s.
|
|
507
|
+
const arcMiddle = amountToDegree(s.offset + s.visualAmount / 2, this.total);
|
|
505
508
|
let { x, y } = polarToCartesian(this.chartDetails.size / 2, 1.4, arcMiddle - 90);
|
|
506
509
|
return (h("text", { class: "value", x: x + "px", y: y + "px", "data-segmentindex": s.index }, `${s.perc > 0 ? s.perc : "<1"}%`));
|
|
507
510
|
}
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as bootstrapLazy } from './index-130e07bb.js';
|
|
2
2
|
export { s as setNonce } from './index-130e07bb.js';
|
|
3
|
-
import { g as globalScripts } from './app-globals-
|
|
3
|
+
import { g as globalScripts } from './app-globals-e7c0199c.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
package/dist/esm/ripple.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-130e07bb.js';
|
|
2
2
|
export { s as setNonce } from './index-130e07bb.js';
|
|
3
|
-
import { g as globalScripts } from './app-globals-
|
|
3
|
+
import { g as globalScripts } from './app-globals-e7c0199c.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v4.21.0 | MIT Licensed | https://stenciljs.com
|