@globalpayments/vega 2.47.0 → 2.47.1
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-981f7aba.js → app-globals-fdf98585.js} +5 -5
- package/dist/cjs/brand-switch-state-controller-slimmer-5efa1b24.js +51 -0
- package/dist/cjs/{content-state-605de6a3.js → content-state-b1ec39e3.js} +1 -1
- package/dist/cjs/{dark-mode-state-controller-slimmer-2af3e67c.js → dark-mode-state-controller-slimmer-add5d8a8.js} +1 -1
- package/dist/cjs/{dark-mode-style-controller-c93b94d2.js → dark-mode-style-controller-4adb7fb2.js} +20 -17
- package/dist/cjs/{design-token-117a19a8.js → design-token-0c22ffa8.js} +1 -1
- package/dist/cjs/{element-appender-slimmer-4bdbd76d.js → element-appender-slimmer-b3109dd1.js} +3 -3
- package/dist/cjs/{form-field-controller-slimmer-6d69c74f.js → form-field-controller-slimmer-2432e295.js} +2 -2
- package/dist/cjs/{image-annotation-action-5e3aa73c.js → image-annotation-action-becd6f24.js} +2 -2
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/loader.cjs.js +7 -7
- package/dist/cjs/{public-rules-66f53e7e.js → public-rules-3c2a69b4.js} +4 -4
- package/dist/cjs/{responsive-format-facade-3542fc47.js → responsive-format-facade-e48962dd.js} +3 -3
- package/dist/cjs/{rich-text-editor-required-rule-649ef4b4.js → rich-text-editor-required-rule-f08f5891.js} +1 -1
- package/dist/cjs/{static-subject-title-1d23c102.js → static-subject-title-7e7d791a.js} +2 -2
- package/dist/cjs/{style-formatter-b735d506.js → style-formatter-48ef74d4.js} +1 -1
- package/dist/cjs/{translation-5173d223.js → translation-212b1875.js} +1 -1
- package/dist/cjs/{translation-slimmer-e900e8d4.js → translation-slimmer-d1512c6d.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +7 -7
- package/dist/cjs/vega-app-footer.cjs.entry.js +38 -28
- package/dist/cjs/vega-app-header-button.cjs.entry.js +7 -7
- package/dist/cjs/vega-box.cjs.entry.js +8 -8
- package/dist/cjs/vega-brand-logo.cjs.entry.js +3 -3
- package/dist/cjs/vega-button-circle.cjs.entry.js +7 -7
- package/dist/cjs/vega-button.cjs.entry.js +6 -6
- package/dist/cjs/vega-calendar_3.cjs.entry.js +3 -3
- package/dist/cjs/vega-card.cjs.entry.js +7 -7
- package/dist/cjs/vega-carousel.cjs.entry.js +6 -6
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-chip.cjs.entry.js +7 -7
- package/dist/cjs/vega-color-picker.cjs.entry.js +3 -3
- package/dist/cjs/vega-combo-box.cjs.entry.js +3 -3
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +9 -9
- package/dist/cjs/vega-dialog_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-divider.cjs.entry.js +7 -7
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +9 -9
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-error.cjs.entry.js +1 -1
- package/dist/cjs/vega-file-uploader.cjs.entry.js +4 -4
- package/dist/cjs/vega-flag-icon.cjs.entry.js +7 -7
- package/dist/cjs/vega-flex.cjs.entry.js +8 -8
- package/dist/cjs/vega-font.cjs.entry.js +7 -7
- package/dist/cjs/vega-form.cjs.entry.js +3 -3
- package/dist/cjs/vega-grid.cjs.entry.js +7 -7
- package/dist/cjs/vega-icon.cjs.entry.js +7 -7
- package/dist/cjs/vega-image-uploader.cjs.entry.js +8 -8
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-numeric.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-range.cjs.entry.js +4 -4
- package/dist/cjs/vega-input-select.cjs.entry.js +8 -8
- package/dist/cjs/vega-input.cjs.entry.js +3 -3
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +18 -10
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination.cjs.entry.js +7 -7
- package/dist/cjs/vega-popover_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-radio_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +4 -4
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +9 -9
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +6 -6
- package/dist/cjs/vega-signature-capture.cjs.entry.js +9 -9
- package/dist/cjs/{vega-skeleton-loader-controller-8cbd7656.js → vega-skeleton-loader-controller-db868c98.js} +3 -3
- package/dist/cjs/vega-stepper.cjs.entry.js +3 -3
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-table_8.cjs.entry.js +7 -7
- package/dist/cjs/vega-textarea.cjs.entry.js +3 -3
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +9 -9
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +7 -7
- package/dist/cjs/vega.cjs.js +7 -7
- package/dist/collection/components/vega-app-footer/vega-app-footer.js +42 -31
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.css +4 -2
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +3 -0
- package/dist/collection/components/vega-nav/vega-left-nav/slimmers/renderers/vega-left-nav-header-renderer.js +5 -4
- package/dist/collection/components/vega-nav/vega-left-nav/vega-left-nav.js +8 -0
- package/dist/collection/components/vega-popover/vega-popover.js +3 -0
- package/dist/collection/components/vega-tab-group/vega-tab-group.js +3 -0
- package/dist/collection/components/vega-time-picker/vega-time-picker.js +3 -0
- package/dist/collection/components/vega-tooltip/vega-tooltip.js +3 -0
- package/dist/collection/constants/misc.js +2 -0
- package/dist/collection/helpers/change-manager/subject/static-subject/static-subject-title.js +1 -1
- package/dist/collection/helpers/slimmers/brand-switch-state-controller-slimmer.js +46 -0
- package/dist/collection/helpers/slimmers/test/brand-switch-state-controller-slimmer.test.js +75 -0
- package/dist/collection/helpers/theme/controllers/{new-brand-style-controller.js → brand-style-controller.js} +9 -9
- package/dist/collection/helpers/theme/controllers/dark-mode-style-controller.js +1 -1
- package/dist/collection/helpers/theme/internal-theme-manager.js +12 -9
- package/dist/collection/helpers/theme/tests/theme-manager-controller.test.js +4 -4
- package/dist/collection/helpers/theme/theme-manager.js +2 -2
- package/dist/esm/{app-globals-c055c18a.js → app-globals-53b6125a.js} +5 -5
- package/dist/esm/brand-switch-state-controller-slimmer-05c85e6d.js +49 -0
- package/dist/esm/{content-state-8d0d38d7.js → content-state-7437e069.js} +1 -1
- package/dist/esm/{dark-mode-state-controller-slimmer-0678a94b.js → dark-mode-state-controller-slimmer-f1c2c299.js} +1 -1
- package/dist/esm/{dark-mode-style-controller-e5915f26.js → dark-mode-style-controller-2ada8e22.js} +20 -17
- package/dist/esm/{design-token-7406782c.js → design-token-fb43f78a.js} +1 -1
- package/dist/esm/{element-appender-slimmer-16eaeb31.js → element-appender-slimmer-0a0b20e9.js} +3 -3
- package/dist/esm/{form-field-controller-slimmer-a383d067.js → form-field-controller-slimmer-2978abd4.js} +2 -2
- package/dist/esm/{image-annotation-action-de567e61.js → image-annotation-action-51248df9.js} +2 -2
- package/dist/esm/index.js +8 -8
- package/dist/esm/loader.js +7 -7
- package/dist/esm/{public-rules-f9fe1987.js → public-rules-cfc196c9.js} +4 -4
- package/dist/esm/{responsive-format-facade-299d8ee9.js → responsive-format-facade-ae799f25.js} +3 -3
- package/dist/esm/{rich-text-editor-required-rule-7fd7dcb3.js → rich-text-editor-required-rule-baf61553.js} +1 -1
- package/dist/esm/{static-subject-title-4a9deb68.js → static-subject-title-ca83d6b6.js} +2 -2
- package/dist/esm/{style-formatter-2ebb1fd2.js → style-formatter-bf71b8e7.js} +1 -1
- package/dist/esm/{translation-78207e81.js → translation-cf7f020a.js} +1 -1
- package/dist/esm/{translation-slimmer-d49fcdf4.js → translation-slimmer-88966d5c.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +7 -7
- package/dist/esm/vega-app-footer.entry.js +38 -28
- package/dist/esm/vega-app-header-button.entry.js +7 -7
- package/dist/esm/vega-box.entry.js +8 -8
- package/dist/esm/vega-brand-logo.entry.js +3 -3
- package/dist/esm/vega-button-circle.entry.js +7 -7
- package/dist/esm/vega-button.entry.js +6 -6
- package/dist/esm/vega-calendar_3.entry.js +3 -3
- package/dist/esm/vega-card.entry.js +7 -7
- package/dist/esm/vega-carousel.entry.js +6 -6
- package/dist/esm/vega-checkbox_2.entry.js +3 -3
- package/dist/esm/vega-chip.entry.js +7 -7
- package/dist/esm/vega-color-picker.entry.js +3 -3
- package/dist/esm/vega-combo-box.entry.js +3 -3
- package/dist/esm/vega-date-picker_2.entry.js +9 -9
- package/dist/esm/vega-dialog_2.entry.js +7 -7
- package/dist/esm/vega-divider.entry.js +7 -7
- package/dist/esm/vega-dropdown_5.entry.js +9 -9
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-error.entry.js +1 -1
- package/dist/esm/vega-file-uploader.entry.js +4 -4
- package/dist/esm/vega-flag-icon.entry.js +7 -7
- package/dist/esm/vega-flex.entry.js +8 -8
- package/dist/esm/vega-font.entry.js +7 -7
- package/dist/esm/vega-form.entry.js +3 -3
- package/dist/esm/vega-grid.entry.js +7 -7
- package/dist/esm/vega-icon.entry.js +7 -7
- package/dist/esm/vega-image-uploader.entry.js +8 -8
- package/dist/esm/vega-input-credit-card.entry.js +3 -3
- package/dist/esm/vega-input-numeric.entry.js +3 -3
- package/dist/esm/vega-input-phone-number.entry.js +3 -3
- package/dist/esm/vega-input-range.entry.js +4 -4
- package/dist/esm/vega-input-select.entry.js +8 -8
- package/dist/esm/vega-input.entry.js +3 -3
- package/dist/esm/vega-left-nav_5.entry.js +18 -10
- package/dist/esm/vega-loader-wrapper_2.entry.js +6 -6
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +3 -3
- package/dist/esm/vega-pagination.entry.js +7 -7
- package/dist/esm/vega-popover_2.entry.js +7 -7
- package/dist/esm/vega-radio_2.entry.js +3 -3
- package/dist/esm/vega-rich-text-content.entry.js +4 -4
- package/dist/esm/vega-rich-text-editor_4.entry.js +9 -9
- package/dist/esm/vega-selection-chip_2.entry.js +7 -7
- package/dist/esm/vega-selection-tile_2.entry.js +3 -3
- package/dist/esm/vega-sidenav_3.entry.js +6 -6
- package/dist/esm/vega-signature-capture.entry.js +9 -9
- package/dist/esm/{vega-skeleton-loader-controller-90e8d34d.js → vega-skeleton-loader-controller-c2a8bd27.js} +3 -3
- package/dist/esm/vega-stepper.entry.js +3 -3
- package/dist/esm/vega-tab-group_2.entry.js +1 -1
- package/dist/esm/vega-table_8.entry.js +7 -7
- package/dist/esm/vega-textarea.entry.js +3 -3
- package/dist/esm/vega-time-picker_2.entry.js +9 -9
- package/dist/esm/vega-toggle-switch.entry.js +3 -3
- package/dist/esm/vega-tooltip_2.entry.js +7 -7
- package/dist/esm/vega.js +7 -7
- package/dist/types/components/vega-app-footer/vega-app-footer.d.ts +8 -3
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +3 -0
- package/dist/types/components/vega-nav/vega-left-nav/slimmers/renderers/vega-left-nav-header-renderer.d.ts +1 -0
- package/dist/types/components/vega-nav/vega-left-nav/vega-left-nav.d.ts +4 -0
- package/dist/types/components/vega-popover/vega-popover.d.ts +3 -0
- package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +3 -0
- package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +3 -0
- package/dist/types/components/vega-tooltip/vega-tooltip.d.ts +3 -0
- package/dist/types/components.d.ts +10 -0
- package/dist/types/constants/misc.d.ts +2 -0
- package/dist/types/helpers/change-manager/subject/static-subject/static-subject-title.d.ts +2 -2
- package/dist/types/helpers/slimmers/brand-switch-state-controller-slimmer.d.ts +22 -0
- package/dist/types/helpers/slimmers/test/brand-switch-state-controller-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/theme/controllers/{new-brand-style-controller.d.ts → brand-style-controller.d.ts} +3 -3
- package/dist/types/helpers/theme/internal-theme-manager.d.ts +8 -8
- package/dist/types/helpers/theme/theme-manager.d.ts +4 -4
- package/dist/types/helpers/theme/theme.d.ts +6 -1
- package/dist/types/types/public-api.d.ts +1 -1
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-e309bfd1.entry.js → p-0073c3de.entry.js} +1 -1
- package/dist/vega/{p-ba0a76fe.entry.js → p-01b4d6ba.entry.js} +1 -1
- package/dist/vega/{p-f3efc8f0.entry.js → p-0523efe8.entry.js} +1 -1
- package/dist/vega/{p-ff8ef8af.entry.js → p-08679cd9.entry.js} +1 -1
- package/dist/vega/{p-eaab3fea.entry.js → p-0969877b.entry.js} +1 -1
- package/dist/vega/{p-be186a9f.entry.js → p-0b56725e.entry.js} +1 -1
- package/dist/vega/{p-0835a2fd.js → p-1503f791.js} +1 -1
- package/dist/vega/{p-1138fa63.entry.js → p-1b731247.entry.js} +1 -1
- package/dist/vega/{p-aa29ccd4.entry.js → p-1c08e94a.entry.js} +1 -1
- package/dist/vega/{p-1486bc3f.js → p-1e2886b5.js} +1 -1
- package/dist/vega/{p-a0b6da44.js → p-213752bd.js} +1 -1
- package/dist/vega/p-27e56c67.entry.js +1 -0
- package/dist/vega/{p-3165ee95.entry.js → p-2863aa51.entry.js} +1 -1
- package/dist/vega/{p-f01300ea.entry.js → p-2c1c88c0.entry.js} +1 -1
- package/dist/vega/{p-2c0d1ec9.entry.js → p-31de5cb4.entry.js} +1 -1
- package/dist/vega/{p-90ebcda7.entry.js → p-324dd09a.entry.js} +1 -1
- package/dist/vega/{p-b5f05d21.entry.js → p-343b4522.entry.js} +1 -1
- package/dist/vega/{p-06d7990e.js → p-3d3cd394.js} +1 -1
- package/dist/vega/p-3e285c35.js +1 -0
- package/dist/vega/{p-562de411.entry.js → p-410755ca.entry.js} +1 -1
- package/dist/vega/{p-8f98e604.entry.js → p-4b1a7d31.entry.js} +1 -1
- package/dist/vega/{p-1114896d.entry.js → p-4f54ba1f.entry.js} +1 -1
- package/dist/vega/{p-fb6d87cd.entry.js → p-4f7f93ef.entry.js} +1 -1
- package/dist/vega/{p-c17b7a1f.js → p-50677c8e.js} +1 -1
- package/dist/vega/{p-20af6415.entry.js → p-50a076d0.entry.js} +1 -1
- package/dist/vega/{p-23a26150.js → p-5773a9a3.js} +1 -1
- package/dist/vega/{p-12a8d705.js → p-59e9f57a.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-23ff7605.entry.js → p-611282a7.entry.js} +1 -1
- package/dist/vega/p-6be16084.js +1 -0
- package/dist/vega/{p-ff9e8753.entry.js → p-7594875a.entry.js} +1 -1
- package/dist/vega/{p-d296cf86.entry.js → p-79cc1f41.entry.js} +1 -1
- package/dist/vega/{p-26005df1.js → p-7bc3a42b.js} +1 -1
- package/dist/vega/{p-704d9730.js → p-8ade44bf.js} +1 -1
- package/dist/vega/{p-41c48bcc.entry.js → p-8af3fc79.entry.js} +1 -1
- package/dist/vega/{p-693934d5.entry.js → p-8c32ff75.entry.js} +1 -1
- package/dist/vega/{p-e66515c7.js → p-8d283666.js} +1 -1
- package/dist/vega/p-8ee31f00.entry.js +1 -0
- package/dist/vega/{p-d2a65457.entry.js → p-8f80b321.entry.js} +1 -1
- package/dist/vega/p-904d1b43.js +1 -0
- package/dist/vega/{p-7f9dd834.entry.js → p-952913fc.entry.js} +1 -1
- package/dist/vega/{p-a9f2ad08.entry.js → p-96410d71.entry.js} +1 -1
- package/dist/vega/{p-380ba357.entry.js → p-a1bdf9a0.entry.js} +1 -1
- package/dist/vega/{p-63ea4f38.entry.js → p-aa109e80.entry.js} +1 -1
- package/dist/vega/{p-6f2faa34.js → p-ab26cad6.js} +1 -1
- package/dist/vega/p-aea89be5.entry.js +1 -0
- package/dist/vega/{p-e3b70eed.entry.js → p-b06e5916.entry.js} +1 -1
- package/dist/vega/{p-d2947f32.entry.js → p-b4dfa967.entry.js} +1 -1
- package/dist/vega/{p-f3f73fd3.entry.js → p-b64d5c3a.entry.js} +1 -1
- package/dist/vega/{p-0a3607f7.entry.js → p-b65de502.entry.js} +1 -1
- package/dist/vega/{p-76a3a552.entry.js → p-b6caa1e2.entry.js} +1 -1
- package/dist/vega/{p-d54c48b0.js → p-b9f48611.js} +1 -1
- package/dist/vega/{p-42b62b48.js → p-bab6ca81.js} +1 -1
- package/dist/vega/{p-7a3826a0.entry.js → p-bcb43c54.entry.js} +1 -1
- package/dist/vega/{p-27287998.entry.js → p-bd5ca7cc.entry.js} +1 -1
- package/dist/vega/{p-6f9731a1.entry.js → p-c2321aa8.entry.js} +1 -1
- package/dist/vega/{p-0e7fc736.entry.js → p-c706de06.entry.js} +1 -1
- package/dist/vega/{p-84aa2ebc.entry.js → p-c86a4896.entry.js} +1 -1
- package/dist/vega/{p-4c62c178.entry.js → p-ceb9f5aa.entry.js} +1 -1
- package/dist/vega/{p-414e7edc.entry.js → p-d4a61b1d.entry.js} +1 -1
- package/dist/vega/{p-b4108ddb.entry.js → p-d6620b42.entry.js} +1 -1
- package/dist/vega/{p-327a017b.entry.js → p-d6c37085.entry.js} +1 -1
- package/dist/vega/{p-f5fdf1ae.entry.js → p-d6d9c300.entry.js} +1 -1
- package/dist/vega/{p-90e70662.entry.js → p-db7a6878.entry.js} +1 -1
- package/dist/vega/{p-7f1a7346.entry.js → p-df44a712.entry.js} +1 -1
- package/dist/vega/{p-720d87f9.entry.js → p-e1a06741.entry.js} +1 -1
- package/dist/vega/{p-7cc3feb4.entry.js → p-e5695801.entry.js} +1 -1
- package/dist/vega/{p-c87b5c83.entry.js → p-e59ff7d1.entry.js} +1 -1
- package/dist/vega/{p-f0c85061.js → p-f0bc8f6d.js} +1 -1
- package/dist/vega/{p-4640d35d.entry.js → p-f9b07b5e.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/vega/p-1154e439.entry.js +0 -1
- package/dist/vega/p-626dd54f.entry.js +0 -1
- package/dist/vega/p-865b45dc.entry.js +0 -1
- package/dist/vega/p-da40b4c3.js +0 -1
- package/dist/vega/p-ff9ccfa8.js +0 -1
|
@@ -21,6 +21,8 @@ import { VegaLeftNavAutoCollapseController } from './slimmers/controllers/vega-l
|
|
|
21
21
|
import { VegaComponentUsageRuntimeMetricsSlimmer } from '../../../helpers/slimmers/component-usage-runtime-metrics';
|
|
22
22
|
import { VegaLeftNavRuntimeMetricsPayloadDefinition } from '../../../constants/runtime-metrics-payload-definition/vega-left-nav/runtime-metrics-payload-definition';
|
|
23
23
|
import { createSubStateNotifySlimmer } from '../../../helpers/slimmers/sub-state/sub-state-notify-slimmer';
|
|
24
|
+
import { BrandSwitchControllerSlimmer } from '../../../helpers/slimmers/brand-switch-state-controller-slimmer';
|
|
25
|
+
import { VegaInternalThemeManager } from '../../../helpers/theme/internal-theme-manager';
|
|
24
26
|
/**
|
|
25
27
|
* @vegaVersion 1.31.0
|
|
26
28
|
*/
|
|
@@ -38,6 +40,8 @@ export class VegaLeftNav {
|
|
|
38
40
|
this.componentGlobalStyleSlimmer = new ComponentGlobalStyleSlimmer(mainContentStyle);
|
|
39
41
|
this.vegaComponentUsageRuntimeMetricsSlimmer = new VegaComponentUsageRuntimeMetricsSlimmer(VegaLeftNavRuntimeMetricsPayloadDefinition);
|
|
40
42
|
this.autoCollapseGroupsNotifySlimmer = createSubStateNotifySlimmer(VegaLeftNav, 'autoCollapseGroups', 'watchAutoCollapseGroups');
|
|
43
|
+
this.brandSwitchControllerSlimmer = new BrandSwitchControllerSlimmer();
|
|
44
|
+
this.currentBranding = VegaInternalThemeManager.getBranding();
|
|
41
45
|
this.openState = 'close';
|
|
42
46
|
/**
|
|
43
47
|
* Determines whether the left navigation is expanded or collapsed.
|
|
@@ -274,6 +278,7 @@ export class VegaLeftNav {
|
|
|
274
278
|
}
|
|
275
279
|
}; }
|
|
276
280
|
static get states() { return {
|
|
281
|
+
"currentBranding": {},
|
|
277
282
|
"openState": {}
|
|
278
283
|
}; }
|
|
279
284
|
static get events() { return [{
|
|
@@ -388,3 +393,6 @@ __decorate([
|
|
|
388
393
|
__decorate([
|
|
389
394
|
InjectVegaSlimmer()
|
|
390
395
|
], VegaLeftNav.prototype, "autoCollapseGroupsNotifySlimmer", void 0);
|
|
396
|
+
__decorate([
|
|
397
|
+
InjectVegaSlimmer()
|
|
398
|
+
], VegaLeftNav.prototype, "brandSwitchControllerSlimmer", void 0);
|
|
@@ -214,6 +214,9 @@ export class VegaPopover {
|
|
|
214
214
|
"optional": false,
|
|
215
215
|
"docs": {
|
|
216
216
|
"tags": [{
|
|
217
|
+
"name": "VegaWarning",
|
|
218
|
+
"text": "The value of this property should be an element that is\nthe parent of this component or an ancestor of the parent element.\nUsing any other element may lead to unexpected behavior."
|
|
219
|
+
}, {
|
|
217
220
|
"name": "vegaVersion",
|
|
218
221
|
"text": "1.19.0"
|
|
219
222
|
}],
|
|
@@ -247,6 +247,9 @@ export class VegaTabGroup {
|
|
|
247
247
|
"optional": false,
|
|
248
248
|
"docs": {
|
|
249
249
|
"tags": [{
|
|
250
|
+
"name": "VegaWarning",
|
|
251
|
+
"text": "The value of this property should be an element that is\nthe parent of this component or an ancestor of the parent element.\nUsing any other element may lead to unexpected behavior."
|
|
252
|
+
}, {
|
|
250
253
|
"name": "vegaVersion",
|
|
251
254
|
"text": "1.3.0"
|
|
252
255
|
}],
|
|
@@ -525,6 +525,9 @@ export class VegaTimePicker {
|
|
|
525
525
|
"optional": false,
|
|
526
526
|
"docs": {
|
|
527
527
|
"tags": [{
|
|
528
|
+
"name": "VegaWarning",
|
|
529
|
+
"text": "The value of this property should be an element that is\nthe parent of this component or an ancestor of the parent element.\nUsing any other element may lead to unexpected behavior."
|
|
530
|
+
}, {
|
|
528
531
|
"name": "vegaVersion",
|
|
529
532
|
"text": "1.12.0"
|
|
530
533
|
}],
|
|
@@ -302,6 +302,9 @@ export class VegaTooltip {
|
|
|
302
302
|
"optional": false,
|
|
303
303
|
"docs": {
|
|
304
304
|
"tags": [{
|
|
305
|
+
"name": "VegaWarning",
|
|
306
|
+
"text": "The value of this property should be an element that is\nthe parent of this component or an ancestor of the parent element.\nUsing any other element may lead to unexpected behavior."
|
|
307
|
+
}, {
|
|
305
308
|
"name": "vegaVersion",
|
|
306
309
|
"text": "1.3.0"
|
|
307
310
|
}],
|
|
@@ -4,5 +4,7 @@ export const HEARTLAND_TOS_URL = 'https://www.heartland.us/terms';
|
|
|
4
4
|
export const HEARTLAND_PRIVACY_URL = 'https://www.heartland.us/privacy-policy';
|
|
5
5
|
export const HEARTLAND_GOOGLE_PRIVACY_POLICY_URL = 'https://policies.google.com/privacy';
|
|
6
6
|
export const HEARTLAND_GOOGLE_TREMS_SERVICE_URL = 'https://policies.google.com/terms';
|
|
7
|
+
export const HEARTLAND_CONTENT = `© ${new Date().getFullYear()} Heartland Payment Systems, LLC – a Global Payments company. All rights reserved.`;
|
|
7
8
|
export const GLOBALPAYMENTS_TOS_URL = 'https://www.globalpayments.com/terms-of-use';
|
|
8
9
|
export const GLOBALPAYMENTS_PRIVACY_URL = 'https://www.globalpayments.com/privacy-statement';
|
|
10
|
+
export const GLOBALPAYMENTS_CONTENT = `© ${new Date().getFullYear()} Global Payments Inc. All rights reserved.`;
|
package/dist/collection/helpers/change-manager/subject/static-subject/static-subject-title.js
CHANGED
|
@@ -27,4 +27,4 @@ export const UPDATE_TRANSLATION = new StaticSubject('UPDATE_TRANSLATION');
|
|
|
27
27
|
export const DARK_MODE_CHANGE = new StaticSubject('DARK_MODE_CHANGE');
|
|
28
28
|
export const SHADOW_ROOT_ELEMENT_SCROLLING = new StaticSubject('SHADOW_ROOT_ELEMENT_SCROLLING');
|
|
29
29
|
export const FLAG_ICON_LOADED = new StaticSubject('FLAG_ICON_LOADED');
|
|
30
|
-
export const
|
|
30
|
+
export const GP_BRAND_CHANGE = new StaticSubject('GP_BRAND_CHANGE');
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { MapToComponentField, MapToComponentMethod, VegaSlimmer } from 'vega-slimmer/core';
|
|
8
|
+
import { GP_BRAND_CHANGE } from '../change-manager/subject/static-subject/static-subject-title';
|
|
9
|
+
import { Observer } from '../change-manager/observer/observer';
|
|
10
|
+
import ChangeManager from '../change-manager/change-manager';
|
|
11
|
+
/** The `BrandSwitchControllerSlimmer` class monitors brand changes and updates the color, logo and footer content accordingly. */
|
|
12
|
+
export class BrandSwitchControllerSlimmer extends VegaSlimmer {
|
|
13
|
+
/**
|
|
14
|
+
* Component lifecycle - [connectedCallback]
|
|
15
|
+
* Register an observer to watch for current branding updates, which will cause the component to update.
|
|
16
|
+
*/
|
|
17
|
+
connectedCallback() {
|
|
18
|
+
this.observer = new Observer(this.isAcceptObserver.bind(this), (currentBranding) => {
|
|
19
|
+
this.currentBranding = currentBranding;
|
|
20
|
+
});
|
|
21
|
+
ChangeManager.register(GP_BRAND_CHANGE, this.observer);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* cancel dark mode observer when disconnectedCallback
|
|
25
|
+
*/
|
|
26
|
+
disconnectResizeObserver() {
|
|
27
|
+
ChangeManager.unregister(GP_BRAND_CHANGE, this.observer);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Determines whether the observer should accept changes.
|
|
31
|
+
*
|
|
32
|
+
* @returns {boolean} Always returns true in the current implementation.
|
|
33
|
+
*/
|
|
34
|
+
isAcceptObserver() {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
MapToComponentField({ writable: true })
|
|
40
|
+
], BrandSwitchControllerSlimmer.prototype, "currentBranding", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
MapToComponentMethod('connectedCallback')
|
|
43
|
+
], BrandSwitchControllerSlimmer.prototype, "connectedCallback", null);
|
|
44
|
+
__decorate([
|
|
45
|
+
MapToComponentMethod('disconnectedCallback')
|
|
46
|
+
], BrandSwitchControllerSlimmer.prototype, "disconnectResizeObserver", null);
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import '../../../polyfill/test-polyfill/unit/index';
|
|
8
|
+
import { InjectVegaSlimmer, MapToComponentField } from 'vega-slimmer/core';
|
|
9
|
+
import { MockHTMLElement } from '@stencil/core/mock-doc';
|
|
10
|
+
import { BrandSwitchControllerSlimmer } from '../brand-switch-state-controller-slimmer';
|
|
11
|
+
import { VegaInternalThemeManager } from '../../theme/internal-theme-manager';
|
|
12
|
+
describe('BrandSwitchControllerSlimmer', () => {
|
|
13
|
+
const mockedComponentConnectedCallbackMethod = jest.fn();
|
|
14
|
+
const mockedComponentDisconnectedCallbackMethod = jest.fn();
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
mockedComponentDisconnectedCallbackMethod.mockClear();
|
|
17
|
+
mockedComponentConnectedCallbackMethod.mockClear();
|
|
18
|
+
});
|
|
19
|
+
describe('BrandSwitchControllerSlimmer should work proper', () => {
|
|
20
|
+
class MockedBrandSwitchControllerSlimmer extends BrandSwitchControllerSlimmer {
|
|
21
|
+
constructor() {
|
|
22
|
+
super();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
__decorate([
|
|
26
|
+
MapToComponentField({ writable: true })
|
|
27
|
+
], MockedBrandSwitchControllerSlimmer.prototype, "currentBranding", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
MapToComponentField()
|
|
30
|
+
], MockedBrandSwitchControllerSlimmer.prototype, "host", void 0);
|
|
31
|
+
class MockedComponent {
|
|
32
|
+
constructor() {
|
|
33
|
+
this.currentBranding = 'heartland';
|
|
34
|
+
this.controller = new MockedBrandSwitchControllerSlimmer();
|
|
35
|
+
}
|
|
36
|
+
connectedCallback() {
|
|
37
|
+
mockedComponentConnectedCallbackMethod();
|
|
38
|
+
}
|
|
39
|
+
disconnectedCallback() {
|
|
40
|
+
mockedComponentDisconnectedCallbackMethod();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
__decorate([
|
|
44
|
+
InjectVegaSlimmer()
|
|
45
|
+
], MockedComponent.prototype, "controller", void 0);
|
|
46
|
+
test('should get brand name when apply branding to "gp"', () => {
|
|
47
|
+
const mockedComponent = new MockedComponent();
|
|
48
|
+
const host = new MockHTMLElement('body', 'div');
|
|
49
|
+
mockedComponent.host = host;
|
|
50
|
+
mockedComponent.connectedCallback();
|
|
51
|
+
expect(mockedComponentConnectedCallbackMethod).toBeCalledTimes(1);
|
|
52
|
+
expect(mockedComponent.currentBranding).toEqual('heartland');
|
|
53
|
+
VegaInternalThemeManager.applyBranding('gp');
|
|
54
|
+
expect(mockedComponent.currentBranding).toEqual('gp');
|
|
55
|
+
});
|
|
56
|
+
test('should get brand name when apply branding to "genius"', () => {
|
|
57
|
+
const mockedComponent = new MockedComponent();
|
|
58
|
+
const host = new MockHTMLElement('body', 'div');
|
|
59
|
+
mockedComponent.host = host;
|
|
60
|
+
mockedComponent.connectedCallback();
|
|
61
|
+
expect(mockedComponentConnectedCallbackMethod).toBeCalledTimes(1);
|
|
62
|
+
VegaInternalThemeManager.applyBranding('genius');
|
|
63
|
+
expect(mockedComponent.currentBranding).toEqual('genius');
|
|
64
|
+
});
|
|
65
|
+
test('should not get brand name when disconnectedCallback is called', () => {
|
|
66
|
+
const mockedComponent = new MockedComponent();
|
|
67
|
+
const host = new MockHTMLElement('body', 'div');
|
|
68
|
+
mockedComponent.host = host;
|
|
69
|
+
mockedComponent.disconnectedCallback();
|
|
70
|
+
expect(mockedComponentDisconnectedCallbackMethod).toBeCalledTimes(1);
|
|
71
|
+
VegaInternalThemeManager.applyBranding('genius');
|
|
72
|
+
expect(mockedComponent.currentBranding).toEqual('heartland');
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
});
|
|
@@ -3,30 +3,30 @@ import { LightModeShadowTokens } from '../../../constants/tokens/themes/v2-new-b
|
|
|
3
3
|
import { LightModeColorTokens } from '../../../constants/tokens/themes/v2-new-brand/light-mode-color-tokens';
|
|
4
4
|
import { Observer } from '../../change-manager/observer/observer';
|
|
5
5
|
import ChangeManager from '../../change-manager/change-manager';
|
|
6
|
-
import { DARK_MODE_CHANGE,
|
|
6
|
+
import { DARK_MODE_CHANGE, GP_BRAND_CHANGE, } from '../../change-manager/subject/static-subject/static-subject-title';
|
|
7
7
|
import { VegaInternalThemeManager } from '../internal-theme-manager';
|
|
8
8
|
import { StyleControllerAbstract } from './style-controller.abstract';
|
|
9
9
|
/**
|
|
10
|
-
* Vega components
|
|
10
|
+
* Vega components brand style controller
|
|
11
11
|
*/
|
|
12
|
-
class
|
|
12
|
+
class BrandStyleController extends StyleControllerAbstract {
|
|
13
13
|
constructor() {
|
|
14
14
|
super();
|
|
15
15
|
this.tokens = {};
|
|
16
|
-
this.themeStyleContainerKey = 'vega-
|
|
16
|
+
this.themeStyleContainerKey = 'vega-brand-theme';
|
|
17
17
|
this.observer = new Observer(this.isAcceptObserver.bind(this), (options) => {
|
|
18
|
-
if (options) {
|
|
19
|
-
this.
|
|
18
|
+
if (options === 'heartland') {
|
|
19
|
+
this.reset(this.themeStyleContainerKey);
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
|
-
this.
|
|
22
|
+
this.generateThemeStyle();
|
|
23
23
|
}
|
|
24
24
|
const isDarkMode = VegaInternalThemeManager.isDarkMode();
|
|
25
25
|
if (isDarkMode) {
|
|
26
26
|
ChangeManager.notify(DARK_MODE_CHANGE, isDarkMode);
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
ChangeManager.register(
|
|
29
|
+
ChangeManager.register(GP_BRAND_CHANGE, this.observer);
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* It generates a CSS style for light mode to override the style.
|
|
@@ -47,4 +47,4 @@ class NewBrandStyleController extends StyleControllerAbstract {
|
|
|
47
47
|
return true;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
export const
|
|
50
|
+
export const VegaBrandStyleController = new BrandStyleController();
|
|
@@ -55,7 +55,7 @@ class DarkModeStyleController extends StyleControllerAbstract {
|
|
|
55
55
|
generateThemeStyle() {
|
|
56
56
|
const newBrandTokens = Object.assign(NewBrandingDarkModeColorTokens, NewBrandingDarkModeBorderTokens, NewBrandingDarkModeRingTokens, NewBrandingDarkModeShadowTokens);
|
|
57
57
|
const oldTokens = Object.assign(DarkModeColorTokens, DarkModeBorderTokens, DarkModeRingTokens, DarkModeShadowTokens);
|
|
58
|
-
this.darkModeColorAllTokens = Object.assign(VegaInternalThemeManager.
|
|
58
|
+
this.darkModeColorAllTokens = Object.assign(VegaInternalThemeManager.getBranding() === 'heartland' ? oldTokens : newBrandTokens, CustomDarkModeColorTokens, this.dynamicCustomDarkModeColor);
|
|
59
59
|
const keys = Object.keys(this.darkModeColorAllTokens);
|
|
60
60
|
this.getStyleContainer(this.themeStyleContainerKey).innerHTML = `
|
|
61
61
|
html.dark {
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { VegaColorSchemaOverridingController } from './controllers/color-schema-overriding-controller';
|
|
2
2
|
import './controllers/dark-mode-style-controller';
|
|
3
3
|
import ChangeManager from '../change-manager/change-manager';
|
|
4
|
-
import { DARK_MODE_CHANGE,
|
|
5
|
-
import './controllers/
|
|
4
|
+
import { DARK_MODE_CHANGE, GP_BRAND_CHANGE, } from '../change-manager/subject/static-subject/static-subject-title';
|
|
5
|
+
import './controllers/brand-style-controller';
|
|
6
6
|
/**
|
|
7
7
|
* Vega components controller to control the internal theme manager
|
|
8
8
|
*/
|
|
9
9
|
class InternalThemeManager {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.currentBranding = 'heartland';
|
|
12
|
+
}
|
|
10
13
|
/**
|
|
11
14
|
* It takes the colors you passed in, parses them into the correct format, and then applies them to the theme
|
|
12
15
|
*
|
|
@@ -50,19 +53,19 @@ class InternalThemeManager {
|
|
|
50
53
|
/**
|
|
51
54
|
* This function return the new brand name.
|
|
52
55
|
*
|
|
53
|
-
* @returns {
|
|
56
|
+
* @returns {BrandOptions} return the new brand options.
|
|
54
57
|
*/
|
|
55
|
-
|
|
56
|
-
return this.
|
|
58
|
+
getBranding() {
|
|
59
|
+
return this.currentBranding;
|
|
57
60
|
}
|
|
58
61
|
/**
|
|
59
|
-
* This function switches the Vega theme to a
|
|
62
|
+
* This function switches the Vega theme to a brand theme based on the provided options.
|
|
60
63
|
*
|
|
61
|
-
* @param {
|
|
64
|
+
* @param {BrandOptions} options - The options includes 'gp', 'genius' and 'heartland' options
|
|
62
65
|
*/
|
|
63
66
|
applyBranding(options) {
|
|
64
|
-
this.
|
|
65
|
-
ChangeManager.notify(
|
|
67
|
+
this.currentBranding = options;
|
|
68
|
+
ChangeManager.notify(GP_BRAND_CHANGE, options);
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
71
|
export const VegaInternalThemeManager = new InternalThemeManager();
|
|
@@ -567,16 +567,16 @@ describe('New Brand Theme', () => {
|
|
|
567
567
|
it('should enable the new brand theme when set useNewColor: true', () => {
|
|
568
568
|
var _a;
|
|
569
569
|
VegaThemeManager.applyBranding('gp');
|
|
570
|
-
expect((_a = document.head.querySelector('#vega-
|
|
571
|
-
VegaThemeManager.applyBranding(
|
|
572
|
-
expect(document.head.querySelector('#vega-
|
|
570
|
+
expect((_a = document.head.querySelector('#vega-brand-theme')) === null || _a === void 0 ? void 0 : _a.textContent).toMatchSnapshot();
|
|
571
|
+
VegaThemeManager.applyBranding('heartland');
|
|
572
|
+
expect(document.head.querySelector('#vega-brand-theme')).toBeNull();
|
|
573
573
|
});
|
|
574
574
|
it('should enable the dark mode with the new brand theme', () => {
|
|
575
575
|
var _a, _b;
|
|
576
576
|
VegaThemeManager.applyBranding('gp');
|
|
577
577
|
VegaThemeManager.toggleDarkMode(true);
|
|
578
578
|
expect((_a = document.head.querySelector('#vegaDarkModeStyle')) === null || _a === void 0 ? void 0 : _a.textContent).toMatchSnapshot();
|
|
579
|
-
VegaThemeManager.applyBranding(
|
|
579
|
+
VegaThemeManager.applyBranding('heartland');
|
|
580
580
|
expect((_b = document.head.querySelector('#vegaDarkModeStyle')) === null || _b === void 0 ? void 0 : _b.textContent).toMatchSnapshot();
|
|
581
581
|
});
|
|
582
582
|
});
|
|
@@ -55,9 +55,9 @@ class ThemeManager {
|
|
|
55
55
|
return VegaInternalThemeManager.isDarkMode();
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* This function switches the Vega theme to a
|
|
58
|
+
* This function switches the Vega theme to a brand theme based on the provided options.
|
|
59
59
|
*
|
|
60
|
-
* @param {
|
|
60
|
+
* @param {BrandOptions} options - The options includes 'gp', 'genius' and 'heartland' options
|
|
61
61
|
* @vegaVersion 2.47.0
|
|
62
62
|
*/
|
|
63
63
|
applyBranding(options) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { F as FeatureFlag } from './feature-flag-controller-690eac1d.js';
|
|
2
|
-
import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager, c as VegaDialog, d as VegaEventManager, e as VegaZIndexManager, f as VegaSkeletonLoader } from './vega-skeleton-loader-controller-
|
|
2
|
+
import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager, c as VegaDialog, d as VegaEventManager, e as VegaZIndexManager, f as VegaSkeletonLoader } from './vega-skeleton-loader-controller-c2a8bd27.js';
|
|
3
3
|
import { M as MapToComponentMethod, V as VegaSlimmer, s as setVegaLogLevel, G as GlobalSlimmersRegistry } from './global-slimmer-registry-17c4efd4.js';
|
|
4
4
|
import { v as vegaEnvManager } from './vega-env-manager-8f8dc473.js';
|
|
5
5
|
import { V as VegaIconManager } from './icon-manager-638dd4d4.js';
|
|
6
6
|
import './wait-for-vega-handler-b18eb955.js';
|
|
7
7
|
import './ui-ed1283bb.js';
|
|
8
|
-
import { V as VegaInternalTranslation, a as VegaTranslation, s as staticTranslations } from './translation-
|
|
9
|
-
import { V as VegaRTEContent } from './content-state-
|
|
8
|
+
import { V as VegaInternalTranslation, a as VegaTranslation, s as staticTranslations } from './translation-cf7f020a.js';
|
|
9
|
+
import { V as VegaRTEContent } from './content-state-7437e069.js';
|
|
10
10
|
import { T as TypographyUrls } from './typography-396de03f.js';
|
|
11
11
|
import { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-cc497bec.js';
|
|
12
12
|
import { w as waitForVega } from './index-96374234.js';
|
|
13
|
-
import { U as UPDATE_TRANSLATION } from './static-subject-title-
|
|
13
|
+
import { U as UPDATE_TRANSLATION } from './static-subject-title-ca83d6b6.js';
|
|
14
14
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
15
15
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
16
16
|
import { f as forceUpdate } from './index-187f71d1.js';
|
|
@@ -312,7 +312,7 @@ function injectVegaRichTextEditorClassIntoGlobal() {
|
|
|
312
312
|
* Inject VegaPublicValidationRules to global as a public api
|
|
313
313
|
*/
|
|
314
314
|
function injectVegaPublicValidationRules() {
|
|
315
|
-
void import('./public-rules-
|
|
315
|
+
void import('./public-rules-cfc196c9.js').then((module) => {
|
|
316
316
|
Object.entries(module).forEach(([name, value]) => {
|
|
317
317
|
globalThis[name] = value;
|
|
318
318
|
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
2
|
+
import { G as GP_BRAND_CHANGE } from './static-subject-title-ca83d6b6.js';
|
|
3
|
+
import { O as Observer } from './observer-3959f9dd.js';
|
|
4
|
+
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
5
|
+
|
|
6
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
+
};
|
|
12
|
+
/** The `BrandSwitchControllerSlimmer` class monitors brand changes and updates the color, logo and footer content accordingly. */
|
|
13
|
+
class BrandSwitchControllerSlimmer extends VegaSlimmer {
|
|
14
|
+
/**
|
|
15
|
+
* Component lifecycle - [connectedCallback]
|
|
16
|
+
* Register an observer to watch for current branding updates, which will cause the component to update.
|
|
17
|
+
*/
|
|
18
|
+
connectedCallback() {
|
|
19
|
+
this.observer = new Observer(this.isAcceptObserver.bind(this), (currentBranding) => {
|
|
20
|
+
this.currentBranding = currentBranding;
|
|
21
|
+
});
|
|
22
|
+
ChangeManager.register(GP_BRAND_CHANGE, this.observer);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* cancel dark mode observer when disconnectedCallback
|
|
26
|
+
*/
|
|
27
|
+
disconnectResizeObserver() {
|
|
28
|
+
ChangeManager.unregister(GP_BRAND_CHANGE, this.observer);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Determines whether the observer should accept changes.
|
|
32
|
+
*
|
|
33
|
+
* @returns {boolean} Always returns true in the current implementation.
|
|
34
|
+
*/
|
|
35
|
+
isAcceptObserver() {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
__decorate([
|
|
40
|
+
MapToComponentField({ writable: true })
|
|
41
|
+
], BrandSwitchControllerSlimmer.prototype, "currentBranding", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
MapToComponentMethod('connectedCallback')
|
|
44
|
+
], BrandSwitchControllerSlimmer.prototype, "connectedCallback", null);
|
|
45
|
+
__decorate([
|
|
46
|
+
MapToComponentMethod('disconnectedCallback')
|
|
47
|
+
], BrandSwitchControllerSlimmer.prototype, "disconnectResizeObserver", null);
|
|
48
|
+
|
|
49
|
+
export { BrandSwitchControllerSlimmer as B };
|
|
@@ -4,7 +4,7 @@ import { a as VegaInternalRichTextEditorFlushChanges, b as VegaInternalRichTextE
|
|
|
4
4
|
import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
|
|
5
5
|
import { i as isNonNullable } from './type-guard-158f6d7a.js';
|
|
6
6
|
import { g as generateUUID } from './create-public-api-runtime-metrics-slimmer-8ada793f.js';
|
|
7
|
-
import { V as VegaInternalThemeManager } from './dark-mode-style-controller-
|
|
7
|
+
import { V as VegaInternalThemeManager } from './dark-mode-style-controller-2ada8e22.js';
|
|
8
8
|
|
|
9
9
|
var InternalAnnotationTypeEnum;
|
|
10
10
|
(function (InternalAnnotationTypeEnum) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
2
|
-
import { D as DARK_MODE_CHANGE } from './static-subject-title-
|
|
2
|
+
import { D as DARK_MODE_CHANGE } from './static-subject-title-ca83d6b6.js';
|
|
3
3
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
4
4
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
5
5
|
|
package/dist/esm/{dark-mode-style-controller-e5915f26.js → dark-mode-style-controller-2ada8e22.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DARK_MODE_CHANGE, G as
|
|
1
|
+
import { D as DARK_MODE_CHANGE, G as GP_BRAND_CHANGE } from './static-subject-title-ca83d6b6.js';
|
|
2
2
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
3
3
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
4
4
|
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-9943807e.js';
|
|
@@ -3294,26 +3294,26 @@ class StyleControllerAbstract {
|
|
|
3294
3294
|
}
|
|
3295
3295
|
|
|
3296
3296
|
/**
|
|
3297
|
-
* Vega components
|
|
3297
|
+
* Vega components brand style controller
|
|
3298
3298
|
*/
|
|
3299
|
-
class
|
|
3299
|
+
class BrandStyleController extends StyleControllerAbstract {
|
|
3300
3300
|
constructor() {
|
|
3301
3301
|
super();
|
|
3302
3302
|
this.tokens = {};
|
|
3303
|
-
this.themeStyleContainerKey = 'vega-
|
|
3303
|
+
this.themeStyleContainerKey = 'vega-brand-theme';
|
|
3304
3304
|
this.observer = new Observer(this.isAcceptObserver.bind(this), (options) => {
|
|
3305
|
-
if (options) {
|
|
3306
|
-
this.
|
|
3305
|
+
if (options === 'heartland') {
|
|
3306
|
+
this.reset(this.themeStyleContainerKey);
|
|
3307
3307
|
}
|
|
3308
3308
|
else {
|
|
3309
|
-
this.
|
|
3309
|
+
this.generateThemeStyle();
|
|
3310
3310
|
}
|
|
3311
3311
|
const isDarkMode = VegaInternalThemeManager.isDarkMode();
|
|
3312
3312
|
if (isDarkMode) {
|
|
3313
3313
|
ChangeManager.notify(DARK_MODE_CHANGE, isDarkMode);
|
|
3314
3314
|
}
|
|
3315
3315
|
});
|
|
3316
|
-
ChangeManager.register(
|
|
3316
|
+
ChangeManager.register(GP_BRAND_CHANGE, this.observer);
|
|
3317
3317
|
}
|
|
3318
3318
|
/**
|
|
3319
3319
|
* It generates a CSS style for light mode to override the style.
|
|
@@ -3334,12 +3334,15 @@ class NewBrandStyleController extends StyleControllerAbstract {
|
|
|
3334
3334
|
return true;
|
|
3335
3335
|
}
|
|
3336
3336
|
}
|
|
3337
|
-
new
|
|
3337
|
+
new BrandStyleController();
|
|
3338
3338
|
|
|
3339
3339
|
/**
|
|
3340
3340
|
* Vega components controller to control the internal theme manager
|
|
3341
3341
|
*/
|
|
3342
3342
|
class InternalThemeManager {
|
|
3343
|
+
constructor() {
|
|
3344
|
+
this.currentBranding = 'heartland';
|
|
3345
|
+
}
|
|
3343
3346
|
/**
|
|
3344
3347
|
* It takes the colors you passed in, parses them into the correct format, and then applies them to the theme
|
|
3345
3348
|
*
|
|
@@ -3383,19 +3386,19 @@ class InternalThemeManager {
|
|
|
3383
3386
|
/**
|
|
3384
3387
|
* This function return the new brand name.
|
|
3385
3388
|
*
|
|
3386
|
-
* @returns {
|
|
3389
|
+
* @returns {BrandOptions} return the new brand options.
|
|
3387
3390
|
*/
|
|
3388
|
-
|
|
3389
|
-
return this.
|
|
3391
|
+
getBranding() {
|
|
3392
|
+
return this.currentBranding;
|
|
3390
3393
|
}
|
|
3391
3394
|
/**
|
|
3392
|
-
* This function switches the Vega theme to a
|
|
3395
|
+
* This function switches the Vega theme to a brand theme based on the provided options.
|
|
3393
3396
|
*
|
|
3394
|
-
* @param {
|
|
3397
|
+
* @param {BrandOptions} options - The options includes 'gp', 'genius' and 'heartland' options
|
|
3395
3398
|
*/
|
|
3396
3399
|
applyBranding(options) {
|
|
3397
|
-
this.
|
|
3398
|
-
ChangeManager.notify(
|
|
3400
|
+
this.currentBranding = options;
|
|
3401
|
+
ChangeManager.notify(GP_BRAND_CHANGE, options);
|
|
3399
3402
|
}
|
|
3400
3403
|
}
|
|
3401
3404
|
const VegaInternalThemeManager = new InternalThemeManager();
|
|
@@ -3444,7 +3447,7 @@ class DarkModeStyleController extends StyleControllerAbstract {
|
|
|
3444
3447
|
generateThemeStyle() {
|
|
3445
3448
|
const newBrandTokens = Object.assign(DarkModeColorTokens$1, DarkModeBorderTokens$1, DarkModeShadowTokens$1, DarkModeRingTokens$1);
|
|
3446
3449
|
const oldTokens = Object.assign(DarkModeColorTokens, DarkModeBorderTokens, DarkModeRingTokens, DarkModeShadowTokens);
|
|
3447
|
-
this.darkModeColorAllTokens = Object.assign(VegaInternalThemeManager.
|
|
3450
|
+
this.darkModeColorAllTokens = Object.assign(VegaInternalThemeManager.getBranding() === 'heartland' ? oldTokens : newBrandTokens, CustomDarkModeColorTokens, this.dynamicCustomDarkModeColor);
|
|
3448
3451
|
const keys = Object.keys(this.darkModeColorAllTokens);
|
|
3449
3452
|
this.getStyleContainer(this.themeStyleContainerKey).innerHTML = `
|
|
3450
3453
|
html.dark {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as isBorderColorTokenType, b as BorderColors, e as BorderColorMap, k as isShadowsTokenType, f as Shadows, g as ShadowMap, l as isBorderTokenType, m as Borders, n as BorderMap, o as isSpacingTokenType, p as isBorderRadiusTokenType, q as isBackgroundColorTokenType, r as isTextColorTokenType, s as isBreakpointsTokenType, h as Spacing, t as isBorderStyleType, B as BorderRadius, C as Colors, u as isTypographyTokenType } from './type-guard-158f6d7a.js';
|
|
2
2
|
import { B as Breakpoints } from './breakpoints-d9faf11c.js';
|
|
3
3
|
import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
|
|
4
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
4
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-ae799f25.js';
|
|
5
5
|
import { a as TypographyKeys } from './typography-396de03f.js';
|
|
6
6
|
import { S as StateVariantFormatter, s as stateBackgroundColorFormatter } from './state-background-color-formatter-121ae7d3.js';
|
|
7
7
|
import { a as BorderStyle } from './ui-8424715a.js';
|
package/dist/esm/{element-appender-slimmer-16eaeb31.js → element-appender-slimmer-0a0b20e9.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c as MapToComponentField, I as InjectVegaSlimmer, V as VegaSlimmer, L as LogUtility, M as MapToComponentMethod } from './global-slimmer-registry-17c4efd4.js';
|
|
2
2
|
import { f as findParent, c as isElementVisible, i as isParent } from './ui-ed1283bb.js';
|
|
3
|
-
import { I as InternalVegaZIndexManager } from './vega-skeleton-loader-controller-
|
|
3
|
+
import { I as InternalVegaZIndexManager } from './vega-skeleton-loader-controller-c2a8bd27.js';
|
|
4
4
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
5
5
|
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-15a84d26.js';
|
|
6
6
|
import { P as Placements, A as Alignments } from './ui-8424715a.js';
|
|
7
7
|
import { A as isTranslocationType } from './type-guard-158f6d7a.js';
|
|
8
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
8
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-ae799f25.js';
|
|
9
9
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
10
|
-
import { S as SHADOW_ROOT_ELEMENT_SCROLLING } from './static-subject-title-
|
|
10
|
+
import { S as SHADOW_ROOT_ELEMENT_SCROLLING } from './static-subject-title-ca83d6b6.js';
|
|
11
11
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
12
12
|
import { d as domNodeSubjectFactory } from './dom-node-subject-factory-f77cf9cc.js';
|
|
13
13
|
import { p as VegaInternalNestEAHierarchyTreeChange } from './vega-internal-event-id-7d1ff289.js';
|
|
@@ -2,13 +2,13 @@ import { V as VegaSlimmer, I as InjectVegaSlimmer, c as MapToComponentField, M a
|
|
|
2
2
|
import { c as camelToDashCase } from './string-be824360.js';
|
|
3
3
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
4
4
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
5
|
-
import { U as UPDATE_TRANSLATION, c as FORM_FIELD_PENDING_VALID_CHANGE, d as FORM_FIELD_ELEMENT_DISCONNECTED, b as FORM_ELEMENT_VALUE_CHANGE, e as FORM_RESET_OPERATION_TRIGGERED, F as FORM_SUBMIT, f as FIELD_ERROR_MESSAGE_CHANGE, g as FORM_ELEMENT_VALIDATE } from './static-subject-title-
|
|
5
|
+
import { U as UPDATE_TRANSLATION, c as FORM_FIELD_PENDING_VALID_CHANGE, d as FORM_FIELD_ELEMENT_DISCONNECTED, b as FORM_ELEMENT_VALUE_CHANGE, e as FORM_RESET_OPERATION_TRIGGERED, F as FORM_SUBMIT, f as FIELD_ERROR_MESSAGE_CHANGE, g as FORM_ELEMENT_VALIDATE } from './static-subject-title-ca83d6b6.js';
|
|
6
6
|
import { f as findParent, c as isElementVisible } from './ui-ed1283bb.js';
|
|
7
7
|
import { i as isAsyncFunction, g as generateUUID } from './create-public-api-runtime-metrics-slimmer-8ada793f.js';
|
|
8
8
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
9
9
|
import { d as domNodeSubjectFactory } from './dom-node-subject-factory-f77cf9cc.js';
|
|
10
10
|
import { c as VegaInternalFieldErrorStateChange, d as VegaInternalValid } from './vega-internal-event-id-7d1ff289.js';
|
|
11
|
-
import { V as VegaInternalTranslation } from './translation-
|
|
11
|
+
import { V as VegaInternalTranslation } from './translation-cf7f020a.js';
|
|
12
12
|
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-15a84d26.js';
|
|
13
13
|
import { I as InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
|
|
14
14
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-715dccf9.js';
|
package/dist/esm/{image-annotation-action-de567e61.js → image-annotation-action-51248df9.js}
RENAMED
|
@@ -3,8 +3,8 @@ import { c as MapToComponentField, V as VegaSlimmer } from './global-slimmer-reg
|
|
|
3
3
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-715dccf9.js';
|
|
4
4
|
import { a as VegaClick, M as VegaPopoverShow, N as VegaPopoverHide, f as VegaChange } from './dom-node-subject-factory-f77cf9cc.js';
|
|
5
5
|
import { V as VegaInternalIconManager } from './internal-icon-manager-58cf8aa6.js';
|
|
6
|
-
import { T as TextSplittableAction, j as TextColorAnnotation, k as RTE_TEXT_COLORS, f as RTETextNode, h as NodeAnnotationTypeEnum, A as AnnotationAction, i as ImageAnnotation } from './content-state-
|
|
7
|
-
import { a as VegaDarkModeStyleController } from './dark-mode-style-controller-
|
|
6
|
+
import { T as TextSplittableAction, j as TextColorAnnotation, k as RTE_TEXT_COLORS, f as RTETextNode, h as NodeAnnotationTypeEnum, A as AnnotationAction, i as ImageAnnotation } from './content-state-7437e069.js';
|
|
7
|
+
import { a as VegaDarkModeStyleController } from './dark-mode-style-controller-2ada8e22.js';
|
|
8
8
|
|
|
9
9
|
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10
10
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|