@globalpayments/vega 2.63.0 → 2.64.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-8f5fa42a.js → app-globals-a190cd2d.js} +89 -17
- package/dist/cjs/{brand-switch-state-controller-slimmer-b83a4596.js → brand-switch-state-controller-slimmer-5efa1b24.js} +1 -1
- package/dist/cjs/{code-block-eb66d852.js → code-block-417a131b.js} +22 -18
- package/dist/cjs/{component-global-style-slimmer-b0b4b997.js → component-global-style-slimmer-d5216fa7.js} +4 -0
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-62cdf04c.js → component-value-history-controller-slimmer.abstract-0c4d1453.js} +3 -3
- package/dist/cjs/country-flags-d4928e55.js +2403 -0
- package/dist/cjs/{dark-mode-state-controller-slimmer-17022f93.js → dark-mode-state-controller-slimmer-add5d8a8.js} +1 -1
- package/dist/cjs/{dark-mode-style-controller-ab0703e1.js → dark-mode-style-controller-41c94aac.js} +8 -1
- package/dist/cjs/{design-token-76bb47bd.js → design-token-ae0de304.js} +1 -1
- package/dist/cjs/{dto-renderer-manager-f3894490.js → dto-renderer-manager-6d338e46.js} +87 -6
- package/dist/cjs/{element-appender-slimmer-e8dac628.js → element-appender-slimmer-5a23e722.js} +4 -4
- package/dist/cjs/{form-field-controller-slimmer-cc6e53a4.js → form-field-controller-slimmer-cceb5c79.js} +4 -4
- package/dist/cjs/{image-annotation-action-a628ec9b.js → image-annotation-action-9785bc59.js} +4 -4
- package/dist/cjs/{index-00ba6623.js → index-58ea899e.js} +1 -0
- package/dist/cjs/{index-5505e8dd.js → index-9a92abce.js} +1 -1
- package/dist/cjs/index.cjs.js +15 -13
- package/dist/cjs/{language-extension-20a1dba5.js → language-extension-abbc251a.js} +7 -4
- package/dist/cjs/{legend-input-processor-b1f323fa.js → legend-input-processor-27c65353.js} +4 -4
- package/dist/cjs/loader.cjs.js +13 -12
- package/dist/cjs/{public-rules-5d0f3a5f.js → public-rules-ffc5db13.js} +8 -6
- package/dist/cjs/{range-cfc45f9e.js → range-37161c00.js} +1 -1
- package/dist/cjs/{responsive-format-facade-7e933525.js → responsive-format-facade-b20dad44.js} +5 -4
- package/dist/cjs/{rich-text-editor-required-rule-72170c10.js → rich-text-editor-required-rule-604ea2b9.js} +1 -1
- package/dist/cjs/{static-subject-title-85732e0f.js → static-subject-title-7e7d791a.js} +0 -2
- package/dist/cjs/{string-input-formatter-slimmer-f6c7a255.js → string-input-formatter-slimmer-8445abc9.js} +2 -2
- package/dist/cjs/{style-formatter-702df81e.js → style-formatter-56751462.js} +1 -1
- package/dist/cjs/{sub-state-notify-slimmer-bb64fcfc.js → sub-state-notify-slimmer-52fa23af.js} +1 -1
- package/dist/cjs/{sub-state-observer-slimmer-84175d61.js → sub-state-observer-slimmer-90c26113.js} +1 -1
- package/dist/cjs/{token-extension-23ccff1d.js → token-extension-46821c19.js} +3 -3
- package/dist/cjs/{translation-cde4dce3.js → translation-ecfc704a.js} +1 -1
- package/dist/cjs/{translation-slimmer-af399096.js → translation-slimmer-40a3536d.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +11 -10
- package/dist/cjs/vega-app-footer.cjs.entry.js +6 -4
- package/dist/cjs/vega-app-header-button.cjs.entry.js +12 -11
- package/dist/cjs/vega-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/vega-banner.cjs.entry.js +1 -1
- package/dist/cjs/vega-bar-chart.cjs.entry.js +3 -3
- package/dist/cjs/vega-box.cjs.entry.js +19 -12
- package/dist/cjs/vega-brand-logo.cjs.entry.js +6 -4
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +3 -2
- package/dist/cjs/vega-button-circle.cjs.entry.js +11 -10
- package/dist/cjs/vega-button-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-button-link.cjs.entry.js +1 -1
- package/dist/cjs/vega-button.cjs.entry.js +10 -9
- package/dist/cjs/vega-calendar_4.cjs.entry.js +32 -23
- package/dist/cjs/vega-card.cjs.entry.js +11 -10
- package/dist/cjs/vega-carousel.cjs.entry.js +10 -9
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-chip.cjs.entry.js +12 -11
- package/dist/cjs/vega-code-block.cjs.entry.js +263 -158
- package/dist/cjs/vega-color-picker.cjs.entry.js +6 -6
- package/dist/cjs/vega-combo-box.cjs.entry.js +6 -6
- package/dist/cjs/vega-counter-badge.cjs.entry.js +1 -1
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +16 -15
- package/dist/cjs/vega-dialog_2.cjs.entry.js +12 -11
- package/dist/cjs/vega-divider.cjs.entry.js +12 -11
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +15 -14
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-error.cjs.entry.js +2 -2
- package/dist/cjs/vega-field-label.cjs.entry.js +1 -1
- package/dist/cjs/vega-file-uploader.cjs.entry.js +7 -7
- package/dist/cjs/vega-flag-icon.cjs.entry.js +14 -13
- package/dist/cjs/vega-flex.cjs.entry.js +13 -12
- package/dist/cjs/vega-font.cjs.entry.js +11 -10
- package/dist/cjs/vega-form.cjs.entry.js +90 -16
- package/dist/cjs/vega-grid.cjs.entry.js +11 -10
- package/dist/cjs/vega-hint.cjs.entry.js +1 -1
- package/dist/cjs/vega-icon.cjs.entry.js +11 -10
- package/dist/cjs/vega-image-uploader.cjs.entry.js +28 -18
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-numeric.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +11 -10
- package/dist/cjs/vega-input-range.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-select.cjs.entry.js +13 -12
- package/dist/cjs/vega-input.cjs.entry.js +8 -8
- package/dist/cjs/{vega-internal-event-id-9647aaf8.js → vega-internal-event-id-dfd8b802.js} +2 -0
- package/dist/cjs/vega-item-toggle.cjs.entry.js +1 -1
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +15 -14
- package/dist/cjs/vega-line-chart.cjs.entry.js +3 -3
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +11 -10
- package/dist/cjs/vega-nonce-manager-f927497f.js +103 -0
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +2 -2
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +5 -5
- package/dist/cjs/vega-pagination.cjs.entry.js +11 -10
- package/dist/cjs/vega-pie-chart.cjs.entry.js +2 -2
- package/dist/cjs/vega-popover_2.cjs.entry.js +12 -11
- package/dist/cjs/vega-progress-tracker.cjs.entry.js +1 -1
- package/dist/cjs/vega-radio_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +10 -9
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +27 -27
- package/dist/cjs/vega-section-title.cjs.entry.js +1 -1
- package/dist/cjs/vega-segment-control.cjs.entry.js +1 -1
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +14 -13
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +13 -12
- package/dist/cjs/vega-signature-capture.cjs.entry.js +21 -26
- package/dist/cjs/vega-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/vega-slot-container.cjs.entry.js +1 -1
- package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-table_8.cjs.entry.js +14 -13
- package/dist/cjs/vega-text.cjs.entry.js +1 -1
- package/dist/cjs/vega-textarea.cjs.entry.js +6 -6
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +14 -13
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +6 -6
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +11 -10
- package/dist/cjs/vega.cjs.js +13 -12
- package/dist/cjs/{y-axis-input-processor-19a07af5.js → y-axis-input-processor-9fbfd5e7.js} +1 -1
- package/dist/collection/components/vega-box/slimmers/controllers/vega-box-responsive-style-controller.js +4 -0
- package/dist/collection/components/vega-box/slimmers/controllers/vega-box-state-styles-controller.js +4 -0
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-preview-popover-renderer.js +7 -6
- package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.js +6 -7
- package/dist/collection/components/vega-calendar/vega-calendar-event/slimmers/renderers/vega-calendar-event-renderer.js +2 -1
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.js +17 -6
- package/dist/collection/components/vega-code-block/slimmers/controllers/code-input-paste.abstract.js +65 -0
- package/dist/collection/components/vega-code-block/slimmers/controllers/vega-code-block-input-controller.js +3 -75
- package/dist/collection/components/vega-code-block/slimmers/controllers/vega-code-block-input-paste-controller.js +109 -0
- package/dist/collection/components/vega-code-block/vega-code-block.js +5 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ac.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ad.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ae.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/af.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ag.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ai.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/al.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/am.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ao.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ar.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/as.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/at.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/au.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/aw.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ax.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/az.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ba.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bb.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bd.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/be.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bf.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bg.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bh.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bi.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bj.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bl.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bm.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bn.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bo.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bq.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/br.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bs.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bt.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bw.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/by.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/bz.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ca.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/cc.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/cd.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/cf.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/cg.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ch.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ci.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ck.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/cl.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/cm.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/cn.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/co.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/cr.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/cu.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/cv.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/cw.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/cx.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/cy.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/cz.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/de.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/dj.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/dk.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/dm.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/do.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/dz.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ec.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ee.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/eg.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/eh.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/er.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/es.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/et.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/fi.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/fj.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/fk.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/fm.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/fo.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/fr.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ga.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gb.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gd.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ge.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gf.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gg.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gh.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gi.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gl.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gm.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gn.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gp.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gq.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gr.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gt.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gu.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gw.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/gy.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/hk.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/hn.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/hr.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ht.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/hu.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/id.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ie.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/il.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/im.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/in.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/io.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/iq.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ir.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/is.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/it.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/je.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/jm.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/jo.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/jp.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ke.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/kg.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/kh.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ki.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/km.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/kn.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/kp.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/kr.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/kw.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ky.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/kz.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/la.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/lb.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/lc.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/li.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/lk.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/lr.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ls.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/lt.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/lu.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/lv.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ly.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ma.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mc.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/md.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/me.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mf.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mg.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mh.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mk.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ml.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mm.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mn.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mo.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mp.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mq.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mr.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ms.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mt.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mu.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mv.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mw.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mx.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/my.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/mz.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/na.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/nc.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ne.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/nf.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ng.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ni.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/nl.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/no.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/np.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/nr.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/nu.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/nz.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/om.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/pa.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/pe.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/pf.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/pg.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ph.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/pk.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/pl.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/pm.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/pr.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ps.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/pt.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/pw.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/py.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/qa.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/re.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ro.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/rs.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ru.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/rw.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sa.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sb.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sc.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sd.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/se.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sg.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sh.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/si.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sj.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sk.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sl.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sm.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sn.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/so.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sr.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ss.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/st.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sv.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sx.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sy.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/sz.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ta.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/tc.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/td.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/tg.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/th.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/tj.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/tk.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/tl.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/tm.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/tn.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/to.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/tr.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/tt.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/tv.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/tw.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/tz.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ua.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ug.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/us.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/uy.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/uz.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/va.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/vc.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ve.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/vg.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/vi.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/vn.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/vu.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/wf.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ws.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/xk.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ye.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/yt.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/za.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/zm.js +1 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/zw.js +1 -1
- package/dist/collection/components/vega-flag-icon/slimmers/renderers/vega-flag-icon-renderer.js +1 -1
- package/dist/collection/components/vega-flag-icon/vega-flag-icon.css +4 -0
- package/dist/collection/components/vega-form/slimmers/renderers/native-form-renderer.js +30 -0
- package/dist/collection/components/vega-form/vega-form.js +111 -3
- package/dist/collection/components/vega-image-uploader/slimmers/controllers/vega-image-uploader-preview-controller.js +14 -5
- package/dist/collection/components/vega-input-credit-card/assets/icons.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-annotation.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +5 -7
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +3 -5
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +14 -4
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/decorator-node.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +8 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +2 -3
- package/dist/collection/components/vega-rich-text-editor/extensions/languages/language-extension.js +5 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.js +9 -5
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.js +1 -5
- package/dist/collection/components/vega-rich-text-editor/test/dto/annotations.test.js +9 -1
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/text-block.test.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +51 -40
- package/dist/collection/components/vega-signature-capture/slimmers/written-mode/controllers/written-mode-svg-controller.js +5 -7
- package/dist/collection/components/vega-signature-capture/slimmers/written-mode/renderers/written-mode-renderer.js +1 -5
- package/dist/collection/global/scripts/before-vega-load.js +21 -1
- package/dist/collection/helpers/change-manager/subject/static-subject/static-subject-title.js +0 -1
- package/dist/collection/helpers/chart/renderers/svg-renderer.js +4 -4
- package/dist/collection/helpers/csp/styles-preservator.js +71 -0
- package/dist/collection/helpers/csp/test/styles-preservator.test.js +207 -0
- package/dist/collection/helpers/csp/test/vega-nonce-manager.test.js +166 -0
- package/dist/collection/helpers/csp/vega-nonce-manager.js +97 -0
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
- package/dist/collection/helpers/public-api.js +2 -0
- package/dist/collection/helpers/slimmers/component-global-style-slimmer.js +4 -0
- package/dist/collection/helpers/slimmers/global/vega-nonce-injector-slimmer.js +54 -0
- package/dist/collection/helpers/slimmers/test/component-global-style-slimmer.test.js +41 -0
- package/dist/collection/helpers/slimmers/test/global/vega-nonce-injector-slimmer.test.js +64 -0
- package/dist/collection/helpers/theme/controllers/color-schema-overriding-controller.js +4 -0
- package/dist/collection/helpers/theme/controllers/style-controller.abstract.js +4 -0
- package/dist/collection/helpers/theme/tests/theme-manager-controller.test.js +33 -0
- package/dist/esm/{app-globals-aaff0b25.js → app-globals-b074e012.js} +89 -17
- package/dist/esm/{brand-switch-state-controller-slimmer-d6e4d217.js → brand-switch-state-controller-slimmer-05c85e6d.js} +1 -1
- package/dist/esm/{code-block-68300b47.js → code-block-a6c78bbb.js} +22 -18
- package/dist/esm/{component-global-style-slimmer-dad40b64.js → component-global-style-slimmer-5d437fdf.js} +4 -0
- package/dist/esm/{component-value-history-controller-slimmer.abstract-ac2f1bfd.js → component-value-history-controller-slimmer.abstract-d37d2df7.js} +3 -3
- package/dist/esm/country-flags-39dbfa43.js +2401 -0
- package/dist/esm/{dark-mode-state-controller-slimmer-0c7d1c77.js → dark-mode-state-controller-slimmer-f1c2c299.js} +1 -1
- package/dist/esm/{dark-mode-style-controller-3bbb32dc.js → dark-mode-style-controller-5cf1c482.js} +8 -1
- package/dist/esm/{design-token-1a36307e.js → design-token-6f9e70c4.js} +1 -1
- package/dist/esm/{dto-renderer-manager-af66bbd9.js → dto-renderer-manager-5b036e47.js} +87 -7
- package/dist/esm/{element-appender-slimmer-fe68ec2d.js → element-appender-slimmer-1d6c2960.js} +4 -4
- package/dist/esm/{form-field-controller-slimmer-f7e8845b.js → form-field-controller-slimmer-c29b345f.js} +4 -4
- package/dist/esm/{image-annotation-action-f61c2693.js → image-annotation-action-f6308cf4.js} +4 -4
- package/dist/esm/{index-057d0f70.js → index-090d31ca.js} +1 -0
- package/dist/esm/{index-7fe93427.js → index-4f26bbd0.js} +1 -1
- package/dist/esm/index.js +14 -13
- package/dist/esm/{language-extension-1ada2a9d.js → language-extension-962c427a.js} +7 -4
- package/dist/esm/{legend-input-processor-1d266967.js → legend-input-processor-5ecae3a7.js} +4 -4
- package/dist/esm/loader.js +13 -12
- package/dist/esm/{public-rules-9f62069a.js → public-rules-6fa7533f.js} +8 -6
- package/dist/esm/{range-c2eeb794.js → range-4d7aa0fd.js} +1 -1
- package/dist/esm/{responsive-format-facade-5711c77d.js → responsive-format-facade-b594fc72.js} +5 -4
- package/dist/esm/{rich-text-editor-required-rule-de738309.js → rich-text-editor-required-rule-a72374cd.js} +1 -1
- package/dist/esm/{static-subject-title-633b3474.js → static-subject-title-ca83d6b6.js} +1 -2
- package/dist/esm/{string-input-formatter-slimmer-69117deb.js → string-input-formatter-slimmer-75256a17.js} +2 -2
- package/dist/esm/{style-formatter-2479dc61.js → style-formatter-56074ede.js} +1 -1
- package/dist/esm/{sub-state-notify-slimmer-4252a90e.js → sub-state-notify-slimmer-85c658b7.js} +1 -1
- package/dist/esm/{sub-state-observer-slimmer-baa8853a.js → sub-state-observer-slimmer-e58a2485.js} +1 -1
- package/dist/esm/{token-extension-6fc5e1f5.js → token-extension-3c198013.js} +3 -3
- package/dist/esm/{translation-833d9ef4.js → translation-3d35961b.js} +1 -1
- package/dist/esm/{translation-slimmer-c83b52c1.js → translation-slimmer-d5b0d292.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +11 -10
- package/dist/esm/vega-app-footer.entry.js +6 -4
- package/dist/esm/vega-app-header-button.entry.js +12 -11
- package/dist/esm/vega-backdrop.entry.js +1 -1
- package/dist/esm/vega-banner.entry.js +1 -1
- package/dist/esm/vega-bar-chart.entry.js +3 -3
- package/dist/esm/vega-box.entry.js +19 -12
- package/dist/esm/vega-brand-logo.entry.js +6 -4
- package/dist/esm/vega-breadcrumb.entry.js +3 -2
- package/dist/esm/vega-button-circle.entry.js +11 -10
- package/dist/esm/vega-button-group_2.entry.js +4 -4
- package/dist/esm/vega-button-link.entry.js +1 -1
- package/dist/esm/vega-button.entry.js +10 -9
- package/dist/esm/vega-calendar_4.entry.js +33 -24
- package/dist/esm/vega-card.entry.js +11 -10
- package/dist/esm/vega-carousel.entry.js +10 -9
- package/dist/esm/vega-checkbox_2.entry.js +6 -6
- package/dist/esm/vega-chip.entry.js +12 -11
- package/dist/esm/vega-code-block.entry.js +263 -158
- package/dist/esm/vega-color-picker.entry.js +6 -6
- package/dist/esm/vega-combo-box.entry.js +6 -6
- package/dist/esm/vega-counter-badge.entry.js +1 -1
- package/dist/esm/vega-date-picker_2.entry.js +16 -15
- package/dist/esm/vega-dialog_2.entry.js +12 -11
- package/dist/esm/vega-divider.entry.js +12 -11
- package/dist/esm/vega-dropdown_5.entry.js +15 -14
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-error.entry.js +2 -2
- package/dist/esm/vega-field-label.entry.js +1 -1
- package/dist/esm/vega-file-uploader.entry.js +7 -7
- package/dist/esm/vega-flag-icon.entry.js +14 -13
- package/dist/esm/vega-flex.entry.js +13 -12
- package/dist/esm/vega-font.entry.js +11 -10
- package/dist/esm/vega-form.entry.js +90 -16
- package/dist/esm/vega-grid.entry.js +11 -10
- package/dist/esm/vega-hint.entry.js +1 -1
- package/dist/esm/vega-icon.entry.js +11 -10
- package/dist/esm/vega-image-uploader.entry.js +28 -18
- package/dist/esm/vega-input-credit-card.entry.js +7 -7
- package/dist/esm/vega-input-numeric.entry.js +7 -7
- package/dist/esm/vega-input-phone-number.entry.js +11 -10
- package/dist/esm/vega-input-range.entry.js +7 -7
- package/dist/esm/vega-input-select.entry.js +13 -12
- package/dist/esm/vega-input.entry.js +8 -8
- package/dist/esm/{vega-internal-event-id-5a143cd2.js → vega-internal-event-id-bee7946b.js} +2 -1
- package/dist/esm/vega-item-toggle.entry.js +1 -1
- package/dist/esm/vega-left-nav_5.entry.js +15 -14
- package/dist/esm/vega-line-chart.entry.js +3 -3
- package/dist/esm/vega-loader-wrapper_2.entry.js +11 -10
- package/dist/esm/vega-nonce-manager-87615d3c.js +100 -0
- package/dist/esm/vega-page-notification_2.entry.js +1 -1
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +2 -2
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +5 -5
- package/dist/esm/vega-pagination.entry.js +11 -10
- package/dist/esm/vega-pie-chart.entry.js +2 -2
- package/dist/esm/vega-popover_2.entry.js +12 -11
- package/dist/esm/vega-progress-tracker.entry.js +1 -1
- package/dist/esm/vega-radio_2.entry.js +6 -6
- package/dist/esm/vega-rich-text-content.entry.js +10 -9
- package/dist/esm/vega-rich-text-editor_4.entry.js +27 -27
- package/dist/esm/vega-section-title.entry.js +1 -1
- package/dist/esm/vega-segment-control.entry.js +1 -1
- package/dist/esm/vega-selection-chip_2.entry.js +14 -13
- package/dist/esm/vega-selection-tile_2.entry.js +7 -7
- package/dist/esm/vega-sidenav_3.entry.js +13 -12
- package/dist/esm/vega-signature-capture.entry.js +21 -26
- package/dist/esm/vega-skeleton.entry.js +1 -1
- package/dist/esm/vega-slot-container.entry.js +1 -1
- package/dist/esm/vega-stepper.entry.js +6 -6
- package/dist/esm/vega-tab-group_2.entry.js +2 -2
- package/dist/esm/vega-table_8.entry.js +14 -13
- package/dist/esm/vega-text.entry.js +1 -1
- package/dist/esm/vega-textarea.entry.js +6 -6
- package/dist/esm/vega-time-picker_2.entry.js +14 -13
- package/dist/esm/vega-toggle-switch.entry.js +6 -6
- package/dist/esm/vega-tooltip_2.entry.js +11 -10
- package/dist/esm/vega.js +13 -12
- package/dist/esm/{y-axis-input-processor-95995d34.js → y-axis-input-processor-bc54314a.js} +1 -1
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.d.ts +3 -0
- package/dist/types/components/vega-code-block/slimmers/controllers/code-input-paste.abstract.d.ts +46 -0
- package/dist/types/components/vega-code-block/slimmers/controllers/vega-code-block-input-controller.d.ts +2 -31
- package/dist/types/components/vega-code-block/slimmers/controllers/vega-code-block-input-paste-controller.d.ts +44 -0
- package/dist/types/components/vega-code-block/vega-code-block.d.ts +2 -0
- package/dist/types/components/vega-form/slimmers/renderers/native-form-renderer.d.ts +12 -0
- package/dist/types/components/vega-form/vega-form.d.ts +35 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/link-group-annotation.d.ts +0 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +6 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.d.ts +1 -1
- package/dist/types/components.d.ts +30 -0
- package/dist/types/helpers/change-manager/subject/static-subject/static-subject-title.d.ts +1 -2
- package/dist/types/helpers/csp/styles-preservator.d.ts +47 -0
- package/dist/types/helpers/csp/test/styles-preservator.test.d.ts +1 -0
- package/dist/types/helpers/csp/test/vega-nonce-manager.test.d.ts +1 -0
- package/dist/types/helpers/csp/vega-nonce-manager.d.ts +52 -0
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
- package/dist/types/helpers/public-api.d.ts +2 -0
- package/dist/types/helpers/slimmers/global/vega-nonce-injector-slimmer.d.ts +21 -0
- package/dist/types/helpers/slimmers/test/global/vega-nonce-injector-slimmer.test.d.ts +1 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-81765b4b.entry.js → p-04158119.entry.js} +1 -1
- package/dist/vega/{p-6caa6bb2.js → p-06b624e6.js} +1 -1
- package/dist/vega/p-06e6be0e.js +1 -0
- package/dist/vega/{p-476cc642.entry.js → p-0b38a01f.entry.js} +1 -1
- package/dist/vega/p-0b92b15b.entry.js +1 -0
- package/dist/vega/{p-9a74eb86.entry.js → p-0bb3be0b.entry.js} +1 -1
- package/dist/vega/p-0f2c83a1.entry.js +1 -0
- package/dist/vega/p-1110b422.entry.js +1 -0
- package/dist/vega/p-117be41b.js +1 -0
- package/dist/vega/p-119430db.entry.js +1 -0
- package/dist/vega/{p-6585cfd5.entry.js → p-15766433.entry.js} +1 -1
- package/dist/vega/p-159fda34.entry.js +1 -0
- package/dist/vega/p-1655b920.entry.js +1 -0
- package/dist/vega/{p-d2790023.entry.js → p-179693f1.entry.js} +2 -2
- package/dist/vega/p-1aba48bc.js +1 -0
- package/dist/vega/{p-d3bbfb1b.js → p-1be68fba.js} +1 -1
- package/dist/vega/p-1cb87bad.entry.js +1 -0
- package/dist/vega/{p-d982babe.entry.js → p-1d3a7be6.entry.js} +1 -1
- package/dist/vega/{p-8f056ac2.js → p-2044aa2c.js} +1 -1
- package/dist/vega/{p-2591f217.entry.js → p-21a480b0.entry.js} +1 -1
- package/dist/vega/p-3176804b.entry.js +1 -0
- package/dist/vega/p-32058dbd.entry.js +1 -0
- package/dist/vega/p-32655cfc.entry.js +1 -0
- package/dist/vega/{p-c2377afa.js → p-3354f5a7.js} +1 -1
- package/dist/vega/p-3355ec0f.js +1 -0
- package/dist/vega/{p-02b29c18.js → p-3674db0f.js} +1 -1
- package/dist/vega/p-36f331bf.entry.js +1 -0
- package/dist/vega/p-3709b0e0.js +1 -0
- package/dist/vega/p-37fd7a80.js +1 -0
- package/dist/vega/p-3a0b9e66.entry.js +1 -0
- package/dist/vega/{p-dcae53cf.entry.js → p-3a455ac3.entry.js} +1 -1
- package/dist/vega/{p-7cd2fac8.entry.js → p-3a9aa6eb.entry.js} +1 -1
- package/dist/vega/{p-9ca0bdcc.js → p-3af81271.js} +1 -1
- package/dist/vega/p-3e258753.js +1 -0
- package/dist/vega/p-3eaa6cce.entry.js +1 -0
- package/dist/vega/p-4082fa22.entry.js +1 -0
- package/dist/vega/{p-9b2d8516.entry.js → p-459efe39.entry.js} +1 -1
- package/dist/vega/p-465a6660.entry.js +1 -0
- package/dist/vega/{p-2a1b3108.entry.js → p-4669ce11.entry.js} +1 -1
- package/dist/vega/{p-111d41fe.js → p-46b077d9.js} +1 -1
- package/dist/vega/p-4ae3eebf.entry.js +1 -0
- package/dist/vega/{p-8a484812.entry.js → p-4b57bb12.entry.js} +1 -1
- package/dist/vega/{p-cc5a3a1b.entry.js → p-4dd6554e.entry.js} +1 -1
- package/dist/vega/p-4e503e23.entry.js +1 -0
- package/dist/vega/{p-2f88ba36.entry.js → p-4faa7bab.entry.js} +1 -1
- package/dist/vega/p-52b0abb5.entry.js +1 -0
- package/dist/vega/{p-6244b0ad.entry.js → p-5443d614.entry.js} +1 -1
- package/dist/vega/p-54ae02db.js +1 -0
- package/dist/vega/p-55c26035.entry.js +1 -0
- package/dist/vega/{p-76c7538a.entry.js → p-56b8ffd5.entry.js} +1 -1
- package/dist/vega/p-5773a9a3.js +1 -0
- package/dist/vega/p-57c42c30.entry.js +1 -0
- package/dist/vega/{p-6b292628.entry.js → p-5910be31.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-6163818f.js +1 -0
- package/dist/vega/{p-09cb98f3.entry.js → p-61966868.entry.js} +1 -1
- package/dist/vega/p-641fbb48.entry.js +1 -0
- package/dist/vega/p-64e949fa.entry.js +1 -0
- package/dist/vega/p-684391a4.entry.js +1 -0
- package/dist/vega/{p-ce1766fa.js → p-697acd40.js} +1 -1
- package/dist/vega/p-6be16084.js +1 -0
- package/dist/vega/p-6c85c1f3.entry.js +1 -0
- package/dist/vega/{p-56ff8559.entry.js → p-6ed663d5.entry.js} +1 -1
- package/dist/vega/p-7aae9252.entry.js +1 -0
- package/dist/vega/{p-b32f7aac.entry.js → p-7c75ce6c.entry.js} +1 -1
- package/dist/vega/p-84eabbec.entry.js +1 -0
- package/dist/vega/p-8938b5c4.js +1 -0
- package/dist/vega/{p-846ae5fb.js → p-904d1b43.js} +1 -1
- package/dist/vega/p-92ec4fac.entry.js +9 -0
- package/dist/vega/p-956a5899.entry.js +1 -0
- package/dist/vega/{p-0e954b9b.js → p-96bda7ca.js} +1 -1
- package/dist/vega/{p-bc0ae89a.entry.js → p-9819dda9.entry.js} +1 -1
- package/dist/vega/{p-74ac2a48.js → p-a1cf29a9.js} +1 -1
- package/dist/vega/{p-bdd9ef3b.js → p-a30ebdf5.js} +1 -1
- package/dist/vega/{p-c7726252.js → p-a3d77013.js} +1 -1
- package/dist/vega/{p-cfb2af9c.entry.js → p-a9e3058e.entry.js} +1 -1
- package/dist/vega/{p-2a66e2f7.entry.js → p-ad2055f4.entry.js} +1 -1
- package/dist/vega/p-ae963cb3.entry.js +1 -0
- package/dist/vega/{p-92469fa1.entry.js → p-b3cd1992.entry.js} +1 -1
- package/dist/vega/{p-da6369d4.entry.js → p-b9e8c6bf.entry.js} +1 -1
- package/dist/vega/{p-351405f2.entry.js → p-bb58a7cf.entry.js} +1 -1
- package/dist/vega/{p-05b10af4.js → p-be23bef2.js} +1 -1
- package/dist/vega/{p-bb61f015.js → p-be539a54.js} +1 -1
- package/dist/vega/{p-589b7ea3.entry.js → p-bf8d2978.entry.js} +1 -1
- package/dist/vega/{p-7da6e7bd.js → p-c7f68d74.js} +1 -1
- package/dist/vega/p-c8789df1.entry.js +1 -0
- package/dist/vega/p-d20ab09f.entry.js +1 -0
- package/dist/vega/{p-bf0ced3c.js → p-d3bf55e9.js} +1 -1
- package/dist/vega/{p-26ef2066.entry.js → p-db29b9f9.entry.js} +1 -1
- package/dist/vega/p-df31307b.entry.js +1 -0
- package/dist/vega/{p-a646b66d.js → p-e27802fb.js} +1 -1
- package/dist/vega/p-e41931d4.entry.js +1 -0
- package/dist/vega/p-e4acac0a.entry.js +1 -0
- package/dist/vega/p-e4b0606a.entry.js +1 -0
- package/dist/vega/{p-36ae2dd3.entry.js → p-e5af5a4d.entry.js} +1 -1
- package/dist/vega/p-e6158a33.entry.js +1 -0
- package/dist/vega/{p-d72abacd.entry.js → p-e9b86dac.entry.js} +1 -1
- package/dist/vega/p-eb5f99db.entry.js +1 -0
- package/dist/vega/p-ed0f000b.entry.js +1 -0
- package/dist/vega/p-f37558c1.js +1 -0
- package/dist/vega/{p-81fbf18f.entry.js → p-f4877bee.entry.js} +1 -1
- package/dist/vega/p-f81f2071.entry.js +1 -0
- package/dist/vega/{p-4f5a2b0c.entry.js → p-fd2d02ea.entry.js} +1 -1
- package/dist/vega/p-ffc2ef90.entry.js +1 -0
- package/dist/vega/{p-b73532c0.entry.js → p-fff13ed1.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/country-flags-dc0f0d09.js +0 -2403
- package/dist/esm/country-flags-b68c3349.js +0 -2401
- package/dist/vega/p-03cc47b7.entry.js +0 -1
- package/dist/vega/p-07836d27.entry.js +0 -1
- package/dist/vega/p-079f5d94.entry.js +0 -1
- package/dist/vega/p-0b91bb73.entry.js +0 -1
- package/dist/vega/p-13effc6b.js +0 -1
- package/dist/vega/p-15a78afd.entry.js +0 -1
- package/dist/vega/p-16075b30.entry.js +0 -1
- package/dist/vega/p-1c08077c.entry.js +0 -1
- package/dist/vega/p-1e926324.js +0 -1
- package/dist/vega/p-20a180e4.js +0 -1
- package/dist/vega/p-25ddb070.entry.js +0 -1
- package/dist/vega/p-2788afe7.entry.js +0 -1
- package/dist/vega/p-39c185a5.js +0 -1
- package/dist/vega/p-3b1bedaf.entry.js +0 -1
- package/dist/vega/p-3c96bbe1.entry.js +0 -1
- package/dist/vega/p-3d0d8a21.entry.js +0 -1
- package/dist/vega/p-3d53858c.entry.js +0 -1
- package/dist/vega/p-3f3bbaaa.entry.js +0 -9
- package/dist/vega/p-42c364e0.entry.js +0 -1
- package/dist/vega/p-4f56a427.entry.js +0 -1
- package/dist/vega/p-51d40b0d.entry.js +0 -1
- package/dist/vega/p-521ace2d.js +0 -1
- package/dist/vega/p-5420c1d4.entry.js +0 -1
- package/dist/vega/p-5d3c6a06.entry.js +0 -1
- package/dist/vega/p-5dec47da.entry.js +0 -1
- package/dist/vega/p-63212cc1.js +0 -1
- package/dist/vega/p-6ba27010.js +0 -1
- package/dist/vega/p-7d8eaca9.entry.js +0 -1
- package/dist/vega/p-7e8f055d.js +0 -1
- package/dist/vega/p-8682ee0a.entry.js +0 -1
- package/dist/vega/p-893d5dfa.js +0 -1
- package/dist/vega/p-8a6b820a.entry.js +0 -1
- package/dist/vega/p-8a877e12.js +0 -1
- package/dist/vega/p-8e58d6cb.entry.js +0 -1
- package/dist/vega/p-8e812dca.entry.js +0 -1
- package/dist/vega/p-9125ba84.entry.js +0 -1
- package/dist/vega/p-a61e4bba.entry.js +0 -1
- package/dist/vega/p-b1054e18.entry.js +0 -1
- package/dist/vega/p-b1a5ff74.entry.js +0 -1
- package/dist/vega/p-baafe7d9.entry.js +0 -1
- package/dist/vega/p-bb51e020.entry.js +0 -1
- package/dist/vega/p-bd39af8a.entry.js +0 -1
- package/dist/vega/p-c08ba4d7.entry.js +0 -1
- package/dist/vega/p-c167fa41.entry.js +0 -1
- package/dist/vega/p-c671f57e.js +0 -1
- package/dist/vega/p-c6a354b1.js +0 -1
- package/dist/vega/p-d0fbbb7f.entry.js +0 -1
- package/dist/vega/p-d9617358.entry.js +0 -1
- package/dist/vega/p-ddfad815.entry.js +0 -1
- package/dist/vega/p-e00ed9bd.entry.js +0 -1
- package/dist/vega/p-ebfc5739.entry.js +0 -1
- package/dist/vega/p-ff3a8907.entry.js +0 -1
- /package/dist/vega/{p-48a58baf.js → p-6b2342e0.js} +0 -0
|
@@ -6,6 +6,7 @@ import { BlockAnnotationTypeEnum } from '../../dto/annotations/block-annotation.
|
|
|
6
6
|
import { NodeAnnotationTypeEnum } from '../../dto/annotations/node-annotation.abstract';
|
|
7
7
|
import '../../../../polyfill/test-polyfill/unit/index';
|
|
8
8
|
import CodeFormatter from '../../../../helpers/code-format/code-formatter';
|
|
9
|
+
import { setVegaLogLevel } from '../../../../utils/log';
|
|
9
10
|
describe('content state', () => {
|
|
10
11
|
it('fromJSON should work as expect', () => {
|
|
11
12
|
expect(() => VegaRTEContent.fromJSON([
|
|
@@ -1111,6 +1112,20 @@ describe('content state', () => {
|
|
|
1111
1112
|
]);
|
|
1112
1113
|
expect(contentState.toHtml()).toEqual(`<ul style="padding-left: 8px;margin-left: 16px;padding: 60px;"><li style="font-family: Inter;font-size: 16px;line-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;padding: 40px;"><span>Item 1</span></li><li style="font-family: Inter;font-size: 16px;line-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;padding: 50px;"><span>Item 2</span></li></ul>`);
|
|
1113
1114
|
});
|
|
1115
|
+
it('should log warning when call toHtml with deprecated parameter', () => {
|
|
1116
|
+
setVegaLogLevel('warn');
|
|
1117
|
+
console.warn = jest.fn();
|
|
1118
|
+
const content = VegaRTEContent.fromJSON([
|
|
1119
|
+
{
|
|
1120
|
+
id: '1',
|
|
1121
|
+
type: 'paragraph',
|
|
1122
|
+
nodes: [{ id: '1-1', type: 'text', text: 'This is a paragraph' }],
|
|
1123
|
+
},
|
|
1124
|
+
]);
|
|
1125
|
+
content.toHtml({ autoMatchFormat: false });
|
|
1126
|
+
expect(console.warn).toBeCalledTimes(1);
|
|
1127
|
+
expect(console.warn).toHaveBeenCalledWith('%c[Vega]', 'font-weight: bold', "The 'options' parameter in toHtml method is deprecated and will be removed in the future.");
|
|
1128
|
+
});
|
|
1114
1129
|
});
|
|
1115
1130
|
describe('fromHtml', () => {
|
|
1116
1131
|
it('should convert a simple paragraph element to the expected RTEContentBlock', () => {
|
|
@@ -1934,7 +1949,7 @@ describe('content state', () => {
|
|
|
1934
1949
|
it('should not match bold style', () => {
|
|
1935
1950
|
const sourceCode = '<p style="font-weight: 700;">Hello</p>';
|
|
1936
1951
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
1937
|
-
expect(content.toHtml(
|
|
1952
|
+
expect(content.toHtml()).toEqual(`<p style="font-weight: 700;">Hello</p>`);
|
|
1938
1953
|
expect(content.toJSON()).toEqual([
|
|
1939
1954
|
{
|
|
1940
1955
|
id: expect.anything(),
|
|
@@ -1958,7 +1973,7 @@ describe('content state', () => {
|
|
|
1958
1973
|
it('should not match color style', () => {
|
|
1959
1974
|
const sourceCode = '<p style="color: red">Hello</p>';
|
|
1960
1975
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
1961
|
-
expect(content.toHtml(
|
|
1976
|
+
expect(content.toHtml()).toEqual(`<p style="color: red;">Hello</p>`);
|
|
1962
1977
|
expect(content.toJSON()).toEqual([
|
|
1963
1978
|
{
|
|
1964
1979
|
id: expect.anything(),
|
|
@@ -1982,7 +1997,7 @@ describe('content state', () => {
|
|
|
1982
1997
|
it('should not match link style', () => {
|
|
1983
1998
|
const sourceCode = `<p><a href="https://example.com">Link</a></p>`;
|
|
1984
1999
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
1985
|
-
expect(content.toHtml(
|
|
2000
|
+
expect(content.toHtml()).toEqual(`<p><a href="https://example.com">Link</a></p>`);
|
|
1986
2001
|
expect(content.toJSON()).toEqual([
|
|
1987
2002
|
{
|
|
1988
2003
|
id: expect.anything(),
|
|
@@ -2010,7 +2025,7 @@ describe('content state', () => {
|
|
|
2010
2025
|
it('should not match heading', () => {
|
|
2011
2026
|
const sourceCode = '<h1><span>Hello</span></h1>';
|
|
2012
2027
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2013
|
-
expect(content.toHtml(
|
|
2028
|
+
expect(content.toHtml()).toEqual(`<h1><span>Hello</span></h1>`);
|
|
2014
2029
|
expect(content.toJSON()).toEqual([
|
|
2015
2030
|
{
|
|
2016
2031
|
id: expect.anything(),
|
|
@@ -2022,7 +2037,7 @@ describe('content state', () => {
|
|
|
2022
2037
|
it('should not match image style', () => {
|
|
2023
2038
|
const sourceCode = '<img src="https://example.com/image.jpg">';
|
|
2024
2039
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2025
|
-
expect(content.toHtml(
|
|
2040
|
+
expect(content.toHtml()).toEqual(`<img src="https://example.com/image.jpg">`);
|
|
2026
2041
|
expect(content.toJSON()).toEqual([
|
|
2027
2042
|
{
|
|
2028
2043
|
id: expect.anything(),
|
|
@@ -2045,7 +2060,7 @@ describe('content state', () => {
|
|
|
2045
2060
|
it('should not match list style', () => {
|
|
2046
2061
|
const sourceCode = '<ul><li>Item 1</li><li>Item 2</li></ul>';
|
|
2047
2062
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2048
|
-
expect(content.toHtml(
|
|
2063
|
+
expect(content.toHtml()).toEqual(`<ul><li>Item 1</li><li>Item 2</li></ul>`);
|
|
2049
2064
|
expect(content.toJSON()).toEqual([
|
|
2050
2065
|
{
|
|
2051
2066
|
id: expect.anything(),
|
|
@@ -2084,7 +2099,7 @@ describe('content state', () => {
|
|
|
2084
2099
|
it('should not match div to internal style', () => {
|
|
2085
2100
|
const sourceCode = "<div class='my-class'><span> I want this be a sentence </span><span class='my-another-class'> I want this be another sentence </span></div>";
|
|
2086
2101
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2087
|
-
expect(content.toHtml(
|
|
2102
|
+
expect(content.toHtml()).toEqual(`<div class="my-class"><span> I want this be a sentence </span><span class="my-another-class"> I want this be another sentence </span></div>`);
|
|
2088
2103
|
expect(content.toJSON()).toEqual([
|
|
2089
2104
|
{
|
|
2090
2105
|
id: expect.anything(),
|
|
@@ -2113,17 +2128,17 @@ describe('content state', () => {
|
|
|
2113
2128
|
it('should not match parent style', () => {
|
|
2114
2129
|
const sourceCode = `<p style="font-weight: bold;font-style: italic;text-decoration: line-through;color: pink;text-shadow: 2px 2px 5px gray;font-size: 24px;">mix</p>`;
|
|
2115
2130
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2116
|
-
expect(content.toHtml(
|
|
2131
|
+
expect(content.toHtml()).toEqual(`<p style="font-weight: bold;font-style: italic;text-decoration: line-through;color: pink;text-shadow: 2px 2px 5px gray;font-size: 24px;">mix</p>`);
|
|
2117
2132
|
});
|
|
2118
2133
|
it('should not match parent link style', () => {
|
|
2119
2134
|
const sourceCode = `<a id="readMoreLink" class="link read-more" href="https://example.com" style="color: #2980b9; text-decoration: underline;">Read more</a>`;
|
|
2120
2135
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2121
|
-
expect(content.toHtml(
|
|
2136
|
+
expect(content.toHtml()).toEqual(`<a id="readMoreLink" href="https://example.com" class="link read-more" style="color: #2980b9; text-decoration: underline;">Read more</a>`);
|
|
2122
2137
|
});
|
|
2123
2138
|
it('should not match code style', () => {
|
|
2124
2139
|
const sourceCode = `<p>This is <code>code text</code>.</p>`;
|
|
2125
2140
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2126
|
-
expect(content.toHtml(
|
|
2141
|
+
expect(content.toHtml()).toEqual(sourceCode);
|
|
2127
2142
|
expect(content.toJSON()).toEqual([
|
|
2128
2143
|
{
|
|
2129
2144
|
id: expect.anything(),
|
|
@@ -2149,7 +2164,7 @@ describe('content state', () => {
|
|
|
2149
2164
|
it('should preserve plain text nodes correctly', () => {
|
|
2150
2165
|
const sourceCode = `<p>Plain text <span>with span</span> and <strong>bold</strong> text.</p>`;
|
|
2151
2166
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2152
|
-
const htmlOutput = content.toHtml(
|
|
2167
|
+
const htmlOutput = content.toHtml();
|
|
2153
2168
|
expect(htmlOutput).toEqual(sourceCode);
|
|
2154
2169
|
const jsonData = content.toJSON();
|
|
2155
2170
|
expect(jsonData).toEqual([
|
|
@@ -2190,9 +2205,7 @@ describe('content state', () => {
|
|
|
2190
2205
|
],
|
|
2191
2206
|
},
|
|
2192
2207
|
]);
|
|
2193
|
-
expect(VegaRTEContent.fromJSON(jsonData, { autoMatchFormat: false }).toHtml(
|
|
2194
|
-
autoMatchFormat: false,
|
|
2195
|
-
})).toEqual(htmlOutput);
|
|
2208
|
+
expect(VegaRTEContent.fromJSON(jsonData, { autoMatchFormat: false }).toHtml()).toEqual(htmlOutput);
|
|
2196
2209
|
});
|
|
2197
2210
|
it('should convert the html block to RTEContentBlock', () => {
|
|
2198
2211
|
const sourceCode = `
|
|
@@ -2264,7 +2277,7 @@ describe('content state', () => {
|
|
|
2264
2277
|
],
|
|
2265
2278
|
},
|
|
2266
2279
|
]);
|
|
2267
|
-
expect(content.toHtml(
|
|
2280
|
+
expect(content.toHtml()).toEqual(sourceCode);
|
|
2268
2281
|
});
|
|
2269
2282
|
it('should convert the html block with an internal block wrapper to include the text nodes', () => {
|
|
2270
2283
|
const sourceCode = `<section>111<span> 222 </span>333</section>`;
|
|
@@ -2298,7 +2311,7 @@ describe('content state', () => {
|
|
|
2298
2311
|
],
|
|
2299
2312
|
},
|
|
2300
2313
|
]);
|
|
2301
|
-
expect(content.toHtml(
|
|
2314
|
+
expect(content.toHtml()).toEqual(sourceCode);
|
|
2302
2315
|
});
|
|
2303
2316
|
it('should convert the img element with an internal block wrapper', () => {
|
|
2304
2317
|
const sourceCode = `<section><img src="mocked-url"></section><div><img src="mocked-url-2"></div><img src="mocked-url-3">`;
|
|
@@ -2350,7 +2363,7 @@ describe('content state', () => {
|
|
|
2350
2363
|
],
|
|
2351
2364
|
},
|
|
2352
2365
|
]);
|
|
2353
|
-
expect(content.toHtml(
|
|
2366
|
+
expect(content.toHtml()).toEqual(sourceCode);
|
|
2354
2367
|
});
|
|
2355
2368
|
it('should show the internal block wrapper if the block has annotations', () => {
|
|
2356
2369
|
const data = [
|
|
@@ -2378,9 +2391,9 @@ describe('content state', () => {
|
|
|
2378
2391
|
],
|
|
2379
2392
|
},
|
|
2380
2393
|
];
|
|
2381
|
-
expect(VegaRTEContent.fromJSON(data, { autoMatchFormat: false }).toHtml(
|
|
2394
|
+
expect(VegaRTEContent.fromJSON(data, { autoMatchFormat: false }).toHtml()).toEqual(`<section><a href="https://example.com">link</a></section>`);
|
|
2382
2395
|
data[0].children[0].annotations = { textAlign: 'center' };
|
|
2383
|
-
expect(VegaRTEContent.fromJSON(data, { autoMatchFormat: false }).toHtml(
|
|
2396
|
+
expect(VegaRTEContent.fromJSON(data, { autoMatchFormat: false }).toHtml()).toEqual(`<section><p style="text-align: center;"><a href="https://example.com">link</a></p></section>`);
|
|
2384
2397
|
});
|
|
2385
2398
|
it('should covert nested html block as expect', () => {
|
|
2386
2399
|
const sourceCode = `<section><nav>React<span> Vue </span>Angular</nav></section>`;
|
|
@@ -2421,17 +2434,17 @@ describe('content state', () => {
|
|
|
2421
2434
|
],
|
|
2422
2435
|
},
|
|
2423
2436
|
]);
|
|
2424
|
-
expect(content.toHtml(
|
|
2437
|
+
expect(content.toHtml()).toEqual(sourceCode);
|
|
2425
2438
|
});
|
|
2426
2439
|
it('should not covert the unsupported html', () => {
|
|
2427
2440
|
const sourceCode = `<section><abc>test </abc>123</section>`;
|
|
2428
2441
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2429
|
-
expect(content.toHtml(
|
|
2442
|
+
expect(content.toHtml()).toEqual(`<section>test 123</section>`);
|
|
2430
2443
|
});
|
|
2431
2444
|
it('should convert as expect if it is internal element', () => {
|
|
2432
2445
|
const sourceCode = `<h1>123</h1>`;
|
|
2433
2446
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2434
|
-
expect(content.toHtml(
|
|
2447
|
+
expect(content.toHtml()).toEqual(`<h1>123</h1>`);
|
|
2435
2448
|
expect(content.toJSON()).toEqual([
|
|
2436
2449
|
{
|
|
2437
2450
|
id: expect.anything(),
|
|
@@ -2450,7 +2463,7 @@ describe('content state', () => {
|
|
|
2450
2463
|
it('should convert nested inline html node as expect', () => {
|
|
2451
2464
|
const sourceCode = `<p><b><u><s>111</s></u></b></p>`;
|
|
2452
2465
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2453
|
-
expect(content.toHtml(
|
|
2466
|
+
expect(content.toHtml()).toEqual(sourceCode);
|
|
2454
2467
|
expect(content.toJSON()).toEqual([
|
|
2455
2468
|
{
|
|
2456
2469
|
id: expect.anything(),
|
|
@@ -2480,7 +2493,7 @@ describe('content state', () => {
|
|
|
2480
2493
|
it('should convert the inline html node with custom attrs', () => {
|
|
2481
2494
|
const sourceCode = `<p><b id="b-element" class="my-class-1 my-class-2" style="color: red; background: yellow;">text</b></p>`;
|
|
2482
2495
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2483
|
-
expect(content.toHtml(
|
|
2496
|
+
expect(content.toHtml()).toEqual(sourceCode);
|
|
2484
2497
|
expect(content.toJSON()).toEqual([
|
|
2485
2498
|
{
|
|
2486
2499
|
id: expect.anything(),
|
|
@@ -2507,7 +2520,7 @@ describe('content state', () => {
|
|
|
2507
2520
|
it('should convert the inline html node with text node as expect', () => {
|
|
2508
2521
|
const sourceCode = `<p>Do not forget to buy <mark>milk</mark> today.</p>`;
|
|
2509
2522
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2510
|
-
expect(content.toHtml(
|
|
2523
|
+
expect(content.toHtml()).toEqual(sourceCode);
|
|
2511
2524
|
expect(content.toJSON()).toEqual([
|
|
2512
2525
|
{
|
|
2513
2526
|
id: expect.anything(),
|
|
@@ -2538,7 +2551,7 @@ describe('content state', () => {
|
|
|
2538
2551
|
it('should convert the span as inline html when it includes not text node', () => {
|
|
2539
2552
|
const sourceCode = `<p>This is a <span style="color: red;"><b>red</b></span> word.</p>`;
|
|
2540
2553
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2541
|
-
expect(content.toHtml(
|
|
2554
|
+
expect(content.toHtml()).toEqual(sourceCode);
|
|
2542
2555
|
expect(content.toJSON()).toEqual([
|
|
2543
2556
|
{
|
|
2544
2557
|
id: expect.anything(),
|
|
@@ -2659,7 +2672,7 @@ Line 1
|
|
|
2659
2672
|
</footer>
|
|
2660
2673
|
`;
|
|
2661
2674
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2662
|
-
expect(CodeFormatter.format(content.toHtml(
|
|
2675
|
+
expect(CodeFormatter.format(content.toHtml())).toMatchSnapshot();
|
|
2663
2676
|
});
|
|
2664
2677
|
it('should convert the supported inline html as expected', () => {
|
|
2665
2678
|
const sourceCode = `<p>
|
|
@@ -2694,7 +2707,7 @@ Line 1
|
|
|
2694
2707
|
<video src="video.mp4"></video>
|
|
2695
2708
|
</p>`;
|
|
2696
2709
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2697
|
-
expect(content.toHtml(
|
|
2710
|
+
expect(content.toHtml()).toMatchSnapshot();
|
|
2698
2711
|
});
|
|
2699
2712
|
it('should convert the code as inline html', () => {
|
|
2700
2713
|
const sourceCode = `<code>1111</code>
|
|
@@ -2705,12 +2718,12 @@ Line 1
|
|
|
2705
2718
|
<code>333</code>
|
|
2706
2719
|
</b>`;
|
|
2707
2720
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2708
|
-
expect(content.toHtml(
|
|
2721
|
+
expect(content.toHtml()).toMatchSnapshot();
|
|
2709
2722
|
});
|
|
2710
2723
|
it('should convert the link that allow plain text', () => {
|
|
2711
2724
|
const sourceCode = `<p><a href="https://example.com">Example <b>link</b></a></p>`;
|
|
2712
2725
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2713
|
-
expect(content.toHtml(
|
|
2726
|
+
expect(content.toHtml()).toEqual(sourceCode);
|
|
2714
2727
|
expect(content.toJSON()).toEqual([
|
|
2715
2728
|
{
|
|
2716
2729
|
id: expect.anything(),
|
|
@@ -2751,32 +2764,32 @@ Line 1
|
|
|
2751
2764
|
it('should split the multiple nested inline html', () => {
|
|
2752
2765
|
const sourceCode = `<p><b><s>111</s><u>222</u></b></p>`;
|
|
2753
2766
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2754
|
-
expect(content.toHtml(
|
|
2767
|
+
expect(content.toHtml()).toEqual(`<p><b><s>111</s></b><b><u>222</u></b></p>`);
|
|
2755
2768
|
});
|
|
2756
2769
|
it('should convert li elements into a list block by default', () => {
|
|
2757
2770
|
const sourceCode = '<li>Item 1</li><li>Item 2</li><li>Item 3</li>';
|
|
2758
2771
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2759
|
-
expect(content.toHtml(
|
|
2772
|
+
expect(content.toHtml()).toEqual(`<ul><li>Item 1</li><li>Item 2</li><li>Item 3</li></ul>`);
|
|
2760
2773
|
});
|
|
2761
2774
|
it('should convert all the ul children to list item', () => {
|
|
2762
2775
|
const sourceCode = '<ul><li>Item 1</li>Item 2<li>Item 3</li></ul>';
|
|
2763
2776
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2764
|
-
expect(content.toHtml(
|
|
2777
|
+
expect(content.toHtml()).toEqual(`<ul><li>Item 1</li><li>Item 2</li><li>Item 3</li></ul>`);
|
|
2765
2778
|
});
|
|
2766
2779
|
it('should correctly handle both standalone li elements and li elements with ul/ol', () => {
|
|
2767
2780
|
const sourceCode = `<li>111</li><li>222</li><li>333</li><ol>444</ol><p>555</p>`;
|
|
2768
2781
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2769
|
-
expect(content.toHtml(
|
|
2782
|
+
expect(content.toHtml()).toEqual(`<ul><li>111</li><li>222</li><li>333</li></ul><ol><li>444</li></ol><p>555</p>`);
|
|
2770
2783
|
});
|
|
2771
2784
|
it('should handle non-contiguous li elements as separate lists', () => {
|
|
2772
2785
|
const sourceCode = '<li>Item 1</li><p>Middle</p>Plain text<li>Item 2</li><li>Item 3</li>';
|
|
2773
2786
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2774
|
-
expect(content.toHtml(
|
|
2787
|
+
expect(content.toHtml()).toEqual(`<ul><li>Item 1</li></ul><p>Middle</p>Plain text<ul><li>Item 2</li><li>Item 3</li></ul>`);
|
|
2775
2788
|
});
|
|
2776
2789
|
it('should not merge bold annotation with custom attr', () => {
|
|
2777
2790
|
const sourceCode = '<span style="font-weight: bold;">bold text</span>';
|
|
2778
2791
|
const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
|
|
2779
|
-
expect(content.toHtml(
|
|
2792
|
+
expect(content.toHtml()).toEqual(sourceCode);
|
|
2780
2793
|
});
|
|
2781
2794
|
it('should not remove blank space between elements', () => {
|
|
2782
2795
|
const sourceCode = '<p><span>A</span><span> </span><span>paragraph</span></p>';
|
|
@@ -2827,11 +2840,9 @@ Line 1
|
|
|
2827
2840
|
},
|
|
2828
2841
|
];
|
|
2829
2842
|
expect(VegaRTEContent.fromJSON(content).toHtml()).toEqual(`<p style="font-family: Inter;font-size: 16px;line-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span>This is a paragraph</span></p>`);
|
|
2830
|
-
expect(VegaRTEContent.fromJSON(content).toHtml(
|
|
2843
|
+
expect(VegaRTEContent.fromJSON(content).toHtml()).toEqual(`<p style="font-family: Inter;font-size: 16px;line-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span>This is a paragraph</span></p>`);
|
|
2844
|
+
expect(VegaRTEContent.fromJSON(content, { autoMatchFormat: false }).toHtml()).toEqual(`<p><span>This is a paragraph</span></p>`);
|
|
2831
2845
|
expect(VegaRTEContent.fromJSON(content, { autoMatchFormat: false }).toHtml()).toEqual(`<p><span>This is a paragraph</span></p>`);
|
|
2832
|
-
expect(VegaRTEContent.fromJSON(content, { autoMatchFormat: false }).toHtml({
|
|
2833
|
-
autoMatchFormat: false,
|
|
2834
|
-
})).toEqual(`<p><span>This is a paragraph</span></p>`);
|
|
2835
2846
|
});
|
|
2836
2847
|
it('should translate the html block as expect html', () => {
|
|
2837
2848
|
const content = [
|
|
@@ -40,13 +40,11 @@ export class WrittenModeSvgController extends VegaSlimmer {
|
|
|
40
40
|
// eslint-disable-next-line no-restricted-globals
|
|
41
41
|
this.currentPath = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
42
42
|
this.currentPath.setAttribute('d', `M ${x} ${y}`);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
strokeLinejoin: 'round',
|
|
49
|
-
});
|
|
43
|
+
this.currentPath.setAttribute('stroke', 'rgba(4, 4, 28, 1)');
|
|
44
|
+
this.currentPath.setAttribute('stroke-width', this.penWidth);
|
|
45
|
+
this.currentPath.setAttribute('fill', 'none');
|
|
46
|
+
this.currentPath.setAttribute('stroke-linecap', 'round');
|
|
47
|
+
this.currentPath.setAttribute('stroke-linejoin', 'round');
|
|
50
48
|
this.signatureContainerRef.appendChild(this.currentPath);
|
|
51
49
|
};
|
|
52
50
|
/*
|
|
@@ -57,11 +57,7 @@ export class WrittenModeRenderer extends VegaSlimmer {
|
|
|
57
57
|
* When the clear button is displayed, since the error message and the clear button are in the same line, this element is displayed.
|
|
58
58
|
*/
|
|
59
59
|
renderSignaturePad() {
|
|
60
|
-
return (h("svg", {
|
|
61
|
-
width: '100%',
|
|
62
|
-
height: formatAndValidResponsiveToken(this.height, 'widthAndHeight'),
|
|
63
|
-
touchAction: 'none',
|
|
64
|
-
}, ref: (ref) => this.writtenModeSvgController.setSignatureContainerRef(ref) }));
|
|
60
|
+
return (h("svg", { width: "100%", height: formatAndValidResponsiveToken(this.height, 'widthAndHeight'), "touch-action": "none", ref: (ref) => this.writtenModeSvgController.setSignatureContainerRef(ref) }));
|
|
65
61
|
}
|
|
66
62
|
renderFooter() {
|
|
67
63
|
return (this.showClearBtn && (h("vega-flex", { class: "signature-capture-written-footer", justifyContent: "space-between" },
|
|
@@ -17,6 +17,8 @@ import { VegaSkeletonLoader } from '../../helpers/skeleton-loader/vega-skeleton-
|
|
|
17
17
|
import { VegaTranslation } from '../../helpers/translation';
|
|
18
18
|
import { VegaTranslateObserverSlimmer } from '../../helpers/slimmers/global/vega-translate-observer-slimmer';
|
|
19
19
|
import { VegaRTEContent } from '../../components/vega-rich-text-editor/dto/content-state';
|
|
20
|
+
import { setVegaNonce, vegaNonceManager } from '../../helpers/csp/vega-nonce-manager';
|
|
21
|
+
import { VegaNonceInjectorSlimmer } from '../../helpers/slimmers/global/vega-nonce-injector-slimmer';
|
|
20
22
|
import { VegaRTETokenExtension } from '../../components/vega-rich-text-editor/extensions/tokens/token-extension';
|
|
21
23
|
import { VegaRTELanguageExtension } from '../../components/vega-rich-text-editor/extensions/languages/language-extension';
|
|
22
24
|
import { VegaRTEPresetToolbarItems } from '../../components/vega-rich-text-editor/constants/constant';
|
|
@@ -45,6 +47,8 @@ export default function () {
|
|
|
45
47
|
injectVegaRichTextEditorClassIntoGlobal();
|
|
46
48
|
injectVegaPublicValidationRules();
|
|
47
49
|
applyBrandingFromClientGlobal();
|
|
50
|
+
injectSetNonceIntoGlobal();
|
|
51
|
+
patchHeadInsertBeforeWithNonce();
|
|
48
52
|
}
|
|
49
53
|
/**
|
|
50
54
|
* Disable feature flags from the client global defined lists.
|
|
@@ -96,7 +100,11 @@ function injectVegaDialogIntoGlobal() {
|
|
|
96
100
|
* register global vega slimmers
|
|
97
101
|
*/
|
|
98
102
|
function registerGlobalVegaSlimmers() {
|
|
99
|
-
GlobalSlimmersRegistry.register([
|
|
103
|
+
GlobalSlimmersRegistry.register([
|
|
104
|
+
VegaWatchMethodCancelSlimmer,
|
|
105
|
+
VegaTranslateObserverSlimmer,
|
|
106
|
+
VegaNonceInjectorSlimmer,
|
|
107
|
+
]);
|
|
100
108
|
}
|
|
101
109
|
/**
|
|
102
110
|
* Inject setEventSemantics to global as a public api
|
|
@@ -204,3 +212,15 @@ function applyBrandingFromClientGlobal() {
|
|
|
204
212
|
VegaThemeManager.applyBranding(globalThis['VegaThemeManagerApplyBranding']);
|
|
205
213
|
}
|
|
206
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* Injects the `setVegaNonce` function into the global scope as `setVegaNonce`.
|
|
217
|
+
*/
|
|
218
|
+
function injectSetNonceIntoGlobal() {
|
|
219
|
+
globalThis.setVegaNonce = setVegaNonce;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Patch document.head.insertBefore to ensure nonce is set on injected elements.
|
|
223
|
+
*/
|
|
224
|
+
function patchHeadInsertBeforeWithNonce() {
|
|
225
|
+
vegaNonceManager.patchHeadInsertBeforeWithNonceToStencil();
|
|
226
|
+
}
|
package/dist/collection/helpers/change-manager/subject/static-subject/static-subject-title.js
CHANGED
|
@@ -28,4 +28,3 @@ 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
30
|
export const GP_BRAND_CHANGE = new StaticSubject('GP_BRAND_CHANGE');
|
|
31
|
-
export const CALENDAR_EVENT_PREVIEW_POPOVER_HIDE = new StaticSubject('CALENDAR_EVENT_PREVIEW_POPOVER_HIDE');
|
|
@@ -15,7 +15,7 @@ export class SVGRenderer extends BaseRenderer {
|
|
|
15
15
|
.attr('width', width)
|
|
16
16
|
.attr('height', height)
|
|
17
17
|
.attr('viewBox', [0, 0, width, height])
|
|
18
|
-
.
|
|
18
|
+
.property('style', 'display:block;max-width:100%;height:auto;')
|
|
19
19
|
.call((g) => {
|
|
20
20
|
g.append('g')
|
|
21
21
|
.attr('class', 'vega-chart-draw-g')
|
|
@@ -71,7 +71,7 @@ export class SVGRenderer extends BaseRenderer {
|
|
|
71
71
|
})
|
|
72
72
|
.call((g) => {
|
|
73
73
|
g.selectAll('line').attr('stroke', color);
|
|
74
|
-
g.selectAll('text').
|
|
74
|
+
g.selectAll('text').property('style', textStyle);
|
|
75
75
|
})
|
|
76
76
|
.call((g) => {
|
|
77
77
|
if (direction === 'horizontal') {
|
|
@@ -104,7 +104,7 @@ export class SVGRenderer extends BaseRenderer {
|
|
|
104
104
|
})
|
|
105
105
|
.call((g) => {
|
|
106
106
|
g.selectAll('line').attr('stroke-width', 2).attr('stroke', color);
|
|
107
|
-
g.selectAll('text').
|
|
107
|
+
g.selectAll('text').property('style', textStyle);
|
|
108
108
|
})
|
|
109
109
|
.call((g) => {
|
|
110
110
|
if (direction !== 'horizontal') {
|
|
@@ -262,7 +262,7 @@ export class SVGRenderer extends BaseRenderer {
|
|
|
262
262
|
*/
|
|
263
263
|
getTextNode(position, text, textStyle, textAnchor = 'start', rotate = 0) {
|
|
264
264
|
const TextSelectionType = d3Create('svg:text')
|
|
265
|
-
.
|
|
265
|
+
.property('style', textStyle)
|
|
266
266
|
.attr('x', position.x)
|
|
267
267
|
.attr('y', position.y)
|
|
268
268
|
.attr('text-anchor', textAnchor)
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { isHTMLElement } from '../../utils/ui';
|
|
2
|
+
/**
|
|
3
|
+
* StylePreservator handles CSP-compliant style management by temporarily converting
|
|
4
|
+
* inline styles to data attributes during HTML parsing operations.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* const context = StylePreservator.preserve('<div style="color: red;">Content</div>');
|
|
9
|
+
* const safeHtml = context.getProcessedHtml();
|
|
10
|
+
* context.restore(parsedElements);
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export class StylePreservator {
|
|
14
|
+
/**
|
|
15
|
+
* Preserves inline styles by converting them to data attributes.
|
|
16
|
+
*
|
|
17
|
+
* @param {string} htmlString - The HTML string containing inline styles
|
|
18
|
+
* @returns {StylePreservationContext} A context object for later style restoration
|
|
19
|
+
*/
|
|
20
|
+
static preserve(htmlString) {
|
|
21
|
+
const processedHtml = htmlString.replace(/\s+style=/g, ' data-style=');
|
|
22
|
+
return new StylePreservationContext(processedHtml);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Context class that manages the lifecycle of preserved styles.
|
|
27
|
+
*/
|
|
28
|
+
export class StylePreservationContext {
|
|
29
|
+
constructor(processedHtml) {
|
|
30
|
+
this.processedHtml = processedHtml;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Returns the HTML string with style attributes converted to data-style.
|
|
34
|
+
*
|
|
35
|
+
* @returns {string} The processed HTML string
|
|
36
|
+
*/
|
|
37
|
+
getProcessedHtml() {
|
|
38
|
+
return this.processedHtml;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Restores data-style attributes back to style attributes.
|
|
42
|
+
*
|
|
43
|
+
* @param {HTMLElement[]} elements - Array of HTML elements to process
|
|
44
|
+
* @returns {void}
|
|
45
|
+
*/
|
|
46
|
+
restore(elements) {
|
|
47
|
+
this.walkNodes(elements);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Recursively walk through nodes and restore styles
|
|
51
|
+
*
|
|
52
|
+
* @param {HTMLElement[]} elements - list of nodes
|
|
53
|
+
* @returns {void}
|
|
54
|
+
*/
|
|
55
|
+
walkNodes(elements) {
|
|
56
|
+
elements.forEach((element) => {
|
|
57
|
+
if (isHTMLElement(element)) {
|
|
58
|
+
// Restore data-style back to style
|
|
59
|
+
const dataStyle = element.getAttribute('data-style');
|
|
60
|
+
if (dataStyle) {
|
|
61
|
+
element.style.cssText = dataStyle;
|
|
62
|
+
element.removeAttribute('data-style');
|
|
63
|
+
}
|
|
64
|
+
// Recursively process child nodes
|
|
65
|
+
if (element.children.length > 0) {
|
|
66
|
+
this.walkNodes(Array.from(element.children));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|