@heartlandone/vega 2.0.0-temp-test-0.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-44d18beb.js → app-globals-54d42962.js} +12 -13
- package/dist/cjs/{array-e1e5ed1d.js → array-5f977aa2.js} +0 -12
- package/dist/cjs/breakpoints-97c1f5c8.js +66 -0
- package/dist/cjs/{childNodesEventPreventSlimmer-ab75a6a2.js → childNodesEventPreventSlimmer-4b96b18b.js} +10 -11
- package/dist/cjs/{childNodesNotifyObserverSlimmer-cc6d9d8d.js → childNodesNotifyObserverSlimmer-77d939be.js} +6 -7
- package/dist/cjs/{component-de54cd0d.js → component-b50f0483.js} +2 -5
- package/dist/cjs/componentGlobalStyleSlimmer-d988c66b.js +88 -0
- package/dist/cjs/date-177d34ab.js +95 -0
- package/dist/cjs/designToken-a55d5476.js +460 -0
- package/dist/cjs/{dynamic-slimmer-028b0e61.js → dynamic-slimmer-c718b7d9.js} +2 -3
- package/dist/cjs/{elementAppender-f0ebe01e.js → elementAppender-e585dbc9.js} +17 -17
- package/dist/cjs/{subStateNotifySlimmer-d704ac90.js → elementAppenderSlimmer-853b7f89.js} +33 -101
- package/dist/cjs/{eventEmitSlimmer-63a34620.js → eventEmitSlimmer-f0546f9d.js} +157 -10
- package/dist/cjs/{featureFlagController-daf977be.js → featureFlagController-e3dc9be9.js} +19 -2
- package/dist/cjs/{formFieldControllerSlimmer-b50512f8.js → formFieldControllerSlimmer-69ea8396.js} +181 -108
- package/dist/cjs/{index-ced28bc0.js → index-1299d729.js} +94 -460
- package/dist/cjs/index.cjs.js +22 -20
- package/dist/cjs/{injectKeyboardManager-1bffba97.js → injectKeyboardManager-59ac5d96.js} +5 -3
- package/dist/cjs/{internalVegaEventManager-a5ad4b61.js → internalVegaEventManager-cfb1df83.js} +175 -46
- package/dist/cjs/{keyboardManager-e8331705.js → keyboardManager-1ea14f2e.js} +3 -15
- package/dist/cjs/keyboardManagerSlimmer-7d750268.js +40 -0
- package/dist/cjs/{legendInputProcessor-12cf2dfe.js → legendInputProcessor-88c81168.js} +1 -1
- package/dist/cjs/loader.cjs.js +14 -16
- package/dist/cjs/{misc-3d30df91.js → misc-0197689b.js} +0 -10
- package/dist/cjs/{pageResizeObserverSlimmer-f83ef66f.js → pageResizeObserverSlimmer-9751395d.js} +5 -6
- package/dist/cjs/{responsiveFormatFacade-8bfed8eb.js → responsiveFormatFacade-8518443e.js} +133 -6
- package/dist/cjs/{staticSubjectTitle-9a2a1b10.js → staticSubjectTitle-b02c917c.js} +0 -4
- package/dist/cjs/stringMaskStrategy-b22eb314.js +183 -0
- package/dist/cjs/{subStateObserverSlimmer-6c750137.js → subStateObserverSlimmer-96ca747f.js} +47 -9
- package/dist/cjs/{typeGuard-46915d8c.js → typeGuard-70b919b6.js} +315 -27
- package/dist/cjs/{ui-25a66a2a.js → ui-23cd9abb.js} +16 -0
- package/dist/cjs/ui-ef822fe1.js +43 -0
- package/dist/cjs/vega-accordion.cjs.entry.js +22 -26
- package/dist/cjs/vega-app-footer.cjs.entry.js +11 -8
- package/dist/cjs/vega-app-header-button.cjs.entry.js +21 -25
- package/dist/cjs/vega-backdrop.cjs.entry.js +150 -0
- package/dist/cjs/vega-bar-chart.cjs.entry.js +4 -4
- package/dist/cjs/vega-box.cjs.entry.js +156 -11
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +16 -21
- package/dist/cjs/vega-button-circle.cjs.entry.js +21 -20
- package/dist/cjs/vega-button-link.cjs.entry.js +10 -15
- package/dist/cjs/vega-button.cjs.entry.js +151 -0
- package/dist/cjs/vega-card.cjs.entry.js +149 -0
- package/dist/cjs/vega-carousel.cjs.entry.js +484 -0
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +558 -0
- package/dist/cjs/vega-chip.cjs.entry.js +17 -21
- package/dist/cjs/vega-color-picker.cjs.entry.js +16 -31
- package/dist/cjs/vega-combo-box.cjs.entry.js +26 -41
- package/dist/cjs/vega-counter-badge.cjs.entry.js +2 -3
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +1908 -0
- package/dist/cjs/vega-dialog_2.cjs.entry.js +594 -0
- package/dist/cjs/{vega-dropdown.cjs.entry.js → vega-dropdown_5.cjs.entry.js} +763 -205
- package/dist/cjs/vega-field-error.cjs.entry.js +6 -8
- package/dist/cjs/vega-field-label.cjs.entry.js +90 -0
- package/dist/cjs/vega-flex.cjs.entry.js +78 -0
- package/dist/cjs/vega-font.cjs.entry.js +52 -160
- package/dist/cjs/vega-form.cjs.entry.js +51 -49
- package/dist/cjs/vega-grid.cjs.entry.js +89 -0
- package/dist/cjs/vega-icon.cjs.entry.js +210 -0
- package/dist/cjs/vega-image-uploader.cjs.entry.js +27 -42
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +21 -33
- package/dist/cjs/vega-input-select.cjs.entry.js +585 -0
- package/dist/cjs/vega-input.cjs.entry.js +534 -0
- package/dist/cjs/vega-item-toggle.cjs.entry.js +13 -41
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +976 -0
- package/dist/cjs/vega-line-chart.cjs.entry.js +376 -0
- package/dist/cjs/{vega-loading-indicator.cjs.entry.js → vega-loader-wrapper_2.cjs.entry.js} +36 -10
- package/dist/cjs/{vega-page-notification.cjs.entry.js → vega-page-notification_2.cjs.entry.js} +32 -6
- package/dist/cjs/vega-pagination.cjs.entry.js +16 -21
- package/dist/cjs/vega-pie-chart.cjs.entry.js +4 -5
- package/dist/cjs/{injectElementAppender-bfece2a0.js → vega-popover_2.cjs.entry.js} +185 -3
- package/dist/cjs/vega-progress-tracker.cjs.entry.js +183 -0
- package/dist/cjs/vega-radio_2.cjs.entry.js +543 -0
- package/dist/cjs/{vega-slimmer-f026897e.js → vega-slimmer-af488dc3.js} +30 -0
- package/dist/cjs/vega-slot-container.cjs.entry.js +17 -1
- package/dist/cjs/vega-stepper.cjs.entry.js +27 -70
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +1194 -0
- package/dist/cjs/vega-table_8.cjs.entry.js +3869 -0
- package/dist/cjs/vega-text.cjs.entry.js +114 -55
- package/dist/cjs/vega-textarea.cjs.entry.js +17 -30
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +2051 -0
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +95 -0
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +141 -45
- package/dist/cjs/vega.cjs.js +14 -16
- package/dist/cjs/{vegaDialogController-d2ae40fb.js → vegaDialogController-01bddb6a.js} +1 -1
- package/dist/cjs/{vegaEventManager-ab0f12ff.js → vegaEventManager-2da0ff37.js} +1445 -12
- package/dist/cjs/{yAxisInputProcessor-c0f51130.js → yAxisInputProcessor-b32e5aa0.js} +2 -2
- package/dist/collection/collection-manifest.json +277 -7
- package/dist/collection/components/vega-accordion/slimmers/vega-accordion-renderer.js +1 -1
- package/dist/collection/components/vega-accordion/vega-accordion.css +17 -26
- package/dist/collection/components/vega-app-footer/vega-app-footer.css +1 -1
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.css +1 -1
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +4 -4
- package/dist/collection/components/vega-backdrop/vega-backdrop.css +1 -1
- package/dist/collection/components/vega-backdrop/vega-backdrop.js +5 -1
- 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 +2109 -19
- package/dist/collection/components/vega-box/vega-box.js +264 -4
- package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-collapsed-item-renderer.js +1 -1
- package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-item-renderer.js +2 -2
- package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.css +1 -1
- package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.js +5 -5
- package/dist/collection/components/vega-button/vega-button.css +1 -1
- package/dist/collection/components/vega-button/vega-button.js +1 -1
- package/dist/collection/components/vega-button-circle/vega-button-circle.css +1 -1
- package/dist/collection/components/vega-button-circle/vega-button-circle.js +45 -1
- package/dist/collection/components/vega-button-link/vega-button-link.css +27 -1
- package/dist/collection/components/vega-card/vega-card.css +1 -1
- package/dist/collection/components/vega-carousel/vega-carousel.css +1 -1
- package/dist/collection/components/vega-carousel/vega-carousel.js +1 -1
- package/dist/collection/components/vega-chart/vega-bar-chart/vega-bar-chart.css +1 -1
- package/dist/collection/components/vega-chart/vega-line-chart/vega-line-chart.css +1 -1
- package/dist/collection/components/vega-chart/vega-pie-chart/vega-pie-chart.css +1 -1
- package/dist/collection/components/vega-checkbox/slimmers/controllers/vega-checkbox-show-error-controller.js +10 -17
- package/dist/collection/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.css +1 -1
- package/dist/collection/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.js +6 -97
- package/dist/collection/components/vega-checkbox/vega-checkbox.css +1 -1
- package/dist/collection/components/vega-checkbox/vega-checkbox.js +1 -54
- package/dist/collection/components/vega-chip/vega-chip.css +1 -1
- package/dist/collection/components/vega-color-picker/vega-color-picker.css +1 -1
- package/dist/collection/components/vega-color-picker/vega-color-picker.js +3 -54
- package/dist/collection/components/vega-combo-box/vega-combo-box.css +1 -1
- package/dist/collection/components/vega-combo-box/vega-combo-box.js +7 -56
- package/dist/collection/components/vega-counter-badge/vega-counter-badge.css +1 -1
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +5 -6
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-range-input-renderer.js +1 -1
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-renderer.js +1 -9
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-single-input-renderer.js +1 -1
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +1 -1
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +13 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker.css +1 -1
- package/dist/collection/components/vega-date-picker/vega-date-picker.js +1 -92
- package/dist/collection/components/vega-dialog/vega-dialog.css +1 -1
- package/dist/collection/components/vega-dialog/vega-dialog.js +3 -3
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-children-controller.js +17 -10
- package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-search-renderer.js +1 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown-content-box/vega-dropdown-content-box.css +1 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown-content-box/vega-dropdown-content-box.js +5 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown-group/vega-dropdown-group.css +1 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.css +1 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.js +1 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown.css +1 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +2 -2
- package/dist/collection/components/vega-field-error/vega-field-error.css +1 -1
- package/dist/collection/components/vega-field-label/vega-field-label.css +1 -1
- package/dist/collection/components/vega-flex/vega-flex.css +75 -1
- package/dist/collection/components/vega-flex/vega-flex.js +70 -2
- package/dist/collection/components/vega-font/slimmers/controllers/vega-font-as-controller.js +10 -140
- package/dist/collection/components/vega-font/slimmers/renderers/vega-font-renderer.js +18 -0
- package/dist/collection/components/vega-font/vega-font.css +1 -1
- package/dist/collection/components/vega-font/vega-font.js +8 -3
- package/dist/collection/components/vega-form/vega-form.css +1 -1
- package/dist/collection/components/vega-form/vega-form.js +27 -19
- package/dist/collection/components/vega-grid/vega-grid.css +1 -1
- package/dist/collection/components/vega-grid/vega-grid.js +2 -2
- package/dist/collection/components/vega-icon/vega-icon.css +2 -1
- package/dist/collection/components/vega-image-uploader/slimmers/controllers/vega-image-uploader-actions-visibility-controller.js +2 -2
- package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-actions-renderer.js +1 -1
- package/dist/collection/components/vega-image-uploader/vega-image-uploader.css +1 -1
- package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +1 -51
- package/dist/collection/components/vega-input/vega-input.css +1 -1
- package/dist/collection/components/vega-input/vega-input.js +3 -92
- package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.css +1 -1
- package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.js +6 -51
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-dropdown-controller.js +4 -4
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +7 -1
- package/dist/collection/components/vega-input-select/vega-input-select.css +1 -1
- package/dist/collection/components/vega-input-select/vega-input-select.js +3 -86
- package/dist/collection/components/vega-item-toggle/vega-item-toggle.css +1 -13
- package/dist/collection/components/vega-item-toggle/vega-item-toggle.js +2 -40
- package/dist/collection/components/vega-loader-wrapper/vega-loader-wrapper.css +1 -1
- package/dist/collection/components/vega-loader-wrapper/vega-loader-wrapper.js +13 -0
- package/dist/collection/components/vega-loading-indicator/vega-loading-indicator.css +1 -1
- package/dist/collection/components/vega-modal/vega-modal.css +1 -1
- package/dist/collection/components/vega-modal/vega-modal.js +7 -1
- package/dist/collection/components/vega-nav/vega-left-nav/vega-left-nav.css +1 -1
- package/dist/collection/components/vega-nav/vega-left-nav/vega-left-nav.js +1 -1
- package/dist/collection/components/vega-nav/vega-left-nav-group/vega-left-nav-group.css +1 -1
- package/dist/collection/components/vega-nav/vega-left-nav-group/vega-left-nav-group.js +1 -1
- package/dist/collection/components/vega-nav/vega-left-nav-link/vega-left-nav-link.css +1 -1
- package/dist/collection/components/vega-nav/vega-left-nav-section/vega-left-nav-section.css +1 -1
- package/dist/collection/components/vega-nav/vega-nav-card/vega-nav-card.css +1 -1
- package/dist/collection/components/vega-page-notification/vega-page-notification-list/vega-page-notification-list.css +1 -1
- package/dist/collection/components/vega-page-notification/vega-page-notification-list/vega-page-notification-list.js +13 -0
- package/dist/collection/components/vega-page-notification/vega-page-notification.css +1 -1
- package/dist/collection/components/vega-pagination/internal/vega-pagination-go-to.js +2 -2
- package/dist/collection/components/vega-pagination/internal/vega-pagination-page-selector.js +1 -1
- package/dist/collection/components/vega-pagination/internal/vega-pagination-page-size-selector.js +1 -1
- package/dist/collection/components/vega-pagination/vega-pagination.css +1 -1
- package/dist/collection/components/vega-popover/vega-popover-content-box/vega-popover-content-box.css +1 -1
- package/dist/collection/components/vega-popover/vega-popover-content-box/vega-popover-content-box.js +13 -0
- package/dist/collection/components/vega-popover/vega-popover.css +1 -1
- package/dist/collection/components/vega-popover/vega-popover.js +2 -2
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.css +1 -1
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +2 -2
- package/dist/collection/components/vega-radio/slimmers/controllers/vega-radio-show-error-controller.js +13 -14
- package/dist/collection/components/vega-radio/vega-radio-group/vega-radio-group.css +1 -1
- package/dist/collection/components/vega-radio/vega-radio-group/vega-radio-group.js +6 -99
- package/dist/collection/components/vega-radio/vega-radio.css +1 -1
- package/dist/collection/components/vega-slot-container/vega-slot-container.js +13 -0
- package/dist/collection/components/vega-stepper/vega-stepper.css +1 -1
- package/dist/collection/components/vega-stepper/vega-stepper.js +15 -134
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-direction-button-renderer.js +1 -1
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.js +1 -1
- package/dist/collection/components/vega-tab-group/vega-tab-group-panel/vega-tab-group-panel.css +1 -1
- package/dist/collection/components/vega-tab-group/vega-tab-group.css +1 -1
- package/dist/collection/components/vega-tab-group/vega-tab-group.js +1 -1
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-header-renderer.js +1 -1
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-pagination-renderer.js +2 -2
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-row-renderer.js +1 -1
- package/dist/collection/components/vega-table/vega-table-body/vega-table-body.css +1 -1
- package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.css +2 -2
- package/dist/collection/components/vega-table/vega-table-expand-row/vega-table-expand-row.css +1 -1
- package/dist/collection/components/vega-table/vega-table-head/vega-table-head.css +1 -1
- package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.css +2 -2
- package/dist/collection/components/vega-table/vega-table-head-row/slimmers/renderers/vega-table-head-row-renderer.js +1 -1
- package/dist/collection/components/vega-table/vega-table-head-row/vega-table-head-row.css +1 -1
- package/dist/collection/components/vega-table/vega-table-row/slimmers/renderers/vega-table-row-renderer.js +1 -1
- package/dist/collection/components/vega-table/vega-table-row/vega-table-row.css +1 -1
- package/dist/collection/components/vega-table/vega-table.css +1 -1
- package/dist/collection/components/vega-text/slimmers/renderers/vega-text-tooltip-renderer.js +135 -0
- package/dist/collection/components/vega-text/vega-text.css +1 -1
- package/dist/collection/components/vega-text/vega-text.js +40 -92
- package/dist/collection/components/vega-textarea/vega-textarea.css +1 -1
- package/dist/collection/components/vega-textarea/vega-textarea.js +1 -50
- package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-range-input-renderer.js +3 -3
- package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-single-dropdown-renderer.js +2 -2
- package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-single-input-renderer.js +3 -3
- package/dist/collection/components/vega-time-picker/vega-time-picker-dropdown/vega-time-picker-dropdown.css +1 -1
- package/dist/collection/components/vega-time-picker/vega-time-picker-dropdown/vega-time-picker-dropdown.js +13 -0
- package/dist/collection/components/vega-time-picker/vega-time-picker.css +1 -1
- package/dist/collection/components/vega-time-picker/vega-time-picker.js +1 -47
- package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.css +1 -1
- package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.js +1 -1
- package/dist/collection/components/vega-tooltip/slimmers/controllers/vega-tooltip-element-appender-controller.js +62 -0
- package/dist/collection/components/vega-tooltip/slimmers/renderers/vega-tooltip-content-box-renderer.js +22 -0
- package/dist/collection/components/vega-tooltip/vega-tooltip-content-box/vega-tooltip-content-box.css +31 -5
- package/dist/collection/components/vega-tooltip/vega-tooltip-content-box/vega-tooltip-content-box.js +17 -4
- package/dist/collection/components/vega-tooltip/vega-tooltip.css +1 -1
- package/dist/collection/components/vega-tooltip/vega-tooltip.js +70 -28
- package/dist/collection/constants/misc.js +0 -56
- package/dist/collection/constants/tokens/borderRadius.js +10 -10
- package/dist/collection/constants/tokens/borders.js +31 -0
- package/dist/collection/constants/tokens/colors.js +182 -0
- package/dist/collection/constants/tokens/overridableColorTokens.js +3 -3
- package/dist/collection/constants/tokens/shadows.js +12 -0
- package/dist/collection/constants/ui.js +2 -0
- package/dist/collection/decorators/property-decorators/injectKeyboardManager.js +4 -2
- package/dist/collection/decorators/property-decorators/tests/injectElementAppenderProxy.test.js +1 -1
- package/dist/collection/decorators/property-decorators/tests/injectKeyboardManager.test.js +9 -1
- package/dist/collection/helpers/change-manager/subject/dom-node-subject/domNodeSubjectFactory.js +1 -1
- package/dist/collection/helpers/change-manager/subject/dom-node-subject/domNodeSubjectObserverFactory.js +3 -3
- package/dist/collection/helpers/change-manager/test/domNodeSubjectFactory.test.js +3 -3
- package/dist/collection/helpers/event-manager/event-delegated/baseStrategy.js +15 -1
- package/dist/collection/helpers/event-manager/event-delegated/jqueryDelegatedStrategyController.js +2 -2
- package/dist/collection/helpers/event-manager/eventID/vegaEventId.js +8 -0
- package/dist/collection/helpers/event-manager/eventID/vegaInternalEventId.js +21 -0
- package/dist/collection/helpers/event-manager/internalVegaEventManager.js +1 -1
- package/dist/collection/helpers/event-manager/slimmers/childNodesEventPreventSlimmer.js +3 -3
- package/dist/collection/helpers/event-manager/slimmers/event-emit-handlers/jqueryDelegatedEventEmitHandler.js +2 -2
- package/dist/collection/helpers/event-manager/slimmers/eventEmitSlimmer.js +2 -2
- package/dist/collection/helpers/event-manager/test/childNodesEventPreventSlimmer.test.js +1 -1
- package/dist/collection/helpers/event-manager/test/childNodesNotifyObserverSlimmer.test.js +1 -1
- package/dist/collection/helpers/event-manager/test/jqueryDelegatedStrategyController.test.js +34 -1
- package/dist/collection/helpers/event-manager/vegaEventManager.js +1 -1
- package/dist/collection/helpers/feature-control/featureFlagsMap.js +19 -2
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveBorderRadiusFomatter.js +56 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveFormatFacade.js +6 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveWidthAndHeightFormatter.js +52 -0
- package/dist/collection/helpers/formatter/state-formatter/stateBackgroundColorFormatter.js +46 -0
- package/dist/collection/helpers/formatter/state-formatter/stateBorderColorFormatter.js +45 -0
- package/dist/collection/helpers/formatter/state-formatter/stateBorderFormatter.js +47 -0
- package/dist/collection/helpers/formatter/state-formatter/stateFormatFacade.js +42 -0
- package/dist/collection/helpers/formatter/state-formatter/stateShadowFormatter.js +42 -0
- package/dist/collection/helpers/formatter/state-formatter/stateVariantFormatter.js +35 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsiveBorderRadiusFormatter.test.js +64 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsiveFormatMediator.test.js +4 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsiveWidthAndHeightFormatter.test.js +20 -0
- package/dist/collection/helpers/formatter/test/state-formatter/stateBackgroundColorFormatter.test.js +18 -0
- package/dist/collection/helpers/formatter/test/state-formatter/stateBorderColorFormatter.test.js +13 -0
- package/dist/collection/helpers/formatter/test/state-formatter/stateBorderFormatter.test.js +13 -0
- package/dist/collection/helpers/formatter/test/state-formatter/stateFormatFacade.test.js +27 -0
- package/dist/collection/helpers/formatter/test/state-formatter/stateShadowFormatter.test.js +13 -0
- package/dist/collection/helpers/keyboard/keyboardManager.js +3 -15
- package/dist/collection/helpers/slimmers/elementAppenderSlimmer.js +23 -15
- package/dist/collection/helpers/slimmers/fieldErrorUiControllerSlimmer.js +26 -38
- package/dist/collection/helpers/slimmers/formFieldControllerSlimmer.js +9 -26
- package/dist/collection/helpers/slimmers/formFieldValidInvokeSlimmer.js +55 -0
- package/dist/collection/helpers/slimmers/global/vegaWatchMethodCancelSlimmer.js +2 -1
- package/dist/collection/helpers/slimmers/keyboardManagerSlimmer.js +2 -1
- package/dist/collection/helpers/slimmers/test/elementAppenderSlimmer.test.js +92 -2
- package/dist/collection/helpers/slimmers/test/fieldErrorControllerSlimmer.test.js +1 -1
- package/dist/collection/helpers/slimmers/test/formFieldControllerSlimmer.test.js +5 -44
- package/dist/collection/helpers/slimmers/test/formFieldValidInvokeSlimmer.test.js +106 -0
- package/dist/collection/helpers/slimmers/test/global/vegaWatchMethodCancelSlimmer.test.js +23 -0
- package/dist/collection/helpers/slimmers/test/keyboardManagerSlimmer.test.js +9 -1
- package/dist/collection/helpers/slimmers/test/pageResizeObserverSlimmer.test.js +1 -1
- package/dist/collection/helpers/touch-helper/test/touchListener.test.js +1 -1
- package/dist/collection/helpers/validator/formFieldController.js +43 -15
- package/dist/collection/helpers/validator/test/validator/formFieldController.test.js +69 -19
- package/dist/collection/polyfill/test-polyfill/unit/createTouchEvent.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 +23 -0
- package/dist/collection/types/test/typeGuard.test.js +8 -1
- package/dist/collection/types/typeGuard.js +66 -12
- package/dist/collection/utils/component.js +2 -5
- package/dist/collection/utils/designToken.js +49 -5
- package/dist/collection/utils/test/component.test.js +0 -31
- package/dist/collection/utils/test/designToken.test.js +17 -3
- package/dist/collection/utils/test/ui.test.js +20 -1
- package/dist/collection/utils/testUtils.js +13 -4
- package/dist/collection/utils/ui.js +15 -0
- package/dist/esm/{app-globals-eb6caa92.js → app-globals-23df32db.js} +9 -10
- package/dist/esm/{array-195d7d64.js → array-e1522673.js} +1 -12
- package/dist/esm/{breakpoints-3152fa9c.js → breakpoints-900a4c99.js} +2 -29
- package/dist/esm/{childNodesEventPreventSlimmer-7229b70d.js → childNodesEventPreventSlimmer-65a53b20.js} +8 -9
- package/dist/esm/{childNodesNotifyObserverSlimmer-616bfa28.js → childNodesNotifyObserverSlimmer-0d2eac09.js} +4 -5
- package/dist/esm/{component-ff56c5f5.js → component-e4eb3f14.js} +2 -5
- package/dist/esm/componentGlobalStyleSlimmer-10980768.js +86 -0
- package/dist/esm/date-f031fe13.js +87 -0
- package/dist/esm/designToken-9b27a244.js +447 -0
- package/dist/esm/{dynamic-slimmer-16826d2b.js → dynamic-slimmer-c8ad78de.js} +1 -2
- package/dist/esm/{elementAppender-d9abb547.js → elementAppender-4e1e8de0.js} +8 -8
- package/dist/esm/{subStateNotifySlimmer-afeceb8e.js → elementAppenderSlimmer-d4cbab06.js} +32 -98
- package/dist/esm/{eventEmitSlimmer-da1fd54e.js → eventEmitSlimmer-d605ac81.js} +155 -11
- package/dist/esm/{featureFlagController-5d7e64f1.js → featureFlagController-f5c118d6.js} +19 -2
- package/dist/esm/{formFieldControllerSlimmer-4b2250b8.js → formFieldControllerSlimmer-862c5c79.js} +171 -100
- package/dist/esm/{global-slimmer-registry-f1dec4a2.js → global-slimmer-registry-b91c742d.js} +1 -1
- package/dist/esm/{index-3e41c219.js → index-c3505689.js} +94 -460
- package/dist/esm/index.js +15 -17
- package/dist/esm/{inject-vega-global-slimmer-0e6dd982.js → inject-vega-global-slimmer-c3f84156.js} +1 -1
- package/dist/esm/{injectKeyboardManager-0d5713b7.js → injectKeyboardManager-8157140d.js} +5 -3
- package/dist/esm/{internalVegaEventManager-4ab886bc.js → internalVegaEventManager-efa77ebb.js} +106 -7
- package/dist/esm/{keyboardManager-73a24265.js → keyboardManager-0a038e77.js} +3 -15
- package/dist/esm/keyboardManagerSlimmer-69d10dfc.js +38 -0
- package/dist/esm/{legendInputProcessor-c730fa05.js → legendInputProcessor-73659534.js} +1 -1
- package/dist/esm/loader.js +15 -17
- package/dist/esm/{misc-9fdbcfbb.js → misc-c21a85c9.js} +1 -10
- package/dist/esm/{pageResizeObserverSlimmer-ee15d7fd.js → pageResizeObserverSlimmer-b476bb1f.js} +3 -4
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{responsiveFormatFacade-949f8957.js → responsiveFormatFacade-e91e14ac.js} +132 -5
- package/dist/esm/{staticSubjectTitle-ba738b9d.js → staticSubjectTitle-bb1e9570.js} +1 -3
- package/dist/esm/stringMaskStrategy-c463fad7.js +180 -0
- package/dist/esm/{subStateObserverSlimmer-7b44f3ec.js → subStateObserverSlimmer-450d79de.js} +44 -7
- package/dist/esm/{typeGuard-b2943363.js → typeGuard-5e282437.js} +303 -23
- package/dist/esm/ui-535c5fb3.js +32 -0
- package/dist/esm/{ui-608b4032.js → ui-6e5294cb.js} +16 -1
- package/dist/esm/vega-accordion.entry.js +18 -22
- package/dist/esm/vega-app-footer.entry.js +9 -6
- package/dist/esm/vega-app-header-button.entry.js +20 -24
- package/dist/esm/vega-backdrop.entry.js +146 -0
- package/dist/esm/vega-bar-chart.entry.js +6 -6
- package/dist/esm/vega-box.entry.js +157 -12
- package/dist/esm/vega-breadcrumb.entry.js +16 -21
- package/dist/esm/vega-button-circle.entry.js +21 -20
- package/dist/esm/vega-button-link.entry.js +10 -15
- package/dist/esm/vega-button.entry.js +147 -0
- package/dist/esm/vega-card.entry.js +145 -0
- package/dist/esm/vega-carousel.entry.js +480 -0
- package/dist/esm/vega-checkbox_2.entry.js +553 -0
- package/dist/esm/vega-chip.entry.js +16 -20
- package/dist/esm/vega-color-picker.entry.js +17 -32
- package/dist/esm/vega-combo-box.entry.js +24 -39
- package/dist/esm/vega-counter-badge.entry.js +4 -5
- package/dist/esm/vega-date-picker_2.entry.js +1903 -0
- package/dist/esm/vega-dialog_2.entry.js +589 -0
- package/dist/esm/{vega-dropdown.entry.js → vega-dropdown_5.entry.js} +732 -178
- package/dist/esm/vega-field-error.entry.js +6 -8
- package/dist/esm/vega-field-label.entry.js +86 -0
- package/dist/esm/vega-flex.entry.js +74 -0
- package/dist/esm/vega-font.entry.js +54 -162
- package/dist/esm/vega-form.entry.js +44 -42
- package/dist/esm/vega-grid.entry.js +85 -0
- package/dist/esm/vega-icon.entry.js +206 -0
- package/dist/esm/vega-image-uploader.entry.js +20 -35
- package/dist/esm/vega-input-credit-card.entry.js +19 -31
- package/dist/esm/vega-input-select.entry.js +581 -0
- package/dist/esm/vega-input.entry.js +530 -0
- package/dist/esm/vega-item-toggle.entry.js +11 -39
- package/dist/esm/{vega-left-nav.entry.js → vega-left-nav_5.entry.js} +545 -126
- package/dist/esm/vega-line-chart.entry.js +372 -0
- package/dist/esm/{vega-loading-indicator.entry.js → vega-loader-wrapper_2.entry.js} +38 -13
- package/dist/esm/{vega-page-notification.entry.js → vega-page-notification_2.entry.js} +34 -9
- package/dist/esm/vega-pagination.entry.js +14 -19
- package/dist/esm/vega-pie-chart.entry.js +6 -7
- package/dist/esm/{injectElementAppender-408d92be.js → vega-popover_2.entry.js} +182 -3
- package/dist/esm/vega-progress-tracker.entry.js +179 -0
- package/dist/esm/vega-radio_2.entry.js +538 -0
- package/dist/esm/{vega-slimmer-d63e92d9.js → vega-slimmer-ce2e45d1.js} +31 -2
- package/dist/esm/vega-slot-container.entry.js +17 -1
- package/dist/esm/vega-stepper.entry.js +28 -71
- package/dist/esm/vega-tab-group_2.entry.js +1189 -0
- package/dist/esm/vega-table_8.entry.js +3858 -0
- package/dist/esm/vega-text.entry.js +116 -57
- package/dist/esm/vega-textarea.entry.js +16 -29
- package/dist/esm/vega-time-picker_2.entry.js +2046 -0
- package/dist/esm/vega-toggle-switch.entry.js +91 -0
- package/dist/esm/vega-tooltip_2.entry.js +142 -46
- package/dist/esm/vega.js +15 -17
- package/dist/esm/{vegaDialogController-a23aae0f.js → vegaDialogController-69cc3f35.js} +1 -1
- package/dist/esm/{vegaEventManager-bf1be12b.js → vegaEventManager-50e19845.js} +1443 -12
- package/dist/esm/{yAxisInputProcessor-1441a62c.js → yAxisInputProcessor-e30d7e4c.js} +2 -2
- package/dist/types/components/vega-backdrop/vega-backdrop.d.ts +2 -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 +68 -2
- package/dist/types/components/vega-breadcrumb/vega-breadcrumb.d.ts +4 -4
- package/dist/types/components/vega-button/vega-button.d.ts +2 -1
- package/dist/types/components/vega-button-circle/types.d.ts +7 -0
- package/dist/types/components/vega-button-circle/vega-button-circle.d.ts +9 -1
- package/dist/types/components/vega-carousel/vega-carousel.d.ts +1 -1
- package/dist/types/components/vega-checkbox/slimmers/controllers/vega-checkbox-show-error-controller.d.ts +2 -6
- package/dist/types/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.d.ts +2 -25
- package/dist/types/components/vega-checkbox/vega-checkbox.d.ts +0 -12
- package/dist/types/components/vega-color-picker/vega-color-picker.d.ts +1 -12
- package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +4 -15
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-renderer.d.ts +0 -2
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +2 -0
- package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +1 -24
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-children-controller.d.ts +8 -4
- package/dist/types/components/vega-dropdown/vega-dropdown-content-box/vega-dropdown-content-box.d.ts +2 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.d.ts +2 -1
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +2 -2
- package/dist/types/components/vega-flex/vega-flex.d.ts +14 -0
- package/dist/types/components/vega-font/slimmers/controllers/vega-font-as-controller.d.ts +4 -50
- package/dist/types/components/vega-font/slimmers/renderers/vega-font-renderer.d.ts +6 -0
- package/dist/types/components/vega-font/vega-font.d.ts +2 -0
- package/dist/types/components/vega-form/vega-form.d.ts +1 -1
- package/dist/types/components/vega-image-uploader/vega-image-uploader.d.ts +0 -13
- package/dist/types/components/vega-input/vega-input.d.ts +6 -27
- package/dist/types/components/vega-input-credit-card/vega-input-credit-card.d.ts +2 -12
- package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.d.ts +3 -0
- package/dist/types/components/vega-input-select/vega-input-select.d.ts +1 -20
- package/dist/types/components/vega-item-toggle/vega-item-toggle.d.ts +1 -14
- package/dist/types/components/vega-loader-wrapper/vega-loader-wrapper.d.ts +2 -0
- package/dist/types/components/vega-modal/vega-modal.d.ts +3 -1
- package/dist/types/components/vega-nav/vega-left-nav/vega-left-nav.d.ts +1 -1
- package/dist/types/components/vega-nav/vega-left-nav-group/vega-left-nav-group.d.ts +2 -1
- package/dist/types/components/vega-page-notification/vega-page-notification-list/vega-page-notification-list.d.ts +2 -0
- package/dist/types/components/vega-popover/vega-popover-content-box/vega-popover-content-box.d.ts +2 -0
- package/dist/types/components/vega-popover/vega-popover.d.ts +2 -2
- package/dist/types/components/vega-progress-tracker/vega-progress-tracker.d.ts +2 -1
- package/dist/types/components/vega-radio/slimmers/controllers/vega-radio-show-error-controller.d.ts +3 -6
- package/dist/types/components/vega-radio/vega-radio-group/vega-radio-group.d.ts +2 -26
- package/dist/types/components/vega-slot-container/vega-slot-container.d.ts +2 -0
- package/dist/types/components/vega-stepper/vega-stepper.d.ts +0 -29
- package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +1 -1
- package/dist/types/components/vega-text/slimmers/renderers/vega-text-tooltip-renderer.d.ts +54 -0
- package/dist/types/components/vega-text/types.d.ts +3 -0
- package/dist/types/components/vega-text/vega-text.d.ts +11 -35
- package/dist/types/components/vega-textarea/vega-textarea.d.ts +0 -12
- package/dist/types/components/vega-time-picker/vega-time-picker-dropdown/vega-time-picker-dropdown.d.ts +2 -0
- package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +0 -12
- package/dist/types/components/vega-toggle-switch/vega-toggle-switch.d.ts +1 -1
- package/dist/types/components/vega-tooltip/slimmers/controllers/vega-tooltip-element-appender-controller.d.ts +22 -0
- package/dist/types/components/vega-tooltip/slimmers/renderers/vega-tooltip-content-box-renderer.d.ts +8 -0
- package/dist/types/components/vega-tooltip/vega-tooltip-content-box/vega-tooltip-content-box.d.ts +4 -2
- package/dist/types/components/vega-tooltip/vega-tooltip.d.ts +19 -4
- package/dist/types/components.d.ts +161 -468
- package/dist/types/constants/misc.d.ts +0 -2
- package/dist/types/constants/tokens/borderRadius.d.ts +1 -1
- package/dist/types/constants/tokens/borders.d.ts +4 -0
- package/dist/types/constants/tokens/colors.d.ts +179 -0
- package/dist/types/constants/tokens/shadows.d.ts +3 -0
- package/dist/types/constants/ui.d.ts +1 -0
- package/dist/types/decorators/property-decorators/tests/injectElementAppenderProxy.test.d.ts +1 -1
- package/dist/types/decorators/property-decorators/tests/injectKeyboardManager.test.d.ts +1 -1
- package/dist/types/helpers/change-manager/subject/dom-node-subject/domNodeSubjectObserverFactory.d.ts +2 -2
- package/dist/types/helpers/event-manager/event-delegated/baseStrategy.d.ts +8 -0
- package/dist/types/helpers/event-manager/event-delegated/jqueryDelegatedStrategyController.d.ts +5 -5
- package/dist/types/helpers/event-manager/eventID/componentEventIdMap.d.ts +2 -2
- package/dist/types/helpers/event-manager/eventID/vegaEventId.d.ts +39 -33
- package/dist/types/helpers/event-manager/eventID/vegaEventIdInterface.d.ts +1 -4
- package/dist/types/helpers/event-manager/eventID/vegaInternalEventId.d.ts +19 -0
- package/dist/types/helpers/event-manager/internalVegaEventManager.d.ts +3 -3
- package/dist/types/helpers/event-manager/slimmers/childNodesEventPreventSlimmer.d.ts +5 -5
- package/dist/types/helpers/event-manager/slimmers/event-emit-handlers/eventEmitHandler.d.ts +2 -2
- package/dist/types/helpers/event-manager/slimmers/event-emit-handlers/jqueryDelegatedEventEmitHandler.d.ts +4 -4
- package/dist/types/helpers/event-manager/slimmers/eventEmitSlimmer.d.ts +5 -5
- package/dist/types/helpers/event-manager/test/childNodesEventPreventSlimmer.test.d.ts +1 -1
- package/dist/types/helpers/event-manager/test/childNodesNotifyObserverSlimmer.test.d.ts +1 -1
- package/dist/types/helpers/event-manager/vegaEventManager.d.ts +3 -3
- package/dist/types/helpers/feature-control/featureFlag.d.ts +3 -1
- package/dist/types/helpers/formatter/responsive-map-formatter/responsiveBorderRadiusFomatter.d.ts +27 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsiveWidthAndHeightFormatter.d.ts +33 -0
- package/dist/types/helpers/formatter/state-formatter/stateBackgroundColorFormatter.d.ts +32 -0
- package/dist/types/helpers/formatter/state-formatter/stateBorderColorFormatter.d.ts +31 -0
- package/dist/types/helpers/formatter/state-formatter/stateBorderFormatter.d.ts +33 -0
- package/dist/types/helpers/formatter/state-formatter/stateFormatFacade.d.ts +27 -0
- package/dist/types/helpers/formatter/state-formatter/stateFormatter.d.ts +3 -0
- package/dist/types/helpers/formatter/state-formatter/stateShadowFormatter.d.ts +28 -0
- package/dist/types/helpers/formatter/state-formatter/stateVariantFormatter.d.ts +23 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsiveBorderRadiusFormatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsiveWidthAndHeightFormatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/state-formatter/stateBackgroundColorFormatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/state-formatter/stateBorderColorFormatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/state-formatter/stateBorderFormatter.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/state-formatter/stateFormatFacade.test.d.ts +1 -0
- package/dist/types/helpers/formatter/test/state-formatter/stateShadowFormatter.test.d.ts +1 -0
- package/dist/types/helpers/keyboard/keyboardManager.d.ts +0 -6
- package/dist/types/helpers/slimmers/elementAppenderSlimmer.d.ts +6 -1
- package/dist/types/helpers/slimmers/fieldErrorUiControllerSlimmer.d.ts +7 -9
- package/dist/types/helpers/slimmers/formFieldControllerSlimmer.d.ts +6 -15
- package/dist/types/helpers/slimmers/formFieldValidInvokeSlimmer.d.ts +22 -0
- package/dist/types/helpers/slimmers/test/elementAppenderSlimmer.test.d.ts +1 -1
- package/dist/types/helpers/slimmers/test/fieldErrorControllerSlimmer.test.d.ts +1 -1
- package/dist/types/helpers/slimmers/test/formFieldControllerSlimmer.test.d.ts +1 -1
- package/dist/types/helpers/slimmers/test/formFieldValidInvokeSlimmer.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/test/keyboardManagerSlimmer.test.d.ts +1 -1
- package/dist/types/helpers/slimmers/test/pageResizeObserverSlimmer.test.d.ts +1 -1
- package/dist/types/helpers/theme/theme.d.ts +1 -1
- package/dist/types/helpers/validator/formFieldController.d.ts +14 -5
- package/dist/types/helpers/validator/test/validator/formFieldController.test.d.ts +1 -1
- 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/types/components.type.d.ts +16 -8
- package/dist/types/types/designToken.type.d.ts +2 -0
- package/dist/types/types/publicApi.d.ts +4 -0
- package/dist/types/types/typeGuard.d.ts +52 -11
- package/dist/types/types/ui.type.d.ts +21 -2
- package/dist/types/utils/designToken.d.ts +25 -1
- package/dist/types/utils/ui.d.ts +7 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-06c75598.entry.js +1 -0
- package/dist/vega/p-08c655b1.entry.js +1 -0
- package/dist/vega/{p-50c9b4ac.js → p-0c190870.js} +1 -1
- package/dist/vega/p-1080804e.entry.js +1 -0
- package/dist/vega/p-144ca0ab.entry.js +1 -0
- package/dist/vega/p-145af458.js +1 -0
- package/dist/vega/p-1cd083af.entry.js +1 -0
- package/dist/vega/p-1ebda78a.entry.js +1 -0
- package/dist/vega/p-23d2bfb0.js +1 -0
- package/dist/vega/p-25c42935.js +1 -0
- package/dist/vega/p-29e0e3b0.entry.js +1 -0
- package/dist/vega/p-29fc3be2.js +1 -0
- package/dist/vega/p-2e2d0eee.js +1 -0
- package/dist/vega/{p-292ec840.js → p-2e78c9d7.js} +1 -1
- package/dist/vega/p-2e7d94cc.js +1 -0
- package/dist/vega/p-30726013.entry.js +1 -0
- package/dist/vega/p-327e9a3e.entry.js +1 -0
- package/dist/vega/p-32c62db3.entry.js +1 -0
- package/dist/vega/p-3c59f6b1.entry.js +1 -0
- package/dist/vega/p-409e2bec.entry.js +1 -0
- package/dist/vega/p-45b42d1f.entry.js +1 -0
- package/dist/vega/p-469bc36e.js +1 -0
- package/dist/vega/p-471ccf0b.js +1 -0
- package/dist/vega/p-479b4e25.js +1 -0
- package/dist/vega/p-4bab2b3f.js +1 -0
- package/dist/vega/p-54f85f16.entry.js +1 -0
- package/dist/vega/p-5b0e2628.entry.js +1 -0
- package/dist/vega/p-5cc8abf6.entry.js +1 -0
- package/dist/vega/p-5fd43609.js +1 -0
- package/dist/vega/p-63676b71.js +1 -0
- package/dist/vega/p-65b15f63.entry.js +1 -0
- package/dist/vega/{p-081450d7.js → p-669e3b3f.js} +1 -1
- package/dist/vega/p-67f327d3.entry.js +1 -0
- package/dist/vega/p-67fad7cb.js +1 -0
- package/dist/vega/p-69ced4a7.entry.js +1 -0
- package/dist/vega/p-6e6ce771.entry.js +1 -0
- package/dist/vega/p-790b4922.js +1 -0
- package/dist/vega/p-79630f03.entry.js +1 -0
- package/dist/vega/p-7a09f31b.entry.js +1 -0
- package/dist/vega/{p-afc0df78.js → p-7b7a66bf.js} +1 -1
- package/dist/vega/p-80478a51.entry.js +1 -0
- package/dist/vega/p-811c4a60.entry.js +1 -0
- package/dist/vega/p-82a4e991.entry.js +1 -0
- package/dist/vega/p-8430651d.entry.js +1 -0
- package/dist/vega/p-8506001a.entry.js +1 -0
- package/dist/vega/p-85296a9a.entry.js +1 -0
- package/dist/vega/p-854e3f5f.entry.js +1 -0
- package/dist/vega/p-8e2e90a4.entry.js +1 -0
- package/dist/vega/p-9148637c.entry.js +1 -0
- package/dist/vega/p-96f54c30.js +1 -0
- package/dist/vega/p-9777b1c1.js +2 -0
- package/dist/vega/p-9d7e95fe.js +1 -0
- package/dist/vega/p-9dcfd5f2.js +1 -0
- package/dist/vega/p-aa3b4b75.entry.js +1 -0
- package/dist/vega/p-ae16c168.js +1 -0
- package/dist/vega/p-af526815.js +1 -0
- package/dist/vega/p-afc9e3d4.js +1 -0
- package/dist/vega/p-b2467703.js +1 -0
- package/dist/vega/p-b3726704.js +1 -0
- package/dist/vega/{p-b8143a53.js → p-b87c2075.js} +1 -1
- package/dist/vega/p-b8d0c7df.entry.js +1 -0
- package/dist/vega/p-bc26ead3.entry.js +13 -0
- package/dist/vega/p-bd194b02.js +1 -0
- package/dist/vega/p-bf399c33.js +1 -0
- package/dist/vega/p-bf9a2f52.entry.js +1 -0
- package/dist/vega/p-c0d77377.js +1 -0
- package/dist/vega/{p-684aea02.js → p-c44ffa92.js} +1 -1
- package/dist/vega/p-c63e43ac.entry.js +1 -0
- package/dist/vega/p-c66481b5.js +1 -0
- package/dist/vega/p-c88f6441.entry.js +1 -0
- package/dist/vega/p-cfd6c9c2.js +1 -0
- package/dist/vega/p-d01f6b04.entry.js +1 -0
- package/dist/vega/p-d2783f44.entry.js +1 -0
- package/dist/vega/p-d375c84f.entry.js +1 -0
- package/dist/vega/p-db595aac.entry.js +1 -0
- package/dist/vega/p-df5a0abf.entry.js +1 -0
- package/dist/vega/p-e1c0b53e.entry.js +1 -0
- package/dist/vega/p-e496d0e2.js +1 -0
- package/dist/vega/p-eed35a1b.entry.js +1 -0
- package/dist/vega/p-f152b5e3.entry.js +1 -0
- package/dist/vega/p-f2dcf3a0.entry.js +1 -0
- package/dist/vega/p-f4d065d3.entry.js +1 -0
- package/dist/vega/p-f625215d.entry.js +1 -0
- package/dist/vega/p-f87f8358.entry.js +1 -0
- package/dist/vega/p-faed1c2a.js +1 -0
- package/dist/vega/p-fecc9382.entry.js +1 -0
- package/dist/vega/vega.css +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +7 -6
- package/style/vega.css +1 -1
- package/dist/cjs/breakpoints-96bd8c73.js +0 -102
- package/dist/cjs/designToken-ed34a533.js +0 -188
- package/dist/cjs/domNodeSubjectObserverFactory-8663ab4f.js +0 -123
- package/dist/cjs/map-to-component-method-bdf875d3.js +0 -34
- package/dist/cjs/misc-649f158c.js +0 -11
- package/dist/cjs/observer-f49483e8.js +0 -32
- package/dist/cjs/typeGuard-e07496ac.js +0 -26
- package/dist/cjs/utils-5e451be5.js +0 -51
- package/dist/cjs/vega-backdrop_27.cjs.entry.js +0 -12597
- package/dist/cjs/vega-badge.cjs.entry.js +0 -76
- package/dist/cjs/vega-date-picker-calendar.cjs.entry.js +0 -19
- package/dist/cjs/vega-dialog.cjs.entry.js +0 -115
- package/dist/cjs/vega-dropdown-content-box.cjs.entry.js +0 -43
- package/dist/cjs/vega-dropdown-group.cjs.entry.js +0 -82
- package/dist/cjs/vega-dropdown-item.cjs.entry.js +0 -305
- package/dist/cjs/vega-header.cjs.entry.js +0 -55
- package/dist/cjs/vega-left-nav-group.cjs.entry.js +0 -148
- package/dist/cjs/vega-left-nav-link.cjs.entry.js +0 -166
- package/dist/cjs/vega-left-nav-section.cjs.entry.js +0 -74
- package/dist/cjs/vega-left-nav.cjs.entry.js +0 -553
- package/dist/cjs/vega-loader-wrapper.cjs.entry.js +0 -19
- package/dist/cjs/vega-nav-card.cjs.entry.js +0 -107
- package/dist/cjs/vega-nav-list-renderer-9da0ac45.js +0 -50
- package/dist/cjs/vega-nav-observer-slimmer-e983768b.js +0 -59
- package/dist/cjs/vega-page-notification-list.cjs.entry.js +0 -19
- package/dist/cjs/vega-popover-content-box.cjs.entry.js +0 -23
- package/dist/cjs/vega-popover.cjs.entry.js +0 -165
- package/dist/cjs/vega-table-body.cjs.entry.js +0 -48
- package/dist/cjs/vega-table-cell.cjs.entry.js +0 -104
- package/dist/cjs/vega-table-expand-row-controller-eeb7fdc2.js +0 -238
- package/dist/cjs/vega-table-expand-row.cjs.entry.js +0 -363
- package/dist/cjs/vega-table-head-cell.cjs.entry.js +0 -150
- package/dist/cjs/vega-table-head-row.cjs.entry.js +0 -286
- package/dist/cjs/vega-table-head.cjs.entry.js +0 -105
- package/dist/cjs/vega-table-row.cjs.entry.js +0 -553
- package/dist/cjs/vega-time-picker-dropdown.cjs.entry.js +0 -23
- package/dist/cjs/vega-virtual-scroll.cjs.entry.js +0 -182
- package/dist/cjs/vegaEnvManager-d53d26f0.js +0 -1440
- package/dist/cjs/vegaEventId-dfd382d2.js +0 -110
- package/dist/collection/components/vega-badge/vega-badge.css +0 -22
- package/dist/collection/components/vega-badge/vega-badge.js +0 -156
- package/dist/collection/components/vega-footer/vega-footer.js +0 -93
- package/dist/collection/components/vega-header/vega-header.js +0 -55
- package/dist/collection/components/vega-sidenav/icon/chevron-left.svg +0 -3
- package/dist/collection/components/vega-sidenav/icon/chevron-right.svg +0 -3
- package/dist/collection/components/vega-sidenav/icon/toggle-button-bg.svg +0 -3
- package/dist/collection/components/vega-sidenav/js/index.js +0 -22
- package/dist/collection/components/vega-sidenav/vega-sidenav-group.js +0 -121
- package/dist/collection/components/vega-sidenav/vega-sidenav-link.js +0 -172
- package/dist/collection/components/vega-sidenav/vega-sidenav.js +0 -580
- package/dist/collection/constants/test/picture.js +0 -9
- package/dist/collection/polyfill/testPolyfill.js +0 -64
- package/dist/esm/designToken-0b38620e.js +0 -177
- package/dist/esm/domNodeSubjectObserverFactory-8aeac4b6.js +0 -120
- package/dist/esm/map-to-component-method-4e36ea1f.js +0 -32
- package/dist/esm/misc-58f3604c.js +0 -6
- package/dist/esm/observer-3959f9dd.js +0 -30
- package/dist/esm/typeGuard-50eca553.js +0 -23
- package/dist/esm/utils-0630a720.js +0 -47
- package/dist/esm/vega-backdrop_27.entry.js +0 -12567
- package/dist/esm/vega-badge.entry.js +0 -72
- package/dist/esm/vega-date-picker-calendar.entry.js +0 -15
- package/dist/esm/vega-dialog.entry.js +0 -111
- package/dist/esm/vega-dropdown-content-box.entry.js +0 -39
- package/dist/esm/vega-dropdown-group.entry.js +0 -78
- package/dist/esm/vega-dropdown-item.entry.js +0 -301
- package/dist/esm/vega-header.entry.js +0 -51
- package/dist/esm/vega-left-nav-group.entry.js +0 -144
- package/dist/esm/vega-left-nav-link.entry.js +0 -162
- package/dist/esm/vega-left-nav-section.entry.js +0 -70
- package/dist/esm/vega-loader-wrapper.entry.js +0 -15
- package/dist/esm/vega-nav-card.entry.js +0 -103
- package/dist/esm/vega-nav-list-renderer-33134131.js +0 -48
- package/dist/esm/vega-nav-observer-slimmer-401925a0.js +0 -57
- package/dist/esm/vega-page-notification-list.entry.js +0 -15
- package/dist/esm/vega-popover-content-box.entry.js +0 -19
- package/dist/esm/vega-popover.entry.js +0 -161
- package/dist/esm/vega-table-body.entry.js +0 -44
- package/dist/esm/vega-table-cell.entry.js +0 -100
- package/dist/esm/vega-table-expand-row-controller-2ca2503b.js +0 -236
- package/dist/esm/vega-table-expand-row.entry.js +0 -359
- package/dist/esm/vega-table-head-cell.entry.js +0 -146
- package/dist/esm/vega-table-head-row.entry.js +0 -282
- package/dist/esm/vega-table-head.entry.js +0 -101
- package/dist/esm/vega-table-row.entry.js +0 -549
- package/dist/esm/vega-time-picker-dropdown.entry.js +0 -19
- package/dist/esm/vega-virtual-scroll.entry.js +0 -178
- package/dist/esm/vegaEnvManager-6d877f06.js +0 -1436
- package/dist/esm/vegaEventId-78665c18.js +0 -79
- package/dist/types/components/vega-badge/types.d.ts +0 -1
- package/dist/types/components/vega-badge/vega-badge.d.ts +0 -32
- package/dist/types/components/vega-footer/vega-footer.d.ts +0 -16
- package/dist/types/components/vega-header/vega-header.d.ts +0 -17
- package/dist/types/components/vega-sidenav/types.d.ts +0 -24
- package/dist/types/components/vega-sidenav/vega-sidenav-group.d.ts +0 -37
- package/dist/types/components/vega-sidenav/vega-sidenav-link.d.ts +0 -51
- package/dist/types/components/vega-sidenav/vega-sidenav.d.ts +0 -174
- package/dist/types/constants/test/picture.d.ts +0 -3
- package/dist/vega/p-03146aef.entry.js +0 -1
- package/dist/vega/p-0707a008.js +0 -1
- package/dist/vega/p-083d4455.js +0 -1
- package/dist/vega/p-0e553455.js +0 -1
- package/dist/vega/p-0f57513d.js +0 -1
- package/dist/vega/p-11cb6266.entry.js +0 -1
- package/dist/vega/p-1bc8e7ee.entry.js +0 -1
- package/dist/vega/p-1da70662.entry.js +0 -1
- package/dist/vega/p-22e0831f.entry.js +0 -1
- package/dist/vega/p-289382ea.entry.js +0 -1
- package/dist/vega/p-299b6f97.entry.js +0 -1
- package/dist/vega/p-303b67c5.js +0 -1
- package/dist/vega/p-31ca243c.js +0 -1
- package/dist/vega/p-331a62d5.js +0 -1
- package/dist/vega/p-34a385e4.js +0 -1
- package/dist/vega/p-3626fcb5.entry.js +0 -1
- package/dist/vega/p-381a16b8.js +0 -1
- package/dist/vega/p-42e0b877.entry.js +0 -1
- package/dist/vega/p-447a846e.js +0 -1
- package/dist/vega/p-4638e1e4.entry.js +0 -1
- package/dist/vega/p-4780e0a0.js +0 -2
- package/dist/vega/p-48238888.entry.js +0 -1
- package/dist/vega/p-4995baa3.entry.js +0 -1
- package/dist/vega/p-49b5a267.entry.js +0 -1
- package/dist/vega/p-4a651b91.js +0 -1
- package/dist/vega/p-4b25fac2.entry.js +0 -1
- package/dist/vega/p-4bd1c2b1.entry.js +0 -1
- package/dist/vega/p-4c0e46f0.js +0 -1
- package/dist/vega/p-590c9ca4.entry.js +0 -1
- package/dist/vega/p-5e241584.js +0 -1
- package/dist/vega/p-5e3ce19a.entry.js +0 -1
- package/dist/vega/p-645b3ea1.js +0 -1
- package/dist/vega/p-69400591.js +0 -1
- package/dist/vega/p-6f297399.entry.js +0 -1
- package/dist/vega/p-70085fd3.entry.js +0 -1
- package/dist/vega/p-732bd363.entry.js +0 -1
- package/dist/vega/p-738bf8cf.js +0 -1
- package/dist/vega/p-76f2d5b3.js +0 -1
- package/dist/vega/p-7770e04e.js +0 -1
- package/dist/vega/p-7aff0afd.entry.js +0 -1
- package/dist/vega/p-7d441fee.js +0 -1
- package/dist/vega/p-7e1be3db.entry.js +0 -1
- package/dist/vega/p-7eaaa612.entry.js +0 -1
- package/dist/vega/p-82180f6b.entry.js +0 -1
- package/dist/vega/p-83ddd213.entry.js +0 -1
- package/dist/vega/p-87040d8d.entry.js +0 -1
- package/dist/vega/p-8705cca1.entry.js +0 -13
- package/dist/vega/p-8a886438.entry.js +0 -1
- package/dist/vega/p-8b5d3a52.js +0 -1
- package/dist/vega/p-8d12c974.entry.js +0 -1
- package/dist/vega/p-903a8846.js +0 -1
- package/dist/vega/p-9040b011.js +0 -1
- package/dist/vega/p-92d825b2.js +0 -1
- package/dist/vega/p-960cae20.entry.js +0 -1
- package/dist/vega/p-9a28fa22.js +0 -1
- package/dist/vega/p-9abb457b.entry.js +0 -1
- package/dist/vega/p-9b116651.js +0 -1
- package/dist/vega/p-9b6d1375.js +0 -1
- package/dist/vega/p-9c50935d.js +0 -1
- package/dist/vega/p-9c7c5d80.js +0 -1
- package/dist/vega/p-a4534b15.js +0 -1
- package/dist/vega/p-a6717515.entry.js +0 -1
- package/dist/vega/p-a690b48d.entry.js +0 -1
- package/dist/vega/p-a90f4bcd.js +0 -1
- package/dist/vega/p-aa05113f.entry.js +0 -1
- package/dist/vega/p-ab48949b.entry.js +0 -1
- package/dist/vega/p-ab4bbcae.entry.js +0 -1
- package/dist/vega/p-abb37bae.js +0 -1
- package/dist/vega/p-af73fc60.entry.js +0 -1
- package/dist/vega/p-b4da16e0.entry.js +0 -1
- package/dist/vega/p-c01adae1.entry.js +0 -1
- package/dist/vega/p-c30815d1.entry.js +0 -1
- package/dist/vega/p-c5275371.entry.js +0 -1
- package/dist/vega/p-c76ed31b.js +0 -1
- package/dist/vega/p-cb19da5d.js +0 -1
- package/dist/vega/p-cb82d91d.entry.js +0 -1
- package/dist/vega/p-cd2e3096.entry.js +0 -1
- package/dist/vega/p-d8fd417a.js +0 -1
- package/dist/vega/p-de0d19a6.entry.js +0 -1
- package/dist/vega/p-df95a519.entry.js +0 -1
- package/dist/vega/p-e0dcb908.entry.js +0 -1
- package/dist/vega/p-e1fec7ba.js +0 -1
- package/dist/vega/p-e2aea25c.entry.js +0 -1
- package/dist/vega/p-e30b9635.entry.js +0 -1
- package/dist/vega/p-e81db65a.entry.js +0 -1
- package/dist/vega/p-eb8f686b.entry.js +0 -1
- package/dist/vega/p-ee9e2dcb.entry.js +0 -1
- package/dist/vega/p-f3df84bd.entry.js +0 -1
- package/dist/vega/p-f6965e1f.entry.js +0 -1
- package/dist/vega/p-fa7ecd11.js +0 -1
- package/dist/vega/p-fe05c729.entry.js +0 -1
- package/style/vega_min.css +0 -1
- /package/dist/collection/polyfill/{testRetryPolyfill.js → test-polyfill/e2e/retry.js} +0 -0
- /package/dist/types/polyfill/{testRetryPolyfill.d.ts → test-polyfill/e2e/retry.d.ts} +0 -0
- /package/dist/types/polyfill/{testPolyfill.d.ts → test-polyfill/unit/createTouchEvent.d.ts} +0 -0
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { g as generateUUID } from './misc-
|
|
2
|
-
import { a as arrayToClassString } from './ui-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { g as generateUUID } from './misc-c21a85c9.js';
|
|
2
|
+
import { a as arrayToClassString, g as getDeviceType, D as DeviceType } from './ui-6e5294cb.js';
|
|
3
|
+
import { Z as ZIndexManager } from './zIndexManager-ea603c97.js';
|
|
4
|
+
import { I as InjectVegaSlimmer } from './global-slimmer-registry-b91c742d.js';
|
|
5
|
+
import { c as createDynamicSlimmer } from './dynamic-slimmer-c8ad78de.js';
|
|
6
|
+
import { P as PageResizeObserverSlimmer } from './pageResizeObserverSlimmer-b476bb1f.js';
|
|
7
|
+
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-9943807e.js';
|
|
8
|
+
import { I as InternalVegaEventManager } from './internalVegaEventManager-efa77ebb.js';
|
|
5
9
|
|
|
6
10
|
/**
|
|
7
11
|
* Vega loader controller to control the loading indicator
|
|
@@ -81,6 +85,1396 @@ class VegaLoaderController {
|
|
|
81
85
|
}
|
|
82
86
|
const VegaLoader = new VegaLoaderController();
|
|
83
87
|
|
|
88
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
89
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
90
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
91
|
+
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;
|
|
92
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* The page notification controller
|
|
96
|
+
*/
|
|
97
|
+
class VegaNotifyController {
|
|
98
|
+
constructor() {
|
|
99
|
+
this.resizeObserverSlimmer = createDynamicSlimmer(VegaNotifyController, PageResizeObserverSlimmer, [], [{ mapFrom: 'connectResizeObserver', mapTo: 'connectResizeObserver' }], [
|
|
100
|
+
{
|
|
101
|
+
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
102
|
+
callback: (entries) => {
|
|
103
|
+
var _a;
|
|
104
|
+
const currentVisible = entries[0].contentRect.height > 0;
|
|
105
|
+
if (!currentVisible && ((_a = this.container) === null || _a === void 0 ? void 0 : _a.classList.contains('hydrated'))) {
|
|
106
|
+
ZIndexManager.removeZIndex(this.container, 'top');
|
|
107
|
+
this.container.remove();
|
|
108
|
+
this.container = null;
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
112
|
+
target: () => this.container,
|
|
113
|
+
},
|
|
114
|
+
]);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* It creates a new notification element, adds it to the container, and returns the notification's ID
|
|
118
|
+
*
|
|
119
|
+
* @param {VegaNotifyOption} options - VegaNotifyProps
|
|
120
|
+
* @returns {string} The ID of the notification.
|
|
121
|
+
*/
|
|
122
|
+
async open(options) {
|
|
123
|
+
const pageNotification = this.createPageNotification(options);
|
|
124
|
+
this.getContainer().append(pageNotification);
|
|
125
|
+
return pageNotification.id;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* It closes all notifications
|
|
129
|
+
*/
|
|
130
|
+
async closeAll() {
|
|
131
|
+
this.container &&
|
|
132
|
+
Array.from(this.container.children).forEach((item) => {
|
|
133
|
+
void item.close();
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* It closes the notification with the given id
|
|
138
|
+
*
|
|
139
|
+
* @param {string} id - The id of the notification to close.
|
|
140
|
+
*/
|
|
141
|
+
async close(id) {
|
|
142
|
+
await document.getElementById(id).close();
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* The function "connectResizeObserver" is used to connect a resize observer.
|
|
146
|
+
*/
|
|
147
|
+
connectResizeObserver() {
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* It creates a new page notification element, sets its properties, and returns it
|
|
151
|
+
*
|
|
152
|
+
* @param {VegaNotifyOption} props - VegaNotifyProps - the properties of the notification
|
|
153
|
+
* @returns {HTMLElement} A function that takes in a props object and returns a pageNotification element.
|
|
154
|
+
*/
|
|
155
|
+
createPageNotification(props) {
|
|
156
|
+
const pageNotification = document.createElement('vega-page-notification');
|
|
157
|
+
Object.keys(props).forEach((propName) => {
|
|
158
|
+
props[propName] !== undefined && (pageNotification[propName] = props[propName]);
|
|
159
|
+
});
|
|
160
|
+
pageNotification.style.marginBottom = getDeviceType() === DeviceType.MOBILE ? '12px' : '16px';
|
|
161
|
+
pageNotification.id = `vega-page-notification-${generateUUID()}`;
|
|
162
|
+
return pageNotification;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* It creates a div element, sets its z-index to be on top of everything else, adds a class to it, and
|
|
166
|
+
* then adds it to the body of the page
|
|
167
|
+
*
|
|
168
|
+
* @returns {HTMLElement} The container is being returned.
|
|
169
|
+
*/
|
|
170
|
+
getContainer() {
|
|
171
|
+
if (this.container) {
|
|
172
|
+
return this.container;
|
|
173
|
+
}
|
|
174
|
+
this.container = document.createElement('vega-page-notification-list');
|
|
175
|
+
ZIndexManager.setZIndex(this.container, 'top');
|
|
176
|
+
if (getDeviceType() === DeviceType.MOBILE) {
|
|
177
|
+
this.container.classList.add('vega-page-notification-list-bottom');
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
this.container.classList.add('vega-page-notification-list-topRight');
|
|
181
|
+
}
|
|
182
|
+
document.body.append(this.container);
|
|
183
|
+
this.connectResizeObserver();
|
|
184
|
+
return this.container;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
__decorate([
|
|
188
|
+
InjectVegaSlimmer()
|
|
189
|
+
], VegaNotifyController.prototype, "resizeObserverSlimmer", void 0);
|
|
190
|
+
const VegaNotify = new VegaNotifyController();
|
|
191
|
+
|
|
192
|
+
var tinycolor = createCommonjsModule(function (module, exports) {
|
|
193
|
+
// This file is autogenerated. It's used to publish CJS to npm.
|
|
194
|
+
(function (global, factory) {
|
|
195
|
+
module.exports = factory() ;
|
|
196
|
+
})(commonjsGlobal, (function () {
|
|
197
|
+
// https://github.com/bgrins/TinyColor
|
|
198
|
+
// Brian Grinstead, MIT License
|
|
199
|
+
|
|
200
|
+
const trimLeft = /^\s+/;
|
|
201
|
+
const trimRight = /\s+$/;
|
|
202
|
+
|
|
203
|
+
function tinycolor(color, opts) {
|
|
204
|
+
color = color ? color : "";
|
|
205
|
+
opts = opts || {};
|
|
206
|
+
|
|
207
|
+
// If input is already a tinycolor, return itself
|
|
208
|
+
if (color instanceof tinycolor) {
|
|
209
|
+
return color;
|
|
210
|
+
}
|
|
211
|
+
// If we are called as a function, call using new instead
|
|
212
|
+
if (!(this instanceof tinycolor)) {
|
|
213
|
+
return new tinycolor(color, opts);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
var rgb = inputToRGB(color);
|
|
217
|
+
(this._originalInput = color),
|
|
218
|
+
(this._r = rgb.r),
|
|
219
|
+
(this._g = rgb.g),
|
|
220
|
+
(this._b = rgb.b),
|
|
221
|
+
(this._a = rgb.a),
|
|
222
|
+
(this._roundA = Math.round(100 * this._a) / 100),
|
|
223
|
+
(this._format = opts.format || rgb.format);
|
|
224
|
+
this._gradientType = opts.gradientType;
|
|
225
|
+
|
|
226
|
+
// Don't let the range of [0,255] come back in [0,1].
|
|
227
|
+
// Potentially lose a little bit of precision here, but will fix issues where
|
|
228
|
+
// .5 gets interpreted as half of the total, instead of half of 1
|
|
229
|
+
// If it was supposed to be 128, this was already taken care of by `inputToRgb`
|
|
230
|
+
if (this._r < 1) this._r = Math.round(this._r);
|
|
231
|
+
if (this._g < 1) this._g = Math.round(this._g);
|
|
232
|
+
if (this._b < 1) this._b = Math.round(this._b);
|
|
233
|
+
|
|
234
|
+
this._ok = rgb.ok;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
tinycolor.prototype = {
|
|
238
|
+
isDark: function () {
|
|
239
|
+
return this.getBrightness() < 128;
|
|
240
|
+
},
|
|
241
|
+
isLight: function () {
|
|
242
|
+
return !this.isDark();
|
|
243
|
+
},
|
|
244
|
+
isValid: function () {
|
|
245
|
+
return this._ok;
|
|
246
|
+
},
|
|
247
|
+
getOriginalInput: function () {
|
|
248
|
+
return this._originalInput;
|
|
249
|
+
},
|
|
250
|
+
getFormat: function () {
|
|
251
|
+
return this._format;
|
|
252
|
+
},
|
|
253
|
+
getAlpha: function () {
|
|
254
|
+
return this._a;
|
|
255
|
+
},
|
|
256
|
+
getBrightness: function () {
|
|
257
|
+
//http://www.w3.org/TR/AERT#color-contrast
|
|
258
|
+
var rgb = this.toRgb();
|
|
259
|
+
return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;
|
|
260
|
+
},
|
|
261
|
+
getLuminance: function () {
|
|
262
|
+
//http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
|
|
263
|
+
var rgb = this.toRgb();
|
|
264
|
+
var RsRGB, GsRGB, BsRGB, R, G, B;
|
|
265
|
+
RsRGB = rgb.r / 255;
|
|
266
|
+
GsRGB = rgb.g / 255;
|
|
267
|
+
BsRGB = rgb.b / 255;
|
|
268
|
+
|
|
269
|
+
if (RsRGB <= 0.03928) R = RsRGB / 12.92;
|
|
270
|
+
else R = Math.pow((RsRGB + 0.055) / 1.055, 2.4);
|
|
271
|
+
if (GsRGB <= 0.03928) G = GsRGB / 12.92;
|
|
272
|
+
else G = Math.pow((GsRGB + 0.055) / 1.055, 2.4);
|
|
273
|
+
if (BsRGB <= 0.03928) B = BsRGB / 12.92;
|
|
274
|
+
else B = Math.pow((BsRGB + 0.055) / 1.055, 2.4);
|
|
275
|
+
return 0.2126 * R + 0.7152 * G + 0.0722 * B;
|
|
276
|
+
},
|
|
277
|
+
setAlpha: function (value) {
|
|
278
|
+
this._a = boundAlpha(value);
|
|
279
|
+
this._roundA = Math.round(100 * this._a) / 100;
|
|
280
|
+
return this;
|
|
281
|
+
},
|
|
282
|
+
toHsv: function () {
|
|
283
|
+
var hsv = rgbToHsv(this._r, this._g, this._b);
|
|
284
|
+
return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a };
|
|
285
|
+
},
|
|
286
|
+
toHsvString: function () {
|
|
287
|
+
var hsv = rgbToHsv(this._r, this._g, this._b);
|
|
288
|
+
var h = Math.round(hsv.h * 360),
|
|
289
|
+
s = Math.round(hsv.s * 100),
|
|
290
|
+
v = Math.round(hsv.v * 100);
|
|
291
|
+
return this._a == 1
|
|
292
|
+
? "hsv(" + h + ", " + s + "%, " + v + "%)"
|
|
293
|
+
: "hsva(" + h + ", " + s + "%, " + v + "%, " + this._roundA + ")";
|
|
294
|
+
},
|
|
295
|
+
toHsl: function () {
|
|
296
|
+
var hsl = rgbToHsl(this._r, this._g, this._b);
|
|
297
|
+
return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a };
|
|
298
|
+
},
|
|
299
|
+
toHslString: function () {
|
|
300
|
+
var hsl = rgbToHsl(this._r, this._g, this._b);
|
|
301
|
+
var h = Math.round(hsl.h * 360),
|
|
302
|
+
s = Math.round(hsl.s * 100),
|
|
303
|
+
l = Math.round(hsl.l * 100);
|
|
304
|
+
return this._a == 1
|
|
305
|
+
? "hsl(" + h + ", " + s + "%, " + l + "%)"
|
|
306
|
+
: "hsla(" + h + ", " + s + "%, " + l + "%, " + this._roundA + ")";
|
|
307
|
+
},
|
|
308
|
+
toHex: function (allow3Char) {
|
|
309
|
+
return rgbToHex(this._r, this._g, this._b, allow3Char);
|
|
310
|
+
},
|
|
311
|
+
toHexString: function (allow3Char) {
|
|
312
|
+
return "#" + this.toHex(allow3Char);
|
|
313
|
+
},
|
|
314
|
+
toHex8: function (allow4Char) {
|
|
315
|
+
return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);
|
|
316
|
+
},
|
|
317
|
+
toHex8String: function (allow4Char) {
|
|
318
|
+
return "#" + this.toHex8(allow4Char);
|
|
319
|
+
},
|
|
320
|
+
toRgb: function () {
|
|
321
|
+
return {
|
|
322
|
+
r: Math.round(this._r),
|
|
323
|
+
g: Math.round(this._g),
|
|
324
|
+
b: Math.round(this._b),
|
|
325
|
+
a: this._a,
|
|
326
|
+
};
|
|
327
|
+
},
|
|
328
|
+
toRgbString: function () {
|
|
329
|
+
return this._a == 1
|
|
330
|
+
? "rgb(" +
|
|
331
|
+
Math.round(this._r) +
|
|
332
|
+
", " +
|
|
333
|
+
Math.round(this._g) +
|
|
334
|
+
", " +
|
|
335
|
+
Math.round(this._b) +
|
|
336
|
+
")"
|
|
337
|
+
: "rgba(" +
|
|
338
|
+
Math.round(this._r) +
|
|
339
|
+
", " +
|
|
340
|
+
Math.round(this._g) +
|
|
341
|
+
", " +
|
|
342
|
+
Math.round(this._b) +
|
|
343
|
+
", " +
|
|
344
|
+
this._roundA +
|
|
345
|
+
")";
|
|
346
|
+
},
|
|
347
|
+
toPercentageRgb: function () {
|
|
348
|
+
return {
|
|
349
|
+
r: Math.round(bound01(this._r, 255) * 100) + "%",
|
|
350
|
+
g: Math.round(bound01(this._g, 255) * 100) + "%",
|
|
351
|
+
b: Math.round(bound01(this._b, 255) * 100) + "%",
|
|
352
|
+
a: this._a,
|
|
353
|
+
};
|
|
354
|
+
},
|
|
355
|
+
toPercentageRgbString: function () {
|
|
356
|
+
return this._a == 1
|
|
357
|
+
? "rgb(" +
|
|
358
|
+
Math.round(bound01(this._r, 255) * 100) +
|
|
359
|
+
"%, " +
|
|
360
|
+
Math.round(bound01(this._g, 255) * 100) +
|
|
361
|
+
"%, " +
|
|
362
|
+
Math.round(bound01(this._b, 255) * 100) +
|
|
363
|
+
"%)"
|
|
364
|
+
: "rgba(" +
|
|
365
|
+
Math.round(bound01(this._r, 255) * 100) +
|
|
366
|
+
"%, " +
|
|
367
|
+
Math.round(bound01(this._g, 255) * 100) +
|
|
368
|
+
"%, " +
|
|
369
|
+
Math.round(bound01(this._b, 255) * 100) +
|
|
370
|
+
"%, " +
|
|
371
|
+
this._roundA +
|
|
372
|
+
")";
|
|
373
|
+
},
|
|
374
|
+
toName: function () {
|
|
375
|
+
if (this._a === 0) {
|
|
376
|
+
return "transparent";
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
if (this._a < 1) {
|
|
380
|
+
return false;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false;
|
|
384
|
+
},
|
|
385
|
+
toFilter: function (secondColor) {
|
|
386
|
+
var hex8String = "#" + rgbaToArgbHex(this._r, this._g, this._b, this._a);
|
|
387
|
+
var secondHex8String = hex8String;
|
|
388
|
+
var gradientType = this._gradientType ? "GradientType = 1, " : "";
|
|
389
|
+
|
|
390
|
+
if (secondColor) {
|
|
391
|
+
var s = tinycolor(secondColor);
|
|
392
|
+
secondHex8String = "#" + rgbaToArgbHex(s._r, s._g, s._b, s._a);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
return (
|
|
396
|
+
"progid:DXImageTransform.Microsoft.gradient(" +
|
|
397
|
+
gradientType +
|
|
398
|
+
"startColorstr=" +
|
|
399
|
+
hex8String +
|
|
400
|
+
",endColorstr=" +
|
|
401
|
+
secondHex8String +
|
|
402
|
+
")"
|
|
403
|
+
);
|
|
404
|
+
},
|
|
405
|
+
toString: function (format) {
|
|
406
|
+
var formatSet = !!format;
|
|
407
|
+
format = format || this._format;
|
|
408
|
+
|
|
409
|
+
var formattedString = false;
|
|
410
|
+
var hasAlpha = this._a < 1 && this._a >= 0;
|
|
411
|
+
var needsAlphaFormat =
|
|
412
|
+
!formatSet &&
|
|
413
|
+
hasAlpha &&
|
|
414
|
+
(format === "hex" ||
|
|
415
|
+
format === "hex6" ||
|
|
416
|
+
format === "hex3" ||
|
|
417
|
+
format === "hex4" ||
|
|
418
|
+
format === "hex8" ||
|
|
419
|
+
format === "name");
|
|
420
|
+
|
|
421
|
+
if (needsAlphaFormat) {
|
|
422
|
+
// Special case for "transparent", all other non-alpha formats
|
|
423
|
+
// will return rgba when there is transparency.
|
|
424
|
+
if (format === "name" && this._a === 0) {
|
|
425
|
+
return this.toName();
|
|
426
|
+
}
|
|
427
|
+
return this.toRgbString();
|
|
428
|
+
}
|
|
429
|
+
if (format === "rgb") {
|
|
430
|
+
formattedString = this.toRgbString();
|
|
431
|
+
}
|
|
432
|
+
if (format === "prgb") {
|
|
433
|
+
formattedString = this.toPercentageRgbString();
|
|
434
|
+
}
|
|
435
|
+
if (format === "hex" || format === "hex6") {
|
|
436
|
+
formattedString = this.toHexString();
|
|
437
|
+
}
|
|
438
|
+
if (format === "hex3") {
|
|
439
|
+
formattedString = this.toHexString(true);
|
|
440
|
+
}
|
|
441
|
+
if (format === "hex4") {
|
|
442
|
+
formattedString = this.toHex8String(true);
|
|
443
|
+
}
|
|
444
|
+
if (format === "hex8") {
|
|
445
|
+
formattedString = this.toHex8String();
|
|
446
|
+
}
|
|
447
|
+
if (format === "name") {
|
|
448
|
+
formattedString = this.toName();
|
|
449
|
+
}
|
|
450
|
+
if (format === "hsl") {
|
|
451
|
+
formattedString = this.toHslString();
|
|
452
|
+
}
|
|
453
|
+
if (format === "hsv") {
|
|
454
|
+
formattedString = this.toHsvString();
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
return formattedString || this.toHexString();
|
|
458
|
+
},
|
|
459
|
+
clone: function () {
|
|
460
|
+
return tinycolor(this.toString());
|
|
461
|
+
},
|
|
462
|
+
|
|
463
|
+
_applyModification: function (fn, args) {
|
|
464
|
+
var color = fn.apply(null, [this].concat([].slice.call(args)));
|
|
465
|
+
this._r = color._r;
|
|
466
|
+
this._g = color._g;
|
|
467
|
+
this._b = color._b;
|
|
468
|
+
this.setAlpha(color._a);
|
|
469
|
+
return this;
|
|
470
|
+
},
|
|
471
|
+
lighten: function () {
|
|
472
|
+
return this._applyModification(lighten, arguments);
|
|
473
|
+
},
|
|
474
|
+
brighten: function () {
|
|
475
|
+
return this._applyModification(brighten, arguments);
|
|
476
|
+
},
|
|
477
|
+
darken: function () {
|
|
478
|
+
return this._applyModification(darken, arguments);
|
|
479
|
+
},
|
|
480
|
+
desaturate: function () {
|
|
481
|
+
return this._applyModification(desaturate, arguments);
|
|
482
|
+
},
|
|
483
|
+
saturate: function () {
|
|
484
|
+
return this._applyModification(saturate, arguments);
|
|
485
|
+
},
|
|
486
|
+
greyscale: function () {
|
|
487
|
+
return this._applyModification(greyscale, arguments);
|
|
488
|
+
},
|
|
489
|
+
spin: function () {
|
|
490
|
+
return this._applyModification(spin, arguments);
|
|
491
|
+
},
|
|
492
|
+
|
|
493
|
+
_applyCombination: function (fn, args) {
|
|
494
|
+
return fn.apply(null, [this].concat([].slice.call(args)));
|
|
495
|
+
},
|
|
496
|
+
analogous: function () {
|
|
497
|
+
return this._applyCombination(analogous, arguments);
|
|
498
|
+
},
|
|
499
|
+
complement: function () {
|
|
500
|
+
return this._applyCombination(complement, arguments);
|
|
501
|
+
},
|
|
502
|
+
monochromatic: function () {
|
|
503
|
+
return this._applyCombination(monochromatic, arguments);
|
|
504
|
+
},
|
|
505
|
+
splitcomplement: function () {
|
|
506
|
+
return this._applyCombination(splitcomplement, arguments);
|
|
507
|
+
},
|
|
508
|
+
// Disabled until https://github.com/bgrins/TinyColor/issues/254
|
|
509
|
+
// polyad: function (number) {
|
|
510
|
+
// return this._applyCombination(polyad, [number]);
|
|
511
|
+
// },
|
|
512
|
+
triad: function () {
|
|
513
|
+
return this._applyCombination(polyad, [3]);
|
|
514
|
+
},
|
|
515
|
+
tetrad: function () {
|
|
516
|
+
return this._applyCombination(polyad, [4]);
|
|
517
|
+
},
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
// If input is an object, force 1 into "1.0" to handle ratios properly
|
|
521
|
+
// String input requires "1.0" as input, so 1 will be treated as 1
|
|
522
|
+
tinycolor.fromRatio = function (color, opts) {
|
|
523
|
+
if (typeof color == "object") {
|
|
524
|
+
var newColor = {};
|
|
525
|
+
for (var i in color) {
|
|
526
|
+
if (color.hasOwnProperty(i)) {
|
|
527
|
+
if (i === "a") {
|
|
528
|
+
newColor[i] = color[i];
|
|
529
|
+
} else {
|
|
530
|
+
newColor[i] = convertToPercentage(color[i]);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
color = newColor;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
return tinycolor(color, opts);
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
// Given a string or object, convert that input to RGB
|
|
541
|
+
// Possible string inputs:
|
|
542
|
+
//
|
|
543
|
+
// "red"
|
|
544
|
+
// "#f00" or "f00"
|
|
545
|
+
// "#ff0000" or "ff0000"
|
|
546
|
+
// "#ff000000" or "ff000000"
|
|
547
|
+
// "rgb 255 0 0" or "rgb (255, 0, 0)"
|
|
548
|
+
// "rgb 1.0 0 0" or "rgb (1, 0, 0)"
|
|
549
|
+
// "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
|
|
550
|
+
// "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
|
|
551
|
+
// "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
|
|
552
|
+
// "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
|
|
553
|
+
// "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
|
|
554
|
+
//
|
|
555
|
+
function inputToRGB(color) {
|
|
556
|
+
var rgb = { r: 0, g: 0, b: 0 };
|
|
557
|
+
var a = 1;
|
|
558
|
+
var s = null;
|
|
559
|
+
var v = null;
|
|
560
|
+
var l = null;
|
|
561
|
+
var ok = false;
|
|
562
|
+
var format = false;
|
|
563
|
+
|
|
564
|
+
if (typeof color == "string") {
|
|
565
|
+
color = stringInputToObject(color);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
if (typeof color == "object") {
|
|
569
|
+
if (
|
|
570
|
+
isValidCSSUnit(color.r) &&
|
|
571
|
+
isValidCSSUnit(color.g) &&
|
|
572
|
+
isValidCSSUnit(color.b)
|
|
573
|
+
) {
|
|
574
|
+
rgb = rgbToRgb(color.r, color.g, color.b);
|
|
575
|
+
ok = true;
|
|
576
|
+
format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
|
|
577
|
+
} else if (
|
|
578
|
+
isValidCSSUnit(color.h) &&
|
|
579
|
+
isValidCSSUnit(color.s) &&
|
|
580
|
+
isValidCSSUnit(color.v)
|
|
581
|
+
) {
|
|
582
|
+
s = convertToPercentage(color.s);
|
|
583
|
+
v = convertToPercentage(color.v);
|
|
584
|
+
rgb = hsvToRgb(color.h, s, v);
|
|
585
|
+
ok = true;
|
|
586
|
+
format = "hsv";
|
|
587
|
+
} else if (
|
|
588
|
+
isValidCSSUnit(color.h) &&
|
|
589
|
+
isValidCSSUnit(color.s) &&
|
|
590
|
+
isValidCSSUnit(color.l)
|
|
591
|
+
) {
|
|
592
|
+
s = convertToPercentage(color.s);
|
|
593
|
+
l = convertToPercentage(color.l);
|
|
594
|
+
rgb = hslToRgb(color.h, s, l);
|
|
595
|
+
ok = true;
|
|
596
|
+
format = "hsl";
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
if (color.hasOwnProperty("a")) {
|
|
600
|
+
a = color.a;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
a = boundAlpha(a);
|
|
605
|
+
|
|
606
|
+
return {
|
|
607
|
+
ok: ok,
|
|
608
|
+
format: color.format || format,
|
|
609
|
+
r: Math.min(255, Math.max(rgb.r, 0)),
|
|
610
|
+
g: Math.min(255, Math.max(rgb.g, 0)),
|
|
611
|
+
b: Math.min(255, Math.max(rgb.b, 0)),
|
|
612
|
+
a: a,
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
// Conversion Functions
|
|
617
|
+
// --------------------
|
|
618
|
+
|
|
619
|
+
// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
|
|
620
|
+
// <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>
|
|
621
|
+
|
|
622
|
+
// `rgbToRgb`
|
|
623
|
+
// Handle bounds / percentage checking to conform to CSS color spec
|
|
624
|
+
// <http://www.w3.org/TR/css3-color/>
|
|
625
|
+
// *Assumes:* r, g, b in [0, 255] or [0, 1]
|
|
626
|
+
// *Returns:* { r, g, b } in [0, 255]
|
|
627
|
+
function rgbToRgb(r, g, b) {
|
|
628
|
+
return {
|
|
629
|
+
r: bound01(r, 255) * 255,
|
|
630
|
+
g: bound01(g, 255) * 255,
|
|
631
|
+
b: bound01(b, 255) * 255,
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
// `rgbToHsl`
|
|
636
|
+
// Converts an RGB color value to HSL.
|
|
637
|
+
// *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
|
|
638
|
+
// *Returns:* { h, s, l } in [0,1]
|
|
639
|
+
function rgbToHsl(r, g, b) {
|
|
640
|
+
r = bound01(r, 255);
|
|
641
|
+
g = bound01(g, 255);
|
|
642
|
+
b = bound01(b, 255);
|
|
643
|
+
|
|
644
|
+
var max = Math.max(r, g, b),
|
|
645
|
+
min = Math.min(r, g, b);
|
|
646
|
+
var h,
|
|
647
|
+
s,
|
|
648
|
+
l = (max + min) / 2;
|
|
649
|
+
|
|
650
|
+
if (max == min) {
|
|
651
|
+
h = s = 0; // achromatic
|
|
652
|
+
} else {
|
|
653
|
+
var d = max - min;
|
|
654
|
+
s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
|
655
|
+
switch (max) {
|
|
656
|
+
case r:
|
|
657
|
+
h = (g - b) / d + (g < b ? 6 : 0);
|
|
658
|
+
break;
|
|
659
|
+
case g:
|
|
660
|
+
h = (b - r) / d + 2;
|
|
661
|
+
break;
|
|
662
|
+
case b:
|
|
663
|
+
h = (r - g) / d + 4;
|
|
664
|
+
break;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
h /= 6;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
return { h: h, s: s, l: l };
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
// `hslToRgb`
|
|
674
|
+
// Converts an HSL color value to RGB.
|
|
675
|
+
// *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
|
|
676
|
+
// *Returns:* { r, g, b } in the set [0, 255]
|
|
677
|
+
function hslToRgb(h, s, l) {
|
|
678
|
+
var r, g, b;
|
|
679
|
+
|
|
680
|
+
h = bound01(h, 360);
|
|
681
|
+
s = bound01(s, 100);
|
|
682
|
+
l = bound01(l, 100);
|
|
683
|
+
|
|
684
|
+
function hue2rgb(p, q, t) {
|
|
685
|
+
if (t < 0) t += 1;
|
|
686
|
+
if (t > 1) t -= 1;
|
|
687
|
+
if (t < 1 / 6) return p + (q - p) * 6 * t;
|
|
688
|
+
if (t < 1 / 2) return q;
|
|
689
|
+
if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
|
|
690
|
+
return p;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
if (s === 0) {
|
|
694
|
+
r = g = b = l; // achromatic
|
|
695
|
+
} else {
|
|
696
|
+
var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
|
697
|
+
var p = 2 * l - q;
|
|
698
|
+
r = hue2rgb(p, q, h + 1 / 3);
|
|
699
|
+
g = hue2rgb(p, q, h);
|
|
700
|
+
b = hue2rgb(p, q, h - 1 / 3);
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
return { r: r * 255, g: g * 255, b: b * 255 };
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
// `rgbToHsv`
|
|
707
|
+
// Converts an RGB color value to HSV
|
|
708
|
+
// *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
|
|
709
|
+
// *Returns:* { h, s, v } in [0,1]
|
|
710
|
+
function rgbToHsv(r, g, b) {
|
|
711
|
+
r = bound01(r, 255);
|
|
712
|
+
g = bound01(g, 255);
|
|
713
|
+
b = bound01(b, 255);
|
|
714
|
+
|
|
715
|
+
var max = Math.max(r, g, b),
|
|
716
|
+
min = Math.min(r, g, b);
|
|
717
|
+
var h,
|
|
718
|
+
s,
|
|
719
|
+
v = max;
|
|
720
|
+
|
|
721
|
+
var d = max - min;
|
|
722
|
+
s = max === 0 ? 0 : d / max;
|
|
723
|
+
|
|
724
|
+
if (max == min) {
|
|
725
|
+
h = 0; // achromatic
|
|
726
|
+
} else {
|
|
727
|
+
switch (max) {
|
|
728
|
+
case r:
|
|
729
|
+
h = (g - b) / d + (g < b ? 6 : 0);
|
|
730
|
+
break;
|
|
731
|
+
case g:
|
|
732
|
+
h = (b - r) / d + 2;
|
|
733
|
+
break;
|
|
734
|
+
case b:
|
|
735
|
+
h = (r - g) / d + 4;
|
|
736
|
+
break;
|
|
737
|
+
}
|
|
738
|
+
h /= 6;
|
|
739
|
+
}
|
|
740
|
+
return { h: h, s: s, v: v };
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
// `hsvToRgb`
|
|
744
|
+
// Converts an HSV color value to RGB.
|
|
745
|
+
// *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
|
|
746
|
+
// *Returns:* { r, g, b } in the set [0, 255]
|
|
747
|
+
function hsvToRgb(h, s, v) {
|
|
748
|
+
h = bound01(h, 360) * 6;
|
|
749
|
+
s = bound01(s, 100);
|
|
750
|
+
v = bound01(v, 100);
|
|
751
|
+
|
|
752
|
+
var i = Math.floor(h),
|
|
753
|
+
f = h - i,
|
|
754
|
+
p = v * (1 - s),
|
|
755
|
+
q = v * (1 - f * s),
|
|
756
|
+
t = v * (1 - (1 - f) * s),
|
|
757
|
+
mod = i % 6,
|
|
758
|
+
r = [v, q, p, p, t, v][mod],
|
|
759
|
+
g = [t, v, v, q, p, p][mod],
|
|
760
|
+
b = [p, p, t, v, v, q][mod];
|
|
761
|
+
|
|
762
|
+
return { r: r * 255, g: g * 255, b: b * 255 };
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
// `rgbToHex`
|
|
766
|
+
// Converts an RGB color to hex
|
|
767
|
+
// Assumes r, g, and b are contained in the set [0, 255]
|
|
768
|
+
// Returns a 3 or 6 character hex
|
|
769
|
+
function rgbToHex(r, g, b, allow3Char) {
|
|
770
|
+
var hex = [
|
|
771
|
+
pad2(Math.round(r).toString(16)),
|
|
772
|
+
pad2(Math.round(g).toString(16)),
|
|
773
|
+
pad2(Math.round(b).toString(16)),
|
|
774
|
+
];
|
|
775
|
+
|
|
776
|
+
// Return a 3 character hex if possible
|
|
777
|
+
if (
|
|
778
|
+
allow3Char &&
|
|
779
|
+
hex[0].charAt(0) == hex[0].charAt(1) &&
|
|
780
|
+
hex[1].charAt(0) == hex[1].charAt(1) &&
|
|
781
|
+
hex[2].charAt(0) == hex[2].charAt(1)
|
|
782
|
+
) {
|
|
783
|
+
return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
return hex.join("");
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
// `rgbaToHex`
|
|
790
|
+
// Converts an RGBA color plus alpha transparency to hex
|
|
791
|
+
// Assumes r, g, b are contained in the set [0, 255] and
|
|
792
|
+
// a in [0, 1]. Returns a 4 or 8 character rgba hex
|
|
793
|
+
function rgbaToHex(r, g, b, a, allow4Char) {
|
|
794
|
+
var hex = [
|
|
795
|
+
pad2(Math.round(r).toString(16)),
|
|
796
|
+
pad2(Math.round(g).toString(16)),
|
|
797
|
+
pad2(Math.round(b).toString(16)),
|
|
798
|
+
pad2(convertDecimalToHex(a)),
|
|
799
|
+
];
|
|
800
|
+
|
|
801
|
+
// Return a 4 character hex if possible
|
|
802
|
+
if (
|
|
803
|
+
allow4Char &&
|
|
804
|
+
hex[0].charAt(0) == hex[0].charAt(1) &&
|
|
805
|
+
hex[1].charAt(0) == hex[1].charAt(1) &&
|
|
806
|
+
hex[2].charAt(0) == hex[2].charAt(1) &&
|
|
807
|
+
hex[3].charAt(0) == hex[3].charAt(1)
|
|
808
|
+
) {
|
|
809
|
+
return (
|
|
810
|
+
hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0)
|
|
811
|
+
);
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
return hex.join("");
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
// `rgbaToArgbHex`
|
|
818
|
+
// Converts an RGBA color to an ARGB Hex8 string
|
|
819
|
+
// Rarely used, but required for "toFilter()"
|
|
820
|
+
function rgbaToArgbHex(r, g, b, a) {
|
|
821
|
+
var hex = [
|
|
822
|
+
pad2(convertDecimalToHex(a)),
|
|
823
|
+
pad2(Math.round(r).toString(16)),
|
|
824
|
+
pad2(Math.round(g).toString(16)),
|
|
825
|
+
pad2(Math.round(b).toString(16)),
|
|
826
|
+
];
|
|
827
|
+
|
|
828
|
+
return hex.join("");
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
// `equals`
|
|
832
|
+
// Can be called with any tinycolor input
|
|
833
|
+
tinycolor.equals = function (color1, color2) {
|
|
834
|
+
if (!color1 || !color2) return false;
|
|
835
|
+
return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString();
|
|
836
|
+
};
|
|
837
|
+
|
|
838
|
+
tinycolor.random = function () {
|
|
839
|
+
return tinycolor.fromRatio({
|
|
840
|
+
r: Math.random(),
|
|
841
|
+
g: Math.random(),
|
|
842
|
+
b: Math.random(),
|
|
843
|
+
});
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
// Modification Functions
|
|
847
|
+
// ----------------------
|
|
848
|
+
// Thanks to less.js for some of the basics here
|
|
849
|
+
// <https://github.com/cloudhead/less.js/blob/master/lib/less/functions.js>
|
|
850
|
+
|
|
851
|
+
function desaturate(color, amount) {
|
|
852
|
+
amount = amount === 0 ? 0 : amount || 10;
|
|
853
|
+
var hsl = tinycolor(color).toHsl();
|
|
854
|
+
hsl.s -= amount / 100;
|
|
855
|
+
hsl.s = clamp01(hsl.s);
|
|
856
|
+
return tinycolor(hsl);
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
function saturate(color, amount) {
|
|
860
|
+
amount = amount === 0 ? 0 : amount || 10;
|
|
861
|
+
var hsl = tinycolor(color).toHsl();
|
|
862
|
+
hsl.s += amount / 100;
|
|
863
|
+
hsl.s = clamp01(hsl.s);
|
|
864
|
+
return tinycolor(hsl);
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
function greyscale(color) {
|
|
868
|
+
return tinycolor(color).desaturate(100);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
function lighten(color, amount) {
|
|
872
|
+
amount = amount === 0 ? 0 : amount || 10;
|
|
873
|
+
var hsl = tinycolor(color).toHsl();
|
|
874
|
+
hsl.l += amount / 100;
|
|
875
|
+
hsl.l = clamp01(hsl.l);
|
|
876
|
+
return tinycolor(hsl);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
function brighten(color, amount) {
|
|
880
|
+
amount = amount === 0 ? 0 : amount || 10;
|
|
881
|
+
var rgb = tinycolor(color).toRgb();
|
|
882
|
+
rgb.r = Math.max(0, Math.min(255, rgb.r - Math.round(255 * -(amount / 100))));
|
|
883
|
+
rgb.g = Math.max(0, Math.min(255, rgb.g - Math.round(255 * -(amount / 100))));
|
|
884
|
+
rgb.b = Math.max(0, Math.min(255, rgb.b - Math.round(255 * -(amount / 100))));
|
|
885
|
+
return tinycolor(rgb);
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
function darken(color, amount) {
|
|
889
|
+
amount = amount === 0 ? 0 : amount || 10;
|
|
890
|
+
var hsl = tinycolor(color).toHsl();
|
|
891
|
+
hsl.l -= amount / 100;
|
|
892
|
+
hsl.l = clamp01(hsl.l);
|
|
893
|
+
return tinycolor(hsl);
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
// Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
|
|
897
|
+
// Values outside of this range will be wrapped into this range.
|
|
898
|
+
function spin(color, amount) {
|
|
899
|
+
var hsl = tinycolor(color).toHsl();
|
|
900
|
+
var hue = (hsl.h + amount) % 360;
|
|
901
|
+
hsl.h = hue < 0 ? 360 + hue : hue;
|
|
902
|
+
return tinycolor(hsl);
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
// Combination Functions
|
|
906
|
+
// ---------------------
|
|
907
|
+
// Thanks to jQuery xColor for some of the ideas behind these
|
|
908
|
+
// <https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js>
|
|
909
|
+
|
|
910
|
+
function complement(color) {
|
|
911
|
+
var hsl = tinycolor(color).toHsl();
|
|
912
|
+
hsl.h = (hsl.h + 180) % 360;
|
|
913
|
+
return tinycolor(hsl);
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
function polyad(color, number) {
|
|
917
|
+
if (isNaN(number) || number <= 0) {
|
|
918
|
+
throw new Error("Argument to polyad must be a positive number");
|
|
919
|
+
}
|
|
920
|
+
var hsl = tinycolor(color).toHsl();
|
|
921
|
+
var result = [tinycolor(color)];
|
|
922
|
+
var step = 360 / number;
|
|
923
|
+
for (var i = 1; i < number; i++) {
|
|
924
|
+
result.push(tinycolor({ h: (hsl.h + i * step) % 360, s: hsl.s, l: hsl.l }));
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
return result;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
function splitcomplement(color) {
|
|
931
|
+
var hsl = tinycolor(color).toHsl();
|
|
932
|
+
var h = hsl.h;
|
|
933
|
+
return [
|
|
934
|
+
tinycolor(color),
|
|
935
|
+
tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l }),
|
|
936
|
+
tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l }),
|
|
937
|
+
];
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
function analogous(color, results, slices) {
|
|
941
|
+
results = results || 6;
|
|
942
|
+
slices = slices || 30;
|
|
943
|
+
|
|
944
|
+
var hsl = tinycolor(color).toHsl();
|
|
945
|
+
var part = 360 / slices;
|
|
946
|
+
var ret = [tinycolor(color)];
|
|
947
|
+
|
|
948
|
+
for (hsl.h = (hsl.h - ((part * results) >> 1) + 720) % 360; --results; ) {
|
|
949
|
+
hsl.h = (hsl.h + part) % 360;
|
|
950
|
+
ret.push(tinycolor(hsl));
|
|
951
|
+
}
|
|
952
|
+
return ret;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
function monochromatic(color, results) {
|
|
956
|
+
results = results || 6;
|
|
957
|
+
var hsv = tinycolor(color).toHsv();
|
|
958
|
+
var h = hsv.h,
|
|
959
|
+
s = hsv.s,
|
|
960
|
+
v = hsv.v;
|
|
961
|
+
var ret = [];
|
|
962
|
+
var modification = 1 / results;
|
|
963
|
+
|
|
964
|
+
while (results--) {
|
|
965
|
+
ret.push(tinycolor({ h: h, s: s, v: v }));
|
|
966
|
+
v = (v + modification) % 1;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
return ret;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
// Utility Functions
|
|
973
|
+
// ---------------------
|
|
974
|
+
|
|
975
|
+
tinycolor.mix = function (color1, color2, amount) {
|
|
976
|
+
amount = amount === 0 ? 0 : amount || 50;
|
|
977
|
+
|
|
978
|
+
var rgb1 = tinycolor(color1).toRgb();
|
|
979
|
+
var rgb2 = tinycolor(color2).toRgb();
|
|
980
|
+
|
|
981
|
+
var p = amount / 100;
|
|
982
|
+
|
|
983
|
+
var rgba = {
|
|
984
|
+
r: (rgb2.r - rgb1.r) * p + rgb1.r,
|
|
985
|
+
g: (rgb2.g - rgb1.g) * p + rgb1.g,
|
|
986
|
+
b: (rgb2.b - rgb1.b) * p + rgb1.b,
|
|
987
|
+
a: (rgb2.a - rgb1.a) * p + rgb1.a,
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
return tinycolor(rgba);
|
|
991
|
+
};
|
|
992
|
+
|
|
993
|
+
// Readability Functions
|
|
994
|
+
// ---------------------
|
|
995
|
+
// <http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef (WCAG Version 2)
|
|
996
|
+
|
|
997
|
+
// `contrast`
|
|
998
|
+
// Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2)
|
|
999
|
+
tinycolor.readability = function (color1, color2) {
|
|
1000
|
+
var c1 = tinycolor(color1);
|
|
1001
|
+
var c2 = tinycolor(color2);
|
|
1002
|
+
return (
|
|
1003
|
+
(Math.max(c1.getLuminance(), c2.getLuminance()) + 0.05) /
|
|
1004
|
+
(Math.min(c1.getLuminance(), c2.getLuminance()) + 0.05)
|
|
1005
|
+
);
|
|
1006
|
+
};
|
|
1007
|
+
|
|
1008
|
+
// `isReadable`
|
|
1009
|
+
// Ensure that foreground and background color combinations meet WCAG2 guidelines.
|
|
1010
|
+
// The third argument is an optional Object.
|
|
1011
|
+
// the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA';
|
|
1012
|
+
// the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'.
|
|
1013
|
+
// If the entire object is absent, isReadable defaults to {level:"AA",size:"small"}.
|
|
1014
|
+
|
|
1015
|
+
// *Example*
|
|
1016
|
+
// tinycolor.isReadable("#000", "#111") => false
|
|
1017
|
+
// tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false
|
|
1018
|
+
tinycolor.isReadable = function (color1, color2, wcag2) {
|
|
1019
|
+
var readability = tinycolor.readability(color1, color2);
|
|
1020
|
+
var wcag2Parms, out;
|
|
1021
|
+
|
|
1022
|
+
out = false;
|
|
1023
|
+
|
|
1024
|
+
wcag2Parms = validateWCAG2Parms(wcag2);
|
|
1025
|
+
switch (wcag2Parms.level + wcag2Parms.size) {
|
|
1026
|
+
case "AAsmall":
|
|
1027
|
+
case "AAAlarge":
|
|
1028
|
+
out = readability >= 4.5;
|
|
1029
|
+
break;
|
|
1030
|
+
case "AAlarge":
|
|
1031
|
+
out = readability >= 3;
|
|
1032
|
+
break;
|
|
1033
|
+
case "AAAsmall":
|
|
1034
|
+
out = readability >= 7;
|
|
1035
|
+
break;
|
|
1036
|
+
}
|
|
1037
|
+
return out;
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
// `mostReadable`
|
|
1041
|
+
// Given a base color and a list of possible foreground or background
|
|
1042
|
+
// colors for that base, returns the most readable color.
|
|
1043
|
+
// Optionally returns Black or White if the most readable color is unreadable.
|
|
1044
|
+
// *Example*
|
|
1045
|
+
// tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255"
|
|
1046
|
+
// tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString(); // "#ffffff"
|
|
1047
|
+
// tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3"
|
|
1048
|
+
// tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff"
|
|
1049
|
+
tinycolor.mostReadable = function (baseColor, colorList, args) {
|
|
1050
|
+
var bestColor = null;
|
|
1051
|
+
var bestScore = 0;
|
|
1052
|
+
var readability;
|
|
1053
|
+
var includeFallbackColors, level, size;
|
|
1054
|
+
args = args || {};
|
|
1055
|
+
includeFallbackColors = args.includeFallbackColors;
|
|
1056
|
+
level = args.level;
|
|
1057
|
+
size = args.size;
|
|
1058
|
+
|
|
1059
|
+
for (var i = 0; i < colorList.length; i++) {
|
|
1060
|
+
readability = tinycolor.readability(baseColor, colorList[i]);
|
|
1061
|
+
if (readability > bestScore) {
|
|
1062
|
+
bestScore = readability;
|
|
1063
|
+
bestColor = tinycolor(colorList[i]);
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
if (
|
|
1068
|
+
tinycolor.isReadable(baseColor, bestColor, {
|
|
1069
|
+
level: level,
|
|
1070
|
+
size: size,
|
|
1071
|
+
}) ||
|
|
1072
|
+
!includeFallbackColors
|
|
1073
|
+
) {
|
|
1074
|
+
return bestColor;
|
|
1075
|
+
} else {
|
|
1076
|
+
args.includeFallbackColors = false;
|
|
1077
|
+
return tinycolor.mostReadable(baseColor, ["#fff", "#000"], args);
|
|
1078
|
+
}
|
|
1079
|
+
};
|
|
1080
|
+
|
|
1081
|
+
// Big List of Colors
|
|
1082
|
+
// ------------------
|
|
1083
|
+
// <https://www.w3.org/TR/css-color-4/#named-colors>
|
|
1084
|
+
var names = (tinycolor.names = {
|
|
1085
|
+
aliceblue: "f0f8ff",
|
|
1086
|
+
antiquewhite: "faebd7",
|
|
1087
|
+
aqua: "0ff",
|
|
1088
|
+
aquamarine: "7fffd4",
|
|
1089
|
+
azure: "f0ffff",
|
|
1090
|
+
beige: "f5f5dc",
|
|
1091
|
+
bisque: "ffe4c4",
|
|
1092
|
+
black: "000",
|
|
1093
|
+
blanchedalmond: "ffebcd",
|
|
1094
|
+
blue: "00f",
|
|
1095
|
+
blueviolet: "8a2be2",
|
|
1096
|
+
brown: "a52a2a",
|
|
1097
|
+
burlywood: "deb887",
|
|
1098
|
+
burntsienna: "ea7e5d",
|
|
1099
|
+
cadetblue: "5f9ea0",
|
|
1100
|
+
chartreuse: "7fff00",
|
|
1101
|
+
chocolate: "d2691e",
|
|
1102
|
+
coral: "ff7f50",
|
|
1103
|
+
cornflowerblue: "6495ed",
|
|
1104
|
+
cornsilk: "fff8dc",
|
|
1105
|
+
crimson: "dc143c",
|
|
1106
|
+
cyan: "0ff",
|
|
1107
|
+
darkblue: "00008b",
|
|
1108
|
+
darkcyan: "008b8b",
|
|
1109
|
+
darkgoldenrod: "b8860b",
|
|
1110
|
+
darkgray: "a9a9a9",
|
|
1111
|
+
darkgreen: "006400",
|
|
1112
|
+
darkgrey: "a9a9a9",
|
|
1113
|
+
darkkhaki: "bdb76b",
|
|
1114
|
+
darkmagenta: "8b008b",
|
|
1115
|
+
darkolivegreen: "556b2f",
|
|
1116
|
+
darkorange: "ff8c00",
|
|
1117
|
+
darkorchid: "9932cc",
|
|
1118
|
+
darkred: "8b0000",
|
|
1119
|
+
darksalmon: "e9967a",
|
|
1120
|
+
darkseagreen: "8fbc8f",
|
|
1121
|
+
darkslateblue: "483d8b",
|
|
1122
|
+
darkslategray: "2f4f4f",
|
|
1123
|
+
darkslategrey: "2f4f4f",
|
|
1124
|
+
darkturquoise: "00ced1",
|
|
1125
|
+
darkviolet: "9400d3",
|
|
1126
|
+
deeppink: "ff1493",
|
|
1127
|
+
deepskyblue: "00bfff",
|
|
1128
|
+
dimgray: "696969",
|
|
1129
|
+
dimgrey: "696969",
|
|
1130
|
+
dodgerblue: "1e90ff",
|
|
1131
|
+
firebrick: "b22222",
|
|
1132
|
+
floralwhite: "fffaf0",
|
|
1133
|
+
forestgreen: "228b22",
|
|
1134
|
+
fuchsia: "f0f",
|
|
1135
|
+
gainsboro: "dcdcdc",
|
|
1136
|
+
ghostwhite: "f8f8ff",
|
|
1137
|
+
gold: "ffd700",
|
|
1138
|
+
goldenrod: "daa520",
|
|
1139
|
+
gray: "808080",
|
|
1140
|
+
green: "008000",
|
|
1141
|
+
greenyellow: "adff2f",
|
|
1142
|
+
grey: "808080",
|
|
1143
|
+
honeydew: "f0fff0",
|
|
1144
|
+
hotpink: "ff69b4",
|
|
1145
|
+
indianred: "cd5c5c",
|
|
1146
|
+
indigo: "4b0082",
|
|
1147
|
+
ivory: "fffff0",
|
|
1148
|
+
khaki: "f0e68c",
|
|
1149
|
+
lavender: "e6e6fa",
|
|
1150
|
+
lavenderblush: "fff0f5",
|
|
1151
|
+
lawngreen: "7cfc00",
|
|
1152
|
+
lemonchiffon: "fffacd",
|
|
1153
|
+
lightblue: "add8e6",
|
|
1154
|
+
lightcoral: "f08080",
|
|
1155
|
+
lightcyan: "e0ffff",
|
|
1156
|
+
lightgoldenrodyellow: "fafad2",
|
|
1157
|
+
lightgray: "d3d3d3",
|
|
1158
|
+
lightgreen: "90ee90",
|
|
1159
|
+
lightgrey: "d3d3d3",
|
|
1160
|
+
lightpink: "ffb6c1",
|
|
1161
|
+
lightsalmon: "ffa07a",
|
|
1162
|
+
lightseagreen: "20b2aa",
|
|
1163
|
+
lightskyblue: "87cefa",
|
|
1164
|
+
lightslategray: "789",
|
|
1165
|
+
lightslategrey: "789",
|
|
1166
|
+
lightsteelblue: "b0c4de",
|
|
1167
|
+
lightyellow: "ffffe0",
|
|
1168
|
+
lime: "0f0",
|
|
1169
|
+
limegreen: "32cd32",
|
|
1170
|
+
linen: "faf0e6",
|
|
1171
|
+
magenta: "f0f",
|
|
1172
|
+
maroon: "800000",
|
|
1173
|
+
mediumaquamarine: "66cdaa",
|
|
1174
|
+
mediumblue: "0000cd",
|
|
1175
|
+
mediumorchid: "ba55d3",
|
|
1176
|
+
mediumpurple: "9370db",
|
|
1177
|
+
mediumseagreen: "3cb371",
|
|
1178
|
+
mediumslateblue: "7b68ee",
|
|
1179
|
+
mediumspringgreen: "00fa9a",
|
|
1180
|
+
mediumturquoise: "48d1cc",
|
|
1181
|
+
mediumvioletred: "c71585",
|
|
1182
|
+
midnightblue: "191970",
|
|
1183
|
+
mintcream: "f5fffa",
|
|
1184
|
+
mistyrose: "ffe4e1",
|
|
1185
|
+
moccasin: "ffe4b5",
|
|
1186
|
+
navajowhite: "ffdead",
|
|
1187
|
+
navy: "000080",
|
|
1188
|
+
oldlace: "fdf5e6",
|
|
1189
|
+
olive: "808000",
|
|
1190
|
+
olivedrab: "6b8e23",
|
|
1191
|
+
orange: "ffa500",
|
|
1192
|
+
orangered: "ff4500",
|
|
1193
|
+
orchid: "da70d6",
|
|
1194
|
+
palegoldenrod: "eee8aa",
|
|
1195
|
+
palegreen: "98fb98",
|
|
1196
|
+
paleturquoise: "afeeee",
|
|
1197
|
+
palevioletred: "db7093",
|
|
1198
|
+
papayawhip: "ffefd5",
|
|
1199
|
+
peachpuff: "ffdab9",
|
|
1200
|
+
peru: "cd853f",
|
|
1201
|
+
pink: "ffc0cb",
|
|
1202
|
+
plum: "dda0dd",
|
|
1203
|
+
powderblue: "b0e0e6",
|
|
1204
|
+
purple: "800080",
|
|
1205
|
+
rebeccapurple: "663399",
|
|
1206
|
+
red: "f00",
|
|
1207
|
+
rosybrown: "bc8f8f",
|
|
1208
|
+
royalblue: "4169e1",
|
|
1209
|
+
saddlebrown: "8b4513",
|
|
1210
|
+
salmon: "fa8072",
|
|
1211
|
+
sandybrown: "f4a460",
|
|
1212
|
+
seagreen: "2e8b57",
|
|
1213
|
+
seashell: "fff5ee",
|
|
1214
|
+
sienna: "a0522d",
|
|
1215
|
+
silver: "c0c0c0",
|
|
1216
|
+
skyblue: "87ceeb",
|
|
1217
|
+
slateblue: "6a5acd",
|
|
1218
|
+
slategray: "708090",
|
|
1219
|
+
slategrey: "708090",
|
|
1220
|
+
snow: "fffafa",
|
|
1221
|
+
springgreen: "00ff7f",
|
|
1222
|
+
steelblue: "4682b4",
|
|
1223
|
+
tan: "d2b48c",
|
|
1224
|
+
teal: "008080",
|
|
1225
|
+
thistle: "d8bfd8",
|
|
1226
|
+
tomato: "ff6347",
|
|
1227
|
+
turquoise: "40e0d0",
|
|
1228
|
+
violet: "ee82ee",
|
|
1229
|
+
wheat: "f5deb3",
|
|
1230
|
+
white: "fff",
|
|
1231
|
+
whitesmoke: "f5f5f5",
|
|
1232
|
+
yellow: "ff0",
|
|
1233
|
+
yellowgreen: "9acd32",
|
|
1234
|
+
});
|
|
1235
|
+
|
|
1236
|
+
// Make it easy to access colors via `hexNames[hex]`
|
|
1237
|
+
var hexNames = (tinycolor.hexNames = flip(names));
|
|
1238
|
+
|
|
1239
|
+
// Utilities
|
|
1240
|
+
// ---------
|
|
1241
|
+
|
|
1242
|
+
// `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }`
|
|
1243
|
+
function flip(o) {
|
|
1244
|
+
var flipped = {};
|
|
1245
|
+
for (var i in o) {
|
|
1246
|
+
if (o.hasOwnProperty(i)) {
|
|
1247
|
+
flipped[o[i]] = i;
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
return flipped;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
// Return a valid alpha value [0,1] with all invalid values being set to 1
|
|
1254
|
+
function boundAlpha(a) {
|
|
1255
|
+
a = parseFloat(a);
|
|
1256
|
+
|
|
1257
|
+
if (isNaN(a) || a < 0 || a > 1) {
|
|
1258
|
+
a = 1;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
return a;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
// Take input from [0, n] and return it as [0, 1]
|
|
1265
|
+
function bound01(n, max) {
|
|
1266
|
+
if (isOnePointZero(n)) n = "100%";
|
|
1267
|
+
|
|
1268
|
+
var processPercent = isPercentage(n);
|
|
1269
|
+
n = Math.min(max, Math.max(0, parseFloat(n)));
|
|
1270
|
+
|
|
1271
|
+
// Automatically convert percentage into number
|
|
1272
|
+
if (processPercent) {
|
|
1273
|
+
n = parseInt(n * max, 10) / 100;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
// Handle floating point rounding errors
|
|
1277
|
+
if (Math.abs(n - max) < 0.000001) {
|
|
1278
|
+
return 1;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
// Convert into [0, 1] range if it isn't already
|
|
1282
|
+
return (n % max) / parseFloat(max);
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
// Force a number between 0 and 1
|
|
1286
|
+
function clamp01(val) {
|
|
1287
|
+
return Math.min(1, Math.max(0, val));
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
// Parse a base-16 hex value into a base-10 integer
|
|
1291
|
+
function parseIntFromHex(val) {
|
|
1292
|
+
return parseInt(val, 16);
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
// Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
|
|
1296
|
+
// <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
|
|
1297
|
+
function isOnePointZero(n) {
|
|
1298
|
+
return typeof n == "string" && n.indexOf(".") != -1 && parseFloat(n) === 1;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
// Check to see if string passed in is a percentage
|
|
1302
|
+
function isPercentage(n) {
|
|
1303
|
+
return typeof n === "string" && n.indexOf("%") != -1;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
// Force a hex value to have 2 characters
|
|
1307
|
+
function pad2(c) {
|
|
1308
|
+
return c.length == 1 ? "0" + c : "" + c;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
// Replace a decimal with it's percentage value
|
|
1312
|
+
function convertToPercentage(n) {
|
|
1313
|
+
if (n <= 1) {
|
|
1314
|
+
n = n * 100 + "%";
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
return n;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
// Converts a decimal to a hex value
|
|
1321
|
+
function convertDecimalToHex(d) {
|
|
1322
|
+
return Math.round(parseFloat(d) * 255).toString(16);
|
|
1323
|
+
}
|
|
1324
|
+
// Converts a hex value to a decimal
|
|
1325
|
+
function convertHexToDecimal(h) {
|
|
1326
|
+
return parseIntFromHex(h) / 255;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
var matchers = (function () {
|
|
1330
|
+
// <http://www.w3.org/TR/css3-values/#integers>
|
|
1331
|
+
var CSS_INTEGER = "[-\\+]?\\d+%?";
|
|
1332
|
+
|
|
1333
|
+
// <http://www.w3.org/TR/css3-values/#number-value>
|
|
1334
|
+
var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
|
|
1335
|
+
|
|
1336
|
+
// Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
|
|
1337
|
+
var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
|
|
1338
|
+
|
|
1339
|
+
// Actual matching.
|
|
1340
|
+
// Parentheses and commas are optional, but not required.
|
|
1341
|
+
// Whitespace can take the place of commas or opening paren
|
|
1342
|
+
var PERMISSIVE_MATCH3 =
|
|
1343
|
+
"[\\s|\\(]+(" +
|
|
1344
|
+
CSS_UNIT +
|
|
1345
|
+
")[,|\\s]+(" +
|
|
1346
|
+
CSS_UNIT +
|
|
1347
|
+
")[,|\\s]+(" +
|
|
1348
|
+
CSS_UNIT +
|
|
1349
|
+
")\\s*\\)?";
|
|
1350
|
+
var PERMISSIVE_MATCH4 =
|
|
1351
|
+
"[\\s|\\(]+(" +
|
|
1352
|
+
CSS_UNIT +
|
|
1353
|
+
")[,|\\s]+(" +
|
|
1354
|
+
CSS_UNIT +
|
|
1355
|
+
")[,|\\s]+(" +
|
|
1356
|
+
CSS_UNIT +
|
|
1357
|
+
")[,|\\s]+(" +
|
|
1358
|
+
CSS_UNIT +
|
|
1359
|
+
")\\s*\\)?";
|
|
1360
|
+
|
|
1361
|
+
return {
|
|
1362
|
+
CSS_UNIT: new RegExp(CSS_UNIT),
|
|
1363
|
+
rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
|
|
1364
|
+
rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
|
|
1365
|
+
hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
|
|
1366
|
+
hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
|
|
1367
|
+
hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
|
|
1368
|
+
hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
|
|
1369
|
+
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
1370
|
+
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
1371
|
+
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
1372
|
+
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
1373
|
+
};
|
|
1374
|
+
})();
|
|
1375
|
+
|
|
1376
|
+
// `isValidCSSUnit`
|
|
1377
|
+
// Take in a single string / number and check to see if it looks like a CSS unit
|
|
1378
|
+
// (see `matchers` above for definition).
|
|
1379
|
+
function isValidCSSUnit(color) {
|
|
1380
|
+
return !!matchers.CSS_UNIT.exec(color);
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
// `stringInputToObject`
|
|
1384
|
+
// Permissive string parsing. Take in a number of formats, and output an object
|
|
1385
|
+
// based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
|
|
1386
|
+
function stringInputToObject(color) {
|
|
1387
|
+
color = color.replace(trimLeft, "").replace(trimRight, "").toLowerCase();
|
|
1388
|
+
var named = false;
|
|
1389
|
+
if (names[color]) {
|
|
1390
|
+
color = names[color];
|
|
1391
|
+
named = true;
|
|
1392
|
+
} else if (color == "transparent") {
|
|
1393
|
+
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
// Try to match string input using regular expressions.
|
|
1397
|
+
// Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
|
|
1398
|
+
// Just return an object and let the conversion functions handle that.
|
|
1399
|
+
// This way the result will be the same whether the tinycolor is initialized with string or object.
|
|
1400
|
+
var match;
|
|
1401
|
+
if ((match = matchers.rgb.exec(color))) {
|
|
1402
|
+
return { r: match[1], g: match[2], b: match[3] };
|
|
1403
|
+
}
|
|
1404
|
+
if ((match = matchers.rgba.exec(color))) {
|
|
1405
|
+
return { r: match[1], g: match[2], b: match[3], a: match[4] };
|
|
1406
|
+
}
|
|
1407
|
+
if ((match = matchers.hsl.exec(color))) {
|
|
1408
|
+
return { h: match[1], s: match[2], l: match[3] };
|
|
1409
|
+
}
|
|
1410
|
+
if ((match = matchers.hsla.exec(color))) {
|
|
1411
|
+
return { h: match[1], s: match[2], l: match[3], a: match[4] };
|
|
1412
|
+
}
|
|
1413
|
+
if ((match = matchers.hsv.exec(color))) {
|
|
1414
|
+
return { h: match[1], s: match[2], v: match[3] };
|
|
1415
|
+
}
|
|
1416
|
+
if ((match = matchers.hsva.exec(color))) {
|
|
1417
|
+
return { h: match[1], s: match[2], v: match[3], a: match[4] };
|
|
1418
|
+
}
|
|
1419
|
+
if ((match = matchers.hex8.exec(color))) {
|
|
1420
|
+
return {
|
|
1421
|
+
r: parseIntFromHex(match[1]),
|
|
1422
|
+
g: parseIntFromHex(match[2]),
|
|
1423
|
+
b: parseIntFromHex(match[3]),
|
|
1424
|
+
a: convertHexToDecimal(match[4]),
|
|
1425
|
+
format: named ? "name" : "hex8",
|
|
1426
|
+
};
|
|
1427
|
+
}
|
|
1428
|
+
if ((match = matchers.hex6.exec(color))) {
|
|
1429
|
+
return {
|
|
1430
|
+
r: parseIntFromHex(match[1]),
|
|
1431
|
+
g: parseIntFromHex(match[2]),
|
|
1432
|
+
b: parseIntFromHex(match[3]),
|
|
1433
|
+
format: named ? "name" : "hex",
|
|
1434
|
+
};
|
|
1435
|
+
}
|
|
1436
|
+
if ((match = matchers.hex4.exec(color))) {
|
|
1437
|
+
return {
|
|
1438
|
+
r: parseIntFromHex(match[1] + "" + match[1]),
|
|
1439
|
+
g: parseIntFromHex(match[2] + "" + match[2]),
|
|
1440
|
+
b: parseIntFromHex(match[3] + "" + match[3]),
|
|
1441
|
+
a: convertHexToDecimal(match[4] + "" + match[4]),
|
|
1442
|
+
format: named ? "name" : "hex8",
|
|
1443
|
+
};
|
|
1444
|
+
}
|
|
1445
|
+
if ((match = matchers.hex3.exec(color))) {
|
|
1446
|
+
return {
|
|
1447
|
+
r: parseIntFromHex(match[1] + "" + match[1]),
|
|
1448
|
+
g: parseIntFromHex(match[2] + "" + match[2]),
|
|
1449
|
+
b: parseIntFromHex(match[3] + "" + match[3]),
|
|
1450
|
+
format: named ? "name" : "hex",
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
return false;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
function validateWCAG2Parms(parms) {
|
|
1458
|
+
// return valid WCAG2 parms for isReadable.
|
|
1459
|
+
// If input parms are invalid, return {"level":"AA", "size":"small"}
|
|
1460
|
+
var level, size;
|
|
1461
|
+
parms = parms || { level: "AA", size: "small" };
|
|
1462
|
+
level = (parms.level || "AA").toUpperCase();
|
|
1463
|
+
size = (parms.size || "small").toLowerCase();
|
|
1464
|
+
if (level !== "AA" && level !== "AAA") {
|
|
1465
|
+
level = "AA";
|
|
1466
|
+
}
|
|
1467
|
+
if (size !== "small" && size !== "large") {
|
|
1468
|
+
size = "small";
|
|
1469
|
+
}
|
|
1470
|
+
return { level: level, size: size };
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
return tinycolor;
|
|
1474
|
+
|
|
1475
|
+
}));
|
|
1476
|
+
});
|
|
1477
|
+
|
|
84
1478
|
const formatValue$2 = (tinyColor) => {
|
|
85
1479
|
if (!tinyColor) {
|
|
86
1480
|
return '';
|
|
@@ -466,10 +1860,10 @@ const OverridableColorTokens = [
|
|
|
466
1860
|
? baseColor.clone()
|
|
467
1861
|
: undefined;
|
|
468
1862
|
if (baseColor === null || baseColor === void 0 ? void 0 : baseColor.isDark()) {
|
|
469
|
-
value = tinycolor({ a: 0.9,
|
|
1863
|
+
value = tinycolor({ a: 0.9, r: 255, b: 255, g: 255 });
|
|
470
1864
|
}
|
|
471
1865
|
else {
|
|
472
|
-
value = tinycolor({ a: 0.86,
|
|
1866
|
+
value = tinycolor({ a: 0.86, r: 15, b: 15, g: 15 });
|
|
473
1867
|
}
|
|
474
1868
|
return formatValue$2(value);
|
|
475
1869
|
},
|
|
@@ -519,7 +1913,7 @@ const OverridableColorTokens = [
|
|
|
519
1913
|
value = tinycolor({ a: 0.9, r: 255, b: 255, g: 255 });
|
|
520
1914
|
}
|
|
521
1915
|
else {
|
|
522
|
-
value = tinycolor({ a: 0.86,
|
|
1916
|
+
value = tinycolor({ a: 0.86, r: 15, b: 15, g: 15 });
|
|
523
1917
|
}
|
|
524
1918
|
return formatValue$2(value);
|
|
525
1919
|
},
|
|
@@ -1459,6 +2853,43 @@ class ThemeManager {
|
|
|
1459
2853
|
}
|
|
1460
2854
|
const VegaThemeManager = new ThemeManager();
|
|
1461
2855
|
|
|
2856
|
+
var FrameworkEnum;
|
|
2857
|
+
(function (FrameworkEnum) {
|
|
2858
|
+
FrameworkEnum["Angular"] = "angular";
|
|
2859
|
+
FrameworkEnum["Vue"] = "vue";
|
|
2860
|
+
FrameworkEnum["React"] = "react";
|
|
2861
|
+
FrameworkEnum["Next"] = "next";
|
|
2862
|
+
FrameworkEnum["VanillaJs"] = "vanilla-js";
|
|
2863
|
+
})(FrameworkEnum || (FrameworkEnum = {}));
|
|
2864
|
+
/** The VegaEnvManager class manages vega environment parameters. */
|
|
2865
|
+
class VegaEnvManager {
|
|
2866
|
+
constructor() {
|
|
2867
|
+
// The `"1.52.0"` will be replaced to a version string during bundling by plugin
|
|
2868
|
+
this.vegaVersion = '"1.52.0"';
|
|
2869
|
+
this.framework = FrameworkEnum.VanillaJs;
|
|
2870
|
+
}
|
|
2871
|
+
/**
|
|
2872
|
+
* The function "getVegaEnv" returns vega environment parameters.
|
|
2873
|
+
*
|
|
2874
|
+
* @returns {VegaEnvManagerType} The method is returning a VegaEnvManagerType object.
|
|
2875
|
+
*/
|
|
2876
|
+
getVegaEnv() {
|
|
2877
|
+
return {
|
|
2878
|
+
version: this.vegaVersion,
|
|
2879
|
+
framework: this.framework,
|
|
2880
|
+
};
|
|
2881
|
+
}
|
|
2882
|
+
/**
|
|
2883
|
+
* The function sets the Vega framework to the specified value.
|
|
2884
|
+
*
|
|
2885
|
+
* @param {FrameworkEnum} framework - The framework parameter is a type that can be one of the values in the FrameworkSafeList array.
|
|
2886
|
+
*/
|
|
2887
|
+
setVegaFramework(framework) {
|
|
2888
|
+
this.framework = framework;
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2891
|
+
const vegaEnvManager = new VegaEnvManager();
|
|
2892
|
+
|
|
1462
2893
|
/**
|
|
1463
2894
|
* The VegaEventManager class provides methods for setting and retrieving event semantics configuration,
|
|
1464
2895
|
* as well as getting the corresponding native event name for a given event.
|
|
@@ -1473,7 +2904,7 @@ class VegaEventManager {
|
|
|
1473
2904
|
* semantics of the event.
|
|
1474
2905
|
*/
|
|
1475
2906
|
setSemantics(config) {
|
|
1476
|
-
|
|
2907
|
+
InternalVegaEventManager.setSemantics(config);
|
|
1477
2908
|
}
|
|
1478
2909
|
/**
|
|
1479
2910
|
* The function "getSemantics" returns the event semantics of an HTML element.
|
|
@@ -1484,19 +2915,19 @@ class VegaEventManager {
|
|
|
1484
2915
|
* @returns {EventSemantics} an object of type EventSemantics.
|
|
1485
2916
|
*/
|
|
1486
2917
|
getSemantics(host) {
|
|
1487
|
-
return
|
|
2918
|
+
return InternalVegaEventManager.getSemantics(host);
|
|
1488
2919
|
}
|
|
1489
2920
|
/**
|
|
1490
2921
|
* The function "getEnabledEventIdsByComponent" returns the all eventIds in component.
|
|
1491
2922
|
*
|
|
1492
2923
|
* @param {VegaComponentName} componentName - The component name,
|
|
1493
2924
|
* etc.
|
|
1494
|
-
* @returns {Nullable<
|
|
2925
|
+
* @returns {Nullable<VegaEventID[]>} All eventIds.
|
|
1495
2926
|
*/
|
|
1496
2927
|
getEnabledEventIdsByComponent(componentName) {
|
|
1497
|
-
return
|
|
2928
|
+
return InternalVegaEventManager.getEnabledEventIdsByComponent(componentName);
|
|
1498
2929
|
}
|
|
1499
2930
|
}
|
|
1500
2931
|
const VegaEventManager$1 = new VegaEventManager();
|
|
1501
2932
|
|
|
1502
|
-
export { VegaLoader as V,
|
|
2933
|
+
export { FrameworkEnum as F, VegaLoader as V, VegaNotify as a, VegaThemeManager as b, VegaEventManager$1 as c, vegaEnvManager as v };
|