@heartlandone/vega 2.2.0 → 2.4.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-dfbf8897.js → app-globals-e5264ce3.js} +27 -2
- package/dist/cjs/{childNodesEventPreventSlimmer-83a90fdd.js → childNodesEventPreventSlimmer-154f6607.js} +1 -1
- package/dist/cjs/{childNodesNotifyObserverSlimmer-bacb702e.js → childNodesNotifyObserverSlimmer-fd857812.js} +1 -1
- package/dist/cjs/{designToken-a55d5476.js → designToken-9c4dabd5.js} +2 -2
- package/dist/cjs/{elementAppenderSlimmer-2ec6d5c9.js → elementAppenderSlimmer-91ec7d6e.js} +4 -4
- package/dist/cjs/{eventEmitSlimmer-e4f299f0.js → eventEmitSlimmer-e5dfecf0.js} +7 -7
- package/dist/cjs/{formFieldControllerSlimmer-e4db5eba.js → formFieldControllerSlimmer-d41eda5b.js} +7 -30
- package/dist/cjs/index-1299d729.js +4 -0
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{internalVegaEventManager-1d242536.js → internalVegaEventManager-951b9a39.js} +1 -0
- package/dist/cjs/loader.cjs.js +6 -6
- package/dist/cjs/{pageResizeObserverSlimmer-efb83b0b.js → pageResizeObserverSlimmer-b4a91cfc.js} +5 -0
- package/dist/cjs/{responsiveFormatFacade-8518443e.js → responsiveFormatFacade-d735e5c8.js} +19 -19
- package/dist/cjs/{stringMaskStrategy-b22eb314.js → stringMaskStrategy-ea108ada.js} +1 -1
- package/dist/cjs/{subStateObserverSlimmer-9b71b20d.js → subStateObserverSlimmer-f196a86f.js} +1 -1
- package/dist/cjs/{typeGuard-70b919b6.js → typeGuard-477c2697.js} +10 -10
- package/dist/cjs/vega-accordion.cjs.entry.js +6 -6
- package/dist/cjs/vega-app-header-button.cjs.entry.js +7 -7
- package/dist/cjs/vega-box.cjs.entry.js +20 -8
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/vega-button-circle.cjs.entry.js +6 -6
- package/dist/cjs/vega-button-link.cjs.entry.js +3 -3
- package/dist/cjs/vega-button.cjs.entry.js +6 -6
- package/dist/cjs/vega-card.cjs.entry.js +3 -3
- package/dist/cjs/vega-carousel.cjs.entry.js +5 -5
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +9 -8
- package/dist/cjs/vega-chip.cjs.entry.js +7 -7
- package/dist/cjs/vega-color-picker.cjs.entry.js +5 -4
- package/dist/cjs/vega-combo-box.cjs.entry.js +7 -6
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +11 -10
- package/dist/cjs/vega-dialog_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +764 -314
- package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
- package/dist/cjs/vega-flex.cjs.entry.js +3 -3
- package/dist/cjs/vega-font.cjs.entry.js +4 -4
- package/dist/cjs/vega-form.cjs.entry.js +8 -7
- package/dist/cjs/vega-grid.cjs.entry.js +3 -3
- package/dist/cjs/vega-icon.cjs.entry.js +3 -3
- package/dist/cjs/vega-image-uploader.cjs.entry.js +6 -5
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +6 -5
- package/dist/cjs/vega-input-range.cjs.entry.js +6 -5
- package/dist/cjs/vega-input-select.cjs.entry.js +127 -42
- package/dist/cjs/vega-input.cjs.entry.js +7 -6
- package/dist/cjs/vega-item-toggle.cjs.entry.js +2 -2
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +6 -6
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination.cjs.entry.js +3 -3
- package/dist/cjs/vega-popover_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-progress-tracker.cjs.entry.js +2 -2
- package/dist/cjs/vega-radio_2.cjs.entry.js +9 -8
- package/dist/cjs/vega-segment-control.cjs.entry.js +335 -0
- package/dist/cjs/vega-stepper.cjs.entry.js +6 -5
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-table_8.cjs.entry.js +8 -8
- package/dist/cjs/vega-text.cjs.entry.js +1 -1
- package/dist/cjs/vega-textarea.cjs.entry.js +6 -5
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +10 -9
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +5 -5
- package/dist/cjs/vega.cjs.js +6 -6
- package/dist/cjs/{vegaEventManager-596e0636.js → vegaEventManager-502e3022.js} +5 -5
- package/dist/cjs/vegaInternalEventId-6f5bb903.js +28 -0
- package/dist/cjs/{zIndexManager-de9aa352.js → zIndexManager-2dae3568.js} +78 -5
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/vega-box/interface.js +1 -0
- package/dist/collection/components/vega-box/vega-box.js +198 -4
- package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.js +12 -7
- 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.js +22 -0
- package/dist/collection/components/vega-grid/vega-grid.js +4 -4
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-dropdown-controller.js +8 -0
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-lazy-load-controller.js +70 -0
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +4 -1
- package/dist/collection/components/vega-input-select/vega-input-select.js +28 -1
- package/dist/collection/components/vega-segment-control/slimmers/controllers/vega-segment-control-selected-controller.js +49 -0
- package/dist/collection/components/vega-segment-control/slimmers/controllers/vega-segment-overflow-controller.js +68 -0
- package/dist/collection/components/vega-segment-control/slimmers/renderers/vega-segment-control-renderer.js +22 -0
- package/dist/collection/components/vega-segment-control/slimmers/renderers/vega-segment-renderer.js +68 -0
- package/dist/collection/components/vega-segment-control/vega-segment-control.css +126 -0
- package/dist/collection/components/vega-segment-control/vega-segment-control.js +265 -0
- package/dist/collection/components/vega-virtual-scroll/slimmers/controllers/vega-virtual-scroll-mode-controller.js +70 -0
- package/dist/collection/components/vega-virtual-scroll/slimmers/controllers/vega-virtual-scroll-position-controller.js +171 -0
- package/dist/collection/components/vega-virtual-scroll/slimmers/controllers/vega-virtual-scroll-scrollable-controller.js +199 -0
- package/dist/collection/components/vega-virtual-scroll/slimmers/renderers/vega-virtual-scroll-loading-indicator-renderer.js +23 -0
- package/dist/collection/components/vega-virtual-scroll/slimmers/renderers/vega-virtual-scroll-renderer.js +66 -0
- package/dist/collection/components/vega-virtual-scroll/vega-virtual-scroll.css +7 -0
- package/dist/collection/components/vega-virtual-scroll/vega-virtual-scroll.js +80 -140
- package/dist/collection/constants/regex.js +2 -2
- package/dist/collection/constants/tokens/tailwind.extend.js +2 -2
- package/dist/collection/global/scripts/beforeVegaLoad.js +8 -0
- package/dist/collection/helpers/change-manager/subject/static-subject/staticSubjectTitle.js +1 -0
- package/dist/collection/helpers/event-manager/eventID/componentEventIdMap.js +1 -0
- package/dist/collection/helpers/event-manager/eventID/vegaInternalEventId.js +1 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveFormatFacade.js +4 -4
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveGridColumnsFormatter.js +29 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/{responsiveGridRowFormatter.js → responsiveGridRowsFormatter.js} +9 -9
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsiveGridColumnFormatter.test.js +6 -6
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsiveGridRowFormatter.test.js +8 -8
- package/dist/collection/helpers/notify/tests/vegaNotifyController.test.js +0 -4
- package/dist/collection/helpers/slimmers/pageResizeObserverSlimmer.js +5 -0
- package/dist/collection/helpers/zindex/test/vegaZIndexManager.test.js +29 -0
- package/dist/collection/helpers/zindex/test/zIndexManager.test.js +73 -6
- package/dist/collection/helpers/zindex/vegaZIndexManager.js +17 -0
- package/dist/collection/helpers/zindex/zIndexManager.js +78 -5
- package/dist/collection/types/typeGuard.js +7 -7
- package/dist/collection/utils/testUtils.js +4 -2
- package/dist/esm/{app-globals-66cada5c.js → app-globals-90791ada.js} +27 -2
- package/dist/esm/{childNodesEventPreventSlimmer-6ec031ef.js → childNodesEventPreventSlimmer-bef69563.js} +1 -1
- package/dist/esm/{childNodesNotifyObserverSlimmer-46f52e33.js → childNodesNotifyObserverSlimmer-0f055a66.js} +1 -1
- package/dist/esm/{designToken-9b27a244.js → designToken-cb2388b5.js} +2 -2
- package/dist/esm/{elementAppenderSlimmer-bb2fc481.js → elementAppenderSlimmer-c8ebf411.js} +4 -4
- package/dist/esm/{eventEmitSlimmer-f34c2d7f.js → eventEmitSlimmer-25555a18.js} +7 -7
- package/dist/esm/{formFieldControllerSlimmer-b4e0ae0d.js → formFieldControllerSlimmer-3b3a4140.js} +6 -27
- package/dist/esm/index-c3505689.js +4 -0
- package/dist/esm/index.js +7 -7
- package/dist/esm/{internalVegaEventManager-4d8f7e1d.js → internalVegaEventManager-b790d4e6.js} +1 -0
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{pageResizeObserverSlimmer-39d1d0ff.js → pageResizeObserverSlimmer-d5d5fc44.js} +5 -0
- package/dist/esm/{responsiveFormatFacade-e91e14ac.js → responsiveFormatFacade-7fcaab5d.js} +19 -19
- package/dist/esm/{stringMaskStrategy-c463fad7.js → stringMaskStrategy-d6bec5fd.js} +1 -1
- package/dist/esm/{subStateObserverSlimmer-c204a78f.js → subStateObserverSlimmer-3b34ec0c.js} +1 -1
- package/dist/esm/{typeGuard-5e282437.js → typeGuard-1345cf50.js} +9 -9
- package/dist/esm/vega-accordion.entry.js +6 -6
- package/dist/esm/vega-app-header-button.entry.js +7 -7
- package/dist/esm/vega-box.entry.js +20 -8
- package/dist/esm/vega-breadcrumb.entry.js +3 -3
- package/dist/esm/vega-button-circle.entry.js +6 -6
- package/dist/esm/vega-button-link.entry.js +3 -3
- package/dist/esm/vega-button.entry.js +6 -6
- package/dist/esm/vega-card.entry.js +3 -3
- package/dist/esm/vega-carousel.entry.js +5 -5
- package/dist/esm/vega-checkbox_2.entry.js +9 -8
- package/dist/esm/vega-chip.entry.js +7 -7
- package/dist/esm/vega-color-picker.entry.js +5 -4
- package/dist/esm/vega-combo-box.entry.js +7 -6
- package/dist/esm/vega-date-picker_2.entry.js +11 -10
- package/dist/esm/vega-dialog_2.entry.js +8 -8
- package/dist/esm/vega-dropdown_5.entry.js +764 -314
- package/dist/esm/vega-field-label.entry.js +3 -3
- package/dist/esm/vega-flex.entry.js +3 -3
- package/dist/esm/vega-font.entry.js +4 -4
- package/dist/esm/vega-form.entry.js +8 -7
- package/dist/esm/vega-grid.entry.js +3 -3
- package/dist/esm/vega-icon.entry.js +3 -3
- package/dist/esm/vega-image-uploader.entry.js +6 -5
- package/dist/esm/vega-input-credit-card.entry.js +6 -5
- package/dist/esm/vega-input-range.entry.js +6 -5
- package/dist/esm/vega-input-select.entry.js +127 -42
- package/dist/esm/vega-input.entry.js +7 -6
- package/dist/esm/vega-item-toggle.entry.js +2 -2
- package/dist/esm/vega-left-nav_5.entry.js +6 -6
- package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
- package/dist/esm/vega-pagination.entry.js +3 -3
- package/dist/esm/vega-popover_2.entry.js +7 -7
- package/dist/esm/vega-progress-tracker.entry.js +2 -2
- package/dist/esm/vega-radio_2.entry.js +9 -8
- package/dist/esm/vega-segment-control.entry.js +331 -0
- package/dist/esm/vega-stepper.entry.js +6 -5
- package/dist/esm/vega-tab-group_2.entry.js +4 -4
- package/dist/esm/vega-table_8.entry.js +8 -8
- package/dist/esm/vega-text.entry.js +1 -1
- package/dist/esm/vega-textarea.entry.js +6 -5
- package/dist/esm/vega-time-picker_2.entry.js +10 -9
- package/dist/esm/vega-toggle-switch.entry.js +2 -2
- package/dist/esm/vega-tooltip_2.entry.js +5 -5
- package/dist/esm/vega.js +6 -6
- package/dist/esm/{vegaEventManager-30471eee.js → vegaEventManager-32e6d6a8.js} +5 -5
- package/dist/esm/vegaInternalEventId-35e47bc7.js +24 -0
- package/dist/esm/zIndexManager-4292318f.js +178 -0
- package/dist/types/components/vega-box/interface.d.ts +11 -0
- package/dist/types/components/vega-box/vega-box.d.ts +29 -0
- package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.d.ts +1 -0
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +4 -0
- package/dist/types/components/vega-grid/vega-grid.d.ts +3 -3
- package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-dropdown-controller.d.ts +7 -0
- package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-lazy-load-controller.d.ts +28 -0
- package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.d.ts +1 -0
- package/dist/types/components/vega-input-select/types.d.ts +9 -0
- package/dist/types/components/vega-input-select/vega-input-select.d.ts +11 -1
- package/dist/types/components/vega-segment-control/slimmers/controllers/vega-segment-control-selected-controller.d.ts +16 -0
- package/dist/types/components/vega-segment-control/slimmers/controllers/vega-segment-overflow-controller.d.ts +23 -0
- package/dist/types/components/vega-segment-control/slimmers/renderers/vega-segment-control-renderer.d.ts +7 -0
- package/dist/types/components/vega-segment-control/slimmers/renderers/vega-segment-renderer.d.ts +20 -0
- package/dist/types/components/vega-segment-control/types.d.ts +8 -0
- package/dist/types/components/vega-segment-control/vega-segment-control.d.ts +73 -0
- package/dist/types/components/vega-virtual-scroll/slimmers/controllers/vega-virtual-scroll-mode-controller.d.ts +34 -0
- package/dist/types/components/vega-virtual-scroll/slimmers/controllers/vega-virtual-scroll-position-controller.d.ts +88 -0
- package/dist/types/components/vega-virtual-scroll/slimmers/controllers/vega-virtual-scroll-scrollable-controller.d.ts +97 -0
- package/dist/types/components/vega-virtual-scroll/slimmers/renderers/vega-virtual-scroll-loading-indicator-renderer.d.ts +10 -0
- package/dist/types/components/vega-virtual-scroll/slimmers/renderers/vega-virtual-scroll-renderer.d.ts +16 -0
- package/dist/types/components/vega-virtual-scroll/types.d.ts +11 -0
- package/dist/types/components/vega-virtual-scroll/vega-virtual-scroll.d.ts +24 -48
- package/dist/types/components.d.ts +162 -14
- package/dist/types/constants/regex.d.ts +2 -2
- package/dist/types/constants/tokens/tailwind.extend.d.ts +2 -2
- package/dist/types/helpers/change-manager/subject/static-subject/staticSubjectTitle.d.ts +2 -1
- package/dist/types/helpers/event-manager/eventID/vegaInternalEventId.d.ts +1 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsiveGridColumnsFormatter.d.ts +19 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsiveGridRowsFormatter.d.ts +19 -0
- package/dist/types/helpers/zindex/test/vegaZIndexManager.test.d.ts +1 -0
- package/dist/types/helpers/zindex/vegaZIndexManager.d.ts +19 -0
- package/dist/types/helpers/zindex/zIndexManager.d.ts +43 -5
- package/dist/types/types/components.type.d.ts +13 -2
- package/dist/types/types/typeGuard.d.ts +4 -4
- package/dist/types/types/ui.type.d.ts +6 -6
- package/dist/types/utils/testUtils.d.ts +2 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-00781ab5.entry.js +1 -0
- package/dist/vega/p-0284abd6.entry.js +1 -0
- package/dist/vega/{p-b3726704.js → p-08e8fcfc.js} +1 -1
- package/dist/vega/{p-51c21063.entry.js → p-093c5c06.entry.js} +1 -1
- package/dist/vega/{p-e7cc9793.entry.js → p-0a6b6b48.entry.js} +1 -1
- package/dist/vega/{p-aec86b14.entry.js → p-0d17d232.entry.js} +1 -1
- package/dist/vega/p-0e657a22.entry.js +1 -0
- package/dist/vega/{p-5bc3f5e7.entry.js → p-15002533.entry.js} +1 -1
- package/dist/vega/{p-6e377e96.entry.js → p-19fa79e6.entry.js} +1 -1
- package/dist/vega/{p-58e7cf15.entry.js → p-1acfad43.entry.js} +1 -1
- package/dist/vega/p-21712e98.entry.js +1 -0
- package/dist/vega/p-273035b1.entry.js +1 -0
- package/dist/vega/{p-fecdfc5d.entry.js → p-30b19333.entry.js} +1 -1
- package/dist/vega/{p-197ed7d6.js → p-30dea06e.js} +1 -1
- package/dist/vega/p-34d08302.entry.js +1 -0
- package/dist/vega/p-38909110.entry.js +1 -0
- package/dist/vega/{p-8d426ae0.entry.js → p-45d1c5b8.entry.js} +1 -1
- package/dist/vega/{p-1598acdd.js → p-45f075a3.js} +1 -1
- package/dist/vega/{p-33dd5b26.entry.js → p-48e6c3e1.entry.js} +1 -1
- package/dist/vega/p-49ecdc42.entry.js +1 -0
- package/dist/vega/{p-f7c856be.entry.js → p-5173be2d.entry.js} +1 -1
- package/dist/vega/{p-c1277749.entry.js → p-5821ebfe.entry.js} +1 -1
- package/dist/vega/p-59621764.entry.js +1 -0
- package/dist/vega/{p-194286d0.entry.js → p-67f8b42c.entry.js} +1 -1
- package/dist/vega/{p-8bba64cf.entry.js → p-78f2c2c2.entry.js} +1 -1
- package/dist/vega/{p-c92af3f3.entry.js → p-7f175115.entry.js} +1 -1
- package/dist/vega/{p-b21ff116.entry.js → p-84c7b2a2.entry.js} +1 -1
- package/dist/vega/p-869e20fa.entry.js +1 -0
- package/dist/vega/{p-e496d0e2.js → p-88e71c89.js} +1 -1
- package/dist/vega/p-8abac75b.js +1 -0
- package/dist/vega/p-9332d73d.js +1 -0
- package/dist/vega/p-93f7779c.entry.js +1 -0
- package/dist/vega/{p-a99fea85.entry.js → p-96a419ee.entry.js} +1 -1
- package/dist/vega/{p-7fd7f79d.entry.js → p-9a95f33b.entry.js} +1 -1
- package/dist/vega/p-9adde14f.entry.js +1 -0
- package/dist/vega/p-b37dbd69.js +1 -0
- package/dist/vega/{p-33bbb0e8.entry.js → p-b467bddf.entry.js} +1 -1
- package/dist/vega/{p-1597cfdb.entry.js → p-b4737f03.entry.js} +2 -2
- package/dist/vega/{p-d7ad051f.entry.js → p-b49b3441.entry.js} +1 -1
- package/dist/vega/{p-6923b79c.js → p-b76702a8.js} +1 -1
- package/dist/vega/{p-7eb69565.entry.js → p-c17ddd2d.entry.js} +1 -1
- package/dist/vega/p-c2baf259.entry.js +1 -0
- package/dist/vega/{p-9dcfd5f2.js → p-c384eaff.js} +1 -1
- package/dist/vega/{p-6bbd25e1.js → p-c80d8603.js} +1 -1
- package/dist/vega/{p-40291804.js → p-cb00df88.js} +1 -1
- package/dist/vega/p-cd4a9488.js +1 -0
- package/dist/vega/{p-2427511f.entry.js → p-d8d95c7f.entry.js} +1 -1
- package/dist/vega/p-dcb1649f.entry.js +1 -0
- package/dist/vega/{p-10d6d098.entry.js → p-dd886c1e.entry.js} +1 -1
- package/dist/vega/p-dda4852c.js +1 -0
- package/dist/vega/{p-678d4d23.entry.js → p-e11c6b26.entry.js} +1 -1
- package/dist/vega/{p-2ff0323f.js → p-e2296522.js} +1 -1
- package/dist/vega/{p-1a2c2bf8.entry.js → p-e53ce157.entry.js} +1 -1
- package/dist/vega/p-f8320f7d.entry.js +1 -0
- package/dist/vega/p-f90aef8a.js +1 -0
- package/dist/vega/{p-16864322.entry.js → p-fe390ce2.entry.js} +1 -1
- package/dist/vega/{p-24bc5449.entry.js → p-ff2e645f.entry.js} +1 -1
- package/dist/vega/p-ff70397c.entry.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveGridColumnFormatter.js +0 -29
- package/dist/esm/zIndexManager-ea603c97.js +0 -105
- package/dist/types/helpers/formatter/responsive-map-formatter/responsiveGridColumnFormatter.d.ts +0 -19
- package/dist/types/helpers/formatter/responsive-map-formatter/responsiveGridRowFormatter.d.ts +0 -19
- package/dist/vega/p-00c1089c.entry.js +0 -1
- package/dist/vega/p-012263bf.entry.js +0 -1
- package/dist/vega/p-0478ca6f.js +0 -1
- package/dist/vega/p-0b14da46.entry.js +0 -1
- package/dist/vega/p-11900f30.entry.js +0 -1
- package/dist/vega/p-14594865.entry.js +0 -1
- package/dist/vega/p-146afc30.entry.js +0 -1
- package/dist/vega/p-3c37039f.js +0 -1
- package/dist/vega/p-4d87330b.entry.js +0 -1
- package/dist/vega/p-4e455c75.entry.js +0 -1
- package/dist/vega/p-6b70f8c8.js +0 -1
- package/dist/vega/p-88aa975c.js +0 -1
- package/dist/vega/p-a6b492b2.entry.js +0 -1
- package/dist/vega/p-ac828dca.entry.js +0 -1
- package/dist/vega/p-adcba23c.entry.js +0 -1
- package/dist/vega/p-db915d91.entry.js +0 -1
- package/dist/vega/p-e46640ff.entry.js +0 -1
- package/dist/vega/p-e5692191.js +0 -1
- package/dist/vega/p-f02645c2.entry.js +0 -1
- package/dist/vega/p-f7be5041.entry.js +0 -1
- /package/dist/vega/{p-5fd43609.js → p-f92cc0e4.js} +0 -0
|
@@ -19,3 +19,4 @@ export class VegaInternalEventID {
|
|
|
19
19
|
}
|
|
20
20
|
export const VegaInternalValid = new VegaInternalEventID('valid');
|
|
21
21
|
export const VegaInternalFieldErrorStateChange = new VegaInternalEventID('fieldErrorStateChange');
|
|
22
|
+
export const VegaInternalVirtualScrollToBottom = new VegaInternalEventID('virtualScrollToBottom');
|
package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveFormatFacade.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import ResponsivePaddingFormatter from './responsivePaddingFormatter';
|
|
2
2
|
import ResponsiveMarginFormatter from './responsiveMarginFormatter';
|
|
3
3
|
import ResponsiveGapFormatter from './responsiveGapFormatter';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import ResponsiveColumnsFormatter from './responsiveGridColumnsFormatter';
|
|
5
|
+
import ResponsiveRowsFormatter from './responsiveGridRowsFormatter';
|
|
6
6
|
import ResponsiveSizeFormatter from './responsiveSizeFormatter';
|
|
7
7
|
import ResponsiveTranslocationFormatter from './responsiveTranslocationFormatter';
|
|
8
8
|
import ResponsiveDisplayFormatter from './responsiveDisplayFormatter';
|
|
@@ -40,9 +40,9 @@ class ResponsiveFormatFacade {
|
|
|
40
40
|
case 'gap':
|
|
41
41
|
return ResponsiveGapFormatter.format(input);
|
|
42
42
|
case 'gridColumn':
|
|
43
|
-
return
|
|
43
|
+
return ResponsiveColumnsFormatter.format(input);
|
|
44
44
|
case 'gridRow':
|
|
45
|
-
return
|
|
45
|
+
return ResponsiveRowsFormatter.format(input);
|
|
46
46
|
case 'size':
|
|
47
47
|
return ResponsiveSizeFormatter.format(input);
|
|
48
48
|
case 'translocation':
|
package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveGridColumnsFormatter.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { isGridColumnsType, isBreakpointsForPrefixType } from '../../../types/typeGuard';
|
|
2
|
+
import { LogUtility } from '../../../utils/log';
|
|
3
|
+
import { ResponsiveClassStringFormatter } from './responsiveClassStringFormatter';
|
|
4
|
+
import { GridColumns } from '../../../constants/tokens/tailwind.extend';
|
|
5
|
+
/**
|
|
6
|
+
* A class for format GridColumnsType with BreakpointsForPrefixType to CSS class string
|
|
7
|
+
*
|
|
8
|
+
* @augments ResponsiveClassStringFormatter
|
|
9
|
+
*/
|
|
10
|
+
class ResponsiveGridColumnsFormatter extends ResponsiveClassStringFormatter {
|
|
11
|
+
/**
|
|
12
|
+
* It takes a GridColumnsType and a breakpoint and returns a CSS class string.
|
|
13
|
+
*
|
|
14
|
+
* @param {GridColumnsType} input - GridColumnsType input for formatting
|
|
15
|
+
* @param {BreakpointsForPrefixType} [breakpoint] - Breakpoints for prefix of the class
|
|
16
|
+
* @returns {string} string.
|
|
17
|
+
*/
|
|
18
|
+
formatToken(input, breakpoint) {
|
|
19
|
+
const prefix = isBreakpointsForPrefixType(breakpoint) ? `${breakpoint}:` : '';
|
|
20
|
+
if (isGridColumnsType(input)) {
|
|
21
|
+
return `${prefix}v-grid-cols-${input}`;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
LogUtility.warn(`The column value ${input} is invalid, it must be a value of: `, GridColumns);
|
|
25
|
+
return '';
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export default new ResponsiveGridColumnsFormatter();
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isGridRowsType, isBreakpointsForPrefixType } from '../../../types/typeGuard';
|
|
2
2
|
import { LogUtility } from '../../../utils/log';
|
|
3
3
|
import { ResponsiveClassStringFormatter } from './responsiveClassStringFormatter';
|
|
4
|
-
import {
|
|
4
|
+
import { GridRows } from '../../../constants/tokens/tailwind.extend';
|
|
5
5
|
/**
|
|
6
|
-
* A class for format
|
|
6
|
+
* A class for format GridRowsType with BreakpointsForPrefixType to CSS class string
|
|
7
7
|
*
|
|
8
8
|
* @augments ResponsiveClassStringFormatter
|
|
9
9
|
*/
|
|
10
|
-
class
|
|
10
|
+
class ResponsiveGridRowsFormatter extends ResponsiveClassStringFormatter {
|
|
11
11
|
/**
|
|
12
|
-
* This function takes a
|
|
12
|
+
* This function takes a GridRowsType and a breakpoint and returns CSS class string.
|
|
13
13
|
*
|
|
14
|
-
* @param {
|
|
14
|
+
* @param {GridRowsType} input - GridRowsType input
|
|
15
15
|
* @param {BreakpointsForPrefixType} [breakpoint] - Breakpoints for prefix of the class
|
|
16
16
|
* @returns {string} - A string.
|
|
17
17
|
*/
|
|
18
18
|
formatToken(input, breakpoint) {
|
|
19
19
|
const prefix = isBreakpointsForPrefixType(breakpoint) ? `${breakpoint}:` : '';
|
|
20
|
-
if (
|
|
20
|
+
if (isGridRowsType(input)) {
|
|
21
21
|
return `${prefix}v-grid-rows-${input}`;
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
24
|
-
LogUtility.warn(`The row value ${input} is invalid, it must be a value of: `,
|
|
24
|
+
LogUtility.warn(`The row value ${input} is invalid, it must be a value of: `, GridRows);
|
|
25
25
|
return '';
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
export default new
|
|
29
|
+
export default new ResponsiveGridRowsFormatter();
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { LogUtility } from '../../../../utils/log';
|
|
2
|
-
import
|
|
2
|
+
import ResponsiveGridColumnsFormatter from '../../responsive-map-formatter/responsiveGridColumnsFormatter';
|
|
3
3
|
test('should console warn when input not in scope', () => {
|
|
4
4
|
spyOn(LogUtility, 'warn');
|
|
5
|
-
|
|
5
|
+
ResponsiveGridColumnsFormatter.formatToken(0);
|
|
6
6
|
expect(LogUtility.warn).toHaveBeenCalled();
|
|
7
7
|
});
|
|
8
8
|
test('should return format when input in scope', () => {
|
|
9
|
-
const result =
|
|
9
|
+
const result = ResponsiveGridColumnsFormatter.formatToken(6);
|
|
10
10
|
expect(result).toEqual('v-grid-cols-6');
|
|
11
11
|
});
|
|
12
12
|
test('should return format when input in scope and with prefix', () => {
|
|
13
|
-
const result =
|
|
13
|
+
const result = ResponsiveGridColumnsFormatter.formatToken(6, 'M');
|
|
14
14
|
expect(result).toEqual('M:v-grid-cols-6');
|
|
15
15
|
});
|
|
16
16
|
test('should return format when input in scope and with prefix not in scope', () => {
|
|
17
|
-
const result =
|
|
17
|
+
const result = ResponsiveGridColumnsFormatter.formatToken(6, 'test');
|
|
18
18
|
expect(result).toEqual('v-grid-cols-6');
|
|
19
19
|
});
|
|
20
20
|
test('should return format when input in auto scope', () => {
|
|
21
|
-
const result =
|
|
21
|
+
const result = ResponsiveGridColumnsFormatter.formatToken('6-auto');
|
|
22
22
|
expect(result).toEqual('v-grid-cols-6-auto');
|
|
23
23
|
});
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { LogUtility } from '../../../../utils/log';
|
|
2
|
-
import
|
|
2
|
+
import ResponsiveGridRowsFormatter from '../../responsive-map-formatter/responsiveGridRowsFormatter';
|
|
3
3
|
test('should console warn when input not in scope', () => {
|
|
4
4
|
spyOn(LogUtility, 'warn');
|
|
5
|
-
|
|
5
|
+
ResponsiveGridRowsFormatter.formatToken(0);
|
|
6
6
|
expect(LogUtility.warn).toHaveBeenCalled();
|
|
7
7
|
});
|
|
8
8
|
test('should return format when input in scope', () => {
|
|
9
|
-
const result =
|
|
9
|
+
const result = ResponsiveGridRowsFormatter.formatToken(6);
|
|
10
10
|
expect(result).toEqual('v-grid-rows-6');
|
|
11
|
-
const result1 =
|
|
11
|
+
const result1 = ResponsiveGridRowsFormatter.formatToken(10);
|
|
12
12
|
expect(result1).toEqual('v-grid-rows-10');
|
|
13
13
|
});
|
|
14
14
|
test('should return format when input in scope and with prefix', () => {
|
|
15
|
-
const result =
|
|
15
|
+
const result = ResponsiveGridRowsFormatter.formatToken(6, 'L');
|
|
16
16
|
expect(result).toEqual('L:v-grid-rows-6');
|
|
17
17
|
});
|
|
18
18
|
test('should return format when input in scope and with prefix not in scope', () => {
|
|
19
|
-
const result =
|
|
19
|
+
const result = ResponsiveGridRowsFormatter.formatToken(6, 'test');
|
|
20
20
|
expect(result).toEqual('v-grid-rows-6');
|
|
21
21
|
});
|
|
22
22
|
test('should return format when input in auto scope', () => {
|
|
23
|
-
const result =
|
|
23
|
+
const result = ResponsiveGridRowsFormatter.formatToken('6-auto');
|
|
24
24
|
expect(result).toEqual('v-grid-rows-6-auto');
|
|
25
|
-
const result1 =
|
|
25
|
+
const result1 = ResponsiveGridRowsFormatter.formatToken('10-auto');
|
|
26
26
|
expect(result1).toEqual('v-grid-rows-10-auto');
|
|
27
27
|
});
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
jest.mock('../../../utils/misc', () => ({
|
|
2
2
|
generateUUID: () => 'TEST_UUID',
|
|
3
3
|
}));
|
|
4
|
-
import ZIndexManager from '../../zindex/zIndexManager';
|
|
5
4
|
import { VegaNotify } from '../../publicApi';
|
|
6
5
|
import { MockedResizeObserver, setupUserAgent } from '../../../utils/testUtils';
|
|
7
6
|
describe('vegaNotifyController', () => {
|
|
8
7
|
beforeEach(() => {
|
|
9
8
|
VegaNotify['container'] = null; // Jest cleared the document before each suite
|
|
10
9
|
});
|
|
11
|
-
afterEach(() => {
|
|
12
|
-
ZIndexManager.removeZIndex(VegaNotify['container'], 'top');
|
|
13
|
-
});
|
|
14
10
|
/**
|
|
15
11
|
* This is a hack to make sure the page notification list is hydrated for unit test only.
|
|
16
12
|
*/
|
|
@@ -55,6 +55,11 @@ export class PageResizeObserverSlimmer extends VegaSlimmer {
|
|
|
55
55
|
const VegaResizeObserver = window['VegaResizeObserver'] || window.ResizeObserver;
|
|
56
56
|
if (VegaResizeObserver) {
|
|
57
57
|
this.resizeObserver = new VegaResizeObserver((entries, observer) => {
|
|
58
|
+
if (observerEntry &&
|
|
59
|
+
typeof observerEntry.shouldTrigger === 'function' &&
|
|
60
|
+
!observerEntry.shouldTrigger()) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
58
63
|
if (observerEntry && typeof observerEntry.callback === 'function') {
|
|
59
64
|
/**
|
|
60
65
|
* The function "handle" calls the callback function of an observer entry with the specified
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import VegaZIndexManager from '../vegaZIndexManager';
|
|
2
|
+
import ZIndexManager from '../zIndexManager';
|
|
3
|
+
test('VegaZIndexManager should work proper', () => {
|
|
4
|
+
const container = document.createElement('div');
|
|
5
|
+
container.innerHTML = `
|
|
6
|
+
<div id='div-1'></div>
|
|
7
|
+
<div id='div-2'></div>
|
|
8
|
+
`;
|
|
9
|
+
const div1 = container.querySelector('#div-1');
|
|
10
|
+
const div2 = container.querySelector('#div-2');
|
|
11
|
+
ZIndexManager.setZIndex(div1);
|
|
12
|
+
ZIndexManager.setZIndex(div2, 'top');
|
|
13
|
+
expect(container).toEqualHtml(`
|
|
14
|
+
<div>
|
|
15
|
+
<div id="div-1" style="z-index: 10001;"></div>
|
|
16
|
+
<div id="div-2" style="z-index: 11001;"></div>
|
|
17
|
+
</div>
|
|
18
|
+
`);
|
|
19
|
+
VegaZIndexManager.overrideZIndexBasicValues({
|
|
20
|
+
base: 200,
|
|
21
|
+
top: 500,
|
|
22
|
+
});
|
|
23
|
+
expect(container).toEqualHtml(`
|
|
24
|
+
<div>
|
|
25
|
+
<div id="div-1" style="z-index: 201;"></div>
|
|
26
|
+
<div id="div-2" style="z-index: 501;"></div>
|
|
27
|
+
</div>
|
|
28
|
+
`);
|
|
29
|
+
});
|
|
@@ -85,12 +85,6 @@ test('zIndexManager should work proper', () => {
|
|
|
85
85
|
</div>
|
|
86
86
|
`);
|
|
87
87
|
expect(LogUtility.warn).toHaveBeenCalledWith(`The max 'z-index' of base level is '11000', but the current 'z-index' is over, Please optimize the use of 'z-index', otherwise there will be some performance overhead.`);
|
|
88
|
-
divCollect.forEach((div) => {
|
|
89
|
-
ZIndexManager.removeZIndex(div);
|
|
90
|
-
});
|
|
91
|
-
ZIndexManager.removeZIndex(div1);
|
|
92
|
-
ZIndexManager.removeZIndex(div2);
|
|
93
|
-
ZIndexManager.removeZIndex(div3);
|
|
94
88
|
});
|
|
95
89
|
test('zIndexManager should work proper while remove first element of stack', () => {
|
|
96
90
|
const container = document.createElement('div');
|
|
@@ -107,3 +101,76 @@ test('zIndexManager should work proper while remove first element of stack', ()
|
|
|
107
101
|
</div>
|
|
108
102
|
`);
|
|
109
103
|
});
|
|
104
|
+
test('zIndexManager should work proper while change basic z-index value', () => {
|
|
105
|
+
const container = document.createElement('div');
|
|
106
|
+
container.innerHTML = `
|
|
107
|
+
<div id="div-1">
|
|
108
|
+
<div id="div-2">
|
|
109
|
+
<div id="div-3"></div>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
`;
|
|
113
|
+
const div1 = container.querySelector('#div-1');
|
|
114
|
+
const div2 = container.querySelector('#div-2');
|
|
115
|
+
const div3 = container.querySelector('#div-3');
|
|
116
|
+
ZIndexManager.overrideZIndexBasicValues({
|
|
117
|
+
base: 200,
|
|
118
|
+
top: 300,
|
|
119
|
+
});
|
|
120
|
+
ZIndexManager.setZIndex(div1);
|
|
121
|
+
ZIndexManager.setZIndex(div2);
|
|
122
|
+
ZIndexManager.setZIndex(div3, 'top');
|
|
123
|
+
expect(container).toEqualHtml(`
|
|
124
|
+
<div>
|
|
125
|
+
<div id="div-1" style="z-index: 201;">
|
|
126
|
+
<div id="div-2" style="z-index: 202;">
|
|
127
|
+
<div id="div-3" style="z-index: 301;"></div>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
`);
|
|
132
|
+
ZIndexManager.overrideZIndexBasicValues({
|
|
133
|
+
base: 100,
|
|
134
|
+
});
|
|
135
|
+
ZIndexManager.setZIndex(div1);
|
|
136
|
+
ZIndexManager.setZIndex(div2);
|
|
137
|
+
ZIndexManager.setZIndex(div3, 'top');
|
|
138
|
+
expect(container).toEqualHtml(`
|
|
139
|
+
<div>
|
|
140
|
+
<div id="div-1" style="z-index: 101;">
|
|
141
|
+
<div id="div-2" style="z-index: 102;">
|
|
142
|
+
<div id="div-3" style="z-index: 301;"></div>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
`);
|
|
147
|
+
ZIndexManager.overrideZIndexBasicValues({
|
|
148
|
+
top: 500,
|
|
149
|
+
});
|
|
150
|
+
ZIndexManager.setZIndex(div1);
|
|
151
|
+
ZIndexManager.setZIndex(div2);
|
|
152
|
+
ZIndexManager.setZIndex(div3, 'top');
|
|
153
|
+
expect(container).toEqualHtml(`
|
|
154
|
+
<div>
|
|
155
|
+
<div id="div-1" style="z-index: 101;">
|
|
156
|
+
<div id="div-2" style="z-index: 102;">
|
|
157
|
+
<div id="div-3" style="z-index: 501;"></div>
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
`);
|
|
162
|
+
});
|
|
163
|
+
test('ZIndexManager should raise error while change basic z-index with invalid value', () => {
|
|
164
|
+
spyOn(LogUtility, 'error');
|
|
165
|
+
ZIndexManager.overrideZIndexBasicValues({
|
|
166
|
+
base: 'a',
|
|
167
|
+
});
|
|
168
|
+
expect(LogUtility.error).toBeCalledTimes(1);
|
|
169
|
+
expect(LogUtility.error).toHaveBeenCalledWith('Change z-index basic value failed, both base level and top level should be of type number!');
|
|
170
|
+
ZIndexManager.overrideZIndexBasicValues({
|
|
171
|
+
base: 500,
|
|
172
|
+
top: 100,
|
|
173
|
+
});
|
|
174
|
+
expect(LogUtility.error).toBeCalledTimes(2);
|
|
175
|
+
expect(LogUtility.error).toHaveBeenCalledWith('Change z-index basic value failed, the base level should be smaller than the top level!');
|
|
176
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import ZIndexManager from './zIndexManager';
|
|
2
|
+
/**
|
|
3
|
+
* The VegaZIndexManager class calls a method in the ZIndexManager class to
|
|
4
|
+
* change z-index values based on the input.
|
|
5
|
+
*/
|
|
6
|
+
class VegaZIndexManager {
|
|
7
|
+
/**
|
|
8
|
+
* The function "overrideZIndexBasicValues" calls a method in the "ZIndexManager" class to change the
|
|
9
|
+
* z-index values based on the input.
|
|
10
|
+
*
|
|
11
|
+
* @param {ZIndexBasicValues} input - The input parameter is of type ZIndexBasicValues.
|
|
12
|
+
*/
|
|
13
|
+
overrideZIndexBasicValues(input) {
|
|
14
|
+
ZIndexManager.overrideZIndexBasicValues(input);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export default new VegaZIndexManager();
|
|
@@ -9,13 +9,15 @@ export const TOP_BASIC_Z_INDEX = 11000;
|
|
|
9
9
|
*/
|
|
10
10
|
class ZIndexManager {
|
|
11
11
|
constructor() {
|
|
12
|
+
this.baseBasicZIndex = BASE_BASIC_Z_INDEX;
|
|
13
|
+
this.topBasicZIndex = TOP_BASIC_Z_INDEX;
|
|
12
14
|
this.levelEntry = {
|
|
13
15
|
base: {
|
|
14
|
-
zIndex:
|
|
16
|
+
zIndex: this.baseBasicZIndex,
|
|
15
17
|
elements: [],
|
|
16
18
|
},
|
|
17
19
|
top: {
|
|
18
|
-
zIndex:
|
|
20
|
+
zIndex: this.topBasicZIndex,
|
|
19
21
|
elements: [],
|
|
20
22
|
},
|
|
21
23
|
};
|
|
@@ -30,7 +32,7 @@ class ZIndexManager {
|
|
|
30
32
|
* current element and z-index for each level
|
|
31
33
|
*
|
|
32
34
|
* @param {HTMLElement} element - The element to set the z-index of.
|
|
33
|
-
* @param {
|
|
35
|
+
* @param {ZIndexLevelType} [level=base] - The level of the element.
|
|
34
36
|
* @returns {void}
|
|
35
37
|
*/
|
|
36
38
|
setZIndex(element, level = 'base') {
|
|
@@ -53,7 +55,7 @@ class ZIndexManager {
|
|
|
53
55
|
* elements after the removed element
|
|
54
56
|
*
|
|
55
57
|
* @param {HTMLElement} element - HTMLElement - The element to move
|
|
56
|
-
* @param {
|
|
58
|
+
* @param {ZIndexLevelType} [level=base] - Level = 'base'
|
|
57
59
|
* @returns {void}
|
|
58
60
|
*/
|
|
59
61
|
removeZIndex(element, level = 'base') {
|
|
@@ -76,6 +78,77 @@ class ZIndexManager {
|
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* The function "overrideZIndexBasicValues" updates the base and top basic z-index values based on the
|
|
83
|
+
* input provided.
|
|
84
|
+
*
|
|
85
|
+
* @param {ZIndexBasicValues} input - The input parameter is of type ZIndexBasicValues, which is an
|
|
86
|
+
* object with two properties: base and top. Both properties are optional and can be either a number or
|
|
87
|
+
* undefined.
|
|
88
|
+
*/
|
|
89
|
+
overrideZIndexBasicValues(input) {
|
|
90
|
+
const basicValues = this.formatZIndexBasicValues(input);
|
|
91
|
+
if (this.validBasicValues(basicValues)) {
|
|
92
|
+
this.updateBasicValues(basicValues);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* The function `formatZIndexBasicValues` takes an input object and returns a new object with additional
|
|
97
|
+
* properties `base` and `top` added to it.
|
|
98
|
+
*
|
|
99
|
+
* @param {ZIndexBasicValues} input - The input parameter is of type ZIndexBasicValues. It is an object
|
|
100
|
+
* that contains properties for base and top.
|
|
101
|
+
* @returns {ZIndexBasicValues} - an object that combines the properties of the input object `input` with the properties
|
|
102
|
+
* `base` and `top`. The values of `base` and `top` are taken from the `this.baseBasicZIndex` and
|
|
103
|
+
* `this.topBasicZIndex` variables respectively.
|
|
104
|
+
*/
|
|
105
|
+
formatZIndexBasicValues(input) {
|
|
106
|
+
return Object.assign({
|
|
107
|
+
base: this.baseBasicZIndex,
|
|
108
|
+
top: this.topBasicZIndex,
|
|
109
|
+
}, input);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* The function checks if the input values for base and top levels of a z-index are valid.
|
|
113
|
+
*
|
|
114
|
+
* @param {ZIndexBasicValues} input - The input parameter is an object of type ZIndexBasicValues. It
|
|
115
|
+
* has two properties: base and top. Both properties should be of type number.
|
|
116
|
+
* @returns {boolean} a boolean value.
|
|
117
|
+
*/
|
|
118
|
+
validBasicValues(input) {
|
|
119
|
+
if (typeof input.base !== 'number' || typeof input.top !== 'number') {
|
|
120
|
+
LogUtility.error('Change z-index basic value failed, both base level and top level should be of type number!');
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
else if (input.base >= input.top) {
|
|
124
|
+
LogUtility.error('Change z-index basic value failed, the base level should be smaller than the top level!');
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* The function updates the z-index values of elements based on the input values.
|
|
131
|
+
*
|
|
132
|
+
* @param {ZIndexBasicValues} input - The input parameter is an object of type ZIndexBasicValues. It
|
|
133
|
+
* has two properties: base and top, both of which are optional and can be of type number.
|
|
134
|
+
*/
|
|
135
|
+
updateBasicValues(input) {
|
|
136
|
+
// update basic z-index value
|
|
137
|
+
this.baseBasicZIndex = input.base;
|
|
138
|
+
this.topBasicZIndex = input.top;
|
|
139
|
+
// update base level entry
|
|
140
|
+
const baseLevel = this.levelEntry.base;
|
|
141
|
+
baseLevel.elements.forEach((element, index) => {
|
|
142
|
+
element.style.zIndex = `${this.baseBasicZIndex + index + 1}`;
|
|
143
|
+
});
|
|
144
|
+
baseLevel.zIndex = this.baseBasicZIndex + baseLevel.elements.length;
|
|
145
|
+
// update top level entry
|
|
146
|
+
const topLevel = this.levelEntry.top;
|
|
147
|
+
topLevel.elements.forEach((element, index) => {
|
|
148
|
+
element.style.zIndex = `${this.topBasicZIndex + index + 1}`;
|
|
149
|
+
});
|
|
150
|
+
topLevel.zIndex = this.topBasicZIndex + topLevel.elements.length;
|
|
151
|
+
}
|
|
79
152
|
/**
|
|
80
153
|
* It increases the z-index of all the elements in the top entry by 1
|
|
81
154
|
*
|
|
@@ -96,7 +169,7 @@ class ZIndexManager {
|
|
|
96
169
|
*/
|
|
97
170
|
isBaseLevelOver() {
|
|
98
171
|
const baseEntry = this.levelEntry['base'];
|
|
99
|
-
return baseEntry.zIndex >=
|
|
172
|
+
return baseEntry.zIndex >= this.topBasicZIndex;
|
|
100
173
|
}
|
|
101
174
|
}
|
|
102
175
|
export default new ZIndexManager();
|
|
@@ -4,7 +4,7 @@ import { Shadows } from '../constants/tokens/shadows';
|
|
|
4
4
|
import { Breakpoints } from '../constants/tokens/breakpoints';
|
|
5
5
|
import { BorderRadius } from '../constants/tokens/borderRadius';
|
|
6
6
|
import { BoxDisplay, CssStates, FlexAlignItem, FlexDirections, FlexJustifyContent } from '../constants/ui';
|
|
7
|
-
import {
|
|
7
|
+
import { GridColumnsRegex, GridRowsRegex } from '../constants/regex';
|
|
8
8
|
import { TypographyKeys } from '../constants/publicApi';
|
|
9
9
|
import { Borders } from '../constants/tokens/borders';
|
|
10
10
|
/**
|
|
@@ -126,20 +126,20 @@ export const isShadowsTokenType = (input) => {
|
|
|
126
126
|
* format of '1-auto' to '12-auto'.
|
|
127
127
|
*
|
|
128
128
|
* @param {unknown} input - The input to be tested.
|
|
129
|
-
* @returns {boolean} indicating if the input is {@link
|
|
129
|
+
* @returns {boolean} indicating if the input is {@link GridColumnsType}
|
|
130
130
|
*/
|
|
131
|
-
export const
|
|
132
|
-
return (typeof input === 'string' || typeof input === 'number') &&
|
|
131
|
+
export const isGridColumnsType = (input) => {
|
|
132
|
+
return ((typeof input === 'string' || typeof input === 'number') && GridColumnsRegex.test(input.toString()));
|
|
133
133
|
};
|
|
134
134
|
/**
|
|
135
135
|
* If the input is a number, it must be between 1 and 12. If the input is a string, it must be in the
|
|
136
136
|
* format of '1-auto' to '12-auto'.
|
|
137
137
|
*
|
|
138
138
|
* @param {unknown} input - The input to be tested.
|
|
139
|
-
* @returns {boolean} indicating if the input is {@link
|
|
139
|
+
* @returns {boolean} indicating if the input is {@link GridRowsType}
|
|
140
140
|
*/
|
|
141
|
-
export const
|
|
142
|
-
return (typeof input === 'string' || typeof input === 'number') &&
|
|
141
|
+
export const isGridRowsType = (input) => {
|
|
142
|
+
return (typeof input === 'string' || typeof input === 'number') && GridRowsRegex.test(input.toString());
|
|
143
143
|
};
|
|
144
144
|
/**
|
|
145
145
|
* If the input is a string, and that string is a key in the Breakpoints object, then the input is a GridRowType.
|
|
@@ -272,7 +272,7 @@ export const getAxeResults = async (page, content) => {
|
|
|
272
272
|
* @param {E2EPage} page - The E2EPage to mock date.
|
|
273
273
|
* @param {string} date - The date want to mock.
|
|
274
274
|
*/
|
|
275
|
-
export const mockDate = async (page, date
|
|
275
|
+
export const mockDate = async (page, date) => {
|
|
276
276
|
await page.evaluateOnNewDocument((date) => {
|
|
277
277
|
/**
|
|
278
278
|
* Rewrite DateConstructor
|
|
@@ -286,6 +286,7 @@ export const mockDate = async (page, date = '2022-05-14T11:01:58.135Z') => {
|
|
|
286
286
|
if (args && args.length > 0) {
|
|
287
287
|
return super(...args);
|
|
288
288
|
}
|
|
289
|
+
date = date ? date : '2022-05-14';
|
|
289
290
|
return new Date(date);
|
|
290
291
|
}
|
|
291
292
|
};
|
|
@@ -335,10 +336,11 @@ export const getScreenshotDiffResults = async (page, desc, selector) => {
|
|
|
335
336
|
* @param {object} config - option parameters
|
|
336
337
|
* @param {boolean} config.wrapped - set it to true when use visual test to catch the fixed area
|
|
337
338
|
* @param {EventSemanticsConfig} config.eventSemanticsConfig - sets the event semantics configuration for the EventManager
|
|
339
|
+
* @param {string} config.date --sets the date want to mock
|
|
338
340
|
*/
|
|
339
341
|
export const initVegaE2EPage = async (content, config) => {
|
|
340
342
|
const page = await newE2EPage();
|
|
341
|
-
await mockDate(page);
|
|
343
|
+
await mockDate(page, config === null || config === void 0 ? void 0 : config.date);
|
|
342
344
|
const script = (config === null || config === void 0 ? void 0 : config.eventSemanticsConfig)
|
|
343
345
|
? `<script type='module'>window.VegaEventManager.setSemantics(${JSON.stringify(config.eventSemanticsConfig)})</script>`
|
|
344
346
|
: '';
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { F as FeatureFlag } from './featureFlagController-f5c118d6.js';
|
|
2
|
-
import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager, c as VegaEventManager } from './vegaEventManager-
|
|
2
|
+
import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager, c as VegaEventManager } from './vegaEventManager-32e6d6a8.js';
|
|
3
3
|
import { s as setVegaLogLevel } from './log-a824be80.js';
|
|
4
4
|
import { V as VegaDialog } from './vegaDialogController-f96ee430.js';
|
|
5
5
|
import { G as GlobalSlimmersRegistry } from './global-slimmer-registry-f1dec4a2.js';
|
|
6
6
|
import { M as MapToComponentMethod } from './map-to-component-method-4e36ea1f.js';
|
|
7
7
|
import { V as VegaSlimmer } from './vega-slimmer-d63e92d9.js';
|
|
8
|
-
import './internalVegaEventManager-
|
|
8
|
+
import './internalVegaEventManager-b790d4e6.js';
|
|
9
9
|
import './ui-794e5fed.js';
|
|
10
10
|
import { T as TypographyUrls } from './typography-03d285b4.js';
|
|
11
11
|
import { V as VegaIconManager } from './iconManager-48bebc43.js';
|
|
12
|
+
import { Z as ZIndexManager } from './zIndexManager-4292318f.js';
|
|
12
13
|
|
|
13
14
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14
15
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -107,6 +108,23 @@ __decorate([
|
|
|
107
108
|
MapToComponentMethod('componentDidLoad')
|
|
108
109
|
], VegaWatchMethodCancelSlimmer.prototype, "componentDidLoad", null);
|
|
109
110
|
|
|
111
|
+
/**
|
|
112
|
+
* The VegaZIndexManager class calls a method in the ZIndexManager class to
|
|
113
|
+
* change z-index values based on the input.
|
|
114
|
+
*/
|
|
115
|
+
class VegaZIndexManager {
|
|
116
|
+
/**
|
|
117
|
+
* The function "overrideZIndexBasicValues" calls a method in the "ZIndexManager" class to change the
|
|
118
|
+
* z-index values based on the input.
|
|
119
|
+
*
|
|
120
|
+
* @param {ZIndexBasicValues} input - The input parameter is of type ZIndexBasicValues.
|
|
121
|
+
*/
|
|
122
|
+
overrideZIndexBasicValues(input) {
|
|
123
|
+
ZIndexManager.overrideZIndexBasicValues(input);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
const VegaZIndexManager$1 = new VegaZIndexManager();
|
|
127
|
+
|
|
110
128
|
/**
|
|
111
129
|
* Default export function that will be used by stencil global script,
|
|
112
130
|
* which will be invoked before library loaded.
|
|
@@ -123,6 +141,7 @@ function appGlobalScript () {
|
|
|
123
141
|
injectSetEventSemanticsIntoGlobal();
|
|
124
142
|
injectVegaTypography();
|
|
125
143
|
injectVegaIconManager();
|
|
144
|
+
injectVegaZIndexManagerIntoGlobal();
|
|
126
145
|
}
|
|
127
146
|
/**
|
|
128
147
|
* Disable feature flags from the client global defined lists.
|
|
@@ -204,6 +223,12 @@ function injectVegaTypography() {
|
|
|
204
223
|
function injectVegaIconManager() {
|
|
205
224
|
globalThis.VegaIconManager = VegaIconManager;
|
|
206
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* Inject VegaZIndexManager to global as a public api
|
|
228
|
+
*/
|
|
229
|
+
function injectVegaZIndexManagerIntoGlobal() {
|
|
230
|
+
globalThis.VegaZIndexManager = VegaZIndexManager$1;
|
|
231
|
+
}
|
|
207
232
|
|
|
208
233
|
const globalScripts = appGlobalScript;
|
|
209
234
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as MapToComponentField, V as VegaSlimmer } from './vega-slimmer-d63e92d9.js';
|
|
2
2
|
import { M as MapToComponentMethod } from './map-to-component-method-4e36ea1f.js';
|
|
3
3
|
import './global-slimmer-registry-f1dec4a2.js';
|
|
4
|
-
import { I as InternalVegaEventManager, j as jqueryDelegatedStrategyController } from './internalVegaEventManager-
|
|
4
|
+
import { I as InternalVegaEventManager, j as jqueryDelegatedStrategyController } from './internalVegaEventManager-b790d4e6.js';
|
|
5
5
|
|
|
6
6
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7
7
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as MapToComponentField, V as VegaSlimmer } from './vega-slimmer-d63e92d9.js';
|
|
2
2
|
import { M as MapToComponentMethod } from './map-to-component-method-4e36ea1f.js';
|
|
3
3
|
import './global-slimmer-registry-f1dec4a2.js';
|
|
4
|
-
import { O as Observer } from './eventEmitSlimmer-
|
|
4
|
+
import { O as Observer } from './eventEmitSlimmer-25555a18.js';
|
|
5
5
|
import { C as ChangeManager } from './changeManager-935d420b.js';
|
|
6
6
|
import { c as isParent } from './ui-794e5fed.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as isStateVariantTokenType, j as isBackgroundColorTokenType, a as BackgroundColors, d as BackgroundColorMap, k as isBorderColorTokenType, b as BorderColors, e as BorderColorMap, l as isShadowsTokenType, f as Shadows, g as ShadowMap, m as isBorderTokenType, n as Borders, o as BorderMap, p as isSpacingTokenType, q as isBorderRadiusTokenType, r as isTextColorTokenType, s as isBreakpointsTokenType, h as Spacing, B as BorderRadius, C as Colors, t as isTypographyTokenType } from './typeGuard-
|
|
1
|
+
import { i as isStateVariantTokenType, j as isBackgroundColorTokenType, a as BackgroundColors, d as BackgroundColorMap, k as isBorderColorTokenType, b as BorderColors, e as BorderColorMap, l as isShadowsTokenType, f as Shadows, g as ShadowMap, m as isBorderTokenType, n as Borders, o as BorderMap, p as isSpacingTokenType, q as isBorderRadiusTokenType, r as isTextColorTokenType, s as isBreakpointsTokenType, h as Spacing, B as BorderRadius, C as Colors, t as isTypographyTokenType } from './typeGuard-1345cf50.js';
|
|
2
2
|
import { B as Breakpoints } from './breakpoints-900a4c99.js';
|
|
3
3
|
import { L as LogUtility } from './log-a824be80.js';
|
|
4
|
-
import { R as ResponsiveFormatFacade } from './responsiveFormatFacade-
|
|
4
|
+
import { R as ResponsiveFormatFacade } from './responsiveFormatFacade-7fcaab5d.js';
|
|
5
5
|
import { b as TypographyKeys } from './typography-03d285b4.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -3,12 +3,12 @@ import { M as MapToComponentMethod } from './map-to-component-method-4e36ea1f.js
|
|
|
3
3
|
import { M as MapToComponentField, V as VegaSlimmer } from './vega-slimmer-d63e92d9.js';
|
|
4
4
|
import { L as LogUtility } from './log-a824be80.js';
|
|
5
5
|
import { P as Placements, A as Alignments } from './ui-535c5fb3.js';
|
|
6
|
-
import { z as isTranslocationType } from './typeGuard-
|
|
7
|
-
import { R as ResponsiveFormatFacade } from './responsiveFormatFacade-
|
|
6
|
+
import { z as isTranslocationType } from './typeGuard-1345cf50.js';
|
|
7
|
+
import { R as ResponsiveFormatFacade } from './responsiveFormatFacade-7fcaab5d.js';
|
|
8
8
|
import { f as findParent, i as isElementVisible, c as isParent } from './ui-794e5fed.js';
|
|
9
|
-
import { Z as ZIndexManager } from './zIndexManager-
|
|
9
|
+
import { Z as ZIndexManager } from './zIndexManager-4292318f.js';
|
|
10
10
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-16826d2b.js';
|
|
11
|
-
import { P as PageResizeObserverSlimmer } from './pageResizeObserverSlimmer-
|
|
11
|
+
import { P as PageResizeObserverSlimmer } from './pageResizeObserverSlimmer-d5d5fc44.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Get the position of the element in the container according to the target element and the placement
|