@editora/ui-core 0.1.25 → 0.2.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/README.md +132 -0
- package/dist/accordion.cjs.js +13 -12
- package/dist/accordion.esm.js +13 -12
- package/dist/alert-dialog.cjs.js +92 -53
- package/dist/alert-dialog.esm.js +211 -159
- package/dist/alert.cjs.js +42 -33
- package/dist/alert.esm.js +80 -71
- 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 +9 -9
- package/dist/animated-text.esm.js +9 -9
- package/dist/app-header.cjs.js +17 -12
- package/dist/app-header.esm.js +18 -13
- package/dist/aspect-ratio.cjs.js +10 -12
- package/dist/aspect-ratio.esm.js +11 -13
- package/dist/avatar.cjs.js +16 -20
- package/dist/avatar.esm.js +16 -20
- 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-D-mXMgqc.js → calendar-CzpWDxLc.js} +56 -46
- package/dist/{calendar-B3PUKHQm.mjs → calendar-DkSDFg33.mjs} +127 -117
- 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 +58 -52
- package/dist/chart.esm.js +101 -95
- package/dist/checkbox.cjs.js +19 -15
- package/dist/checkbox.esm.js +19 -15
- package/dist/collapsible.cjs.js +9 -13
- package/dist/collapsible.esm.js +9 -13
- package/dist/color-picker.cjs.js +38 -19
- package/dist/color-picker.esm.js +134 -115
- package/dist/combobox.cjs.js +60 -57
- package/dist/combobox.esm.js +96 -92
- 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/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-app-header.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-chart.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.map +1 -1
- package/dist/components/ui-hover-card.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-sidebar.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 +21 -18
- package/dist/data-table.esm.js +210 -190
- package/dist/date-field.cjs.js +9 -9
- package/dist/date-field.esm.js +19 -19
- package/dist/date-picker.cjs.js +29 -20
- package/dist/date-picker.esm.js +59 -50
- package/dist/date-range-picker.cjs.js +24 -19
- package/dist/date-range-picker.esm.js +86 -81
- package/dist/date-range-time-picker.cjs.js +27 -20
- package/dist/date-range-time-picker.esm.js +24 -17
- package/dist/date-time-picker.cjs.js +24 -17
- package/dist/date-time-picker.esm.js +89 -82
- package/dist/date-time-utils-C-4eHTyy.js +1 -0
- package/dist/{date-time-utils-BTlxnz5j.mjs → date-time-utils-zAx4ghvC.mjs} +75 -68
- package/dist/description.cjs.js +4 -4
- package/dist/description.esm.js +4 -4
- package/dist/dialog.cjs.js +59 -43
- package/dist/dialog.esm.js +86 -53
- package/dist/direction-provider.cjs.js +1 -1
- package/dist/direction-provider.esm.js +1 -1
- 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-error.cjs.js +1 -1
- package/dist/field-error.esm.js +7 -7
- package/dist/field.cjs.js +23 -14
- package/dist/field.esm.js +30 -21
- package/dist/fieldset.cjs.js +16 -9
- package/dist/fieldset.esm.js +19 -12
- package/dist/file-upload.cjs.js +79 -37
- package/dist/file-upload.esm.js +154 -112
- package/dist/flex.cjs.js +2 -2
- package/dist/flex.esm.js +8 -8
- package/dist/floating-toolbar.cjs.js +6 -7
- package/dist/floating-toolbar.esm.js +8 -9
- package/dist/form.cjs.js +24 -27
- package/dist/form.esm.js +24 -27
- package/dist/gantt.cjs.js +13 -11
- package/dist/gantt.esm.js +13 -11
- package/dist/grid.cjs.js +1 -1
- package/dist/grid.esm.js +1 -1
- package/dist/hover-card.cjs.js +8 -8
- package/dist/hover-card.esm.js +18 -15
- 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 +50 -22
- package/dist/inline-edit.esm.js +77 -49
- package/dist/input.cjs.js +45 -38
- package/dist/input.esm.js +60 -53
- package/dist/label.cjs.js +6 -6
- package/dist/label.esm.js +6 -6
- 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/masonry-grid.cjs.js +2 -2
- package/dist/masonry-grid.esm.js +11 -11
- package/dist/{menu-item-styles-IGSFLAHu.mjs → menu-item-styles-CdqxPUuw.mjs} +15 -15
- package/dist/{menu-item-styles-B4onAr4C.js → menu-item-styles-DUdyjQ7i.js} +10 -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 +53 -40
- package/dist/multi-select.esm.js +87 -73
- package/dist/navigation-menu.cjs.js +10 -10
- package/dist/navigation-menu.esm.js +33 -33
- package/dist/number-field.cjs.js +28 -17
- package/dist/number-field.esm.js +37 -26
- package/dist/number-ticker.cjs.js +4 -4
- package/dist/number-ticker.esm.js +10 -10
- package/dist/odometer.cjs.js +9 -9
- package/dist/odometer.esm.js +17 -17
- 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 +39 -34
- package/dist/password-field.esm.js +63 -58
- package/dist/pin-input.cjs.js +18 -14
- package/dist/pin-input.esm.js +24 -20
- package/dist/placement-grid.cjs.js +1 -1
- package/dist/placement-grid.esm.js +1 -1
- 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.cjs.js +1 -1
- package/dist/portal.d.ts +3 -1
- package/dist/portal.d.ts.map +1 -1
- package/dist/portal.esm.js +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/presence.cjs.js +1 -1
- package/dist/presence.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 +14 -14
- package/dist/quick-actions.esm.js +12 -12
- package/dist/radio-group.cjs.js +50 -26
- package/dist/radio-group.esm.js +53 -29
- package/dist/radio.cjs.js +16 -13
- package/dist/radio.esm.js +16 -13
- package/dist/rating.cjs.js +11 -15
- package/dist/rating.esm.js +48 -50
- package/dist/{runtime-CFnK53iC.mjs → runtime-BRT7E4A8.mjs} +563 -531
- package/dist/runtime-CXw4SGV9.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 +42 -75
- package/dist/select.esm.js +57 -89
- 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/separator.cjs.js +6 -6
- package/dist/separator.esm.js +7 -7
- package/dist/sidebar.cjs.js +29 -28
- package/dist/sidebar.esm.js +32 -31
- 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/slot.cjs.js +1 -1
- package/dist/slot.esm.js +1 -1
- package/dist/sortable.cjs.js +10 -11
- package/dist/sortable.esm.js +10 -11
- package/dist/spinning-text.cjs.js +4 -13
- package/dist/spinning-text.esm.js +4 -13
- package/dist/split-button.cjs.js +7 -7
- package/dist/split-button.esm.js +17 -16
- 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 +101 -26
- package/dist/tabs.esm.js +187 -112
- package/dist/tags-input.cjs.js +43 -17
- package/dist/tags-input.esm.js +75 -49
- package/dist/textarea.cjs.js +34 -35
- package/dist/textarea.esm.js +50 -51
- package/dist/theme.d.ts +25 -1
- package/dist/theme.d.ts.map +1 -1
- package/dist/time-field.cjs.js +8 -8
- package/dist/time-field.esm.js +29 -29
- package/dist/time-picker.cjs.js +17 -14
- package/dist/time-picker.esm.js +28 -25
- package/dist/timeline.cjs.js +10 -10
- package/dist/timeline.esm.js +7 -7
- package/dist/toast.cjs.js +2 -2
- package/dist/toast.esm.js +2 -2
- 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 +37 -38
- package/dist/transfer-list.esm.js +32 -33
- 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 +51 -39
- package/dist/wizard.esm.js +51 -39
- 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,17 +1,20 @@
|
|
|
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);
|
|
10
10
|
--ui-chart-accent: var(--ui-color-primary, #2563eb);
|
|
11
11
|
--ui-chart-success: var(--ui-color-success, #15803d);
|
|
12
|
+
--ui-chart-success-text: var(--ui-color-success-text, color-mix(in srgb, var(--ui-chart-success) 74%, var(--ui-chart-text)));
|
|
13
|
+
--ui-chart-danger-text: var(--ui-color-danger-text, color-mix(in srgb, var(--ui-chart-danger) 74%, var(--ui-chart-text)));
|
|
14
|
+
--ui-chart-warning-text: var(--ui-color-warning-text, color-mix(in srgb, var(--ui-chart-warning) 74%, var(--ui-chart-text)));
|
|
12
15
|
--ui-chart-warning: var(--ui-color-warning, #b45309);
|
|
13
16
|
--ui-chart-danger: var(--ui-color-danger, #dc2626);
|
|
14
|
-
--ui-chart-radius:
|
|
17
|
+
--ui-chart-radius: calc(var(--ui-radius, 6px) + 4px);
|
|
15
18
|
--ui-chart-shadow: none;
|
|
16
19
|
--ui-chart-plot-height: 220px;
|
|
17
20
|
--ui-chart-plot-min-height: 188px;
|
|
@@ -28,7 +31,7 @@ const V = 180, Z = `
|
|
|
28
31
|
position: relative;
|
|
29
32
|
border: 1px solid var(--ui-chart-border);
|
|
30
33
|
border-radius: var(--ui-chart-radius);
|
|
31
|
-
background:
|
|
34
|
+
background: var(--ui-chart-bg);
|
|
32
35
|
color: var(--ui-chart-text);
|
|
33
36
|
box-shadow: var(--ui-chart-shadow);
|
|
34
37
|
padding: 16px;
|
|
@@ -54,6 +57,9 @@ const V = 180, Z = `
|
|
|
54
57
|
--ui-chart-accent: #93c5fd;
|
|
55
58
|
--ui-chart-success: #34d399;
|
|
56
59
|
--ui-chart-warning: #fbbf24;
|
|
60
|
+
--ui-chart-success-text: var(--ui-chart-success);
|
|
61
|
+
--ui-chart-danger-text: var(--ui-chart-danger);
|
|
62
|
+
--ui-chart-warning-text: var(--ui-chart-warning);
|
|
57
63
|
--ui-chart-danger: #f87171;
|
|
58
64
|
--ui-chart-shadow: none;
|
|
59
65
|
}
|
|
@@ -77,8 +83,8 @@ const V = 180, Z = `
|
|
|
77
83
|
display: grid;
|
|
78
84
|
gap: 10px;
|
|
79
85
|
padding: 10px 12px;
|
|
80
|
-
border: 1px solid
|
|
81
|
-
border-radius:
|
|
86
|
+
border: 1px solid transparent;
|
|
87
|
+
border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
|
|
82
88
|
background: color-mix(in srgb, var(--ui-chart-surface) 96%, transparent);
|
|
83
89
|
}
|
|
84
90
|
|
|
@@ -99,7 +105,7 @@ const V = 180, Z = `
|
|
|
99
105
|
.title {
|
|
100
106
|
font-size: 15px;
|
|
101
107
|
line-height: 1.35;
|
|
102
|
-
font-weight:
|
|
108
|
+
font-weight: 600;
|
|
103
109
|
letter-spacing: 0.01em;
|
|
104
110
|
margin: 0;
|
|
105
111
|
}
|
|
@@ -120,7 +126,7 @@ const V = 180, Z = `
|
|
|
120
126
|
margin: 0;
|
|
121
127
|
font-size: 15px;
|
|
122
128
|
line-height: 1.35;
|
|
123
|
-
font-weight:
|
|
129
|
+
font-weight: 600;
|
|
124
130
|
letter-spacing: 0.01em;
|
|
125
131
|
color: var(--ui-chart-text);
|
|
126
132
|
}
|
|
@@ -140,7 +146,7 @@ const V = 180, Z = `
|
|
|
140
146
|
min-block-size: 24px;
|
|
141
147
|
padding: 0 10px;
|
|
142
148
|
border-radius: 999px;
|
|
143
|
-
border: 1px solid
|
|
149
|
+
border: 1px solid transparent;
|
|
144
150
|
background: color-mix(in srgb, var(--ui-chart-surface) 92%, transparent);
|
|
145
151
|
font-size: 11px;
|
|
146
152
|
line-height: 1;
|
|
@@ -150,19 +156,19 @@ const V = 180, Z = `
|
|
|
150
156
|
}
|
|
151
157
|
|
|
152
158
|
.status-pill[data-state="success"] {
|
|
153
|
-
color: var(--ui-chart-success);
|
|
159
|
+
color: var(--ui-chart-success-text);
|
|
154
160
|
border-color: color-mix(in srgb, var(--ui-chart-success) 35%, var(--ui-chart-border));
|
|
155
161
|
background: color-mix(in srgb, var(--ui-chart-success) 13%, transparent);
|
|
156
162
|
}
|
|
157
163
|
|
|
158
164
|
.status-pill[data-state="error"] {
|
|
159
|
-
color: var(--ui-chart-danger);
|
|
165
|
+
color: var(--ui-chart-danger-text);
|
|
160
166
|
border-color: color-mix(in srgb, var(--ui-chart-danger) 35%, var(--ui-chart-border));
|
|
161
167
|
background: color-mix(in srgb, var(--ui-chart-danger) 12%, transparent);
|
|
162
168
|
}
|
|
163
169
|
|
|
164
170
|
.status-pill[data-state="loading"] {
|
|
165
|
-
color: var(--ui-chart-warning);
|
|
171
|
+
color: var(--ui-chart-warning-text);
|
|
166
172
|
border-color: color-mix(in srgb, var(--ui-chart-warning) 32%, var(--ui-chart-border));
|
|
167
173
|
background: color-mix(in srgb, var(--ui-chart-warning) 10%, transparent);
|
|
168
174
|
}
|
|
@@ -174,8 +180,8 @@ const V = 180, Z = `
|
|
|
174
180
|
}
|
|
175
181
|
|
|
176
182
|
.metric {
|
|
177
|
-
border: 1px solid
|
|
178
|
-
border-radius:
|
|
183
|
+
border: 1px solid transparent;
|
|
184
|
+
border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
|
|
179
185
|
padding: 8px 10px;
|
|
180
186
|
background: color-mix(in srgb, var(--ui-chart-surface) 95%, transparent);
|
|
181
187
|
min-inline-size: 0;
|
|
@@ -194,26 +200,26 @@ const V = 180, Z = `
|
|
|
194
200
|
.metric-value {
|
|
195
201
|
font-size: 14px;
|
|
196
202
|
line-height: 1.2;
|
|
197
|
-
font-weight:
|
|
203
|
+
font-weight: 600;
|
|
198
204
|
overflow: hidden;
|
|
199
205
|
text-overflow: ellipsis;
|
|
200
206
|
white-space: nowrap;
|
|
201
207
|
}
|
|
202
208
|
|
|
203
209
|
.metric-value[data-tone="up"] {
|
|
204
|
-
color: var(--ui-chart-success);
|
|
210
|
+
color: var(--ui-chart-success-text);
|
|
205
211
|
}
|
|
206
212
|
|
|
207
213
|
.metric-value[data-tone="down"] {
|
|
208
|
-
color: var(--ui-chart-danger);
|
|
214
|
+
color: var(--ui-chart-danger-text);
|
|
209
215
|
}
|
|
210
216
|
|
|
211
217
|
.plot-shell {
|
|
212
218
|
position: relative;
|
|
213
219
|
inline-size: 100%;
|
|
214
220
|
min-inline-size: 0;
|
|
215
|
-
border: 1px solid
|
|
216
|
-
border-radius:
|
|
221
|
+
border: 1px solid transparent;
|
|
222
|
+
border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
|
|
217
223
|
background: color-mix(in srgb, var(--ui-chart-surface) 97%, transparent);
|
|
218
224
|
min-block-size: var(--ui-chart-plot-min-height);
|
|
219
225
|
block-size: var(--ui-chart-plot-height);
|
|
@@ -358,8 +364,8 @@ const V = 180, Z = `
|
|
|
358
364
|
min-inline-size: 132px;
|
|
359
365
|
max-inline-size: min(220px, calc(100% - 16px));
|
|
360
366
|
padding: 10px 12px;
|
|
361
|
-
border-radius:
|
|
362
|
-
border: 1px solid
|
|
367
|
+
border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
|
|
368
|
+
border: 1px solid transparent;
|
|
363
369
|
background: color-mix(in srgb, var(--ui-chart-surface) 98%, transparent);
|
|
364
370
|
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
|
|
365
371
|
color: var(--ui-chart-text);
|
|
@@ -372,7 +378,7 @@ const V = 180, Z = `
|
|
|
372
378
|
.tooltip-title {
|
|
373
379
|
font-size: 12px;
|
|
374
380
|
line-height: 1.2;
|
|
375
|
-
font-weight:
|
|
381
|
+
font-weight: 600;
|
|
376
382
|
}
|
|
377
383
|
|
|
378
384
|
.tooltip-list {
|
|
@@ -405,7 +411,7 @@ const V = 180, Z = `
|
|
|
405
411
|
}
|
|
406
412
|
|
|
407
413
|
.tooltip-value {
|
|
408
|
-
font-weight:
|
|
414
|
+
font-weight: 600;
|
|
409
415
|
color: var(--ui-chart-text);
|
|
410
416
|
white-space: nowrap;
|
|
411
417
|
}
|
|
@@ -415,8 +421,8 @@ const V = 180, Z = `
|
|
|
415
421
|
align-items: center;
|
|
416
422
|
justify-content: space-between;
|
|
417
423
|
gap: 10px;
|
|
418
|
-
border: 1px solid
|
|
419
|
-
border-radius:
|
|
424
|
+
border: 1px solid transparent;
|
|
425
|
+
border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
|
|
420
426
|
padding: 8px 10px;
|
|
421
427
|
font-size: 12px;
|
|
422
428
|
line-height: 1.35;
|
|
@@ -426,7 +432,7 @@ const V = 180, Z = `
|
|
|
426
432
|
|
|
427
433
|
.insight strong {
|
|
428
434
|
color: var(--ui-chart-text);
|
|
429
|
-
font-weight:
|
|
435
|
+
font-weight: 600;
|
|
430
436
|
}
|
|
431
437
|
|
|
432
438
|
.legend {
|
|
@@ -436,9 +442,9 @@ const V = 180, Z = `
|
|
|
436
442
|
}
|
|
437
443
|
|
|
438
444
|
.legend-item {
|
|
439
|
-
border: 1px solid
|
|
445
|
+
border: 1px solid transparent;
|
|
440
446
|
background: color-mix(in srgb, var(--ui-chart-surface) 94%, transparent);
|
|
441
|
-
border-radius:
|
|
447
|
+
border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
|
|
442
448
|
min-block-size: 30px;
|
|
443
449
|
display: inline-flex;
|
|
444
450
|
align-items: center;
|
|
@@ -481,7 +487,7 @@ const V = 180, Z = `
|
|
|
481
487
|
.empty,
|
|
482
488
|
.message {
|
|
483
489
|
border: 1px dashed color-mix(in srgb, var(--ui-chart-border) 78%, transparent);
|
|
484
|
-
border-radius:
|
|
490
|
+
border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
|
|
485
491
|
padding: 14px;
|
|
486
492
|
text-align: center;
|
|
487
493
|
font-size: 12px;
|
|
@@ -490,13 +496,13 @@ const V = 180, Z = `
|
|
|
490
496
|
}
|
|
491
497
|
|
|
492
498
|
.message[data-tone="error"] {
|
|
493
|
-
color: var(--ui-chart-danger);
|
|
499
|
+
color: var(--ui-chart-danger-text);
|
|
494
500
|
border-color: color-mix(in srgb, var(--ui-chart-danger) 30%, var(--ui-chart-border));
|
|
495
501
|
background: color-mix(in srgb, var(--ui-chart-danger) 10%, transparent);
|
|
496
502
|
}
|
|
497
503
|
|
|
498
504
|
.message[data-tone="success"] {
|
|
499
|
-
color: var(--ui-chart-success);
|
|
505
|
+
color: var(--ui-chart-success-text);
|
|
500
506
|
border-color: color-mix(in srgb, var(--ui-chart-success) 30%, var(--ui-chart-border));
|
|
501
507
|
background: color-mix(in srgb, var(--ui-chart-success) 10%, transparent);
|
|
502
508
|
}
|
|
@@ -639,11 +645,11 @@ function J(p, t, e) {
|
|
|
639
645
|
if (o && typeof o == "object") {
|
|
640
646
|
const n = Number(o.value);
|
|
641
647
|
if (!Number.isFinite(n)) return null;
|
|
642
|
-
const
|
|
648
|
+
const u = o.label, d = o.tone;
|
|
643
649
|
return {
|
|
644
|
-
label: typeof
|
|
650
|
+
label: typeof u == "string" && u.trim() ? u.trim() : String(s + 1),
|
|
645
651
|
value: n,
|
|
646
|
-
tone: typeof
|
|
652
|
+
tone: typeof d == "string" && d.trim() ? d.trim() : void 0
|
|
647
653
|
};
|
|
648
654
|
}
|
|
649
655
|
return null;
|
|
@@ -682,14 +688,14 @@ function Q(p) {
|
|
|
682
688
|
if (!a || typeof a != "object") return null;
|
|
683
689
|
const i = a.name, o = G(a.data);
|
|
684
690
|
if (!o.length) return null;
|
|
685
|
-
const s = a.tone, n = a.dash,
|
|
691
|
+
const s = a.tone, n = a.dash, u = Number(a.strokeWidth), d = Number(a.opacity), T = a.fill;
|
|
686
692
|
return {
|
|
687
693
|
name: typeof i == "string" && i.trim() ? i.trim() : `Series ${r + 1}`,
|
|
688
694
|
data: o,
|
|
689
695
|
tone: typeof s == "string" && s.trim() ? s.trim() : void 0,
|
|
690
696
|
dash: typeof n == "string" && n.trim() ? n.trim() : void 0,
|
|
691
|
-
strokeWidth: Number.isFinite(
|
|
692
|
-
opacity: Number.isFinite(
|
|
697
|
+
strokeWidth: Number.isFinite(u) && u > 0 ? u : void 0,
|
|
698
|
+
opacity: Number.isFinite(d) && d > 0 ? d : void 0,
|
|
693
699
|
fill: typeof T == "boolean" ? T : void 0
|
|
694
700
|
};
|
|
695
701
|
}).filter((a) => !!a) : [];
|
|
@@ -709,28 +715,28 @@ function tt(p) {
|
|
|
709
715
|
}
|
|
710
716
|
function et(p, t) {
|
|
711
717
|
const a = (p.length ? p : t.length ? [{ name: "Series 1", data: t }] : []).map((n) => {
|
|
712
|
-
const
|
|
718
|
+
const u = tt(n.data);
|
|
713
719
|
return {
|
|
714
720
|
name: n.name,
|
|
715
|
-
data:
|
|
721
|
+
data: u.points,
|
|
716
722
|
tone: n.tone,
|
|
717
723
|
fill: n.fill,
|
|
718
724
|
dash: n.dash,
|
|
719
725
|
strokeWidth: n.strokeWidth,
|
|
720
726
|
opacity: n.opacity,
|
|
721
|
-
truncated:
|
|
727
|
+
truncated: u.truncated
|
|
722
728
|
};
|
|
723
729
|
}).filter((n) => n.data.length > 0), r = /* @__PURE__ */ new Set();
|
|
724
730
|
a.forEach((n) => {
|
|
725
|
-
n.data.forEach((
|
|
731
|
+
n.data.forEach((u) => r.add(u.label));
|
|
726
732
|
});
|
|
727
|
-
let i = Array.from(r), o = a.reduce((n,
|
|
733
|
+
let i = Array.from(r), o = a.reduce((n, u) => Math.max(n, u.truncated), 0);
|
|
728
734
|
i.length > V && (o += i.length - V, i = i.slice(i.length - V));
|
|
729
735
|
const s = a.map((n) => {
|
|
730
|
-
const
|
|
736
|
+
const u = new Set(i);
|
|
731
737
|
return {
|
|
732
738
|
name: n.name,
|
|
733
|
-
data: n.data.filter((
|
|
739
|
+
data: n.data.filter((d) => u.has(d.label)),
|
|
734
740
|
tone: n.tone,
|
|
735
741
|
fill: n.fill,
|
|
736
742
|
dash: n.dash,
|
|
@@ -816,23 +822,23 @@ class it extends Y {
|
|
|
816
822
|
return this.getAttribute("value-suffix") || "";
|
|
817
823
|
}
|
|
818
824
|
_resolveStats(t) {
|
|
819
|
-
const e = t.map((
|
|
820
|
-
return { total: a, average: r, min: i, max: o, delta: s, deltaPct:
|
|
825
|
+
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;
|
|
826
|
+
return { total: a, average: r, min: i, max: o, delta: s, deltaPct: u };
|
|
821
827
|
}
|
|
822
828
|
_valueDomain(t, e) {
|
|
823
|
-
const a = !!e?.includeZero, r = e?.fitPadding ?? 0.14, i = t.map((
|
|
829
|
+
const a = !!e?.includeZero, r = e?.fitPadding ?? 0.14, i = t.map((d) => d.value);
|
|
824
830
|
let o = Math.min(...i), s = Math.max(...i);
|
|
825
831
|
a && (o = Math.min(0, o), s = Math.max(0, s));
|
|
826
832
|
let n = s - o;
|
|
827
833
|
if (n <= 0) {
|
|
828
|
-
const
|
|
829
|
-
o -=
|
|
834
|
+
const d = Math.max(Math.abs(s) * 0.12, 1);
|
|
835
|
+
o -= d, s += d, n = s - o;
|
|
830
836
|
} else {
|
|
831
|
-
const
|
|
832
|
-
a ? (o -=
|
|
837
|
+
const d = n * r;
|
|
838
|
+
a ? (o -= d * 0.25, s += d) : (o -= d, s += d), n = s - o;
|
|
833
839
|
}
|
|
834
|
-
const
|
|
835
|
-
return { min: o, max: s, span: n, zeroInDomain:
|
|
840
|
+
const u = o <= 0 && s >= 0;
|
|
841
|
+
return { min: o, max: s, span: n, zeroInDomain: u };
|
|
836
842
|
}
|
|
837
843
|
_formatValue(t, e) {
|
|
838
844
|
const a = this._valuePrefix(), r = this._valueSuffix();
|
|
@@ -868,16 +874,16 @@ class it extends Y {
|
|
|
868
874
|
if (!i) return null;
|
|
869
875
|
const o = e.labels[t];
|
|
870
876
|
if (!o) return null;
|
|
871
|
-
const s = i.data.find((
|
|
877
|
+
const s = i.data.find((d) => d.label === o) || i.data[t];
|
|
872
878
|
if (!s) return null;
|
|
873
|
-
const n = this._resolveStats(i.data),
|
|
879
|
+
const n = this._resolveStats(i.data), u = this._seriesValueDetails(e.labels, e.series, t);
|
|
874
880
|
return {
|
|
875
881
|
index: t,
|
|
876
882
|
label: o,
|
|
877
883
|
value: s.value,
|
|
878
884
|
tone: s.tone || this._seriesTone(i, 0),
|
|
879
885
|
series: i.name,
|
|
880
|
-
seriesValues:
|
|
886
|
+
seriesValues: u,
|
|
881
887
|
type: a,
|
|
882
888
|
total: n.total,
|
|
883
889
|
min: n.min,
|
|
@@ -989,11 +995,11 @@ class it extends Y {
|
|
|
989
995
|
return [1, 0.75, 0.5, 0.25, 0].map((a) => this._formatValue(t + (e - t) * a));
|
|
990
996
|
}
|
|
991
997
|
_plotCartesian(t, e, a) {
|
|
992
|
-
const $ = t.labels, P = t.series, w = e === "bar",
|
|
998
|
+
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
999
|
const x = 6 + 48 * g, I = y.zeroInDomain && Math.abs(x - h) < 0.5;
|
|
994
1000
|
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
1001
|
}).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) /
|
|
1002
|
+
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
1003
|
return {
|
|
998
1004
|
xPct: M(I / 220 * 100, 0, 100),
|
|
999
1005
|
yPct: M(C / 64 * 100, 0, 100)
|
|
@@ -1008,7 +1014,7 @@ class it extends Y {
|
|
|
1008
1014
|
return $.map((O, H) => {
|
|
1009
1015
|
const W = L[z].get(O);
|
|
1010
1016
|
if (!W) return "";
|
|
1011
|
-
const m = 8 + H * g + (g - x) / 2 + I * z, _ = 6 + (l - W.value) /
|
|
1017
|
+
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
1018
|
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
1019
|
}).join("");
|
|
1014
1020
|
}).join("");
|
|
@@ -1026,7 +1032,7 @@ class it extends Y {
|
|
|
1026
1032
|
}
|
|
1027
1033
|
const U = P.map((g, x) => {
|
|
1028
1034
|
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) /
|
|
1035
|
+
const A = L[x].get(m) || null, R = 8 + f * _, B = A ? 6 + (l - A.value) / b * 48 : null;
|
|
1030
1036
|
return { x: R, y: B, point: A, index: _ };
|
|
1031
1037
|
}), C = [];
|
|
1032
1038
|
let z = [];
|
|
@@ -1061,21 +1067,21 @@ class it extends Y {
|
|
|
1061
1067
|
};
|
|
1062
1068
|
}
|
|
1063
1069
|
_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(
|
|
1070
|
+
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) => {
|
|
1071
|
+
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;
|
|
1072
|
+
return { x: k, y: L, point: l, index: b, angle: f };
|
|
1073
|
+
}), 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) => {
|
|
1074
|
+
const b = this._pointTone(l.point, l.index), f = e === l.index;
|
|
1075
|
+
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
1076
|
}).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:${
|
|
1077
|
+
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)}`;
|
|
1078
|
+
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
1079
|
}).join("");
|
|
1074
1080
|
return {
|
|
1075
1081
|
svg: `
|
|
1076
1082
|
<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
1083
|
${w}
|
|
1078
|
-
${
|
|
1084
|
+
${v}
|
|
1079
1085
|
<path d="${P}" fill="color-mix(in srgb, var(--ui-chart-accent) 16%, transparent)" stroke="var(--ui-chart-accent)" stroke-width="1.2" />
|
|
1080
1086
|
${y}
|
|
1081
1087
|
</svg>
|
|
@@ -1089,32 +1095,32 @@ class it extends Y {
|
|
|
1089
1095
|
};
|
|
1090
1096
|
}
|
|
1091
1097
|
_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 *
|
|
1098
|
+
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;
|
|
1099
|
+
let d = 0;
|
|
1100
|
+
const T = t.map((w, v) => {
|
|
1101
|
+
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
1102
|
<circle
|
|
1097
1103
|
cx="${s}"
|
|
1098
1104
|
cy="${n}"
|
|
1099
1105
|
r="${i}"
|
|
1100
1106
|
fill="none"
|
|
1101
|
-
stroke="${c(
|
|
1107
|
+
stroke="${c(b)}"
|
|
1102
1108
|
stroke-width="${f ? o + 0.8 : o}"
|
|
1103
|
-
stroke-dasharray="${l.toFixed(3)} ${(
|
|
1104
|
-
stroke-dashoffset="${(-
|
|
1109
|
+
stroke-dasharray="${l.toFixed(3)} ${(u - l).toFixed(3)}"
|
|
1110
|
+
stroke-dashoffset="${(-d).toFixed(3)}"
|
|
1105
1111
|
transform="rotate(-90 ${s} ${n})"
|
|
1106
1112
|
stroke-linecap="round"
|
|
1107
1113
|
opacity="${S}"
|
|
1108
1114
|
/>
|
|
1109
1115
|
`;
|
|
1110
|
-
return
|
|
1116
|
+
return d += l, h;
|
|
1111
1117
|
}).join("");
|
|
1112
1118
|
let $ = 0;
|
|
1113
|
-
const P = t.map((w,
|
|
1114
|
-
const y = Math.max(0, w.value), l = y / r * Math.PI * 2,
|
|
1119
|
+
const P = t.map((w, v) => {
|
|
1120
|
+
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
1121
|
$ += 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="${
|
|
1122
|
+
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 })}%)`;
|
|
1123
|
+
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
1124
|
}).join("");
|
|
1119
1125
|
return {
|
|
1120
1126
|
svg: `
|
|
@@ -1126,11 +1132,11 @@ class it extends Y {
|
|
|
1126
1132
|
</svg>
|
|
1127
1133
|
`,
|
|
1128
1134
|
hits: P,
|
|
1129
|
-
anchors: t.map((w,
|
|
1135
|
+
anchors: t.map((w, v) => {
|
|
1130
1136
|
let y = 0;
|
|
1131
|
-
for (let F = 0; F <=
|
|
1137
|
+
for (let F = 0; F <= v; F += 1) {
|
|
1132
1138
|
const f = Math.max(0, t[F].value) / r * Math.PI * 2;
|
|
1133
|
-
if (F ===
|
|
1139
|
+
if (F === v) {
|
|
1134
1140
|
const S = -Math.PI / 2 + y + f / 2, h = s + Math.cos(S) * (i + 6), k = n + Math.sin(S) * (i + 6);
|
|
1135
1141
|
return {
|
|
1136
1142
|
xPct: M(h / 64 * 100, 0, 100),
|
|
@@ -1188,11 +1194,11 @@ class it extends Y {
|
|
|
1188
1194
|
if (!e) return "";
|
|
1189
1195
|
const a = this._activeIndex;
|
|
1190
1196
|
if (a == null || !t.labels[a]) {
|
|
1191
|
-
const s = this._resolveStats(e.data), n = s.delta > 0 ? "up" : s.delta < 0 ? "down" : "flat",
|
|
1197
|
+
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
1198
|
return `
|
|
1193
1199
|
<div class="insight" part="insight">
|
|
1194
1200
|
<span>Range <strong>${this._formatValue(s.min)}</strong> to <strong>${this._formatValue(s.max)}</strong></span>
|
|
1195
|
-
<strong data-tone="${n}">${c(
|
|
1201
|
+
<strong data-tone="${n}">${c(u)}</strong>
|
|
1196
1202
|
</div>
|
|
1197
1203
|
`;
|
|
1198
1204
|
}
|
|
@@ -1205,7 +1211,7 @@ class it extends Y {
|
|
|
1205
1211
|
`;
|
|
1206
1212
|
}
|
|
1207
1213
|
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(),
|
|
1214
|
+
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
1215
|
if (!e || !t.labels.length) {
|
|
1210
1216
|
const h = r === "error" ? "Chart data failed to load" : "No series data available";
|
|
1211
1217
|
this.setContent(`
|
|
@@ -1227,7 +1233,7 @@ class it extends Y {
|
|
|
1227
1233
|
return;
|
|
1228
1234
|
}
|
|
1229
1235
|
this._activeIndex != null && (this._activeIndex < 0 || this._activeIndex >= t.labels.length) && (this._activeIndex = null, this._activePinned = !1);
|
|
1230
|
-
const
|
|
1236
|
+
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
1237
|
(h, k) => `
|
|
1232
1238
|
<div class="legend-item" aria-label="${c(h.name)}">
|
|
1233
1239
|
<span class="legend-dot" style="--dot:${c(this._seriesTone(h, k))};"></span>
|
|
@@ -1250,7 +1256,7 @@ class it extends Y {
|
|
|
1250
1256
|
<span>${c(h.label)}</span>
|
|
1251
1257
|
</button>
|
|
1252
1258
|
`;
|
|
1253
|
-
}).join(""),
|
|
1259
|
+
}).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
1260
|
this.setContent(`
|
|
1255
1261
|
<style>${Z}</style>
|
|
1256
1262
|
<section
|
|
@@ -1274,23 +1280,23 @@ class it extends Y {
|
|
|
1274
1280
|
<span class="status-pill" data-state="${r}">${K(r)}</span>
|
|
1275
1281
|
</header>
|
|
1276
1282
|
|
|
1277
|
-
${
|
|
1283
|
+
${d ? `
|
|
1278
1284
|
<section class="summary" part="summary">
|
|
1279
1285
|
<div class="metric" part="metric">
|
|
1280
1286
|
<span class="metric-label">Total</span>
|
|
1281
|
-
<span class="metric-value">${c(this._formatValue(
|
|
1287
|
+
<span class="metric-value">${c(this._formatValue(v.total))}</span>
|
|
1282
1288
|
</div>
|
|
1283
1289
|
<div class="metric" part="metric">
|
|
1284
1290
|
<span class="metric-label">Average</span>
|
|
1285
|
-
<span class="metric-value">${c(this._formatValue(
|
|
1291
|
+
<span class="metric-value">${c(this._formatValue(v.average))}</span>
|
|
1286
1292
|
</div>
|
|
1287
1293
|
<div class="metric" part="metric">
|
|
1288
1294
|
<span class="metric-label">Peak</span>
|
|
1289
|
-
<span class="metric-value">${c(this._formatValue(
|
|
1295
|
+
<span class="metric-value">${c(this._formatValue(v.max))}</span>
|
|
1290
1296
|
</div>
|
|
1291
1297
|
<div class="metric" part="metric">
|
|
1292
1298
|
<span class="metric-label">Delta</span>
|
|
1293
|
-
<span class="metric-value" data-tone="${
|
|
1299
|
+
<span class="metric-value" data-tone="${b}">${c(f)}</span>
|
|
1294
1300
|
</div>
|
|
1295
1301
|
</section>
|
|
1296
1302
|
` : ""}
|
|
@@ -1320,7 +1326,7 @@ class it extends Y {
|
|
|
1320
1326
|
|
|
1321
1327
|
${this._activeInsight(t)}
|
|
1322
1328
|
|
|
1323
|
-
${
|
|
1329
|
+
${u ? `<section class="legend" part="legend">${l}</section>` : ""}
|
|
1324
1330
|
|
|
1325
1331
|
${t.truncated > 0 ? `<div class="message" part="message">Showing last ${t.truncated + t.labels.length} records (truncated to ${V}).</div>` : ""}
|
|
1326
1332
|
|
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 {
|