@limetech/lime-elements 40.20.0 → 40.20.1
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/CHANGELOG.md +12 -0
- package/dist/cjs/limel-chart.cjs.entry.js +29 -18
- package/dist/cjs/limel-markdown.cjs.entry.js +2 -2
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
- package/dist/cjs/{markdown-exporter-BWS2EBxq.js → markdown-exporter-CGNfjGr9.js} +80 -897
- package/dist/cjs/{markdown-parser-toAp9-Eq.js → markdown-parser-C14XF_G3.js} +994 -38
- package/dist/collection/components/chart/chart.css +20 -5
- package/dist/collection/components/chart/chart.js +3 -0
- package/dist/collection/components/chart/options.js +12 -16
- package/dist/collection/components/chart/theme.js +13 -1
- package/dist/esm/limel-chart.entry.js +29 -18
- package/dist/esm/limel-markdown.entry.js +2 -2
- package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
- package/dist/esm/{markdown-exporter-B2vFxSLw.js → markdown-exporter-DcFcD699.js} +80 -897
- package/dist/esm/{markdown-parser-Cw8iW5R9.js → markdown-parser-8aHA9IYo.js} +991 -33
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-8514480b.entry.js → p-0887e0df.entry.js} +2 -2
- package/dist/lime-elements/{p-1d9bc526.entry.js → p-9edd79a8.entry.js} +1 -1
- package/dist/lime-elements/p-C9gctvIB.js +1 -0
- package/dist/lime-elements/{p-c2f993cc.entry.js → p-a891f3e8.entry.js} +1 -1
- package/dist/lime-elements/p-kiQd8Ntf.js +7 -0
- package/dist/types/components/chart/theme.d.ts +2 -2
- package/package.json +3 -3
- package/dist/lime-elements/p-Bd37Vplf.js +0 -7
- package/dist/lime-elements/p-CvHpvp0f.js +0 -1
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
* @prop --chart-item-color: If no color is defined for chart items, this color will be use. Defaults to `rgb(var(--contrast-1100), 0.8)`.
|
|
103
103
|
* @prop --chart-item-divider-color: Defines the color that visually separates items in some charts, such as `stacked-bar` chart items. Defaults to `rgb(var(--contrast-100), 0.6)`, which is light in light mode and dark in dark mode.
|
|
104
104
|
* @prop --chart-axis-line-color: Defines color of the axis lines. Defaults to `rgb(var(--contrast-900), 0.4)`.
|
|
105
|
-
* @prop --chart-item-border-radius: Defines the roundness of corners of items in `bar` and `stacked-bar` charts.
|
|
105
|
+
* @prop --chart-item-border-radius: Defines the roundness of corners of items in `bar` and `stacked-bar` charts. Takes one to four lengths, like `border-radius`.
|
|
106
106
|
* @prop --chart-scatter-item-size: Defines the diameter of the dots in a `scatter` chart. Defaults to `0.5rem`.
|
|
107
107
|
*/
|
|
108
108
|
:host(limel-chart) {
|
|
@@ -148,11 +148,13 @@
|
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
:host(limel-chart[type=stacked-bar][orientation=landscape])
|
|
151
|
+
:host(limel-chart[type=stacked-bar][orientation=landscape]),
|
|
152
|
+
:host(limel-chart[type=stacked-bar][orientation=landscape]) .plot {
|
|
152
153
|
min-height: 0.5rem;
|
|
153
154
|
}
|
|
154
155
|
|
|
155
|
-
:host(limel-chart[type=stacked-bar][orientation=portrait])
|
|
156
|
+
:host(limel-chart[type=stacked-bar][orientation=portrait]),
|
|
157
|
+
:host(limel-chart[type=stacked-bar][orientation=portrait]) .plot {
|
|
156
158
|
min-width: 0.5rem;
|
|
157
159
|
}
|
|
158
160
|
|
|
@@ -179,9 +181,22 @@
|
|
|
179
181
|
aspect-ratio: 1;
|
|
180
182
|
}
|
|
181
183
|
|
|
184
|
+
:host(limel-chart[type=bar][data-fallback-height]),
|
|
185
|
+
:host(limel-chart[type=dot][data-fallback-height]),
|
|
186
|
+
:host(limel-chart[type=line][data-fallback-height]),
|
|
187
|
+
:host(limel-chart[type=area][data-fallback-height]),
|
|
188
|
+
:host(limel-chart[type=scatter][data-fallback-height]) {
|
|
189
|
+
aspect-ratio: 2;
|
|
190
|
+
}
|
|
191
|
+
|
|
182
192
|
.plot {
|
|
183
|
-
|
|
184
|
-
|
|
193
|
+
flex-grow: 1;
|
|
194
|
+
contain: size;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:host(limel-chart[type=stacked-bar]) .plot {
|
|
198
|
+
border-radius: 0.25rem;
|
|
199
|
+
overflow: hidden;
|
|
185
200
|
}
|
|
186
201
|
|
|
187
202
|
table {
|
|
@@ -252,6 +252,9 @@ export class Chart {
|
|
|
252
252
|
}
|
|
253
253
|
this.observeSize();
|
|
254
254
|
const { clientWidth: width, clientHeight: height } = this.plot;
|
|
255
|
+
if (width && !height) {
|
|
256
|
+
this.host.toggleAttribute('data-fallback-height', true);
|
|
257
|
+
}
|
|
255
258
|
if (!width || !height) {
|
|
256
259
|
return;
|
|
257
260
|
}
|
|
@@ -197,7 +197,7 @@ function getAxisSeries(settings, theme) {
|
|
|
197
197
|
return getLineSeries(settings, theme);
|
|
198
198
|
}
|
|
199
199
|
if (settings.type === 'dot') {
|
|
200
|
-
return getDotSeries(settings);
|
|
200
|
+
return getDotSeries(settings, theme);
|
|
201
201
|
}
|
|
202
202
|
return getBarSeries(settings, theme);
|
|
203
203
|
}
|
|
@@ -212,7 +212,7 @@ function getBarSeries(settings, theme) {
|
|
|
212
212
|
borderRadius: theme.itemBorderRadius,
|
|
213
213
|
},
|
|
214
214
|
})),
|
|
215
|
-
label: getValueLabel(settings),
|
|
215
|
+
label: getValueLabel(settings, theme),
|
|
216
216
|
cursor: getSeriesCursor(items),
|
|
217
217
|
emphasis: emphasis,
|
|
218
218
|
blur: blur,
|
|
@@ -228,7 +228,7 @@ function getBarSeries(settings, theme) {
|
|
|
228
228
|
seriesIndex: 1,
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
|
-
function getDotSeries(settings) {
|
|
231
|
+
function getDotSeries(settings, theme) {
|
|
232
232
|
const { items, orientation } = settings;
|
|
233
233
|
const point = (index, value) => orientation === 'landscape' ? [index, value] : [value, index];
|
|
234
234
|
const ends = {
|
|
@@ -238,7 +238,7 @@ function getDotSeries(settings) {
|
|
|
238
238
|
value: point(index, getMaximumValue(item)),
|
|
239
239
|
itemStyle: { color: item.color },
|
|
240
240
|
})),
|
|
241
|
-
label: getValueLabel(settings),
|
|
241
|
+
label: getValueLabel(settings, theme),
|
|
242
242
|
cursor: getSeriesCursor(items),
|
|
243
243
|
emphasis: emphasis,
|
|
244
244
|
blur: blur,
|
|
@@ -285,7 +285,7 @@ function getLineSeries(settings, theme) {
|
|
|
285
285
|
itemStyle: { color: item.color },
|
|
286
286
|
})),
|
|
287
287
|
areaStyle: area ? { color: color, opacity: AREA_OPACITY } : undefined,
|
|
288
|
-
label: getValueLabel(settings),
|
|
288
|
+
label: getValueLabel(settings, theme),
|
|
289
289
|
cursor: getSeriesCursor(items),
|
|
290
290
|
emphasis: emphasis,
|
|
291
291
|
blur: blur,
|
|
@@ -321,11 +321,7 @@ function drawScatter(settings, theme) {
|
|
|
321
321
|
itemStyle: { color: item.color },
|
|
322
322
|
};
|
|
323
323
|
}),
|
|
324
|
-
label: {
|
|
325
|
-
show: settings.displayItemText || settings.displayItemValue,
|
|
326
|
-
position: 'top',
|
|
327
|
-
formatter: ({ dataIndex }) => getPointLabel(settings, items[dataIndex]),
|
|
328
|
-
},
|
|
324
|
+
label: Object.assign(Object.assign({ show: settings.displayItemText || settings.displayItemValue, position: 'top' }, getLabelStyle(theme)), { formatter: ({ dataIndex }) => getPointLabel(settings, items[dataIndex]) }),
|
|
329
325
|
cursor: getSeriesCursor(items),
|
|
330
326
|
emphasis: emphasis,
|
|
331
327
|
blur: blur,
|
|
@@ -355,6 +351,7 @@ function drawPie(settings, theme) {
|
|
|
355
351
|
value: whole - sum,
|
|
356
352
|
itemStyle: { color: theme.backgroundColor },
|
|
357
353
|
emphasis: { disabled: true },
|
|
354
|
+
cursor: getCursor(false),
|
|
358
355
|
});
|
|
359
356
|
}
|
|
360
357
|
const innerRadius = settings.type === 'doughnut' ? '50%' : 0;
|
|
@@ -547,12 +544,11 @@ function getAxisName(settings, name, theme) {
|
|
|
547
544
|
nameTextStyle: { color: theme.textColor },
|
|
548
545
|
};
|
|
549
546
|
}
|
|
550
|
-
function getValueLabel(settings) {
|
|
551
|
-
return {
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
};
|
|
547
|
+
function getValueLabel(settings, theme) {
|
|
548
|
+
return Object.assign(Object.assign({ show: settings.displayItemValue, position: settings.orientation === 'landscape' ? 'top' : 'right' }, getLabelStyle(theme)), { formatter: ({ dataIndex }) => formatValue(settings.items[dataIndex], settings.type) });
|
|
549
|
+
}
|
|
550
|
+
function getLabelStyle(theme) {
|
|
551
|
+
return { color: theme.textColor, textBorderWidth: 0 };
|
|
556
552
|
}
|
|
557
553
|
function getPointLabel(settings, item) {
|
|
558
554
|
const parts = [];
|
|
@@ -63,6 +63,18 @@ export function createThemeReader(root) {
|
|
|
63
63
|
probe.style.width = '';
|
|
64
64
|
return Number.isFinite(pixels) ? pixels : 0;
|
|
65
65
|
};
|
|
66
|
+
const resolveCorners = (value) => {
|
|
67
|
+
probe.style.borderRadius = value;
|
|
68
|
+
const style = getComputedStyle(probe);
|
|
69
|
+
const corners = [
|
|
70
|
+
style.borderTopLeftRadius,
|
|
71
|
+
style.borderTopRightRadius,
|
|
72
|
+
style.borderBottomRightRadius,
|
|
73
|
+
style.borderBottomLeftRadius,
|
|
74
|
+
];
|
|
75
|
+
probe.style.borderRadius = '';
|
|
76
|
+
return corners.map((corner) => resolveLength(corner));
|
|
77
|
+
};
|
|
66
78
|
return {
|
|
67
79
|
color: (value) => (isColor(value) ? resolveColor(value) : undefined),
|
|
68
80
|
theme: () => ({
|
|
@@ -73,7 +85,7 @@ export function createThemeReader(root) {
|
|
|
73
85
|
backgroundColor: resolvePublicColor('--limel-chart-background-color'),
|
|
74
86
|
dividerColor: resolvePublicColor('--limel-chart-item-divider-color'),
|
|
75
87
|
surfaceColor: resolveColor('var(--limel-chart-surface-color)'),
|
|
76
|
-
itemBorderRadius:
|
|
88
|
+
itemBorderRadius: resolveCorners('var(--limel-chart-item-border-radius)'),
|
|
77
89
|
scatterItemSize: resolveLength('var(--limel-chart-scatter-item-size)'),
|
|
78
90
|
fontFamily: getComputedStyle(root.host).fontFamily,
|
|
79
91
|
npsColors: [
|
|
@@ -50563,7 +50563,7 @@ function getAxisSeries(settings, theme) {
|
|
|
50563
50563
|
return getLineSeries(settings, theme);
|
|
50564
50564
|
}
|
|
50565
50565
|
if (settings.type === 'dot') {
|
|
50566
|
-
return getDotSeries(settings);
|
|
50566
|
+
return getDotSeries(settings, theme);
|
|
50567
50567
|
}
|
|
50568
50568
|
return getBarSeries(settings, theme);
|
|
50569
50569
|
}
|
|
@@ -50578,7 +50578,7 @@ function getBarSeries(settings, theme) {
|
|
|
50578
50578
|
borderRadius: theme.itemBorderRadius,
|
|
50579
50579
|
},
|
|
50580
50580
|
})),
|
|
50581
|
-
label: getValueLabel(settings),
|
|
50581
|
+
label: getValueLabel(settings, theme),
|
|
50582
50582
|
cursor: getSeriesCursor(items),
|
|
50583
50583
|
emphasis: emphasis,
|
|
50584
50584
|
blur: blur,
|
|
@@ -50594,7 +50594,7 @@ function getBarSeries(settings, theme) {
|
|
|
50594
50594
|
seriesIndex: 1,
|
|
50595
50595
|
};
|
|
50596
50596
|
}
|
|
50597
|
-
function getDotSeries(settings) {
|
|
50597
|
+
function getDotSeries(settings, theme) {
|
|
50598
50598
|
const { items, orientation } = settings;
|
|
50599
50599
|
const point = (index, value) => orientation === 'landscape' ? [index, value] : [value, index];
|
|
50600
50600
|
const ends = {
|
|
@@ -50604,7 +50604,7 @@ function getDotSeries(settings) {
|
|
|
50604
50604
|
value: point(index, getMaximumValue(item)),
|
|
50605
50605
|
itemStyle: { color: item.color },
|
|
50606
50606
|
})),
|
|
50607
|
-
label: getValueLabel(settings),
|
|
50607
|
+
label: getValueLabel(settings, theme),
|
|
50608
50608
|
cursor: getSeriesCursor(items),
|
|
50609
50609
|
emphasis: emphasis,
|
|
50610
50610
|
blur: blur,
|
|
@@ -50651,7 +50651,7 @@ function getLineSeries(settings, theme) {
|
|
|
50651
50651
|
itemStyle: { color: item.color },
|
|
50652
50652
|
})),
|
|
50653
50653
|
areaStyle: area ? { color: color, opacity: AREA_OPACITY } : undefined,
|
|
50654
|
-
label: getValueLabel(settings),
|
|
50654
|
+
label: getValueLabel(settings, theme),
|
|
50655
50655
|
cursor: getSeriesCursor(items),
|
|
50656
50656
|
emphasis: emphasis,
|
|
50657
50657
|
blur: blur,
|
|
@@ -50687,11 +50687,7 @@ function drawScatter(settings, theme) {
|
|
|
50687
50687
|
itemStyle: { color: item.color },
|
|
50688
50688
|
};
|
|
50689
50689
|
}),
|
|
50690
|
-
label: {
|
|
50691
|
-
show: settings.displayItemText || settings.displayItemValue,
|
|
50692
|
-
position: 'top',
|
|
50693
|
-
formatter: ({ dataIndex }) => getPointLabel(settings, items[dataIndex]),
|
|
50694
|
-
},
|
|
50690
|
+
label: Object.assign(Object.assign({ show: settings.displayItemText || settings.displayItemValue, position: 'top' }, getLabelStyle(theme)), { formatter: ({ dataIndex }) => getPointLabel(settings, items[dataIndex]) }),
|
|
50695
50691
|
cursor: getSeriesCursor(items),
|
|
50696
50692
|
emphasis: emphasis,
|
|
50697
50693
|
blur: blur,
|
|
@@ -50721,6 +50717,7 @@ function drawPie(settings, theme) {
|
|
|
50721
50717
|
value: whole - sum,
|
|
50722
50718
|
itemStyle: { color: theme.backgroundColor },
|
|
50723
50719
|
emphasis: { disabled: true },
|
|
50720
|
+
cursor: getCursor(false),
|
|
50724
50721
|
});
|
|
50725
50722
|
}
|
|
50726
50723
|
const innerRadius = settings.type === 'doughnut' ? '50%' : 0;
|
|
@@ -50913,12 +50910,11 @@ function getAxisName(settings, name, theme) {
|
|
|
50913
50910
|
nameTextStyle: { color: theme.textColor },
|
|
50914
50911
|
};
|
|
50915
50912
|
}
|
|
50916
|
-
function getValueLabel(settings) {
|
|
50917
|
-
return {
|
|
50918
|
-
|
|
50919
|
-
|
|
50920
|
-
|
|
50921
|
-
};
|
|
50913
|
+
function getValueLabel(settings, theme) {
|
|
50914
|
+
return Object.assign(Object.assign({ show: settings.displayItemValue, position: settings.orientation === 'landscape' ? 'top' : 'right' }, getLabelStyle(theme)), { formatter: ({ dataIndex }) => formatValue(settings.items[dataIndex], settings.type) });
|
|
50915
|
+
}
|
|
50916
|
+
function getLabelStyle(theme) {
|
|
50917
|
+
return { color: theme.textColor, textBorderWidth: 0 };
|
|
50922
50918
|
}
|
|
50923
50919
|
function getPointLabel(settings, item) {
|
|
50924
50920
|
const parts = [];
|
|
@@ -51002,6 +50998,18 @@ function createThemeReader(root) {
|
|
|
51002
50998
|
probe.style.width = '';
|
|
51003
50999
|
return Number.isFinite(pixels) ? pixels : 0;
|
|
51004
51000
|
};
|
|
51001
|
+
const resolveCorners = (value) => {
|
|
51002
|
+
probe.style.borderRadius = value;
|
|
51003
|
+
const style = getComputedStyle(probe);
|
|
51004
|
+
const corners = [
|
|
51005
|
+
style.borderTopLeftRadius,
|
|
51006
|
+
style.borderTopRightRadius,
|
|
51007
|
+
style.borderBottomRightRadius,
|
|
51008
|
+
style.borderBottomLeftRadius,
|
|
51009
|
+
];
|
|
51010
|
+
probe.style.borderRadius = '';
|
|
51011
|
+
return corners.map((corner) => resolveLength(corner));
|
|
51012
|
+
};
|
|
51005
51013
|
return {
|
|
51006
51014
|
color: (value) => (isColor(value) ? resolveColor(value) : undefined),
|
|
51007
51015
|
theme: () => ({
|
|
@@ -51012,7 +51020,7 @@ function createThemeReader(root) {
|
|
|
51012
51020
|
backgroundColor: resolvePublicColor('--limel-chart-background-color'),
|
|
51013
51021
|
dividerColor: resolvePublicColor('--limel-chart-item-divider-color'),
|
|
51014
51022
|
surfaceColor: resolveColor('var(--limel-chart-surface-color)'),
|
|
51015
|
-
itemBorderRadius:
|
|
51023
|
+
itemBorderRadius: resolveCorners('var(--limel-chart-item-border-radius)'),
|
|
51016
51024
|
scatterItemSize: resolveLength('var(--limel-chart-scatter-item-size)'),
|
|
51017
51025
|
fontFamily: getComputedStyle(root.host).fontFamily,
|
|
51018
51026
|
npsColors: [
|
|
@@ -51071,7 +51079,7 @@ function paintToRgba(context, color) {
|
|
|
51071
51079
|
return `rgba(${red}, ${green}, ${blue}, ${alpha / MAX_CHANNEL})`;
|
|
51072
51080
|
}
|
|
51073
51081
|
|
|
51074
|
-
const chartCss = () => `@charset "UTF-8";:host(limel-chart){--limel-chart-item-color:var( --chart-item-color, rgb(var(--contrast-1100), 0.8) );--limel-chart-axis-line-color:var( --chart-axis-line-color, rgb(var(--contrast-900), 0.4) );--limel-chart-background-color:var(--chart-background-color, transparent);--limel-chart-item-divider-color:var( --chart-item-divider-color, rgb(var(--contrast-100), 0.6) );--limel-chart-item-border-radius:var(--chart-item-border-radius, 0);--limel-chart-scatter-item-size:var(--chart-scatter-item-size, 0.5rem);--limel-chart-text-color:rgb(var(--contrast-1000));--limel-chart-line-color:rgb(var(--contrast-900));--limel-chart-surface-color:rgb(var(--contrast-100));--limel-chart-nps-detractors-color:rgb(var(--color-coral-default));--limel-chart-nps-passives-color:rgb(var(--color-amber-light));--limel-chart-nps-good-color:rgb(var(--color-lime-light));--limel-chart-nps-excellent-color:rgb(var(--color-lime-default));box-sizing:border-box;position:relative;display:flex;width:100%;height:100%;min-width:0;min-height:0}:host(limel-chart[type=bar]){--limel-chart-item-border-radius:var(--chart-item-border-radius, 0.125rem)}:host(limel-chart[type=stacked-bar]){--limel-chart-background-color:var( --chart-background-color, rgb(var(--contrast-800), 0.2) )}:host(limel-chart[type=stacked-bar][orientation=landscape]){min-height:0.5rem}:host(limel-chart[type=stacked-bar][orientation=portrait]){min-width:0.5rem}:host(limel-chart[type=pie]),:host(limel-chart[type=doughnut]),:host(limel-chart[type=ring]){--limel-chart-background-color:var( --chart-background-color, rgb(var(--contrast-200)) )}:host(limel-chart[type=nps]){--limel-chart-background-color:var( --chart-background-color, rgb(var(--contrast-100)) )}:host(limel-chart[type=pie]),:host(limel-chart[type=doughnut]),:host(limel-chart[type=ring]),:host(limel-chart[type=nps]){aspect-ratio:1}.plot{
|
|
51082
|
+
const chartCss = () => `@charset "UTF-8";:host(limel-chart){--limel-chart-item-color:var( --chart-item-color, rgb(var(--contrast-1100), 0.8) );--limel-chart-axis-line-color:var( --chart-axis-line-color, rgb(var(--contrast-900), 0.4) );--limel-chart-background-color:var(--chart-background-color, transparent);--limel-chart-item-divider-color:var( --chart-item-divider-color, rgb(var(--contrast-100), 0.6) );--limel-chart-item-border-radius:var(--chart-item-border-radius, 0);--limel-chart-scatter-item-size:var(--chart-scatter-item-size, 0.5rem);--limel-chart-text-color:rgb(var(--contrast-1000));--limel-chart-line-color:rgb(var(--contrast-900));--limel-chart-surface-color:rgb(var(--contrast-100));--limel-chart-nps-detractors-color:rgb(var(--color-coral-default));--limel-chart-nps-passives-color:rgb(var(--color-amber-light));--limel-chart-nps-good-color:rgb(var(--color-lime-light));--limel-chart-nps-excellent-color:rgb(var(--color-lime-default));box-sizing:border-box;position:relative;display:flex;width:100%;height:100%;min-width:0;min-height:0}:host(limel-chart[type=bar]){--limel-chart-item-border-radius:var(--chart-item-border-radius, 0.125rem)}:host(limel-chart[type=stacked-bar]){--limel-chart-background-color:var( --chart-background-color, rgb(var(--contrast-800), 0.2) )}:host(limel-chart[type=stacked-bar][orientation=landscape]),:host(limel-chart[type=stacked-bar][orientation=landscape]) .plot{min-height:0.5rem}:host(limel-chart[type=stacked-bar][orientation=portrait]),:host(limel-chart[type=stacked-bar][orientation=portrait]) .plot{min-width:0.5rem}:host(limel-chart[type=pie]),:host(limel-chart[type=doughnut]),:host(limel-chart[type=ring]){--limel-chart-background-color:var( --chart-background-color, rgb(var(--contrast-200)) )}:host(limel-chart[type=nps]){--limel-chart-background-color:var( --chart-background-color, rgb(var(--contrast-100)) )}:host(limel-chart[type=pie]),:host(limel-chart[type=doughnut]),:host(limel-chart[type=ring]),:host(limel-chart[type=nps]){aspect-ratio:1}:host(limel-chart[type=bar][data-fallback-height]),:host(limel-chart[type=dot][data-fallback-height]),:host(limel-chart[type=line][data-fallback-height]),:host(limel-chart[type=area][data-fallback-height]),:host(limel-chart[type=scatter][data-fallback-height]){aspect-ratio:2}.plot{flex-grow:1;contain:size}:host(limel-chart[type=stacked-bar]) .plot{border-radius:0.25rem;overflow:hidden}table{position:absolute;width:0;height:0;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap}limel-spinner{margin:auto}`;
|
|
51075
51083
|
|
|
51076
51084
|
const orientations = ['horizontal', 'vertical'];
|
|
51077
51085
|
const extensions = [
|
|
@@ -51289,6 +51297,9 @@ const Chart = class {
|
|
|
51289
51297
|
}
|
|
51290
51298
|
this.observeSize();
|
|
51291
51299
|
const { clientWidth: width, clientHeight: height } = this.plot;
|
|
51300
|
+
if (width && !height) {
|
|
51301
|
+
this.host.toggleAttribute('data-fallback-height', true);
|
|
51302
|
+
}
|
|
51292
51303
|
if (!width || !height) {
|
|
51293
51304
|
return;
|
|
51294
51305
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-BU9IJqli.js';
|
|
2
|
-
import { m as markdownToHTML } from './markdown-parser-
|
|
2
|
+
import { m as markdownToHTML } from './markdown-parser-8aHA9IYo.js';
|
|
3
3
|
import { g as globalConfig } from './config-Dnt5w_Bp.js';
|
|
4
4
|
import { d as defaultSchema } from './index-CofmbCdQ.js';
|
|
5
5
|
import { a as adaptColorContrast } from './adapt-color-contrast-BQoih_t0.js';
|
|
@@ -1136,7 +1136,7 @@ const Markdown = class {
|
|
|
1136
1136
|
*/
|
|
1137
1137
|
async toMarkdown() {
|
|
1138
1138
|
await this.rendering;
|
|
1139
|
-
const { exportMarkdown } = await import('./markdown-exporter-
|
|
1139
|
+
const { exportMarkdown } = await import('./markdown-exporter-DcFcD699.js');
|
|
1140
1140
|
return exportMarkdown(this.rootElement, this.cachedCombinedWhitelist);
|
|
1141
1141
|
}
|
|
1142
1142
|
textChanged() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BU9IJqli.js';
|
|
2
2
|
import { L as LevelMapping, E as EditorMenuTypes, i as isInlineImageTag, M as MouseButtons, e as editorMenuTypesArray } from './types-C_Yu8dOg.js';
|
|
3
|
-
import { g as getLinkAttributes, m as markdownToHTML, s as sanitizeHTML } from './markdown-parser-
|
|
3
|
+
import { g as getLinkAttributes, m as markdownToHTML, s as sanitizeHTML } from './markdown-parser-8aHA9IYo.js';
|
|
4
4
|
import { c as cloneDeep } from './cloneDeep-BYrS7zqD.js';
|
|
5
5
|
import { t as translations } from './translations-kct5Kybu.js';
|
|
6
6
|
import { c as decodeHTML, e as decodeHTMLStrict } from './index-CofmbCdQ.js';
|