@heartlandone/vega-sandbox-pr-1525-a1131d0b9c266e13a8d224ec5db9f11524d2d02c 2.28.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/dist/cjs/accessibility-bfa227f6.js +17 -0
- package/dist/cjs/app-globals-512d84f4.js +304 -0
- package/dist/cjs/array-6e559cde.js +178 -0
- package/dist/cjs/breakpoints-7e2dff90.js +66 -0
- package/dist/cjs/change-manager-a297e4d2.js +78 -0
- package/dist/cjs/chevron-down-ca2fa88e.js +12 -0
- package/dist/cjs/child-nodes-event-prevent-slimmer-e383a914.js +158 -0
- package/dist/cjs/child-nodes-notify-observer-slimmer-79f2f5a7.js +90 -0
- package/dist/cjs/component-73a88c4e.js +117 -0
- package/dist/cjs/component-global-style-slimmer-6749808c.js +87 -0
- package/dist/cjs/component-load-required-16d76afa.js +48 -0
- package/dist/cjs/component-usage-runtime-metrics-1ee24991.js +122 -0
- package/dist/cjs/create-public-api-runtime-metrics-slimmer-7510221b.js +208 -0
- package/dist/cjs/date-0a6bb035.js +95 -0
- package/dist/cjs/deprecated-property-slimmer-fc729fd9.js +49 -0
- package/dist/cjs/design-token-17b8e4d8.js +403 -0
- package/dist/cjs/dom-node-subject-observer-factory-2e41340d.js +141 -0
- package/dist/cjs/dynamic-slimmer-f31fdfd7.js +63 -0
- package/dist/cjs/effect-37695d3d.js +52 -0
- package/dist/cjs/element-appender-slimmer-bf5ecbd8.js +1109 -0
- package/dist/cjs/event-emit-slimmer-8f51adaa.js +257 -0
- package/dist/cjs/feature-flag-controller-078da332.js +313 -0
- package/dist/cjs/form-field-controller-slimmer-223f8ee3.js +1137 -0
- package/dist/cjs/global-slimmer-registry-b3bce7e0.js +297 -0
- package/dist/cjs/icon-manager-5a2b67cf.js +122 -0
- package/dist/cjs/icons-dbc3eb9c.js +520 -0
- package/dist/cjs/immutable-map-adf398cc.js +117 -0
- package/dist/cjs/index-09acd3c9.js +1755 -0
- package/dist/cjs/index-5792390b.js +1024 -0
- package/dist/cjs/index.cjs.js +96 -0
- package/dist/cjs/inject-keyboard-manager-e79a1ade.js +37 -0
- package/dist/cjs/internal-icon-manager-858baff1.js +45 -0
- package/dist/cjs/internal-vega-event-manager-627b1328.js +460 -0
- package/dist/cjs/internal-vega-z-index-manager-23051df4.js +180 -0
- package/dist/cjs/keyboard-manager-34b78600.js +106 -0
- package/dist/cjs/keyboard-manager-slimmer-8e2d4b5d.js +39 -0
- package/dist/cjs/legend-input-processor-6ab8782a.js +4756 -0
- package/dist/cjs/loader.cjs.js +47 -0
- package/dist/cjs/min-number-rule-84f21ad9.js +142 -0
- package/dist/cjs/min-string-length-rule-75f24a48.js +143 -0
- package/dist/cjs/mobilefriendly-aa2e50e9.js +13 -0
- package/dist/cjs/mutation-observer-filters-79b60f28.js +58 -0
- package/dist/cjs/mutation-observer-slimmer-895b3d3e.js +85 -0
- package/dist/cjs/number-459031f7.js +92 -0
- package/dist/cjs/object-bbd4ed7f.js +37 -0
- package/dist/cjs/observer-f49483e8.js +32 -0
- package/dist/cjs/page-resize-observer-slimmer-a8cf1874.js +122 -0
- package/dist/cjs/pixel-98f2a10c.js +72 -0
- package/dist/cjs/placeholder-cb6d37ad.js +27 -0
- package/dist/cjs/regex-c1f70fd4.js +15 -0
- package/dist/cjs/remote-invocation-registry-32aaf6c2.js +64 -0
- package/dist/cjs/required-field-rule-9a57b1a0.js +83 -0
- package/dist/cjs/responsive-format-facade-7bc51a43.js +718 -0
- package/dist/cjs/state-background-color-formatter-418b84e6.js +85 -0
- package/dist/cjs/static-subject-title-3599787e.js +69 -0
- package/dist/cjs/string-21427167.js +13 -0
- package/dist/cjs/string-input-formatter-slimmer-79272527.js +359 -0
- package/dist/cjs/style-formatter-a0829641.js +34 -0
- package/dist/cjs/sub-state-observer-slimmer-36660092.js +204 -0
- package/dist/cjs/synchronize-task-queue-8977cf10.js +41 -0
- package/dist/cjs/timer-5f33058b.js +24 -0
- package/dist/cjs/translation-0dd74433.js +276 -0
- package/dist/cjs/translation-slimmer-83577cfd.js +42 -0
- package/dist/cjs/type-guard-a07b353b.js +716 -0
- package/dist/cjs/typography-4560e7f1.js +1080 -0
- package/dist/cjs/ui-08f33116.js +200 -0
- package/dist/cjs/ui-32e69595.js +52 -0
- package/dist/cjs/valid-credit-card-number-rule-8d8f04f1.js +172 -0
- package/dist/cjs/vega-accordion.cjs.entry.js +269 -0
- package/dist/cjs/vega-app-footer.cjs.entry.js +149 -0
- package/dist/cjs/vega-app-header-button.cjs.entry.js +314 -0
- package/dist/cjs/vega-backdrop.cjs.entry.js +156 -0
- package/dist/cjs/vega-banner.cjs.entry.js +354 -0
- package/dist/cjs/vega-bar-chart.cjs.entry.js +238 -0
- package/dist/cjs/vega-box.cjs.entry.js +208 -0
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +268 -0
- package/dist/cjs/vega-button-circle.cjs.entry.js +222 -0
- package/dist/cjs/vega-button-group_2.cjs.entry.js +424 -0
- package/dist/cjs/vega-button-link.cjs.entry.js +216 -0
- package/dist/cjs/vega-button.cjs.entry.js +234 -0
- package/dist/cjs/vega-calendar_3.cjs.entry.js +4179 -0
- package/dist/cjs/vega-card.cjs.entry.js +196 -0
- package/dist/cjs/vega-carousel.cjs.entry.js +515 -0
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +625 -0
- package/dist/cjs/vega-chip.cjs.entry.js +301 -0
- package/dist/cjs/vega-color-picker.cjs.entry.js +249 -0
- package/dist/cjs/vega-combo-box.cjs.entry.js +438 -0
- package/dist/cjs/vega-counter-badge.cjs.entry.js +90 -0
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +2120 -0
- package/dist/cjs/vega-dialog-controller-6a8525b3.js +81 -0
- package/dist/cjs/vega-dialog_2.cjs.entry.js +716 -0
- package/dist/cjs/vega-divider.cjs.entry.js +149 -0
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +2928 -0
- package/dist/cjs/vega-env-manager-23b8b23c.js +41 -0
- package/dist/cjs/vega-event-id-e40ac8f0.js +144 -0
- package/dist/cjs/vega-field-error.cjs.entry.js +102 -0
- package/dist/cjs/vega-field-label.cjs.entry.js +166 -0
- package/dist/cjs/vega-file-uploader.cjs.entry.js +687 -0
- package/dist/cjs/vega-flex.cjs.entry.js +197 -0
- package/dist/cjs/vega-font.cjs.entry.js +289 -0
- package/dist/cjs/vega-form.cjs.entry.js +485 -0
- package/dist/cjs/vega-grid.cjs.entry.js +99 -0
- package/dist/cjs/vega-hint.cjs.entry.js +38 -0
- package/dist/cjs/vega-icon.cjs.entry.js +228 -0
- package/dist/cjs/vega-image-uploader.cjs.entry.js +935 -0
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +412 -0
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +9223 -0
- package/dist/cjs/vega-input-range.cjs.entry.js +746 -0
- package/dist/cjs/vega-input-select.cjs.entry.js +879 -0
- package/dist/cjs/vega-input.cjs.entry.js +1047 -0
- package/dist/cjs/vega-internal-event-id-c98e9a7d.js +50 -0
- package/dist/cjs/vega-item-toggle.cjs.entry.js +191 -0
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +1184 -0
- package/dist/cjs/vega-line-chart.cjs.entry.js +382 -0
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +211 -0
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +183 -0
- package/dist/cjs/vega-pagination.cjs.entry.js +386 -0
- package/dist/cjs/vega-pie-chart.cjs.entry.js +443 -0
- package/dist/cjs/vega-popover_2.cjs.entry.js +321 -0
- package/dist/cjs/vega-progress-tracker.cjs.entry.js +252 -0
- package/dist/cjs/vega-radio_2.cjs.entry.js +743 -0
- package/dist/cjs/vega-section-title.cjs.entry.js +112 -0
- package/dist/cjs/vega-segment-control.cjs.entry.js +348 -0
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +836 -0
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +795 -0
- package/dist/cjs/vega-signature-capture.cjs.entry.js +572 -0
- package/dist/cjs/vega-skeleton-loader-controller-e886dc58.js +3905 -0
- package/dist/cjs/vega-skeleton.cjs.entry.js +330 -0
- package/dist/cjs/vega-slot-container.cjs.entry.js +40 -0
- package/dist/cjs/vega-stepper.cjs.entry.js +292 -0
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +1270 -0
- package/dist/cjs/vega-table_8.cjs.entry.js +4571 -0
- package/dist/cjs/vega-text.cjs.entry.js +232 -0
- package/dist/cjs/vega-textarea.cjs.entry.js +302 -0
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +2157 -0
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +248 -0
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +300 -0
- package/dist/cjs/vega.cjs.js +45 -0
- package/dist/cjs/y-axis-input-processor-cc6e9196.js +2302 -0
- package/dist/collection/collection-manifest.json +457 -0
- package/dist/collection/components/vega-accordion/slimmers/vega-accordion-expand-controller.js +61 -0
- package/dist/collection/components/vega-accordion/slimmers/vega-accordion-renderer.js +98 -0
- package/dist/collection/components/vega-accordion/vega-accordion.css +191 -0
- package/dist/collection/components/vega-accordion/vega-accordion.js +310 -0
- package/dist/collection/components/vega-app-footer/vega-app-footer.css +167 -0
- package/dist/collection/components/vega-app-footer/vega-app-footer.js +420 -0
- package/dist/collection/components/vega-app-header-button/slimmers/renderers/vega-menu-arrow-icon-renderer.js +26 -0
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.css +2093 -0
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +564 -0
- package/dist/collection/components/vega-backdrop/slimmers/controller/vega-backdrop-visible-controller.js +59 -0
- package/dist/collection/components/vega-backdrop/slimmers/renerers/vega-backdrop-renderer.js +31 -0
- package/dist/collection/components/vega-backdrop/vega-backdrop.css +28 -0
- package/dist/collection/components/vega-backdrop/vega-backdrop.js +149 -0
- package/dist/collection/components/vega-banner/slimmers/controllers/vega-banner-icon-controller.js +51 -0
- package/dist/collection/components/vega-banner/slimmers/renderers/vega-banner-action-button-renderer.js +51 -0
- package/dist/collection/components/vega-banner/slimmers/renderers/vega-banner-renderer.js +120 -0
- package/dist/collection/components/vega-banner/vega-banner.css +167 -0
- package/dist/collection/components/vega-banner/vega-banner.js +355 -0
- package/dist/collection/components/vega-box/interface.js +1 -0
- package/dist/collection/components/vega-box/slimmers/controllers/vega-box-state-styles-controller.js +117 -0
- package/dist/collection/components/vega-box/vega-box.css +7247 -0
- package/dist/collection/components/vega-box/vega-box.js +798 -0
- package/dist/collection/components/vega-breadcrumb/slimmers/controllers/vega-breadcrumb-click-controller.js +43 -0
- package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-collapsed-item-renderer.js +29 -0
- package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-item-renderer.js +46 -0
- package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-renderer.js +60 -0
- package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.css +182 -0
- package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.js +190 -0
- package/dist/collection/components/vega-button/slimmers/renderers/vega-button-loading-renderer.js +24 -0
- package/dist/collection/components/vega-button/vega-button.css +200 -0
- package/dist/collection/components/vega-button/vega-button.js +481 -0
- package/dist/collection/components/vega-button-circle/vega-button-circle.css +406 -0
- package/dist/collection/components/vega-button-circle/vega-button-circle.js +434 -0
- package/dist/collection/components/vega-button-group/slimmers/controllers/vega-button-group-click-controller.js +38 -0
- package/dist/collection/components/vega-button-group/vega-button-group-item/slimmers/controllers/vega-button-group-item-sub-state-controller.js +42 -0
- package/dist/collection/components/vega-button-group/vega-button-group-item/slimmers/renderers/vega-button-group-item-renderer.js +153 -0
- package/dist/collection/components/vega-button-group/vega-button-group-item/vega-button-group-item.css +83 -0
- package/dist/collection/components/vega-button-group/vega-button-group-item/vega-button-group-item.js +194 -0
- package/dist/collection/components/vega-button-group/vega-button-group.css +39 -0
- package/dist/collection/components/vega-button-group/vega-button-group.js +229 -0
- package/dist/collection/components/vega-button-link/vega-button-link.css +335 -0
- package/dist/collection/components/vega-button-link/vega-button-link.js +415 -0
- package/dist/collection/components/vega-calendar/icons/clock-three.js +3 -0
- package/dist/collection/components/vega-calendar/icons/ellipsis-vertical.js +3 -0
- package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-current-period-controller.js +131 -0
- package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-controller.js +124 -0
- package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-responsive-controller.js +74 -0
- package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-view-controller.js +73 -0
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/calendar-event-sorter.js +91 -0
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/base-repeat-pattern.js +61 -0
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-daily-repeat-pattern.js +76 -0
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-monthly-repeat-pattern.js +96 -0
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-repeat-pattern-factory.js +60 -0
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-weekly-repeat-pattern.js +171 -0
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-yearly-repeat-pattern.js +98 -0
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/test/calendar-event-repeat-pattern-factory.test.js +161 -0
- package/dist/collection/components/vega-calendar/slimmers/common/layout/base-event-layout-cell.js +43 -0
- package/dist/collection/components/vega-calendar/slimmers/common/layout/base-event-layout-generator.js +23 -0
- package/dist/collection/components/vega-calendar/slimmers/common/layout/base-event-layout.js +11 -0
- package/dist/collection/components/vega-calendar/slimmers/common/layout/full-day-event-layout-generator.js +84 -0
- package/dist/collection/components/vega-calendar/slimmers/common/layout/full-day-event-layout-row.js +41 -0
- package/dist/collection/components/vega-calendar/slimmers/common/layout/full-day-event-layout.js +42 -0
- package/dist/collection/components/vega-calendar/slimmers/common/layout/test/long-event-layout-generator.test.js +94 -0
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.js +43 -0
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-full-day-event-layout-renderer.js +99 -0
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-renderer.js +27 -0
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-switch-panel.js +191 -0
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-view-renderer.js +33 -0
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/full-day-event/vega-calendar-full-day-event-more-button-renderer.js +46 -0
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/full-day-event/vega-calendar-full-day-event-renderer.js +86 -0
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/timed-event/layout/day-view-timed-event-layout-column.js +50 -0
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/timed-event/layout/day-view-timed-event-layout-generator.js +29 -0
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/timed-event/layout/day-view-timed-event-layout.js +35 -0
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/timed-event/layout/test/day-view-event-layout-generator.test.js +72 -0
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/timed-event/vega-calendar-day-event-layout-renderer.js +70 -0
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/timed-event/vega-calendar-timed-event-renderer.js +52 -0
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-time-line-renderer.js +162 -0
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-view-with-time-renderer.js +106 -0
- package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.js +181 -0
- package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.js +122 -0
- package/dist/collection/components/vega-calendar/utils/index.js +56 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event/slimmers/controllers/vega-calendar-event-bg-color-controller.js +29 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event/slimmers/controllers/vega-calendar-event-slot-controller.js +76 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event/slimmers/controllers/vega-calendar-event-title-max-height-controller.js +37 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event/slimmers/controllers/vega-calendar-sub-state-controller.js +42 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event/slimmers/renderers/vega-calendar-event-renderer.js +209 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event/vega-calendar-event.css +371 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event/vega-calendar-event.js +110 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event-slot/vega-calendar-event-slot.css +10 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event-slot/vega-calendar-event-slot.js +61 -0
- package/dist/collection/components/vega-calendar/vega-calendar.css +662 -0
- package/dist/collection/components/vega-calendar/vega-calendar.js +588 -0
- package/dist/collection/components/vega-card/vega-card.css +6713 -0
- package/dist/collection/components/vega-card/vega-card.js +193 -0
- package/dist/collection/components/vega-carousel/vega-carousel.css +81 -0
- package/dist/collection/components/vega-carousel/vega-carousel.js +586 -0
- package/dist/collection/components/vega-chart/vega-bar-chart/vega-bar-chart.css +16 -0
- package/dist/collection/components/vega-chart/vega-bar-chart/vega-bar-chart.js +106 -0
- package/dist/collection/components/vega-chart/vega-line-chart/vega-line-chart.css +16 -0
- package/dist/collection/components/vega-chart/vega-line-chart/vega-line-chart.js +142 -0
- package/dist/collection/components/vega-chart/vega-pie-chart/vega-pie-chart.css +16 -0
- package/dist/collection/components/vega-chart/vega-pie-chart/vega-pie-chart.js +142 -0
- package/dist/collection/components/vega-checkbox/slimmers/controllers/vega-checkbox-show-error-controller.js +59 -0
- package/dist/collection/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.css +137 -0
- package/dist/collection/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.js +492 -0
- package/dist/collection/components/vega-checkbox/vega-checkbox.css +261 -0
- package/dist/collection/components/vega-checkbox/vega-checkbox.js +478 -0
- package/dist/collection/components/vega-chip/vega-chip.css +2342 -0
- package/dist/collection/components/vega-chip/vega-chip.js +617 -0
- package/dist/collection/components/vega-color-picker/vega-color-picker.css +152 -0
- package/dist/collection/components/vega-color-picker/vega-color-picker.js +442 -0
- package/dist/collection/components/vega-combo-box/vega-combo-box.css +229 -0
- package/dist/collection/components/vega-combo-box/vega-combo-box.js +838 -0
- package/dist/collection/components/vega-counter-badge/vega-counter-badge.css +54 -0
- package/dist/collection/components/vega-counter-badge/vega-counter-badge.js +172 -0
- package/dist/collection/components/vega-date-picker/assets/icons.js +11 -0
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-controller.js +260 -0
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-element-appender-controller.js +33 -0
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-format-controller.js +136 -0
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-keyboard-controller.js +48 -0
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-mobile-controller.js +53 -0
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-value-controller.js +176 -0
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-zindex-controller.js +49 -0
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +349 -0
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-range-input-renderer.js +117 -0
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-renderer.js +107 -0
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-single-input-renderer.js +83 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +640 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +36 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker.css +287 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker.js +811 -0
- package/dist/collection/components/vega-dialog/vega-dialog.css +64 -0
- package/dist/collection/components/vega-dialog/vega-dialog.js +331 -0
- package/dist/collection/components/vega-divider/interface.js +1 -0
- package/dist/collection/components/vega-divider/slimmers/controllers/vega-divider-size-controller.js +62 -0
- package/dist/collection/components/vega-divider/vega-divider.css +2545 -0
- package/dist/collection/components/vega-divider/vega-divider.js +170 -0
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.js +124 -0
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-children-controller.js +174 -0
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-keyboard-conttroller.js +85 -0
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-remote-invocation-controller.js +54 -0
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-render-mode-controller.js +51 -0
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-scrollable-controller.js +142 -0
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-search-controller.js +107 -0
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-selected-controller.js +222 -0
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-source-controller.js +68 -0
- package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-create-renderer.js +50 -0
- package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-group-level-renderer.js +19 -0
- package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-item-level-renderer.js +37 -0
- package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.js +103 -0
- package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-renderer.js +137 -0
- package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-search-renderer.js +94 -0
- package/dist/collection/components/vega-dropdown/test/share.js +13 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-content-box/vega-dropdown-content-box.css +237 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-content-box/vega-dropdown-content-box.js +44 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-group/slimmers/renderers/vega-dropdown-group-renderer.js +32 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-group/vega-dropdown-group.css +62 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-group/vega-dropdown-group.js +93 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/controllers/vega-dropdown-item-click-controller.js +37 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/controllers/vega-dropdown-item-state-controller.js +80 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +103 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.css +129 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.js +291 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown.css +8 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +1281 -0
- package/dist/collection/components/vega-field-error/slimmers/controllers/vega-field-error-message-controller.js +45 -0
- package/dist/collection/components/vega-field-error/vega-field-error.css +8 -0
- package/dist/collection/components/vega-field-error/vega-field-error.js +81 -0
- package/dist/collection/components/vega-field-label/slimmers/renderers/vega-field-label-suffix-element-renderer.js +50 -0
- package/dist/collection/components/vega-field-label/vega-field-label.css +72 -0
- package/dist/collection/components/vega-field-label/vega-field-label.js +260 -0
- package/dist/collection/components/vega-file-uploader/slimmers/controllers/vega-file-uploader-drop-file-filter-controller.js +51 -0
- package/dist/collection/components/vega-file-uploader/slimmers/controllers/vega-file-uploader-value-controller.js +49 -0
- package/dist/collection/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-container-renderer.js +171 -0
- package/dist/collection/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-file-list-renderer.js +114 -0
- package/dist/collection/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-file-status-renderer.js +26 -0
- package/dist/collection/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-renderer.js +42 -0
- package/dist/collection/components/vega-file-uploader/vega-file-uploader.css +154 -0
- package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +665 -0
- package/dist/collection/components/vega-flex/vega-flex.css +4024 -0
- package/dist/collection/components/vega-flex/vega-flex.js +435 -0
- package/dist/collection/components/vega-font/slimmers/controllers/vega-font-as-controller.js +66 -0
- package/dist/collection/components/vega-font/slimmers/controllers/vega-font-classes-controller.js +46 -0
- package/dist/collection/components/vega-font/slimmers/controllers/vega-font-variant-controller.js +22 -0
- package/dist/collection/components/vega-font/slimmers/renderers/vega-font-renderer.js +18 -0
- package/dist/collection/components/vega-font/vega-font.css +1837 -0
- package/dist/collection/components/vega-font/vega-font.js +251 -0
- package/dist/collection/components/vega-form/vega-form.css +8 -0
- package/dist/collection/components/vega-form/vega-form.js +812 -0
- package/dist/collection/components/vega-grid/vega-grid.css +1811 -0
- package/dist/collection/components/vega-grid/vega-grid.js +178 -0
- package/dist/collection/components/vega-hint/vega-hint.js +39 -0
- package/dist/collection/components/vega-icon/vega-icon.css +391 -0
- package/dist/collection/components/vega-icon/vega-icon.js +291 -0
- package/dist/collection/components/vega-image-uploader/slimmers/controllers/vega-image-uploader-actions-visibility-controller.js +46 -0
- package/dist/collection/components/vega-image-uploader/slimmers/controllers/vega-image-uploader-input-controller.js +30 -0
- package/dist/collection/components/vega-image-uploader/slimmers/controllers/vega-image-uploader-preview-controller.js +93 -0
- package/dist/collection/components/vega-image-uploader/slimmers/controllers/vega-image-uploader-remove-controller.js +59 -0
- package/dist/collection/components/vega-image-uploader/slimmers/controllers/vega-image-uploader-value-controller.js +46 -0
- package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-actions-renderer.js +120 -0
- package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-default-content-renderer.js +45 -0
- package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-input-renderer.js +47 -0
- package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-preview-content-renderer.js +29 -0
- package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-renderer.js +96 -0
- package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-uploading-content-renderer.js +40 -0
- package/dist/collection/components/vega-image-uploader/vega-image-uploader.css +383 -0
- package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +794 -0
- package/dist/collection/components/vega-input/slimmers/controllers/vega-input-copy-paste-controller.js +43 -0
- package/dist/collection/components/vega-input/slimmers/controllers/vega-input-mask-config-controller.js +143 -0
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-prefix-slot-renderer.js +37 -0
- package/dist/collection/components/vega-input/vega-input.css +274 -0
- package/dist/collection/components/vega-input/vega-input.js +1147 -0
- package/dist/collection/components/vega-input-credit-card/assets/icons.js +22 -0
- package/dist/collection/components/vega-input-credit-card/test/share.js +21 -0
- package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.css +11 -0
- package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.js +635 -0
- package/dist/collection/components/vega-input-phone-number/assets/countries.js +247 -0
- package/dist/collection/components/vega-input-phone-number/assets/country-flags.js +493 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ac.js +692 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ad.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ae.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/af.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ag.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ai.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/al.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/am.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ao.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ar.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/as.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/at.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/au.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/aw.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ax.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/az.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ba.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bb.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bd.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/be.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bf.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bg.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bh.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bi.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bj.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bl.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bm.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bn.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bo.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bq.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/br.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bs.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bt.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bw.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/by.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/bz.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ca.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/cc.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/cd.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/cf.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/cg.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ch.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ci.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ck.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/cl.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/cm.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/cn.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/co.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/cr.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/cu.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/cv.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/cw.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/cx.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/cy.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/cz.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/de.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/dj.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/dk.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/dm.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/do.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/dz.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ec.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ee.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/eg.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/eh.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/er.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/es.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/et.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/fi.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/fj.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/fk.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/fm.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/fo.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/fr.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ga.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gb.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gd.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ge.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gf.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gg.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gh.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gi.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gl.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gm.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gn.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gp.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gq.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gr.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gt.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gu.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gw.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/gy.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/hk.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/hn.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/hr.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ht.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/hu.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/id.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ie.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/il.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/im.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/in.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/io.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/iq.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ir.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/is.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/it.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/je.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/jm.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/jo.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/jp.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ke.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/kg.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/kh.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ki.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/km.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/kn.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/kp.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/kr.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/kw.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ky.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/kz.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/la.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/lb.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/lc.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/li.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/lk.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/lr.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ls.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/lt.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/lu.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/lv.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ly.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ma.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mc.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/md.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/me.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mf.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mg.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mh.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mk.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ml.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mm.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mn.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mo.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mp.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mq.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mr.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ms.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mt.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mu.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mv.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mw.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mx.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/my.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/mz.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/na.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/nc.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ne.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/nf.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ng.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ni.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/nl.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/no.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/np.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/nr.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/nu.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/nz.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/om.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/pa.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/pe.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/pf.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/pg.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ph.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/pk.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/pl.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/pm.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/pr.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ps.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/pt.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/pw.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/py.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/qa.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/re.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ro.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/rs.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ru.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/rw.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sa.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sb.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sc.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sd.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/se.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sg.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sh.js +167 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/si.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sj.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sk.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sl.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sm.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sn.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/so.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sr.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ss.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/st.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sv.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sx.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sy.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/sz.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ta.js +79 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/tc.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/td.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/tg.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/th.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/tj.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/tk.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/tl.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/tm.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/tn.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/to.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/tr.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/tt.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/tv.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/tw.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/tz.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ua.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ug.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/us.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/uy.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/uz.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/va.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/vc.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ve.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/vg.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/vi.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/vn.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/vu.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/wf.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ws.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/xk.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/ye.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/yt.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/za.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/zm.js +4 -0
- package/dist/collection/components/vega-input-phone-number/assets/flags/zw.js +4 -0
- package/dist/collection/components/vega-input-phone-number/slimmers/controllers/country-select-controller.js +62 -0
- package/dist/collection/components/vega-input-phone-number/slimmers/controllers/vega-input-phone-number-value-controller.js +154 -0
- package/dist/collection/components/vega-input-phone-number/slimmers/renderers/country-select-renderer.js +174 -0
- package/dist/collection/components/vega-input-phone-number/slimmers/renderers/phone-number-input-renderer.js +102 -0
- package/dist/collection/components/vega-input-phone-number/slimmers/renderers/vega-input-phone-number-renderer.js +60 -0
- package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.css +89 -0
- package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +565 -0
- package/dist/collection/components/vega-input-range/slimmers/controllers/vega-input-range-value-controller.js +84 -0
- package/dist/collection/components/vega-input-range/slimmers/renderers/vega-input-range-clear-icon-renderer.js +59 -0
- package/dist/collection/components/vega-input-range/slimmers/renderers/vega-input-range-input-renderer.js +143 -0
- package/dist/collection/components/vega-input-range/slimmers/renderers/vega-input-range-renderer.js +66 -0
- package/dist/collection/components/vega-input-range/vega-input-range.css +161 -0
- package/dist/collection/components/vega-input-range/vega-input-range.js +602 -0
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-dropdown-controller.js +77 -0
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-items-slot-controler.js +62 -0
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-lazy-load-controller.js +70 -0
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-source-controller.js +48 -0
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-value-controller.js +100 -0
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +145 -0
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-renderer.js +55 -0
- package/dist/collection/components/vega-input-select/vega-input-select.css +310 -0
- package/dist/collection/components/vega-input-select/vega-input-select.js +817 -0
- package/dist/collection/components/vega-item-toggle/vega-item-toggle.css +102 -0
- package/dist/collection/components/vega-item-toggle/vega-item-toggle.js +263 -0
- package/dist/collection/components/vega-loader-wrapper/vega-loader-wrapper.css +26 -0
- package/dist/collection/components/vega-loader-wrapper/vega-loader-wrapper.js +37 -0
- package/dist/collection/components/vega-loading-indicator/vega-loading-indicator.css +238 -0
- package/dist/collection/components/vega-loading-indicator/vega-loading-indicator.js +313 -0
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-nested-modal-controller.js +33 -0
- package/dist/collection/components/vega-modal/vega-modal.css +2668 -0
- package/dist/collection/components/vega-modal/vega-modal.js +954 -0
- package/dist/collection/components/vega-nav/interface.js +1 -0
- package/dist/collection/components/vega-nav/slimmers/renderers/vega-nav-list-renderer.js +44 -0
- package/dist/collection/components/vega-nav/slimmers/vega-nav-observer-slimmer.js +52 -0
- package/dist/collection/components/vega-nav/vega-left-nav/assets/icons.js +6 -0
- package/dist/collection/components/vega-nav/vega-left-nav/internal/vega-left-nav-separator.js +5 -0
- package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-auto-collapse-controller.js +50 -0
- package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-controller.js +96 -0
- package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-open-state-controller.js +141 -0
- package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-zindex-controller.js +44 -0
- package/dist/collection/components/vega-nav/vega-left-nav/slimmers/renderers/vega-left-nav-footer-renderer.js +31 -0
- package/dist/collection/components/vega-nav/vega-left-nav/slimmers/renderers/vega-left-nav-header-renderer.js +39 -0
- package/dist/collection/components/vega-nav/vega-left-nav/vega-left-nav.css +203 -0
- package/dist/collection/components/vega-nav/vega-left-nav/vega-left-nav.js +354 -0
- package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-controller.js +30 -0
- package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/renderers/vega-left-nav-group-renderer.js +60 -0
- package/dist/collection/components/vega-nav/vega-left-nav-group/vega-left-nav-group.css +110 -0
- package/dist/collection/components/vega-nav/vega-left-nav-group/vega-left-nav-group.js +141 -0
- package/dist/collection/components/vega-nav/vega-left-nav-link/slimmers/controllers/vega-left-nav-link-controller.js +44 -0
- package/dist/collection/components/vega-nav/vega-left-nav-link/slimmers/renderers/vega-left-nav-link-renderer.js +75 -0
- package/dist/collection/components/vega-nav/vega-left-nav-link/vega-left-nav-link.css +103 -0
- package/dist/collection/components/vega-nav/vega-left-nav-link/vega-left-nav-link.js +193 -0
- package/dist/collection/components/vega-nav/vega-left-nav-section/slimmers/renderers/vega-left-nav-section-renderer.js +40 -0
- package/dist/collection/components/vega-nav/vega-left-nav-section/vega-left-nav-section.css +75 -0
- package/dist/collection/components/vega-nav/vega-left-nav-section/vega-left-nav-section.js +114 -0
- package/dist/collection/components/vega-nav/vega-nav-card/slimmers/controllers/vega-nav-card-max-height-controller.js +38 -0
- package/dist/collection/components/vega-nav/vega-nav-card/vega-nav-card.css +34 -0
- package/dist/collection/components/vega-nav/vega-nav-card/vega-nav-card.js +115 -0
- package/dist/collection/components/vega-page-notification/vega-page-notification-list/vega-page-notification-list.css +25 -0
- package/dist/collection/components/vega-page-notification/vega-page-notification-list/vega-page-notification-list.js +37 -0
- package/dist/collection/components/vega-page-notification/vega-page-notification.css +317 -0
- package/dist/collection/components/vega-page-notification/vega-page-notification.js +313 -0
- package/dist/collection/components/vega-pagination/internal/vega-pagination-current-page-label.js +6 -0
- package/dist/collection/components/vega-pagination/internal/vega-pagination-go-to.js +40 -0
- package/dist/collection/components/vega-pagination/internal/vega-pagination-page-selector.js +62 -0
- package/dist/collection/components/vega-pagination/internal/vega-pagination-page-size-selector.js +22 -0
- package/dist/collection/components/vega-pagination/vega-pagination.css +163 -0
- package/dist/collection/components/vega-pagination/vega-pagination.js +404 -0
- package/dist/collection/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.js +49 -0
- package/dist/collection/components/vega-popover/slimmers/renderers/vega-popover-appender-renderer.js +45 -0
- package/dist/collection/components/vega-popover/vega-popover-content-box/vega-popover-content-box.css +140 -0
- package/dist/collection/components/vega-popover/vega-popover-content-box/vega-popover-content-box.js +73 -0
- package/dist/collection/components/vega-popover/vega-popover.css +8 -0
- package/dist/collection/components/vega-popover/vega-popover.js +441 -0
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.css +430 -0
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +473 -0
- package/dist/collection/components/vega-radio/slimmers/controllers/vega-radio-show-error-controller.js +65 -0
- package/dist/collection/components/vega-radio/vega-radio-group/slimmers/controllers/vega-radio-group-keyboard-controller.js +99 -0
- package/dist/collection/components/vega-radio/vega-radio-group/slimmers/controllers/vega-radio-group-radio-items-controller.js +95 -0
- package/dist/collection/components/vega-radio/vega-radio-group/slimmers/controllers/vega-radio-group-value-controller.js +47 -0
- package/dist/collection/components/vega-radio/vega-radio-group/vega-radio-group.css +137 -0
- package/dist/collection/components/vega-radio/vega-radio-group/vega-radio-group.js +509 -0
- package/dist/collection/components/vega-radio/vega-radio.css +203 -0
- package/dist/collection/components/vega-radio/vega-radio.js +434 -0
- package/dist/collection/components/vega-section-title/slimmers/renderers/vega-section-title-renderer.js +54 -0
- package/dist/collection/components/vega-section-title/vega-section-title.css +91 -0
- package/dist/collection/components/vega-section-title/vega-section-title.js +145 -0
- package/dist/collection/components/vega-segment-control/slimmers/controllers/vega-segment-control-selected-controller.js +49 -0
- package/dist/collection/components/vega-segment-control/slimmers/controllers/vega-segment-overflow-controller.js +68 -0
- package/dist/collection/components/vega-segment-control/slimmers/renderers/vega-segment-control-renderer.js +22 -0
- package/dist/collection/components/vega-segment-control/slimmers/renderers/vega-segment-renderer.js +68 -0
- package/dist/collection/components/vega-segment-control/vega-segment-control.css +130 -0
- package/dist/collection/components/vega-segment-control/vega-segment-control.js +302 -0
- package/dist/collection/components/vega-selection-chip/interface.js +1 -0
- package/dist/collection/components/vega-selection-chip/slimmers/controllers/vega-selection-chip-checked-cotroller.js +42 -0
- package/dist/collection/components/vega-selection-chip/slimmers/controllers/vega-selection-chip-show-error-controller.js +63 -0
- package/dist/collection/components/vega-selection-chip/slimmers/controllers/vega-selection-chip-state-controller.js +77 -0
- package/dist/collection/components/vega-selection-chip/slimmers/renderers/vega-selection-chip-renderer.js +102 -0
- package/dist/collection/components/vega-selection-chip/vega-selection-chip-group/interface.js +1 -0
- package/dist/collection/components/vega-selection-chip/vega-selection-chip-group/slimmers/controllers/vega-selection-chip-group-items-controller.js +170 -0
- package/dist/collection/components/vega-selection-chip/vega-selection-chip-group/slimmers/controllers/vega-selection-chip-group-value-controller.js +68 -0
- package/dist/collection/components/vega-selection-chip/vega-selection-chip-group/slimmers/renderers/vega-selection-chip-group-renderer.js +45 -0
- package/dist/collection/components/vega-selection-chip/vega-selection-chip-group/vega-selection-chip-group.css +91 -0
- package/dist/collection/components/vega-selection-chip/vega-selection-chip-group/vega-selection-chip-group.js +369 -0
- package/dist/collection/components/vega-selection-chip/vega-selection-chip.css +175 -0
- package/dist/collection/components/vega-selection-chip/vega-selection-chip.js +383 -0
- package/dist/collection/components/vega-selection-tile/interface.js +1 -0
- package/dist/collection/components/vega-selection-tile/slimmers/controllers/vega-selection-tile-checked-cotroller.js +56 -0
- package/dist/collection/components/vega-selection-tile/slimmers/controllers/vega-selection-tile-show-error-controller.js +60 -0
- package/dist/collection/components/vega-selection-tile/slimmers/controllers/vega-selection-tile-state-controller.js +73 -0
- package/dist/collection/components/vega-selection-tile/slimmers/renderers/vega-selection-tile-renderer.js +95 -0
- package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/slimmers/controllers/vega-selection-tile-group-items-controller.js +61 -0
- package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/slimmers/controllers/vega-selection-tile-group-value-controller.js +112 -0
- package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/slimmers/renderers/vega-selection-tile-group-renderer.js +66 -0
- package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.css +128 -0
- package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.js +403 -0
- package/dist/collection/components/vega-selection-tile/vega-selection-tile.css +149 -0
- package/dist/collection/components/vega-selection-tile/vega-selection-tile.js +300 -0
- package/dist/collection/components/vega-signature-capture/assets/icons.js +5 -0
- package/dist/collection/components/vega-signature-capture/slimmers/renderers/vega-signature-capture-renderer.js +19 -0
- package/dist/collection/components/vega-signature-capture/slimmers/written-mode/controllers/written-mode-svg-controller.js +222 -0
- package/dist/collection/components/vega-signature-capture/slimmers/written-mode/renderers/written-mode-renderer.js +115 -0
- package/dist/collection/components/vega-signature-capture/vega-signature-capture.css +154 -0
- package/dist/collection/components/vega-signature-capture/vega-signature-capture.js +547 -0
- package/dist/collection/components/vega-skeleton/slimmers/renderers/vega-skeleton-ellipse-renderer.js +33 -0
- package/dist/collection/components/vega-skeleton/slimmers/renderers/vega-skeleton-full-width-paragraph-renderer.js +29 -0
- package/dist/collection/components/vega-skeleton/slimmers/renderers/vega-skeleton-image-renderer.js +33 -0
- package/dist/collection/components/vega-skeleton/slimmers/renderers/vega-skeleton-paragraph-renderer.js +31 -0
- package/dist/collection/components/vega-skeleton/slimmers/renderers/vega-skeleton-renderer-base.abstract.js +23 -0
- package/dist/collection/components/vega-skeleton/slimmers/renderers/vega-skeleton-renderer-manager.js +49 -0
- package/dist/collection/components/vega-skeleton/slimmers/renderers/vega-skeleton-table-renderer.js +42 -0
- package/dist/collection/components/vega-skeleton/slimmers/renderers/vega-skeleton-text-renderer.js +28 -0
- package/dist/collection/components/vega-skeleton/vega-skeleton.css +80 -0
- package/dist/collection/components/vega-skeleton/vega-skeleton.js +182 -0
- package/dist/collection/components/vega-slot-container/vega-slot-container.css +3 -0
- package/dist/collection/components/vega-slot-container/vega-slot-container.js +37 -0
- package/dist/collection/components/vega-stepper/vega-stepper.css +110 -0
- package/dist/collection/components/vega-stepper/vega-stepper.js +478 -0
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-page-index-controller.js +87 -0
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-pages-controller.js +216 -0
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-panel-controller.js +146 -0
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-selected-target-controller.js +35 -0
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-slider-state-controller.js +95 -0
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-close-button-renderer.js +60 -0
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-content-renderer.js +24 -0
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-direction-button-renderer.js +91 -0
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-renderer.js +48 -0
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.js +116 -0
- package/dist/collection/components/vega-tab-group/vega-tab-group-panel/vega-tab-group-panel.css +12 -0
- package/dist/collection/components/vega-tab-group/vega-tab-group-panel/vega-tab-group-panel.js +98 -0
- package/dist/collection/components/vega-tab-group/vega-tab-group.css +251 -0
- package/dist/collection/components/vega-tab-group/vega-tab-group.js +389 -0
- package/dist/collection/components/vega-table/interface.js +10 -0
- package/dist/collection/components/vega-table/internal/vega-table-scrollable-container.js +23 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-children-controller.js +214 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-data-source-controller.js +175 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-editable-controller.js +284 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-expand-row-controller.js +244 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-pagination-controller.js +80 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-render-mode-controller.js +83 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-row-selection-controller.js +407 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-sort-controller.js +91 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-sorter.js +41 -0
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-body-renderer.js +67 -0
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-cell-renderer.js +103 -0
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-col-group-renderer.js +42 -0
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-header-renderer.js +51 -0
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-pagination-renderer.js +86 -0
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-renderer.js +96 -0
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-row-renderer.js +49 -0
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-scroll-container-renderer.js +34 -0
- package/dist/collection/components/vega-table/test/utils.js +22 -0
- package/dist/collection/components/vega-table/test/vega-table-sorter.test.js +508 -0
- package/dist/collection/components/vega-table/type-guard.js +20 -0
- package/dist/collection/components/vega-table/utils.js +44 -0
- package/dist/collection/components/vega-table/vega-table-body/vega-table-body.css +8 -0
- package/dist/collection/components/vega-table/vega-table-body/vega-table-body.js +45 -0
- package/dist/collection/components/vega-table/vega-table-cell/slimmers/controllers/vega-table-cell-state-controller.js +28 -0
- package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.css +116 -0
- package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.js +165 -0
- package/dist/collection/components/vega-table/vega-table-expand-row/slimmers/controllers/vega-table-expand-row-col-span-controller.js +88 -0
- package/dist/collection/components/vega-table/vega-table-expand-row/slimmers/controllers/vega-table-expand-row-expand-controller.js +63 -0
- package/dist/collection/components/vega-table/vega-table-expand-row/slimmers/controllers/vega-table-expand-row-selection-controller.js +48 -0
- package/dist/collection/components/vega-table/vega-table-expand-row/slimmers/controllers/vega-table-expand-row-state-controller.js +44 -0
- package/dist/collection/components/vega-table/vega-table-expand-row/slimmers/renderers/vega-table-expand-row-renderer.js +34 -0
- package/dist/collection/components/vega-table/vega-table-expand-row/vega-table-expand-row.css +55 -0
- package/dist/collection/components/vega-table/vega-table-expand-row/vega-table-expand-row.js +125 -0
- package/dist/collection/components/vega-table/vega-table-head/slimmers/controllers/vega-table-head-state-controller.js +36 -0
- package/dist/collection/components/vega-table/vega-table-head/vega-table-head.css +20 -0
- package/dist/collection/components/vega-table/vega-table-head/vega-table-head.js +72 -0
- package/dist/collection/components/vega-table/vega-table-head-cell/slimmers/controllers/vega-table-head-cell-state-controller.js +28 -0
- package/dist/collection/components/vega-table/vega-table-head-cell/slimmers/renderers/sort-icon-renderer.js +38 -0
- package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.css +130 -0
- package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.js +297 -0
- package/dist/collection/components/vega-table/vega-table-head-row/slimmers/controllers/vega-table-head-row-controller.js +54 -0
- package/dist/collection/components/vega-table/vega-table-head-row/slimmers/controllers/vega-table-head-row-state-controller.js +103 -0
- package/dist/collection/components/vega-table/vega-table-head-row/slimmers/renderers/vega-table-head-row-renderer.js +119 -0
- package/dist/collection/components/vega-table/vega-table-head-row/vega-table-head-row.css +74 -0
- package/dist/collection/components/vega-table/vega-table-head-row/vega-table-head-row.js +127 -0
- package/dist/collection/components/vega-table/vega-table-row/slimmers/controllers/vega-table-row-click-controller.js +95 -0
- package/dist/collection/components/vega-table/vega-table-row/slimmers/controllers/vega-table-row-expand-controller.js +81 -0
- package/dist/collection/components/vega-table/vega-table-row/slimmers/controllers/vega-table-row-selection-controller.js +88 -0
- package/dist/collection/components/vega-table/vega-table-row/slimmers/controllers/vega-table-row-state-controller.js +119 -0
- package/dist/collection/components/vega-table/vega-table-row/slimmers/renderers/vega-table-row-renderer.js +147 -0
- package/dist/collection/components/vega-table/vega-table-row/vega-table-row.css +156 -0
- package/dist/collection/components/vega-table/vega-table-row/vega-table-row.js +231 -0
- package/dist/collection/components/vega-table/vega-table.css +114 -0
- package/dist/collection/components/vega-table/vega-table.js +1851 -0
- package/dist/collection/components/vega-text/slimmers/renderers/vega-text-tooltip-renderer.js +163 -0
- package/dist/collection/components/vega-text/vega-text.css +16 -0
- package/dist/collection/components/vega-text/vega-text.js +118 -0
- package/dist/collection/components/vega-textarea/vega-textarea.css +287 -0
- package/dist/collection/components/vega-textarea/vega-textarea.js +630 -0
- package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-dropdown-selected-items-controller.js +199 -0
- package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-input-mask-controller.js +45 -0
- package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-keyboard-controller.js +117 -0
- package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-range-dropdown-controller.js +90 -0
- package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-single-dropdown-controller.js +160 -0
- package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-value-controller.js +230 -0
- package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-label-renderer.js +48 -0
- package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-range-clear-button-renderer.js +51 -0
- package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-range-dropdown-renderer.js +208 -0
- package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-range-input-renderer.js +178 -0
- package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-single-dropdown-renderer.js +153 -0
- package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-single-input-renderer.js +103 -0
- package/dist/collection/components/vega-time-picker/vega-time-picker-dropdown/vega-time-picker-dropdown.css +148 -0
- package/dist/collection/components/vega-time-picker/vega-time-picker-dropdown/vega-time-picker-dropdown.js +37 -0
- package/dist/collection/components/vega-time-picker/vega-time-picker.css +170 -0
- package/dist/collection/components/vega-time-picker/vega-time-picker.js +663 -0
- package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.css +149 -0
- package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.js +411 -0
- package/dist/collection/components/vega-tooltip/slimmers/controllers/vega-tooltip-element-appender-controller.js +84 -0
- package/dist/collection/components/vega-tooltip/slimmers/renderers/vega-tooltip-content-box-renderer.js +19 -0
- package/dist/collection/components/vega-tooltip/vega-tooltip-content-box/vega-tooltip-content-box.css +146 -0
- package/dist/collection/components/vega-tooltip/vega-tooltip-content-box/vega-tooltip-content-box.js +60 -0
- package/dist/collection/components/vega-tooltip/vega-tooltip.css +8 -0
- package/dist/collection/components/vega-tooltip/vega-tooltip.js +384 -0
- package/dist/collection/components/vega-virtual-scroll/slimmers/controllers/vega-virtual-scroll-mode-controller.js +70 -0
- package/dist/collection/components/vega-virtual-scroll/slimmers/controllers/vega-virtual-scroll-position-controller.js +171 -0
- package/dist/collection/components/vega-virtual-scroll/slimmers/controllers/vega-virtual-scroll-scrollable-controller.js +199 -0
- package/dist/collection/components/vega-virtual-scroll/slimmers/renderers/vega-virtual-scroll-loading-indicator-renderer.js +23 -0
- package/dist/collection/components/vega-virtual-scroll/slimmers/renderers/vega-virtual-scroll-renderer.js +66 -0
- package/dist/collection/components/vega-virtual-scroll/vega-virtual-scroll.css +11 -0
- package/dist/collection/components/vega-virtual-scroll/vega-virtual-scroll.js +322 -0
- package/dist/collection/constants/card-config.js +60 -0
- package/dist/collection/constants/locale.js +238 -0
- package/dist/collection/constants/misc.js +6 -0
- package/dist/collection/constants/public-api.js +9 -0
- package/dist/collection/constants/regex.js +6 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/public-api/IconManager/runtime-metrics-payload-definition.js +62 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/public-api/ThemeManager/runtime-metrics-payload-definition.js +82 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/public-api/VegaDialogController/runtime-metrics-payload-definition.js +22 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/public-api/VegaEventManager/runtime-metrics-payload-definition.js +213 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/public-api/VegaLoaderController/runtime-metrics-payload-definition.js +42 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/public-api/VegaNotifyController/runtime-metrics-payload-definition.js +62 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/public-api/VegaSkeletonLoader/runtime-metrics-payload-definition.js +62 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/public-api/VegaTranslation/runtime-metrics-payload-definition.js +42 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/public-api/WaitForVegaHandler/runtime-metrics-payload-definition.js +22 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/public-api/zindex-manager/runtime-metrics-payload-definition.js +43 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-button-circle/runtime-metrics-payload-definition.js +38 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-button-group/runtime-metrics-payload-definition.js +38 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-button-link/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-card/runtime-metrics-payload-definition.js +38 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-carousel/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-chip/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-color-picker/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-combo-box/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-date-picker/runtime-metrics-payload-definition.js +50 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-dropdown/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-flex/runtime-metrics-payload-definition.js +98 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-font/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-image-uploader/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-input/runtime-metrics-payload-definition.js +50 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-input-credit-card/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-input-select/runtime-metrics-payload-definition.js +50 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-item-toggle/runtime-metrics-payload-definition.js +36 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-left-nav/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-loading-indicator/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-modal/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-nav-card/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-progress-tracker/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-stepper/runtime-metrics-payload-definition.js +50 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-tab-group/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-table/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-textarea/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-time-picker/runtime-metrics-payload-definition.js +50 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-tooltip/runtime-metrics-payload-definition.js +26 -0
- package/dist/collection/constants/tests/validator.test.js +24 -0
- package/dist/collection/constants/tokens/border-radius.js +16 -0
- package/dist/collection/constants/tokens/borders.js +37 -0
- package/dist/collection/constants/tokens/breakpoints.js +10 -0
- package/dist/collection/constants/tokens/colors-mapping.js +229 -0
- package/dist/collection/constants/tokens/colors.js +205 -0
- package/dist/collection/constants/tokens/icons.js +515 -0
- package/dist/collection/constants/tokens/overridable-border-tokens.js +305 -0
- package/dist/collection/constants/tokens/overridable-color-tokens.js +835 -0
- package/dist/collection/constants/tokens/overridable-ring-tokens.js +49 -0
- package/dist/collection/constants/tokens/rings.js +5 -0
- package/dist/collection/constants/tokens/shadows.js +17 -0
- package/dist/collection/constants/tokens/spacing.js +21 -0
- package/dist/collection/constants/tokens/tailwind.extend.js +56 -0
- package/dist/collection/constants/tokens/themes/dark-mode-border-tokens.js +32 -0
- package/dist/collection/constants/tokens/themes/dark-mode-color-tokens.js +184 -0
- package/dist/collection/constants/tokens/themes/dark-mode-ring-tokens.js +7 -0
- package/dist/collection/constants/tokens/themes/dark-mode-shadow-tokens.js +12 -0
- package/dist/collection/constants/tokens/typography.js +1074 -0
- package/dist/collection/constants/ui.js +85 -0
- package/dist/collection/constants/validator.js +7 -0
- package/dist/collection/decorators/method-decorators/component-load-required.js +44 -0
- package/dist/collection/decorators/method-decorators/tests/component-load-required.test.js +114 -0
- package/dist/collection/decorators/property-decorators/inject-element-appender.js +203 -0
- package/dist/collection/decorators/property-decorators/inject-keyboard-manager.js +32 -0
- package/dist/collection/decorators/property-decorators/tests/inject-element-appender-proxy.test.js +237 -0
- package/dist/collection/decorators/property-decorators/tests/inject-keyboard-manager.test.js +91 -0
- package/dist/collection/global/icons/arrow-rotate-right.js +3 -0
- package/dist/collection/global/icons/arrow-up-arrow-down.js +3 -0
- package/dist/collection/global/icons/arrow-up-from-line.js +3 -0
- package/dist/collection/global/icons/chevron-down.js +3 -0
- package/dist/collection/global/icons/chevron-left.js +3 -0
- package/dist/collection/global/icons/chevron-right.js +3 -0
- package/dist/collection/global/icons/chevron-up.js +3 -0
- package/dist/collection/global/icons/circle-arrow-down.js +3 -0
- package/dist/collection/global/icons/circle-arrow-up.js +3 -0
- package/dist/collection/global/icons/circle-check-regular.js +3 -0
- package/dist/collection/global/icons/circle-check.js +3 -0
- package/dist/collection/global/icons/circle-info.js +3 -0
- package/dist/collection/global/icons/circle-question.js +3 -0
- package/dist/collection/global/icons/circle-xmark.js +3 -0
- package/dist/collection/global/icons/trash-can.js +3 -0
- package/dist/collection/global/icons/triangle-exclamation.js +3 -0
- package/dist/collection/global/icons/xmark-large.js +3 -0
- package/dist/collection/global/scripts/before-vega-load.js +166 -0
- package/dist/collection/global/tests/before-vega-load.test.js +55 -0
- package/dist/collection/helpers/calendar/calendar-date.js +114 -0
- package/dist/collection/helpers/calendar/calendar-event.js +305 -0
- package/dist/collection/helpers/calendar/calendar-period/calendar-period.abstract.js +91 -0
- package/dist/collection/helpers/calendar/calendar-period/day-period.js +57 -0
- package/dist/collection/helpers/calendar/calendar-period/month-period.js +50 -0
- package/dist/collection/helpers/calendar/calendar-period/week-period.js +37 -0
- package/dist/collection/helpers/calendar/calendar-view-generator/calendar-view-generator.abstract.js +41 -0
- package/dist/collection/helpers/calendar/calendar-view-generator/day-view-generator.js +13 -0
- package/dist/collection/helpers/calendar/calendar-view-generator/month-view-generator.js +30 -0
- package/dist/collection/helpers/calendar/calendar-view-generator/week-view-generator.js +22 -0
- package/dist/collection/helpers/calendar/calendar-view.js +25 -0
- package/dist/collection/helpers/calendar/index.js +10 -0
- package/dist/collection/helpers/calendar/test/calendar-date.test.js +71 -0
- package/dist/collection/helpers/calendar/test/calendar-event.test.js +133 -0
- package/dist/collection/helpers/calendar/test/calendar-period/day-period.test.js +81 -0
- package/dist/collection/helpers/calendar/test/calendar-period/month-period.test.js +60 -0
- package/dist/collection/helpers/calendar/test/calendar-period/week-period.test.js +60 -0
- package/dist/collection/helpers/calendar/test/calendar-view-generator/day-view-generator.test.js +19 -0
- package/dist/collection/helpers/calendar/test/calendar-view-generator/month-view-generator.test.js +123 -0
- package/dist/collection/helpers/calendar/test/calendar-view-generator/week-view-generator.test.js +43 -0
- package/dist/collection/helpers/calendar/test/calendar-view.test.js +9 -0
- package/dist/collection/helpers/calendar/test/index.test.js +13 -0
- package/dist/collection/helpers/calendar/test/utils.test.js +9 -0
- package/dist/collection/helpers/calendar/utils.js +10 -0
- package/dist/collection/helpers/change-manager/change-manager.js +73 -0
- package/dist/collection/helpers/change-manager/observer/observer.js +28 -0
- package/dist/collection/helpers/change-manager/subject/dom-node-subject/dom-node-subject-factory.js +72 -0
- package/dist/collection/helpers/change-manager/subject/dom-node-subject/dom-node-subject-observer-factory.js +40 -0
- package/dist/collection/helpers/change-manager/subject/dom-node-subject/dom-node-subject.js +23 -0
- package/dist/collection/helpers/change-manager/subject/static-subject/static-subject-title.js +26 -0
- package/dist/collection/helpers/change-manager/subject/static-subject/static-subject.js +21 -0
- package/dist/collection/helpers/change-manager/subject/subject-interface.js +1 -0
- package/dist/collection/helpers/change-manager/test/change-manager.test.js +30 -0
- package/dist/collection/helpers/change-manager/test/dom-node-subject-factory.test.js +38 -0
- package/dist/collection/helpers/chart/bar-chart.js +67 -0
- package/dist/collection/helpers/chart/base-chart.js +88 -0
- package/dist/collection/helpers/chart/controllers/chart-dimension-controller.js +113 -0
- package/dist/collection/helpers/chart/drawers/arc-path-drawer.js +32 -0
- package/dist/collection/helpers/chart/drawers/base-drawer.js +81 -0
- package/dist/collection/helpers/chart/drawers/legend-drawer.js +88 -0
- package/dist/collection/helpers/chart/drawers/line-drawer.js +14 -0
- package/dist/collection/helpers/chart/drawers/path-drawer.js +24 -0
- package/dist/collection/helpers/chart/drawers/rect-drawer.js +31 -0
- package/dist/collection/helpers/chart/drawers/text-drawer.js +17 -0
- package/dist/collection/helpers/chart/drawers/x-axis-drawer.js +15 -0
- package/dist/collection/helpers/chart/drawers/y-axis-drawer.js +13 -0
- package/dist/collection/helpers/chart/graph-context-factory.js +36 -0
- package/dist/collection/helpers/chart/input-processors/format-time-positions-input-processor.js +44 -0
- package/dist/collection/helpers/chart/input-processors/horizontal-x-axis-input-processor.js +31 -0
- package/dist/collection/helpers/chart/input-processors/horizontal-y-axis-input-processor.js +31 -0
- package/dist/collection/helpers/chart/input-processors/input-processor.js +1 -0
- package/dist/collection/helpers/chart/input-processors/layout-input-processor.js +27 -0
- package/dist/collection/helpers/chart/input-processors/legend-input-processor.js +30 -0
- package/dist/collection/helpers/chart/input-processors/line-path-input-processor.js +54 -0
- package/dist/collection/helpers/chart/input-processors/pie-chart-arc-path-input-processor.js +24 -0
- package/dist/collection/helpers/chart/input-processors/pie-chart-filter-input-processor.js +17 -0
- package/dist/collection/helpers/chart/input-processors/pie-chart-radius-input-processor.js +28 -0
- package/dist/collection/helpers/chart/input-processors/pie-chart-text-input-processor.js +22 -0
- package/dist/collection/helpers/chart/input-processors/processor-chain.js +28 -0
- package/dist/collection/helpers/chart/input-processors/sort-positions-input-processor.js +31 -0
- package/dist/collection/helpers/chart/input-processors/x-axis-input-processor.js +60 -0
- package/dist/collection/helpers/chart/input-processors/x-axis-label-formatter-input-processor.js +67 -0
- package/dist/collection/helpers/chart/input-processors/y-axis-input-processor.js +59 -0
- package/dist/collection/helpers/chart/interacting-entry-generator/arc-path-hover-generator.js +69 -0
- package/dist/collection/helpers/chart/interacting-entry-generator/interacting-entry-generator.js +16 -0
- package/dist/collection/helpers/chart/interacting-entry-generator/pie-legend-hover-generator.js +76 -0
- package/dist/collection/helpers/chart/interactors/base-interactor.js +92 -0
- package/dist/collection/helpers/chart/interactors/canvas-interactor.js +6 -0
- package/dist/collection/helpers/chart/interactors/interactor-factory.js +26 -0
- package/dist/collection/helpers/chart/interactors/svg-interactor.js +29 -0
- package/dist/collection/helpers/chart/line-chart.js +65 -0
- package/dist/collection/helpers/chart/pie-chart.js +56 -0
- package/dist/collection/helpers/chart/renderers/base-renderer.js +16 -0
- package/dist/collection/helpers/chart/renderers/canvas-renderer.js +198 -0
- package/dist/collection/helpers/chart/renderers/renderer-factory.js +25 -0
- package/dist/collection/helpers/chart/renderers/svg-renderer.js +297 -0
- package/dist/collection/helpers/chart/test/controllers/chart-dimension-controller.test.js +63 -0
- package/dist/collection/helpers/chart/test/drawers/arc-path-drawer.test.js +55 -0
- package/dist/collection/helpers/chart/test/drawers/legend-drawer.test.js +94 -0
- package/dist/collection/helpers/chart/test/drawers/line-drawer.test.js +25 -0
- package/dist/collection/helpers/chart/test/drawers/path-drawer.test.js +21 -0
- package/dist/collection/helpers/chart/test/drawers/rect-drawer.test.js +78 -0
- package/dist/collection/helpers/chart/test/drawers/text-drawer.test.js +25 -0
- package/dist/collection/helpers/chart/test/drawers/x-axis-drawer.test.js +38 -0
- package/dist/collection/helpers/chart/test/drawers/y-axis-drawer.test.js +44 -0
- package/dist/collection/helpers/chart/test/graph-context-factory.test.js +17 -0
- package/dist/collection/helpers/chart/test/input-processors/format-time-positions-input-processor.test.js +62 -0
- package/dist/collection/helpers/chart/test/input-processors/horizontal-x-axis-input-processor.test.js +45 -0
- package/dist/collection/helpers/chart/test/input-processors/horizontal-y-axis-input-processor.test.js +80 -0
- package/dist/collection/helpers/chart/test/input-processors/layout-input-processor.test.js +40 -0
- package/dist/collection/helpers/chart/test/input-processors/line-path-input-processor.test.js +16 -0
- package/dist/collection/helpers/chart/test/input-processors/pie-chart-filter-input-processor.test.js +20 -0
- package/dist/collection/helpers/chart/test/input-processors/pie-chart-radius-input-processor.test.js +48 -0
- package/dist/collection/helpers/chart/test/input-processors/sort-positions-input-processor.test.js +53 -0
- package/dist/collection/helpers/chart/test/input-processors/x-axis-input-processor.test.js +39 -0
- package/dist/collection/helpers/chart/test/input-processors/x-axis-label-formatter-input-processor.test.js +62 -0
- package/dist/collection/helpers/chart/test/input-processors/y-axis-input-processor.test.js +41 -0
- package/dist/collection/helpers/chart/test/interacting-entry-generator/arc-path-hover-generator.test.js +11 -0
- package/dist/collection/helpers/chart/test/interacting-entry-generator/pie-legend-hover-generator.test.js +25 -0
- package/dist/collection/helpers/chart/test/interactors/interactor-factory.test.js +19 -0
- package/dist/collection/helpers/chart/test/interactors/svg-interactor.test.js +48 -0
- package/dist/collection/helpers/chart/test/line-chart.test.js +96 -0
- package/dist/collection/helpers/chart/test/pie-chart.test.js +38 -0
- package/dist/collection/helpers/chart/test/renderers/canvas-renderer.test.js +31 -0
- package/dist/collection/helpers/chart/test/renderers/renderer-factory.test.js +19 -0
- package/dist/collection/helpers/chart/test/renderers/svg-renderer.test.js +99 -0
- package/dist/collection/helpers/common/index.js +10 -0
- package/dist/collection/helpers/common/test/common.test.js +7 -0
- package/dist/collection/helpers/common/test/wait-for-vega-handler.test.js +17 -0
- package/dist/collection/helpers/common/wait-for-vega-handler.js +34 -0
- package/dist/collection/helpers/dialog/test/vega-dialog-controller.test.js +96 -0
- package/dist/collection/helpers/dialog/vega-dialog-controller.js +55 -0
- package/dist/collection/helpers/event-manager/event-delegated/base-strategy.js +77 -0
- package/dist/collection/helpers/event-manager/event-delegated/jquery-delegated-event-strategy.js +1 -0
- package/dist/collection/helpers/event-manager/event-delegated/jquery-delegated-strategy-controller.js +97 -0
- package/dist/collection/helpers/event-manager/event-delegated/vega-button-click-strategy.js +23 -0
- package/dist/collection/helpers/event-manager/event-delegated/vega-checkbox-change-strategy.js +23 -0
- package/dist/collection/helpers/event-manager/event-delegated/vega-input-select-change-strategy.js +24 -0
- package/dist/collection/helpers/event-manager/event-delegated/vega-input-strategy.js +30 -0
- package/dist/collection/helpers/event-manager/event-delegated/vega-radio-change-strategy.js +23 -0
- package/dist/collection/helpers/event-manager/event-delegated/vega-textarea-change-strategy.js +21 -0
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +70 -0
- package/dist/collection/helpers/event-manager/event-id/vega-event-id-interface.js +1 -0
- package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +100 -0
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +33 -0
- package/dist/collection/helpers/event-manager/internal-vega-event-manager.js +70 -0
- package/dist/collection/helpers/event-manager/slimmers/child-nodes-event-prevent-slimmer.js +155 -0
- package/dist/collection/helpers/event-manager/slimmers/child-nodes-notify-observer-slimmer.js +85 -0
- package/dist/collection/helpers/event-manager/slimmers/event-emit-handlers/event-emit-handler.js +1 -0
- package/dist/collection/helpers/event-manager/slimmers/event-emit-handlers/jquery-delegated-event-emit-handler.js +54 -0
- package/dist/collection/helpers/event-manager/slimmers/event-emit-handlers/native-event-emit-handler.js +40 -0
- package/dist/collection/helpers/event-manager/slimmers/event-emit-handlers/vega-event-emit-handler.js +39 -0
- package/dist/collection/helpers/event-manager/slimmers/event-emit-slimmer.js +123 -0
- package/dist/collection/helpers/event-manager/test/child-nodes-event-prevent-slimmer.test.js +209 -0
- package/dist/collection/helpers/event-manager/test/child-nodes-notify-observer-slimmer.test.js +81 -0
- package/dist/collection/helpers/event-manager/test/component-event-id-map.test.js +13 -0
- package/dist/collection/helpers/event-manager/test/event-emit-slimmer.test.js +107 -0
- package/dist/collection/helpers/event-manager/test/internal-vega-event-manager.test.js +70 -0
- package/dist/collection/helpers/event-manager/test/jquery-delegated-strategy-controller.test.js +131 -0
- package/dist/collection/helpers/event-manager/test/vega-event-id.test.js +16 -0
- package/dist/collection/helpers/event-manager/test/vega-event-manager.test.js +92 -0
- package/dist/collection/helpers/event-manager/vega-event-manager.js +58 -0
- package/dist/collection/helpers/feature-control/feature-flag-controller.js +124 -0
- package/dist/collection/helpers/feature-control/feature-flags-map.js +184 -0
- package/dist/collection/helpers/feature-control/tests/feature-flag-controller.test.js +69 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiv-border-radius-formatter.js +56 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-box-display-formatter.js +32 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-class-string-formatter.js +27 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-custom-formatter.js +28 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-display-formatter.js +31 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-flex-align-item-formatter.js +29 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-flex-direction-formatter.js +29 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-flex-justify-content-formatter.js +57 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-flex-wrap-formatter.js +29 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-format-facade.js +85 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-gap-formatter.js +40 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-grid-columns-formatter.js +29 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-grid-rows-formatter.js +29 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-margin-formatter.js +44 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-padding-formatter.js +44 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-size-formatter.js +34 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-text-align-formatter.js +29 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-translocation-formatter.js +29 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-width-and-height-formatter.js +30 -0
- package/dist/collection/helpers/formatter/state-formatter/state-background-color-formatter.js +46 -0
- package/dist/collection/helpers/formatter/state-formatter/state-border-color-formatter.js +45 -0
- package/dist/collection/helpers/formatter/state-formatter/state-border-formatter.js +47 -0
- package/dist/collection/helpers/formatter/state-formatter/state-format-facade.js +42 -0
- package/dist/collection/helpers/formatter/state-formatter/state-shadow-formatter.js +42 -0
- package/dist/collection/helpers/formatter/state-formatter/state-variant-formatter.js +35 -0
- package/dist/collection/helpers/formatter/string-formatter/custom-formatter-strategy.js +60 -0
- package/dist/collection/helpers/formatter/string-formatter/number-mask-strategy.js +109 -0
- package/dist/collection/helpers/formatter/string-formatter/number-thousand-comma-strategy.js +70 -0
- package/dist/collection/helpers/formatter/string-formatter/string-mask-strategy.js +160 -0
- package/dist/collection/helpers/formatter/string-formatter/thousand-comma-strategy.js +37 -0
- package/dist/collection/helpers/formatter/style-formatter.js +29 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-border-radius-formatter.test.js +64 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-box-display-formatter.test.js +31 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-custom-formatter.test.js +17 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-display-formatter.test.js +23 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-flex-direction-formatter.test.js +19 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-flex-wrap-formatter.test.js +19 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-format-mediator.test.js +43 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-gap-formatter.ts.test.js +29 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-grid-column-formatter.test.js +23 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-grid-row-formatter.test.js +27 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-margin-formatter.test.js +43 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-padding-formatter.test.js +43 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-size-formatter.test.js +27 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-text-align-formatter.test.js +19 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-translocation-formatter.test.js +51 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-width-and-height-formatter.test.js +20 -0
- package/dist/collection/helpers/formatter/test/state-formatter/state-background-color-formatter.test.js +18 -0
- package/dist/collection/helpers/formatter/test/state-formatter/state-border-color-formatter.test.js +13 -0
- package/dist/collection/helpers/formatter/test/state-formatter/state-border-formatter.test.js +13 -0
- package/dist/collection/helpers/formatter/test/state-formatter/state-format-facade.test.js +27 -0
- package/dist/collection/helpers/formatter/test/state-formatter/state-shadow-formatter.test.js +13 -0
- package/dist/collection/helpers/formatter/test/string-formatter/custom-formatter-strategy.test.js +12 -0
- package/dist/collection/helpers/formatter/test/string-formatter/number-mask-strategy.test.js +92 -0
- package/dist/collection/helpers/formatter/test/string-formatter/number-thousand-comma-mask-strategy.test.js +40 -0
- package/dist/collection/helpers/formatter/test/string-formatter/string-mask-strategy.test.js +89 -0
- package/dist/collection/helpers/formatter/test/string-formatter/thousand-comma-strategy.test.js +21 -0
- package/dist/collection/helpers/formatter/test/style-formatter.test.js +16 -0
- package/dist/collection/helpers/icon/icon-manager.js +55 -0
- package/dist/collection/helpers/icon/internal-icon-manager.js +40 -0
- package/dist/collection/helpers/icon/test/icon-manager-controller.test.js +101 -0
- package/dist/collection/helpers/icon/test/internal-icon-manager.test.js +18 -0
- package/dist/collection/helpers/immutable/immutable-map.js +113 -0
- package/dist/collection/helpers/immutable/immutable-set.js +95 -0
- package/dist/collection/helpers/immutable/test/immutable-map.test.js +83 -0
- package/dist/collection/helpers/immutable/test/immutable-set.test.js +87 -0
- package/dist/collection/helpers/keyboard/keyboard-manager.js +101 -0
- package/dist/collection/helpers/keyboard/test/keyboard-manager.test.js +107 -0
- package/dist/collection/helpers/level-tracker/nested-level-tracker.js +61 -0
- package/dist/collection/helpers/level-tracker/test/nested-level-tracker.test.js +33 -0
- package/dist/collection/helpers/loading-indicator/tests/vega-loader-controller.test.js +165 -0
- package/dist/collection/helpers/loading-indicator/vega-loader-controller.js +124 -0
- package/dist/collection/helpers/notify/tests/vega-notify-controller.test.js +165 -0
- package/dist/collection/helpers/notify/vega-notify-controller.js +122 -0
- package/dist/collection/helpers/paginator/test/value-paginator.test.js +15 -0
- package/dist/collection/helpers/paginator/value-paginator.js +78 -0
- package/dist/collection/helpers/public-api.js +16 -0
- package/dist/collection/helpers/queue/synchronize-task-queue.js +37 -0
- package/dist/collection/helpers/queue/test/synchronize-task-queue.test.js +48 -0
- package/dist/collection/helpers/remote-invocation/remote-invocation-registry.js +59 -0
- package/dist/collection/helpers/remote-invocation/remote-invocation-registry.test.js +17 -0
- package/dist/collection/helpers/skeleton-loader/tests/vega-skeleton-loader-controller.test.js +194 -0
- package/dist/collection/helpers/skeleton-loader/vega-skeleton-loader-controller.js +104 -0
- package/dist/collection/helpers/slimmers/component-global-style-slimmer.js +82 -0
- package/dist/collection/helpers/slimmers/component-usage-runtime-metrics.js +77 -0
- package/dist/collection/helpers/slimmers/deprecated-property-slimmer.js +43 -0
- package/dist/collection/helpers/slimmers/element-appender-container/default-wrapper.js +35 -0
- package/dist/collection/helpers/slimmers/element-appender-container/element-appender-container-controller.js +67 -0
- package/dist/collection/helpers/slimmers/element-appender-container/position-relative-to-wrapper.js +38 -0
- package/dist/collection/helpers/slimmers/element-appender-container/vega-modal-wrapper.js +62 -0
- package/dist/collection/helpers/slimmers/element-appender-container/vega-popover-wrapper.js +36 -0
- package/dist/collection/helpers/slimmers/element-appender-slimmer.js +186 -0
- package/dist/collection/helpers/slimmers/field-error-controller-silmmer.js +74 -0
- package/dist/collection/helpers/slimmers/field-error-ui-controller-slimmer.js +132 -0
- package/dist/collection/helpers/slimmers/field-error-ui-controller-strategies/sibling-container-error-label-container-retrieval-strategy.js +25 -0
- package/dist/collection/helpers/slimmers/field-error-ui-controller-strategies/sibling-container-nested-error-container-retrieval-strategy.js +19 -0
- package/dist/collection/helpers/slimmers/field-error-ui-controller-strategies/sibling-container-self-retrieval-strategy.js +23 -0
- package/dist/collection/helpers/slimmers/form-field-controller-slimmer.js +209 -0
- package/dist/collection/helpers/slimmers/form-field-valid-invoke-slimmer.js +55 -0
- package/dist/collection/helpers/slimmers/global/vega-translate-observer-slimmer.js +44 -0
- package/dist/collection/helpers/slimmers/global/vega-watch-method-cancel-slimmer.js +98 -0
- package/dist/collection/helpers/slimmers/keyboard-manager-slimmer.js +34 -0
- package/dist/collection/helpers/slimmers/mutation-observer/mutation-observer-filters.js +51 -0
- package/dist/collection/helpers/slimmers/mutation-observer/mutation-observer-slimmer.js +80 -0
- package/dist/collection/helpers/slimmers/mutation-observer/test/mutation-observer-slimmer.test.js +168 -0
- package/dist/collection/helpers/slimmers/page-resize-observer-slimmer.js +117 -0
- package/dist/collection/helpers/slimmers/runtime-metrics/create-public-api-runtime-metrics-slimmer.js +23 -0
- package/dist/collection/helpers/slimmers/runtime-metrics/public-api-runtime-metrics-slimmer-base.js +74 -0
- package/dist/collection/helpers/slimmers/runtime-metrics/test/public-api-runtime-metrics-slimmer-base.test.js +96 -0
- package/dist/collection/helpers/slimmers/string-input-formatter-slimmer.js +193 -0
- package/dist/collection/helpers/slimmers/sub-state/sub-state-notify-slimmer-base.js +49 -0
- package/dist/collection/helpers/slimmers/sub-state/sub-state-notify-slimmer.js +24 -0
- package/dist/collection/helpers/slimmers/sub-state/sub-state-observer-slimmer.js +129 -0
- package/dist/collection/helpers/slimmers/sub-state/test/sub-state-observer-slimmer.test.js +204 -0
- package/dist/collection/helpers/slimmers/test/component-global-style-slimmer.test.js +63 -0
- package/dist/collection/helpers/slimmers/test/component-usage-runtime-metrics.test.js +72 -0
- package/dist/collection/helpers/slimmers/test/deprecated-property-slimmer.test.js +36 -0
- package/dist/collection/helpers/slimmers/test/element-appender-slimmer.test.js +310 -0
- package/dist/collection/helpers/slimmers/test/field-error-controller-slimmer.test.js +54 -0
- package/dist/collection/helpers/slimmers/test/form-field-controller-slimmer.test.js +278 -0
- package/dist/collection/helpers/slimmers/test/form-field-valid-invoke-slimmer.test.js +106 -0
- package/dist/collection/helpers/slimmers/test/global/vega-watch-method-cancel-slimmer.test.js +101 -0
- package/dist/collection/helpers/slimmers/test/keyboard-manager-slimmer.test.js +90 -0
- package/dist/collection/helpers/slimmers/test/page-resize-observer-slimmer.test.js +222 -0
- package/dist/collection/helpers/slimmers/test/string-input-formatter-slimmer.test.js +218 -0
- package/dist/collection/helpers/slimmers/test/translation-slimmer.test.js +89 -0
- package/dist/collection/helpers/slimmers/translation/index.js +1 -0
- package/dist/collection/helpers/slimmers/translation/translation-slimmer.js +37 -0
- package/dist/collection/helpers/theme/controllers/color-schema-overriding-controller.js +74 -0
- package/dist/collection/helpers/theme/controllers/dark-mode-style-controller.js +44 -0
- package/dist/collection/helpers/theme/tests/theme-manager-controller.test.js +565 -0
- package/dist/collection/helpers/theme/theme-manager.js +68 -0
- package/dist/collection/helpers/touch-helper/test/touch-listener.test.js +122 -0
- package/dist/collection/helpers/touch-helper/touch-listener.js +133 -0
- package/dist/collection/helpers/translation/index.js +4 -0
- package/dist/collection/helpers/translation/internal-translation-controller.js +104 -0
- package/dist/collection/helpers/translation/locales/en.js +74 -0
- package/dist/collection/helpers/translation/tests/internal-translation-controller.test.js +182 -0
- package/dist/collection/helpers/translation/tests/translation.test.js +32 -0
- package/dist/collection/helpers/translation/translation.js +51 -0
- package/dist/collection/helpers/ui/element-appender.js +319 -0
- package/dist/collection/helpers/ui/test/element-appender.test.js +425 -0
- package/dist/collection/helpers/validator/form-field-controller.js +445 -0
- package/dist/collection/helpers/validator/rules/check-box-required-rule.js +64 -0
- package/dist/collection/helpers/validator/rules/date-range-rule.js +54 -0
- package/dist/collection/helpers/validator/rules/date-required-rule.js +85 -0
- package/dist/collection/helpers/validator/rules/email-field-rule.js +55 -0
- package/dist/collection/helpers/validator/rules/file-uploader-required-rule.js +16 -0
- package/dist/collection/helpers/validator/rules/input-phone-number-required-rule.js +58 -0
- package/dist/collection/helpers/validator/rules/input-range-min-and-max-rule.js +92 -0
- package/dist/collection/helpers/validator/rules/input-range-required-rule.js +57 -0
- package/dist/collection/helpers/validator/rules/max-number-rule.js +68 -0
- package/dist/collection/helpers/validator/rules/max-string-length-rule.js +67 -0
- package/dist/collection/helpers/validator/rules/min-and-max-date-rule.js +138 -0
- package/dist/collection/helpers/validator/rules/min-number-rule.js +68 -0
- package/dist/collection/helpers/validator/rules/min-string-length-rule.js +70 -0
- package/dist/collection/helpers/validator/rules/required-field-rule.js +79 -0
- package/dist/collection/helpers/validator/rules/time-range-required-rule.js +67 -0
- package/dist/collection/helpers/validator/rules/time-range-rule.js +79 -0
- package/dist/collection/helpers/validator/rules/time-required-rule.js +65 -0
- package/dist/collection/helpers/validator/rules/toggle-switch-required-rule.js +60 -0
- package/dist/collection/helpers/validator/rules/valid-credit-card-number-rule.js +167 -0
- package/dist/collection/helpers/validator/rules/valid-phone-number-rule.js +111 -0
- package/dist/collection/helpers/validator/test/rules/check-box-required-rule.test.js +88 -0
- package/dist/collection/helpers/validator/test/rules/custom-validation-rule.test.js +56 -0
- package/dist/collection/helpers/validator/test/rules/date-range-rule.test.js +67 -0
- package/dist/collection/helpers/validator/test/rules/date-required-rule.test.js +120 -0
- package/dist/collection/helpers/validator/test/rules/email-field-rule.test.js +69 -0
- package/dist/collection/helpers/validator/test/rules/file-uploader-required-rule.test.js +7 -0
- package/dist/collection/helpers/validator/test/rules/input-phone-number-required-rule.test.js +105 -0
- package/dist/collection/helpers/validator/test/rules/input-range-min-and-max-rule.test.js +146 -0
- package/dist/collection/helpers/validator/test/rules/input-range-required-rule.test.js +82 -0
- package/dist/collection/helpers/validator/test/rules/max-number-rule.test.js +97 -0
- package/dist/collection/helpers/validator/test/rules/max-string-length-rule.test.js +85 -0
- package/dist/collection/helpers/validator/test/rules/min-and-max-date-rule.test.js +174 -0
- package/dist/collection/helpers/validator/test/rules/min-number-rule.test.js +97 -0
- package/dist/collection/helpers/validator/test/rules/min-string-length-rule.test.js +85 -0
- package/dist/collection/helpers/validator/test/rules/required-field-rule.test.js +115 -0
- package/dist/collection/helpers/validator/test/rules/time-range-required-rule.test.js +82 -0
- package/dist/collection/helpers/validator/test/rules/time-range-rule.test.js +67 -0
- package/dist/collection/helpers/validator/test/rules/time-required-rule.test.js +116 -0
- package/dist/collection/helpers/validator/test/rules/toggle-switch-required-rule.test.js +72 -0
- package/dist/collection/helpers/validator/test/rules/valid-credit-card-number-rule.test.js +79 -0
- package/dist/collection/helpers/validator/test/rules/valid-phone-number-rule.test.js +77 -0
- package/dist/collection/helpers/validator/test/validation-rule-handler/form-field-validation-rule-handler-chain.test.js +65 -0
- package/dist/collection/helpers/validator/test/validation-rule-handler/form-field-validation-rule-handler.test.js +82 -0
- package/dist/collection/helpers/validator/test/validator/form-field-controller.test.js +193 -0
- package/dist/collection/helpers/validator/validation-rule-handler/form-field-validation-rule-handler-chain.js +101 -0
- package/dist/collection/helpers/validator/validation-rule-handler/form-field-validation-rule-handler.js +66 -0
- package/dist/collection/helpers/vega-telemetry-helper/test/vega-env-manager.test.js +14 -0
- package/dist/collection/helpers/vega-telemetry-helper/vega-env-manager.js +37 -0
- package/dist/collection/helpers/zindex/internal-vega-z-index-manager.js +175 -0
- package/dist/collection/helpers/zindex/test/internal-vega-z-index-manager.test.js +176 -0
- package/dist/collection/helpers/zindex/test/vega-z-index-manager.test.js +46 -0
- package/dist/collection/helpers/zindex/vega-z-index-manager.js +33 -0
- package/dist/collection/index.js +5 -0
- package/dist/collection/polyfill/test-polyfill/e2e/retry.js +42 -0
- package/dist/collection/polyfill/test-polyfill/unit/create-touch-event.js +31 -0
- package/dist/collection/polyfill/test-polyfill/unit/events.js +100 -0
- package/dist/collection/polyfill/test-polyfill/unit/index.js +2 -0
- package/dist/collection/polyfill/test-polyfill/unit/methods.js +29 -0
- package/dist/collection/test-assets/test-icons.js +5 -0
- package/dist/collection/types/class.type.js +1 -0
- package/dist/collection/types/design-token.type.js +1 -0
- package/dist/collection/types/public-api.js +1 -0
- package/dist/collection/types/test/type-guard.test.js +39 -0
- package/dist/collection/types/type-guard.js +372 -0
- package/dist/collection/types/ui.type.js +6 -0
- package/dist/collection/utils/accessibility.js +13 -0
- package/dist/collection/utils/api.js +60 -0
- package/dist/collection/utils/array.js +177 -0
- package/dist/collection/utils/breakpoints.js +49 -0
- package/dist/collection/utils/component.js +131 -0
- package/dist/collection/utils/date.js +84 -0
- package/dist/collection/utils/design-token.js +241 -0
- package/dist/collection/utils/e2e-utils.js +319 -0
- package/dist/collection/utils/effect.js +74 -0
- package/dist/collection/utils/local-storage.js +24 -0
- package/dist/collection/utils/log.js +67 -0
- package/dist/collection/utils/misc.js +35 -0
- package/dist/collection/utils/number.js +83 -0
- package/dist/collection/utils/object.js +32 -0
- package/dist/collection/utils/pagination.js +40 -0
- package/dist/collection/utils/pixel.js +48 -0
- package/dist/collection/utils/position.js +373 -0
- package/dist/collection/utils/public-api.js +4 -0
- package/dist/collection/utils/spec-utils.js +196 -0
- package/dist/collection/utils/string.js +9 -0
- package/dist/collection/utils/test/accessibility.test.js +40 -0
- package/dist/collection/utils/test/api.test.js +34 -0
- package/dist/collection/utils/test/array.test.js +198 -0
- package/dist/collection/utils/test/breakpoint.test.js +37 -0
- package/dist/collection/utils/test/component.test.js +59 -0
- package/dist/collection/utils/test/date.test.js +102 -0
- package/dist/collection/utils/test/design-token.test.js +91 -0
- package/dist/collection/utils/test/effect.test.js +64 -0
- package/dist/collection/utils/test/local-storage.test.js +38 -0
- package/dist/collection/utils/test/log.test.js +49 -0
- package/dist/collection/utils/test/misc.test.js +40 -0
- package/dist/collection/utils/test/number.test.js +14 -0
- package/dist/collection/utils/test/object.test.js +51 -0
- package/dist/collection/utils/test/pagination.test.js +40 -0
- package/dist/collection/utils/test/pixel.test.js +29 -0
- package/dist/collection/utils/test/position.test.js +262 -0
- package/dist/collection/utils/test/spec-utils.test.js +73 -0
- package/dist/collection/utils/test/string.test.js +8 -0
- package/dist/collection/utils/test/test-utils.test.js +70 -0
- package/dist/collection/utils/test/timer.test.js +16 -0
- package/dist/collection/utils/test/ui.test.js +241 -0
- package/dist/collection/utils/test-utils.js +155 -0
- package/dist/collection/utils/timer.js +20 -0
- package/dist/collection/utils/ui.js +200 -0
- package/dist/collection/value-model-adapters/angular-ng-model-accessor-adapter.js +35 -0
- package/dist/collection/value-model-adapters/vue-component-v-model-adaptor.js +30 -0
- package/dist/esm/accessibility-e5fd0fab.js +15 -0
- package/dist/esm/app-globals-41797af8.js +302 -0
- package/dist/esm/array-506b88b9.js +169 -0
- package/dist/esm/breakpoints-36a3ed69.js +62 -0
- package/dist/esm/change-manager-6a7eb88c.js +76 -0
- package/dist/esm/chevron-down-4303bddb.js +9 -0
- package/dist/esm/child-nodes-event-prevent-slimmer-345c46c5.js +156 -0
- package/dist/esm/child-nodes-notify-observer-slimmer-3d52b843.js +88 -0
- package/dist/esm/component-cae24190.js +114 -0
- package/dist/esm/component-global-style-slimmer-000e0c11.js +85 -0
- package/dist/esm/component-load-required-ce710ef5.js +46 -0
- package/dist/esm/component-usage-runtime-metrics-b3f6ac79.js +119 -0
- package/dist/esm/create-public-api-runtime-metrics-slimmer-928ad7f0.js +203 -0
- package/dist/esm/date-732bc749.js +87 -0
- package/dist/esm/deprecated-property-slimmer-43d184b3.js +47 -0
- package/dist/esm/design-token-3671ce60.js +389 -0
- package/dist/esm/dom-node-subject-observer-factory-9461cd67.js +138 -0
- package/dist/esm/dynamic-slimmer-90b8af32.js +61 -0
- package/dist/esm/effect-8efd2c3c.js +49 -0
- package/dist/esm/element-appender-slimmer-1172e2ea.js +1107 -0
- package/dist/esm/event-emit-slimmer-eee9fd41.js +255 -0
- package/dist/esm/feature-flag-controller-10780eeb.js +311 -0
- package/dist/esm/form-field-controller-slimmer-edbaaf7c.js +1135 -0
- package/dist/esm/global-slimmer-registry-17c4efd4.js +283 -0
- package/dist/esm/icon-manager-0f030f8a.js +120 -0
- package/dist/esm/icons-8627925e.js +517 -0
- package/dist/esm/immutable-map-f545ed1a.js +115 -0
- package/dist/esm/index-0863eec6.js +1019 -0
- package/dist/esm/index-187f71d1.js +1725 -0
- package/dist/esm/index.js +38 -0
- package/dist/esm/inject-keyboard-manager-8a82e8c9.js +35 -0
- package/dist/esm/internal-icon-manager-9671142a.js +43 -0
- package/dist/esm/internal-vega-event-manager-722461c1.js +456 -0
- package/dist/esm/internal-vega-z-index-manager-0553458e.js +178 -0
- package/dist/esm/keyboard-manager-d1f9ddc1.js +104 -0
- package/dist/esm/keyboard-manager-slimmer-8723f20f.js +37 -0
- package/dist/esm/legend-input-processor-abb0b4f4.js +4739 -0
- package/dist/esm/loader.js +43 -0
- package/dist/esm/min-number-rule-8f643dbd.js +139 -0
- package/dist/esm/min-string-length-rule-c6a69eeb.js +140 -0
- package/dist/esm/mobilefriendly-c5d0573d.js +11 -0
- package/dist/esm/mutation-observer-filters-9086b5cc.js +54 -0
- package/dist/esm/mutation-observer-slimmer-6cef9549.js +83 -0
- package/dist/esm/number-e2519d1c.js +85 -0
- package/dist/esm/object-261e7344.js +34 -0
- package/dist/esm/observer-3959f9dd.js +30 -0
- package/dist/esm/page-resize-observer-slimmer-994c1e1b.js +120 -0
- package/dist/esm/pixel-f32c07ce.js +68 -0
- package/dist/esm/placeholder-bf562081.js +24 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/regex-dfe11abf.js +8 -0
- package/dist/esm/remote-invocation-registry-1682b34e.js +62 -0
- package/dist/esm/required-field-rule-5da360cc.js +81 -0
- package/dist/esm/responsive-format-facade-5a1329a7.js +716 -0
- package/dist/esm/state-background-color-formatter-0540d006.js +82 -0
- package/dist/esm/static-subject-title-6987a80b.js +46 -0
- package/dist/esm/string-be824360.js +11 -0
- package/dist/esm/string-input-formatter-slimmer-fc23bc9f.js +356 -0
- package/dist/esm/style-formatter-2fa5ce09.js +32 -0
- package/dist/esm/sub-state-observer-slimmer-8eff5559.js +201 -0
- package/dist/esm/synchronize-task-queue-8f5fbbd9.js +39 -0
- package/dist/esm/timer-9321173b.js +22 -0
- package/dist/esm/translation-0fa7cf77.js +272 -0
- package/dist/esm/translation-slimmer-79f9a9c9.js +40 -0
- package/dist/esm/type-guard-63caf78b.js +671 -0
- package/dist/esm/typography-a8fc4764.js +1076 -0
- package/dist/esm/ui-0132dbb5.js +187 -0
- package/dist/esm/ui-8424715a.js +38 -0
- package/dist/esm/valid-credit-card-number-rule-232f2986.js +170 -0
- package/dist/esm/vega-accordion.entry.js +265 -0
- package/dist/esm/vega-app-footer.entry.js +145 -0
- package/dist/esm/vega-app-header-button.entry.js +310 -0
- package/dist/esm/vega-backdrop.entry.js +152 -0
- package/dist/esm/vega-banner.entry.js +350 -0
- package/dist/esm/vega-bar-chart.entry.js +234 -0
- package/dist/esm/vega-box.entry.js +204 -0
- package/dist/esm/vega-breadcrumb.entry.js +264 -0
- package/dist/esm/vega-button-circle.entry.js +218 -0
- package/dist/esm/vega-button-group_2.entry.js +419 -0
- package/dist/esm/vega-button-link.entry.js +212 -0
- package/dist/esm/vega-button.entry.js +230 -0
- package/dist/esm/vega-calendar_3.entry.js +4173 -0
- package/dist/esm/vega-card.entry.js +192 -0
- package/dist/esm/vega-carousel.entry.js +511 -0
- package/dist/esm/vega-checkbox_2.entry.js +620 -0
- package/dist/esm/vega-chip.entry.js +297 -0
- package/dist/esm/vega-color-picker.entry.js +245 -0
- package/dist/esm/vega-combo-box.entry.js +434 -0
- package/dist/esm/vega-counter-badge.entry.js +86 -0
- package/dist/esm/vega-date-picker_2.entry.js +2115 -0
- package/dist/esm/vega-dialog-controller-3b905672.js +79 -0
- package/dist/esm/vega-dialog_2.entry.js +711 -0
- package/dist/esm/vega-divider.entry.js +145 -0
- package/dist/esm/vega-dropdown_5.entry.js +2920 -0
- package/dist/esm/vega-env-manager-8f8dc473.js +39 -0
- package/dist/esm/vega-event-id-7465a011.js +100 -0
- package/dist/esm/vega-field-error.entry.js +98 -0
- package/dist/esm/vega-field-label.entry.js +162 -0
- package/dist/esm/vega-file-uploader.entry.js +683 -0
- package/dist/esm/vega-flex.entry.js +193 -0
- package/dist/esm/vega-font.entry.js +285 -0
- package/dist/esm/vega-form.entry.js +481 -0
- package/dist/esm/vega-grid.entry.js +95 -0
- package/dist/esm/vega-hint.entry.js +34 -0
- package/dist/esm/vega-icon.entry.js +224 -0
- package/dist/esm/vega-image-uploader.entry.js +931 -0
- package/dist/esm/vega-input-credit-card.entry.js +408 -0
- package/dist/esm/vega-input-phone-number.entry.js +9219 -0
- package/dist/esm/vega-input-range.entry.js +742 -0
- package/dist/esm/vega-input-select.entry.js +875 -0
- package/dist/esm/vega-input.entry.js +1043 -0
- package/dist/esm/vega-internal-event-id-7e05cf4a.js +35 -0
- package/dist/esm/vega-item-toggle.entry.js +187 -0
- package/dist/esm/vega-left-nav_5.entry.js +1176 -0
- package/dist/esm/vega-line-chart.entry.js +378 -0
- package/dist/esm/vega-loader-wrapper_2.entry.js +206 -0
- package/dist/esm/vega-page-notification_2.entry.js +178 -0
- package/dist/esm/vega-pagination.entry.js +382 -0
- package/dist/esm/vega-pie-chart.entry.js +439 -0
- package/dist/esm/vega-popover_2.entry.js +316 -0
- package/dist/esm/vega-progress-tracker.entry.js +248 -0
- package/dist/esm/vega-radio_2.entry.js +738 -0
- package/dist/esm/vega-section-title.entry.js +108 -0
- package/dist/esm/vega-segment-control.entry.js +344 -0
- package/dist/esm/vega-selection-chip_2.entry.js +831 -0
- package/dist/esm/vega-selection-tile_2.entry.js +790 -0
- package/dist/esm/vega-signature-capture.entry.js +568 -0
- package/dist/esm/vega-skeleton-loader-controller-6fb25f3b.js +3897 -0
- package/dist/esm/vega-skeleton.entry.js +326 -0
- package/dist/esm/vega-slot-container.entry.js +36 -0
- package/dist/esm/vega-stepper.entry.js +288 -0
- package/dist/esm/vega-tab-group_2.entry.js +1265 -0
- package/dist/esm/vega-table_8.entry.js +4560 -0
- package/dist/esm/vega-text.entry.js +228 -0
- package/dist/esm/vega-textarea.entry.js +298 -0
- package/dist/esm/vega-time-picker_2.entry.js +2152 -0
- package/dist/esm/vega-toggle-switch.entry.js +244 -0
- package/dist/esm/vega-tooltip_2.entry.js +295 -0
- package/dist/esm/vega.js +43 -0
- package/dist/esm/y-axis-input-processor-08c89594.js +2290 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/vega-accordion/slimmers/vega-accordion-expand-controller.d.ts +14 -0
- package/dist/types/components/vega-accordion/slimmers/vega-accordion-renderer.d.ts +19 -0
- package/dist/types/components/vega-accordion/vega-accordion.d.ts +95 -0
- package/dist/types/components/vega-app-footer/types.d.ts +7 -0
- package/dist/types/components/vega-app-footer/vega-app-footer.d.ts +102 -0
- package/dist/types/components/vega-app-header-button/slimmers/renderers/vega-menu-arrow-icon-renderer.d.ts +6 -0
- package/dist/types/components/vega-app-header-button/types.d.ts +27 -0
- package/dist/types/components/vega-app-header-button/vega-app-header-button.d.ts +155 -0
- package/dist/types/components/vega-backdrop/slimmers/controller/vega-backdrop-visible-controller.d.ts +23 -0
- package/dist/types/components/vega-backdrop/slimmers/renerers/vega-backdrop-renderer.d.ts +9 -0
- package/dist/types/components/vega-backdrop/vega-backdrop.d.ts +41 -0
- package/dist/types/components/vega-banner/slimmers/controllers/vega-banner-icon-controller.d.ts +24 -0
- package/dist/types/components/vega-banner/slimmers/renderers/vega-banner-action-button-renderer.d.ts +22 -0
- package/dist/types/components/vega-banner/slimmers/renderers/vega-banner-renderer.d.ts +50 -0
- package/dist/types/components/vega-banner/types.d.ts +11 -0
- package/dist/types/components/vega-banner/vega-banner.d.ts +92 -0
- package/dist/types/components/vega-box/interface.d.ts +22 -0
- package/dist/types/components/vega-box/slimmers/controllers/vega-box-state-styles-controller.d.ts +53 -0
- package/dist/types/components/vega-box/vega-box.d.ts +231 -0
- package/dist/types/components/vega-breadcrumb/slimmers/controllers/vega-breadcrumb-click-controller.d.ts +26 -0
- package/dist/types/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-collapsed-item-renderer.d.ts +7 -0
- package/dist/types/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-item-renderer.d.ts +11 -0
- package/dist/types/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-renderer.d.ts +19 -0
- package/dist/types/components/vega-breadcrumb/types.d.ts +11 -0
- package/dist/types/components/vega-breadcrumb/vega-breadcrumb.d.ts +57 -0
- package/dist/types/components/vega-button/slimmers/renderers/vega-button-loading-renderer.d.ts +13 -0
- package/dist/types/components/vega-button/types.d.ts +4 -0
- package/dist/types/components/vega-button/vega-button.d.ts +129 -0
- package/dist/types/components/vega-button-circle/types.d.ts +9 -0
- package/dist/types/components/vega-button-circle/vega-button-circle.d.ts +120 -0
- package/dist/types/components/vega-button-group/slimmers/controllers/vega-button-group-click-controller.d.ts +15 -0
- package/dist/types/components/vega-button-group/types.d.ts +21 -0
- package/dist/types/components/vega-button-group/vega-button-group-item/slimmers/controllers/vega-button-group-item-sub-state-controller.d.ts +12 -0
- package/dist/types/components/vega-button-group/vega-button-group-item/slimmers/renderers/vega-button-group-item-renderer.d.ts +67 -0
- package/dist/types/components/vega-button-group/vega-button-group-item/vega-button-group-item.d.ts +58 -0
- package/dist/types/components/vega-button-group/vega-button-group.d.ts +60 -0
- package/dist/types/components/vega-button-link/vega-button-link.d.ts +113 -0
- package/dist/types/components/vega-calendar/icons/clock-three.d.ts +3 -0
- package/dist/types/components/vega-calendar/icons/ellipsis-vertical.d.ts +3 -0
- package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-current-period-controller.d.ts +53 -0
- package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-controller.d.ts +56 -0
- package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-responsive-controller.d.ts +25 -0
- package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-view-controller.d.ts +36 -0
- package/dist/types/components/vega-calendar/slimmers/common/helpers/calendar-event-sorter.d.ts +38 -0
- package/dist/types/components/vega-calendar/slimmers/common/helpers/repeat-pattern/base-repeat-pattern.d.ts +50 -0
- package/dist/types/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-daily-repeat-pattern.d.ts +43 -0
- package/dist/types/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-monthly-repeat-pattern.d.ts +55 -0
- package/dist/types/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-repeat-pattern-factory.d.ts +34 -0
- package/dist/types/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-weekly-repeat-pattern.d.ts +99 -0
- package/dist/types/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-yearly-repeat-pattern.d.ts +57 -0
- package/dist/types/components/vega-calendar/slimmers/common/helpers/test/calendar-event-repeat-pattern-factory.test.d.ts +1 -0
- package/dist/types/components/vega-calendar/slimmers/common/layout/base-event-layout-cell.d.ts +40 -0
- package/dist/types/components/vega-calendar/slimmers/common/layout/base-event-layout-generator.d.ts +16 -0
- package/dist/types/components/vega-calendar/slimmers/common/layout/base-event-layout.d.ts +11 -0
- package/dist/types/components/vega-calendar/slimmers/common/layout/full-day-event-layout-generator.d.ts +39 -0
- package/dist/types/components/vega-calendar/slimmers/common/layout/full-day-event-layout-row.d.ts +26 -0
- package/dist/types/components/vega-calendar/slimmers/common/layout/full-day-event-layout.d.ts +30 -0
- package/dist/types/components/vega-calendar/slimmers/common/layout/test/long-event-layout-generator.test.d.ts +1 -0
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.d.ts +24 -0
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-full-day-event-layout-renderer.d.ts +39 -0
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-renderer.d.ts +13 -0
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-switch-panel.d.ts +82 -0
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-view-renderer.d.ts +15 -0
- package/dist/types/components/vega-calendar/slimmers/day-view/renderers/full-day-event/vega-calendar-full-day-event-more-button-renderer.d.ts +23 -0
- package/dist/types/components/vega-calendar/slimmers/day-view/renderers/full-day-event/vega-calendar-full-day-event-renderer.d.ts +34 -0
- package/dist/types/components/vega-calendar/slimmers/day-view/renderers/timed-event/layout/day-view-timed-event-layout-column.d.ts +28 -0
- package/dist/types/components/vega-calendar/slimmers/day-view/renderers/timed-event/layout/day-view-timed-event-layout-generator.d.ts +20 -0
- package/dist/types/components/vega-calendar/slimmers/day-view/renderers/timed-event/layout/day-view-timed-event-layout.d.ts +20 -0
- package/dist/types/components/vega-calendar/slimmers/day-view/renderers/timed-event/layout/test/day-view-event-layout-generator.test.d.ts +1 -0
- package/dist/types/components/vega-calendar/slimmers/day-view/renderers/timed-event/vega-calendar-day-event-layout-renderer.d.ts +27 -0
- package/dist/types/components/vega-calendar/slimmers/day-view/renderers/timed-event/vega-calendar-timed-event-renderer.d.ts +23 -0
- package/dist/types/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-time-line-renderer.d.ts +67 -0
- package/dist/types/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-view-with-time-renderer.d.ts +45 -0
- package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.d.ts +66 -0
- package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.d.ts +52 -0
- package/dist/types/components/vega-calendar/types.d.ts +88 -0
- package/dist/types/components/vega-calendar/utils/index.d.ts +38 -0
- package/dist/types/components/vega-calendar/vega-calendar-event/slimmers/controllers/vega-calendar-event-bg-color-controller.d.ts +12 -0
- package/dist/types/components/vega-calendar/vega-calendar-event/slimmers/controllers/vega-calendar-event-slot-controller.d.ts +30 -0
- package/dist/types/components/vega-calendar/vega-calendar-event/slimmers/controllers/vega-calendar-event-title-max-height-controller.d.ts +13 -0
- package/dist/types/components/vega-calendar/vega-calendar-event/slimmers/controllers/vega-calendar-sub-state-controller.d.ts +11 -0
- package/dist/types/components/vega-calendar/vega-calendar-event/slimmers/renderers/vega-calendar-event-renderer.d.ts +88 -0
- package/dist/types/components/vega-calendar/vega-calendar-event/vega-calendar-event.d.ts +34 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-slot/vega-calendar-event-slot.d.ts +17 -0
- package/dist/types/components/vega-calendar/vega-calendar.d.ts +189 -0
- package/dist/types/components/vega-card/vega-card.d.ts +54 -0
- package/dist/types/components/vega-carousel/vega-carousel.d.ts +157 -0
- package/dist/types/components/vega-chart/vega-bar-chart/types.d.ts +4 -0
- package/dist/types/components/vega-chart/vega-bar-chart/vega-bar-chart.d.ts +27 -0
- package/dist/types/components/vega-chart/vega-line-chart/vega-line-chart.d.ts +38 -0
- package/dist/types/components/vega-chart/vega-pie-chart/vega-pie-chart.d.ts +38 -0
- package/dist/types/components/vega-checkbox/slimmers/controllers/vega-checkbox-show-error-controller.d.ts +29 -0
- package/dist/types/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.d.ts +136 -0
- package/dist/types/components/vega-checkbox/vega-checkbox.d.ts +152 -0
- package/dist/types/components/vega-chip/types.d.ts +4 -0
- package/dist/types/components/vega-chip/vega-chip.d.ts +164 -0
- package/dist/types/components/vega-color-picker/vega-color-picker.d.ts +106 -0
- package/dist/types/components/vega-combo-box/types.d.ts +9 -0
- package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +233 -0
- package/dist/types/components/vega-counter-badge/vega-counter-badge.d.ts +44 -0
- package/dist/types/components/vega-date-picker/assets/icons.d.ts +4 -0
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-controller.d.ts +110 -0
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-element-appender-controller.d.ts +12 -0
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-format-controller.d.ts +75 -0
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-keyboard-controller.d.ts +10 -0
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-mobile-controller.d.ts +18 -0
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-value-controller.d.ts +52 -0
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-zindex-controller.d.ts +15 -0
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +95 -0
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-range-input-renderer.d.ts +31 -0
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-renderer.d.ts +31 -0
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-single-input-renderer.d.ts +23 -0
- package/dist/types/components/vega-date-picker/types.d.ts +10 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +11 -0
- package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +213 -0
- package/dist/types/components/vega-dialog/types.d.ts +14 -0
- package/dist/types/components/vega-dialog/vega-dialog.d.ts +89 -0
- package/dist/types/components/vega-divider/interface.d.ts +6 -0
- package/dist/types/components/vega-divider/slimmers/controllers/vega-divider-size-controller.d.ts +26 -0
- package/dist/types/components/vega-divider/vega-divider.d.ts +43 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.d.ts +43 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-children-controller.d.ts +74 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-keyboard-conttroller.d.ts +28 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-remote-invocation-controller.d.ts +28 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-render-mode-controller.d.ts +29 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-scrollable-controller.d.ts +57 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-search-controller.d.ts +65 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-selected-controller.d.ts +99 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-source-controller.d.ts +33 -0
- package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-create-renderer.d.ts +13 -0
- package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-group-level-renderer.d.ts +8 -0
- package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-item-level-renderer.d.ts +13 -0
- package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.d.ts +29 -0
- package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-renderer.d.ts +32 -0
- package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-search-renderer.d.ts +20 -0
- package/dist/types/components/vega-dropdown/test/share.d.ts +12 -0
- package/dist/types/components/vega-dropdown/types.d.ts +23 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-content-box/vega-dropdown-content-box.d.ts +13 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-group/slimmers/renderers/vega-dropdown-group-renderer.d.ts +10 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-group/vega-dropdown-group.d.ts +26 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/slimmers/controllers/vega-dropdown-item-click-controller.d.ts +19 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/slimmers/controllers/vega-dropdown-item-state-controller.d.ts +14 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.d.ts +25 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/types.d.ts +1 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.d.ts +97 -0
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +385 -0
- package/dist/types/components/vega-field-error/slimmers/controllers/vega-field-error-message-controller.d.ts +19 -0
- package/dist/types/components/vega-field-error/types.d.ts +4 -0
- package/dist/types/components/vega-field-error/vega-field-error.d.ts +21 -0
- package/dist/types/components/vega-field-label/slimmers/renderers/vega-field-label-suffix-element-renderer.d.ts +27 -0
- package/dist/types/components/vega-field-label/types.d.ts +5 -0
- package/dist/types/components/vega-field-label/vega-field-label.d.ts +71 -0
- package/dist/types/components/vega-file-uploader/slimmers/controllers/vega-file-uploader-drop-file-filter-controller.d.ts +22 -0
- package/dist/types/components/vega-file-uploader/slimmers/controllers/vega-file-uploader-value-controller.d.ts +21 -0
- package/dist/types/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-container-renderer.d.ts +78 -0
- package/dist/types/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-file-list-renderer.d.ts +38 -0
- package/dist/types/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-file-status-renderer.d.ts +7 -0
- package/dist/types/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-renderer.d.ts +18 -0
- package/dist/types/components/vega-file-uploader/types.d.ts +15 -0
- package/dist/types/components/vega-file-uploader/vega-file-uploader.d.ts +181 -0
- package/dist/types/components/vega-flex/vega-flex.d.ts +107 -0
- package/dist/types/components/vega-font/slimmers/controllers/vega-font-as-controller.d.ts +23 -0
- package/dist/types/components/vega-font/slimmers/controllers/vega-font-classes-controller.d.ts +15 -0
- package/dist/types/components/vega-font/slimmers/controllers/vega-font-variant-controller.d.ts +13 -0
- package/dist/types/components/vega-font/slimmers/renderers/vega-font-renderer.d.ts +6 -0
- package/dist/types/components/vega-font/types.d.ts +18 -0
- package/dist/types/components/vega-font/vega-font.d.ts +64 -0
- package/dist/types/components/vega-form/types.d.ts +9 -0
- package/dist/types/components/vega-form/vega-form.d.ts +235 -0
- package/dist/types/components/vega-grid/vega-grid.d.ts +66 -0
- package/dist/types/components/vega-hint/vega-hint.d.ts +12 -0
- package/dist/types/components/vega-icon/vega-icon.d.ts +76 -0
- package/dist/types/components/vega-image-uploader/slimmers/controllers/vega-image-uploader-actions-visibility-controller.d.ts +14 -0
- package/dist/types/components/vega-image-uploader/slimmers/controllers/vega-image-uploader-input-controller.d.ts +15 -0
- package/dist/types/components/vega-image-uploader/slimmers/controllers/vega-image-uploader-preview-controller.d.ts +36 -0
- package/dist/types/components/vega-image-uploader/slimmers/controllers/vega-image-uploader-remove-controller.d.ts +18 -0
- package/dist/types/components/vega-image-uploader/slimmers/controllers/vega-image-uploader-value-controller.d.ts +18 -0
- package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-actions-renderer.d.ts +40 -0
- package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-default-content-renderer.d.ts +17 -0
- package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-input-renderer.d.ts +23 -0
- package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-preview-content-renderer.d.ts +13 -0
- package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-renderer.d.ts +30 -0
- package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-uploading-content-renderer.d.ts +15 -0
- package/dist/types/components/vega-image-uploader/types.d.ts +21 -0
- package/dist/types/components/vega-image-uploader/vega-image-uploader.d.ts +210 -0
- package/dist/types/components/vega-input/slimmers/controllers/vega-input-copy-paste-controller.d.ts +23 -0
- package/dist/types/components/vega-input/slimmers/controllers/vega-input-mask-config-controller.d.ts +59 -0
- package/dist/types/components/vega-input/slimmers/renderers/vega-input-prefix-slot-renderer.d.ts +16 -0
- package/dist/types/components/vega-input/types.d.ts +12 -0
- package/dist/types/components/vega-input/vega-input.d.ts +319 -0
- package/dist/types/components/vega-input-credit-card/assets/icons.d.ts +4 -0
- package/dist/types/components/vega-input-credit-card/test/share.d.ts +18 -0
- package/dist/types/components/vega-input-credit-card/vega-input-credit-card.d.ts +163 -0
- package/dist/types/components/vega-input-phone-number/assets/countries.d.ts +2 -0
- package/dist/types/components/vega-input-phone-number/assets/country-flags.d.ts +5 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ac.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ad.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ae.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/af.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ag.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ai.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/al.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/am.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ao.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ar.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/as.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/at.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/au.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/aw.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ax.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/az.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ba.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bb.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bd.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/be.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bf.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bg.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bh.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bi.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bj.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bl.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bm.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bn.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bo.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bq.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/br.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bs.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bt.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bw.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/by.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/bz.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ca.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/cc.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/cd.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/cf.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/cg.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ch.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ci.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ck.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/cl.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/cm.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/cn.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/co.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/cr.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/cu.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/cv.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/cw.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/cx.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/cy.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/cz.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/de.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/dj.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/dk.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/dm.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/do.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/dz.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ec.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ee.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/eg.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/eh.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/er.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/es.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/et.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/fi.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/fj.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/fk.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/fm.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/fo.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/fr.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ga.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gb.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gd.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ge.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gf.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gg.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gh.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gi.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gl.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gm.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gn.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gp.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gq.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gr.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gt.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gu.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gw.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/gy.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/hk.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/hn.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/hr.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ht.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/hu.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/id.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ie.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/il.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/im.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/in.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/io.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/iq.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ir.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/is.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/it.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/je.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/jm.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/jo.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/jp.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ke.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/kg.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/kh.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ki.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/km.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/kn.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/kp.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/kr.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/kw.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ky.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/kz.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/la.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/lb.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/lc.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/li.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/lk.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/lr.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ls.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/lt.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/lu.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/lv.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ly.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ma.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mc.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/md.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/me.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mf.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mg.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mh.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mk.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ml.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mm.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mn.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mo.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mp.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mq.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mr.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ms.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mt.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mu.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mv.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mw.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mx.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/my.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/mz.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/na.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/nc.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ne.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/nf.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ng.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ni.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/nl.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/no.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/np.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/nr.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/nu.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/nz.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/om.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/pa.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/pe.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/pf.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/pg.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ph.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/pk.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/pl.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/pm.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/pr.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ps.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/pt.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/pw.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/py.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/qa.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/re.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ro.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/rs.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ru.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/rw.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sa.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sb.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sc.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sd.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/se.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sg.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sh.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/si.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sj.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sk.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sl.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sm.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sn.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/so.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sr.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ss.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/st.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sv.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sx.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sy.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/sz.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ta.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/tc.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/td.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/tg.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/th.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/tj.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/tk.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/tl.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/tm.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/tn.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/to.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/tr.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/tt.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/tv.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/tw.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/tz.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ua.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ug.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/us.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/uy.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/uz.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/va.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/vc.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ve.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/vg.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/vi.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/vn.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/vu.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/wf.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ws.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/xk.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/ye.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/yt.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/za.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/zm.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/assets/flags/zw.d.ts +3 -0
- package/dist/types/components/vega-input-phone-number/slimmers/controllers/country-select-controller.d.ts +36 -0
- package/dist/types/components/vega-input-phone-number/slimmers/controllers/vega-input-phone-number-value-controller.d.ts +80 -0
- package/dist/types/components/vega-input-phone-number/slimmers/renderers/country-select-renderer.d.ts +77 -0
- package/dist/types/components/vega-input-phone-number/slimmers/renderers/phone-number-input-renderer.d.ts +37 -0
- package/dist/types/components/vega-input-phone-number/slimmers/renderers/vega-input-phone-number-renderer.d.ts +27 -0
- package/dist/types/components/vega-input-phone-number/types.d.ts +13 -0
- package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +143 -0
- package/dist/types/components/vega-input-range/slimmers/controllers/vega-input-range-value-controller.d.ts +40 -0
- package/dist/types/components/vega-input-range/slimmers/renderers/vega-input-range-clear-icon-renderer.d.ts +25 -0
- package/dist/types/components/vega-input-range/slimmers/renderers/vega-input-range-input-renderer.d.ts +64 -0
- package/dist/types/components/vega-input-range/slimmers/renderers/vega-input-range-renderer.d.ts +36 -0
- package/dist/types/components/vega-input-range/types.d.ts +5 -0
- package/dist/types/components/vega-input-range/vega-input-range.d.ts +169 -0
- package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-dropdown-controller.d.ts +21 -0
- package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-items-slot-controler.d.ts +19 -0
- package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-lazy-load-controller.d.ts +28 -0
- package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-source-controller.d.ts +29 -0
- package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-value-controller.d.ts +31 -0
- package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.d.ts +37 -0
- package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-renderer.d.ts +15 -0
- package/dist/types/components/vega-input-select/types.d.ts +36 -0
- package/dist/types/components/vega-input-select/vega-input-select.d.ts +217 -0
- package/dist/types/components/vega-item-toggle/types.d.ts +8 -0
- package/dist/types/components/vega-item-toggle/vega-item-toggle.d.ts +57 -0
- package/dist/types/components/vega-loader-wrapper/vega-loader-wrapper.d.ts +11 -0
- package/dist/types/components/vega-loading-indicator/types.d.ts +1 -0
- package/dist/types/components/vega-loading-indicator/vega-loading-indicator.d.ts +78 -0
- package/dist/types/components/vega-modal/slimmers/controllers/vega-nested-modal-controller.d.ts +17 -0
- package/dist/types/components/vega-modal/types.d.ts +2 -0
- package/dist/types/components/vega-modal/vega-modal.d.ts +294 -0
- package/dist/types/components/vega-nav/interface.d.ts +36 -0
- package/dist/types/components/vega-nav/slimmers/renderers/vega-nav-list-renderer.d.ts +12 -0
- package/dist/types/components/vega-nav/slimmers/vega-nav-observer-slimmer.d.ts +24 -0
- package/dist/types/components/vega-nav/vega-left-nav/assets/icons.d.ts +4 -0
- package/dist/types/components/vega-nav/vega-left-nav/internal/vega-left-nav-separator.d.ts +2 -0
- package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-auto-collapse-controller.d.ts +13 -0
- package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-controller.d.ts +27 -0
- package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-open-state-controller.d.ts +35 -0
- package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-zindex-controller.d.ts +13 -0
- package/dist/types/components/vega-nav/vega-left-nav/slimmers/renderers/vega-left-nav-footer-renderer.d.ts +10 -0
- package/dist/types/components/vega-nav/vega-left-nav/slimmers/renderers/vega-left-nav-header-renderer.d.ts +10 -0
- package/dist/types/components/vega-nav/vega-left-nav/vega-left-nav.d.ts +100 -0
- package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-controller.d.ts +11 -0
- package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/renderers/vega-left-nav-group-renderer.d.ts +16 -0
- package/dist/types/components/vega-nav/vega-left-nav-group/vega-left-nav-group.d.ts +37 -0
- package/dist/types/components/vega-nav/vega-left-nav-link/slimmers/controllers/vega-left-nav-link-controller.d.ts +17 -0
- package/dist/types/components/vega-nav/vega-left-nav-link/slimmers/renderers/vega-left-nav-link-renderer.d.ts +19 -0
- package/dist/types/components/vega-nav/vega-left-nav-link/vega-left-nav-link.d.ts +51 -0
- package/dist/types/components/vega-nav/vega-left-nav-section/slimmers/renderers/vega-left-nav-section-renderer.d.ts +9 -0
- package/dist/types/components/vega-nav/vega-left-nav-section/vega-left-nav-section.d.ts +34 -0
- package/dist/types/components/vega-nav/vega-nav-card/slimmers/controllers/vega-nav-card-max-height-controller.d.ts +13 -0
- package/dist/types/components/vega-nav/vega-nav-card/vega-nav-card.d.ts +40 -0
- package/dist/types/components/vega-page-notification/types.d.ts +10 -0
- package/dist/types/components/vega-page-notification/vega-page-notification-list/vega-page-notification-list.d.ts +11 -0
- package/dist/types/components/vega-page-notification/vega-page-notification.d.ts +80 -0
- package/dist/types/components/vega-pagination/internal/vega-pagination-current-page-label.d.ts +10 -0
- package/dist/types/components/vega-pagination/internal/vega-pagination-go-to.d.ts +9 -0
- package/dist/types/components/vega-pagination/internal/vega-pagination-page-selector.d.ts +9 -0
- package/dist/types/components/vega-pagination/internal/vega-pagination-page-size-selector.d.ts +10 -0
- package/dist/types/components/vega-pagination/types.d.ts +1 -0
- package/dist/types/components/vega-pagination/vega-pagination.d.ts +104 -0
- package/dist/types/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.d.ts +17 -0
- package/dist/types/components/vega-popover/slimmers/renderers/vega-popover-appender-renderer.d.ts +24 -0
- package/dist/types/components/vega-popover/vega-popover-content-box/vega-popover-content-box.d.ts +17 -0
- package/dist/types/components/vega-popover/vega-popover.d.ts +120 -0
- package/dist/types/components/vega-progress-tracker/vega-progress-tracker.d.ts +124 -0
- package/dist/types/components/vega-radio/slimmers/controllers/vega-radio-show-error-controller.d.ts +30 -0
- package/dist/types/components/vega-radio/vega-radio-group/slimmers/controllers/vega-radio-group-keyboard-controller.d.ts +26 -0
- package/dist/types/components/vega-radio/vega-radio-group/slimmers/controllers/vega-radio-group-radio-items-controller.d.ts +40 -0
- package/dist/types/components/vega-radio/vega-radio-group/slimmers/controllers/vega-radio-group-value-controller.d.ts +21 -0
- package/dist/types/components/vega-radio/vega-radio-group/vega-radio-group.d.ts +131 -0
- package/dist/types/components/vega-radio/vega-radio.d.ts +152 -0
- package/dist/types/components/vega-section-title/slimmers/renderers/vega-section-title-renderer.d.ts +16 -0
- package/dist/types/components/vega-section-title/vega-section-title.d.ts +41 -0
- package/dist/types/components/vega-segment-control/slimmers/controllers/vega-segment-control-selected-controller.d.ts +16 -0
- package/dist/types/components/vega-segment-control/slimmers/controllers/vega-segment-overflow-controller.d.ts +23 -0
- package/dist/types/components/vega-segment-control/slimmers/renderers/vega-segment-control-renderer.d.ts +7 -0
- package/dist/types/components/vega-segment-control/slimmers/renderers/vega-segment-renderer.d.ts +20 -0
- package/dist/types/components/vega-segment-control/types.d.ts +8 -0
- package/dist/types/components/vega-segment-control/vega-segment-control.d.ts +91 -0
- package/dist/types/components/vega-selection-chip/interface.d.ts +4 -0
- package/dist/types/components/vega-selection-chip/slimmers/controllers/vega-selection-chip-checked-cotroller.d.ts +23 -0
- package/dist/types/components/vega-selection-chip/slimmers/controllers/vega-selection-chip-show-error-controller.d.ts +31 -0
- package/dist/types/components/vega-selection-chip/slimmers/controllers/vega-selection-chip-state-controller.d.ts +13 -0
- package/dist/types/components/vega-selection-chip/slimmers/renderers/vega-selection-chip-renderer.d.ts +26 -0
- package/dist/types/components/vega-selection-chip/vega-selection-chip-group/interface.d.ts +1 -0
- package/dist/types/components/vega-selection-chip/vega-selection-chip-group/slimmers/controllers/vega-selection-chip-group-items-controller.d.ts +72 -0
- package/dist/types/components/vega-selection-chip/vega-selection-chip-group/slimmers/controllers/vega-selection-chip-group-value-controller.d.ts +29 -0
- package/dist/types/components/vega-selection-chip/vega-selection-chip-group/slimmers/renderers/vega-selection-chip-group-renderer.d.ts +15 -0
- package/dist/types/components/vega-selection-chip/vega-selection-chip-group/vega-selection-chip-group.d.ts +104 -0
- package/dist/types/components/vega-selection-chip/vega-selection-chip.d.ts +115 -0
- package/dist/types/components/vega-selection-tile/interface.d.ts +4 -0
- package/dist/types/components/vega-selection-tile/slimmers/controllers/vega-selection-tile-checked-cotroller.d.ts +28 -0
- package/dist/types/components/vega-selection-tile/slimmers/controllers/vega-selection-tile-show-error-controller.d.ts +32 -0
- package/dist/types/components/vega-selection-tile/slimmers/controllers/vega-selection-tile-state-controller.d.ts +15 -0
- package/dist/types/components/vega-selection-tile/slimmers/renderers/vega-selection-tile-renderer.d.ts +24 -0
- package/dist/types/components/vega-selection-tile/vega-selection-tile-group/slimmers/controllers/vega-selection-tile-group-items-controller.d.ts +34 -0
- package/dist/types/components/vega-selection-tile/vega-selection-tile-group/slimmers/controllers/vega-selection-tile-group-value-controller.d.ts +56 -0
- package/dist/types/components/vega-selection-tile/vega-selection-tile-group/slimmers/renderers/vega-selection-tile-group-renderer.d.ts +18 -0
- package/dist/types/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.d.ts +117 -0
- package/dist/types/components/vega-selection-tile/vega-selection-tile.d.ts +96 -0
- package/dist/types/components/vega-signature-capture/assets/icons.d.ts +4 -0
- package/dist/types/components/vega-signature-capture/slimmers/renderers/vega-signature-capture-renderer.d.ts +7 -0
- package/dist/types/components/vega-signature-capture/slimmers/written-mode/controllers/written-mode-svg-controller.d.ts +89 -0
- package/dist/types/components/vega-signature-capture/slimmers/written-mode/renderers/written-mode-renderer.d.ts +29 -0
- package/dist/types/components/vega-signature-capture/types.d.ts +5 -0
- package/dist/types/components/vega-signature-capture/vega-signature-capture.d.ts +138 -0
- package/dist/types/components/vega-skeleton/interface.d.ts +5 -0
- package/dist/types/components/vega-skeleton/slimmers/renderers/vega-skeleton-ellipse-renderer.d.ts +12 -0
- package/dist/types/components/vega-skeleton/slimmers/renderers/vega-skeleton-full-width-paragraph-renderer.d.ts +11 -0
- package/dist/types/components/vega-skeleton/slimmers/renderers/vega-skeleton-image-renderer.d.ts +12 -0
- package/dist/types/components/vega-skeleton/slimmers/renderers/vega-skeleton-paragraph-renderer.d.ts +12 -0
- package/dist/types/components/vega-skeleton/slimmers/renderers/vega-skeleton-renderer-base.abstract.d.ts +13 -0
- package/dist/types/components/vega-skeleton/slimmers/renderers/vega-skeleton-renderer-manager.d.ts +21 -0
- package/dist/types/components/vega-skeleton/slimmers/renderers/vega-skeleton-table-renderer.d.ts +14 -0
- package/dist/types/components/vega-skeleton/slimmers/renderers/vega-skeleton-text-renderer.d.ts +11 -0
- package/dist/types/components/vega-skeleton/vega-skeleton.d.ts +52 -0
- package/dist/types/components/vega-slot-container/vega-slot-container.d.ts +11 -0
- package/dist/types/components/vega-stepper/vega-stepper.d.ts +128 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-page-index-controller.d.ts +31 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-pages-controller.d.ts +83 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-panel-controller.d.ts +57 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-selected-target-controller.d.ts +19 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-slider-state-controller.d.ts +50 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-close-button-renderer.d.ts +10 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-content-renderer.d.ts +6 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-direction-button-renderer.d.ts +18 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-renderer.d.ts +16 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.d.ts +26 -0
- package/dist/types/components/vega-tab-group/types.d.ts +19 -0
- package/dist/types/components/vega-tab-group/vega-tab-group-panel/vega-tab-group-panel.d.ts +34 -0
- package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +131 -0
- package/dist/types/components/vega-table/interface.d.ts +221 -0
- package/dist/types/components/vega-table/internal/vega-table-scrollable-container.d.ts +8 -0
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-children-controller.d.ts +62 -0
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-data-source-controller.d.ts +90 -0
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-editable-controller.d.ts +114 -0
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-expand-row-controller.d.ts +93 -0
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-pagination-controller.d.ts +37 -0
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-render-mode-controller.d.ts +34 -0
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-row-selection-controller.d.ts +160 -0
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-sort-controller.d.ts +37 -0
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-sorter.d.ts +33 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-body-renderer.d.ts +18 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-cell-renderer.d.ts +25 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-col-group-renderer.d.ts +10 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-header-renderer.d.ts +12 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-pagination-renderer.d.ts +24 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-renderer.d.ts +24 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-row-renderer.d.ts +12 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-scroll-container-renderer.d.ts +10 -0
- package/dist/types/components/vega-table/test/utils.d.ts +9 -0
- package/dist/types/components/vega-table/test/vega-table-sorter.test.d.ts +1 -0
- package/dist/types/components/vega-table/type-guard.d.ts +14 -0
- package/dist/types/components/vega-table/utils.d.ts +25 -0
- package/dist/types/components/vega-table/vega-table-body/vega-table-body.d.ts +13 -0
- package/dist/types/components/vega-table/vega-table-cell/slimmers/controllers/vega-table-cell-state-controller.d.ts +9 -0
- package/dist/types/components/vega-table/vega-table-cell/vega-table-cell.d.ts +52 -0
- package/dist/types/components/vega-table/vega-table-expand-row/slimmers/controllers/vega-table-expand-row-col-span-controller.d.ts +32 -0
- package/dist/types/components/vega-table/vega-table-expand-row/slimmers/controllers/vega-table-expand-row-expand-controller.d.ts +26 -0
- package/dist/types/components/vega-table/vega-table-expand-row/slimmers/controllers/vega-table-expand-row-selection-controller.d.ts +19 -0
- package/dist/types/components/vega-table/vega-table-expand-row/slimmers/controllers/vega-table-expand-row-state-controller.d.ts +12 -0
- package/dist/types/components/vega-table/vega-table-expand-row/slimmers/renderers/vega-table-expand-row-renderer.d.ts +9 -0
- package/dist/types/components/vega-table/vega-table-expand-row/types.d.ts +3 -0
- package/dist/types/components/vega-table/vega-table-expand-row/vega-table-expand-row.d.ts +49 -0
- package/dist/types/components/vega-table/vega-table-head/slimmers/controllers/vega-table-head-state-controller.d.ts +10 -0
- package/dist/types/components/vega-table/vega-table-head/types.d.ts +4 -0
- package/dist/types/components/vega-table/vega-table-head/vega-table-head.d.ts +22 -0
- package/dist/types/components/vega-table/vega-table-head-cell/slimmers/controllers/vega-table-head-cell-state-controller.d.ts +9 -0
- package/dist/types/components/vega-table/vega-table-head-cell/slimmers/renderers/sort-icon-renderer.d.ts +8 -0
- package/dist/types/components/vega-table/vega-table-head-cell/vega-table-head-cell.d.ts +80 -0
- package/dist/types/components/vega-table/vega-table-head-row/slimmers/controllers/vega-table-head-row-controller.d.ts +22 -0
- package/dist/types/components/vega-table/vega-table-head-row/slimmers/controllers/vega-table-head-row-state-controller.d.ts +22 -0
- package/dist/types/components/vega-table/vega-table-head-row/slimmers/renderers/vega-table-head-row-renderer.d.ts +30 -0
- package/dist/types/components/vega-table/vega-table-head-row/types.d.ts +5 -0
- package/dist/types/components/vega-table/vega-table-head-row/vega-table-head-row.d.ts +70 -0
- package/dist/types/components/vega-table/vega-table-row/slimmers/controllers/vega-table-row-click-controller.d.ts +33 -0
- package/dist/types/components/vega-table/vega-table-row/slimmers/controllers/vega-table-row-expand-controller.d.ts +29 -0
- package/dist/types/components/vega-table/vega-table-row/slimmers/controllers/vega-table-row-selection-controller.d.ts +37 -0
- package/dist/types/components/vega-table/vega-table-row/slimmers/controllers/vega-table-row-state-controller.d.ts +30 -0
- package/dist/types/components/vega-table/vega-table-row/slimmers/renderers/vega-table-row-renderer.d.ts +31 -0
- package/dist/types/components/vega-table/vega-table-row/types.d.ts +7 -0
- package/dist/types/components/vega-table/vega-table-row/vega-table-row.d.ts +104 -0
- package/dist/types/components/vega-table/vega-table.d.ts +500 -0
- package/dist/types/components/vega-text/slimmers/renderers/vega-text-tooltip-renderer.d.ts +63 -0
- package/dist/types/components/vega-text/types.d.ts +3 -0
- package/dist/types/components/vega-text/vega-text.d.ts +34 -0
- package/dist/types/components/vega-textarea/vega-textarea.d.ts +167 -0
- package/dist/types/components/vega-time-picker/slimmers/controllers/vega-time-picker-dropdown-selected-items-controller.d.ts +78 -0
- package/dist/types/components/vega-time-picker/slimmers/controllers/vega-time-picker-input-mask-controller.d.ts +13 -0
- package/dist/types/components/vega-time-picker/slimmers/controllers/vega-time-picker-keyboard-controller.d.ts +28 -0
- package/dist/types/components/vega-time-picker/slimmers/controllers/vega-time-picker-range-dropdown-controller.d.ts +29 -0
- package/dist/types/components/vega-time-picker/slimmers/controllers/vega-time-picker-single-dropdown-controller.d.ts +56 -0
- package/dist/types/components/vega-time-picker/slimmers/controllers/vega-time-picker-value-controller.d.ts +82 -0
- package/dist/types/components/vega-time-picker/slimmers/renderers/vega-time-picker-label-renderer.d.ts +16 -0
- package/dist/types/components/vega-time-picker/slimmers/renderers/vega-time-picker-range-clear-button-renderer.d.ts +18 -0
- package/dist/types/components/vega-time-picker/slimmers/renderers/vega-time-picker-range-dropdown-renderer.d.ts +70 -0
- package/dist/types/components/vega-time-picker/slimmers/renderers/vega-time-picker-range-input-renderer.d.ts +57 -0
- package/dist/types/components/vega-time-picker/slimmers/renderers/vega-time-picker-single-dropdown-renderer.d.ts +46 -0
- package/dist/types/components/vega-time-picker/slimmers/renderers/vega-time-picker-single-input-renderer.d.ts +43 -0
- package/dist/types/components/vega-time-picker/types.d.ts +21 -0
- package/dist/types/components/vega-time-picker/vega-time-picker-dropdown/vega-time-picker-dropdown.d.ts +11 -0
- package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +179 -0
- package/dist/types/components/vega-toggle-switch/vega-toggle-switch.d.ts +103 -0
- package/dist/types/components/vega-tooltip/slimmers/controllers/vega-tooltip-element-appender-controller.d.ts +30 -0
- package/dist/types/components/vega-tooltip/slimmers/renderers/vega-tooltip-content-box-renderer.d.ts +7 -0
- package/dist/types/components/vega-tooltip/vega-tooltip-content-box/vega-tooltip-content-box.d.ts +17 -0
- package/dist/types/components/vega-tooltip/vega-tooltip.d.ts +105 -0
- package/dist/types/components/vega-virtual-scroll/slimmers/controllers/vega-virtual-scroll-mode-controller.d.ts +34 -0
- package/dist/types/components/vega-virtual-scroll/slimmers/controllers/vega-virtual-scroll-position-controller.d.ts +88 -0
- package/dist/types/components/vega-virtual-scroll/slimmers/controllers/vega-virtual-scroll-scrollable-controller.d.ts +97 -0
- package/dist/types/components/vega-virtual-scroll/slimmers/renderers/vega-virtual-scroll-loading-indicator-renderer.d.ts +10 -0
- package/dist/types/components/vega-virtual-scroll/slimmers/renderers/vega-virtual-scroll-renderer.d.ts +16 -0
- package/dist/types/components/vega-virtual-scroll/types.d.ts +14 -0
- package/dist/types/components/vega-virtual-scroll/vega-virtual-scroll.d.ts +76 -0
- package/dist/types/components.d.ts +8916 -0
- package/dist/types/constants/card-config.d.ts +8 -0
- package/dist/types/constants/locale.d.ts +5 -0
- package/dist/types/constants/misc.d.ts +6 -0
- package/dist/types/constants/public-api.d.ts +9 -0
- package/dist/types/constants/regex.d.ts +6 -0
- package/dist/types/constants/runtime-metrics-payload-definition/public-api/IconManager/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/public-api/ThemeManager/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/public-api/VegaDialogController/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/public-api/VegaEventManager/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/public-api/VegaLoaderController/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/public-api/VegaNotifyController/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/public-api/VegaSkeletonLoader/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/public-api/VegaTranslation/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/public-api/WaitForVegaHandler/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/public-api/zindex-manager/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-button-circle/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-button-group/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-button-link/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-card/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-carousel/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-chip/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-color-picker/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-combo-box/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-date-picker/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-dropdown/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-flex/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-font/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-image-uploader/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-input/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-input-credit-card/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-input-select/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-item-toggle/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-left-nav/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-loading-indicator/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-modal/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-nav-card/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-progress-tracker/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-stepper/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-tab-group/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-table/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-textarea/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-time-picker/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/runtime-metrics-payload-definition/vega-tooltip/runtime-metrics-payload-definition.d.ts +2 -0
- package/dist/types/constants/tests/validator.test.d.ts +1 -0
- package/dist/types/constants/tokens/border-radius.d.ts +3 -0
- package/dist/types/constants/tokens/borders.d.ts +4 -0
- package/dist/types/constants/tokens/breakpoints.d.ts +3 -0
- package/dist/types/constants/tokens/colors-mapping.d.ts +6 -0
- package/dist/types/constants/tokens/colors.d.ts +193 -0
- package/dist/types/constants/tokens/icons.d.ts +2 -0
- package/dist/types/constants/tokens/overridable-border-tokens.d.ts +31 -0
- package/dist/types/constants/tokens/overridable-color-tokens.d.ts +31 -0
- package/dist/types/constants/tokens/overridable-ring-tokens.d.ts +31 -0
- package/dist/types/constants/tokens/rings.d.ts +1 -0
- package/dist/types/constants/tokens/shadows.d.ts +4 -0
- package/dist/types/constants/tokens/spacing.d.ts +3 -0
- package/dist/types/constants/tokens/tailwind.extend.d.ts +27 -0
- package/dist/types/constants/tokens/themes/dark-mode-border-tokens.d.ts +1 -0
- package/dist/types/constants/tokens/themes/dark-mode-color-tokens.d.ts +1 -0
- package/dist/types/constants/tokens/themes/dark-mode-ring-tokens.d.ts +1 -0
- package/dist/types/constants/tokens/themes/dark-mode-shadow-tokens.d.ts +1 -0
- package/dist/types/constants/tokens/typography.d.ts +10 -0
- package/dist/types/constants/ui.d.ts +16 -0
- package/dist/types/constants/validator.d.ts +5 -0
- package/dist/types/decorators/method-decorators/component-load-required.d.ts +9 -0
- package/dist/types/decorators/method-decorators/tests/component-load-required.test.d.ts +1 -0
- package/dist/types/decorators/property-decorators/inject-element-appender.d.ts +24 -0
- package/dist/types/decorators/property-decorators/inject-keyboard-manager.d.ts +12 -0
- package/dist/types/decorators/property-decorators/tests/inject-element-appender-proxy.test.d.ts +1 -0
- package/dist/types/decorators/property-decorators/tests/inject-keyboard-manager.test.d.ts +1 -0
- package/dist/types/global/icons/arrow-rotate-right.d.ts +3 -0
- package/dist/types/global/icons/arrow-up-arrow-down.d.ts +3 -0
- package/dist/types/global/icons/arrow-up-from-line.d.ts +3 -0
- package/dist/types/global/icons/chevron-down.d.ts +3 -0
- package/dist/types/global/icons/chevron-left.d.ts +3 -0
- package/dist/types/global/icons/chevron-right.d.ts +3 -0
- package/dist/types/global/icons/chevron-up.d.ts +3 -0
- package/dist/types/global/icons/circle-arrow-down.d.ts +3 -0
- package/dist/types/global/icons/circle-arrow-up.d.ts +3 -0
- package/dist/types/global/icons/circle-check-regular.d.ts +3 -0
- package/dist/types/global/icons/circle-check.d.ts +3 -0
- package/dist/types/global/icons/circle-info.d.ts +3 -0
- package/dist/types/global/icons/circle-question.d.ts +3 -0
- package/dist/types/global/icons/circle-xmark.d.ts +3 -0
- package/dist/types/global/icons/trash-can.d.ts +3 -0
- package/dist/types/global/icons/triangle-exclamation.d.ts +3 -0
- package/dist/types/global/icons/xmark-large.d.ts +3 -0
- package/dist/types/global/scripts/before-vega-load.d.ts +5 -0
- package/dist/types/global/tests/before-vega-load.test.d.ts +1 -0
- package/dist/types/helpers/calendar/calendar-date.d.ts +69 -0
- package/dist/types/helpers/calendar/calendar-event.d.ts +182 -0
- package/dist/types/helpers/calendar/calendar-period/calendar-period.abstract.d.ts +88 -0
- package/dist/types/helpers/calendar/calendar-period/day-period.d.ts +29 -0
- package/dist/types/helpers/calendar/calendar-period/month-period.d.ts +34 -0
- package/dist/types/helpers/calendar/calendar-period/week-period.d.ts +23 -0
- package/dist/types/helpers/calendar/calendar-view-generator/calendar-view-generator.abstract.d.ts +35 -0
- package/dist/types/helpers/calendar/calendar-view-generator/day-view-generator.d.ts +12 -0
- package/dist/types/helpers/calendar/calendar-view-generator/month-view-generator.d.ts +12 -0
- package/dist/types/helpers/calendar/calendar-view-generator/week-view-generator.d.ts +12 -0
- package/dist/types/helpers/calendar/calendar-view.d.ts +21 -0
- package/dist/types/helpers/calendar/index.d.ts +10 -0
- package/dist/types/helpers/calendar/test/calendar-date.test.d.ts +1 -0
- package/dist/types/helpers/calendar/test/calendar-event.test.d.ts +1 -0
- package/dist/types/helpers/calendar/test/calendar-period/day-period.test.d.ts +1 -0
- package/dist/types/helpers/calendar/test/calendar-period/month-period.test.d.ts +1 -0
- package/dist/types/helpers/calendar/test/calendar-period/week-period.test.d.ts +1 -0
- package/dist/types/helpers/calendar/test/calendar-view-generator/day-view-generator.test.d.ts +1 -0
- package/dist/types/helpers/calendar/test/calendar-view-generator/month-view-generator.test.d.ts +1 -0
- package/dist/types/helpers/calendar/test/calendar-view-generator/week-view-generator.test.d.ts +1 -0
- package/dist/types/helpers/calendar/test/calendar-view.test.d.ts +1 -0
- package/dist/types/helpers/calendar/test/index.test.d.ts +1 -0
- package/dist/types/helpers/calendar/test/utils.test.d.ts +1 -0
- package/dist/types/helpers/calendar/utils.d.ts +7 -0
- package/dist/types/helpers/change-manager/change-manager.d.ts +43 -0
- package/dist/types/helpers/change-manager/observer/observer.d.ts +23 -0
- package/dist/types/helpers/change-manager/subject/dom-node-subject/dom-node-subject-factory.d.ts +41 -0
- package/dist/types/helpers/change-manager/subject/dom-node-subject/dom-node-subject-observer-factory.d.ts +20 -0
- package/dist/types/helpers/change-manager/subject/dom-node-subject/dom-node-subject.d.ts +22 -0
- package/dist/types/helpers/change-manager/subject/static-subject/static-subject-title.d.ts +27 -0
- package/dist/types/helpers/change-manager/subject/static-subject/static-subject.d.ts +20 -0
- package/dist/types/helpers/change-manager/subject/subject-interface.d.ts +3 -0
- package/dist/types/helpers/change-manager/test/change-manager.test.d.ts +1 -0
- package/dist/types/helpers/change-manager/test/dom-node-subject-factory.test.d.ts +1 -0
- package/dist/types/helpers/chart/bar-chart.d.ts +30 -0
- package/dist/types/helpers/chart/base-chart.d.ts +61 -0
- package/dist/types/helpers/chart/controllers/chart-dimension-controller.d.ts +80 -0
- package/dist/types/helpers/chart/drawers/arc-path-drawer.d.ts +21 -0
- package/dist/types/helpers/chart/drawers/base-drawer.d.ts +54 -0
- package/dist/types/helpers/chart/drawers/legend-drawer.d.ts +49 -0
- package/dist/types/helpers/chart/drawers/line-drawer.d.ts +11 -0
- package/dist/types/helpers/chart/drawers/path-drawer.d.ts +11 -0
- package/dist/types/helpers/chart/drawers/rect-drawer.d.ts +11 -0
- package/dist/types/helpers/chart/drawers/text-drawer.d.ts +18 -0
- package/dist/types/helpers/chart/drawers/x-axis-drawer.d.ts +13 -0
- package/dist/types/helpers/chart/drawers/y-axis-drawer.d.ts +11 -0
- package/dist/types/helpers/chart/graph-context-factory.d.ts +12 -0
- package/dist/types/helpers/chart/input-processors/format-time-positions-input-processor.d.ts +20 -0
- package/dist/types/helpers/chart/input-processors/horizontal-x-axis-input-processor.d.ts +20 -0
- package/dist/types/helpers/chart/input-processors/horizontal-y-axis-input-processor.d.ts +19 -0
- package/dist/types/helpers/chart/input-processors/input-processor.d.ts +3 -0
- package/dist/types/helpers/chart/input-processors/layout-input-processor.d.ts +23 -0
- package/dist/types/helpers/chart/input-processors/legend-input-processor.d.ts +24 -0
- package/dist/types/helpers/chart/input-processors/line-path-input-processor.d.ts +32 -0
- package/dist/types/helpers/chart/input-processors/pie-chart-arc-path-input-processor.d.ts +15 -0
- package/dist/types/helpers/chart/input-processors/pie-chart-filter-input-processor.d.ts +15 -0
- package/dist/types/helpers/chart/input-processors/pie-chart-radius-input-processor.d.ts +25 -0
- package/dist/types/helpers/chart/input-processors/pie-chart-text-input-processor.d.ts +14 -0
- package/dist/types/helpers/chart/input-processors/processor-chain.d.ts +22 -0
- package/dist/types/helpers/chart/input-processors/sort-positions-input-processor.d.ts +16 -0
- package/dist/types/helpers/chart/input-processors/x-axis-input-processor.d.ts +29 -0
- package/dist/types/helpers/chart/input-processors/x-axis-label-formatter-input-processor.d.ts +37 -0
- package/dist/types/helpers/chart/input-processors/y-axis-input-processor.d.ts +31 -0
- package/dist/types/helpers/chart/interacting-entry-generator/arc-path-hover-generator.d.ts +38 -0
- package/dist/types/helpers/chart/interacting-entry-generator/interacting-entry-generator.d.ts +17 -0
- package/dist/types/helpers/chart/interacting-entry-generator/pie-legend-hover-generator.d.ts +42 -0
- package/dist/types/helpers/chart/interactors/base-interactor.d.ts +54 -0
- package/dist/types/helpers/chart/interactors/canvas-interactor.d.ts +6 -0
- package/dist/types/helpers/chart/interactors/interactor-factory.d.ts +15 -0
- package/dist/types/helpers/chart/interactors/svg-interactor.d.ts +19 -0
- package/dist/types/helpers/chart/line-chart.d.ts +27 -0
- package/dist/types/helpers/chart/pie-chart.d.ts +26 -0
- package/dist/types/helpers/chart/renderers/base-renderer.d.ts +27 -0
- package/dist/types/helpers/chart/renderers/canvas-renderer.d.ts +137 -0
- package/dist/types/helpers/chart/renderers/renderer-factory.d.ts +14 -0
- package/dist/types/helpers/chart/renderers/svg-renderer.d.ts +144 -0
- package/dist/types/helpers/chart/test/controllers/chart-dimension-controller.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/drawers/arc-path-drawer.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/drawers/legend-drawer.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/drawers/line-drawer.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/drawers/path-drawer.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/drawers/rect-drawer.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/drawers/text-drawer.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/drawers/x-axis-drawer.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/drawers/y-axis-drawer.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/graph-context-factory.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/input-processors/format-time-positions-input-processor.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/input-processors/horizontal-x-axis-input-processor.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/input-processors/horizontal-y-axis-input-processor.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/input-processors/layout-input-processor.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/input-processors/line-path-input-processor.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/input-processors/pie-chart-filter-input-processor.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/input-processors/pie-chart-radius-input-processor.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/input-processors/sort-positions-input-processor.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/input-processors/x-axis-input-processor.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/input-processors/x-axis-label-formatter-input-processor.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/input-processors/y-axis-input-processor.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/interacting-entry-generator/arc-path-hover-generator.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/interacting-entry-generator/pie-legend-hover-generator.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/interactors/interactor-factory.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/interactors/svg-interactor.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/line-chart.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/pie-chart.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/renderers/canvas-renderer.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/renderers/renderer-factory.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/renderers/svg-renderer.test.d.ts +1 -0
- package/dist/types/helpers/common/index.d.ts +7 -0
- package/dist/types/helpers/common/test/common.test.d.ts +1 -0
- package/dist/types/helpers/common/test/wait-for-vega-handler.test.d.ts +1 -0
- package/dist/types/helpers/common/wait-for-vega-handler.d.ts +19 -0
- package/dist/types/helpers/dialog/test/vega-dialog-controller.test.d.ts +1 -0
- package/dist/types/helpers/dialog/vega-dialog-controller.d.ts +30 -0
- package/dist/types/helpers/event-manager/event-delegated/base-strategy.d.ts +60 -0
- package/dist/types/helpers/event-manager/event-delegated/jquery-delegated-event-strategy.d.ts +7 -0
- package/dist/types/helpers/event-manager/event-delegated/jquery-delegated-strategy-controller.d.ts +44 -0
- package/dist/types/helpers/event-manager/event-delegated/vega-button-click-strategy.d.ts +16 -0
- package/dist/types/helpers/event-manager/event-delegated/vega-checkbox-change-strategy.d.ts +15 -0
- package/dist/types/helpers/event-manager/event-delegated/vega-input-select-change-strategy.d.ts +15 -0
- package/dist/types/helpers/event-manager/event-delegated/vega-input-strategy.d.ts +23 -0
- package/dist/types/helpers/event-manager/event-delegated/vega-radio-change-strategy.d.ts +15 -0
- package/dist/types/helpers/event-manager/event-delegated/vega-textarea-change-strategy.d.ts +14 -0
- package/dist/types/helpers/event-manager/event-id/component-event-id-map.d.ts +3 -0
- package/dist/types/helpers/event-manager/event-id/vega-event-id-interface.d.ts +3 -0
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +92 -0
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +31 -0
- package/dist/types/helpers/event-manager/internal-vega-event-manager.d.ts +63 -0
- package/dist/types/helpers/event-manager/slimmers/child-nodes-event-prevent-slimmer.d.ts +86 -0
- package/dist/types/helpers/event-manager/slimmers/child-nodes-notify-observer-slimmer.d.ts +47 -0
- package/dist/types/helpers/event-manager/slimmers/event-emit-handlers/event-emit-handler.d.ts +7 -0
- package/dist/types/helpers/event-manager/slimmers/event-emit-handlers/jquery-delegated-event-emit-handler.d.ts +33 -0
- package/dist/types/helpers/event-manager/slimmers/event-emit-handlers/native-event-emit-handler.d.ts +25 -0
- package/dist/types/helpers/event-manager/slimmers/event-emit-handlers/vega-event-emit-handler.d.ts +25 -0
- package/dist/types/helpers/event-manager/slimmers/event-emit-slimmer.d.ts +63 -0
- package/dist/types/helpers/event-manager/test/child-nodes-event-prevent-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/event-manager/test/child-nodes-notify-observer-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/event-manager/test/component-event-id-map.test.d.ts +1 -0
- package/dist/types/helpers/event-manager/test/event-emit-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/event-manager/test/internal-vega-event-manager.test.d.ts +1 -0
- package/dist/types/helpers/event-manager/test/jquery-delegated-strategy-controller.test.d.ts +1 -0
- package/dist/types/helpers/event-manager/test/vega-event-id.test.d.ts +1 -0
- package/dist/types/helpers/event-manager/test/vega-event-manager.test.d.ts +1 -0
- package/dist/types/helpers/event-manager/vega-event-manager.d.ts +43 -0
- package/dist/types/helpers/feature-control/feature-flag-controller.d.ts +82 -0
- package/dist/types/helpers/feature-control/feature-flag.d.ts +53 -0
- package/dist/types/helpers/feature-control/feature-flags-map.d.ts +3 -0
- package/dist/types/helpers/feature-control/tests/feature-flag-controller.test.d.ts +1 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsiv-border-radius-formatter.d.ts +27 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-box-display-formatter.d.ts +19 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-class-string-formatter.d.ts +17 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-custom-formatter.d.ts +20 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-display-formatter.d.ts +19 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-flex-align-item-formatter.d.ts +19 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-flex-direction-formatter.d.ts +19 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-flex-justify-content-formatter.d.ts +31 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-flex-wrap-formatter.d.ts +19 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-format-facade.d.ts +31 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-formatter.d.ts +5 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-gap-formatter.d.ts +19 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-grid-columns-formatter.d.ts +19 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-grid-rows-formatter.d.ts +19 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-margin-formatter.d.ts +19 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-padding-formatter.d.ts +19 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-size-formatter.d.ts +18 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-text-align-formatter.d.ts +19 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-translocation-formatter.d.ts +19 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-width-and-height-formatter.d.ts +21 -0
- package/dist/types/helpers/formatter/state-formatter/state-background-color-formatter.d.ts +32 -0
- package/dist/types/helpers/formatter/state-formatter/state-border-color-formatter.d.ts +31 -0
- package/dist/types/helpers/formatter/state-formatter/state-border-formatter.d.ts +33 -0
- package/dist/types/helpers/formatter/state-formatter/state-format-facade.d.ts +27 -0
- package/dist/types/helpers/formatter/state-formatter/state-formatter.d.ts +3 -0
- package/dist/types/helpers/formatter/state-formatter/state-shadow-formatter.d.ts +28 -0
- package/dist/types/helpers/formatter/state-formatter/state-variant-formatter.d.ts +23 -0
- package/dist/types/helpers/formatter/string-formatter/custom-formatter-strategy.d.ts +47 -0
- package/dist/types/helpers/formatter/string-formatter/number-mask-strategy.d.ts +76 -0
- package/dist/types/helpers/formatter/string-formatter/number-thousand-comma-strategy.d.ts +34 -0
- package/dist/types/helpers/formatter/string-formatter/string-format-strategy.d.ts +12 -0
- package/dist/types/helpers/formatter/string-formatter/string-mask-strategy.d.ts +94 -0
- package/dist/types/helpers/formatter/string-formatter/thousand-comma-strategy.d.ts +23 -0
- package/dist/types/helpers/formatter/style-formatter.d.ts +14 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-border-radius-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-box-display-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-custom-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-display-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-flex-direction-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-flex-wrap-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-format-mediator.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-gap-formatter.ts.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-grid-column-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-grid-row-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-margin-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-padding-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-size-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-text-align-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-translocation-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-width-and-height-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/state-formatter/state-background-color-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/state-formatter/state-border-color-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/state-formatter/state-border-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/state-formatter/state-format-facade.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/state-formatter/state-shadow-formatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/string-formatter/custom-formatter-strategy.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/string-formatter/number-mask-strategy.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/string-formatter/number-thousand-comma-mask-strategy.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/string-formatter/string-mask-strategy.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/string-formatter/thousand-comma-strategy.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/style-formatter.test.d.ts +1 -0
- package/dist/types/helpers/icon/icon-manager.d.ts +35 -0
- package/dist/types/helpers/icon/interface.d.ts +10 -0
- package/dist/types/helpers/icon/internal-icon-manager.d.ts +30 -0
- package/dist/types/helpers/icon/test/icon-manager-controller.test.d.ts +1 -0
- package/dist/types/helpers/icon/test/internal-icon-manager.test.d.ts +1 -0
- package/dist/types/helpers/immutable/immutable-map.d.ts +78 -0
- package/dist/types/helpers/immutable/immutable-set.d.ts +65 -0
- package/dist/types/helpers/immutable/immutable.d.ts +3 -0
- package/dist/types/helpers/immutable/test/immutable-map.test.d.ts +1 -0
- package/dist/types/helpers/immutable/test/immutable-set.test.d.ts +1 -0
- package/dist/types/helpers/keyboard/keyboard-manager.d.ts +60 -0
- package/dist/types/helpers/keyboard/test/keyboard-manager.test.d.ts +1 -0
- package/dist/types/helpers/level-tracker/nested-level-tracker.d.ts +36 -0
- package/dist/types/helpers/level-tracker/test/nested-level-tracker.test.d.ts +1 -0
- package/dist/types/helpers/loading-indicator/tests/vega-loader-controller.test.d.ts +1 -0
- package/dist/types/helpers/loading-indicator/vega-loader-controller.d.ts +55 -0
- package/dist/types/helpers/loading-indicator/vega-loader.d.ts +17 -0
- package/dist/types/helpers/notify/tests/vega-notify-controller.test.d.ts +1 -0
- package/dist/types/helpers/notify/vega-notify-controller.d.ts +54 -0
- package/dist/types/helpers/notify/vega-notify.d.ts +13 -0
- package/dist/types/helpers/paginator/test/value-paginator.test.d.ts +1 -0
- package/dist/types/helpers/paginator/value-paginator.d.ts +45 -0
- package/dist/types/helpers/public-api.d.ts +17 -0
- package/dist/types/helpers/queue/queue.d.ts +4 -0
- package/dist/types/helpers/queue/synchronize-task-queue.d.ts +24 -0
- package/dist/types/helpers/queue/test/synchronize-task-queue.test.d.ts +1 -0
- package/dist/types/helpers/remote-invocation/remote-invocation-registry.d.ts +39 -0
- package/dist/types/helpers/remote-invocation/remote-invocation-registry.test.d.ts +1 -0
- package/dist/types/helpers/skeleton-loader/interface.d.ts +16 -0
- package/dist/types/helpers/skeleton-loader/tests/vega-skeleton-loader-controller.test.d.ts +1 -0
- package/dist/types/helpers/skeleton-loader/vega-skeleton-loader-controller.d.ts +54 -0
- package/dist/types/helpers/slimmers/component-global-style-slimmer.d.ts +33 -0
- package/dist/types/helpers/slimmers/component-usage-runtime-metrics.d.ts +43 -0
- package/dist/types/helpers/slimmers/deprecated-property-slimmer.d.ts +34 -0
- package/dist/types/helpers/slimmers/element-appender-container/default-wrapper.d.ts +20 -0
- package/dist/types/helpers/slimmers/element-appender-container/element-appender-container-controller.d.ts +33 -0
- package/dist/types/helpers/slimmers/element-appender-container/position-relative-to-wrapper.d.ts +22 -0
- package/dist/types/helpers/slimmers/element-appender-container/vega-modal-wrapper.d.ts +35 -0
- package/dist/types/helpers/slimmers/element-appender-container/vega-popover-wrapper.d.ts +22 -0
- package/dist/types/helpers/slimmers/element-appender-slimmer.d.ts +56 -0
- package/dist/types/helpers/slimmers/field-error-controller-silmmer.d.ts +31 -0
- package/dist/types/helpers/slimmers/field-error-ui-controller-slimmer.d.ts +54 -0
- package/dist/types/helpers/slimmers/field-error-ui-controller-strategies/field-error-ui-controller-strategy.d.ts +6 -0
- package/dist/types/helpers/slimmers/field-error-ui-controller-strategies/sibling-container-error-label-container-retrieval-strategy.d.ts +16 -0
- package/dist/types/helpers/slimmers/field-error-ui-controller-strategies/sibling-container-nested-error-container-retrieval-strategy.d.ts +15 -0
- package/dist/types/helpers/slimmers/field-error-ui-controller-strategies/sibling-container-self-retrieval-strategy.d.ts +14 -0
- package/dist/types/helpers/slimmers/form-field-controller-slimmer.d.ts +106 -0
- package/dist/types/helpers/slimmers/form-field-valid-invoke-slimmer.d.ts +22 -0
- package/dist/types/helpers/slimmers/global/vega-translate-observer-slimmer.d.ts +19 -0
- package/dist/types/helpers/slimmers/global/vega-watch-method-cancel-slimmer.d.ts +39 -0
- package/dist/types/helpers/slimmers/keyboard-manager-slimmer.d.ts +13 -0
- package/dist/types/helpers/slimmers/mutation-observer/mutation-observer-filters.d.ts +30 -0
- package/dist/types/helpers/slimmers/mutation-observer/mutation-observer-slimmer.d.ts +48 -0
- package/dist/types/helpers/slimmers/mutation-observer/test/mutation-observer-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/page-resize-observer-slimmer.d.ts +63 -0
- package/dist/types/helpers/slimmers/runtime-metrics/create-public-api-runtime-metrics-slimmer.d.ts +16 -0
- package/dist/types/helpers/slimmers/runtime-metrics/public-api-runtime-metrics-slimmer-base.d.ts +48 -0
- package/dist/types/helpers/slimmers/runtime-metrics/test/public-api-runtime-metrics-slimmer-base.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/string-input-formatter-slimmer.d.ts +84 -0
- package/dist/types/helpers/slimmers/sub-state/sub-state-notify-slimmer-base.d.ts +32 -0
- package/dist/types/helpers/slimmers/sub-state/sub-state-notify-slimmer.d.ts +12 -0
- package/dist/types/helpers/slimmers/sub-state/sub-state-observer-slimmer.d.ts +76 -0
- package/dist/types/helpers/slimmers/sub-state/test/sub-state-observer-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/test/component-global-style-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/test/component-usage-runtime-metrics.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/test/deprecated-property-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/test/element-appender-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/test/field-error-controller-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/test/form-field-controller-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/test/form-field-valid-invoke-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/test/global/vega-watch-method-cancel-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/test/keyboard-manager-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/test/page-resize-observer-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/test/string-input-formatter-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/test/translation-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/translation/index.d.ts +1 -0
- package/dist/types/helpers/slimmers/translation/translation-slimmer.d.ts +22 -0
- package/dist/types/helpers/slimmers/types.d.ts +5 -0
- package/dist/types/helpers/theme/controllers/color-schema-overriding-controller.d.ts +41 -0
- package/dist/types/helpers/theme/controllers/dark-mode-style-controller.d.ts +17 -0
- package/dist/types/helpers/theme/tests/theme-manager-controller.test.d.ts +1 -0
- package/dist/types/helpers/theme/theme-manager.d.ts +40 -0
- package/dist/types/helpers/theme/theme.d.ts +18 -0
- package/dist/types/helpers/touch-helper/test/touch-listener.test.d.ts +1 -0
- package/dist/types/helpers/touch-helper/touch-listener.d.ts +90 -0
- package/dist/types/helpers/translation/index.d.ts +4 -0
- package/dist/types/helpers/translation/interface.d.ts +90 -0
- package/dist/types/helpers/translation/internal-translation-controller.d.ts +58 -0
- package/dist/types/helpers/translation/locales/en.d.ts +5 -0
- package/dist/types/helpers/translation/tests/internal-translation-controller.test.d.ts +1 -0
- package/dist/types/helpers/translation/tests/translation.test.d.ts +1 -0
- package/dist/types/helpers/translation/translation.d.ts +33 -0
- package/dist/types/helpers/ui/element-appender.d.ts +154 -0
- package/dist/types/helpers/ui/test/element-appender.test.d.ts +1 -0
- package/dist/types/helpers/validator/form-field-controller.d.ts +244 -0
- package/dist/types/helpers/validator/form-validator.d.ts +8 -0
- package/dist/types/helpers/validator/rules/check-box-required-rule.d.ts +40 -0
- package/dist/types/helpers/validator/rules/date-range-rule.d.ts +37 -0
- package/dist/types/helpers/validator/rules/date-required-rule.d.ts +51 -0
- package/dist/types/helpers/validator/rules/email-field-rule.d.ts +39 -0
- package/dist/types/helpers/validator/rules/file-uploader-required-rule.d.ts +13 -0
- package/dist/types/helpers/validator/rules/form-field-validation-rule.d.ts +25 -0
- package/dist/types/helpers/validator/rules/input-phone-number-required-rule.d.ts +40 -0
- package/dist/types/helpers/validator/rules/input-range-min-and-max-rule.d.ts +63 -0
- package/dist/types/helpers/validator/rules/input-range-required-rule.d.ts +38 -0
- package/dist/types/helpers/validator/rules/max-number-rule.d.ts +50 -0
- package/dist/types/helpers/validator/rules/max-string-length-rule.d.ts +50 -0
- package/dist/types/helpers/validator/rules/min-and-max-date-rule.d.ts +79 -0
- package/dist/types/helpers/validator/rules/min-number-rule.d.ts +50 -0
- package/dist/types/helpers/validator/rules/min-string-length-rule.d.ts +50 -0
- package/dist/types/helpers/validator/rules/required-field-rule.d.ts +45 -0
- package/dist/types/helpers/validator/rules/time-range-required-rule.d.ts +49 -0
- package/dist/types/helpers/validator/rules/time-range-rule.d.ts +56 -0
- package/dist/types/helpers/validator/rules/time-required-rule.d.ts +49 -0
- package/dist/types/helpers/validator/rules/toggle-switch-required-rule.d.ts +38 -0
- package/dist/types/helpers/validator/rules/valid-credit-card-number-rule.d.ts +109 -0
- package/dist/types/helpers/validator/rules/valid-phone-number-rule.d.ts +74 -0
- package/dist/types/helpers/validator/rules/validation-rule.d.ts +22 -0
- package/dist/types/helpers/validator/test/rules/check-box-required-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/custom-validation-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/date-range-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/date-required-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/email-field-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/file-uploader-required-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/input-phone-number-required-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/input-range-min-and-max-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/input-range-required-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/max-number-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/max-string-length-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/min-and-max-date-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/min-number-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/min-string-length-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/required-field-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/time-range-required-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/time-range-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/time-required-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/toggle-switch-required-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/valid-credit-card-number-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/valid-phone-number-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/validation-rule-handler/form-field-validation-rule-handler-chain.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/validation-rule-handler/form-field-validation-rule-handler.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/validator/form-field-controller.test.d.ts +1 -0
- package/dist/types/helpers/validator/validation-rule-handler/form-field-validation-rule-handler-chain.d.ts +57 -0
- package/dist/types/helpers/validator/validation-rule-handler/form-field-validation-rule-handler.d.ts +47 -0
- package/dist/types/helpers/validator/validator.d.ts +8 -0
- package/dist/types/helpers/vega-telemetry-helper/test/vega-env-manager.test.d.ts +1 -0
- package/dist/types/helpers/vega-telemetry-helper/vega-env-manager.d.ts +30 -0
- package/dist/types/helpers/zindex/internal-vega-z-index-manager.d.ts +87 -0
- package/dist/types/helpers/zindex/test/internal-vega-z-index-manager.test.d.ts +1 -0
- package/dist/types/helpers/zindex/test/vega-z-index-manager.test.d.ts +1 -0
- package/dist/types/helpers/zindex/vega-z-index-manager.d.ts +22 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/polyfill/test-polyfill/e2e/retry.d.ts +8 -0
- package/dist/types/polyfill/test-polyfill/unit/create-touch-event.d.ts +11 -0
- package/dist/types/polyfill/test-polyfill/unit/events.d.ts +1 -0
- package/dist/types/polyfill/test-polyfill/unit/index.d.ts +2 -0
- package/dist/types/polyfill/test-polyfill/unit/methods.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/test-assets/test-icons.d.ts +4 -0
- package/dist/types/types/class.type.d.ts +8 -0
- package/dist/types/types/components.type.d.ts +192 -0
- package/dist/types/types/design-token.type.d.ts +21 -0
- package/dist/types/types/general.d.ts +7 -0
- package/dist/types/types/public-api.d.ts +17 -0
- package/dist/types/types/test/type-guard.test.d.ts +1 -0
- package/dist/types/types/test-polyfill.d.ts +8 -0
- package/dist/types/types/type-guard.d.ts +284 -0
- package/dist/types/types/ui.type.d.ts +152 -0
- package/dist/types/types/vega-chart.d.ts +149 -0
- package/dist/types/utils/accessibility.d.ts +6 -0
- package/dist/types/utils/api.d.ts +35 -0
- package/dist/types/utils/array.d.ts +100 -0
- package/dist/types/utils/breakpoints.d.ts +27 -0
- package/dist/types/utils/component.d.ts +34 -0
- package/dist/types/utils/date.d.ts +54 -0
- package/dist/types/utils/design-token.d.ts +115 -0
- package/dist/types/utils/e2e-utils.d.ts +139 -0
- package/dist/types/utils/effect.d.ts +30 -0
- package/dist/types/utils/local-storage.d.ts +14 -0
- package/dist/types/utils/log.d.ts +48 -0
- package/dist/types/utils/misc.d.ts +20 -0
- package/dist/types/utils/number.d.ts +58 -0
- package/dist/types/utils/object.d.ts +20 -0
- package/dist/types/utils/pagination.d.ts +13 -0
- package/dist/types/utils/pixel.d.ts +30 -0
- package/dist/types/utils/position.d.ts +17 -0
- package/dist/types/utils/public-api.d.ts +4 -0
- package/dist/types/utils/spec-utils.d.ts +101 -0
- package/dist/types/utils/string.d.ts +7 -0
- package/dist/types/utils/test/accessibility.test.d.ts +1 -0
- package/dist/types/utils/test/api.test.d.ts +1 -0
- package/dist/types/utils/test/array.test.d.ts +1 -0
- package/dist/types/utils/test/breakpoint.test.d.ts +1 -0
- package/dist/types/utils/test/component.test.d.ts +1 -0
- package/dist/types/utils/test/date.test.d.ts +1 -0
- package/dist/types/utils/test/design-token.test.d.ts +1 -0
- package/dist/types/utils/test/effect.test.d.ts +1 -0
- package/dist/types/utils/test/local-storage.test.d.ts +1 -0
- package/dist/types/utils/test/log.test.d.ts +1 -0
- package/dist/types/utils/test/misc.test.d.ts +1 -0
- package/dist/types/utils/test/number.test.d.ts +1 -0
- package/dist/types/utils/test/object.test.d.ts +1 -0
- package/dist/types/utils/test/pagination.test.d.ts +1 -0
- package/dist/types/utils/test/pixel.test.d.ts +1 -0
- package/dist/types/utils/test/position.test.d.ts +1 -0
- package/dist/types/utils/test/spec-utils.test.d.ts +1 -0
- package/dist/types/utils/test/string.test.d.ts +1 -0
- package/dist/types/utils/test/test-utils.test.d.ts +1 -0
- package/dist/types/utils/test/timer.test.d.ts +1 -0
- package/dist/types/utils/test/ui.test.d.ts +1 -0
- package/dist/types/utils/test-utils.d.ts +65 -0
- package/dist/types/utils/timer.d.ts +11 -0
- package/dist/types/utils/ui.d.ts +108 -0
- package/dist/types/value-model-adapters/angular-ng-model-accessor-adapter.d.ts +2 -0
- package/dist/types/value-model-adapters/vue-component-v-model-adaptor.d.ts +2 -0
- package/dist/types/vega-slimmer/src/common/helpers/dynamic-slimmer.d.ts +37 -0
- package/dist/types/vega-slimmer/src/common/helpers/global-slimmer-registry.d.ts +12 -0
- package/dist/types/vega-slimmer/src/common/symbols/decorator.d.ts +4 -0
- package/dist/types/vega-slimmer/src/common/types/decorator.type.d.ts +11 -0
- package/dist/types/vega-slimmer/src/common/utils/log.d.ts +25 -0
- package/dist/types/vega-slimmer/src/common/utils/placeholder.d.ts +14 -0
- package/dist/types/vega-slimmer/src/decorators/inject-vega-global-slimmer.d.ts +7 -0
- package/dist/types/vega-slimmer/src/decorators/inject-vega-slimmer.d.ts +22 -0
- package/dist/types/vega-slimmer/src/decorators/inject-vega-telemetry-slimmer.d.ts +15 -0
- package/dist/types/vega-slimmer/src/decorators/map-to-component-field.d.ts +13 -0
- package/dist/types/vega-slimmer/src/decorators/map-to-component-method.d.ts +9 -0
- package/dist/types/vega-slimmer/src/decorators/vega-slimmer.d.ts +5 -0
- package/dist/types/vega-slimmer/vega-slimmer-core.d.ts +10 -0
- package/dist/vega/index.esm.js +1 -0
- package/dist/vega/p-0120ce7a.js +1 -0
- package/dist/vega/p-0395e791.entry.js +1 -0
- package/dist/vega/p-048a97d1.entry.js +1 -0
- package/dist/vega/p-056f448c.entry.js +1 -0
- package/dist/vega/p-063c3ba6.entry.js +1 -0
- package/dist/vega/p-0bb29d98.js +1 -0
- package/dist/vega/p-0c667d6a.js +1 -0
- package/dist/vega/p-0dd750b0.entry.js +1 -0
- package/dist/vega/p-115e5967.js +1 -0
- package/dist/vega/p-128fbe13.entry.js +13 -0
- package/dist/vega/p-152393dd.js +1 -0
- package/dist/vega/p-16493e5b.js +1 -0
- package/dist/vega/p-1bbc62ef.entry.js +1 -0
- package/dist/vega/p-1bc5b3bc.js +1 -0
- package/dist/vega/p-1c298d5a.js +2 -0
- package/dist/vega/p-1e33c6e3.entry.js +1 -0
- package/dist/vega/p-1ea57951.js +1 -0
- package/dist/vega/p-1f38eef6.entry.js +1 -0
- package/dist/vega/p-1fc5373a.entry.js +1 -0
- package/dist/vega/p-22a85055.entry.js +1 -0
- package/dist/vega/p-26d0d411.entry.js +1 -0
- package/dist/vega/p-2d0d575f.js +1 -0
- package/dist/vega/p-319efe6c.js +1 -0
- package/dist/vega/p-331a62d5.js +1 -0
- package/dist/vega/p-33366630.entry.js +1 -0
- package/dist/vega/p-33596687.js +1 -0
- package/dist/vega/p-344ee7cb.js +1 -0
- package/dist/vega/p-34545d2d.entry.js +1 -0
- package/dist/vega/p-365c340d.entry.js +1 -0
- package/dist/vega/p-38d81bde.js +1 -0
- package/dist/vega/p-3a0a4d15.js +1 -0
- package/dist/vega/p-3f5e44c1.js +1 -0
- package/dist/vega/p-3fc59fd3.entry.js +1 -0
- package/dist/vega/p-40f6add9.entry.js +1 -0
- package/dist/vega/p-4163c2c2.js +1 -0
- package/dist/vega/p-41784db1.js +1 -0
- package/dist/vega/p-456416ea.js +1 -0
- package/dist/vega/p-47a4c625.js +1 -0
- package/dist/vega/p-47c87634.js +1 -0
- package/dist/vega/p-4bc042ec.entry.js +1 -0
- package/dist/vega/p-51622ace.entry.js +1 -0
- package/dist/vega/p-51cd2a39.entry.js +1 -0
- package/dist/vega/p-5453f591.js +1 -0
- package/dist/vega/p-573948c2.js +1 -0
- package/dist/vega/p-5915634b.js +1 -0
- package/dist/vega/p-5d231a82.entry.js +1 -0
- package/dist/vega/p-5dc98104.js +1 -0
- package/dist/vega/p-5f377954.js +1 -0
- package/dist/vega/p-6168c1e7.js +1 -0
- package/dist/vega/p-61f6167c.js +1 -0
- package/dist/vega/p-64e8bb64.js +1 -0
- package/dist/vega/p-657df167.entry.js +1 -0
- package/dist/vega/p-68055c2d.entry.js +1 -0
- package/dist/vega/p-6874d6a1.entry.js +1 -0
- package/dist/vega/p-6a334573.js +1 -0
- package/dist/vega/p-6bd5c49b.js +1 -0
- package/dist/vega/p-6c6d86da.js +1 -0
- package/dist/vega/p-6d015656.entry.js +1 -0
- package/dist/vega/p-6e1ab235.js +1 -0
- package/dist/vega/p-6e3cc7f0.entry.js +1 -0
- package/dist/vega/p-74168615.js +1 -0
- package/dist/vega/p-7a1df282.entry.js +1 -0
- package/dist/vega/p-7b40ac07.js +1 -0
- package/dist/vega/p-80c0f98c.entry.js +1 -0
- package/dist/vega/p-810ba5c3.entry.js +1 -0
- package/dist/vega/p-83af8ed7.js +1 -0
- package/dist/vega/p-84118b6d.entry.js +1 -0
- package/dist/vega/p-84fa8466.js +1 -0
- package/dist/vega/p-86194314.js +1 -0
- package/dist/vega/p-880f91fb.js +1 -0
- package/dist/vega/p-8843226a.entry.js +1 -0
- package/dist/vega/p-8b0533c4.entry.js +1 -0
- package/dist/vega/p-8b084bf9.entry.js +1 -0
- package/dist/vega/p-8c72aa56.entry.js +1 -0
- package/dist/vega/p-8f60c3ee.entry.js +1 -0
- package/dist/vega/p-8fd6775a.entry.js +1 -0
- package/dist/vega/p-987fbbd0.js +1 -0
- package/dist/vega/p-9a4ffc2c.entry.js +1 -0
- package/dist/vega/p-9b797118.js +1 -0
- package/dist/vega/p-9ba085c1.entry.js +1 -0
- package/dist/vega/p-9e6934fb.js +1 -0
- package/dist/vega/p-9fbdeada.js +1 -0
- package/dist/vega/p-a10074a8.entry.js +1 -0
- package/dist/vega/p-a10b9f2e.js +12 -0
- package/dist/vega/p-a190c86a.js +1 -0
- package/dist/vega/p-a2169994.entry.js +1 -0
- package/dist/vega/p-a454acc4.entry.js +1 -0
- package/dist/vega/p-a46329bb.js +1 -0
- package/dist/vega/p-a57eed48.entry.js +1 -0
- package/dist/vega/p-a59c221b.entry.js +1 -0
- package/dist/vega/p-a5f80d35.js +1 -0
- package/dist/vega/p-a7fdb16a.js +1 -0
- package/dist/vega/p-a8b1f19c.entry.js +1 -0
- package/dist/vega/p-a901494d.entry.js +1 -0
- package/dist/vega/p-ac0ab38b.js +1 -0
- package/dist/vega/p-acc14aa2.js +1 -0
- package/dist/vega/p-acf8b473.js +1 -0
- package/dist/vega/p-af7a3154.js +1 -0
- package/dist/vega/p-b2053fa8.entry.js +1 -0
- package/dist/vega/p-b4e92130.entry.js +1 -0
- package/dist/vega/p-b5990090.js +1 -0
- package/dist/vega/p-b86e8c8b.entry.js +1 -0
- package/dist/vega/p-b8e42c11.entry.js +1 -0
- package/dist/vega/p-bccacf42.js +1 -0
- package/dist/vega/p-be26b334.entry.js +1 -0
- package/dist/vega/p-be784f53.js +1 -0
- package/dist/vega/p-bf8c1fe3.js +1 -0
- package/dist/vega/p-c1dfdc13.js +1 -0
- package/dist/vega/p-c59042c0.js +1 -0
- package/dist/vega/p-cbeda6ca.entry.js +1 -0
- package/dist/vega/p-d0a83562.entry.js +1 -0
- package/dist/vega/p-d4c85e4e.entry.js +1 -0
- package/dist/vega/p-d4fb2264.entry.js +1 -0
- package/dist/vega/p-d550fc66.entry.js +1 -0
- package/dist/vega/p-d686dd96.entry.js +1 -0
- package/dist/vega/p-da86ba01.js +1 -0
- package/dist/vega/p-ddc70a7b.js +1 -0
- package/dist/vega/p-e2acbc60.js +1 -0
- package/dist/vega/p-ead1a647.js +1 -0
- package/dist/vega/p-ead9a2b9.entry.js +1 -0
- package/dist/vega/p-ec157238.js +1 -0
- package/dist/vega/p-ecfa7534.js +1 -0
- package/dist/vega/p-ed4a57a8.js +1 -0
- package/dist/vega/p-eddcb385.entry.js +1 -0
- package/dist/vega/p-ee68920f.js +1 -0
- package/dist/vega/p-f0ad06bd.entry.js +1 -0
- package/dist/vega/p-f2019f70.entry.js +1 -0
- package/dist/vega/p-f404aa83.js +1 -0
- package/dist/vega/p-f41102cd.js +1 -0
- package/dist/vega/p-f46c930f.js +1 -0
- package/dist/vega/p-f7728ead.entry.js +1 -0
- package/dist/vega/p-f948debe.entry.js +1 -0
- package/dist/vega/p-faea1620.js +1 -0
- package/dist/vega/p-fb6c90d6.js +1 -0
- package/dist/vega/p-fc746bae.entry.js +1 -0
- package/dist/vega/p-fd929ab5.entry.js +1 -0
- package/dist/vega/vega.css +1 -0
- package/dist/vega/vega.esm.js +1 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +130 -0
- package/readme.md +182 -0
- package/style/vega.css +1 -0
@@ -0,0 +1,4739 @@
|
|
1
|
+
import { g as getLongestTextLengthFromArray } from './array-506b88b9.js';
|
2
|
+
import { a as Typography } from './typography-a8fc4764.js';
|
3
|
+
import { a as parseNumberToPixelString, b as parsePixelStringToNumber } from './pixel-f32c07ce.js';
|
4
|
+
|
5
|
+
/** The GraphContextFactory class provides a method to create and return either a HTMLCanvasElement or SVGElement based on the specified mode and container element. */
|
6
|
+
class GraphContextFactory {
|
7
|
+
/**
|
8
|
+
* This function returns either a HTMLCanvasElement or an SVGElement based on the specified mode and container.
|
9
|
+
*
|
10
|
+
* @param {ChartGraphMode} mode - A string that specifies the mode of the chart graph. It can be either 'canvas' or 'svg'.
|
11
|
+
* @param {HTMLElement} container - HTMLElement - the HTML element that will contain the chart/graph.
|
12
|
+
* @returns {SVGElement | HTMLCanvasElement} either a HTMLCanvasElement or an SVGElement depending on the value of the `mode` parameter.
|
13
|
+
*/
|
14
|
+
static get(mode, container) {
|
15
|
+
if (mode === 'canvas') {
|
16
|
+
const canvas = container.querySelector('canvas');
|
17
|
+
let context;
|
18
|
+
if (canvas) {
|
19
|
+
context = canvas;
|
20
|
+
}
|
21
|
+
else {
|
22
|
+
context = document.createElement('canvas');
|
23
|
+
context = container.appendChild(context);
|
24
|
+
}
|
25
|
+
return context;
|
26
|
+
}
|
27
|
+
else {
|
28
|
+
const svg = container.querySelector('svg');
|
29
|
+
let context;
|
30
|
+
if (svg) {
|
31
|
+
context = svg;
|
32
|
+
}
|
33
|
+
else {
|
34
|
+
context = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
35
|
+
context = container.appendChild(context);
|
36
|
+
}
|
37
|
+
return context;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* defining an abstract class called `BaseRenderer` that takes a generic type `T` which
|
44
|
+
* can be either an `SVGElement` or a `HTMLCanvasElement`
|
45
|
+
*/
|
46
|
+
class BaseRenderer {
|
47
|
+
/**
|
48
|
+
* This is a constructor function that takes a parameter of type T and sets it as a protected property called "context".
|
49
|
+
*
|
50
|
+
* @param {unknown} context - The "context" parameter is a protected property of a class constructor that is
|
51
|
+
* of type "T". It is used to store a reference to an object or data that is required by the class
|
52
|
+
* methods to perform their tasks
|
53
|
+
*/
|
54
|
+
constructor(context) {
|
55
|
+
this.context = context;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
function identity$1(x) {
|
60
|
+
return x;
|
61
|
+
}
|
62
|
+
|
63
|
+
var top = 1,
|
64
|
+
right = 2,
|
65
|
+
bottom = 3,
|
66
|
+
left = 4,
|
67
|
+
epsilon$2 = 1e-6;
|
68
|
+
|
69
|
+
function translateX(x) {
|
70
|
+
return "translate(" + x + ",0)";
|
71
|
+
}
|
72
|
+
|
73
|
+
function translateY(y) {
|
74
|
+
return "translate(0," + y + ")";
|
75
|
+
}
|
76
|
+
|
77
|
+
function number(scale) {
|
78
|
+
return d => +scale(d);
|
79
|
+
}
|
80
|
+
|
81
|
+
function center(scale, offset) {
|
82
|
+
offset = Math.max(0, scale.bandwidth() - offset * 2) / 2;
|
83
|
+
if (scale.round()) offset = Math.round(offset);
|
84
|
+
return d => +scale(d) + offset;
|
85
|
+
}
|
86
|
+
|
87
|
+
function entering() {
|
88
|
+
return !this.__axis;
|
89
|
+
}
|
90
|
+
|
91
|
+
function axis(orient, scale) {
|
92
|
+
var tickArguments = [],
|
93
|
+
tickValues = null,
|
94
|
+
tickFormat = null,
|
95
|
+
tickSizeInner = 6,
|
96
|
+
tickSizeOuter = 6,
|
97
|
+
tickPadding = 3,
|
98
|
+
offset = typeof window !== "undefined" && window.devicePixelRatio > 1 ? 0 : 0.5,
|
99
|
+
k = orient === top || orient === left ? -1 : 1,
|
100
|
+
x = orient === left || orient === right ? "x" : "y",
|
101
|
+
transform = orient === top || orient === bottom ? translateX : translateY;
|
102
|
+
|
103
|
+
function axis(context) {
|
104
|
+
var values = tickValues == null ? (scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain()) : tickValues,
|
105
|
+
format = tickFormat == null ? (scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity$1) : tickFormat,
|
106
|
+
spacing = Math.max(tickSizeInner, 0) + tickPadding,
|
107
|
+
range = scale.range(),
|
108
|
+
range0 = +range[0] + offset,
|
109
|
+
range1 = +range[range.length - 1] + offset,
|
110
|
+
position = (scale.bandwidth ? center : number)(scale.copy(), offset),
|
111
|
+
selection = context.selection ? context.selection() : context,
|
112
|
+
path = selection.selectAll(".domain").data([null]),
|
113
|
+
tick = selection.selectAll(".tick").data(values, scale).order(),
|
114
|
+
tickExit = tick.exit(),
|
115
|
+
tickEnter = tick.enter().append("g").attr("class", "tick"),
|
116
|
+
line = tick.select("line"),
|
117
|
+
text = tick.select("text");
|
118
|
+
|
119
|
+
path = path.merge(path.enter().insert("path", ".tick")
|
120
|
+
.attr("class", "domain")
|
121
|
+
.attr("stroke", "currentColor"));
|
122
|
+
|
123
|
+
tick = tick.merge(tickEnter);
|
124
|
+
|
125
|
+
line = line.merge(tickEnter.append("line")
|
126
|
+
.attr("stroke", "currentColor")
|
127
|
+
.attr(x + "2", k * tickSizeInner));
|
128
|
+
|
129
|
+
text = text.merge(tickEnter.append("text")
|
130
|
+
.attr("fill", "currentColor")
|
131
|
+
.attr(x, k * spacing)
|
132
|
+
.attr("dy", orient === top ? "0em" : orient === bottom ? "0.71em" : "0.32em"));
|
133
|
+
|
134
|
+
if (context !== selection) {
|
135
|
+
path = path.transition(context);
|
136
|
+
tick = tick.transition(context);
|
137
|
+
line = line.transition(context);
|
138
|
+
text = text.transition(context);
|
139
|
+
|
140
|
+
tickExit = tickExit.transition(context)
|
141
|
+
.attr("opacity", epsilon$2)
|
142
|
+
.attr("transform", function(d) { return isFinite(d = position(d)) ? transform(d + offset) : this.getAttribute("transform"); });
|
143
|
+
|
144
|
+
tickEnter
|
145
|
+
.attr("opacity", epsilon$2)
|
146
|
+
.attr("transform", function(d) { var p = this.parentNode.__axis; return transform((p && isFinite(p = p(d)) ? p : position(d)) + offset); });
|
147
|
+
}
|
148
|
+
|
149
|
+
tickExit.remove();
|
150
|
+
|
151
|
+
path
|
152
|
+
.attr("d", orient === left || orient === right
|
153
|
+
? (tickSizeOuter ? "M" + k * tickSizeOuter + "," + range0 + "H" + offset + "V" + range1 + "H" + k * tickSizeOuter : "M" + offset + "," + range0 + "V" + range1)
|
154
|
+
: (tickSizeOuter ? "M" + range0 + "," + k * tickSizeOuter + "V" + offset + "H" + range1 + "V" + k * tickSizeOuter : "M" + range0 + "," + offset + "H" + range1));
|
155
|
+
|
156
|
+
tick
|
157
|
+
.attr("opacity", 1)
|
158
|
+
.attr("transform", function(d) { return transform(position(d) + offset); });
|
159
|
+
|
160
|
+
line
|
161
|
+
.attr(x + "2", k * tickSizeInner);
|
162
|
+
|
163
|
+
text
|
164
|
+
.attr(x, k * spacing)
|
165
|
+
.text(format);
|
166
|
+
|
167
|
+
selection.filter(entering)
|
168
|
+
.attr("fill", "none")
|
169
|
+
.attr("font-size", 10)
|
170
|
+
.attr("font-family", "sans-serif")
|
171
|
+
.attr("text-anchor", orient === right ? "start" : orient === left ? "end" : "middle");
|
172
|
+
|
173
|
+
selection
|
174
|
+
.each(function() { this.__axis = position; });
|
175
|
+
}
|
176
|
+
|
177
|
+
axis.scale = function(_) {
|
178
|
+
return arguments.length ? (scale = _, axis) : scale;
|
179
|
+
};
|
180
|
+
|
181
|
+
axis.ticks = function() {
|
182
|
+
return tickArguments = Array.from(arguments), axis;
|
183
|
+
};
|
184
|
+
|
185
|
+
axis.tickArguments = function(_) {
|
186
|
+
return arguments.length ? (tickArguments = _ == null ? [] : Array.from(_), axis) : tickArguments.slice();
|
187
|
+
};
|
188
|
+
|
189
|
+
axis.tickValues = function(_) {
|
190
|
+
return arguments.length ? (tickValues = _ == null ? null : Array.from(_), axis) : tickValues && tickValues.slice();
|
191
|
+
};
|
192
|
+
|
193
|
+
axis.tickFormat = function(_) {
|
194
|
+
return arguments.length ? (tickFormat = _, axis) : tickFormat;
|
195
|
+
};
|
196
|
+
|
197
|
+
axis.tickSize = function(_) {
|
198
|
+
return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis) : tickSizeInner;
|
199
|
+
};
|
200
|
+
|
201
|
+
axis.tickSizeInner = function(_) {
|
202
|
+
return arguments.length ? (tickSizeInner = +_, axis) : tickSizeInner;
|
203
|
+
};
|
204
|
+
|
205
|
+
axis.tickSizeOuter = function(_) {
|
206
|
+
return arguments.length ? (tickSizeOuter = +_, axis) : tickSizeOuter;
|
207
|
+
};
|
208
|
+
|
209
|
+
axis.tickPadding = function(_) {
|
210
|
+
return arguments.length ? (tickPadding = +_, axis) : tickPadding;
|
211
|
+
};
|
212
|
+
|
213
|
+
axis.offset = function(_) {
|
214
|
+
return arguments.length ? (offset = +_, axis) : offset;
|
215
|
+
};
|
216
|
+
|
217
|
+
return axis;
|
218
|
+
}
|
219
|
+
|
220
|
+
function axisBottom(scale) {
|
221
|
+
return axis(bottom, scale);
|
222
|
+
}
|
223
|
+
|
224
|
+
function axisLeft(scale) {
|
225
|
+
return axis(left, scale);
|
226
|
+
}
|
227
|
+
|
228
|
+
var noop = {value: () => {}};
|
229
|
+
|
230
|
+
function dispatch() {
|
231
|
+
for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {
|
232
|
+
if (!(t = arguments[i] + "") || (t in _) || /[\s.]/.test(t)) throw new Error("illegal type: " + t);
|
233
|
+
_[t] = [];
|
234
|
+
}
|
235
|
+
return new Dispatch(_);
|
236
|
+
}
|
237
|
+
|
238
|
+
function Dispatch(_) {
|
239
|
+
this._ = _;
|
240
|
+
}
|
241
|
+
|
242
|
+
function parseTypenames$1(typenames, types) {
|
243
|
+
return typenames.trim().split(/^|\s+/).map(function(t) {
|
244
|
+
var name = "", i = t.indexOf(".");
|
245
|
+
if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);
|
246
|
+
if (t && !types.hasOwnProperty(t)) throw new Error("unknown type: " + t);
|
247
|
+
return {type: t, name: name};
|
248
|
+
});
|
249
|
+
}
|
250
|
+
|
251
|
+
Dispatch.prototype = dispatch.prototype = {
|
252
|
+
constructor: Dispatch,
|
253
|
+
on: function(typename, callback) {
|
254
|
+
var _ = this._,
|
255
|
+
T = parseTypenames$1(typename + "", _),
|
256
|
+
t,
|
257
|
+
i = -1,
|
258
|
+
n = T.length;
|
259
|
+
|
260
|
+
// If no callback was specified, return the callback of the given type and name.
|
261
|
+
if (arguments.length < 2) {
|
262
|
+
while (++i < n) if ((t = (typename = T[i]).type) && (t = get$1(_[t], typename.name))) return t;
|
263
|
+
return;
|
264
|
+
}
|
265
|
+
|
266
|
+
// If a type was specified, set the callback for the given type and name.
|
267
|
+
// Otherwise, if a null callback was specified, remove callbacks of the given name.
|
268
|
+
if (callback != null && typeof callback !== "function") throw new Error("invalid callback: " + callback);
|
269
|
+
while (++i < n) {
|
270
|
+
if (t = (typename = T[i]).type) _[t] = set$1(_[t], typename.name, callback);
|
271
|
+
else if (callback == null) for (t in _) _[t] = set$1(_[t], typename.name, null);
|
272
|
+
}
|
273
|
+
|
274
|
+
return this;
|
275
|
+
},
|
276
|
+
copy: function() {
|
277
|
+
var copy = {}, _ = this._;
|
278
|
+
for (var t in _) copy[t] = _[t].slice();
|
279
|
+
return new Dispatch(copy);
|
280
|
+
},
|
281
|
+
call: function(type, that) {
|
282
|
+
if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];
|
283
|
+
if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type);
|
284
|
+
for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);
|
285
|
+
},
|
286
|
+
apply: function(type, that, args) {
|
287
|
+
if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type);
|
288
|
+
for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);
|
289
|
+
}
|
290
|
+
};
|
291
|
+
|
292
|
+
function get$1(type, name) {
|
293
|
+
for (var i = 0, n = type.length, c; i < n; ++i) {
|
294
|
+
if ((c = type[i]).name === name) {
|
295
|
+
return c.value;
|
296
|
+
}
|
297
|
+
}
|
298
|
+
}
|
299
|
+
|
300
|
+
function set$1(type, name, callback) {
|
301
|
+
for (var i = 0, n = type.length; i < n; ++i) {
|
302
|
+
if (type[i].name === name) {
|
303
|
+
type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));
|
304
|
+
break;
|
305
|
+
}
|
306
|
+
}
|
307
|
+
if (callback != null) type.push({name: name, value: callback});
|
308
|
+
return type;
|
309
|
+
}
|
310
|
+
|
311
|
+
var xhtml = "http://www.w3.org/1999/xhtml";
|
312
|
+
|
313
|
+
const namespaces = {
|
314
|
+
svg: "http://www.w3.org/2000/svg",
|
315
|
+
xhtml: xhtml,
|
316
|
+
xlink: "http://www.w3.org/1999/xlink",
|
317
|
+
xml: "http://www.w3.org/XML/1998/namespace",
|
318
|
+
xmlns: "http://www.w3.org/2000/xmlns/"
|
319
|
+
};
|
320
|
+
|
321
|
+
function namespace(name) {
|
322
|
+
var prefix = name += "", i = prefix.indexOf(":");
|
323
|
+
if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns") name = name.slice(i + 1);
|
324
|
+
return namespaces.hasOwnProperty(prefix) ? {space: namespaces[prefix], local: name} : name; // eslint-disable-line no-prototype-builtins
|
325
|
+
}
|
326
|
+
|
327
|
+
function creatorInherit(name) {
|
328
|
+
return function() {
|
329
|
+
var document = this.ownerDocument,
|
330
|
+
uri = this.namespaceURI;
|
331
|
+
return uri === xhtml && document.documentElement.namespaceURI === xhtml
|
332
|
+
? document.createElement(name)
|
333
|
+
: document.createElementNS(uri, name);
|
334
|
+
};
|
335
|
+
}
|
336
|
+
|
337
|
+
function creatorFixed(fullname) {
|
338
|
+
return function() {
|
339
|
+
return this.ownerDocument.createElementNS(fullname.space, fullname.local);
|
340
|
+
};
|
341
|
+
}
|
342
|
+
|
343
|
+
function creator(name) {
|
344
|
+
var fullname = namespace(name);
|
345
|
+
return (fullname.local
|
346
|
+
? creatorFixed
|
347
|
+
: creatorInherit)(fullname);
|
348
|
+
}
|
349
|
+
|
350
|
+
function none() {}
|
351
|
+
|
352
|
+
function selector(selector) {
|
353
|
+
return selector == null ? none : function() {
|
354
|
+
return this.querySelector(selector);
|
355
|
+
};
|
356
|
+
}
|
357
|
+
|
358
|
+
function selection_select(select) {
|
359
|
+
if (typeof select !== "function") select = selector(select);
|
360
|
+
|
361
|
+
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
|
362
|
+
for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {
|
363
|
+
if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
|
364
|
+
if ("__data__" in node) subnode.__data__ = node.__data__;
|
365
|
+
subgroup[i] = subnode;
|
366
|
+
}
|
367
|
+
}
|
368
|
+
}
|
369
|
+
|
370
|
+
return new Selection$1(subgroups, this._parents);
|
371
|
+
}
|
372
|
+
|
373
|
+
// Given something array like (or null), returns something that is strictly an
|
374
|
+
// array. This is used to ensure that array-like objects passed to d3.selectAll
|
375
|
+
// or selection.selectAll are converted into proper arrays when creating a
|
376
|
+
// selection; we don’t ever want to create a selection backed by a live
|
377
|
+
// HTMLCollection or NodeList. However, note that selection.selectAll will use a
|
378
|
+
// static NodeList as a group, since it safely derived from querySelectorAll.
|
379
|
+
function array$1(x) {
|
380
|
+
return x == null ? [] : Array.isArray(x) ? x : Array.from(x);
|
381
|
+
}
|
382
|
+
|
383
|
+
function empty() {
|
384
|
+
return [];
|
385
|
+
}
|
386
|
+
|
387
|
+
function selectorAll(selector) {
|
388
|
+
return selector == null ? empty : function() {
|
389
|
+
return this.querySelectorAll(selector);
|
390
|
+
};
|
391
|
+
}
|
392
|
+
|
393
|
+
function arrayAll(select) {
|
394
|
+
return function() {
|
395
|
+
return array$1(select.apply(this, arguments));
|
396
|
+
};
|
397
|
+
}
|
398
|
+
|
399
|
+
function selection_selectAll(select) {
|
400
|
+
if (typeof select === "function") select = arrayAll(select);
|
401
|
+
else select = selectorAll(select);
|
402
|
+
|
403
|
+
for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {
|
404
|
+
for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
|
405
|
+
if (node = group[i]) {
|
406
|
+
subgroups.push(select.call(node, node.__data__, i, group));
|
407
|
+
parents.push(node);
|
408
|
+
}
|
409
|
+
}
|
410
|
+
}
|
411
|
+
|
412
|
+
return new Selection$1(subgroups, parents);
|
413
|
+
}
|
414
|
+
|
415
|
+
function matcher(selector) {
|
416
|
+
return function() {
|
417
|
+
return this.matches(selector);
|
418
|
+
};
|
419
|
+
}
|
420
|
+
|
421
|
+
function childMatcher(selector) {
|
422
|
+
return function(node) {
|
423
|
+
return node.matches(selector);
|
424
|
+
};
|
425
|
+
}
|
426
|
+
|
427
|
+
var find = Array.prototype.find;
|
428
|
+
|
429
|
+
function childFind(match) {
|
430
|
+
return function() {
|
431
|
+
return find.call(this.children, match);
|
432
|
+
};
|
433
|
+
}
|
434
|
+
|
435
|
+
function childFirst() {
|
436
|
+
return this.firstElementChild;
|
437
|
+
}
|
438
|
+
|
439
|
+
function selection_selectChild(match) {
|
440
|
+
return this.select(match == null ? childFirst
|
441
|
+
: childFind(typeof match === "function" ? match : childMatcher(match)));
|
442
|
+
}
|
443
|
+
|
444
|
+
var filter = Array.prototype.filter;
|
445
|
+
|
446
|
+
function children() {
|
447
|
+
return Array.from(this.children);
|
448
|
+
}
|
449
|
+
|
450
|
+
function childrenFilter(match) {
|
451
|
+
return function() {
|
452
|
+
return filter.call(this.children, match);
|
453
|
+
};
|
454
|
+
}
|
455
|
+
|
456
|
+
function selection_selectChildren(match) {
|
457
|
+
return this.selectAll(match == null ? children
|
458
|
+
: childrenFilter(typeof match === "function" ? match : childMatcher(match)));
|
459
|
+
}
|
460
|
+
|
461
|
+
function selection_filter(match) {
|
462
|
+
if (typeof match !== "function") match = matcher(match);
|
463
|
+
|
464
|
+
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
|
465
|
+
for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {
|
466
|
+
if ((node = group[i]) && match.call(node, node.__data__, i, group)) {
|
467
|
+
subgroup.push(node);
|
468
|
+
}
|
469
|
+
}
|
470
|
+
}
|
471
|
+
|
472
|
+
return new Selection$1(subgroups, this._parents);
|
473
|
+
}
|
474
|
+
|
475
|
+
function sparse(update) {
|
476
|
+
return new Array(update.length);
|
477
|
+
}
|
478
|
+
|
479
|
+
function selection_enter() {
|
480
|
+
return new Selection$1(this._enter || this._groups.map(sparse), this._parents);
|
481
|
+
}
|
482
|
+
|
483
|
+
function EnterNode(parent, datum) {
|
484
|
+
this.ownerDocument = parent.ownerDocument;
|
485
|
+
this.namespaceURI = parent.namespaceURI;
|
486
|
+
this._next = null;
|
487
|
+
this._parent = parent;
|
488
|
+
this.__data__ = datum;
|
489
|
+
}
|
490
|
+
|
491
|
+
EnterNode.prototype = {
|
492
|
+
constructor: EnterNode,
|
493
|
+
appendChild: function(child) { return this._parent.insertBefore(child, this._next); },
|
494
|
+
insertBefore: function(child, next) { return this._parent.insertBefore(child, next); },
|
495
|
+
querySelector: function(selector) { return this._parent.querySelector(selector); },
|
496
|
+
querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); }
|
497
|
+
};
|
498
|
+
|
499
|
+
function constant$2(x) {
|
500
|
+
return function() {
|
501
|
+
return x;
|
502
|
+
};
|
503
|
+
}
|
504
|
+
|
505
|
+
function bindIndex(parent, group, enter, update, exit, data) {
|
506
|
+
var i = 0,
|
507
|
+
node,
|
508
|
+
groupLength = group.length,
|
509
|
+
dataLength = data.length;
|
510
|
+
|
511
|
+
// Put any non-null nodes that fit into update.
|
512
|
+
// Put any null nodes into enter.
|
513
|
+
// Put any remaining data into enter.
|
514
|
+
for (; i < dataLength; ++i) {
|
515
|
+
if (node = group[i]) {
|
516
|
+
node.__data__ = data[i];
|
517
|
+
update[i] = node;
|
518
|
+
} else {
|
519
|
+
enter[i] = new EnterNode(parent, data[i]);
|
520
|
+
}
|
521
|
+
}
|
522
|
+
|
523
|
+
// Put any non-null nodes that don’t fit into exit.
|
524
|
+
for (; i < groupLength; ++i) {
|
525
|
+
if (node = group[i]) {
|
526
|
+
exit[i] = node;
|
527
|
+
}
|
528
|
+
}
|
529
|
+
}
|
530
|
+
|
531
|
+
function bindKey(parent, group, enter, update, exit, data, key) {
|
532
|
+
var i,
|
533
|
+
node,
|
534
|
+
nodeByKeyValue = new Map,
|
535
|
+
groupLength = group.length,
|
536
|
+
dataLength = data.length,
|
537
|
+
keyValues = new Array(groupLength),
|
538
|
+
keyValue;
|
539
|
+
|
540
|
+
// Compute the key for each node.
|
541
|
+
// If multiple nodes have the same key, the duplicates are added to exit.
|
542
|
+
for (i = 0; i < groupLength; ++i) {
|
543
|
+
if (node = group[i]) {
|
544
|
+
keyValues[i] = keyValue = key.call(node, node.__data__, i, group) + "";
|
545
|
+
if (nodeByKeyValue.has(keyValue)) {
|
546
|
+
exit[i] = node;
|
547
|
+
} else {
|
548
|
+
nodeByKeyValue.set(keyValue, node);
|
549
|
+
}
|
550
|
+
}
|
551
|
+
}
|
552
|
+
|
553
|
+
// Compute the key for each datum.
|
554
|
+
// If there a node associated with this key, join and add it to update.
|
555
|
+
// If there is not (or the key is a duplicate), add it to enter.
|
556
|
+
for (i = 0; i < dataLength; ++i) {
|
557
|
+
keyValue = key.call(parent, data[i], i, data) + "";
|
558
|
+
if (node = nodeByKeyValue.get(keyValue)) {
|
559
|
+
update[i] = node;
|
560
|
+
node.__data__ = data[i];
|
561
|
+
nodeByKeyValue.delete(keyValue);
|
562
|
+
} else {
|
563
|
+
enter[i] = new EnterNode(parent, data[i]);
|
564
|
+
}
|
565
|
+
}
|
566
|
+
|
567
|
+
// Add any remaining nodes that were not bound to data to exit.
|
568
|
+
for (i = 0; i < groupLength; ++i) {
|
569
|
+
if ((node = group[i]) && (nodeByKeyValue.get(keyValues[i]) === node)) {
|
570
|
+
exit[i] = node;
|
571
|
+
}
|
572
|
+
}
|
573
|
+
}
|
574
|
+
|
575
|
+
function datum(node) {
|
576
|
+
return node.__data__;
|
577
|
+
}
|
578
|
+
|
579
|
+
function selection_data(value, key) {
|
580
|
+
if (!arguments.length) return Array.from(this, datum);
|
581
|
+
|
582
|
+
var bind = key ? bindKey : bindIndex,
|
583
|
+
parents = this._parents,
|
584
|
+
groups = this._groups;
|
585
|
+
|
586
|
+
if (typeof value !== "function") value = constant$2(value);
|
587
|
+
|
588
|
+
for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {
|
589
|
+
var parent = parents[j],
|
590
|
+
group = groups[j],
|
591
|
+
groupLength = group.length,
|
592
|
+
data = arraylike(value.call(parent, parent && parent.__data__, j, parents)),
|
593
|
+
dataLength = data.length,
|
594
|
+
enterGroup = enter[j] = new Array(dataLength),
|
595
|
+
updateGroup = update[j] = new Array(dataLength),
|
596
|
+
exitGroup = exit[j] = new Array(groupLength);
|
597
|
+
|
598
|
+
bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);
|
599
|
+
|
600
|
+
// Now connect the enter nodes to their following update node, such that
|
601
|
+
// appendChild can insert the materialized enter node before this node,
|
602
|
+
// rather than at the end of the parent node.
|
603
|
+
for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {
|
604
|
+
if (previous = enterGroup[i0]) {
|
605
|
+
if (i0 >= i1) i1 = i0 + 1;
|
606
|
+
while (!(next = updateGroup[i1]) && ++i1 < dataLength);
|
607
|
+
previous._next = next || null;
|
608
|
+
}
|
609
|
+
}
|
610
|
+
}
|
611
|
+
|
612
|
+
update = new Selection$1(update, parents);
|
613
|
+
update._enter = enter;
|
614
|
+
update._exit = exit;
|
615
|
+
return update;
|
616
|
+
}
|
617
|
+
|
618
|
+
// Given some data, this returns an array-like view of it: an object that
|
619
|
+
// exposes a length property and allows numeric indexing. Note that unlike
|
620
|
+
// selectAll, this isn’t worried about “live” collections because the resulting
|
621
|
+
// array will only be used briefly while data is being bound. (It is possible to
|
622
|
+
// cause the data to change while iterating by using a key function, but please
|
623
|
+
// don’t; we’d rather avoid a gratuitous copy.)
|
624
|
+
function arraylike(data) {
|
625
|
+
return typeof data === "object" && "length" in data
|
626
|
+
? data // Array, TypedArray, NodeList, array-like
|
627
|
+
: Array.from(data); // Map, Set, iterable, string, or anything else
|
628
|
+
}
|
629
|
+
|
630
|
+
function selection_exit() {
|
631
|
+
return new Selection$1(this._exit || this._groups.map(sparse), this._parents);
|
632
|
+
}
|
633
|
+
|
634
|
+
function selection_join(onenter, onupdate, onexit) {
|
635
|
+
var enter = this.enter(), update = this, exit = this.exit();
|
636
|
+
if (typeof onenter === "function") {
|
637
|
+
enter = onenter(enter);
|
638
|
+
if (enter) enter = enter.selection();
|
639
|
+
} else {
|
640
|
+
enter = enter.append(onenter + "");
|
641
|
+
}
|
642
|
+
if (onupdate != null) {
|
643
|
+
update = onupdate(update);
|
644
|
+
if (update) update = update.selection();
|
645
|
+
}
|
646
|
+
if (onexit == null) exit.remove(); else onexit(exit);
|
647
|
+
return enter && update ? enter.merge(update).order() : update;
|
648
|
+
}
|
649
|
+
|
650
|
+
function selection_merge(context) {
|
651
|
+
var selection = context.selection ? context.selection() : context;
|
652
|
+
|
653
|
+
for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {
|
654
|
+
for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {
|
655
|
+
if (node = group0[i] || group1[i]) {
|
656
|
+
merge[i] = node;
|
657
|
+
}
|
658
|
+
}
|
659
|
+
}
|
660
|
+
|
661
|
+
for (; j < m0; ++j) {
|
662
|
+
merges[j] = groups0[j];
|
663
|
+
}
|
664
|
+
|
665
|
+
return new Selection$1(merges, this._parents);
|
666
|
+
}
|
667
|
+
|
668
|
+
function selection_order() {
|
669
|
+
|
670
|
+
for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) {
|
671
|
+
for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) {
|
672
|
+
if (node = group[i]) {
|
673
|
+
if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);
|
674
|
+
next = node;
|
675
|
+
}
|
676
|
+
}
|
677
|
+
}
|
678
|
+
|
679
|
+
return this;
|
680
|
+
}
|
681
|
+
|
682
|
+
function selection_sort(compare) {
|
683
|
+
if (!compare) compare = ascending;
|
684
|
+
|
685
|
+
function compareNode(a, b) {
|
686
|
+
return a && b ? compare(a.__data__, b.__data__) : !a - !b;
|
687
|
+
}
|
688
|
+
|
689
|
+
for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {
|
690
|
+
for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {
|
691
|
+
if (node = group[i]) {
|
692
|
+
sortgroup[i] = node;
|
693
|
+
}
|
694
|
+
}
|
695
|
+
sortgroup.sort(compareNode);
|
696
|
+
}
|
697
|
+
|
698
|
+
return new Selection$1(sortgroups, this._parents).order();
|
699
|
+
}
|
700
|
+
|
701
|
+
function ascending(a, b) {
|
702
|
+
return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
703
|
+
}
|
704
|
+
|
705
|
+
function selection_call() {
|
706
|
+
var callback = arguments[0];
|
707
|
+
arguments[0] = this;
|
708
|
+
callback.apply(null, arguments);
|
709
|
+
return this;
|
710
|
+
}
|
711
|
+
|
712
|
+
function selection_nodes() {
|
713
|
+
return Array.from(this);
|
714
|
+
}
|
715
|
+
|
716
|
+
function selection_node() {
|
717
|
+
|
718
|
+
for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
|
719
|
+
for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {
|
720
|
+
var node = group[i];
|
721
|
+
if (node) return node;
|
722
|
+
}
|
723
|
+
}
|
724
|
+
|
725
|
+
return null;
|
726
|
+
}
|
727
|
+
|
728
|
+
function selection_size() {
|
729
|
+
let size = 0;
|
730
|
+
for (const node of this) ++size; // eslint-disable-line no-unused-vars
|
731
|
+
return size;
|
732
|
+
}
|
733
|
+
|
734
|
+
function selection_empty() {
|
735
|
+
return !this.node();
|
736
|
+
}
|
737
|
+
|
738
|
+
function selection_each(callback) {
|
739
|
+
|
740
|
+
for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
|
741
|
+
for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {
|
742
|
+
if (node = group[i]) callback.call(node, node.__data__, i, group);
|
743
|
+
}
|
744
|
+
}
|
745
|
+
|
746
|
+
return this;
|
747
|
+
}
|
748
|
+
|
749
|
+
function attrRemove$1(name) {
|
750
|
+
return function() {
|
751
|
+
this.removeAttribute(name);
|
752
|
+
};
|
753
|
+
}
|
754
|
+
|
755
|
+
function attrRemoveNS$1(fullname) {
|
756
|
+
return function() {
|
757
|
+
this.removeAttributeNS(fullname.space, fullname.local);
|
758
|
+
};
|
759
|
+
}
|
760
|
+
|
761
|
+
function attrConstant$1(name, value) {
|
762
|
+
return function() {
|
763
|
+
this.setAttribute(name, value);
|
764
|
+
};
|
765
|
+
}
|
766
|
+
|
767
|
+
function attrConstantNS$1(fullname, value) {
|
768
|
+
return function() {
|
769
|
+
this.setAttributeNS(fullname.space, fullname.local, value);
|
770
|
+
};
|
771
|
+
}
|
772
|
+
|
773
|
+
function attrFunction$1(name, value) {
|
774
|
+
return function() {
|
775
|
+
var v = value.apply(this, arguments);
|
776
|
+
if (v == null) this.removeAttribute(name);
|
777
|
+
else this.setAttribute(name, v);
|
778
|
+
};
|
779
|
+
}
|
780
|
+
|
781
|
+
function attrFunctionNS$1(fullname, value) {
|
782
|
+
return function() {
|
783
|
+
var v = value.apply(this, arguments);
|
784
|
+
if (v == null) this.removeAttributeNS(fullname.space, fullname.local);
|
785
|
+
else this.setAttributeNS(fullname.space, fullname.local, v);
|
786
|
+
};
|
787
|
+
}
|
788
|
+
|
789
|
+
function selection_attr(name, value) {
|
790
|
+
var fullname = namespace(name);
|
791
|
+
|
792
|
+
if (arguments.length < 2) {
|
793
|
+
var node = this.node();
|
794
|
+
return fullname.local
|
795
|
+
? node.getAttributeNS(fullname.space, fullname.local)
|
796
|
+
: node.getAttribute(fullname);
|
797
|
+
}
|
798
|
+
|
799
|
+
return this.each((value == null
|
800
|
+
? (fullname.local ? attrRemoveNS$1 : attrRemove$1) : (typeof value === "function"
|
801
|
+
? (fullname.local ? attrFunctionNS$1 : attrFunction$1)
|
802
|
+
: (fullname.local ? attrConstantNS$1 : attrConstant$1)))(fullname, value));
|
803
|
+
}
|
804
|
+
|
805
|
+
function defaultView(node) {
|
806
|
+
return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node
|
807
|
+
|| (node.document && node) // node is a Window
|
808
|
+
|| node.defaultView; // node is a Document
|
809
|
+
}
|
810
|
+
|
811
|
+
function styleRemove$1(name) {
|
812
|
+
return function() {
|
813
|
+
this.style.removeProperty(name);
|
814
|
+
};
|
815
|
+
}
|
816
|
+
|
817
|
+
function styleConstant$1(name, value, priority) {
|
818
|
+
return function() {
|
819
|
+
this.style.setProperty(name, value, priority);
|
820
|
+
};
|
821
|
+
}
|
822
|
+
|
823
|
+
function styleFunction$1(name, value, priority) {
|
824
|
+
return function() {
|
825
|
+
var v = value.apply(this, arguments);
|
826
|
+
if (v == null) this.style.removeProperty(name);
|
827
|
+
else this.style.setProperty(name, v, priority);
|
828
|
+
};
|
829
|
+
}
|
830
|
+
|
831
|
+
function selection_style(name, value, priority) {
|
832
|
+
return arguments.length > 1
|
833
|
+
? this.each((value == null
|
834
|
+
? styleRemove$1 : typeof value === "function"
|
835
|
+
? styleFunction$1
|
836
|
+
: styleConstant$1)(name, value, priority == null ? "" : priority))
|
837
|
+
: styleValue(this.node(), name);
|
838
|
+
}
|
839
|
+
|
840
|
+
function styleValue(node, name) {
|
841
|
+
return node.style.getPropertyValue(name)
|
842
|
+
|| defaultView(node).getComputedStyle(node, null).getPropertyValue(name);
|
843
|
+
}
|
844
|
+
|
845
|
+
function propertyRemove(name) {
|
846
|
+
return function() {
|
847
|
+
delete this[name];
|
848
|
+
};
|
849
|
+
}
|
850
|
+
|
851
|
+
function propertyConstant(name, value) {
|
852
|
+
return function() {
|
853
|
+
this[name] = value;
|
854
|
+
};
|
855
|
+
}
|
856
|
+
|
857
|
+
function propertyFunction(name, value) {
|
858
|
+
return function() {
|
859
|
+
var v = value.apply(this, arguments);
|
860
|
+
if (v == null) delete this[name];
|
861
|
+
else this[name] = v;
|
862
|
+
};
|
863
|
+
}
|
864
|
+
|
865
|
+
function selection_property(name, value) {
|
866
|
+
return arguments.length > 1
|
867
|
+
? this.each((value == null
|
868
|
+
? propertyRemove : typeof value === "function"
|
869
|
+
? propertyFunction
|
870
|
+
: propertyConstant)(name, value))
|
871
|
+
: this.node()[name];
|
872
|
+
}
|
873
|
+
|
874
|
+
function classArray(string) {
|
875
|
+
return string.trim().split(/^|\s+/);
|
876
|
+
}
|
877
|
+
|
878
|
+
function classList(node) {
|
879
|
+
return node.classList || new ClassList(node);
|
880
|
+
}
|
881
|
+
|
882
|
+
function ClassList(node) {
|
883
|
+
this._node = node;
|
884
|
+
this._names = classArray(node.getAttribute("class") || "");
|
885
|
+
}
|
886
|
+
|
887
|
+
ClassList.prototype = {
|
888
|
+
add: function(name) {
|
889
|
+
var i = this._names.indexOf(name);
|
890
|
+
if (i < 0) {
|
891
|
+
this._names.push(name);
|
892
|
+
this._node.setAttribute("class", this._names.join(" "));
|
893
|
+
}
|
894
|
+
},
|
895
|
+
remove: function(name) {
|
896
|
+
var i = this._names.indexOf(name);
|
897
|
+
if (i >= 0) {
|
898
|
+
this._names.splice(i, 1);
|
899
|
+
this._node.setAttribute("class", this._names.join(" "));
|
900
|
+
}
|
901
|
+
},
|
902
|
+
contains: function(name) {
|
903
|
+
return this._names.indexOf(name) >= 0;
|
904
|
+
}
|
905
|
+
};
|
906
|
+
|
907
|
+
function classedAdd(node, names) {
|
908
|
+
var list = classList(node), i = -1, n = names.length;
|
909
|
+
while (++i < n) list.add(names[i]);
|
910
|
+
}
|
911
|
+
|
912
|
+
function classedRemove(node, names) {
|
913
|
+
var list = classList(node), i = -1, n = names.length;
|
914
|
+
while (++i < n) list.remove(names[i]);
|
915
|
+
}
|
916
|
+
|
917
|
+
function classedTrue(names) {
|
918
|
+
return function() {
|
919
|
+
classedAdd(this, names);
|
920
|
+
};
|
921
|
+
}
|
922
|
+
|
923
|
+
function classedFalse(names) {
|
924
|
+
return function() {
|
925
|
+
classedRemove(this, names);
|
926
|
+
};
|
927
|
+
}
|
928
|
+
|
929
|
+
function classedFunction(names, value) {
|
930
|
+
return function() {
|
931
|
+
(value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);
|
932
|
+
};
|
933
|
+
}
|
934
|
+
|
935
|
+
function selection_classed(name, value) {
|
936
|
+
var names = classArray(name + "");
|
937
|
+
|
938
|
+
if (arguments.length < 2) {
|
939
|
+
var list = classList(this.node()), i = -1, n = names.length;
|
940
|
+
while (++i < n) if (!list.contains(names[i])) return false;
|
941
|
+
return true;
|
942
|
+
}
|
943
|
+
|
944
|
+
return this.each((typeof value === "function"
|
945
|
+
? classedFunction : value
|
946
|
+
? classedTrue
|
947
|
+
: classedFalse)(names, value));
|
948
|
+
}
|
949
|
+
|
950
|
+
function textRemove() {
|
951
|
+
this.textContent = "";
|
952
|
+
}
|
953
|
+
|
954
|
+
function textConstant$1(value) {
|
955
|
+
return function() {
|
956
|
+
this.textContent = value;
|
957
|
+
};
|
958
|
+
}
|
959
|
+
|
960
|
+
function textFunction$1(value) {
|
961
|
+
return function() {
|
962
|
+
var v = value.apply(this, arguments);
|
963
|
+
this.textContent = v == null ? "" : v;
|
964
|
+
};
|
965
|
+
}
|
966
|
+
|
967
|
+
function selection_text(value) {
|
968
|
+
return arguments.length
|
969
|
+
? this.each(value == null
|
970
|
+
? textRemove : (typeof value === "function"
|
971
|
+
? textFunction$1
|
972
|
+
: textConstant$1)(value))
|
973
|
+
: this.node().textContent;
|
974
|
+
}
|
975
|
+
|
976
|
+
function htmlRemove() {
|
977
|
+
this.innerHTML = "";
|
978
|
+
}
|
979
|
+
|
980
|
+
function htmlConstant(value) {
|
981
|
+
return function() {
|
982
|
+
this.innerHTML = value;
|
983
|
+
};
|
984
|
+
}
|
985
|
+
|
986
|
+
function htmlFunction(value) {
|
987
|
+
return function() {
|
988
|
+
var v = value.apply(this, arguments);
|
989
|
+
this.innerHTML = v == null ? "" : v;
|
990
|
+
};
|
991
|
+
}
|
992
|
+
|
993
|
+
function selection_html(value) {
|
994
|
+
return arguments.length
|
995
|
+
? this.each(value == null
|
996
|
+
? htmlRemove : (typeof value === "function"
|
997
|
+
? htmlFunction
|
998
|
+
: htmlConstant)(value))
|
999
|
+
: this.node().innerHTML;
|
1000
|
+
}
|
1001
|
+
|
1002
|
+
function raise() {
|
1003
|
+
if (this.nextSibling) this.parentNode.appendChild(this);
|
1004
|
+
}
|
1005
|
+
|
1006
|
+
function selection_raise() {
|
1007
|
+
return this.each(raise);
|
1008
|
+
}
|
1009
|
+
|
1010
|
+
function lower() {
|
1011
|
+
if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
1012
|
+
}
|
1013
|
+
|
1014
|
+
function selection_lower() {
|
1015
|
+
return this.each(lower);
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
function selection_append(name) {
|
1019
|
+
var create = typeof name === "function" ? name : creator(name);
|
1020
|
+
return this.select(function() {
|
1021
|
+
return this.appendChild(create.apply(this, arguments));
|
1022
|
+
});
|
1023
|
+
}
|
1024
|
+
|
1025
|
+
function constantNull() {
|
1026
|
+
return null;
|
1027
|
+
}
|
1028
|
+
|
1029
|
+
function selection_insert(name, before) {
|
1030
|
+
var create = typeof name === "function" ? name : creator(name),
|
1031
|
+
select = before == null ? constantNull : typeof before === "function" ? before : selector(before);
|
1032
|
+
return this.select(function() {
|
1033
|
+
return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);
|
1034
|
+
});
|
1035
|
+
}
|
1036
|
+
|
1037
|
+
function remove() {
|
1038
|
+
var parent = this.parentNode;
|
1039
|
+
if (parent) parent.removeChild(this);
|
1040
|
+
}
|
1041
|
+
|
1042
|
+
function selection_remove() {
|
1043
|
+
return this.each(remove);
|
1044
|
+
}
|
1045
|
+
|
1046
|
+
function selection_cloneShallow() {
|
1047
|
+
var clone = this.cloneNode(false), parent = this.parentNode;
|
1048
|
+
return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
|
1049
|
+
}
|
1050
|
+
|
1051
|
+
function selection_cloneDeep() {
|
1052
|
+
var clone = this.cloneNode(true), parent = this.parentNode;
|
1053
|
+
return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
|
1054
|
+
}
|
1055
|
+
|
1056
|
+
function selection_clone(deep) {
|
1057
|
+
return this.select(deep ? selection_cloneDeep : selection_cloneShallow);
|
1058
|
+
}
|
1059
|
+
|
1060
|
+
function selection_datum(value) {
|
1061
|
+
return arguments.length
|
1062
|
+
? this.property("__data__", value)
|
1063
|
+
: this.node().__data__;
|
1064
|
+
}
|
1065
|
+
|
1066
|
+
function contextListener(listener) {
|
1067
|
+
return function(event) {
|
1068
|
+
listener.call(this, event, this.__data__);
|
1069
|
+
};
|
1070
|
+
}
|
1071
|
+
|
1072
|
+
function parseTypenames(typenames) {
|
1073
|
+
return typenames.trim().split(/^|\s+/).map(function(t) {
|
1074
|
+
var name = "", i = t.indexOf(".");
|
1075
|
+
if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);
|
1076
|
+
return {type: t, name: name};
|
1077
|
+
});
|
1078
|
+
}
|
1079
|
+
|
1080
|
+
function onRemove(typename) {
|
1081
|
+
return function() {
|
1082
|
+
var on = this.__on;
|
1083
|
+
if (!on) return;
|
1084
|
+
for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {
|
1085
|
+
if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {
|
1086
|
+
this.removeEventListener(o.type, o.listener, o.options);
|
1087
|
+
} else {
|
1088
|
+
on[++i] = o;
|
1089
|
+
}
|
1090
|
+
}
|
1091
|
+
if (++i) on.length = i;
|
1092
|
+
else delete this.__on;
|
1093
|
+
};
|
1094
|
+
}
|
1095
|
+
|
1096
|
+
function onAdd(typename, value, options) {
|
1097
|
+
return function() {
|
1098
|
+
var on = this.__on, o, listener = contextListener(value);
|
1099
|
+
if (on) for (var j = 0, m = on.length; j < m; ++j) {
|
1100
|
+
if ((o = on[j]).type === typename.type && o.name === typename.name) {
|
1101
|
+
this.removeEventListener(o.type, o.listener, o.options);
|
1102
|
+
this.addEventListener(o.type, o.listener = listener, o.options = options);
|
1103
|
+
o.value = value;
|
1104
|
+
return;
|
1105
|
+
}
|
1106
|
+
}
|
1107
|
+
this.addEventListener(typename.type, listener, options);
|
1108
|
+
o = {type: typename.type, name: typename.name, value: value, listener: listener, options: options};
|
1109
|
+
if (!on) this.__on = [o];
|
1110
|
+
else on.push(o);
|
1111
|
+
};
|
1112
|
+
}
|
1113
|
+
|
1114
|
+
function selection_on(typename, value, options) {
|
1115
|
+
var typenames = parseTypenames(typename + ""), i, n = typenames.length, t;
|
1116
|
+
|
1117
|
+
if (arguments.length < 2) {
|
1118
|
+
var on = this.node().__on;
|
1119
|
+
if (on) for (var j = 0, m = on.length, o; j < m; ++j) {
|
1120
|
+
for (i = 0, o = on[j]; i < n; ++i) {
|
1121
|
+
if ((t = typenames[i]).type === o.type && t.name === o.name) {
|
1122
|
+
return o.value;
|
1123
|
+
}
|
1124
|
+
}
|
1125
|
+
}
|
1126
|
+
return;
|
1127
|
+
}
|
1128
|
+
|
1129
|
+
on = value ? onAdd : onRemove;
|
1130
|
+
for (i = 0; i < n; ++i) this.each(on(typenames[i], value, options));
|
1131
|
+
return this;
|
1132
|
+
}
|
1133
|
+
|
1134
|
+
function dispatchEvent(node, type, params) {
|
1135
|
+
var window = defaultView(node),
|
1136
|
+
event = window.CustomEvent;
|
1137
|
+
|
1138
|
+
if (typeof event === "function") {
|
1139
|
+
event = new event(type, params);
|
1140
|
+
} else {
|
1141
|
+
event = window.document.createEvent("Event");
|
1142
|
+
if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;
|
1143
|
+
else event.initEvent(type, false, false);
|
1144
|
+
}
|
1145
|
+
|
1146
|
+
node.dispatchEvent(event);
|
1147
|
+
}
|
1148
|
+
|
1149
|
+
function dispatchConstant(type, params) {
|
1150
|
+
return function() {
|
1151
|
+
return dispatchEvent(this, type, params);
|
1152
|
+
};
|
1153
|
+
}
|
1154
|
+
|
1155
|
+
function dispatchFunction(type, params) {
|
1156
|
+
return function() {
|
1157
|
+
return dispatchEvent(this, type, params.apply(this, arguments));
|
1158
|
+
};
|
1159
|
+
}
|
1160
|
+
|
1161
|
+
function selection_dispatch(type, params) {
|
1162
|
+
return this.each((typeof params === "function"
|
1163
|
+
? dispatchFunction
|
1164
|
+
: dispatchConstant)(type, params));
|
1165
|
+
}
|
1166
|
+
|
1167
|
+
function* selection_iterator() {
|
1168
|
+
for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
|
1169
|
+
for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {
|
1170
|
+
if (node = group[i]) yield node;
|
1171
|
+
}
|
1172
|
+
}
|
1173
|
+
}
|
1174
|
+
|
1175
|
+
var root = [null];
|
1176
|
+
|
1177
|
+
function Selection$1(groups, parents) {
|
1178
|
+
this._groups = groups;
|
1179
|
+
this._parents = parents;
|
1180
|
+
}
|
1181
|
+
|
1182
|
+
function selection() {
|
1183
|
+
return new Selection$1([[document.documentElement]], root);
|
1184
|
+
}
|
1185
|
+
|
1186
|
+
function selection_selection() {
|
1187
|
+
return this;
|
1188
|
+
}
|
1189
|
+
|
1190
|
+
Selection$1.prototype = selection.prototype = {
|
1191
|
+
constructor: Selection$1,
|
1192
|
+
select: selection_select,
|
1193
|
+
selectAll: selection_selectAll,
|
1194
|
+
selectChild: selection_selectChild,
|
1195
|
+
selectChildren: selection_selectChildren,
|
1196
|
+
filter: selection_filter,
|
1197
|
+
data: selection_data,
|
1198
|
+
enter: selection_enter,
|
1199
|
+
exit: selection_exit,
|
1200
|
+
join: selection_join,
|
1201
|
+
merge: selection_merge,
|
1202
|
+
selection: selection_selection,
|
1203
|
+
order: selection_order,
|
1204
|
+
sort: selection_sort,
|
1205
|
+
call: selection_call,
|
1206
|
+
nodes: selection_nodes,
|
1207
|
+
node: selection_node,
|
1208
|
+
size: selection_size,
|
1209
|
+
empty: selection_empty,
|
1210
|
+
each: selection_each,
|
1211
|
+
attr: selection_attr,
|
1212
|
+
style: selection_style,
|
1213
|
+
property: selection_property,
|
1214
|
+
classed: selection_classed,
|
1215
|
+
text: selection_text,
|
1216
|
+
html: selection_html,
|
1217
|
+
raise: selection_raise,
|
1218
|
+
lower: selection_lower,
|
1219
|
+
append: selection_append,
|
1220
|
+
insert: selection_insert,
|
1221
|
+
remove: selection_remove,
|
1222
|
+
clone: selection_clone,
|
1223
|
+
datum: selection_datum,
|
1224
|
+
on: selection_on,
|
1225
|
+
dispatch: selection_dispatch,
|
1226
|
+
[Symbol.iterator]: selection_iterator
|
1227
|
+
};
|
1228
|
+
|
1229
|
+
function d3Select(selector) {
|
1230
|
+
return typeof selector === "string"
|
1231
|
+
? new Selection$1([[document.querySelector(selector)]], [document.documentElement])
|
1232
|
+
: new Selection$1([[selector]], root);
|
1233
|
+
}
|
1234
|
+
|
1235
|
+
function d3Create(name) {
|
1236
|
+
return d3Select(creator(name).call(document.documentElement));
|
1237
|
+
}
|
1238
|
+
|
1239
|
+
function define(constructor, factory, prototype) {
|
1240
|
+
constructor.prototype = factory.prototype = prototype;
|
1241
|
+
prototype.constructor = constructor;
|
1242
|
+
}
|
1243
|
+
|
1244
|
+
function extend(parent, definition) {
|
1245
|
+
var prototype = Object.create(parent.prototype);
|
1246
|
+
for (var key in definition) prototype[key] = definition[key];
|
1247
|
+
return prototype;
|
1248
|
+
}
|
1249
|
+
|
1250
|
+
function Color() {}
|
1251
|
+
|
1252
|
+
var darker = 0.7;
|
1253
|
+
var brighter = 1 / darker;
|
1254
|
+
|
1255
|
+
var reI = "\\s*([+-]?\\d+)\\s*",
|
1256
|
+
reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",
|
1257
|
+
reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
|
1258
|
+
reHex = /^#([0-9a-f]{3,8})$/,
|
1259
|
+
reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),
|
1260
|
+
reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),
|
1261
|
+
reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),
|
1262
|
+
reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),
|
1263
|
+
reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),
|
1264
|
+
reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`);
|
1265
|
+
|
1266
|
+
var named = {
|
1267
|
+
aliceblue: 0xf0f8ff,
|
1268
|
+
antiquewhite: 0xfaebd7,
|
1269
|
+
aqua: 0x00ffff,
|
1270
|
+
aquamarine: 0x7fffd4,
|
1271
|
+
azure: 0xf0ffff,
|
1272
|
+
beige: 0xf5f5dc,
|
1273
|
+
bisque: 0xffe4c4,
|
1274
|
+
black: 0x000000,
|
1275
|
+
blanchedalmond: 0xffebcd,
|
1276
|
+
blue: 0x0000ff,
|
1277
|
+
blueviolet: 0x8a2be2,
|
1278
|
+
brown: 0xa52a2a,
|
1279
|
+
burlywood: 0xdeb887,
|
1280
|
+
cadetblue: 0x5f9ea0,
|
1281
|
+
chartreuse: 0x7fff00,
|
1282
|
+
chocolate: 0xd2691e,
|
1283
|
+
coral: 0xff7f50,
|
1284
|
+
cornflowerblue: 0x6495ed,
|
1285
|
+
cornsilk: 0xfff8dc,
|
1286
|
+
crimson: 0xdc143c,
|
1287
|
+
cyan: 0x00ffff,
|
1288
|
+
darkblue: 0x00008b,
|
1289
|
+
darkcyan: 0x008b8b,
|
1290
|
+
darkgoldenrod: 0xb8860b,
|
1291
|
+
darkgray: 0xa9a9a9,
|
1292
|
+
darkgreen: 0x006400,
|
1293
|
+
darkgrey: 0xa9a9a9,
|
1294
|
+
darkkhaki: 0xbdb76b,
|
1295
|
+
darkmagenta: 0x8b008b,
|
1296
|
+
darkolivegreen: 0x556b2f,
|
1297
|
+
darkorange: 0xff8c00,
|
1298
|
+
darkorchid: 0x9932cc,
|
1299
|
+
darkred: 0x8b0000,
|
1300
|
+
darksalmon: 0xe9967a,
|
1301
|
+
darkseagreen: 0x8fbc8f,
|
1302
|
+
darkslateblue: 0x483d8b,
|
1303
|
+
darkslategray: 0x2f4f4f,
|
1304
|
+
darkslategrey: 0x2f4f4f,
|
1305
|
+
darkturquoise: 0x00ced1,
|
1306
|
+
darkviolet: 0x9400d3,
|
1307
|
+
deeppink: 0xff1493,
|
1308
|
+
deepskyblue: 0x00bfff,
|
1309
|
+
dimgray: 0x696969,
|
1310
|
+
dimgrey: 0x696969,
|
1311
|
+
dodgerblue: 0x1e90ff,
|
1312
|
+
firebrick: 0xb22222,
|
1313
|
+
floralwhite: 0xfffaf0,
|
1314
|
+
forestgreen: 0x228b22,
|
1315
|
+
fuchsia: 0xff00ff,
|
1316
|
+
gainsboro: 0xdcdcdc,
|
1317
|
+
ghostwhite: 0xf8f8ff,
|
1318
|
+
gold: 0xffd700,
|
1319
|
+
goldenrod: 0xdaa520,
|
1320
|
+
gray: 0x808080,
|
1321
|
+
green: 0x008000,
|
1322
|
+
greenyellow: 0xadff2f,
|
1323
|
+
grey: 0x808080,
|
1324
|
+
honeydew: 0xf0fff0,
|
1325
|
+
hotpink: 0xff69b4,
|
1326
|
+
indianred: 0xcd5c5c,
|
1327
|
+
indigo: 0x4b0082,
|
1328
|
+
ivory: 0xfffff0,
|
1329
|
+
khaki: 0xf0e68c,
|
1330
|
+
lavender: 0xe6e6fa,
|
1331
|
+
lavenderblush: 0xfff0f5,
|
1332
|
+
lawngreen: 0x7cfc00,
|
1333
|
+
lemonchiffon: 0xfffacd,
|
1334
|
+
lightblue: 0xadd8e6,
|
1335
|
+
lightcoral: 0xf08080,
|
1336
|
+
lightcyan: 0xe0ffff,
|
1337
|
+
lightgoldenrodyellow: 0xfafad2,
|
1338
|
+
lightgray: 0xd3d3d3,
|
1339
|
+
lightgreen: 0x90ee90,
|
1340
|
+
lightgrey: 0xd3d3d3,
|
1341
|
+
lightpink: 0xffb6c1,
|
1342
|
+
lightsalmon: 0xffa07a,
|
1343
|
+
lightseagreen: 0x20b2aa,
|
1344
|
+
lightskyblue: 0x87cefa,
|
1345
|
+
lightslategray: 0x778899,
|
1346
|
+
lightslategrey: 0x778899,
|
1347
|
+
lightsteelblue: 0xb0c4de,
|
1348
|
+
lightyellow: 0xffffe0,
|
1349
|
+
lime: 0x00ff00,
|
1350
|
+
limegreen: 0x32cd32,
|
1351
|
+
linen: 0xfaf0e6,
|
1352
|
+
magenta: 0xff00ff,
|
1353
|
+
maroon: 0x800000,
|
1354
|
+
mediumaquamarine: 0x66cdaa,
|
1355
|
+
mediumblue: 0x0000cd,
|
1356
|
+
mediumorchid: 0xba55d3,
|
1357
|
+
mediumpurple: 0x9370db,
|
1358
|
+
mediumseagreen: 0x3cb371,
|
1359
|
+
mediumslateblue: 0x7b68ee,
|
1360
|
+
mediumspringgreen: 0x00fa9a,
|
1361
|
+
mediumturquoise: 0x48d1cc,
|
1362
|
+
mediumvioletred: 0xc71585,
|
1363
|
+
midnightblue: 0x191970,
|
1364
|
+
mintcream: 0xf5fffa,
|
1365
|
+
mistyrose: 0xffe4e1,
|
1366
|
+
moccasin: 0xffe4b5,
|
1367
|
+
navajowhite: 0xffdead,
|
1368
|
+
navy: 0x000080,
|
1369
|
+
oldlace: 0xfdf5e6,
|
1370
|
+
olive: 0x808000,
|
1371
|
+
olivedrab: 0x6b8e23,
|
1372
|
+
orange: 0xffa500,
|
1373
|
+
orangered: 0xff4500,
|
1374
|
+
orchid: 0xda70d6,
|
1375
|
+
palegoldenrod: 0xeee8aa,
|
1376
|
+
palegreen: 0x98fb98,
|
1377
|
+
paleturquoise: 0xafeeee,
|
1378
|
+
palevioletred: 0xdb7093,
|
1379
|
+
papayawhip: 0xffefd5,
|
1380
|
+
peachpuff: 0xffdab9,
|
1381
|
+
peru: 0xcd853f,
|
1382
|
+
pink: 0xffc0cb,
|
1383
|
+
plum: 0xdda0dd,
|
1384
|
+
powderblue: 0xb0e0e6,
|
1385
|
+
purple: 0x800080,
|
1386
|
+
rebeccapurple: 0x663399,
|
1387
|
+
red: 0xff0000,
|
1388
|
+
rosybrown: 0xbc8f8f,
|
1389
|
+
royalblue: 0x4169e1,
|
1390
|
+
saddlebrown: 0x8b4513,
|
1391
|
+
salmon: 0xfa8072,
|
1392
|
+
sandybrown: 0xf4a460,
|
1393
|
+
seagreen: 0x2e8b57,
|
1394
|
+
seashell: 0xfff5ee,
|
1395
|
+
sienna: 0xa0522d,
|
1396
|
+
silver: 0xc0c0c0,
|
1397
|
+
skyblue: 0x87ceeb,
|
1398
|
+
slateblue: 0x6a5acd,
|
1399
|
+
slategray: 0x708090,
|
1400
|
+
slategrey: 0x708090,
|
1401
|
+
snow: 0xfffafa,
|
1402
|
+
springgreen: 0x00ff7f,
|
1403
|
+
steelblue: 0x4682b4,
|
1404
|
+
tan: 0xd2b48c,
|
1405
|
+
teal: 0x008080,
|
1406
|
+
thistle: 0xd8bfd8,
|
1407
|
+
tomato: 0xff6347,
|
1408
|
+
turquoise: 0x40e0d0,
|
1409
|
+
violet: 0xee82ee,
|
1410
|
+
wheat: 0xf5deb3,
|
1411
|
+
white: 0xffffff,
|
1412
|
+
whitesmoke: 0xf5f5f5,
|
1413
|
+
yellow: 0xffff00,
|
1414
|
+
yellowgreen: 0x9acd32
|
1415
|
+
};
|
1416
|
+
|
1417
|
+
define(Color, color, {
|
1418
|
+
copy(channels) {
|
1419
|
+
return Object.assign(new this.constructor, this, channels);
|
1420
|
+
},
|
1421
|
+
displayable() {
|
1422
|
+
return this.rgb().displayable();
|
1423
|
+
},
|
1424
|
+
hex: color_formatHex, // Deprecated! Use color.formatHex.
|
1425
|
+
formatHex: color_formatHex,
|
1426
|
+
formatHex8: color_formatHex8,
|
1427
|
+
formatHsl: color_formatHsl,
|
1428
|
+
formatRgb: color_formatRgb,
|
1429
|
+
toString: color_formatRgb
|
1430
|
+
});
|
1431
|
+
|
1432
|
+
function color_formatHex() {
|
1433
|
+
return this.rgb().formatHex();
|
1434
|
+
}
|
1435
|
+
|
1436
|
+
function color_formatHex8() {
|
1437
|
+
return this.rgb().formatHex8();
|
1438
|
+
}
|
1439
|
+
|
1440
|
+
function color_formatHsl() {
|
1441
|
+
return hslConvert(this).formatHsl();
|
1442
|
+
}
|
1443
|
+
|
1444
|
+
function color_formatRgb() {
|
1445
|
+
return this.rgb().formatRgb();
|
1446
|
+
}
|
1447
|
+
|
1448
|
+
function color(format) {
|
1449
|
+
var m, l;
|
1450
|
+
format = (format + "").trim().toLowerCase();
|
1451
|
+
return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000
|
1452
|
+
: l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00
|
1453
|
+
: l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000
|
1454
|
+
: l === 4 ? rgba((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000
|
1455
|
+
: null) // invalid hex
|
1456
|
+
: (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)
|
1457
|
+
: (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)
|
1458
|
+
: (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)
|
1459
|
+
: (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)
|
1460
|
+
: (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)
|
1461
|
+
: (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)
|
1462
|
+
: named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins
|
1463
|
+
: format === "transparent" ? new Rgb(NaN, NaN, NaN, 0)
|
1464
|
+
: null;
|
1465
|
+
}
|
1466
|
+
|
1467
|
+
function rgbn(n) {
|
1468
|
+
return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
|
1469
|
+
}
|
1470
|
+
|
1471
|
+
function rgba(r, g, b, a) {
|
1472
|
+
if (a <= 0) r = g = b = NaN;
|
1473
|
+
return new Rgb(r, g, b, a);
|
1474
|
+
}
|
1475
|
+
|
1476
|
+
function rgbConvert(o) {
|
1477
|
+
if (!(o instanceof Color)) o = color(o);
|
1478
|
+
if (!o) return new Rgb;
|
1479
|
+
o = o.rgb();
|
1480
|
+
return new Rgb(o.r, o.g, o.b, o.opacity);
|
1481
|
+
}
|
1482
|
+
|
1483
|
+
function rgb(r, g, b, opacity) {
|
1484
|
+
return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
|
1485
|
+
}
|
1486
|
+
|
1487
|
+
function Rgb(r, g, b, opacity) {
|
1488
|
+
this.r = +r;
|
1489
|
+
this.g = +g;
|
1490
|
+
this.b = +b;
|
1491
|
+
this.opacity = +opacity;
|
1492
|
+
}
|
1493
|
+
|
1494
|
+
define(Rgb, rgb, extend(Color, {
|
1495
|
+
brighter(k) {
|
1496
|
+
k = k == null ? brighter : Math.pow(brighter, k);
|
1497
|
+
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
1498
|
+
},
|
1499
|
+
darker(k) {
|
1500
|
+
k = k == null ? darker : Math.pow(darker, k);
|
1501
|
+
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
1502
|
+
},
|
1503
|
+
rgb() {
|
1504
|
+
return this;
|
1505
|
+
},
|
1506
|
+
clamp() {
|
1507
|
+
return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
|
1508
|
+
},
|
1509
|
+
displayable() {
|
1510
|
+
return (-0.5 <= this.r && this.r < 255.5)
|
1511
|
+
&& (-0.5 <= this.g && this.g < 255.5)
|
1512
|
+
&& (-0.5 <= this.b && this.b < 255.5)
|
1513
|
+
&& (0 <= this.opacity && this.opacity <= 1);
|
1514
|
+
},
|
1515
|
+
hex: rgb_formatHex, // Deprecated! Use color.formatHex.
|
1516
|
+
formatHex: rgb_formatHex,
|
1517
|
+
formatHex8: rgb_formatHex8,
|
1518
|
+
formatRgb: rgb_formatRgb,
|
1519
|
+
toString: rgb_formatRgb
|
1520
|
+
}));
|
1521
|
+
|
1522
|
+
function rgb_formatHex() {
|
1523
|
+
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;
|
1524
|
+
}
|
1525
|
+
|
1526
|
+
function rgb_formatHex8() {
|
1527
|
+
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
1528
|
+
}
|
1529
|
+
|
1530
|
+
function rgb_formatRgb() {
|
1531
|
+
const a = clampa(this.opacity);
|
1532
|
+
return `${a === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a === 1 ? ")" : `, ${a})`}`;
|
1533
|
+
}
|
1534
|
+
|
1535
|
+
function clampa(opacity) {
|
1536
|
+
return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));
|
1537
|
+
}
|
1538
|
+
|
1539
|
+
function clampi(value) {
|
1540
|
+
return Math.max(0, Math.min(255, Math.round(value) || 0));
|
1541
|
+
}
|
1542
|
+
|
1543
|
+
function hex(value) {
|
1544
|
+
value = clampi(value);
|
1545
|
+
return (value < 16 ? "0" : "") + value.toString(16);
|
1546
|
+
}
|
1547
|
+
|
1548
|
+
function hsla(h, s, l, a) {
|
1549
|
+
if (a <= 0) h = s = l = NaN;
|
1550
|
+
else if (l <= 0 || l >= 1) h = s = NaN;
|
1551
|
+
else if (s <= 0) h = NaN;
|
1552
|
+
return new Hsl(h, s, l, a);
|
1553
|
+
}
|
1554
|
+
|
1555
|
+
function hslConvert(o) {
|
1556
|
+
if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
|
1557
|
+
if (!(o instanceof Color)) o = color(o);
|
1558
|
+
if (!o) return new Hsl;
|
1559
|
+
if (o instanceof Hsl) return o;
|
1560
|
+
o = o.rgb();
|
1561
|
+
var r = o.r / 255,
|
1562
|
+
g = o.g / 255,
|
1563
|
+
b = o.b / 255,
|
1564
|
+
min = Math.min(r, g, b),
|
1565
|
+
max = Math.max(r, g, b),
|
1566
|
+
h = NaN,
|
1567
|
+
s = max - min,
|
1568
|
+
l = (max + min) / 2;
|
1569
|
+
if (s) {
|
1570
|
+
if (r === max) h = (g - b) / s + (g < b) * 6;
|
1571
|
+
else if (g === max) h = (b - r) / s + 2;
|
1572
|
+
else h = (r - g) / s + 4;
|
1573
|
+
s /= l < 0.5 ? max + min : 2 - max - min;
|
1574
|
+
h *= 60;
|
1575
|
+
} else {
|
1576
|
+
s = l > 0 && l < 1 ? 0 : h;
|
1577
|
+
}
|
1578
|
+
return new Hsl(h, s, l, o.opacity);
|
1579
|
+
}
|
1580
|
+
|
1581
|
+
function hsl(h, s, l, opacity) {
|
1582
|
+
return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
|
1583
|
+
}
|
1584
|
+
|
1585
|
+
function Hsl(h, s, l, opacity) {
|
1586
|
+
this.h = +h;
|
1587
|
+
this.s = +s;
|
1588
|
+
this.l = +l;
|
1589
|
+
this.opacity = +opacity;
|
1590
|
+
}
|
1591
|
+
|
1592
|
+
define(Hsl, hsl, extend(Color, {
|
1593
|
+
brighter(k) {
|
1594
|
+
k = k == null ? brighter : Math.pow(brighter, k);
|
1595
|
+
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
1596
|
+
},
|
1597
|
+
darker(k) {
|
1598
|
+
k = k == null ? darker : Math.pow(darker, k);
|
1599
|
+
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
1600
|
+
},
|
1601
|
+
rgb() {
|
1602
|
+
var h = this.h % 360 + (this.h < 0) * 360,
|
1603
|
+
s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
|
1604
|
+
l = this.l,
|
1605
|
+
m2 = l + (l < 0.5 ? l : 1 - l) * s,
|
1606
|
+
m1 = 2 * l - m2;
|
1607
|
+
return new Rgb(
|
1608
|
+
hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),
|
1609
|
+
hsl2rgb(h, m1, m2),
|
1610
|
+
hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),
|
1611
|
+
this.opacity
|
1612
|
+
);
|
1613
|
+
},
|
1614
|
+
clamp() {
|
1615
|
+
return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
|
1616
|
+
},
|
1617
|
+
displayable() {
|
1618
|
+
return (0 <= this.s && this.s <= 1 || isNaN(this.s))
|
1619
|
+
&& (0 <= this.l && this.l <= 1)
|
1620
|
+
&& (0 <= this.opacity && this.opacity <= 1);
|
1621
|
+
},
|
1622
|
+
formatHsl() {
|
1623
|
+
const a = clampa(this.opacity);
|
1624
|
+
return `${a === 1 ? "hsl(" : "hsla("}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a === 1 ? ")" : `, ${a})`}`;
|
1625
|
+
}
|
1626
|
+
}));
|
1627
|
+
|
1628
|
+
function clamph(value) {
|
1629
|
+
value = (value || 0) % 360;
|
1630
|
+
return value < 0 ? value + 360 : value;
|
1631
|
+
}
|
1632
|
+
|
1633
|
+
function clampt(value) {
|
1634
|
+
return Math.max(0, Math.min(1, value || 0));
|
1635
|
+
}
|
1636
|
+
|
1637
|
+
/* From FvD 13.37, CSS Color Module Level 3 */
|
1638
|
+
function hsl2rgb(h, m1, m2) {
|
1639
|
+
return (h < 60 ? m1 + (m2 - m1) * h / 60
|
1640
|
+
: h < 180 ? m2
|
1641
|
+
: h < 240 ? m1 + (m2 - m1) * (240 - h) / 60
|
1642
|
+
: m1) * 255;
|
1643
|
+
}
|
1644
|
+
|
1645
|
+
const constant$1 = x => () => x;
|
1646
|
+
|
1647
|
+
function linear(a, d) {
|
1648
|
+
return function(t) {
|
1649
|
+
return a + t * d;
|
1650
|
+
};
|
1651
|
+
}
|
1652
|
+
|
1653
|
+
function exponential(a, b, y) {
|
1654
|
+
return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {
|
1655
|
+
return Math.pow(a + t * b, y);
|
1656
|
+
};
|
1657
|
+
}
|
1658
|
+
|
1659
|
+
function gamma(y) {
|
1660
|
+
return (y = +y) === 1 ? nogamma : function(a, b) {
|
1661
|
+
return b - a ? exponential(a, b, y) : constant$1(isNaN(a) ? b : a);
|
1662
|
+
};
|
1663
|
+
}
|
1664
|
+
|
1665
|
+
function nogamma(a, b) {
|
1666
|
+
var d = b - a;
|
1667
|
+
return d ? linear(a, d) : constant$1(isNaN(a) ? b : a);
|
1668
|
+
}
|
1669
|
+
|
1670
|
+
const interpolateRgb = (function rgbGamma(y) {
|
1671
|
+
var color = gamma(y);
|
1672
|
+
|
1673
|
+
function rgb$1(start, end) {
|
1674
|
+
var r = color((start = rgb(start)).r, (end = rgb(end)).r),
|
1675
|
+
g = color(start.g, end.g),
|
1676
|
+
b = color(start.b, end.b),
|
1677
|
+
opacity = nogamma(start.opacity, end.opacity);
|
1678
|
+
return function(t) {
|
1679
|
+
start.r = r(t);
|
1680
|
+
start.g = g(t);
|
1681
|
+
start.b = b(t);
|
1682
|
+
start.opacity = opacity(t);
|
1683
|
+
return start + "";
|
1684
|
+
};
|
1685
|
+
}
|
1686
|
+
|
1687
|
+
rgb$1.gamma = rgbGamma;
|
1688
|
+
|
1689
|
+
return rgb$1;
|
1690
|
+
})(1);
|
1691
|
+
|
1692
|
+
function interpolateNumber(a, b) {
|
1693
|
+
return a = +a, b = +b, function(t) {
|
1694
|
+
return a * (1 - t) + b * t;
|
1695
|
+
};
|
1696
|
+
}
|
1697
|
+
|
1698
|
+
var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
|
1699
|
+
reB = new RegExp(reA.source, "g");
|
1700
|
+
|
1701
|
+
function zero(b) {
|
1702
|
+
return function() {
|
1703
|
+
return b;
|
1704
|
+
};
|
1705
|
+
}
|
1706
|
+
|
1707
|
+
function one(b) {
|
1708
|
+
return function(t) {
|
1709
|
+
return b(t) + "";
|
1710
|
+
};
|
1711
|
+
}
|
1712
|
+
|
1713
|
+
function interpolateString(a, b) {
|
1714
|
+
var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b
|
1715
|
+
am, // current match in a
|
1716
|
+
bm, // current match in b
|
1717
|
+
bs, // string preceding current number in b, if any
|
1718
|
+
i = -1, // index in s
|
1719
|
+
s = [], // string constants and placeholders
|
1720
|
+
q = []; // number interpolators
|
1721
|
+
|
1722
|
+
// Coerce inputs to strings.
|
1723
|
+
a = a + "", b = b + "";
|
1724
|
+
|
1725
|
+
// Interpolate pairs of numbers in a & b.
|
1726
|
+
while ((am = reA.exec(a))
|
1727
|
+
&& (bm = reB.exec(b))) {
|
1728
|
+
if ((bs = bm.index) > bi) { // a string precedes the next number in b
|
1729
|
+
bs = b.slice(bi, bs);
|
1730
|
+
if (s[i]) s[i] += bs; // coalesce with previous string
|
1731
|
+
else s[++i] = bs;
|
1732
|
+
}
|
1733
|
+
if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match
|
1734
|
+
if (s[i]) s[i] += bm; // coalesce with previous string
|
1735
|
+
else s[++i] = bm;
|
1736
|
+
} else { // interpolate non-matching numbers
|
1737
|
+
s[++i] = null;
|
1738
|
+
q.push({i: i, x: interpolateNumber(am, bm)});
|
1739
|
+
}
|
1740
|
+
bi = reB.lastIndex;
|
1741
|
+
}
|
1742
|
+
|
1743
|
+
// Add remains of b.
|
1744
|
+
if (bi < b.length) {
|
1745
|
+
bs = b.slice(bi);
|
1746
|
+
if (s[i]) s[i] += bs; // coalesce with previous string
|
1747
|
+
else s[++i] = bs;
|
1748
|
+
}
|
1749
|
+
|
1750
|
+
// Special optimization for only a single match.
|
1751
|
+
// Otherwise, interpolate each of the numbers and rejoin the string.
|
1752
|
+
return s.length < 2 ? (q[0]
|
1753
|
+
? one(q[0].x)
|
1754
|
+
: zero(b))
|
1755
|
+
: (b = q.length, function(t) {
|
1756
|
+
for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);
|
1757
|
+
return s.join("");
|
1758
|
+
});
|
1759
|
+
}
|
1760
|
+
|
1761
|
+
var degrees = 180 / Math.PI;
|
1762
|
+
|
1763
|
+
var identity = {
|
1764
|
+
translateX: 0,
|
1765
|
+
translateY: 0,
|
1766
|
+
rotate: 0,
|
1767
|
+
skewX: 0,
|
1768
|
+
scaleX: 1,
|
1769
|
+
scaleY: 1
|
1770
|
+
};
|
1771
|
+
|
1772
|
+
function decompose(a, b, c, d, e, f) {
|
1773
|
+
var scaleX, scaleY, skewX;
|
1774
|
+
if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;
|
1775
|
+
if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;
|
1776
|
+
if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;
|
1777
|
+
if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;
|
1778
|
+
return {
|
1779
|
+
translateX: e,
|
1780
|
+
translateY: f,
|
1781
|
+
rotate: Math.atan2(b, a) * degrees,
|
1782
|
+
skewX: Math.atan(skewX) * degrees,
|
1783
|
+
scaleX: scaleX,
|
1784
|
+
scaleY: scaleY
|
1785
|
+
};
|
1786
|
+
}
|
1787
|
+
|
1788
|
+
var svgNode;
|
1789
|
+
|
1790
|
+
/* eslint-disable no-undef */
|
1791
|
+
function parseCss(value) {
|
1792
|
+
const m = new (typeof DOMMatrix === "function" ? DOMMatrix : WebKitCSSMatrix)(value + "");
|
1793
|
+
return m.isIdentity ? identity : decompose(m.a, m.b, m.c, m.d, m.e, m.f);
|
1794
|
+
}
|
1795
|
+
|
1796
|
+
function parseSvg(value) {
|
1797
|
+
if (value == null) return identity;
|
1798
|
+
if (!svgNode) svgNode = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
1799
|
+
svgNode.setAttribute("transform", value);
|
1800
|
+
if (!(value = svgNode.transform.baseVal.consolidate())) return identity;
|
1801
|
+
value = value.matrix;
|
1802
|
+
return decompose(value.a, value.b, value.c, value.d, value.e, value.f);
|
1803
|
+
}
|
1804
|
+
|
1805
|
+
function interpolateTransform(parse, pxComma, pxParen, degParen) {
|
1806
|
+
|
1807
|
+
function pop(s) {
|
1808
|
+
return s.length ? s.pop() + " " : "";
|
1809
|
+
}
|
1810
|
+
|
1811
|
+
function translate(xa, ya, xb, yb, s, q) {
|
1812
|
+
if (xa !== xb || ya !== yb) {
|
1813
|
+
var i = s.push("translate(", null, pxComma, null, pxParen);
|
1814
|
+
q.push({i: i - 4, x: interpolateNumber(xa, xb)}, {i: i - 2, x: interpolateNumber(ya, yb)});
|
1815
|
+
} else if (xb || yb) {
|
1816
|
+
s.push("translate(" + xb + pxComma + yb + pxParen);
|
1817
|
+
}
|
1818
|
+
}
|
1819
|
+
|
1820
|
+
function rotate(a, b, s, q) {
|
1821
|
+
if (a !== b) {
|
1822
|
+
if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path
|
1823
|
+
q.push({i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: interpolateNumber(a, b)});
|
1824
|
+
} else if (b) {
|
1825
|
+
s.push(pop(s) + "rotate(" + b + degParen);
|
1826
|
+
}
|
1827
|
+
}
|
1828
|
+
|
1829
|
+
function skewX(a, b, s, q) {
|
1830
|
+
if (a !== b) {
|
1831
|
+
q.push({i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: interpolateNumber(a, b)});
|
1832
|
+
} else if (b) {
|
1833
|
+
s.push(pop(s) + "skewX(" + b + degParen);
|
1834
|
+
}
|
1835
|
+
}
|
1836
|
+
|
1837
|
+
function scale(xa, ya, xb, yb, s, q) {
|
1838
|
+
if (xa !== xb || ya !== yb) {
|
1839
|
+
var i = s.push(pop(s) + "scale(", null, ",", null, ")");
|
1840
|
+
q.push({i: i - 4, x: interpolateNumber(xa, xb)}, {i: i - 2, x: interpolateNumber(ya, yb)});
|
1841
|
+
} else if (xb !== 1 || yb !== 1) {
|
1842
|
+
s.push(pop(s) + "scale(" + xb + "," + yb + ")");
|
1843
|
+
}
|
1844
|
+
}
|
1845
|
+
|
1846
|
+
return function(a, b) {
|
1847
|
+
var s = [], // string constants and placeholders
|
1848
|
+
q = []; // number interpolators
|
1849
|
+
a = parse(a), b = parse(b);
|
1850
|
+
translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);
|
1851
|
+
rotate(a.rotate, b.rotate, s, q);
|
1852
|
+
skewX(a.skewX, b.skewX, s, q);
|
1853
|
+
scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);
|
1854
|
+
a = b = null; // gc
|
1855
|
+
return function(t) {
|
1856
|
+
var i = -1, n = q.length, o;
|
1857
|
+
while (++i < n) s[(o = q[i]).i] = o.x(t);
|
1858
|
+
return s.join("");
|
1859
|
+
};
|
1860
|
+
};
|
1861
|
+
}
|
1862
|
+
|
1863
|
+
var interpolateTransformCss = interpolateTransform(parseCss, "px, ", "px)", "deg)");
|
1864
|
+
var interpolateTransformSvg = interpolateTransform(parseSvg, ", ", ")", ")");
|
1865
|
+
|
1866
|
+
var frame = 0, // is an animation frame pending?
|
1867
|
+
timeout$1 = 0, // is a timeout pending?
|
1868
|
+
interval = 0, // are any timers active?
|
1869
|
+
pokeDelay = 1000, // how frequently we check for clock skew
|
1870
|
+
taskHead,
|
1871
|
+
taskTail,
|
1872
|
+
clockLast = 0,
|
1873
|
+
clockNow = 0,
|
1874
|
+
clockSkew = 0,
|
1875
|
+
clock = typeof performance === "object" && performance.now ? performance : Date,
|
1876
|
+
setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };
|
1877
|
+
|
1878
|
+
function now() {
|
1879
|
+
return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);
|
1880
|
+
}
|
1881
|
+
|
1882
|
+
function clearNow() {
|
1883
|
+
clockNow = 0;
|
1884
|
+
}
|
1885
|
+
|
1886
|
+
function Timer() {
|
1887
|
+
this._call =
|
1888
|
+
this._time =
|
1889
|
+
this._next = null;
|
1890
|
+
}
|
1891
|
+
|
1892
|
+
Timer.prototype = timer.prototype = {
|
1893
|
+
constructor: Timer,
|
1894
|
+
restart: function(callback, delay, time) {
|
1895
|
+
if (typeof callback !== "function") throw new TypeError("callback is not a function");
|
1896
|
+
time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);
|
1897
|
+
if (!this._next && taskTail !== this) {
|
1898
|
+
if (taskTail) taskTail._next = this;
|
1899
|
+
else taskHead = this;
|
1900
|
+
taskTail = this;
|
1901
|
+
}
|
1902
|
+
this._call = callback;
|
1903
|
+
this._time = time;
|
1904
|
+
sleep();
|
1905
|
+
},
|
1906
|
+
stop: function() {
|
1907
|
+
if (this._call) {
|
1908
|
+
this._call = null;
|
1909
|
+
this._time = Infinity;
|
1910
|
+
sleep();
|
1911
|
+
}
|
1912
|
+
}
|
1913
|
+
};
|
1914
|
+
|
1915
|
+
function timer(callback, delay, time) {
|
1916
|
+
var t = new Timer;
|
1917
|
+
t.restart(callback, delay, time);
|
1918
|
+
return t;
|
1919
|
+
}
|
1920
|
+
|
1921
|
+
function timerFlush() {
|
1922
|
+
now(); // Get the current time, if not already set.
|
1923
|
+
++frame; // Pretend we’ve set an alarm, if we haven’t already.
|
1924
|
+
var t = taskHead, e;
|
1925
|
+
while (t) {
|
1926
|
+
if ((e = clockNow - t._time) >= 0) t._call.call(undefined, e);
|
1927
|
+
t = t._next;
|
1928
|
+
}
|
1929
|
+
--frame;
|
1930
|
+
}
|
1931
|
+
|
1932
|
+
function wake() {
|
1933
|
+
clockNow = (clockLast = clock.now()) + clockSkew;
|
1934
|
+
frame = timeout$1 = 0;
|
1935
|
+
try {
|
1936
|
+
timerFlush();
|
1937
|
+
} finally {
|
1938
|
+
frame = 0;
|
1939
|
+
nap();
|
1940
|
+
clockNow = 0;
|
1941
|
+
}
|
1942
|
+
}
|
1943
|
+
|
1944
|
+
function poke() {
|
1945
|
+
var now = clock.now(), delay = now - clockLast;
|
1946
|
+
if (delay > pokeDelay) clockSkew -= delay, clockLast = now;
|
1947
|
+
}
|
1948
|
+
|
1949
|
+
function nap() {
|
1950
|
+
var t0, t1 = taskHead, t2, time = Infinity;
|
1951
|
+
while (t1) {
|
1952
|
+
if (t1._call) {
|
1953
|
+
if (time > t1._time) time = t1._time;
|
1954
|
+
t0 = t1, t1 = t1._next;
|
1955
|
+
} else {
|
1956
|
+
t2 = t1._next, t1._next = null;
|
1957
|
+
t1 = t0 ? t0._next = t2 : taskHead = t2;
|
1958
|
+
}
|
1959
|
+
}
|
1960
|
+
taskTail = t0;
|
1961
|
+
sleep(time);
|
1962
|
+
}
|
1963
|
+
|
1964
|
+
function sleep(time) {
|
1965
|
+
if (frame) return; // Soonest alarm already set, or will be.
|
1966
|
+
if (timeout$1) timeout$1 = clearTimeout(timeout$1);
|
1967
|
+
var delay = time - clockNow; // Strictly less than if we recomputed clockNow.
|
1968
|
+
if (delay > 24) {
|
1969
|
+
if (time < Infinity) timeout$1 = setTimeout(wake, time - clock.now() - clockSkew);
|
1970
|
+
if (interval) interval = clearInterval(interval);
|
1971
|
+
} else {
|
1972
|
+
if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);
|
1973
|
+
frame = 1, setFrame(wake);
|
1974
|
+
}
|
1975
|
+
}
|
1976
|
+
|
1977
|
+
function timeout(callback, delay, time) {
|
1978
|
+
var t = new Timer;
|
1979
|
+
delay = delay == null ? 0 : +delay;
|
1980
|
+
t.restart(elapsed => {
|
1981
|
+
t.stop();
|
1982
|
+
callback(elapsed + delay);
|
1983
|
+
}, delay, time);
|
1984
|
+
return t;
|
1985
|
+
}
|
1986
|
+
|
1987
|
+
var emptyOn = dispatch("start", "end", "cancel", "interrupt");
|
1988
|
+
var emptyTween = [];
|
1989
|
+
|
1990
|
+
var CREATED = 0;
|
1991
|
+
var SCHEDULED = 1;
|
1992
|
+
var STARTING = 2;
|
1993
|
+
var STARTED = 3;
|
1994
|
+
var RUNNING = 4;
|
1995
|
+
var ENDING = 5;
|
1996
|
+
var ENDED = 6;
|
1997
|
+
|
1998
|
+
function schedule(node, name, id, index, group, timing) {
|
1999
|
+
var schedules = node.__transition;
|
2000
|
+
if (!schedules) node.__transition = {};
|
2001
|
+
else if (id in schedules) return;
|
2002
|
+
create(node, id, {
|
2003
|
+
name: name,
|
2004
|
+
index: index, // For context during callback.
|
2005
|
+
group: group, // For context during callback.
|
2006
|
+
on: emptyOn,
|
2007
|
+
tween: emptyTween,
|
2008
|
+
time: timing.time,
|
2009
|
+
delay: timing.delay,
|
2010
|
+
duration: timing.duration,
|
2011
|
+
ease: timing.ease,
|
2012
|
+
timer: null,
|
2013
|
+
state: CREATED
|
2014
|
+
});
|
2015
|
+
}
|
2016
|
+
|
2017
|
+
function init(node, id) {
|
2018
|
+
var schedule = get(node, id);
|
2019
|
+
if (schedule.state > CREATED) throw new Error("too late; already scheduled");
|
2020
|
+
return schedule;
|
2021
|
+
}
|
2022
|
+
|
2023
|
+
function set(node, id) {
|
2024
|
+
var schedule = get(node, id);
|
2025
|
+
if (schedule.state > STARTED) throw new Error("too late; already running");
|
2026
|
+
return schedule;
|
2027
|
+
}
|
2028
|
+
|
2029
|
+
function get(node, id) {
|
2030
|
+
var schedule = node.__transition;
|
2031
|
+
if (!schedule || !(schedule = schedule[id])) throw new Error("transition not found");
|
2032
|
+
return schedule;
|
2033
|
+
}
|
2034
|
+
|
2035
|
+
function create(node, id, self) {
|
2036
|
+
var schedules = node.__transition,
|
2037
|
+
tween;
|
2038
|
+
|
2039
|
+
// Initialize the self timer when the transition is created.
|
2040
|
+
// Note the actual delay is not known until the first callback!
|
2041
|
+
schedules[id] = self;
|
2042
|
+
self.timer = timer(schedule, 0, self.time);
|
2043
|
+
|
2044
|
+
function schedule(elapsed) {
|
2045
|
+
self.state = SCHEDULED;
|
2046
|
+
self.timer.restart(start, self.delay, self.time);
|
2047
|
+
|
2048
|
+
// If the elapsed delay is less than our first sleep, start immediately.
|
2049
|
+
if (self.delay <= elapsed) start(elapsed - self.delay);
|
2050
|
+
}
|
2051
|
+
|
2052
|
+
function start(elapsed) {
|
2053
|
+
var i, j, n, o;
|
2054
|
+
|
2055
|
+
// If the state is not SCHEDULED, then we previously errored on start.
|
2056
|
+
if (self.state !== SCHEDULED) return stop();
|
2057
|
+
|
2058
|
+
for (i in schedules) {
|
2059
|
+
o = schedules[i];
|
2060
|
+
if (o.name !== self.name) continue;
|
2061
|
+
|
2062
|
+
// While this element already has a starting transition during this frame,
|
2063
|
+
// defer starting an interrupting transition until that transition has a
|
2064
|
+
// chance to tick (and possibly end); see d3/d3-transition#54!
|
2065
|
+
if (o.state === STARTED) return timeout(start);
|
2066
|
+
|
2067
|
+
// Interrupt the active transition, if any.
|
2068
|
+
if (o.state === RUNNING) {
|
2069
|
+
o.state = ENDED;
|
2070
|
+
o.timer.stop();
|
2071
|
+
o.on.call("interrupt", node, node.__data__, o.index, o.group);
|
2072
|
+
delete schedules[i];
|
2073
|
+
}
|
2074
|
+
|
2075
|
+
// Cancel any pre-empted transitions.
|
2076
|
+
else if (+i < id) {
|
2077
|
+
o.state = ENDED;
|
2078
|
+
o.timer.stop();
|
2079
|
+
o.on.call("cancel", node, node.__data__, o.index, o.group);
|
2080
|
+
delete schedules[i];
|
2081
|
+
}
|
2082
|
+
}
|
2083
|
+
|
2084
|
+
// Defer the first tick to end of the current frame; see d3/d3#1576.
|
2085
|
+
// Note the transition may be canceled after start and before the first tick!
|
2086
|
+
// Note this must be scheduled before the start event; see d3/d3-transition#16!
|
2087
|
+
// Assuming this is successful, subsequent callbacks go straight to tick.
|
2088
|
+
timeout(function() {
|
2089
|
+
if (self.state === STARTED) {
|
2090
|
+
self.state = RUNNING;
|
2091
|
+
self.timer.restart(tick, self.delay, self.time);
|
2092
|
+
tick(elapsed);
|
2093
|
+
}
|
2094
|
+
});
|
2095
|
+
|
2096
|
+
// Dispatch the start event.
|
2097
|
+
// Note this must be done before the tween are initialized.
|
2098
|
+
self.state = STARTING;
|
2099
|
+
self.on.call("start", node, node.__data__, self.index, self.group);
|
2100
|
+
if (self.state !== STARTING) return; // interrupted
|
2101
|
+
self.state = STARTED;
|
2102
|
+
|
2103
|
+
// Initialize the tween, deleting null tween.
|
2104
|
+
tween = new Array(n = self.tween.length);
|
2105
|
+
for (i = 0, j = -1; i < n; ++i) {
|
2106
|
+
if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) {
|
2107
|
+
tween[++j] = o;
|
2108
|
+
}
|
2109
|
+
}
|
2110
|
+
tween.length = j + 1;
|
2111
|
+
}
|
2112
|
+
|
2113
|
+
function tick(elapsed) {
|
2114
|
+
var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.timer.restart(stop), self.state = ENDING, 1),
|
2115
|
+
i = -1,
|
2116
|
+
n = tween.length;
|
2117
|
+
|
2118
|
+
while (++i < n) {
|
2119
|
+
tween[i].call(node, t);
|
2120
|
+
}
|
2121
|
+
|
2122
|
+
// Dispatch the end event.
|
2123
|
+
if (self.state === ENDING) {
|
2124
|
+
self.on.call("end", node, node.__data__, self.index, self.group);
|
2125
|
+
stop();
|
2126
|
+
}
|
2127
|
+
}
|
2128
|
+
|
2129
|
+
function stop() {
|
2130
|
+
self.state = ENDED;
|
2131
|
+
self.timer.stop();
|
2132
|
+
delete schedules[id];
|
2133
|
+
for (var i in schedules) return; // eslint-disable-line no-unused-vars
|
2134
|
+
delete node.__transition;
|
2135
|
+
}
|
2136
|
+
}
|
2137
|
+
|
2138
|
+
function interrupt(node, name) {
|
2139
|
+
var schedules = node.__transition,
|
2140
|
+
schedule,
|
2141
|
+
active,
|
2142
|
+
empty = true,
|
2143
|
+
i;
|
2144
|
+
|
2145
|
+
if (!schedules) return;
|
2146
|
+
|
2147
|
+
name = name == null ? null : name + "";
|
2148
|
+
|
2149
|
+
for (i in schedules) {
|
2150
|
+
if ((schedule = schedules[i]).name !== name) { empty = false; continue; }
|
2151
|
+
active = schedule.state > STARTING && schedule.state < ENDING;
|
2152
|
+
schedule.state = ENDED;
|
2153
|
+
schedule.timer.stop();
|
2154
|
+
schedule.on.call(active ? "interrupt" : "cancel", node, node.__data__, schedule.index, schedule.group);
|
2155
|
+
delete schedules[i];
|
2156
|
+
}
|
2157
|
+
|
2158
|
+
if (empty) delete node.__transition;
|
2159
|
+
}
|
2160
|
+
|
2161
|
+
function selection_interrupt(name) {
|
2162
|
+
return this.each(function() {
|
2163
|
+
interrupt(this, name);
|
2164
|
+
});
|
2165
|
+
}
|
2166
|
+
|
2167
|
+
function tweenRemove(id, name) {
|
2168
|
+
var tween0, tween1;
|
2169
|
+
return function() {
|
2170
|
+
var schedule = set(this, id),
|
2171
|
+
tween = schedule.tween;
|
2172
|
+
|
2173
|
+
// If this node shared tween with the previous node,
|
2174
|
+
// just assign the updated shared tween and we’re done!
|
2175
|
+
// Otherwise, copy-on-write.
|
2176
|
+
if (tween !== tween0) {
|
2177
|
+
tween1 = tween0 = tween;
|
2178
|
+
for (var i = 0, n = tween1.length; i < n; ++i) {
|
2179
|
+
if (tween1[i].name === name) {
|
2180
|
+
tween1 = tween1.slice();
|
2181
|
+
tween1.splice(i, 1);
|
2182
|
+
break;
|
2183
|
+
}
|
2184
|
+
}
|
2185
|
+
}
|
2186
|
+
|
2187
|
+
schedule.tween = tween1;
|
2188
|
+
};
|
2189
|
+
}
|
2190
|
+
|
2191
|
+
function tweenFunction(id, name, value) {
|
2192
|
+
var tween0, tween1;
|
2193
|
+
if (typeof value !== "function") throw new Error;
|
2194
|
+
return function() {
|
2195
|
+
var schedule = set(this, id),
|
2196
|
+
tween = schedule.tween;
|
2197
|
+
|
2198
|
+
// If this node shared tween with the previous node,
|
2199
|
+
// just assign the updated shared tween and we’re done!
|
2200
|
+
// Otherwise, copy-on-write.
|
2201
|
+
if (tween !== tween0) {
|
2202
|
+
tween1 = (tween0 = tween).slice();
|
2203
|
+
for (var t = {name: name, value: value}, i = 0, n = tween1.length; i < n; ++i) {
|
2204
|
+
if (tween1[i].name === name) {
|
2205
|
+
tween1[i] = t;
|
2206
|
+
break;
|
2207
|
+
}
|
2208
|
+
}
|
2209
|
+
if (i === n) tween1.push(t);
|
2210
|
+
}
|
2211
|
+
|
2212
|
+
schedule.tween = tween1;
|
2213
|
+
};
|
2214
|
+
}
|
2215
|
+
|
2216
|
+
function transition_tween(name, value) {
|
2217
|
+
var id = this._id;
|
2218
|
+
|
2219
|
+
name += "";
|
2220
|
+
|
2221
|
+
if (arguments.length < 2) {
|
2222
|
+
var tween = get(this.node(), id).tween;
|
2223
|
+
for (var i = 0, n = tween.length, t; i < n; ++i) {
|
2224
|
+
if ((t = tween[i]).name === name) {
|
2225
|
+
return t.value;
|
2226
|
+
}
|
2227
|
+
}
|
2228
|
+
return null;
|
2229
|
+
}
|
2230
|
+
|
2231
|
+
return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value));
|
2232
|
+
}
|
2233
|
+
|
2234
|
+
function tweenValue(transition, name, value) {
|
2235
|
+
var id = transition._id;
|
2236
|
+
|
2237
|
+
transition.each(function() {
|
2238
|
+
var schedule = set(this, id);
|
2239
|
+
(schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments);
|
2240
|
+
});
|
2241
|
+
|
2242
|
+
return function(node) {
|
2243
|
+
return get(node, id).value[name];
|
2244
|
+
};
|
2245
|
+
}
|
2246
|
+
|
2247
|
+
function interpolate(a, b) {
|
2248
|
+
var c;
|
2249
|
+
return (typeof b === "number" ? interpolateNumber
|
2250
|
+
: b instanceof color ? interpolateRgb
|
2251
|
+
: (c = color(b)) ? (b = c, interpolateRgb)
|
2252
|
+
: interpolateString)(a, b);
|
2253
|
+
}
|
2254
|
+
|
2255
|
+
function attrRemove(name) {
|
2256
|
+
return function() {
|
2257
|
+
this.removeAttribute(name);
|
2258
|
+
};
|
2259
|
+
}
|
2260
|
+
|
2261
|
+
function attrRemoveNS(fullname) {
|
2262
|
+
return function() {
|
2263
|
+
this.removeAttributeNS(fullname.space, fullname.local);
|
2264
|
+
};
|
2265
|
+
}
|
2266
|
+
|
2267
|
+
function attrConstant(name, interpolate, value1) {
|
2268
|
+
var string00,
|
2269
|
+
string1 = value1 + "",
|
2270
|
+
interpolate0;
|
2271
|
+
return function() {
|
2272
|
+
var string0 = this.getAttribute(name);
|
2273
|
+
return string0 === string1 ? null
|
2274
|
+
: string0 === string00 ? interpolate0
|
2275
|
+
: interpolate0 = interpolate(string00 = string0, value1);
|
2276
|
+
};
|
2277
|
+
}
|
2278
|
+
|
2279
|
+
function attrConstantNS(fullname, interpolate, value1) {
|
2280
|
+
var string00,
|
2281
|
+
string1 = value1 + "",
|
2282
|
+
interpolate0;
|
2283
|
+
return function() {
|
2284
|
+
var string0 = this.getAttributeNS(fullname.space, fullname.local);
|
2285
|
+
return string0 === string1 ? null
|
2286
|
+
: string0 === string00 ? interpolate0
|
2287
|
+
: interpolate0 = interpolate(string00 = string0, value1);
|
2288
|
+
};
|
2289
|
+
}
|
2290
|
+
|
2291
|
+
function attrFunction(name, interpolate, value) {
|
2292
|
+
var string00,
|
2293
|
+
string10,
|
2294
|
+
interpolate0;
|
2295
|
+
return function() {
|
2296
|
+
var string0, value1 = value(this), string1;
|
2297
|
+
if (value1 == null) return void this.removeAttribute(name);
|
2298
|
+
string0 = this.getAttribute(name);
|
2299
|
+
string1 = value1 + "";
|
2300
|
+
return string0 === string1 ? null
|
2301
|
+
: string0 === string00 && string1 === string10 ? interpolate0
|
2302
|
+
: (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
|
2303
|
+
};
|
2304
|
+
}
|
2305
|
+
|
2306
|
+
function attrFunctionNS(fullname, interpolate, value) {
|
2307
|
+
var string00,
|
2308
|
+
string10,
|
2309
|
+
interpolate0;
|
2310
|
+
return function() {
|
2311
|
+
var string0, value1 = value(this), string1;
|
2312
|
+
if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local);
|
2313
|
+
string0 = this.getAttributeNS(fullname.space, fullname.local);
|
2314
|
+
string1 = value1 + "";
|
2315
|
+
return string0 === string1 ? null
|
2316
|
+
: string0 === string00 && string1 === string10 ? interpolate0
|
2317
|
+
: (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
|
2318
|
+
};
|
2319
|
+
}
|
2320
|
+
|
2321
|
+
function transition_attr(name, value) {
|
2322
|
+
var fullname = namespace(name), i = fullname === "transform" ? interpolateTransformSvg : interpolate;
|
2323
|
+
return this.attrTween(name, typeof value === "function"
|
2324
|
+
? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, tweenValue(this, "attr." + name, value))
|
2325
|
+
: value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname)
|
2326
|
+
: (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value));
|
2327
|
+
}
|
2328
|
+
|
2329
|
+
function attrInterpolate(name, i) {
|
2330
|
+
return function(t) {
|
2331
|
+
this.setAttribute(name, i.call(this, t));
|
2332
|
+
};
|
2333
|
+
}
|
2334
|
+
|
2335
|
+
function attrInterpolateNS(fullname, i) {
|
2336
|
+
return function(t) {
|
2337
|
+
this.setAttributeNS(fullname.space, fullname.local, i.call(this, t));
|
2338
|
+
};
|
2339
|
+
}
|
2340
|
+
|
2341
|
+
function attrTweenNS(fullname, value) {
|
2342
|
+
var t0, i0;
|
2343
|
+
function tween() {
|
2344
|
+
var i = value.apply(this, arguments);
|
2345
|
+
if (i !== i0) t0 = (i0 = i) && attrInterpolateNS(fullname, i);
|
2346
|
+
return t0;
|
2347
|
+
}
|
2348
|
+
tween._value = value;
|
2349
|
+
return tween;
|
2350
|
+
}
|
2351
|
+
|
2352
|
+
function attrTween(name, value) {
|
2353
|
+
var t0, i0;
|
2354
|
+
function tween() {
|
2355
|
+
var i = value.apply(this, arguments);
|
2356
|
+
if (i !== i0) t0 = (i0 = i) && attrInterpolate(name, i);
|
2357
|
+
return t0;
|
2358
|
+
}
|
2359
|
+
tween._value = value;
|
2360
|
+
return tween;
|
2361
|
+
}
|
2362
|
+
|
2363
|
+
function transition_attrTween(name, value) {
|
2364
|
+
var key = "attr." + name;
|
2365
|
+
if (arguments.length < 2) return (key = this.tween(key)) && key._value;
|
2366
|
+
if (value == null) return this.tween(key, null);
|
2367
|
+
if (typeof value !== "function") throw new Error;
|
2368
|
+
var fullname = namespace(name);
|
2369
|
+
return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));
|
2370
|
+
}
|
2371
|
+
|
2372
|
+
function delayFunction(id, value) {
|
2373
|
+
return function() {
|
2374
|
+
init(this, id).delay = +value.apply(this, arguments);
|
2375
|
+
};
|
2376
|
+
}
|
2377
|
+
|
2378
|
+
function delayConstant(id, value) {
|
2379
|
+
return value = +value, function() {
|
2380
|
+
init(this, id).delay = value;
|
2381
|
+
};
|
2382
|
+
}
|
2383
|
+
|
2384
|
+
function transition_delay(value) {
|
2385
|
+
var id = this._id;
|
2386
|
+
|
2387
|
+
return arguments.length
|
2388
|
+
? this.each((typeof value === "function"
|
2389
|
+
? delayFunction
|
2390
|
+
: delayConstant)(id, value))
|
2391
|
+
: get(this.node(), id).delay;
|
2392
|
+
}
|
2393
|
+
|
2394
|
+
function durationFunction(id, value) {
|
2395
|
+
return function() {
|
2396
|
+
set(this, id).duration = +value.apply(this, arguments);
|
2397
|
+
};
|
2398
|
+
}
|
2399
|
+
|
2400
|
+
function durationConstant(id, value) {
|
2401
|
+
return value = +value, function() {
|
2402
|
+
set(this, id).duration = value;
|
2403
|
+
};
|
2404
|
+
}
|
2405
|
+
|
2406
|
+
function transition_duration(value) {
|
2407
|
+
var id = this._id;
|
2408
|
+
|
2409
|
+
return arguments.length
|
2410
|
+
? this.each((typeof value === "function"
|
2411
|
+
? durationFunction
|
2412
|
+
: durationConstant)(id, value))
|
2413
|
+
: get(this.node(), id).duration;
|
2414
|
+
}
|
2415
|
+
|
2416
|
+
function easeConstant(id, value) {
|
2417
|
+
if (typeof value !== "function") throw new Error;
|
2418
|
+
return function() {
|
2419
|
+
set(this, id).ease = value;
|
2420
|
+
};
|
2421
|
+
}
|
2422
|
+
|
2423
|
+
function transition_ease(value) {
|
2424
|
+
var id = this._id;
|
2425
|
+
|
2426
|
+
return arguments.length
|
2427
|
+
? this.each(easeConstant(id, value))
|
2428
|
+
: get(this.node(), id).ease;
|
2429
|
+
}
|
2430
|
+
|
2431
|
+
function easeVarying(id, value) {
|
2432
|
+
return function() {
|
2433
|
+
var v = value.apply(this, arguments);
|
2434
|
+
if (typeof v !== "function") throw new Error;
|
2435
|
+
set(this, id).ease = v;
|
2436
|
+
};
|
2437
|
+
}
|
2438
|
+
|
2439
|
+
function transition_easeVarying(value) {
|
2440
|
+
if (typeof value !== "function") throw new Error;
|
2441
|
+
return this.each(easeVarying(this._id, value));
|
2442
|
+
}
|
2443
|
+
|
2444
|
+
function transition_filter(match) {
|
2445
|
+
if (typeof match !== "function") match = matcher(match);
|
2446
|
+
|
2447
|
+
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
|
2448
|
+
for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {
|
2449
|
+
if ((node = group[i]) && match.call(node, node.__data__, i, group)) {
|
2450
|
+
subgroup.push(node);
|
2451
|
+
}
|
2452
|
+
}
|
2453
|
+
}
|
2454
|
+
|
2455
|
+
return new Transition(subgroups, this._parents, this._name, this._id);
|
2456
|
+
}
|
2457
|
+
|
2458
|
+
function transition_merge(transition) {
|
2459
|
+
if (transition._id !== this._id) throw new Error;
|
2460
|
+
|
2461
|
+
for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {
|
2462
|
+
for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {
|
2463
|
+
if (node = group0[i] || group1[i]) {
|
2464
|
+
merge[i] = node;
|
2465
|
+
}
|
2466
|
+
}
|
2467
|
+
}
|
2468
|
+
|
2469
|
+
for (; j < m0; ++j) {
|
2470
|
+
merges[j] = groups0[j];
|
2471
|
+
}
|
2472
|
+
|
2473
|
+
return new Transition(merges, this._parents, this._name, this._id);
|
2474
|
+
}
|
2475
|
+
|
2476
|
+
function start(name) {
|
2477
|
+
return (name + "").trim().split(/^|\s+/).every(function(t) {
|
2478
|
+
var i = t.indexOf(".");
|
2479
|
+
if (i >= 0) t = t.slice(0, i);
|
2480
|
+
return !t || t === "start";
|
2481
|
+
});
|
2482
|
+
}
|
2483
|
+
|
2484
|
+
function onFunction(id, name, listener) {
|
2485
|
+
var on0, on1, sit = start(name) ? init : set;
|
2486
|
+
return function() {
|
2487
|
+
var schedule = sit(this, id),
|
2488
|
+
on = schedule.on;
|
2489
|
+
|
2490
|
+
// If this node shared a dispatch with the previous node,
|
2491
|
+
// just assign the updated shared dispatch and we’re done!
|
2492
|
+
// Otherwise, copy-on-write.
|
2493
|
+
if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);
|
2494
|
+
|
2495
|
+
schedule.on = on1;
|
2496
|
+
};
|
2497
|
+
}
|
2498
|
+
|
2499
|
+
function transition_on(name, listener) {
|
2500
|
+
var id = this._id;
|
2501
|
+
|
2502
|
+
return arguments.length < 2
|
2503
|
+
? get(this.node(), id).on.on(name)
|
2504
|
+
: this.each(onFunction(id, name, listener));
|
2505
|
+
}
|
2506
|
+
|
2507
|
+
function removeFunction(id) {
|
2508
|
+
return function() {
|
2509
|
+
var parent = this.parentNode;
|
2510
|
+
for (var i in this.__transition) if (+i !== id) return;
|
2511
|
+
if (parent) parent.removeChild(this);
|
2512
|
+
};
|
2513
|
+
}
|
2514
|
+
|
2515
|
+
function transition_remove() {
|
2516
|
+
return this.on("end.remove", removeFunction(this._id));
|
2517
|
+
}
|
2518
|
+
|
2519
|
+
function transition_select(select) {
|
2520
|
+
var name = this._name,
|
2521
|
+
id = this._id;
|
2522
|
+
|
2523
|
+
if (typeof select !== "function") select = selector(select);
|
2524
|
+
|
2525
|
+
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
|
2526
|
+
for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {
|
2527
|
+
if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
|
2528
|
+
if ("__data__" in node) subnode.__data__ = node.__data__;
|
2529
|
+
subgroup[i] = subnode;
|
2530
|
+
schedule(subgroup[i], name, id, i, subgroup, get(node, id));
|
2531
|
+
}
|
2532
|
+
}
|
2533
|
+
}
|
2534
|
+
|
2535
|
+
return new Transition(subgroups, this._parents, name, id);
|
2536
|
+
}
|
2537
|
+
|
2538
|
+
function transition_selectAll(select) {
|
2539
|
+
var name = this._name,
|
2540
|
+
id = this._id;
|
2541
|
+
|
2542
|
+
if (typeof select !== "function") select = selectorAll(select);
|
2543
|
+
|
2544
|
+
for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {
|
2545
|
+
for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
|
2546
|
+
if (node = group[i]) {
|
2547
|
+
for (var children = select.call(node, node.__data__, i, group), child, inherit = get(node, id), k = 0, l = children.length; k < l; ++k) {
|
2548
|
+
if (child = children[k]) {
|
2549
|
+
schedule(child, name, id, k, children, inherit);
|
2550
|
+
}
|
2551
|
+
}
|
2552
|
+
subgroups.push(children);
|
2553
|
+
parents.push(node);
|
2554
|
+
}
|
2555
|
+
}
|
2556
|
+
}
|
2557
|
+
|
2558
|
+
return new Transition(subgroups, parents, name, id);
|
2559
|
+
}
|
2560
|
+
|
2561
|
+
var Selection = selection.prototype.constructor;
|
2562
|
+
|
2563
|
+
function transition_selection() {
|
2564
|
+
return new Selection(this._groups, this._parents);
|
2565
|
+
}
|
2566
|
+
|
2567
|
+
function styleNull(name, interpolate) {
|
2568
|
+
var string00,
|
2569
|
+
string10,
|
2570
|
+
interpolate0;
|
2571
|
+
return function() {
|
2572
|
+
var string0 = styleValue(this, name),
|
2573
|
+
string1 = (this.style.removeProperty(name), styleValue(this, name));
|
2574
|
+
return string0 === string1 ? null
|
2575
|
+
: string0 === string00 && string1 === string10 ? interpolate0
|
2576
|
+
: interpolate0 = interpolate(string00 = string0, string10 = string1);
|
2577
|
+
};
|
2578
|
+
}
|
2579
|
+
|
2580
|
+
function styleRemove(name) {
|
2581
|
+
return function() {
|
2582
|
+
this.style.removeProperty(name);
|
2583
|
+
};
|
2584
|
+
}
|
2585
|
+
|
2586
|
+
function styleConstant(name, interpolate, value1) {
|
2587
|
+
var string00,
|
2588
|
+
string1 = value1 + "",
|
2589
|
+
interpolate0;
|
2590
|
+
return function() {
|
2591
|
+
var string0 = styleValue(this, name);
|
2592
|
+
return string0 === string1 ? null
|
2593
|
+
: string0 === string00 ? interpolate0
|
2594
|
+
: interpolate0 = interpolate(string00 = string0, value1);
|
2595
|
+
};
|
2596
|
+
}
|
2597
|
+
|
2598
|
+
function styleFunction(name, interpolate, value) {
|
2599
|
+
var string00,
|
2600
|
+
string10,
|
2601
|
+
interpolate0;
|
2602
|
+
return function() {
|
2603
|
+
var string0 = styleValue(this, name),
|
2604
|
+
value1 = value(this),
|
2605
|
+
string1 = value1 + "";
|
2606
|
+
if (value1 == null) string1 = value1 = (this.style.removeProperty(name), styleValue(this, name));
|
2607
|
+
return string0 === string1 ? null
|
2608
|
+
: string0 === string00 && string1 === string10 ? interpolate0
|
2609
|
+
: (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
|
2610
|
+
};
|
2611
|
+
}
|
2612
|
+
|
2613
|
+
function styleMaybeRemove(id, name) {
|
2614
|
+
var on0, on1, listener0, key = "style." + name, event = "end." + key, remove;
|
2615
|
+
return function() {
|
2616
|
+
var schedule = set(this, id),
|
2617
|
+
on = schedule.on,
|
2618
|
+
listener = schedule.value[key] == null ? remove || (remove = styleRemove(name)) : undefined;
|
2619
|
+
|
2620
|
+
// If this node shared a dispatch with the previous node,
|
2621
|
+
// just assign the updated shared dispatch and we’re done!
|
2622
|
+
// Otherwise, copy-on-write.
|
2623
|
+
if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);
|
2624
|
+
|
2625
|
+
schedule.on = on1;
|
2626
|
+
};
|
2627
|
+
}
|
2628
|
+
|
2629
|
+
function transition_style(name, value, priority) {
|
2630
|
+
var i = (name += "") === "transform" ? interpolateTransformCss : interpolate;
|
2631
|
+
return value == null ? this
|
2632
|
+
.styleTween(name, styleNull(name, i))
|
2633
|
+
.on("end.style." + name, styleRemove(name))
|
2634
|
+
: typeof value === "function" ? this
|
2635
|
+
.styleTween(name, styleFunction(name, i, tweenValue(this, "style." + name, value)))
|
2636
|
+
.each(styleMaybeRemove(this._id, name))
|
2637
|
+
: this
|
2638
|
+
.styleTween(name, styleConstant(name, i, value), priority)
|
2639
|
+
.on("end.style." + name, null);
|
2640
|
+
}
|
2641
|
+
|
2642
|
+
function styleInterpolate(name, i, priority) {
|
2643
|
+
return function(t) {
|
2644
|
+
this.style.setProperty(name, i.call(this, t), priority);
|
2645
|
+
};
|
2646
|
+
}
|
2647
|
+
|
2648
|
+
function styleTween(name, value, priority) {
|
2649
|
+
var t, i0;
|
2650
|
+
function tween() {
|
2651
|
+
var i = value.apply(this, arguments);
|
2652
|
+
if (i !== i0) t = (i0 = i) && styleInterpolate(name, i, priority);
|
2653
|
+
return t;
|
2654
|
+
}
|
2655
|
+
tween._value = value;
|
2656
|
+
return tween;
|
2657
|
+
}
|
2658
|
+
|
2659
|
+
function transition_styleTween(name, value, priority) {
|
2660
|
+
var key = "style." + (name += "");
|
2661
|
+
if (arguments.length < 2) return (key = this.tween(key)) && key._value;
|
2662
|
+
if (value == null) return this.tween(key, null);
|
2663
|
+
if (typeof value !== "function") throw new Error;
|
2664
|
+
return this.tween(key, styleTween(name, value, priority == null ? "" : priority));
|
2665
|
+
}
|
2666
|
+
|
2667
|
+
function textConstant(value) {
|
2668
|
+
return function() {
|
2669
|
+
this.textContent = value;
|
2670
|
+
};
|
2671
|
+
}
|
2672
|
+
|
2673
|
+
function textFunction(value) {
|
2674
|
+
return function() {
|
2675
|
+
var value1 = value(this);
|
2676
|
+
this.textContent = value1 == null ? "" : value1;
|
2677
|
+
};
|
2678
|
+
}
|
2679
|
+
|
2680
|
+
function transition_text(value) {
|
2681
|
+
return this.tween("text", typeof value === "function"
|
2682
|
+
? textFunction(tweenValue(this, "text", value))
|
2683
|
+
: textConstant(value == null ? "" : value + ""));
|
2684
|
+
}
|
2685
|
+
|
2686
|
+
function textInterpolate(i) {
|
2687
|
+
return function(t) {
|
2688
|
+
this.textContent = i.call(this, t);
|
2689
|
+
};
|
2690
|
+
}
|
2691
|
+
|
2692
|
+
function textTween(value) {
|
2693
|
+
var t0, i0;
|
2694
|
+
function tween() {
|
2695
|
+
var i = value.apply(this, arguments);
|
2696
|
+
if (i !== i0) t0 = (i0 = i) && textInterpolate(i);
|
2697
|
+
return t0;
|
2698
|
+
}
|
2699
|
+
tween._value = value;
|
2700
|
+
return tween;
|
2701
|
+
}
|
2702
|
+
|
2703
|
+
function transition_textTween(value) {
|
2704
|
+
var key = "text";
|
2705
|
+
if (arguments.length < 1) return (key = this.tween(key)) && key._value;
|
2706
|
+
if (value == null) return this.tween(key, null);
|
2707
|
+
if (typeof value !== "function") throw new Error;
|
2708
|
+
return this.tween(key, textTween(value));
|
2709
|
+
}
|
2710
|
+
|
2711
|
+
function transition_transition() {
|
2712
|
+
var name = this._name,
|
2713
|
+
id0 = this._id,
|
2714
|
+
id1 = newId();
|
2715
|
+
|
2716
|
+
for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {
|
2717
|
+
for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
|
2718
|
+
if (node = group[i]) {
|
2719
|
+
var inherit = get(node, id0);
|
2720
|
+
schedule(node, name, id1, i, group, {
|
2721
|
+
time: inherit.time + inherit.delay + inherit.duration,
|
2722
|
+
delay: 0,
|
2723
|
+
duration: inherit.duration,
|
2724
|
+
ease: inherit.ease
|
2725
|
+
});
|
2726
|
+
}
|
2727
|
+
}
|
2728
|
+
}
|
2729
|
+
|
2730
|
+
return new Transition(groups, this._parents, name, id1);
|
2731
|
+
}
|
2732
|
+
|
2733
|
+
function transition_end() {
|
2734
|
+
var on0, on1, that = this, id = that._id, size = that.size();
|
2735
|
+
return new Promise(function(resolve, reject) {
|
2736
|
+
var cancel = {value: reject},
|
2737
|
+
end = {value: function() { if (--size === 0) resolve(); }};
|
2738
|
+
|
2739
|
+
that.each(function() {
|
2740
|
+
var schedule = set(this, id),
|
2741
|
+
on = schedule.on;
|
2742
|
+
|
2743
|
+
// If this node shared a dispatch with the previous node,
|
2744
|
+
// just assign the updated shared dispatch and we’re done!
|
2745
|
+
// Otherwise, copy-on-write.
|
2746
|
+
if (on !== on0) {
|
2747
|
+
on1 = (on0 = on).copy();
|
2748
|
+
on1._.cancel.push(cancel);
|
2749
|
+
on1._.interrupt.push(cancel);
|
2750
|
+
on1._.end.push(end);
|
2751
|
+
}
|
2752
|
+
|
2753
|
+
schedule.on = on1;
|
2754
|
+
});
|
2755
|
+
|
2756
|
+
// The selection was empty, resolve end immediately
|
2757
|
+
if (size === 0) resolve();
|
2758
|
+
});
|
2759
|
+
}
|
2760
|
+
|
2761
|
+
var id = 0;
|
2762
|
+
|
2763
|
+
function Transition(groups, parents, name, id) {
|
2764
|
+
this._groups = groups;
|
2765
|
+
this._parents = parents;
|
2766
|
+
this._name = name;
|
2767
|
+
this._id = id;
|
2768
|
+
}
|
2769
|
+
|
2770
|
+
function newId() {
|
2771
|
+
return ++id;
|
2772
|
+
}
|
2773
|
+
|
2774
|
+
var selection_prototype = selection.prototype;
|
2775
|
+
|
2776
|
+
Transition.prototype = {
|
2777
|
+
constructor: Transition,
|
2778
|
+
select: transition_select,
|
2779
|
+
selectAll: transition_selectAll,
|
2780
|
+
selectChild: selection_prototype.selectChild,
|
2781
|
+
selectChildren: selection_prototype.selectChildren,
|
2782
|
+
filter: transition_filter,
|
2783
|
+
merge: transition_merge,
|
2784
|
+
selection: transition_selection,
|
2785
|
+
transition: transition_transition,
|
2786
|
+
call: selection_prototype.call,
|
2787
|
+
nodes: selection_prototype.nodes,
|
2788
|
+
node: selection_prototype.node,
|
2789
|
+
size: selection_prototype.size,
|
2790
|
+
empty: selection_prototype.empty,
|
2791
|
+
each: selection_prototype.each,
|
2792
|
+
on: transition_on,
|
2793
|
+
attr: transition_attr,
|
2794
|
+
attrTween: transition_attrTween,
|
2795
|
+
style: transition_style,
|
2796
|
+
styleTween: transition_styleTween,
|
2797
|
+
text: transition_text,
|
2798
|
+
textTween: transition_textTween,
|
2799
|
+
remove: transition_remove,
|
2800
|
+
tween: transition_tween,
|
2801
|
+
delay: transition_delay,
|
2802
|
+
duration: transition_duration,
|
2803
|
+
ease: transition_ease,
|
2804
|
+
easeVarying: transition_easeVarying,
|
2805
|
+
end: transition_end,
|
2806
|
+
[Symbol.iterator]: selection_prototype[Symbol.iterator]
|
2807
|
+
};
|
2808
|
+
|
2809
|
+
function cubicInOut(t) {
|
2810
|
+
return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
|
2811
|
+
}
|
2812
|
+
|
2813
|
+
var defaultTiming = {
|
2814
|
+
time: null, // Set on use.
|
2815
|
+
delay: 0,
|
2816
|
+
duration: 250,
|
2817
|
+
ease: cubicInOut
|
2818
|
+
};
|
2819
|
+
|
2820
|
+
function inherit(node, id) {
|
2821
|
+
var timing;
|
2822
|
+
while (!(timing = node.__transition) || !(timing = timing[id])) {
|
2823
|
+
if (!(node = node.parentNode)) {
|
2824
|
+
throw new Error(`transition ${id} not found`);
|
2825
|
+
}
|
2826
|
+
}
|
2827
|
+
return timing;
|
2828
|
+
}
|
2829
|
+
|
2830
|
+
function selection_transition(name) {
|
2831
|
+
var id,
|
2832
|
+
timing;
|
2833
|
+
|
2834
|
+
if (name instanceof Transition) {
|
2835
|
+
id = name._id, name = name._name;
|
2836
|
+
} else {
|
2837
|
+
id = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + "";
|
2838
|
+
}
|
2839
|
+
|
2840
|
+
for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {
|
2841
|
+
for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
|
2842
|
+
if (node = group[i]) {
|
2843
|
+
schedule(node, name, id, i, group, timing || inherit(node, id));
|
2844
|
+
}
|
2845
|
+
}
|
2846
|
+
}
|
2847
|
+
|
2848
|
+
return new Transition(groups, this._parents, name, id);
|
2849
|
+
}
|
2850
|
+
|
2851
|
+
selection.prototype.interrupt = selection_interrupt;
|
2852
|
+
selection.prototype.transition = selection_transition;
|
2853
|
+
|
2854
|
+
const pi$1 = Math.PI,
|
2855
|
+
tau$1 = 2 * pi$1,
|
2856
|
+
epsilon$1 = 1e-6,
|
2857
|
+
tauEpsilon = tau$1 - epsilon$1;
|
2858
|
+
|
2859
|
+
function append(strings) {
|
2860
|
+
this._ += strings[0];
|
2861
|
+
for (let i = 1, n = strings.length; i < n; ++i) {
|
2862
|
+
this._ += arguments[i] + strings[i];
|
2863
|
+
}
|
2864
|
+
}
|
2865
|
+
|
2866
|
+
function appendRound(digits) {
|
2867
|
+
let d = Math.floor(digits);
|
2868
|
+
if (!(d >= 0)) throw new Error(`invalid digits: ${digits}`);
|
2869
|
+
if (d > 15) return append;
|
2870
|
+
const k = 10 ** d;
|
2871
|
+
return function(strings) {
|
2872
|
+
this._ += strings[0];
|
2873
|
+
for (let i = 1, n = strings.length; i < n; ++i) {
|
2874
|
+
this._ += Math.round(arguments[i] * k) / k + strings[i];
|
2875
|
+
}
|
2876
|
+
};
|
2877
|
+
}
|
2878
|
+
|
2879
|
+
class Path {
|
2880
|
+
constructor(digits) {
|
2881
|
+
this._x0 = this._y0 = // start of current subpath
|
2882
|
+
this._x1 = this._y1 = null; // end of current subpath
|
2883
|
+
this._ = "";
|
2884
|
+
this._append = digits == null ? append : appendRound(digits);
|
2885
|
+
}
|
2886
|
+
moveTo(x, y) {
|
2887
|
+
this._append`M${this._x0 = this._x1 = +x},${this._y0 = this._y1 = +y}`;
|
2888
|
+
}
|
2889
|
+
closePath() {
|
2890
|
+
if (this._x1 !== null) {
|
2891
|
+
this._x1 = this._x0, this._y1 = this._y0;
|
2892
|
+
this._append`Z`;
|
2893
|
+
}
|
2894
|
+
}
|
2895
|
+
lineTo(x, y) {
|
2896
|
+
this._append`L${this._x1 = +x},${this._y1 = +y}`;
|
2897
|
+
}
|
2898
|
+
quadraticCurveTo(x1, y1, x, y) {
|
2899
|
+
this._append`Q${+x1},${+y1},${this._x1 = +x},${this._y1 = +y}`;
|
2900
|
+
}
|
2901
|
+
bezierCurveTo(x1, y1, x2, y2, x, y) {
|
2902
|
+
this._append`C${+x1},${+y1},${+x2},${+y2},${this._x1 = +x},${this._y1 = +y}`;
|
2903
|
+
}
|
2904
|
+
arcTo(x1, y1, x2, y2, r) {
|
2905
|
+
x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;
|
2906
|
+
|
2907
|
+
// Is the radius negative? Error.
|
2908
|
+
if (r < 0) throw new Error(`negative radius: ${r}`);
|
2909
|
+
|
2910
|
+
let x0 = this._x1,
|
2911
|
+
y0 = this._y1,
|
2912
|
+
x21 = x2 - x1,
|
2913
|
+
y21 = y2 - y1,
|
2914
|
+
x01 = x0 - x1,
|
2915
|
+
y01 = y0 - y1,
|
2916
|
+
l01_2 = x01 * x01 + y01 * y01;
|
2917
|
+
|
2918
|
+
// Is this path empty? Move to (x1,y1).
|
2919
|
+
if (this._x1 === null) {
|
2920
|
+
this._append`M${this._x1 = x1},${this._y1 = y1}`;
|
2921
|
+
}
|
2922
|
+
|
2923
|
+
// Or, is (x1,y1) coincident with (x0,y0)? Do nothing.
|
2924
|
+
else if (!(l01_2 > epsilon$1));
|
2925
|
+
|
2926
|
+
// Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?
|
2927
|
+
// Equivalently, is (x1,y1) coincident with (x2,y2)?
|
2928
|
+
// Or, is the radius zero? Line to (x1,y1).
|
2929
|
+
else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon$1) || !r) {
|
2930
|
+
this._append`L${this._x1 = x1},${this._y1 = y1}`;
|
2931
|
+
}
|
2932
|
+
|
2933
|
+
// Otherwise, draw an arc!
|
2934
|
+
else {
|
2935
|
+
let x20 = x2 - x0,
|
2936
|
+
y20 = y2 - y0,
|
2937
|
+
l21_2 = x21 * x21 + y21 * y21,
|
2938
|
+
l20_2 = x20 * x20 + y20 * y20,
|
2939
|
+
l21 = Math.sqrt(l21_2),
|
2940
|
+
l01 = Math.sqrt(l01_2),
|
2941
|
+
l = r * Math.tan((pi$1 - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),
|
2942
|
+
t01 = l / l01,
|
2943
|
+
t21 = l / l21;
|
2944
|
+
|
2945
|
+
// If the start tangent is not coincident with (x0,y0), line to.
|
2946
|
+
if (Math.abs(t01 - 1) > epsilon$1) {
|
2947
|
+
this._append`L${x1 + t01 * x01},${y1 + t01 * y01}`;
|
2948
|
+
}
|
2949
|
+
|
2950
|
+
this._append`A${r},${r},0,0,${+(y01 * x20 > x01 * y20)},${this._x1 = x1 + t21 * x21},${this._y1 = y1 + t21 * y21}`;
|
2951
|
+
}
|
2952
|
+
}
|
2953
|
+
arc(x, y, r, a0, a1, ccw) {
|
2954
|
+
x = +x, y = +y, r = +r, ccw = !!ccw;
|
2955
|
+
|
2956
|
+
// Is the radius negative? Error.
|
2957
|
+
if (r < 0) throw new Error(`negative radius: ${r}`);
|
2958
|
+
|
2959
|
+
let dx = r * Math.cos(a0),
|
2960
|
+
dy = r * Math.sin(a0),
|
2961
|
+
x0 = x + dx,
|
2962
|
+
y0 = y + dy,
|
2963
|
+
cw = 1 ^ ccw,
|
2964
|
+
da = ccw ? a0 - a1 : a1 - a0;
|
2965
|
+
|
2966
|
+
// Is this path empty? Move to (x0,y0).
|
2967
|
+
if (this._x1 === null) {
|
2968
|
+
this._append`M${x0},${y0}`;
|
2969
|
+
}
|
2970
|
+
|
2971
|
+
// Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).
|
2972
|
+
else if (Math.abs(this._x1 - x0) > epsilon$1 || Math.abs(this._y1 - y0) > epsilon$1) {
|
2973
|
+
this._append`L${x0},${y0}`;
|
2974
|
+
}
|
2975
|
+
|
2976
|
+
// Is this arc empty? We’re done.
|
2977
|
+
if (!r) return;
|
2978
|
+
|
2979
|
+
// Does the angle go the wrong way? Flip the direction.
|
2980
|
+
if (da < 0) da = da % tau$1 + tau$1;
|
2981
|
+
|
2982
|
+
// Is this a complete circle? Draw two arcs to complete the circle.
|
2983
|
+
if (da > tauEpsilon) {
|
2984
|
+
this._append`A${r},${r},0,1,${cw},${x - dx},${y - dy}A${r},${r},0,1,${cw},${this._x1 = x0},${this._y1 = y0}`;
|
2985
|
+
}
|
2986
|
+
|
2987
|
+
// Is this arc non-empty? Draw an arc!
|
2988
|
+
else if (da > epsilon$1) {
|
2989
|
+
this._append`A${r},${r},0,${+(da >= pi$1)},${cw},${this._x1 = x + r * Math.cos(a1)},${this._y1 = y + r * Math.sin(a1)}`;
|
2990
|
+
}
|
2991
|
+
}
|
2992
|
+
rect(x, y, w, h) {
|
2993
|
+
this._append`M${this._x0 = this._x1 = +x},${this._y0 = this._y1 = +y}h${w = +w}v${+h}h${-w}Z`;
|
2994
|
+
}
|
2995
|
+
toString() {
|
2996
|
+
return this._;
|
2997
|
+
}
|
2998
|
+
}
|
2999
|
+
|
3000
|
+
function constant(x) {
|
3001
|
+
return function constant() {
|
3002
|
+
return x;
|
3003
|
+
};
|
3004
|
+
}
|
3005
|
+
|
3006
|
+
const abs = Math.abs;
|
3007
|
+
const atan2 = Math.atan2;
|
3008
|
+
const cos = Math.cos;
|
3009
|
+
const max = Math.max;
|
3010
|
+
const min = Math.min;
|
3011
|
+
const sin = Math.sin;
|
3012
|
+
const sqrt = Math.sqrt;
|
3013
|
+
|
3014
|
+
const epsilon = 1e-12;
|
3015
|
+
const pi = Math.PI;
|
3016
|
+
const halfPi = pi / 2;
|
3017
|
+
const tau = 2 * pi;
|
3018
|
+
|
3019
|
+
function acos(x) {
|
3020
|
+
return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);
|
3021
|
+
}
|
3022
|
+
|
3023
|
+
function asin(x) {
|
3024
|
+
return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);
|
3025
|
+
}
|
3026
|
+
|
3027
|
+
function withPath(shape) {
|
3028
|
+
let digits = 3;
|
3029
|
+
|
3030
|
+
shape.digits = function(_) {
|
3031
|
+
if (!arguments.length) return digits;
|
3032
|
+
if (_ == null) {
|
3033
|
+
digits = null;
|
3034
|
+
} else {
|
3035
|
+
const d = Math.floor(_);
|
3036
|
+
if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`);
|
3037
|
+
digits = d;
|
3038
|
+
}
|
3039
|
+
return shape;
|
3040
|
+
};
|
3041
|
+
|
3042
|
+
return () => new Path(digits);
|
3043
|
+
}
|
3044
|
+
|
3045
|
+
function arcInnerRadius(d) {
|
3046
|
+
return d.innerRadius;
|
3047
|
+
}
|
3048
|
+
|
3049
|
+
function arcOuterRadius(d) {
|
3050
|
+
return d.outerRadius;
|
3051
|
+
}
|
3052
|
+
|
3053
|
+
function arcStartAngle(d) {
|
3054
|
+
return d.startAngle;
|
3055
|
+
}
|
3056
|
+
|
3057
|
+
function arcEndAngle(d) {
|
3058
|
+
return d.endAngle;
|
3059
|
+
}
|
3060
|
+
|
3061
|
+
function arcPadAngle(d) {
|
3062
|
+
return d && d.padAngle; // Note: optional!
|
3063
|
+
}
|
3064
|
+
|
3065
|
+
function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
|
3066
|
+
var x10 = x1 - x0, y10 = y1 - y0,
|
3067
|
+
x32 = x3 - x2, y32 = y3 - y2,
|
3068
|
+
t = y32 * x10 - x32 * y10;
|
3069
|
+
if (t * t < epsilon) return;
|
3070
|
+
t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;
|
3071
|
+
return [x0 + t * x10, y0 + t * y10];
|
3072
|
+
}
|
3073
|
+
|
3074
|
+
// Compute perpendicular offset line of length rc.
|
3075
|
+
// http://mathworld.wolfram.com/Circle-LineIntersection.html
|
3076
|
+
function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
|
3077
|
+
var x01 = x0 - x1,
|
3078
|
+
y01 = y0 - y1,
|
3079
|
+
lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),
|
3080
|
+
ox = lo * y01,
|
3081
|
+
oy = -lo * x01,
|
3082
|
+
x11 = x0 + ox,
|
3083
|
+
y11 = y0 + oy,
|
3084
|
+
x10 = x1 + ox,
|
3085
|
+
y10 = y1 + oy,
|
3086
|
+
x00 = (x11 + x10) / 2,
|
3087
|
+
y00 = (y11 + y10) / 2,
|
3088
|
+
dx = x10 - x11,
|
3089
|
+
dy = y10 - y11,
|
3090
|
+
d2 = dx * dx + dy * dy,
|
3091
|
+
r = r1 - rc,
|
3092
|
+
D = x11 * y10 - x10 * y11,
|
3093
|
+
d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),
|
3094
|
+
cx0 = (D * dy - dx * d) / d2,
|
3095
|
+
cy0 = (-D * dx - dy * d) / d2,
|
3096
|
+
cx1 = (D * dy + dx * d) / d2,
|
3097
|
+
cy1 = (-D * dx + dy * d) / d2,
|
3098
|
+
dx0 = cx0 - x00,
|
3099
|
+
dy0 = cy0 - y00,
|
3100
|
+
dx1 = cx1 - x00,
|
3101
|
+
dy1 = cy1 - y00;
|
3102
|
+
|
3103
|
+
// Pick the closer of the two intersection points.
|
3104
|
+
// TODO Is there a faster way to determine which intersection to use?
|
3105
|
+
if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;
|
3106
|
+
|
3107
|
+
return {
|
3108
|
+
cx: cx0,
|
3109
|
+
cy: cy0,
|
3110
|
+
x01: -ox,
|
3111
|
+
y01: -oy,
|
3112
|
+
x11: cx0 * (r1 / r - 1),
|
3113
|
+
y11: cy0 * (r1 / r - 1)
|
3114
|
+
};
|
3115
|
+
}
|
3116
|
+
|
3117
|
+
function d3Arc() {
|
3118
|
+
var innerRadius = arcInnerRadius,
|
3119
|
+
outerRadius = arcOuterRadius,
|
3120
|
+
cornerRadius = constant(0),
|
3121
|
+
padRadius = null,
|
3122
|
+
startAngle = arcStartAngle,
|
3123
|
+
endAngle = arcEndAngle,
|
3124
|
+
padAngle = arcPadAngle,
|
3125
|
+
context = null,
|
3126
|
+
path = withPath(arc);
|
3127
|
+
|
3128
|
+
function arc() {
|
3129
|
+
var buffer,
|
3130
|
+
r,
|
3131
|
+
r0 = +innerRadius.apply(this, arguments),
|
3132
|
+
r1 = +outerRadius.apply(this, arguments),
|
3133
|
+
a0 = startAngle.apply(this, arguments) - halfPi,
|
3134
|
+
a1 = endAngle.apply(this, arguments) - halfPi,
|
3135
|
+
da = abs(a1 - a0),
|
3136
|
+
cw = a1 > a0;
|
3137
|
+
|
3138
|
+
if (!context) context = buffer = path();
|
3139
|
+
|
3140
|
+
// Ensure that the outer radius is always larger than the inner radius.
|
3141
|
+
if (r1 < r0) r = r1, r1 = r0, r0 = r;
|
3142
|
+
|
3143
|
+
// Is it a point?
|
3144
|
+
if (!(r1 > epsilon)) context.moveTo(0, 0);
|
3145
|
+
|
3146
|
+
// Or is it a circle or annulus?
|
3147
|
+
else if (da > tau - epsilon) {
|
3148
|
+
context.moveTo(r1 * cos(a0), r1 * sin(a0));
|
3149
|
+
context.arc(0, 0, r1, a0, a1, !cw);
|
3150
|
+
if (r0 > epsilon) {
|
3151
|
+
context.moveTo(r0 * cos(a1), r0 * sin(a1));
|
3152
|
+
context.arc(0, 0, r0, a1, a0, cw);
|
3153
|
+
}
|
3154
|
+
}
|
3155
|
+
|
3156
|
+
// Or is it a circular or annular sector?
|
3157
|
+
else {
|
3158
|
+
var a01 = a0,
|
3159
|
+
a11 = a1,
|
3160
|
+
a00 = a0,
|
3161
|
+
a10 = a1,
|
3162
|
+
da0 = da,
|
3163
|
+
da1 = da,
|
3164
|
+
ap = padAngle.apply(this, arguments) / 2,
|
3165
|
+
rp = (ap > epsilon) && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)),
|
3166
|
+
rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),
|
3167
|
+
rc0 = rc,
|
3168
|
+
rc1 = rc,
|
3169
|
+
t0,
|
3170
|
+
t1;
|
3171
|
+
|
3172
|
+
// Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.
|
3173
|
+
if (rp > epsilon) {
|
3174
|
+
var p0 = asin(rp / r0 * sin(ap)),
|
3175
|
+
p1 = asin(rp / r1 * sin(ap));
|
3176
|
+
if ((da0 -= p0 * 2) > epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;
|
3177
|
+
else da0 = 0, a00 = a10 = (a0 + a1) / 2;
|
3178
|
+
if ((da1 -= p1 * 2) > epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;
|
3179
|
+
else da1 = 0, a01 = a11 = (a0 + a1) / 2;
|
3180
|
+
}
|
3181
|
+
|
3182
|
+
var x01 = r1 * cos(a01),
|
3183
|
+
y01 = r1 * sin(a01),
|
3184
|
+
x10 = r0 * cos(a10),
|
3185
|
+
y10 = r0 * sin(a10);
|
3186
|
+
|
3187
|
+
// Apply rounded corners?
|
3188
|
+
if (rc > epsilon) {
|
3189
|
+
var x11 = r1 * cos(a11),
|
3190
|
+
y11 = r1 * sin(a11),
|
3191
|
+
x00 = r0 * cos(a00),
|
3192
|
+
y00 = r0 * sin(a00),
|
3193
|
+
oc;
|
3194
|
+
|
3195
|
+
// Restrict the corner radius according to the sector angle. If this
|
3196
|
+
// intersection fails, it’s probably because the arc is too small, so
|
3197
|
+
// disable the corner radius entirely.
|
3198
|
+
if (da < pi) {
|
3199
|
+
if (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10)) {
|
3200
|
+
var ax = x01 - oc[0],
|
3201
|
+
ay = y01 - oc[1],
|
3202
|
+
bx = x11 - oc[0],
|
3203
|
+
by = y11 - oc[1],
|
3204
|
+
kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2),
|
3205
|
+
lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);
|
3206
|
+
rc0 = min(rc, (r0 - lc) / (kc - 1));
|
3207
|
+
rc1 = min(rc, (r1 - lc) / (kc + 1));
|
3208
|
+
} else {
|
3209
|
+
rc0 = rc1 = 0;
|
3210
|
+
}
|
3211
|
+
}
|
3212
|
+
}
|
3213
|
+
|
3214
|
+
// Is the sector collapsed to a line?
|
3215
|
+
if (!(da1 > epsilon)) context.moveTo(x01, y01);
|
3216
|
+
|
3217
|
+
// Does the sector’s outer ring have rounded corners?
|
3218
|
+
else if (rc1 > epsilon) {
|
3219
|
+
t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);
|
3220
|
+
t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);
|
3221
|
+
|
3222
|
+
context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
3223
|
+
|
3224
|
+
// Have the corners merged?
|
3225
|
+
if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);
|
3226
|
+
|
3227
|
+
// Otherwise, draw the two corners and the ring.
|
3228
|
+
else {
|
3229
|
+
context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);
|
3230
|
+
context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);
|
3231
|
+
context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);
|
3232
|
+
}
|
3233
|
+
}
|
3234
|
+
|
3235
|
+
// Or is the outer ring just a circular arc?
|
3236
|
+
else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);
|
3237
|
+
|
3238
|
+
// Is there no inner ring, and it’s a circular sector?
|
3239
|
+
// Or perhaps it’s an annular sector collapsed due to padding?
|
3240
|
+
if (!(r0 > epsilon) || !(da0 > epsilon)) context.lineTo(x10, y10);
|
3241
|
+
|
3242
|
+
// Does the sector’s inner ring (or point) have rounded corners?
|
3243
|
+
else if (rc0 > epsilon) {
|
3244
|
+
t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);
|
3245
|
+
t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);
|
3246
|
+
|
3247
|
+
context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
3248
|
+
|
3249
|
+
// Have the corners merged?
|
3250
|
+
if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);
|
3251
|
+
|
3252
|
+
// Otherwise, draw the two corners and the ring.
|
3253
|
+
else {
|
3254
|
+
context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);
|
3255
|
+
context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);
|
3256
|
+
context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);
|
3257
|
+
}
|
3258
|
+
}
|
3259
|
+
|
3260
|
+
// Or is the inner ring just a circular arc?
|
3261
|
+
else context.arc(0, 0, r0, a10, a00, cw);
|
3262
|
+
}
|
3263
|
+
|
3264
|
+
context.closePath();
|
3265
|
+
|
3266
|
+
if (buffer) return context = null, buffer + "" || null;
|
3267
|
+
}
|
3268
|
+
|
3269
|
+
arc.centroid = function() {
|
3270
|
+
var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,
|
3271
|
+
a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;
|
3272
|
+
return [cos(a) * r, sin(a) * r];
|
3273
|
+
};
|
3274
|
+
|
3275
|
+
arc.innerRadius = function(_) {
|
3276
|
+
return arguments.length ? (innerRadius = typeof _ === "function" ? _ : constant(+_), arc) : innerRadius;
|
3277
|
+
};
|
3278
|
+
|
3279
|
+
arc.outerRadius = function(_) {
|
3280
|
+
return arguments.length ? (outerRadius = typeof _ === "function" ? _ : constant(+_), arc) : outerRadius;
|
3281
|
+
};
|
3282
|
+
|
3283
|
+
arc.cornerRadius = function(_) {
|
3284
|
+
return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : constant(+_), arc) : cornerRadius;
|
3285
|
+
};
|
3286
|
+
|
3287
|
+
arc.padRadius = function(_) {
|
3288
|
+
return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : constant(+_), arc) : padRadius;
|
3289
|
+
};
|
3290
|
+
|
3291
|
+
arc.startAngle = function(_) {
|
3292
|
+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant(+_), arc) : startAngle;
|
3293
|
+
};
|
3294
|
+
|
3295
|
+
arc.endAngle = function(_) {
|
3296
|
+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant(+_), arc) : endAngle;
|
3297
|
+
};
|
3298
|
+
|
3299
|
+
arc.padAngle = function(_) {
|
3300
|
+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant(+_), arc) : padAngle;
|
3301
|
+
};
|
3302
|
+
|
3303
|
+
arc.context = function(_) {
|
3304
|
+
return arguments.length ? ((context = _ == null ? null : _), arc) : context;
|
3305
|
+
};
|
3306
|
+
|
3307
|
+
return arc;
|
3308
|
+
}
|
3309
|
+
|
3310
|
+
function array(x) {
|
3311
|
+
return typeof x === "object" && "length" in x
|
3312
|
+
? x // Array, TypedArray, NodeList, array-like
|
3313
|
+
: Array.from(x); // Map, Set, iterable, string, or anything else
|
3314
|
+
}
|
3315
|
+
|
3316
|
+
function Linear(context) {
|
3317
|
+
this._context = context;
|
3318
|
+
}
|
3319
|
+
|
3320
|
+
Linear.prototype = {
|
3321
|
+
areaStart: function() {
|
3322
|
+
this._line = 0;
|
3323
|
+
},
|
3324
|
+
areaEnd: function() {
|
3325
|
+
this._line = NaN;
|
3326
|
+
},
|
3327
|
+
lineStart: function() {
|
3328
|
+
this._point = 0;
|
3329
|
+
},
|
3330
|
+
lineEnd: function() {
|
3331
|
+
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
3332
|
+
this._line = 1 - this._line;
|
3333
|
+
},
|
3334
|
+
point: function(x, y) {
|
3335
|
+
x = +x, y = +y;
|
3336
|
+
switch (this._point) {
|
3337
|
+
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
3338
|
+
case 1: this._point = 2; // falls through
|
3339
|
+
default: this._context.lineTo(x, y); break;
|
3340
|
+
}
|
3341
|
+
}
|
3342
|
+
};
|
3343
|
+
|
3344
|
+
function curveLinear(context) {
|
3345
|
+
return new Linear(context);
|
3346
|
+
}
|
3347
|
+
|
3348
|
+
function x(p) {
|
3349
|
+
return p[0];
|
3350
|
+
}
|
3351
|
+
|
3352
|
+
function y(p) {
|
3353
|
+
return p[1];
|
3354
|
+
}
|
3355
|
+
|
3356
|
+
function d3Line(x$1, y$1) {
|
3357
|
+
var defined = constant(true),
|
3358
|
+
context = null,
|
3359
|
+
curve = curveLinear,
|
3360
|
+
output = null,
|
3361
|
+
path = withPath(line);
|
3362
|
+
|
3363
|
+
x$1 = typeof x$1 === "function" ? x$1 : (x$1 === undefined) ? x : constant(x$1);
|
3364
|
+
y$1 = typeof y$1 === "function" ? y$1 : (y$1 === undefined) ? y : constant(y$1);
|
3365
|
+
|
3366
|
+
function line(data) {
|
3367
|
+
var i,
|
3368
|
+
n = (data = array(data)).length,
|
3369
|
+
d,
|
3370
|
+
defined0 = false,
|
3371
|
+
buffer;
|
3372
|
+
|
3373
|
+
if (context == null) output = curve(buffer = path());
|
3374
|
+
|
3375
|
+
for (i = 0; i <= n; ++i) {
|
3376
|
+
if (!(i < n && defined(d = data[i], i, data)) === defined0) {
|
3377
|
+
if (defined0 = !defined0) output.lineStart();
|
3378
|
+
else output.lineEnd();
|
3379
|
+
}
|
3380
|
+
if (defined0) output.point(+x$1(d, i, data), +y$1(d, i, data));
|
3381
|
+
}
|
3382
|
+
|
3383
|
+
if (buffer) return output = null, buffer + "" || null;
|
3384
|
+
}
|
3385
|
+
|
3386
|
+
line.x = function(_) {
|
3387
|
+
return arguments.length ? (x$1 = typeof _ === "function" ? _ : constant(+_), line) : x$1;
|
3388
|
+
};
|
3389
|
+
|
3390
|
+
line.y = function(_) {
|
3391
|
+
return arguments.length ? (y$1 = typeof _ === "function" ? _ : constant(+_), line) : y$1;
|
3392
|
+
};
|
3393
|
+
|
3394
|
+
line.defined = function(_) {
|
3395
|
+
return arguments.length ? (defined = typeof _ === "function" ? _ : constant(!!_), line) : defined;
|
3396
|
+
};
|
3397
|
+
|
3398
|
+
line.curve = function(_) {
|
3399
|
+
return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;
|
3400
|
+
};
|
3401
|
+
|
3402
|
+
line.context = function(_) {
|
3403
|
+
return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;
|
3404
|
+
};
|
3405
|
+
|
3406
|
+
return line;
|
3407
|
+
}
|
3408
|
+
|
3409
|
+
/** This class is used to render charts using SVG elements. */
|
3410
|
+
class SVGRenderer extends BaseRenderer {
|
3411
|
+
/**
|
3412
|
+
* The function sets the layout of a chart using D3 and SVG.
|
3413
|
+
*
|
3414
|
+
* @param {number} width - chart width
|
3415
|
+
* @param {number} height - chart height
|
3416
|
+
* @param {number} top - chart margin top
|
3417
|
+
* @param {number} left - chart margin left
|
3418
|
+
*/
|
3419
|
+
setLayout(width, height, top, left) {
|
3420
|
+
d3Select(this.context)
|
3421
|
+
.attr('width', width)
|
3422
|
+
.attr('height', height)
|
3423
|
+
.attr('viewBox', [0, 0, width, height])
|
3424
|
+
.attr('style', 'display:block;max-width:100%;height:auto;')
|
3425
|
+
.call((g) => {
|
3426
|
+
g.append('g')
|
3427
|
+
.attr('class', 'vega-chart-draw-g')
|
3428
|
+
.attr('transform', `translate(${left},${top})`);
|
3429
|
+
})
|
3430
|
+
.call((g) => {
|
3431
|
+
g.append('g')
|
3432
|
+
.attr('class', 'vega-chart-legend-g')
|
3433
|
+
.attr('transform', `translate(${left / 3},${top / 4})`);
|
3434
|
+
});
|
3435
|
+
}
|
3436
|
+
/**
|
3437
|
+
* This function draws a line on a chart using D3.js library.
|
3438
|
+
*
|
3439
|
+
* @param {ChartPosition} from - The starting position of the line to be drawn on the chart. It is an
|
3440
|
+
* object with two properties: x and y, representing the x and y coordinates of the starting point respectively.
|
3441
|
+
* @param {ChartPosition} to - The "to" parameter is a ChartPosition object that represents the ending
|
3442
|
+
* point of the line to be drawn. It contains the x and y coordinates of the point on the chart where the line should end.
|
3443
|
+
* @param {string} color - The color of the line
|
3444
|
+
*/
|
3445
|
+
drawLine(from, to, color) {
|
3446
|
+
d3Select(this.context)
|
3447
|
+
.select('.vega-chart-draw-g')
|
3448
|
+
.append('line')
|
3449
|
+
.attr('x1', from.x)
|
3450
|
+
.attr('y1', from.y)
|
3451
|
+
.attr('x2', to.x)
|
3452
|
+
.attr('y2', to.y)
|
3453
|
+
.attr('stroke', color);
|
3454
|
+
}
|
3455
|
+
/**
|
3456
|
+
* This function draws an x-axis on a chart using D3 and a given scale and end point.
|
3457
|
+
*
|
3458
|
+
* @param {ChartExtend<unknown>} extend - which is an object that contains information about the chart's scale and end position on the y-axis. The `scale` property
|
3459
|
+
* is a D3 scale object that maps data values to pixel positions on the x-axis
|
3460
|
+
* @param {string} color - The stroke color of axis
|
3461
|
+
* @param {string} textStyle - The text style of the axis
|
3462
|
+
*/
|
3463
|
+
drawXAxis(extend, color, textStyle) {
|
3464
|
+
const { scale, end, labelFormatter, direction, height } = extend;
|
3465
|
+
let axis = axisBottom(scale);
|
3466
|
+
if (labelFormatter) {
|
3467
|
+
axis = axis.tickFormat(labelFormatter);
|
3468
|
+
}
|
3469
|
+
d3Select(this.context)
|
3470
|
+
.select('.vega-chart-draw-g')
|
3471
|
+
.append('g')
|
3472
|
+
.attr('class', 'vega-chart-x-axis')
|
3473
|
+
.attr('transform', `translate(0, ${end.y})`)
|
3474
|
+
.call(axis)
|
3475
|
+
.call((g) => {
|
3476
|
+
g.select('.domain').attr('stroke-width', 2).attr('stroke', color);
|
3477
|
+
})
|
3478
|
+
.call((g) => {
|
3479
|
+
g.selectAll('line').attr('stroke', color);
|
3480
|
+
g.selectAll('text').attr('style', textStyle);
|
3481
|
+
})
|
3482
|
+
.call((g) => {
|
3483
|
+
if (direction === 'horizontal') {
|
3484
|
+
g.selectAll('line').clone().attr('y2', `${-height}`);
|
3485
|
+
g.select('.domain').attr('stroke-width', 0);
|
3486
|
+
}
|
3487
|
+
});
|
3488
|
+
}
|
3489
|
+
/**
|
3490
|
+
* This function draws the Y-axis of a chart using D3 and a given scale.
|
3491
|
+
*
|
3492
|
+
* @param {ChartExtend<unknown>} extend - It likely contains additional information or settings related to the chart being drawn, but without more context it's
|
3493
|
+
* difficult to say exactly what it contains.
|
3494
|
+
* @param {string} color - The stroke color of the axis
|
3495
|
+
* @param {string} textStyle - The text style of the axis
|
3496
|
+
*/
|
3497
|
+
drawYAxis(extend, color, textStyle) {
|
3498
|
+
const { scale, labelFormatter, width, tickSize, direction } = extend;
|
3499
|
+
let axis = axisLeft(scale).ticks(tickSize);
|
3500
|
+
if (labelFormatter) {
|
3501
|
+
axis = axis.tickFormat(labelFormatter);
|
3502
|
+
}
|
3503
|
+
d3Select(this.context)
|
3504
|
+
.select('.vega-chart-draw-g')
|
3505
|
+
.append('g')
|
3506
|
+
.attr('class', 'vega-chart-y-axis')
|
3507
|
+
.call(axis)
|
3508
|
+
.call((g) => {
|
3509
|
+
g.select('.domain').attr('stroke-width', 0).attr('stroke', color);
|
3510
|
+
})
|
3511
|
+
.call((g) => {
|
3512
|
+
g.selectAll('line').attr('stroke-width', 2).attr('stroke', color);
|
3513
|
+
g.selectAll('text').attr('style', textStyle);
|
3514
|
+
})
|
3515
|
+
.call((g) => {
|
3516
|
+
if (direction !== 'horizontal') {
|
3517
|
+
g.selectAll('line').clone().attr('x2', `${width}`);
|
3518
|
+
}
|
3519
|
+
else {
|
3520
|
+
g.select('.domain').attr('stroke-width', 2).attr('stroke', color);
|
3521
|
+
}
|
3522
|
+
});
|
3523
|
+
}
|
3524
|
+
/**
|
3525
|
+
* This function draws a circle with a given center, radius, and color using D3.js.
|
3526
|
+
*
|
3527
|
+
* @param {ChartPosition} center - ChartPosition, which is an object containing the x and y coordinates of the center of the circle.
|
3528
|
+
* @param {number} radius - The radius parameter is a number that specifies the radius of the circle to be drawn.
|
3529
|
+
* @param {string} fillColor - The color parameter is a string that represents the color of the circle to be drawn
|
3530
|
+
* @param {number} strokeWidth - the border width
|
3531
|
+
* @param {string} strokeColor - the border color
|
3532
|
+
*/
|
3533
|
+
drawCircle(center, radius, fillColor, strokeWidth, strokeColor) {
|
3534
|
+
d3Select(this.context)
|
3535
|
+
.select('.vega-chart-draw-g')
|
3536
|
+
.append(() => this.getCircleNode(center, radius, fillColor, strokeWidth, strokeColor));
|
3537
|
+
}
|
3538
|
+
/**
|
3539
|
+
* This function draws text on a chart at a specified position using D3.js.
|
3540
|
+
*
|
3541
|
+
* @param {ChartPosition} position - ChartPosition is an object that contains the x and y coordinates where the text will be positioned on the chart.
|
3542
|
+
* @param {string} text - The text parameter is a string that represents the text that will be
|
3543
|
+
* displayed on the chart. It is the content that will be added to the text element created by this function.
|
3544
|
+
* @param {string} textStyle - The text style of the axis
|
3545
|
+
* @param {TextAnchorType} textAnchor - text anchor
|
3546
|
+
* @param {number} rotate - rotate of the text
|
3547
|
+
*/
|
3548
|
+
drawText(position, text, textStyle, textAnchor, rotate) {
|
3549
|
+
d3Select(this.context)
|
3550
|
+
.select('.vega-chart-draw-g')
|
3551
|
+
.append(() => this.getTextNode(position, text, textStyle, textAnchor, rotate));
|
3552
|
+
}
|
3553
|
+
/**
|
3554
|
+
* This function draws a legend item with a colored circle and text at a specified position on a chart.
|
3555
|
+
*
|
3556
|
+
* @param {ChartPosition} position - The position parameter is an object that contains the x and y
|
3557
|
+
* coordinates where the legend should be placed on the chart.
|
3558
|
+
* @param {string} text - The text to be displayed in the legend.
|
3559
|
+
* @param {string} color - Background color token type, which is a type of color
|
3560
|
+
* used in the chart's background.
|
3561
|
+
* @param {string} textStyle - The text style of the axis
|
3562
|
+
* @returns {SVGGElement} svg g element
|
3563
|
+
*/
|
3564
|
+
drawLegend(position, text, color, textStyle) {
|
3565
|
+
return d3Select(this.context)
|
3566
|
+
.select('.vega-chart-legend-g')
|
3567
|
+
.append('g')
|
3568
|
+
.attr('class', 'vega-chart-legend-item')
|
3569
|
+
.attr('data-legend', text)
|
3570
|
+
.attr('transform', `translate(${position.x},${position.y})`)
|
3571
|
+
.call((g) => {
|
3572
|
+
g.append(() => this.getCircleNode({
|
3573
|
+
x: -4,
|
3574
|
+
y: -4,
|
3575
|
+
}, 4, color));
|
3576
|
+
g.append(() => this.getTextNode({ x: 8, y: 0 }, text, textStyle));
|
3577
|
+
})
|
3578
|
+
.node();
|
3579
|
+
}
|
3580
|
+
/**
|
3581
|
+
* This function draws a rectangle with a specified position, width, height, and optional color using D3.js.
|
3582
|
+
*
|
3583
|
+
* @param {ChartPosition} position - The position parameter is an object that contains the x and y coordinates of the top-left corner of the rectangle.
|
3584
|
+
* @param {number} width - The width of the rectangle to be drawn.
|
3585
|
+
* @param {number} height - The height parameter is a number that represents the height of the rectangle to be drawn.
|
3586
|
+
* @param {string} [color] - The color parameter is an optional string that represents the color of the rectangle to be drawn. If it is not provided, the rectangle will have no fill color.
|
3587
|
+
*/
|
3588
|
+
drawRect(position, width, height, color) {
|
3589
|
+
d3Select(this.context)
|
3590
|
+
.select('.vega-chart-draw-g')
|
3591
|
+
.append('rect')
|
3592
|
+
.attr('fill', color)
|
3593
|
+
.attr('x', position.x)
|
3594
|
+
.attr('y', position.y)
|
3595
|
+
.attr('width', width)
|
3596
|
+
.attr('height', height);
|
3597
|
+
}
|
3598
|
+
/**
|
3599
|
+
* This function draws a path on a chart using D3 and SVG based on the provided positions and color.
|
3600
|
+
*
|
3601
|
+
* @param {ChartPosition[]} positions - An array of ChartPosition objects that represent the
|
3602
|
+
* coordinates of the points on the path to be drawn. Each ChartPosition object contains an x and y
|
3603
|
+
* value that represent the position of the point on the chart.
|
3604
|
+
* @param {string} color - line color
|
3605
|
+
* represents a color value. It is likely used to specify the color of the path that will be drawn on the chart.
|
3606
|
+
*/
|
3607
|
+
drawLinePath(positions, color) {
|
3608
|
+
d3Select(this.context)
|
3609
|
+
.select('.vega-chart-draw-g')
|
3610
|
+
.append('path')
|
3611
|
+
.attr('class', 'vega-chart-line-path')
|
3612
|
+
.datum(positions)
|
3613
|
+
.attr('fill', 'none')
|
3614
|
+
.attr('stroke', color)
|
3615
|
+
.attr('stroke-width', 3)
|
3616
|
+
.attr('stroke-linecap', 'round')
|
3617
|
+
.attr('stroke-linejoin', 'round')
|
3618
|
+
.attr('d', d3Line()
|
3619
|
+
.x((position) => position.x)
|
3620
|
+
.y((position) => position.y));
|
3621
|
+
}
|
3622
|
+
/**
|
3623
|
+
* This function draws an arc path using D3 library and applies color and radius based on input parameters.
|
3624
|
+
*
|
3625
|
+
* @param {ChartPosition} center - the arc center position
|
3626
|
+
* @param {ArcPathItem} record - an object containing data for the arc path to be drawn
|
3627
|
+
* @param {string} color - The color parameter
|
3628
|
+
* and is used to set the fill color of the arc path.
|
3629
|
+
* @param {number} outerRadius - The outer radius parameter is a number that determines the outer
|
3630
|
+
* radius of the arc path being drawn.
|
3631
|
+
* @param {number} innerRadius - The inner radius of the arc path, specified as a number.
|
3632
|
+
* @returns {SVGPathElement} svg arc path element.
|
3633
|
+
*/
|
3634
|
+
drawArcPath(center, record, color, outerRadius, innerRadius) {
|
3635
|
+
return d3Select(this.context)
|
3636
|
+
.select('.vega-chart-draw-g')
|
3637
|
+
.append('path')
|
3638
|
+
.datum(record)
|
3639
|
+
.attr('class', 'vega-chart-arc-path')
|
3640
|
+
.attr('data-name', (item) => item.data.name)
|
3641
|
+
.attr('transform', `translate(${center.x},${center.y})`)
|
3642
|
+
.attr('fill', color)
|
3643
|
+
.attr('stroke-width', 0)
|
3644
|
+
.attr('d', d3Arc().innerRadius(innerRadius).outerRadius(outerRadius))
|
3645
|
+
.attr('data-d', d3Arc()
|
3646
|
+
.innerRadius(innerRadius)
|
3647
|
+
.outerRadius(outerRadius + 10))
|
3648
|
+
.node();
|
3649
|
+
}
|
3650
|
+
/**
|
3651
|
+
* This function clears all elements within two specific classes in a D3 selection.
|
3652
|
+
*/
|
3653
|
+
clear() {
|
3654
|
+
d3Select(this.context).selectAll('.vega-chart-draw-g').remove();
|
3655
|
+
d3Select(this.context).selectAll('.vega-chart-legend-g').remove();
|
3656
|
+
}
|
3657
|
+
/**
|
3658
|
+
* This TypeScript function creates and returns an SVG text element with the given position and text.
|
3659
|
+
*
|
3660
|
+
* @param {ChartPosition} position - The position parameter is an object that contains the x and y
|
3661
|
+
* coordinates where the text element will be placed on the SVG canvas.
|
3662
|
+
* @param {string} text - The text parameter is a string that represents the text content that will be
|
3663
|
+
* displayed in the SVGTextElement.
|
3664
|
+
* @param {string} textStyle - The text style of the axis
|
3665
|
+
* @param {TextAnchorType} textAnchor - text anchor
|
3666
|
+
* @param {number} rotate - rotate of the text
|
3667
|
+
* @returns {SVGTextElement} an SVGTextElement node.
|
3668
|
+
*/
|
3669
|
+
getTextNode(position, text, textStyle, textAnchor = 'start', rotate = 0) {
|
3670
|
+
const TextSelectionType = d3Create('svg:text')
|
3671
|
+
.attr('style', textStyle)
|
3672
|
+
.attr('x', position.x)
|
3673
|
+
.attr('y', position.y)
|
3674
|
+
.attr('text-anchor', textAnchor)
|
3675
|
+
.attr('rotate', rotate)
|
3676
|
+
.text(text);
|
3677
|
+
return TextSelectionType.node();
|
3678
|
+
}
|
3679
|
+
/**
|
3680
|
+
* This TypeScript function creates an SVG circle element with a specified center, radius, and color.
|
3681
|
+
*
|
3682
|
+
* @param {ChartPosition} center - The center position of the circle on the chart, specified as an
|
3683
|
+
* object with `x` and `y` properties.
|
3684
|
+
* @param {number} radius - The radius parameter is a number that represents the radius of the circle
|
3685
|
+
* to be created.
|
3686
|
+
* @param {string} fillColor - The color parameter
|
3687
|
+
* and is used to determine the fill color of the circle. It is likely an enum or string type that maps
|
3688
|
+
* to a specific color value.
|
3689
|
+
* @param {number} strokeWidth - the border width
|
3690
|
+
* @param {string} strokeColor - the border color
|
3691
|
+
* @returns {SVGCircleElement} an SVG circle element.
|
3692
|
+
*/
|
3693
|
+
getCircleNode(center, radius, fillColor, strokeWidth, strokeColor) {
|
3694
|
+
const circleSelection = d3Create('svg:circle')
|
3695
|
+
.attr('r', radius)
|
3696
|
+
.attr('cx', center.x)
|
3697
|
+
.attr('cy', center.y)
|
3698
|
+
.attr('fill', fillColor)
|
3699
|
+
.attr('stroke-width', strokeWidth || 0)
|
3700
|
+
.attr('stroke', strokeColor);
|
3701
|
+
return circleSelection.node();
|
3702
|
+
}
|
3703
|
+
}
|
3704
|
+
|
3705
|
+
/**
|
3706
|
+
* The CanvasRenderer class is a TypeScript class that extends the BaseRenderer class and provides
|
3707
|
+
* methods for drawing various shapes and elements on a canvas.
|
3708
|
+
*/
|
3709
|
+
class CanvasRenderer extends BaseRenderer {
|
3710
|
+
/**
|
3711
|
+
* The function sets the layout of a chart.
|
3712
|
+
*
|
3713
|
+
* @param {number} width - chart width
|
3714
|
+
* @param {number} height - chart height
|
3715
|
+
*/
|
3716
|
+
setLayout(width, height) {
|
3717
|
+
this.context.width = width;
|
3718
|
+
this.context.height = height;
|
3719
|
+
this.context.style.display = 'block';
|
3720
|
+
this.initCanvasContext2d();
|
3721
|
+
}
|
3722
|
+
/**
|
3723
|
+
* The function `drawLine` takes two `ChartPosition` parameters and draws a line between them.
|
3724
|
+
*
|
3725
|
+
* @param {ChartPosition} from - The starting position of the line on the chart. It is of type ChartPosition.
|
3726
|
+
* @param {ChartPosition} to - The "to" parameter in the "drawLine" function is a ChartPosition object
|
3727
|
+
* that represents the end point of the line to be drawn. It contains information about the x and y
|
3728
|
+
* coordinates of the point on the chart where the line should end.
|
3729
|
+
*/
|
3730
|
+
drawLine(from, to) {
|
3731
|
+
const context2d = this.getContext2d();
|
3732
|
+
context2d.beginPath();
|
3733
|
+
context2d.moveTo(from.x, from.y);
|
3734
|
+
context2d.lineTo(to.x, to.y);
|
3735
|
+
context2d.closePath();
|
3736
|
+
}
|
3737
|
+
/**
|
3738
|
+
* This function draws the X-axis on a chart and takes in a parameter of type ChartExtend.
|
3739
|
+
*
|
3740
|
+
* @param {ChartExtend<unknown>} extend - The parameter "extend" is of type "ChartExtend" which is a generic type that can
|
3741
|
+
* take any data type as an argument. It is likely used to extend or modify the properties of the chart's X-axis
|
3742
|
+
*/
|
3743
|
+
drawXAxis(extend) {
|
3744
|
+
this.drawLine(extend.start, extend.end);
|
3745
|
+
}
|
3746
|
+
/**
|
3747
|
+
* This function draws the Y-axis on a chart.
|
3748
|
+
*
|
3749
|
+
* @param {ChartExtend<unknown>} extend - The parameter "extend" is of type ChartExtend, which is a generic type that
|
3750
|
+
* represents the range of values for a chart axis. It contains information such as the minimum and
|
3751
|
+
* maximum values for the axis
|
3752
|
+
*/
|
3753
|
+
drawYAxis(extend) {
|
3754
|
+
this.drawLine(extend.start, extend.end);
|
3755
|
+
}
|
3756
|
+
/**
|
3757
|
+
* The function `drawCircle` takes in a center position, radius, and color and draws a circle.
|
3758
|
+
*
|
3759
|
+
* @param {ChartPosition} center - The center of the circle, represented by a ChartPosition object
|
3760
|
+
* that contains the x and y coordinates of the center point.
|
3761
|
+
* @param {number} radius - The _radius parameter is a number that represents the radius of the
|
3762
|
+
* circle to be drawn. The radius is the distance from the center of the circle to any point on its circumference.
|
3763
|
+
* @param {string} fillColor - The _color,
|
3764
|
+
* which is a type that represents a color value that can be used as a background color for a chart element
|
3765
|
+
* @param {number} strokeWidth - the border width
|
3766
|
+
* @param {string} strokeColor - the border color
|
3767
|
+
*/
|
3768
|
+
drawCircle(center, radius, fillColor, strokeWidth, strokeColor) {
|
3769
|
+
const context2d = this.getContext2d();
|
3770
|
+
if (strokeWidth && strokeColor) {
|
3771
|
+
context2d.fillStyle = strokeColor;
|
3772
|
+
context2d.beginPath();
|
3773
|
+
context2d.arc(center.x, center.y, radius, 0, Math.PI * 2);
|
3774
|
+
context2d.fill();
|
3775
|
+
}
|
3776
|
+
context2d.fillStyle = fillColor;
|
3777
|
+
context2d.beginPath();
|
3778
|
+
context2d.arc(center.x, center.y, radius - (strokeWidth || 0), 0, Math.PI * 2);
|
3779
|
+
context2d.fill();
|
3780
|
+
}
|
3781
|
+
/**
|
3782
|
+
* The function draws a legend on a chart with a circle and text at a specified position and color.
|
3783
|
+
*
|
3784
|
+
* @param {ChartPosition} position - ChartPosition is a type that represents the position of an
|
3785
|
+
* element on a chart. It could be an object with properties like x and y coordinates or a string that
|
3786
|
+
* represents a predefined position.
|
3787
|
+
* @param {string} text - The text parameter is a string that represents the label or name of the
|
3788
|
+
* legend that will be displayed on the chart.
|
3789
|
+
* @param {string} color - color string
|
3790
|
+
* represents a color for the legend. It could be a string or a number that corresponds to a specific
|
3791
|
+
* color value.
|
3792
|
+
* @returns {HTMLCanvasElement} chart canvas element
|
3793
|
+
*/
|
3794
|
+
drawLegend(position, text, color) {
|
3795
|
+
this.drawCircle(position, 4, color);
|
3796
|
+
this.drawText(position, text);
|
3797
|
+
return this.context;
|
3798
|
+
}
|
3799
|
+
/**
|
3800
|
+
* The function `drawText` takes a position and a string of text as parameters and does not return anything.
|
3801
|
+
*
|
3802
|
+
* @param {ChartPosition} position - ChartPosition is a data type that represents the position of the
|
3803
|
+
* text on a chart. It could be an object with properties such as x and y coordinates, or it could be
|
3804
|
+
* a string that represents a pre-defined position on the chart (e.g. "top-left", "bottom-right",
|
3805
|
+
* etc.).
|
3806
|
+
* @param {string} text - The text parameter is a string that represents the text that needs to be drawn on the chart.
|
3807
|
+
*/
|
3808
|
+
drawText(position, text) {
|
3809
|
+
this.getContext2d().fillText(text, position.x, position.y);
|
3810
|
+
}
|
3811
|
+
/**
|
3812
|
+
* The function `drawRect` takes in a position, width, height, and optional color parameter to draw a rectangle.
|
3813
|
+
*
|
3814
|
+
* @param {ChartPosition} position - The position parameter is of type ChartPosition and represents
|
3815
|
+
* the position of the rectangle on the chart. It could be an object with x and y properties
|
3816
|
+
* representing the coordinates of the top-left corner of the rectangle.
|
3817
|
+
* @param {number} width - The width parameter is a number that represents the width of the rectangle
|
3818
|
+
* to be drawn. It determines how wide the rectangle will be on the chart.
|
3819
|
+
* @param {number} height - The `height` parameter in the `drawRect` function specifies the height of
|
3820
|
+
* the rectangle to be drawn. It is a required parameter and must be a number value.
|
3821
|
+
* @param {string} [color] - The color parameter is an optional parameter that
|
3822
|
+
* specifies the background color of the rectangle. It is of type string, which is
|
3823
|
+
* a custom type that represents a color token
|
3824
|
+
*/
|
3825
|
+
drawRect(position, width, height, color) {
|
3826
|
+
const context2d = this.getContext2d();
|
3827
|
+
context2d.fillStyle = color;
|
3828
|
+
context2d.fillRect(position.x, position.y, width, height);
|
3829
|
+
}
|
3830
|
+
/**
|
3831
|
+
* The function `drawLinePath` takes in an array of `ChartPosition` objects and a `string` color and draws a path.
|
3832
|
+
*
|
3833
|
+
* @param {ChartPosition[]} positions - An array of ChartPosition objects that represent the
|
3834
|
+
* coordinates of points on a chart. Each ChartPosition object has an x and y property that represent
|
3835
|
+
* the horizontal and vertical position of the point on the chart.
|
3836
|
+
* @param {string} color - The `color` parameter is of type
|
3837
|
+
* `string` and represents the color of the path to be drawn. This parameter is
|
3838
|
+
* used to set the background color of the chart.
|
3839
|
+
*/
|
3840
|
+
drawLinePath(positions, color) {
|
3841
|
+
const pathNode = d3Create('svg:path')
|
3842
|
+
.datum(positions)
|
3843
|
+
.attr('d', d3Line()
|
3844
|
+
.x((position) => position.x)
|
3845
|
+
.y((position) => position.y))
|
3846
|
+
.node();
|
3847
|
+
const path = new Path2D(pathNode.getAttribute('d'));
|
3848
|
+
const context2d = this.getContext2d();
|
3849
|
+
context2d.lineWidth = 3;
|
3850
|
+
context2d.strokeStyle = color;
|
3851
|
+
context2d.stroke(path);
|
3852
|
+
}
|
3853
|
+
/**
|
3854
|
+
* This function draws an arc path using D3 library and applies color and radius based on input parameters.
|
3855
|
+
*
|
3856
|
+
* @param {ChartPosition} center - arc center position
|
3857
|
+
* @param {ArcPathItem} record - an object containing data for the arc path to be drawn
|
3858
|
+
* @param {string} color - The color parameter
|
3859
|
+
* and is used to set the fill color of the arc path.
|
3860
|
+
* @param {number} outerRadius - The outer radius parameter is a number that determines the outer
|
3861
|
+
* radius of the arc path being drawn.
|
3862
|
+
* @param {number} innerRadius - The inner radius of the arc path, specified as a number.
|
3863
|
+
* @returns {HTMLCanvasElement} chart canvas element.
|
3864
|
+
*/
|
3865
|
+
drawArcPath(center, record, color, outerRadius, innerRadius) {
|
3866
|
+
const context2d = this.getContext2d();
|
3867
|
+
context2d.beginPath();
|
3868
|
+
context2d.moveTo(center.x, center.y);
|
3869
|
+
context2d.arc(center.x, center.y, outerRadius, record.startAngle, record.endAngle);
|
3870
|
+
context2d.fillStyle = color;
|
3871
|
+
context2d.fill();
|
3872
|
+
if (innerRadius) {
|
3873
|
+
this.drawCircle(center, innerRadius, '#F0F3F7');
|
3874
|
+
}
|
3875
|
+
return this.context;
|
3876
|
+
}
|
3877
|
+
/**
|
3878
|
+
* The function "clear"
|
3879
|
+
*/
|
3880
|
+
clear() {
|
3881
|
+
this.getContext2d().clearRect(0, 0, this.context.width, this.context.height);
|
3882
|
+
}
|
3883
|
+
/**
|
3884
|
+
* This function initializes a 2D canvas context.
|
3885
|
+
*/
|
3886
|
+
initCanvasContext2d() {
|
3887
|
+
this.canvasContext2d = this.context.getContext('2d');
|
3888
|
+
}
|
3889
|
+
/**
|
3890
|
+
* This function returns the canvas 2D rendering context and initializes it if it doesn't exist.
|
3891
|
+
*
|
3892
|
+
* @returns {CanvasRenderingContext2D} The function `getContext2d()` returns the `CanvasRenderingContext2D` object.
|
3893
|
+
*/
|
3894
|
+
getContext2d() {
|
3895
|
+
if (!this.canvasContext2d) {
|
3896
|
+
this.initCanvasContext2d();
|
3897
|
+
}
|
3898
|
+
return this.canvasContext2d;
|
3899
|
+
}
|
3900
|
+
}
|
3901
|
+
|
3902
|
+
/** The RendererFactory class provides a static method to create a renderer based on the type of context provided. */
|
3903
|
+
class RendererFactory {
|
3904
|
+
/**
|
3905
|
+
* This function returns a renderer based on the type of context provided (SVG or Canvas).
|
3906
|
+
*
|
3907
|
+
* @param {SVGElement | HTMLCanvasElement} context - The `context` parameter is either an
|
3908
|
+
* SVGElement or a HTMLCanvasElement. It is used to determine which renderer to instantiate and
|
3909
|
+
* return
|
3910
|
+
* @returns {BaseRenderer<SVGElement | HTMLCanvasElement> } based on the type of the `context` parameter. If
|
3911
|
+
* the `context` is an instance of `SVGElement`, an `SVGRenderer` object is returned
|
3912
|
+
*/
|
3913
|
+
static get(context) {
|
3914
|
+
if (context instanceof SVGElement) {
|
3915
|
+
return new SVGRenderer(context);
|
3916
|
+
}
|
3917
|
+
else if (context instanceof HTMLCanvasElement) {
|
3918
|
+
return new CanvasRenderer(context);
|
3919
|
+
}
|
3920
|
+
else {
|
3921
|
+
throw new Error('Invalid context');
|
3922
|
+
}
|
3923
|
+
}
|
3924
|
+
}
|
3925
|
+
|
3926
|
+
const DEFAULT_LAYOUT = {
|
3927
|
+
width: undefined,
|
3928
|
+
height: undefined,
|
3929
|
+
margin: {
|
3930
|
+
top: 30,
|
3931
|
+
right: 30,
|
3932
|
+
bottom: 30,
|
3933
|
+
left: 30,
|
3934
|
+
},
|
3935
|
+
};
|
3936
|
+
const DEFAULT_MARGIN_TOP_WITH_LEGENDS = 60;
|
3937
|
+
const DEFAULT_MARGIN_LEFT_WITH_AXIS = 60;
|
3938
|
+
/** The ChartDimensionController class contains methods for setting and retrieving the width and height of a chart container element. */
|
3939
|
+
class ChartDimensionController {
|
3940
|
+
/**
|
3941
|
+
* This is a constructor function that takes an HTMLElement as a parameter and assigns it to a private property called "container".
|
3942
|
+
*
|
3943
|
+
* @param {HTMLElement} container - The "container" parameter is a reference to an HTML element that
|
3944
|
+
* will be used as a container for the component or module being constructed. This parameter is
|
3945
|
+
* typically passed in during the instantiation of the component or module and is used to specify
|
3946
|
+
* where the component or module should be rendered in the DOM.
|
3947
|
+
*/
|
3948
|
+
constructor(container) {
|
3949
|
+
this.container = container;
|
3950
|
+
}
|
3951
|
+
/**
|
3952
|
+
* This function sets the width and height of a container element based on a given layout object. if the layout is null, then will not update,
|
3953
|
+
* prevent the original style is changed
|
3954
|
+
*
|
3955
|
+
* @param {ChartLayout} layout - ChartLayout object that contains the width and height values for the chart container.
|
3956
|
+
*/
|
3957
|
+
setContainerWidthAndHeight(layout) {
|
3958
|
+
const { width, height } = layout;
|
3959
|
+
if (width !== undefined) {
|
3960
|
+
this.container.style.width = parseNumberToPixelString(width);
|
3961
|
+
}
|
3962
|
+
if (height !== undefined) {
|
3963
|
+
this.container.style.height = parseNumberToPixelString(height);
|
3964
|
+
}
|
3965
|
+
}
|
3966
|
+
/**
|
3967
|
+
* This function returns the client width of a container or parses the width from a layout object.
|
3968
|
+
*
|
3969
|
+
* @param {ChartLayout} layout - In this function, the layout parameter is used to determine the width of the chart container. If the container's
|
3970
|
+
* clientWidth property is not available,
|
3971
|
+
* @returns {number} returning a number. The number is either the client width of the container element or the parsed width value from the `ChartLayout` object.
|
3972
|
+
*/
|
3973
|
+
getContainerClientWidth(layout) {
|
3974
|
+
return (this.container.clientWidth ||
|
3975
|
+
parsePixelStringToNumber((layout === null || layout === void 0 ? void 0 : layout.width) || this.container.style.width));
|
3976
|
+
}
|
3977
|
+
/**
|
3978
|
+
* This function returns the height of a container element in pixels, either by accessing its clientHeight property or by parsing a string value from the layout object.
|
3979
|
+
*
|
3980
|
+
* @param {ChartLayout} layout - the layout parameter is used to determine the height of the chart container if it is not already set.
|
3981
|
+
* @returns {number} The function `getContainerClientHeight` returns a number which represents the height of
|
3982
|
+
* the container client or the parsed height value from the `ChartLayout` object.
|
3983
|
+
*/
|
3984
|
+
getContainerClientHeight(layout) {
|
3985
|
+
return (this.container.clientHeight ||
|
3986
|
+
parsePixelStringToNumber((layout === null || layout === void 0 ? void 0 : layout.height) || this.container.style.height));
|
3987
|
+
}
|
3988
|
+
/**
|
3989
|
+
* This function calculates the inner width of a chart container by subtracting the left and right margins from the client width.
|
3990
|
+
*
|
3991
|
+
* @param {ChartLayout} layout - ChartLayout object that contains information about the chart layout,
|
3992
|
+
* including the container width and margin.
|
3993
|
+
* @returns {number} the inner width of a container element, which is calculated by subtracting the left and
|
3994
|
+
* right margins from the client width of the container.
|
3995
|
+
*/
|
3996
|
+
getContainerInnerWidth(layout) {
|
3997
|
+
const width = this.getContainerClientWidth(layout);
|
3998
|
+
const { left, right } = ((layout === null || layout === void 0 ? void 0 : layout.margin) || DEFAULT_LAYOUT.margin);
|
3999
|
+
return width ? width - right - left : 0;
|
4000
|
+
}
|
4001
|
+
/**
|
4002
|
+
* This function calculates the inner height of a chart container by subtracting the top and bottom margins from the client height.
|
4003
|
+
*
|
4004
|
+
* @param {ChartLayout} layout - The `layout` parameter is an object of type `ChartLayout` which
|
4005
|
+
* contains information about the layout of a chart, including its dimensions and margins.
|
4006
|
+
* @returns {number} the inner height of a container element, which is calculated by subtracting the top and
|
4007
|
+
* bottom margins from the client height of the container. The returned value is a number.
|
4008
|
+
*/
|
4009
|
+
getContainerInnerHeight(layout) {
|
4010
|
+
const height = this.getContainerClientHeight(layout);
|
4011
|
+
const { top, bottom } = ((layout === null || layout === void 0 ? void 0 : layout.margin) || DEFAULT_LAYOUT.margin);
|
4012
|
+
return height ? height - top - bottom : 0;
|
4013
|
+
}
|
4014
|
+
/**
|
4015
|
+
* This function merges a given chart layout with default values and returns the updated layout.
|
4016
|
+
*
|
4017
|
+
* @param {string} chartName - A string representing the name of the chart.
|
4018
|
+
* @param {ChartLayout} layout - The `layout` parameter is an optional object that contains properties
|
4019
|
+
* for the width, height, and margin of a chart. If provided, it will be merged with the default
|
4020
|
+
* layout settings to create a new layout object. If not provided, the default layout settings will be
|
4021
|
+
* used.
|
4022
|
+
* @param {boolean} hasLegends - A boolean value indicating whether the chart has legends or not.
|
4023
|
+
* @returns {ChartLayout} a ChartLayout object.
|
4024
|
+
*/
|
4025
|
+
mergeLayout(chartName, layout, hasLegends) {
|
4026
|
+
const defaultTop = hasLegends ? DEFAULT_MARGIN_TOP_WITH_LEGENDS : DEFAULT_LAYOUT.margin.top;
|
4027
|
+
const defaultLeft = chartName === 'VEGA-LINE-CHART' || chartName === 'VEGA-BAR-CHART'
|
4028
|
+
? DEFAULT_MARGIN_LEFT_WITH_AXIS
|
4029
|
+
: DEFAULT_LAYOUT.margin.left;
|
4030
|
+
const newLayout = {
|
4031
|
+
width: layout && layout.width ? layout.width : DEFAULT_LAYOUT.width,
|
4032
|
+
height: layout && layout.height ? layout.height : DEFAULT_LAYOUT.height,
|
4033
|
+
margin: Object.assign({}, DEFAULT_LAYOUT.margin, { top: defaultTop, left: defaultLeft }, layout && layout.margin ? layout.margin : {}),
|
4034
|
+
};
|
4035
|
+
return newLayout;
|
4036
|
+
}
|
4037
|
+
}
|
4038
|
+
|
4039
|
+
/**
|
4040
|
+
* This is a TypeScript code that defines an abstract class `BaseInteractor` with a generic type `T` that extends either `SVGElement` or `HTMLCanvasElement`.
|
4041
|
+
*/
|
4042
|
+
class BaseInteractor {
|
4043
|
+
/**
|
4044
|
+
* This is a constructor function that takes a parameter of type T and sets it as a protected property called "context".
|
4045
|
+
*
|
4046
|
+
* @param {SVGElement | HTMLCanvasElement} context - The "context" parameter is a protected property of a class constructor that is
|
4047
|
+
* of type "T". It is used to store a reference to an object or data that is required by the class
|
4048
|
+
* methods to perform their tasks. The "protected" keyword means that the property can only be
|
4049
|
+
* accessed within the class
|
4050
|
+
*/
|
4051
|
+
constructor(context) {
|
4052
|
+
this.context = context;
|
4053
|
+
this.interactingEntryForEventRegistry = new Map();
|
4054
|
+
this.interactingEntryForDrawerRegistry = new WeakMap();
|
4055
|
+
}
|
4056
|
+
/**
|
4057
|
+
* This function registers an interacting entry with a drawer, draw piece, and event type in an interactor registry.
|
4058
|
+
*
|
4059
|
+
* @param {BaseDrawer<unknown>} drawer - The drawer parameter is an instance of a class that extends the BaseDrawer class,
|
4060
|
+
* which is used for drawing on a canvas or other graphical surface.
|
4061
|
+
* @param {DrawPiece} drawPiece - DrawPiece is a type that represents a specific piece that can be
|
4062
|
+
* drawn on a canvas or other graphical surface. It could include information such as the shape,
|
4063
|
+
* color, size, and position of the piece.
|
4064
|
+
* @param {InteractingEntry} interactingEntry - InteractingEntry is a data structure that represents
|
4065
|
+
* an interaction between a user and a graphical element on the screen. It contains information such
|
4066
|
+
* as the type of event that triggered the interaction (e.g. mouse click, touch)
|
4067
|
+
*/
|
4068
|
+
register(drawer, drawPiece, interactingEntry) {
|
4069
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
4070
|
+
const eventType = interactingEntry.eventType;
|
4071
|
+
if (!this.interactingEntryForEventRegistry.get(eventType)) {
|
4072
|
+
this.interactingEntryForEventRegistry.set(eventType, []);
|
4073
|
+
}
|
4074
|
+
this.interactingEntryForEventRegistry.get(eventType).push(interactingEntry);
|
4075
|
+
if (!this.interactingEntryForDrawerRegistry.get(drawer)) {
|
4076
|
+
this.interactingEntryForDrawerRegistry.set(drawer, new WeakMap());
|
4077
|
+
}
|
4078
|
+
if (!this.interactingEntryForDrawerRegistry.get(drawer).get(drawPiece)) {
|
4079
|
+
this.interactingEntryForDrawerRegistry.get(drawer).set(drawPiece, []);
|
4080
|
+
}
|
4081
|
+
this.interactingEntryForDrawerRegistry.get(drawer).get(drawPiece).push(interactingEntry);
|
4082
|
+
/* eslint-enable @typescript-eslint/no-non-null-assertion */
|
4083
|
+
}
|
4084
|
+
/**
|
4085
|
+
* This function unregisters a drawer from the interactor registry.
|
4086
|
+
*
|
4087
|
+
* @param {BaseDrawer<unknown>} drawer - The parameter `drawer` is of type `BaseDrawer<unknown>`. It is an object that
|
4088
|
+
* represents a drawer and is used to unregister the drawer from the `interactorRegistry`. The
|
4089
|
+
* `interactorRegistry` is a `WeakMap` that stores a mapping between an `Interactor` and
|
4090
|
+
*/
|
4091
|
+
unregisterByDrawer(drawer) {
|
4092
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
4093
|
+
const drawPiece = drawer.drawPiece;
|
4094
|
+
if (drawPiece &&
|
4095
|
+
this.interactingEntryForDrawerRegistry.has(drawer) &&
|
4096
|
+
this.interactingEntryForDrawerRegistry.get(drawer) &&
|
4097
|
+
this.interactingEntryForDrawerRegistry.get(drawer).has(drawPiece) &&
|
4098
|
+
this.interactingEntryForDrawerRegistry.get(drawer).get(drawPiece)) {
|
4099
|
+
this.interactingEntryForEventRegistry.forEach((value, key) => {
|
4100
|
+
this.interactingEntryForEventRegistry.set(key, value.filter((interactingEntry) => {
|
4101
|
+
return (this.interactingEntryForDrawerRegistry
|
4102
|
+
.get(drawer)
|
4103
|
+
.get(drawPiece)
|
4104
|
+
.indexOf(interactingEntry) < 0);
|
4105
|
+
}));
|
4106
|
+
});
|
4107
|
+
/* eslint-enable @typescript-eslint/no-non-null-assertion */
|
4108
|
+
}
|
4109
|
+
this.interactingEntryForDrawerRegistry.delete(drawer);
|
4110
|
+
}
|
4111
|
+
/**
|
4112
|
+
* This function handles mouse events for registered interactor and drawers.
|
4113
|
+
*
|
4114
|
+
* @param {EventType} eventType - The type of event being registered in the registry, such as "click" or "mousemove".
|
4115
|
+
* @param {MouseEvent} event - The `event` parameter is of type `MouseEvent`, which represents a
|
4116
|
+
* mouse-related event (such as a click, double-click, or mouse movement) that occurred on the web
|
4117
|
+
* page. It contains information about the event, such as the type of event, the target element that
|
4118
|
+
* triggered the event
|
4119
|
+
*/
|
4120
|
+
callRegistry(eventType, event) {
|
4121
|
+
const interactingEntryArray = this.interactingEntryForEventRegistry.get(eventType);
|
4122
|
+
if (interactingEntryArray) {
|
4123
|
+
interactingEntryArray.forEach((interactingEntry) => {
|
4124
|
+
if (interactingEntry.shouldHandle(event)) {
|
4125
|
+
interactingEntry.handle(event);
|
4126
|
+
}
|
4127
|
+
});
|
4128
|
+
}
|
4129
|
+
}
|
4130
|
+
}
|
4131
|
+
|
4132
|
+
/**
|
4133
|
+
* The CanvasInteractor class extends the BaseInteractor class and provides empty methods for handling mouse move, click, and hover events on a HTML canvas element.
|
4134
|
+
*/
|
4135
|
+
class CanvasInteractor extends BaseInteractor {
|
4136
|
+
}
|
4137
|
+
|
4138
|
+
/**
|
4139
|
+
* The SVGInteractor class extends the BaseInteractor class and provides methods for handling mouse events on SVG elements.
|
4140
|
+
*/
|
4141
|
+
class SVGInteractor extends BaseInteractor {
|
4142
|
+
/**
|
4143
|
+
* This is a constructor function that adds event listeners for click and mouseover events to an SVG element.
|
4144
|
+
*
|
4145
|
+
* @param {SVGElement} context - The context parameter is an SVGElement, which is the element that the
|
4146
|
+
* constructor is being called on. It is used to add event listeners to the element for mouseover and
|
4147
|
+
* click events.
|
4148
|
+
*/
|
4149
|
+
constructor(context) {
|
4150
|
+
super(context);
|
4151
|
+
this.addContextListener();
|
4152
|
+
}
|
4153
|
+
/**
|
4154
|
+
* This function adds event listeners for click and mouseover events to the context element and calls
|
4155
|
+
* a registry function with the corresponding event type and event object.
|
4156
|
+
*/
|
4157
|
+
addContextListener() {
|
4158
|
+
this.context.addEventListener('click', (event) => {
|
4159
|
+
this.callRegistry('click', event);
|
4160
|
+
});
|
4161
|
+
this.context.addEventListener('mouseover', (event) => {
|
4162
|
+
this.callRegistry('mouseover', event);
|
4163
|
+
});
|
4164
|
+
}
|
4165
|
+
}
|
4166
|
+
|
4167
|
+
/** The InteractorFactory class provides a static method to create and return an appropriate interactor based on the type of context provided. */
|
4168
|
+
class InteractorFactory {
|
4169
|
+
/**
|
4170
|
+
* This function returns a BaseInteractor object based on the type of context passed in (SVGElement or HTMLCanvasElement).
|
4171
|
+
*
|
4172
|
+
* @param {SVGElement | HTMLCanvasElement} context - The `context` parameter is either an SVGElement
|
4173
|
+
* or an HTMLCanvasElement. It is used to determine which type of interactor to create and return. If
|
4174
|
+
* the context is an SVGElement, an instance of SVGInteractor is returned. If the context is an
|
4175
|
+
* HTMLCanvasElement, an instance of
|
4176
|
+
* @returns {BaseInteractor<SVGElement | HTMLCanvasElement>} A `BaseInteractor` object that is either an instance of `SVGInteractor` or
|
4177
|
+
* `CanvasInteractor`, depending on the type of the `context` parameter passed to the `get` method.
|
4178
|
+
*/
|
4179
|
+
static get(context) {
|
4180
|
+
if (context instanceof SVGElement) {
|
4181
|
+
return new SVGInteractor(context);
|
4182
|
+
}
|
4183
|
+
else if (context instanceof HTMLCanvasElement) {
|
4184
|
+
return new CanvasInteractor(context);
|
4185
|
+
}
|
4186
|
+
else {
|
4187
|
+
throw new Error('Invalid context');
|
4188
|
+
}
|
4189
|
+
}
|
4190
|
+
}
|
4191
|
+
|
4192
|
+
/** This is a TypeScript class called `BaseChart` that serves as a base class for creating charts */
|
4193
|
+
class BaseChart {
|
4194
|
+
/**
|
4195
|
+
* This is a constructor function that initializes a chart with options and creates a chain of drawers for rendering.
|
4196
|
+
*
|
4197
|
+
* @param {ChartOptions<unknown>} options - generic type that represents the configuration options for the chart
|
4198
|
+
*/
|
4199
|
+
constructor(options) {
|
4200
|
+
this.options = options;
|
4201
|
+
this.isLayoutSet = false;
|
4202
|
+
this.drawers = [];
|
4203
|
+
const context = GraphContextFactory.get(options.mode, options.container.shadowRoot ? options.container.shadowRoot : options.container);
|
4204
|
+
this.dimensionController = new ChartDimensionController(options.container);
|
4205
|
+
this.renderer = RendererFactory.get(context);
|
4206
|
+
this.interactor = InteractorFactory.get(context);
|
4207
|
+
this.initLayoutOptions(options);
|
4208
|
+
}
|
4209
|
+
/**
|
4210
|
+
* The function clears the renderer.
|
4211
|
+
*/
|
4212
|
+
clear() {
|
4213
|
+
this.renderer.clear();
|
4214
|
+
}
|
4215
|
+
/**
|
4216
|
+
* This function updates the chart options, creates a new drawer chain, resets the layout, and renders the chart.
|
4217
|
+
*
|
4218
|
+
* @param {ChartOptions<unknown>} options - ChartOptions<T> is a generic type that represents the configuration options for a
|
4219
|
+
* chart. It can include properties such as the chart type, data, labels, colors, and other stylingoptions
|
4220
|
+
*/
|
4221
|
+
updateOptions(options) {
|
4222
|
+
this.initLayoutOptions(options);
|
4223
|
+
this.isLayoutSet = false;
|
4224
|
+
this.render();
|
4225
|
+
}
|
4226
|
+
/**
|
4227
|
+
* re render the chart using existing options
|
4228
|
+
*/
|
4229
|
+
reRender() {
|
4230
|
+
this.updateOptions(this.options);
|
4231
|
+
}
|
4232
|
+
/**
|
4233
|
+
* sets the layout if it hasn't been set yet, and executes all the drawers. unregister the interactor by drawer
|
4234
|
+
*/
|
4235
|
+
render() {
|
4236
|
+
this.unregisterByDrawer();
|
4237
|
+
this.drawers = this.createDrawerChain(this.renderer, this.interactor);
|
4238
|
+
this.clear();
|
4239
|
+
if (!this.isLayoutSet) {
|
4240
|
+
this.setLayout();
|
4241
|
+
this.isLayoutSet = true;
|
4242
|
+
}
|
4243
|
+
this.drawers.forEach((drawer) => drawer.execute());
|
4244
|
+
}
|
4245
|
+
/**
|
4246
|
+
* sets the layout of a renderer using the options provided.
|
4247
|
+
*/
|
4248
|
+
setLayout() {
|
4249
|
+
const layout = this.options.layout;
|
4250
|
+
const width = this.dimensionController.getContainerClientWidth(layout), height = this.dimensionController.getContainerClientHeight(layout), margin = (layout === null || layout === void 0 ? void 0 : layout.margin) || DEFAULT_LAYOUT.margin;
|
4251
|
+
this.renderer.setLayout(width, height, margin.top, margin.left);
|
4252
|
+
}
|
4253
|
+
/**
|
4254
|
+
* This function initializes layout options for a chart.
|
4255
|
+
*
|
4256
|
+
* @param {ChartOptions} options - ChartOptions<T> is a generic type that represents the configuration options for a
|
4257
|
+
* chart. It includes properties such as data, layout, and style.
|
4258
|
+
*/
|
4259
|
+
initLayoutOptions(options) {
|
4260
|
+
const newLayout = this.dimensionController.mergeLayout(options.container.tagName, options.layout, options.legends && options.legends.length ? true : false);
|
4261
|
+
this.options = Object.assign(options, { layout: newLayout });
|
4262
|
+
this.dimensionController.setContainerWidthAndHeight(newLayout);
|
4263
|
+
this.options.container.style.display = 'block';
|
4264
|
+
}
|
4265
|
+
/**
|
4266
|
+
* This function un-registers drawers from the interactor.
|
4267
|
+
*/
|
4268
|
+
unregisterByDrawer() {
|
4269
|
+
if (this.drawers) {
|
4270
|
+
this.drawers.forEach((drawer) => {
|
4271
|
+
this.interactor.unregisterByDrawer(drawer);
|
4272
|
+
});
|
4273
|
+
}
|
4274
|
+
}
|
4275
|
+
}
|
4276
|
+
|
4277
|
+
/* This file is generated by vega-design 2.0.77 */
|
4278
|
+
/* eslint-disable */
|
4279
|
+
/* tslint:disable */
|
4280
|
+
// prettier-ignore
|
4281
|
+
const BackgroundColorsMappingLight = {
|
4282
|
+
"bg-brand": "#33393D",
|
4283
|
+
"bg-page": "#F0F3F7",
|
4284
|
+
"bg-primary": "#FCFCFC",
|
4285
|
+
"bg-secondary": "#F5F7F7",
|
4286
|
+
"bg-tertiary": "#F0F3F7",
|
4287
|
+
"bg-quaternary": "#F1F8FB",
|
4288
|
+
"bg-inverted-primary": "#04041C",
|
4289
|
+
"bg-inverted-secondary": "#121227",
|
4290
|
+
"bg-inverted-tertiary": "#181830",
|
4291
|
+
"bg-inverted-quaternary": "#464765",
|
4292
|
+
"bg-action": "#1362E2",
|
4293
|
+
"bg-action-hover": "#0470EC",
|
4294
|
+
"bg-action-focus": "#1362E2",
|
4295
|
+
"bg-action-active": "#1D41C3",
|
4296
|
+
"bg-action-quaternary": "#DEE1E3",
|
4297
|
+
"bg-action-quaternary-hover": "#EFEFEF",
|
4298
|
+
"bg-action-quaternary-active": "#CDD1D3",
|
4299
|
+
"bg-action-secondary": "#FCFCFC",
|
4300
|
+
"bg-action-secondary-hover": "#0470EC",
|
4301
|
+
"bg-action-secondary-active": "#1D41C3",
|
4302
|
+
"bg-action-tertiary": "#000000",
|
4303
|
+
"bg-action-tertiary-hover": "#04041C",
|
4304
|
+
"bg-action-tertiary-active": "#04041C",
|
4305
|
+
"bg-app-header": "#F0F3F7",
|
4306
|
+
"bg-backdrop-modal": "#121227",
|
4307
|
+
"bg-backdrop-popover": "#203645",
|
4308
|
+
"bg-backdrop-sidebar": "#121227",
|
4309
|
+
"bg-chip": "#203645",
|
4310
|
+
"bg-chip-hover": "#203645",
|
4311
|
+
"bg-chip-active": "#203645",
|
4312
|
+
"bg-danger": "#BD2947",
|
4313
|
+
"bg-danger-hover": "#E94768",
|
4314
|
+
"bg-danger-focus": "#BD2947",
|
4315
|
+
"bg-danger-active": "#E63257",
|
4316
|
+
"bg-danger-tertiary": "#000000",
|
4317
|
+
"bg-danger-tertiary-hover": "#FF5772",
|
4318
|
+
"bg-danger-tertiary-active": "#BD2947",
|
4319
|
+
"bg-disabled": "#B0B4B5",
|
4320
|
+
"bg-divider": "#ABC6D8",
|
4321
|
+
"bg-divider-secondary": "#C7D9E5",
|
4322
|
+
"bg-keypad-btn-active": "#E5EFFF",
|
4323
|
+
"bg-loading-progress": "#99C0FF",
|
4324
|
+
"bg-loading-track": "#E5EFFF",
|
4325
|
+
"bg-segment-hover": "#CDD1D3",
|
4326
|
+
"bg-segment-control": "#596063",
|
4327
|
+
"bg-selected": "#0097FF",
|
4328
|
+
"bg-sidebar": "#121227",
|
4329
|
+
"bg-sidebar-icon": "#BCBAD5",
|
4330
|
+
"bg-sidebar-icon-hover": "#121227",
|
4331
|
+
"bg-sidebar-icon-selected": "#FCFCFC",
|
4332
|
+
"bg-sidebar-item-hover": "#FCFCFC",
|
4333
|
+
"bg-sidebar-item-selected": "#1362E2",
|
4334
|
+
"bg-site-footer": "#33393D",
|
4335
|
+
"bg-site-footer-action": "#ABC6D8",
|
4336
|
+
"bg-site-footer-action-hover": "#C7D9E5",
|
4337
|
+
"bg-site-footer-action-active": "#8FB3CB",
|
4338
|
+
"bg-site-footer-field": "#596063",
|
4339
|
+
"bg-slider-handle": "#FCFCFC",
|
4340
|
+
"bg-status-error": "#FF6E8B",
|
4341
|
+
"bg-status-info": "#CDD1D3",
|
4342
|
+
"bg-status-success": "#A0E9A7",
|
4343
|
+
"bg-status-warning": "#FFDC83",
|
4344
|
+
"bg-tab": "#F0F3F7",
|
4345
|
+
"bg-tab-hover": "#F5F7F7",
|
4346
|
+
"bg-tab-selected": "#203645",
|
4347
|
+
"bg-table-alt-row": "#F5F7F7",
|
4348
|
+
"bg-table-header": "#F0F3F7",
|
4349
|
+
"bg-table-row-hover": "#F1F8FB",
|
4350
|
+
"bg-table-row-selected-expanded": "#E5EFFF",
|
4351
|
+
"bg-table-selected-row": "#CCDFFF",
|
4352
|
+
"bg-textarea-count": "#04041C",
|
4353
|
+
"bg-tile": "#FCFCFC",
|
4354
|
+
"bg-tile-hover": "#F5F7F7",
|
4355
|
+
"bg-tile-selected": "#F2F7FF",
|
4356
|
+
"bg-tile-selected-hover": "#E5EFFF",
|
4357
|
+
"bg-toggle-switch": "#6B747D",
|
4358
|
+
"bg-toggle-switch-hover": "#6B747D",
|
4359
|
+
"bg-toggle-switch-selected-disabled": "#99C0FF",
|
4360
|
+
"bg-transparent": "#000000",
|
4361
|
+
"bg-accent1-primary": "#73E6DC",
|
4362
|
+
"bg-accent1-secondary": "#C1F4EF",
|
4363
|
+
"bg-accent1-tertiary": "#E0F9F7",
|
4364
|
+
"bg-accent2-primary": "#806BFF",
|
4365
|
+
"bg-accent2-secondary": "#C7BDFF",
|
4366
|
+
"bg-accent2-tertiary": "#E3DEFF",
|
4367
|
+
"bg-accent3-primary": "#FFDC83",
|
4368
|
+
"bg-accent3-secondary": "#FFEFC8",
|
4369
|
+
"bg-accent3-tertiary": "#FFF7E3",
|
4370
|
+
"bg-accent4-primary": "#FF9571",
|
4371
|
+
"bg-accent4-secondary": "#FFD0C0",
|
4372
|
+
"bg-accent4-tertiary": "#FFE7DF",
|
4373
|
+
"bg-accent5-primary": "#00BBFF",
|
4374
|
+
"bg-accent5-secondary": "#8EDFF9",
|
4375
|
+
"bg-accent5-tertiary": "#E3F7FD",
|
4376
|
+
"bg-accent6-primary": "#FF82C9",
|
4377
|
+
"bg-accent6-secondary": "#FFC7E7",
|
4378
|
+
"bg-accent6-tertiary": "#FFE3F3",
|
4379
|
+
"bg-accent7-primary": "#259F9F",
|
4380
|
+
"bg-accent7-secondary": "#9BD4D6",
|
4381
|
+
"bg-accent7-tertiary": "#D0EFEF",
|
4382
|
+
"bg-accent8-primary": "#563D82",
|
4383
|
+
"bg-accent8-secondary": "#C7A2CC",
|
4384
|
+
"bg-accent8-tertiary": "#E6D6EA",
|
4385
|
+
"bg-accent9-primary": "#FFBF3F",
|
4386
|
+
"bg-accent9-secondary": "#FED78E",
|
4387
|
+
"bg-accent9-tertiary": "#FBE2B9",
|
4388
|
+
"bg-accent10-primary": "#ED7A23",
|
4389
|
+
"bg-accent10-secondary": "#F19255",
|
4390
|
+
"bg-accent10-tertiary": "#F5BB94",
|
4391
|
+
"bg-date-picker-range": "#E5EFFF"
|
4392
|
+
};
|
4393
|
+
|
4394
|
+
const CHART_DEFAULT_COLORS = [
|
4395
|
+
'bg-accent1-primary',
|
4396
|
+
'bg-accent2-primary',
|
4397
|
+
'bg-accent3-primary',
|
4398
|
+
'bg-accent4-primary',
|
4399
|
+
'bg-accent5-primary',
|
4400
|
+
'bg-accent6-primary',
|
4401
|
+
'bg-accent7-primary',
|
4402
|
+
'bg-accent8-primary',
|
4403
|
+
'bg-accent9-primary',
|
4404
|
+
'bg-accent10-primary',
|
4405
|
+
];
|
4406
|
+
const DEFAULT_FONT_FAMILY = 'font-family:"Inter", sans-serif;';
|
4407
|
+
const FONTSTYLEMAPPING = Object.keys(Typography).reduce((result, key) => {
|
4408
|
+
result[key] =
|
4409
|
+
DEFAULT_FONT_FAMILY +
|
4410
|
+
Typography[key].filter((str) => str.indexOf('@apply') < 0).join(';');
|
4411
|
+
return result;
|
4412
|
+
}, { 'v-text-secondary': `color:rgba(107, 116, 125, 1);` });
|
4413
|
+
/**
|
4414
|
+
* base drawer that provides a common structure for drawing charts using a renderer and options.
|
4415
|
+
*/
|
4416
|
+
class BaseDrawer {
|
4417
|
+
/**
|
4418
|
+
* This is a constructor function that takes in a renderer and options for a chart drawer.
|
4419
|
+
*
|
4420
|
+
* @param {BaseRenderer<SVGElement | HTMLCanvasElement>} renderer - `renderer` parameter is an instance of a `BaseRenderer` class that can render either SVG elements or a 2D canvas context
|
4421
|
+
* @param {BaseInteractor<SVGElement | HTMLCanvasElement>} interactor - `renderer` parameter is an instance of a `BaseInteractor` class
|
4422
|
+
* @param {ChartDrawerOptions<unknown>} options - where `T` is a generic type parameter. This parameter contains various options that can be used to customize the chart being drawn
|
4423
|
+
*/
|
4424
|
+
constructor(renderer, interactor, options) {
|
4425
|
+
this.renderer = renderer;
|
4426
|
+
this.interactor = interactor;
|
4427
|
+
this.options = options;
|
4428
|
+
}
|
4429
|
+
/**
|
4430
|
+
* The function executes a draw method.
|
4431
|
+
*/
|
4432
|
+
execute() {
|
4433
|
+
const drawPiece = this.draw();
|
4434
|
+
this.drawPiece = drawPiece;
|
4435
|
+
this.addInteractionSupport(drawPiece);
|
4436
|
+
}
|
4437
|
+
/**
|
4438
|
+
* returns a color token based on an index and an optional array of colors.
|
4439
|
+
*
|
4440
|
+
* @param {number} index - The index parameter is a number that represents the index of the color to be returned from the colors array.
|
4441
|
+
* @param {BackgroundColorsTokenType[]} [colors] - `colors` is an optional parameter of type `BackgroundColorsTokenType[]`
|
4442
|
+
* @returns {BackgroundColorsTokenType} color token
|
4443
|
+
*/
|
4444
|
+
getColorByIndex(index, colors) {
|
4445
|
+
colors = colors && colors.length ? colors : CHART_DEFAULT_COLORS;
|
4446
|
+
index = index % colors.length;
|
4447
|
+
return colors[index];
|
4448
|
+
}
|
4449
|
+
/**
|
4450
|
+
* This function takes a token representing a background color and returns the corresponding color value from a predefined mapping.
|
4451
|
+
*
|
4452
|
+
* @param {BackgroundColorsTokenType} token - a string representing the token for a background color
|
4453
|
+
* @returns {string} The string value returned is the color code
|
4454
|
+
*/
|
4455
|
+
getColorFromToken(token) {
|
4456
|
+
return BackgroundColorsMappingLight[token];
|
4457
|
+
}
|
4458
|
+
/**
|
4459
|
+
* The function takes a token as input and returns the corresponding CSS style text from a predefined mapping.
|
4460
|
+
*
|
4461
|
+
* @param {string} token - The `token` parameter is a string that represents a specific style mapping
|
4462
|
+
* in the `FONTSTYLEMAPPING` object. The function returns the CSS style text associated with the given `token`.
|
4463
|
+
* @returns {string} a string that represents the CSS style associated with the input token. If the input token
|
4464
|
+
* matches a key in the `FONTSTYLEMAPPING` object, the corresponding CSS style string is returned.
|
4465
|
+
*/
|
4466
|
+
getStyleTextFromToken(token) {
|
4467
|
+
return token
|
4468
|
+
.split(' ')
|
4469
|
+
.map((item) => FONTSTYLEMAPPING[item])
|
4470
|
+
.join(';');
|
4471
|
+
}
|
4472
|
+
}
|
4473
|
+
|
4474
|
+
/** The code is defining an abstract class called `InteractingEntryGenerator` with a generic type `T`. This class is responsible for generating an `InteractingEntry` object based on the provided options. */
|
4475
|
+
class InteractingEntryGenerator {
|
4476
|
+
/**
|
4477
|
+
* The function generates an InteractingEntry object based on the provided options.
|
4478
|
+
*
|
4479
|
+
* @param {unknown} options - The `options` parameter is a generic type `T` that represents the options or configuration for the `generate` function. It can be any type that you define when calling the `generate` function.
|
4480
|
+
* @returns {InteractingEntry} An object of type InteractingEntry is being returned.
|
4481
|
+
*/
|
4482
|
+
generate(options) {
|
4483
|
+
return {
|
4484
|
+
eventType: this.eventType,
|
4485
|
+
shouldHandle: this.createShouldHandle(options),
|
4486
|
+
handle: this.createHandle(options),
|
4487
|
+
};
|
4488
|
+
}
|
4489
|
+
}
|
4490
|
+
|
4491
|
+
/** The PieLegendHoverGenerator class generates an InteractingEntry object that handles mouseover events on a legend of a D3 pie chart and triggers a mouseover event on the corresponding path element. */
|
4492
|
+
class PieLegendHoverGenerator extends InteractingEntryGenerator {
|
4493
|
+
constructor() {
|
4494
|
+
super(...arguments);
|
4495
|
+
this.eventType = 'mouseover';
|
4496
|
+
}
|
4497
|
+
/**
|
4498
|
+
* The function "createShouldHandle" returns a function that takes an event as a parameter and returns a boolean value.
|
4499
|
+
*
|
4500
|
+
* @returns {InteractingEntry['shouldHandle']} A function that takes an event as an argument and returns a boolean value.
|
4501
|
+
*/
|
4502
|
+
createShouldHandle() {
|
4503
|
+
return this.shouldHandle;
|
4504
|
+
}
|
4505
|
+
/**
|
4506
|
+
* The function "createHandle" returns the handle property of an InteractingEntry object.
|
4507
|
+
*
|
4508
|
+
* @param {LegendInputType} options the legend render options
|
4509
|
+
* @returns {InteractingEntry['handle']} The `handle` property of the `InteractingEntry` object is being returned.
|
4510
|
+
*/
|
4511
|
+
createHandle(options) {
|
4512
|
+
// eslint-disable-next-line jsdoc/require-jsdoc
|
4513
|
+
return (event) => {
|
4514
|
+
this.handle(event, options);
|
4515
|
+
};
|
4516
|
+
}
|
4517
|
+
/**
|
4518
|
+
* This function checks if a mouse event should be handled based on whether the target or its parent element has a specific class.
|
4519
|
+
*
|
4520
|
+
* @param {MouseEvent} event - MouseEvent is a type of event that is triggered by a mouse action, such
|
4521
|
+
* as clicking, hovering, or scrolling. It contains information about the event, such as the target
|
4522
|
+
* element and the position of the mouse.
|
4523
|
+
* @returns {boolean} A boolean value is being returned. The method `shouldHandle` checks if the target element
|
4524
|
+
* or its parent element has a class of `vega-chart-legend-item` and returns `true` if it does, and
|
4525
|
+
* `false` otherwise.
|
4526
|
+
*/
|
4527
|
+
shouldHandle(event) {
|
4528
|
+
var _a;
|
4529
|
+
const target = event.target;
|
4530
|
+
const currentTarget = event.currentTarget;
|
4531
|
+
const container = currentTarget.parentElement && currentTarget.parentElement.nodeType !== 11
|
4532
|
+
? currentTarget.parentElement
|
4533
|
+
: currentTarget.parentNode['host'];
|
4534
|
+
return (container.tagName === 'VEGA-PIE-CHART' &&
|
4535
|
+
(target.classList.contains('vega-chart-legend-item') ||
|
4536
|
+
!!((_a = target.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains('vega-chart-legend-item'))));
|
4537
|
+
}
|
4538
|
+
/**
|
4539
|
+
* The function handles a mouse event on a legend and triggers a mouseover event on the corresponding path element in a D3 chart.
|
4540
|
+
*
|
4541
|
+
* @param {MouseEvent} event - The event parameter is a MouseEvent, which represents a user action
|
4542
|
+
* (such as a click or hover) on a specific element in the DOM.
|
4543
|
+
* @param {LegendInputType} options - LegendInputType is a custom type that likely contains
|
4544
|
+
* information about the data being displayed in the chart, such as the names of the categories or
|
4545
|
+
* series being plotted. It may also include information about the chart's appearance or behavior,
|
4546
|
+
* such as the colors or labels used in the legend. Without more information about
|
4547
|
+
*/
|
4548
|
+
handle(event, options) {
|
4549
|
+
var _a;
|
4550
|
+
const svgSelection = d3Select(event.currentTarget);
|
4551
|
+
const target = event.target;
|
4552
|
+
const targetTextNode = target.tagName === 'text'
|
4553
|
+
? target
|
4554
|
+
: target.tagName === 'circle'
|
4555
|
+
? target.nextElementSibling
|
4556
|
+
: target.querySelector('text');
|
4557
|
+
const name = targetTextNode ? targetTextNode.textContent : '';
|
4558
|
+
const index = name ? options.data.indexOf(name) : 0;
|
4559
|
+
const paths = svgSelection
|
4560
|
+
.selectAll(`path.vega-chart-arc-path`)
|
4561
|
+
.nodes();
|
4562
|
+
(_a = paths[index]) === null || _a === void 0 ? void 0 : _a.dispatchEvent(new MouseEvent('mouseover', { bubbles: true }));
|
4563
|
+
}
|
4564
|
+
}
|
4565
|
+
|
4566
|
+
/** The LegendDrawer class draws circles and text for each legend in a chart. */
|
4567
|
+
class LegendDrawer extends BaseDrawer {
|
4568
|
+
constructor() {
|
4569
|
+
super(...arguments);
|
4570
|
+
this.pieLegendHoverGenerator = new PieLegendHoverGenerator();
|
4571
|
+
}
|
4572
|
+
/**
|
4573
|
+
* This function adds interaction support to a chart by registering it with an interactor and providing a hover generator.
|
4574
|
+
*
|
4575
|
+
* @param {(SVGGElement | HTMLCanvasElement)[]} drawPiece - `drawPiece` is a parameter of type array
|
4576
|
+
* that contains either `SVGGElement` or `HTMLCanvasElement` elements. It is used as a callback
|
4577
|
+
* function to draw the legend items on the chart.
|
4578
|
+
*/
|
4579
|
+
addInteractionSupport(drawPiece) {
|
4580
|
+
var _a;
|
4581
|
+
if ((_a = this.options.renderOptions.data) === null || _a === void 0 ? void 0 : _a.length) {
|
4582
|
+
this.interactor.register(this, drawPiece, this.pieLegendHoverGenerator.generate(this.options.renderOptions));
|
4583
|
+
}
|
4584
|
+
}
|
4585
|
+
/**
|
4586
|
+
* This function draws a legend on a chart using input options.
|
4587
|
+
*
|
4588
|
+
* @returns {(SVGGElement | HTMLCanvasElement)[]} draw piece
|
4589
|
+
*/
|
4590
|
+
draw() {
|
4591
|
+
const { data = [], colors, position, width } = this.options.renderOptions;
|
4592
|
+
const options = this.getChartLegendOptions(data, colors, position);
|
4593
|
+
if (options) {
|
4594
|
+
const longestLegendLength = getLongestTextLengthFromArray(data);
|
4595
|
+
return options.legends.map((legend, index) => {
|
4596
|
+
const position = this.getLegendPosition(options.position, index, longestLegendLength, width);
|
4597
|
+
return this.renderer.drawLegend(position, legend.field, legend.color, this.getStyleTextFromToken('v-font-footnote2-short'));
|
4598
|
+
});
|
4599
|
+
}
|
4600
|
+
}
|
4601
|
+
/**
|
4602
|
+
* This function takes in an array of strings and an optional position parameter, and returns an object containing legend options for a chart.
|
4603
|
+
*
|
4604
|
+
* @param {string[]} data - an array of strings representing the legend labels
|
4605
|
+
* @param {BackgroundColorsTokenType[]} [colors] - bg color token array
|
4606
|
+
* @param {ChartPosition} [position] - The `position` parameter is an optional parameter of type
|
4607
|
+
* `ChartPosition` which specifies the x and y coordinates of the chart legend on the chart. If it is
|
4608
|
+
* not provided, the default position is `{x: 10, y: 0}`.
|
4609
|
+
* @returns {ChartLegendOptions | undefined} an object of type `ChartLegendOptions`.
|
4610
|
+
*/
|
4611
|
+
getChartLegendOptions(data, colors, position) {
|
4612
|
+
if (data && data.length) {
|
4613
|
+
position = position ? Object.assign({ x: 10, y: 0 }, position) : { x: 10, y: 0 };
|
4614
|
+
const legendsMap = {
|
4615
|
+
position,
|
4616
|
+
legends: data.map((text, index) => {
|
4617
|
+
return {
|
4618
|
+
field: text,
|
4619
|
+
color: this.getColorFromToken(this.getColorByIndex(index, colors)),
|
4620
|
+
icon: '',
|
4621
|
+
};
|
4622
|
+
}),
|
4623
|
+
};
|
4624
|
+
return legendsMap;
|
4625
|
+
}
|
4626
|
+
}
|
4627
|
+
/**
|
4628
|
+
* This function calculates the position of a legend on a chart based on its index and the chart layout.
|
4629
|
+
*
|
4630
|
+
* @param {ChartPosition} position - The initial position of the legend on the chart, with x and y coordinates.
|
4631
|
+
* @param {number} index - The index parameter is a number that represents the index of the legend item in the array of legends. It is used to calculate the position of the legend item on the chart.
|
4632
|
+
* @param {number} longestTextLength - text length
|
4633
|
+
* @param {number} width - chart width
|
4634
|
+
* @returns {ChartPosition} an object of type `ChartPosition` with `x` and `y` properties.
|
4635
|
+
*/
|
4636
|
+
getLegendPosition(position, index, longestTextLength, width) {
|
4637
|
+
const maxWidth = width;
|
4638
|
+
if (maxWidth) {
|
4639
|
+
const restWidth = maxWidth - position.x;
|
4640
|
+
const singleWidth = longestTextLength * 7 + 24;
|
4641
|
+
const singleHeight = 18;
|
4642
|
+
const column = Math.max(Number((restWidth / singleWidth).toFixed(0)), 1);
|
4643
|
+
const row = parseInt((index / column).toString());
|
4644
|
+
const x = position.x + singleWidth * (index % column);
|
4645
|
+
const y = position.y + row * singleHeight;
|
4646
|
+
return { x, y };
|
4647
|
+
}
|
4648
|
+
return { x: 0, y: 0 };
|
4649
|
+
}
|
4650
|
+
}
|
4651
|
+
|
4652
|
+
/** The LayoutInputProcessor class processes input chart options to calculate layout dimensions and margins. */
|
4653
|
+
class LayoutInputProcessor {
|
4654
|
+
/**
|
4655
|
+
* This function processes chart options and returns layout dimensions and margins.
|
4656
|
+
*
|
4657
|
+
* @param {ChartOptions<unknown>} input - A ChartOptions object containing the container and layout properties.
|
4658
|
+
* @returns {LayoutProcessResultType} An object with properties `width`, `height`, `innerWidth`, `innerHeight`, `top`, `right`,
|
4659
|
+
* `bottom`, and `left`.
|
4660
|
+
*/
|
4661
|
+
process(input) {
|
4662
|
+
const { container, layout } = input;
|
4663
|
+
const { top, right, bottom, left } = ((layout === null || layout === void 0 ? void 0 : layout.margin) ||
|
4664
|
+
DEFAULT_LAYOUT.margin);
|
4665
|
+
const dimensionController = new ChartDimensionController(container);
|
4666
|
+
return {
|
4667
|
+
width: dimensionController.getContainerClientWidth(layout),
|
4668
|
+
height: dimensionController.getContainerClientHeight(layout),
|
4669
|
+
innerWidth: dimensionController.getContainerInnerWidth(layout),
|
4670
|
+
innerHeight: dimensionController.getContainerInnerHeight(layout),
|
4671
|
+
top,
|
4672
|
+
right,
|
4673
|
+
bottom,
|
4674
|
+
left,
|
4675
|
+
};
|
4676
|
+
}
|
4677
|
+
}
|
4678
|
+
|
4679
|
+
/** The `ProcessorChain` class takes an array of input processors, processes input through them, and returns the final output. */
|
4680
|
+
class ProcessorChain {
|
4681
|
+
/**
|
4682
|
+
* This is a constructor function that takes an array of input processors as a parameter.
|
4683
|
+
*
|
4684
|
+
* @param {InputProcessor<unknown, unknown, unknown>[]} processors - The `processors` parameter is a
|
4685
|
+
* private property of the class that is of type `InputProcessor` which is an interface that takes
|
4686
|
+
* three type parameters - `Input`, `Output`, and `Context`. It is an array of instances of classes
|
4687
|
+
* that implement the `InputProcessor` interface. These processors are
|
4688
|
+
*/
|
4689
|
+
constructor(processors) {
|
4690
|
+
this.processors = processors;
|
4691
|
+
}
|
4692
|
+
/**
|
4693
|
+
* This function processes input through a series of processors and returns the final output.
|
4694
|
+
*
|
4695
|
+
* @param {unknown} input - The input parameter is of type unknown, which means it can be any type of
|
4696
|
+
* value. It is the data that will be processed by the processors.
|
4697
|
+
* @returns {unknown} the output of the last processor in the `this.processors` array.
|
4698
|
+
*/
|
4699
|
+
process(input) {
|
4700
|
+
let previousOutput;
|
4701
|
+
for (const processor of this.processors) {
|
4702
|
+
previousOutput = processor.process(input, previousOutput);
|
4703
|
+
}
|
4704
|
+
return previousOutput;
|
4705
|
+
}
|
4706
|
+
}
|
4707
|
+
|
4708
|
+
/** The `LegendInputProcessor` class processes chart options and previous layout results to generate a legend input object for a line chart. */
|
4709
|
+
class LegendInputProcessor {
|
4710
|
+
/**
|
4711
|
+
* This function takes in chart options and previous layout results, and returns a legend input object with data, colors, position, width, and height properties.
|
4712
|
+
*
|
4713
|
+
* @param {ChartOptions<LineChartDataType>} input - The input parameter is an object of type ChartOptions that contains the data and
|
4714
|
+
* configuration options for a line chart.
|
4715
|
+
* @param {LayoutProcessResultType} previousOutput - `previousOutput` is an optional parameter of
|
4716
|
+
* type `LayoutProcessResultType` that represents the output of the previous layout process. It is
|
4717
|
+
* used to retrieve the width and height of the chart, which are needed to properly position the
|
4718
|
+
* legend. If no previous output is provided, the width and height will
|
4719
|
+
* @returns {LegendInputType} an object of type `LegendInputType`. The object contains the following properties:
|
4720
|
+
* - `data`: an array of legend items
|
4721
|
+
* - `colors`: an array of colors used in the chart
|
4722
|
+
* - `position`: an object with `x` and `y` properties representing the position of the legend
|
4723
|
+
* - `width`: the width of the chart
|
4724
|
+
* - `height`: the
|
4725
|
+
*/
|
4726
|
+
process(input, previousOutput) {
|
4727
|
+
const { colors, legends = [] } = input;
|
4728
|
+
const { width, height } = previousOutput;
|
4729
|
+
return {
|
4730
|
+
data: legends,
|
4731
|
+
colors,
|
4732
|
+
position: { x: 10, y: 10 },
|
4733
|
+
width,
|
4734
|
+
height,
|
4735
|
+
};
|
4736
|
+
}
|
4737
|
+
}
|
4738
|
+
|
4739
|
+
export { BaseDrawer as B, InteractingEntryGenerator as I, LayoutInputProcessor as L, ProcessorChain as P, BaseChart as a, LegendInputProcessor as b, LegendDrawer as c, constant$1 as d, color as e, interpolateRgb as f, interpolateString as g, array as h, interpolateNumber as i, constant as j, d3Select as k, tau as t };
|