@rivet-health/design-system 33.1.0 → 33.1.2
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/esm2020/lib/input/mentions-input/mentions-input.component.mjs +2 -2
- package/esm2020/lib/visualization/chart/chart.mjs +23 -22
- package/fesm2015/rivet-health-design-system.mjs +23 -22
- package/fesm2015/rivet-health-design-system.mjs.map +1 -1
- package/fesm2020/rivet-health-design-system.mjs +23 -22
- package/fesm2020/rivet-health-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4101,7 +4101,7 @@ class MentionsInputComponent {
|
|
|
4101
4101
|
//Look for HTML first
|
|
4102
4102
|
const html = event.clipboardData.getData('text/html');
|
|
4103
4103
|
const plainText = event.clipboardData.getData('text/plain');
|
|
4104
|
-
if (html) {
|
|
4104
|
+
if (html && html.includes('data-type="mention"')) {
|
|
4105
4105
|
const sanitizedNodes = this.parsePastedHtml(html);
|
|
4106
4106
|
this.insertNodesAtCursor(sanitizedNodes);
|
|
4107
4107
|
}
|
|
@@ -8410,7 +8410,8 @@ var Chart;
|
|
|
8410
8410
|
const offset = (yIndex - centerIndex) * (HORIZONTAL_BAR_HEIGHT + SMALL_PADDING);
|
|
8411
8411
|
yValue = yValue + offset;
|
|
8412
8412
|
}
|
|
8413
|
-
const
|
|
8413
|
+
const horR = Math.min(4, Math.floor(width / 2));
|
|
8414
|
+
const verR = Math.min(4, Math.floor(HORIZONTAL_BAR_HEIGHT / 2));
|
|
8414
8415
|
subSimpHorBars.push({
|
|
8415
8416
|
xPos: xValue,
|
|
8416
8417
|
yPos: yValue,
|
|
@@ -8419,15 +8420,15 @@ var Chart;
|
|
|
8419
8420
|
if (data.ys.length == 1 || config.groupingType == 'clustered') {
|
|
8420
8421
|
//Both-sides rounding variation
|
|
8421
8422
|
const pathD = `
|
|
8422
|
-
M ${xValue +
|
|
8423
|
-
h ${width -
|
|
8424
|
-
q${
|
|
8425
|
-
v ${HORIZONTAL_BAR_HEIGHT -
|
|
8426
|
-
q0,${
|
|
8427
|
-
h ${-(width -
|
|
8428
|
-
q-${
|
|
8429
|
-
v -${HORIZONTAL_BAR_HEIGHT -
|
|
8430
|
-
q0,-${
|
|
8423
|
+
M ${xValue + horR},${yValue}
|
|
8424
|
+
h ${width - horR * 2}
|
|
8425
|
+
q${horR},0 ${horR},${verR}
|
|
8426
|
+
v ${HORIZONTAL_BAR_HEIGHT - verR * 2}
|
|
8427
|
+
q0,${verR} -${horR},${verR}
|
|
8428
|
+
h ${-(width - horR * 2)}
|
|
8429
|
+
q-${horR},0 -${horR},-${verR}
|
|
8430
|
+
v -${HORIZONTAL_BAR_HEIGHT - verR * 2}
|
|
8431
|
+
q0,-${verR} ${horR},-${verR}
|
|
8431
8432
|
Z
|
|
8432
8433
|
`;
|
|
8433
8434
|
return pathD;
|
|
@@ -8435,13 +8436,13 @@ var Chart;
|
|
|
8435
8436
|
if (yIndex == 0) {
|
|
8436
8437
|
//Left-side rounding variation
|
|
8437
8438
|
const pathD = `
|
|
8438
|
-
M ${xValue +
|
|
8439
|
-
h ${width -
|
|
8439
|
+
M ${xValue + horR},${yValue}
|
|
8440
|
+
h ${width - horR}
|
|
8440
8441
|
v ${HORIZONTAL_BAR_HEIGHT}
|
|
8441
|
-
h ${-(width -
|
|
8442
|
-
q-${
|
|
8443
|
-
v -${HORIZONTAL_BAR_HEIGHT -
|
|
8444
|
-
q0,-${
|
|
8442
|
+
h ${-(width - horR)}
|
|
8443
|
+
q-${horR},0 -${horR},-${verR}
|
|
8444
|
+
v -${HORIZONTAL_BAR_HEIGHT - verR * 2}
|
|
8445
|
+
q0,-${verR} ${horR},-${verR}
|
|
8445
8446
|
Z
|
|
8446
8447
|
`;
|
|
8447
8448
|
return pathD;
|
|
@@ -8450,11 +8451,11 @@ var Chart;
|
|
|
8450
8451
|
//Right-side rounding variation
|
|
8451
8452
|
const pathD = `
|
|
8452
8453
|
M ${xValue},${yValue}
|
|
8453
|
-
h ${width -
|
|
8454
|
-
q${
|
|
8455
|
-
v ${HORIZONTAL_BAR_HEIGHT -
|
|
8456
|
-
q0,${
|
|
8457
|
-
h ${-(width -
|
|
8454
|
+
h ${width - horR}
|
|
8455
|
+
q${horR},0 ${horR},${verR}
|
|
8456
|
+
v ${HORIZONTAL_BAR_HEIGHT - verR * 2}
|
|
8457
|
+
q0,${verR} -${horR},${verR}
|
|
8458
|
+
h ${-(width - horR)}
|
|
8458
8459
|
Z
|
|
8459
8460
|
`;
|
|
8460
8461
|
return pathD;
|