@heartlandone/vega 1.36.1 → 1.38.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-10b08b3a.js → app-globals-3462692c.js} +6 -5
- package/dist/cjs/{breakpoints-2c150832.js → breakpoints-07fcbeba.js} +3 -2
- package/dist/cjs/{component-6111461d.js → component-47a7ca06.js} +24 -2
- package/dist/cjs/{designToken-0231398e.js → designToken-e233e014.js} +3 -3
- package/dist/cjs/{log-0e500258.js → featureFlagController-3a330da8.js} +14 -80
- package/dist/cjs/index-0ca30e90.js +14 -2
- package/dist/cjs/index.cjs.js +13 -12
- package/dist/cjs/{injectElementAppender-a90ff4ba.js → injectElementAppender-d6a91296.js} +7 -6
- package/dist/cjs/{injectFormFieldController-be1c3d42.js → injectFormFieldController-30fb2f9a.js} +81 -29
- package/dist/cjs/{injectKeyboardManager-e858f542.js → injectKeyboardManager-11888687.js} +2 -1
- package/dist/cjs/{injectPageResizeObserver-afbd9227.js → injectPageResizeObserver-3be970dc.js} +1 -1
- package/dist/cjs/{legendInputProcessor-52b9a7cf.js → legendInputProcessor-b6868e9e.js} +14 -3
- package/dist/cjs/loader.cjs.js +9 -8
- package/dist/cjs/log-5d8066e0.js +72 -0
- package/dist/cjs/misc-3d30df91.js +41 -0
- package/dist/cjs/{observer-b2f7a866.js → observer-ce58653c.js} +3 -1
- package/dist/cjs/{responsiveFormatFacade-1635c5dd.js → responsiveFormatFacade-b04b9434.js} +46 -6
- package/dist/cjs/{themeManager-27f2b6aa.js → themeManager-6ba8be2a.js} +3 -3
- package/dist/cjs/{typeGuard-bb401d05.js → typeGuard-74783cb0.js} +29 -10
- package/dist/cjs/{ui-7db8ff4a.js → ui-824caf47.js} +1 -1
- package/dist/cjs/{ui-bbf1eed1.js → ui-bac156c5.js} +2 -0
- package/dist/cjs/vega-accordion.cjs.entry.js +33 -220
- package/dist/cjs/vega-app-footer.cjs.entry.js +3 -2
- package/dist/cjs/vega-app-header-button.cjs.entry.js +10 -18
- package/dist/cjs/vega-badge.cjs.entry.js +10 -9
- package/dist/cjs/{vega-banner_37.cjs.entry.js → vega-banner_34.cjs.entry.js} +1135 -913
- package/dist/cjs/vega-bar-chart.cjs.entry.js +93 -15
- package/dist/cjs/vega-box.cjs.entry.js +10 -8
- package/dist/cjs/vega-chip.cjs.entry.js +44 -32
- package/dist/cjs/vega-color-picker.cjs.entry.js +7 -13
- package/dist/cjs/vega-combo-box.cjs.entry.js +10 -22
- package/dist/cjs/vega-counter-badge.cjs.entry.js +45 -0
- package/dist/cjs/vega-dialog.cjs.entry.js +6 -5
- package/dist/cjs/vega-header.cjs.entry.js +3 -2
- package/dist/cjs/vega-image-uploader.cjs.entry.js +8 -21
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +7 -19
- package/dist/cjs/vega-item-toggle.cjs.entry.js +5 -19
- package/dist/cjs/vega-left-nav-group_3.cjs.entry.js +6 -22
- package/dist/cjs/vega-left-nav.cjs.entry.js +7 -13
- package/dist/cjs/vega-loading-indicator.cjs.entry.js +101 -0
- package/dist/cjs/vega-option.cjs.entry.js +3 -2
- package/dist/cjs/vega-page-notification.cjs.entry.js +4 -3
- package/dist/cjs/vega-pie-chart.cjs.entry.js +4 -3
- package/dist/cjs/vega-popover.cjs.entry.js +11 -19
- package/dist/cjs/vega-stepper.cjs.entry.js +9 -14
- package/dist/cjs/vega-textarea.cjs.entry.js +8 -17
- package/dist/cjs/vega-virtual-scroll.cjs.entry.js +208 -0
- package/dist/cjs/vega.cjs.js +9 -8
- package/dist/cjs/{vegaDialogController-7b71945a.js → vegaDialogController-d2ae40fb.js} +1 -1
- package/dist/cjs/vegaSlimmer-180e2d5d.js +265 -0
- package/dist/cjs/{yAxisInputProcessor-2dad0e4b.js → yAxisInputProcessor-65db6647.js} +7 -7
- package/dist/cjs/{zIndexManager-d4174c1c.js → zIndexManager-d5650f0d.js} +1 -1
- package/dist/collection/collection-manifest.json +7 -7
- package/dist/collection/components/vega-accordion/vega-accordion.js +4 -12
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +1 -8
- package/dist/collection/components/vega-banner/vega-banner.js +0 -10
- package/dist/collection/components/vega-box/vega-box.js +29 -2
- package/dist/collection/components/vega-button/vega-button.js +0 -4
- package/dist/collection/components/vega-button-circle/vega-button-circle.js +0 -10
- package/dist/collection/components/vega-button-link/vega-button-link.js +20 -16
- package/dist/collection/components/vega-card/vega-card.js +2 -2
- package/dist/collection/components/vega-carousel/vega-carousel.js +0 -4
- package/dist/collection/components/vega-chart/vega-bar-chart/vega-bar-chart.js +1 -1
- package/dist/collection/components/vega-chart/vega-line-chart/vega-line-chart.js +1 -1
- package/dist/collection/components/vega-chart/vega-pie-chart/vega-pie-chart.js +1 -1
- package/dist/collection/components/vega-checkbox/vega-checkbox-group.js +1 -8
- package/dist/collection/components/vega-checkbox/vega-checkbox.js +0 -7
- package/dist/collection/components/vega-chip/vega-chip.js +38 -24
- package/dist/collection/components/vega-color-picker/vega-color-picker.js +0 -7
- package/dist/collection/components/vega-combo-box/vega-combo-box.js +1 -14
- package/dist/collection/components/vega-date-picker/vega-date-picker.js +2 -9
- package/dist/collection/components/vega-dialog/vega-dialog.js +3 -3
- package/dist/collection/components/vega-dropdown/slimmers/vega-dropdown-appender-controller.js +104 -0
- package/dist/collection/components/vega-dropdown/slimmers/vega-dropdown-create-renderer.js +45 -0
- package/dist/collection/components/vega-dropdown/slimmers/vega-dropdown-item-renderer.js +95 -0
- package/dist/collection/components/vega-dropdown/slimmers/vega-dropdown-keyboard-conttroller.js +72 -0
- package/dist/collection/components/vega-dropdown/slimmers/vega-dropdown-list-renderer.js +104 -0
- package/dist/collection/components/vega-dropdown/slimmers/vega-dropdown-renderer.js +49 -0
- package/dist/collection/components/vega-dropdown/slimmers/vega-dropdown-search-renderer.js +42 -0
- package/dist/collection/components/vega-dropdown/slimmers/vega-dropdown-source-controller.js +116 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +65 -297
- package/dist/collection/components/vega-flex/vega-flex.js +1 -1
- package/dist/collection/components/vega-form/vega-form.js +31 -26
- package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +0 -13
- package/dist/collection/components/vega-input/vega-input.js +1 -14
- package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.js +0 -13
- package/dist/collection/components/vega-input-select/vega-input-select.js +22 -18
- package/dist/collection/components/vega-item-toggle/vega-item-toggle.js +0 -10
- package/dist/collection/components/vega-left-nav/vega-left-nav-link.js +0 -10
- package/dist/collection/components/vega-left-nav/vega-left-nav.js +0 -4
- package/dist/collection/components/vega-modal/vega-modal.js +1 -8
- package/dist/collection/components/vega-pagination/vega-pagination.js +0 -13
- package/dist/collection/components/vega-popover/vega-popover.js +0 -7
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +0 -10
- package/dist/collection/components/vega-radio/vega-radio-group.js +2 -9
- package/dist/collection/components/vega-radio/vega-radio.js +0 -16
- package/dist/collection/components/vega-sidenav/vega-sidenav-link.js +0 -10
- package/dist/collection/components/vega-sidenav/vega-sidenav.js +0 -4
- package/dist/collection/components/vega-stepper/vega-stepper.js +0 -7
- package/dist/collection/components/vega-tab-group/vega-tab-group.js +0 -4
- package/dist/collection/components/vega-table/vega-table.js +0 -13
- package/dist/collection/components/vega-textarea/vega-textarea.js +0 -10
- package/dist/collection/components/vega-time-picker/vega-time-picker.js +5 -8
- package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.js +0 -10
- package/dist/collection/constants/ui.js +1 -0
- package/dist/collection/decorators/property-decorators/tests/injectFormFieldController.test.js +8 -5
- package/dist/collection/helpers/chart/barChart.js +16 -7
- package/dist/collection/helpers/chart/drawers/rectDrawer.js +15 -6
- package/dist/collection/helpers/chart/inputProcessors/horizontalXAxisInputProcessor.js +31 -0
- package/dist/collection/helpers/chart/inputProcessors/horizontalYAxisInputProcessor.js +31 -0
- package/dist/collection/helpers/chart/inputProcessors/xAxisInputProcessor.js +2 -2
- package/dist/collection/helpers/chart/inputProcessors/yAxisInputProcessor.js +4 -4
- package/dist/collection/helpers/chart/lineChart.js +8 -8
- package/dist/collection/helpers/chart/renderers/svgRenderer.js +14 -3
- package/dist/collection/helpers/chart/test/drawers/rectDrawer.test.js +5 -0
- package/dist/collection/helpers/chart/test/inputProcessors/horizontalXAxisInputProcessor.test.js +45 -0
- package/dist/collection/helpers/chart/test/inputProcessors/horizontalYAxisInputProcessor.test.js +80 -0
- package/dist/collection/helpers/chart/test/inputProcessors/xAxisInputProcessor.test.js +5 -5
- package/dist/collection/helpers/chart/test/inputProcessors/yAxisInputProcessor.test.js +10 -7
- package/dist/collection/helpers/feature-control/featureFlagsMap.js +14 -10
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveBoxDisplayFormatter.js +32 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveClassStringFormatter.js +2 -2
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveDisplayFormatter.js +1 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveFlexAlignItemFormatter.js +1 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveFlexDirectionFormatter.js +1 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveFlexJustifyContentFormatter.js +1 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveFormatFacade.js +3 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveGapFormatter.js +1 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveGridColumnFormatter.js +1 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveGridRowFormatter.js +1 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsiveMarginFormatter.js +1 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsivePaddingFormatter.js +1 -0
- package/dist/collection/helpers/formatter/string-formatter/numberMaskStrategy.js +3 -2
- package/dist/collection/helpers/formatter/string-formatter/stringMaskStrategy.js +5 -2
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsiveBoxDisplayFormatter.test.js +19 -0
- package/dist/collection/helpers/immutable/immutableMap.js +105 -0
- package/dist/collection/helpers/immutable/test/immutableMap.test.js +83 -0
- package/dist/collection/helpers/observer/subject.js +1 -0
- package/dist/collection/helpers/slimmers/elementAppenderSlimmer.js +166 -0
- package/dist/collection/helpers/slimmers/keyboardManagerSlimmer.js +33 -0
- package/dist/collection/helpers/slimmers/test/elementAppenderSlimmer.test.js +224 -0
- package/dist/collection/helpers/slimmers/test/keyboardManagerSlimmer.test.js +82 -0
- package/dist/collection/helpers/validator/formFieldController.js +78 -26
- package/dist/collection/helpers/validator/test/validator/formFieldController.test.js +66 -4
- package/dist/collection/slim-core/decorators/injectVegaSlimmer.js +31 -8
- package/dist/collection/slim-core/decorators/mapMethodToSlimmer.js +56 -0
- package/dist/collection/slim-core/decorators/tests/mapMethodToSlimmer.test.js +124 -0
- package/dist/collection/slim-core/decorators/tests/mapToComponentMethod.test.js +52 -10
- package/dist/collection/types/typeGuard.js +28 -10
- package/dist/collection/utils/breakpoints.js +2 -1
- package/dist/collection/utils/component.js +20 -0
- package/dist/collection/utils/misc.js +18 -0
- package/dist/collection/utils/test/component.test.js +15 -1
- package/dist/collection/utils/test/misc.test.js +27 -1
- package/dist/collection/value-model-adapters/vueComponentVModelAdaptor.js +0 -1
- package/dist/esm/{app-globals-efa3f0ae.js → app-globals-613a0ccb.js} +4 -3
- package/dist/esm/{breakpoints-dd8e5409.js → breakpoints-011b5bc5.js} +3 -2
- package/dist/esm/{component-75db1978.js → component-da8ec36a.js} +23 -2
- package/dist/esm/{designToken-d02da653.js → designToken-c593effd.js} +3 -3
- package/dist/esm/{log-8e753299.js → featureFlagController-fa69abe2.js} +15 -79
- package/dist/esm/index-15c74515.js +14 -2
- package/dist/esm/index.js +12 -11
- package/dist/esm/{injectElementAppender-3ed44f5d.js → injectElementAppender-e7837213.js} +7 -7
- package/dist/esm/{injectFormFieldController-497e0dbd.js → injectFormFieldController-8a99af16.js} +80 -28
- package/dist/esm/{injectKeyboardManager-c4092ea9.js → injectKeyboardManager-2f160d67.js} +2 -2
- package/dist/esm/{injectPageResizeObserver-2d1165c9.js → injectPageResizeObserver-abdf0f8a.js} +1 -1
- package/dist/esm/{legendInputProcessor-aea5690d.js → legendInputProcessor-b9d2083c.js} +14 -3
- package/dist/esm/loader.js +9 -8
- package/dist/esm/log-a824be80.js +69 -0
- package/dist/esm/misc-9fdbcfbb.js +37 -0
- package/dist/esm/{observer-bb866830.js → observer-808a93ca.js} +3 -2
- package/dist/esm/{responsiveFormatFacade-7788442f.js → responsiveFormatFacade-438c3cd2.js} +46 -6
- package/dist/esm/{themeManager-f1144d55.js → themeManager-c1bb222d.js} +3 -3
- package/dist/esm/{typeGuard-be382d54.js → typeGuard-bc66540d.js} +29 -11
- package/dist/esm/{ui-bcbcd962.js → ui-d9d772ae.js} +2 -2
- package/dist/esm/{ui-fa364a53.js → ui-f441c535.js} +2 -1
- package/dist/esm/vega-accordion.entry.js +14 -201
- package/dist/esm/vega-app-footer.entry.js +3 -2
- package/dist/esm/vega-app-header-button.entry.js +10 -18
- package/dist/esm/vega-badge.entry.js +10 -9
- package/dist/esm/{vega-banner_37.entry.js → vega-banner_34.entry.js} +1119 -894
- package/dist/esm/vega-bar-chart.entry.js +93 -15
- package/dist/esm/vega-box.entry.js +10 -8
- package/dist/esm/vega-chip.entry.js +44 -32
- package/dist/esm/vega-color-picker.entry.js +7 -13
- package/dist/esm/vega-combo-box.entry.js +10 -22
- package/dist/esm/vega-counter-badge.entry.js +41 -0
- package/dist/esm/vega-dialog.entry.js +6 -5
- package/dist/esm/vega-header.entry.js +3 -2
- package/dist/esm/vega-image-uploader.entry.js +8 -21
- package/dist/esm/vega-input-credit-card.entry.js +7 -19
- package/dist/esm/vega-item-toggle.entry.js +4 -18
- package/dist/esm/vega-left-nav-group_3.entry.js +6 -22
- package/dist/esm/vega-left-nav.entry.js +7 -13
- package/dist/esm/vega-loading-indicator.entry.js +97 -0
- package/dist/esm/vega-option.entry.js +3 -2
- package/dist/esm/vega-page-notification.entry.js +4 -3
- package/dist/esm/vega-pie-chart.entry.js +4 -3
- package/dist/esm/vega-popover.entry.js +11 -19
- package/dist/esm/vega-stepper.entry.js +7 -12
- package/dist/esm/vega-textarea.entry.js +7 -16
- package/dist/esm/vega-virtual-scroll.entry.js +204 -0
- package/dist/esm/vega.js +9 -8
- package/dist/esm/{vegaDialogController-088c1ff8.js → vegaDialogController-a23aae0f.js} +1 -1
- package/dist/esm/vegaSlimmer-c544c28e.js +259 -0
- package/dist/esm/{yAxisInputProcessor-5a39409d.js → yAxisInputProcessor-afa21383.js} +7 -7
- package/dist/esm/{zIndexManager-908c4553.js → zIndexManager-3a694c18.js} +1 -1
- package/dist/types/components/vega-accordion/vega-accordion.d.ts +0 -2
- package/dist/types/components/vega-box/vega-box.d.ts +6 -1
- package/dist/types/components/vega-button-link/vega-button-link.d.ts +3 -0
- package/dist/types/components/vega-chip/vega-chip.d.ts +2 -0
- package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +1 -1
- package/dist/types/components/vega-dropdown/slimmers/vega-dropdown-appender-controller.d.ts +24 -0
- package/dist/types/components/vega-dropdown/slimmers/vega-dropdown-create-renderer.d.ts +12 -0
- package/dist/types/components/vega-dropdown/slimmers/vega-dropdown-item-renderer.d.ts +18 -0
- package/dist/types/components/vega-dropdown/slimmers/vega-dropdown-keyboard-conttroller.d.ts +21 -0
- package/dist/types/components/vega-dropdown/slimmers/vega-dropdown-list-renderer.d.ts +34 -0
- package/dist/types/components/vega-dropdown/slimmers/vega-dropdown-renderer.d.ts +18 -0
- package/dist/types/components/vega-dropdown/slimmers/vega-dropdown-search-renderer.d.ts +13 -0
- package/dist/types/components/vega-dropdown/slimmers/vega-dropdown-source-controller.d.ts +25 -0
- package/dist/types/components/vega-dropdown/types.d.ts +12 -0
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +21 -62
- package/dist/types/components/vega-form/vega-form.d.ts +6 -2
- package/dist/types/components/vega-input-select/types.d.ts +24 -0
- package/dist/types/components/vega-input-select/vega-input-select.d.ts +3 -11
- package/dist/types/components/vega-virtual-scroll/vega-virtual-scroll.d.ts +1 -1
- package/dist/types/components.d.ts +16 -10
- package/dist/types/constants/ui.d.ts +1 -0
- package/dist/types/helpers/chart/barChart.d.ts +4 -1
- package/dist/types/helpers/chart/inputProcessors/horizontalXAxisInputProcessor.d.ts +20 -0
- package/dist/types/helpers/chart/inputProcessors/horizontalYAxisInputProcessor.d.ts +19 -0
- package/dist/types/helpers/chart/inputProcessors/xAxisInputProcessor.d.ts +2 -2
- package/dist/types/helpers/chart/inputProcessors/yAxisInputProcessor.d.ts +6 -3
- package/dist/types/helpers/chart/test/inputProcessors/horizontalXAxisInputProcessor.test.d.ts +1 -0
- package/dist/types/helpers/chart/test/inputProcessors/horizontalYAxisInputProcessor.test.d.ts +1 -0
- package/dist/types/helpers/feature-control/featureFlag.d.ts +4 -3
- package/dist/types/helpers/formatter/responsive-map-formatter/responsiveBoxDisplayFormatter.d.ts +19 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsiveClassStringFormatter.d.ts +2 -1
- package/dist/types/helpers/formatter/responsive-map-formatter/responsiveSizeFormatter.d.ts +2 -2
- package/dist/types/helpers/formatter/responsive-map-formatter/responsiveTranslocationFormatter.d.ts +3 -2
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsiveBoxDisplayFormatter.test.d.ts +1 -0
- package/dist/types/helpers/immutable/immutableMap.d.ts +71 -0
- package/dist/types/helpers/immutable/test/immutableMap.test.d.ts +1 -0
- package/dist/types/helpers/observer/subject.d.ts +2 -1
- package/dist/types/helpers/slimmers/elementAppenderSlimmer.d.ts +49 -0
- package/dist/types/helpers/slimmers/keyboardManagerSlimmer.d.ts +13 -0
- package/dist/types/helpers/slimmers/test/elementAppenderSlimmer.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/test/keyboardManagerSlimmer.test.d.ts +1 -0
- package/dist/types/helpers/validator/formFieldController.d.ts +29 -1
- package/dist/types/helpers/validator/rules/formFieldValidationRule.d.ts +1 -1
- package/dist/types/helpers/validator/rules/validationRule.d.ts +1 -1
- package/dist/types/helpers/validator/validator.d.ts +1 -1
- package/dist/types/slim-core/decorators/injectVegaSlimmer.d.ts +1 -1
- package/dist/types/slim-core/decorators/mapMethodToSlimmer.d.ts +17 -0
- package/dist/types/slim-core/decorators/tests/mapMethodToSlimmer.test.d.ts +1 -0
- package/dist/types/types/publicApi.d.ts +2 -1
- package/dist/types/types/typeGuard.d.ts +9 -2
- package/dist/types/types/ui.type.d.ts +4 -1
- package/dist/types/types/vegaChart.d.ts +5 -0
- package/dist/types/utils/component.d.ts +7 -0
- package/dist/types/utils/misc.d.ts +7 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-040f8fca.entry.js +1 -0
- package/dist/vega/p-045f6881.js +1 -0
- package/dist/vega/p-08697ff5.entry.js +1 -0
- package/dist/vega/p-0c8ed90c.js +1 -0
- package/dist/vega/p-12b36e52.entry.js +1 -0
- package/dist/vega/p-1e693dba.entry.js +1 -0
- package/dist/vega/{p-a981b648.js → p-1ed17b3a.js} +1 -1
- package/dist/vega/p-334a4b15.entry.js +1 -0
- package/dist/vega/p-3e329ef0.entry.js +1 -0
- package/dist/vega/p-420590e8.entry.js +1 -0
- package/dist/vega/p-49d13b69.entry.js +1 -0
- package/dist/vega/{p-5c12d4a0.js → p-50f895bc.js} +1 -1
- package/dist/vega/p-55fd2376.js +1 -0
- package/dist/vega/p-580624a4.js +1 -0
- package/dist/vega/{p-b71e2211.js → p-60c43880.js} +1 -1
- package/dist/vega/p-61025496.js +1 -0
- package/dist/vega/p-62af8922.entry.js +13 -0
- package/dist/vega/p-68afe11b.entry.js +1 -0
- package/dist/vega/p-6953bdf0.entry.js +1 -0
- package/dist/vega/p-6c5a5189.js +1 -0
- package/dist/vega/{p-d7ce4a09.js → p-6ce7467b.js} +1 -1
- package/dist/vega/p-751d4006.entry.js +1 -0
- package/dist/vega/p-75cf03e0.js +1 -0
- package/dist/vega/p-841f6cb4.js +1 -0
- package/dist/vega/p-858ddc35.entry.js +1 -0
- package/dist/vega/p-8b5d3a52.js +1 -0
- package/dist/vega/p-949a1a10.entry.js +1 -0
- package/dist/vega/p-9ad088e0.js +1 -0
- package/dist/vega/p-9b109349.entry.js +1 -0
- package/dist/vega/p-a654741b.entry.js +1 -0
- package/dist/vega/{p-d804c019.js → p-a6e6eb8b.js} +1 -1
- package/dist/vega/p-ade6027d.entry.js +1 -0
- package/dist/vega/p-aee5f691.entry.js +1 -0
- package/dist/vega/p-af871c74.js +1 -0
- package/dist/vega/{p-3bdb1028.js → p-afc0df78.js} +1 -1
- package/dist/vega/p-bae082ac.entry.js +1 -0
- package/dist/vega/{p-9819bbbe.js → p-bc77ec36.js} +1 -1
- package/dist/vega/p-bf82cdcf.entry.js +1 -0
- package/dist/vega/p-c0168f4f.js +1 -0
- package/dist/vega/p-d7346455.entry.js +1 -0
- package/dist/vega/p-db47e873.entry.js +1 -0
- package/dist/vega/{p-c8755706.js → p-df911542.js} +1 -1
- package/dist/vega/p-e0848b65.entry.js +1 -0
- package/dist/vega/p-e9e86bfa.entry.js +1 -0
- package/dist/vega/p-ee1e1d2d.entry.js +1 -0
- package/dist/vega/p-f17eb71f.js +1 -0
- package/dist/vega/p-fa4f062c.entry.js +1 -0
- package/dist/vega/p-fe30c399.js +1 -0
- package/dist/vega/vega.css +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/style/vega.css +1 -1
- package/style/vega_min.css +1 -1
- package/dist/cjs/misc-aa481a6d.js +0 -22
- package/dist/cjs/vueEventPatch-fc311de9.js +0 -40
- package/dist/collection/decorators/property-decorators/vueEventPatch.js +0 -33
- package/dist/esm/misc-28ee9efe.js +0 -19
- package/dist/esm/vueEventPatch-a21203dd.js +0 -38
- package/dist/types/decorators/property-decorators/vueEventPatch.d.ts +0 -7
- package/dist/vega/p-0a3120cc.js +0 -1
- package/dist/vega/p-0f795d6f.js +0 -1
- package/dist/vega/p-1d689259.js +0 -1
- package/dist/vega/p-1eafa2d1.entry.js +0 -1
- package/dist/vega/p-2303c27b.entry.js +0 -1
- package/dist/vega/p-277b69c8.entry.js +0 -1
- package/dist/vega/p-2cd0480f.js +0 -1
- package/dist/vega/p-343a84d4.entry.js +0 -1
- package/dist/vega/p-4ae8c416.js +0 -1
- package/dist/vega/p-4c83d807.entry.js +0 -1
- package/dist/vega/p-5876b3ac.entry.js +0 -1
- package/dist/vega/p-5ba16da8.entry.js +0 -1
- package/dist/vega/p-6259ac7e.entry.js +0 -1
- package/dist/vega/p-62682c58.js +0 -1
- package/dist/vega/p-662ff70e.entry.js +0 -1
- package/dist/vega/p-67c7f040.entry.js +0 -1
- package/dist/vega/p-6f4a330e.js +0 -1
- package/dist/vega/p-70d5cc29.entry.js +0 -1
- package/dist/vega/p-83265565.entry.js +0 -1
- package/dist/vega/p-aa8bdd15.js +0 -1
- package/dist/vega/p-ab3c90d6.entry.js +0 -1
- package/dist/vega/p-ac5abc6b.entry.js +0 -1
- package/dist/vega/p-ad64e72a.entry.js +0 -13
- package/dist/vega/p-b2639e28.entry.js +0 -1
- package/dist/vega/p-b3b8b1d9.js +0 -1
- package/dist/vega/p-b6ea7e54.entry.js +0 -1
- package/dist/vega/p-b87b2fdd.entry.js +0 -1
- package/dist/vega/p-b88f9206.entry.js +0 -1
- package/dist/vega/p-c043c5ac.js +0 -1
- package/dist/vega/p-c543be28.entry.js +0 -1
- package/dist/vega/p-d35598a9.entry.js +0 -1
- package/dist/vega/p-d35f96a2.js +0 -1
- package/dist/vega/p-d4e5f9ea.js +0 -1
- package/dist/vega/p-dbbf1c6c.entry.js +0 -1
- package/dist/vega/p-e8fa28b1.entry.js +0 -1
- package/dist/vega/p-f74cac01.js +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
const themeManager = require('./themeManager-
|
|
5
|
-
const
|
|
3
|
+
const featureFlagController = require('./featureFlagController-3a330da8.js');
|
|
4
|
+
const themeManager = require('./themeManager-6ba8be2a.js');
|
|
5
|
+
const log = require('./log-5d8066e0.js');
|
|
6
|
+
const vegaDialogController = require('./vegaDialogController-d2ae40fb.js');
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Default export function that will be used by stencil global script,
|
|
@@ -22,7 +23,7 @@ function appGlobalScript () {
|
|
|
22
23
|
*/
|
|
23
24
|
function disableFeatureFlagFromClientGlobal() {
|
|
24
25
|
if (globalThis['VegaDisabledFeatureKeys']) {
|
|
25
|
-
|
|
26
|
+
featureFlagController.FeatureFlag.disable(...globalThis['VegaDisabledFeatureKeys']);
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
@@ -30,7 +31,7 @@ function disableFeatureFlagFromClientGlobal() {
|
|
|
30
31
|
*/
|
|
31
32
|
function enableFeatureFlagFromClientGlobal() {
|
|
32
33
|
if (globalThis['VegaEnabledFeatureKeys']) {
|
|
33
|
-
|
|
34
|
+
featureFlagController.FeatureFlag.enable(...globalThis['VegaEnabledFeatureKeys']);
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const ui = require('./ui-
|
|
3
|
+
const ui = require('./ui-bac156c5.js');
|
|
4
4
|
const breakpoints = require('./breakpoints-23bb4f74.js');
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -14,10 +14,11 @@ const getCurrentBreakpoint = () => {
|
|
|
14
14
|
for (index; index >= 0; index--) {
|
|
15
15
|
const breakpointKey = ui.BreakpointKeys[index];
|
|
16
16
|
if (breakpointKey === 'default')
|
|
17
|
-
|
|
17
|
+
break;
|
|
18
18
|
if (windowWidth >= breakpoints.Breakpoints[breakpointKey])
|
|
19
19
|
return breakpointKey;
|
|
20
20
|
}
|
|
21
|
+
return 'default';
|
|
21
22
|
};
|
|
22
23
|
/**
|
|
23
24
|
* Completion breakponts, eg:
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const featureFlagController = require('./featureFlagController-3a330da8.js');
|
|
4
|
+
const log = require('./log-5d8066e0.js');
|
|
4
5
|
|
|
5
6
|
const exemptionClasses = [
|
|
6
7
|
'vega-flex-grow',
|
|
@@ -32,7 +33,7 @@ const exemptionClasses = [
|
|
|
32
33
|
* @returns {T} processed vega component
|
|
33
34
|
*/
|
|
34
35
|
function sanitizeVegaComponent(renderedOutput, hostElement) {
|
|
35
|
-
if (
|
|
36
|
+
if (featureFlagController.FeatureFlag.isEnabled('VEGA_COMPONENT.SANITIZE_VEGA_COMPONENT')) {
|
|
36
37
|
checkIfInAllowedClassList(renderedOutput, hostElement);
|
|
37
38
|
checkIfUseDataShrink(hostElement);
|
|
38
39
|
}
|
|
@@ -91,5 +92,26 @@ function checkIfUseDataShrink(hostElement) {
|
|
|
91
92
|
});
|
|
92
93
|
}
|
|
93
94
|
}
|
|
95
|
+
const componentLifecycleMethods = [
|
|
96
|
+
'connectedCallback',
|
|
97
|
+
'disconnectedCallback',
|
|
98
|
+
'componentWillRender',
|
|
99
|
+
'componentDidRender',
|
|
100
|
+
'componentWillLoad',
|
|
101
|
+
'componentDidLoad',
|
|
102
|
+
'componentWillUpdate',
|
|
103
|
+
'componentDidUpdate',
|
|
104
|
+
'render',
|
|
105
|
+
];
|
|
106
|
+
/**
|
|
107
|
+
* The function checks if a given method name is a component lifecycle method.
|
|
108
|
+
*
|
|
109
|
+
* @param {string} methodName - A string representing the name of a method.
|
|
110
|
+
* @returns {boolean} Whether is component lifecycle method or not.
|
|
111
|
+
*/
|
|
112
|
+
const isComponentLifecycleMethod = (methodName) => {
|
|
113
|
+
return componentLifecycleMethods.includes(methodName);
|
|
114
|
+
};
|
|
94
115
|
|
|
116
|
+
exports.isComponentLifecycleMethod = isComponentLifecycleMethod;
|
|
95
117
|
exports.sanitizeVegaComponent = sanitizeVegaComponent;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const typeGuard = require('./typeGuard-
|
|
3
|
+
const typeGuard = require('./typeGuard-74783cb0.js');
|
|
4
4
|
const breakpoints = require('./breakpoints-23bb4f74.js');
|
|
5
|
-
const log = require('./log-
|
|
6
|
-
const responsiveFormatFacade = require('./responsiveFormatFacade-
|
|
5
|
+
const log = require('./log-5d8066e0.js');
|
|
6
|
+
const responsiveFormatFacade = require('./responsiveFormatFacade-b04b9434.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* It logs a warning message to the console.
|
|
@@ -85,22 +85,26 @@ const FeatureFlagsMap = {
|
|
|
85
85
|
createdTimestamp: 1685513925082,
|
|
86
86
|
createdAtVersion: '1.34.0',
|
|
87
87
|
},
|
|
88
|
-
'VEGA_VUE.
|
|
89
|
-
description: `Feature flag to emit
|
|
90
|
-
createdTimestamp:
|
|
91
|
-
createdAtVersion: '1.
|
|
92
|
-
disabledByDefault: true,
|
|
93
|
-
},
|
|
94
|
-
'VEGA_VUE.EMIT_KEBAB_CASE_EVENT_NAME': {
|
|
95
|
-
description: `Feature flag to emit kebab case event name for Vue framework`,
|
|
96
|
-
createdTimestamp: 1685948692247,
|
|
97
|
-
createdAtVersion: '1.35.0',
|
|
88
|
+
'VEGA_VUE.EMIT_CAMEL_CASE_EVENT_NAME': {
|
|
89
|
+
description: `Feature flag to emit camel case event name for Vue framework`,
|
|
90
|
+
createdTimestamp: 1688971026741,
|
|
91
|
+
createdAtVersion: '1.37.0',
|
|
98
92
|
},
|
|
99
93
|
'VEGA_ITEM_TOGGLE_ISERROR_DEPRECATED': {
|
|
100
94
|
description: `Feature flag to deprecated the component vega-item-toggle property isError`,
|
|
101
95
|
createdTimestamp: 1687934508330,
|
|
102
96
|
createdAtVersion: '1.36.0',
|
|
103
97
|
},
|
|
98
|
+
'VEGA_BUTTON_LINK.DEPRECATED_EVENTFUL': {
|
|
99
|
+
description: `Feature flag to deprecated eventful property`,
|
|
100
|
+
createdTimestamp: 1689313658898,
|
|
101
|
+
createdAtVersion: '1.36.1',
|
|
102
|
+
},
|
|
103
|
+
'VEGA_DROPDOWN.RENAME_PREFIX_TO_PREFIX_ICON': {
|
|
104
|
+
description: `Feature flag to rename prefix to prefixIcon`,
|
|
105
|
+
createdTimestamp: 1689576347049,
|
|
106
|
+
createdAtVersion: '1.37.0',
|
|
107
|
+
},
|
|
104
108
|
};
|
|
105
109
|
const FeatureFlagsMap$1 = Object.freeze(FeatureFlagsMap);
|
|
106
110
|
|
|
@@ -151,74 +155,4 @@ class FeatureFlagController {
|
|
|
151
155
|
}
|
|
152
156
|
const FeatureFlag = new FeatureFlagController();
|
|
153
157
|
|
|
154
|
-
/**
|
|
155
|
-
* LogUtility is a wrapper class for console.log/warn/error with vega branding prefix
|
|
156
|
-
*/
|
|
157
|
-
class LogUtility {
|
|
158
|
-
/**
|
|
159
|
-
* `setVegaLogLevel` sets the log level for the Vega logger
|
|
160
|
-
*
|
|
161
|
-
* @param {LogLevelType} level - The log level to set.
|
|
162
|
-
*/
|
|
163
|
-
static setVegaLogLevel(level) {
|
|
164
|
-
this.logLevel = level;
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Prints a log message to the console
|
|
168
|
-
*
|
|
169
|
-
* @param {unknown[]} message - The message to log.
|
|
170
|
-
*/
|
|
171
|
-
static log(...message) {
|
|
172
|
-
if (this.shouldLog('log')) {
|
|
173
|
-
console.log(`%c${this.LOG_PREFIX_STR}`, this.LOG_PREFIX_STYLE, ...message);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Prints a warning message to the console
|
|
178
|
-
*
|
|
179
|
-
* @param {unknown[]} message - The message to log.
|
|
180
|
-
*/
|
|
181
|
-
static warn(...message) {
|
|
182
|
-
if (this.shouldLog('warn')) {
|
|
183
|
-
console.warn(`%c${this.LOG_PREFIX_STR}`, this.LOG_PREFIX_STYLE, ...message);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Prints an error message to the console
|
|
188
|
-
*
|
|
189
|
-
* @param {unknown[]} message - The message to be logged.
|
|
190
|
-
*/
|
|
191
|
-
static error(...message) {
|
|
192
|
-
if (this.shouldLog('error')) {
|
|
193
|
-
console.error(`%c${this.LOG_PREFIX_STR}`, this.LOG_PREFIX_STYLE, ...message);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* If the current log level is less than or equal to the expected log level, then log
|
|
198
|
-
*
|
|
199
|
-
* @param {LogLevelType} level - LogLevelType - The log level of the message.
|
|
200
|
-
* @returns {boolean} A boolean value.
|
|
201
|
-
*/
|
|
202
|
-
static shouldLog(level) {
|
|
203
|
-
const current = this.LOG_LEVELS.findIndex((item) => item === level);
|
|
204
|
-
const expect = this.LOG_LEVELS.findIndex((item) => item === this.logLevel);
|
|
205
|
-
return current <= expect;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
LogUtility.logLevel = 'error';
|
|
209
|
-
LogUtility.LOG_PREFIX_STR = '[Vega]';
|
|
210
|
-
LogUtility.LOG_PREFIX_STYLE = 'font-weight: bold';
|
|
211
|
-
LogUtility.LOG_LEVELS = ['off', 'error', 'warn', 'log'];
|
|
212
|
-
/**
|
|
213
|
-
* > Sets the log level for the Vega library
|
|
214
|
-
*
|
|
215
|
-
* @param {LogLevelType} level - The log level to set.
|
|
216
|
-
* @returns {void} -
|
|
217
|
-
*/
|
|
218
|
-
function setVegaLogLevel(level) {
|
|
219
|
-
LogUtility.setVegaLogLevel(level);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
158
|
exports.FeatureFlag = FeatureFlag;
|
|
223
|
-
exports.LogUtility = LogUtility;
|
|
224
|
-
exports.setVegaLogLevel = setVegaLogLevel;
|
|
@@ -1777,10 +1777,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1777
1777
|
}
|
|
1778
1778
|
switch(bundleId) {
|
|
1779
1779
|
|
|
1780
|
-
case 'vega-
|
|
1780
|
+
case 'vega-banner_34.cjs':
|
|
1781
1781
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1782
1782
|
/* webpackMode: "lazy" */
|
|
1783
|
-
'./vega-
|
|
1783
|
+
'./vega-banner_34.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1784
1784
|
case 'vega-accordion.cjs':
|
|
1785
1785
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1786
1786
|
/* webpackMode: "lazy" */
|
|
@@ -1837,6 +1837,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1837
1837
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1838
1838
|
/* webpackMode: "lazy" */
|
|
1839
1839
|
'./vega-left-nav.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1840
|
+
case 'vega-loading-indicator.cjs':
|
|
1841
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1842
|
+
/* webpackMode: "lazy" */
|
|
1843
|
+
'./vega-loading-indicator.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1840
1844
|
case 'vega-option.cjs':
|
|
1841
1845
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1842
1846
|
/* webpackMode: "lazy" */
|
|
@@ -1861,6 +1865,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1861
1865
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1862
1866
|
/* webpackMode: "lazy" */
|
|
1863
1867
|
'./vega-textarea.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1868
|
+
case 'vega-virtual-scroll.cjs':
|
|
1869
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1870
|
+
/* webpackMode: "lazy" */
|
|
1871
|
+
'./vega-virtual-scroll.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1864
1872
|
case 'vega-chip.cjs':
|
|
1865
1873
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1866
1874
|
/* webpackMode: "lazy" */
|
|
@@ -1869,6 +1877,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1869
1877
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1870
1878
|
/* webpackMode: "lazy" */
|
|
1871
1879
|
'./vega-left-nav-group_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1880
|
+
case 'vega-counter-badge.cjs':
|
|
1881
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1882
|
+
/* webpackMode: "lazy" */
|
|
1883
|
+
'./vega-counter-badge.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1872
1884
|
}
|
|
1873
1885
|
}
|
|
1874
1886
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,23 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const breakpoints = require('./breakpoints-
|
|
6
|
-
const log = require('./log-
|
|
7
|
-
const designToken = require('./designToken-
|
|
5
|
+
const breakpoints = require('./breakpoints-07fcbeba.js');
|
|
6
|
+
const log = require('./log-5d8066e0.js');
|
|
7
|
+
const designToken = require('./designToken-e233e014.js');
|
|
8
8
|
const string = require('./string-21427167.js');
|
|
9
|
-
const typeGuard = require('./typeGuard-
|
|
9
|
+
const typeGuard = require('./typeGuard-74783cb0.js');
|
|
10
10
|
const breakpoints$1 = require('./breakpoints-23bb4f74.js');
|
|
11
11
|
const icons = require('./icons-44ed411d.js');
|
|
12
12
|
const typography = require('./typography-9f9d8d04.js');
|
|
13
|
-
const ui = require('./ui-
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
require('./
|
|
13
|
+
const ui = require('./ui-bac156c5.js');
|
|
14
|
+
const featureFlagController = require('./featureFlagController-3a330da8.js');
|
|
15
|
+
const themeManager = require('./themeManager-6ba8be2a.js');
|
|
16
|
+
const vegaDialogController = require('./vegaDialogController-d2ae40fb.js');
|
|
17
|
+
require('./responsiveFormatFacade-b04b9434.js');
|
|
17
18
|
require('./number-7e7d9981.js');
|
|
18
|
-
require('./misc-
|
|
19
|
-
require('./ui-
|
|
19
|
+
require('./misc-3d30df91.js');
|
|
20
|
+
require('./ui-824caf47.js');
|
|
20
21
|
require('./ui.type-655d8879.js');
|
|
21
|
-
require('./zIndexManager-
|
|
22
|
+
require('./zIndexManager-d5650f0d.js');
|
|
22
23
|
require('./tinycolor-14174cd4.js');
|
|
23
24
|
|
|
24
25
|
/* This file is generated by vega-design 2.0.71 */
|
|
@@ -28,7 +29,6 @@ require('./tinycolor-14174cd4.js');
|
|
|
28
29
|
const Rings = ["ring-input-focus", "dark-ring-input-focus", "ring-input-danger-focus", "dark-ring-input-danger-focus", "ring-action-focus", "dark-ring-action-focus", "ring-action-danger-focus", "dark-ring-action-danger-focus"];
|
|
29
30
|
|
|
30
31
|
exports.getCurrentBreakpoint = breakpoints.getCurrentBreakpoint;
|
|
31
|
-
exports.FeatureFlag = log.FeatureFlag;
|
|
32
32
|
exports.LogUtility = log.LogUtility;
|
|
33
33
|
exports.setVegaLogLevel = log.setVegaLogLevel;
|
|
34
34
|
exports.formatAndValidBackgroundColor = designToken.formatAndValidBackgroundColor;
|
|
@@ -56,6 +56,7 @@ exports.Icons = icons.Icons;
|
|
|
56
56
|
exports.getIconFromToken = icons.getIconFromToken;
|
|
57
57
|
exports.Typography = typography.Typography;
|
|
58
58
|
exports.BreakpointKeys = ui.BreakpointKeys;
|
|
59
|
+
exports.FeatureFlag = featureFlagController.FeatureFlag;
|
|
59
60
|
exports.VegaLoader = themeManager.VegaLoader;
|
|
60
61
|
exports.VegaNotify = themeManager.VegaNotify;
|
|
61
62
|
exports.VegaThemeManager = themeManager.VegaThemeManager;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const log = require('./log-
|
|
4
|
-
const ui = require('./ui-
|
|
5
|
-
const typeGuard = require('./typeGuard-
|
|
6
|
-
const responsiveFormatFacade = require('./responsiveFormatFacade-
|
|
7
|
-
const ui$1 = require('./ui-
|
|
8
|
-
const zIndexManager = require('./zIndexManager-
|
|
3
|
+
const log = require('./log-5d8066e0.js');
|
|
4
|
+
const ui = require('./ui-bac156c5.js');
|
|
5
|
+
const typeGuard = require('./typeGuard-74783cb0.js');
|
|
6
|
+
const responsiveFormatFacade = require('./responsiveFormatFacade-b04b9434.js');
|
|
7
|
+
const ui$1 = require('./ui-824caf47.js');
|
|
8
|
+
const zIndexManager = require('./zIndexManager-d5650f0d.js');
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Get the position of the element in the container according to the target element and the placement
|
|
@@ -873,4 +873,5 @@ class ElementAppenderListener {
|
|
|
873
873
|
}
|
|
874
874
|
ElementAppenderListener.DELAY_HIDE_TIME = 100;
|
|
875
875
|
|
|
876
|
+
exports.ElementAppender = ElementAppender;
|
|
876
877
|
exports.InjectElementAppender = InjectElementAppender;
|
package/dist/cjs/{injectFormFieldController-be1c3d42.js → injectFormFieldController-30fb2f9a.js}
RENAMED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
const observer = require('./observer-
|
|
5
|
-
const ui = require('./ui-
|
|
3
|
+
const featureFlagController = require('./featureFlagController-3a330da8.js');
|
|
4
|
+
const observer = require('./observer-ce58653c.js');
|
|
5
|
+
const ui = require('./ui-824caf47.js');
|
|
6
|
+
const misc = require('./misc-3d30df91.js');
|
|
6
7
|
const string = require('./string-21427167.js');
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -61,8 +62,8 @@ class FormFieldController {
|
|
|
61
62
|
* @param {boolean} showError whether the validation result should be reflected in UI
|
|
62
63
|
* @returns {boolean} A boolean value.
|
|
63
64
|
*/
|
|
64
|
-
validate(showError) {
|
|
65
|
-
return this.valid([], showError);
|
|
65
|
+
async validate(showError) {
|
|
66
|
+
return await this.valid([], showError);
|
|
66
67
|
}
|
|
67
68
|
/**
|
|
68
69
|
* This function adds a listener to the listeners array.
|
|
@@ -108,25 +109,16 @@ class FormFieldController {
|
|
|
108
109
|
/**
|
|
109
110
|
* valid function to validate the rules
|
|
110
111
|
*/
|
|
111
|
-
valid(triggerStatus, showError = 'rule') {
|
|
112
|
+
async valid(triggerStatus, showError = 'rule') {
|
|
113
|
+
const UUID = misc.generateUUID();
|
|
114
|
+
this.validId = UUID;
|
|
112
115
|
const input = this.hostElement.value;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
? this.applyInputInvalidUI(firstInvalidResult.message)
|
|
119
|
-
: this.resetInputInvalidUI();
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
showError ? this.applyInputInvalidUI(firstInvalidResult.message) : this.resetInputInvalidUI();
|
|
123
|
-
}
|
|
124
|
-
isValid = false;
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
this.resetInputInvalidUI();
|
|
116
|
+
this.checkIncludesAsyncRules(input, triggerStatus);
|
|
117
|
+
const firstInvalidResult = await this.getFirstInvalidRuleResult(input, triggerStatus);
|
|
118
|
+
const isValid = firstInvalidResult ? false : true;
|
|
119
|
+
if (UUID === this.validId) {
|
|
120
|
+
this.handleValidationResult(showError, firstInvalidResult);
|
|
128
121
|
}
|
|
129
|
-
this.invokeListeners(isValid);
|
|
130
122
|
return isValid;
|
|
131
123
|
}
|
|
132
124
|
/**
|
|
@@ -136,10 +128,11 @@ class FormFieldController {
|
|
|
136
128
|
* @param {(keyof FormFieldStatusMeta)[]} statusChanged - (keyof FormFieldStatusMeta)[]
|
|
137
129
|
* @returns {ValidationResult | null} The first invalid rule result.
|
|
138
130
|
*/
|
|
139
|
-
getFirstInvalidRuleResult(input, statusChanged) {
|
|
131
|
+
async getFirstInvalidRuleResult(input, statusChanged) {
|
|
140
132
|
const status = this.getStatus();
|
|
141
|
-
|
|
142
|
-
|
|
133
|
+
const canEvaluateRules = this.getAllCanEvaluateRules(input, statusChanged);
|
|
134
|
+
for (const rule of canEvaluateRules) {
|
|
135
|
+
const evaluateResult = await rule.evaluate(input);
|
|
143
136
|
const shouldShowError = rule.shouldShowError
|
|
144
137
|
? rule.shouldShowError(status, statusChanged)
|
|
145
138
|
: this.defaultShouldShowError(status);
|
|
@@ -173,6 +166,65 @@ class FormFieldController {
|
|
|
173
166
|
errorContainer.classList.add('vega-hidden');
|
|
174
167
|
inputContainer.classList.remove('error');
|
|
175
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* The function handles the validation result and updates the UI accordingly.
|
|
171
|
+
*
|
|
172
|
+
* @param {boolean | 'rule'} showError - which indicates that the error message should only be shown if the `shouldShowError` property of the
|
|
173
|
+
* `validationResult` object is `true` or `rule`
|
|
174
|
+
* @param {ValidationResult} invalidationResult - The `validationResult` parameter is an object that
|
|
175
|
+
* represents the result of a validation process. It contains information about whether the validation
|
|
176
|
+
* was successful or not, and an optional error message.
|
|
177
|
+
* @returns {boolean} a boolean value, which represents whether the validation result is valid or not.
|
|
178
|
+
*/
|
|
179
|
+
handleValidationResult(showError, invalidationResult) {
|
|
180
|
+
let isValid = true;
|
|
181
|
+
if (invalidationResult) {
|
|
182
|
+
if (showError === 'rule') {
|
|
183
|
+
invalidationResult.shouldShowError
|
|
184
|
+
? this.applyInputInvalidUI(invalidationResult.message)
|
|
185
|
+
: this.resetInputInvalidUI();
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
showError ? this.applyInputInvalidUI(invalidationResult.message) : this.resetInputInvalidUI();
|
|
189
|
+
}
|
|
190
|
+
isValid = false;
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
this.resetInputInvalidUI();
|
|
194
|
+
}
|
|
195
|
+
this.invokeListeners(isValid);
|
|
196
|
+
//change pending valid should be in last to solve the vegaValidate event emit issue
|
|
197
|
+
observer.ChangeManager.notify(observer.FORM_FIELD_PENDING_VALID_CHANGE, {
|
|
198
|
+
host: this.hostElement,
|
|
199
|
+
detail: isValid,
|
|
200
|
+
});
|
|
201
|
+
return isValid;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* The function returns an array of validation rules that can be evaluated based on the input, current status, and any changed status.
|
|
205
|
+
*
|
|
206
|
+
* @param {unknown} input - The input parameter represents the value that needs to be validated against the validation rules. It is of type T, which means it can be any data type.
|
|
207
|
+
* @param {(keyof FormFieldStatusMeta)[]} statusChanged - The `statusChanged` parameter is an array of
|
|
208
|
+
* keys from the `FormFieldStatusMeta` object. It represents the fields whose status has changed.
|
|
209
|
+
* @returns {FormFieldValidationRule<unknown>[]} an array of `FormFieldValidationRule<T>` objects.
|
|
210
|
+
*/
|
|
211
|
+
getAllCanEvaluateRules(input, statusChanged) {
|
|
212
|
+
const status = this.getStatus();
|
|
213
|
+
return this.getRules().filter((rule) => rule.canEvaluate(input, status, statusChanged));
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* The function checks if there are any async validation rules that need to be evaluated for a given input and list of changed status keys.
|
|
217
|
+
*
|
|
218
|
+
* @param {unknown} input - The `input` parameter is of type `T` and represents the value that needs to be validated. It is the input value for which the validation rules will be evaluated.
|
|
219
|
+
* @param {(keyof FormFieldStatusMeta)[]} statusChanged - statusChanged is an array of keys from the FormFieldStatusMeta interface.
|
|
220
|
+
*/
|
|
221
|
+
checkIncludesAsyncRules(input, statusChanged) {
|
|
222
|
+
const canEvaluateRules = this.getAllCanEvaluateRules(input, statusChanged);
|
|
223
|
+
const hasAsyncRule = canEvaluateRules.find((rule) => misc.isAsyncFunction(rule.evaluate));
|
|
224
|
+
if (hasAsyncRule) {
|
|
225
|
+
observer.ChangeManager.notify(observer.FORM_FIELD_PENDING_VALID_CHANGE, { host: this.hostElement, detail: null });
|
|
226
|
+
}
|
|
227
|
+
}
|
|
176
228
|
/**
|
|
177
229
|
* Get the input element container
|
|
178
230
|
*
|
|
@@ -231,7 +283,7 @@ class FormFieldController {
|
|
|
231
283
|
const prevIsTouched = this.isTouched;
|
|
232
284
|
this.isTouched = touched;
|
|
233
285
|
if (this.isAutoValidationEnabled()) {
|
|
234
|
-
this.valid(prevIsTouched === touched ? [] : ['touched']);
|
|
286
|
+
void this.valid(prevIsTouched === touched ? [] : ['touched']);
|
|
235
287
|
}
|
|
236
288
|
}
|
|
237
289
|
/**
|
|
@@ -243,7 +295,7 @@ class FormFieldController {
|
|
|
243
295
|
const prevIsModified = this.isModified;
|
|
244
296
|
this.isModified = modified;
|
|
245
297
|
if (this.isAutoValidationEnabled()) {
|
|
246
|
-
this.valid(prevIsModified === modified ? [] : ['modified']);
|
|
298
|
+
void this.valid(prevIsModified === modified ? [] : ['modified']);
|
|
247
299
|
}
|
|
248
300
|
}
|
|
249
301
|
/**
|
|
@@ -253,7 +305,7 @@ class FormFieldController {
|
|
|
253
305
|
initDisabledAttrObserver() {
|
|
254
306
|
this.disabledAttrObserver = new MutationObserver(() => {
|
|
255
307
|
if (this.isAutoValidationEnabled()) {
|
|
256
|
-
this.valid(['disabled']);
|
|
308
|
+
void this.valid(['disabled']);
|
|
257
309
|
}
|
|
258
310
|
});
|
|
259
311
|
this.disabledAttrObserver.observe(this.hostElement, {
|
|
@@ -413,7 +465,7 @@ function InjectFormFieldController(option) {
|
|
|
413
465
|
const { componentWillLoad, componentDidLoad, disconnectedCallback, connectedCallback, } = componentClass;
|
|
414
466
|
/* eslint-disable jsdoc/require-jsdoc */
|
|
415
467
|
const setInjectFormFieldHelper = (componentInstance) => {
|
|
416
|
-
const isFeatureEnabled =
|
|
468
|
+
const isFeatureEnabled = featureFlagController.FeatureFlag.isEnabled('VEGA_INJECT_FORM_FIELD_CONTROLLER.ADD_DATA_VEGA_FORM_FILTER');
|
|
417
469
|
if (!isFeatureEnabled ||
|
|
418
470
|
(isFeatureEnabled && InjectFormFieldHelper.isValidFormField(componentInstance.host))) {
|
|
419
471
|
componentInstance.injectFormFieldHelper = new InjectFormFieldHelper(componentInstance, validatorPropertyName, option);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const ui = require('./ui-
|
|
3
|
+
const ui = require('./ui-824caf47.js');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* It listens to the keyup event on the window and calls the appropriate method on the registered elements
|
|
@@ -116,3 +116,4 @@ function InjectKeyboardManager(listenersRetriever) {
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
exports.InjectKeyboardManager = InjectKeyboardManager;
|
|
119
|
+
exports.KeyboardManager = KeyboardManager$1;
|
|
@@ -3462,7 +3462,7 @@ class SVGRenderer extends BaseRenderer {
|
|
|
3462
3462
|
* @param {string} textStyle - The text style of the axis
|
|
3463
3463
|
*/
|
|
3464
3464
|
drawXAxis(extend, color, textStyle) {
|
|
3465
|
-
const { scale, end, labelFormatter } = extend;
|
|
3465
|
+
const { scale, end, labelFormatter, direction, height } = extend;
|
|
3466
3466
|
let axis = axisBottom(scale);
|
|
3467
3467
|
if (labelFormatter) {
|
|
3468
3468
|
axis = axis.tickFormat(labelFormatter);
|
|
@@ -3479,6 +3479,12 @@ class SVGRenderer extends BaseRenderer {
|
|
|
3479
3479
|
.call((g) => {
|
|
3480
3480
|
g.selectAll('line').attr('stroke', color);
|
|
3481
3481
|
g.selectAll('text').attr('style', textStyle);
|
|
3482
|
+
})
|
|
3483
|
+
.call((g) => {
|
|
3484
|
+
if (direction === 'horizontal') {
|
|
3485
|
+
g.selectAll('line').clone().attr('y2', `${-height}`);
|
|
3486
|
+
g.select('.domain').attr('stroke-width', 0);
|
|
3487
|
+
}
|
|
3482
3488
|
});
|
|
3483
3489
|
}
|
|
3484
3490
|
/**
|
|
@@ -3490,7 +3496,7 @@ class SVGRenderer extends BaseRenderer {
|
|
|
3490
3496
|
* @param {string} textStyle - The text style of the axis
|
|
3491
3497
|
*/
|
|
3492
3498
|
drawYAxis(extend, color, textStyle) {
|
|
3493
|
-
const { scale, labelFormatter, width, tickSize } = extend;
|
|
3499
|
+
const { scale, labelFormatter, width, tickSize, direction } = extend;
|
|
3494
3500
|
let axis = axisLeft(scale).ticks(tickSize);
|
|
3495
3501
|
if (labelFormatter) {
|
|
3496
3502
|
axis = axis.tickFormat(labelFormatter);
|
|
@@ -3508,7 +3514,12 @@ class SVGRenderer extends BaseRenderer {
|
|
|
3508
3514
|
g.selectAll('text').attr('style', textStyle);
|
|
3509
3515
|
})
|
|
3510
3516
|
.call((g) => {
|
|
3511
|
-
|
|
3517
|
+
if (direction !== 'horizontal') {
|
|
3518
|
+
g.selectAll('line').clone().attr('x2', `${width}`);
|
|
3519
|
+
}
|
|
3520
|
+
else {
|
|
3521
|
+
g.select('.domain').attr('stroke-width', 2).attr('stroke', color);
|
|
3522
|
+
}
|
|
3512
3523
|
});
|
|
3513
3524
|
}
|
|
3514
3525
|
/**
|