@heartlandone/vega-sandbox-pr-1479-67b1af6617cd7ddd88b398d2d9e81f66e06d5403 2.27.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-fcfa5bb7.js +364 -0
- package/dist/cjs/style-formatter-a0829641.js +34 -0
- package/dist/cjs/sub-state-observer-slimmer-832a4215.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 +4149 -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 +1015 -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 +2087 -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 +199 -0
- package/dist/collection/components/vega-button/vega-button.js +481 -0
- package/dist/collection/components/vega-button-circle/vega-button-circle.css +402 -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 +73 -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 +26 -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 +70 -0
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-monthly-repeat-pattern.js +90 -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 +163 -0
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-yearly-repeat-pattern.js +92 -0
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/test/calendar-event-repeat-pattern-factory.test.js +105 -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 +190 -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 +179 -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 +208 -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 +2338 -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 +65 -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 +77 -0
- package/dist/collection/helpers/formatter/string-formatter/number-thousand-comma-strategy.js +69 -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 +83 -0
- package/dist/collection/helpers/formatter/test/string-formatter/number-thousand-comma-mask-strategy.test.js +30 -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 +198 -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 +186 -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 +168 -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 +134 -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-bfe3f5e5.js +361 -0
- package/dist/esm/style-formatter-2fa5ce09.js +32 -0
- package/dist/esm/sub-state-observer-slimmer-af28076b.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 +4143 -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 +1011 -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 +56 -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 +93 -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 +55 -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-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-152393dd.js +1 -0
- package/dist/vega/p-16493e5b.js +1 -0
- package/dist/vega/p-172605c3.entry.js +1 -0
- package/dist/vega/p-1adfa073.entry.js +1 -0
- package/dist/vega/p-1b901368.entry.js +13 -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-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-456416ea.js +1 -0
- package/dist/vega/p-47a4c625.js +1 -0
- package/dist/vega/p-47c87634.js +1 -0
- package/dist/vega/p-4fffa7db.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-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-8a646846.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-92c3a7f1.entry.js +1 -0
- package/dist/vega/p-987fbbd0.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-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-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-af71fe84.entry.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-bffaa859.entry.js +1 -0
- package/dist/vega/p-c1dfdc13.js +1 -0
- package/dist/vega/p-c59042c0.js +1 -0
- package/dist/vega/p-c9e3413b.entry.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-d550fc66.entry.js +1 -0
- package/dist/vega/p-d7bd2be5.entry.js +1 -0
- package/dist/vega/p-d93df1e9.entry.js +1 -0
- package/dist/vega/p-da86ba01.js +1 -0
- package/dist/vega/p-db120a1e.js +1 -0
- package/dist/vega/p-ddc70a7b.js +1 -0
- package/dist/vega/p-dee487f9.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-fcaeb7bb.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,4143 @@
|
|
1
|
+
import { h, F as Fragment, f as forceUpdate, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-187f71d1.js';
|
2
|
+
import { s as sanitizeVegaComponent } from './component-cae24190.js';
|
3
|
+
import { c as MapToComponentField, V as VegaSlimmer, M as MapToComponentMethod, L as LogUtility, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
4
|
+
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-b3f6ac79.js';
|
5
|
+
import { D as DomNodeSubjectObserverFactory, d as domNodeSubjectFactory } from './dom-node-subject-observer-factory-9461cd67.js';
|
6
|
+
import { a as VegaClick, e as VegaChange, b as VegaDropdownClick, f as VegaEventClick, g as VegaDateDblClick, h as VegaMoreActionClick } from './vega-event-id-7465a011.js';
|
7
|
+
import { V as VegaInternalIconManager } from './internal-icon-manager-9671142a.js';
|
8
|
+
import { p as pad } from './date-732bc749.js';
|
9
|
+
import { c as createEventEmitSlimmer } from './event-emit-slimmer-eee9fd41.js';
|
10
|
+
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-345c46c5.js';
|
11
|
+
import { i as VegaInternalCalendarMonthEventsChange } from './vega-internal-event-id-7e05cf4a.js';
|
12
|
+
import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0fab.js';
|
13
|
+
import { f as flatNestedArray } from './array-506b88b9.js';
|
14
|
+
import { g as generateUUID } from './create-public-api-runtime-metrics-slimmer-928ad7f0.js';
|
15
|
+
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-994c1e1b.js';
|
16
|
+
import { d as debounce } from './timer-9321173b.js';
|
17
|
+
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
18
|
+
import { c as createSubStateNotifySlimmer, S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-af28076b.js';
|
19
|
+
import { T as TranslationSlimmer } from './translation-slimmer-79f9a9c9.js';
|
20
|
+
import { s as slotPlaceholder } from './placeholder-bf562081.js';
|
21
|
+
import { p as isBackgroundColorTokenType } from './type-guard-63caf78b.js';
|
22
|
+
import { s as stateBackgroundColorFormatter } from './state-background-color-formatter-0540d006.js';
|
23
|
+
import { b as parsePixelStringToNumber } from './pixel-f32c07ce.js';
|
24
|
+
import './observer-3959f9dd.js';
|
25
|
+
import './ui-0132dbb5.js';
|
26
|
+
import './icon-manager-0f030f8a.js';
|
27
|
+
import './dynamic-slimmer-90b8af32.js';
|
28
|
+
import './internal-vega-event-manager-722461c1.js';
|
29
|
+
import './vega-env-manager-8f8dc473.js';
|
30
|
+
import './feature-flag-controller-10780eeb.js';
|
31
|
+
import './index-0863eec6.js';
|
32
|
+
import './number-e2519d1c.js';
|
33
|
+
import './breakpoints-36a3ed69.js';
|
34
|
+
import './ui-8424715a.js';
|
35
|
+
import './translation-0fa7cf77.js';
|
36
|
+
import './static-subject-title-6987a80b.js';
|
37
|
+
import './regex-dfe11abf.js';
|
38
|
+
import './typography-a8fc4764.js';
|
39
|
+
|
40
|
+
var __decorate$o = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
41
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
42
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
43
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
44
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
45
|
+
};
|
46
|
+
/** The `VegaCalendarRenderer` class in TypeScript React renders switch panel and view components for a calendar using VegaSlimmer. */
|
47
|
+
class VegaCalendarRenderer extends VegaSlimmer {
|
48
|
+
/**
|
49
|
+
* The render function returns a Fragment containing the rendered output of switchPanelRenderer and viewRenderer components.
|
50
|
+
*
|
51
|
+
* @returns {HTMLElement} An HTMLElement containing the rendered output of the switchPanelRenderer and viewRenderer components.
|
52
|
+
*/
|
53
|
+
render() {
|
54
|
+
return (h(Fragment, null,
|
55
|
+
this.switchPanelRenderer.render(),
|
56
|
+
this.viewRenderer.render()));
|
57
|
+
}
|
58
|
+
}
|
59
|
+
__decorate$o([
|
60
|
+
MapToComponentField()
|
61
|
+
], VegaCalendarRenderer.prototype, "switchPanelRenderer", void 0);
|
62
|
+
__decorate$o([
|
63
|
+
MapToComponentField()
|
64
|
+
], VegaCalendarRenderer.prototype, "viewRenderer", void 0);
|
65
|
+
|
66
|
+
const chevronRight = {
|
67
|
+
icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/></svg>`,
|
68
|
+
};
|
69
|
+
|
70
|
+
const chevronLeft = {
|
71
|
+
icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"/></svg>`,
|
72
|
+
};
|
73
|
+
|
74
|
+
/**
|
75
|
+
* Get a week days array
|
76
|
+
*
|
77
|
+
* @param {number} firstWeekDay - The first week day (0: Sunday, 1: Monday, ...)
|
78
|
+
* @returns {number[]} - The week days array
|
79
|
+
*/
|
80
|
+
const getWeekdays = (firstWeekDay = 0) => {
|
81
|
+
const weekdays = [0, 1, 2, 3, 4, 5, 6];
|
82
|
+
return weekdays.concat(weekdays).slice(firstWeekDay, firstWeekDay + 7);
|
83
|
+
};
|
84
|
+
|
85
|
+
/**
|
86
|
+
* Calendar view generator abstract class.
|
87
|
+
*/
|
88
|
+
class CalendarViewGenerator {
|
89
|
+
constructor() {
|
90
|
+
this.WEEKDAYS_SHORT = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
|
91
|
+
this.weekdays = getWeekdays();
|
92
|
+
}
|
93
|
+
/**
|
94
|
+
* Get weekday names.
|
95
|
+
*
|
96
|
+
* @returns {string[]} - The weekday strings
|
97
|
+
*/
|
98
|
+
getWeekdayNames() {
|
99
|
+
return this.WEEKDAYS_SHORT;
|
100
|
+
}
|
101
|
+
/**
|
102
|
+
* Generate calendar dates
|
103
|
+
*
|
104
|
+
* @param {CalendarPeriod} period - The calendar period
|
105
|
+
* @returns {Date[]} - The date result
|
106
|
+
*/
|
107
|
+
generateDates(period) {
|
108
|
+
const cursor = period.startDate.toDate();
|
109
|
+
const dates = [];
|
110
|
+
for (let i = 0; i < period.count; i++) {
|
111
|
+
dates.push(new Date(cursor));
|
112
|
+
cursor.setDate(cursor.getDate() + 1);
|
113
|
+
}
|
114
|
+
return dates;
|
115
|
+
}
|
116
|
+
/**
|
117
|
+
* Generate calendar head
|
118
|
+
*
|
119
|
+
* @returns {string[]} - The data of week head
|
120
|
+
*/
|
121
|
+
generateWeekHead() {
|
122
|
+
return this.weekdays.map((day) => this.getWeekdayNames()[day]);
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
/**
|
127
|
+
* Calendar view
|
128
|
+
*/
|
129
|
+
class CalendarView {
|
130
|
+
constructor(weekdays, dateItems) {
|
131
|
+
this._weekdays = weekdays;
|
132
|
+
this._dateItems = dateItems;
|
133
|
+
}
|
134
|
+
/**
|
135
|
+
* The week head of the calendar view
|
136
|
+
*
|
137
|
+
* @type {string[]}
|
138
|
+
*/
|
139
|
+
get weekdays() {
|
140
|
+
return this._weekdays;
|
141
|
+
}
|
142
|
+
/**
|
143
|
+
* The date items of the calendar view
|
144
|
+
*
|
145
|
+
* @type {CalendarDate[][]}
|
146
|
+
*/
|
147
|
+
get dateItems() {
|
148
|
+
return this._dateItems;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
|
152
|
+
/**
|
153
|
+
* Day view calendar generator
|
154
|
+
*/
|
155
|
+
class DayViewGenerator extends CalendarViewGenerator {
|
156
|
+
/**
|
157
|
+
* @inheritDoc
|
158
|
+
*/
|
159
|
+
generate(period) {
|
160
|
+
return new CalendarView([this.generateWeekHead()[period.current.toDate().getDay()]], [[period.current]]);
|
161
|
+
}
|
162
|
+
}
|
163
|
+
|
164
|
+
/**
|
165
|
+
* Calendar date class
|
166
|
+
*/
|
167
|
+
class CalendarDate {
|
168
|
+
constructor(year, month, date) {
|
169
|
+
this._date = date;
|
170
|
+
this._month = month;
|
171
|
+
this._year = year;
|
172
|
+
}
|
173
|
+
/**
|
174
|
+
* Create a calendar date from a Date object
|
175
|
+
*
|
176
|
+
* @param {Date} date - The Date object
|
177
|
+
* @returns {CalendarDate} - Return a CalendarDate object
|
178
|
+
*/
|
179
|
+
static from(date) {
|
180
|
+
return new CalendarDate(date.getFullYear(), date.getMonth() + 1, date.getDate());
|
181
|
+
}
|
182
|
+
/**
|
183
|
+
* The year of the calendar date
|
184
|
+
*
|
185
|
+
* @type {number}
|
186
|
+
*/
|
187
|
+
get year() {
|
188
|
+
return this._year;
|
189
|
+
}
|
190
|
+
set year(value) {
|
191
|
+
this._year = value;
|
192
|
+
}
|
193
|
+
/**
|
194
|
+
* The month of the calendar date
|
195
|
+
*
|
196
|
+
* @type {number}
|
197
|
+
*/
|
198
|
+
get month() {
|
199
|
+
return this._month;
|
200
|
+
}
|
201
|
+
set month(value) {
|
202
|
+
this._month = value;
|
203
|
+
}
|
204
|
+
/**
|
205
|
+
* The date of the calendar date
|
206
|
+
*
|
207
|
+
* @type {number}
|
208
|
+
*/
|
209
|
+
get date() {
|
210
|
+
return this._date;
|
211
|
+
}
|
212
|
+
set date(value) {
|
213
|
+
this._date = value;
|
214
|
+
}
|
215
|
+
/**
|
216
|
+
* Verify whether the calendar date is today
|
217
|
+
*
|
218
|
+
* @returns {boolean} - Return true if the calendar date is today. Otherwise, return false.
|
219
|
+
*/
|
220
|
+
isToday() {
|
221
|
+
const today = new Date();
|
222
|
+
return (today.getFullYear() === this.year &&
|
223
|
+
today.getMonth() + 1 === this.month &&
|
224
|
+
today.getDate() === this.date);
|
225
|
+
}
|
226
|
+
/**
|
227
|
+
* Convert the calendar date to a Date object
|
228
|
+
*
|
229
|
+
* @returns {Date} - Return a Date object
|
230
|
+
*/
|
231
|
+
toDate() {
|
232
|
+
return new Date(this.year, this.month - 1, this.date);
|
233
|
+
}
|
234
|
+
/**
|
235
|
+
* Compare with another calendar date
|
236
|
+
*
|
237
|
+
* @param {CalendarDate} date - The calendar date to compare with
|
238
|
+
* @returns {DateCompareResult} - Return a DateCompareResult object
|
239
|
+
*/
|
240
|
+
compare(date) {
|
241
|
+
const { year, month } = date;
|
242
|
+
const result = {
|
243
|
+
isPreviousMonth: false,
|
244
|
+
inMonth: false,
|
245
|
+
isNextMonth: false,
|
246
|
+
};
|
247
|
+
if (this.year === year) {
|
248
|
+
if (this.month < month) {
|
249
|
+
result.isPreviousMonth = true;
|
250
|
+
}
|
251
|
+
else if (this.month > month) {
|
252
|
+
result.isNextMonth = true;
|
253
|
+
}
|
254
|
+
else {
|
255
|
+
result.inMonth = true;
|
256
|
+
}
|
257
|
+
}
|
258
|
+
else if (this.year > year) {
|
259
|
+
result.isNextMonth = true;
|
260
|
+
}
|
261
|
+
else {
|
262
|
+
result.isPreviousMonth = true;
|
263
|
+
}
|
264
|
+
return result;
|
265
|
+
}
|
266
|
+
/**
|
267
|
+
* The function "equal" compares the year, month, and date of two CalendarDate objects and returns true if they are equal.
|
268
|
+
*
|
269
|
+
* @param {CalendarDate} calendarDate - The `equal` method in the code snippet is a function that compares the year, month, and date of the current `CalendarDate` object with another
|
270
|
+
* `CalendarDate` object passed as a parameter. The method returns `true` if all three values (year, month, date) are equal
|
271
|
+
* @returns {boolean} The date is same day with current
|
272
|
+
*/
|
273
|
+
equal(calendarDate) {
|
274
|
+
const { year, month, date } = calendarDate;
|
275
|
+
return this._year === year && this._month === month && this._date === date;
|
276
|
+
}
|
277
|
+
}
|
278
|
+
|
279
|
+
/**
|
280
|
+
* Calendar week view generator
|
281
|
+
*/
|
282
|
+
class WeekViewGenerator extends CalendarViewGenerator {
|
283
|
+
/**
|
284
|
+
* @inheritDoc
|
285
|
+
*/
|
286
|
+
generate(period) {
|
287
|
+
const dates = this.generateDates(period);
|
288
|
+
const showWeekends = period.showWeekends;
|
289
|
+
let weekDays = this.generateWeekHead();
|
290
|
+
let dateItems = [dates.map(CalendarDate.from)];
|
291
|
+
if (showWeekends === false) {
|
292
|
+
weekDays = weekDays.slice(1, 6);
|
293
|
+
dateItems = dateItems.map((items) => items.slice(1, 6));
|
294
|
+
}
|
295
|
+
return new CalendarView(weekDays, dateItems);
|
296
|
+
}
|
297
|
+
}
|
298
|
+
|
299
|
+
/**
|
300
|
+
* Calendar month view generator
|
301
|
+
*/
|
302
|
+
class MonthViewGenerator extends CalendarViewGenerator {
|
303
|
+
/**
|
304
|
+
* @inheritDoc
|
305
|
+
*/
|
306
|
+
generate(period) {
|
307
|
+
const showWeekends = period.showWeekends;
|
308
|
+
let calendarDates = [];
|
309
|
+
let week = [];
|
310
|
+
const dates = this.generateDates(period);
|
311
|
+
dates.forEach((date, i) => {
|
312
|
+
if (!(i % 7)) {
|
313
|
+
calendarDates[i / 7] = week = [];
|
314
|
+
}
|
315
|
+
const item = CalendarDate.from(date);
|
316
|
+
week.push(item);
|
317
|
+
});
|
318
|
+
let weekDays = this.generateWeekHead();
|
319
|
+
if (showWeekends === false) {
|
320
|
+
weekDays = weekDays.slice(1, 6);
|
321
|
+
calendarDates = calendarDates.map((items) => items.slice(1, 6));
|
322
|
+
}
|
323
|
+
return new CalendarView(weekDays, calendarDates);
|
324
|
+
}
|
325
|
+
}
|
326
|
+
|
327
|
+
/**
|
328
|
+
* CalendarPeriod is an abstract class that represents a period of date for calendar.
|
329
|
+
*/
|
330
|
+
class CalendarPeriod {
|
331
|
+
constructor(count, current) {
|
332
|
+
this._count = count;
|
333
|
+
this._current = current ? current : CalendarDate.from(new Date());
|
334
|
+
this.calculatePeriod(this._current);
|
335
|
+
}
|
336
|
+
/**
|
337
|
+
* The current date of the period.
|
338
|
+
*
|
339
|
+
* @type {CalendarDate}
|
340
|
+
*/
|
341
|
+
get current() {
|
342
|
+
return this._current;
|
343
|
+
}
|
344
|
+
/**
|
345
|
+
* The start date of the period
|
346
|
+
*
|
347
|
+
* @type {CalendarDate}
|
348
|
+
*/
|
349
|
+
get startDate() {
|
350
|
+
return this._startDate;
|
351
|
+
}
|
352
|
+
/**
|
353
|
+
* The end date of the period
|
354
|
+
*
|
355
|
+
* @type {CalendarDate}
|
356
|
+
*/
|
357
|
+
get endDate() {
|
358
|
+
return this._endDate;
|
359
|
+
}
|
360
|
+
/**
|
361
|
+
* The count of the period
|
362
|
+
*
|
363
|
+
* @type {number}
|
364
|
+
*/
|
365
|
+
get count() {
|
366
|
+
return this._count;
|
367
|
+
}
|
368
|
+
/**
|
369
|
+
* This function returns the type of the object.
|
370
|
+
*
|
371
|
+
* @type {string}
|
372
|
+
*/
|
373
|
+
get type() {
|
374
|
+
return this._type;
|
375
|
+
}
|
376
|
+
/**
|
377
|
+
* This function returns the showWeekends of the object.
|
378
|
+
*
|
379
|
+
* @type {boolean}
|
380
|
+
*/
|
381
|
+
get showWeekends() {
|
382
|
+
return this._showWeekends;
|
383
|
+
}
|
384
|
+
/**
|
385
|
+
* Go to a specific date.
|
386
|
+
*
|
387
|
+
* @param {CalendarDate} date - The date to go to.
|
388
|
+
* @returns {this} - The current period.
|
389
|
+
*/
|
390
|
+
goTo(date) {
|
391
|
+
return this.createBy(date);
|
392
|
+
}
|
393
|
+
/**
|
394
|
+
* Go to now.
|
395
|
+
*
|
396
|
+
* @returns {this} - The current period.
|
397
|
+
*/
|
398
|
+
now() {
|
399
|
+
return this.createBy(CalendarDate.from(new Date()));
|
400
|
+
}
|
401
|
+
/**
|
402
|
+
* Calculate the period start date and end date.
|
403
|
+
*
|
404
|
+
* @param {CalendarDate} date - The date to calculate the period from.
|
405
|
+
*/
|
406
|
+
calculatePeriod(date) {
|
407
|
+
const cursor = date.toDate();
|
408
|
+
if (this.count > 1) {
|
409
|
+
cursor.setDate(cursor.getDate() - getWeekdays().indexOf(cursor.getDay()));
|
410
|
+
}
|
411
|
+
this._startDate = CalendarDate.from(cursor);
|
412
|
+
cursor.setDate(cursor.getDate() + this.count - 1);
|
413
|
+
this._endDate = CalendarDate.from(cursor);
|
414
|
+
}
|
415
|
+
}
|
416
|
+
|
417
|
+
/**
|
418
|
+
* Period of day.
|
419
|
+
*/
|
420
|
+
class DayPeriod extends CalendarPeriod {
|
421
|
+
constructor(current, showWeekends) {
|
422
|
+
super(DayPeriod.DISPLAY_DATE_COUNT, current);
|
423
|
+
this._type = 'day';
|
424
|
+
this._showWeekends = true;
|
425
|
+
this._showWeekends = showWeekends === false ? false : true;
|
426
|
+
}
|
427
|
+
/**
|
428
|
+
* @inheritDoc
|
429
|
+
*/
|
430
|
+
next() {
|
431
|
+
const nextDate = this.current.toDate();
|
432
|
+
nextDate.setDate(nextDate.getDate() + 1);
|
433
|
+
let calendarDate = CalendarDate.from(nextDate);
|
434
|
+
if (this._showWeekends === false) {
|
435
|
+
calendarDate = getClosestWorkday(calendarDate);
|
436
|
+
}
|
437
|
+
return this.createBy(calendarDate);
|
438
|
+
}
|
439
|
+
/**
|
440
|
+
* @inheritDoc
|
441
|
+
*/
|
442
|
+
previous() {
|
443
|
+
const previousDate = this.current.toDate();
|
444
|
+
previousDate.setDate(previousDate.getDate() - 1);
|
445
|
+
let calendarDate = CalendarDate.from(previousDate);
|
446
|
+
if (this._showWeekends === false) {
|
447
|
+
calendarDate = getClosestWorkday(calendarDate, DateDirection.PREVIOUS);
|
448
|
+
}
|
449
|
+
return this.createBy(calendarDate);
|
450
|
+
}
|
451
|
+
/**
|
452
|
+
* Go to now.
|
453
|
+
*
|
454
|
+
* @returns {this} - The current period.
|
455
|
+
*/
|
456
|
+
now() {
|
457
|
+
let calendarDate = CalendarDate.from(new Date());
|
458
|
+
if (this._showWeekends === false) {
|
459
|
+
calendarDate = getClosestWorkday(calendarDate);
|
460
|
+
}
|
461
|
+
return this.createBy(calendarDate);
|
462
|
+
}
|
463
|
+
/**
|
464
|
+
* @inheritDoc
|
465
|
+
*/
|
466
|
+
createBy(current) {
|
467
|
+
return new DayPeriod(current, this._showWeekends);
|
468
|
+
}
|
469
|
+
}
|
470
|
+
DayPeriod.DISPLAY_DATE_COUNT = 1;
|
471
|
+
|
472
|
+
/**
|
473
|
+
* Period of the week
|
474
|
+
*/
|
475
|
+
class WeekPeriod extends CalendarPeriod {
|
476
|
+
constructor(current, showWeekends) {
|
477
|
+
super(WeekPeriod.DISPLAY_DATE_COUNT, current);
|
478
|
+
this._type = 'week';
|
479
|
+
this._showWeekends = true;
|
480
|
+
this._showWeekends = showWeekends === false ? false : true;
|
481
|
+
}
|
482
|
+
/**
|
483
|
+
* @inheritDoc
|
484
|
+
*/
|
485
|
+
next() {
|
486
|
+
const nextWeekStartDate = this.current.toDate();
|
487
|
+
nextWeekStartDate.setDate(nextWeekStartDate.getDate() - getWeekdays().indexOf(nextWeekStartDate.getDay()) + 7);
|
488
|
+
return this.createBy(CalendarDate.from(nextWeekStartDate));
|
489
|
+
}
|
490
|
+
/**
|
491
|
+
* @inheritDoc
|
492
|
+
*/
|
493
|
+
previous() {
|
494
|
+
const previousWeekStartDate = this.current.toDate();
|
495
|
+
previousWeekStartDate.setDate(previousWeekStartDate.getDate() - getWeekdays().indexOf(previousWeekStartDate.getDay()) - 7);
|
496
|
+
return this.createBy(CalendarDate.from(previousWeekStartDate));
|
497
|
+
}
|
498
|
+
/**
|
499
|
+
* @inheritDoc
|
500
|
+
*/
|
501
|
+
createBy(current) {
|
502
|
+
return new WeekPeriod(current, this._showWeekends);
|
503
|
+
}
|
504
|
+
}
|
505
|
+
WeekPeriod.DISPLAY_DATE_COUNT = 7;
|
506
|
+
|
507
|
+
/**
|
508
|
+
* Period of month
|
509
|
+
*/
|
510
|
+
class MonthPeriod extends CalendarPeriod {
|
511
|
+
constructor(current, showWeekends) {
|
512
|
+
super(MonthPeriod.DISPLAY_DATE_COUNT, MonthPeriod.getMonthFirstDay(current));
|
513
|
+
this._type = 'month';
|
514
|
+
this._showWeekends = true;
|
515
|
+
this._showWeekends = showWeekends === false ? false : true;
|
516
|
+
}
|
517
|
+
/**
|
518
|
+
* The function `getMonthFirstDay` returns the first day of a given month in a calendar.
|
519
|
+
*
|
520
|
+
* @param {CalendarDate} [calendarDate] - The `calendarDate` parameter is an optional parameter of
|
521
|
+
* type `CalendarDate`. It represents a specific date in the calendar. If a `calendarDate` is
|
522
|
+
* provided, the function will use that date to determine the first day of the month. If no
|
523
|
+
* `calendarDate` is provided, the function
|
524
|
+
* @returns {CalendarDate} A new `CalendarDate` object representing the first day of the month from the provided
|
525
|
+
* `calendarDate` parameter or the current date if no parameter is provided.
|
526
|
+
*/
|
527
|
+
static getMonthFirstDay(calendarDate) {
|
528
|
+
const date = calendarDate || CalendarDate.from(new Date());
|
529
|
+
return new CalendarDate(date.year, date.month, 1);
|
530
|
+
}
|
531
|
+
/**
|
532
|
+
* @inheritDoc
|
533
|
+
*/
|
534
|
+
next() {
|
535
|
+
const next = this.current.toDate();
|
536
|
+
next.setMonth(next.getMonth() + 1);
|
537
|
+
return this.createBy(CalendarDate.from(next));
|
538
|
+
}
|
539
|
+
/**
|
540
|
+
* @inheritDoc
|
541
|
+
*/
|
542
|
+
previous() {
|
543
|
+
const previous = this.current.toDate();
|
544
|
+
previous.setMonth(previous.getMonth() - 1);
|
545
|
+
return this.createBy(CalendarDate.from(previous));
|
546
|
+
}
|
547
|
+
/**
|
548
|
+
* @inheritDoc
|
549
|
+
*/
|
550
|
+
createBy(current) {
|
551
|
+
return new MonthPeriod(current, this._showWeekends);
|
552
|
+
}
|
553
|
+
}
|
554
|
+
MonthPeriod.DISPLAY_DATE_COUNT = 6 * 7;
|
555
|
+
|
556
|
+
var DateDirection;
|
557
|
+
(function (DateDirection) {
|
558
|
+
DateDirection["PREVIOUS"] = "-1";
|
559
|
+
DateDirection["NEXT"] = "1";
|
560
|
+
})(DateDirection || (DateDirection = {}));
|
561
|
+
/**
|
562
|
+
* get month name from the month number
|
563
|
+
*
|
564
|
+
* @param {Date} date the date object
|
565
|
+
* @param {boolean} isShortName short or long name
|
566
|
+
* @returns {string} the month English name
|
567
|
+
*/
|
568
|
+
function getMonthName(date, isShortName = false) {
|
569
|
+
return date.toLocaleDateString('en-US', { month: isShortName ? 'short' : 'long' });
|
570
|
+
}
|
571
|
+
/**
|
572
|
+
* The function `getTimeIndex` calculates the index of a given time string based on a specified time unit.
|
573
|
+
*
|
574
|
+
* @param {string} timeString - A string representing a time in the format "HH:MM", where HH is the hour and MM is the minutes.
|
575
|
+
* @param {number} [unit=15] - The `unit` parameter in the `getTimeIndex` function is used to specify
|
576
|
+
* the interval in minutes for dividing the day. By default, it is set to 15 minutes, meaning that the
|
577
|
+
* day will be divided into 15-minute intervals.
|
578
|
+
* @returns {number} the index of the given time string based on the specified time unit.
|
579
|
+
*/
|
580
|
+
function getTimeIndex(timeString, unit = 15) {
|
581
|
+
const [hour, minutes] = timeString.split(':');
|
582
|
+
return Math.round((Number(hour) * 60 + Number(minutes)) / unit);
|
583
|
+
}
|
584
|
+
/**
|
585
|
+
* Returns a string that includes the event key for a calendar event slot.
|
586
|
+
*
|
587
|
+
* @param {string} eventKey - represents the key or identifier of a calendar event.
|
588
|
+
* @returns {string} a string that is a concatenation of 'vega-calendar-event-slot-' and the eventKey parameter.
|
589
|
+
*/
|
590
|
+
function getCalendarEventSlotName(eventKey) {
|
591
|
+
return 'vega-calendar-event-slot-' + eventKey;
|
592
|
+
}
|
593
|
+
/**
|
594
|
+
* Returns the closest workday to a given calendar date based on a specified direction.
|
595
|
+
*
|
596
|
+
* @param {Date} date - The starting date from which you want to find the closest workday.
|
597
|
+
* @param {'-1' | '1'} [direction=1] - Determines whether to find the closest workday in the past or future. It can have two possible values:
|
598
|
+
* @returns {Date} The closest workday to the input date
|
599
|
+
*/
|
600
|
+
function getClosestWorkday(date, direction = DateDirection.NEXT) {
|
601
|
+
const day = date.toDate().getDay();
|
602
|
+
if (day === 0 || day === 6) {
|
603
|
+
let nextWorkdayGap = day === 0 ? 1 : 2;
|
604
|
+
if (direction === DateDirection.PREVIOUS) {
|
605
|
+
nextWorkdayGap = day === 0 ? -2 : -1;
|
606
|
+
}
|
607
|
+
return CalendarDate.from(new Date(date.year, date.month - 1, date.date + nextWorkdayGap));
|
608
|
+
}
|
609
|
+
return date;
|
610
|
+
}
|
611
|
+
|
612
|
+
const ellipsisVertical = {
|
613
|
+
icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M48 464a48 48 0 1 1 0-96 48 48 0 1 1 0 96zm0-160a48 48 0 1 1 0-96 48 48 0 1 1 0 96zM0 96a48 48 0 1 1 96 0A48 48 0 1 1 0 96z"/></svg>`,
|
614
|
+
};
|
615
|
+
|
616
|
+
var __decorate$n = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
617
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
618
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
619
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
620
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
621
|
+
};
|
622
|
+
/** The `VegaCalendarSwitchPanelRenderer` class in TypeScript React renders a calendar switch panel with date navigation, view selection, and action buttons. */
|
623
|
+
class VegaCalendarSwitchPanelRenderer extends VegaSlimmer {
|
624
|
+
constructor() {
|
625
|
+
super(...arguments);
|
626
|
+
/**
|
627
|
+
* This function is responsible for updating the `viewMode` property of the `VegaCalendarSwitchPanelRenderer` class with the value extracted from the `input` parameter.
|
628
|
+
*
|
629
|
+
* @param {NotifyObserverPayload<VegaCalendarViewModeType>} input mark which view should be selected
|
630
|
+
*/
|
631
|
+
this.handleViewChange = (input) => {
|
632
|
+
this.currentPeriodController.updateCalendarPeriod(input.detail, this.currentPeriod.current);
|
633
|
+
};
|
634
|
+
/**
|
635
|
+
* reset view content to today
|
636
|
+
*/
|
637
|
+
this.todayButtonClick = () => {
|
638
|
+
this.currentPeriodController.setCurrentPeriod(this.currentPeriod.now());
|
639
|
+
};
|
640
|
+
/**
|
641
|
+
* update view content after click next button
|
642
|
+
*/
|
643
|
+
this.nextButtonClick = () => {
|
644
|
+
this.currentPeriodController.setCurrentPeriod(this.currentPeriod.next());
|
645
|
+
};
|
646
|
+
/**
|
647
|
+
* update view content after click previous button
|
648
|
+
*/
|
649
|
+
this.prevButtonClick = () => {
|
650
|
+
this.currentPeriodController.setCurrentPeriod(this.currentPeriod.previous());
|
651
|
+
};
|
652
|
+
/**
|
653
|
+
* The more action menu item click
|
654
|
+
*
|
655
|
+
* @param {NotifyObserverPayload<string>} payload The object contains the menu item key
|
656
|
+
*/
|
657
|
+
this.moreActionMenuClick = (payload) => {
|
658
|
+
this.moreActionClickEmitter.emit(payload.detail);
|
659
|
+
};
|
660
|
+
}
|
661
|
+
/**
|
662
|
+
* get the switch panel container element
|
663
|
+
*
|
664
|
+
* @returns {HTMLElement} container element
|
665
|
+
*/
|
666
|
+
getSwitchPanelRef() {
|
667
|
+
return this.switchPanelRef;
|
668
|
+
}
|
669
|
+
/**
|
670
|
+
* calendar switch panel with date switch, view switch, add new button, and more action components.
|
671
|
+
*
|
672
|
+
* @returns {HTMLElement} html element
|
673
|
+
*/
|
674
|
+
render() {
|
675
|
+
return (h("vega-flex", { direction: "row", gap: "size-16", justifyContent: "space-between", alignItems: "center", class: "calendar-switch-panel", ref: (node) => (this.switchPanelRef = node) },
|
676
|
+
this.renderDateSwitch(),
|
677
|
+
h("div", { class: "calendar-view-switch-container" },
|
678
|
+
this.renderViewSwitch(),
|
679
|
+
this.renderMoreActionMenu())));
|
680
|
+
}
|
681
|
+
/**
|
682
|
+
* The `renderDateSwitch` function returns a container with buttons for switching dates and displaying the current date.
|
683
|
+
*
|
684
|
+
* @returns {HTMLDivElement} action button elements container.
|
685
|
+
*/
|
686
|
+
renderDateSwitch() {
|
687
|
+
return (h("div", { class: "calendar-date-switch-container" },
|
688
|
+
h("vega-button", { variant: "secondary", size: "small", ref: (button) => {
|
689
|
+
DomNodeSubjectObserverFactory.addUniqueObserverToNode(button, VegaClick, this.todayButtonClick);
|
690
|
+
}, label: this.translationSlimmer.t('Today') }),
|
691
|
+
h("vega-button-circle", { variant: "secondary", size: "small", icon: VegaInternalIconManager.getIconKey('chevron-left'), label: "previous", showTooltip: false, ref: (button) => {
|
692
|
+
DomNodeSubjectObserverFactory.addUniqueObserverToNode(button, VegaClick, this.prevButtonClick);
|
693
|
+
} }),
|
694
|
+
h("vega-button-circle", { variant: "secondary", size: "small", icon: VegaInternalIconManager.getIconKey('chevron-right'), label: "next", showTooltip: false, ref: (button) => {
|
695
|
+
DomNodeSubjectObserverFactory.addUniqueObserverToNode(button, VegaClick, this.nextButtonClick);
|
696
|
+
} }),
|
697
|
+
this.renderCurrentPeriod()));
|
698
|
+
}
|
699
|
+
/**
|
700
|
+
* The function `renderCurrentPeriod` returns an HTML element displaying the view date content summary info.
|
701
|
+
*
|
702
|
+
* @returns {HTMLVegaFontElement} The text content inside the element is "Current Date Test".
|
703
|
+
*/
|
704
|
+
renderCurrentPeriod() {
|
705
|
+
return (h("vega-font", { class: "calendar-current-date", variant: "font-field-label", color: "text-primary" }, this.getViewDateSummary()));
|
706
|
+
}
|
707
|
+
/**
|
708
|
+
* The function `renderViewSwitch` returns a JSX element for rendering a segment control component in a TypeScript React application.
|
709
|
+
*
|
710
|
+
* @returns {HTMLElement} An HTMLElement containing a vega-segment-control element with specific attributes and event handling.
|
711
|
+
*/
|
712
|
+
renderViewSwitch() {
|
713
|
+
return (h("vega-segment-control", { segments: VegaCalendarSwitchPanelRenderer.views.map((item) => (Object.assign(Object.assign({}, item), { text: this.translationSlimmer.t(item.text) }))), size: "small", variant: "text-only", selected: this.viewMode, ref: (node) => {
|
714
|
+
DomNodeSubjectObserverFactory.addUniqueObserverToNode(node, VegaChange, this.handleViewChange);
|
715
|
+
} }));
|
716
|
+
}
|
717
|
+
/**
|
718
|
+
* Render an more action button if dropdown source is not empty
|
719
|
+
*
|
720
|
+
* @returns {Nullable<HTMLElement>} the additional element
|
721
|
+
*/
|
722
|
+
renderMoreActionMenu() {
|
723
|
+
var _a, _b;
|
724
|
+
if ((_b = (_a = this.moreActionDropdownProps) === null || _a === void 0 ? void 0 : _a.source) === null || _b === void 0 ? void 0 : _b.length) {
|
725
|
+
return (h("vega-dropdown", Object.assign({ alignment: "end", trigger: "click" }, this.moreActionDropdownProps, { ref: (node) => {
|
726
|
+
DomNodeSubjectObserverFactory.addUniqueObserverToNode(node, VegaDropdownClick, this.moreActionMenuClick);
|
727
|
+
} }),
|
728
|
+
h("vega-button-circle", { size: "small", icon: VegaInternalIconManager.getIconKey('ellipsis-vertical'), variant: "icon-only" })));
|
729
|
+
}
|
730
|
+
}
|
731
|
+
/**
|
732
|
+
* Get the view content date summary info, such as `January, 2024` or `10 January, 2024` or `28 December, 2023 - 3 January, 2024`
|
733
|
+
*
|
734
|
+
* @returns {string} string
|
735
|
+
*/
|
736
|
+
getViewDateSummary() {
|
737
|
+
const currentDate = this.currentPeriod.current;
|
738
|
+
let result = '';
|
739
|
+
switch (this.viewMode) {
|
740
|
+
case 'day': {
|
741
|
+
const monthName = this.translationSlimmer.t(getMonthName(currentDate.toDate()));
|
742
|
+
result = `${currentDate.date} ${monthName}, ${currentDate.year}`;
|
743
|
+
break;
|
744
|
+
}
|
745
|
+
case 'week': {
|
746
|
+
const start = this.currentPeriod.startDate;
|
747
|
+
const end = this.currentPeriod.endDate;
|
748
|
+
const [startMonthName, endMonthName] = [start, end].map((item) => this.translationSlimmer.t(getMonthName(item.toDate())));
|
749
|
+
result = `${start.date} ${startMonthName}${start.year === end.year ? '' : ', ' + start.year} - ${end.date} ${endMonthName}, ${end.year}`;
|
750
|
+
break;
|
751
|
+
}
|
752
|
+
case 'month': {
|
753
|
+
const monthName = this.translationSlimmer.t(getMonthName(currentDate.toDate()));
|
754
|
+
result = `${monthName}, ${currentDate.year}`;
|
755
|
+
break;
|
756
|
+
}
|
757
|
+
}
|
758
|
+
return result;
|
759
|
+
}
|
760
|
+
}
|
761
|
+
(() => {
|
762
|
+
VegaInternalIconManager.register({
|
763
|
+
'chevron-right': chevronRight,
|
764
|
+
'chevron-left': chevronLeft,
|
765
|
+
'ellipsis-vertical': ellipsisVertical,
|
766
|
+
});
|
767
|
+
})();
|
768
|
+
VegaCalendarSwitchPanelRenderer.views = [
|
769
|
+
{ text: 'Day', key: 'day' },
|
770
|
+
{ text: 'Week', key: 'week' },
|
771
|
+
{ text: 'Month', key: 'month' },
|
772
|
+
];
|
773
|
+
__decorate$n([
|
774
|
+
MapToComponentField()
|
775
|
+
], VegaCalendarSwitchPanelRenderer.prototype, "viewMode", void 0);
|
776
|
+
__decorate$n([
|
777
|
+
MapToComponentField()
|
778
|
+
], VegaCalendarSwitchPanelRenderer.prototype, "calendarView", void 0);
|
779
|
+
__decorate$n([
|
780
|
+
MapToComponentField()
|
781
|
+
], VegaCalendarSwitchPanelRenderer.prototype, "currentPeriod", void 0);
|
782
|
+
__decorate$n([
|
783
|
+
MapToComponentField()
|
784
|
+
], VegaCalendarSwitchPanelRenderer.prototype, "moreActionDropdownProps", void 0);
|
785
|
+
__decorate$n([
|
786
|
+
MapToComponentField()
|
787
|
+
], VegaCalendarSwitchPanelRenderer.prototype, "moreActionClickEmitter", void 0);
|
788
|
+
__decorate$n([
|
789
|
+
MapToComponentField()
|
790
|
+
], VegaCalendarSwitchPanelRenderer.prototype, "currentPeriodController", void 0);
|
791
|
+
__decorate$n([
|
792
|
+
MapToComponentField()
|
793
|
+
], VegaCalendarSwitchPanelRenderer.prototype, "calendarViewController", void 0);
|
794
|
+
__decorate$n([
|
795
|
+
MapToComponentField()
|
796
|
+
], VegaCalendarSwitchPanelRenderer.prototype, "translationSlimmer", void 0);
|
797
|
+
|
798
|
+
var __decorate$m = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
799
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
800
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
801
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
802
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
803
|
+
};
|
804
|
+
/** renders different views based on the specified view mode using month, week, and day view render. */
|
805
|
+
class VegaCalendarViewRenderer extends VegaSlimmer {
|
806
|
+
/**
|
807
|
+
* render the calendar month/week/day view
|
808
|
+
*
|
809
|
+
* @returns {HTMLElement} html element
|
810
|
+
*/
|
811
|
+
render() {
|
812
|
+
return (h("div", { class: `calendar-view calendar-view-${this.viewMode} ${this.showWeekends === false ? 'calendar-hide-weekends' : ''}` }, this.viewMode === 'month'
|
813
|
+
? this.monthViewRenderer.render()
|
814
|
+
: this.viewWithTimeRenderer.render()));
|
815
|
+
}
|
816
|
+
}
|
817
|
+
__decorate$m([
|
818
|
+
MapToComponentField()
|
819
|
+
], VegaCalendarViewRenderer.prototype, "viewMode", void 0);
|
820
|
+
__decorate$m([
|
821
|
+
MapToComponentField()
|
822
|
+
], VegaCalendarViewRenderer.prototype, "showWeekends", void 0);
|
823
|
+
__decorate$m([
|
824
|
+
MapToComponentField()
|
825
|
+
], VegaCalendarViewRenderer.prototype, "monthViewRenderer", void 0);
|
826
|
+
__decorate$m([
|
827
|
+
MapToComponentField()
|
828
|
+
], VegaCalendarViewRenderer.prototype, "viewWithTimeRenderer", void 0);
|
829
|
+
|
830
|
+
var __decorate$l = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
831
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
832
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
833
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
834
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
835
|
+
};
|
836
|
+
/** The code provided is defining a TypeScript class called `VegaCalendarMonthViewRenderer` that extends `VegaSlimmer`. This class is responsible for rendering a month view of a calendar component. */
|
837
|
+
class VegaCalendarMonthViewRenderer extends VegaSlimmer {
|
838
|
+
/**
|
839
|
+
* the HTML elements that represent the month view of a calendar component.
|
840
|
+
*
|
841
|
+
* @returns {HTMLElement} the month view calendar content
|
842
|
+
*/
|
843
|
+
render() {
|
844
|
+
const weekHead = this.calendarView.weekdays;
|
845
|
+
return (h("div", { class: "calendar-view-month-container" },
|
846
|
+
h("div", { class: "calendar-view-row calendar-view-title border-divider-bottom" }, weekHead.map((title) => (h("div", { key: title }, this.translationSlimmer.t(title))))),
|
847
|
+
this.renderMonthViewContent()));
|
848
|
+
}
|
849
|
+
/**
|
850
|
+
* generating the HTML elements that represent the content of the month view in a calendar component
|
851
|
+
*
|
852
|
+
* @returns {HTMLElement[]} month view content and event content
|
853
|
+
*/
|
854
|
+
renderMonthViewContent() {
|
855
|
+
const monthSource = this.calendarView.dateItems;
|
856
|
+
const currentDate = this.currentPeriod.current;
|
857
|
+
return monthSource.map((dateArray, index) => {
|
858
|
+
const eventsArray = this.monthEventRenderer.getCurrentRowEvents(dateArray);
|
859
|
+
const displayEventsArray = this.monthEventRenderer.filterRowDisplayEvents(eventsArray);
|
860
|
+
return (h("div", { key: index, class: "calendar-view-row border-divider-bottom" }, dateArray.map((item, itemIndex) => {
|
861
|
+
return (h("div", { class: {
|
862
|
+
'row-cell border-divider-right': true,
|
863
|
+
'current-month-day': item.compare(currentDate).inMonth,
|
864
|
+
'active': item.isToday(),
|
865
|
+
'disabled': false,
|
866
|
+
}, key: `${item.month}-${item.date}`,
|
867
|
+
// eslint-disable-next-line react/jsx-no-bind
|
868
|
+
onDblClick: (e) => this.handleDateBlockClick(e, item) },
|
869
|
+
this.renderDateBlock(item),
|
870
|
+
this.monthEventRenderer.render(item, eventsArray[itemIndex], displayEventsArray[itemIndex], itemIndex)));
|
871
|
+
})));
|
872
|
+
});
|
873
|
+
}
|
874
|
+
/**
|
875
|
+
* It takes a `CalendarDate` object as a parameter and returns an HTML element representing a date block in the calendar view.
|
876
|
+
*
|
877
|
+
* @param {CalendarDate} item the day object
|
878
|
+
* @returns {HTMLElement} the date block element
|
879
|
+
*/
|
880
|
+
renderDateBlock(item) {
|
881
|
+
const isMonthFirstDay = item.date === 1;
|
882
|
+
return (h("div", { class: "date" },
|
883
|
+
isMonthFirstDay && h("div", { class: "month-block" }, getMonthName(item.toDate(), true)),
|
884
|
+
h("div", { role: "button", tabIndex: 0, class: "grid-col",
|
885
|
+
// eslint-disable-next-line react/jsx-no-bind
|
886
|
+
onDblClick: (e) => this.goToCurrentDayView(e, item) }, item.date)));
|
887
|
+
}
|
888
|
+
/**
|
889
|
+
* switch to current date day view
|
890
|
+
*
|
891
|
+
* @param {MouseEvent} e the double click event object
|
892
|
+
* @param {CalendarDate} calendarDate the calendar date object
|
893
|
+
*/
|
894
|
+
goToCurrentDayView(e, calendarDate) {
|
895
|
+
e.stopPropagation();
|
896
|
+
this.currentPeriodController.updateCalendarPeriod('day', calendarDate);
|
897
|
+
}
|
898
|
+
/**
|
899
|
+
* emit vega click event when click the date block
|
900
|
+
*
|
901
|
+
* @param {MouseEvent} e the mouse event object
|
902
|
+
* @param {CalendarDate} calendarDate the calendar date object
|
903
|
+
*/
|
904
|
+
handleDateBlockClick(e, calendarDate) {
|
905
|
+
const { target, clientX, clientY } = e;
|
906
|
+
if (this.isMonthBlockBlankArea(target)) {
|
907
|
+
const { year, month, date } = calendarDate;
|
908
|
+
this.dateDblClickEmitter.emit({
|
909
|
+
year,
|
910
|
+
month,
|
911
|
+
date,
|
912
|
+
hour: 0,
|
913
|
+
mouseEventInfo: { clientX, clientY },
|
914
|
+
});
|
915
|
+
}
|
916
|
+
}
|
917
|
+
/**
|
918
|
+
* determine if the clicked element is blank area
|
919
|
+
*
|
920
|
+
* @param {HTMLElement} element the target element
|
921
|
+
* @returns {boolean} true or false
|
922
|
+
*/
|
923
|
+
isMonthBlockBlankArea(element) {
|
924
|
+
// the more button and the calendar event component should not trigger dateDblClick event
|
925
|
+
return !element.classList.contains('more-button') && element.tagName !== 'VEGA-CALENDAR-EVENT';
|
926
|
+
}
|
927
|
+
}
|
928
|
+
__decorate$l([
|
929
|
+
MapToComponentField()
|
930
|
+
], VegaCalendarMonthViewRenderer.prototype, "viewMode", void 0);
|
931
|
+
__decorate$l([
|
932
|
+
MapToComponentField()
|
933
|
+
], VegaCalendarMonthViewRenderer.prototype, "calendarView", void 0);
|
934
|
+
__decorate$l([
|
935
|
+
MapToComponentField()
|
936
|
+
], VegaCalendarMonthViewRenderer.prototype, "currentPeriod", void 0);
|
937
|
+
__decorate$l([
|
938
|
+
MapToComponentField()
|
939
|
+
], VegaCalendarMonthViewRenderer.prototype, "currentPeriodController", void 0);
|
940
|
+
__decorate$l([
|
941
|
+
MapToComponentField()
|
942
|
+
], VegaCalendarMonthViewRenderer.prototype, "monthEventRenderer", void 0);
|
943
|
+
__decorate$l([
|
944
|
+
MapToComponentField()
|
945
|
+
], VegaCalendarMonthViewRenderer.prototype, "dateDblClickEmitter", void 0);
|
946
|
+
__decorate$l([
|
947
|
+
MapToComponentField()
|
948
|
+
], VegaCalendarMonthViewRenderer.prototype, "translationSlimmer", void 0);
|
949
|
+
|
950
|
+
var __decorate$k = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
951
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
952
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
953
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
954
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
955
|
+
};
|
956
|
+
/** The `VegaCalendarViewWithTimeRenderer` class in TypeScript React renders a day view for a calendar component with title, content, and hour blocks. */
|
957
|
+
class VegaCalendarViewWithTimeRenderer extends VegaSlimmer {
|
958
|
+
/**
|
959
|
+
* The render function in TypeScript React returns an array of HTMLElements containing the week calendar view for a specific day.
|
960
|
+
*
|
961
|
+
* @returns {HTMLElement} An array of HTMLElement elements containing the rendered content of a calendar view for a
|
962
|
+
* specific day in the week. The content includes the title and the main content of the calendar view
|
963
|
+
* for that day.
|
964
|
+
*/
|
965
|
+
render() {
|
966
|
+
return (h("div", { class: "calendar-view-container" },
|
967
|
+
this.renderViewTitle(),
|
968
|
+
this.renderViewContent()));
|
969
|
+
}
|
970
|
+
/**
|
971
|
+
* The function `renderViewTitle` renders a calendar view title and events based on the provided source data.
|
972
|
+
*
|
973
|
+
* @returns {HTMLElement} The `renderViewTitle` function returns an HTML element (HTMLElement) that contains a calendar view title container with rows for each day's information.
|
974
|
+
*/
|
975
|
+
renderViewTitle() {
|
976
|
+
const source = this.calendarView.dateItems[0];
|
977
|
+
const weekHead = this.calendarView.weekdays;
|
978
|
+
return (h("div", { class: "calendar-view-title-container" },
|
979
|
+
h("div", { class: "calendar-view-row" },
|
980
|
+
h("div", { class: "time-line-empty" }),
|
981
|
+
h("div", { class: "calendar-view-title" }, source.map((item, index) => (h("div", { key: item.date, class: { active: item.isToday() } },
|
982
|
+
h("div", null, this.translationSlimmer.t(weekHead[index])),
|
983
|
+
h("div", { class: "week-day" }, item.date)))))),
|
984
|
+
h("div", { class: "calendar-view-row calendar-view-event-all-container border-divider-bottom" },
|
985
|
+
h("div", { class: "time-line-all" }, this.translationSlimmer.t('All Day')),
|
986
|
+
this.dayViewFullDayEventRenderer.render())));
|
987
|
+
}
|
988
|
+
/**
|
989
|
+
* The `renderViewContent` function in TypeScript React renders a calendar view with day blocks and time markers based on the provided data.
|
990
|
+
*
|
991
|
+
* @returns {HTMLElement} An HTMLElement containing a calendar view row with day containers, a timeline renderer, a content container, a day list, and hour blocks for each item in the source array.
|
992
|
+
*/
|
993
|
+
renderViewContent() {
|
994
|
+
const source = this.calendarView.dateItems[0];
|
995
|
+
return (h("div", { class: "calendar-view-row calendar-view-day-container" },
|
996
|
+
this.timeLineRenderer.render(),
|
997
|
+
h("div", { class: "calendar-view-content-container" },
|
998
|
+
h("div", { class: "calendar-view-content" }, source.map((item) => {
|
999
|
+
return (h("div", { class: "grid-col border-divider-left", key: item.date },
|
1000
|
+
h("div", { class: "hour-empty border-divider-top" }),
|
1001
|
+
this.renderHourBlock(item)));
|
1002
|
+
})),
|
1003
|
+
this.dayViewTimedEventRenderer.render(),
|
1004
|
+
this.timeLineRenderer.renderTimeMarker(source))));
|
1005
|
+
}
|
1006
|
+
/**
|
1007
|
+
* The function `renderHourBlock` returns an array of HTML elements representing hour blocks with time information.
|
1008
|
+
*
|
1009
|
+
* @param {CalendarDate} calendarDate then current calendar date object
|
1010
|
+
* @returns {HTMLElement[]} An array of HTMLElements is being returned. Each HTMLElement represents an hour block with a time value inside a div element.
|
1011
|
+
*/
|
1012
|
+
renderHourBlock(calendarDate) {
|
1013
|
+
const timeLineSource = Array(24).fill('');
|
1014
|
+
return timeLineSource.map((_item, index) => {
|
1015
|
+
return (h("div", { class: "grid-cell border-divider-top",
|
1016
|
+
// eslint-disable-next-line react/jsx-no-bind
|
1017
|
+
onDblClick: (e) => {
|
1018
|
+
this.handleDateBlockClick(calendarDate, index, e);
|
1019
|
+
} }));
|
1020
|
+
});
|
1021
|
+
}
|
1022
|
+
/**
|
1023
|
+
* emit vega click event when click the date block
|
1024
|
+
*
|
1025
|
+
* @param {CalendarDate} calendarDate the calendar date object
|
1026
|
+
*/
|
1027
|
+
handleDateBlockClick(calendarDate, hour, e) {
|
1028
|
+
const { year, month, date } = calendarDate;
|
1029
|
+
const { clientX, clientY } = e;
|
1030
|
+
this.dateDblClickEmitter.emit({ year, month, date, hour, mouseEventInfo: { clientX, clientY } });
|
1031
|
+
}
|
1032
|
+
}
|
1033
|
+
__decorate$k([
|
1034
|
+
MapToComponentField()
|
1035
|
+
], VegaCalendarViewWithTimeRenderer.prototype, "viewMode", void 0);
|
1036
|
+
__decorate$k([
|
1037
|
+
MapToComponentField()
|
1038
|
+
], VegaCalendarViewWithTimeRenderer.prototype, "timeLineRenderer", void 0);
|
1039
|
+
__decorate$k([
|
1040
|
+
MapToComponentField()
|
1041
|
+
], VegaCalendarViewWithTimeRenderer.prototype, "dayViewTimedEventRenderer", void 0);
|
1042
|
+
__decorate$k([
|
1043
|
+
MapToComponentField()
|
1044
|
+
], VegaCalendarViewWithTimeRenderer.prototype, "dayViewFullDayEventRenderer", void 0);
|
1045
|
+
__decorate$k([
|
1046
|
+
MapToComponentField()
|
1047
|
+
], VegaCalendarViewWithTimeRenderer.prototype, "calendarView", void 0);
|
1048
|
+
__decorate$k([
|
1049
|
+
MapToComponentField()
|
1050
|
+
], VegaCalendarViewWithTimeRenderer.prototype, "dateDblClickEmitter", void 0);
|
1051
|
+
__decorate$k([
|
1052
|
+
MapToComponentField()
|
1053
|
+
], VegaCalendarViewWithTimeRenderer.prototype, "translationSlimmer", void 0);
|
1054
|
+
|
1055
|
+
var __decorate$j = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
1056
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
1057
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
1058
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
1059
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
1060
|
+
};
|
1061
|
+
/** The `VegaCalendarTimeLineRenderer` class in TypeScript React renders a time line with custom time format options and includes methods for rendering time markers and the time line itself. */
|
1062
|
+
class VegaCalendarTimeLineRenderer extends VegaSlimmer {
|
1063
|
+
/**
|
1064
|
+
* takes an array of `CalendarDate` objects as input and returns an HTML element
|
1065
|
+
*
|
1066
|
+
* @param {CalendarDate[]} source
|
1067
|
+
* @returns {HTMLElement} the html element
|
1068
|
+
*/
|
1069
|
+
renderTimeMarker(source) {
|
1070
|
+
const isVisible = source.findIndex((calendarDate) => calendarDate.isToday()) >= 0;
|
1071
|
+
return (h("div", { class: {
|
1072
|
+
'time-marker-container': true,
|
1073
|
+
'hidden': !isVisible,
|
1074
|
+
} },
|
1075
|
+
h("div", { class: "time-marker", style: { top: this.getTimeMarkerPosition() }, ref: (div) => (this.timeMarkerRef = div) }, source.map((item) => {
|
1076
|
+
return h("div", { key: item.date, class: { active: item.isToday() } });
|
1077
|
+
}))));
|
1078
|
+
}
|
1079
|
+
/**
|
1080
|
+
* rendering the time line component as an HTML element
|
1081
|
+
*
|
1082
|
+
* @returns {HTMLElement} the html element
|
1083
|
+
*/
|
1084
|
+
render() {
|
1085
|
+
const timeLineSource = this.getTimeLineTitles();
|
1086
|
+
return (h("div", { class: "time-line", ref: (div) => (this.timeLineRef = div) },
|
1087
|
+
h("div", { class: "hour-empty" }),
|
1088
|
+
timeLineSource.map((time, index) => {
|
1089
|
+
return (h("div", { key: time },
|
1090
|
+
h("div", { class: "time-text", "data-time": index === 0 ? 24 : index }, time)));
|
1091
|
+
})));
|
1092
|
+
}
|
1093
|
+
/**
|
1094
|
+
* scroll to current time line block if change view mode to week or day
|
1095
|
+
*
|
1096
|
+
* @param {VegaCalendarViewModeType} viewMode the view mode
|
1097
|
+
*/
|
1098
|
+
updateTimeLine(viewMode) {
|
1099
|
+
this.scrollToTargetTimeBlock(viewMode);
|
1100
|
+
this.syncTimeMarkerPosition(viewMode);
|
1101
|
+
}
|
1102
|
+
/**
|
1103
|
+
* remove setInterval when component destroy
|
1104
|
+
*/
|
1105
|
+
clearTimer() {
|
1106
|
+
clearInterval(this.timeMarkerPositionTimer);
|
1107
|
+
}
|
1108
|
+
/**
|
1109
|
+
* Add the time mark position update logic if the component add back to page
|
1110
|
+
*/
|
1111
|
+
updateTimeLineIfComponentAddBack() {
|
1112
|
+
this.syncTimeMarkerPosition(this.viewMode);
|
1113
|
+
}
|
1114
|
+
/**
|
1115
|
+
* Should display the current time block in the view if the default view mode is not month
|
1116
|
+
*/
|
1117
|
+
displayCurrentTimeBlockByDefault() {
|
1118
|
+
this.scrollToTargetTimeBlock(this.viewMode);
|
1119
|
+
}
|
1120
|
+
/**
|
1121
|
+
* The function `getTimeMarkerPosition` calculates the position of the current time marker as a percentage of the day.
|
1122
|
+
*
|
1123
|
+
* @returns {string} a string representing the current time marker position as a percentage of the day.
|
1124
|
+
*/
|
1125
|
+
getTimeMarkerPosition() {
|
1126
|
+
const now = new Date();
|
1127
|
+
const minutesOneDay = 24 * 60;
|
1128
|
+
return ((now.getHours() * 60 + now.getMinutes()) / minutesOneDay) * 100 + '%';
|
1129
|
+
}
|
1130
|
+
/**
|
1131
|
+
* The function `getTimeLineTitles` generates a time line array based on the specified time format (24-hour) and stores it in the `timeLineSource` property.
|
1132
|
+
*
|
1133
|
+
* @returns {string[]} returns an array of strings representing the time line
|
1134
|
+
*/
|
1135
|
+
getTimeLineTitles() {
|
1136
|
+
const timeLine = [];
|
1137
|
+
if (this.timeFormat === '12-hour') {
|
1138
|
+
timeLine.push('12 AM');
|
1139
|
+
for (let i = 1; i < 12; i++) {
|
1140
|
+
timeLine.push(`${i} AM`);
|
1141
|
+
}
|
1142
|
+
timeLine.push('12 PM');
|
1143
|
+
for (let i = 1; i < 12; i++) {
|
1144
|
+
timeLine.push(`${i} PM`);
|
1145
|
+
}
|
1146
|
+
}
|
1147
|
+
else {
|
1148
|
+
for (let i = 0; i < 24; i++) {
|
1149
|
+
timeLine.push(pad(i));
|
1150
|
+
}
|
1151
|
+
}
|
1152
|
+
return timeLine;
|
1153
|
+
}
|
1154
|
+
/*
|
1155
|
+
* The below method is e2e-test covered in
|
1156
|
+
* @see{module:vega-calendar-scroll-to-current-time}
|
1157
|
+
*/
|
1158
|
+
/* istanbul ignore next */
|
1159
|
+
/**
|
1160
|
+
* Update the time marker position with the time
|
1161
|
+
*
|
1162
|
+
* @param {VegaCalendarViewModeType} viewMode view mode value
|
1163
|
+
*/
|
1164
|
+
syncTimeMarkerPosition(viewMode) {
|
1165
|
+
clearInterval(this.timeMarkerPositionTimer);
|
1166
|
+
if (viewMode !== 'month') {
|
1167
|
+
this.timeMarkerPositionTimer = setInterval(() => {
|
1168
|
+
if (this.timeMarkerRef) {
|
1169
|
+
this.timeMarkerRef.style.top = this.getTimeMarkerPosition();
|
1170
|
+
}
|
1171
|
+
}, 60 * 1000);
|
1172
|
+
}
|
1173
|
+
}
|
1174
|
+
/*
|
1175
|
+
* The below method is e2e-test covered in
|
1176
|
+
* @see{module:vega-calendar-scroll-to-current-time}
|
1177
|
+
*/
|
1178
|
+
/* istanbul ignore next */
|
1179
|
+
/**
|
1180
|
+
* scroll the time line in to current view
|
1181
|
+
*
|
1182
|
+
* @param {VegaCalendarViewModeType} viewMode view mode value
|
1183
|
+
*/
|
1184
|
+
scrollToTargetTimeBlock(viewMode) {
|
1185
|
+
if (viewMode !== 'month') {
|
1186
|
+
// add setTimeout here to make sure call the scroll into view after time line rendered.
|
1187
|
+
const oneFrame = 16;
|
1188
|
+
setTimeout(() => {
|
1189
|
+
var _a, _b;
|
1190
|
+
const hour = new Date().getHours();
|
1191
|
+
(_b = (_a = this.timeLineRef) === null || _a === void 0 ? void 0 : _a.querySelector(`[data-time='${hour < 23 ? hour + 1 : hour}']`)) === null || _b === void 0 ? void 0 : _b.scrollIntoView({ block: 'end' });
|
1192
|
+
}, oneFrame);
|
1193
|
+
}
|
1194
|
+
}
|
1195
|
+
}
|
1196
|
+
__decorate$j([
|
1197
|
+
MapToComponentField()
|
1198
|
+
], VegaCalendarTimeLineRenderer.prototype, "timeFormat", void 0);
|
1199
|
+
__decorate$j([
|
1200
|
+
MapToComponentField()
|
1201
|
+
], VegaCalendarTimeLineRenderer.prototype, "viewMode", void 0);
|
1202
|
+
__decorate$j([
|
1203
|
+
MapToComponentMethod('watchViewModeChange')
|
1204
|
+
], VegaCalendarTimeLineRenderer.prototype, "updateTimeLine", null);
|
1205
|
+
__decorate$j([
|
1206
|
+
MapToComponentMethod('disconnectedCallback')
|
1207
|
+
], VegaCalendarTimeLineRenderer.prototype, "clearTimer", null);
|
1208
|
+
__decorate$j([
|
1209
|
+
MapToComponentMethod('connectedCallback')
|
1210
|
+
], VegaCalendarTimeLineRenderer.prototype, "updateTimeLineIfComponentAddBack", null);
|
1211
|
+
__decorate$j([
|
1212
|
+
MapToComponentMethod('componentDidLoad')
|
1213
|
+
], VegaCalendarTimeLineRenderer.prototype, "displayCurrentTimeBlockByDefault", null);
|
1214
|
+
|
1215
|
+
var __decorate$i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
1216
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
1217
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
1218
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
1219
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
1220
|
+
};
|
1221
|
+
/** The `VegaCalendarViewController` class manages the calendar view based on the current period and view mode in TypeScript. */
|
1222
|
+
class VegaCalendarViewController extends VegaSlimmer {
|
1223
|
+
constructor() {
|
1224
|
+
super(...arguments);
|
1225
|
+
this.monthViewGenerator = new MonthViewGenerator();
|
1226
|
+
this.weekViewGenerator = new WeekViewGenerator();
|
1227
|
+
this.dayViewGenerator = new DayViewGenerator();
|
1228
|
+
}
|
1229
|
+
/**
|
1230
|
+
* set default calendar view
|
1231
|
+
*/
|
1232
|
+
initialCalendarView() {
|
1233
|
+
this.setCalendarView(this.getCalendarViewByPeriod(this.currentPeriod));
|
1234
|
+
}
|
1235
|
+
/**
|
1236
|
+
* generator new calendar view if the calendar current period changes
|
1237
|
+
*
|
1238
|
+
* @param {CalendarPeriod} newValue the new calendar period
|
1239
|
+
*/
|
1240
|
+
generateCalendarView(newValue) {
|
1241
|
+
this.setCalendarView(this.getCalendarViewByPeriod(newValue));
|
1242
|
+
}
|
1243
|
+
/**
|
1244
|
+
* The function `getCalendarViewByPeriod` returns a specific calendar view based on the current period.
|
1245
|
+
*
|
1246
|
+
* @param {CalendarPeriod} newPeriod the new period
|
1247
|
+
* @returns {CalendarView} get the match calendar view by the period
|
1248
|
+
*/
|
1249
|
+
getCalendarViewByPeriod(newPeriod) {
|
1250
|
+
switch (newPeriod.type) {
|
1251
|
+
case 'week':
|
1252
|
+
return this.weekViewGenerator.generate(newPeriod);
|
1253
|
+
case 'day':
|
1254
|
+
return this.dayViewGenerator.generate(newPeriod);
|
1255
|
+
default:
|
1256
|
+
return this.monthViewGenerator.generate(newPeriod);
|
1257
|
+
}
|
1258
|
+
}
|
1259
|
+
/**
|
1260
|
+
* update the calendar view
|
1261
|
+
*
|
1262
|
+
* @param {CalendarView} newView new calendar view
|
1263
|
+
*/
|
1264
|
+
setCalendarView(newView) {
|
1265
|
+
this.calendarView = newView;
|
1266
|
+
}
|
1267
|
+
}
|
1268
|
+
__decorate$i([
|
1269
|
+
MapToComponentField({ writable: true })
|
1270
|
+
], VegaCalendarViewController.prototype, "calendarView", void 0);
|
1271
|
+
__decorate$i([
|
1272
|
+
MapToComponentField()
|
1273
|
+
], VegaCalendarViewController.prototype, "currentPeriod", void 0);
|
1274
|
+
__decorate$i([
|
1275
|
+
MapToComponentField()
|
1276
|
+
], VegaCalendarViewController.prototype, "showWeekends", void 0);
|
1277
|
+
__decorate$i([
|
1278
|
+
MapToComponentField()
|
1279
|
+
], VegaCalendarViewController.prototype, "currentPeriodController", void 0);
|
1280
|
+
__decorate$i([
|
1281
|
+
MapToComponentMethod('componentWillLoad')
|
1282
|
+
], VegaCalendarViewController.prototype, "initialCalendarView", null);
|
1283
|
+
__decorate$i([
|
1284
|
+
MapToComponentMethod('watchCurrentPeriodChange')
|
1285
|
+
], VegaCalendarViewController.prototype, "generateCalendarView", null);
|
1286
|
+
|
1287
|
+
var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
1288
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
1289
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
1290
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
1291
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
1292
|
+
};
|
1293
|
+
/** This TypeScript class `VegaCalendarCurrentPeriodController` updates the current period based on the view mode in a calendar component. */
|
1294
|
+
class VegaCalendarCurrentPeriodController extends VegaSlimmer {
|
1295
|
+
/**
|
1296
|
+
* set new current period
|
1297
|
+
*
|
1298
|
+
* @param {CalendarPeriod} newPeriod new value
|
1299
|
+
*/
|
1300
|
+
setCurrentPeriod(newPeriod) {
|
1301
|
+
this.currentPeriod = newPeriod;
|
1302
|
+
}
|
1303
|
+
/**
|
1304
|
+
* set new current period by the view mode and the current date
|
1305
|
+
*
|
1306
|
+
* @param {VegaCalendarViewModeType} viewMode view mode value
|
1307
|
+
* @param {CalendarDate} date current date
|
1308
|
+
*/
|
1309
|
+
updateCalendarPeriod(viewMode, date) {
|
1310
|
+
switch (viewMode) {
|
1311
|
+
case 'month':
|
1312
|
+
this.setCurrentPeriod(new MonthPeriod(date, this.showWeekends));
|
1313
|
+
break;
|
1314
|
+
case 'week':
|
1315
|
+
this.setCurrentPeriod(new WeekPeriod(date, this.showWeekends));
|
1316
|
+
break;
|
1317
|
+
case 'day':
|
1318
|
+
date = this.showWeekends === false ? getClosestWorkday(date) : date;
|
1319
|
+
this.setCurrentPeriod(new DayPeriod(date, this.showWeekends));
|
1320
|
+
break;
|
1321
|
+
}
|
1322
|
+
}
|
1323
|
+
/**
|
1324
|
+
* default current period is month period, re-create period if the default view mode is not month
|
1325
|
+
* set default calendar view
|
1326
|
+
*/
|
1327
|
+
initialCurrentPeriod() {
|
1328
|
+
this.updateCalendarPeriod(this.viewMode, CalendarDate.from(new Date()));
|
1329
|
+
}
|
1330
|
+
/**
|
1331
|
+
* emit period change event
|
1332
|
+
*
|
1333
|
+
* @param {CalendarPeriod} newValue the new calendar period
|
1334
|
+
* @param {CalendarPeriod} oldValue the prev calendar period
|
1335
|
+
*/
|
1336
|
+
emitChangeEvent(newValue, oldValue) {
|
1337
|
+
if (newValue &&
|
1338
|
+
oldValue &&
|
1339
|
+
newValue.startDate.equal(oldValue.startDate) &&
|
1340
|
+
newValue.endDate.equal(oldValue.endDate)) {
|
1341
|
+
return;
|
1342
|
+
}
|
1343
|
+
if (newValue && newValue.type !== this.viewMode) {
|
1344
|
+
this.viewMode = newValue.type;
|
1345
|
+
}
|
1346
|
+
this.changeEventEmitter.emit({
|
1347
|
+
viewMode: newValue.type,
|
1348
|
+
currentPeriod: this.getCurrentPeriodSummary(),
|
1349
|
+
});
|
1350
|
+
}
|
1351
|
+
/**
|
1352
|
+
* update the current period when view mode change
|
1353
|
+
*
|
1354
|
+
* @param {VegaCalendarViewModeType} viewMode new view mode value
|
1355
|
+
*/
|
1356
|
+
updateCurrentPeriodByViewMode(viewMode) {
|
1357
|
+
if (this.currentPeriod && viewMode !== this.currentPeriod.type) {
|
1358
|
+
this.updateCalendarPeriod(viewMode, this.currentPeriod.current);
|
1359
|
+
}
|
1360
|
+
}
|
1361
|
+
/**
|
1362
|
+
* The calendar period should update when the property showWeekends change
|
1363
|
+
*/
|
1364
|
+
updateCurrentPeriodAfterHideWeekEndsChange() {
|
1365
|
+
this.updateCalendarPeriod(this.viewMode, this.currentPeriod.current);
|
1366
|
+
}
|
1367
|
+
/**
|
1368
|
+
* The function `getStartDateAndEndDate` returns an array of `VegaCalendarDateType` objects based on the `startDate` and `endDate` properties of the `currentPeriod` object.
|
1369
|
+
*
|
1370
|
+
* @returns {VegaCalendarChangeEventType['currentPeriod']} An array of objects containing the date, month, and year properties of the currentPeriod's
|
1371
|
+
* start date and end date.
|
1372
|
+
*/
|
1373
|
+
getCurrentPeriodSummary() {
|
1374
|
+
const { current, startDate, endDate } = this.currentPeriod;
|
1375
|
+
return {
|
1376
|
+
year: current.year,
|
1377
|
+
month: current.month,
|
1378
|
+
startDate: {
|
1379
|
+
date: startDate.date,
|
1380
|
+
month: startDate.month,
|
1381
|
+
year: startDate.year,
|
1382
|
+
},
|
1383
|
+
endDate: {
|
1384
|
+
date: endDate.date,
|
1385
|
+
month: endDate.month,
|
1386
|
+
year: endDate.year,
|
1387
|
+
},
|
1388
|
+
};
|
1389
|
+
}
|
1390
|
+
}
|
1391
|
+
__decorate$h([
|
1392
|
+
MapToComponentField({ writable: true })
|
1393
|
+
], VegaCalendarCurrentPeriodController.prototype, "currentPeriod", void 0);
|
1394
|
+
__decorate$h([
|
1395
|
+
MapToComponentField()
|
1396
|
+
], VegaCalendarCurrentPeriodController.prototype, "changeEventEmitter", void 0);
|
1397
|
+
__decorate$h([
|
1398
|
+
MapToComponentField({ writable: true })
|
1399
|
+
], VegaCalendarCurrentPeriodController.prototype, "viewMode", void 0);
|
1400
|
+
__decorate$h([
|
1401
|
+
MapToComponentField()
|
1402
|
+
], VegaCalendarCurrentPeriodController.prototype, "showWeekends", void 0);
|
1403
|
+
__decorate$h([
|
1404
|
+
MapToComponentMethod('componentWillLoad')
|
1405
|
+
], VegaCalendarCurrentPeriodController.prototype, "initialCurrentPeriod", null);
|
1406
|
+
__decorate$h([
|
1407
|
+
MapToComponentMethod('watchCurrentPeriodChange')
|
1408
|
+
], VegaCalendarCurrentPeriodController.prototype, "emitChangeEvent", null);
|
1409
|
+
__decorate$h([
|
1410
|
+
MapToComponentMethod('watchViewModeChange')
|
1411
|
+
], VegaCalendarCurrentPeriodController.prototype, "updateCurrentPeriodByViewMode", null);
|
1412
|
+
__decorate$h([
|
1413
|
+
MapToComponentMethod('watchShowWeekendsChange')
|
1414
|
+
], VegaCalendarCurrentPeriodController.prototype, "updateCurrentPeriodAfterHideWeekEndsChange", null);
|
1415
|
+
|
1416
|
+
var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
1417
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
1418
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
1419
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
1420
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
1421
|
+
};
|
1422
|
+
/** This code snippet defines a TypeScript class `VegaCalendarMonthEventRenderer` that extends `VegaSlimmer`. Here's a breakdown of what the class and its methods are doing: */
|
1423
|
+
class VegaCalendarMonthEventRenderer extends VegaSlimmer {
|
1424
|
+
constructor() {
|
1425
|
+
super(...arguments);
|
1426
|
+
this.maxMonthDisplayEventsCount = 2;
|
1427
|
+
}
|
1428
|
+
/**
|
1429
|
+
* current row dates all events.
|
1430
|
+
*
|
1431
|
+
* @param {CalendarDate[]} rowDate the current view date object
|
1432
|
+
* @returns {(CalendarEvent|null)[][]} the current view events
|
1433
|
+
*/
|
1434
|
+
getCurrentRowEvents(rowDate) {
|
1435
|
+
const result = [];
|
1436
|
+
rowDate.forEach((item) => {
|
1437
|
+
const currentDateEvents = this.calendarEventController.getCurrentDateEvents(item);
|
1438
|
+
result.push(currentDateEvents);
|
1439
|
+
});
|
1440
|
+
return this.fullDayEventLayoutRenderer.sortLongEvents(result);
|
1441
|
+
}
|
1442
|
+
/**
|
1443
|
+
* The function filterRowDisplayEvents processes a 2D array of CalendarEvent objects to limit the number of events displayed per row.
|
1444
|
+
*
|
1445
|
+
* @param {(CalendarEvent|null)[][]} rowEvents - `rowEvents` is an array of arrays of `CalendarEvent` objects. Each inner array represents events for a specific row in a calendar display.
|
1446
|
+
* @returns {(CalendarEvent|null)[][]} the current row should display events array
|
1447
|
+
*/
|
1448
|
+
filterRowDisplayEvents(rowEvents) {
|
1449
|
+
const result = [];
|
1450
|
+
rowEvents.forEach((events) => {
|
1451
|
+
const displayEvents = events.length > this.maxMonthDisplayEventsCount
|
1452
|
+
? events.slice(0, this.maxMonthDisplayEventsCount - 1)
|
1453
|
+
: events;
|
1454
|
+
result.push(displayEvents);
|
1455
|
+
});
|
1456
|
+
return this.hideTheCutOffEvents(rowEvents, result);
|
1457
|
+
}
|
1458
|
+
/**
|
1459
|
+
* Get the month event container element ref
|
1460
|
+
*
|
1461
|
+
* @returns {HTMLDivElement} the container element
|
1462
|
+
*/
|
1463
|
+
getMonthEventContainerRef() {
|
1464
|
+
return this.eventContainerRef;
|
1465
|
+
}
|
1466
|
+
/**
|
1467
|
+
* render the current date events
|
1468
|
+
*
|
1469
|
+
* @param {CalendarDate} calendarDate current day
|
1470
|
+
* @param {Nullable<CalendarEvent>[]} allEvents current row events
|
1471
|
+
* @param {Nullable<CalendarEvent>[]} displayEvents current row should display events
|
1472
|
+
* @param {number} currentViewIndex current day index of week
|
1473
|
+
* @returns {HTMLDivElement} the events container
|
1474
|
+
*/
|
1475
|
+
render(calendarDate, allEvents, displayEvents, currentViewIndex) {
|
1476
|
+
const hiddenEventsLength = allEvents
|
1477
|
+
.slice(displayEvents.length)
|
1478
|
+
.filter((item) => item).length;
|
1479
|
+
return (h("div", { class: "events-container", ref: (node) => (this.eventContainerRef = node) },
|
1480
|
+
h("div", { class: "event-list" }, this.fullDayEventLayoutRenderer.render(displayEvents, currentViewIndex)),
|
1481
|
+
this.renderMoreButton(allEvents, hiddenEventsLength, `${calendarDate.date} ${getMonthName(calendarDate.toDate())} ${calendarDate.year}`)));
|
1482
|
+
}
|
1483
|
+
/**
|
1484
|
+
* Add a month event display count change observer, than update the component
|
1485
|
+
*/
|
1486
|
+
addMaxDisplayCountChange() {
|
1487
|
+
DomNodeSubjectObserverFactory.addUniqueObserverToNode(this.host, VegaInternalCalendarMonthEventsChange, (payload) => {
|
1488
|
+
this.maxMonthDisplayEventsCount = payload.detail;
|
1489
|
+
if (this.viewMode === 'month') {
|
1490
|
+
forceUpdate(this.host);
|
1491
|
+
}
|
1492
|
+
});
|
1493
|
+
}
|
1494
|
+
/**
|
1495
|
+
* Render the event more button if there is no enough space to display all event
|
1496
|
+
*
|
1497
|
+
* @param {Nullable<CalendarEvent>[]} events all event list array
|
1498
|
+
* @param {number} moreItemsLength popover events length
|
1499
|
+
* @param {string} title the popover title
|
1500
|
+
* @returns {HTMLDivElement | null} the more button or null
|
1501
|
+
*/
|
1502
|
+
renderMoreButton(events, moreItemsLength, title) {
|
1503
|
+
if (moreItemsLength) {
|
1504
|
+
const backgroundColorEvents = events.filter((eventItem) => {
|
1505
|
+
return eventItem && (eventItem.isAllDayEvent || eventItem.isGroupEvent());
|
1506
|
+
});
|
1507
|
+
const otherEvents = events.filter((eventItem) => {
|
1508
|
+
return eventItem && !eventItem.isAllDayEvent && !eventItem.isGroupEvent();
|
1509
|
+
});
|
1510
|
+
return (h("div", { class: "month-event-more" },
|
1511
|
+
h("vega-popover", { trigger: "click", placement: "right" },
|
1512
|
+
h("div", { tabIndex: 0, slot: "popover-content", role: "button", class: "more-button", onKeyDown: createEnterKeyHandlerToTriggerClick() }, `${moreItemsLength} More`),
|
1513
|
+
h("vega-flex", { slot: "popover", direction: "col", gap: "0" },
|
1514
|
+
h("vega-font", { textAlign: "center", variant: "font-field-label", color: "text-primary", style: { padding: '4px 0', marginBottom: '8px' } }, title),
|
1515
|
+
h("vega-flex", { direction: "col", gap: "size-4", style: { paddingBottom: otherEvents.length ? '4px' : '0px' } }, backgroundColorEvents.map((item) => {
|
1516
|
+
return this.eventItemRenderer.render(item, {
|
1517
|
+
'month-event': true,
|
1518
|
+
'calendar-event-large-size': true,
|
1519
|
+
'calendar-event-in-popover': true,
|
1520
|
+
});
|
1521
|
+
})),
|
1522
|
+
otherEvents.map((item) => {
|
1523
|
+
return this.eventItemRenderer.render(item, {
|
1524
|
+
'month-event': true,
|
1525
|
+
'calendar-event-large-size': true,
|
1526
|
+
'calendar-event-in-popover': true,
|
1527
|
+
});
|
1528
|
+
})))));
|
1529
|
+
}
|
1530
|
+
}
|
1531
|
+
/*
|
1532
|
+
* The below method is e2e-test covered in
|
1533
|
+
* @see{module:vega-calendar-render-full-day-event-correct}
|
1534
|
+
*/
|
1535
|
+
/* istanbul ignore next */
|
1536
|
+
/**
|
1537
|
+
* The `hideTheCutOffEvents` method in the `VegaCalendarMonthEventRenderer` class is responsible for removing any cut-off events from the displayed events in each row
|
1538
|
+
*
|
1539
|
+
* @param {Nullable<CalendarEvent>[][]} allEvents the all events
|
1540
|
+
* @param {Nullable<CalendarEvent>[][]} rowEvents the display events
|
1541
|
+
* @returns {Nullable<CalendarEvent>[][]} new event array
|
1542
|
+
*/
|
1543
|
+
hideTheCutOffEvents(allEvents, rowEvents) {
|
1544
|
+
const result = [];
|
1545
|
+
const removeItems = [];
|
1546
|
+
const shouldCheckEvents = rowEvents
|
1547
|
+
.map((items) => items[items.length - 1])
|
1548
|
+
.filter((item) => item && item.isGroupEvent());
|
1549
|
+
if (shouldCheckEvents.length) {
|
1550
|
+
shouldCheckEvents.forEach((checkItem) => {
|
1551
|
+
if (allEvents.filter((items) => items.includes(checkItem)).length >
|
1552
|
+
rowEvents.filter((items) => items.includes(checkItem)).length) {
|
1553
|
+
removeItems.push(checkItem);
|
1554
|
+
}
|
1555
|
+
});
|
1556
|
+
}
|
1557
|
+
if (removeItems.length) {
|
1558
|
+
rowEvents.forEach((items) => {
|
1559
|
+
if (items.length && removeItems.includes(items[items.length - 1])) {
|
1560
|
+
result.push(items.slice(0, items.length - 1));
|
1561
|
+
}
|
1562
|
+
else {
|
1563
|
+
result.push(items);
|
1564
|
+
}
|
1565
|
+
});
|
1566
|
+
return result;
|
1567
|
+
}
|
1568
|
+
return rowEvents;
|
1569
|
+
}
|
1570
|
+
}
|
1571
|
+
__decorate$g([
|
1572
|
+
MapToComponentField()
|
1573
|
+
], VegaCalendarMonthEventRenderer.prototype, "viewMode", void 0);
|
1574
|
+
__decorate$g([
|
1575
|
+
MapToComponentField()
|
1576
|
+
], VegaCalendarMonthEventRenderer.prototype, "host", void 0);
|
1577
|
+
__decorate$g([
|
1578
|
+
MapToComponentField()
|
1579
|
+
], VegaCalendarMonthEventRenderer.prototype, "calendarEventController", void 0);
|
1580
|
+
__decorate$g([
|
1581
|
+
MapToComponentField()
|
1582
|
+
], VegaCalendarMonthEventRenderer.prototype, "eventItemRenderer", void 0);
|
1583
|
+
__decorate$g([
|
1584
|
+
MapToComponentField()
|
1585
|
+
], VegaCalendarMonthEventRenderer.prototype, "fullDayEventLayoutRenderer", void 0);
|
1586
|
+
__decorate$g([
|
1587
|
+
MapToComponentMethod('componentWillLoad')
|
1588
|
+
], VegaCalendarMonthEventRenderer.prototype, "addMaxDisplayCountChange", null);
|
1589
|
+
|
1590
|
+
/** The above code defines an abstract class `CalendarEventBaseRepeatPattern` in TypeScript that represents a repeat pattern for calendar events. Here is a summary of what the code is doing: */
|
1591
|
+
class CalendarEventBaseRepeatPattern {
|
1592
|
+
/**
|
1593
|
+
* The constructor initializes the current date for a given date range and interval.
|
1594
|
+
*
|
1595
|
+
* @param {CalendarDate} repeatStartDate - The `repeatStartDate` parameter represents the starting date of a
|
1596
|
+
* calendar event or interval. It is of type `CalendarDate`, which likely contains information such as
|
1597
|
+
* the year, month, and day of the event.
|
1598
|
+
* @param {number} interval - The `interval` parameter represents the frequency at which the event
|
1599
|
+
* occurs. For example, if the interval is set to 2, it means the event occurs every 2 units of time
|
1600
|
+
* (e.g., every 2 days, weeks, months, etc.).
|
1601
|
+
* @param {Nullable<number>} count - The `count` parameter specifies the number of occurrences of the event. If `count`
|
1602
|
+
* is provided, the event will repeat `count` times within the specified interval. If `count` is
|
1603
|
+
* `null`, the event will repeat indefinitely until the `until` date is reached.
|
1604
|
+
* @param {Nullable<CalendarDate>} until - The `until` parameter in the constructor represents a date until which the recurring
|
1605
|
+
* event will occur. If this date is reached, the recurring event will stop.
|
1606
|
+
*/
|
1607
|
+
constructor(repeatStartDate, interval, count, until) {
|
1608
|
+
this.repeatStartDate = repeatStartDate;
|
1609
|
+
this.interval = interval;
|
1610
|
+
this.count = count;
|
1611
|
+
this.until = until;
|
1612
|
+
}
|
1613
|
+
/**
|
1614
|
+
* The function `getRepeatSeries` retrieves a series of repeated events within a specified calendar period.
|
1615
|
+
*
|
1616
|
+
* @param {CalendarPeriod} period - The `period` parameter in the `getRepeatSeries` method represents
|
1617
|
+
* a specific time period in the form of a `CalendarPeriod` object. This object typically contains a
|
1618
|
+
* `startDate` and an `endDate`, which define the range of dates for which you want to generate repeat series.
|
1619
|
+
* @param {number} eventSpansDays - the current repeat series cross days, default value is one
|
1620
|
+
* @returns {CalendarDate[]} repeat start date array
|
1621
|
+
*/
|
1622
|
+
getRepeatSeries(period, eventSpansDays = 1) {
|
1623
|
+
this.generateRepeatDateCacheUntilEndDate(period.endDate);
|
1624
|
+
return this.cache.filter((item) => {
|
1625
|
+
return this.isSeriesInPeriod(item, eventSpansDays, period);
|
1626
|
+
});
|
1627
|
+
}
|
1628
|
+
/**
|
1629
|
+
* The function `isSeriesInPeriod` checks if a series of dates falls within a specified date range.
|
1630
|
+
*
|
1631
|
+
* @param {CalendarDate} series - The `series` parameter represents a specific date in the form of a
|
1632
|
+
* `CalendarDate` object.
|
1633
|
+
* @param {number} seriesSpansDays - The `seriesSpansDays` parameter represents the number of days
|
1634
|
+
* that the series spans. It is used to calculate the end date of the series based on the start date.
|
1635
|
+
* @param {CalendarPeriod} period - Date period
|
1636
|
+
* @returns {boolean} a boolean value indicating whether the given series falls within the specified date
|
1637
|
+
* range.
|
1638
|
+
*/
|
1639
|
+
isSeriesInPeriod(series, seriesSpansDays, period) {
|
1640
|
+
const seriesStart = series.toDate();
|
1641
|
+
const seriesEnd = new Date(series.year, series.month - 1, series.date + seriesSpansDays - 1);
|
1642
|
+
const { startDate, endDate } = period;
|
1643
|
+
const rangeStart = startDate.toDate();
|
1644
|
+
const rangeEnd = endDate.toDate();
|
1645
|
+
return ((seriesStart >= rangeStart && seriesStart <= rangeEnd) ||
|
1646
|
+
(seriesEnd >= rangeStart && seriesEnd <= rangeEnd) ||
|
1647
|
+
(seriesStart <= rangeStart && seriesEnd >= rangeEnd));
|
1648
|
+
}
|
1649
|
+
}
|
1650
|
+
CalendarEventBaseRepeatPattern.daySeconds = 24 * 60 * 60 * 1000;
|
1651
|
+
|
1652
|
+
/** The `CalendarEventDailyRepeatPattern` class in TypeScript represents a daily repeating pattern for calendar events. */
|
1653
|
+
class CalendarEventDailyRepeatPattern extends CalendarEventBaseRepeatPattern {
|
1654
|
+
/**
|
1655
|
+
* The constructor initializes the current date for a given date range and interval.
|
1656
|
+
*
|
1657
|
+
* @param {CalendarDate} startDate - The `startDate` parameter is of type `CalendarDate` and represents the starting date for a specific interval or range.
|
1658
|
+
* @param {number} interval - The `interval` parameter represents the frequency at which the event
|
1659
|
+
* occurs. For example, if the interval is set to 1, it means the event occurs every day. If the
|
1660
|
+
* interval is set to 2, it means the event occurs every other day.
|
1661
|
+
* @param {Nullable<number>} count - The `count` parameter specifies the number of occurrences of the event. If `count`
|
1662
|
+
* is provided, the event will repeat `count` times within the specified interval. If `count` is
|
1663
|
+
* `null`, the event will repeat indefinitely until the `until` date is reached.
|
1664
|
+
* @param {Nullable<CalendarDate>} until - The `until` parameter in the constructor is of type `Nullable<CalendarDate>`, which
|
1665
|
+
* means it can either accept a `CalendarDate` object or be `null`. This parameter is used to specify
|
1666
|
+
* a date until which the recurring event should repeat. If `until` is provided, the event
|
1667
|
+
*/
|
1668
|
+
constructor(startDate, interval, count, until) {
|
1669
|
+
super(startDate, interval, count, until);
|
1670
|
+
this.initCache();
|
1671
|
+
}
|
1672
|
+
/**
|
1673
|
+
* The function generates and caches repeated dates before a specified end date.
|
1674
|
+
*
|
1675
|
+
* @param {CalendarDate} endDate - The `endDate` parameter represents the date until which you want to
|
1676
|
+
* generate repeat dates in the cache. The function `generateRepeatDateCacheBeforeEndDate` is
|
1677
|
+
* responsible for populating the cache with repeat dates until the specified `endDate`. It checks the
|
1678
|
+
* last date in the cache and generates subsequent repeat dates until
|
1679
|
+
*/
|
1680
|
+
generateRepeatDateCacheUntilEndDate(endDate) {
|
1681
|
+
const lastMatchDate = this.cache[this.cache.length - 1];
|
1682
|
+
if (lastMatchDate.toDate() < endDate.toDate() &&
|
1683
|
+
(!this.count || (typeof this.count === 'number' && this.cache.length < this.count))) {
|
1684
|
+
let nextMatchDate = this.getNextRepeatStartDate(lastMatchDate);
|
1685
|
+
while (nextMatchDate && nextMatchDate.toDate() < endDate.toDate()) {
|
1686
|
+
nextMatchDate = this.getNextRepeatStartDate(nextMatchDate);
|
1687
|
+
if (typeof this.count === 'number' && this.cache.length >= this.count) {
|
1688
|
+
break;
|
1689
|
+
}
|
1690
|
+
}
|
1691
|
+
}
|
1692
|
+
}
|
1693
|
+
/**
|
1694
|
+
* The function `initCache` initializes a cache array with the `startDate` value.
|
1695
|
+
*/
|
1696
|
+
initCache() {
|
1697
|
+
this.cache = [this.repeatStartDate];
|
1698
|
+
}
|
1699
|
+
/**
|
1700
|
+
* The function getNextRepeatStartDate calculates the next repeat start date based on a given date and certain conditions.
|
1701
|
+
*
|
1702
|
+
* @param {CalendarDate} date - The `date` parameter represents the current date for which you want to
|
1703
|
+
* calculate the next repeat start date. It is an instance of the `CalendarDate` class.
|
1704
|
+
* @returns {Nullable<CalendarDate>} The function `getNextRepeatStartDate` returns either a `CalendarDate` object if certain
|
1705
|
+
* conditions are met, or `null` if the conditions are not met.
|
1706
|
+
*/
|
1707
|
+
getNextRepeatStartDate(date) {
|
1708
|
+
const nextDate = new Date(date.year, date.month - 1, date.date + this.interval);
|
1709
|
+
const nextCalendarDate = CalendarDate.from(nextDate);
|
1710
|
+
if ((this.until && nextDate > this.until.toDate()) ||
|
1711
|
+
(typeof this.count === 'number' && this.cache.length >= this.count)) {
|
1712
|
+
return null;
|
1713
|
+
}
|
1714
|
+
else {
|
1715
|
+
this.cache.push(nextCalendarDate);
|
1716
|
+
return nextCalendarDate;
|
1717
|
+
}
|
1718
|
+
}
|
1719
|
+
}
|
1720
|
+
|
1721
|
+
/** The `CalendarEventMonthlyRepeatPattern` class in TypeScript represents a monthly repeat pattern for calendar events. */
|
1722
|
+
class CalendarEventMonthlyRepeatPattern extends CalendarEventBaseRepeatPattern {
|
1723
|
+
/**
|
1724
|
+
* The constructor initializes the event with specified start and end dates, interval, count, and until date, and sets the byMonthDay property to the start date's day.
|
1725
|
+
*
|
1726
|
+
* @param {CalendarDate} startDate - The `startDate` parameter represents the starting date of the
|
1727
|
+
* event or interval. It is of type `CalendarDate`, which likely includes the year, month, and day
|
1728
|
+
* components of the date.
|
1729
|
+
* @param {number} interval - The `interval` parameter specifies the frequency of the recurring
|
1730
|
+
* events. For example, if the interval is set to 2, the event will occur every 2 units of time (days,
|
1731
|
+
* weeks, months, etc.).
|
1732
|
+
* @param {Nullable<number>} count - The `count` parameter specifies the number of occurrences of the event. If `count`
|
1733
|
+
* is provided, the event will repeat `count` times within the specified interval. If `count` is not
|
1734
|
+
* provided (or is `null`), the event will repeat indefinitely based on the other parameters like `
|
1735
|
+
* @param {Nullable<CalendarDate>} until - The `until` parameter is a nullable `CalendarDate` that specifies the end date for
|
1736
|
+
* the recurring event. If provided, the event will repeat until this date. If not provided, the event
|
1737
|
+
* will repeat indefinitely based on the other parameters like `count` or `endDate`.
|
1738
|
+
*/
|
1739
|
+
constructor(startDate, interval, count, until) {
|
1740
|
+
super(startDate, interval, count, until);
|
1741
|
+
this.byMonthDay = this.repeatStartDate.date;
|
1742
|
+
this.initCache();
|
1743
|
+
}
|
1744
|
+
/**
|
1745
|
+
* This function generates and caches repeated dates before a specified end date.
|
1746
|
+
*
|
1747
|
+
* @param {CalendarDate} endDate - The `endDate` parameter in the
|
1748
|
+
* `generateRepeatDateCacheUntilEndDate` function is a CalendarDate object that represents the end
|
1749
|
+
* date until which the repeat dates need to be generated and cached. The function checks if the last
|
1750
|
+
* cached date is before the `endDate` and generates additional repeat dates until it reaches
|
1751
|
+
*/
|
1752
|
+
generateRepeatDateCacheUntilEndDate(endDate) {
|
1753
|
+
const lastMatchDate = this.cache[this.cache.length - 1];
|
1754
|
+
if (lastMatchDate.toDate() < endDate.toDate() &&
|
1755
|
+
(!this.count || (typeof this.count === 'number' && this.cache.length < this.count))) {
|
1756
|
+
let nextMatchDate = this.getNextRepeatStartDate(lastMatchDate);
|
1757
|
+
while (nextMatchDate && nextMatchDate.toDate() < endDate.toDate()) {
|
1758
|
+
nextMatchDate = this.getNextRepeatStartDate(nextMatchDate);
|
1759
|
+
if (typeof this.count === 'number' && this.cache.length >= this.count) {
|
1760
|
+
break;
|
1761
|
+
}
|
1762
|
+
}
|
1763
|
+
}
|
1764
|
+
}
|
1765
|
+
/**
|
1766
|
+
* The function `initCache` initializes a cache array with the startDate value.
|
1767
|
+
*/
|
1768
|
+
initCache() {
|
1769
|
+
this.cache = [this.repeatStartDate];
|
1770
|
+
}
|
1771
|
+
/**
|
1772
|
+
* The getNextRepeatStartDate function calculates the next start date based on a given date and interval, considering constraints such as end date and count limit.
|
1773
|
+
*
|
1774
|
+
* @param {CalendarDate} date - The `date` parameter represents the current date for which you want to
|
1775
|
+
* calculate the next repeat start date. It is of type `CalendarDate`.
|
1776
|
+
* @returns {Nullable<CalendarDate>} The function `getNextRepeatStartDate` returns a nullable `CalendarDate`. It either returns
|
1777
|
+
* the next calculated `CalendarDate` based on the input date and interval, or it returns `null` if
|
1778
|
+
* certain conditions are met (such as reaching the specified end date or count limit).
|
1779
|
+
*/
|
1780
|
+
getNextRepeatStartDate(date) {
|
1781
|
+
const nextDate = this.getNextStartDate(date.year, date.month - 1 + this.interval);
|
1782
|
+
const nextCalendarDate = CalendarDate.from(nextDate);
|
1783
|
+
if ((this.until && nextDate > this.until.toDate()) ||
|
1784
|
+
(typeof this.count === 'number' && this.cache.length >= this.count)) {
|
1785
|
+
return null;
|
1786
|
+
}
|
1787
|
+
else {
|
1788
|
+
this.cache.push(nextCalendarDate);
|
1789
|
+
return nextCalendarDate;
|
1790
|
+
}
|
1791
|
+
}
|
1792
|
+
/**
|
1793
|
+
* get the new date with fixed date, if the date.getDate() not equal the fixed date, find the next month
|
1794
|
+
*
|
1795
|
+
* @param {number} year year
|
1796
|
+
* @param {number} month month
|
1797
|
+
* @returns {Date} the new date
|
1798
|
+
*/
|
1799
|
+
getNextStartDate(year, month) {
|
1800
|
+
const nextDate = new Date(year, month, this.byMonthDay);
|
1801
|
+
if (nextDate.getDate() === this.byMonthDay) {
|
1802
|
+
return nextDate;
|
1803
|
+
}
|
1804
|
+
else {
|
1805
|
+
return this.getNextStartDate(year, month + 1);
|
1806
|
+
}
|
1807
|
+
}
|
1808
|
+
}
|
1809
|
+
|
1810
|
+
/** The `CalendarEventWeeklyRepeatPattern` class in TypeScript represents a weekly repeat pattern for calendar events, allowing for matching dates based on specific weekdays and generating future dates with optional constraints. */
|
1811
|
+
class CalendarEventWeeklyRepeatPattern extends CalendarEventBaseRepeatPattern {
|
1812
|
+
/**
|
1813
|
+
* This TypeScript constructor initializes a calendar date range with specified parameters including start date, end date, interval, count, until date, and an array of week days.
|
1814
|
+
*
|
1815
|
+
* @param {CalendarDate} startDate - The `startDate` parameter represents the starting date of the
|
1816
|
+
* calendar event or schedule. It is of type `CalendarDate`, which likely includes the year, month, and day components of a date.
|
1817
|
+
* @param {number} interval - The `interval` parameter represents the frequency of the recurrence. For
|
1818
|
+
* example, if `interval` is set to 1, the event will occur every week. If it's set to 2, the event
|
1819
|
+
* will occur every two weeks.
|
1820
|
+
* @param {Nullable<number>} count - The `count` parameter specifies the number of occurrences of the rule. If `count` is
|
1821
|
+
* provided, the recurrence will generate at most that many occurrences. If `count` is not provided,
|
1822
|
+
* the recurrence will continue indefinitely based on other parameters like `endDate` or `until`.
|
1823
|
+
* @param {Nullable<CalendarDate>} until - The `until` parameter specifies the end date for the recurrence rule. If provided,
|
1824
|
+
* the recurrence will continue until this date. If not provided, the recurrence will continue
|
1825
|
+
* indefinitely based on other parameters like `count` or `interval`.
|
1826
|
+
* @param {Nullable<VegaCalendarWeekDayType[]>} byWeekDay - The `byWeekDay` parameter is an array of
|
1827
|
+
* `VegaCalendarWeekDayType` values, which represent the days of the week for which the event should occur.
|
1828
|
+
*/
|
1829
|
+
constructor(startDate, interval, count, until, byWeekDay) {
|
1830
|
+
super(startDate, interval, count, until);
|
1831
|
+
this.byWeekDay = this.sortWeekDay(byWeekDay);
|
1832
|
+
this.initCache();
|
1833
|
+
}
|
1834
|
+
/**
|
1835
|
+
* The function `getRepeatSeries` retrieves a series of repeated events within a specified calendar period.
|
1836
|
+
*
|
1837
|
+
* @param {CalendarPeriod} period - The `period` parameter in the `getRepeatSeries` method represents
|
1838
|
+
* a specific time period in the form of a `CalendarPeriod` object. This object typically contains a
|
1839
|
+
* `startDate` and an `endDate`, which define the range of dates for which you want to generate repeat series.
|
1840
|
+
* @param {number} eventSpansDays - the current repeat series cross days, default value is one
|
1841
|
+
* @returns {CalendarDate[]} repeat start date array
|
1842
|
+
*/
|
1843
|
+
getRepeatSeries(period, eventSpansDays = 1) {
|
1844
|
+
this.generateRepeatDateCacheUntilEndDate(period.endDate);
|
1845
|
+
return this.getValidCache().filter((item) => {
|
1846
|
+
return this.isSeriesInPeriod(item, eventSpansDays, period);
|
1847
|
+
});
|
1848
|
+
}
|
1849
|
+
/**
|
1850
|
+
* This function generates repeated dates and caches them until a specified end date.
|
1851
|
+
*
|
1852
|
+
* @param {CalendarDate} endDate - The `endDate` parameter is a `CalendarDate` object that represents
|
1853
|
+
* the date until which the repeat date cache needs to be generated. The function
|
1854
|
+
* `generateRepeatDateCacheUntilEndDate` generates repeat dates until this specified end date.
|
1855
|
+
*/
|
1856
|
+
generateRepeatDateCacheUntilEndDate(endDate) {
|
1857
|
+
const lastMatchDate = this.cache[this.cache.length - 1];
|
1858
|
+
if (lastMatchDate[0].toDate() < endDate.toDate() &&
|
1859
|
+
(!this.count || (typeof this.count === 'number' && this.cache.length < this.count))) {
|
1860
|
+
let nextMatchDate = this.getNextRepeatStartDate(lastMatchDate);
|
1861
|
+
while (nextMatchDate && nextMatchDate[0].toDate() < endDate.toDate()) {
|
1862
|
+
nextMatchDate = this.getNextRepeatStartDate(nextMatchDate);
|
1863
|
+
if (typeof this.count === 'number' && this.getValidCache().length >= this.count) {
|
1864
|
+
break;
|
1865
|
+
}
|
1866
|
+
}
|
1867
|
+
}
|
1868
|
+
}
|
1869
|
+
/**
|
1870
|
+
* The function getNextRepeatStartDate calculates the next start dates based on a given array of CalendarDate objects and returns them if certain conditions are met.
|
1871
|
+
*
|
1872
|
+
* @param {CalendarDate[]} dates - The `dates` parameter is an array of `CalendarDate` objects.
|
1873
|
+
* @returns {Nullable<CalendarDate[]>} The `getNextRepeatStartDate` function returns a nullable array of `CalendarDate` objects.
|
1874
|
+
* If there are no next dates available or if the cache count exceeds a specified limit, it returns
|
1875
|
+
* `null`. Otherwise, it returns an array of `CalendarDate` objects representing the next start dates.
|
1876
|
+
*/
|
1877
|
+
getNextRepeatStartDate(dates) {
|
1878
|
+
const nextDate = this.getNextStartDates(dates);
|
1879
|
+
if (nextDate.length === 0 ||
|
1880
|
+
(typeof this.count === 'number' && this.getValidCache().length >= this.count)) {
|
1881
|
+
return null;
|
1882
|
+
}
|
1883
|
+
else {
|
1884
|
+
const nextCalendarDates = nextDate.map((item) => CalendarDate.from(item));
|
1885
|
+
this.cache.push(nextCalendarDates);
|
1886
|
+
return nextCalendarDates;
|
1887
|
+
}
|
1888
|
+
}
|
1889
|
+
/**
|
1890
|
+
* The function `getNextStartDates` takes an array of `CalendarDate` objects, calculates the next dates based on a specified interval, and filters out dates that are after a specified end date.
|
1891
|
+
*
|
1892
|
+
* @param {CalendarDate[]} dates - The `dates` parameter is an array of `CalendarDate` objects
|
1893
|
+
* representing specific dates in a calendar. Each `CalendarDate` object has properties for the year,
|
1894
|
+
* month, and date.
|
1895
|
+
* @returns {Date[]} The `getNextStartDates` function returns an array of `Date` objects representing the next
|
1896
|
+
* start dates based on the input `CalendarDate` array. The function calculates the next start dates
|
1897
|
+
* by adding a specific interval (multiplied by 7 to represent weeks) to each date in the input array.
|
1898
|
+
* Finally, it filters out any dates that are after a specified `until` date, if provided.
|
1899
|
+
*/
|
1900
|
+
getNextStartDates(dates) {
|
1901
|
+
const nextDates = dates.map((dateItem) => new Date(dateItem.year, dateItem.month - 1, dateItem.date + this.interval * 7));
|
1902
|
+
return nextDates.filter((item) => !this.until || item <= this.until.toDate());
|
1903
|
+
}
|
1904
|
+
/**
|
1905
|
+
* The `initCache` function initializes a cache of calendar dates based on the start date and weekly repeat pattern.
|
1906
|
+
*/
|
1907
|
+
initCache() {
|
1908
|
+
const result = [];
|
1909
|
+
const currentWeekDayIndex = this.getCurrentDayIndex(this.repeatStartDate);
|
1910
|
+
this.byWeekDay.forEach((day) => {
|
1911
|
+
const index = CalendarEventWeeklyRepeatPattern.weekDay.indexOf(day);
|
1912
|
+
const days = index - currentWeekDayIndex;
|
1913
|
+
const { year, month, date } = this.repeatStartDate;
|
1914
|
+
const dateItem = CalendarDate.from(new Date(year, month - 1, date + days));
|
1915
|
+
result.push(dateItem);
|
1916
|
+
});
|
1917
|
+
this.cache = [result];
|
1918
|
+
}
|
1919
|
+
/**
|
1920
|
+
* The function `sortWeekDay` sorts an array of week days based on their position in a predefined list.
|
1921
|
+
*
|
1922
|
+
* @param {boolean} weekDay - The `weekDay` parameter is an array of week day values that need to be sorted in a
|
1923
|
+
* specific order. The function `sortWeekDay` takes this array and sorts it based on a predefined
|
1924
|
+
* order specified in `CalendarEventWeeklyRepeatPattern.weekDay`.
|
1925
|
+
* @returns {VegaCalendarWeekDayType[]} The `sortWeekDay` function is returning the `weekDay` array sorted based on the index of
|
1926
|
+
* each `VegaCalendarWeekDayType` item in the `CalendarEventWeeklyRepeatPattern.weekDay` array.
|
1927
|
+
*/
|
1928
|
+
sortWeekDay(weekDay) {
|
1929
|
+
if (weekDay && weekDay.length) {
|
1930
|
+
return weekDay
|
1931
|
+
.map((item) => item.toLocaleLowerCase())
|
1932
|
+
.sort((itemA, itemB) => {
|
1933
|
+
return (CalendarEventWeeklyRepeatPattern.weekDay.indexOf(itemA) -
|
1934
|
+
CalendarEventWeeklyRepeatPattern.weekDay.indexOf(itemB));
|
1935
|
+
});
|
1936
|
+
}
|
1937
|
+
else {
|
1938
|
+
return [CalendarEventWeeklyRepeatPattern.weekDay[this.getCurrentDayIndex(this.repeatStartDate)]];
|
1939
|
+
}
|
1940
|
+
}
|
1941
|
+
/**
|
1942
|
+
* This function returns the index of the current day in a week, with Sunday represented as 0.
|
1943
|
+
*
|
1944
|
+
* @param {CalendarDate} date - The `date` parameter in the `getCurrentDayIndex` function is of type
|
1945
|
+
* `CalendarDate`, which is a custom data type representing a date in a calendar.
|
1946
|
+
* @returns {number} The function `getCurrentDayIndex` returns the index of the current day in the week, with
|
1947
|
+
* Sunday being represented as 0 and Saturday being represented as 6.
|
1948
|
+
*/
|
1949
|
+
getCurrentDayIndex(date) {
|
1950
|
+
return date.toDate().getDay();
|
1951
|
+
}
|
1952
|
+
/**
|
1953
|
+
* The function `getValidCache` returns a filtered and concatenated array of CalendarDate objects from the cache based on a start date.
|
1954
|
+
*
|
1955
|
+
* @returns {CalendarDate[]} The `getValidCache` method returns an array of `CalendarDate` objects that meet the
|
1956
|
+
* condition of having a date greater than or equal to the `startDate` property. The method first
|
1957
|
+
* flattens a nested array of `CalendarDate` objects stored in the `cache` property, then filters out
|
1958
|
+
* the `CalendarDate` objects that do not meet the condition, and finally concatenates the filtered
|
1959
|
+
* array
|
1960
|
+
*/
|
1961
|
+
getValidCache() {
|
1962
|
+
const flatArr = flatNestedArray(this.cache.slice(1));
|
1963
|
+
return this.cache[0]
|
1964
|
+
.filter((item) => item.toDate() >= this.repeatStartDate.toDate())
|
1965
|
+
.concat(flatArr)
|
1966
|
+
.slice(0, typeof this.count === 'number' ? this.count : undefined);
|
1967
|
+
}
|
1968
|
+
}
|
1969
|
+
CalendarEventWeeklyRepeatPattern.weekDay = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'].map((item) => item.toLowerCase());
|
1970
|
+
|
1971
|
+
/** The `CalendarEventYearlyRepeatPattern` class defines a yearly repeat pattern for calendar events, checking for matches and generating future dates based on specified criteria. */
|
1972
|
+
class CalendarEventYearlyRepeatPattern extends CalendarEventBaseRepeatPattern {
|
1973
|
+
/**
|
1974
|
+
* The constructor initializes a new instance with specified start and end dates, interval, count, and until date.
|
1975
|
+
*
|
1976
|
+
* @param {CalendarDate} startDate - The `startDate` parameter is of type `CalendarDate` and
|
1977
|
+
* represents the starting date of a calendar event or interval.
|
1978
|
+
* @param {number} interval - The `interval` parameter represents the frequency at which the event
|
1979
|
+
* occurs. For example, if the interval is set to 2, the event will occur every 2 units of time (days,
|
1980
|
+
* weeks, months, etc.).
|
1981
|
+
* @param {Nullable<number>} count - The `count` parameter specifies the number of occurrences of the event. If `count`
|
1982
|
+
* is provided, the event will repeat `count` times within the specified interval. If `count` is not
|
1983
|
+
* provided, the event will repeat indefinitely based on the other parameters like `endDate` or
|
1984
|
+
* `until`.
|
1985
|
+
* @param {Nullable<CalendarDate>} until - The `until` parameter in the constructor is of type `Nullable<CalendarDate>`. This
|
1986
|
+
* means that it can either accept a `CalendarDate` object or be `null`. It is used to specify a date
|
1987
|
+
* until which the recurring event should repeat. If `until` is provided, the event
|
1988
|
+
*/
|
1989
|
+
constructor(startDate, interval, count, until) {
|
1990
|
+
super(startDate, interval, count, until);
|
1991
|
+
this.matchDay = this.repeatStartDate.date;
|
1992
|
+
this.matchMonth = this.repeatStartDate.month;
|
1993
|
+
this.initCache();
|
1994
|
+
}
|
1995
|
+
/**
|
1996
|
+
* The function generates repeat dates and caches them until reaching the specified end date.
|
1997
|
+
*
|
1998
|
+
* @param {CalendarDate} endDate - The `endDate` parameter in the
|
1999
|
+
* `generateRepeatDateCacheUntilEndDate` function is a CalendarDate object that represents the date
|
2000
|
+
* until which the repeat date cache should be generated. The function checks if the last date in the
|
2001
|
+
* cache is before the `endDate`, and if so, it generates additional repeat dates
|
2002
|
+
*/
|
2003
|
+
generateRepeatDateCacheUntilEndDate(endDate) {
|
2004
|
+
const lastMatchDate = this.cache[this.cache.length - 1];
|
2005
|
+
if (lastMatchDate.toDate() < endDate.toDate() &&
|
2006
|
+
(!this.count || (typeof this.count === 'number' && this.cache.length < this.count))) {
|
2007
|
+
let nextMatchDate = this.getNextRepeatStartDate(lastMatchDate);
|
2008
|
+
while (nextMatchDate && nextMatchDate.toDate() < endDate.toDate()) {
|
2009
|
+
nextMatchDate = this.getNextRepeatStartDate(nextMatchDate);
|
2010
|
+
if (typeof this.count === 'number' && this.cache.length >= this.count) {
|
2011
|
+
break;
|
2012
|
+
}
|
2013
|
+
}
|
2014
|
+
}
|
2015
|
+
}
|
2016
|
+
/**
|
2017
|
+
* The function getNextRepeatStartDate calculates the next repeat start date based on a given date and certain conditions.
|
2018
|
+
*
|
2019
|
+
* @param {CalendarDate} date - The `date` parameter represents the current date for which you want to
|
2020
|
+
* calculate the next repeat start date. It is of type `CalendarDate`, which seems to be a custom
|
2021
|
+
* class or structure that holds year, month, and day information.
|
2022
|
+
* @returns {Nullable<CalendarDate>} The function `getNextRepeatStartDate` returns either a `CalendarDate` object or `null`
|
2023
|
+
* based on certain conditions. If the next date exceeds the `until` date or the count limit has been
|
2024
|
+
* reached, it returns `null`. Otherwise, it adds the next date to the cache and returns it as a
|
2025
|
+
* `CalendarDate`.
|
2026
|
+
*/
|
2027
|
+
getNextRepeatStartDate(date) {
|
2028
|
+
const nextDate = this.getNextStartDate(date.year + this.interval);
|
2029
|
+
const nextCalendarDate = CalendarDate.from(nextDate);
|
2030
|
+
if ((this.until && nextDate > this.until.toDate()) ||
|
2031
|
+
(typeof this.count === 'number' && this.cache.length >= this.count)) {
|
2032
|
+
return null;
|
2033
|
+
}
|
2034
|
+
else {
|
2035
|
+
this.cache.push(nextCalendarDate);
|
2036
|
+
return nextCalendarDate;
|
2037
|
+
}
|
2038
|
+
}
|
2039
|
+
/**
|
2040
|
+
* get the new date with fixed month and fixed date, if the date.getDate() not equal the fixed date or fixed month, find the next year
|
2041
|
+
*
|
2042
|
+
* @param {number} year year
|
2043
|
+
* @returns {Date} the new date
|
2044
|
+
*/
|
2045
|
+
getNextStartDate(year) {
|
2046
|
+
const nextDate = new Date(year, this.matchMonth - 1, this.matchDay);
|
2047
|
+
if (nextDate.getDate() === this.matchDay && nextDate.getMonth() + 1 === this.matchMonth) {
|
2048
|
+
return nextDate;
|
2049
|
+
}
|
2050
|
+
else {
|
2051
|
+
return this.getNextStartDate(year + 1);
|
2052
|
+
}
|
2053
|
+
}
|
2054
|
+
/**
|
2055
|
+
* The function `initCache` initializes a cache array with the `startDate` value.
|
2056
|
+
*/
|
2057
|
+
initCache() {
|
2058
|
+
this.cache = [this.repeatStartDate];
|
2059
|
+
}
|
2060
|
+
}
|
2061
|
+
|
2062
|
+
/** This code snippet defines a TypeScript class `CalendarEventRepeatPatternFactory` that serves as a factory for creating different types of repeat patterns for calendar events. Here's a breakdown of what the class and its methods are doing: */
|
2063
|
+
class CalendarEventRepeatPatternFactory {
|
2064
|
+
/**
|
2065
|
+
* This `getPattern` method within the `CalendarEventRepeatPatternFactory` class is a public method that is responsible for creating and returning a specific type of repeat pattern for a calendar event based on the input parameters provided. Here's a breakdown of what this method is doing:
|
2066
|
+
*
|
2067
|
+
* @param {Date} startDate repeat start date
|
2068
|
+
* @param {VegaCalendarEventRepeatOptions|undefined} repeatOptions repeat options
|
2069
|
+
* @returns {CalendarEventBaseRepeatPattern} the match repeat pattern
|
2070
|
+
*/
|
2071
|
+
getPattern(startDate, repeatOptions) {
|
2072
|
+
const repeatStartDate = CalendarDate.from(startDate);
|
2073
|
+
const { frequency, interval = 1, byWeekDay, until, count, } = repeatOptions;
|
2074
|
+
const repeatEndDate = this.initDate(until);
|
2075
|
+
return this.initRepeatPattern(frequency, repeatStartDate, interval < 1 ? 1 : interval, count, repeatEndDate, byWeekDay);
|
2076
|
+
}
|
2077
|
+
/**
|
2078
|
+
* The `initDate` function initializes a `CalendarDate` object based on the input date string or Date object provided.
|
2079
|
+
*
|
2080
|
+
* @param {Nullable<string | Date>} date - The `date` parameter can be either a string or a Date object.
|
2081
|
+
* @returns {Nullable<CalendarDate>} The function `initDate` returns a `Nullable<CalendarDate>`, which means it can return either a `CalendarDate` object or `null`.
|
2082
|
+
*/
|
2083
|
+
initDate(date) {
|
2084
|
+
if (date && typeof date === 'object') {
|
2085
|
+
return CalendarDate.from(date);
|
2086
|
+
}
|
2087
|
+
else if (date && typeof date === 'string') {
|
2088
|
+
const [month, day, year] = date.split('/');
|
2089
|
+
return new CalendarDate(Number(year), Number(month), Number(day));
|
2090
|
+
}
|
2091
|
+
}
|
2092
|
+
/**
|
2093
|
+
* The function `initRepeatPattern` initializes a repeat pattern based on the frequency specified for a calendar event.
|
2094
|
+
*
|
2095
|
+
* @param {VegaCalendarEventRepeatType} frequency event frequency
|
2096
|
+
* @param {CalendarDate} repeatStartDate event start date
|
2097
|
+
* @param {number} interval event repeat interval
|
2098
|
+
* @param {Nullable<number>} count the event repeat count
|
2099
|
+
* @param {Nullable<CalendarDate>} repeatEndDate repeat end date
|
2100
|
+
* @param {Nullable<VegaCalendarWeekDayType[]>} byWeekDay weekly week days
|
2101
|
+
* @returns {CalendarEventBaseRepeatPattern} calendar event repeat pattern instance
|
2102
|
+
*/
|
2103
|
+
initRepeatPattern(frequency, repeatStartDate, interval, count, repeatEndDate, byWeekDay) {
|
2104
|
+
switch (frequency) {
|
2105
|
+
case 'daily':
|
2106
|
+
return new CalendarEventDailyRepeatPattern(repeatStartDate, interval, count, repeatEndDate);
|
2107
|
+
case 'weekly':
|
2108
|
+
return new CalendarEventWeeklyRepeatPattern(repeatStartDate, interval, count, repeatEndDate, byWeekDay);
|
2109
|
+
case 'monthly':
|
2110
|
+
return new CalendarEventMonthlyRepeatPattern(repeatStartDate, interval, count, repeatEndDate);
|
2111
|
+
default:
|
2112
|
+
return new CalendarEventYearlyRepeatPattern(repeatStartDate, interval, count, repeatEndDate);
|
2113
|
+
}
|
2114
|
+
}
|
2115
|
+
}
|
2116
|
+
const calendarEventRepeatPatternFactory = new CalendarEventRepeatPatternFactory();
|
2117
|
+
|
2118
|
+
const CalendarDateFormatReg = /^\d{1,2}\/\d{1,2}\/\d{4}/;
|
2119
|
+
const CalendarTimeFormatReg = /^\d{1,2}:\d{1,2}/;
|
2120
|
+
/** The `CalendarEvent` class in TypeScript represents a calendar event with methods to validate required fields, initialize dates and times, and determine if it is a group event. */
|
2121
|
+
class CalendarEvent {
|
2122
|
+
/**
|
2123
|
+
* The constructor initializes a VegaCalendarRawEvent object and performs validation checks on required fields.
|
2124
|
+
*
|
2125
|
+
* @param {VegaCalendarRawEvent} eventOptions - The `eventOptions` parameter in the constructor
|
2126
|
+
* represents the raw event data for a Vega calendar event. It contains information such as the event
|
2127
|
+
* title, start and end dates, location, description, and any other relevant details about the event.
|
2128
|
+
* @param {string} eventKey If a value is not provided for `eventKey`, a UUID (Universally
|
2129
|
+
* Unique Identifier) will be generated as a default value. This identifier is used to distinguish
|
2130
|
+
* different events and can be helpful for tracking
|
2131
|
+
*/
|
2132
|
+
constructor(eventOptions, eventKey) {
|
2133
|
+
// the default value is 1 when the event end date is same as start date
|
2134
|
+
this._eventSpansDays = 1;
|
2135
|
+
this.repeatPattern = null;
|
2136
|
+
this._event = eventOptions;
|
2137
|
+
this._eventKey = eventKey || generateUUID();
|
2138
|
+
this.checkEventRequireField(eventOptions);
|
2139
|
+
this.initDate(eventOptions);
|
2140
|
+
this.initEventSpansDays();
|
2141
|
+
this.initRepeatPattern();
|
2142
|
+
}
|
2143
|
+
/**
|
2144
|
+
* The function returns the raw event data for a VegaCalendar event.
|
2145
|
+
*
|
2146
|
+
* @returns {VegaCalendarRawEvent} The `get event()` method is returning a `VegaCalendarRawEvent` object, which is stored in the `_event` property.
|
2147
|
+
*/
|
2148
|
+
get event() {
|
2149
|
+
return this._event;
|
2150
|
+
}
|
2151
|
+
/**
|
2152
|
+
* This function returns the key of an event in TypeScript.
|
2153
|
+
*
|
2154
|
+
* @returns {string} event key
|
2155
|
+
*/
|
2156
|
+
get eventKey() {
|
2157
|
+
return this._eventKey;
|
2158
|
+
}
|
2159
|
+
/**
|
2160
|
+
* This function returns the title of an event in TypeScript.
|
2161
|
+
*
|
2162
|
+
* @returns {string} The title of the event.
|
2163
|
+
*/
|
2164
|
+
get title() {
|
2165
|
+
return this._event.title;
|
2166
|
+
}
|
2167
|
+
/**
|
2168
|
+
* This function returns the disabled of an event in TypeScript.
|
2169
|
+
*
|
2170
|
+
* @returns {boolean} The disabled of the event.
|
2171
|
+
*/
|
2172
|
+
get disabled() {
|
2173
|
+
return !!this._event.disabled;
|
2174
|
+
}
|
2175
|
+
/**
|
2176
|
+
* This function returns the variant of an event in TypeScript.
|
2177
|
+
*
|
2178
|
+
* @returns {VegaCalendarEventVariantType|null} The variant of the event.
|
2179
|
+
*/
|
2180
|
+
get variant() {
|
2181
|
+
return this._event.variant;
|
2182
|
+
}
|
2183
|
+
/**
|
2184
|
+
* This function returns the color of an event in TypeScript.
|
2185
|
+
*
|
2186
|
+
* @returns {string|null} The color of the event.
|
2187
|
+
*/
|
2188
|
+
get color() {
|
2189
|
+
return this._event.color;
|
2190
|
+
}
|
2191
|
+
/**
|
2192
|
+
* The function isAllDayEvent returns a boolean value indicating whether the event is an all-day event.
|
2193
|
+
*
|
2194
|
+
* @returns {boolean} The method `isAllDayEvent()` is returning a boolean value indicating whether the event is an all-day event or not. It returns `true` if the event is an all-day event, and `false` if it is not.
|
2195
|
+
*/
|
2196
|
+
get isAllDayEvent() {
|
2197
|
+
return !!this._event.isAllDay;
|
2198
|
+
}
|
2199
|
+
/**
|
2200
|
+
* The function isRepeatEvent returns a boolean value based on whether the event's repeatOptions property is not equal to 'none'.
|
2201
|
+
*
|
2202
|
+
* @returns {boolean} The method `isRepeatEvent` returns a boolean value indicating whether the `_event` has a repeat value other than 'none'.
|
2203
|
+
*/
|
2204
|
+
get isRepeatEvent() {
|
2205
|
+
return this.repeatPattern !== null;
|
2206
|
+
}
|
2207
|
+
/**
|
2208
|
+
* The function returns the start date property of an object.
|
2209
|
+
*
|
2210
|
+
* @returns {Date} The `startDate` property of type `Date` is being returned.
|
2211
|
+
*/
|
2212
|
+
get startDate() {
|
2213
|
+
return this._startDate;
|
2214
|
+
}
|
2215
|
+
/**
|
2216
|
+
* The function returns the end date property of an object.
|
2217
|
+
*
|
2218
|
+
* @returns {Date} The `endDate` property of type `Date` is being returned.
|
2219
|
+
*/
|
2220
|
+
get endDate() {
|
2221
|
+
return this._endDate;
|
2222
|
+
}
|
2223
|
+
/**
|
2224
|
+
* This function returns the start time as a string.
|
2225
|
+
*
|
2226
|
+
* @returns {string} The `_startTime` property, which is a string, is being returned.
|
2227
|
+
*/
|
2228
|
+
get startTime() {
|
2229
|
+
return this._startTime;
|
2230
|
+
}
|
2231
|
+
/**
|
2232
|
+
* This function returns the end time as a string.
|
2233
|
+
*
|
2234
|
+
* @returns {string} The `_endTime` property, which is a string, is being returned.
|
2235
|
+
*/
|
2236
|
+
get endTime() {
|
2237
|
+
return this._endTime;
|
2238
|
+
}
|
2239
|
+
/**
|
2240
|
+
* This function returns the number of days that an event spans.
|
2241
|
+
*
|
2242
|
+
* @returns {number} The method `get eventSpansDays()` is returning the value of the property
|
2243
|
+
* `_eventSpansDays`, which is of type `number`.
|
2244
|
+
*/
|
2245
|
+
get eventSpansDays() {
|
2246
|
+
return this._eventSpansDays;
|
2247
|
+
}
|
2248
|
+
/**
|
2249
|
+
* The function `copyTo` copies a calendar event with updated start and end dates.
|
2250
|
+
*
|
2251
|
+
* @param {string} eventKey - The `eventKey` parameter in the `copyTo` function is a string that represents the key or identifier of the new calendar event that will be created.
|
2252
|
+
* @param {CalendarDate} startDate - The `startDate` parameter in the `copyTo` function represents
|
2253
|
+
* the starting date of a calendar event. It is of type `CalendarDate`, which may contain information such as the day, month, and year of the event.
|
2254
|
+
* @returns {CalendarEvent} A new `CalendarEvent` object is being returned with the properties from the original
|
2255
|
+
* `_event` object (excluding `repeatOptions`) and the `startDate` and `endDate` properties set to
|
2256
|
+
* the `toDate()` values of the `startDate` and `endDate` parameters.
|
2257
|
+
*/
|
2258
|
+
copyTo(eventKey, startDate) {
|
2259
|
+
const endDate = this._eventSpansDays > 1
|
2260
|
+
? new Date(startDate.year, startDate.month - 1, startDate.date + (this._eventSpansDays - 1))
|
2261
|
+
: startDate.toDate();
|
2262
|
+
const result = new CalendarEvent(Object.assign(Object.assign({}, this._event), { startDate: startDate.toDate(), endDate: endDate, startTime: this.startTime, endTime: this.endTime }), eventKey);
|
2263
|
+
return result;
|
2264
|
+
}
|
2265
|
+
/**
|
2266
|
+
* Check the event is a group event or not
|
2267
|
+
*
|
2268
|
+
* @returns {boolean} true or false
|
2269
|
+
*/
|
2270
|
+
isGroupEvent() {
|
2271
|
+
return this._eventSpansDays > 1;
|
2272
|
+
}
|
2273
|
+
/**
|
2274
|
+
* This TypeScript function checks if a given date falls within the range of a calendar event based on its start and end dates, considering different repeat types like daily, weekly, monthly, and yearly.
|
2275
|
+
*
|
2276
|
+
* @param {CalendarDate} date - The `date` parameter represents the current date for which you want to
|
2277
|
+
* check if it falls within the range of the `calendarEvent`. It is of type `CalendarDate`.
|
2278
|
+
* @returns {boolean} a boolean value, either `true` or `false`, based on whether the `calendarEvent` falls on the `date` provided.
|
2279
|
+
*/
|
2280
|
+
isCurrentDayEvent(date) {
|
2281
|
+
const { startDate, endDate } = this;
|
2282
|
+
const startCalendarDate = CalendarDate.from(startDate);
|
2283
|
+
const endCalendarDate = CalendarDate.from(new Date(endDate.getFullYear(), endDate.getMonth(), endDate.getDate() + 1));
|
2284
|
+
const currentDate = date.toDate();
|
2285
|
+
return startCalendarDate.toDate() <= currentDate && endCalendarDate.toDate() > currentDate;
|
2286
|
+
}
|
2287
|
+
/**
|
2288
|
+
* Get the number of minutes the event lasted
|
2289
|
+
*
|
2290
|
+
* @returns {number} the minutes
|
2291
|
+
*/
|
2292
|
+
getEventDuration() {
|
2293
|
+
const [startHour, startMinutes] = this.startTime.split(':');
|
2294
|
+
const [endHour, endMinutes] = this.endTime.split(':');
|
2295
|
+
const now = CalendarDate.from(new Date());
|
2296
|
+
const startDate = new Date(now.year, now.month, now.date, Number(startHour), Number(startMinutes));
|
2297
|
+
const endDate = new Date(now.year, now.month, now.date, Number(endHour) === 0 && Number(startHour) !== 0 ? 24 : Number(endHour), Number(endMinutes));
|
2298
|
+
return (endDate.valueOf() - startDate.valueOf()) / (60 * 1000);
|
2299
|
+
}
|
2300
|
+
/**
|
2301
|
+
* This function returns an array of repeat series based on a given calendar period.
|
2302
|
+
*
|
2303
|
+
* @param {CalendarPeriod} period - The `period` parameter in the `getRepeatSeries` method is of type
|
2304
|
+
* `CalendarPeriod`. It represents a specific time period within a calendar, typically defined by a
|
2305
|
+
* start date and an end date. The method uses this period to generate a series of repeated events
|
2306
|
+
* based on a daily repeat pattern specified
|
2307
|
+
* @returns {CalendarDate[]} repeat start date array
|
2308
|
+
*/
|
2309
|
+
getRepeatSeries(period) {
|
2310
|
+
if (this.repeatPattern) {
|
2311
|
+
return this.repeatPattern.getRepeatSeries(period, this._eventSpansDays);
|
2312
|
+
}
|
2313
|
+
return [];
|
2314
|
+
}
|
2315
|
+
/**
|
2316
|
+
* The function `convertTimeTo24Hour` converts a time string from 12-hour format to 24-hour format in TypeScript.
|
2317
|
+
*
|
2318
|
+
* @param {string} timeString - The `convertTimeTo24Hour` function you provided is used to convert a
|
2319
|
+
* time string from 12-hour format to 24-hour format. The function checks if the input time string is
|
2320
|
+
* in 12-hour format and contains either 'am' or 'pm'.
|
2321
|
+
* @returns {string} The `convertTimeTo24Hour` function returns a string representing the input time string
|
2322
|
+
* converted to 24-hour format. If the input time string is in 12-hour format and contains 'am' or
|
2323
|
+
* 'pm', it converts it to 24-hour format. If the input time string is not in 12-hour format or does
|
2324
|
+
* not contain 'am' or 'pm', it returns the original input
|
2325
|
+
*/
|
2326
|
+
convertTimeTo24Hour(timeString) {
|
2327
|
+
timeString = timeString.toLocaleLowerCase();
|
2328
|
+
if (timeString.indexOf('am') > 0 || timeString.indexOf('pm') > 0) {
|
2329
|
+
if (timeString.indexOf('am') > 0) {
|
2330
|
+
timeString = timeString.replace('am', '').trim();
|
2331
|
+
const [hour, minutes] = timeString.split(':');
|
2332
|
+
return `${hour === '12' ? '00' : hour}:${minutes}`;
|
2333
|
+
}
|
2334
|
+
else {
|
2335
|
+
timeString = timeString.replace('pm', '').trim();
|
2336
|
+
const [hour, minutes] = timeString.split(':');
|
2337
|
+
return `${hour === '12' ? '12' : Number(hour) + 12}:${minutes}`;
|
2338
|
+
}
|
2339
|
+
}
|
2340
|
+
return timeString;
|
2341
|
+
}
|
2342
|
+
/**
|
2343
|
+
* The function `checkEventRequireField` validates the required fields of a calendar event item in TypeScript.
|
2344
|
+
*
|
2345
|
+
* @param {VegaCalendarRawEvent} eventOptions - The `eventOptions` parameter is an object of type
|
2346
|
+
* `VegaCalendarRawEvent` that contains information about a calendar event
|
2347
|
+
*/
|
2348
|
+
checkEventRequireField(eventOptions) {
|
2349
|
+
const { title, startDate, endDate, startTime, endTime } = eventOptions;
|
2350
|
+
if ((startDate && typeof startDate === 'string' && !CalendarDateFormatReg.test(startDate)) ||
|
2351
|
+
(endDate && typeof endDate === 'string' && !CalendarDateFormatReg.test(endDate))) {
|
2352
|
+
throw new Error('Invalid calendar event item, the date format should be MM/DD/YYYY!');
|
2353
|
+
}
|
2354
|
+
if ((startTime && typeof startTime === 'string' && !CalendarTimeFormatReg.test(startTime)) ||
|
2355
|
+
(endTime && typeof endTime === 'string' && !CalendarTimeFormatReg.test(endTime))) {
|
2356
|
+
throw new Error('Invalid calendar event item, the time format should be HH:mm!');
|
2357
|
+
}
|
2358
|
+
if (!title || !startDate || (!endDate && !endTime)) {
|
2359
|
+
throw new Error('Invalid calendar event item, the required field should not empty!');
|
2360
|
+
}
|
2361
|
+
}
|
2362
|
+
/**
|
2363
|
+
* The `initDate` function in TypeScript initializes start and end dates and times for a calendar event based on the provided options.
|
2364
|
+
*
|
2365
|
+
* @param {VegaCalendarRawEvent} eventOptions - The `initDate` method you provided is used to
|
2366
|
+
* initialize the start and end dates for a calendar event based on the options provided in the
|
2367
|
+
* `eventOptions` object. The `eventOptions` object contains properties such as `startDate`,
|
2368
|
+
* `startTime`, `endDate`, and `endTime` which are used
|
2369
|
+
*/
|
2370
|
+
initDate(eventOptions) {
|
2371
|
+
const { startDate, startTime, endDate, endTime } = eventOptions;
|
2372
|
+
if (startDate && typeof startDate === 'object') {
|
2373
|
+
this._startDate = startDate;
|
2374
|
+
}
|
2375
|
+
else if (startDate && typeof startDate === 'string') {
|
2376
|
+
const [month, day, year] = startDate.split('/');
|
2377
|
+
this._startDate = new Date(Number(year), Number(month) - 1, Number(day));
|
2378
|
+
}
|
2379
|
+
if (!startTime) {
|
2380
|
+
this._startTime = `${this._startDate.getHours()}:${this._startDate.getMinutes()}`;
|
2381
|
+
}
|
2382
|
+
else {
|
2383
|
+
this._startTime = this.convertTimeTo24Hour(startTime);
|
2384
|
+
}
|
2385
|
+
if (endDate && typeof endDate === 'object') {
|
2386
|
+
this._endDate = endDate;
|
2387
|
+
}
|
2388
|
+
else if (endDate && typeof endDate === 'string') {
|
2389
|
+
const [month, day, year] = endDate.split('/');
|
2390
|
+
this._endDate = new Date(Number(year), Number(month) - 1, Number(day), 23, 59, 59);
|
2391
|
+
}
|
2392
|
+
else {
|
2393
|
+
this._endDate = new Date(this._startDate.getFullYear(), this._startDate.getMonth(), this._startDate.getDate(), 23, 59, 59);
|
2394
|
+
}
|
2395
|
+
if (!endTime) {
|
2396
|
+
this._endTime = `${this._endDate.getHours()}:${this._endDate.getMinutes()}`;
|
2397
|
+
}
|
2398
|
+
else {
|
2399
|
+
this._endTime = this.convertTimeTo24Hour(endTime);
|
2400
|
+
}
|
2401
|
+
}
|
2402
|
+
/**
|
2403
|
+
* The function initializes a repeat pattern controller for a calendar event with specified start and end dates and repeat options.
|
2404
|
+
*/
|
2405
|
+
initRepeatPattern() {
|
2406
|
+
if (this._event.repeatOptions && this._event.repeatOptions.frequency) {
|
2407
|
+
this.repeatPattern = calendarEventRepeatPatternFactory.getPattern(this._startDate, this._event.repeatOptions);
|
2408
|
+
}
|
2409
|
+
}
|
2410
|
+
/**
|
2411
|
+
* Initializes the event cross days by the event start date and end date.
|
2412
|
+
*/
|
2413
|
+
initEventSpansDays() {
|
2414
|
+
const start = CalendarDate.from(this.startDate);
|
2415
|
+
const end = CalendarDate.from(this.endDate);
|
2416
|
+
this._eventSpansDays =
|
2417
|
+
(end.toDate().valueOf() - start.toDate().valueOf()) / (24 * 60 * 60 * 1000) + 1;
|
2418
|
+
}
|
2419
|
+
}
|
2420
|
+
|
2421
|
+
var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
2422
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
2423
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
2424
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
2425
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
2426
|
+
};
|
2427
|
+
/** The `VegaCalendarEventController` class in TypeScript manages calendar events, initializes event layouts, retrieves events for the current date, and checks if a date falls within the range of a calendar event. */
|
2428
|
+
class VegaCalendarEventController extends VegaSlimmer {
|
2429
|
+
constructor() {
|
2430
|
+
super(...arguments);
|
2431
|
+
// This map is cache for newly generated calendar events
|
2432
|
+
this.repeatEventMap = new Map();
|
2433
|
+
}
|
2434
|
+
/**
|
2435
|
+
* The function `getCurrentDateEvent` returns an array of calendar events for the current date, including both normal events and group events.
|
2436
|
+
*
|
2437
|
+
* @param {CalendarDate} date - The `date` parameter in the `getCurrentDateEvent` function is of type `CalendarDate`, which is used to represent a specific date with properties for year, month, and date.
|
2438
|
+
* @returns {CalendarEvent[]} The `getCurrentDateEvent` function returns an array of `CalendarEvent` objects. It
|
2439
|
+
* first retrieves all group events and normal events for the specified date, then filters out the
|
2440
|
+
* events that are specific to the current day. Finally, it concatenates the current day events with
|
2441
|
+
* the group events and returns the combined array.
|
2442
|
+
*/
|
2443
|
+
getCurrentDateEvents(date) {
|
2444
|
+
const allEvents = this.createRepeatEvents();
|
2445
|
+
return allEvents.filter((item) => item.isCurrentDayEvent(date));
|
2446
|
+
}
|
2447
|
+
/**
|
2448
|
+
* initial calendar events when component props events change
|
2449
|
+
*
|
2450
|
+
* @param {VegaCalendarRawEvent[]} newEvents new event options array
|
2451
|
+
*/
|
2452
|
+
updateAfterEventChange(newEvents) {
|
2453
|
+
this.initCalendarEvents(newEvents);
|
2454
|
+
this.repeatEventMap.clear();
|
2455
|
+
}
|
2456
|
+
/**
|
2457
|
+
* initial calendar events in first time
|
2458
|
+
*/
|
2459
|
+
updateWhenComponentWillLoad() {
|
2460
|
+
this.initCalendarEvents(this.events);
|
2461
|
+
}
|
2462
|
+
/**
|
2463
|
+
* initial calendar events
|
2464
|
+
*
|
2465
|
+
* @param {VegaCalendarRawEvent[]} newEvents new event options array
|
2466
|
+
*/
|
2467
|
+
initCalendarEvents(newEvents) {
|
2468
|
+
const result = [];
|
2469
|
+
if (newEvents) {
|
2470
|
+
newEvents.forEach((item) => {
|
2471
|
+
try {
|
2472
|
+
const calendarEvent = new CalendarEvent(item);
|
2473
|
+
result.push(calendarEvent);
|
2474
|
+
}
|
2475
|
+
catch (_a) {
|
2476
|
+
LogUtility.warn('Invalid calendar event item:', item);
|
2477
|
+
}
|
2478
|
+
});
|
2479
|
+
}
|
2480
|
+
this.calendarEvents = result;
|
2481
|
+
}
|
2482
|
+
/**
|
2483
|
+
* We need generate new calendar event from the full-day repeat calendar event, so we can render those event as normal full-day event
|
2484
|
+
*
|
2485
|
+
* @returns {CalendarEvent[]} The `handleRepeatEvents` method returns an array of `CalendarEvent` objects.
|
2486
|
+
*/
|
2487
|
+
createRepeatEvents() {
|
2488
|
+
const allEvents = this.calendarEvents;
|
2489
|
+
const otherEvents = [];
|
2490
|
+
const newRepeatEvents = [];
|
2491
|
+
allEvents.forEach((item) => {
|
2492
|
+
if (item.isRepeatEvent) {
|
2493
|
+
const repeatSeries = item.getRepeatSeries(this.currentPeriod);
|
2494
|
+
repeatSeries.forEach((series) => {
|
2495
|
+
newRepeatEvents.push(this.generateCalendarEventByRepeatSeries(item, series));
|
2496
|
+
});
|
2497
|
+
}
|
2498
|
+
else {
|
2499
|
+
otherEvents.push(item);
|
2500
|
+
}
|
2501
|
+
});
|
2502
|
+
return newRepeatEvents.concat(otherEvents);
|
2503
|
+
}
|
2504
|
+
/**
|
2505
|
+
* This function generates a calendar event based on a repeat series and stores it in a map to avoid duplicate creation.
|
2506
|
+
*
|
2507
|
+
* @param {CalendarEvent} calendarEvent - The `calendarEvent` parameter represents a single event on
|
2508
|
+
* a calendar. It contains information such as the event's start date, end date, and other details.
|
2509
|
+
* @param {CalendarDate} series - The repeat start date
|
2510
|
+
* @returns {CalendarEvent} The function `generateCalendarEventByRepeatSeries` returns a `CalendarEvent` object. If
|
2511
|
+
* the event key already exists in the `repeatEventMap`, it returns the corresponding `CalendarEvent`
|
2512
|
+
* object from the map. Otherwise, it creates a new `CalendarEvent` object based on the input
|
2513
|
+
* `calendarEvent` and `series` parameters, adds it to the `repeatEventMap`, and then
|
2514
|
+
*/
|
2515
|
+
generateCalendarEventByRepeatSeries(calendarEvent, series) {
|
2516
|
+
const eventKey = `${calendarEvent.eventKey}-${series.year}${series.month}${series.date}`;
|
2517
|
+
if (this.repeatEventMap.has(eventKey)) {
|
2518
|
+
return this.repeatEventMap.get(eventKey);
|
2519
|
+
}
|
2520
|
+
else {
|
2521
|
+
const result = calendarEvent.copyTo(eventKey, series);
|
2522
|
+
this.repeatEventMap.set(eventKey, result);
|
2523
|
+
return result;
|
2524
|
+
}
|
2525
|
+
}
|
2526
|
+
}
|
2527
|
+
__decorate$f([
|
2528
|
+
MapToComponentField({ writable: true })
|
2529
|
+
], VegaCalendarEventController.prototype, "calendarEvents", void 0);
|
2530
|
+
__decorate$f([
|
2531
|
+
MapToComponentField()
|
2532
|
+
], VegaCalendarEventController.prototype, "currentPeriod", void 0);
|
2533
|
+
__decorate$f([
|
2534
|
+
MapToComponentField()
|
2535
|
+
], VegaCalendarEventController.prototype, "events", void 0);
|
2536
|
+
__decorate$f([
|
2537
|
+
MapToComponentMethod('watchEventsChange')
|
2538
|
+
], VegaCalendarEventController.prototype, "updateAfterEventChange", null);
|
2539
|
+
__decorate$f([
|
2540
|
+
MapToComponentMethod('componentWillLoad')
|
2541
|
+
], VegaCalendarEventController.prototype, "updateWhenComponentWillLoad", null);
|
2542
|
+
|
2543
|
+
var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
2544
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
2545
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
2546
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
2547
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
2548
|
+
};
|
2549
|
+
/** The `VegaCalendarEventItemRenderer` class in TypeScript React is used for rendering calendar event items with specific layout and styling properties. */
|
2550
|
+
class VegaCalendarEventItemRenderer extends VegaSlimmer {
|
2551
|
+
/**
|
2552
|
+
* render event component
|
2553
|
+
*
|
2554
|
+
* @param {CalendarEvent} item the calendar event object
|
2555
|
+
* @param {Record<string,boolean>} classMap the class name map
|
2556
|
+
* @returns {HTMLVegaCalendarEventElement} calendar event element
|
2557
|
+
*/
|
2558
|
+
render(item, classMap) {
|
2559
|
+
return (h("vega-calendar-event", { "data-calendar-ref": this.host, key: item.eventKey, calendarEvent: item, class: classMap, onKeyDown: createEnterKeyHandlerToTriggerClick(),
|
2560
|
+
// eslint-disable-next-line react/jsx-no-bind
|
2561
|
+
onClick: () => this.handleEventClick(item) }, !item.isRepeatEvent && h("slot", { name: getCalendarEventSlotName(item.event.key) })));
|
2562
|
+
}
|
2563
|
+
/**
|
2564
|
+
* emit vega click event
|
2565
|
+
*
|
2566
|
+
* @param {CalendarEvent} eventItem the event item
|
2567
|
+
*/
|
2568
|
+
handleEventClick(eventItem) {
|
2569
|
+
this.eventClickEmitter.emit({ rawEvent: eventItem.event });
|
2570
|
+
}
|
2571
|
+
}
|
2572
|
+
VegaCalendarEventItemRenderer.backgroundColorModeEventHeight = 18;
|
2573
|
+
__decorate$e([
|
2574
|
+
MapToComponentField()
|
2575
|
+
], VegaCalendarEventItemRenderer.prototype, "host", void 0);
|
2576
|
+
__decorate$e([
|
2577
|
+
MapToComponentField()
|
2578
|
+
], VegaCalendarEventItemRenderer.prototype, "calendarView", void 0);
|
2579
|
+
__decorate$e([
|
2580
|
+
MapToComponentField()
|
2581
|
+
], VegaCalendarEventItemRenderer.prototype, "eventClickEmitter", void 0);
|
2582
|
+
|
2583
|
+
var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
2584
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
2585
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
2586
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
2587
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
2588
|
+
};
|
2589
|
+
/** The `VegaCalendarEventResponsiveController` class extends `PageResizeObserverSlimmer` and updates the max display count of month events with debounce in a VegaCalendar component. */
|
2590
|
+
class VegaCalendarEventResponsiveController extends PageResizeObserverSlimmer {
|
2591
|
+
/**
|
2592
|
+
* update the event view when the calendar layout update
|
2593
|
+
*/
|
2594
|
+
constructor() {
|
2595
|
+
super({
|
2596
|
+
// eslint-disable-next-line jsdoc/require-jsdoc
|
2597
|
+
target: /* istanbul ignore next */ () => this.host,
|
2598
|
+
// eslint-disable-next-line jsdoc/require-jsdoc
|
2599
|
+
callback: /* istanbul ignore next */ () => this.updateMaxDisplayCountWithDebounce(),
|
2600
|
+
});
|
2601
|
+
this.updateMaxDisplayCountWithDebounce = debounce(this.updateMaxDisplayCount, 500, this);
|
2602
|
+
}
|
2603
|
+
/**
|
2604
|
+
* Update the month event display items.
|
2605
|
+
*/
|
2606
|
+
updateMaxDisplayCount() {
|
2607
|
+
// The debounce method will case this method called after component disconnect, then the slimmer will get issue to get viewMode from component class, this issue will catch in spec.ts
|
2608
|
+
try {
|
2609
|
+
const eventContainerRef = this.monthEventRenderer.getMonthEventContainerRef();
|
2610
|
+
if (this.viewMode === 'month' && eventContainerRef) {
|
2611
|
+
const maxContainerHeight = eventContainerRef.parentElement.getBoundingClientRect().height;
|
2612
|
+
const count = Math.floor((maxContainerHeight - VegaCalendarEventResponsiveController.monthDateTitleHeight) /
|
2613
|
+
VegaCalendarEventItemRenderer.backgroundColorModeEventHeight);
|
2614
|
+
ChangeManager.notify(domNodeSubjectFactory.getSubject(this.host, VegaInternalCalendarMonthEventsChange), {
|
2615
|
+
host: this.host,
|
2616
|
+
detail: count,
|
2617
|
+
});
|
2618
|
+
}
|
2619
|
+
// eslint-disable-next-line no-empty
|
2620
|
+
}
|
2621
|
+
catch (_a) { }
|
2622
|
+
}
|
2623
|
+
/**
|
2624
|
+
* update the max display count when switch view mode
|
2625
|
+
*
|
2626
|
+
* @param {VegaCalendarViewModeType} viewMode new view mode value
|
2627
|
+
*/
|
2628
|
+
updateMaxDisplayCountAfterSwitchToMonthView(viewMode) {
|
2629
|
+
if (viewMode === 'month') {
|
2630
|
+
this.updateMaxDisplayCountWithDebounce();
|
2631
|
+
}
|
2632
|
+
}
|
2633
|
+
}
|
2634
|
+
VegaCalendarEventResponsiveController.monthDateTitleHeight = 26;
|
2635
|
+
__decorate$d([
|
2636
|
+
MapToComponentField()
|
2637
|
+
], VegaCalendarEventResponsiveController.prototype, "host", void 0);
|
2638
|
+
__decorate$d([
|
2639
|
+
MapToComponentField()
|
2640
|
+
], VegaCalendarEventResponsiveController.prototype, "monthEventRenderer", void 0);
|
2641
|
+
__decorate$d([
|
2642
|
+
MapToComponentField()
|
2643
|
+
], VegaCalendarEventResponsiveController.prototype, "viewMode", void 0);
|
2644
|
+
__decorate$d([
|
2645
|
+
MapToComponentMethod('componentDidLoad')
|
2646
|
+
], VegaCalendarEventResponsiveController.prototype, "updateMaxDisplayCount", null);
|
2647
|
+
__decorate$d([
|
2648
|
+
MapToComponentMethod('watchViewModeChange')
|
2649
|
+
], VegaCalendarEventResponsiveController.prototype, "updateMaxDisplayCountAfterSwitchToMonthView", null);
|
2650
|
+
|
2651
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
2652
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
2653
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
2654
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
2655
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
2656
|
+
};
|
2657
|
+
/** renders all-day events in a calendar view, with options to display a limited number of events and show a "more" button for additional events. */
|
2658
|
+
class VegaCalendarFullDayEventRenderer extends VegaSlimmer {
|
2659
|
+
/**
|
2660
|
+
* render current preiod all day events
|
2661
|
+
*
|
2662
|
+
* @returns {HTMLElement} event element
|
2663
|
+
*/
|
2664
|
+
render() {
|
2665
|
+
const viewSource = this.calendarView.dateItems[0];
|
2666
|
+
const events = viewSource.map((calendarDate) => {
|
2667
|
+
return this.calendarEventController
|
2668
|
+
.getCurrentDateEvents(calendarDate)
|
2669
|
+
.filter((eventItem) => eventItem.isAllDayEvent || eventItem.isGroupEvent());
|
2670
|
+
});
|
2671
|
+
const orderEvents = this.fullDayEventLayoutRenderer.sortLongEvents(events);
|
2672
|
+
const displayEvents = this.filterDisplayEvents(orderEvents);
|
2673
|
+
return (h("div", { class: "calendar-view-event-all" }, viewSource.map((item, index) => (h("div", { class: "event-all-col border-divider-left", key: item.date }, this.renderCurrentFullDayEvents(displayEvents[index], index, orderEvents[index]))))));
|
2674
|
+
}
|
2675
|
+
/**
|
2676
|
+
* render current date all day events
|
2677
|
+
*
|
2678
|
+
* @param {Nullable<CalendarEvent>[]} events displayed calendar events
|
2679
|
+
* @param {number} currentViewIndex the current date index of the array
|
2680
|
+
* @param {Nullable<CalendarEvent>[]} allEvents all calendar events
|
2681
|
+
* @returns {HTMLVegaCalendarEventElement[]} event component array
|
2682
|
+
*/
|
2683
|
+
renderCurrentFullDayEvents(events, currentViewIndex, allEvents) {
|
2684
|
+
const height = events.length * VegaCalendarEventItemRenderer.backgroundColorModeEventHeight - 2;
|
2685
|
+
const hideEventsLength = allEvents.slice(events.length).filter(Boolean).length;
|
2686
|
+
return (h(Fragment, null,
|
2687
|
+
h("div", { class: "placeholder-block", style: { height: height + 'px' } },
|
2688
|
+
h("span", null,
|
2689
|
+
events.length,
|
2690
|
+
" events")),
|
2691
|
+
this.fullDayEventLayoutRenderer.render(events, currentViewIndex),
|
2692
|
+
hideEventsLength > 0 && this.dayViewFullDayEventMoreButtonRenderer.render(hideEventsLength)));
|
2693
|
+
}
|
2694
|
+
/**
|
2695
|
+
* Get the display events base on the show all events flag
|
2696
|
+
*
|
2697
|
+
* @param {Nullable<CalendarEvent>[][]} rowEvents row events array
|
2698
|
+
* @returns {Nullable<CalendarEvent>[][]} the part of the events or the whole events
|
2699
|
+
*/
|
2700
|
+
filterDisplayEvents(rowEvents) {
|
2701
|
+
if (!this.showAllEventsInDayOrWeekView) {
|
2702
|
+
const result = [];
|
2703
|
+
const maxLength = VegaCalendarFullDayEventRenderer.maxDisplayEventLength;
|
2704
|
+
rowEvents.forEach((events) => {
|
2705
|
+
const displayEvents = events.length > maxLength ? events.slice(0, maxLength) : events;
|
2706
|
+
result.push(displayEvents);
|
2707
|
+
});
|
2708
|
+
return result;
|
2709
|
+
}
|
2710
|
+
else {
|
2711
|
+
return rowEvents;
|
2712
|
+
}
|
2713
|
+
}
|
2714
|
+
}
|
2715
|
+
VegaCalendarFullDayEventRenderer.maxDisplayEventLength = 2;
|
2716
|
+
__decorate$c([
|
2717
|
+
MapToComponentField()
|
2718
|
+
], VegaCalendarFullDayEventRenderer.prototype, "calendarView", void 0);
|
2719
|
+
__decorate$c([
|
2720
|
+
MapToComponentField()
|
2721
|
+
], VegaCalendarFullDayEventRenderer.prototype, "calendarEventController", void 0);
|
2722
|
+
__decorate$c([
|
2723
|
+
MapToComponentField()
|
2724
|
+
], VegaCalendarFullDayEventRenderer.prototype, "eventItemRenderer", void 0);
|
2725
|
+
__decorate$c([
|
2726
|
+
MapToComponentField()
|
2727
|
+
], VegaCalendarFullDayEventRenderer.prototype, "fullDayEventLayoutRenderer", void 0);
|
2728
|
+
__decorate$c([
|
2729
|
+
MapToComponentField()
|
2730
|
+
], VegaCalendarFullDayEventRenderer.prototype, "showAllEventsInDayOrWeekView", void 0);
|
2731
|
+
__decorate$c([
|
2732
|
+
MapToComponentField()
|
2733
|
+
], VegaCalendarFullDayEventRenderer.prototype, "dayViewFullDayEventMoreButtonRenderer", void 0);
|
2734
|
+
|
2735
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
2736
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
2737
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
2738
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
2739
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
2740
|
+
};
|
2741
|
+
/** The `VegaCalendarDayViewEventLayoutRenderer` class in TypeScript React renders event layouts for a day view calendar. */
|
2742
|
+
class VegaCalendarDayViewEventLayoutRenderer extends VegaSlimmer {
|
2743
|
+
/**
|
2744
|
+
* The `render` function in TypeScript React renders a layout of calendar events for a day view.
|
2745
|
+
*
|
2746
|
+
* @param {VegaCalendarDayViewTimedEventLayout} layout - The `layout` parameter in the `render` function is
|
2747
|
+
* of type `VegaCalendarDayViewTimedEventLayout`, which contains information about the layout of events for
|
2748
|
+
* a day view in a calendar. It has properties like `eventLayoutColumns`, which is an array of `VegaCalendarDayViewEvent
|
2749
|
+
* @returns {HTMLElement[]} An array of HTMLElements representing the rendered event nodes based on the provided layout and event data.
|
2750
|
+
*/
|
2751
|
+
render(layout) {
|
2752
|
+
const layoutColumns = layout.eventLayoutCells;
|
2753
|
+
const eventNodes = [];
|
2754
|
+
layoutColumns.forEach((columns, index) => {
|
2755
|
+
let renderEvent = columns.getEventBySlotIndex(0);
|
2756
|
+
let start = 0;
|
2757
|
+
for (let i = 0; i < VegaCalendarDayViewEventLayoutRenderer.totalNumberOfCells; i++) {
|
2758
|
+
const currentEvent = columns.getEventBySlotIndex(i);
|
2759
|
+
if (currentEvent !== renderEvent) {
|
2760
|
+
if (renderEvent) {
|
2761
|
+
eventNodes.push(h("div", { key: index, class: "time-event-block", style: this.getTimeEventStyle(start, i, index, layout.getEventColumnsSpannedCount(renderEvent)) }, this.eventItemRenderer.render(renderEvent, {
|
2762
|
+
'day-event': true,
|
2763
|
+
'bg-shadow': index > 0,
|
2764
|
+
})));
|
2765
|
+
}
|
2766
|
+
renderEvent = currentEvent;
|
2767
|
+
start = i;
|
2768
|
+
}
|
2769
|
+
}
|
2770
|
+
});
|
2771
|
+
return eventNodes;
|
2772
|
+
}
|
2773
|
+
/*
|
2774
|
+
* The below method is e2e-test covered in
|
2775
|
+
* @see{module:vega-calendar-render-timed-event-correct}
|
2776
|
+
*/
|
2777
|
+
/* istanbul ignore next */
|
2778
|
+
/**
|
2779
|
+
* This function calculates and returns the style properties for positioning and sizing a calendar event within a grid layout.
|
2780
|
+
*
|
2781
|
+
* @param {number} startIndex - The `startIndex` parameter represents the index of the starting cell for the time event in the calendar grid.
|
2782
|
+
* @param {number} endIndex - The `endIndex` parameter represents the index of the end position of the time event within a column. It indicates where the time event ends vertically within the column layout.
|
2783
|
+
* @param {number} columnIndex - The `columnIndex` parameter represents the index of the column in which the event is being displayed. It is used to calculate the `left` position of the event element within the container based on the total number of columns spanned by the event.
|
2784
|
+
* @param {number} columnsSpannedCount - The `columnsSpannedCount` parameter represents the number of columns spanned by the event in a calendar layout. It is used to calculate the left position of the event within the calendar grid.
|
2785
|
+
* @returns {VegaCalendarEventStyle} The function `getTimeEventStyle` returns an object of type `VegaCalendarEventStyle` with properties for position, left, top, width, height, and zIndex.
|
2786
|
+
*/
|
2787
|
+
getTimeEventStyle(startIndex, endIndex, columnIndex, columnsSpannedCount) {
|
2788
|
+
const left = columnIndex * (1 / columnsSpannedCount);
|
2789
|
+
return {
|
2790
|
+
position: 'absolute',
|
2791
|
+
left: `${left * 100}%`,
|
2792
|
+
top: `${(100 / VegaCalendarDayViewEventLayoutRenderer.totalNumberOfCells) * startIndex}%`,
|
2793
|
+
width: `calc(100% - ${left * 100}%)`,
|
2794
|
+
height: `${(100 / VegaCalendarDayViewEventLayoutRenderer.totalNumberOfCells) * (endIndex - startIndex)}%`,
|
2795
|
+
zIndex: columnIndex > 0 ? `${columnIndex}` : null,
|
2796
|
+
};
|
2797
|
+
}
|
2798
|
+
}
|
2799
|
+
VegaCalendarDayViewEventLayoutRenderer.totalNumberOfCells = 24 * 4;
|
2800
|
+
__decorate$b([
|
2801
|
+
MapToComponentField()
|
2802
|
+
], VegaCalendarDayViewEventLayoutRenderer.prototype, "eventItemRenderer", void 0);
|
2803
|
+
|
2804
|
+
/** This code snippet is defining an abstract class named `VegaCalendarBaseEventLayoutGenerator` in TypeScript. The class contains an abstract method `generate` that must be implemented by any class that extends `VegaCalendarBaseEventLayoutGenerator`. */
|
2805
|
+
class VegaCalendarBaseEventLayoutGenerator {
|
2806
|
+
/**
|
2807
|
+
* The function `addCurrentEventToLayout` adds a long event view to a layout row without overlapping with existing events.
|
2808
|
+
*
|
2809
|
+
* @param {VegaCalendarBaseEventLayoutCell[]} layoutCells - The `layoutCells` parameter is an array of
|
2810
|
+
* `VegaCalendarBaseEventLayoutCell` objects. These objects represent rows in a layout where long events are displayed without overlapping each other.
|
2811
|
+
* @param {unknown} input - The `currentView` parameter represents the current long event view that you want to add to the layout rows without overlapping with existing events. The function `addCurrentEventToLayoutRow` searches for a layout row that does not have any overlap with the current view. If such a row is found,
|
2812
|
+
*/
|
2813
|
+
addCurrentEventToLayout(layoutCells, input) {
|
2814
|
+
let noOverlapCell = layoutCells.find((layoutCell) => {
|
2815
|
+
return !layoutCell.hasOverlapEvent(input);
|
2816
|
+
});
|
2817
|
+
if (!noOverlapCell) {
|
2818
|
+
noOverlapCell = this.createNewLayoutCell();
|
2819
|
+
noOverlapCell.updateSlots(input);
|
2820
|
+
layoutCells.push(noOverlapCell);
|
2821
|
+
}
|
2822
|
+
else {
|
2823
|
+
noOverlapCell.updateSlots(input);
|
2824
|
+
}
|
2825
|
+
}
|
2826
|
+
}
|
2827
|
+
|
2828
|
+
/** This TypeScript code snippet defines an abstract class `VegaCalendarBaseEventLayout` that serves as a base for event layout functionality in a calendar application. */
|
2829
|
+
class VegaCalendarBaseEventLayout {
|
2830
|
+
/**
|
2831
|
+
* The function returns an array of VegaCalendarBaseEventLayoutCell objects.
|
2832
|
+
*
|
2833
|
+
* @returns {VegaCalendarBaseEventLayoutCell[]} An array of VegaCalendarLongEventLayoutRow objects is being returned.
|
2834
|
+
*/
|
2835
|
+
get eventLayoutCells() {
|
2836
|
+
return this.cells;
|
2837
|
+
}
|
2838
|
+
}
|
2839
|
+
|
2840
|
+
/** This TypeScript class, VegaCalendarDayViewTimedEventLayout, manages the layout of events in a day view calendar. */
|
2841
|
+
class VegaCalendarDayViewTimedEventLayout extends VegaCalendarBaseEventLayout {
|
2842
|
+
/**
|
2843
|
+
* The constructor function initializes the columns property with the provided array of VegaCalendarDayViewTimedEventLayoutColumn objects.
|
2844
|
+
*
|
2845
|
+
* @param {VegaCalendarDayViewTimedEventLayoutColumn[]} columns - An array of VegaCalendarDayViewTimedEventLayoutColumn objects.
|
2846
|
+
*/
|
2847
|
+
constructor(columns) {
|
2848
|
+
super();
|
2849
|
+
this.cells = columns;
|
2850
|
+
}
|
2851
|
+
/**
|
2852
|
+
* The function `getEventColumnsSpannedCount` calculates the number of columns spanned by a given calendar event in a day view layout.
|
2853
|
+
*
|
2854
|
+
* @param {CalendarEvent} eventItem - The `getEventColumnsSpannedCount` function takes a `CalendarEvent` object as the `eventItem` parameter. This function calculates the number of columns spanned by the given event within the calendar view.
|
2855
|
+
* @returns {number} The function `getEventColumnsSpannedCount` returns the number of columns spanned by the given `eventItem` in the `VegaCalendarDayViewTimedEventLayoutColumn` array `columns`.
|
2856
|
+
*/
|
2857
|
+
getEventColumnsSpannedCount(eventItem) {
|
2858
|
+
const eventColumnIndex = this.cells.findIndex((column) => {
|
2859
|
+
return column.getEventStartIndex(eventItem) >= 0;
|
2860
|
+
});
|
2861
|
+
let count = eventColumnIndex + 1;
|
2862
|
+
if (eventColumnIndex < this.cells.length - 1) {
|
2863
|
+
this.cells
|
2864
|
+
.slice(eventColumnIndex + 1)
|
2865
|
+
.forEach((column) => {
|
2866
|
+
if (column.hasOverlapEvent(eventItem)) {
|
2867
|
+
count++;
|
2868
|
+
}
|
2869
|
+
});
|
2870
|
+
}
|
2871
|
+
return count;
|
2872
|
+
}
|
2873
|
+
}
|
2874
|
+
|
2875
|
+
/** This code snippet is defining an abstract class named `VegaCalendarBaseEventLayoutCell`. Here's a breakdown of what it does: */
|
2876
|
+
class VegaCalendarBaseEventLayoutCell {
|
2877
|
+
/**
|
2878
|
+
* This function retrieves a calendar event based on the slot index provided.
|
2879
|
+
*
|
2880
|
+
* @param {number} index - The `index` parameter is a number that represents the position of a slot in an array.
|
2881
|
+
* @returns {CalendarEvent | null} The `getEventBySlotIndex` method is returning a `CalendarEvent` object from the `slots` array at the specified `index`.
|
2882
|
+
*/
|
2883
|
+
getEventBySlotIndex(index) {
|
2884
|
+
return this.slots[index];
|
2885
|
+
}
|
2886
|
+
/**
|
2887
|
+
* The function `getEventStartIndex` returns the index of a given `CalendarEvent` object within an array of `CalendarEvent` objects.
|
2888
|
+
*
|
2889
|
+
* @param {CalendarEvent} eventItem - CalendarEvent
|
2890
|
+
* @returns {number} The function `getEventStartIndex` returns the index of the `eventItem` within the `slots` array.
|
2891
|
+
*/
|
2892
|
+
getEventStartIndex(eventItem) {
|
2893
|
+
return this.slots.findIndex((item) => item === eventItem);
|
2894
|
+
}
|
2895
|
+
/**
|
2896
|
+
* This TypeScript function calculates the end index of a calendar event within a specified range of slots.
|
2897
|
+
*
|
2898
|
+
* @param {CalendarEvent} eventItem - CalendarEvent - the event item for which we want to find the end index in the calendar.
|
2899
|
+
* @returns {number} The `getEventEndIndex` function returns the index of the end of the calendar event in the `VegaCalendarLongEventLayoutRow.defaultSlots` array.
|
2900
|
+
*/
|
2901
|
+
getEventEndIndex(eventItem) {
|
2902
|
+
const startIndex = this.getEventStartIndex(eventItem);
|
2903
|
+
let endIndex = startIndex;
|
2904
|
+
if (startIndex >= 0) {
|
2905
|
+
for (let i = startIndex + 1; i < this.slots.length; i++) {
|
2906
|
+
if (this.slots[i] !== eventItem) {
|
2907
|
+
endIndex = i - 1;
|
2908
|
+
break;
|
2909
|
+
}
|
2910
|
+
else if (i === this.slots.length - 1) {
|
2911
|
+
endIndex = i;
|
2912
|
+
}
|
2913
|
+
}
|
2914
|
+
}
|
2915
|
+
return endIndex;
|
2916
|
+
}
|
2917
|
+
}
|
2918
|
+
|
2919
|
+
/** The class `VegaCalendarDayViewEventLayoutColumn` manages the layout of events in a day view calendar by storing event slots and providing methods to interact with them. */
|
2920
|
+
class VegaCalendarDayViewTimedEventLayoutColumn extends VegaCalendarBaseEventLayoutCell {
|
2921
|
+
constructor() {
|
2922
|
+
super(...arguments);
|
2923
|
+
this.slots = VegaCalendarDayViewTimedEventLayoutColumn.defaultSlots;
|
2924
|
+
}
|
2925
|
+
/**
|
2926
|
+
* The function `hasOverlapEvent` checks if a given calendar event overlaps with existing events in the calendar.
|
2927
|
+
*
|
2928
|
+
* @param {CalendarEvent} eventItem - The `eventItem` parameter in the `hasOverlapEvent` function represents a `CalendarEvent` object that contains information about an event such as its start time, end time, and possibly other details related to the event.
|
2929
|
+
* @returns {boolean} The function `hasOverlapEvent` returns a boolean value indicating whether there is an overlap in the calendar event slots. If there is an overlap, it returns `true`, otherwise it returns `false`.
|
2930
|
+
*/
|
2931
|
+
hasOverlapEvent(eventItem) {
|
2932
|
+
const [start, end] = this.getIndexRangeFromEvent(eventItem);
|
2933
|
+
let overlapFlag = false;
|
2934
|
+
for (let i = start; i < end; i++) {
|
2935
|
+
if (this.slots[i]) {
|
2936
|
+
overlapFlag = true;
|
2937
|
+
break;
|
2938
|
+
}
|
2939
|
+
}
|
2940
|
+
return overlapFlag;
|
2941
|
+
}
|
2942
|
+
/**
|
2943
|
+
* The function `updateColumnSlots` updates the slots array by replacing a range of elements with a given event item.
|
2944
|
+
*
|
2945
|
+
* @param {CalendarEvent} eventItem - The `eventItem` parameter is a `CalendarEvent` object that represents an event in a calendar.
|
2946
|
+
*/
|
2947
|
+
updateSlots(eventItem) {
|
2948
|
+
const [start, end] = this.getIndexRangeFromEvent(eventItem);
|
2949
|
+
if (end > start) {
|
2950
|
+
this.slots = this.slots
|
2951
|
+
.slice(0, start)
|
2952
|
+
.concat(Array(end - start).fill(eventItem), this.slots.slice(end));
|
2953
|
+
}
|
2954
|
+
}
|
2955
|
+
/**
|
2956
|
+
* The function `getIndexRangeFromEvent` takes a `CalendarEvent` object and returns an array of time indices based on the start and end times of the event.
|
2957
|
+
*
|
2958
|
+
* @param {CalendarEvent} eventItem - A CalendarEvent object containing information about a specific event in a calendar, such as its start time and end time.
|
2959
|
+
* @returns {number[]} An array of two numbers representing the index range of the start and end times of the given CalendarEvent.
|
2960
|
+
*/
|
2961
|
+
getIndexRangeFromEvent(eventItem) {
|
2962
|
+
const { startTime, endTime } = eventItem;
|
2963
|
+
return [getTimeIndex(startTime), getTimeIndex(endTime)];
|
2964
|
+
}
|
2965
|
+
}
|
2966
|
+
VegaCalendarDayViewTimedEventLayoutColumn.defaultSlots = Array(96).fill(null);
|
2967
|
+
|
2968
|
+
/** The `VegaCalendarDayViewEventLayoutGenerator` class in TypeScript generates a layout for calendar events in a day view. */
|
2969
|
+
class VegaCalendarDayViewTimedEventLayoutGenerator extends VegaCalendarBaseEventLayoutGenerator {
|
2970
|
+
/**
|
2971
|
+
* The function generates a layout for displaying calendar events in a day view.
|
2972
|
+
*
|
2973
|
+
* @param {CalendarEvent[]} calendarEvents - CalendarEvent[] - an array of calendar events containing information such as event title, start time, end time, and other relevant details.
|
2974
|
+
* @returns {VegaCalendarDayViewTimedEventLayout} A `VegaCalendarDayViewTimedEventLayout` object is being returned, which is constructed using the `layoutColumns` array containing `VegaCalendarDayViewTimedEventLayoutColumn` objects.
|
2975
|
+
*/
|
2976
|
+
generate(calendarEvents) {
|
2977
|
+
const layoutColumns = [
|
2978
|
+
new VegaCalendarDayViewTimedEventLayoutColumn(),
|
2979
|
+
];
|
2980
|
+
calendarEvents.forEach((eventItem) => {
|
2981
|
+
this.addCurrentEventToLayout(layoutColumns, eventItem);
|
2982
|
+
});
|
2983
|
+
return new VegaCalendarDayViewTimedEventLayout(layoutColumns);
|
2984
|
+
}
|
2985
|
+
/**
|
2986
|
+
* The function creates a new instance of VegaCalendarDayViewTimedEventLayoutColumn.
|
2987
|
+
*
|
2988
|
+
* @returns {VegaCalendarDayViewTimedEventLayoutColumn} An instance of the class `VegaCalendarDayViewTimedEventLayoutColumn` is being returned.
|
2989
|
+
*/
|
2990
|
+
createNewLayoutCell() {
|
2991
|
+
return new VegaCalendarDayViewTimedEventLayoutColumn();
|
2992
|
+
}
|
2993
|
+
}
|
2994
|
+
|
2995
|
+
/** The VegaCalendarEventSorter class in TypeScript provides a sort method to sort an array of CalendarEvent objects. */
|
2996
|
+
class VegaCalendarEventSorter {
|
2997
|
+
/**
|
2998
|
+
* The function "sort" takes an array of CalendarEvent objects and returns the same array without performing any sorting.
|
2999
|
+
*
|
3000
|
+
* @param {CalendarEvent[]} events - CalendarEvent[] - an array of CalendarEvent objects that need to be sorted.
|
3001
|
+
* @param {number} currentViewIndex - The current index of the row
|
3002
|
+
* @param {VegaCalendarFullDayEventLayout} fullDayEventLayout - The current row all long event layout
|
3003
|
+
* @returns {Nullable<CalendarEvent>} The `sort` function is currently returning the input array of `CalendarEvent` objects as is, without performing any sorting operation.
|
3004
|
+
*/
|
3005
|
+
sort(events, currentViewIndex, fullDayEventLayout) {
|
3006
|
+
const allDayEvents = [];
|
3007
|
+
const groupEvents = [];
|
3008
|
+
const otherEvents = [];
|
3009
|
+
for (let i = 0; i < events.length; i++) {
|
3010
|
+
const currentEvent = events[i];
|
3011
|
+
if (currentEvent) {
|
3012
|
+
if (currentEvent.isGroupEvent()) {
|
3013
|
+
groupEvents.push(currentEvent);
|
3014
|
+
}
|
3015
|
+
else if (currentEvent.isAllDayEvent) {
|
3016
|
+
allDayEvents.push(currentEvent);
|
3017
|
+
}
|
3018
|
+
else {
|
3019
|
+
otherEvents.push(currentEvent);
|
3020
|
+
}
|
3021
|
+
}
|
3022
|
+
}
|
3023
|
+
let result = allDayEvents.concat(this.sortCalendarEventByTime(otherEvents));
|
3024
|
+
let currentViewOrderGroupEvents = fullDayEventLayout.getEventsByIndex(currentViewIndex);
|
3025
|
+
const currentEvents = currentViewOrderGroupEvents.filter((item) => item);
|
3026
|
+
result = groupEvents
|
3027
|
+
.filter((groupEvent) => {
|
3028
|
+
return currentEvents.findIndex((item) => item === groupEvent) < 0;
|
3029
|
+
})
|
3030
|
+
.concat(result);
|
3031
|
+
if (currentViewOrderGroupEvents.length > currentEvents.length) {
|
3032
|
+
const insertItems = result.slice(0, currentViewOrderGroupEvents.length - currentEvents.length);
|
3033
|
+
result = result.slice(currentViewOrderGroupEvents.length - currentEvents.length);
|
3034
|
+
currentViewOrderGroupEvents = this.insertEventsToEmptyPosition(currentViewOrderGroupEvents, insertItems);
|
3035
|
+
}
|
3036
|
+
result = currentViewOrderGroupEvents.concat(result);
|
3037
|
+
return result;
|
3038
|
+
}
|
3039
|
+
/**
|
3040
|
+
* The function `sortCalendarEventByTime` sorts an array of `CalendarEvent` objects based on their start and end times.
|
3041
|
+
*
|
3042
|
+
* @param {CalendarEvent[]} events - An array of CalendarEvent objects. Each CalendarEvent object contains information about a specific event, such as startTime and endTime.
|
3043
|
+
* @returns {CalendarEvent[]} The `sortCalendarEventByTime` function is returning an array of `CalendarEvent` objects sorted by their start time and end time. The events are sorted in ascending order based on their start time, and if two events have the same start time, they are further sorted in descending order based on their end time.
|
3044
|
+
*/
|
3045
|
+
sortCalendarEventByTime(events) {
|
3046
|
+
return events.sort((eventA, eventB) => {
|
3047
|
+
const eventAStartIndex = getTimeIndex(eventA.startTime);
|
3048
|
+
const eventBStartIndex = getTimeIndex(eventB.startTime);
|
3049
|
+
if (eventAStartIndex === eventBStartIndex) {
|
3050
|
+
return getTimeIndex(eventB.endTime) - getTimeIndex(eventA.endTime);
|
3051
|
+
}
|
3052
|
+
else {
|
3053
|
+
return eventAStartIndex - eventBStartIndex;
|
3054
|
+
}
|
3055
|
+
});
|
3056
|
+
}
|
3057
|
+
/**
|
3058
|
+
* The function inserts events from a given array into empty positions in another array of events.
|
3059
|
+
*
|
3060
|
+
* @param {Nullable<CalendarEvent>[]} viewEvents - `viewEvents` is an array of nullable
|
3061
|
+
* `CalendarEvent` objects representing the events currently displayed in the calendar view. Each
|
3062
|
+
* element in the array can either be a `CalendarEvent` object or `null`.
|
3063
|
+
* @param {CalendarEvent[]} events - The `events` parameter in the `insertEventsToEmptyPosition`
|
3064
|
+
* function represents an array of `CalendarEvent` objects that need to be inserted into the
|
3065
|
+
* `viewEvents` array at empty positions. The function iterates over the `viewEvents` array and
|
3066
|
+
* inserts events from the `events` array
|
3067
|
+
* @returns {CalendarEvent|null[]} The `insertEventsToEmptyPosition` function returns an array of `Nullable<CalendarEvent>`
|
3068
|
+
* where events from the `events` array are inserted into empty positions in the `viewEvents` array.
|
3069
|
+
* If there are no empty positions in `viewEvents`, the function returns the original `viewEvents`
|
3070
|
+
* array.
|
3071
|
+
*/
|
3072
|
+
insertEventsToEmptyPosition(viewEvents, events) {
|
3073
|
+
return viewEvents.map((item) => {
|
3074
|
+
if (events.length && !item) {
|
3075
|
+
const insertItem = events[0];
|
3076
|
+
events = events.slice(1);
|
3077
|
+
return insertItem;
|
3078
|
+
}
|
3079
|
+
else {
|
3080
|
+
return item;
|
3081
|
+
}
|
3082
|
+
});
|
3083
|
+
}
|
3084
|
+
}
|
3085
|
+
|
3086
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
3087
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3088
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
3089
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
3090
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
3091
|
+
};
|
3092
|
+
/** The `VegaCalendarTimedEventRenderer` class in TypeScript React renders timed events for a calendar view based on the current day's events. timed events render for day view and week view */
|
3093
|
+
class VegaCalendarTimedEventRenderer extends VegaSlimmer {
|
3094
|
+
constructor() {
|
3095
|
+
super(...arguments);
|
3096
|
+
this.calendarEventSorter = new VegaCalendarEventSorter();
|
3097
|
+
this.dayViewTimedEventLayoutGenerator = new VegaCalendarDayViewTimedEventLayoutGenerator();
|
3098
|
+
}
|
3099
|
+
/**
|
3100
|
+
* render current preiod normal events
|
3101
|
+
*
|
3102
|
+
* @returns {HTMLElement} events element
|
3103
|
+
*/
|
3104
|
+
render() {
|
3105
|
+
const viewSource = this.calendarView.dateItems[0];
|
3106
|
+
return (h("div", { class: "day-event-container" }, viewSource.map((item) => {
|
3107
|
+
return (h("div", { key: `${item.month}-${item.date}`, class: "day-event-col" }, this.renderTimedEvents(item)));
|
3108
|
+
})));
|
3109
|
+
}
|
3110
|
+
/**
|
3111
|
+
* render current day events
|
3112
|
+
*
|
3113
|
+
* @param {CalendarDate} date calendar Date
|
3114
|
+
* @returns {HTMLElement[]} event elements
|
3115
|
+
*/
|
3116
|
+
renderTimedEvents(date) {
|
3117
|
+
const events = this.calendarEventController
|
3118
|
+
.getCurrentDateEvents(date)
|
3119
|
+
.filter((eventItem) => !eventItem.isAllDayEvent && !eventItem.isGroupEvent());
|
3120
|
+
const sortEvents = this.calendarEventSorter.sortCalendarEventByTime(events);
|
3121
|
+
const layout = this.dayViewTimedEventLayoutGenerator.generate(sortEvents);
|
3122
|
+
return this.dayViewEventLayoutRenderer.render(layout);
|
3123
|
+
}
|
3124
|
+
}
|
3125
|
+
__decorate$a([
|
3126
|
+
MapToComponentField()
|
3127
|
+
], VegaCalendarTimedEventRenderer.prototype, "calendarView", void 0);
|
3128
|
+
__decorate$a([
|
3129
|
+
MapToComponentField()
|
3130
|
+
], VegaCalendarTimedEventRenderer.prototype, "calendarEventController", void 0);
|
3131
|
+
__decorate$a([
|
3132
|
+
MapToComponentField()
|
3133
|
+
], VegaCalendarTimedEventRenderer.prototype, "dayViewEventLayoutRenderer", void 0);
|
3134
|
+
|
3135
|
+
/** The VegaCalendarLongEventLayout class manages the layout of long events in a calendar by organizing them into rows. */
|
3136
|
+
class VegaCalendarFullDayEventLayout extends VegaCalendarBaseEventLayout {
|
3137
|
+
/**
|
3138
|
+
* The constructor function initializes a VegaCalendarFullDayEventLayoutRow array in TypeScript.
|
3139
|
+
*
|
3140
|
+
* @param {VegaCalendarFullDayEventLayoutRow[]} rows - An array of VegaCalendarFullDayEventLayoutRow objects.
|
3141
|
+
*/
|
3142
|
+
constructor(rows) {
|
3143
|
+
super();
|
3144
|
+
this.cells = rows;
|
3145
|
+
}
|
3146
|
+
/**
|
3147
|
+
* This TypeScript function returns the index of a row containing a specific calendar event.
|
3148
|
+
*
|
3149
|
+
* @param {CalendarEvent} eventItem - The `eventItem` parameter is a `CalendarEvent` object that represents an event in a calendar.
|
3150
|
+
* @returns {number} The function `getEventRowsIndex` returns the index of the row in the `rows` array where the `eventItem` is found based on the condition specified in the `findIndex` method.
|
3151
|
+
*/
|
3152
|
+
getEventRowsIndex(eventItem) {
|
3153
|
+
return this.cells.findIndex((row) => row.getEventStartIndex(eventItem) >= 0);
|
3154
|
+
}
|
3155
|
+
/**
|
3156
|
+
* This function retrieves CalendarEvents from each row in a calendar layout based on a specified index.
|
3157
|
+
*
|
3158
|
+
* @param {number} index - The `index` parameter in the `getEventsByIndex` method is a number that
|
3159
|
+
* represents the slot index for which you want to retrieve calendar events. The method iterates
|
3160
|
+
* through each row in the `rows` array and retrieves the calendar event at the specified slot index from each row. The method
|
3161
|
+
* @returns {(Nullable<CalendarEvent>)[]} An array of CalendarEvent objects is being returned.
|
3162
|
+
*/
|
3163
|
+
getEventsByIndex(index) {
|
3164
|
+
const result = [];
|
3165
|
+
let lastItemIndex = 0;
|
3166
|
+
this.cells.forEach((row, rowIndex) => {
|
3167
|
+
const currentEvent = row.getEventBySlotIndex(index);
|
3168
|
+
result.push(currentEvent);
|
3169
|
+
if (currentEvent) {
|
3170
|
+
lastItemIndex = rowIndex;
|
3171
|
+
}
|
3172
|
+
});
|
3173
|
+
return result.slice(0, lastItemIndex + 1);
|
3174
|
+
}
|
3175
|
+
}
|
3176
|
+
|
3177
|
+
/** The `VegaCalendarLongEventLayoutRow` class in TypeScript manages the layout of long events in a calendar by updating slots and checking for overlaps. */
|
3178
|
+
class VegaCalendarFullDayEventLayoutRow extends VegaCalendarBaseEventLayoutCell {
|
3179
|
+
constructor() {
|
3180
|
+
super(...arguments);
|
3181
|
+
this.slots = VegaCalendarFullDayEventLayoutRow.defaultSlots;
|
3182
|
+
}
|
3183
|
+
/**
|
3184
|
+
* The function `updateRowSlots` updates a row of slots in a calendar view with a long event.
|
3185
|
+
*
|
3186
|
+
* @param {VegaCalendarFullDayEventView} eventView - The `eventView` parameter in the `updateRowSlots` method is of type `VegaCalendarFullDayEventView`. It contains information about a long event in a
|
3187
|
+
*/
|
3188
|
+
updateSlots(eventView) {
|
3189
|
+
const { start, end } = eventView;
|
3190
|
+
this.slots = this.slots
|
3191
|
+
.slice(0, start)
|
3192
|
+
.concat(Array(end - start + 1).fill(eventView.event), this.slots.slice(end + 1));
|
3193
|
+
}
|
3194
|
+
/**
|
3195
|
+
* The function checks if a given event overlaps with existing events in a calendar view.
|
3196
|
+
*
|
3197
|
+
* @param {VegaCalendarFullDayEventView} eventView - The `eventView` parameter in the `hasOverlapEvent`
|
3198
|
+
* function represents a view of a long event in a Vega calendar. It contains the `start` and `end`
|
3199
|
+
* properties which specify the start and end times of the event. The function checks if there is any
|
3200
|
+
* overlap with existing events in
|
3201
|
+
* @returns {boolean} The function `hasOverlapEvent` returns a boolean value indicating whether there is an
|
3202
|
+
* overlap in the slots between the start and end times of the given `VegaCalendarFullDayEventView` event.
|
3203
|
+
*/
|
3204
|
+
hasOverlapEvent(eventView) {
|
3205
|
+
const { start, end } = eventView;
|
3206
|
+
let overlapFlag = false;
|
3207
|
+
for (let i = start; i < end + 1; i++) {
|
3208
|
+
if (this.slots[i]) {
|
3209
|
+
overlapFlag = true;
|
3210
|
+
break;
|
3211
|
+
}
|
3212
|
+
}
|
3213
|
+
return overlapFlag;
|
3214
|
+
}
|
3215
|
+
}
|
3216
|
+
VegaCalendarFullDayEventLayoutRow.defaultSlots = Array(7).fill(null);
|
3217
|
+
|
3218
|
+
/** The `VegaCalendarLongEventLayoutGenerator` class in TypeScript generates a layout for long calendar events with overlapping prevention logic. */
|
3219
|
+
class VegaCalendarFullDayEventLayoutGenerator extends VegaCalendarBaseEventLayoutGenerator {
|
3220
|
+
/**
|
3221
|
+
* The function generates a long event layout for a calendar based on the input calendar events.
|
3222
|
+
*
|
3223
|
+
* @param {CalendarEvent[][]} calendarEvents - CalendarEvent[][] is a two-dimensional array where each
|
3224
|
+
* element represents a day in the calendar and contains an array of CalendarEvent objects representing events on that day.
|
3225
|
+
* @returns {VegaCalendarFullDayEventLayout} A new instance of `VegaCalendarFullDayEventLayout` is being returned, which is constructed
|
3226
|
+
* using the `layoutRows` array containing `VegaCalendarFullDayEventLayoutRow` objects.
|
3227
|
+
*/
|
3228
|
+
generate(calendarEvents) {
|
3229
|
+
const allShouldOrderLongEvents = this.collectAllShouldOrderLongEvents(calendarEvents);
|
3230
|
+
const layoutRows = [this.createNewLayoutCell()];
|
3231
|
+
allShouldOrderLongEvents.forEach((eventView) => {
|
3232
|
+
this.addCurrentEventToLayout(layoutRows, eventView);
|
3233
|
+
});
|
3234
|
+
return new VegaCalendarFullDayEventLayout(layoutRows);
|
3235
|
+
}
|
3236
|
+
/**
|
3237
|
+
* The function creates a new instance of VegaCalendarFullDayEventLayoutRow.
|
3238
|
+
*
|
3239
|
+
* @returns {VegaCalendarFullDayEventLayoutRow} An instance of the class `VegaCalendarFullDayEventLayoutRow` is being returned.
|
3240
|
+
*/
|
3241
|
+
createNewLayoutCell() {
|
3242
|
+
return new VegaCalendarFullDayEventLayoutRow();
|
3243
|
+
}
|
3244
|
+
/**
|
3245
|
+
* Filter the all should order group event from event list
|
3246
|
+
*
|
3247
|
+
* @param {CalendarEvent[][]} allEvents all event list
|
3248
|
+
* @returns {VegaCalendarFullDayEventView[]} the group event view list
|
3249
|
+
*/
|
3250
|
+
collectAllShouldOrderLongEvents(allEvents) {
|
3251
|
+
const allLongEventViews = {};
|
3252
|
+
allEvents.forEach((items, index) => {
|
3253
|
+
const longEvents = items.filter((item) => item && item.isGroupEvent());
|
3254
|
+
longEvents.forEach((groupEvent) => {
|
3255
|
+
if (!allLongEventViews[groupEvent.eventKey]) {
|
3256
|
+
allLongEventViews[groupEvent.eventKey] = {
|
3257
|
+
start: index,
|
3258
|
+
end: index,
|
3259
|
+
event: groupEvent,
|
3260
|
+
};
|
3261
|
+
}
|
3262
|
+
else {
|
3263
|
+
allLongEventViews[groupEvent.eventKey] = Object.assign(Object.assign({}, allLongEventViews[groupEvent.eventKey]), { end: index, start: index - allLongEventViews[groupEvent.eventKey].end !== 1
|
3264
|
+
? index
|
3265
|
+
: allLongEventViews[groupEvent.eventKey].start });
|
3266
|
+
}
|
3267
|
+
});
|
3268
|
+
});
|
3269
|
+
const shouldSortLongEventViews = Object.values(allLongEventViews);
|
3270
|
+
return this.sortLongEventViews(shouldSortLongEventViews);
|
3271
|
+
}
|
3272
|
+
/**
|
3273
|
+
* This function sorts an array of VegaCalendarFullDayEventView objects based on their start and end times.
|
3274
|
+
*
|
3275
|
+
* @param {VegaCalendarFullDayEventView[]} eventViews - The `eventViews` parameter is an array of
|
3276
|
+
* `VegaCalendarFullDayEventView` objects that represent long events in a calendar. The function
|
3277
|
+
* `sortLongEventViews` takes this array as input and sorts it based on the start and end times of the events.
|
3278
|
+
* @returns {VegaCalendarFullDayEventView[]} The function `sortLongEventViews` is returning an array of `VegaCalendarFullDayEventView`
|
3279
|
+
* objects that have been sorted based on the comparison logic provided in the sorting function. The sorting is done based on the `start` and `end` properties of the objects in the array.
|
3280
|
+
*/
|
3281
|
+
sortLongEventViews(eventViews) {
|
3282
|
+
return eventViews.sort((itemA, itemB) => {
|
3283
|
+
const { startDate: startA, endDate: endA } = itemA.event;
|
3284
|
+
const { startDate: startB, endDate: endB } = itemB.event;
|
3285
|
+
startA.setHours(0, 0, 0);
|
3286
|
+
startB.setHours(0, 0, 0);
|
3287
|
+
endA.setHours(23, 59, 59);
|
3288
|
+
endB.setHours(23, 59, 59);
|
3289
|
+
const num = endB.valueOf() - startB.valueOf() - (endA.valueOf() - startA.valueOf());
|
3290
|
+
if (startA.valueOf() !== startB.valueOf()) {
|
3291
|
+
return startA.valueOf() - startB.valueOf();
|
3292
|
+
}
|
3293
|
+
else {
|
3294
|
+
return num;
|
3295
|
+
}
|
3296
|
+
});
|
3297
|
+
}
|
3298
|
+
}
|
3299
|
+
|
3300
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
3301
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3302
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
3303
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
3304
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
3305
|
+
};
|
3306
|
+
/** This code snippet defines a TypeScript class `VegaCalendarFullDayEventLayoutRenderer` that extends `VegaSlimmer`. Here's a breakdown of what the class and its methods are doing: */
|
3307
|
+
class VegaCalendarFullDayEventLayoutRenderer extends VegaSlimmer {
|
3308
|
+
constructor() {
|
3309
|
+
super(...arguments);
|
3310
|
+
this.longEventLayoutGenerator = new VegaCalendarFullDayEventLayoutGenerator();
|
3311
|
+
this.calendarEventSorter = new VegaCalendarEventSorter();
|
3312
|
+
}
|
3313
|
+
/**
|
3314
|
+
* The function `sortLongEvents` sorts calendar events based on a fixed layout generated by `longEventLayoutGenerator`.
|
3315
|
+
*
|
3316
|
+
* @param {CalendarEvent[][]} calendarEvents - calendar current row all events
|
3317
|
+
* @returns {Nullable<CalendarEvent>[][]} the events after sorter
|
3318
|
+
*/
|
3319
|
+
sortLongEvents(calendarEvents) {
|
3320
|
+
this.fullDayEventLayout = this.longEventLayoutGenerator.generate(calendarEvents);
|
3321
|
+
return calendarEvents.map((items, index) => {
|
3322
|
+
return this.calendarEventSorter.sort(items, index, this.fullDayEventLayout);
|
3323
|
+
});
|
3324
|
+
}
|
3325
|
+
/**
|
3326
|
+
* render the month view or week view long events
|
3327
|
+
*
|
3328
|
+
* @param {Nullable<CalendarEvent>[]} calendarEvents current events
|
3329
|
+
* @param {currentViewIndex} currentViewIndex the current index of the row
|
3330
|
+
* @returns {HTMLElement[]} event elements
|
3331
|
+
*/
|
3332
|
+
render(calendarEvents, currentViewIndex) {
|
3333
|
+
return calendarEvents.map((item, index) => {
|
3334
|
+
if (item) {
|
3335
|
+
return (h("div", { key: item.eventKey, class: this.viewMode === 'month' ? 'month-event-block' : 'day-event-block', style: this.getEventStyle(item, currentViewIndex, index, this.viewMode === 'month'
|
3336
|
+
? VegaCalendarFullDayEventLayoutRenderer.monthViewEventOffsetTop
|
3337
|
+
: 0) }, this.eventItemRenderer.render(item, {
|
3338
|
+
'month-event': this.viewMode === 'month',
|
3339
|
+
'day-event': this.viewMode !== 'month',
|
3340
|
+
})));
|
3341
|
+
}
|
3342
|
+
});
|
3343
|
+
}
|
3344
|
+
/*
|
3345
|
+
* The below method is e2e-test covered in
|
3346
|
+
* @see{module:vega-calendar-render-full-day-event-correct}
|
3347
|
+
*/
|
3348
|
+
/* istanbul ignore next */
|
3349
|
+
/**
|
3350
|
+
* Get the current event layout style from the params
|
3351
|
+
*
|
3352
|
+
* @param {CalendarEvent} calendarEvent current event item
|
3353
|
+
* @param {number} currentViewIndex the current date index of the row
|
3354
|
+
* @param {number} itemIndex the current event index of the event array
|
3355
|
+
* @param {number} offsetTop the default offset top for the event
|
3356
|
+
* @returns {VegaCalendarEventStyle} layout style object
|
3357
|
+
*/
|
3358
|
+
getEventStyle(calendarEvent, currentViewIndex, itemIndex, offsetTop) {
|
3359
|
+
const cellCount = this.calendarView.weekdays.length;
|
3360
|
+
const start = currentViewIndex;
|
3361
|
+
let end = currentViewIndex + 1;
|
3362
|
+
const top = itemIndex;
|
3363
|
+
let visible = true;
|
3364
|
+
const order = this.fullDayEventLayout.getEventRowsIndex(calendarEvent);
|
3365
|
+
if (order >= 0) {
|
3366
|
+
const startIndex = this.fullDayEventLayout.eventLayoutCells[order].getEventStartIndex(calendarEvent);
|
3367
|
+
const endIndex = this.fullDayEventLayout.eventLayoutCells[order].getEventEndIndex(calendarEvent);
|
3368
|
+
if (startIndex === currentViewIndex) {
|
3369
|
+
end = endIndex + 1;
|
3370
|
+
}
|
3371
|
+
else {
|
3372
|
+
visible = false;
|
3373
|
+
}
|
3374
|
+
}
|
3375
|
+
return {
|
3376
|
+
position: 'absolute',
|
3377
|
+
left: `${(100 / cellCount) * start}%`,
|
3378
|
+
top: `${top * VegaCalendarEventItemRenderer.backgroundColorModeEventHeight + offsetTop}px`,
|
3379
|
+
width: `${(100 / cellCount) * (end - start)}%`,
|
3380
|
+
opacity: visible ? '1' : '0',
|
3381
|
+
};
|
3382
|
+
}
|
3383
|
+
}
|
3384
|
+
VegaCalendarFullDayEventLayoutRenderer.monthViewEventOffsetTop = 26;
|
3385
|
+
__decorate$9([
|
3386
|
+
MapToComponentField()
|
3387
|
+
], VegaCalendarFullDayEventLayoutRenderer.prototype, "eventItemRenderer", void 0);
|
3388
|
+
__decorate$9([
|
3389
|
+
MapToComponentField()
|
3390
|
+
], VegaCalendarFullDayEventLayoutRenderer.prototype, "viewMode", void 0);
|
3391
|
+
__decorate$9([
|
3392
|
+
MapToComponentField()
|
3393
|
+
], VegaCalendarFullDayEventLayoutRenderer.prototype, "calendarView", void 0);
|
3394
|
+
|
3395
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
3396
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3397
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
3398
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
3399
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
3400
|
+
};
|
3401
|
+
class VegaCalendarFullDayEventMoreButtonRenderer extends VegaSlimmer {
|
3402
|
+
constructor() {
|
3403
|
+
super(...arguments);
|
3404
|
+
/**
|
3405
|
+
* Update the show all flag to true when click the more button
|
3406
|
+
*
|
3407
|
+
* @param {MouseEvent} e event object
|
3408
|
+
*/
|
3409
|
+
this.updateShowAllFlag = (e) => {
|
3410
|
+
e.stopPropagation();
|
3411
|
+
this.showAllEventsInDayOrWeekView = true;
|
3412
|
+
};
|
3413
|
+
}
|
3414
|
+
/**
|
3415
|
+
* Render the more button element
|
3416
|
+
*
|
3417
|
+
* @param {number} count the hidden elements count
|
3418
|
+
* @returns {HTMLElement} more button
|
3419
|
+
*/
|
3420
|
+
render(count) {
|
3421
|
+
if (!this.showAllEventsInDayOrWeekView) {
|
3422
|
+
return (h("div", { tabIndex: 0, role: "button", class: "more-button", onKeyDown: createEnterKeyHandlerToTriggerClick(), onClick: this.updateShowAllFlag }, `${count} More`));
|
3423
|
+
}
|
3424
|
+
}
|
3425
|
+
/**
|
3426
|
+
* Reset the show all event flag when view mode change
|
3427
|
+
*/
|
3428
|
+
resetShowAllFlag() {
|
3429
|
+
this.showAllEventsInDayOrWeekView = false;
|
3430
|
+
}
|
3431
|
+
}
|
3432
|
+
__decorate$8([
|
3433
|
+
MapToComponentField({ writable: true })
|
3434
|
+
], VegaCalendarFullDayEventMoreButtonRenderer.prototype, "showAllEventsInDayOrWeekView", void 0);
|
3435
|
+
__decorate$8([
|
3436
|
+
MapToComponentMethod('watchViewModeChange')
|
3437
|
+
], VegaCalendarFullDayEventMoreButtonRenderer.prototype, "resetShowAllFlag", null);
|
3438
|
+
|
3439
|
+
const vegaCalendarCss = ".border-divider-top{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-left-width:0px;border-right-width:0px;border-bottom-width:0px}.border-divider-left{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-top-width:0px;border-right-width:0px;border-bottom-width:0px}.border-divider-right{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-top-width:0px;border-left-width:0px;border-bottom-width:0px}.border-divider-bottom{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-top-width:0px;border-left-width:0px;border-right-width:0px}:host{display:flex;flex-direction:column;border-radius:12px;border:1px solid rgba(var(--v-border-divider, 171, 198, 216, 1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));overflow:hidden;width:100%;height:100%;box-sizing:border-box;max-height:1966px}.calendar-switch-panel{padding:24px;border-bottom-width:1px;border-top-width:0px;border-left-width:0px;border-right-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));flex-shrink:0;width:100%;box-sizing:border-box}.calendar-switch-panel .calendar-date-switch-container{display:flex;gap:8px;align-items:center;flex-direction:row}.calendar-switch-panel .calendar-view-switch-container{display:flex;gap:16px;align-items:center;flex-direction:row}.calendar-switch-panel .calendar-current-date{padding-left:8px}.calendar-view{width:100%;position:relative;flex-grow:1;overflow-y:auto;overflow-x:hidden;--calendar-weekday-columns:7}.calendar-view.calendar-hide-weekends{--calendar-weekday-columns:5}.calendar-view-month .calendar-view-month-container{width:100%;display:grid;min-height:100%;grid-template-rows:43px repeat(6, minmax(64px, 1fr))}.calendar-view-month .calendar-view-title{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));top:0;left:0;z-index:62}.calendar-view-month .calendar-view-title div{padding-top:12px;padding-bottom:12px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px;text-align:center}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-month .calendar-view-title div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-month .calendar-view-title div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-month .calendar-view-title div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.calendar-view-month .calendar-view-row{position:relative;display:grid;grid-template-rows:1fr;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-month .calendar-view-row.calendar-view-title{position:sticky}.calendar-view-month .calendar-view-row:last-child{border-bottom-width:0px}.calendar-view-month .calendar-view-row .row-cell{overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}.calendar-view-month .calendar-view-row .row-cell:last-child{border-right-width:0px}.calendar-view-month .calendar-view-row .row-cell .date{padding-top:4px;padding-bottom:4px;padding-right:12px;padding-left:8px}.calendar-view-month .calendar-view-row .row-cell .date>div{display:inline-block;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-month .calendar-view-row .row-cell .date>div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-month .calendar-view-row .row-cell .date>div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-month .calendar-view-row .row-cell .date>div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.calendar-view-month .calendar-view-row .row-cell .date .month-block{margin-right:2px}.calendar-view-month .calendar-view-row .row-cell .date .grid-col{text-align:center;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;cursor:pointer;width:18px;height:18px;line-height:18px}.calendar-view-month .calendar-view-row .row-cell .date .grid-col:hover{background-color:rgba(var(--v-bg-action-secondary-hover, 4, 112, 236, 0.1))}.calendar-view-month .calendar-view-row .row-cell .date .grid-col:active{background-color:rgba(var(--v-bg-action-secondary-active, 29, 65, 195, 0.1))}.calendar-view-month .calendar-view-row .row-cell .date .grid-col:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}.calendar-view-month .calendar-view-row .row-cell.current-month-day .date>div{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}.calendar-view-month .calendar-view-row .row-cell.disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.calendar-view-month .calendar-view-row .row-cell.disabled .date>div{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));border-top-left-radius:9999px;border-bottom-left-radius:9999px;color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}.calendar-view-container{width:100%}.calendar-view-container .calendar-view-title-container{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));position:sticky;top:0;left:0;z-index:62}.calendar-view-container .calendar-view-row{box-sizing:border-box;width:100%;display:flex;flex-direction:row}.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{width:72px;text-align:right;padding-right:8px;box-sizing:border-box;font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));flex-shrink:0}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.calendar-view-container .calendar-view-title{width:100%}.calendar-view-container .calendar-view-title>div{padding:12px;padding-bottom:8px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px;text-align:center;display:flex;flex-direction:column;gap:8px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-title>div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-title>div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-title>div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.calendar-view-container .calendar-view-title .week-day{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:\"Inter\", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-title .week-day{font-family:\"Inter\", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-title .week-day{font-family:\"Inter\", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-title .week-day{font-family:\"Inter\", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}.calendar-view-container .calendar-view-title .active div{color:rgba(var(--v-text-link, 19, 98, 226, 1))}.calendar-view-container .calendar-view-event-all-container{align-items:center}.calendar-view-container .calendar-view-event-all{display:grid;grid-template-rows:1fr;flex-grow:1;min-height:18px}.calendar-view-container .calendar-view-day-container .time-line{display:grid;grid-template-rows:16px repeat(24, minmax(74px, 1fr))}.calendar-view-container .calendar-view-day-container .time-line .time-text{margin-top:-9px}.calendar-view-container .calendar-view-day-container .calendar-view-content{width:100%}.calendar-view-container .calendar-view-day-container .calendar-view-content .grid-col{display:grid;grid-template-rows:16px repeat(24, minmax(74px, 1fr));grid-template-columns:minmax(64px, 1fr)}.calendar-view-container .calendar-view-day-container .calendar-view-content .grid-col>.border-divider-top:first-child{border-top-width:0px}.calendar-view-container .calendar-view-content-container{width:100%;position:relative}.calendar-view-week .calendar-view-container{min-height:100%}.calendar-view-week .calendar-view-container .calendar-view-title{display:grid;grid-template-rows:1fr;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .calendar-view-container .calendar-view-event-all{grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .calendar-view-container .calendar-view-day-container .calendar-view-content{display:grid;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .time-marker-container .time-marker{display:grid;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .day-event-container{display:grid;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-day .calendar-view-container{min-height:100%}.time-marker-container{position:absolute;min-width:100%;left:0;top:16px;height:calc(100% - 16px);pointer-events:none}.time-marker-container.hidden{display:none}.time-marker-container .time-marker{position:absolute;height:2px;display:grid;min-width:100%;left:0;top:0;z-index:61}.time-marker-container .time-marker div{width:100%;height:2px;background-color:rgba(var(--v-bg-status-error, 255, 110, 139, 1));opacity:0.3}.time-marker-container .time-marker div.active{opacity:1;position:relative}.time-marker-container .time-marker div.active::before{content:\"\";display:block;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;position:absolute;width:8px;height:8px;background-color:rgba(var(--v-bg-status-error, 255, 110, 139, 1));top:-3px;left:-4px}.day-event-container{position:absolute;min-width:100%;left:0;top:16px;height:calc(100% - 16px);pointer-events:none}.day-event-container .day-event-col{height:100%;overflow:hidden}.day-event-container vega-calendar-event{pointer-events:auto;height:100%}.calendar-view-month .month-event-row{position:absolute;width:100%;overflow:hidden;height:calc(100% - 26px);left:0;bottom:0}.calendar-view-month .events-container{width:100%;box-sizing:border-box;overflow:hidden;padding:2px;display:flex;flex-direction:column;gap:2px;justify-content:space-between;flex-grow:1}.calendar-view-month .events-container .event-list{display:flex;flex-direction:column;gap:2px;flex-grow:1}.calendar-view-month .events-container .event-list .month-event-block{box-sizing:border-box;padding-left:2px;padding-right:3px}.calendar-view-month .events-container .month-event-more .more-button{display:inline-block;height:16px;font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;color:rgba(var(--v-text-link, 19, 98, 226, 1));cursor:pointer;border-radius:2px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-month .events-container .month-event-more .more-button{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-month .events-container .month-event-more .more-button{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-month .events-container .month-event-more .more-button{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}.calendar-view-month .events-container .month-event-more .more-button:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}.calendar-view-container .calendar-view-event-all{position:relative}.calendar-view-container .calendar-view-event-all .placeholder-block{padding-top:2px;padding-bottom:2px;box-sizing:content-box}.calendar-view-container .calendar-view-event-all .placeholder-block span{display:none}.calendar-view-container .calendar-view-event-all .day-event-block{padding-top:2px;padding-right:2px;box-sizing:border-box;padding-left:3px}.calendar-view-container .calendar-view-event-all .more-button{display:inline-block;height:16px;font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;color:rgba(var(--v-text-link, 19, 98, 226, 1));cursor:pointer;border-radius:2px;margin-left:2px;padding:2px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-event-all .more-button{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-event-all .more-button{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-event-all .more-button{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}.calendar-view-container .calendar-view-event-all .more-button:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}.calendar-view-container .calendar-view-event-all .event-all-col{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.calendar-view-container .day-event-col{position:relative}.calendar-view-container .day-event-col .time-event-block{box-sizing:border-box;padding-right:8px;padding-bottom:2px;padding-top:3px}.calendar-view-container .day-event-col .time-event-block vega-calendar-event.bg-shadow::part(event-container):not(:focus){outline:2px solid rgba(var(--v-bg-primary, 252, 252, 252, 1))}.calendar-view-container .day-event-col .time-event-block:focus-within{z-index:60 !important}.calendar-event-slot-container{display:none}";
|
3440
|
+
|
3441
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
3442
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3443
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
3444
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
3445
|
+
else
|
3446
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
3447
|
+
if (d = decorators[i])
|
3448
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
3449
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
3450
|
+
};
|
3451
|
+
const VegaCalendar = class {
|
3452
|
+
constructor(hostRef) {
|
3453
|
+
registerInstance(this, hostRef);
|
3454
|
+
this.vegaChange = createEvent(this, "vegaChange", 7);
|
3455
|
+
this.change = createEvent(this, "change", 7);
|
3456
|
+
this.vegaEventClick = createEvent(this, "vegaEventClick", 7);
|
3457
|
+
this.eventClick = createEvent(this, "eventClick", 7);
|
3458
|
+
this.vegaDateDblClick = createEvent(this, "vegaDateDblClick", 7);
|
3459
|
+
this.dateDblClick = createEvent(this, "dateDblClick", 7);
|
3460
|
+
this.vegaMoreActionClick = createEvent(this, "vegaMoreActionClick", 7);
|
3461
|
+
this.moreActionClick = createEvent(this, "moreActionClick", 7);
|
3462
|
+
this.globalSlimmer = {};
|
3463
|
+
this.translationSlimmer = new TranslationSlimmer();
|
3464
|
+
this.vegaComponentUsageRuntimeMetricsSlimmer = new VegaComponentUsageRuntimeMetricsSlimmer();
|
3465
|
+
this.renderer = new VegaCalendarRenderer();
|
3466
|
+
this.switchPanelRenderer = new VegaCalendarSwitchPanelRenderer();
|
3467
|
+
this.viewRenderer = new VegaCalendarViewRenderer();
|
3468
|
+
this.monthViewRenderer = new VegaCalendarMonthViewRenderer();
|
3469
|
+
this.viewWithTimeRenderer = new VegaCalendarViewWithTimeRenderer();
|
3470
|
+
this.timeLineRenderer = new VegaCalendarTimeLineRenderer();
|
3471
|
+
this.monthEventRenderer = new VegaCalendarMonthEventRenderer();
|
3472
|
+
//The current period controller should be before the calendar view controller because the initial current period should be before the initial calendar view
|
3473
|
+
this.currentPeriodController = new VegaCalendarCurrentPeriodController();
|
3474
|
+
this.calendarViewController = new VegaCalendarViewController();
|
3475
|
+
this.dayViewFullDayEventRenderer = new VegaCalendarFullDayEventRenderer();
|
3476
|
+
this.dayViewFullDayEventMoreButtonRenderer = new VegaCalendarFullDayEventMoreButtonRenderer();
|
3477
|
+
this.dayViewTimedEventRenderer = new VegaCalendarTimedEventRenderer();
|
3478
|
+
this.eventItemRenderer = new VegaCalendarEventItemRenderer();
|
3479
|
+
this.dayViewEventLayoutRenderer = new VegaCalendarDayViewEventLayoutRenderer();
|
3480
|
+
this.fullDayEventLayoutRenderer = new VegaCalendarFullDayEventLayoutRenderer();
|
3481
|
+
this.calendarEventController = new VegaCalendarEventController();
|
3482
|
+
this.eventResponsiveController = new VegaCalendarEventResponsiveController();
|
3483
|
+
this.changeEventEmitter = createEventEmitSlimmer(VegaCalendar, VegaChange);
|
3484
|
+
this.eventClickEmitter = createEventEmitSlimmer(VegaCalendar, VegaEventClick);
|
3485
|
+
this.dateDblClickEmitter = createEventEmitSlimmer(VegaCalendar, VegaDateDblClick);
|
3486
|
+
this.moreActionClickEmitter = createEventEmitSlimmer(VegaCalendar, VegaMoreActionClick);
|
3487
|
+
this.changeEventPrevent = new ChildNodesEventPreventSlimmer([VegaChange], () => this.switchPanelRenderer.getSwitchPanelRef());
|
3488
|
+
this.timeFormatNotifySlimmer = createSubStateNotifySlimmer(VegaCalendar, 'timeFormat', 'watchTimeFormat');
|
3489
|
+
this.showEventColorBarNotifySlimmer = createSubStateNotifySlimmer(VegaCalendar, 'showEventColorBar', 'watchShowEventColorBar');
|
3490
|
+
this.showAllEventsInDayOrWeekView = false;
|
3491
|
+
this.calendarEvents = [];
|
3492
|
+
/**
|
3493
|
+
* Specifies the current view mode of the calendar.
|
3494
|
+
*
|
3495
|
+
* @vegaVersion 2.14.0
|
3496
|
+
*/
|
3497
|
+
/* eslint-disable-next-line @stencil/strict-mutable */
|
3498
|
+
this.viewMode = 'month';
|
3499
|
+
/**
|
3500
|
+
* Specifies the time format of the calendar.
|
3501
|
+
*
|
3502
|
+
* @vegaVersion 2.14.0
|
3503
|
+
*/
|
3504
|
+
this.timeFormat = '24-hour';
|
3505
|
+
/**
|
3506
|
+
* Controls the visibility of the calendar's event color bar.
|
3507
|
+
*
|
3508
|
+
* @vegaVersion 2.21.0
|
3509
|
+
*/
|
3510
|
+
this.showEventColorBar = true;
|
3511
|
+
/**
|
3512
|
+
* Controls the visibility of the weekend columns in the calendar.
|
3513
|
+
*
|
3514
|
+
* @vegaVersion __VEGA_VERSION__
|
3515
|
+
*/
|
3516
|
+
this.showWeekends = true;
|
3517
|
+
}
|
3518
|
+
/**
|
3519
|
+
* Tracks changes to the current period state.
|
3520
|
+
*
|
3521
|
+
* @param {CalendarPeriod} newValue Specifies the new calendar period.
|
3522
|
+
* @param {CalendarPeriod} oldValue Specifies the old calendar period.
|
3523
|
+
*/
|
3524
|
+
watchCurrentPeriodChange(newValue, oldValue) {
|
3525
|
+
}
|
3526
|
+
/**
|
3527
|
+
* Watch the view mode change
|
3528
|
+
*
|
3529
|
+
* @param {VegaCalendarViewModeType} newValue the new value of view mode
|
3530
|
+
*/
|
3531
|
+
watchViewModeChange(newValue) {
|
3532
|
+
}
|
3533
|
+
/**
|
3534
|
+
* Watch the calendar events change
|
3535
|
+
*
|
3536
|
+
* @param {VegaCalendarRawEvent[]} newValue
|
3537
|
+
*/
|
3538
|
+
watchEventsChange(newValue) {
|
3539
|
+
}
|
3540
|
+
/**
|
3541
|
+
* Watches changes in the calendar's time format.
|
3542
|
+
*
|
3543
|
+
* @param {TimeFormat} newValue
|
3544
|
+
*/
|
3545
|
+
watchTimeFormat(newValue) {
|
3546
|
+
}
|
3547
|
+
/**
|
3548
|
+
* Monitors changes in the visibility of the calendar's event color bar.
|
3549
|
+
*
|
3550
|
+
* @param {boolean} newValue
|
3551
|
+
*/
|
3552
|
+
watchShowEventColorBar(newValue) {
|
3553
|
+
}
|
3554
|
+
/**
|
3555
|
+
* Monitors changes in the visibility of the weekend columns in the calendar.
|
3556
|
+
*/
|
3557
|
+
watchShowWeekendsChange() {
|
3558
|
+
}
|
3559
|
+
render() {
|
3560
|
+
return sanitizeVegaComponent(h(Host, null, this.renderer.render()), this.host);
|
3561
|
+
}
|
3562
|
+
get host() { return getElement(this); }
|
3563
|
+
static get watchers() { return {
|
3564
|
+
"currentPeriod": ["watchCurrentPeriodChange"],
|
3565
|
+
"viewMode": ["watchViewModeChange"],
|
3566
|
+
"events": ["watchEventsChange"],
|
3567
|
+
"timeFormat": ["watchTimeFormat"],
|
3568
|
+
"showEventColorBar": ["watchShowEventColorBar"],
|
3569
|
+
"showWeekends": ["watchShowWeekendsChange"]
|
3570
|
+
}; }
|
3571
|
+
};
|
3572
|
+
__decorate$7([
|
3573
|
+
InjectVegaGlobalSlimmer()
|
3574
|
+
], VegaCalendar.prototype, "globalSlimmer", void 0);
|
3575
|
+
__decorate$7([
|
3576
|
+
InjectVegaSlimmer()
|
3577
|
+
], VegaCalendar.prototype, "translationSlimmer", void 0);
|
3578
|
+
__decorate$7([
|
3579
|
+
InjectVegaSlimmer()
|
3580
|
+
], VegaCalendar.prototype, "vegaComponentUsageRuntimeMetricsSlimmer", void 0);
|
3581
|
+
__decorate$7([
|
3582
|
+
InjectVegaSlimmer()
|
3583
|
+
], VegaCalendar.prototype, "renderer", void 0);
|
3584
|
+
__decorate$7([
|
3585
|
+
InjectVegaSlimmer()
|
3586
|
+
], VegaCalendar.prototype, "switchPanelRenderer", void 0);
|
3587
|
+
__decorate$7([
|
3588
|
+
InjectVegaSlimmer()
|
3589
|
+
], VegaCalendar.prototype, "viewRenderer", void 0);
|
3590
|
+
__decorate$7([
|
3591
|
+
InjectVegaSlimmer()
|
3592
|
+
], VegaCalendar.prototype, "monthViewRenderer", void 0);
|
3593
|
+
__decorate$7([
|
3594
|
+
InjectVegaSlimmer()
|
3595
|
+
], VegaCalendar.prototype, "viewWithTimeRenderer", void 0);
|
3596
|
+
__decorate$7([
|
3597
|
+
InjectVegaSlimmer()
|
3598
|
+
], VegaCalendar.prototype, "timeLineRenderer", void 0);
|
3599
|
+
__decorate$7([
|
3600
|
+
InjectVegaSlimmer()
|
3601
|
+
], VegaCalendar.prototype, "monthEventRenderer", void 0);
|
3602
|
+
__decorate$7([
|
3603
|
+
InjectVegaSlimmer()
|
3604
|
+
], VegaCalendar.prototype, "currentPeriodController", void 0);
|
3605
|
+
__decorate$7([
|
3606
|
+
InjectVegaSlimmer()
|
3607
|
+
], VegaCalendar.prototype, "calendarViewController", void 0);
|
3608
|
+
__decorate$7([
|
3609
|
+
InjectVegaSlimmer()
|
3610
|
+
], VegaCalendar.prototype, "dayViewFullDayEventRenderer", void 0);
|
3611
|
+
__decorate$7([
|
3612
|
+
InjectVegaSlimmer()
|
3613
|
+
], VegaCalendar.prototype, "dayViewFullDayEventMoreButtonRenderer", void 0);
|
3614
|
+
__decorate$7([
|
3615
|
+
InjectVegaSlimmer()
|
3616
|
+
], VegaCalendar.prototype, "dayViewTimedEventRenderer", void 0);
|
3617
|
+
__decorate$7([
|
3618
|
+
InjectVegaSlimmer()
|
3619
|
+
], VegaCalendar.prototype, "eventItemRenderer", void 0);
|
3620
|
+
__decorate$7([
|
3621
|
+
InjectVegaSlimmer()
|
3622
|
+
], VegaCalendar.prototype, "dayViewEventLayoutRenderer", void 0);
|
3623
|
+
__decorate$7([
|
3624
|
+
InjectVegaSlimmer()
|
3625
|
+
], VegaCalendar.prototype, "fullDayEventLayoutRenderer", void 0);
|
3626
|
+
__decorate$7([
|
3627
|
+
InjectVegaSlimmer()
|
3628
|
+
], VegaCalendar.prototype, "calendarEventController", void 0);
|
3629
|
+
__decorate$7([
|
3630
|
+
InjectVegaSlimmer()
|
3631
|
+
], VegaCalendar.prototype, "eventResponsiveController", void 0);
|
3632
|
+
__decorate$7([
|
3633
|
+
InjectVegaSlimmer()
|
3634
|
+
], VegaCalendar.prototype, "changeEventEmitter", void 0);
|
3635
|
+
__decorate$7([
|
3636
|
+
InjectVegaSlimmer()
|
3637
|
+
], VegaCalendar.prototype, "eventClickEmitter", void 0);
|
3638
|
+
__decorate$7([
|
3639
|
+
InjectVegaSlimmer()
|
3640
|
+
], VegaCalendar.prototype, "dateDblClickEmitter", void 0);
|
3641
|
+
__decorate$7([
|
3642
|
+
InjectVegaSlimmer()
|
3643
|
+
], VegaCalendar.prototype, "moreActionClickEmitter", void 0);
|
3644
|
+
__decorate$7([
|
3645
|
+
InjectVegaSlimmer()
|
3646
|
+
], VegaCalendar.prototype, "changeEventPrevent", void 0);
|
3647
|
+
__decorate$7([
|
3648
|
+
InjectVegaSlimmer()
|
3649
|
+
], VegaCalendar.prototype, "timeFormatNotifySlimmer", void 0);
|
3650
|
+
__decorate$7([
|
3651
|
+
InjectVegaSlimmer()
|
3652
|
+
], VegaCalendar.prototype, "showEventColorBarNotifySlimmer", void 0);
|
3653
|
+
VegaCalendar.style = vegaCalendarCss;
|
3654
|
+
|
3655
|
+
const clockThree = {
|
3656
|
+
icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 13.3 10.7 24 24 24H360c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"/></svg>`,
|
3657
|
+
};
|
3658
|
+
|
3659
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
3660
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3661
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
3662
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
3663
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
3664
|
+
};
|
3665
|
+
/** The `VegaCalendarEventRenderer` class is a TypeScript React component used for rendering calendar events with different display modes and custom styling. */
|
3666
|
+
class VegaCalendarEventRenderer extends VegaSlimmer {
|
3667
|
+
/*
|
3668
|
+
* The below method is e2e-test covered in
|
3669
|
+
* @see{module:vega-calendar-event-title-max-height-e2e}
|
3670
|
+
*/
|
3671
|
+
/* istanbul ignore next */
|
3672
|
+
/**
|
3673
|
+
* This function returns the event title container as a nullable HTMLDivElement.
|
3674
|
+
*
|
3675
|
+
* @returns {Nullable<HTMLDivElement>} The method `getEventTitleContainer` is returning a nullable HTMLDivElement.
|
3676
|
+
*/
|
3677
|
+
getEventTitleContainerRef() {
|
3678
|
+
return this.eventTitleContainerRef;
|
3679
|
+
}
|
3680
|
+
/**
|
3681
|
+
* Get the calendar event slot container element
|
3682
|
+
*
|
3683
|
+
* @returns {Nullable<HTMLDivElement>} a div element
|
3684
|
+
*/
|
3685
|
+
getSlotContainerRef() {
|
3686
|
+
return this.slotContainerRef;
|
3687
|
+
}
|
3688
|
+
/**
|
3689
|
+
* The function conditionally renders either a group event or a normal event based on a boolean flag.
|
3690
|
+
*
|
3691
|
+
* @returns {HTMLElement} the event element
|
3692
|
+
*/
|
3693
|
+
render() {
|
3694
|
+
return (h(Fragment, null,
|
3695
|
+
this.injectBackgroundColorStyle(),
|
3696
|
+
this.calendarEventRender()));
|
3697
|
+
}
|
3698
|
+
/**
|
3699
|
+
* The vega calendar event default render
|
3700
|
+
*
|
3701
|
+
* @returns {HTMLElement} calendar event element
|
3702
|
+
*/
|
3703
|
+
calendarEventRender() {
|
3704
|
+
return this.calendarEvent.isAllDayEvent || this.calendarEvent.isGroupEvent()
|
3705
|
+
? this.renderBackgroundModeEvent()
|
3706
|
+
: this.renderNormalEvent();
|
3707
|
+
}
|
3708
|
+
/**
|
3709
|
+
* render background mode event element
|
3710
|
+
*
|
3711
|
+
* @returns {HTMLDivElement} div element
|
3712
|
+
*/
|
3713
|
+
renderBackgroundModeEvent() {
|
3714
|
+
const disabled = this.calendarEvent.disabled;
|
3715
|
+
return (h("div", { role: "button", tabIndex: 0, class: {
|
3716
|
+
'slot-container': this.slotMode,
|
3717
|
+
'background-color-mode': true,
|
3718
|
+
'event-bg-color': !disabled,
|
3719
|
+
'bg-disabled': disabled,
|
3720
|
+
}, ref: (node) => (this.slotContainerRef = node) }, this.slotMode ? this.getSlotElement() : this.calendarEvent.title));
|
3721
|
+
}
|
3722
|
+
/**
|
3723
|
+
* render event element
|
3724
|
+
*
|
3725
|
+
* @returns {HTMLAnchorElement} event element
|
3726
|
+
*/
|
3727
|
+
renderNormalEvent() {
|
3728
|
+
const { variant = 'primary', disabled } = this.calendarEvent;
|
3729
|
+
const isMonthEvent = !this.host.classList.contains('day-event');
|
3730
|
+
const classMap = {
|
3731
|
+
'slot-container': this.slotMode,
|
3732
|
+
'event-container': true,
|
3733
|
+
'disabled': disabled,
|
3734
|
+
[variant]: true,
|
3735
|
+
};
|
3736
|
+
if (isMonthEvent) {
|
3737
|
+
return (h("div", { role: "button", tabIndex: 0, class: classMap, ref: (node) => (this.slotContainerRef = node) },
|
3738
|
+
!this.slotMode && this.renderEventStatus(),
|
3739
|
+
this.slotMode ? this.getSlotElement() : this.defaultNormalMonthEventContentRender()));
|
3740
|
+
}
|
3741
|
+
else {
|
3742
|
+
const eventDuration = this.calendarEvent.getEventDuration();
|
3743
|
+
return (h("div", { part: "event-container", class: Object.assign(Object.assign({}, classMap), { 'vertical': eventDuration > 30, 'duration-half-an-hour': eventDuration === 30, 'event-bg-color': !disabled, 'bg-disabled': disabled }), role: "button", tabIndex: 0, ref: (node) => (this.slotContainerRef = node) },
|
3744
|
+
!this.slotMode && this.renderEventStatus(),
|
3745
|
+
h("div", { class: "cover-block" }),
|
3746
|
+
this.slotMode
|
3747
|
+
? this.getSlotElement()
|
3748
|
+
: this.defaultNormalTimedEventContentRender(eventDuration)));
|
3749
|
+
}
|
3750
|
+
}
|
3751
|
+
/**
|
3752
|
+
* render event status element, a color badge or a color bar element
|
3753
|
+
*
|
3754
|
+
* @returns {Nullable<HTMLDivElement>} div element
|
3755
|
+
*/
|
3756
|
+
renderEventStatus() {
|
3757
|
+
if (this.showColorBar) {
|
3758
|
+
const disabled = this.calendarEvent.disabled;
|
3759
|
+
return (h("div", { class: {
|
3760
|
+
'event-status': true,
|
3761
|
+
'event-bg-color': !disabled,
|
3762
|
+
'bg-disabled': disabled,
|
3763
|
+
} },
|
3764
|
+
h("span", { class: {
|
3765
|
+
stripe: this.calendarEvent.variant === 'secondary',
|
3766
|
+
} })));
|
3767
|
+
}
|
3768
|
+
}
|
3769
|
+
/**
|
3770
|
+
* Render the month view timed event.
|
3771
|
+
*
|
3772
|
+
* @returns {HTMLElement} a div element
|
3773
|
+
*/
|
3774
|
+
defaultNormalMonthEventContentRender() {
|
3775
|
+
const { startTime, title } = this.calendarEvent;
|
3776
|
+
return h("div", { class: "event-title" }, `${this.formatDisplayTime(startTime)} ${title}`);
|
3777
|
+
}
|
3778
|
+
/**
|
3779
|
+
* Render the day view timed event.
|
3780
|
+
*
|
3781
|
+
* @param {number} eventDuration the event duration
|
3782
|
+
* @returns {HTMLElement} a div element
|
3783
|
+
*/
|
3784
|
+
defaultNormalTimedEventContentRender(eventDuration) {
|
3785
|
+
const { startTime, endTime, title } = this.calendarEvent;
|
3786
|
+
return (h("div", { class: "event-content" },
|
3787
|
+
h("div", { class: {
|
3788
|
+
'event-title': true,
|
3789
|
+
'title-word-wrap': eventDuration > 30,
|
3790
|
+
}, ref: (node) => (this.eventTitleContainerRef = node) }, title),
|
3791
|
+
h("div", { class: "event-time" },
|
3792
|
+
h("vega-icon", { size: "size-12", icon: VegaInternalIconManager.getIconKey('clock-three') }),
|
3793
|
+
h("span", null, `${this.formatDisplayTime(startTime)} - ${this.formatDisplayTime(endTime)}`))));
|
3794
|
+
}
|
3795
|
+
/**
|
3796
|
+
* Return a slot element if the calendar is not a repeat event
|
3797
|
+
*
|
3798
|
+
* @returns {Nullable<HTMLElement>} slot element or null
|
3799
|
+
*/
|
3800
|
+
getSlotElement() {
|
3801
|
+
if (!this.calendarEvent.isRepeatEvent) {
|
3802
|
+
return h("slot", null);
|
3803
|
+
}
|
3804
|
+
}
|
3805
|
+
/**
|
3806
|
+
* render the custom color style tag element
|
3807
|
+
*
|
3808
|
+
* @returns {HTMLStyleElement} style element
|
3809
|
+
*/
|
3810
|
+
injectBackgroundColorStyle() {
|
3811
|
+
return h("style", null, this.colorController.getBackgroundColorStyle());
|
3812
|
+
}
|
3813
|
+
/**
|
3814
|
+
* Takes a time string as input and formats it to ensure it always has two digits for hours and minutes.
|
3815
|
+
*
|
3816
|
+
* @param {string} timeString the event time string
|
3817
|
+
* @returns {string} time string after format
|
3818
|
+
*/
|
3819
|
+
formatDisplayTime(timeString) {
|
3820
|
+
const [hour, minutes] = timeString.split(':');
|
3821
|
+
if (this.timeFormat === '24-hour') {
|
3822
|
+
return `${hour.padStart(2, '0')}:${minutes.padStart(2, '0')}`;
|
3823
|
+
}
|
3824
|
+
else {
|
3825
|
+
const hourNum = Number(hour);
|
3826
|
+
const amPm = hourNum >= 12 ? 'pm' : 'am';
|
3827
|
+
const minutesResult = minutes.padStart(2, '0');
|
3828
|
+
if (hourNum > 12) {
|
3829
|
+
return `${hourNum - 12}:${minutesResult} pm`;
|
3830
|
+
}
|
3831
|
+
else if (hourNum === 0) {
|
3832
|
+
return `12:${minutesResult} am`;
|
3833
|
+
}
|
3834
|
+
else {
|
3835
|
+
return `${hourNum}:${minutesResult} ${amPm}`;
|
3836
|
+
}
|
3837
|
+
}
|
3838
|
+
}
|
3839
|
+
}
|
3840
|
+
(() => {
|
3841
|
+
VegaInternalIconManager.register({
|
3842
|
+
'clock-three': clockThree,
|
3843
|
+
});
|
3844
|
+
})();
|
3845
|
+
__decorate$6([
|
3846
|
+
MapToComponentField()
|
3847
|
+
], VegaCalendarEventRenderer.prototype, "host", void 0);
|
3848
|
+
__decorate$6([
|
3849
|
+
MapToComponentField()
|
3850
|
+
], VegaCalendarEventRenderer.prototype, "timeFormat", void 0);
|
3851
|
+
__decorate$6([
|
3852
|
+
MapToComponentField()
|
3853
|
+
], VegaCalendarEventRenderer.prototype, "calendarEvent", void 0);
|
3854
|
+
__decorate$6([
|
3855
|
+
MapToComponentField()
|
3856
|
+
], VegaCalendarEventRenderer.prototype, "slotMode", void 0);
|
3857
|
+
__decorate$6([
|
3858
|
+
MapToComponentField()
|
3859
|
+
], VegaCalendarEventRenderer.prototype, "showColorBar", void 0);
|
3860
|
+
__decorate$6([
|
3861
|
+
MapToComponentField()
|
3862
|
+
], VegaCalendarEventRenderer.prototype, "colorController", void 0);
|
3863
|
+
|
3864
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
3865
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3866
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
3867
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
3868
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
3869
|
+
};
|
3870
|
+
/** The `VegaCalendarEventBgColorController` class in TypeScript provides methods to handle background color for calendar events based on a color map and custom color variables. */
|
3871
|
+
class VegaCalendarEventBgColorController extends VegaSlimmer {
|
3872
|
+
/**
|
3873
|
+
* Get the background color css string from the background token or background color string
|
3874
|
+
*
|
3875
|
+
* @returns {string} css string
|
3876
|
+
*/
|
3877
|
+
getBackgroundColorStyle() {
|
3878
|
+
const color = this.calendarEvent.color || 'bg-accent6-primary';
|
3879
|
+
if (isBackgroundColorTokenType(color)) {
|
3880
|
+
return `.event-bg-color{${stateBackgroundColorFormatter.formatToken(color)}}`;
|
3881
|
+
}
|
3882
|
+
else {
|
3883
|
+
return `.event-bg-color{background-color:${color}}`;
|
3884
|
+
}
|
3885
|
+
}
|
3886
|
+
}
|
3887
|
+
__decorate$5([
|
3888
|
+
MapToComponentField()
|
3889
|
+
], VegaCalendarEventBgColorController.prototype, "calendarEvent", void 0);
|
3890
|
+
|
3891
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
3892
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3893
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
3894
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
3895
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
3896
|
+
};
|
3897
|
+
/** The `VegaCalendarEventSubStateController` class in TypeScript initializes a calendar with specified subStates. */
|
3898
|
+
class VegaCalendarEventSubStateController extends SubStateObserverSlimmer {
|
3899
|
+
/**
|
3900
|
+
* The constructor function initializes a calendar with specified subStates in TypeScript.
|
3901
|
+
*/
|
3902
|
+
constructor() {
|
3903
|
+
super({
|
3904
|
+
/**
|
3905
|
+
* Get the calendar event component parent calendar component
|
3906
|
+
*
|
3907
|
+
* @returns {HTMLElement} the parent calendar component
|
3908
|
+
*/
|
3909
|
+
parent: () => {
|
3910
|
+
return this.host['data-calendar-ref'];
|
3911
|
+
},
|
3912
|
+
subStates: [
|
3913
|
+
{
|
3914
|
+
subStateName: 'timeFormat',
|
3915
|
+
parentStateName: 'timeFormat',
|
3916
|
+
},
|
3917
|
+
{
|
3918
|
+
subStateName: 'showColorBar',
|
3919
|
+
parentStateName: 'showEventColorBar',
|
3920
|
+
},
|
3921
|
+
],
|
3922
|
+
});
|
3923
|
+
}
|
3924
|
+
}
|
3925
|
+
__decorate$4([
|
3926
|
+
MapToComponentField({ writable: true })
|
3927
|
+
], VegaCalendarEventSubStateController.prototype, "timeFormat", void 0);
|
3928
|
+
__decorate$4([
|
3929
|
+
MapToComponentField({ writable: true })
|
3930
|
+
], VegaCalendarEventSubStateController.prototype, "showColorBar", void 0);
|
3931
|
+
|
3932
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
3933
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3934
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
3935
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
3936
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
3937
|
+
};
|
3938
|
+
/**
|
3939
|
+
* The `VegaCalendarTitleMaxHeightController` class in TypeScript sets the maximum height for
|
3940
|
+
* a vertical title element based on its line height and current height.
|
3941
|
+
*/
|
3942
|
+
class VegaCalendarTitleMaxHeightController extends VegaSlimmer {
|
3943
|
+
/*
|
3944
|
+
* The below method is e2e-test covered in
|
3945
|
+
* @see{module:vega-calendar-event-title-max-height-e2e}
|
3946
|
+
*/
|
3947
|
+
/* istanbul ignore next */
|
3948
|
+
/**
|
3949
|
+
* The function sets the maximum height of a vertical title element based on its line height and
|
3950
|
+
* current height.
|
3951
|
+
*/
|
3952
|
+
setVerticalTitleMaxHeight() {
|
3953
|
+
const title = this.renderer.getEventTitleContainerRef();
|
3954
|
+
if (title && title.classList.contains('title-word-wrap')) {
|
3955
|
+
const styles = window.getComputedStyle(title);
|
3956
|
+
const height = parsePixelStringToNumber(styles.height);
|
3957
|
+
const lineHeight = parsePixelStringToNumber(styles.lineHeight);
|
3958
|
+
// We need to ensure that at least one line is displayed
|
3959
|
+
const maxLines = Math.max(Math.floor(height / lineHeight), 1);
|
3960
|
+
title.style.maxHeight = `${maxLines * lineHeight}px`;
|
3961
|
+
}
|
3962
|
+
}
|
3963
|
+
}
|
3964
|
+
__decorate$3([
|
3965
|
+
MapToComponentField()
|
3966
|
+
], VegaCalendarTitleMaxHeightController.prototype, "renderer", void 0);
|
3967
|
+
|
3968
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
3969
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3970
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
3971
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
3972
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
3973
|
+
};
|
3974
|
+
/** The controller will check the calendar render mode when component will mode and copy the slot element to calendar event if the calendar event is a repeat event or the event displayed in popover */
|
3975
|
+
class VegaCalendarEventSlotController extends VegaSlimmer {
|
3976
|
+
/**
|
3977
|
+
* Find the current calendar event slot element, if the slot element is exists, set the calendar even slotMode to true, and store the current slot element.
|
3978
|
+
*/
|
3979
|
+
findTheCalendarEventSlot() {
|
3980
|
+
if (this.calendarEvent) {
|
3981
|
+
const { event: rawEvent } = this.calendarEvent;
|
3982
|
+
const calendar = this.getParentCalendarElement();
|
3983
|
+
if (calendar) {
|
3984
|
+
const matchSlot = calendar.querySelector(`vega-calendar-event-slot[event-key='${rawEvent.key}']`);
|
3985
|
+
if (matchSlot) {
|
3986
|
+
this.slotMode = true;
|
3987
|
+
this.matchSlotElement = matchSlot;
|
3988
|
+
}
|
3989
|
+
}
|
3990
|
+
}
|
3991
|
+
}
|
3992
|
+
/**
|
3993
|
+
* Append the current slot content to slot container if the calendar event is a repeat event or the calendar event render in a popover.
|
3994
|
+
*/
|
3995
|
+
appendTheRepeatEventSlotToContainer() {
|
3996
|
+
const slotContainerRef = this.renderer.getSlotContainerRef();
|
3997
|
+
if (this.slotMode && slotContainerRef && this.matchSlotElement) {
|
3998
|
+
if (this.calendarEvent.isRepeatEvent || this.isPopoverContent()) {
|
3999
|
+
const contentElement = this.matchSlotElement.cloneNode(true);
|
4000
|
+
contentElement.removeAttribute('slot');
|
4001
|
+
const existSlot = slotContainerRef.querySelector('vega-calendar-event-slot');
|
4002
|
+
if (!existSlot) {
|
4003
|
+
slotContainerRef.appendChild(contentElement);
|
4004
|
+
}
|
4005
|
+
}
|
4006
|
+
}
|
4007
|
+
}
|
4008
|
+
/**
|
4009
|
+
* This method is responsible for finding and returning the parent `vega-calendar` element of the current component instance
|
4010
|
+
*
|
4011
|
+
* @returns {HTMLElement} The vega calendar element
|
4012
|
+
*/
|
4013
|
+
getParentCalendarElement() {
|
4014
|
+
return this.host['data-calendar-ref'];
|
4015
|
+
}
|
4016
|
+
/**
|
4017
|
+
* Check the calendar is in popover
|
4018
|
+
*
|
4019
|
+
* @returns {boolean} true or false
|
4020
|
+
*/
|
4021
|
+
isPopoverContent() {
|
4022
|
+
return this.host.classList.contains('calendar-event-in-popover');
|
4023
|
+
}
|
4024
|
+
}
|
4025
|
+
__decorate$2([
|
4026
|
+
MapToComponentField()
|
4027
|
+
], VegaCalendarEventSlotController.prototype, "host", void 0);
|
4028
|
+
__decorate$2([
|
4029
|
+
MapToComponentField()
|
4030
|
+
], VegaCalendarEventSlotController.prototype, "calendarEvent", void 0);
|
4031
|
+
__decorate$2([
|
4032
|
+
MapToComponentField({ writable: true })
|
4033
|
+
], VegaCalendarEventSlotController.prototype, "slotMode", void 0);
|
4034
|
+
__decorate$2([
|
4035
|
+
MapToComponentField()
|
4036
|
+
], VegaCalendarEventSlotController.prototype, "renderer", void 0);
|
4037
|
+
__decorate$2([
|
4038
|
+
MapToComponentMethod('componentWillLoad')
|
4039
|
+
], VegaCalendarEventSlotController.prototype, "findTheCalendarEventSlot", null);
|
4040
|
+
__decorate$2([
|
4041
|
+
MapToComponentMethod('componentDidLoad')
|
4042
|
+
], VegaCalendarEventSlotController.prototype, "appendTheRepeatEventSlotToContainer", null);
|
4043
|
+
|
4044
|
+
const vegaCalendarEventCss = ".bg-disabled{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}:host{display:block;box-sizing:border-box;width:100%}:host .background-color-mode{border-radius:2px;color:rgba(var(--v-text-black, 32, 54, 69, 1));font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;cursor:pointer;overflow:hidden;white-space:nowrap}@media screen and (min-width: 768px) and (max-width: 1023px){:host .background-color-mode{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .background-color-mode{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .background-color-mode{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host .background-color-mode:not(.slot-container){padding-left:8px;padding-right:8px}:host .background-color-mode:focus{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}:host .event-container{display:block;width:100%;border-radius:4px;cursor:pointer;box-sizing:border-box;overflow:hidden}:host .background-color-mode.slot-container{height:16px;line-height:16px}:host ::slotted(vega-calendar-event-slot){position:relative;pointer-events:none}:host(.month-event) .event-container{display:flex;flex-direction:row;gap:4px;align-items:center;min-height:16px}:host(.month-event) .event-container:not(.slot-container){padding-left:2px;padding-right:2px}:host(.month-event) .event-container .event-status{width:8px;height:8px;box-sizing:border-box;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;margin-left:2px;flex-shrink:0}:host(.month-event) .event-container .event-status span{display:none;width:100%;height:100%;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host(.month-event) .event-container .event-title{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:400;line-height:16px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));flex-grow:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.month-event) .event-container .event-title{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.month-event) .event-container .event-title{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.month-event) .event-container .event-title{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:400;line-height:16px}}:host(.month-event) .event-container.secondary .event-status span{display:block;background-size:4px 4px;opacity:0.8}:host(.month-event) .event-container.tertiary .event-status{padding:1px}:host(.month-event) .event-container.tertiary .event-status span{display:block;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}:host(.month-event) .event-container.disabled .event-status{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}:host(.month-event) .event-container:hover{background-color:rgba(var(--v-bg-action-secondary-hover, 4, 112, 236, 0.1))}:host(.month-event) .event-container:active{background-color:rgba(var(--v-bg-action-secondary-active, 29, 65, 195, 0.1))}:host(.month-event) .event-container:focus{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}:host(.day-event) .event-container{position:relative}:host(.day-event) .event-container:not(.slot-container){padding-left:8px;padding-right:8px}:host(.day-event) .event-container .event-status{position:absolute;width:4px;height:100%;left:0;top:0;z-index:1}:host(.day-event) .event-container .event-status span{display:none}:host(.day-event) .event-container .cover-block{position:absolute;height:100%;width:100%;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:4px;left:0;top:0;opacity:0.7}:host(.day-event) .event-container .event-content,:host(.day-event) .event-container .event-time{display:flex;flex-direction:row;align-items:center}:host(.day-event) .event-container .event-content{gap:8px;position:relative;height:100%;box-sizing:border-box}:host(.day-event) .event-container .event-time{gap:4px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:\"Inter\", sans-serif;font-size:12px;font-weight:400;line-height:16px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.day-event) .event-container .event-time{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.day-event) .event-container .event-time{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.day-event) .event-container .event-time{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:400;line-height:16px}}:host(.day-event) .event-container .event-time vega-icon{flex-shrink:0}:host(.day-event) .event-container .event-time span{white-space:nowrap}:host(.day-event) .event-container .event-title{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.day-event) .event-container .event-title{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.day-event) .event-container .event-title{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.day-event) .event-container .event-title{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.day-event) .event-container .event-title.title-word-wrap{overflow:hidden}:host(.day-event) .event-container .event-title:not(.title-word-wrap){white-space:nowrap}:host(.day-event) .event-container.duration-half-an-hour{padding-top:8px;padding-bottom:8px}:host(.day-event) .event-container.vertical{height:100%}:host(.day-event) .event-container.vertical .event-content{flex-direction:column;align-items:flex-start;gap:4px;padding-top:8px;padding-bottom:8px}:host(.day-event) .event-container.secondary .event-status span,:host(.day-event) .event-container.tertiary .event-status span{display:block;position:absolute;border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.day-event) .event-container.secondary .cover-block,:host(.day-event) .event-container.tertiary .cover-block{width:calc(100% - 2px);height:calc(100% - 2px);top:1px;left:1px}:host(.day-event) .event-container.secondary .event-status span{width:100%;height:100%;top:0px;left:0px;background-size:4px 4px;opacity:0.8}:host(.day-event) .event-container.secondary .cover-block{opacity:0.9}:host(.day-event) .event-container.tertiary .event-status span{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));width:2px;height:calc(100% - 2px);top:1px;left:1px}:host(.day-event) .event-container.tertiary .cover-block{opacity:1}:host(.day-event) .event-container.disabled{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}:host(.day-event) .event-container.disabled .event-status{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}:host(.day-event) .event-container:focus{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}:host(.day-event) .slot-container{min-height:16px}:host(.month-event.calendar-event-large-size) .background-color-mode{border-radius:4px}:host(.month-event.calendar-event-large-size) .background-color-mode:not(.slot-container){padding-top:4px;padding-bottom:4px}:host(.month-event.calendar-event-large-size) .event-container:not(.slot-container){padding-top:4px;padding-bottom:4px}:host(.month-event.calendar-event-large-size) .slot-container{height:24px;display:flex;align-items:center;line-height:24px}.stripe{background-image:linear-gradient(-45deg, transparent 25%, rgba(var(--v-bg-primary, 252, 252, 252, 1)) 25% 50%, transparent 50% 75%, rgba(var(--v-bg-primary, 252, 252, 252, 1)) 75% 100%)}";
|
4045
|
+
|
4046
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
4047
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4048
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
4049
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
4050
|
+
else
|
4051
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
4052
|
+
if (d = decorators[i])
|
4053
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
4054
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
4055
|
+
};
|
4056
|
+
const VegaCalendarEvent = class {
|
4057
|
+
constructor(hostRef) {
|
4058
|
+
registerInstance(this, hostRef);
|
4059
|
+
this.globalSlimmer = {};
|
4060
|
+
this.pageResizeObserverSlimmer = new PageResizeObserverSlimmer({
|
4061
|
+
target: () => this.host,
|
4062
|
+
callback:
|
4063
|
+
/**
|
4064
|
+
* The below method is e2e-test covered in
|
4065
|
+
* @see{module:vega-calendar-event-title-max-height-e2e}
|
4066
|
+
*/
|
4067
|
+
/* istanbul ignore next */
|
4068
|
+
() => this.titleMaxHeightController.setVerticalTitleMaxHeight(),
|
4069
|
+
});
|
4070
|
+
this.vegaComponentUsageRuntimeMetricsSlimmer = new VegaComponentUsageRuntimeMetricsSlimmer();
|
4071
|
+
this.renderer = new VegaCalendarEventRenderer();
|
4072
|
+
this.colorController = new VegaCalendarEventBgColorController();
|
4073
|
+
this.slotController = new VegaCalendarEventSlotController();
|
4074
|
+
this.subStateController = new VegaCalendarEventSubStateController();
|
4075
|
+
this.titleMaxHeightController = new VegaCalendarTitleMaxHeightController();
|
4076
|
+
this.timeFormat = '24-hour';
|
4077
|
+
this.slotMode = false;
|
4078
|
+
this.showColorBar = true;
|
4079
|
+
}
|
4080
|
+
render() {
|
4081
|
+
slotPlaceholder(h("slot", null));
|
4082
|
+
return sanitizeVegaComponent(h(Host, null, this.calendarEvent ? this.renderer.render() : null), this.host);
|
4083
|
+
}
|
4084
|
+
get host() { return getElement(this); }
|
4085
|
+
};
|
4086
|
+
__decorate$1([
|
4087
|
+
InjectVegaGlobalSlimmer()
|
4088
|
+
], VegaCalendarEvent.prototype, "globalSlimmer", void 0);
|
4089
|
+
__decorate$1([
|
4090
|
+
InjectVegaSlimmer()
|
4091
|
+
], VegaCalendarEvent.prototype, "pageResizeObserverSlimmer", void 0);
|
4092
|
+
__decorate$1([
|
4093
|
+
InjectVegaSlimmer()
|
4094
|
+
], VegaCalendarEvent.prototype, "vegaComponentUsageRuntimeMetricsSlimmer", void 0);
|
4095
|
+
__decorate$1([
|
4096
|
+
InjectVegaSlimmer()
|
4097
|
+
], VegaCalendarEvent.prototype, "renderer", void 0);
|
4098
|
+
__decorate$1([
|
4099
|
+
InjectVegaSlimmer()
|
4100
|
+
], VegaCalendarEvent.prototype, "colorController", void 0);
|
4101
|
+
__decorate$1([
|
4102
|
+
InjectVegaSlimmer()
|
4103
|
+
], VegaCalendarEvent.prototype, "slotController", void 0);
|
4104
|
+
__decorate$1([
|
4105
|
+
InjectVegaSlimmer()
|
4106
|
+
], VegaCalendarEvent.prototype, "subStateController", void 0);
|
4107
|
+
__decorate$1([
|
4108
|
+
InjectVegaSlimmer()
|
4109
|
+
], VegaCalendarEvent.prototype, "titleMaxHeightController", void 0);
|
4110
|
+
VegaCalendarEvent.style = vegaCalendarEventCss;
|
4111
|
+
|
4112
|
+
const vegaCalendarEventSlotCss = ":host{width:100%;height:100%;position:relative}";
|
4113
|
+
|
4114
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
4115
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4116
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
4117
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
4118
|
+
else
|
4119
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
4120
|
+
if (d = decorators[i])
|
4121
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
4122
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
4123
|
+
};
|
4124
|
+
const VegaCalendarEventSlot = class {
|
4125
|
+
constructor(hostRef) {
|
4126
|
+
registerInstance(this, hostRef);
|
4127
|
+
this.globalSlimmer = {};
|
4128
|
+
this.vegaComponentUsageRuntimeMetricsSlimmer = new VegaComponentUsageRuntimeMetricsSlimmer();
|
4129
|
+
}
|
4130
|
+
render() {
|
4131
|
+
return sanitizeVegaComponent(h(Host, { slot: getCalendarEventSlotName(this.eventKey) }, h("slot", null)), this.host);
|
4132
|
+
}
|
4133
|
+
get host() { return getElement(this); }
|
4134
|
+
};
|
4135
|
+
__decorate([
|
4136
|
+
InjectVegaGlobalSlimmer()
|
4137
|
+
], VegaCalendarEventSlot.prototype, "globalSlimmer", void 0);
|
4138
|
+
__decorate([
|
4139
|
+
InjectVegaSlimmer()
|
4140
|
+
], VegaCalendarEventSlot.prototype, "vegaComponentUsageRuntimeMetricsSlimmer", void 0);
|
4141
|
+
VegaCalendarEventSlot.style = vegaCalendarEventSlotCss;
|
4142
|
+
|
4143
|
+
export { VegaCalendar as vega_calendar, VegaCalendarEvent as vega_calendar_event, VegaCalendarEventSlot as vega_calendar_event_slot };
|