@globalpayments/vega 2.45.0 → 2.47.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-981f7aba.js +334 -0
- package/dist/cjs/child-nodes-event-prevent-slimmer-37870b2e.js +158 -0
- package/dist/cjs/child-nodes-notify-observer-slimmer-5817a53b.js +90 -0
- package/dist/cjs/content-state-605de6a3.js +3628 -0
- package/dist/cjs/country-flags-dc0f0d09.js +2403 -0
- package/dist/cjs/dark-mode-state-controller-slimmer-2af3e67c.js +51 -0
- package/dist/cjs/dark-mode-style-controller-c93b94d2.js +3467 -0
- package/dist/cjs/design-token-117a19a8.js +403 -0
- package/dist/cjs/dom-node-subject-factory-d5826bff.js +252 -0
- package/dist/cjs/dom-node-subject-observer-factory-a7a3b196.js +45 -0
- package/dist/cjs/element-appender-slimmer-4bdbd76d.js +1466 -0
- package/dist/cjs/event-emit-slimmer-8247249c.js +266 -0
- package/dist/cjs/form-field-controller-slimmer-6d69c74f.js +1256 -0
- package/dist/cjs/image-annotation-action-5e3aa73c.js +277 -0
- package/dist/cjs/index-09acd3c9.js +8 -0
- package/dist/cjs/index-ec9a1f36.js +43 -0
- package/dist/cjs/index.cjs.js +22 -20
- package/dist/cjs/internal-icon-manager-00f49470.js +55 -0
- package/dist/cjs/internal-vega-event-manager-c9948b59.js +475 -0
- package/dist/cjs/loader.cjs.js +16 -14
- package/dist/cjs/observer-f49483e8.js +32 -0
- package/dist/cjs/public-rules-66f53e7e.js +43 -0
- package/dist/cjs/remote-invocation-registry-fc22fdd0.js +65 -0
- package/dist/cjs/responsive-format-facade-3542fc47.js +923 -0
- package/dist/cjs/rich-text-editor-required-rule-649ef4b4.js +64 -0
- package/dist/cjs/static-subject-title-1d23c102.js +79 -0
- package/dist/cjs/string-input-formatter-slimmer-56a2401f.js +434 -0
- package/dist/cjs/style-formatter-b735d506.js +34 -0
- package/dist/cjs/sub-state-notify-slimmer-b16c9094.js +81 -0
- package/dist/cjs/sub-state-observer-slimmer-1b6de09f.js +134 -0
- package/dist/cjs/translation-5173d223.js +339 -0
- package/dist/cjs/translation-slimmer-e900e8d4.js +42 -0
- package/dist/cjs/vega-accordion.cjs.entry.js +16 -14
- package/dist/cjs/vega-app-footer.cjs.entry.js +40 -7
- package/dist/cjs/vega-app-header-button.cjs.entry.js +18 -16
- package/dist/cjs/vega-banner.cjs.entry.js +6 -5
- package/dist/cjs/vega-box.cjs.entry.js +14 -12
- package/dist/cjs/vega-brand-logo.cjs.entry.js +232 -0
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +6 -5
- package/dist/cjs/vega-button-circle.cjs.entry.js +16 -14
- package/dist/cjs/vega-button-group_2.cjs.entry.js +11 -10
- package/dist/cjs/vega-button-link.cjs.entry.js +14 -11
- package/dist/cjs/vega-button.cjs.entry.js +15 -13
- package/dist/cjs/vega-calendar_3.cjs.entry.js +13 -12
- package/dist/cjs/vega-card.cjs.entry.js +13 -11
- package/dist/cjs/vega-carousel.cjs.entry.js +15 -13
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +15 -13
- package/dist/cjs/vega-chip.cjs.entry.js +17 -15
- package/dist/cjs/vega-color-picker.cjs.entry.js +20 -15
- package/dist/cjs/vega-combo-box.cjs.entry.js +12 -10
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +22 -19
- package/dist/cjs/vega-dialog_2.cjs.entry.js +15 -13
- package/dist/cjs/vega-divider.cjs.entry.js +13 -11
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +282 -187
- 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-field-label.cjs.entry.js +5 -4
- package/dist/cjs/vega-file-uploader.cjs.entry.js +12 -10
- package/dist/cjs/vega-flag-icon.cjs.entry.js +207 -0
- package/dist/cjs/vega-flex.cjs.entry.js +12 -10
- package/dist/cjs/vega-font.cjs.entry.js +13 -11
- package/dist/cjs/vega-form.cjs.entry.js +71 -15
- package/dist/cjs/vega-grid.cjs.entry.js +13 -11
- package/dist/cjs/vega-icon.cjs.entry.js +13 -11
- package/dist/cjs/vega-image-uploader.cjs.entry.js +18 -15
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +12 -10
- package/dist/cjs/vega-input-numeric.cjs.entry.js +12 -10
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +86 -2472
- package/dist/cjs/vega-input-range.cjs.entry.js +13 -11
- package/dist/cjs/vega-input-select.cjs.entry.js +133 -73
- package/dist/cjs/vega-input.cjs.entry.js +13 -12
- package/dist/cjs/vega-internal-event-id-dc866d43.js +80 -0
- package/dist/cjs/vega-item-toggle.cjs.entry.js +5 -4
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +32 -20
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +12 -10
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +3 -2
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +6 -5
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +7 -6
- package/dist/cjs/vega-pagination.cjs.entry.js +16 -14
- package/dist/cjs/vega-popover_2.cjs.entry.js +15 -13
- package/dist/cjs/vega-progress-tracker.cjs.entry.js +6 -5
- package/dist/cjs/vega-radio_2.cjs.entry.js +15 -13
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +13 -11
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +136 -176
- package/dist/cjs/vega-segment-control.cjs.entry.js +5 -4
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +18 -16
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +14 -13
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +18 -16
- package/dist/cjs/vega-signature-capture.cjs.entry.js +19 -16
- package/dist/cjs/vega-skeleton-loader-controller-8cbd7656.js +1291 -0
- package/dist/cjs/vega-stepper.cjs.entry.js +12 -10
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +9 -8
- package/dist/cjs/vega-table_8.cjs.entry.js +30 -28
- package/dist/cjs/vega-textarea.cjs.entry.js +12 -10
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +19 -16
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +11 -9
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +14 -12
- package/dist/cjs/vega.cjs.js +16 -14
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/vega-app-footer/vega-app-footer.css +3 -4
- package/dist/collection/components/vega-app-footer/vega-app-footer.js +40 -13
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.css +9 -4
- package/dist/collection/components/vega-brand-logo/assets/dark-mode/g-symbol-large.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/dark-mode/g-symbol-medium.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/dark-mode/g-symbol-small.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/dark-mode/genius-large.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/dark-mode/genius-medium.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/dark-mode/genius-small.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/dark-mode/global-payments-large.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/dark-mode/global-payments-medium.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/dark-mode/global-payments-small.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/index.js +18 -0
- package/dist/collection/components/vega-brand-logo/assets/light-mode/g-symbol-large.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/light-mode/g-symbol-medium.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/light-mode/g-symbol-small.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/light-mode/genius-large.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/light-mode/genius-medium.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/light-mode/genius-small.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/light-mode/global-payments-large.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/light-mode/global-payments-medium.js +4 -0
- package/dist/collection/components/vega-brand-logo/assets/light-mode/global-payments-small.js +4 -0
- package/dist/collection/components/vega-brand-logo/slimmers/renderers/vega-brand-logo-renderer.js +62 -0
- package/dist/collection/components/vega-brand-logo/vega-brand-logo.css +8 -0
- package/dist/collection/components/vega-brand-logo/vega-brand-logo.js +140 -0
- package/dist/collection/components/vega-button/vega-button.css +11 -6
- package/dist/collection/components/vega-button-circle/vega-button-circle.css +15 -10
- package/dist/collection/components/vega-button-group/vega-button-group-item/vega-button-group-item.css +11 -12
- package/dist/collection/components/vega-button-group/vega-button-group.css +0 -2
- package/dist/collection/components/vega-button-link/vega-button-link.css +21 -37
- package/dist/collection/components/vega-button-link/vega-button-link.js +7 -6
- package/dist/collection/components/vega-carousel/vega-carousel.css +2 -1
- package/dist/collection/components/vega-checkbox/vega-checkbox.css +4 -6
- package/dist/collection/components/vega-chip/vega-chip.css +5 -4
- package/dist/collection/components/vega-color-picker/vega-color-picker.css +14 -8
- package/dist/collection/components/vega-color-picker/vega-color-picker.js +9 -6
- package/dist/collection/components/vega-combo-box/vega-combo-box.css +4 -2
- package/dist/collection/components/vega-date-picker/vega-date-picker.css +6 -4
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-scrollable-controller.js +34 -5
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-selected-controller.js +13 -0
- package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-renderer.js +5 -4
- package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-reset-renderer.js +31 -0
- package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-search-renderer.js +19 -15
- package/dist/collection/components/vega-dropdown/vega-dropdown-content-box/vega-dropdown-content-box.css +34 -21
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +77 -1
- package/dist/collection/components/vega-flag-icon/assets/flags/ac.js +692 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ad.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ae.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/af.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ag.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ai.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/al.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/am.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ao.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ar.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/as.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/at.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/au.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/aw.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ax.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/az.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ba.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bb.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bd.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/be.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bf.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bg.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bh.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bi.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bj.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bl.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bm.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bn.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bo.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bq.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/br.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bs.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bt.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bw.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/by.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/bz.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ca.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/cc.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/cd.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/cf.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/cg.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ch.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ci.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ck.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/cl.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/cm.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/cn.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/co.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/cr.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/cu.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/cv.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/cw.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/cx.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/cy.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/cz.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/de.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/dj.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/dk.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/dm.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/do.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/dz.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ec.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ee.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/eg.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/eh.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/er.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/es.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/et.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/fi.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/fj.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/fk.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/fm.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/fo.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/fr.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ga.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gb.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gd.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ge.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gf.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gg.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gh.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gi.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gl.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gm.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gn.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gp.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gq.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gr.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gt.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gu.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gw.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/gy.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/hk.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/hn.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/hr.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ht.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/hu.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/id.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ie.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/il.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/im.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/in.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/io.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/iq.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ir.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/is.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/it.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/je.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/jm.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/jo.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/jp.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ke.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/kg.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/kh.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ki.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/km.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/kn.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/kp.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/kr.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/kw.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ky.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/kz.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/la.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/lb.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/lc.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/li.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/lk.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/lr.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ls.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/lt.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/lu.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/lv.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ly.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ma.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mc.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/md.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/me.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mf.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mg.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mh.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mk.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ml.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mm.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mn.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mo.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mp.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mq.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mr.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ms.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mt.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mu.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mv.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mw.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mx.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/my.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/mz.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/na.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/nc.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ne.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/nf.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ng.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ni.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/nl.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/no.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/np.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/nr.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/nu.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/nz.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/om.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/pa.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/pe.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/pf.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/pg.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ph.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/pk.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/pl.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/pm.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/pr.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ps.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/pt.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/pw.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/py.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/qa.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/re.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ro.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/rs.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ru.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/rw.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sa.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sb.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sc.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sd.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/se.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sg.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sh.js +167 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/si.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sj.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sk.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sl.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sm.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sn.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/so.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sr.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ss.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/st.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sv.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sx.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sy.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/sz.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ta.js +79 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/tc.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/td.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/tg.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/th.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/tj.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/tk.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/tl.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/tm.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/tn.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/to.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/tr.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/tt.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/tv.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/tw.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/tz.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ua.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ug.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/us.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/uy.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/uz.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/va.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/vc.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ve.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/vg.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/vi.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/vn.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/vu.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/wf.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ws.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/xk.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/ye.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/yt.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/za.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/zm.js +4 -0
- package/dist/collection/components/vega-flag-icon/assets/flags/zw.js +4 -0
- package/dist/collection/components/vega-flag-icon/slimmers/controllers/vega-flag-icon-controller.js +102 -0
- package/dist/collection/components/vega-flag-icon/slimmers/renderers/vega-flag-icon-renderer.js +28 -0
- package/dist/collection/components/vega-flag-icon/vega-flag-icon.css +13 -0
- package/dist/collection/components/vega-flag-icon/vega-flag-icon.js +106 -0
- package/dist/collection/components/vega-form/slimmers/controllers/vega-form-nest-state-controller.js +31 -0
- package/dist/collection/components/vega-form/vega-form.js +50 -1
- package/dist/collection/components/vega-image-uploader/vega-image-uploader.css +19 -9
- package/dist/collection/components/vega-input/vega-input.css +2 -2
- package/dist/collection/components/vega-input-phone-number/slimmers/controllers/vega-input-phone-number-value-controller.js +28 -52
- package/dist/collection/components/vega-input-phone-number/slimmers/renderers/country-select-renderer.js +35 -7
- package/dist/collection/components/vega-input-phone-number/slimmers/renderers/phone-number-input-renderer.js +10 -3
- package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.css +1 -1
- package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +3 -3
- package/dist/collection/components/vega-input-range/vega-input-range.css +2 -2
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-dropdown-controller.js +7 -1
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +8 -6
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-prefix-icon-renderer.js +48 -0
- package/dist/collection/components/vega-input-select/vega-input-select.css +2 -2
- package/dist/collection/components/vega-input-select/vega-input-select.js +6 -1
- package/dist/collection/components/vega-nav/vega-left-nav/slimmers/renderers/vega-left-nav-header-renderer.js +12 -1
- package/dist/collection/components/vega-nav/vega-left-nav/vega-left-nav.css +0 -5
- package/dist/collection/components/vega-nav/vega-left-nav-group/vega-left-nav-group.css +2 -2
- package/dist/collection/components/vega-nav/vega-left-nav-link/vega-left-nav-link.css +2 -4
- package/dist/collection/components/vega-pagination/vega-pagination.css +2 -1
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.css +2 -1
- package/dist/collection/components/vega-radio/vega-radio.css +6 -5
- package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.css +2 -1
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-color-annotation.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.css +2 -2
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +2 -2
- package/dist/collection/components/vega-signature-capture/vega-signature-capture.css +2 -2
- package/dist/collection/components/vega-stepper/vega-stepper.css +1 -1
- package/dist/collection/components/vega-tab-group/vega-tab-group.css +1 -1
- package/dist/collection/components/vega-textarea/vega-textarea.css +6 -2
- package/dist/collection/components/vega-time-picker/vega-time-picker.css +2 -2
- package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.css +2 -1
- package/dist/collection/constants/misc.js +2 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/public-api/ThemeManager/runtime-metrics-payload-definition.js +20 -0
- package/dist/collection/constants/tokens/themes/v2-new-brand/dark-mode-border-tokens.js +32 -0
- package/dist/collection/constants/tokens/themes/v2-new-brand/dark-mode-color-tokens.js +184 -0
- package/dist/collection/constants/tokens/themes/v2-new-brand/dark-mode-ring-tokens.js +7 -0
- package/dist/collection/constants/tokens/themes/v2-new-brand/dark-mode-shadow-tokens.js +12 -0
- package/dist/collection/constants/tokens/themes/v2-new-brand/light-mode-border-tokens.js +32 -0
- package/dist/collection/constants/tokens/themes/v2-new-brand/light-mode-color-tokens.js +184 -0
- package/dist/collection/constants/tokens/themes/v2-new-brand/light-mode-shadow-tokens.js +12 -0
- package/dist/collection/constants/ui.js +1 -0
- package/dist/collection/global/scripts/before-vega-load.js +9 -0
- package/dist/collection/global/tests/before-vega-load.test.js +7 -0
- package/dist/collection/helpers/change-manager/subject/static-subject/static-subject-title.js +2 -0
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +2 -1
- package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +1 -0
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
- package/dist/collection/helpers/event-manager/slimmers/event-emit-slimmer.js +8 -0
- package/dist/collection/helpers/event-manager/test/event-emit-slimmer.test.js +28 -1
- package/dist/collection/helpers/event-manager/test/vega-event-manager.test.js +2 -1
- package/dist/collection/helpers/icon/internal-icon-manager.js +10 -0
- package/dist/collection/helpers/slimmers/form-field-controller-slimmer.js +6 -1
- package/dist/collection/helpers/slimmers/form-field-state-controller-slimmer.js +45 -0
- package/dist/collection/helpers/theme/controllers/dark-mode-style-controller.js +17 -30
- package/dist/collection/helpers/theme/controllers/new-brand-style-controller.js +50 -0
- package/dist/collection/helpers/theme/controllers/style-controller.abstract.js +31 -0
- package/dist/collection/helpers/theme/internal-theme-manager.js +68 -0
- package/dist/collection/helpers/theme/tests/theme-manager-controller.test.js +17 -0
- package/dist/collection/helpers/theme/theme-manager.js +16 -17
- package/dist/collection/helpers/translation/locales/en.js +1 -0
- package/dist/collection/helpers/translation/tests/internal-translation-controller.test.js +1 -0
- package/dist/collection/helpers/validator/form-field-controller.js +9 -1
- package/dist/esm/app-globals-c055c18a.js +332 -0
- package/dist/esm/child-nodes-event-prevent-slimmer-d3a94ef2.js +156 -0
- package/dist/esm/child-nodes-notify-observer-slimmer-ddaad39a.js +88 -0
- package/dist/esm/content-state-8d0d38d7.js +3586 -0
- package/dist/esm/country-flags-b68c3349.js +2401 -0
- package/dist/esm/dark-mode-state-controller-slimmer-0678a94b.js +49 -0
- package/dist/esm/dark-mode-style-controller-e5915f26.js +3464 -0
- package/dist/esm/design-token-7406782c.js +389 -0
- package/dist/esm/dom-node-subject-factory-f77cf9cc.js +202 -0
- package/dist/esm/dom-node-subject-observer-factory-715dccf9.js +43 -0
- package/dist/esm/element-appender-slimmer-16eaeb31.js +1464 -0
- package/dist/esm/event-emit-slimmer-b7d511f6.js +264 -0
- package/dist/esm/form-field-controller-slimmer-a383d067.js +1254 -0
- package/dist/esm/image-annotation-action-de567e61.js +272 -0
- package/dist/esm/index-187f71d1.js +8 -0
- package/dist/esm/index-96374234.js +40 -0
- package/dist/esm/index.js +15 -13
- package/dist/esm/internal-icon-manager-58cf8aa6.js +53 -0
- package/dist/esm/internal-vega-event-manager-87dc436c.js +471 -0
- package/dist/esm/loader.js +16 -14
- package/dist/esm/observer-3959f9dd.js +30 -0
- package/dist/esm/public-rules-f9fe1987.js +28 -0
- package/dist/esm/remote-invocation-registry-d69245c2.js +63 -0
- package/dist/esm/responsive-format-facade-299d8ee9.js +919 -0
- package/dist/esm/rich-text-editor-required-rule-7fd7dcb3.js +62 -0
- package/dist/esm/static-subject-title-4a9deb68.js +51 -0
- package/dist/esm/string-input-formatter-slimmer-8c7987ac.js +430 -0
- package/dist/esm/style-formatter-2ebb1fd2.js +32 -0
- package/dist/esm/sub-state-notify-slimmer-2216c7dc.js +79 -0
- package/dist/esm/sub-state-observer-slimmer-da938c88.js +132 -0
- package/dist/esm/translation-78207e81.js +335 -0
- package/dist/esm/translation-slimmer-d49fcdf4.js +40 -0
- package/dist/esm/vega-accordion.entry.js +15 -13
- package/dist/esm/vega-app-footer.entry.js +40 -7
- package/dist/esm/vega-app-header-button.entry.js +18 -16
- package/dist/esm/vega-banner.entry.js +6 -5
- package/dist/esm/vega-box.entry.js +14 -12
- package/dist/esm/vega-brand-logo.entry.js +228 -0
- package/dist/esm/vega-breadcrumb.entry.js +6 -5
- package/dist/esm/vega-button-circle.entry.js +16 -14
- package/dist/esm/vega-button-group_2.entry.js +11 -10
- package/dist/esm/vega-button-link.entry.js +14 -11
- package/dist/esm/vega-button.entry.js +15 -13
- package/dist/esm/vega-calendar_3.entry.js +13 -12
- package/dist/esm/vega-card.entry.js +13 -11
- package/dist/esm/vega-carousel.entry.js +15 -13
- package/dist/esm/vega-checkbox_2.entry.js +13 -11
- package/dist/esm/vega-chip.entry.js +17 -15
- package/dist/esm/vega-color-picker.entry.js +20 -15
- package/dist/esm/vega-combo-box.entry.js +12 -10
- package/dist/esm/vega-date-picker_2.entry.js +22 -19
- package/dist/esm/vega-dialog_2.entry.js +15 -13
- package/dist/esm/vega-divider.entry.js +13 -11
- package/dist/esm/vega-dropdown_5.entry.js +282 -187
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-error.entry.js +1 -1
- package/dist/esm/vega-field-label.entry.js +5 -4
- package/dist/esm/vega-file-uploader.entry.js +12 -10
- package/dist/esm/vega-flag-icon.entry.js +203 -0
- package/dist/esm/vega-flex.entry.js +12 -10
- package/dist/esm/vega-font.entry.js +13 -11
- package/dist/esm/vega-form.entry.js +68 -12
- package/dist/esm/vega-grid.entry.js +13 -11
- package/dist/esm/vega-icon.entry.js +13 -11
- package/dist/esm/vega-image-uploader.entry.js +18 -15
- package/dist/esm/vega-input-credit-card.entry.js +12 -10
- package/dist/esm/vega-input-numeric.entry.js +12 -10
- package/dist/esm/vega-input-phone-number.entry.js +86 -2472
- package/dist/esm/vega-input-range.entry.js +13 -11
- package/dist/esm/vega-input-select.entry.js +133 -73
- package/dist/esm/vega-input.entry.js +13 -12
- package/dist/esm/vega-internal-event-id-7d1ff289.js +50 -0
- package/dist/esm/vega-item-toggle.entry.js +5 -4
- package/dist/esm/vega-left-nav_5.entry.js +30 -18
- package/dist/esm/vega-loader-wrapper_2.entry.js +12 -10
- package/dist/esm/vega-page-notification_2.entry.js +3 -2
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +6 -5
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +7 -6
- package/dist/esm/vega-pagination.entry.js +16 -14
- package/dist/esm/vega-popover_2.entry.js +15 -13
- package/dist/esm/vega-progress-tracker.entry.js +6 -5
- package/dist/esm/vega-radio_2.entry.js +13 -11
- package/dist/esm/vega-rich-text-content.entry.js +12 -10
- package/dist/esm/vega-rich-text-editor_4.entry.js +132 -172
- package/dist/esm/vega-segment-control.entry.js +5 -4
- package/dist/esm/vega-selection-chip_2.entry.js +17 -15
- package/dist/esm/vega-selection-tile_2.entry.js +13 -12
- package/dist/esm/vega-sidenav_3.entry.js +16 -14
- package/dist/esm/vega-signature-capture.entry.js +19 -16
- package/dist/esm/vega-skeleton-loader-controller-90e8d34d.js +1282 -0
- package/dist/esm/vega-stepper.entry.js +12 -10
- package/dist/esm/vega-tab-group_2.entry.js +8 -7
- package/dist/esm/vega-table_8.entry.js +19 -17
- package/dist/esm/vega-textarea.entry.js +12 -10
- package/dist/esm/vega-time-picker_2.entry.js +19 -16
- package/dist/esm/vega-toggle-switch.entry.js +11 -9
- package/dist/esm/vega-tooltip_2.entry.js +14 -12
- package/dist/esm/vega.js +16 -14
- package/dist/types/components/vega-app-footer/vega-app-footer.d.ts +7 -3
- package/dist/types/components/vega-brand-logo/assets/dark-mode/g-symbol-large.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/dark-mode/g-symbol-medium.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/dark-mode/g-symbol-small.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/dark-mode/genius-large.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/dark-mode/genius-medium.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/dark-mode/genius-small.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/dark-mode/global-payments-large.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/dark-mode/global-payments-medium.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/dark-mode/global-payments-small.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/index.d.ts +18 -0
- package/dist/types/components/vega-brand-logo/assets/light-mode/g-symbol-large.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/light-mode/g-symbol-medium.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/light-mode/g-symbol-small.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/light-mode/genius-large.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/light-mode/genius-medium.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/light-mode/genius-small.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/light-mode/global-payments-large.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/light-mode/global-payments-medium.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/assets/light-mode/global-payments-small.d.ts +2 -0
- package/dist/types/components/vega-brand-logo/slimmers/renderers/vega-brand-logo-renderer.d.ts +12 -0
- package/dist/types/components/vega-brand-logo/vega-brand-logo.d.ts +39 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-scrollable-controller.d.ts +10 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-selected-controller.d.ts +5 -0
- package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-renderer.d.ts +1 -0
- package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-reset-renderer.d.ts +9 -0
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +23 -0
- package/dist/types/components/vega-flag-icon/assets/country-flags.d.ts +3 -0
- package/dist/types/components/vega-flag-icon/slimmers/controllers/vega-flag-icon-controller.d.ts +45 -0
- package/dist/types/components/vega-flag-icon/slimmers/renderers/vega-flag-icon-renderer.d.ts +7 -0
- package/dist/types/components/vega-flag-icon/vega-flag-icon.d.ts +29 -0
- package/dist/types/components/vega-form/slimmers/controllers/vega-form-nest-state-controller.d.ts +10 -0
- package/dist/types/components/vega-form/vega-form.d.ts +16 -0
- package/dist/types/components/vega-input-phone-number/slimmers/controllers/country-select-controller.d.ts +1 -1
- package/dist/types/components/vega-input-phone-number/slimmers/controllers/vega-input-phone-number-value-controller.d.ts +12 -29
- package/dist/types/components/vega-input-phone-number/slimmers/renderers/country-select-renderer.d.ts +16 -1
- package/dist/types/components/vega-input-phone-number/types.d.ts +1 -3
- package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +2 -1
- package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-dropdown-controller.d.ts +1 -0
- package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.d.ts +2 -1
- package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-prefix-icon-renderer.d.ts +21 -0
- package/dist/types/components/vega-input-select/types.d.ts +1 -0
- package/dist/types/components/vega-input-select/vega-input-select.d.ts +2 -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.d.ts +115 -7
- package/dist/types/constants/misc.d.ts +2 -0
- package/dist/types/constants/tokens/themes/v2-new-brand/dark-mode-border-tokens.d.ts +1 -0
- package/dist/types/constants/tokens/themes/v2-new-brand/dark-mode-color-tokens.d.ts +1 -0
- package/dist/types/constants/tokens/themes/v2-new-brand/dark-mode-ring-tokens.d.ts +1 -0
- package/dist/types/constants/tokens/themes/v2-new-brand/dark-mode-shadow-tokens.d.ts +1 -0
- package/dist/types/constants/tokens/themes/v2-new-brand/light-mode-border-tokens.d.ts +1 -0
- package/dist/types/constants/tokens/themes/v2-new-brand/light-mode-color-tokens.d.ts +1 -0
- package/dist/types/constants/tokens/themes/v2-new-brand/light-mode-shadow-tokens.d.ts +1 -0
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/change-manager/subject/static-subject/static-subject-title.d.ts +3 -1
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +1 -0
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
- package/dist/types/helpers/event-manager/slimmers/event-emit-slimmer.d.ts +9 -0
- package/dist/types/helpers/icon/internal-icon-manager.d.ts +8 -0
- package/dist/types/helpers/slimmers/form-field-controller-slimmer.d.ts +4 -2
- package/dist/types/helpers/slimmers/form-field-state-controller-slimmer.d.ts +15 -0
- package/dist/types/helpers/theme/controllers/dark-mode-style-controller.d.ts +4 -12
- package/dist/types/helpers/theme/controllers/new-brand-style-controller.d.ts +22 -0
- package/dist/types/helpers/theme/controllers/style-controller.abstract.d.ts +19 -0
- package/dist/types/helpers/theme/internal-theme-manager.d.ts +48 -0
- package/dist/types/helpers/theme/theme-manager.d.ts +9 -1
- package/dist/types/helpers/theme/theme.d.ts +2 -0
- package/dist/types/helpers/translation/interface.d.ts +3 -1
- package/dist/types/helpers/validator/form-field-controller.d.ts +7 -0
- package/dist/types/helpers/validator/rules/valid-phone-number-rule.d.ts +1 -1
- package/dist/types/types/components.type.d.ts +2 -1
- package/dist/types/types/flag.type.d.ts +3 -0
- package/dist/types/types/public-api.d.ts +1 -1
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-06d7990e.js +1 -0
- package/dist/vega/p-0835a2fd.js +1 -0
- package/dist/vega/p-0a3607f7.entry.js +1 -0
- package/dist/vega/p-0e7fc736.entry.js +1 -0
- package/dist/vega/p-10a40dfb.entry.js +1 -0
- package/dist/vega/p-1114896d.entry.js +1 -0
- package/dist/vega/p-1138fa63.entry.js +1 -0
- package/dist/vega/p-1154e439.entry.js +1 -0
- package/dist/vega/p-12a8d705.js +1 -0
- package/dist/vega/p-12d60f5f.js +1 -0
- package/dist/vega/p-1486bc3f.js +1 -0
- package/dist/vega/p-1e926324.js +1 -0
- package/dist/vega/p-20af6415.entry.js +1 -0
- package/dist/vega/p-214aa52e.js +1 -0
- package/dist/vega/p-23a26150.js +1 -0
- package/dist/vega/p-23ff7605.entry.js +1 -0
- package/dist/vega/p-26005df1.js +1 -0
- package/dist/vega/p-27003a81.entry.js +1 -0
- package/dist/vega/p-27287998.entry.js +1 -0
- package/dist/vega/p-28b7d6ba.entry.js +1 -0
- package/dist/vega/p-2c0d1ec9.entry.js +1 -0
- package/dist/vega/p-3165ee95.entry.js +1 -0
- package/dist/vega/p-327a017b.entry.js +1 -0
- package/dist/vega/p-331a62d5.js +1 -0
- package/dist/vega/p-380ba357.entry.js +1 -0
- package/dist/vega/p-414e7edc.entry.js +1 -0
- package/dist/vega/p-41c48bcc.entry.js +1 -0
- package/dist/vega/p-42b62b48.js +1 -0
- package/dist/vega/p-431ab4dd.js +1 -0
- package/dist/vega/p-4640d35d.entry.js +1 -0
- package/dist/vega/p-48517a5d.entry.js +1 -0
- package/dist/vega/p-4b541ce8.entry.js +1 -0
- package/dist/vega/p-4c62c178.entry.js +1 -0
- package/dist/vega/p-5064a804.js +1 -0
- package/dist/vega/p-562de411.entry.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-626dd54f.entry.js +1 -0
- package/dist/vega/p-63ea4f38.entry.js +1 -0
- package/dist/vega/p-6586e2a2.entry.js +1 -0
- package/dist/vega/p-693934d5.entry.js +1 -0
- package/dist/vega/p-69cc3fa2.js +1 -0
- package/dist/vega/p-6cd8e6f4.entry.js +1 -0
- package/dist/vega/p-6e898779.js +1 -0
- package/dist/vega/p-6f2faa34.js +1 -0
- package/dist/vega/p-6f81fe1e.js +1 -0
- package/dist/vega/p-6f9731a1.entry.js +1 -0
- package/dist/vega/p-704d9730.js +1 -0
- package/dist/vega/p-720d87f9.entry.js +1 -0
- package/dist/vega/p-76a3a552.entry.js +13 -0
- package/dist/vega/p-77e64f26.js +1 -0
- package/dist/vega/p-7a3826a0.entry.js +1 -0
- package/dist/vega/p-7cc3feb4.entry.js +1 -0
- package/dist/vega/p-7f1a7346.entry.js +1 -0
- package/dist/vega/p-7f9dd834.entry.js +1 -0
- package/dist/vega/p-804f71b3.js +1 -0
- package/dist/vega/p-84aa2ebc.entry.js +1 -0
- package/dist/vega/p-865b45dc.entry.js +1 -0
- package/dist/vega/p-8f98e604.entry.js +1 -0
- package/dist/vega/p-90e70662.entry.js +1 -0
- package/dist/vega/p-90ebcda7.entry.js +1 -0
- package/dist/vega/p-a0b6da44.js +1 -0
- package/dist/vega/p-a5c39ba2.entry.js +1 -0
- package/dist/vega/p-a821bcf3.js +1 -0
- package/dist/vega/p-a8e9bfae.entry.js +1 -0
- package/dist/vega/p-a9f2ad08.entry.js +1 -0
- package/dist/vega/p-aa29ccd4.entry.js +1 -0
- package/dist/vega/p-b07add9c.entry.js +1 -0
- package/dist/vega/p-b2643e88.js +1 -0
- package/dist/vega/p-b4108ddb.entry.js +1 -0
- package/dist/vega/p-b5f05d21.entry.js +1 -0
- package/dist/vega/p-ba0a76fe.entry.js +1 -0
- package/dist/vega/p-be186a9f.entry.js +1 -0
- package/dist/vega/p-c17b7a1f.js +1 -0
- package/dist/vega/p-c87b5c83.entry.js +1 -0
- package/dist/vega/p-c9b9322b.js +1 -0
- package/dist/vega/p-d2947f32.entry.js +1 -0
- package/dist/vega/p-d296cf86.entry.js +1 -0
- package/dist/vega/p-d2a65457.entry.js +1 -0
- package/dist/vega/p-d54c48b0.js +1 -0
- package/dist/vega/p-d7642125.js +1 -0
- package/dist/vega/p-da40b4c3.js +1 -0
- package/dist/vega/p-e309bfd1.entry.js +1 -0
- package/dist/vega/p-e3b70eed.entry.js +1 -0
- package/dist/vega/p-e66515c7.js +1 -0
- package/dist/vega/p-eaab3fea.entry.js +1 -0
- package/dist/vega/p-f01300ea.entry.js +1 -0
- package/dist/vega/p-f0c85061.js +1 -0
- package/dist/vega/p-f3efc8f0.entry.js +1 -0
- package/dist/vega/p-f3f73fd3.entry.js +1 -0
- package/dist/vega/p-f5fdf1ae.entry.js +1 -0
- package/dist/vega/p-fb6d87cd.entry.js +1 -0
- package/dist/vega/p-ff8ef8af.entry.js +1 -0
- package/dist/vega/p-ff9ccfa8.js +1 -0
- package/dist/vega/p-ff9e8753.entry.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/app-globals-c99ca280.js +0 -325
- package/dist/cjs/child-nodes-event-prevent-slimmer-4982065c.js +0 -158
- package/dist/cjs/child-nodes-notify-observer-slimmer-100dbe59.js +0 -90
- package/dist/cjs/content-state-5659cad7.js +0 -6647
- package/dist/cjs/design-token-61572ad6.js +0 -403
- package/dist/cjs/dom-node-subject-factory-6a2aa462.js +0 -280
- package/dist/cjs/dom-node-subject-observer-factory-8f9ed458.js +0 -44
- package/dist/cjs/element-appender-slimmer-6de02fb6.js +0 -1465
- package/dist/cjs/event-emit-slimmer-93183c4d.js +0 -258
- package/dist/cjs/form-field-controller-slimmer-ac875498.js +0 -1198
- package/dist/cjs/image-annotation-action-cd529b25.js +0 -276
- package/dist/cjs/index-cea30b8b.js +0 -42
- package/dist/cjs/internal-icon-manager-cf3347e7.js +0 -45
- package/dist/cjs/internal-vega-event-manager-cd87600e.js +0 -474
- package/dist/cjs/public-rules-a23c74a9.js +0 -41
- package/dist/cjs/remote-invocation-registry-08e3c509.js +0 -65
- package/dist/cjs/responsive-format-facade-bf7d9ab2.js +0 -923
- package/dist/cjs/rich-text-editor-required-rule-cdc2e15e.js +0 -64
- package/dist/cjs/static-subject-title-64175f06.js +0 -75
- package/dist/cjs/string-input-formatter-slimmer-90bdfcf6.js +0 -434
- package/dist/cjs/style-formatter-f26738b9.js +0 -34
- package/dist/cjs/sub-state-notify-slimmer-88e2f4aa.js +0 -80
- package/dist/cjs/sub-state-observer-slimmer-8ed18a5a.js +0 -133
- package/dist/cjs/translation-f7279bf1.js +0 -338
- package/dist/cjs/translation-slimmer-4d852eab.js +0 -42
- package/dist/cjs/vega-internal-event-id-a0ca9af9.js +0 -78
- package/dist/cjs/vega-skeleton-loader-controller-1c91112a.js +0 -1120
- package/dist/collection/components/vega-input-phone-number/assets/flags/ac.js +0 -692
- package/dist/collection/components/vega-input-phone-number/assets/flags/ad.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ae.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/af.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ag.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ai.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/al.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/am.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ao.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ar.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/as.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/at.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/au.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/aw.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ax.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/az.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ba.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bb.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bd.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/be.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bf.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bg.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bh.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bi.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bj.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bl.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bm.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bn.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bo.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bq.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/br.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bs.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bt.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bw.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/by.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/bz.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ca.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/cc.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/cd.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/cf.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/cg.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ch.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ci.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ck.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/cl.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/cm.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/cn.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/co.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/cr.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/cu.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/cv.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/cw.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/cx.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/cy.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/cz.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/de.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/dj.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/dk.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/dm.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/do.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/dz.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ec.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ee.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/eg.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/eh.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/er.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/es.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/et.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/fi.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/fj.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/fk.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/fm.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/fo.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/fr.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ga.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gb.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gd.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ge.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gf.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gg.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gh.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gi.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gl.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gm.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gn.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gp.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gq.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gr.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gt.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gu.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gw.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/gy.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/hk.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/hn.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/hr.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ht.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/hu.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/id.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ie.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/il.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/im.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/in.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/io.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/iq.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ir.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/is.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/it.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/je.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/jm.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/jo.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/jp.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ke.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/kg.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/kh.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ki.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/km.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/kn.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/kp.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/kr.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/kw.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ky.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/kz.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/la.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/lb.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/lc.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/li.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/lk.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/lr.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ls.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/lt.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/lu.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/lv.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ly.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ma.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mc.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/md.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/me.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mf.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mg.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mh.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mk.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ml.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mm.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mn.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mo.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mp.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mq.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mr.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ms.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mt.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mu.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mv.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mw.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mx.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/my.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/mz.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/na.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/nc.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ne.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/nf.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ng.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ni.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/nl.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/no.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/np.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/nr.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/nu.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/nz.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/om.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/pa.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/pe.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/pf.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/pg.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ph.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/pk.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/pl.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/pm.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/pr.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ps.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/pt.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/pw.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/py.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/qa.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/re.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ro.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/rs.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ru.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/rw.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sa.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sb.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sc.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sd.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/se.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sg.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sh.js +0 -167
- package/dist/collection/components/vega-input-phone-number/assets/flags/si.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sj.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sk.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sl.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sm.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sn.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/so.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sr.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ss.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/st.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sv.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sx.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sy.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/sz.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ta.js +0 -79
- package/dist/collection/components/vega-input-phone-number/assets/flags/tc.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/td.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/tg.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/th.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/tj.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/tk.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/tl.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/tm.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/tn.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/to.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/tr.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/tt.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/tv.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/tw.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/tz.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ua.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ug.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/us.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/uy.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/uz.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/va.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/vc.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ve.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/vg.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/vi.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/vn.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/vu.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/wf.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ws.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/xk.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/ye.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/yt.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/za.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/zm.js +0 -4
- package/dist/collection/components/vega-input-phone-number/assets/flags/zw.js +0 -4
- package/dist/esm/app-globals-6a7d90a9.js +0 -323
- package/dist/esm/child-nodes-event-prevent-slimmer-aab1c019.js +0 -156
- package/dist/esm/child-nodes-notify-observer-slimmer-12d38571.js +0 -88
- package/dist/esm/content-state-7e9f3421.js +0 -6603
- package/dist/esm/design-token-e349fd57.js +0 -389
- package/dist/esm/dom-node-subject-factory-286df025.js +0 -230
- package/dist/esm/dom-node-subject-observer-factory-d661fc7c.js +0 -42
- package/dist/esm/element-appender-slimmer-a187435b.js +0 -1463
- package/dist/esm/event-emit-slimmer-acc7fbb7.js +0 -256
- package/dist/esm/form-field-controller-slimmer-c9280871.js +0 -1196
- package/dist/esm/image-annotation-action-2541490e.js +0 -271
- package/dist/esm/index-707fec53.js +0 -39
- package/dist/esm/internal-icon-manager-c05720ca.js +0 -43
- package/dist/esm/internal-vega-event-manager-d2c962d2.js +0 -470
- package/dist/esm/public-rules-596db5ba.js +0 -26
- package/dist/esm/remote-invocation-registry-0b330137.js +0 -63
- package/dist/esm/responsive-format-facade-ce8a1ef5.js +0 -919
- package/dist/esm/rich-text-editor-required-rule-ef25c4da.js +0 -62
- package/dist/esm/static-subject-title-249c76cd.js +0 -49
- package/dist/esm/string-input-formatter-slimmer-452c439c.js +0 -430
- package/dist/esm/style-formatter-3b67ed25.js +0 -32
- package/dist/esm/sub-state-notify-slimmer-c7169226.js +0 -78
- package/dist/esm/sub-state-observer-slimmer-1d3336d6.js +0 -131
- package/dist/esm/translation-4bed3392.js +0 -334
- package/dist/esm/translation-slimmer-fc1ddf17.js +0 -40
- package/dist/esm/vega-internal-event-id-d7113cf7.js +0 -49
- package/dist/esm/vega-skeleton-loader-controller-722a41c2.js +0 -1112
- package/dist/types/components/vega-input-phone-number/assets/country-flags.d.ts +0 -5
- package/dist/vega/p-01d4c679.js +0 -1
- package/dist/vega/p-0a8b91f5.entry.js +0 -1
- package/dist/vega/p-0d8136bc.entry.js +0 -1
- package/dist/vega/p-0f1a56d0.entry.js +0 -1
- package/dist/vega/p-11249b56.entry.js +0 -1
- package/dist/vega/p-11ccc1a9.entry.js +0 -1
- package/dist/vega/p-179887da.js +0 -1
- package/dist/vega/p-179c59ff.js +0 -1
- package/dist/vega/p-1d46d29d.entry.js +0 -1
- package/dist/vega/p-25d18888.entry.js +0 -1
- package/dist/vega/p-27192960.js +0 -1
- package/dist/vega/p-2b7252c6.js +0 -1
- package/dist/vega/p-2d6928c3.entry.js +0 -1
- package/dist/vega/p-32af415d.entry.js +0 -1
- package/dist/vega/p-39bb2289.js +0 -1
- package/dist/vega/p-39d3782b.entry.js +0 -1
- package/dist/vega/p-3b877fa3.entry.js +0 -1
- package/dist/vega/p-3c36bd11.entry.js +0 -1
- package/dist/vega/p-3d236584.entry.js +0 -1
- package/dist/vega/p-46555732.entry.js +0 -1
- package/dist/vega/p-4868e57c.entry.js +0 -1
- package/dist/vega/p-4a47bc03.entry.js +0 -1
- package/dist/vega/p-4e406f70.entry.js +0 -1
- package/dist/vega/p-51686ec2.js +0 -1
- package/dist/vega/p-5299a287.entry.js +0 -1
- package/dist/vega/p-55101775.entry.js +0 -1
- package/dist/vega/p-57f406cf.entry.js +0 -1
- package/dist/vega/p-5825343a.entry.js +0 -1
- package/dist/vega/p-59c9de55.js +0 -1
- package/dist/vega/p-5f5bfd9c.js +0 -1
- package/dist/vega/p-60234e0a.entry.js +0 -1
- package/dist/vega/p-619fdde5.js +0 -1
- package/dist/vega/p-631c8001.entry.js +0 -1
- package/dist/vega/p-639c3322.entry.js +0 -1
- package/dist/vega/p-65dc0b25.entry.js +0 -1
- package/dist/vega/p-66c5fa14.js +0 -1
- package/dist/vega/p-6be0a9bf.entry.js +0 -1
- package/dist/vega/p-71b82ba5.entry.js +0 -1
- package/dist/vega/p-7617b2ac.js +0 -1
- package/dist/vega/p-7839a201.entry.js +0 -1
- package/dist/vega/p-8b044ac7.entry.js +0 -1
- package/dist/vega/p-8d1e0418.entry.js +0 -1
- package/dist/vega/p-901c5b75.js +0 -1
- package/dist/vega/p-99289273.js +0 -1
- package/dist/vega/p-9955844c.entry.js +0 -1
- package/dist/vega/p-9ba28523.js +0 -1
- package/dist/vega/p-9bebdace.entry.js +0 -1
- package/dist/vega/p-9d3d7854.entry.js +0 -1
- package/dist/vega/p-a02f52b7.js +0 -1
- package/dist/vega/p-a04624f3.entry.js +0 -1
- package/dist/vega/p-a247e073.js +0 -1
- package/dist/vega/p-a3fa41c8.js +0 -1
- package/dist/vega/p-a501fb74.entry.js +0 -1
- package/dist/vega/p-a88acecd.entry.js +0 -1
- package/dist/vega/p-acba84aa.entry.js +0 -1
- package/dist/vega/p-b196eab0.entry.js +0 -1
- package/dist/vega/p-b288e52e.entry.js +0 -1
- package/dist/vega/p-b54328c6.js +0 -1
- package/dist/vega/p-b587e576.entry.js +0 -1
- package/dist/vega/p-b6c155d4.entry.js +0 -1
- package/dist/vega/p-b87ede84.entry.js +0 -1
- package/dist/vega/p-c00d95d2.entry.js +0 -13
- package/dist/vega/p-c66b55f8.js +0 -1
- package/dist/vega/p-c8408c13.js +0 -1
- package/dist/vega/p-c8f914d2.js +0 -1
- package/dist/vega/p-c906aa4f.js +0 -1
- package/dist/vega/p-cf3d8e47.entry.js +0 -1
- package/dist/vega/p-d3101d07.entry.js +0 -1
- package/dist/vega/p-d3aa2ea7.entry.js +0 -1
- package/dist/vega/p-d82cdded.entry.js +0 -1
- package/dist/vega/p-d8683a5f.js +0 -1
- package/dist/vega/p-dbd3e747.entry.js +0 -1
- package/dist/vega/p-dd94bd57.entry.js +0 -1
- package/dist/vega/p-e06361df.js +0 -1
- package/dist/vega/p-e244aa52.entry.js +0 -1
- package/dist/vega/p-e8bb5d2e.entry.js +0 -1
- package/dist/vega/p-e8be1bd4.entry.js +0 -1
- package/dist/vega/p-eae914b0.entry.js +0 -1
- package/dist/vega/p-ed569397.entry.js +0 -1
- package/dist/vega/p-f18ed03e.entry.js +0 -1
- package/dist/vega/p-f1e0e7d4.js +0 -1
- package/dist/vega/p-f3ffe0ee.entry.js +0 -1
- package/dist/vega/p-f5c32d70.entry.js +0 -1
- package/dist/vega/p-f8f056db.entry.js +0 -1
- package/dist/vega/p-fe51bfea.entry.js +0 -1
- package/dist/vega/p-fea464ce.entry.js +0 -1
- package/dist/vega/p-ffaafd34.js +0 -1
- /package/dist/collection/components/{vega-input-phone-number → vega-flag-icon}/assets/country-flags.js +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ac.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ad.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ae.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/af.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ag.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ai.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/al.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/am.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ao.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ar.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/as.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/at.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/au.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/aw.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ax.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/az.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ba.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bb.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bd.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/be.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bf.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bg.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bh.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bi.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bj.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bl.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bm.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bn.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bo.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bq.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/br.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bs.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bt.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bw.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/by.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/bz.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ca.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/cc.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/cd.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/cf.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/cg.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ch.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ci.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ck.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/cl.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/cm.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/cn.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/co.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/cr.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/cu.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/cv.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/cw.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/cx.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/cy.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/cz.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/de.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/dj.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/dk.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/dm.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/do.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/dz.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ec.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ee.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/eg.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/eh.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/er.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/es.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/et.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/fi.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/fj.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/fk.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/fm.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/fo.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/fr.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ga.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gb.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gd.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ge.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gf.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gg.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gh.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gi.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gl.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gm.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gn.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gp.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gq.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gr.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gt.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gu.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gw.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/gy.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/hk.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/hn.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/hr.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ht.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/hu.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/id.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ie.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/il.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/im.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/in.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/io.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/iq.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ir.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/is.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/it.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/je.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/jm.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/jo.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/jp.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ke.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/kg.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/kh.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ki.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/km.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/kn.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/kp.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/kr.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/kw.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ky.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/kz.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/la.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/lb.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/lc.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/li.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/lk.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/lr.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ls.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/lt.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/lu.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/lv.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ly.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ma.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mc.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/md.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/me.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mf.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mg.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mh.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mk.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ml.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mm.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mn.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mo.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mp.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mq.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mr.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ms.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mt.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mu.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mv.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mw.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mx.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/my.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/mz.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/na.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/nc.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ne.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/nf.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ng.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ni.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/nl.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/no.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/np.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/nr.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/nu.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/nz.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/om.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/pa.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/pe.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/pf.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/pg.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ph.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/pk.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/pl.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/pm.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/pr.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ps.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/pt.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/pw.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/py.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/qa.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/re.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ro.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/rs.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ru.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/rw.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sa.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sb.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sc.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sd.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/se.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sg.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sh.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/si.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sj.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sk.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sl.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sm.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sn.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/so.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sr.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ss.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/st.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sv.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sx.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sy.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/sz.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ta.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/tc.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/td.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/tg.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/th.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/tj.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/tk.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/tl.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/tm.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/tn.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/to.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/tr.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/tt.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/tv.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/tw.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/tz.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ua.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ug.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/us.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/uy.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/uz.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/va.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/vc.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ve.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/vg.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/vi.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/vn.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/vu.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/wf.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ws.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/xk.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/ye.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/yt.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/za.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/zm.d.ts +0 -0
- /package/dist/types/components/{vega-input-phone-number → vega-flag-icon}/assets/flags/zw.d.ts +0 -0
|
@@ -1,1465 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const globalSlimmerRegistry = require('./global-slimmer-registry-b3bce7e0.js');
|
|
4
|
-
const ui = require('./ui-13b42af0.js');
|
|
5
|
-
const vegaSkeletonLoaderController = require('./vega-skeleton-loader-controller-1c91112a.js');
|
|
6
|
-
const dynamicSlimmer = require('./dynamic-slimmer-f31fdfd7.js');
|
|
7
|
-
const pageResizeObserverSlimmer = require('./page-resize-observer-slimmer-44e08878.js');
|
|
8
|
-
const ui$1 = require('./ui-32e69595.js');
|
|
9
|
-
const typeGuard = require('./type-guard-4ba85fdc.js');
|
|
10
|
-
const responsiveFormatFacade = require('./responsive-format-facade-bf7d9ab2.js');
|
|
11
|
-
const changeManager = require('./change-manager-a297e4d2.js');
|
|
12
|
-
const staticSubjectTitle = require('./static-subject-title-64175f06.js');
|
|
13
|
-
const domNodeSubjectFactory = require('./dom-node-subject-factory-6a2aa462.js');
|
|
14
|
-
const vegaInternalEventId = require('./vega-internal-event-id-a0ca9af9.js');
|
|
15
|
-
const domNodeSubjectObserverFactory = require('./dom-node-subject-observer-factory-8f9ed458.js');
|
|
16
|
-
|
|
17
|
-
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
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;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* This class is is used to retrieve the body element of document.
|
|
25
|
-
*/
|
|
26
|
-
class DefaultWrapper {
|
|
27
|
-
/**
|
|
28
|
-
* The canRetrieve function return is always true.
|
|
29
|
-
*
|
|
30
|
-
* @returns {boolean} the boolean type.
|
|
31
|
-
*/
|
|
32
|
-
canRetrieve() {
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* The retrieve function get the body element of document.
|
|
37
|
-
*
|
|
38
|
-
* @returns {HTMLElement} the element.
|
|
39
|
-
*/
|
|
40
|
-
retrieve() {
|
|
41
|
-
const container = document.body;
|
|
42
|
-
if (this.showConfig.appendableElement.parentElement !== container) {
|
|
43
|
-
container.append(this.showConfig.appendableElement);
|
|
44
|
-
}
|
|
45
|
-
return container;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
__decorate$a([
|
|
49
|
-
globalSlimmerRegistry.MapToComponentField()
|
|
50
|
-
], DefaultWrapper.prototype, "showConfig", void 0);
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Body positioned wrapper.
|
|
54
|
-
*/
|
|
55
|
-
class BodyPositionedWrapper {
|
|
56
|
-
/**
|
|
57
|
-
* Valid is a body position used wrapper.
|
|
58
|
-
*
|
|
59
|
-
* @returns {boolean} can retrieve or not.
|
|
60
|
-
*/
|
|
61
|
-
canRetrieve() {
|
|
62
|
-
return !this.showConfig.isScreenPosition;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
67
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
68
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
69
|
-
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;
|
|
70
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* This class is is used to retrieve an HTML element based on a specified selector.
|
|
74
|
-
*
|
|
75
|
-
* @property {HTMLElement} showConfig the show config
|
|
76
|
-
*/
|
|
77
|
-
class PositionRelativeToWrapper extends BodyPositionedWrapper {
|
|
78
|
-
/**
|
|
79
|
-
* The canRetrieve function just determines whether the showConfig contains the positionRelativeTo object.
|
|
80
|
-
*
|
|
81
|
-
* @returns {boolean} the boolean type.
|
|
82
|
-
*/
|
|
83
|
-
canRetrieve() {
|
|
84
|
-
return (super.canRetrieve() &&
|
|
85
|
-
!!this.showConfig.positionRelativeTo &&
|
|
86
|
-
!!document.querySelector(this.showConfig.positionRelativeTo));
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* The retrieve function query the element of positionRelativeTo in showConfig.
|
|
90
|
-
*
|
|
91
|
-
* @returns {HTMLElement} the element.
|
|
92
|
-
*/
|
|
93
|
-
retrieve() {
|
|
94
|
-
const container = document.querySelector(this.showConfig.positionRelativeTo);
|
|
95
|
-
if (this.showConfig.appendableElement.parentElement !== container) {
|
|
96
|
-
container.append(this.showConfig.appendableElement);
|
|
97
|
-
}
|
|
98
|
-
return container;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
__decorate$9([
|
|
102
|
-
globalSlimmerRegistry.MapToComponentField()
|
|
103
|
-
], PositionRelativeToWrapper.prototype, "showConfig", void 0);
|
|
104
|
-
|
|
105
|
-
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
106
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
107
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
108
|
-
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;
|
|
109
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* This class is is used to get vega-modal element as a container and store the element appender element to slot.
|
|
113
|
-
*
|
|
114
|
-
* @property {HTMLElement} showConfig the show config
|
|
115
|
-
*/
|
|
116
|
-
class VegaModalWrapper extends BodyPositionedWrapper {
|
|
117
|
-
/**
|
|
118
|
-
* The canRetrieve function just determines whether the target of showConfig has the `vega-modal` element. If not, search upwards layer by layer.
|
|
119
|
-
*
|
|
120
|
-
* @returns {boolean} the boolean type.
|
|
121
|
-
*/
|
|
122
|
-
canRetrieve() {
|
|
123
|
-
return super.canRetrieve() && !!ui.findParent(this.showConfig.target, 'vega-modal');
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* The retrieve function get the slot position of vega-modal element.
|
|
127
|
-
*
|
|
128
|
-
* @returns {HTMLElement} the element.
|
|
129
|
-
*/
|
|
130
|
-
retrieve() {
|
|
131
|
-
return this.getVegaModalShowConfigContainer();
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* This function `getVegaModalContentWithoutScroll` determines whether vega-modal has a slot whose name is `content` or `modal-content`. If there is a component rendered in the modal, the elementAppender added to the corresponding slot attribute is added. If not, the elementAppender is not directly appended to the root directory of vega-modal.
|
|
135
|
-
*
|
|
136
|
-
* @param {Nullable<HTMLElement>} parentModal The parentModal is vega-modal element.
|
|
137
|
-
* @param {Nullable<HTMLElement>} element The parentModal is vega-modal element.
|
|
138
|
-
*/
|
|
139
|
-
setElementSlot(parentModal, element) {
|
|
140
|
-
var _a;
|
|
141
|
-
const slotName = (_a = Array.from(parentModal.children)
|
|
142
|
-
.find((item) => {
|
|
143
|
-
const slotName = item.getAttribute('slot');
|
|
144
|
-
return slotName && ['content', 'modal-content'].includes(slotName);
|
|
145
|
-
})) === null || _a === void 0 ? void 0 : _a.getAttribute('slot');
|
|
146
|
-
if (slotName) {
|
|
147
|
-
element.setAttribute('slot', slotName);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* The function "getShowConfigContainer" returns the appended element container. If the modal content can be scrolled, the container is the div element that wraps the append element. Otherwise, the container is the modal dialog itself.
|
|
152
|
-
*
|
|
153
|
-
* @returns {HTMLElement} the `scrollContainer` element.
|
|
154
|
-
*/
|
|
155
|
-
getVegaModalShowConfigContainer() {
|
|
156
|
-
const parentModal = ui.findParent(this.showConfig.target, 'vega-modal');
|
|
157
|
-
const modalContentScrollable = parentModal.shadowRoot.querySelector('.vega-modal-content-with-scroll');
|
|
158
|
-
const modalDialog = parentModal.shadowRoot.querySelector('.modal-dialog');
|
|
159
|
-
this.setElementSlot(parentModal, this.showConfig.appendableElement);
|
|
160
|
-
parentModal.append(this.showConfig.appendableElement);
|
|
161
|
-
return modalContentScrollable ? modalContentScrollable : modalDialog;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
__decorate$8([
|
|
165
|
-
globalSlimmerRegistry.MapToComponentField({ writable: true })
|
|
166
|
-
], VegaModalWrapper.prototype, "showConfig", void 0);
|
|
167
|
-
|
|
168
|
-
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
169
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
170
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
171
|
-
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;
|
|
172
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
173
|
-
};
|
|
174
|
-
/**
|
|
175
|
-
* This class is used to get the class `vega-popover` as a container and store the element appender element.
|
|
176
|
-
*
|
|
177
|
-
* @property {HTMLElement} showConfig the show config
|
|
178
|
-
*/
|
|
179
|
-
class VegaPopoverWrapper extends BodyPositionedWrapper {
|
|
180
|
-
/**
|
|
181
|
-
* The canRetrieve function just determine whether the target of showConfig has the class `vega-popover`. If not, search upwards layer by layer.
|
|
182
|
-
*
|
|
183
|
-
* @returns {boolean} the boolean type.
|
|
184
|
-
*/
|
|
185
|
-
canRetrieve() {
|
|
186
|
-
return super.canRetrieve() && !!ui.findParent(this.showConfig.target, '.vega-popover');
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* The retrieve function get the element that if the target of showConfig does not have the class vega-popover, search upwards layer by layer until this element is found.
|
|
190
|
-
*
|
|
191
|
-
* @returns {HTMLElement} the element.
|
|
192
|
-
*/
|
|
193
|
-
retrieve() {
|
|
194
|
-
const container = ui.findParent(this.showConfig.target, '.vega-popover');
|
|
195
|
-
container.append(this.showConfig.appendableElement);
|
|
196
|
-
return container;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
__decorate$7([
|
|
200
|
-
globalSlimmerRegistry.MapToComponentField()
|
|
201
|
-
], VegaPopoverWrapper.prototype, "showConfig", void 0);
|
|
202
|
-
|
|
203
|
-
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
204
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
205
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
206
|
-
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;
|
|
207
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
208
|
-
};
|
|
209
|
-
/**
|
|
210
|
-
* This class is responsible for setting the container element for appending an element based on certain conditions.
|
|
211
|
-
*
|
|
212
|
-
* @property {HTMLElement} container the container
|
|
213
|
-
* @property {HTMLElement} showConfig the show config
|
|
214
|
-
*/
|
|
215
|
-
class ElementAppenderContainerController extends globalSlimmerRegistry.VegaSlimmer {
|
|
216
|
-
constructor() {
|
|
217
|
-
super(...arguments);
|
|
218
|
-
this.positionRelativeToWrapper = new PositionRelativeToWrapper();
|
|
219
|
-
this.vegaPopoverWrapper = new VegaPopoverWrapper();
|
|
220
|
-
this.vegaModalWrapper = new VegaModalWrapper();
|
|
221
|
-
this.defaultWrapper = new DefaultWrapper();
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* The function sets the container element by iterating through a list of retrievers, defaulting to the document body.
|
|
225
|
-
*/
|
|
226
|
-
setContainer() {
|
|
227
|
-
this.setContainerRetrievers();
|
|
228
|
-
for (const retriever of this.containerRetrievers) {
|
|
229
|
-
if (retriever.canRetrieve()) {
|
|
230
|
-
this.container = retriever.retrieve();
|
|
231
|
-
return;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* The function sets up an array of container retrievers based on certain conditions.
|
|
237
|
-
*/
|
|
238
|
-
setContainerRetrievers() {
|
|
239
|
-
this.containerRetrievers = [
|
|
240
|
-
this.positionRelativeToWrapper,
|
|
241
|
-
this.vegaPopoverWrapper,
|
|
242
|
-
this.vegaModalWrapper,
|
|
243
|
-
this.defaultWrapper,
|
|
244
|
-
];
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
__decorate$6([
|
|
248
|
-
globalSlimmerRegistry.MapToComponentField({ writable: true })
|
|
249
|
-
], ElementAppenderContainerController.prototype, "container", void 0);
|
|
250
|
-
__decorate$6([
|
|
251
|
-
globalSlimmerRegistry.MapToComponentField({ writable: true })
|
|
252
|
-
], ElementAppenderContainerController.prototype, "showConfig", void 0);
|
|
253
|
-
__decorate$6([
|
|
254
|
-
globalSlimmerRegistry.InjectVegaSlimmer()
|
|
255
|
-
], ElementAppenderContainerController.prototype, "positionRelativeToWrapper", void 0);
|
|
256
|
-
__decorate$6([
|
|
257
|
-
globalSlimmerRegistry.InjectVegaSlimmer()
|
|
258
|
-
], ElementAppenderContainerController.prototype, "vegaPopoverWrapper", void 0);
|
|
259
|
-
__decorate$6([
|
|
260
|
-
globalSlimmerRegistry.InjectVegaSlimmer()
|
|
261
|
-
], ElementAppenderContainerController.prototype, "vegaModalWrapper", void 0);
|
|
262
|
-
__decorate$6([
|
|
263
|
-
globalSlimmerRegistry.InjectVegaSlimmer()
|
|
264
|
-
], ElementAppenderContainerController.prototype, "defaultWrapper", void 0);
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* calculate position
|
|
268
|
-
*/
|
|
269
|
-
class BasePositionCalculationStrategy extends globalSlimmerRegistry.VegaSlimmer {
|
|
270
|
-
/**
|
|
271
|
-
* Get the position box.
|
|
272
|
-
*
|
|
273
|
-
* @param {PlacementType[]} placement - previous placement.
|
|
274
|
-
* @param {PositionAlignmentType[]} alignment - previous placement.
|
|
275
|
-
* @returns {ElementPositionBox} A function that takes in a container, element, target, placement, and translocation and
|
|
276
|
-
* returns an ElementPositionBox.
|
|
277
|
-
*/
|
|
278
|
-
getPositionBox(placement, alignment) {
|
|
279
|
-
const placements = placement || this.getPlacements();
|
|
280
|
-
const alignments = alignment || this.getAlignments();
|
|
281
|
-
const targetBox = this.getTargetBoundBox();
|
|
282
|
-
const elementBox = this.getElementBoundBox();
|
|
283
|
-
const containerBox = this.getElementScrollDimension();
|
|
284
|
-
const suitablePlacement = this.getSuitablePlacement(containerBox, elementBox, targetBox, placements);
|
|
285
|
-
const suitableAlignment = this.getSuitableAlignment(containerBox, elementBox, targetBox, suitablePlacement, alignments);
|
|
286
|
-
const positionBox = this.calculatePosition(elementBox, targetBox, suitablePlacement, suitableAlignment);
|
|
287
|
-
const translocationBox = this.getTranslocationBox(suitablePlacement);
|
|
288
|
-
positionBox.placement = suitablePlacement;
|
|
289
|
-
positionBox.alignment = suitableAlignment;
|
|
290
|
-
positionBox.left += translocationBox.X;
|
|
291
|
-
positionBox.top += translocationBox.Y;
|
|
292
|
-
return positionBox;
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* "Get the width, height, and top position of an element."
|
|
296
|
-
*
|
|
297
|
-
* The function takes an element as an argument and returns an object with three properties: width,
|
|
298
|
-
* height, and top.
|
|
299
|
-
*
|
|
300
|
-
* Note: If element is hide, we should temporary change it to `block` to get the bounding client rect of element,
|
|
301
|
-
* After do that, this element will change to origin `hide`, if not, it will be contained in the calculate of `document.documentElement.scrollHeight`
|
|
302
|
-
*
|
|
303
|
-
* @returns {ElementBoundBox} An object with the width, height, and top properties of the element.
|
|
304
|
-
*/
|
|
305
|
-
getElementBoundBox() {
|
|
306
|
-
const element = this.showConfig.appendableElement;
|
|
307
|
-
const isElementHide = element.classList.contains('vega-force-hidden');
|
|
308
|
-
if (isElementHide)
|
|
309
|
-
element.classList.remove('vega-force-hidden');
|
|
310
|
-
const elementRect = element.getBoundingClientRect();
|
|
311
|
-
if (isElementHide)
|
|
312
|
-
element.classList.add('vega-force-hidden');
|
|
313
|
-
return {
|
|
314
|
-
width: elementRect.width,
|
|
315
|
-
height: elementRect.height,
|
|
316
|
-
left: elementRect.left,
|
|
317
|
-
top: elementRect.top,
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* It takes a placement string or array of placements and returns an array of placements
|
|
322
|
-
* if given placement is single, we should completion the placements with the default {@link Placements}
|
|
323
|
-
* and make given placement as default.
|
|
324
|
-
* if given placement is array, we should use it directly, even it partial of {@link Placements}.
|
|
325
|
-
* if not placement give. we should use {@link Placements}.
|
|
326
|
-
*
|
|
327
|
-
* @returns {PlacementType[]} ordered placements.
|
|
328
|
-
*/
|
|
329
|
-
getPlacements() {
|
|
330
|
-
const placement = this.showConfig.placement;
|
|
331
|
-
if (typeof placement === 'string') {
|
|
332
|
-
const partial = ui$1.Placements.filter((direction) => direction !== placement);
|
|
333
|
-
return [placement, ...partial];
|
|
334
|
-
}
|
|
335
|
-
else if (Array.isArray(placement)) {
|
|
336
|
-
return placement;
|
|
337
|
-
}
|
|
338
|
-
else {
|
|
339
|
-
return [...ui$1.Placements];
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
/**
|
|
343
|
-
* It returns acceptable alignments.
|
|
344
|
-
*
|
|
345
|
-
* @returns {PositionAlignmentType[]} acceptable alignments
|
|
346
|
-
*/
|
|
347
|
-
getAlignments() {
|
|
348
|
-
const alignment = this.showConfig.alignment;
|
|
349
|
-
if (typeof alignment === 'string') {
|
|
350
|
-
const partial = ui$1.Alignments.filter((item) => item !== alignment);
|
|
351
|
-
return [alignment, ...partial];
|
|
352
|
-
}
|
|
353
|
-
else if (Array.isArray(alignment)) {
|
|
354
|
-
return alignment;
|
|
355
|
-
}
|
|
356
|
-
else {
|
|
357
|
-
return [...ui$1.Alignments];
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* It takes a placement, a target box, and a element box, and returns an element box
|
|
362
|
-
*
|
|
363
|
-
* @param {ElementBoundBox} elementBox - The position of the element element.
|
|
364
|
-
* @param {ElementBoundBox} targetBox - The position of the target element.
|
|
365
|
-
* @param {PlacementType} placement - The placement of the element.
|
|
366
|
-
* @param {PositionAlignmentType} alignment - The alignment of the element
|
|
367
|
-
* @returns {ElementPositionBox} An object with top and left properties.
|
|
368
|
-
*/
|
|
369
|
-
calculatePosition(elementBox, targetBox, placement, alignment) {
|
|
370
|
-
return {
|
|
371
|
-
top: this.calculateTop(elementBox, targetBox, placement, alignment),
|
|
372
|
-
left: this.calculateLeft(elementBox, targetBox, placement, alignment),
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
* It returns the translocation of the element relative to the target element
|
|
377
|
-
*
|
|
378
|
-
* @param {PlacementType} placement - The suitable placement of the element.
|
|
379
|
-
* @returns {TranslocationType} A translocation object with X and Y properties.
|
|
380
|
-
*/
|
|
381
|
-
getTranslocationBox(placement) {
|
|
382
|
-
const originPlacement = Array.isArray(this.showConfig.placement)
|
|
383
|
-
? this.showConfig.placement[0]
|
|
384
|
-
: this.showConfig.placement;
|
|
385
|
-
const translocation = this.getTranslocation();
|
|
386
|
-
const result = { X: 0, Y: 0 };
|
|
387
|
-
if (typeGuard.isTranslocationType(translocation)) {
|
|
388
|
-
let xValue = translocation.X;
|
|
389
|
-
let yValue = translocation.Y;
|
|
390
|
-
// If originPlacement and placement is not in same axis, it should reverse axis.
|
|
391
|
-
if ((originPlacement &&
|
|
392
|
-
['left', 'right'].includes(originPlacement) &&
|
|
393
|
-
['top', 'bottom'].includes(placement)) ||
|
|
394
|
-
(originPlacement &&
|
|
395
|
-
['top', 'bottom'].includes(originPlacement) &&
|
|
396
|
-
['left', 'right'].includes(placement))) {
|
|
397
|
-
xValue = translocation.Y;
|
|
398
|
-
yValue = translocation.X;
|
|
399
|
-
}
|
|
400
|
-
if (['bottom', 'top'].includes(placement)) {
|
|
401
|
-
result.Y = placement === 'top' ? -yValue : yValue;
|
|
402
|
-
result.X = xValue;
|
|
403
|
-
}
|
|
404
|
-
if (['left', 'right'].includes(placement)) {
|
|
405
|
-
result.X = placement === 'left' ? -xValue : xValue;
|
|
406
|
-
result.Y = yValue;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
return result;
|
|
410
|
-
}
|
|
411
|
-
/**
|
|
412
|
-
* Calculate the left position of the element
|
|
413
|
-
*
|
|
414
|
-
* @param {ElementBoundBox} elementBox - The position box of the element.
|
|
415
|
-
* @param {ElementBoundBox} targetBox - The position box of the target element that is attached to.
|
|
416
|
-
* @param {PlacementType} placement - The placement of the element.
|
|
417
|
-
* @param {PositionAlignmentType} alignment - The alignment of the element
|
|
418
|
-
* @returns {number} The left position of the element.
|
|
419
|
-
*/
|
|
420
|
-
calculateLeft(elementBox, targetBox, placement, alignment) {
|
|
421
|
-
switch (placement) {
|
|
422
|
-
case 'top':
|
|
423
|
-
case 'bottom': {
|
|
424
|
-
if (alignment === 'end') {
|
|
425
|
-
return targetBox.left + targetBox.width - elementBox.width;
|
|
426
|
-
}
|
|
427
|
-
else if (alignment === 'center') {
|
|
428
|
-
return targetBox.left - (elementBox.width - targetBox.width) / 2;
|
|
429
|
-
}
|
|
430
|
-
else {
|
|
431
|
-
return targetBox.left;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
case 'left': {
|
|
435
|
-
return targetBox.left - elementBox.width;
|
|
436
|
-
}
|
|
437
|
-
case 'right': {
|
|
438
|
-
return targetBox.left + targetBox.width;
|
|
439
|
-
}
|
|
440
|
-
/* istanbul ignore next */
|
|
441
|
-
default:
|
|
442
|
-
throw new Error(`Unexpected placement: ${placement}. Expected values are top, bottom, left, or right.`);
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
/**
|
|
446
|
-
* Calculate the top position of the element
|
|
447
|
-
*
|
|
448
|
-
* @param {ElementBoundBox} elementBox - The position box of the element.
|
|
449
|
-
* @param {ElementBoundBox} targetBox - The position box of the target element that is attached to.
|
|
450
|
-
* @param {PlacementType} placement - The placement of the element.
|
|
451
|
-
* @param {PositionAlignmentType} alignment - The alignment of the element
|
|
452
|
-
* @returns {number} the top position of the element.
|
|
453
|
-
*/
|
|
454
|
-
calculateTop(elementBox, targetBox, placement, alignment) {
|
|
455
|
-
switch (placement) {
|
|
456
|
-
case 'left':
|
|
457
|
-
case 'right': {
|
|
458
|
-
if (alignment === 'end') {
|
|
459
|
-
return targetBox.top + targetBox.height - elementBox.height;
|
|
460
|
-
}
|
|
461
|
-
else if (alignment === 'center') {
|
|
462
|
-
return targetBox.top - (elementBox.height - targetBox.height) / 2;
|
|
463
|
-
}
|
|
464
|
-
else {
|
|
465
|
-
return targetBox.top;
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
case 'top': {
|
|
469
|
-
return targetBox.top - elementBox.height;
|
|
470
|
-
}
|
|
471
|
-
case 'bottom': {
|
|
472
|
-
return targetBox.top + targetBox.height;
|
|
473
|
-
}
|
|
474
|
-
/* istanbul ignore next */
|
|
475
|
-
default:
|
|
476
|
-
throw new Error(`Unexpected placement: ${placement}. Expected values are top, bottom, left, or right.`);
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
* It takes a list of placements and returns the first placement that has enough space to place the
|
|
481
|
-
* element
|
|
482
|
-
*
|
|
483
|
-
* @param {ElementScrollDimension} containerBox - The box of the container element.
|
|
484
|
-
* @param {ElementBoundBox} elementBox - The box of the element to be placed.
|
|
485
|
-
* @param {ElementBoundBox} targetBox - The box of the target element.
|
|
486
|
-
* @param {PlacementType[]} placements - The placements that we want to try.
|
|
487
|
-
* @returns {PlacementType} A function that takes in a containerBox, elementBox, targetBox, placements, and element.
|
|
488
|
-
*/
|
|
489
|
-
getSuitablePlacement(containerBox, elementBox, targetBox, placements) {
|
|
490
|
-
const defaultPlacement = placements[0];
|
|
491
|
-
const suitablePlacement = placements.find((placement) => this.hasEnoughSpace(containerBox, placement, targetBox, elementBox));
|
|
492
|
-
if (suitablePlacement) {
|
|
493
|
-
return suitablePlacement;
|
|
494
|
-
}
|
|
495
|
-
else {
|
|
496
|
-
globalSlimmerRegistry.LogUtility.warn(`
|
|
497
|
-
No enough space found for placing element and we will keep using the defined placement:
|
|
498
|
-
${defaultPlacement}
|
|
499
|
-
`);
|
|
500
|
-
return defaultPlacement;
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
/**
|
|
504
|
-
* It takes a list of alignments and returns the suitable one that has enough space to fit the element
|
|
505
|
-
*
|
|
506
|
-
* @param {ElementScrollDimension} containerBox - The bounding box of the container element.
|
|
507
|
-
* @param {ElementBoundBox} elementBox - The box of the element that we want to position.
|
|
508
|
-
* @param {ElementBoundBox} targetBox - The box of the element that the element to be positioned is aligned to.
|
|
509
|
-
* @param {PlacementType} placement - The placement of the element relative to the target.
|
|
510
|
-
* @param {PositionAlignmentType[]} alignments - An array of alignments to try.
|
|
511
|
-
* @returns {PositionAlignmentType} the alignment that is suitable for the element.
|
|
512
|
-
*/
|
|
513
|
-
getSuitableAlignment(containerBox, elementBox, targetBox, placement, alignments) {
|
|
514
|
-
const defaultAlignment = alignments[0];
|
|
515
|
-
const suitableAlignment = alignments.find((alignment) => this.hasEnoughAlignmentSpace(containerBox, targetBox, elementBox, placement, alignment));
|
|
516
|
-
if (suitableAlignment) {
|
|
517
|
-
return suitableAlignment;
|
|
518
|
-
}
|
|
519
|
-
else {
|
|
520
|
-
globalSlimmerRegistry.LogUtility.warn(`
|
|
521
|
-
No enough space found for placing element and we will keep using the defined alignment:
|
|
522
|
-
${defaultAlignment}
|
|
523
|
-
`);
|
|
524
|
-
return defaultAlignment;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
/**
|
|
528
|
-
* Whether the alignment space is enough
|
|
529
|
-
*
|
|
530
|
-
* @param {ElementScrollDimension} containerBox - The bounding box of the container element.
|
|
531
|
-
* @param {ElementBoundBox} targetBox - The position of the target element.
|
|
532
|
-
* @param {ElementBoundBox} elementBox - The box of the element that we're trying to position.
|
|
533
|
-
* @param {PlacementType} placement - The placement of the element relative to the target.
|
|
534
|
-
* @param {PlacementType} alignment - The alignment of the element relative to the target.
|
|
535
|
-
* @returns {boolean} return true if it has enough space, otherwise false
|
|
536
|
-
*/
|
|
537
|
-
hasEnoughAlignmentSpace(containerBox, targetBox, elementBox, placement, alignment) {
|
|
538
|
-
if (['top', 'bottom'].includes(placement)) {
|
|
539
|
-
switch (alignment) {
|
|
540
|
-
case 'start': {
|
|
541
|
-
return targetBox.left + elementBox.width <= containerBox.width;
|
|
542
|
-
}
|
|
543
|
-
case 'center': {
|
|
544
|
-
return (targetBox.left >= (elementBox.width - targetBox.width) / 2 &&
|
|
545
|
-
targetBox.left + targetBox.width / 2 + elementBox.width / 2 <= containerBox.width);
|
|
546
|
-
}
|
|
547
|
-
case 'end': {
|
|
548
|
-
return targetBox.left + targetBox.width >= elementBox.width;
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
if (['right', 'left'].includes(placement)) {
|
|
553
|
-
switch (alignment) {
|
|
554
|
-
case 'start': {
|
|
555
|
-
return targetBox.top + elementBox.height <= containerBox.height;
|
|
556
|
-
}
|
|
557
|
-
case 'center': {
|
|
558
|
-
return (targetBox.top >= (elementBox.height - targetBox.height) / 2 &&
|
|
559
|
-
targetBox.top + targetBox.height / 2 + elementBox.height / 2 <= containerBox.height);
|
|
560
|
-
}
|
|
561
|
-
case 'end': {
|
|
562
|
-
return targetBox.top + targetBox.height >= elementBox.height;
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
/* istanbul ignore next */
|
|
567
|
-
return false;
|
|
568
|
-
}
|
|
569
|
-
/**
|
|
570
|
-
* If the placement is top or left, then the target's top or left position must be greater than or
|
|
571
|
-
* equal to the element's height or width. If the placement is bottom or right, then the container's
|
|
572
|
-
* height or width minus the target's top or left position minus the target's height or width must be
|
|
573
|
-
* greater than or equal to the element's height or width.
|
|
574
|
-
*
|
|
575
|
-
* @param {ElementScrollDimension} containerBox - The bounding box of the container element.
|
|
576
|
-
* @param {PlacementType} placement - The placement of the element.
|
|
577
|
-
* @param {ElementBoundBox} targetBox - The position of the target element.
|
|
578
|
-
* @param {ElementBoundBox} elementBox - The dimensions of the element to be positioned.
|
|
579
|
-
* @returns {boolean} A boolean value.
|
|
580
|
-
*/
|
|
581
|
-
hasEnoughSpace(containerBox, placement, targetBox, elementBox) {
|
|
582
|
-
switch (placement) {
|
|
583
|
-
case 'top':
|
|
584
|
-
return targetBox.top >= elementBox.height;
|
|
585
|
-
case 'bottom':
|
|
586
|
-
return containerBox.height - targetBox.top - targetBox.height >= elementBox.height;
|
|
587
|
-
case 'left':
|
|
588
|
-
return targetBox.left >= elementBox.width;
|
|
589
|
-
case 'right':
|
|
590
|
-
return containerBox.width - targetBox.left - targetBox.width >= elementBox.width;
|
|
591
|
-
/* istanbul ignore next */
|
|
592
|
-
default:
|
|
593
|
-
return false;
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
/**
|
|
597
|
-
* Retrieves and formats the translocation.
|
|
598
|
-
*
|
|
599
|
-
* @returns {Nullable<TranslocationType>} current translocation.
|
|
600
|
-
*/
|
|
601
|
-
getTranslocation() {
|
|
602
|
-
const translocation = this.showConfig.translocation;
|
|
603
|
-
return translocation && responsiveFormatFacade.ResponsiveFormatFacade.format(translocation, 'translocation');
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
608
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
609
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
610
|
-
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;
|
|
611
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
612
|
-
};
|
|
613
|
-
/**
|
|
614
|
-
* calculate position by body container
|
|
615
|
-
*/
|
|
616
|
-
class BodyPositionCalculationStrategy extends BasePositionCalculationStrategy {
|
|
617
|
-
/**
|
|
618
|
-
* Get the position of the element in the container according to the target element and the placement
|
|
619
|
-
* If give a translocation, it will apply the translocation to the result.
|
|
620
|
-
* Note: If you use this method to calculate the position, you should make container as relative position at first.
|
|
621
|
-
*
|
|
622
|
-
* @returns {ElementPositionBox} A function that takes in a container, element, target, placement, and translocation and
|
|
623
|
-
* returns an ElementPositionBox.
|
|
624
|
-
*/
|
|
625
|
-
getPosition() {
|
|
626
|
-
const containerStyle = window.getComputedStyle(this.container);
|
|
627
|
-
if (containerStyle.position !== 'relative') {
|
|
628
|
-
globalSlimmerRegistry.LogUtility.warn(`Calculate position should make container as 'position: relative', otherwise the result might not be accurate.`);
|
|
629
|
-
}
|
|
630
|
-
return this.getPositionBox();
|
|
631
|
-
}
|
|
632
|
-
/**
|
|
633
|
-
* It returns the position of an element relative to its container and also includes the scroll height of container.
|
|
634
|
-
*
|
|
635
|
-
* @returns {ElementBoundBox} An object with the properties width, height, top, and left.
|
|
636
|
-
*/
|
|
637
|
-
getTargetBoundBox() {
|
|
638
|
-
const containerRect = this.container.getBoundingClientRect();
|
|
639
|
-
const targetRect = this.showConfig.target.getBoundingClientRect();
|
|
640
|
-
const targetTop = targetRect.top - containerRect.top + this.container.scrollTop;
|
|
641
|
-
const targetLeft = targetRect.left - containerRect.left + this.container.scrollLeft;
|
|
642
|
-
return {
|
|
643
|
-
width: targetRect.width,
|
|
644
|
-
height: targetRect.height,
|
|
645
|
-
top: targetTop,
|
|
646
|
-
left: targetLeft,
|
|
647
|
-
};
|
|
648
|
-
}
|
|
649
|
-
/**
|
|
650
|
-
* "Get the width and height of an element."
|
|
651
|
-
*
|
|
652
|
-
* The function takes a single parameter, a container element, and returns an object with two
|
|
653
|
-
* properties: width and height
|
|
654
|
-
*
|
|
655
|
-
* @returns {ElementScrollDimension} An object with two properties: width and height.
|
|
656
|
-
*/
|
|
657
|
-
getElementScrollDimension() {
|
|
658
|
-
return {
|
|
659
|
-
width: this.container.scrollWidth,
|
|
660
|
-
height: this.container.scrollHeight,
|
|
661
|
-
};
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
__decorate$5([
|
|
665
|
-
globalSlimmerRegistry.MapToComponentField()
|
|
666
|
-
], BodyPositionCalculationStrategy.prototype, "container", void 0);
|
|
667
|
-
__decorate$5([
|
|
668
|
-
globalSlimmerRegistry.MapToComponentField()
|
|
669
|
-
], BodyPositionCalculationStrategy.prototype, "showConfig", void 0);
|
|
670
|
-
|
|
671
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
672
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
673
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
674
|
-
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;
|
|
675
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
676
|
-
};
|
|
677
|
-
/**
|
|
678
|
-
* calculate position by screen container
|
|
679
|
-
*/
|
|
680
|
-
class ScreenPositionCalculationStrategy extends BasePositionCalculationStrategy {
|
|
681
|
-
/**
|
|
682
|
-
* Get the position of the element in the container according to the target element and the placement
|
|
683
|
-
* If give a translocation, it will apply the translocation to the result.
|
|
684
|
-
*
|
|
685
|
-
* @param {boolean} usePreviousPlacement - Should keep use previous placement and alignment.
|
|
686
|
-
* @returns {ElementPositionBox} A function that takes in a container, element, target, placement, and translocation and
|
|
687
|
-
* returns an ElementPositionBox.
|
|
688
|
-
*/
|
|
689
|
-
getPosition(usePreviousPlacement) {
|
|
690
|
-
const positionBox = usePreviousPlacement
|
|
691
|
-
? this.getPositionBox([this.previousPositionBox.placement], [this.previousPositionBox.alignment])
|
|
692
|
-
: this.getPositionBox();
|
|
693
|
-
this.previousPositionBox = positionBox;
|
|
694
|
-
return positionBox;
|
|
695
|
-
}
|
|
696
|
-
/**
|
|
697
|
-
* It returns the position of an element relative to its container and also includes the scroll height of container.
|
|
698
|
-
*
|
|
699
|
-
* @returns {ElementBoundBox} An object with the properties width, height, top, and left.
|
|
700
|
-
*/
|
|
701
|
-
getTargetBoundBox() {
|
|
702
|
-
const targetRect = this.showConfig.target.getBoundingClientRect();
|
|
703
|
-
return {
|
|
704
|
-
width: targetRect.width,
|
|
705
|
-
height: targetRect.height,
|
|
706
|
-
top: targetRect.top,
|
|
707
|
-
left: targetRect.left,
|
|
708
|
-
};
|
|
709
|
-
}
|
|
710
|
-
/**
|
|
711
|
-
* "Get the width and height of an element."
|
|
712
|
-
*
|
|
713
|
-
* The function takes a single parameter, a container element, and returns an object with two
|
|
714
|
-
* properties: width and height
|
|
715
|
-
*
|
|
716
|
-
* @returns {ElementScrollDimension} An object with two properties: width and height.
|
|
717
|
-
*/
|
|
718
|
-
getElementScrollDimension() {
|
|
719
|
-
return {
|
|
720
|
-
width: window.innerWidth,
|
|
721
|
-
height: window.innerHeight,
|
|
722
|
-
};
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
__decorate$4([
|
|
726
|
-
globalSlimmerRegistry.MapToComponentField()
|
|
727
|
-
], ScreenPositionCalculationStrategy.prototype, "showConfig", void 0);
|
|
728
|
-
|
|
729
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
730
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
731
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
732
|
-
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;
|
|
733
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
734
|
-
};
|
|
735
|
-
/**
|
|
736
|
-
* Calculation and adjustment of positions for appendable elements based on target element positions.
|
|
737
|
-
*/
|
|
738
|
-
class PositionCalculationController extends globalSlimmerRegistry.VegaSlimmer {
|
|
739
|
-
constructor() {
|
|
740
|
-
super(...arguments);
|
|
741
|
-
this.bodyPositionStrategy = new BodyPositionCalculationStrategy();
|
|
742
|
-
this.screenPositionStrategy = new ScreenPositionCalculationStrategy();
|
|
743
|
-
}
|
|
744
|
-
/**
|
|
745
|
-
* Sets the calculate postion strategy.
|
|
746
|
-
*/
|
|
747
|
-
setCalculationStrategy() {
|
|
748
|
-
this.positionStrategy = this.showConfig.isScreenPosition
|
|
749
|
-
? this.screenPositionStrategy
|
|
750
|
-
: this.bodyPositionStrategy;
|
|
751
|
-
}
|
|
752
|
-
/**
|
|
753
|
-
* Calculates the position and applies it to the appendable element.
|
|
754
|
-
*
|
|
755
|
-
* @param {boolean} [usePreviousPlacement] - Should keep use previous placement and alignment.
|
|
756
|
-
*/
|
|
757
|
-
adjustPosition(usePreviousPlacement) {
|
|
758
|
-
this.adjustWidth();
|
|
759
|
-
this.adjustHeight();
|
|
760
|
-
this.applyPosition(this.positionStrategy.getPosition(usePreviousPlacement));
|
|
761
|
-
}
|
|
762
|
-
/**
|
|
763
|
-
* Apply the position to the appendable element.
|
|
764
|
-
*
|
|
765
|
-
* @param {ElementPositionBox} positionBox - position box
|
|
766
|
-
*/
|
|
767
|
-
applyPosition(positionBox) {
|
|
768
|
-
const appendableElement = this.showConfig.appendableElement;
|
|
769
|
-
if (this.showConfig.isScreenPosition) {
|
|
770
|
-
appendableElement.style.position = 'fixed';
|
|
771
|
-
}
|
|
772
|
-
appendableElement.style.left = `${positionBox.left}px`;
|
|
773
|
-
appendableElement.style.top = `${positionBox.top}px`;
|
|
774
|
-
appendableElement.classList.remove('vega-placement-left', 'vega-placement-right', 'vega-placement-top', 'vega-placement-bottom');
|
|
775
|
-
appendableElement.classList.remove('vega-alignment-start', 'vega-alignment-center', 'vega-alignment-end');
|
|
776
|
-
appendableElement.classList.add(`vega-placement-${positionBox.placement}`);
|
|
777
|
-
appendableElement.classList.add(`vega-alignment-${positionBox.alignment}`);
|
|
778
|
-
}
|
|
779
|
-
/**
|
|
780
|
-
* It sets the width of the appendable element to the width of the target element if the
|
|
781
|
-
* matchTargetWidth property is true, otherwise it sets the width of the appendable element to the
|
|
782
|
-
* size property
|
|
783
|
-
*
|
|
784
|
-
* @returns {void}
|
|
785
|
-
*/
|
|
786
|
-
adjustWidth() {
|
|
787
|
-
if (this.showConfig.matchTargetWidth) {
|
|
788
|
-
const { width: hostWidth } = this.showConfig.target.getBoundingClientRect();
|
|
789
|
-
this.setRelatedWidth('width', hostWidth);
|
|
790
|
-
}
|
|
791
|
-
else {
|
|
792
|
-
this.setRelatedWidth('width', this.showConfig.size);
|
|
793
|
-
this.setRelatedWidth('minWidth', this.showConfig.minWidth);
|
|
794
|
-
this.setRelatedWidth('maxWidth', this.showConfig.maxWidth);
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
/**
|
|
798
|
-
* It takes a name and a value, formats the value, and then sets the style of the element
|
|
799
|
-
*
|
|
800
|
-
* @param {'width' | 'maxWidth' | 'minWidth'} name - 'width' | 'maxWidth' | 'minWidth'
|
|
801
|
-
* @param {ResponsiveType<SizeType>} value - ResponsiveType<SizeType>
|
|
802
|
-
* @returns {void}
|
|
803
|
-
*/
|
|
804
|
-
setRelatedWidth(name, value) {
|
|
805
|
-
if (!value)
|
|
806
|
-
return;
|
|
807
|
-
const formattedValue = responsiveFormatFacade.ResponsiveFormatFacade.format(value, 'size');
|
|
808
|
-
if (formattedValue) {
|
|
809
|
-
this.showConfig.appendableElement.style[name] =
|
|
810
|
-
typeof formattedValue === 'number' ? `${formattedValue}px` : formattedValue;
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
/**
|
|
814
|
-
* > If the `matchContainerHeight` property is set to `true`, then the maximum height of the dropdown
|
|
815
|
-
* is set to the height of the container minus the height of the target minus the top offset of the
|
|
816
|
-
* target
|
|
817
|
-
*
|
|
818
|
-
* @returns {void}
|
|
819
|
-
*/
|
|
820
|
-
adjustHeight() {
|
|
821
|
-
if (this.showConfig.matchContainerHeight && !this.showConfig.isScreenPosition) {
|
|
822
|
-
const { height: targetHeight } = this.showConfig.target.getBoundingClientRect();
|
|
823
|
-
let maxHeight = this.container.scrollHeight - this.showConfig.target.offsetTop - targetHeight;
|
|
824
|
-
if (this.showConfig.maxHeight) {
|
|
825
|
-
maxHeight = Math.min(maxHeight, this.showConfig.maxHeight);
|
|
826
|
-
}
|
|
827
|
-
this.showConfig.appendableElement.style.maxHeight = `${maxHeight}px`;
|
|
828
|
-
}
|
|
829
|
-
else if (this.showConfig.maxHeight) {
|
|
830
|
-
this.showConfig.appendableElement.style.maxHeight = `${this.showConfig.maxHeight}px`;
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
__decorate$3([
|
|
835
|
-
globalSlimmerRegistry.MapToComponentField()
|
|
836
|
-
], PositionCalculationController.prototype, "container", void 0);
|
|
837
|
-
__decorate$3([
|
|
838
|
-
globalSlimmerRegistry.MapToComponentField()
|
|
839
|
-
], PositionCalculationController.prototype, "showConfig", void 0);
|
|
840
|
-
__decorate$3([
|
|
841
|
-
globalSlimmerRegistry.InjectVegaSlimmer()
|
|
842
|
-
], PositionCalculationController.prototype, "bodyPositionStrategy", void 0);
|
|
843
|
-
__decorate$3([
|
|
844
|
-
globalSlimmerRegistry.InjectVegaSlimmer()
|
|
845
|
-
], PositionCalculationController.prototype, "screenPositionStrategy", void 0);
|
|
846
|
-
|
|
847
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
848
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
849
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
850
|
-
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;
|
|
851
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
852
|
-
};
|
|
853
|
-
/**
|
|
854
|
-
* This class is responsible for attaching the appendable element to the host element and adjusting its position
|
|
855
|
-
*
|
|
856
|
-
* @property {HTMLElement} showConfigCallback This is the callback function that will be
|
|
857
|
-
* called when the user clicks on the "Configure" button.
|
|
858
|
-
* @property {HTMLElement} showConfigCallbackTarget he component that will be used as the
|
|
859
|
-
* target for the showConfigCallback.
|
|
860
|
-
* @property {HTMLElement} showConfig the show config
|
|
861
|
-
*/
|
|
862
|
-
class ElementAppender {
|
|
863
|
-
/**
|
|
864
|
-
* The `constructor` function is used to initialize the `showConfigCallback` and
|
|
865
|
-
* `showConfigCallbackTarget` properties of the class.
|
|
866
|
-
*
|
|
867
|
-
* @param {ShowConfigCallbackType} showConfigCallback - This is the callback function that will be
|
|
868
|
-
* called when the user clicks on the "Configure" button.
|
|
869
|
-
* @param {ComponentInterface} [showConfigCallbackTarget] - The component that will be used as the
|
|
870
|
-
* target for the showConfigCallback.
|
|
871
|
-
*/
|
|
872
|
-
constructor(showConfigCallback, showConfigCallbackTarget) {
|
|
873
|
-
var _a, _b;
|
|
874
|
-
this.resizeObserverSlimmer = dynamicSlimmer.createDynamicSlimmer(ElementAppender, pageResizeObserverSlimmer.PageResizeObserverSlimmer, [], [
|
|
875
|
-
{ mapFrom: 'connectResizeObserver', mapTo: 'connectResizeObserver' },
|
|
876
|
-
{ mapFrom: 'disconnectResizeObserver', mapTo: 'disconnectResizeObserver' },
|
|
877
|
-
], [
|
|
878
|
-
{
|
|
879
|
-
/**
|
|
880
|
-
* The above code is defining a callback function. Inside the function,
|
|
881
|
-
* it checks if both the `target` and `appendableElement` are visible using the `isElementVisible` function.
|
|
882
|
-
* If both elements are visible, it calls three other functions: `adjustWidth`, `adjustHeight`, and `adjustPosition`.
|
|
883
|
-
* These functions are responsible for adjusting the width, height, and position of the elements respectively.
|
|
884
|
-
* The below method is e2e-test covered in @see{module:element-appender-helper-resize-callback-e2e }
|
|
885
|
-
*/
|
|
886
|
-
callback: /* istanbul ignore next */ () => {
|
|
887
|
-
// while target and appendableElement are both visible, we can adjust position.
|
|
888
|
-
// https://gethired.atlassian.net/browse/VD-1087
|
|
889
|
-
if (ui.isElementVisible(this.showConfig.target) &&
|
|
890
|
-
ui.isElementVisible(this.showConfig.appendableElement)) {
|
|
891
|
-
this.adjustPosition();
|
|
892
|
-
}
|
|
893
|
-
},
|
|
894
|
-
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
895
|
-
target: () => [document.body, this.showConfig.appendableElement, this.showConfig.target],
|
|
896
|
-
},
|
|
897
|
-
]);
|
|
898
|
-
this.elementAppenderContainerController = new ElementAppenderContainerController();
|
|
899
|
-
this.positionCalculationController = new PositionCalculationController();
|
|
900
|
-
this.showConfigCallback = showConfigCallback;
|
|
901
|
-
this.showConfigCallbackTarget = showConfigCallbackTarget;
|
|
902
|
-
const config = this.getShowConfig();
|
|
903
|
-
(_a = config.appendableElement) === null || _a === void 0 ? void 0 : _a.classList.add('vega-force-hidden');
|
|
904
|
-
(_b = config.appendableElement) === null || _b === void 0 ? void 0 : _b.classList.add('vega-element-appender-appendable');
|
|
905
|
-
}
|
|
906
|
-
/**
|
|
907
|
-
* It takes an element and appends it to the DOM, then adjusts its position and size to match the
|
|
908
|
-
* target element
|
|
909
|
-
*
|
|
910
|
-
* @returns {void} Nothing is being returned.
|
|
911
|
-
*/
|
|
912
|
-
show() {
|
|
913
|
-
this.setShowConfig();
|
|
914
|
-
if (!this.showConfig.target) {
|
|
915
|
-
globalSlimmerRegistry.LogUtility.error(`No target element found, please add it at new elementAppender.`);
|
|
916
|
-
return;
|
|
917
|
-
}
|
|
918
|
-
if (!this.showConfig.appendableElement) {
|
|
919
|
-
globalSlimmerRegistry.LogUtility.error(`No appendable element found, please add it at new elementAppender.`);
|
|
920
|
-
return;
|
|
921
|
-
}
|
|
922
|
-
/* A function that takes no parameters and returns nothing. It sets the position of the appendable
|
|
923
|
-
element. */
|
|
924
|
-
this.prepareShow();
|
|
925
|
-
this.adjustPosition();
|
|
926
|
-
this.setZIndex();
|
|
927
|
-
this.toggleShow(true);
|
|
928
|
-
this.connectResizeObserver();
|
|
929
|
-
}
|
|
930
|
-
/**
|
|
931
|
-
* > If the appendable element exists, hide it
|
|
932
|
-
*/
|
|
933
|
-
hide() {
|
|
934
|
-
if (!this.showConfig)
|
|
935
|
-
return;
|
|
936
|
-
this.toggleShow(false);
|
|
937
|
-
this.resetContainerPosition();
|
|
938
|
-
vegaSkeletonLoaderController.InternalVegaZIndexManager.removeZIndex(this.showConfig.appendableElement, 'base');
|
|
939
|
-
}
|
|
940
|
-
/**
|
|
941
|
-
* Update position while window scroll.
|
|
942
|
-
*/
|
|
943
|
-
onScroll() {
|
|
944
|
-
var _a;
|
|
945
|
-
const currentTargetRect = this.showConfig.target.getBoundingClientRect();
|
|
946
|
-
if (this.showConfig.isScreenPosition &&
|
|
947
|
-
(currentTargetRect.left !== ((_a = this.previousTargetRect) === null || _a === void 0 ? void 0 : _a.left) ||
|
|
948
|
-
currentTargetRect.top !== this.previousTargetRect.top)) {
|
|
949
|
-
this.adjustPosition(true);
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
/* istanbul ignore next */
|
|
953
|
-
/**
|
|
954
|
-
* It removes the z-index from the appendable element, removes the appendable element from the DOM, and
|
|
955
|
-
* disconnects the resize observer
|
|
956
|
-
*/
|
|
957
|
-
destroy() {
|
|
958
|
-
if (!this.showConfig)
|
|
959
|
-
return;
|
|
960
|
-
this.removeVisibleAppendElement(this.showConfig.appendableElement);
|
|
961
|
-
this.resetContainerPosition();
|
|
962
|
-
vegaSkeletonLoaderController.InternalVegaZIndexManager.removeZIndex(this.showConfig.appendableElement, 'base');
|
|
963
|
-
this.showConfig.appendableElement.remove();
|
|
964
|
-
this.disconnectResizeObserver();
|
|
965
|
-
}
|
|
966
|
-
/**
|
|
967
|
-
* The function "connectResizeObserver" is used to connect a resize observer.
|
|
968
|
-
*/
|
|
969
|
-
connectResizeObserver() {
|
|
970
|
-
}
|
|
971
|
-
/**
|
|
972
|
-
* The function disconnects a resize observer.
|
|
973
|
-
*/
|
|
974
|
-
disconnectResizeObserver() {
|
|
975
|
-
}
|
|
976
|
-
/**
|
|
977
|
-
* Toggle appendableElement show or hide
|
|
978
|
-
*
|
|
979
|
-
* @param {boolean} show remove hidden style if true, otherwise add it
|
|
980
|
-
*/
|
|
981
|
-
toggleShow(show) {
|
|
982
|
-
if (show) {
|
|
983
|
-
this.showConfig.appendableElement.classList.remove('vega-force-hidden');
|
|
984
|
-
this.saveVisibleAppendElement(this.showConfig.appendableElement);
|
|
985
|
-
}
|
|
986
|
-
else {
|
|
987
|
-
this.showConfig.appendableElement.classList.add('vega-force-hidden');
|
|
988
|
-
this.removeVisibleAppendElement(this.showConfig.appendableElement);
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
/**
|
|
992
|
-
* Save visible AppendableElement from the container state
|
|
993
|
-
*
|
|
994
|
-
* @param {HTMLElement} appendableElement - Appendable element controlled by ElementAppender
|
|
995
|
-
*/
|
|
996
|
-
saveVisibleAppendElement(appendableElement) {
|
|
997
|
-
const containerState = ElementAppender.containerMap.get(this.container);
|
|
998
|
-
if (containerState) {
|
|
999
|
-
containerState.visibleAppendElements.add(appendableElement);
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
/**
|
|
1003
|
-
* Remove the AppendableElement from the container state.
|
|
1004
|
-
* If the container not includes visible element, will remove the container Map.
|
|
1005
|
-
*
|
|
1006
|
-
* @param {HTMLElement} appendableElement - Appendable element controlled by ElementAppender
|
|
1007
|
-
*/
|
|
1008
|
-
removeVisibleAppendElement(appendableElement) {
|
|
1009
|
-
const containerState = ElementAppender.containerMap.get(this.container);
|
|
1010
|
-
if (containerState) {
|
|
1011
|
-
containerState.visibleAppendElements.delete(appendableElement);
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
/**
|
|
1015
|
-
* The below method is e2e-test covered in @see {module:should-not-reset-dropdown-append-container-position-style-to-origin-when-there-is-another-dropdown-need-to-show}
|
|
1016
|
-
*/
|
|
1017
|
-
resetContainerPosition() {
|
|
1018
|
-
const containerState = ElementAppender.containerMap.get(this.container);
|
|
1019
|
-
if (containerState) {
|
|
1020
|
-
const { visibleAppendElements, originPosition = 'static' } = containerState;
|
|
1021
|
-
if (visibleAppendElements.size === 0) {
|
|
1022
|
-
this.container.style.position = originPosition;
|
|
1023
|
-
ElementAppender.containerMap.delete(this.container);
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
/**
|
|
1028
|
-
* If the showConfigCallback is a function, then call it and set the showConfig to the result.
|
|
1029
|
-
* Otherwise, set the showConfig to the showConfigCallback
|
|
1030
|
-
*/
|
|
1031
|
-
setShowConfig() {
|
|
1032
|
-
this.showConfig = this.getShowConfig();
|
|
1033
|
-
this.showConfig = Object.assign({
|
|
1034
|
-
matchTargetWidth: false,
|
|
1035
|
-
matchContainerHeight: false,
|
|
1036
|
-
}, this.showConfig);
|
|
1037
|
-
if (this.showConfig.target && this.showConfig.appendableElement) {
|
|
1038
|
-
this.elementAppenderContainerController.setContainer();
|
|
1039
|
-
}
|
|
1040
|
-
}
|
|
1041
|
-
/**
|
|
1042
|
-
* It makes sure that the container element is positioned relatively, and that the appendable element
|
|
1043
|
-
* has box-sizing set to border-box
|
|
1044
|
-
*
|
|
1045
|
-
* @returns {void}
|
|
1046
|
-
*/
|
|
1047
|
-
prepareShow() {
|
|
1048
|
-
// Add relative position to the container while the container is static,
|
|
1049
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/position#types_of_positioning
|
|
1050
|
-
if (!this.showConfig.isScreenPosition) {
|
|
1051
|
-
this.initVisibleAppendElement();
|
|
1052
|
-
}
|
|
1053
|
-
this.showConfig.appendableElement.style.boxSizing = 'border-box';
|
|
1054
|
-
this.positionCalculationController.setCalculationStrategy();
|
|
1055
|
-
}
|
|
1056
|
-
/**
|
|
1057
|
-
* init visible append element.
|
|
1058
|
-
*/
|
|
1059
|
-
initVisibleAppendElement() {
|
|
1060
|
-
const containerStyle = window.getComputedStyle(this.container);
|
|
1061
|
-
const originContainerPosition = containerStyle.position;
|
|
1062
|
-
if (!ElementAppender.containerMap.has(this.container)) {
|
|
1063
|
-
ElementAppender.containerMap.set(this.container, {
|
|
1064
|
-
visibleAppendElements: new Set(),
|
|
1065
|
-
originPosition: originContainerPosition,
|
|
1066
|
-
});
|
|
1067
|
-
}
|
|
1068
|
-
if (originContainerPosition === 'static') {
|
|
1069
|
-
this.container.style.position = 'relative';
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
/**
|
|
1073
|
-
* A function that takes no parameters and returns nothing. It sets the position of the appendable element.
|
|
1074
|
-
*
|
|
1075
|
-
* @param {boolean} usePreviousPlacement - Should keep use previous placement and alignment.
|
|
1076
|
-
* @returns {void}
|
|
1077
|
-
*/
|
|
1078
|
-
adjustPosition(usePreviousPlacement) {
|
|
1079
|
-
this.positionCalculationController.adjustPosition(usePreviousPlacement);
|
|
1080
|
-
}
|
|
1081
|
-
/**
|
|
1082
|
-
* Sets the z-index of the appendable element to 11000.
|
|
1083
|
-
*
|
|
1084
|
-
* @returns {void}
|
|
1085
|
-
*/
|
|
1086
|
-
setZIndex() {
|
|
1087
|
-
vegaSkeletonLoaderController.InternalVegaZIndexManager.setZIndex(this.showConfig.appendableElement, 'base');
|
|
1088
|
-
}
|
|
1089
|
-
/**
|
|
1090
|
-
* If the showConfigCallback is a function, call it and return the result, otherwise return the
|
|
1091
|
-
* showConfigCallback
|
|
1092
|
-
*
|
|
1093
|
-
* @returns {ElementAppenderShowConfig} The showConfigCallback is being returned.
|
|
1094
|
-
*/
|
|
1095
|
-
getShowConfig() {
|
|
1096
|
-
if (this.showConfigCallback instanceof Function) {
|
|
1097
|
-
return this.showConfigCallback(this.showConfigCallbackTarget);
|
|
1098
|
-
}
|
|
1099
|
-
else {
|
|
1100
|
-
return this.showConfigCallback;
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
/**
|
|
1105
|
-
* To maintain the state between container and the visible dropdown within it.
|
|
1106
|
-
* Key is containerElement
|
|
1107
|
-
*/
|
|
1108
|
-
ElementAppender.containerMap = new Map();
|
|
1109
|
-
__decorate$2([
|
|
1110
|
-
globalSlimmerRegistry.InjectVegaSlimmer()
|
|
1111
|
-
], ElementAppender.prototype, "resizeObserverSlimmer", void 0);
|
|
1112
|
-
__decorate$2([
|
|
1113
|
-
globalSlimmerRegistry.InjectVegaSlimmer()
|
|
1114
|
-
], ElementAppender.prototype, "elementAppenderContainerController", void 0);
|
|
1115
|
-
__decorate$2([
|
|
1116
|
-
globalSlimmerRegistry.InjectVegaSlimmer()
|
|
1117
|
-
], ElementAppender.prototype, "positionCalculationController", void 0);
|
|
1118
|
-
|
|
1119
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1120
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1121
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1122
|
-
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;
|
|
1123
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1124
|
-
};
|
|
1125
|
-
var NestEANotifyType;
|
|
1126
|
-
(function (NestEANotifyType) {
|
|
1127
|
-
NestEANotifyType["SHOW"] = "show";
|
|
1128
|
-
NestEANotifyType["HIDE"] = "hide";
|
|
1129
|
-
})(NestEANotifyType || (NestEANotifyType = {}));
|
|
1130
|
-
/**
|
|
1131
|
-
* Dynamically add parents and children of nest element appender while it show or hide.
|
|
1132
|
-
*/
|
|
1133
|
-
class ElementAppenderHierarchyTreeManager extends globalSlimmerRegistry.VegaSlimmer {
|
|
1134
|
-
constructor(currentEA) {
|
|
1135
|
-
super();
|
|
1136
|
-
this.childrenEA = [];
|
|
1137
|
-
this.currentEA = currentEA;
|
|
1138
|
-
}
|
|
1139
|
-
/**
|
|
1140
|
-
* Listen current element appender did load.
|
|
1141
|
-
*/
|
|
1142
|
-
componentDidLoad() {
|
|
1143
|
-
this.register();
|
|
1144
|
-
}
|
|
1145
|
-
/**
|
|
1146
|
-
* Listen current element appender show.
|
|
1147
|
-
*/
|
|
1148
|
-
onShow() {
|
|
1149
|
-
this.notify(NestEANotifyType.SHOW);
|
|
1150
|
-
}
|
|
1151
|
-
/**
|
|
1152
|
-
* Listen current element appender hide.
|
|
1153
|
-
*/
|
|
1154
|
-
onHide() {
|
|
1155
|
-
this.notify(NestEANotifyType.HIDE);
|
|
1156
|
-
}
|
|
1157
|
-
/**
|
|
1158
|
-
* Get current parent of element appender.
|
|
1159
|
-
*
|
|
1160
|
-
* @returns {Nullable<ElementAppenderSlimmer>} - parent.
|
|
1161
|
-
*/
|
|
1162
|
-
getParent() {
|
|
1163
|
-
return this.parentEA;
|
|
1164
|
-
}
|
|
1165
|
-
/**
|
|
1166
|
-
* Get current children of element appender.
|
|
1167
|
-
*
|
|
1168
|
-
* @returns {ElementAppenderSlimmer[]} - children.
|
|
1169
|
-
*/
|
|
1170
|
-
getChildren() {
|
|
1171
|
-
return this.childrenEA;
|
|
1172
|
-
}
|
|
1173
|
-
/**
|
|
1174
|
-
* While current element appender show or hide we should notify nest element appender to add or remove chain.
|
|
1175
|
-
*
|
|
1176
|
-
* @param {NestEANotifyType} type - Notify type.
|
|
1177
|
-
*/
|
|
1178
|
-
notify(type) {
|
|
1179
|
-
const parent = ui.findParent(this.showConfig.target, '.vega-element-appender-appendable');
|
|
1180
|
-
if (parent) {
|
|
1181
|
-
changeManager.ChangeManager.notify(domNodeSubjectFactory.domNodeSubjectFactory.getSubject(parent, vegaInternalEventId.VegaInternalNestEAHierarchyTreeChange), {
|
|
1182
|
-
type: type,
|
|
1183
|
-
child: this.currentEA,
|
|
1184
|
-
callback:
|
|
1185
|
-
/* eslint-disable jsdoc/require-jsdoc */
|
|
1186
|
-
(parentEASlimmer) => {
|
|
1187
|
-
this.parentEA = parentEASlimmer;
|
|
1188
|
-
},
|
|
1189
|
-
});
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
/**
|
|
1193
|
-
* Add a change manager to observer the nest element appender show or hide.
|
|
1194
|
-
*/
|
|
1195
|
-
register() {
|
|
1196
|
-
if (this.showConfig) {
|
|
1197
|
-
domNodeSubjectObserverFactory.DomNodeSubjectObserverFactory.addUniqueObserverToNode(this.showConfig.appendableElement, vegaInternalEventId.VegaInternalNestEAHierarchyTreeChange, (payload) => {
|
|
1198
|
-
if (payload.type === NestEANotifyType.SHOW) {
|
|
1199
|
-
this.childrenEA.push(payload.child);
|
|
1200
|
-
}
|
|
1201
|
-
else if (payload.type === NestEANotifyType.HIDE) {
|
|
1202
|
-
this.childrenEA = this.childrenEA.filter((child) => child !== payload.child);
|
|
1203
|
-
}
|
|
1204
|
-
payload.callback(this.currentEA);
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
__decorate$1([
|
|
1210
|
-
globalSlimmerRegistry.MapToComponentField()
|
|
1211
|
-
], ElementAppenderHierarchyTreeManager.prototype, "showConfig", void 0);
|
|
1212
|
-
__decorate$1([
|
|
1213
|
-
globalSlimmerRegistry.MapToComponentMethod('componentDidLoad')
|
|
1214
|
-
], ElementAppenderHierarchyTreeManager.prototype, "componentDidLoad", null);
|
|
1215
|
-
__decorate$1([
|
|
1216
|
-
globalSlimmerRegistry.MapToComponentMethod('show')
|
|
1217
|
-
], ElementAppenderHierarchyTreeManager.prototype, "onShow", null);
|
|
1218
|
-
__decorate$1([
|
|
1219
|
-
globalSlimmerRegistry.MapToComponentMethod('hide')
|
|
1220
|
-
], ElementAppenderHierarchyTreeManager.prototype, "onHide", null);
|
|
1221
|
-
|
|
1222
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1223
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1224
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1225
|
-
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;
|
|
1226
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1227
|
-
};
|
|
1228
|
-
class ElementAppenderSlimmer extends globalSlimmerRegistry.VegaSlimmer {
|
|
1229
|
-
constructor(showConfigFactory, getTrigger, isDropdownShowName = 'isDropdownShow', disableInteractiveGetter = () => false) {
|
|
1230
|
-
super();
|
|
1231
|
-
this.hierarchyTreeManager = new ElementAppenderHierarchyTreeManager(this);
|
|
1232
|
-
/**
|
|
1233
|
-
* It adds event listeners to the target and the appendable element
|
|
1234
|
-
*/
|
|
1235
|
-
this.registerElementAppenderListener = () => {
|
|
1236
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1237
|
-
this.unRegisterElementAppenderListener();
|
|
1238
|
-
if (this.showConfig) {
|
|
1239
|
-
(_a = this.showConfig.target) === null || _a === void 0 ? void 0 : _a.addEventListener('click', this.targetClickHandler);
|
|
1240
|
-
(_b = this.showConfig.target) === null || _b === void 0 ? void 0 : _b.addEventListener('mouseenter', this.targetMouseEnterHandler);
|
|
1241
|
-
(_c = this.showConfig.target) === null || _c === void 0 ? void 0 : _c.addEventListener('mouseleave', this.targetMouseLeaveHandler);
|
|
1242
|
-
(_d = this.showConfig.target) === null || _d === void 0 ? void 0 : _d.addEventListener('focusout', this.targetFocusoutHandler);
|
|
1243
|
-
(_e = this.showConfig.appendableElement) === null || _e === void 0 ? void 0 : _e.addEventListener('mouseenter', this.elementMouseEnterHandler);
|
|
1244
|
-
(_f = this.showConfig.appendableElement) === null || _f === void 0 ? void 0 : _f.addEventListener('mouseleave', this.elementMouseLeaveHandler);
|
|
1245
|
-
}
|
|
1246
|
-
window.addEventListener('mousedown', this.globalMouseDownHandler);
|
|
1247
|
-
document.addEventListener('scroll', this.globalScrollHandler, { capture: true });
|
|
1248
|
-
this.listenShadowRootElementScrolling();
|
|
1249
|
-
};
|
|
1250
|
-
/* It's a function that listens to the click event on the dropdown. It checks if the trigger
|
|
1251
|
-
property is equal to 'click'. If it is, then it toggles the dropdown. */
|
|
1252
|
-
this.targetClickHandler = () => {
|
|
1253
|
-
if (this.shouldListenerWork('click')) {
|
|
1254
|
-
this.isShowing() ? this.hide() : this.show();
|
|
1255
|
-
}
|
|
1256
|
-
};
|
|
1257
|
-
/* It's a function that listens to the mouseenter event on the dropdown. It checks if the trigger
|
|
1258
|
-
property is equal to 'hover'. If it is, then it clears the timer. */
|
|
1259
|
-
this.targetMouseEnterHandler = () => {
|
|
1260
|
-
if (this.shouldListenerWork('hover')) {
|
|
1261
|
-
this.isShowing() === false && this.show();
|
|
1262
|
-
this.clearDelayHideTimer();
|
|
1263
|
-
}
|
|
1264
|
-
};
|
|
1265
|
-
/* It's a function that listens to the mouseleave event on the dropdown. It checks if the trigger
|
|
1266
|
-
property is equal to 'hover'. If it is, then it creates a timer that will hide the dropdown after a
|
|
1267
|
-
certain amount of time. */
|
|
1268
|
-
this.targetMouseLeaveHandler = () => {
|
|
1269
|
-
if (this.shouldListenerWork('hover')) {
|
|
1270
|
-
this.createDelayHideTimer();
|
|
1271
|
-
}
|
|
1272
|
-
};
|
|
1273
|
-
/* istanbul ignore next */
|
|
1274
|
-
/* While focused element is in appendable element, like search input, we should not hide dropdown */
|
|
1275
|
-
this.targetFocusoutHandler = (e) => {
|
|
1276
|
-
var _a;
|
|
1277
|
-
if (e.relatedTarget !== ((_a = this.showConfig) === null || _a === void 0 ? void 0 : _a.appendableElement)) {
|
|
1278
|
-
this.targetMouseLeaveHandler();
|
|
1279
|
-
}
|
|
1280
|
-
};
|
|
1281
|
-
/* It's a function that listens to the mouseenter event on the dropdown. It checks if the trigger
|
|
1282
|
-
property is equal to 'hover'. If it is, then it clears the timer. */
|
|
1283
|
-
this.elementMouseEnterHandler = () => {
|
|
1284
|
-
var _a;
|
|
1285
|
-
(_a = this.hierarchyTreeManager.getParent()) === null || _a === void 0 ? void 0 : _a.elementMouseEnterHandler();
|
|
1286
|
-
if (this.shouldListenerWork('hover') && !this.disableInteractiveGetter()) {
|
|
1287
|
-
this.clearDelayHideTimer();
|
|
1288
|
-
}
|
|
1289
|
-
};
|
|
1290
|
-
/* It's a function that listens to the mouseleave event on the dropdown. It checks if the trigger
|
|
1291
|
-
property is equal to 'hover'. If it is, then it creates a timer that will hide the dropdown after a
|
|
1292
|
-
certain amount of time. */
|
|
1293
|
-
this.elementMouseLeaveHandler = () => {
|
|
1294
|
-
var _a;
|
|
1295
|
-
(_a = this.hierarchyTreeManager.getParent()) === null || _a === void 0 ? void 0 : _a.elementMouseLeaveHandler();
|
|
1296
|
-
if (this.shouldListenerWork('hover') && !this.disableInteractiveGetter()) {
|
|
1297
|
-
this.createDelayHideTimer();
|
|
1298
|
-
}
|
|
1299
|
-
};
|
|
1300
|
-
/* It's a function that listens to the global mousedown event. It checks if the dropdown is showing,
|
|
1301
|
-
and if the target of the event is not a child of the dropdown or the trigger. If it is, then it
|
|
1302
|
-
hides the dropdown. */
|
|
1303
|
-
this.globalMouseDownHandler = (e) => {
|
|
1304
|
-
const currentTarget = e.composedPath()[0];
|
|
1305
|
-
const hasChildShowing = this.hierarchyTreeManager
|
|
1306
|
-
.getChildren()
|
|
1307
|
-
.some((child) => child.isShowing());
|
|
1308
|
-
if (!hasChildShowing &&
|
|
1309
|
-
this.shouldListenerWork('custom') &&
|
|
1310
|
-
this.isShowing() &&
|
|
1311
|
-
this.showConfig &&
|
|
1312
|
-
!ui.isParent(currentTarget, this.showConfig.appendableElement) &&
|
|
1313
|
-
!ui.isParent(currentTarget, this.showConfig.target) &&
|
|
1314
|
-
ui.findParent(currentTarget, 'vega-modal') === ui.findParent(this.showConfig.target, 'vega-modal')) {
|
|
1315
|
-
this.hide();
|
|
1316
|
-
}
|
|
1317
|
-
};
|
|
1318
|
-
/* istanbul ignore next */
|
|
1319
|
-
/* Listen global scroll event */
|
|
1320
|
-
this.globalScrollHandler = () => {
|
|
1321
|
-
var _a;
|
|
1322
|
-
if (this.showConfig && this.showConfig.isScreenPosition && this.isShowing()) {
|
|
1323
|
-
(_a = this.elementAppender) === null || _a === void 0 ? void 0 : _a.onScroll();
|
|
1324
|
-
}
|
|
1325
|
-
};
|
|
1326
|
-
/* A timer that will hide the dropdown after a certain amount of time. */
|
|
1327
|
-
this.createDelayHideTimer = () => {
|
|
1328
|
-
this.delayHideTimer = setTimeout(() => {
|
|
1329
|
-
this.hide();
|
|
1330
|
-
clearTimeout(this.delayHideTimer);
|
|
1331
|
-
}, ElementAppenderSlimmer.DELAY_HIDE_TIME);
|
|
1332
|
-
};
|
|
1333
|
-
/* A function that clears the timer. */
|
|
1334
|
-
this.clearDelayHideTimer = () => {
|
|
1335
|
-
this.delayHideTimer && clearTimeout(this.delayHideTimer);
|
|
1336
|
-
};
|
|
1337
|
-
/* It's a function that checks if the listener should work or not. */
|
|
1338
|
-
this.shouldListenerWork = (trigger) => {
|
|
1339
|
-
const currentTrigger = this.getTrigger();
|
|
1340
|
-
switch (trigger) {
|
|
1341
|
-
case 'custom':
|
|
1342
|
-
return currentTrigger !== 'none';
|
|
1343
|
-
case 'click':
|
|
1344
|
-
return currentTrigger === 'click';
|
|
1345
|
-
case 'hover':
|
|
1346
|
-
return currentTrigger === 'hover';
|
|
1347
|
-
}
|
|
1348
|
-
/* istanbul ignore next */
|
|
1349
|
-
throw new Error(`Unexpected trigger: ${trigger}. Expected values are custom, click, or hover.`);
|
|
1350
|
-
};
|
|
1351
|
-
this.showConfigFactory = showConfigFactory;
|
|
1352
|
-
this.getTrigger = getTrigger;
|
|
1353
|
-
this.isDropdownShowName = isDropdownShowName;
|
|
1354
|
-
this.disableInteractiveGetter = disableInteractiveGetter;
|
|
1355
|
-
}
|
|
1356
|
-
connectedCallback() {
|
|
1357
|
-
if (this.elementAppender === null) {
|
|
1358
|
-
this.setElementAppender();
|
|
1359
|
-
this.registerElementAppenderListener();
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
disconnectedCallback() {
|
|
1363
|
-
this.unRegisterElementAppenderListener();
|
|
1364
|
-
this.destroyElementAppender();
|
|
1365
|
-
}
|
|
1366
|
-
componentDidLoad() {
|
|
1367
|
-
this.initElementAppender();
|
|
1368
|
-
}
|
|
1369
|
-
getElementAppender() {
|
|
1370
|
-
return this.elementAppender;
|
|
1371
|
-
}
|
|
1372
|
-
show() {
|
|
1373
|
-
this.elementAppender && this.elementAppender.show();
|
|
1374
|
-
this[this.isDropdownShowName] = true;
|
|
1375
|
-
}
|
|
1376
|
-
hide() {
|
|
1377
|
-
this.elementAppender && this.elementAppender.hide();
|
|
1378
|
-
this[this.isDropdownShowName] = false;
|
|
1379
|
-
this.hierarchyTreeManager.getChildren().map((child) => {
|
|
1380
|
-
child.hide();
|
|
1381
|
-
});
|
|
1382
|
-
}
|
|
1383
|
-
destroy() {
|
|
1384
|
-
this.destroyElementAppender();
|
|
1385
|
-
this[this.isDropdownShowName] = false;
|
|
1386
|
-
}
|
|
1387
|
-
updateShowConfigFactory(showConfigFactory) {
|
|
1388
|
-
this.showConfigFactory = showConfigFactory;
|
|
1389
|
-
this.initElementAppender();
|
|
1390
|
-
}
|
|
1391
|
-
destroyElementAppender() {
|
|
1392
|
-
if (this.elementAppender) {
|
|
1393
|
-
this.elementAppender.destroy();
|
|
1394
|
-
this.elementAppender = null;
|
|
1395
|
-
}
|
|
1396
|
-
}
|
|
1397
|
-
initElementAppender() {
|
|
1398
|
-
this.setShowConfig();
|
|
1399
|
-
this.setElementAppender();
|
|
1400
|
-
this.registerElementAppenderListener();
|
|
1401
|
-
}
|
|
1402
|
-
setElementAppender() {
|
|
1403
|
-
this.elementAppender = new ElementAppender(this.showConfigFactory, this);
|
|
1404
|
-
}
|
|
1405
|
-
isShowing() {
|
|
1406
|
-
return this[this.isDropdownShowName];
|
|
1407
|
-
}
|
|
1408
|
-
setShowConfig() {
|
|
1409
|
-
this.showConfig = this.showConfigFactory();
|
|
1410
|
-
}
|
|
1411
|
-
/**
|
|
1412
|
-
* It removes all event listeners that were added in the `register()` function
|
|
1413
|
-
*/
|
|
1414
|
-
unRegisterElementAppenderListener() {
|
|
1415
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1416
|
-
if (this.showConfig) {
|
|
1417
|
-
(_a = this.showConfig.target) === null || _a === void 0 ? void 0 : _a.removeEventListener('click', this.targetClickHandler);
|
|
1418
|
-
(_b = this.showConfig.target) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseenter', this.targetMouseEnterHandler);
|
|
1419
|
-
(_c = this.showConfig.target) === null || _c === void 0 ? void 0 : _c.removeEventListener('mouseleave', this.targetMouseLeaveHandler);
|
|
1420
|
-
(_d = this.showConfig.target) === null || _d === void 0 ? void 0 : _d.removeEventListener('focusout', this.targetMouseLeaveHandler);
|
|
1421
|
-
(_e = this.showConfig.appendableElement) === null || _e === void 0 ? void 0 : _e.removeEventListener('mouseenter', this.elementMouseEnterHandler);
|
|
1422
|
-
(_f = this.showConfig.appendableElement) === null || _f === void 0 ? void 0 : _f.removeEventListener('mouseleave', this.elementMouseLeaveHandler);
|
|
1423
|
-
}
|
|
1424
|
-
window.removeEventListener('mousedown', this.globalMouseDownHandler);
|
|
1425
|
-
document.removeEventListener('scroll', this.globalScrollHandler);
|
|
1426
|
-
this.removeShadowRootElementScrolling();
|
|
1427
|
-
}
|
|
1428
|
-
/**
|
|
1429
|
-
* Sets up an observer to handle scroll events in a shadow root element.
|
|
1430
|
-
*/
|
|
1431
|
-
listenShadowRootElementScrolling() {
|
|
1432
|
-
this.shadowRootElementScrollingObserver = new domNodeSubjectFactory.Observer(this.canAcceptShadowRootScrollEvent.bind(this), this.globalScrollHandler.bind(this));
|
|
1433
|
-
changeManager.ChangeManager.register(staticSubjectTitle.SHADOW_ROOT_ELEMENT_SCROLLING, this.shadowRootElementScrollingObserver);
|
|
1434
|
-
}
|
|
1435
|
-
/**
|
|
1436
|
-
* Checks if the host element is a parent of the target element.
|
|
1437
|
-
*
|
|
1438
|
-
* @param {ShadowRootElementScrollingPayload} payload - payload.
|
|
1439
|
-
* @returns {boolean} - Can accept.
|
|
1440
|
-
*/
|
|
1441
|
-
canAcceptShadowRootScrollEvent(payload) {
|
|
1442
|
-
return Boolean(this.showConfig && ui.isParent(this.showConfig.target, payload.host));
|
|
1443
|
-
}
|
|
1444
|
-
/**
|
|
1445
|
-
* Remove observer for scrolling in a shadow root element.
|
|
1446
|
-
*/
|
|
1447
|
-
removeShadowRootElementScrolling() {
|
|
1448
|
-
changeManager.ChangeManager.unregister(staticSubjectTitle.SHADOW_ROOT_ELEMENT_SCROLLING, this.shadowRootElementScrollingObserver);
|
|
1449
|
-
}
|
|
1450
|
-
}
|
|
1451
|
-
ElementAppenderSlimmer.DELAY_HIDE_TIME = 100;
|
|
1452
|
-
__decorate([
|
|
1453
|
-
globalSlimmerRegistry.InjectVegaSlimmer()
|
|
1454
|
-
], ElementAppenderSlimmer.prototype, "hierarchyTreeManager", void 0);
|
|
1455
|
-
__decorate([
|
|
1456
|
-
globalSlimmerRegistry.MapToComponentMethod('connectedCallback')
|
|
1457
|
-
], ElementAppenderSlimmer.prototype, "connectedCallback", null);
|
|
1458
|
-
__decorate([
|
|
1459
|
-
globalSlimmerRegistry.MapToComponentMethod('disconnectedCallback')
|
|
1460
|
-
], ElementAppenderSlimmer.prototype, "disconnectedCallback", null);
|
|
1461
|
-
__decorate([
|
|
1462
|
-
globalSlimmerRegistry.MapToComponentMethod('componentDidLoad')
|
|
1463
|
-
], ElementAppenderSlimmer.prototype, "componentDidLoad", null);
|
|
1464
|
-
|
|
1465
|
-
exports.ElementAppenderSlimmer = ElementAppenderSlimmer;
|