@editora/ui-core 0.1.24 → 0.2.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/README.md +339 -5
- package/dist/accordion.cjs.js +13 -12
- package/dist/accordion.esm.js +13 -12
- package/dist/alert-dialog.cjs.js +76 -45
- package/dist/alert-dialog.esm.js +179 -135
- package/dist/alert.cjs.js +41 -32
- package/dist/alert.esm.js +79 -70
- package/dist/animated-beam.cjs.js +42 -50
- package/dist/animated-beam.esm.js +47 -55
- package/dist/animated-list.cjs.js +11 -27
- package/dist/animated-list.esm.js +12 -28
- package/dist/animated-text.cjs.js +4 -4
- package/dist/animated-text.esm.js +4 -4
- package/dist/app-header.cjs.js +5 -5
- package/dist/app-header.esm.js +6 -6
- package/dist/aspect-ratio.cjs.js +10 -12
- package/dist/aspect-ratio.esm.js +11 -13
- package/dist/avatar.cjs.js +13 -17
- package/dist/avatar.esm.js +13 -17
- package/dist/badge.cjs.js +27 -22
- package/dist/badge.esm.js +32 -27
- package/dist/block-controls.cjs.js +11 -12
- package/dist/block-controls.esm.js +8 -9
- package/dist/box.cjs.js +2 -3
- package/dist/box.esm.js +2 -3
- package/dist/breadcrumb.cjs.js +12 -18
- package/dist/breadcrumb.esm.js +11 -17
- package/dist/button.cjs.js +1 -1
- package/dist/button.esm.js +1 -1
- package/dist/{calendar-B3PUKHQm.mjs → calendar-DmxiZrR7.mjs} +126 -117
- package/dist/{calendar-D-mXMgqc.js → calendar-o273O28D.js} +53 -44
- package/dist/calendar.cjs.js +1 -1
- package/dist/calendar.esm.js +1 -1
- package/dist/card.cjs.js +6 -7
- package/dist/card.esm.js +5 -6
- package/dist/chart.cjs.js +52 -52
- package/dist/chart.esm.js +95 -95
- package/dist/checkbox.cjs.js +19 -15
- package/dist/checkbox.esm.js +19 -15
- package/dist/collapsible.cjs.js +7 -11
- package/dist/collapsible.esm.js +7 -11
- package/dist/color-picker.cjs.js +36 -17
- package/dist/color-picker.esm.js +132 -113
- package/dist/combobox.cjs.js +57 -54
- package/dist/combobox.esm.js +62 -58
- package/dist/command-palette.cjs.js +1 -0
- package/dist/command-palette.esm.js +1 -0
- package/dist/command.cjs.js +32 -14
- package/dist/command.esm.js +46 -28
- package/dist/components/date-time-utils.d.ts.map +1 -1
- package/dist/components/gantt-schedule.d.ts +79 -0
- package/dist/components/gantt-schedule.d.ts.map +1 -0
- package/dist/components/ui-accordion.d.ts.map +1 -1
- package/dist/components/ui-alert-dialog.d.ts +2 -0
- package/dist/components/ui-alert-dialog.d.ts.map +1 -1
- package/dist/components/ui-alert.d.ts.map +1 -1
- package/dist/components/ui-animated-beam.d.ts.map +1 -1
- package/dist/components/ui-animated-list.d.ts.map +1 -1
- package/dist/components/ui-aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui-avatar.d.ts.map +1 -1
- package/dist/components/ui-badge.d.ts.map +1 -1
- package/dist/components/ui-block-controls.d.ts.map +1 -1
- package/dist/components/ui-box.d.ts.map +1 -1
- package/dist/components/ui-breadcrumb.d.ts.map +1 -1
- package/dist/components/ui-button.d.ts.map +1 -1
- package/dist/components/ui-calendar.d.ts.map +1 -1
- package/dist/components/ui-card.d.ts.map +1 -1
- package/dist/components/ui-checkbox.d.ts.map +1 -1
- package/dist/components/ui-collapsible.d.ts.map +1 -1
- package/dist/components/ui-color-picker.d.ts.map +1 -1
- package/dist/components/ui-combobox.d.ts.map +1 -1
- package/dist/components/ui-command-palette.d.ts.map +1 -1
- package/dist/components/ui-command.d.ts.map +1 -1
- package/dist/components/ui-container.d.ts.map +1 -1
- package/dist/components/ui-context-menu.d.ts.map +1 -1
- package/dist/components/ui-data-table.d.ts +7 -0
- package/dist/components/ui-data-table.d.ts.map +1 -1
- package/dist/components/ui-date-picker.d.ts.map +1 -1
- package/dist/components/ui-date-range-picker.d.ts.map +1 -1
- package/dist/components/ui-date-range-time-picker.d.ts.map +1 -1
- package/dist/components/ui-date-time-picker.d.ts.map +1 -1
- package/dist/components/ui-dialog.d.ts +2 -0
- package/dist/components/ui-dialog.d.ts.map +1 -1
- package/dist/components/ui-dock.d.ts.map +1 -1
- package/dist/components/ui-drawer.d.ts.map +1 -1
- package/dist/components/ui-dropdown.d.ts.map +1 -1
- package/dist/components/ui-empty-state.d.ts.map +1 -1
- package/dist/components/ui-field.d.ts.map +1 -1
- package/dist/components/ui-fieldset.d.ts.map +1 -1
- package/dist/components/ui-file-upload.d.ts.map +1 -1
- package/dist/components/ui-floating-toolbar.d.ts.map +1 -1
- package/dist/components/ui-form.d.ts.map +1 -1
- package/dist/components/ui-gantt.d.ts +186 -2
- package/dist/components/ui-gantt.d.ts.map +1 -1
- package/dist/components/ui-icon-cloud.d.ts.map +1 -1
- package/dist/components/ui-inline-edit.d.ts.map +1 -1
- package/dist/components/ui-input.d.ts.map +1 -1
- package/dist/components/ui-marquee.d.ts.map +1 -1
- package/dist/components/ui-menu.d.ts.map +1 -1
- package/dist/components/ui-menubar.d.ts.map +1 -1
- package/dist/components/ui-meter.d.ts.map +1 -1
- package/dist/components/ui-multi-select.d.ts.map +1 -1
- package/dist/components/ui-number-field.d.ts.map +1 -1
- package/dist/components/ui-orbiter.d.ts.map +1 -1
- package/dist/components/ui-pagination.d.ts.map +1 -1
- package/dist/components/ui-password-field.d.ts.map +1 -1
- package/dist/components/ui-pin-input.d.ts.map +1 -1
- package/dist/components/ui-popover.d.ts.map +1 -1
- package/dist/components/ui-progress.d.ts.map +1 -1
- package/dist/components/ui-radio-group.d.ts.map +1 -1
- package/dist/components/ui-radio.d.ts.map +1 -1
- package/dist/components/ui-rating.d.ts +1 -0
- package/dist/components/ui-rating.d.ts.map +1 -1
- package/dist/components/ui-scroll-area.d.ts.map +1 -1
- package/dist/components/ui-section.d.ts.map +1 -1
- package/dist/components/ui-select.d.ts.map +1 -1
- package/dist/components/ui-selection-popup.d.ts.map +1 -1
- package/dist/components/ui-slider.d.ts.map +1 -1
- package/dist/components/ui-sortable.d.ts.map +1 -1
- package/dist/components/ui-spinning-text.d.ts.map +1 -1
- package/dist/components/ui-split-button.d.ts.map +1 -1
- package/dist/components/ui-splitter.d.ts.map +1 -1
- package/dist/components/ui-stepper.d.ts.map +1 -1
- package/dist/components/ui-switch.d.ts.map +1 -1
- package/dist/components/ui-tabs.d.ts.map +1 -1
- package/dist/components/ui-tags-input.d.ts.map +1 -1
- package/dist/components/ui-textarea.d.ts.map +1 -1
- package/dist/components/ui-time-picker.d.ts.map +1 -1
- package/dist/components/ui-toggle-group.d.ts +2 -0
- package/dist/components/ui-toggle-group.d.ts.map +1 -1
- package/dist/components/ui-toggle.d.ts.map +1 -1
- package/dist/components/ui-toolbar.d.ts +2 -0
- package/dist/components/ui-toolbar.d.ts.map +1 -1
- package/dist/components/ui-tooltip.d.ts.map +1 -1
- package/dist/components/ui-transfer-list.d.ts.map +1 -1
- package/dist/components/ui-tree-item.d.ts.map +1 -1
- package/dist/components/ui-tree.d.ts.map +1 -1
- package/dist/components/ui-wizard.d.ts.map +1 -1
- package/dist/container.cjs.js +6 -12
- package/dist/container.esm.js +8 -14
- package/dist/context-menu.cjs.js +8 -8
- package/dist/context-menu.esm.js +42 -41
- package/dist/data-table.cjs.js +18 -15
- package/dist/data-table.esm.js +207 -187
- package/dist/date-field.cjs.js +8 -8
- package/dist/date-field.esm.js +7 -7
- package/dist/date-picker.cjs.js +27 -18
- package/dist/date-picker.esm.js +57 -48
- package/dist/date-range-picker.cjs.js +22 -17
- package/dist/date-range-picker.esm.js +31 -26
- package/dist/date-range-time-picker.cjs.js +26 -19
- package/dist/date-range-time-picker.esm.js +23 -16
- package/dist/date-time-picker.cjs.js +23 -16
- package/dist/date-time-picker.esm.js +88 -81
- package/dist/{date-time-utils-BTlxnz5j.mjs → date-time-utils-B4hAkt36.mjs} +75 -68
- package/dist/date-time-utils-DdigV4hs.js +1 -0
- package/dist/dialog.cjs.js +57 -41
- package/dist/dialog.esm.js +84 -51
- package/dist/dock.cjs.js +16 -30
- package/dist/dock.esm.js +26 -40
- package/dist/drawer.cjs.js +8 -12
- package/dist/drawer.esm.js +6 -10
- package/dist/dropdown.cjs.js +8 -6
- package/dist/dropdown.esm.js +33 -30
- package/dist/empty-state.cjs.js +17 -15
- package/dist/empty-state.esm.js +13 -11
- package/dist/field.cjs.js +22 -13
- package/dist/field.esm.js +54 -45
- package/dist/fieldset.cjs.js +18 -11
- package/dist/fieldset.esm.js +20 -13
- package/dist/file-upload.cjs.js +77 -35
- package/dist/file-upload.esm.js +152 -110
- package/dist/floating-toolbar.cjs.js +6 -7
- package/dist/floating-toolbar.esm.js +8 -9
- package/dist/form.cjs.js +20 -23
- package/dist/form.esm.js +20 -23
- package/dist/gantt.cjs.js +525 -110
- package/dist/gantt.esm.js +1882 -377
- package/dist/hover-card.cjs.js +7 -7
- package/dist/hover-card.esm.js +7 -7
- package/dist/icon-cloud.cjs.js +19 -36
- package/dist/icon-cloud.esm.js +41 -58
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +108 -104
- package/dist/inline-edit.cjs.js +47 -19
- package/dist/inline-edit.esm.js +66 -38
- package/dist/input.cjs.js +44 -37
- package/dist/input.esm.js +59 -52
- package/dist/layout.cjs.js +3 -3
- package/dist/layout.esm.js +3 -3
- package/dist/marquee.cjs.js +7 -10
- package/dist/marquee.esm.js +7 -10
- package/dist/menu.cjs.js +8 -24
- package/dist/menu.esm.js +52 -72
- package/dist/menubar.cjs.js +9 -31
- package/dist/menubar.esm.js +127 -153
- package/dist/meter.cjs.js +4 -9
- package/dist/meter.esm.js +6 -11
- package/dist/multi-select.cjs.js +48 -35
- package/dist/multi-select.esm.js +67 -53
- package/dist/navigation-menu.cjs.js +10 -10
- package/dist/navigation-menu.esm.js +33 -33
- package/dist/number-field.cjs.js +27 -16
- package/dist/number-field.esm.js +36 -25
- package/dist/odometer.cjs.js +5 -5
- package/dist/odometer.esm.js +3 -3
- package/dist/orbiter.cjs.js +11 -28
- package/dist/orbiter.esm.js +28 -45
- package/dist/overlay-motion-B56x1GoY.js +49 -0
- package/dist/overlay-motion-BX3dPLay.mjs +120 -0
- package/dist/pagination.cjs.js +28 -25
- package/dist/pagination.esm.js +54 -51
- package/dist/password-field.cjs.js +38 -33
- package/dist/password-field.esm.js +62 -57
- package/dist/pin-input.cjs.js +17 -13
- package/dist/pin-input.esm.js +23 -19
- package/dist/plugin-panel.cjs.js +1 -1
- package/dist/plugin-panel.esm.js +1 -1
- package/dist/popover.cjs.js +16 -28
- package/dist/popover.esm.js +29 -45
- package/dist/portal-DeaM1tYY.mjs +121 -0
- package/dist/portal-XbYR3m_q.js +1 -0
- package/dist/portal.d.ts +3 -1
- package/dist/portal.d.ts.map +1 -1
- package/dist/{positioner-D0VGxtYU.mjs → positioner-BE8Nbho2.mjs} +5 -3
- package/dist/{positioner-D_fqyx_j.js → positioner-DZ1FW6A9.js} +1 -1
- package/dist/positioner.cjs.js +1 -1
- package/dist/positioner.esm.js +1 -1
- package/dist/primitives/overlay-motion.d.ts +47 -0
- package/dist/primitives/overlay-motion.d.ts.map +1 -0
- package/dist/primitives/positioner.d.ts.map +1 -1
- package/dist/progress.cjs.js +11 -16
- package/dist/progress.esm.js +37 -42
- package/dist/quick-actions.cjs.js +13 -13
- package/dist/quick-actions.esm.js +11 -11
- package/dist/radio-group.cjs.js +50 -26
- package/dist/radio-group.esm.js +53 -29
- package/dist/radio.cjs.js +15 -12
- package/dist/radio.esm.js +15 -12
- package/dist/rating.cjs.js +11 -15
- package/dist/rating.esm.js +48 -50
- package/dist/{runtime-CFnK53iC.mjs → runtime-CQM6wZOc.mjs} +498 -514
- package/dist/runtime-DxCl0A5q.js +5 -0
- package/dist/runtime.cjs.js +1 -1
- package/dist/runtime.d.ts +3 -2
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.esm.js +36 -32
- package/dist/scroll-area.cjs.js +3 -4
- package/dist/scroll-area.esm.js +3 -4
- package/dist/section.cjs.js +2 -4
- package/dist/section.esm.js +2 -4
- package/dist/select.cjs.js +40 -73
- package/dist/select.esm.js +55 -87
- package/dist/selection-popup.cjs.js +3 -4
- package/dist/selection-popup.esm.js +3 -4
- package/dist/semantic-tokens.d.ts +17 -0
- package/dist/semantic-tokens.d.ts.map +1 -0
- package/dist/sidebar.cjs.js +22 -22
- package/dist/sidebar.esm.js +25 -25
- package/dist/skeleton.cjs.js +2 -2
- package/dist/skeleton.esm.js +2 -2
- package/dist/slider.cjs.js +22 -26
- package/dist/slider.esm.js +25 -29
- package/dist/sortable.cjs.js +4 -5
- package/dist/sortable.esm.js +4 -5
- package/dist/spinning-text.cjs.js +4 -13
- package/dist/spinning-text.esm.js +4 -13
- package/dist/split-button.cjs.js +5 -5
- package/dist/split-button.esm.js +15 -14
- package/dist/splitter.cjs.js +52 -10
- package/dist/splitter.esm.js +55 -13
- package/dist/stepper.cjs.js +31 -65
- package/dist/stepper.esm.js +32 -66
- package/dist/switch.cjs.js +20 -22
- package/dist/switch.esm.js +20 -22
- package/dist/table.cjs.js +5 -5
- package/dist/table.esm.js +20 -20
- package/dist/tabs.cjs.js +91 -21
- package/dist/tabs.esm.js +182 -112
- package/dist/tags-input.cjs.js +41 -15
- package/dist/tags-input.esm.js +73 -47
- package/dist/textarea.cjs.js +32 -33
- package/dist/textarea.esm.js +38 -39
- package/dist/theme.d.ts +25 -1
- package/dist/theme.d.ts.map +1 -1
- package/dist/time-field.cjs.js +7 -7
- package/dist/time-field.esm.js +6 -6
- package/dist/time-picker.cjs.js +16 -13
- package/dist/time-picker.esm.js +27 -24
- package/dist/timeline.cjs.js +10 -10
- package/dist/timeline.esm.js +7 -7
- package/dist/toggle-group.cjs.js +13 -13
- package/dist/toggle-group.esm.js +66 -61
- package/dist/toggle.cjs.js +52 -34
- package/dist/toggle.esm.js +80 -62
- package/dist/toolbar.cjs.js +14 -14
- package/dist/toolbar.esm.js +41 -33
- package/dist/tooltip.cjs.js +3 -3
- package/dist/tooltip.esm.js +39 -33
- package/dist/transfer-list.cjs.js +28 -29
- package/dist/transfer-list.esm.js +28 -29
- package/dist/{tree-B_oQput6.mjs → tree-33fVNnaf.mjs} +6 -5
- package/dist/{tree-SivHxcAy.js → tree-Dc02MChE.js} +6 -5
- package/dist/tree-item.cjs.js +9 -8
- package/dist/tree-item.esm.js +13 -12
- package/dist/tree.cjs.js +1 -1
- package/dist/tree.esm.js +1 -1
- package/dist/{ui-button-Co8Sid6t.mjs → ui-button-C3OmI7Sn.mjs} +152 -154
- package/dist/{ui-button-BPrzJScZ.js → ui-button-CnLwXBnx.js} +107 -109
- package/dist/wizard.cjs.js +39 -36
- package/dist/wizard.esm.js +39 -36
- package/package.json +1 -1
- package/dist/date-time-utils-y3AvNvGe.js +0 -1
- package/dist/portal-DgpQ3Jo1.js +0 -1
- package/dist/portal-bR42gHvG.mjs +0 -118
- package/dist/runtime-DwE-tizc.js +0 -1
package/dist/chart.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { E as Y } from "./ElementBase-BeZT54Hj.mjs";
|
|
2
2
|
const V = 180, Z = `
|
|
3
3
|
:host {
|
|
4
|
-
--ui-chart-bg: color-
|
|
4
|
+
--ui-chart-bg: var(--color-panel-solid, var(--ui-color-surface, #ffffff));
|
|
5
5
|
--ui-chart-surface: color-mix(in srgb, var(--ui-color-surface, #ffffff) 97%, #ffffff 3%);
|
|
6
|
-
--ui-chart-border: color-mix(in srgb, var(--ui-color-border, #cbd5e1) 74%, transparent);
|
|
6
|
+
--ui-chart-border: var(--ui-color-line-subtle, color-mix(in srgb, var(--ui-color-border, #cbd5e1) 74%, transparent));
|
|
7
7
|
--ui-chart-text: var(--ui-color-text, #0f172a);
|
|
8
8
|
--ui-chart-muted: var(--ui-color-muted, #526175);
|
|
9
9
|
--ui-chart-grid: color-mix(in srgb, var(--ui-color-border, #cbd5e1) 45%, transparent);
|
|
@@ -11,7 +11,7 @@ const V = 180, Z = `
|
|
|
11
11
|
--ui-chart-success: var(--ui-color-success, #15803d);
|
|
12
12
|
--ui-chart-warning: var(--ui-color-warning, #b45309);
|
|
13
13
|
--ui-chart-danger: var(--ui-color-danger, #dc2626);
|
|
14
|
-
--ui-chart-radius:
|
|
14
|
+
--ui-chart-radius: calc(var(--ui-radius, 6px) + 4px);
|
|
15
15
|
--ui-chart-shadow: none;
|
|
16
16
|
--ui-chart-plot-height: 220px;
|
|
17
17
|
--ui-chart-plot-min-height: 188px;
|
|
@@ -28,7 +28,7 @@ const V = 180, Z = `
|
|
|
28
28
|
position: relative;
|
|
29
29
|
border: 1px solid var(--ui-chart-border);
|
|
30
30
|
border-radius: var(--ui-chart-radius);
|
|
31
|
-
background:
|
|
31
|
+
background: var(--ui-chart-bg);
|
|
32
32
|
color: var(--ui-chart-text);
|
|
33
33
|
box-shadow: var(--ui-chart-shadow);
|
|
34
34
|
padding: 16px;
|
|
@@ -77,8 +77,8 @@ const V = 180, Z = `
|
|
|
77
77
|
display: grid;
|
|
78
78
|
gap: 10px;
|
|
79
79
|
padding: 10px 12px;
|
|
80
|
-
border: 1px solid
|
|
81
|
-
border-radius:
|
|
80
|
+
border: 1px solid transparent;
|
|
81
|
+
border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
|
|
82
82
|
background: color-mix(in srgb, var(--ui-chart-surface) 96%, transparent);
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -99,7 +99,7 @@ const V = 180, Z = `
|
|
|
99
99
|
.title {
|
|
100
100
|
font-size: 15px;
|
|
101
101
|
line-height: 1.35;
|
|
102
|
-
font-weight:
|
|
102
|
+
font-weight: 600;
|
|
103
103
|
letter-spacing: 0.01em;
|
|
104
104
|
margin: 0;
|
|
105
105
|
}
|
|
@@ -120,7 +120,7 @@ const V = 180, Z = `
|
|
|
120
120
|
margin: 0;
|
|
121
121
|
font-size: 15px;
|
|
122
122
|
line-height: 1.35;
|
|
123
|
-
font-weight:
|
|
123
|
+
font-weight: 600;
|
|
124
124
|
letter-spacing: 0.01em;
|
|
125
125
|
color: var(--ui-chart-text);
|
|
126
126
|
}
|
|
@@ -140,7 +140,7 @@ const V = 180, Z = `
|
|
|
140
140
|
min-block-size: 24px;
|
|
141
141
|
padding: 0 10px;
|
|
142
142
|
border-radius: 999px;
|
|
143
|
-
border: 1px solid
|
|
143
|
+
border: 1px solid transparent;
|
|
144
144
|
background: color-mix(in srgb, var(--ui-chart-surface) 92%, transparent);
|
|
145
145
|
font-size: 11px;
|
|
146
146
|
line-height: 1;
|
|
@@ -150,19 +150,19 @@ const V = 180, Z = `
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
.status-pill[data-state="success"] {
|
|
153
|
-
color: var(--ui-chart-success);
|
|
153
|
+
color: color-mix(in srgb, var(--ui-chart-success) 74%, var(--ui-chart-text));
|
|
154
154
|
border-color: color-mix(in srgb, var(--ui-chart-success) 35%, var(--ui-chart-border));
|
|
155
155
|
background: color-mix(in srgb, var(--ui-chart-success) 13%, transparent);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.status-pill[data-state="error"] {
|
|
159
|
-
color: var(--ui-chart-danger);
|
|
159
|
+
color: color-mix(in srgb, var(--ui-chart-danger) 74%, var(--ui-chart-text));
|
|
160
160
|
border-color: color-mix(in srgb, var(--ui-chart-danger) 35%, var(--ui-chart-border));
|
|
161
161
|
background: color-mix(in srgb, var(--ui-chart-danger) 12%, transparent);
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
.status-pill[data-state="loading"] {
|
|
165
|
-
color: var(--ui-chart-warning);
|
|
165
|
+
color: color-mix(in srgb, var(--ui-chart-warning) 74%, var(--ui-chart-text));
|
|
166
166
|
border-color: color-mix(in srgb, var(--ui-chart-warning) 32%, var(--ui-chart-border));
|
|
167
167
|
background: color-mix(in srgb, var(--ui-chart-warning) 10%, transparent);
|
|
168
168
|
}
|
|
@@ -174,8 +174,8 @@ const V = 180, Z = `
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
.metric {
|
|
177
|
-
border: 1px solid
|
|
178
|
-
border-radius:
|
|
177
|
+
border: 1px solid transparent;
|
|
178
|
+
border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
|
|
179
179
|
padding: 8px 10px;
|
|
180
180
|
background: color-mix(in srgb, var(--ui-chart-surface) 95%, transparent);
|
|
181
181
|
min-inline-size: 0;
|
|
@@ -194,26 +194,26 @@ const V = 180, Z = `
|
|
|
194
194
|
.metric-value {
|
|
195
195
|
font-size: 14px;
|
|
196
196
|
line-height: 1.2;
|
|
197
|
-
font-weight:
|
|
197
|
+
font-weight: 600;
|
|
198
198
|
overflow: hidden;
|
|
199
199
|
text-overflow: ellipsis;
|
|
200
200
|
white-space: nowrap;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
.metric-value[data-tone="up"] {
|
|
204
|
-
color: var(--ui-chart-success);
|
|
204
|
+
color: color-mix(in srgb, var(--ui-chart-success) 68%, var(--ui-chart-text));
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
.metric-value[data-tone="down"] {
|
|
208
|
-
color: var(--ui-chart-danger);
|
|
208
|
+
color: color-mix(in srgb, var(--ui-chart-danger) 68%, var(--ui-chart-text));
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
.plot-shell {
|
|
212
212
|
position: relative;
|
|
213
213
|
inline-size: 100%;
|
|
214
214
|
min-inline-size: 0;
|
|
215
|
-
border: 1px solid
|
|
216
|
-
border-radius:
|
|
215
|
+
border: 1px solid transparent;
|
|
216
|
+
border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
|
|
217
217
|
background: color-mix(in srgb, var(--ui-chart-surface) 97%, transparent);
|
|
218
218
|
min-block-size: var(--ui-chart-plot-min-height);
|
|
219
219
|
block-size: var(--ui-chart-plot-height);
|
|
@@ -358,8 +358,8 @@ const V = 180, Z = `
|
|
|
358
358
|
min-inline-size: 132px;
|
|
359
359
|
max-inline-size: min(220px, calc(100% - 16px));
|
|
360
360
|
padding: 10px 12px;
|
|
361
|
-
border-radius:
|
|
362
|
-
border: 1px solid
|
|
361
|
+
border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
|
|
362
|
+
border: 1px solid transparent;
|
|
363
363
|
background: color-mix(in srgb, var(--ui-chart-surface) 98%, transparent);
|
|
364
364
|
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
|
|
365
365
|
color: var(--ui-chart-text);
|
|
@@ -372,7 +372,7 @@ const V = 180, Z = `
|
|
|
372
372
|
.tooltip-title {
|
|
373
373
|
font-size: 12px;
|
|
374
374
|
line-height: 1.2;
|
|
375
|
-
font-weight:
|
|
375
|
+
font-weight: 600;
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
.tooltip-list {
|
|
@@ -405,7 +405,7 @@ const V = 180, Z = `
|
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
.tooltip-value {
|
|
408
|
-
font-weight:
|
|
408
|
+
font-weight: 600;
|
|
409
409
|
color: var(--ui-chart-text);
|
|
410
410
|
white-space: nowrap;
|
|
411
411
|
}
|
|
@@ -415,8 +415,8 @@ const V = 180, Z = `
|
|
|
415
415
|
align-items: center;
|
|
416
416
|
justify-content: space-between;
|
|
417
417
|
gap: 10px;
|
|
418
|
-
border: 1px solid
|
|
419
|
-
border-radius:
|
|
418
|
+
border: 1px solid transparent;
|
|
419
|
+
border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
|
|
420
420
|
padding: 8px 10px;
|
|
421
421
|
font-size: 12px;
|
|
422
422
|
line-height: 1.35;
|
|
@@ -426,7 +426,7 @@ const V = 180, Z = `
|
|
|
426
426
|
|
|
427
427
|
.insight strong {
|
|
428
428
|
color: var(--ui-chart-text);
|
|
429
|
-
font-weight:
|
|
429
|
+
font-weight: 600;
|
|
430
430
|
}
|
|
431
431
|
|
|
432
432
|
.legend {
|
|
@@ -436,9 +436,9 @@ const V = 180, Z = `
|
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
.legend-item {
|
|
439
|
-
border: 1px solid
|
|
439
|
+
border: 1px solid transparent;
|
|
440
440
|
background: color-mix(in srgb, var(--ui-chart-surface) 94%, transparent);
|
|
441
|
-
border-radius:
|
|
441
|
+
border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
|
|
442
442
|
min-block-size: 30px;
|
|
443
443
|
display: inline-flex;
|
|
444
444
|
align-items: center;
|
|
@@ -481,7 +481,7 @@ const V = 180, Z = `
|
|
|
481
481
|
.empty,
|
|
482
482
|
.message {
|
|
483
483
|
border: 1px dashed color-mix(in srgb, var(--ui-chart-border) 78%, transparent);
|
|
484
|
-
border-radius:
|
|
484
|
+
border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
|
|
485
485
|
padding: 14px;
|
|
486
486
|
text-align: center;
|
|
487
487
|
font-size: 12px;
|
|
@@ -490,13 +490,13 @@ const V = 180, Z = `
|
|
|
490
490
|
}
|
|
491
491
|
|
|
492
492
|
.message[data-tone="error"] {
|
|
493
|
-
color: var(--ui-chart-danger);
|
|
493
|
+
color: color-mix(in srgb, var(--ui-chart-danger) 68%, var(--ui-chart-text));
|
|
494
494
|
border-color: color-mix(in srgb, var(--ui-chart-danger) 30%, var(--ui-chart-border));
|
|
495
495
|
background: color-mix(in srgb, var(--ui-chart-danger) 10%, transparent);
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
.message[data-tone="success"] {
|
|
499
|
-
color: var(--ui-chart-success);
|
|
499
|
+
color: color-mix(in srgb, var(--ui-chart-success) 68%, var(--ui-chart-text));
|
|
500
500
|
border-color: color-mix(in srgb, var(--ui-chart-success) 30%, var(--ui-chart-border));
|
|
501
501
|
background: color-mix(in srgb, var(--ui-chart-success) 10%, transparent);
|
|
502
502
|
}
|
|
@@ -639,11 +639,11 @@ function J(p, t, e) {
|
|
|
639
639
|
if (o && typeof o == "object") {
|
|
640
640
|
const n = Number(o.value);
|
|
641
641
|
if (!Number.isFinite(n)) return null;
|
|
642
|
-
const
|
|
642
|
+
const u = o.label, d = o.tone;
|
|
643
643
|
return {
|
|
644
|
-
label: typeof
|
|
644
|
+
label: typeof u == "string" && u.trim() ? u.trim() : String(s + 1),
|
|
645
645
|
value: n,
|
|
646
|
-
tone: typeof
|
|
646
|
+
tone: typeof d == "string" && d.trim() ? d.trim() : void 0
|
|
647
647
|
};
|
|
648
648
|
}
|
|
649
649
|
return null;
|
|
@@ -682,14 +682,14 @@ function Q(p) {
|
|
|
682
682
|
if (!a || typeof a != "object") return null;
|
|
683
683
|
const i = a.name, o = G(a.data);
|
|
684
684
|
if (!o.length) return null;
|
|
685
|
-
const s = a.tone, n = a.dash,
|
|
685
|
+
const s = a.tone, n = a.dash, u = Number(a.strokeWidth), d = Number(a.opacity), T = a.fill;
|
|
686
686
|
return {
|
|
687
687
|
name: typeof i == "string" && i.trim() ? i.trim() : `Series ${r + 1}`,
|
|
688
688
|
data: o,
|
|
689
689
|
tone: typeof s == "string" && s.trim() ? s.trim() : void 0,
|
|
690
690
|
dash: typeof n == "string" && n.trim() ? n.trim() : void 0,
|
|
691
|
-
strokeWidth: Number.isFinite(
|
|
692
|
-
opacity: Number.isFinite(
|
|
691
|
+
strokeWidth: Number.isFinite(u) && u > 0 ? u : void 0,
|
|
692
|
+
opacity: Number.isFinite(d) && d > 0 ? d : void 0,
|
|
693
693
|
fill: typeof T == "boolean" ? T : void 0
|
|
694
694
|
};
|
|
695
695
|
}).filter((a) => !!a) : [];
|
|
@@ -709,28 +709,28 @@ function tt(p) {
|
|
|
709
709
|
}
|
|
710
710
|
function et(p, t) {
|
|
711
711
|
const a = (p.length ? p : t.length ? [{ name: "Series 1", data: t }] : []).map((n) => {
|
|
712
|
-
const
|
|
712
|
+
const u = tt(n.data);
|
|
713
713
|
return {
|
|
714
714
|
name: n.name,
|
|
715
|
-
data:
|
|
715
|
+
data: u.points,
|
|
716
716
|
tone: n.tone,
|
|
717
717
|
fill: n.fill,
|
|
718
718
|
dash: n.dash,
|
|
719
719
|
strokeWidth: n.strokeWidth,
|
|
720
720
|
opacity: n.opacity,
|
|
721
|
-
truncated:
|
|
721
|
+
truncated: u.truncated
|
|
722
722
|
};
|
|
723
723
|
}).filter((n) => n.data.length > 0), r = /* @__PURE__ */ new Set();
|
|
724
724
|
a.forEach((n) => {
|
|
725
|
-
n.data.forEach((
|
|
725
|
+
n.data.forEach((u) => r.add(u.label));
|
|
726
726
|
});
|
|
727
|
-
let i = Array.from(r), o = a.reduce((n,
|
|
727
|
+
let i = Array.from(r), o = a.reduce((n, u) => Math.max(n, u.truncated), 0);
|
|
728
728
|
i.length > V && (o += i.length - V, i = i.slice(i.length - V));
|
|
729
729
|
const s = a.map((n) => {
|
|
730
|
-
const
|
|
730
|
+
const u = new Set(i);
|
|
731
731
|
return {
|
|
732
732
|
name: n.name,
|
|
733
|
-
data: n.data.filter((
|
|
733
|
+
data: n.data.filter((d) => u.has(d.label)),
|
|
734
734
|
tone: n.tone,
|
|
735
735
|
fill: n.fill,
|
|
736
736
|
dash: n.dash,
|
|
@@ -816,23 +816,23 @@ class it extends Y {
|
|
|
816
816
|
return this.getAttribute("value-suffix") || "";
|
|
817
817
|
}
|
|
818
818
|
_resolveStats(t) {
|
|
819
|
-
const e = t.map((
|
|
820
|
-
return { total: a, average: r, min: i, max: o, delta: s, deltaPct:
|
|
819
|
+
const e = t.map((d) => d.value), a = e.reduce((d, T) => d + T, 0), r = e.length ? a / e.length : 0, i = e.length ? Math.min(...e) : 0, o = e.length ? Math.max(...e) : 0, s = e.length > 1 ? e[e.length - 1] - e[0] : 0, n = e[0] || 0, u = n !== 0 ? s / Math.abs(n) * 100 : null;
|
|
820
|
+
return { total: a, average: r, min: i, max: o, delta: s, deltaPct: u };
|
|
821
821
|
}
|
|
822
822
|
_valueDomain(t, e) {
|
|
823
|
-
const a = !!e?.includeZero, r = e?.fitPadding ?? 0.14, i = t.map((
|
|
823
|
+
const a = !!e?.includeZero, r = e?.fitPadding ?? 0.14, i = t.map((d) => d.value);
|
|
824
824
|
let o = Math.min(...i), s = Math.max(...i);
|
|
825
825
|
a && (o = Math.min(0, o), s = Math.max(0, s));
|
|
826
826
|
let n = s - o;
|
|
827
827
|
if (n <= 0) {
|
|
828
|
-
const
|
|
829
|
-
o -=
|
|
828
|
+
const d = Math.max(Math.abs(s) * 0.12, 1);
|
|
829
|
+
o -= d, s += d, n = s - o;
|
|
830
830
|
} else {
|
|
831
|
-
const
|
|
832
|
-
a ? (o -=
|
|
831
|
+
const d = n * r;
|
|
832
|
+
a ? (o -= d * 0.25, s += d) : (o -= d, s += d), n = s - o;
|
|
833
833
|
}
|
|
834
|
-
const
|
|
835
|
-
return { min: o, max: s, span: n, zeroInDomain:
|
|
834
|
+
const u = o <= 0 && s >= 0;
|
|
835
|
+
return { min: o, max: s, span: n, zeroInDomain: u };
|
|
836
836
|
}
|
|
837
837
|
_formatValue(t, e) {
|
|
838
838
|
const a = this._valuePrefix(), r = this._valueSuffix();
|
|
@@ -868,16 +868,16 @@ class it extends Y {
|
|
|
868
868
|
if (!i) return null;
|
|
869
869
|
const o = e.labels[t];
|
|
870
870
|
if (!o) return null;
|
|
871
|
-
const s = i.data.find((
|
|
871
|
+
const s = i.data.find((d) => d.label === o) || i.data[t];
|
|
872
872
|
if (!s) return null;
|
|
873
|
-
const n = this._resolveStats(i.data),
|
|
873
|
+
const n = this._resolveStats(i.data), u = this._seriesValueDetails(e.labels, e.series, t);
|
|
874
874
|
return {
|
|
875
875
|
index: t,
|
|
876
876
|
label: o,
|
|
877
877
|
value: s.value,
|
|
878
878
|
tone: s.tone || this._seriesTone(i, 0),
|
|
879
879
|
series: i.name,
|
|
880
|
-
seriesValues:
|
|
880
|
+
seriesValues: u,
|
|
881
881
|
type: a,
|
|
882
882
|
total: n.total,
|
|
883
883
|
min: n.min,
|
|
@@ -989,11 +989,11 @@ class it extends Y {
|
|
|
989
989
|
return [1, 0.75, 0.5, 0.25, 0].map((a) => this._formatValue(t + (e - t) * a));
|
|
990
990
|
}
|
|
991
991
|
_plotCartesian(t, e, a) {
|
|
992
|
-
const $ = t.labels, P = t.series, w = e === "bar",
|
|
992
|
+
const $ = t.labels, P = t.series, w = e === "bar", v = P.flatMap((g) => g.data.map((x) => x.value)), y = this._valueDomain(v.map((g, x) => ({ label: String(x), value: g })), { includeZero: w }), F = y.min, l = y.max, b = y.span, f = $.length > 1 ? 208 / ($.length - 1) : 0, S = y.zeroInDomain ? 0 : F, h = 6 + (l - S) / b * 48, k = [0, 0.25, 0.5, 0.75, 1].map((g) => {
|
|
993
993
|
const x = 6 + 48 * g, I = y.zeroInDomain && Math.abs(x - h) < 0.5;
|
|
994
994
|
return `<line x1="8" y1="${x.toFixed(2)}" x2="${216 .toFixed(2)}" y2="${x.toFixed(2)}" stroke="var(--ui-chart-grid)" stroke-width="${I ? "0.75" : "0.45"}" />`;
|
|
995
995
|
}).join(""), L = P.map((g) => new Map(g.data.map((x) => [x.label, x]))), j = $.map((g, x) => {
|
|
996
|
-
const I = 8 + f * x, D = L.map((z) => z.get(g)).filter((z) => !!z).map((z) => 6 + (l - z.value) /
|
|
996
|
+
const I = 8 + f * x, D = L.map((z) => z.get(g)).filter((z) => !!z).map((z) => 6 + (l - z.value) / b * 48), C = D.length ? Math.min(...D) : 6 + 48 / 2;
|
|
997
997
|
return {
|
|
998
998
|
xPct: M(I / 220 * 100, 0, 100),
|
|
999
999
|
yPct: M(C / 64 * 100, 0, 100)
|
|
@@ -1008,7 +1008,7 @@ class it extends Y {
|
|
|
1008
1008
|
return $.map((O, H) => {
|
|
1009
1009
|
const W = L[z].get(O);
|
|
1010
1010
|
if (!W) return "";
|
|
1011
|
-
const m = 8 + H * g + (g - x) / 2 + I * z, _ = 6 + (l - W.value) /
|
|
1011
|
+
const m = 8 + H * g + (g - x) / 2 + I * z, _ = 6 + (l - W.value) / b * 48, A = Math.min(_, h), R = Math.max(1, Math.abs(h - _)), B = a === H, X = a == null || B ? C.opacity ?? 1 : 0.72;
|
|
1012
1012
|
return `<rect x="${m.toFixed(2)}" y="${A.toFixed(2)}" width="${Math.max(2, I - 1).toFixed(2)}" height="${R.toFixed(2)}" rx="1.4" fill="${c(N)}" opacity="${X}" />`;
|
|
1013
1013
|
}).join("");
|
|
1014
1014
|
}).join("");
|
|
@@ -1026,7 +1026,7 @@ class it extends Y {
|
|
|
1026
1026
|
}
|
|
1027
1027
|
const U = P.map((g, x) => {
|
|
1028
1028
|
const I = this._seriesTone(g, x), D = $.map((m, _) => {
|
|
1029
|
-
const A = L[x].get(m) || null, R = 8 + f * _, B = A ? 6 + (l - A.value) /
|
|
1029
|
+
const A = L[x].get(m) || null, R = 8 + f * _, B = A ? 6 + (l - A.value) / b * 48 : null;
|
|
1030
1030
|
return { x: R, y: B, point: A, index: _ };
|
|
1031
1031
|
}), C = [];
|
|
1032
1032
|
let z = [];
|
|
@@ -1061,21 +1061,21 @@ class it extends Y {
|
|
|
1061
1061
|
};
|
|
1062
1062
|
}
|
|
1063
1063
|
_plotRadial(t, e) {
|
|
1064
|
-
const n = t.map((l) => l.value),
|
|
1065
|
-
const f = -Math.PI / 2 + Math.PI * 2 *
|
|
1066
|
-
return { x: k, y: L, point: l, index:
|
|
1067
|
-
}), P = $.map((l,
|
|
1068
|
-
const
|
|
1069
|
-
return `<circle cx="${l.x.toFixed(2)}" cy="${l.y.toFixed(2)}" r="${f ? "2.35" : "1.85"}" fill="${c(
|
|
1064
|
+
const n = t.map((l) => l.value), u = Math.min(...n), d = Math.max(...n), T = Math.max(1, d - u), $ = t.map((l, b) => {
|
|
1065
|
+
const f = -Math.PI / 2 + Math.PI * 2 * b / t.length, h = 10 + (l.value - u) / T * 18, k = 32 + Math.cos(f) * h, L = 32 + Math.sin(f) * h;
|
|
1066
|
+
return { x: k, y: L, point: l, index: b, angle: f };
|
|
1067
|
+
}), P = $.map((l, b) => `${b === 0 ? "M" : "L"}${l.x.toFixed(2)} ${l.y.toFixed(2)}`).join(" ") + " Z", w = [0.25, 0.5, 0.75, 1].map((l) => `<circle cx="32" cy="32" r="${(10 + l * 18).toFixed(2)}" fill="none" stroke="var(--ui-chart-grid)" stroke-width="0.45" />`).join(""), v = $.map((l) => `<line x1="32" y1="32" x2="${(32 + Math.cos(l.angle) * 28).toFixed(2)}" y2="${(32 + Math.sin(l.angle) * 28).toFixed(2)}" stroke="var(--ui-chart-grid)" stroke-width="0.45" />`).join(""), y = $.map((l) => {
|
|
1068
|
+
const b = this._pointTone(l.point, l.index), f = e === l.index;
|
|
1069
|
+
return `<circle cx="${l.x.toFixed(2)}" cy="${l.y.toFixed(2)}" r="${f ? "2.35" : "1.85"}" fill="${c(b)}" opacity="${e == null || f ? "1" : "0.74"}" />`;
|
|
1070
1070
|
}).join(""), F = $.map((l) => {
|
|
1071
|
-
const
|
|
1072
|
-
return `<button type="button" class="plot-hit" data-role="plot-hit" data-point-index="${l.index}" data-active="${S ? "true" : "false"}" style="--x:${
|
|
1071
|
+
const b = M(l.x / 64 * 100, 0, 100).toFixed(3), f = M(l.y / 64 * 100, 0, 100).toFixed(3), S = e === l.index, h = `${l.point.label}: ${this._formatValue(l.point.value)}`;
|
|
1072
|
+
return `<button type="button" class="plot-hit" data-role="plot-hit" data-point-index="${l.index}" data-active="${S ? "true" : "false"}" style="--x:${b};--y:${f};" aria-label="${c(h)}" ${this._isInteractive() ? "" : "disabled"}></button>`;
|
|
1073
1073
|
}).join("");
|
|
1074
1074
|
return {
|
|
1075
1075
|
svg: `
|
|
1076
1076
|
<svg class="plot" part="plot" viewBox="0 0 64 64" width="100%" height="100%" role="img" aria-label="${c(this._ariaLabel())}" preserveAspectRatio="xMidYMid meet">
|
|
1077
1077
|
${w}
|
|
1078
|
-
${
|
|
1078
|
+
${v}
|
|
1079
1079
|
<path d="${P}" fill="color-mix(in srgb, var(--ui-chart-accent) 16%, transparent)" stroke="var(--ui-chart-accent)" stroke-width="1.2" />
|
|
1080
1080
|
${y}
|
|
1081
1081
|
</svg>
|
|
@@ -1089,32 +1089,32 @@ class it extends Y {
|
|
|
1089
1089
|
};
|
|
1090
1090
|
}
|
|
1091
1091
|
_plotDonut(t, e) {
|
|
1092
|
-
const a = t.reduce((w,
|
|
1093
|
-
let
|
|
1094
|
-
const T = t.map((w,
|
|
1095
|
-
const l = Math.max(0, w.value) / r *
|
|
1092
|
+
const a = t.reduce((w, v) => w + Math.max(0, v.value), 0), r = Math.max(1, a), i = 18, o = 7, s = 32, n = 32, u = 2 * Math.PI * i;
|
|
1093
|
+
let d = 0;
|
|
1094
|
+
const T = t.map((w, v) => {
|
|
1095
|
+
const l = Math.max(0, w.value) / r * u, b = this._pointTone(w, v), f = e === v, S = e == null || f ? "1" : "0.7", h = `
|
|
1096
1096
|
<circle
|
|
1097
1097
|
cx="${s}"
|
|
1098
1098
|
cy="${n}"
|
|
1099
1099
|
r="${i}"
|
|
1100
1100
|
fill="none"
|
|
1101
|
-
stroke="${c(
|
|
1101
|
+
stroke="${c(b)}"
|
|
1102
1102
|
stroke-width="${f ? o + 0.8 : o}"
|
|
1103
|
-
stroke-dasharray="${l.toFixed(3)} ${(
|
|
1104
|
-
stroke-dashoffset="${(-
|
|
1103
|
+
stroke-dasharray="${l.toFixed(3)} ${(u - l).toFixed(3)}"
|
|
1104
|
+
stroke-dashoffset="${(-d).toFixed(3)}"
|
|
1105
1105
|
transform="rotate(-90 ${s} ${n})"
|
|
1106
1106
|
stroke-linecap="round"
|
|
1107
1107
|
opacity="${S}"
|
|
1108
1108
|
/>
|
|
1109
1109
|
`;
|
|
1110
|
-
return
|
|
1110
|
+
return d += l, h;
|
|
1111
1111
|
}).join("");
|
|
1112
1112
|
let $ = 0;
|
|
1113
|
-
const P = t.map((w,
|
|
1114
|
-
const y = Math.max(0, w.value), l = y / r * Math.PI * 2,
|
|
1113
|
+
const P = t.map((w, v) => {
|
|
1114
|
+
const y = Math.max(0, w.value), l = y / r * Math.PI * 2, b = -Math.PI / 2 + $ + l / 2, f = s + Math.cos(b) * (i + 6), S = n + Math.sin(b) * (i + 6);
|
|
1115
1115
|
$ += l;
|
|
1116
|
-
const h = M(f / 64 * 100, 0, 100).toFixed(3), k = M(S / 64 * 100, 0, 100).toFixed(3), L = e ===
|
|
1117
|
-
return `<button type="button" class="plot-hit" data-role="plot-hit" data-point-index="${
|
|
1116
|
+
const h = M(f / 64 * 100, 0, 100).toFixed(3), k = M(S / 64 * 100, 0, 100).toFixed(3), L = e === v, j = r > 0 ? y / r * 100 : 0, E = `${w.label}: ${this._formatValue(w.value)} (${this._formatValue(j, { maximumFractionDigits: 1 })}%)`;
|
|
1117
|
+
return `<button type="button" class="plot-hit" data-role="plot-hit" data-point-index="${v}" data-active="${L ? "true" : "false"}" style="--x:${h};--y:${k};" aria-label="${c(E)}" ${this._isInteractive() ? "" : "disabled"}></button>`;
|
|
1118
1118
|
}).join("");
|
|
1119
1119
|
return {
|
|
1120
1120
|
svg: `
|
|
@@ -1126,11 +1126,11 @@ class it extends Y {
|
|
|
1126
1126
|
</svg>
|
|
1127
1127
|
`,
|
|
1128
1128
|
hits: P,
|
|
1129
|
-
anchors: t.map((w,
|
|
1129
|
+
anchors: t.map((w, v) => {
|
|
1130
1130
|
let y = 0;
|
|
1131
|
-
for (let F = 0; F <=
|
|
1131
|
+
for (let F = 0; F <= v; F += 1) {
|
|
1132
1132
|
const f = Math.max(0, t[F].value) / r * Math.PI * 2;
|
|
1133
|
-
if (F ===
|
|
1133
|
+
if (F === v) {
|
|
1134
1134
|
const S = -Math.PI / 2 + y + f / 2, h = s + Math.cos(S) * (i + 6), k = n + Math.sin(S) * (i + 6);
|
|
1135
1135
|
return {
|
|
1136
1136
|
xPct: M(h / 64 * 100, 0, 100),
|
|
@@ -1188,11 +1188,11 @@ class it extends Y {
|
|
|
1188
1188
|
if (!e) return "";
|
|
1189
1189
|
const a = this._activeIndex;
|
|
1190
1190
|
if (a == null || !t.labels[a]) {
|
|
1191
|
-
const s = this._resolveStats(e.data), n = s.delta > 0 ? "up" : s.delta < 0 ? "down" : "flat",
|
|
1191
|
+
const s = this._resolveStats(e.data), n = s.delta > 0 ? "up" : s.delta < 0 ? "down" : "flat", u = `${s.delta >= 0 ? "+" : ""}${this._formatValue(s.delta)}${s.deltaPct == null ? "" : ` (${s.deltaPct >= 0 ? "+" : ""}${this._formatValue(s.deltaPct, { maximumFractionDigits: 1 })}%)`}`;
|
|
1192
1192
|
return `
|
|
1193
1193
|
<div class="insight" part="insight">
|
|
1194
1194
|
<span>Range <strong>${this._formatValue(s.min)}</strong> to <strong>${this._formatValue(s.max)}</strong></span>
|
|
1195
|
-
<strong data-tone="${n}">${c(
|
|
1195
|
+
<strong data-tone="${n}">${c(u)}</strong>
|
|
1196
1196
|
</div>
|
|
1197
1197
|
`;
|
|
1198
1198
|
}
|
|
@@ -1205,7 +1205,7 @@ class it extends Y {
|
|
|
1205
1205
|
`;
|
|
1206
1206
|
}
|
|
1207
1207
|
render() {
|
|
1208
|
-
const t = this._data(), e = this._primarySeries(t), a = this._type(), r = this._state(), i = this._isDisabled(), o = this._isInteractive(), s = (this.getAttribute("title") || "").trim(), n = (this.getAttribute("subtitle") || "").trim(),
|
|
1208
|
+
const t = this._data(), e = this._primarySeries(t), a = this._type(), r = this._state(), i = this._isDisabled(), o = this._isInteractive(), s = (this.getAttribute("title") || "").trim(), n = (this.getAttribute("subtitle") || "").trim(), u = this._showLegend(), d = this._showSummary(), T = this._hasToolbarSlot(), $ = this._hasSlot("title"), P = this._hasSlot("subtitle"), w = $ || P || !!s || !!n || r !== "idle";
|
|
1209
1209
|
if (!e || !t.labels.length) {
|
|
1210
1210
|
const h = r === "error" ? "Chart data failed to load" : "No series data available";
|
|
1211
1211
|
this.setContent(`
|
|
@@ -1227,7 +1227,7 @@ class it extends Y {
|
|
|
1227
1227
|
return;
|
|
1228
1228
|
}
|
|
1229
1229
|
this._activeIndex != null && (this._activeIndex < 0 || this._activeIndex >= t.labels.length) && (this._activeIndex = null, this._activePinned = !1);
|
|
1230
|
-
const
|
|
1230
|
+
const v = this._resolveStats(e.data), y = this._plot(t, a, this._activeIndex), F = this._axisXLabels(t.labels), l = t.series.length > 1 ? t.series.map(
|
|
1231
1231
|
(h, k) => `
|
|
1232
1232
|
<div class="legend-item" aria-label="${c(h.name)}">
|
|
1233
1233
|
<span class="legend-dot" style="--dot:${c(this._seriesTone(h, k))};"></span>
|
|
@@ -1250,7 +1250,7 @@ class it extends Y {
|
|
|
1250
1250
|
<span>${c(h.label)}</span>
|
|
1251
1251
|
</button>
|
|
1252
1252
|
`;
|
|
1253
|
-
}).join(""),
|
|
1253
|
+
}).join(""), b = v.delta > 0 ? "up" : v.delta < 0 ? "down" : "flat", f = `${v.delta >= 0 ? "+" : ""}${this._formatValue(v.delta)}`, S = r === "error" ? '<div class="message" part="message" data-tone="error">Data source returned partial metrics. Review upstream mapping.</div>' : r === "success" ? '<div class="message" part="message" data-tone="success">Data pipeline healthy. All metrics are up to date.</div>' : "";
|
|
1254
1254
|
this.setContent(`
|
|
1255
1255
|
<style>${Z}</style>
|
|
1256
1256
|
<section
|
|
@@ -1274,23 +1274,23 @@ class it extends Y {
|
|
|
1274
1274
|
<span class="status-pill" data-state="${r}">${K(r)}</span>
|
|
1275
1275
|
</header>
|
|
1276
1276
|
|
|
1277
|
-
${
|
|
1277
|
+
${d ? `
|
|
1278
1278
|
<section class="summary" part="summary">
|
|
1279
1279
|
<div class="metric" part="metric">
|
|
1280
1280
|
<span class="metric-label">Total</span>
|
|
1281
|
-
<span class="metric-value">${c(this._formatValue(
|
|
1281
|
+
<span class="metric-value">${c(this._formatValue(v.total))}</span>
|
|
1282
1282
|
</div>
|
|
1283
1283
|
<div class="metric" part="metric">
|
|
1284
1284
|
<span class="metric-label">Average</span>
|
|
1285
|
-
<span class="metric-value">${c(this._formatValue(
|
|
1285
|
+
<span class="metric-value">${c(this._formatValue(v.average))}</span>
|
|
1286
1286
|
</div>
|
|
1287
1287
|
<div class="metric" part="metric">
|
|
1288
1288
|
<span class="metric-label">Peak</span>
|
|
1289
|
-
<span class="metric-value">${c(this._formatValue(
|
|
1289
|
+
<span class="metric-value">${c(this._formatValue(v.max))}</span>
|
|
1290
1290
|
</div>
|
|
1291
1291
|
<div class="metric" part="metric">
|
|
1292
1292
|
<span class="metric-label">Delta</span>
|
|
1293
|
-
<span class="metric-value" data-tone="${
|
|
1293
|
+
<span class="metric-value" data-tone="${b}">${c(f)}</span>
|
|
1294
1294
|
</div>
|
|
1295
1295
|
</section>
|
|
1296
1296
|
` : ""}
|
|
@@ -1320,7 +1320,7 @@ class it extends Y {
|
|
|
1320
1320
|
|
|
1321
1321
|
${this._activeInsight(t)}
|
|
1322
1322
|
|
|
1323
|
-
${
|
|
1323
|
+
${u ? `<section class="legend" part="legend">${l}</section>` : ""}
|
|
1324
1324
|
|
|
1325
1325
|
${t.truncated > 0 ? `<div class="message" part="message">Showing last ${t.truncated + t.labels.length} records (truncated to ${V}).</div>` : ""}
|
|
1326
1326
|
|
package/dist/checkbox.cjs.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./ElementBase-DxbvhLJs.js"),n=`
|
|
2
2
|
:host {
|
|
3
|
-
--ui-checkbox-size:
|
|
3
|
+
--ui-checkbox-size: 16px;
|
|
4
4
|
--ui-checkbox-hit-area: 24px;
|
|
5
|
-
--ui-checkbox-radius:
|
|
6
|
-
--ui-checkbox-border:
|
|
7
|
-
--ui-checkbox-background: var(--ui-bg, var(--ui-color-surface, #ffffff));
|
|
8
|
-
--ui-checkbox-check-color: #ffffff;
|
|
5
|
+
--ui-checkbox-radius: calc(var(--ui-radius, 6px) - 2px);
|
|
6
|
+
--ui-checkbox-border: 1px solid var(--ui-color-line-strong, var(--ui-color-border, #cbd5e1));
|
|
7
|
+
--ui-checkbox-background: var(--ui-bg, var(--color-panel-solid, var(--ui-color-surface, #ffffff)));
|
|
8
|
+
--ui-checkbox-check-color: var(--ui-color-foreground-on-primary, #ffffff);
|
|
9
9
|
--ui-checkbox-checked-background: var(--ui-primary, var(--ui-color-primary, #2563eb));
|
|
10
|
-
--ui-checkbox-checked-border: var(--ui-checkbox-
|
|
11
|
-
--ui-checkbox-indeterminate-bg:
|
|
12
|
-
--ui-checkbox-indeterminate-border:
|
|
13
|
-
--ui-checkbox-invalid-border:
|
|
14
|
-
--ui-checkbox-invalid-focus: 0 0 0
|
|
15
|
-
--ui-checkbox-focus: 0 0 0
|
|
10
|
+
--ui-checkbox-checked-border: 1px solid var(--ui-checkbox-checked-background);
|
|
11
|
+
--ui-checkbox-indeterminate-bg: var(--ui-checkbox-checked-background);
|
|
12
|
+
--ui-checkbox-indeterminate-border: 1px solid var(--ui-checkbox-checked-background);
|
|
13
|
+
--ui-checkbox-invalid-border: 1px solid var(--ui-color-danger, #dc2626);
|
|
14
|
+
--ui-checkbox-invalid-focus: 0 0 0 2px var(--ui-color-background, #ffffff), 0 0 0 4px var(--ui-color-danger, #dc2626);
|
|
15
|
+
--ui-checkbox-focus: 0 0 0 2px var(--ui-color-background, #ffffff), 0 0 0 4px var(--ui-ring-color, var(--ui-color-focus-ring, #2563eb));
|
|
16
16
|
--ui-checkbox-shadow: none;
|
|
17
17
|
--ui-checkbox-shadow-checked: none;
|
|
18
18
|
--ui-checkbox-disabled-bg: color-mix(in srgb, var(--ui-color-surface-alt, #f1f5f9) 88%, #ffffff 12%);
|
|
19
|
-
--ui-checkbox-disabled-border:
|
|
19
|
+
--ui-checkbox-disabled-border: 1px solid var(--ui-color-line, var(--ui-color-border, #cbd5e1));
|
|
20
20
|
--ui-checkbox-label-color: var(--ui-color-text, var(--ui-text, #0f172a));
|
|
21
21
|
--ui-checkbox-muted: var(--ui-color-muted, #526175);
|
|
22
22
|
--ui-checkbox-duration: 170ms;
|
|
@@ -208,9 +208,13 @@
|
|
|
208
208
|
box-shadow: var(--ui-checkbox-focus);
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
:host(:not([disabled]):not([loading]):hover) .control {
|
|
212
|
-
|
|
213
|
-
|
|
211
|
+
:host(:not([disabled]):not([loading]):not([checked]):not([indeterminate]):hover) .control {
|
|
212
|
+
border-color: var(--ui-color-text-secondary, #64748b);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
:host(:not([disabled]):not([loading])[checked]:hover) .control,
|
|
216
|
+
:host(:not([disabled]):not([loading])[indeterminate]:hover) .control {
|
|
217
|
+
background: color-mix(in srgb, var(--ui-checkbox-checked-background) 88%, var(--ui-color-text-strong, #0f172a));
|
|
214
218
|
}
|
|
215
219
|
|
|
216
220
|
:host(:not([disabled]):not([loading]):active) .control {
|
package/dist/checkbox.esm.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { E as a } from "./ElementBase-BeZT54Hj.mjs";
|
|
2
2
|
const s = `
|
|
3
3
|
:host {
|
|
4
|
-
--ui-checkbox-size:
|
|
4
|
+
--ui-checkbox-size: 16px;
|
|
5
5
|
--ui-checkbox-hit-area: 24px;
|
|
6
|
-
--ui-checkbox-radius:
|
|
7
|
-
--ui-checkbox-border:
|
|
8
|
-
--ui-checkbox-background: var(--ui-bg, var(--ui-color-surface, #ffffff));
|
|
9
|
-
--ui-checkbox-check-color: #ffffff;
|
|
6
|
+
--ui-checkbox-radius: calc(var(--ui-radius, 6px) - 2px);
|
|
7
|
+
--ui-checkbox-border: 1px solid var(--ui-color-line-strong, var(--ui-color-border, #cbd5e1));
|
|
8
|
+
--ui-checkbox-background: var(--ui-bg, var(--color-panel-solid, var(--ui-color-surface, #ffffff)));
|
|
9
|
+
--ui-checkbox-check-color: var(--ui-color-foreground-on-primary, #ffffff);
|
|
10
10
|
--ui-checkbox-checked-background: var(--ui-primary, var(--ui-color-primary, #2563eb));
|
|
11
|
-
--ui-checkbox-checked-border: var(--ui-checkbox-
|
|
12
|
-
--ui-checkbox-indeterminate-bg:
|
|
13
|
-
--ui-checkbox-indeterminate-border:
|
|
14
|
-
--ui-checkbox-invalid-border:
|
|
15
|
-
--ui-checkbox-invalid-focus: 0 0 0
|
|
16
|
-
--ui-checkbox-focus: 0 0 0
|
|
11
|
+
--ui-checkbox-checked-border: 1px solid var(--ui-checkbox-checked-background);
|
|
12
|
+
--ui-checkbox-indeterminate-bg: var(--ui-checkbox-checked-background);
|
|
13
|
+
--ui-checkbox-indeterminate-border: 1px solid var(--ui-checkbox-checked-background);
|
|
14
|
+
--ui-checkbox-invalid-border: 1px solid var(--ui-color-danger, #dc2626);
|
|
15
|
+
--ui-checkbox-invalid-focus: 0 0 0 2px var(--ui-color-background, #ffffff), 0 0 0 4px var(--ui-color-danger, #dc2626);
|
|
16
|
+
--ui-checkbox-focus: 0 0 0 2px var(--ui-color-background, #ffffff), 0 0 0 4px var(--ui-ring-color, var(--ui-color-focus-ring, #2563eb));
|
|
17
17
|
--ui-checkbox-shadow: none;
|
|
18
18
|
--ui-checkbox-shadow-checked: none;
|
|
19
19
|
--ui-checkbox-disabled-bg: color-mix(in srgb, var(--ui-color-surface-alt, #f1f5f9) 88%, #ffffff 12%);
|
|
20
|
-
--ui-checkbox-disabled-border:
|
|
20
|
+
--ui-checkbox-disabled-border: 1px solid var(--ui-color-line, var(--ui-color-border, #cbd5e1));
|
|
21
21
|
--ui-checkbox-label-color: var(--ui-color-text, var(--ui-text, #0f172a));
|
|
22
22
|
--ui-checkbox-muted: var(--ui-color-muted, #526175);
|
|
23
23
|
--ui-checkbox-duration: 170ms;
|
|
@@ -209,9 +209,13 @@ const s = `
|
|
|
209
209
|
box-shadow: var(--ui-checkbox-focus);
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
:host(:not([disabled]):not([loading]):hover) .control {
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
:host(:not([disabled]):not([loading]):not([checked]):not([indeterminate]):hover) .control {
|
|
213
|
+
border-color: var(--ui-color-text-secondary, #64748b);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
:host(:not([disabled]):not([loading])[checked]:hover) .control,
|
|
217
|
+
:host(:not([disabled]):not([loading])[indeterminate]:hover) .control {
|
|
218
|
+
background: color-mix(in srgb, var(--ui-checkbox-checked-background) 88%, var(--ui-color-text-strong, #0f172a));
|
|
215
219
|
}
|
|
216
220
|
|
|
217
221
|
:host(:not([disabled]):not([loading]):active) .control {
|