@redvars/peacock 4.0.0 → 4.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/dist/{BaseField-CAog9TIc.js → BaseField-_unSNU5x.js} +43 -4
- package/dist/BaseField-_unSNU5x.js.map +1 -0
- package/dist/{BaseInput-CcMfg1Y2.js → BaseInput-DtZH0fPJ.js} +7 -4
- package/dist/BaseInput-DtZH0fPJ.js.map +1 -0
- package/dist/accordion.js.map +1 -1
- package/dist/ai-badge.js +32 -6
- package/dist/ai-badge.js.map +1 -1
- package/dist/ai-summary.js +2 -2
- package/dist/alert.js +2 -2
- package/dist/anchor-nav.js +2 -2
- package/dist/app-shell.js +2 -2
- package/dist/assistant-panel.js +2 -2
- package/dist/assistant-step.js +2 -2
- package/dist/assistant-steps.js +2 -2
- package/dist/avatar-group.js +2 -2
- package/dist/banner.js +2 -2
- package/dist/{base-button-Do2TUy8M.js → base-button-BJMGMcMv.js} +3 -1
- package/dist/base-button-BJMGMcMv.js.map +1 -0
- package/dist/{base-progress-BiLlZVHJ.js → base-progress-D7Nmfh1s.js} +4 -2
- package/dist/base-progress-D7Nmfh1s.js.map +1 -0
- package/dist/bottom-sheet.js +2 -2
- package/dist/breadcrumb.js +2 -2
- package/dist/button-group.js +4 -4
- package/dist/button.js +14 -8
- package/dist/button.js.map +1 -1
- package/dist/calendar.js +2 -2
- package/dist/canvas-base-CWQ4rQ2s.js +788 -0
- package/dist/canvas-base-CWQ4rQ2s.js.map +1 -0
- package/dist/canvas-link-CtgsALq4.js +54 -0
- package/dist/canvas-link-CtgsALq4.js.map +1 -0
- package/dist/{cartesian-chart-C-f1frt0.js → cartesian-chart-CS5yRLfE.js} +3 -2
- package/dist/cartesian-chart-CS5yRLfE.js.map +1 -0
- package/dist/{cb-group-base-DeuCVx3a.js → cb-group-base-CO30uFQZ.js} +2 -2
- package/dist/{cb-group-base-DeuCVx3a.js.map → cb-group-base-CO30uFQZ.js.map} +1 -1
- package/dist/cb-group.js +3 -3
- package/dist/cb-rule.js +3 -3
- package/dist/chart-area.js +5 -4
- package/dist/chart-area.js.map +1 -1
- package/dist/chart-bar.js +5 -4
- package/dist/chart-bar.js.map +1 -1
- package/dist/chart-base-C_XKVyhf.js +833 -0
- package/dist/chart-base-C_XKVyhf.js.map +1 -0
- package/dist/chart-doughnut.js +4 -3
- package/dist/chart-doughnut.js.map +1 -1
- package/dist/chart-line.js +5 -4
- package/dist/chart-line.js.map +1 -1
- package/dist/chart-pie.js +4 -3
- package/dist/chart-pie.js.map +1 -1
- package/dist/chat-event.js +152 -0
- package/dist/chat-event.js.map +1 -0
- package/dist/chat-message.js +195 -19
- package/dist/chat-message.js.map +1 -1
- package/dist/chat-thread.js +26 -9
- package/dist/chat-thread.js.map +1 -1
- package/dist/checkbox-group.js +5 -5
- package/dist/checkbox.js +5 -5
- package/dist/chip-set.js +4 -4
- package/dist/chip.js +4 -4
- package/dist/circular-progress.js +3 -3
- package/dist/citation.js +2 -2
- package/dist/code-editor.js +6 -5
- package/dist/code-editor.js.map +1 -1
- package/dist/code-highlighter.js +2 -2
- package/dist/color-field.js +6 -6
- package/dist/color-picker.js +2 -2
- package/dist/command-palette.js +2 -2
- package/dist/comment-composer.js +6 -6
- package/dist/condition-builder.js +3 -3
- package/dist/confirm-dialog.js +2 -2
- package/dist/copy-button.js +2 -2
- package/dist/currency-field.js +6 -6
- package/dist/custom-elements-jsdocs.json +2330 -397
- package/dist/custom-elements.json +20464 -542
- package/dist/date-field.js +7 -7
- package/dist/date-picker.js +4 -2
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-field.js +7 -7
- package/dist/datetime-field.js +7 -7
- package/dist/dependency-map-layout-5KUueabk.js +1390 -0
- package/dist/dependency-map-layout-5KUueabk.js.map +1 -0
- package/dist/dependency-map.js +1605 -0
- package/dist/dependency-map.js.map +1 -0
- package/dist/description-item.js +2 -2
- package/dist/description-list.js +2 -2
- package/dist/diagram-Va096vj9.js +2029 -0
- package/dist/diagram-Va096vj9.js.map +1 -0
- package/dist/diagram-controls.js +345 -0
- package/dist/diagram-controls.js.map +1 -0
- package/dist/diagram-minimap.js +216 -0
- package/dist/diagram-minimap.js.map +1 -0
- package/dist/diagram.js +20 -0
- package/dist/diagram.js.map +1 -0
- package/dist/diff-viewer.js +2 -2
- package/dist/discussion-activity.js +4 -4
- package/dist/discussion-comment.js +4 -4
- package/dist/{discussion-time-BegaYfhf.js → discussion-time-DqykqvNy.js} +2 -2
- package/dist/{discussion-time-BegaYfhf.js.map → discussion-time-DqykqvNy.js.map} +1 -1
- package/dist/discussion.js +8 -8
- package/dist/{document-editor-BO7QPbO5.js → document-editor-Dc8JeFVB.js} +2 -2
- package/dist/{document-editor-BO7QPbO5.js.map → document-editor-Dc8JeFVB.js.map} +1 -1
- package/dist/document-editor.js +3 -3
- package/dist/draft-card.js +14 -4
- package/dist/draft-card.js.map +1 -1
- package/dist/dropdown-button.js +3 -2
- package/dist/dropdown-button.js.map +1 -1
- package/dist/erd.js +2021 -0
- package/dist/erd.js.map +1 -0
- package/dist/fab.js +4 -4
- package/dist/field.js +257 -43
- package/dist/field.js.map +1 -1
- package/dist/file-upload.js +38 -16
- package/dist/file-upload.js.map +1 -1
- package/dist/filter-bar.js +2 -2
- package/dist/flow.js +27 -970
- package/dist/flow.js.map +1 -1
- package/dist/focus-ring.js +2 -0
- package/dist/focus-ring.js.map +1 -1
- package/dist/{form-associated-D3Tn33s_.js → form-associated-BHbg72PG.js} +3 -1
- package/dist/{form-associated-D3Tn33s_.js.map → form-associated-BHbg72PG.js.map} +1 -1
- package/dist/{form-submitter-DWwv6K9-.js → form-submitter-beG1CXAn.js} +7 -1
- package/dist/{form-submitter-DWwv6K9-.js.map → form-submitter-beG1CXAn.js.map} +1 -1
- package/dist/form.js +3 -3
- package/dist/{generative-view-DmtpDobn.js → generative-view-BKlcuujw.js} +13 -13
- package/dist/generative-view-BKlcuujw.js.map +1 -0
- package/dist/generative-view.js +3 -3
- package/dist/geometry-INg82Lxq.js +305 -0
- package/dist/geometry-INg82Lxq.js.map +1 -0
- package/dist/history-YbTSQZHj.js +45 -0
- package/dist/history-YbTSQZHj.js.map +1 -0
- package/dist/host-CZK7xhzh.js +40 -0
- package/dist/host-CZK7xhzh.js.map +1 -0
- package/dist/html-editor.js +6 -6
- package/dist/{hyperlink-DhE9RlVS.js → hyperlink-DycWPKwU.js} +10 -1
- package/dist/hyperlink-DycWPKwU.js.map +1 -0
- package/dist/{i18n-controller-urcQKYGe.js → i18n-controller-DJHsE1YH.js} +2 -2
- package/dist/{i18n-controller-urcQKYGe.js.map → i18n-controller-DJHsE1YH.js.map} +1 -1
- package/dist/icon-button.js +11 -9
- package/dist/icon-button.js.map +1 -1
- package/dist/image.js +2 -2
- package/dist/index.js +42 -22
- package/dist/index.js.map +1 -1
- package/dist/inline-edit.js +2 -2
- package/dist/input.js +5 -5
- package/dist/json-viewer.js +2 -2
- package/dist/kanban.js +2 -2
- package/dist/kbd.js +2 -2
- package/dist/linear-progress.js +3 -3
- package/dist/link-button.js +9 -7
- package/dist/link-button.js.map +1 -1
- package/dist/list-item.js +2 -2
- package/dist/list.js +2 -2
- package/dist/listbox.js +4 -4
- package/dist/loader-full.js +17 -16
- package/dist/loader-full.js.map +1 -1
- package/dist/loader.js +51 -18
- package/dist/loader.js.map +1 -1
- package/dist/markdown-editor.js +6 -6
- package/dist/markers-BFmh1OCz.js +46 -0
- package/dist/markers-BFmh1OCz.js.map +1 -0
- package/dist/measure-controller-Dmc5hZKg.js +89 -0
- package/dist/measure-controller-Dmc5hZKg.js.map +1 -0
- package/dist/mention-input.js +7 -6
- package/dist/mention-input.js.map +1 -1
- package/dist/menu-item.js +3 -2
- package/dist/menu-item.js.map +1 -1
- package/dist/{menu-trigger-controller-DyLpTxM7.js → menu-trigger-controller-CEJq1ugC.js} +11 -14
- package/dist/menu-trigger-controller-CEJq1ugC.js.map +1 -0
- package/dist/menu.js +2 -2
- package/dist/modal.js +2 -2
- package/dist/navigation-bar.js +2 -2
- package/dist/navigation-drawer.js +2 -2
- package/dist/navigation-rail.js +2 -2
- package/dist/notification-center.js +3 -3
- package/dist/number-field.js +7 -6
- package/dist/number-field.js.map +1 -1
- package/dist/option.js +2 -2
- package/dist/page-header.js +2 -2
- package/dist/pagination.js +2 -2
- package/dist/password-field.js +6 -6
- package/dist/password-rules.js +2 -2
- package/dist/phone-field.js +6 -6
- package/dist/{picker-field-B4DtcJfL.js → picker-field-CUI05sWc.js} +3 -3
- package/dist/{picker-field-B4DtcJfL.js.map → picker-field-CUI05sWc.js.map} +1 -1
- package/dist/pin-input.js +6 -6
- package/dist/presence-indicator.js +2 -2
- package/dist/prompt-input.js +6 -6
- package/dist/radio-group.js +2 -1
- package/dist/radio-group.js.map +1 -1
- package/dist/radio.js +6 -6
- package/dist/radio.js.map +1 -1
- package/dist/rating.js +6 -5
- package/dist/rating.js.map +1 -1
- package/dist/redvars-loader.js +2 -2
- package/dist/{relative-time-BVQXLuHm.js → relative-time-BNxqvEbg.js} +13 -2
- package/dist/relative-time-BNxqvEbg.js.map +1 -0
- package/dist/relative-time.js +3 -3
- package/dist/resizable-panels.js +2 -2
- package/dist/{rich-text-input-DLICqof1.js → rich-text-input-N_hqnXej.js} +3 -3
- package/dist/{rich-text-input-DLICqof1.js.map → rich-text-input-N_hqnXej.js.map} +1 -1
- package/dist/ripple.js +2 -0
- package/dist/ripple.js.map +1 -1
- package/dist/{schema-hMt-NRLk.js → schema-Dy0z-80u.js} +2 -2
- package/dist/{schema-hMt-NRLk.js.map → schema-Dy0z-80u.js.map} +1 -1
- package/dist/search.js +5 -5
- package/dist/segmented-button-group.js +1 -1
- package/dist/select.js +8 -8
- package/dist/side-sheet.js +2 -2
- package/dist/signature-pad.js +6 -5
- package/dist/signature-pad.js.map +1 -1
- package/dist/slider.js +6 -5
- package/dist/slider.js.map +1 -1
- package/dist/snackbar.js +2 -2
- package/dist/sparkline.js +2 -2
- package/dist/split-button.js +109 -21
- package/dist/split-button.js.map +1 -1
- package/dist/src/__internal/ai/suggestion-controller.d.ts +2 -0
- package/dist/src/__internal/diagram/canvas-base.d.ts +105 -0
- package/dist/src/__internal/diagram/canvas-link.d.ts +21 -0
- package/dist/src/__internal/diagram/geometry.d.ts +49 -0
- package/dist/src/__internal/diagram/history.d.ts +17 -0
- package/dist/src/__internal/diagram/host.d.ts +45 -0
- package/dist/src/__internal/diagram/markers.d.ts +16 -0
- package/dist/src/__internal/diagram/measure-controller.d.ts +32 -0
- package/dist/src/__internal/diagram/motion.d.ts +22 -0
- package/dist/src/__internal/diagram/selection.d.ts +20 -0
- package/dist/src/__internal/diagram/types.d.ts +39 -0
- package/dist/src/__internal/diagram/viewport-controller.d.ts +89 -0
- package/dist/src/__internal/i18n/strings.d.ts +155 -0
- package/dist/src/__internal/menu-trigger-controller.d.ts +11 -8
- package/dist/src/__internal/toggle-base.d.ts +8 -0
- package/dist/src/__internal/utils/deprecate.d.ts +3 -3
- package/dist/src/__internal/utils/relative-time.d.ts +5 -0
- package/dist/src/accordion/accordion.d.ts +1 -0
- package/dist/src/ai-badge/ai-badge.d.ts +8 -0
- package/dist/src/button/button/button.d.ts +4 -0
- package/dist/src/chat-message/chat-message.d.ts +51 -10
- package/dist/src/chat-message/index.d.ts +1 -1
- package/dist/src/chat-thread/chat-event.d.ts +37 -0
- package/dist/src/chat-thread/chat-thread.d.ts +7 -4
- package/dist/src/chat-thread/index.d.ts +1 -0
- package/dist/src/code-editor/code-editor.d.ts +1 -0
- package/dist/src/date-picker/date-picker.d.ts +2 -0
- package/dist/src/dependency-map/dependency-map-layout.d.ts +48 -0
- package/dist/src/dependency-map/dependency-map.d.ts +241 -0
- package/dist/src/dependency-map/index.d.ts +2 -0
- package/dist/src/diagram/diagram.d.ts +300 -0
- package/dist/src/diagram/flow.d.ts +53 -0
- package/dist/src/diagram/index.d.ts +4 -0
- package/dist/src/diagram-controls/diagram-controls.d.ts +46 -0
- package/dist/src/diagram-controls/index.d.ts +1 -0
- package/dist/src/diagram-minimap/diagram-minimap.d.ts +39 -0
- package/dist/src/diagram-minimap/index.d.ts +1 -0
- package/dist/src/erd/erd-layout.d.ts +27 -0
- package/dist/src/erd/erd.d.ts +266 -0
- package/dist/src/erd/index.d.ts +2 -0
- package/dist/src/field/field.d.ts +38 -1
- package/dist/src/file-upload/file-upload.d.ts +3 -1
- package/dist/src/focus-ring/focus-ring.d.ts +2 -0
- package/dist/src/index.d.ts +17 -4
- package/dist/src/input/BaseField.d.ts +15 -1
- package/dist/src/input/BaseInput.d.ts +4 -0
- package/dist/src/menu/menu-item/menu-item.d.ts +1 -0
- package/dist/src/number-field/number-field.d.ts +4 -0
- package/dist/src/progress/base-progress.d.ts +3 -0
- package/dist/src/radio/radio-group.d.ts +1 -0
- package/dist/src/rating/rating.d.ts +1 -0
- package/dist/src/ripple/ripple.d.ts +2 -0
- package/dist/src/signature-pad/signature-pad.d.ts +1 -0
- package/dist/src/slider/slider.d.ts +1 -0
- package/dist/src/split-button/split-button.d.ts +7 -2
- package/dist/src/switch/switch.d.ts +1 -0
- package/dist/src/tabs/tab.d.ts +2 -0
- package/dist/src/tabs/tabs.d.ts +1 -0
- package/dist/src/textarea/textarea.d.ts +3 -0
- package/dist/src/time-picker/time-picker.d.ts +2 -0
- package/dist/src/transfer-list/transfer-list.d.ts +1 -0
- package/dist/src/tree-chart/index.d.ts +2 -0
- package/dist/src/tree-chart/tree-chart-layout.d.ts +49 -0
- package/dist/src/tree-chart/tree-chart.d.ts +221 -0
- package/dist/src/workflow/index.d.ts +2 -0
- package/dist/src/workflow/workflow-format.d.ts +5 -0
- package/dist/src/workflow/workflow-model.d.ts +194 -0
- package/dist/src/workflow/workflow.d.ts +313 -0
- package/dist/src/workflow-timeline/index.d.ts +1 -0
- package/dist/src/workflow-timeline/workflow-timeline.d.ts +41 -0
- package/dist/stat.js +2 -2
- package/dist/status-indicator.js +2 -2
- package/dist/step.js +2 -2
- package/dist/stepper.js +2 -2
- package/dist/{strings-DmbqMTfs.js → strings-DnYjGbbc.js} +169 -1
- package/dist/{strings-DmbqMTfs.js.map → strings-DnYjGbbc.js.map} +1 -1
- package/dist/sub-menu.js +2 -2
- package/dist/{suggestion-controller-CW17adxd.js → suggestion-controller-7YRQqkaI.js} +3 -1
- package/dist/{suggestion-controller-CW17adxd.js.map → suggestion-controller-7YRQqkaI.js.map} +1 -1
- package/dist/svg.js +2 -2
- package/dist/switch.js +6 -5
- package/dist/switch.js.map +1 -1
- package/dist/tab.js +1 -0
- package/dist/tab.js.map +1 -1
- package/dist/table.js +50 -11
- package/dist/table.js.map +1 -1
- package/dist/tabs.js +1 -0
- package/dist/tabs.js.map +1 -1
- package/dist/test/diagram-controls.test.d.ts +1 -0
- package/dist/test/diagram-geometry.test.d.ts +1 -0
- package/dist/test/diagram.test.d.ts +1 -0
- package/dist/test/erd.test.d.ts +1 -0
- package/dist/test/toggle-label.test.d.ts +1 -0
- package/dist/test/tree-chart.test.d.ts +1 -0
- package/dist/test/workflow-debug.test.d.ts +1 -0
- package/dist/test/workflow.test.d.ts +1 -0
- package/dist/textarea.js +13 -6
- package/dist/textarea.js.map +1 -1
- package/dist/time-field.js +7 -7
- package/dist/time-picker.js +4 -2
- package/dist/time-picker.js.map +1 -1
- package/dist/timeline-item.js +2 -2
- package/dist/timeline.js +2 -2
- package/dist/{toggle-base-BQO5pjrU.js → toggle-base-CXmFSp3b.js} +19 -3
- package/dist/toggle-base-CXmFSp3b.js.map +1 -0
- package/dist/tour.js +2 -2
- package/dist/transfer-list.js +6 -5
- package/dist/transfer-list.js.map +1 -1
- package/dist/{chart-base-B-gOg2Di.js → transform-CxeQFXXB.js} +9 -839
- package/dist/transform-CxeQFXXB.js.map +1 -0
- package/dist/tree-chart.js +1986 -0
- package/dist/tree-chart.js.map +1 -0
- package/dist/tree-item.js +2 -2
- package/dist/tree.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typing-indicator.js +2 -2
- package/dist/url-field.js +6 -6
- package/dist/user-menu.js +3 -3
- package/dist/virtual-list.js +2 -2
- package/dist/workflow-format-BsyveyeC.js +34 -0
- package/dist/workflow-format-BsyveyeC.js.map +1 -0
- package/dist/workflow-model-CauduOG2.js +330 -0
- package/dist/workflow-model-CauduOG2.js.map +1 -0
- package/dist/workflow-timeline.js +354 -0
- package/dist/workflow-timeline.js.map +1 -0
- package/dist/workflow.js +3337 -0
- package/dist/workflow.js.map +1 -0
- package/dist/workspace-switcher.js +3 -3
- package/package.json +1 -1
- package/readme.md +44 -2
- package/src/LoaderUtils.ts +9 -2
- package/src/__internal/ai/suggestion-controller.ts +3 -1
- package/src/__internal/diagram/canvas-base.ts +410 -0
- package/src/__internal/diagram/canvas-link.ts +66 -0
- package/src/__internal/diagram/geometry.ts +372 -0
- package/src/__internal/diagram/history.ts +49 -0
- package/src/__internal/diagram/host.ts +76 -0
- package/src/__internal/diagram/markers.ts +56 -0
- package/src/__internal/diagram/measure-controller.ts +104 -0
- package/src/__internal/diagram/motion.ts +89 -0
- package/src/__internal/diagram/selection.ts +69 -0
- package/src/__internal/diagram/types.ts +56 -0
- package/src/__internal/diagram/viewport-controller.ts +494 -0
- package/src/__internal/i18n/strings.ts +207 -0
- package/src/__internal/menu-trigger-controller.ts +11 -15
- package/src/__internal/mixins/field.ts +3 -0
- package/src/__internal/mixins/form-associated.ts +2 -0
- package/src/__internal/mixins/form-submitter.ts +6 -0
- package/src/__internal/mixins/hyperlink.ts +10 -0
- package/src/__internal/toggle-base.ts +16 -0
- package/src/__internal/utils/deprecate.ts +5 -4
- package/src/__internal/utils/relative-time.ts +20 -0
- package/src/accordion/accordion.ts +1 -0
- package/src/ai-badge/ai-badge.scss +8 -0
- package/src/ai-badge/ai-badge.ts +21 -4
- package/src/button/base-button/base-button.ts +2 -0
- package/src/button/button/button-base.scss +9 -2
- package/src/button/button/button-layers.scss +3 -1
- package/src/button/button/button.ts +4 -0
- package/src/chat-message/chat-message.scss +72 -0
- package/src/chat-message/chat-message.ts +137 -18
- package/src/chat-message/index.ts +1 -0
- package/src/chat-thread/chat-event.scss +36 -0
- package/src/chat-thread/chat-event.ts +79 -0
- package/src/chat-thread/chat-thread.scss +4 -1
- package/src/chat-thread/chat-thread.ts +22 -6
- package/src/chat-thread/index.ts +1 -0
- package/src/code-editor/code-editor.ts +1 -0
- package/src/date-picker/date-picker.ts +2 -0
- package/src/dependency-map/dependency-map-layout.ts +505 -0
- package/src/dependency-map/dependency-map.scss +626 -0
- package/src/dependency-map/dependency-map.ts +1280 -0
- package/src/dependency-map/index.ts +16 -0
- package/src/diagram/diagram.scss +513 -0
- package/src/diagram/diagram.ts +1852 -0
- package/src/diagram/flow.ts +81 -0
- package/src/diagram/index.ts +44 -0
- package/src/diagram-controls/diagram-controls.scss +68 -0
- package/src/diagram-controls/diagram-controls.ts +255 -0
- package/src/diagram-controls/index.ts +1 -0
- package/src/diagram-minimap/diagram-minimap.scss +41 -0
- package/src/diagram-minimap/diagram-minimap.ts +149 -0
- package/src/diagram-minimap/index.ts +1 -0
- package/src/draft-card/draft-card.scss +16 -2
- package/src/dropdown-button/dropdown-button.ts +2 -1
- package/src/erd/erd-layout.ts +92 -0
- package/src/erd/erd.scss +636 -0
- package/src/erd/erd.ts +1728 -0
- package/src/erd/index.ts +17 -0
- package/src/field/field.scss +197 -23
- package/src/field/field.ts +109 -16
- package/src/file-upload/file-upload.scss +37 -10
- package/src/file-upload/file-upload.ts +3 -1
- package/src/focus-ring/focus-ring.ts +2 -0
- package/src/generative-view/catalog.generated.ts +12 -11
- package/src/index.ts +123 -3
- package/src/input/BaseField.ts +45 -2
- package/src/input/BaseInput.ts +4 -1
- package/src/loader.ts +29 -0
- package/src/mention-input/mention-input.scss +2 -0
- package/src/menu/menu-item/menu-item.ts +1 -0
- package/src/number-field/number-field.ts +4 -0
- package/src/progress/base-progress.ts +3 -0
- package/src/radio/radio-group.ts +1 -0
- package/src/radio/radio.ts +1 -1
- package/src/rating/rating.ts +1 -0
- package/src/ripple/ripple.ts +2 -0
- package/src/signature-pad/signature-pad.ts +1 -0
- package/src/slider/slider.ts +1 -0
- package/src/split-button/split-button-colors.scss +9 -0
- package/src/split-button/split-button-sizes.scss +32 -5
- package/src/split-button/split-button.scss +61 -8
- package/src/split-button/split-button.ts +15 -8
- package/src/switch/switch.ts +1 -0
- package/src/table/table.scss +57 -9
- package/src/table/table.ts +3 -1
- package/src/tabs/tab.ts +2 -0
- package/src/tabs/tabs.ts +1 -0
- package/src/textarea/textarea.scss +2 -0
- package/src/textarea/textarea.ts +8 -0
- package/src/time-picker/time-picker.ts +2 -0
- package/src/transfer-list/transfer-list.ts +1 -0
- package/src/tree-chart/index.ts +13 -0
- package/src/tree-chart/tree-chart-layout.ts +185 -0
- package/src/tree-chart/tree-chart.scss +377 -0
- package/src/tree-chart/tree-chart.ts +1170 -0
- package/src/workflow/index.ts +35 -0
- package/src/workflow/workflow-format.ts +29 -0
- package/src/workflow/workflow-model.ts +583 -0
- package/src/workflow/workflow.scss +1164 -0
- package/src/workflow/workflow.ts +2674 -0
- package/src/workflow-timeline/index.ts +1 -0
- package/src/workflow-timeline/workflow-timeline.scss +128 -0
- package/src/workflow-timeline/workflow-timeline.ts +238 -0
- package/dist/BaseField-CAog9TIc.js.map +0 -1
- package/dist/BaseInput-CcMfg1Y2.js.map +0 -1
- package/dist/base-button-Do2TUy8M.js.map +0 -1
- package/dist/base-progress-BiLlZVHJ.js.map +0 -1
- package/dist/cartesian-chart-C-f1frt0.js.map +0 -1
- package/dist/chart-base-B-gOg2Di.js.map +0 -1
- package/dist/generative-view-DmtpDobn.js.map +0 -1
- package/dist/hyperlink-DhE9RlVS.js.map +0 -1
- package/dist/menu-trigger-controller-DyLpTxM7.js.map +0 -1
- package/dist/relative-time-BVQXLuHm.js.map +0 -1
- package/dist/src/flow/flow.d.ts +0 -178
- package/dist/src/flow/index.d.ts +0 -2
- package/dist/toggle-base-BQO5pjrU.js.map +0 -1
- package/src/button/button-group/readme.md +0 -23
- package/src/flow/flow.scss +0 -215
- package/src/flow/flow.ts +0 -958
- package/src/flow/index.ts +0 -10
- /package/dist/test/{flow.test.d.ts → dependency-map.test.d.ts} +0 -0
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import { _ as __decorate, a as i, A, b, i as i$1 } from './IndividualComponent-BK7XZjE2.js';
|
|
2
|
-
import { n } from './property-B2TG3KEE.js';
|
|
3
|
-
import { r } from './state-BCeDVCI9.js';
|
|
4
|
-
import { e } from './query-CHb9Ft_d.js';
|
|
5
|
-
import { e as e$1 } from './class-map-NDIkZErE.js';
|
|
6
|
-
import { o } from './style-map-CHOg6N_R.js';
|
|
7
|
-
import { I as I18nController } from './i18n-controller-urcQKYGe.js';
|
|
8
|
-
import { i as isRtl } from './locale-DEsJZCQG.js';
|
|
9
|
-
|
|
10
1
|
var noop = {value: () => {}};
|
|
11
2
|
|
|
12
3
|
function dispatch() {
|
|
@@ -158,7 +149,7 @@ function selection_select(select) {
|
|
|
158
149
|
// selection; we don’t ever want to create a selection backed by a live
|
|
159
150
|
// HTMLCollection or NodeList. However, note that selection.selectAll will use a
|
|
160
151
|
// static NodeList as a group, since it safely derived from querySelectorAll.
|
|
161
|
-
function array
|
|
152
|
+
function array(x) {
|
|
162
153
|
return x == null ? [] : Array.isArray(x) ? x : Array.from(x);
|
|
163
154
|
}
|
|
164
155
|
|
|
@@ -174,7 +165,7 @@ function selectorAll(selector) {
|
|
|
174
165
|
|
|
175
166
|
function arrayAll(select) {
|
|
176
167
|
return function() {
|
|
177
|
-
return array
|
|
168
|
+
return array(select.apply(this, arguments));
|
|
178
169
|
};
|
|
179
170
|
}
|
|
180
171
|
|
|
@@ -278,7 +269,7 @@ EnterNode.prototype = {
|
|
|
278
269
|
querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); }
|
|
279
270
|
};
|
|
280
271
|
|
|
281
|
-
function constant$
|
|
272
|
+
function constant$1(x) {
|
|
282
273
|
return function() {
|
|
283
274
|
return x;
|
|
284
275
|
};
|
|
@@ -365,7 +356,7 @@ function selection_data(value, key) {
|
|
|
365
356
|
parents = this._parents,
|
|
366
357
|
groups = this._groups;
|
|
367
358
|
|
|
368
|
-
if (typeof value !== "function") value = constant$
|
|
359
|
+
if (typeof value !== "function") value = constant$1(value);
|
|
369
360
|
|
|
370
361
|
for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {
|
|
371
362
|
var parent = parents[j],
|
|
@@ -1008,12 +999,6 @@ Selection$1.prototype = selection.prototype = {
|
|
|
1008
999
|
[Symbol.iterator]: selection_iterator
|
|
1009
1000
|
};
|
|
1010
1001
|
|
|
1011
|
-
function select(selector) {
|
|
1012
|
-
return typeof selector === "string"
|
|
1013
|
-
? new Selection$1([[document.querySelector(selector)]], [document.documentElement])
|
|
1014
|
-
: new Selection$1([[selector]], root);
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
1002
|
function define(constructor, factory, prototype) {
|
|
1018
1003
|
constructor.prototype = factory.prototype = prototype;
|
|
1019
1004
|
prototype.constructor = constructor;
|
|
@@ -1420,7 +1405,7 @@ function hsl2rgb(h, m1, m2) {
|
|
|
1420
1405
|
: m1) * 255;
|
|
1421
1406
|
}
|
|
1422
1407
|
|
|
1423
|
-
var constant
|
|
1408
|
+
var constant = x => () => x;
|
|
1424
1409
|
|
|
1425
1410
|
function linear(a, d) {
|
|
1426
1411
|
return function(t) {
|
|
@@ -1436,13 +1421,13 @@ function exponential(a, b, y) {
|
|
|
1436
1421
|
|
|
1437
1422
|
function gamma(y) {
|
|
1438
1423
|
return (y = +y) === 1 ? nogamma : function(a, b) {
|
|
1439
|
-
return b - a ? exponential(a, b, y) : constant
|
|
1424
|
+
return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);
|
|
1440
1425
|
};
|
|
1441
1426
|
}
|
|
1442
1427
|
|
|
1443
1428
|
function nogamma(a, b) {
|
|
1444
1429
|
var d = b - a;
|
|
1445
|
-
return d ? linear(a, d) : constant
|
|
1430
|
+
return d ? linear(a, d) : constant(isNaN(a) ? b : a);
|
|
1446
1431
|
}
|
|
1447
1432
|
|
|
1448
1433
|
var interpolateRgb = (function rgbGamma(y) {
|
|
@@ -1467,72 +1452,12 @@ var interpolateRgb = (function rgbGamma(y) {
|
|
|
1467
1452
|
return rgb$1;
|
|
1468
1453
|
})(1);
|
|
1469
1454
|
|
|
1470
|
-
function numberArray(a, b) {
|
|
1471
|
-
if (!b) b = [];
|
|
1472
|
-
var n = a ? Math.min(b.length, a.length) : 0,
|
|
1473
|
-
c = b.slice(),
|
|
1474
|
-
i;
|
|
1475
|
-
return function(t) {
|
|
1476
|
-
for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;
|
|
1477
|
-
return c;
|
|
1478
|
-
};
|
|
1479
|
-
}
|
|
1480
|
-
|
|
1481
|
-
function isNumberArray(x) {
|
|
1482
|
-
return ArrayBuffer.isView(x) && !(x instanceof DataView);
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
function genericArray(a, b) {
|
|
1486
|
-
var nb = b ? b.length : 0,
|
|
1487
|
-
na = a ? Math.min(nb, a.length) : 0,
|
|
1488
|
-
x = new Array(na),
|
|
1489
|
-
c = new Array(nb),
|
|
1490
|
-
i;
|
|
1491
|
-
|
|
1492
|
-
for (i = 0; i < na; ++i) x[i] = interpolate$1(a[i], b[i]);
|
|
1493
|
-
for (; i < nb; ++i) c[i] = b[i];
|
|
1494
|
-
|
|
1495
|
-
return function(t) {
|
|
1496
|
-
for (i = 0; i < na; ++i) c[i] = x[i](t);
|
|
1497
|
-
return c;
|
|
1498
|
-
};
|
|
1499
|
-
}
|
|
1500
|
-
|
|
1501
|
-
function date(a, b) {
|
|
1502
|
-
var d = new Date;
|
|
1503
|
-
return a = +a, b = +b, function(t) {
|
|
1504
|
-
return d.setTime(a * (1 - t) + b * t), d;
|
|
1505
|
-
};
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
1455
|
function interpolateNumber(a, b) {
|
|
1509
1456
|
return a = +a, b = +b, function(t) {
|
|
1510
1457
|
return a * (1 - t) + b * t;
|
|
1511
1458
|
};
|
|
1512
1459
|
}
|
|
1513
1460
|
|
|
1514
|
-
function object(a, b) {
|
|
1515
|
-
var i = {},
|
|
1516
|
-
c = {},
|
|
1517
|
-
k;
|
|
1518
|
-
|
|
1519
|
-
if (a === null || typeof a !== "object") a = {};
|
|
1520
|
-
if (b === null || typeof b !== "object") b = {};
|
|
1521
|
-
|
|
1522
|
-
for (k in b) {
|
|
1523
|
-
if (k in a) {
|
|
1524
|
-
i[k] = interpolate$1(a[k], b[k]);
|
|
1525
|
-
} else {
|
|
1526
|
-
c[k] = b[k];
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
return function(t) {
|
|
1531
|
-
for (k in i) c[k] = i[k](t);
|
|
1532
|
-
return c;
|
|
1533
|
-
};
|
|
1534
|
-
}
|
|
1535
|
-
|
|
1536
1461
|
var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
|
|
1537
1462
|
reB = new RegExp(reA.source, "g");
|
|
1538
1463
|
|
|
@@ -1596,19 +1521,6 @@ function interpolateString(a, b) {
|
|
|
1596
1521
|
});
|
|
1597
1522
|
}
|
|
1598
1523
|
|
|
1599
|
-
function interpolate$1(a, b) {
|
|
1600
|
-
var t = typeof b, c;
|
|
1601
|
-
return b == null || t === "boolean" ? constant$1(b)
|
|
1602
|
-
: (t === "number" ? interpolateNumber
|
|
1603
|
-
: t === "string" ? ((c = color(b)) ? (b = c, interpolateRgb) : interpolateString)
|
|
1604
|
-
: b instanceof color ? interpolateRgb
|
|
1605
|
-
: b instanceof Date ? date
|
|
1606
|
-
: isNumberArray(b) ? numberArray
|
|
1607
|
-
: Array.isArray(b) ? genericArray
|
|
1608
|
-
: typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object
|
|
1609
|
-
: interpolateNumber)(a, b);
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
1524
|
var degrees = 180 / Math.PI;
|
|
1613
1525
|
|
|
1614
1526
|
var identity = {
|
|
@@ -2706,18 +2618,6 @@ function selection_transition(name) {
|
|
|
2706
2618
|
selection.prototype.interrupt = selection_interrupt;
|
|
2707
2619
|
selection.prototype.transition = selection_transition;
|
|
2708
2620
|
|
|
2709
|
-
function constant(x) {
|
|
2710
|
-
return function constant() {
|
|
2711
|
-
return x;
|
|
2712
|
-
};
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2715
|
-
function array(x) {
|
|
2716
|
-
return typeof x === "object" && "length" in x
|
|
2717
|
-
? x // Array, TypedArray, NodeList, array-like
|
|
2718
|
-
: Array.from(x); // Map, Set, iterable, string, or anything else
|
|
2719
|
-
}
|
|
2720
|
-
|
|
2721
2621
|
function Transform(k, x, y) {
|
|
2722
2622
|
this.k = k;
|
|
2723
2623
|
this.x = x;
|
|
@@ -2763,735 +2663,5 @@ Transform.prototype = {
|
|
|
2763
2663
|
|
|
2764
2664
|
Transform.prototype;
|
|
2765
2665
|
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
/** Default motion duration for enter and data-change animations. */
|
|
2769
|
-
const DURATION = 450;
|
|
2770
|
-
/** Tooltip offset from the pointer or anchor. */
|
|
2771
|
-
const TOOLTIP_OFFSET = 12;
|
|
2772
|
-
/** The palette color for the series or slice at `index`. */
|
|
2773
|
-
function chartColor(index) {
|
|
2774
|
-
return `var(--color-chart-${(index % CHART_PALETTE_SIZE) + 1})`;
|
|
2775
|
-
}
|
|
2776
|
-
/**
|
|
2777
|
-
* Shared behaviour for every Peacock chart: container sizing, palette, value formatting,
|
|
2778
|
-
* tooltip, legend, keyboard navigation, the accessible data table, and loading and empty states.
|
|
2779
|
-
* Subclasses draw the marks with d3 into the SVG returned by `renderSvgContent()`.
|
|
2780
|
-
*/
|
|
2781
|
-
class ChartBase extends i {
|
|
2782
|
-
constructor() {
|
|
2783
|
-
// ── Properties
|
|
2784
|
-
super(...arguments);
|
|
2785
|
-
/** Height of the plot in pixels. The width follows the container. */
|
|
2786
|
-
this.height = 300;
|
|
2787
|
-
/** Accessible name of the chart, read by screen readers. */
|
|
2788
|
-
this.label = '';
|
|
2789
|
-
/** Shows a skeleton while data loads. */
|
|
2790
|
-
this.loading = false;
|
|
2791
|
-
/**
|
|
2792
|
-
* When the legend shows: `auto` shows it for more than one series (always for pie and
|
|
2793
|
-
* doughnut slices), `show` always, `hide` never.
|
|
2794
|
-
*/
|
|
2795
|
-
this.legend = 'auto';
|
|
2796
|
-
/** Hides the tooltip. */
|
|
2797
|
-
this.hideTooltip = false;
|
|
2798
|
-
/** Turns off enter and update animations. They are also off when the user prefers reduced motion. */
|
|
2799
|
-
this.disableAnimation = false;
|
|
2800
|
-
// ── State
|
|
2801
|
-
/** Keys of series or slices switched off in the legend. */
|
|
2802
|
-
this.hiddenKeys = new Set();
|
|
2803
|
-
/** Index of the hovered or focused category or slice, -1 for none. */
|
|
2804
|
-
this.activeIndex = -1;
|
|
2805
|
-
/** Width of the plot, measured from the container. */
|
|
2806
|
-
this.plotWidth = 0;
|
|
2807
|
-
/** Text for the polite live region, set during keyboard navigation. */
|
|
2808
|
-
this.announcement = '';
|
|
2809
|
-
/** Whether the marks have been drawn once. */
|
|
2810
|
-
this.hasDrawn = false;
|
|
2811
|
-
/** Peacock's strings and the locale values are formatted in. */
|
|
2812
|
-
this.i18n = new I18nController(this);
|
|
2813
|
-
this.handlePointerMove = (event) => {
|
|
2814
|
-
const point = this.pointFromEvent(event);
|
|
2815
|
-
if (!point)
|
|
2816
|
-
return;
|
|
2817
|
-
const index = this.itemAtPoint(point.x, point.y);
|
|
2818
|
-
this.activeIndex = index;
|
|
2819
|
-
this.pointer = index >= 0 ? point : undefined;
|
|
2820
|
-
};
|
|
2821
|
-
this.handlePointerLeave = () => {
|
|
2822
|
-
this.activeIndex = -1;
|
|
2823
|
-
this.pointer = undefined;
|
|
2824
|
-
};
|
|
2825
|
-
this.handleClick = (event) => {
|
|
2826
|
-
const point = this.pointFromEvent(event);
|
|
2827
|
-
if (!point)
|
|
2828
|
-
return;
|
|
2829
|
-
const index = this.itemAtPoint(point.x, point.y);
|
|
2830
|
-
if (index >= 0)
|
|
2831
|
-
this.selectItem(index);
|
|
2832
|
-
};
|
|
2833
|
-
this.handleKeyDown = (event) => {
|
|
2834
|
-
const count = this.getItemCount();
|
|
2835
|
-
if (!count)
|
|
2836
|
-
return;
|
|
2837
|
-
let next = this.activeIndex;
|
|
2838
|
-
// Left and Right follow the reading direction: in RTL, Left moves forward.
|
|
2839
|
-
let { key } = event;
|
|
2840
|
-
if (isRtl(this) && (key === 'ArrowLeft' || key === 'ArrowRight')) {
|
|
2841
|
-
key = key === 'ArrowLeft' ? 'ArrowRight' : 'ArrowLeft';
|
|
2842
|
-
}
|
|
2843
|
-
switch (key) {
|
|
2844
|
-
case 'ArrowRight':
|
|
2845
|
-
case 'ArrowDown':
|
|
2846
|
-
next = next < 0 ? 0 : Math.min(next + 1, count - 1);
|
|
2847
|
-
break;
|
|
2848
|
-
case 'ArrowLeft':
|
|
2849
|
-
case 'ArrowUp':
|
|
2850
|
-
next = next < 0 ? count - 1 : Math.max(next - 1, 0);
|
|
2851
|
-
break;
|
|
2852
|
-
case 'Home':
|
|
2853
|
-
next = 0;
|
|
2854
|
-
break;
|
|
2855
|
-
case 'End':
|
|
2856
|
-
next = count - 1;
|
|
2857
|
-
break;
|
|
2858
|
-
case 'Escape':
|
|
2859
|
-
next = -1;
|
|
2860
|
-
break;
|
|
2861
|
-
case 'Enter':
|
|
2862
|
-
case ' ':
|
|
2863
|
-
if (this.activeIndex >= 0) {
|
|
2864
|
-
event.preventDefault();
|
|
2865
|
-
this.selectItem(this.activeIndex);
|
|
2866
|
-
}
|
|
2867
|
-
return;
|
|
2868
|
-
default:
|
|
2869
|
-
return;
|
|
2870
|
-
}
|
|
2871
|
-
event.preventDefault();
|
|
2872
|
-
this.pointer = undefined;
|
|
2873
|
-
this.activeIndex = next;
|
|
2874
|
-
this.announce(next);
|
|
2875
|
-
};
|
|
2876
|
-
this.handleBlur = () => {
|
|
2877
|
-
this.activeIndex = -1;
|
|
2878
|
-
this.pointer = undefined;
|
|
2879
|
-
};
|
|
2880
|
-
}
|
|
2881
|
-
// ── Lifecycle
|
|
2882
|
-
connectedCallback() {
|
|
2883
|
-
super.connectedCallback();
|
|
2884
|
-
this.resizeObserver = new ResizeObserver(entries => {
|
|
2885
|
-
const width = Math.floor(entries[0]?.contentRect.width ?? 0);
|
|
2886
|
-
if (width !== this.plotWidth)
|
|
2887
|
-
this.plotWidth = width;
|
|
2888
|
-
});
|
|
2889
|
-
this.resizeObserver.observe(this);
|
|
2890
|
-
}
|
|
2891
|
-
disconnectedCallback() {
|
|
2892
|
-
super.disconnectedCallback();
|
|
2893
|
-
this.resizeObserver?.disconnect();
|
|
2894
|
-
this.resizeObserver = undefined;
|
|
2895
|
-
}
|
|
2896
|
-
updated(changed) {
|
|
2897
|
-
super.updated(changed);
|
|
2898
|
-
if (!this.svgElement || this.plotWidth <= 0)
|
|
2899
|
-
return;
|
|
2900
|
-
const drawKeys = this.drawProperties();
|
|
2901
|
-
const needsDraw = drawKeys.some(key => changed.has(key));
|
|
2902
|
-
if (needsDraw) {
|
|
2903
|
-
const resizeOnly = [...changed.keys()].every(key => key === 'plotWidth' || !drawKeys.includes(key));
|
|
2904
|
-
// The first draw animates the marks in; later resizes snap.
|
|
2905
|
-
this.draw((!resizeOnly || !this.hasDrawn) && this.motionEnabled());
|
|
2906
|
-
this.hasDrawn = true;
|
|
2907
|
-
this.drawHighlight();
|
|
2908
|
-
}
|
|
2909
|
-
else if (changed.has('activeIndex') || changed.has('activeSeries')) {
|
|
2910
|
-
this.drawHighlight();
|
|
2911
|
-
}
|
|
2912
|
-
}
|
|
2913
|
-
/** Property names that trigger a redraw when they change. */
|
|
2914
|
-
drawProperties() {
|
|
2915
|
-
return ['height', 'plotWidth', 'hiddenKeys', 'loading', 'valueFormatter'];
|
|
2916
|
-
}
|
|
2917
|
-
/** The legend mode in effect: unknown values count as `auto`. */
|
|
2918
|
-
legendMode() {
|
|
2919
|
-
return this.legend === 'show' || this.legend === 'hide'
|
|
2920
|
-
? this.legend
|
|
2921
|
-
: 'auto';
|
|
2922
|
-
}
|
|
2923
|
-
/** Whether the legend shows when `legend` is `auto`. */
|
|
2924
|
-
legendAuto() {
|
|
2925
|
-
return this.getSeries().length > 1;
|
|
2926
|
-
}
|
|
2927
|
-
/** Whether the legend shows. */
|
|
2928
|
-
legendVisible() {
|
|
2929
|
-
const mode = this.legendMode();
|
|
2930
|
-
if (mode === 'auto')
|
|
2931
|
-
return this.legendAuto();
|
|
2932
|
-
return mode === 'show';
|
|
2933
|
-
}
|
|
2934
|
-
/** Width and height of the SVG. */
|
|
2935
|
-
svgSize() {
|
|
2936
|
-
return { width: this.plotWidth, height: this.height };
|
|
2937
|
-
}
|
|
2938
|
-
/** Motion duration in ms, 0 when animation is off. */
|
|
2939
|
-
motionEnabled() {
|
|
2940
|
-
if (this.disableAnimation)
|
|
2941
|
-
return false;
|
|
2942
|
-
return !window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;
|
|
2943
|
-
}
|
|
2944
|
-
/**
|
|
2945
|
-
* Returns a transition of `selection` when `animate` is true, else the selection itself, so
|
|
2946
|
-
* callers set end values once. Transitions share the attr/style API used here.
|
|
2947
|
-
*/
|
|
2948
|
-
motion(selection, animate) {
|
|
2949
|
-
if (!animate) {
|
|
2950
|
-
selection.interrupt();
|
|
2951
|
-
return selection;
|
|
2952
|
-
}
|
|
2953
|
-
return selection
|
|
2954
|
-
.transition()
|
|
2955
|
-
.duration(DURATION)
|
|
2956
|
-
.ease(cubicOut);
|
|
2957
|
-
}
|
|
2958
|
-
/** Formats a value for tooltips and value labels. */
|
|
2959
|
-
formatValue(value) {
|
|
2960
|
-
return this.valueFormatter
|
|
2961
|
-
? this.valueFormatter(value)
|
|
2962
|
-
: this.getNumberFormats().standard.format(value);
|
|
2963
|
-
}
|
|
2964
|
-
/** Formats an axis tick. */
|
|
2965
|
-
formatTick(value) {
|
|
2966
|
-
return this.valueFormatter
|
|
2967
|
-
? this.valueFormatter(value)
|
|
2968
|
-
: this.getNumberFormats().compact.format(value);
|
|
2969
|
-
}
|
|
2970
|
-
/** Whether a series or slice is switched off in the legend. */
|
|
2971
|
-
isHidden(key) {
|
|
2972
|
-
return this.hiddenKeys.has(key);
|
|
2973
|
-
}
|
|
2974
|
-
/** Extra content layered over the plot, such as the doughnut centre. */
|
|
2975
|
-
renderOverlay() {
|
|
2976
|
-
return A;
|
|
2977
|
-
}
|
|
2978
|
-
/** Skeleton shown while `loading`. */
|
|
2979
|
-
renderSkeleton() {
|
|
2980
|
-
const bars = [55, 80, 40, 95, 65, 75, 50];
|
|
2981
|
-
return b `<div
|
|
2982
|
-
class="skeleton skeleton-bars"
|
|
2983
|
-
style=${o({ height: `${this.height}px` })}
|
|
2984
|
-
aria-hidden="true"
|
|
2985
|
-
>
|
|
2986
|
-
${bars.map(h => b `<span style=${o({ height: `${h}%` })}></span>`)}
|
|
2987
|
-
</div>`;
|
|
2988
|
-
}
|
|
2989
|
-
// ── Private methods
|
|
2990
|
-
/** The number formats for the resolved locale, cached per instance. */
|
|
2991
|
-
getNumberFormats() {
|
|
2992
|
-
const { locale } = this.i18n;
|
|
2993
|
-
if (this.numberFormats?.locale !== locale) {
|
|
2994
|
-
this.numberFormats = {
|
|
2995
|
-
locale,
|
|
2996
|
-
standard: new Intl.NumberFormat(locale),
|
|
2997
|
-
compact: new Intl.NumberFormat(locale, {
|
|
2998
|
-
notation: 'compact',
|
|
2999
|
-
maximumFractionDigits: 1,
|
|
3000
|
-
}),
|
|
3001
|
-
};
|
|
3002
|
-
}
|
|
3003
|
-
return this.numberFormats;
|
|
3004
|
-
}
|
|
3005
|
-
pointFromEvent(event) {
|
|
3006
|
-
const rect = this.plotElement?.getBoundingClientRect();
|
|
3007
|
-
if (!rect)
|
|
3008
|
-
return undefined;
|
|
3009
|
-
return { x: event.clientX - rect.left, y: event.clientY - rect.top };
|
|
3010
|
-
}
|
|
3011
|
-
announce(index) {
|
|
3012
|
-
const model = index >= 0 ? this.getTooltip(index) : undefined;
|
|
3013
|
-
this.announcement = model
|
|
3014
|
-
? `${model.title}. ${model.rows.map(row => `${row.label} ${row.value}`).join(', ')}`
|
|
3015
|
-
: '';
|
|
3016
|
-
}
|
|
3017
|
-
/** Fires `select` for the item at `index`. */
|
|
3018
|
-
selectItem(index) {
|
|
3019
|
-
this.dispatchEvent(new CustomEvent('select', {
|
|
3020
|
-
bubbles: true,
|
|
3021
|
-
composed: true,
|
|
3022
|
-
detail: this.getSelectDetail(index),
|
|
3023
|
-
}));
|
|
3024
|
-
}
|
|
3025
|
-
toggleSeries(key) {
|
|
3026
|
-
const next = new Set(this.hiddenKeys);
|
|
3027
|
-
if (next.has(key))
|
|
3028
|
-
next.delete(key);
|
|
3029
|
-
else
|
|
3030
|
-
next.add(key);
|
|
3031
|
-
this.hiddenKeys = next;
|
|
3032
|
-
}
|
|
3033
|
-
// ── Render helpers
|
|
3034
|
-
renderTooltip() {
|
|
3035
|
-
if (this.hideTooltip || this.activeIndex < 0)
|
|
3036
|
-
return A;
|
|
3037
|
-
const model = this.getTooltip(this.activeIndex);
|
|
3038
|
-
if (!model || !model.rows.length)
|
|
3039
|
-
return A;
|
|
3040
|
-
const x = this.pointer?.x ?? model.x;
|
|
3041
|
-
const y = this.pointer?.y ?? model.y;
|
|
3042
|
-
const flip = x > this.plotWidth * 0.6;
|
|
3043
|
-
return b `<div
|
|
3044
|
-
class=${e$1({ tooltip: true, flip })}
|
|
3045
|
-
part="tooltip"
|
|
3046
|
-
aria-hidden="true"
|
|
3047
|
-
style=${o({
|
|
3048
|
-
left: `${flip ? x - TOOLTIP_OFFSET : x + TOOLTIP_OFFSET}px`,
|
|
3049
|
-
top: `${y}px`,
|
|
3050
|
-
})}
|
|
3051
|
-
>
|
|
3052
|
-
${model.title
|
|
3053
|
-
? b `<div class="tooltip-title">${model.title}</div>`
|
|
3054
|
-
: A}
|
|
3055
|
-
${model.rows.map(row => b `<div class="tooltip-row">
|
|
3056
|
-
<span
|
|
3057
|
-
class="swatch"
|
|
3058
|
-
style=${o({ background: row.color })}
|
|
3059
|
-
></span>
|
|
3060
|
-
<span class="tooltip-label">${row.label}</span>
|
|
3061
|
-
<span class="tooltip-value">${row.value}</span>
|
|
3062
|
-
</div>`)}
|
|
3063
|
-
</div>`;
|
|
3064
|
-
}
|
|
3065
|
-
renderLegend() {
|
|
3066
|
-
if (!this.legendVisible())
|
|
3067
|
-
return A;
|
|
3068
|
-
return b `<div class="legend" part="legend">
|
|
3069
|
-
${this.getSeries().map(series => b `<button
|
|
3070
|
-
type="button"
|
|
3071
|
-
class=${e$1({
|
|
3072
|
-
'legend-item': true,
|
|
3073
|
-
'is-hidden': this.isHidden(series.key),
|
|
3074
|
-
})}
|
|
3075
|
-
aria-pressed=${this.isHidden(series.key) ? 'false' : 'true'}
|
|
3076
|
-
@click=${() => this.toggleSeries(series.key)}
|
|
3077
|
-
@pointerenter=${() => {
|
|
3078
|
-
this.activeSeries = series.key;
|
|
3079
|
-
}}
|
|
3080
|
-
@pointerleave=${() => {
|
|
3081
|
-
this.activeSeries = undefined;
|
|
3082
|
-
}}
|
|
3083
|
-
>
|
|
3084
|
-
<span
|
|
3085
|
-
class="swatch"
|
|
3086
|
-
style=${o({ background: series.color })}
|
|
3087
|
-
></span>
|
|
3088
|
-
<span>${series.label}</span>
|
|
3089
|
-
</button>`)}
|
|
3090
|
-
</div>`;
|
|
3091
|
-
}
|
|
3092
|
-
renderPlot() {
|
|
3093
|
-
const { width, height } = this.svgSize();
|
|
3094
|
-
const name = this.label || this.i18n.t('chart');
|
|
3095
|
-
return b `<div
|
|
3096
|
-
class="plot"
|
|
3097
|
-
part="plot"
|
|
3098
|
-
style=${o({ height: `${this.height}px` })}
|
|
3099
|
-
tabindex="0"
|
|
3100
|
-
role="group"
|
|
3101
|
-
aria-roledescription=${this.i18n.t('chartRole')}
|
|
3102
|
-
aria-label=${this.i18n.t('chartInstructions')(name)}
|
|
3103
|
-
@pointermove=${this.handlePointerMove}
|
|
3104
|
-
@pointerleave=${this.handlePointerLeave}
|
|
3105
|
-
@click=${this.handleClick}
|
|
3106
|
-
@keydown=${this.handleKeyDown}
|
|
3107
|
-
@blur=${this.handleBlur}
|
|
3108
|
-
>
|
|
3109
|
-
<svg class="chart-svg" aria-hidden="true" width=${width} height=${height}>
|
|
3110
|
-
${this.renderSvgContent()}
|
|
3111
|
-
</svg>
|
|
3112
|
-
${this.renderOverlay()} ${this.renderTooltip()}
|
|
3113
|
-
</div>`;
|
|
3114
|
-
}
|
|
3115
|
-
// ── Render
|
|
3116
|
-
render() {
|
|
3117
|
-
let body;
|
|
3118
|
-
if (this.loading) {
|
|
3119
|
-
body = this.renderSkeleton();
|
|
3120
|
-
}
|
|
3121
|
-
else if (!this.hasData()) {
|
|
3122
|
-
body = b `<div
|
|
3123
|
-
class="empty"
|
|
3124
|
-
style=${o({ height: `${this.height}px` })}
|
|
3125
|
-
>
|
|
3126
|
-
<slot name="empty">${this.i18n.t('noData')}</slot>
|
|
3127
|
-
</div>`;
|
|
3128
|
-
}
|
|
3129
|
-
else {
|
|
3130
|
-
body = this.renderPlot();
|
|
3131
|
-
}
|
|
3132
|
-
const hasContent = !this.loading && this.hasData();
|
|
3133
|
-
return b `<div
|
|
3134
|
-
class="chart"
|
|
3135
|
-
part="container"
|
|
3136
|
-
aria-busy=${this.loading ? 'true' : 'false'}
|
|
3137
|
-
>
|
|
3138
|
-
${body} ${hasContent ? this.renderLegend() : A}
|
|
3139
|
-
<slot name="insight" class="insight"></slot>
|
|
3140
|
-
${hasContent
|
|
3141
|
-
? b `<table class="sr-only">
|
|
3142
|
-
<caption>
|
|
3143
|
-
${this.label || this.i18n.t('chartData')}
|
|
3144
|
-
</caption>
|
|
3145
|
-
${this.renderTable()}
|
|
3146
|
-
</table>`
|
|
3147
|
-
: A}
|
|
3148
|
-
<div class="sr-only" aria-live="polite">${this.announcement}</div>
|
|
3149
|
-
</div>`;
|
|
3150
|
-
}
|
|
3151
|
-
}
|
|
3152
|
-
__decorate([
|
|
3153
|
-
n({ type: Number, reflect: true })
|
|
3154
|
-
], ChartBase.prototype, "height", void 0);
|
|
3155
|
-
__decorate([
|
|
3156
|
-
n({ type: String })
|
|
3157
|
-
], ChartBase.prototype, "label", void 0);
|
|
3158
|
-
__decorate([
|
|
3159
|
-
n({ type: Boolean, reflect: true })
|
|
3160
|
-
], ChartBase.prototype, "loading", void 0);
|
|
3161
|
-
__decorate([
|
|
3162
|
-
n({ type: String, reflect: true })
|
|
3163
|
-
], ChartBase.prototype, "legend", void 0);
|
|
3164
|
-
__decorate([
|
|
3165
|
-
n({ type: Boolean, attribute: 'hide-tooltip' })
|
|
3166
|
-
], ChartBase.prototype, "hideTooltip", void 0);
|
|
3167
|
-
__decorate([
|
|
3168
|
-
n({ type: Boolean, attribute: 'disable-animation' })
|
|
3169
|
-
], ChartBase.prototype, "disableAnimation", void 0);
|
|
3170
|
-
__decorate([
|
|
3171
|
-
n({ attribute: false })
|
|
3172
|
-
], ChartBase.prototype, "valueFormatter", void 0);
|
|
3173
|
-
__decorate([
|
|
3174
|
-
n({ attribute: false })
|
|
3175
|
-
], ChartBase.prototype, "strings", void 0);
|
|
3176
|
-
__decorate([
|
|
3177
|
-
r()
|
|
3178
|
-
], ChartBase.prototype, "hiddenKeys", void 0);
|
|
3179
|
-
__decorate([
|
|
3180
|
-
r()
|
|
3181
|
-
], ChartBase.prototype, "activeIndex", void 0);
|
|
3182
|
-
__decorate([
|
|
3183
|
-
r()
|
|
3184
|
-
], ChartBase.prototype, "activeSeries", void 0);
|
|
3185
|
-
__decorate([
|
|
3186
|
-
r()
|
|
3187
|
-
], ChartBase.prototype, "pointer", void 0);
|
|
3188
|
-
__decorate([
|
|
3189
|
-
r()
|
|
3190
|
-
], ChartBase.prototype, "plotWidth", void 0);
|
|
3191
|
-
__decorate([
|
|
3192
|
-
r()
|
|
3193
|
-
], ChartBase.prototype, "announcement", void 0);
|
|
3194
|
-
__decorate([
|
|
3195
|
-
e('svg.chart-svg')
|
|
3196
|
-
], ChartBase.prototype, "svgElement", void 0);
|
|
3197
|
-
__decorate([
|
|
3198
|
-
e('.plot')
|
|
3199
|
-
], ChartBase.prototype, "plotElement", void 0);
|
|
3200
|
-
|
|
3201
|
-
var css_248z = i$1`* {
|
|
3202
|
-
box-sizing: border-box;
|
|
3203
|
-
-webkit-tap-highlight-color: transparent;
|
|
3204
|
-
}
|
|
3205
|
-
|
|
3206
|
-
.screen-reader-only {
|
|
3207
|
-
position: absolute !important;
|
|
3208
|
-
inline-size: 1px !important;
|
|
3209
|
-
block-size: 1px !important;
|
|
3210
|
-
padding: 0 !important;
|
|
3211
|
-
margin: -1px !important;
|
|
3212
|
-
overflow: hidden !important;
|
|
3213
|
-
clip-path: inset(50%) !important;
|
|
3214
|
-
white-space: nowrap !important;
|
|
3215
|
-
border: 0 !important;
|
|
3216
|
-
}
|
|
3217
|
-
|
|
3218
|
-
[hidden] {
|
|
3219
|
-
display: none !important;
|
|
3220
|
-
}
|
|
3221
|
-
|
|
3222
|
-
@media (forced-colors: active) {
|
|
3223
|
-
.selected,
|
|
3224
|
-
[aria-selected=true],
|
|
3225
|
-
[aria-pressed=true],
|
|
3226
|
-
[aria-checked=true],
|
|
3227
|
-
[aria-current]:not([aria-current=false]) {
|
|
3228
|
-
outline: 2px solid Highlight;
|
|
3229
|
-
outline-offset: -2px;
|
|
3230
|
-
}
|
|
3231
|
-
.disabled,
|
|
3232
|
-
[aria-disabled=true] {
|
|
3233
|
-
color: GrayText;
|
|
3234
|
-
}
|
|
3235
|
-
}
|
|
3236
|
-
:host {
|
|
3237
|
-
display: block;
|
|
3238
|
-
width: 100%;
|
|
3239
|
-
min-width: 0;
|
|
3240
|
-
color: var(--color-on-surface);
|
|
3241
|
-
--_chart-grid-color: var(--chart-grid-color, var(--color-outline-variant));
|
|
3242
|
-
--_chart-axis-color: var(--chart-axis-color, var(--color-on-surface-variant));
|
|
3243
|
-
--_chart-dim-opacity: var(--chart-dim-opacity, 0.4);
|
|
3244
|
-
--_chart-cursor-color: var(--chart-cursor-color, var(--color-on-surface));
|
|
3245
|
-
}
|
|
3246
|
-
|
|
3247
|
-
.chart {
|
|
3248
|
-
display: flex;
|
|
3249
|
-
flex-direction: column;
|
|
3250
|
-
gap: var(--spacing-200);
|
|
3251
|
-
width: 100%;
|
|
3252
|
-
}
|
|
3253
|
-
|
|
3254
|
-
.plot {
|
|
3255
|
-
position: relative;
|
|
3256
|
-
width: 100%;
|
|
3257
|
-
outline: none;
|
|
3258
|
-
touch-action: pan-y;
|
|
3259
|
-
border-radius: var(--shape-corner-small);
|
|
3260
|
-
}
|
|
3261
|
-
.plot:focus-visible {
|
|
3262
|
-
outline: 2px solid var(--color-primary);
|
|
3263
|
-
}
|
|
3264
|
-
|
|
3265
|
-
.chart-svg {
|
|
3266
|
-
display: block;
|
|
3267
|
-
overflow: visible;
|
|
3268
|
-
}
|
|
3269
|
-
|
|
3270
|
-
.gridline {
|
|
3271
|
-
stroke: var(--_chart-grid-color);
|
|
3272
|
-
stroke-dasharray: 3 3;
|
|
3273
|
-
shape-rendering: crispEdges;
|
|
3274
|
-
}
|
|
3275
|
-
|
|
3276
|
-
.baseline {
|
|
3277
|
-
stroke: var(--_chart-grid-color);
|
|
3278
|
-
shape-rendering: crispEdges;
|
|
3279
|
-
}
|
|
3280
|
-
|
|
3281
|
-
.axis-label {
|
|
3282
|
-
font-family: var(--typography-label-medium-font-family) !important;
|
|
3283
|
-
font-size: var(--typography-label-medium-font-size) !important;
|
|
3284
|
-
font-weight: var(--typography-label-medium-font-weight) !important;
|
|
3285
|
-
line-height: var(--typography-label-medium-line-height) !important;
|
|
3286
|
-
letter-spacing: var(--typography-label-medium-letter-spacing) !important;
|
|
3287
|
-
fill: var(--_chart-axis-color);
|
|
3288
|
-
}
|
|
3289
|
-
|
|
3290
|
-
.value-label {
|
|
3291
|
-
font-family: var(--typography-label-small-font-family) !important;
|
|
3292
|
-
font-size: var(--typography-label-small-font-size) !important;
|
|
3293
|
-
font-weight: var(--typography-label-small-font-weight) !important;
|
|
3294
|
-
line-height: var(--typography-label-small-line-height) !important;
|
|
3295
|
-
letter-spacing: var(--typography-label-small-letter-spacing) !important;
|
|
3296
|
-
fill: var(--color-on-surface);
|
|
3297
|
-
}
|
|
3298
|
-
|
|
3299
|
-
.cursor {
|
|
3300
|
-
fill: var(--_chart-cursor-color);
|
|
3301
|
-
stroke: var(--_chart-cursor-color);
|
|
3302
|
-
opacity: 0;
|
|
3303
|
-
pointer-events: none;
|
|
3304
|
-
transition: opacity var(--duration-short2) var(--easing-standard);
|
|
3305
|
-
}
|
|
3306
|
-
.cursor.is-visible {
|
|
3307
|
-
opacity: 0.08;
|
|
3308
|
-
}
|
|
3309
|
-
|
|
3310
|
-
.cursor-line.is-visible {
|
|
3311
|
-
opacity: 0.4;
|
|
3312
|
-
}
|
|
3313
|
-
|
|
3314
|
-
.mark {
|
|
3315
|
-
transition: opacity var(--duration-short3) var(--easing-standard);
|
|
3316
|
-
}
|
|
3317
|
-
.mark.is-dimmed {
|
|
3318
|
-
opacity: var(--_chart-dim-opacity);
|
|
3319
|
-
}
|
|
3320
|
-
|
|
3321
|
-
.tooltip {
|
|
3322
|
-
position: absolute;
|
|
3323
|
-
z-index: 1;
|
|
3324
|
-
min-width: 8rem;
|
|
3325
|
-
padding: var(--spacing-150) var(--spacing-200);
|
|
3326
|
-
border-radius: var(--shape-corner-small);
|
|
3327
|
-
background: var(--color-surface-container-high);
|
|
3328
|
-
color: var(--color-on-surface);
|
|
3329
|
-
box-shadow: var(--elevation-level2);
|
|
3330
|
-
pointer-events: none;
|
|
3331
|
-
transform: translateY(-50%);
|
|
3332
|
-
white-space: nowrap;
|
|
3333
|
-
}
|
|
3334
|
-
.tooltip.flip {
|
|
3335
|
-
transform: translate(-100%, -50%);
|
|
3336
|
-
}
|
|
3337
|
-
|
|
3338
|
-
.tooltip-title {
|
|
3339
|
-
font-family: var(--typography-label-large-font-family) !important;
|
|
3340
|
-
font-size: var(--typography-label-large-font-size) !important;
|
|
3341
|
-
font-weight: var(--typography-label-large-font-weight) !important;
|
|
3342
|
-
line-height: var(--typography-label-large-line-height) !important;
|
|
3343
|
-
letter-spacing: var(--typography-label-large-letter-spacing) !important;
|
|
3344
|
-
margin-bottom: var(--spacing-100);
|
|
3345
|
-
}
|
|
3346
|
-
|
|
3347
|
-
.tooltip-row {
|
|
3348
|
-
display: flex;
|
|
3349
|
-
align-items: center;
|
|
3350
|
-
gap: var(--spacing-150);
|
|
3351
|
-
font-family: var(--typography-body-small-font-family) !important;
|
|
3352
|
-
font-size: var(--typography-body-small-font-size) !important;
|
|
3353
|
-
font-weight: var(--typography-body-small-font-weight) !important;
|
|
3354
|
-
line-height: var(--typography-body-small-line-height) !important;
|
|
3355
|
-
letter-spacing: var(--typography-body-small-letter-spacing) !important;
|
|
3356
|
-
}
|
|
3357
|
-
.tooltip-row + .tooltip-row {
|
|
3358
|
-
margin-top: var(--spacing-050);
|
|
3359
|
-
}
|
|
3360
|
-
|
|
3361
|
-
.tooltip-label {
|
|
3362
|
-
flex: 1;
|
|
3363
|
-
color: var(--color-on-surface-variant);
|
|
3364
|
-
}
|
|
3365
|
-
|
|
3366
|
-
.tooltip-value {
|
|
3367
|
-
font-variant-numeric: tabular-nums;
|
|
3368
|
-
font-weight: 500;
|
|
3369
|
-
}
|
|
3370
|
-
|
|
3371
|
-
.swatch {
|
|
3372
|
-
flex: none;
|
|
3373
|
-
width: 0.625rem;
|
|
3374
|
-
height: 0.625rem;
|
|
3375
|
-
border-radius: var(--shape-corner-full);
|
|
3376
|
-
}
|
|
3377
|
-
|
|
3378
|
-
::slotted([slot=insight]) {
|
|
3379
|
-
display: block;
|
|
3380
|
-
margin-block-start: var(--spacing-150);
|
|
3381
|
-
}
|
|
3382
|
-
|
|
3383
|
-
.legend {
|
|
3384
|
-
display: flex;
|
|
3385
|
-
flex-wrap: wrap;
|
|
3386
|
-
justify-content: center;
|
|
3387
|
-
gap: var(--spacing-050) var(--spacing-200);
|
|
3388
|
-
}
|
|
3389
|
-
|
|
3390
|
-
.legend-item {
|
|
3391
|
-
background: transparent;
|
|
3392
|
-
border: none;
|
|
3393
|
-
appearance: none;
|
|
3394
|
-
margin: 0;
|
|
3395
|
-
outline: none;
|
|
3396
|
-
padding: 0;
|
|
3397
|
-
font-family: var(--typography-label-medium-font-family) !important;
|
|
3398
|
-
font-size: var(--typography-label-medium-font-size) !important;
|
|
3399
|
-
font-weight: var(--typography-label-medium-font-weight) !important;
|
|
3400
|
-
line-height: var(--typography-label-medium-line-height) !important;
|
|
3401
|
-
letter-spacing: var(--typography-label-medium-letter-spacing) !important;
|
|
3402
|
-
display: inline-flex;
|
|
3403
|
-
align-items: center;
|
|
3404
|
-
gap: var(--spacing-100);
|
|
3405
|
-
padding: var(--spacing-050) var(--spacing-100);
|
|
3406
|
-
border-radius: var(--shape-corner-small);
|
|
3407
|
-
color: var(--color-on-surface);
|
|
3408
|
-
cursor: pointer;
|
|
3409
|
-
}
|
|
3410
|
-
.legend-item:hover {
|
|
3411
|
-
background: var(--color-surface-container-high);
|
|
3412
|
-
}
|
|
3413
|
-
.legend-item:focus-visible {
|
|
3414
|
-
outline: 2px solid var(--color-primary);
|
|
3415
|
-
}
|
|
3416
|
-
.legend-item.is-hidden {
|
|
3417
|
-
color: var(--color-on-surface-variant);
|
|
3418
|
-
text-decoration: line-through;
|
|
3419
|
-
}
|
|
3420
|
-
.legend-item.is-hidden .swatch {
|
|
3421
|
-
opacity: var(--_chart-dim-opacity);
|
|
3422
|
-
}
|
|
3423
|
-
|
|
3424
|
-
.empty {
|
|
3425
|
-
display: flex;
|
|
3426
|
-
align-items: center;
|
|
3427
|
-
justify-content: center;
|
|
3428
|
-
font-family: var(--typography-body-medium-font-family) !important;
|
|
3429
|
-
font-size: var(--typography-body-medium-font-size) !important;
|
|
3430
|
-
font-weight: var(--typography-body-medium-font-weight) !important;
|
|
3431
|
-
line-height: var(--typography-body-medium-line-height) !important;
|
|
3432
|
-
letter-spacing: var(--typography-body-medium-letter-spacing) !important;
|
|
3433
|
-
color: var(--color-on-surface-variant);
|
|
3434
|
-
border: 1px dashed var(--color-outline-variant);
|
|
3435
|
-
border-radius: var(--shape-corner-medium);
|
|
3436
|
-
}
|
|
3437
|
-
|
|
3438
|
-
.skeleton {
|
|
3439
|
-
position: relative;
|
|
3440
|
-
overflow: hidden;
|
|
3441
|
-
}
|
|
3442
|
-
|
|
3443
|
-
.skeleton-bars {
|
|
3444
|
-
display: flex;
|
|
3445
|
-
align-items: flex-end;
|
|
3446
|
-
gap: var(--spacing-200);
|
|
3447
|
-
padding: var(--spacing-200) 0 0;
|
|
3448
|
-
border-bottom: 1px solid var(--color-outline-variant);
|
|
3449
|
-
}
|
|
3450
|
-
.skeleton-bars span {
|
|
3451
|
-
flex: 1;
|
|
3452
|
-
border-radius: var(--shape-corner-extra-small) var(--shape-corner-extra-small) 0 0;
|
|
3453
|
-
background: var(--color-surface-container-highest);
|
|
3454
|
-
animation: chart-pulse 1.6s var(--easing-standard) infinite;
|
|
3455
|
-
}
|
|
3456
|
-
|
|
3457
|
-
.skeleton-circle {
|
|
3458
|
-
display: flex;
|
|
3459
|
-
align-items: center;
|
|
3460
|
-
justify-content: center;
|
|
3461
|
-
}
|
|
3462
|
-
.skeleton-circle span {
|
|
3463
|
-
height: 100%;
|
|
3464
|
-
aspect-ratio: 1;
|
|
3465
|
-
border-radius: 50%;
|
|
3466
|
-
background: var(--color-surface-container-highest);
|
|
3467
|
-
animation: chart-pulse 1.6s var(--easing-standard) infinite;
|
|
3468
|
-
}
|
|
3469
|
-
|
|
3470
|
-
@keyframes chart-pulse {
|
|
3471
|
-
50% {
|
|
3472
|
-
opacity: 0.5;
|
|
3473
|
-
}
|
|
3474
|
-
}
|
|
3475
|
-
.sr-only {
|
|
3476
|
-
position: absolute;
|
|
3477
|
-
width: 1px;
|
|
3478
|
-
height: 1px;
|
|
3479
|
-
margin: -1px;
|
|
3480
|
-
padding: 0;
|
|
3481
|
-
overflow: hidden;
|
|
3482
|
-
clip: rect(0 0 0 0);
|
|
3483
|
-
white-space: nowrap;
|
|
3484
|
-
border: 0;
|
|
3485
|
-
}
|
|
3486
|
-
|
|
3487
|
-
@media (prefers-reduced-motion: reduce) {
|
|
3488
|
-
.skeleton span,
|
|
3489
|
-
.mark,
|
|
3490
|
-
.cursor {
|
|
3491
|
-
animation: none;
|
|
3492
|
-
transition: none;
|
|
3493
|
-
}
|
|
3494
|
-
}`;
|
|
3495
|
-
|
|
3496
|
-
export { ChartBase as C, constant as a, array as b, css_248z as c, chartColor as d, cubicOut as e, interpolateNumber as f, interpolate$1 as i, select as s };
|
|
3497
|
-
//# sourceMappingURL=chart-base-B-gOg2Di.js.map
|
|
2666
|
+
export { Selection$1 as S, constant as a, color as b, cubicOut as c, interpolateRgb as d, interpolateString as e, dispatch as f, interpolateNumber as i, root as r, timer as t };
|
|
2667
|
+
//# sourceMappingURL=transform-CxeQFXXB.js.map
|