@globalpayments/vega 2.24.2 → 2.25.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-7e893726.js → app-globals-3b59f0a2.js} +1 -1
- package/dist/cjs/{child-nodes-event-prevent-slimmer-176d59ee.js → child-nodes-event-prevent-slimmer-35bb64e4.js} +1 -1
- package/dist/cjs/{design-token-0d26a52f.js → design-token-2c2cdd7d.js} +1 -1
- package/dist/cjs/{element-appender-slimmer-78fea430.js → element-appender-slimmer-5fa9ff52.js} +1 -1
- package/dist/cjs/{event-emit-slimmer-4fb793e5.js → event-emit-slimmer-373ef08c.js} +1 -1
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/{internal-vega-event-manager-b80fede0.js → internal-vega-event-manager-627b1328.js} +3 -3
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{responsive-format-facade-f7e69718.js → responsive-format-facade-aa849dc7.js} +11 -0
- package/dist/cjs/vega-accordion.cjs.entry.js +5 -5
- package/dist/cjs/vega-app-header-button.cjs.entry.js +6 -6
- package/dist/cjs/vega-banner.cjs.entry.js +3 -3
- package/dist/cjs/vega-box.cjs.entry.js +2 -2
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +4 -4
- package/dist/cjs/vega-button-circle.cjs.entry.js +6 -6
- package/dist/cjs/vega-button-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
- package/dist/cjs/vega-button.cjs.entry.js +5 -5
- package/dist/cjs/vega-calendar_3.cjs.entry.js +4 -4
- package/dist/cjs/vega-card.cjs.entry.js +2 -2
- package/dist/cjs/vega-carousel.cjs.entry.js +4 -4
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-chip.cjs.entry.js +6 -6
- package/dist/cjs/vega-color-picker.cjs.entry.js +3 -3
- package/dist/cjs/vega-combo-box.cjs.entry.js +4 -4
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +8 -10
- package/dist/cjs/vega-dialog_2.cjs.entry.js +10 -8
- package/dist/cjs/vega-divider.cjs.entry.js +2 -2
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +8 -6
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/{vega-event-id-8aa22611.js → vega-event-id-e40ac8f0.js} +2 -0
- package/dist/cjs/vega-field-label.cjs.entry.js +72 -12
- package/dist/cjs/vega-file-uploader.cjs.entry.js +21 -3
- package/dist/cjs/vega-flex.cjs.entry.js +3 -3
- package/dist/cjs/vega-font.cjs.entry.js +2 -2
- package/dist/cjs/vega-form.cjs.entry.js +4 -4
- package/dist/cjs/vega-grid.cjs.entry.js +3 -3
- package/dist/cjs/vega-icon.cjs.entry.js +2 -2
- package/dist/cjs/vega-image-uploader.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +4 -4
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +4 -4
- package/dist/cjs/vega-input-range.cjs.entry.js +4 -4
- package/dist/cjs/vega-input-select.cjs.entry.js +5 -5
- package/dist/cjs/vega-input.cjs.entry.js +25 -5
- package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +5 -5
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination.cjs.entry.js +4 -4
- package/dist/cjs/vega-popover_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-progress-tracker.cjs.entry.js +4 -4
- package/dist/cjs/vega-radio_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-signature-capture.cjs.entry.js +5 -5
- package/dist/cjs/{vega-skeleton-loader-controller-4918bf55.js → vega-skeleton-loader-controller-cb631f0e.js} +1 -1
- package/dist/cjs/vega-stepper.cjs.entry.js +4 -4
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-table_8.cjs.entry.js +5 -5
- package/dist/cjs/vega-textarea.cjs.entry.js +4 -4
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +149 -9
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +2 -2
- package/dist/cjs/vega.cjs.js +5 -5
- package/dist/collection/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.js +1 -1
- package/dist/collection/components/vega-checkbox/vega-checkbox.js +4 -1
- package/dist/collection/components/vega-date-picker/vega-date-picker.js +8 -4
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.js +6 -1
- package/dist/collection/components/vega-field-label/slimmers/renderers/vega-field-label-suffix-element-renderer.js +50 -0
- package/dist/collection/components/vega-field-label/vega-field-label.css +6 -0
- package/dist/collection/components/vega-field-label/vega-field-label.js +83 -6
- package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +96 -15
- package/dist/collection/components/vega-flex/vega-flex.css +672 -0
- package/dist/collection/components/vega-flex/vega-flex.js +1 -1
- package/dist/collection/components/vega-grid/vega-grid.css +672 -0
- package/dist/collection/components/vega-grid/vega-grid.js +1 -1
- package/dist/collection/components/vega-input/vega-input.js +84 -2
- package/dist/collection/components/vega-modal/vega-modal.js +8 -3
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.css +5 -0
- package/dist/collection/components/vega-radio/vega-radio-group/vega-radio-group.js +1 -1
- package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.css +42 -0
- package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.js +189 -6
- package/dist/collection/constants/ui.js +1 -0
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +3 -3
- package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +1 -0
- package/dist/collection/helpers/event-manager/test/component-event-id-map.test.js +7 -2
- package/dist/collection/helpers/event-manager/test/vega-event-manager.test.js +2 -1
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-gap-formatter.js +12 -1
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-gap-formatter.ts.test.js +10 -0
- package/dist/collection/helpers/validator/rules/toggle-switch-required-rule.js +60 -0
- package/dist/collection/helpers/validator/test/rules/toggle-switch-required-rule.test.js +72 -0
- package/dist/collection/value-model-adapters/angular-ng-model-accessor-adapter.js +1 -0
- package/dist/collection/value-model-adapters/vue-component-v-model-adaptor.js +1 -0
- package/dist/esm/{app-globals-1d66ee80.js → app-globals-60d012d3.js} +1 -1
- package/dist/esm/{child-nodes-event-prevent-slimmer-d2435342.js → child-nodes-event-prevent-slimmer-501cdd87.js} +1 -1
- package/dist/esm/{design-token-abcaac42.js → design-token-8a6b46ba.js} +1 -1
- package/dist/esm/{element-appender-slimmer-f740e51a.js → element-appender-slimmer-7721c206.js} +1 -1
- package/dist/esm/{event-emit-slimmer-79be1c60.js → event-emit-slimmer-570444e7.js} +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/{internal-vega-event-manager-c17ae641.js → internal-vega-event-manager-722461c1.js} +3 -3
- package/dist/esm/loader.js +5 -5
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{responsive-format-facade-2fcb7c02.js → responsive-format-facade-e86c7fbb.js} +11 -0
- package/dist/esm/vega-accordion.entry.js +5 -5
- package/dist/esm/vega-app-header-button.entry.js +6 -6
- package/dist/esm/vega-banner.entry.js +3 -3
- package/dist/esm/vega-box.entry.js +2 -2
- package/dist/esm/vega-breadcrumb.entry.js +4 -4
- package/dist/esm/vega-button-circle.entry.js +6 -6
- package/dist/esm/vega-button-group_2.entry.js +4 -4
- package/dist/esm/vega-button-link.entry.js +4 -4
- package/dist/esm/vega-button.entry.js +5 -5
- package/dist/esm/vega-calendar_3.entry.js +4 -4
- package/dist/esm/vega-card.entry.js +2 -2
- package/dist/esm/vega-carousel.entry.js +4 -4
- package/dist/esm/vega-checkbox_2.entry.js +4 -4
- package/dist/esm/vega-chip.entry.js +6 -6
- package/dist/esm/vega-color-picker.entry.js +3 -3
- package/dist/esm/vega-combo-box.entry.js +4 -4
- package/dist/esm/vega-date-picker_2.entry.js +8 -10
- package/dist/esm/vega-dialog_2.entry.js +10 -8
- package/dist/esm/vega-divider.entry.js +2 -2
- package/dist/esm/vega-dropdown_5.entry.js +8 -6
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/{vega-event-id-728eb2ac.js → vega-event-id-7465a011.js} +2 -1
- package/dist/esm/vega-field-label.entry.js +74 -14
- package/dist/esm/vega-file-uploader.entry.js +21 -3
- package/dist/esm/vega-flex.entry.js +3 -3
- package/dist/esm/vega-font.entry.js +2 -2
- package/dist/esm/vega-form.entry.js +4 -4
- package/dist/esm/vega-grid.entry.js +3 -3
- package/dist/esm/vega-icon.entry.js +2 -2
- package/dist/esm/vega-image-uploader.entry.js +5 -5
- package/dist/esm/vega-input-credit-card.entry.js +4 -4
- package/dist/esm/vega-input-phone-number.entry.js +4 -4
- package/dist/esm/vega-input-range.entry.js +4 -4
- package/dist/esm/vega-input-select.entry.js +5 -5
- package/dist/esm/vega-input.entry.js +25 -5
- package/dist/esm/vega-item-toggle.entry.js +3 -3
- package/dist/esm/vega-left-nav_5.entry.js +5 -5
- package/dist/esm/vega-loader-wrapper_2.entry.js +1 -1
- package/dist/esm/vega-page-notification_2.entry.js +1 -1
- package/dist/esm/vega-pagination.entry.js +4 -4
- package/dist/esm/vega-popover_2.entry.js +5 -5
- package/dist/esm/vega-progress-tracker.entry.js +4 -4
- package/dist/esm/vega-radio_2.entry.js +4 -4
- package/dist/esm/vega-segment-control.entry.js +3 -3
- package/dist/esm/vega-selection-chip_2.entry.js +5 -5
- package/dist/esm/vega-selection-tile_2.entry.js +4 -4
- package/dist/esm/vega-signature-capture.entry.js +5 -5
- package/dist/esm/{vega-skeleton-loader-controller-987192a1.js → vega-skeleton-loader-controller-0e2856d6.js} +1 -1
- package/dist/esm/vega-stepper.entry.js +4 -4
- package/dist/esm/vega-tab-group_2.entry.js +4 -4
- package/dist/esm/vega-table_8.entry.js +5 -5
- package/dist/esm/vega-textarea.entry.js +4 -4
- package/dist/esm/vega-time-picker_2.entry.js +6 -6
- package/dist/esm/vega-toggle-switch.entry.js +149 -9
- package/dist/esm/vega-tooltip_2.entry.js +2 -2
- package/dist/esm/vega.js +5 -5
- package/dist/types/components/vega-app-footer/types.d.ts +7 -0
- package/dist/types/components/vega-app-header-button/types.d.ts +27 -0
- package/dist/types/components/vega-banner/types.d.ts +11 -0
- package/dist/types/components/vega-breadcrumb/types.d.ts +11 -0
- package/dist/types/components/vega-button/types.d.ts +4 -0
- package/dist/types/components/vega-button-circle/types.d.ts +9 -0
- package/dist/types/components/vega-button-group/types.d.ts +21 -0
- package/dist/types/components/vega-calendar/types.d.ts +80 -0
- package/dist/types/components/vega-chart/vega-bar-chart/types.d.ts +4 -0
- package/dist/types/components/vega-checkbox/vega-checkbox.d.ts +2 -0
- package/dist/types/components/vega-chip/types.d.ts +4 -0
- package/dist/types/components/vega-combo-box/types.d.ts +9 -0
- package/dist/types/components/vega-date-picker/types.d.ts +10 -0
- package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +2 -0
- package/dist/types/components/vega-dialog/types.d.ts +14 -0
- package/dist/types/components/vega-dropdown/types.d.ts +21 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/types.d.ts +1 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.d.ts +2 -0
- package/dist/types/components/vega-field-error/types.d.ts +4 -0
- package/dist/types/components/vega-field-label/slimmers/renderers/vega-field-label-suffix-element-renderer.d.ts +27 -0
- package/dist/types/components/vega-field-label/types.d.ts +5 -0
- package/dist/types/components/vega-field-label/vega-field-label.d.ts +26 -3
- package/dist/types/components/vega-file-uploader/types.d.ts +15 -0
- package/dist/types/components/vega-file-uploader/vega-file-uploader.d.ts +38 -0
- package/dist/types/components/vega-font/types.d.ts +18 -0
- package/dist/types/components/vega-form/types.d.ts +9 -0
- package/dist/types/components/vega-image-uploader/types.d.ts +21 -0
- package/dist/types/components/vega-input/types.d.ts +12 -0
- package/dist/types/components/vega-input/vega-input.d.ts +25 -0
- package/dist/types/components/vega-input-phone-number/types.d.ts +13 -0
- package/dist/types/components/vega-input-range/types.d.ts +5 -0
- package/dist/types/components/vega-input-select/types.d.ts +35 -0
- package/dist/types/components/vega-item-toggle/types.d.ts +8 -0
- package/dist/types/components/vega-loading-indicator/types.d.ts +1 -0
- package/dist/types/components/vega-modal/types.d.ts +2 -0
- package/dist/types/components/vega-modal/vega-modal.d.ts +2 -0
- package/dist/types/components/vega-page-notification/types.d.ts +10 -0
- package/dist/types/components/vega-pagination/types.d.ts +1 -0
- package/dist/types/components/vega-segment-control/types.d.ts +8 -0
- package/dist/types/components/vega-signature-capture/types.d.ts +5 -0
- package/dist/types/components/vega-skeleton/interface.d.ts +5 -0
- package/dist/types/components/vega-tab-group/types.d.ts +12 -0
- package/dist/types/components/vega-table/vega-table-expand-row/types.d.ts +3 -0
- package/dist/types/components/vega-table/vega-table-head/types.d.ts +4 -0
- package/dist/types/components/vega-table/vega-table-head-row/types.d.ts +5 -0
- package/dist/types/components/vega-table/vega-table-row/types.d.ts +7 -0
- package/dist/types/components/vega-text/types.d.ts +3 -0
- package/dist/types/components/vega-time-picker/types.d.ts +21 -0
- package/dist/types/components/vega-toggle-switch/vega-toggle-switch.d.ts +42 -1
- package/dist/types/components/vega-virtual-scroll/types.d.ts +14 -0
- package/dist/types/components.d.ts +131 -2
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +1 -0
- package/dist/types/helpers/feature-control/feature-flag.d.ts +52 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-formatter.d.ts +5 -0
- package/dist/types/helpers/formatter/state-formatter/state-formatter.d.ts +3 -0
- package/dist/types/helpers/formatter/string-formatter/string-format-strategy.d.ts +12 -0
- package/dist/types/helpers/icon/interface.d.ts +10 -0
- package/dist/types/helpers/immutable/immutable.d.ts +3 -0
- package/dist/types/helpers/loading-indicator/vega-loader.d.ts +17 -0
- package/dist/types/helpers/notify/vega-notify.d.ts +13 -0
- package/dist/types/helpers/queue/queue.d.ts +4 -0
- package/dist/types/helpers/skeleton-loader/interface.d.ts +16 -0
- package/dist/types/helpers/slimmers/field-error-ui-controller-strategies/field-error-ui-controller-strategy.d.ts +6 -0
- package/dist/types/helpers/slimmers/types.d.ts +5 -0
- package/dist/types/helpers/theme/theme.d.ts +18 -0
- package/dist/types/helpers/validator/form-validator.d.ts +8 -0
- package/dist/types/helpers/validator/rules/form-field-validation-rule.d.ts +28 -0
- package/dist/types/helpers/validator/rules/toggle-switch-required-rule.d.ts +38 -0
- package/dist/types/helpers/validator/rules/validation-rule.d.ts +9 -0
- package/dist/types/helpers/validator/test/rules/toggle-switch-required-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/validator.d.ts +8 -0
- package/dist/types/types/components.type.d.ts +191 -0
- package/dist/types/types/general.d.ts +7 -0
- package/dist/types/types/test-polyfill.d.ts +8 -0
- package/dist/types/types/ui.type.d.ts +1 -1
- package/dist/types/types/vega-chart.d.ts +149 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-48b318c4.entry.js → p-00032fc8.entry.js} +1 -1
- package/dist/vega/{p-0e12b007.entry.js → p-08de0741.entry.js} +1 -1
- package/dist/vega/{p-b9f4d417.entry.js → p-1c0b5d3c.entry.js} +1 -1
- package/dist/vega/{p-11cbdade.js → p-28cc7bee.js} +1 -1
- package/dist/vega/{p-62ad9511.entry.js → p-2eca4f00.entry.js} +1 -1
- package/dist/vega/{p-b01349b0.entry.js → p-36677b40.entry.js} +1 -1
- package/dist/vega/{p-dccbe7ee.entry.js → p-39b01e93.entry.js} +1 -1
- package/dist/vega/p-3f5e44c1.js +1 -0
- package/dist/vega/{p-09862473.entry.js → p-42336502.entry.js} +1 -1
- package/dist/vega/{p-da8c63dd.entry.js → p-4b265574.entry.js} +1 -1
- package/dist/vega/{p-7b2e4c94.entry.js → p-537cddd9.entry.js} +1 -1
- package/dist/vega/{p-494bd912.js → p-53f3422c.js} +1 -1
- package/dist/vega/{p-f2314882.entry.js → p-58695ba6.entry.js} +1 -1
- package/dist/vega/{p-dc24a556.entry.js → p-5d95fe68.entry.js} +1 -1
- package/dist/vega/{p-816c0ad9.entry.js → p-5dc15674.entry.js} +1 -1
- package/dist/vega/{p-be48508c.js → p-5e5eaa7f.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-2b0642dc.entry.js → p-5fd0b142.entry.js} +1 -1
- package/dist/vega/{p-684579b7.entry.js → p-63cfde13.entry.js} +1 -1
- package/dist/vega/{p-9895c8b9.entry.js → p-6fb627be.entry.js} +1 -1
- package/dist/vega/{p-9ddae0f5.entry.js → p-79ae5a62.entry.js} +1 -1
- package/dist/vega/{p-2757e8c3.entry.js → p-7a6a1e1a.entry.js} +1 -1
- package/dist/vega/{p-18e84cc3.entry.js → p-7ac519b3.entry.js} +1 -1
- package/dist/vega/{p-a36db525.entry.js → p-7d799f45.entry.js} +1 -1
- package/dist/vega/{p-b2bea27b.entry.js → p-7eb8dc47.entry.js} +1 -1
- package/dist/vega/{p-bef39231.entry.js → p-85e2e80e.entry.js} +1 -1
- package/dist/vega/{p-ae89862d.entry.js → p-86b2a45c.entry.js} +1 -1
- package/dist/vega/{p-f491581d.entry.js → p-8a4e70f0.entry.js} +1 -1
- package/dist/vega/{p-00cc05ea.js → p-8a9763c3.js} +1 -1
- package/dist/vega/{p-5f2b7ccb.entry.js → p-8aeb590b.entry.js} +1 -1
- package/dist/vega/p-8cc3e459.entry.js +1 -0
- package/dist/vega/{p-805f70d5.entry.js → p-8dc7c7df.entry.js} +1 -1
- package/dist/vega/{p-025ccc18.js → p-957e2de2.js} +1 -1
- package/dist/vega/{p-b765896d.entry.js → p-96c85687.entry.js} +1 -1
- package/dist/vega/{p-d81f7db0.entry.js → p-98316ca2.entry.js} +1 -1
- package/dist/vega/p-9e3ab8e7.entry.js +1 -0
- package/dist/vega/p-a2cd37ff.entry.js +1 -0
- package/dist/vega/{p-981339b3.entry.js → p-a4d790a4.entry.js} +1 -1
- package/dist/vega/{p-17aa1539.entry.js → p-aa1f3d4a.entry.js} +1 -1
- package/dist/vega/{p-aa39873f.entry.js → p-ae2dc0f5.entry.js} +1 -1
- package/dist/vega/p-b26ab257.js +1 -0
- package/dist/vega/{p-73acb4f7.entry.js → p-bb3d0cb0.entry.js} +1 -1
- package/dist/vega/{p-7a97295d.entry.js → p-c1efcb1b.entry.js} +1 -1
- package/dist/vega/{p-d417d6a6.entry.js → p-c2d90944.entry.js} +1 -1
- package/dist/vega/p-c322de6b.entry.js +1 -0
- package/dist/vega/{p-133cbd05.entry.js → p-c46936bb.entry.js} +1 -1
- package/dist/vega/{p-8c9a009c.entry.js → p-c6970833.entry.js} +1 -1
- package/dist/vega/{p-26a7a6ff.entry.js → p-c760c18c.entry.js} +1 -1
- package/dist/vega/{p-b554d6d9.entry.js → p-c87fcf6b.entry.js} +1 -1
- package/dist/vega/{p-bd770a17.entry.js → p-ca495368.entry.js} +1 -1
- package/dist/vega/p-cd15df91.entry.js +1 -0
- package/dist/vega/{p-4826059c.js → p-cd7cab0b.js} +1 -1
- package/dist/vega/{p-781dfe17.entry.js → p-d298ec76.entry.js} +1 -1
- package/dist/vega/{p-a163bbf2.entry.js → p-d5e184af.entry.js} +1 -1
- package/dist/vega/p-ddacf9d1.entry.js +1 -0
- package/dist/vega/{p-8fc66414.entry.js → p-df7d1a81.entry.js} +1 -1
- package/dist/vega/p-ead1a647.js +1 -0
- package/dist/vega/{p-cf236fb0.entry.js → p-ebd20177.entry.js} +1 -1
- package/dist/vega/{p-b52802b5.entry.js → p-f25fcf95.entry.js} +1 -1
- package/dist/vega/{p-96f5f322.entry.js → p-f35229a6.entry.js} +1 -1
- package/dist/vega/{p-83a78d32.entry.js → p-fa0c285b.entry.js} +1 -1
- package/dist/vega/{p-5ceda06c.entry.js → p-fb5688a8.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +2 -2
- package/dist/vega/p-25fa235b.entry.js +0 -1
- package/dist/vega/p-76f6f704.entry.js +0 -1
- package/dist/vega/p-8200752c.entry.js +0 -1
- package/dist/vega/p-ae3f8fe2.js +0 -1
- package/dist/vega/p-b36887f9.js +0 -1
- package/dist/vega/p-c31462a3.entry.js +0 -1
- package/dist/vega/p-d1093d69.entry.js +0 -1
- package/dist/vega/p-d97770c0.js +0 -1
- package/dist/vega/p-fb0c4f80.entry.js +0 -1
- package/style/vega_min.css +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Nullable } from '../../../types/general';
|
|
2
|
+
|
|
3
|
+
export type InputStatus = {
|
|
4
|
+
isBlurred: boolean;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export interface StringFormatStrategy {
|
|
8
|
+
format(input: string, caretPosition?: Nullable<number>, inputStatus?: InputStatus): string;
|
|
9
|
+
calculateCaretPosition?: (input: string, caretPosition: Nullable<number>) => Nullable<number>;
|
|
10
|
+
shouldOverrideComponentValueAfterBlur?: () => boolean;
|
|
11
|
+
shouldTriggerAtInit?: () => boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ResponsiveType } from '../../types/ui.type';
|
|
2
|
+
import { VegaLoadingIndicatorSize } from '../../components/vega-loading-indicator/types';
|
|
3
|
+
|
|
4
|
+
export type VegaLoaderIndicatorOptions = {
|
|
5
|
+
shape?: 'circle' | 'bar';
|
|
6
|
+
size?: ResponsiveType<VegaLoadingIndicatorSize>;
|
|
7
|
+
mode?: 'indeterminate' | 'determinate';
|
|
8
|
+
percent?: number;
|
|
9
|
+
label?: string;
|
|
10
|
+
hint?: string;
|
|
11
|
+
status?: 'default' | 'success' | 'error';
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type VegaLoaderOptions = {
|
|
15
|
+
containerSelector?: string;
|
|
16
|
+
indicatorOptions?: VegaLoaderIndicatorOptions;
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
VegaPageNotificationActionButtonConfig,
|
|
3
|
+
VegaPageNotificationTypes,
|
|
4
|
+
} from '../../components/vega-page-notification/types';
|
|
5
|
+
|
|
6
|
+
export type VegaNotifyOption = {
|
|
7
|
+
title?: string;
|
|
8
|
+
message: string;
|
|
9
|
+
type?: VegaPageNotificationTypes;
|
|
10
|
+
duration?: number;
|
|
11
|
+
showCloseButton?: boolean;
|
|
12
|
+
actionButtons?: VegaPageNotificationActionButtonConfig[];
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VegaComponentInterface } from '../../types/ui.type';
|
|
2
|
+
|
|
3
|
+
export type VegaSkeletonLoaderItem = Partial<
|
|
4
|
+
Pick<VegaComponentInterface<HTMLVegaSkeletonElement>, 'type' | 'width' | 'height'>
|
|
5
|
+
>;
|
|
6
|
+
|
|
7
|
+
export type VegaSkeletonLoaderLayout = {
|
|
8
|
+
props?: Partial<VegaComponentInterface<HTMLVegaFlexElement>>;
|
|
9
|
+
style?: Partial<CSSStyleDeclaration>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type VegaSkeletonLoaderConfig = {
|
|
13
|
+
target: string;
|
|
14
|
+
items?: VegaSkeletonLoaderItem[];
|
|
15
|
+
layout?: VegaSkeletonLoaderLayout;
|
|
16
|
+
} & VegaSkeletonLoaderItem;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Nullable } from '../../types/general';
|
|
2
|
+
|
|
3
|
+
type OverrideRgbaValue = {
|
|
4
|
+
r: number;
|
|
5
|
+
g: number;
|
|
6
|
+
b: number;
|
|
7
|
+
a: number;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type VegaThemeOverrideColors = {
|
|
11
|
+
actionColor?: string;
|
|
12
|
+
sidebarColor?: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type OverrideColor = {
|
|
16
|
+
name: string;
|
|
17
|
+
value: Nullable<string>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormFieldValidationRule } from './rules/form-field-validation-rule';
|
|
2
|
+
|
|
3
|
+
export interface FormValidator<T> {
|
|
4
|
+
setDefaultRules(rules: FormFieldValidationRule<T>[]): void;
|
|
5
|
+
getRules(): FormFieldValidationRule<T>[];
|
|
6
|
+
setAdditionalRules(rules: FormFieldValidationRule<T>[]): void;
|
|
7
|
+
validate(status: FormFieldStatusMeta, triggerStatus: (keyof FormFieldStatusMeta)[]): boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Primitive } from '../../../types/general';
|
|
2
|
+
import { ValidationRule } from './validation-rule';
|
|
3
|
+
import { VegaFile } from '../../../components/vega-image-uploader/types';
|
|
4
|
+
import { VegaSignatureValue } from '../../../components/vega-signature-capture/types';
|
|
5
|
+
import { VegaFileUploaderFile } from '../../../components/vega-file-uploader/types';
|
|
6
|
+
|
|
7
|
+
export type EvaluateResult = {
|
|
8
|
+
isValid: boolean;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type FormFieldStatusMeta = {
|
|
13
|
+
touched: boolean;
|
|
14
|
+
modified: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
visible: boolean;
|
|
17
|
+
};
|
|
18
|
+
export interface FormFieldValidationRule<T> extends ValidationRule<T> {
|
|
19
|
+
canEvaluate(
|
|
20
|
+
input: unknown,
|
|
21
|
+
status?: FormFieldStatusMeta,
|
|
22
|
+
statusChanged?: (keyof FormFieldStatusMeta)[],
|
|
23
|
+
): boolean;
|
|
24
|
+
shouldShowError?(status?: FormFieldStatusMeta, statusChanged?: (keyof FormFieldStatusMeta)[]): boolean;
|
|
25
|
+
evaluate(input: T): EvaluateResult | Promise<EvaluateResult>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type FormFieldValueType = Primitive | VegaFile | VegaSignatureValue | VegaFileUploaderFile;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EvaluateResult, FormFieldStatusMeta, FormFieldValidationRule } from './form-field-validation-rule';
|
|
2
|
+
/**
|
|
3
|
+
* A rule that checks if toggle switch is required to switch on
|
|
4
|
+
*
|
|
5
|
+
* @implements {FormFieldValidationRule<boolean>}
|
|
6
|
+
*/
|
|
7
|
+
export declare class ToggleSwitchRequiredRule implements FormFieldValidationRule<boolean> {
|
|
8
|
+
/**
|
|
9
|
+
* If the input is a boolean, return a boolean. If the
|
|
10
|
+
* input is anything else, return false
|
|
11
|
+
*
|
|
12
|
+
* @param {unknown} input - The input to be evaluated.
|
|
13
|
+
* @returns {EvaluateResult} - An object with two properties: isValid and message.
|
|
14
|
+
*/
|
|
15
|
+
evaluate(input: unknown): EvaluateResult;
|
|
16
|
+
/**
|
|
17
|
+
* If the input is accepted and the status is not disabled and visible, then return true
|
|
18
|
+
*
|
|
19
|
+
* @param {unknown} input - The input to be evaluated.
|
|
20
|
+
* @param {FormFieldStatusMeta} [status] - FormFieldStatusMeta
|
|
21
|
+
* @returns {boolean} The return value is a boolean that indicates whether the input can be evaluated.
|
|
22
|
+
*/
|
|
23
|
+
canEvaluate(input: unknown, status?: FormFieldStatusMeta): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* If the field is not disabled, visible, and has been touched or modified, then show the error
|
|
26
|
+
*
|
|
27
|
+
* @param {FormFieldStatusMeta} status - FormFieldStatusMeta
|
|
28
|
+
* @returns {boolean} A boolean value.
|
|
29
|
+
*/
|
|
30
|
+
shouldShowError(status: FormFieldStatusMeta): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* If the input is undefined or null, return true, otherwise return true if the input is a boolean.
|
|
33
|
+
*
|
|
34
|
+
* @param {unknown} input - The input value to be validated.
|
|
35
|
+
* @returns {boolean} A boolean.
|
|
36
|
+
*/
|
|
37
|
+
private isAcceptedInputType;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ValidationRule } from './rules/validation-rule';
|
|
2
|
+
|
|
3
|
+
export interface Validator<T> {
|
|
4
|
+
setDefaultRules(rules: ValidationRule<T>[]): void;
|
|
5
|
+
getRules(): ValidationRule<T>[];
|
|
6
|
+
setAdditionalRules(rules: ValidationRule<T>[]): void;
|
|
7
|
+
validate(): boolean | Promise<boolean>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is generated by Vega to export all component public types.
|
|
3
|
+
* Stencil will export component public types when we upgrade >= @stencil/core: 3.0.0.
|
|
4
|
+
*
|
|
5
|
+
* Link https://github.com/ionic-team/stencil/pull/3710/files#diff-6d39068d58e561ccab3d0a266c838b1c1287fad54ef292183cc0f1871adde751R117-R118
|
|
6
|
+
*/
|
|
7
|
+
export {
|
|
8
|
+
BorderStyleType,
|
|
9
|
+
BoxDisplayType,
|
|
10
|
+
CornersType,
|
|
11
|
+
CssStatesType,
|
|
12
|
+
ElementAppenderAlignmentType,
|
|
13
|
+
ElementAppenderPlacementType,
|
|
14
|
+
FlexAlignItemType,
|
|
15
|
+
FlexDirectionType,
|
|
16
|
+
FlexJustifyContentType,
|
|
17
|
+
FlexWrapType,
|
|
18
|
+
GapType,
|
|
19
|
+
GridColumnsType,
|
|
20
|
+
GridRowsType,
|
|
21
|
+
HeightType,
|
|
22
|
+
IconAlignType,
|
|
23
|
+
MarginType,
|
|
24
|
+
MaxHeightType,
|
|
25
|
+
MinHeightType,
|
|
26
|
+
PaddingType,
|
|
27
|
+
PlacementType,
|
|
28
|
+
PositionAlignmentType,
|
|
29
|
+
ResponsiveType,
|
|
30
|
+
SizeType,
|
|
31
|
+
StateVariantType,
|
|
32
|
+
TextAlignType,
|
|
33
|
+
TranslocationType,
|
|
34
|
+
VegaComponentInterface,
|
|
35
|
+
VegaFlexProps,
|
|
36
|
+
WidthType,
|
|
37
|
+
} from '../types/ui.type';
|
|
38
|
+
export { LinkTargetType, VegaAppFooterLink } from '../components/vega-app-footer/types';
|
|
39
|
+
export {
|
|
40
|
+
VegaAppHeaderAvatarConfig,
|
|
41
|
+
VegaAppHeaderButtonDropdownConfig,
|
|
42
|
+
VegaAppHeaderButtonSize,
|
|
43
|
+
} from '../components/vega-app-header-button/types';
|
|
44
|
+
export { VegaBannerActionButtonType, VegaBannerPropType } from '../components/vega-banner/types';
|
|
45
|
+
export { VegaBarChartOptionsType } from '../components/vega-chart/vega-bar-chart/types';
|
|
46
|
+
export {
|
|
47
|
+
BackgroundColorsTokenType,
|
|
48
|
+
BorderColorsTokenType,
|
|
49
|
+
BordersTokenType,
|
|
50
|
+
BreakpointsTokenType,
|
|
51
|
+
ShadowsTokenType,
|
|
52
|
+
SpacingTokenType,
|
|
53
|
+
TextColorsTokenType,
|
|
54
|
+
TypographyTokenType,
|
|
55
|
+
} from '../types/design-token.type';
|
|
56
|
+
export {
|
|
57
|
+
AlignSelfType,
|
|
58
|
+
FlexBasisType,
|
|
59
|
+
FlexGrowType,
|
|
60
|
+
FlexShrinkType,
|
|
61
|
+
FlexType,
|
|
62
|
+
GridAreaType,
|
|
63
|
+
GridColumnType,
|
|
64
|
+
GridRowType,
|
|
65
|
+
JustifySelfType,
|
|
66
|
+
OrderType,
|
|
67
|
+
} from '../components/vega-box/interface';
|
|
68
|
+
export {
|
|
69
|
+
VegaBreadcrumbCollapsedThresholdType,
|
|
70
|
+
VegaBreadcrumbItemType,
|
|
71
|
+
} from '../components/vega-breadcrumb/types';
|
|
72
|
+
export {
|
|
73
|
+
VegaButtonIconAlign,
|
|
74
|
+
VegaButtonSize,
|
|
75
|
+
VegaButtonType,
|
|
76
|
+
VegaButtonVariant,
|
|
77
|
+
} from '../components/vega-button/types';
|
|
78
|
+
export {
|
|
79
|
+
VegaButtonCircleSize,
|
|
80
|
+
VegaButtonCircleTooltip,
|
|
81
|
+
VegaButtonCircleVariant,
|
|
82
|
+
} from '../components/vega-button-circle/types';
|
|
83
|
+
export {
|
|
84
|
+
DropdownPropsForButtonGroup,
|
|
85
|
+
VegaButtonGroupIconAlign,
|
|
86
|
+
VegaButtonGroupSize,
|
|
87
|
+
VegaButtonGroupVariant,
|
|
88
|
+
} from '../components/vega-button-group/types';
|
|
89
|
+
export {
|
|
90
|
+
DropdownSourceGroup,
|
|
91
|
+
DropdownSourceItem,
|
|
92
|
+
VegaDropdownSourceItem,
|
|
93
|
+
} from '../components/vega-dropdown/types';
|
|
94
|
+
export {
|
|
95
|
+
DropdownPropsForCalendar,
|
|
96
|
+
VegaCalendarChangeEventType,
|
|
97
|
+
VegaCalendarDateClickInfo,
|
|
98
|
+
VegaCalendarEventClickInfo,
|
|
99
|
+
VegaCalendarRawEvent,
|
|
100
|
+
VegaCalendarViewModeType,
|
|
101
|
+
} from '../components/vega-calendar/types';
|
|
102
|
+
export { Nullable, TimeFormat } from '../types/general';
|
|
103
|
+
export { CalendarEvent } from '../helpers/calendar/calendar-event';
|
|
104
|
+
export { FormFieldValidationRule } from '../helpers/validator/rules/form-field-validation-rule';
|
|
105
|
+
export {
|
|
106
|
+
VegaChipIconAlign,
|
|
107
|
+
VegaChipSize,
|
|
108
|
+
VegaChipType,
|
|
109
|
+
VegaChipVariant,
|
|
110
|
+
} from '../components/vega-chip/types';
|
|
111
|
+
export { VegaComboBoxSize, VegaDropdownPropsForComboBox } from '../components/vega-combo-box/types';
|
|
112
|
+
export {
|
|
113
|
+
DatePickerModeType,
|
|
114
|
+
DatePickerValueType,
|
|
115
|
+
DropdownConfigForDatePicker,
|
|
116
|
+
} from '../components/vega-date-picker/types';
|
|
117
|
+
export { VegaDialogAction, VegaDialogActionButtonProps } from '../components/vega-dialog/types';
|
|
118
|
+
export { VegaDividerDirectionType, VegaDividerVariantType } from '../components/vega-divider/interface';
|
|
119
|
+
export { VegaDropdownItemClickEvent } from '../components/vega-dropdown/vega-dropdown-item/types';
|
|
120
|
+
export { LabelSuffixButtonProps } from '../components/vega-field-label/types';
|
|
121
|
+
export {
|
|
122
|
+
VegaFileUploaderFile,
|
|
123
|
+
VegaFileUploaderFiles,
|
|
124
|
+
VegaFileUploaderType,
|
|
125
|
+
} from '../components/vega-file-uploader/types';
|
|
126
|
+
export { VegaFontAs } from '../components/vega-font/types';
|
|
127
|
+
export { FormControlOption, FormValidateResult } from '../components/vega-form/types';
|
|
128
|
+
export { VegaFile, VegaFileOptional, VegaImageUploaderStatus } from '../components/vega-image-uploader/types';
|
|
129
|
+
export { InputValueUpdateTriggeredBy, MaskConfigType } from '../components/vega-input/types';
|
|
130
|
+
export { VegaCountryCode, VegaCountryType } from '../components/vega-input-phone-number/types';
|
|
131
|
+
export { InputRangeStackType, InputRangeValueType } from '../components/vega-input-range/types';
|
|
132
|
+
export {
|
|
133
|
+
SelectedLabelType,
|
|
134
|
+
SelectSourceItem,
|
|
135
|
+
SelectType,
|
|
136
|
+
SelectValueType,
|
|
137
|
+
VegaDropdownPropsForSelect,
|
|
138
|
+
VegaInputSelectSize,
|
|
139
|
+
VegaInputSelectSourceLazyLoadCallback,
|
|
140
|
+
} from '../components/vega-input-select/types';
|
|
141
|
+
export { ItemToggleStatusMap } from '../components/vega-item-toggle/types';
|
|
142
|
+
export {
|
|
143
|
+
LeftNavCounterBadgeConfig,
|
|
144
|
+
LeftNavHeaderConfig,
|
|
145
|
+
LeftNavSectionHeaderConfig,
|
|
146
|
+
LeftNavSourceItem,
|
|
147
|
+
} from '../components/vega-nav/interface';
|
|
148
|
+
export { LineChartOptionsType } from '../helpers/chart/line-chart';
|
|
149
|
+
export { VegaLoadingIndicatorSize } from '../components/vega-loading-indicator/types';
|
|
150
|
+
export { VegaModalBackdrop, VegaModalBackdropColor } from '../components/vega-modal/types';
|
|
151
|
+
export {
|
|
152
|
+
VegaPageNotificationActionButtonConfig,
|
|
153
|
+
VegaPageNotificationTypes,
|
|
154
|
+
} from '../components/vega-page-notification/types';
|
|
155
|
+
export { VegaPaginationItemType } from '../components/vega-pagination/types';
|
|
156
|
+
export { PieChartOptions } from '../helpers/chart/pie-chart';
|
|
157
|
+
export { VegaSegmentControlVariant, VegaSegmentProps } from '../components/vega-segment-control/types';
|
|
158
|
+
export {
|
|
159
|
+
VegaSelectionChipSize,
|
|
160
|
+
VegaSelectionChipTooltipProps,
|
|
161
|
+
VegaSelectionChipVariant,
|
|
162
|
+
} from '../components/vega-selection-chip/interface';
|
|
163
|
+
export { VegaSelectionChipGroupSelectType } from '../components/vega-selection-chip/vega-selection-chip-group/interface';
|
|
164
|
+
export { VegaSignatureCaptureMode, VegaSignatureValue } from '../components/vega-signature-capture/types';
|
|
165
|
+
export { VegaSkeletonType } from '../components/vega-skeleton/interface';
|
|
166
|
+
export { TabConfig, TabGroupVariant } from '../components/vega-tab-group/types';
|
|
167
|
+
export {
|
|
168
|
+
VegaTableChangePropType,
|
|
169
|
+
VegaTableColumnBreakpoint,
|
|
170
|
+
VegaTableColumnConfig,
|
|
171
|
+
VegaTableDataSourceItem,
|
|
172
|
+
VegaTableDensityType,
|
|
173
|
+
VegaTableHeadCellClickEvent,
|
|
174
|
+
VegaTablePagination,
|
|
175
|
+
VegaTableRowClickEvent,
|
|
176
|
+
VegaTableRowClickPropType,
|
|
177
|
+
VegaTableRowExpandEvent,
|
|
178
|
+
VegaTableRowExpandEventDetail,
|
|
179
|
+
VegaTableRowSelectAllEventDetail,
|
|
180
|
+
VegaTableRowSelectEventDetail,
|
|
181
|
+
VegaTableRowSelectionConfig,
|
|
182
|
+
VegaTableRowSelectProp,
|
|
183
|
+
VegaTableScrollConfig,
|
|
184
|
+
VegaTableSelectAllProp,
|
|
185
|
+
VegaTableSortConfig,
|
|
186
|
+
VegaTableSorterConfig,
|
|
187
|
+
VegaTableSortOrderType,
|
|
188
|
+
} from '../components/vega-table/interface';
|
|
189
|
+
export { VegaTextTooltipProps } from '../components/vega-text/types';
|
|
190
|
+
export { TimePickerModeType, TimePickerValueType } from '../components/vega-time-picker/types';
|
|
191
|
+
export { SourceItemType } from '../components/vega-virtual-scroll/types';
|
|
@@ -82,7 +82,7 @@ export declare type ResponsiveResultScope = string | number | TranslocationType;
|
|
|
82
82
|
export declare type PaddingType = DirectionalSpacingType | SpacingTokenType;
|
|
83
83
|
export declare type MarginType = DirectionalSpacingType | SpacingTokenType;
|
|
84
84
|
export declare type CornersType = DirectionalBorderRadiusType | BorderRadiusTokenType;
|
|
85
|
-
export declare type GapType = SpacingTokenType;
|
|
85
|
+
export declare type GapType = Pick<DirectionalSpacingType, 'x' | 'y'> | SpacingTokenType;
|
|
86
86
|
export declare type SizeType = number | `${number}%`;
|
|
87
87
|
export declare type GridColumnsType = typeof GridColumns[number];
|
|
88
88
|
export declare type GridRowsType = typeof GridRows[number];
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { BackgroundColorsTokenType } from './design-token.type';
|
|
2
|
+
import { AxisDomain, AxisScale } from 'd3-axis';
|
|
3
|
+
|
|
4
|
+
export type { AxisDomain, Axis, AxisScale } from 'd3-axis';
|
|
5
|
+
export type { Selection } from 'd3-selection';
|
|
6
|
+
|
|
7
|
+
declare module 'd3-axis' {
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9
|
+
export interface AxisScale<Domain> {
|
|
10
|
+
ticks(num: number): number[];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type ChartGraphMode = 'svg' | 'canvas';
|
|
15
|
+
|
|
16
|
+
export type ChartLayout = {
|
|
17
|
+
width?: number | string;
|
|
18
|
+
height?: number | string;
|
|
19
|
+
margin?: {
|
|
20
|
+
top?: number;
|
|
21
|
+
right?: number;
|
|
22
|
+
bottom?: number;
|
|
23
|
+
left?: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type InteractOption = {
|
|
28
|
+
onMove?: () => void;
|
|
29
|
+
onClick?: () => void;
|
|
30
|
+
onHover?: () => void;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type EventType = 'click' | 'mouseover';
|
|
34
|
+
|
|
35
|
+
export type InteractingEntry = {
|
|
36
|
+
eventType: EventType;
|
|
37
|
+
shouldHandle: (event: Event) => boolean;
|
|
38
|
+
handle: (event: Event) => void;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export type ChartDrawerOptions<T> = {
|
|
42
|
+
renderOptions: T;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export type ChartXAxisType = 'value' | 'time' | 'category';
|
|
46
|
+
|
|
47
|
+
export type LabelFormatterType<T> = (tick: T) => string;
|
|
48
|
+
|
|
49
|
+
export type ChartOptions<T> = {
|
|
50
|
+
container: HTMLElement;
|
|
51
|
+
layout?: ChartLayout;
|
|
52
|
+
mode?: ChartGraphMode;
|
|
53
|
+
colors?: BackgroundColorsTokenType[];
|
|
54
|
+
legends?: string[];
|
|
55
|
+
xAxis?: {
|
|
56
|
+
type?: ChartXAxisType;
|
|
57
|
+
labelFormatter?: LabelFormatterType<number | string | Date>;
|
|
58
|
+
sorter?: (item: string, nextItem: string) => number;
|
|
59
|
+
};
|
|
60
|
+
yAxis?: {
|
|
61
|
+
labelFormatter?: LabelFormatterType<number>;
|
|
62
|
+
};
|
|
63
|
+
} & T;
|
|
64
|
+
|
|
65
|
+
export type ChartExtend<T> = {
|
|
66
|
+
start: ChartPosition;
|
|
67
|
+
end: ChartPosition;
|
|
68
|
+
tickSize: number;
|
|
69
|
+
labelFormatter?: LabelFormatterType<number | string | Date>;
|
|
70
|
+
scale: T;
|
|
71
|
+
width: number;
|
|
72
|
+
height: number;
|
|
73
|
+
direction?: directionType;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export type ChartLineOptions = {
|
|
77
|
+
from: ChartPosition;
|
|
78
|
+
to: ChartPosition;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type ChartRectOptions = {
|
|
82
|
+
dataSource?: unknown[];
|
|
83
|
+
xScale: AxisScale<AxisDomain>;
|
|
84
|
+
yScale: AxisScale<AxisDomain>;
|
|
85
|
+
colors?: BackgroundColorsTokenType[];
|
|
86
|
+
direction?: directionType;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export type ChartLegendOptions = {
|
|
90
|
+
position: ChartPosition;
|
|
91
|
+
legends: {
|
|
92
|
+
field: string;
|
|
93
|
+
color: string;
|
|
94
|
+
icon: string;
|
|
95
|
+
}[];
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export type ChartPathOptions = {
|
|
99
|
+
positions: ChartPosition[] | ChartPosition[][];
|
|
100
|
+
colors?: BackgroundColorsTokenType[];
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export type ChartData<T> = { x: T; y: number };
|
|
104
|
+
|
|
105
|
+
export type StringCategorizedChartData = ChartData<string>;
|
|
106
|
+
|
|
107
|
+
export type DateCategorizedChartData = ChartData<Date>;
|
|
108
|
+
|
|
109
|
+
export type ChartPosition = ChartData<number>;
|
|
110
|
+
|
|
111
|
+
export type ChartDataSourceItem = ChartPosition | StringCategorizedChartData | DateCategorizedChartData;
|
|
112
|
+
|
|
113
|
+
export type RecordChartData = {
|
|
114
|
+
name: string;
|
|
115
|
+
value: number;
|
|
116
|
+
label?: string;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export type ChartArcOptions = {
|
|
120
|
+
data: ArcPathItem[];
|
|
121
|
+
colors?: BackgroundColorsTokenType[];
|
|
122
|
+
donutRadius: number;
|
|
123
|
+
outerRadius: number;
|
|
124
|
+
center: ChartPosition;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export type ArcPathItem = {
|
|
128
|
+
data: RecordChartData;
|
|
129
|
+
index: number;
|
|
130
|
+
value: number;
|
|
131
|
+
startAngle: number;
|
|
132
|
+
endAngle: number;
|
|
133
|
+
padAngle: number;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export type TextAnchorType = 'start' | 'middle' | 'end';
|
|
137
|
+
|
|
138
|
+
export type directionType = 'vertical' | 'horizontal';
|
|
139
|
+
|
|
140
|
+
export type LineChartDataType = {
|
|
141
|
+
dataSource: ChartDataSourceItem[] | ChartDataSourceItem[][];
|
|
142
|
+
direction?: directionType;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
export type PieChartSourceType = {
|
|
146
|
+
dataSource: RecordChartData[];
|
|
147
|
+
donutRadius?: number;
|
|
148
|
+
type?: 'Pie' | 'Donut';
|
|
149
|
+
};
|
package/dist/vega/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as Breakpoints,g as getCurrentBreakpoint}from"./p-3542f8fe.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-6e1ab235.js";export{d as formatAndValidBackgroundColor,e as formatAndValidBorderColor,g as formatAndValidBorderRadius,c as formatAndValidBreakpointSize,a as formatAndValidGap,h as formatAndValidPadding,f as formatAndValidResponsiveToken,b as formatAndValidShadow,i as formatAndValidTextColor}from"./p-
|
|
1
|
+
export{B as Breakpoints,g as getCurrentBreakpoint}from"./p-3542f8fe.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-6e1ab235.js";export{d as formatAndValidBackgroundColor,e as formatAndValidBorderColor,g as formatAndValidBorderRadius,c as formatAndValidBreakpointSize,a as formatAndValidGap,h as formatAndValidPadding,f as formatAndValidResponsiveToken,b as formatAndValidShadow,i as formatAndValidTextColor}from"./p-8a9763c3.js";export{c as camelToDashCase}from"./p-0bb29d98.js";export{d as BackgroundColorMap,a as BackgroundColors,e as BorderColorMap,b as BorderColors,B as BorderRadius,C as Colors,F as FillBackgroundColors,g as ShadowMap,f as Shadows,h as Spacing,S as StrokeBackgroundColors,c as TextColorMap,T as TextColors}from"./p-12d5ed36.js";export{I as Icons,g as getIconFromToken}from"./p-16493e5b.js";export{a as Typography,b as TypographyKeys,T as TypographyUrls}from"./p-c59042c0.js";export{B as BreakpointKeys}from"./p-3c8b2105.js";export{F as FrameworkEnum,v as VegaEnvManager}from"./p-5f377954.js";export{c as VegaEventManager,V as VegaLoader,a as VegaNotify,e as VegaSkeletonLoader,b as VegaThemeManager,d as VegaZIndexManager,w as waitForVega}from"./p-53f3422c.js";export{F as FeatureFlag}from"./p-c3ef9d64.js";export{V as VegaDialog}from"./p-f9e456a6.js";export{B as VegaJQueryDelegatedEventStrategy}from"./p-ead1a647.js";export{V as VegaIconManager}from"./p-66098cf8.js";export{V as ValidCreditCardNumberRule}from"./p-7b40ac07.js";import"./p-b26ab257.js";import"./p-344ee7cb.js";import"./p-0c667d6a.js";import"./p-0197e7ec.js";import"./p-3a0a4d15.js";import"./p-8b5d3a52.js";import"./p-ad4bd166.js";import"./p-23ec14fe.js";import"./p-6a334573.js";import"./p-152393dd.js";import"./p-883a939b.js";import"./p-f404aa83.js";import"./p-3f5e44c1.js";const o=["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"];export{o as Rings}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as o,H as i,g as r}from"./p-1c298d5a.js";import{s}from"./p-9b797118.js";import{c as a,M as n,V as l,I as p}from"./p-6e1ab235.js";import{V as c,I as h}from"./p-61f6167c.js";import{c as u,S as d}from"./p-ad6aafb6.js";import{c as b}from"./p-
|
|
1
|
+
import{r as t,c as e,h as o,H as i,g as r}from"./p-1c298d5a.js";import{s}from"./p-9b797118.js";import{c as a,M as n,V as l,I as p}from"./p-6e1ab235.js";import{V as c,I as h}from"./p-61f6167c.js";import{c as u,S as d}from"./p-ad6aafb6.js";import{c as b}from"./p-28cc7bee.js";import{a as g,b as v}from"./p-3f5e44c1.js";import{C as f}from"./p-957e2de2.js";import{D as m,d as y}from"./p-1b3a64f7.js";import{d as x}from"./p-eecfad57.js";import{C as w}from"./p-2d0d575f.js";import{f as j}from"./p-ad4bd166.js";import"./p-6a334573.js";import"./p-ead1a647.js";import"./p-5f377954.js";import"./p-c3ef9d64.js";import"./p-f404aa83.js";var S=function(t,e,o,i){var r,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(s<3?r(a):s>3?r(e,o,a):r(e,o))||a);return s>3&&a&&Object.defineProperty(e,o,a),a};class R extends l{registerGroupClickObserver(){m.addUniqueObserverToNode(this.host,x,(t=>{this.clickEventEmitter.emit(t.detail)}))}unregisterGroupClickObserver(){m.removeUniqueObserverFromNode(this.host,x)}}S([a()],R.prototype,"host",void 0),S([a()],R.prototype,"clickEventEmitter",void 0),S([n("connectedCallback")],R.prototype,"registerGroupClickObserver",null),S([n("disconnectedCallback")],R.prototype,"unregisterGroupClickObserver",null);const k=[{payloadKey:"VARIANT_IS_PRIMARY",payloadDescription:"Specifies the visual style and prominence of the button group. It determines how the button group will be presented to the user.",payloadValue:t=>"primary"===t.variant},{payloadKey:"VARIANT_IS_SECONDARY",payloadDescription:"Specifies the visual style and prominence of the button group. It determines how the button group will be presented to the user.",payloadValue:t=>"secondary"===t.variant},{payloadKey:"VARIANT_IS_TERTIARY",payloadDescription:"Specifies the visual style and prominence of the button group. It determines how the button group will be presented to the user.",payloadValue:t=>"tertiary"===t.variant}];var A=function(t,e,o,i){var r,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(s<3?r(a):s>3?r(e,o,a):r(e,o))||a);return s>3&&a&&Object.defineProperty(e,o,a),a};const I=class{constructor(o){t(this,o),this.vegaClick=e(this,"vegaClick",7),this.click=e(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=b(I,g),this.clickEventPrevent=new f([g],(()=>this.flexContainer)),this.buttonGroupClickController=new R,this.variantNotifySlimmer=u(I,"variant","watchVariant"),this.sizeNotifySlimmer=u(I,"size","watchSize"),this.iconAlignNotifySlimmer=u(I,"iconAlign","watchIconAlign"),this.vegaComponentUsageRuntimeMetricsSlimmer=new c(k),this.variant="primary",this.size="default",this.iconAlign="left"}watchVariant(){}watchSize(){}watchIconAlign(){}render(){return s(o(i,null,o("vega-flex",{class:`vega-button-group-container vega-button-group-${this.variant}`,direction:"row",alignItems:"tertiary"===this.variant?"center":"stretch",gap:"tertiary"!==this.variant?"size-2":"0",ref:t=>this.flexContainer=t},o("slot",null))),this.host)}get host(){return r(this)}static get watchers(){return{variant:["watchVariant"],size:["watchSize"],iconAlign:["watchIconAlign"]}}};A([h()],I.prototype,"globalSlimmers",void 0),A([p()],I.prototype,"clickEventEmitter",void 0),A([p()],I.prototype,"clickEventPrevent",void 0),A([p()],I.prototype,"buttonGroupClickController",void 0),A([p()],I.prototype,"variantNotifySlimmer",void 0),A([p()],I.prototype,"sizeNotifySlimmer",void 0),A([p()],I.prototype,"iconAlignNotifySlimmer",void 0),A([p()],I.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),I.style=":host{display:inline-block}.vega-button-group-primary{gap:6px}.vega-button-group-tertiary>::slotted(.vega-button-group-item){padding-left:12px;padding-right:12px;border-color:rgba(var(--v-border-color-divider-secondary, 199, 217, 229, 1));border-left-width:1px;border-top-width:0px;border-bottom-width:0px;border-right-width:0px;border-style:solid}.vega-button-group-tertiary>::slotted(.vega-button-group-item:first-child){border-left-width:0px}";var O=function(t,e,o,i){var r,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(s<3?r(a):s>3?r(e,o,a):r(e,o))||a);return s>3&&a&&Object.defineProperty(e,o,a),a};class C extends d{constructor(){super({parent:"vega-button-group",subStates:[{subStateName:"variant",parentStateName:"variant"},{subStateName:"size",parentStateName:"size"},{subStateName:"iconAlign",parentStateName:"iconAlign"}]})}}O([a({writable:!0})],C.prototype,"size",void 0),O([a({writable:!0})],C.prototype,"variant",void 0),O([a({writable:!0})],C.prototype,"iconAlign",void 0);var z=function(t,e,o,i){var r,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(s<3?r(a):s>3?r(e,o,a):r(e,o))||a);return s>3&&a&&Object.defineProperty(e,o,a),a};class N extends l{constructor(){super(...arguments),this.buttonItemClickHandle=()=>{this.notifyParentGroup(this.itemKey)},this.moreDropdownItemClickHandle=t=>{this.notifyParentGroup(t.detail)}}render(){return this.dropdownSource&&this.dropdownSource.length?o("vega-dropdown",Object.assign({source:this.dropdownSource,trigger:"click"},this.dropdownProps,{ref:t=>{m.addUniqueObserverToNode(t,v,this.moreDropdownItemClickHandle)}}),this.renderButtonItemWithTooltip()):this.renderButtonItemWithTooltip()}renderButtonItemWithTooltip(){return this.iconOnly&&this.label?o("vega-tooltip",{placement:"top",text:this.label},this.renderButtonItem()):this.renderButtonItem()}renderButtonItem(){const t=this.getButtonProps();return"tertiary"===this.variant?o("vega-button-link",Object.assign({},t)):o("vega-button",Object.assign({class:`button-group-item-button-${this.variant}`,variant:this.variant},t))}notifyParentGroup(t){const e=j(this.host,"vega-button-group");e&&w.notify(y.getSubject(e,x),{host:this.host,detail:t})}getButtonProps(){return{size:this.size,icon:this.icon,label:this.iconOnly?"":this.getDefaultLabel(),iconAlign:this.iconAlign,ref:t=>{m.addUniqueObserverToNode(t,g,this.buttonItemClickHandle)}}}getDefaultLabel(){return!this.icon&&!this.label&&this.dropdownSource&&this.dropdownSource.length?"More":this.label}}z([a()],N.prototype,"host",void 0),z([a()],N.prototype,"size",void 0),z([a()],N.prototype,"icon",void 0),z([a()],N.prototype,"label",void 0),z([a()],N.prototype,"iconAlign",void 0),z([a()],N.prototype,"iconOnly",void 0),z([a()],N.prototype,"variant",void 0),z([a()],N.prototype,"itemKey",void 0),z([a()],N.prototype,"dropdownSource",void 0),z([a()],N.prototype,"dropdownProps",void 0);var V=function(t,e,o,i){var r,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(s<3?r(a):s>3?r(e,o,a):r(e,o))||a);return s>3&&a&&Object.defineProperty(e,o,a),a};const _=class{constructor(e){t(this,e),this.globalSlimmers={},this.subStateObserverSlimmer=new C,this.buttonGroupItemRenderer=new N,this.vegaComponentUsageRuntimeMetricsSlimmer=new c,this.variant="primary",this.size="default",this.iconAlign="left",this.iconOnly=!1}render(){return s(o(i,{class:"vega-button-group-item"},this.buttonGroupItemRenderer.render()),this.host)}get host(){return r(this)}};V([h()],_.prototype,"globalSlimmers",void 0),V([p()],_.prototype,"subStateObserverSlimmer",void 0),V([p()],_.prototype,"buttonGroupItemRenderer",void 0),V([p()],_.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),_.style=":host{display:inline-block}:host>vega-tooltip,:host>vega-dropdown{height:100%}:host>vega-tooltip>vega-tooltip,:host>vega-dropdown>vega-tooltip{height:100%}:host vega-button{height:100%}:host vega-button::part(button):focus-visible{position:relative;outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;z-index:1;box-shadow:0 0 0}:host vega-button-link::part(link-border){outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;height:calc(100% + 2px);top:-1px;box-shadow:0 0 0;visibility:hidden}:host vega-button-link::part(label-container){text-decoration:none}:host vega-button-link:hover::part(label-container){text-decoration:underline}:host vega-button::part(button){margin-right:-4px}:host vega-button::part(button):focus-visible{margin-right:0px;margin-left:4px}:host(:first-child) vega-button::part(button){border-top-left-radius:9999px;border-bottom-left-radius:9999px}:host(:first-child) vega-button::part(button):focus-visible{margin-left:0}:host(:last-child) vega-button::part(button){border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host(:last-child) vega-button::part(button){margin-right:0}vega-button::part(button){border-top-left-radius:0px;border-bottom-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;height:100%}";export{I as vega_button_group,_ as vega_button_group_item}
|