@globalpayments/vega 2.59.1 → 2.60.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-64aff1a9.js → app-globals-8a3536ba.js} +3 -3
- package/dist/cjs/{code-block-4bfae76d.js → code-block-7d901dfc.js} +1 -1
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-34f4577a.js → component-value-history-controller-slimmer.abstract-d61e5129.js} +2 -2
- package/dist/cjs/{content-state-b82b74de.js → content-state-2096aa5a.js} +2 -2
- package/dist/cjs/{design-token-0b1315f2.js → design-token-52f9da81.js} +3 -3
- package/dist/cjs/{element-appender-slimmer-f14737af.js → element-appender-slimmer-2a3e1e51.js} +2 -2
- package/dist/cjs/{image-annotation-action-a3146135.js → image-annotation-action-8c1ecc99.js} +2 -2
- package/dist/cjs/index.cjs.js +8 -9
- package/dist/cjs/{inject-keyboard-manager-70382bae.js → inject-keyboard-manager-ad865c95.js} +1 -1
- package/dist/cjs/{keyboard-manager-6858915b.js → keyboard-manager-7f4e1f43.js} +1 -1
- package/dist/cjs/{keyboard-manager-slimmer-faca2038.js → keyboard-manager-slimmer-138a90e5.js} +1 -1
- package/dist/cjs/loader.cjs.js +6 -7
- package/dist/cjs/{public-rules-26467413.js → public-rules-c711fae3.js} +4 -5
- package/dist/cjs/{responsive-format-facade-d2e03695.js → responsive-format-facade-3ab3b18c.js} +2 -2
- package/dist/cjs/{rich-text-editor-required-rule-026c8c3f.js → rich-text-editor-required-rule-4d92437f.js} +1 -1
- package/dist/cjs/{state-background-color-formatter-c57409ea.js → state-background-color-formatter-aa5570f6.js} +1 -1
- package/dist/cjs/string-format-strategy.abstract-07a95352.js +60 -0
- package/dist/cjs/{string-input-formatter-slimmer-1b757bad.js → string-input-formatter-slimmer-941eaec2.js} +1 -224
- package/dist/cjs/string-mask-strategy-6bdad95e.js +172 -0
- package/dist/cjs/{style-formatter-effb0730.js → style-formatter-dcb443fb.js} +2 -2
- package/dist/cjs/{type-guard-aa8fdeaf.js → type-guard-f12b5bae.js} +13 -3
- package/dist/cjs/{valid-credit-card-number-rule-4a1b00b8.js → valid-credit-card-number-rule-ce5c9147.js} +9 -9
- package/dist/cjs/vega-accordion.cjs.entry.js +6 -7
- package/dist/cjs/vega-app-header-button.cjs.entry.js +6 -7
- package/dist/cjs/vega-box.cjs.entry.js +7 -8
- package/dist/cjs/vega-button-circle.cjs.entry.js +6 -7
- package/dist/cjs/vega-button.cjs.entry.js +4 -5
- package/dist/cjs/vega-calendar_4.cjs.entry.js +14 -4
- package/dist/cjs/vega-card.cjs.entry.js +6 -7
- package/dist/cjs/vega-carousel.cjs.entry.js +4 -5
- package/dist/cjs/vega-chip.cjs.entry.js +6 -7
- package/dist/cjs/vega-code-block.cjs.entry.js +5 -6
- package/dist/cjs/vega-combo-box.cjs.entry.js +3 -4
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +36 -11
- package/dist/cjs/vega-dialog_2.cjs.entry.js +6 -7
- package/dist/cjs/vega-divider.cjs.entry.js +6 -7
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +7 -8
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-flag-icon.cjs.entry.js +6 -7
- package/dist/cjs/vega-flex.cjs.entry.js +7 -8
- package/dist/cjs/vega-font.cjs.entry.js +6 -7
- package/dist/cjs/vega-grid.cjs.entry.js +6 -7
- package/dist/cjs/vega-icon.cjs.entry.js +6 -7
- package/dist/cjs/vega-image-uploader.cjs.entry.js +4 -5
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +241 -12
- package/dist/cjs/vega-input-numeric.cjs.entry.js +3 -4
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +110 -21
- package/dist/cjs/vega-input-select.cjs.entry.js +4 -5
- package/dist/cjs/vega-input.cjs.entry.js +16 -191
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +6 -7
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +4 -5
- package/dist/cjs/vega-pagination.cjs.entry.js +4 -5
- package/dist/cjs/vega-popover_2.cjs.entry.js +9 -10
- package/dist/cjs/vega-radio_2.cjs.entry.js +3 -4
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +4 -5
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +8 -9
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +4 -5
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +4 -5
- package/dist/cjs/vega-signature-capture.cjs.entry.js +6 -7
- package/dist/cjs/vega-table_8.cjs.entry.js +4 -5
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +7 -8
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +7 -8
- package/dist/cjs/vega.cjs.js +6 -7
- package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.js +12 -1
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +11 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +4 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker.js +43 -0
- package/dist/collection/components/vega-input/slimmers/controllers/vega-input-mask-config-controller.js +4 -11
- package/dist/collection/components/vega-input/vega-input.js +1 -1
- package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.js +6 -3
- package/dist/collection/components/vega-input-phone-number/slimmers/renderers/phone-number-input-renderer.js +3 -16
- package/dist/collection/constants/card-config.js +4 -4
- package/dist/collection/helpers/formatter/string-formatter/credit-card-blur-mask-strategy.js +1 -1
- package/dist/collection/helpers/formatter/string-formatter/vega-phone-number-input-strategy.js +104 -0
- package/dist/collection/helpers/formatter/test/string-formatter/vega-phone-number-input-strategy.test.js +43 -0
- package/dist/esm/{app-globals-05dbca3e.js → app-globals-c7699395.js} +3 -3
- package/dist/esm/{code-block-3d519665.js → code-block-055cae13.js} +1 -1
- package/dist/esm/{component-value-history-controller-slimmer.abstract-8b5be007.js → component-value-history-controller-slimmer.abstract-7a64c05a.js} +2 -2
- package/dist/esm/{content-state-73900a67.js → content-state-460f6254.js} +2 -2
- package/dist/esm/{design-token-dbc8c235.js → design-token-e1821e4a.js} +3 -3
- package/dist/esm/{element-appender-slimmer-6ad38a9b.js → element-appender-slimmer-4260c020.js} +2 -2
- package/dist/esm/{image-annotation-action-4ebed11f.js → image-annotation-action-95cc9118.js} +2 -2
- package/dist/esm/index.js +8 -9
- package/dist/esm/{inject-keyboard-manager-a28dfee4.js → inject-keyboard-manager-109817bf.js} +1 -1
- package/dist/esm/{keyboard-manager-fa6355cb.js → keyboard-manager-ab521d22.js} +1 -1
- package/dist/esm/{keyboard-manager-slimmer-818050ee.js → keyboard-manager-slimmer-cae3a002.js} +1 -1
- package/dist/esm/loader.js +6 -7
- package/dist/esm/{public-rules-f28aca10.js → public-rules-71e1883d.js} +4 -5
- package/dist/esm/{responsive-format-facade-81b72f39.js → responsive-format-facade-dbeffcd6.js} +2 -2
- package/dist/esm/{rich-text-editor-required-rule-c4ba68b8.js → rich-text-editor-required-rule-6cfdcaaf.js} +1 -1
- package/dist/esm/{state-background-color-formatter-da5e76e8.js → state-background-color-formatter-0f01d27a.js} +1 -1
- package/dist/esm/string-format-strategy.abstract-452f4398.js +58 -0
- package/dist/esm/{string-input-formatter-slimmer-b144e8d7.js → string-input-formatter-slimmer-6d99bb4f.js} +2 -223
- package/dist/esm/string-mask-strategy-6232a1c1.js +170 -0
- package/dist/esm/{style-formatter-7d817448.js → style-formatter-41ca4df2.js} +2 -2
- package/dist/esm/{type-guard-84b1f192.js → type-guard-12f7654b.js} +8 -2
- package/dist/esm/{valid-credit-card-number-rule-cc497bec.js → valid-credit-card-number-rule-81443274.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +6 -7
- package/dist/esm/vega-app-header-button.entry.js +6 -7
- package/dist/esm/vega-box.entry.js +7 -8
- package/dist/esm/vega-button-circle.entry.js +6 -7
- package/dist/esm/vega-button.entry.js +4 -5
- package/dist/esm/vega-calendar_4.entry.js +14 -4
- package/dist/esm/vega-card.entry.js +6 -7
- package/dist/esm/vega-carousel.entry.js +4 -5
- package/dist/esm/vega-chip.entry.js +6 -7
- package/dist/esm/vega-code-block.entry.js +5 -6
- package/dist/esm/vega-combo-box.entry.js +3 -4
- package/dist/esm/vega-date-picker_2.entry.js +35 -10
- package/dist/esm/vega-dialog_2.entry.js +6 -7
- package/dist/esm/vega-divider.entry.js +6 -7
- package/dist/esm/vega-dropdown_5.entry.js +7 -8
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-flag-icon.entry.js +6 -7
- package/dist/esm/vega-flex.entry.js +7 -8
- package/dist/esm/vega-font.entry.js +6 -7
- package/dist/esm/vega-grid.entry.js +6 -7
- package/dist/esm/vega-icon.entry.js +6 -7
- package/dist/esm/vega-image-uploader.entry.js +4 -5
- package/dist/esm/vega-input-credit-card.entry.js +240 -11
- package/dist/esm/vega-input-numeric.entry.js +3 -4
- package/dist/esm/vega-input-phone-number.entry.js +110 -21
- package/dist/esm/vega-input-select.entry.js +4 -5
- package/dist/esm/vega-input.entry.js +10 -185
- package/dist/esm/vega-left-nav_5.entry.js +6 -7
- package/dist/esm/vega-loader-wrapper_2.entry.js +4 -5
- package/dist/esm/vega-pagination.entry.js +4 -5
- package/dist/esm/vega-popover_2.entry.js +9 -10
- package/dist/esm/vega-radio_2.entry.js +3 -4
- package/dist/esm/vega-rich-text-content.entry.js +4 -5
- package/dist/esm/vega-rich-text-editor_4.entry.js +8 -9
- package/dist/esm/vega-selection-chip_2.entry.js +4 -5
- package/dist/esm/vega-sidenav_3.entry.js +4 -5
- package/dist/esm/vega-signature-capture.entry.js +6 -7
- package/dist/esm/vega-table_8.entry.js +4 -5
- package/dist/esm/vega-time-picker_2.entry.js +7 -8
- package/dist/esm/vega-tooltip_2.entry.js +7 -8
- package/dist/esm/vega.js +6 -7
- package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.d.ts +1 -0
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +1 -0
- package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +14 -0
- package/dist/types/components/vega-input/types.d.ts +3 -10
- package/dist/types/components.d.ts +14 -0
- package/dist/types/helpers/formatter/string-formatter/vega-phone-number-input-strategy.d.ts +49 -0
- package/dist/types/helpers/formatter/test/string-formatter/vega-phone-number-input-strategy.test.d.ts +1 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-0dcec258.js +1 -0
- package/dist/vega/p-10063072.entry.js +1 -0
- package/dist/vega/p-1152850b.entry.js +1 -0
- package/dist/vega/p-165054fb.entry.js +1 -0
- package/dist/vega/p-1652cfc6.entry.js +1 -0
- package/dist/vega/p-16c6c22f.entry.js +1 -0
- package/dist/vega/p-1852ca80.entry.js +1 -0
- package/dist/vega/p-1b222c94.entry.js +1 -0
- package/dist/vega/{p-ca30b996.js → p-1b91a882.js} +1 -1
- package/dist/vega/{p-86f17433.js → p-1cabeb33.js} +1 -1
- package/dist/vega/p-1f8c46c4.entry.js +1 -0
- package/dist/vega/p-1fdf0f74.entry.js +1 -0
- package/dist/vega/{p-63c9eb58.js → p-200ba358.js} +1 -1
- package/dist/vega/p-20b8b626.entry.js +1 -0
- package/dist/vega/{p-8baacfc5.js → p-21873037.js} +1 -1
- package/dist/vega/{p-b40adb9e.js → p-2608b9fe.js} +1 -1
- package/dist/vega/{p-0f0baac3.js → p-27dfa896.js} +1 -1
- package/dist/vega/p-2e4bc8aa.entry.js +1 -0
- package/dist/vega/p-334e31a3.entry.js +1 -0
- package/dist/vega/p-394dfa02.entry.js +1 -0
- package/dist/vega/p-433ea113.entry.js +1 -0
- package/dist/vega/p-460bbd22.entry.js +1 -0
- package/dist/vega/p-46973cf9.entry.js +1 -0
- package/dist/vega/p-52c1dde9.entry.js +1 -0
- package/dist/vega/p-594ecdab.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-62898294.entry.js +1 -0
- package/dist/vega/p-636f7b17.entry.js +1 -0
- package/dist/vega/p-68eae19d.entry.js +1 -0
- package/dist/vega/p-69119f58.entry.js +1 -0
- package/dist/vega/p-6b71d5d1.entry.js +1 -0
- package/dist/vega/p-71f9c4d4.js +1 -0
- package/dist/vega/{p-59e990c7.entry.js → p-741a8b61.entry.js} +1 -1
- package/dist/vega/{p-436f7e27.js → p-743c5baf.js} +1 -1
- package/dist/vega/{p-1a195e28.js → p-7e4fdccb.js} +1 -1
- package/dist/vega/p-824a06ba.js +1 -0
- package/dist/vega/{p-42033e59.js → p-8539e05e.js} +1 -1
- package/dist/vega/p-867a4970.js +1 -0
- package/dist/vega/{p-bdce4143.js → p-95ac7c7e.js} +1 -1
- package/dist/vega/p-95c30aed.entry.js +1 -0
- package/dist/vega/{p-6f90d444.js → p-9ce249a9.js} +1 -1
- package/dist/vega/{p-f6d25220.js → p-a433fef4.js} +1 -1
- package/dist/vega/p-af2de012.entry.js +1 -0
- package/dist/vega/p-b1faebe0.js +1 -0
- package/dist/vega/p-b56e2c89.entry.js +1 -0
- package/dist/vega/p-b8f50c69.entry.js +1 -0
- package/dist/vega/p-b9821a7f.entry.js +1 -0
- package/dist/vega/p-c883bce1.entry.js +1 -0
- package/dist/vega/p-cc2ceaa8.entry.js +1 -0
- package/dist/vega/{p-7f087c8b.js → p-d1ebec08.js} +1 -1
- package/dist/vega/{p-fc8badd3.entry.js → p-d35243c8.entry.js} +1 -1
- package/dist/vega/p-dbe5daa7.js +1 -0
- package/dist/vega/p-dd6a4ea6.entry.js +1 -0
- package/dist/vega/p-e3bb1cce.entry.js +13 -0
- package/dist/vega/p-e45f8a67.entry.js +1 -0
- package/dist/vega/p-e4fbd2b7.entry.js +1 -0
- package/dist/vega/p-eaa43f31.entry.js +1 -0
- package/dist/vega/p-ed50233f.entry.js +1 -0
- package/dist/vega/p-f1a2658b.entry.js +1 -0
- package/dist/vega/p-fc4c5265.entry.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +4 -3
- package/dist/cjs/card-config-2ee5505e.js +0 -65
- package/dist/cjs/regex-c1f70fd4.js +0 -15
- package/dist/esm/card-config-d2ad484e.js +0 -63
- package/dist/esm/regex-dfe11abf.js +0 -8
- package/dist/vega/p-12ed3141.entry.js +0 -1
- package/dist/vega/p-13eca7f3.entry.js +0 -1
- package/dist/vega/p-1ff1deaf.entry.js +0 -1
- package/dist/vega/p-2004317b.entry.js +0 -1
- package/dist/vega/p-29e0d4c8.entry.js +0 -1
- package/dist/vega/p-369f38ed.entry.js +0 -1
- package/dist/vega/p-36ed226a.js +0 -1
- package/dist/vega/p-3a0a4d15.js +0 -1
- package/dist/vega/p-4452e085.js +0 -1
- package/dist/vega/p-490f5e3f.entry.js +0 -1
- package/dist/vega/p-4996b853.entry.js +0 -1
- package/dist/vega/p-49fd1009.js +0 -1
- package/dist/vega/p-4fb159d5.js +0 -1
- package/dist/vega/p-51cce3f9.entry.js +0 -1
- package/dist/vega/p-53d67971.entry.js +0 -1
- package/dist/vega/p-555804a0.entry.js +0 -1
- package/dist/vega/p-5e2c9e69.js +0 -1
- package/dist/vega/p-675b9501.entry.js +0 -1
- package/dist/vega/p-707bb905.entry.js +0 -1
- package/dist/vega/p-7183bd72.entry.js +0 -1
- package/dist/vega/p-73b487b0.entry.js +0 -1
- package/dist/vega/p-76de6b00.entry.js +0 -1
- package/dist/vega/p-7b1bb372.entry.js +0 -1
- package/dist/vega/p-8a317208.entry.js +0 -1
- package/dist/vega/p-9479866e.entry.js +0 -1
- package/dist/vega/p-9f453b90.entry.js +0 -1
- package/dist/vega/p-a204a2b2.js +0 -1
- package/dist/vega/p-a328d448.entry.js +0 -1
- package/dist/vega/p-ad1b22b4.entry.js +0 -1
- package/dist/vega/p-ae415e7e.entry.js +0 -1
- package/dist/vega/p-be8bbaa5.entry.js +0 -1
- package/dist/vega/p-bf6187f7.entry.js +0 -1
- package/dist/vega/p-c5c5509c.entry.js +0 -13
- package/dist/vega/p-c9c2c8c6.entry.js +0 -1
- package/dist/vega/p-cc20f01f.entry.js +0 -1
- package/dist/vega/p-d3bcaa82.entry.js +0 -1
- package/dist/vega/p-dbb06804.entry.js +0 -1
- package/dist/vega/p-df647e48.entry.js +0 -1
- package/dist/vega/p-e989ce94.entry.js +0 -1
- package/dist/vega/p-e9d2e0dc.entry.js +0 -1
- package/dist/vega/p-f6b11a21.entry.js +0 -1
- package/dist/vega/p-f8e62e5e.entry.js +0 -1
- package/dist/vega/p-fd6f90fd.entry.js +0 -1
- package/dist/vega/p-ffaee583.entry.js +0 -1
|
@@ -14,10 +14,10 @@ import { c as createEventEmitSlimmer } from './event-emit-slimmer-40973ec2.js';
|
|
|
14
14
|
import { f as VegaChange, A as VegaFocus, B as VegaBlur, s as VegaLabelButtonClick } from './dom-node-subject-factory-202655e7.js';
|
|
15
15
|
import { b as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-633b3474.js';
|
|
16
16
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
17
|
-
import { S as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
17
|
+
import { S as StringMaskStrategy } from './string-mask-strategy-6232a1c1.js';
|
|
18
|
+
import { S as StringFormatStrategy } from './string-format-strategy.abstract-452f4398.js';
|
|
19
|
+
import { i as isNonNullable } from './type-guard-12f7654b.js';
|
|
20
|
+
import { S as StringInputFormatterSlimmer } from './string-input-formatter-slimmer-6d99bb4f.js';
|
|
21
21
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-999e21e3.js';
|
|
22
22
|
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-0bf7fbf3.js';
|
|
23
23
|
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-c823d69c.js';
|
|
@@ -35,14 +35,11 @@ import './mutation-observer-slimmer-58ebc13c.js';
|
|
|
35
35
|
import './mutation-observer-filters-1a054fb0.js';
|
|
36
36
|
import './internal-vega-event-manager-526f8ed1.js';
|
|
37
37
|
import './try-get-document-bef0f526.js';
|
|
38
|
-
import './index-18a340fb.js';
|
|
39
|
-
import './wait-for-vega-handler-c2c07ac3.js';
|
|
40
38
|
import './breakpoints-d9faf11c.js';
|
|
41
39
|
import './ui-8424715a.js';
|
|
42
|
-
import './regex-dfe11abf.js';
|
|
43
40
|
import './typography-396de03f.js';
|
|
44
|
-
import './index-
|
|
45
|
-
import './
|
|
41
|
+
import './index-18a340fb.js';
|
|
42
|
+
import './wait-for-vega-handler-c2c07ac3.js';
|
|
46
43
|
|
|
47
44
|
/**
|
|
48
45
|
* This email regex from https://stackoverflow.com/a/201378
|
|
@@ -465,173 +462,6 @@ class NumberThousandCommaStrategy extends NumberMaskStrategy {
|
|
|
465
462
|
}
|
|
466
463
|
}
|
|
467
464
|
|
|
468
|
-
/**
|
|
469
|
-
* Credit card mask strategy abstract class
|
|
470
|
-
*/
|
|
471
|
-
class CreditCardMaskStrategy extends StringMaskStrategy {
|
|
472
|
-
/* istanbul ignore next */
|
|
473
|
-
/**
|
|
474
|
-
* Get the position of caret
|
|
475
|
-
*
|
|
476
|
-
* @param {string} input - The input string
|
|
477
|
-
* @param {number} caretPosition - The current position of caret
|
|
478
|
-
* @returns {Nullable<number>} The new position of caret
|
|
479
|
-
*/
|
|
480
|
-
calculateCaretPosition(input, caretPosition) {
|
|
481
|
-
if (!isNonNullable(caretPosition))
|
|
482
|
-
return null;
|
|
483
|
-
const maskConfigType = this.getCreditCardMaskConfig(input);
|
|
484
|
-
if (maskConfigType) {
|
|
485
|
-
if (input.length > this.getLengthLimit()) {
|
|
486
|
-
const exceededLength = input.length - this.getLengthLimit();
|
|
487
|
-
return caretPosition - exceededLength;
|
|
488
|
-
}
|
|
489
|
-
const startValue = input.substring(0, caretPosition);
|
|
490
|
-
const maskedStartValue = this.format(startValue);
|
|
491
|
-
return caretPosition + (maskedStartValue.length - startValue.length);
|
|
492
|
-
}
|
|
493
|
-
else {
|
|
494
|
-
return caretPosition;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
/* istanbul ignore next */
|
|
498
|
-
/**
|
|
499
|
-
* @inheritDoc
|
|
500
|
-
*/
|
|
501
|
-
format(input, inputStatus) {
|
|
502
|
-
const maskConfigType = this.getCreditCardMaskConfig(input);
|
|
503
|
-
if (maskConfigType) {
|
|
504
|
-
this.setMaskConfig(maskConfigType.options);
|
|
505
|
-
const caretPosition = inputStatus === null || inputStatus === void 0 ? void 0 : inputStatus.caretPosition;
|
|
506
|
-
if (input.length > this.getLengthLimit() && isNonNullable(caretPosition)) {
|
|
507
|
-
const rawValueArr = [...input];
|
|
508
|
-
const exceededLength = input.length - this.getLengthLimit();
|
|
509
|
-
rawValueArr.splice(caretPosition - exceededLength, exceededLength);
|
|
510
|
-
return rawValueArr.join('');
|
|
511
|
-
}
|
|
512
|
-
return this.replaceMaskWithMatchedInputSlots(input, this.getMatchedInputSlotValue(input));
|
|
513
|
-
}
|
|
514
|
-
else {
|
|
515
|
-
return input;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
/**
|
|
519
|
-
* get credit card type
|
|
520
|
-
*
|
|
521
|
-
* @param {string} value - card number string
|
|
522
|
-
* @returns {CardConfigType} - card type config
|
|
523
|
-
*/
|
|
524
|
-
getCreditCardType(value) {
|
|
525
|
-
return CARDS_INFO.filter((card) => card.pattern.test(value))[0];
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* A class for formatting string with the given mask format
|
|
531
|
-
*
|
|
532
|
-
* @augments StringFormatStrategy
|
|
533
|
-
*/
|
|
534
|
-
class CreditCardInputMaskStrategy extends CreditCardMaskStrategy {
|
|
535
|
-
/**
|
|
536
|
-
* It creates a new instance of the Mask class.
|
|
537
|
-
*/
|
|
538
|
-
constructor() {
|
|
539
|
-
super({
|
|
540
|
-
mask: '',
|
|
541
|
-
slot: '9',
|
|
542
|
-
accept: /\d/,
|
|
543
|
-
triggerAtInit: FeatureFlag.isEnabled('VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD'),
|
|
544
|
-
});
|
|
545
|
-
}
|
|
546
|
-
/**
|
|
547
|
-
* get credit card mask config
|
|
548
|
-
*
|
|
549
|
-
* @param {string} value - card number string
|
|
550
|
-
* @returns {Nullable<MaskConfigType>} - mask config type
|
|
551
|
-
*/
|
|
552
|
-
getCreditCardMaskConfig(value) {
|
|
553
|
-
let maskConfig;
|
|
554
|
-
const creditCardType = this.getCreditCardType(value);
|
|
555
|
-
if (creditCardType) {
|
|
556
|
-
maskConfig = creditCardType.maskConfig;
|
|
557
|
-
}
|
|
558
|
-
return maskConfig;
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
/**
|
|
563
|
-
* A class for formatting string with the given mask format
|
|
564
|
-
*
|
|
565
|
-
* @augments StringFormatStrategy
|
|
566
|
-
*/
|
|
567
|
-
class CreditCardBlurMaskStrategy extends CreditCardMaskStrategy {
|
|
568
|
-
/**
|
|
569
|
-
* It creates a new instance of the Mask class.
|
|
570
|
-
*
|
|
571
|
-
* @param {boolean} hideCardNumberOnBlur - boolean
|
|
572
|
-
*/
|
|
573
|
-
constructor(hideCardNumberOnBlur) {
|
|
574
|
-
super({
|
|
575
|
-
mask: '',
|
|
576
|
-
slot: '9',
|
|
577
|
-
accept: /[\d\s]/,
|
|
578
|
-
insertMode: false,
|
|
579
|
-
triggerAtInit: FeatureFlag.isEnabled('VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD'),
|
|
580
|
-
});
|
|
581
|
-
this.hideCardNumberOnBlur = hideCardNumberOnBlur;
|
|
582
|
-
}
|
|
583
|
-
/**
|
|
584
|
-
* @inheritDoc
|
|
585
|
-
*/
|
|
586
|
-
getCreditCardMaskConfig(value) {
|
|
587
|
-
let maskConfig;
|
|
588
|
-
const creditCardType = this.getCreditCardType(value);
|
|
589
|
-
if (creditCardType) {
|
|
590
|
-
if (this.hideCardNumberOnBlur && value.trim().includes(' ')) {
|
|
591
|
-
maskConfig = this.generateDynamicMask(value);
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
return maskConfig;
|
|
595
|
-
}
|
|
596
|
-
/*
|
|
597
|
-
* The below method is e2e-test covered in
|
|
598
|
-
*
|
|
599
|
-
* @see{module:vega-input-credit-card-dynamic-mask-e2e}
|
|
600
|
-
*/
|
|
601
|
-
/* istanbul ignore next */
|
|
602
|
-
/**
|
|
603
|
-
* Transform the input card number with dynamic card number mask, for example: '4111 2222 3333 44' will be transformed to 'XXXX XXXX XXXX 99'
|
|
604
|
-
*
|
|
605
|
-
* @param {string} value - card number string
|
|
606
|
-
* @returns {MaskConfigType} - mask config type
|
|
607
|
-
*/
|
|
608
|
-
generateDynamicMask(value) {
|
|
609
|
-
const maskConfig = {
|
|
610
|
-
type: 'credit-card',
|
|
611
|
-
options: {
|
|
612
|
-
mask: '',
|
|
613
|
-
slot: '9',
|
|
614
|
-
accept: /[\d\s]/,
|
|
615
|
-
insertMode: false,
|
|
616
|
-
triggerAtInit: FeatureFlag.isEnabled('VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD'),
|
|
617
|
-
},
|
|
618
|
-
trigger: 'blur',
|
|
619
|
-
};
|
|
620
|
-
const cardNumberSplit = value.trim().split(' ');
|
|
621
|
-
const cardNumberMask =
|
|
622
|
-
// Map through the array and replace each character with 'X' or '9' depending on the index
|
|
623
|
-
cardNumberSplit
|
|
624
|
-
.map((element, index) => {
|
|
625
|
-
// Replace each character in the string with 'X' except the last element, which uses '9'
|
|
626
|
-
const replacementChar = index === cardNumberSplit.length - 1 ? '9' : 'X';
|
|
627
|
-
return replacementChar.repeat(element.length);
|
|
628
|
-
})
|
|
629
|
-
.join(' ');
|
|
630
|
-
maskConfig.options.mask = cardNumberMask;
|
|
631
|
-
return maskConfig;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
|
|
635
465
|
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
636
466
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
637
467
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -733,14 +563,10 @@ class VegaInputMaskConfigController extends StringInputFormatterSlimmer {
|
|
|
733
563
|
case 'number':
|
|
734
564
|
stringFormatStrategy = this.getNumberTypeMaskStrategy(maskConfig.options);
|
|
735
565
|
break;
|
|
736
|
-
case 'credit-card':
|
|
737
|
-
stringFormatStrategy =
|
|
738
|
-
maskTrigger === 'input'
|
|
739
|
-
? new CreditCardInputMaskStrategy()
|
|
740
|
-
: new CreditCardBlurMaskStrategy(maskConfig.hideCardNumberOnBlur);
|
|
741
|
-
break;
|
|
742
566
|
case 'custom':
|
|
743
|
-
stringFormatStrategy =
|
|
567
|
+
stringFormatStrategy = maskConfig.strategy
|
|
568
|
+
? maskConfig.strategy()
|
|
569
|
+
: new StringMaskStrategy(maskConfig.options);
|
|
744
570
|
break;
|
|
745
571
|
case 'custom-formatter':
|
|
746
572
|
stringFormatStrategy = new CustomFormatterStrategy(maskConfig.formatter, maskConfig.resetCaretPosition);
|
|
@@ -773,8 +599,7 @@ class VegaInputMaskConfigController extends StringInputFormatterSlimmer {
|
|
|
773
599
|
* 'custom' and a trigger of 'blur'.
|
|
774
600
|
*/
|
|
775
601
|
isBlurModeMaskConfig(maskConfig) {
|
|
776
|
-
return
|
|
777
|
-
maskConfig.trigger === 'blur');
|
|
602
|
+
return maskConfig.type === 'custom' && maskConfig.trigger === 'blur';
|
|
778
603
|
}
|
|
779
604
|
}
|
|
780
605
|
__decorate$3([
|
|
@@ -24,7 +24,7 @@ import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-c823d
|
|
|
24
24
|
import { f as findParent } from './ui-c20be16d.js';
|
|
25
25
|
import { L as LEFT_NAV_LINK_SELECTED_TOPIC } from './static-subject-title-633b3474.js';
|
|
26
26
|
import { c as createDeprecatedPropertySlimmer } from './deprecated-property-slimmer-2c14df89.js';
|
|
27
|
-
import { f as formatAndValidResponsiveToken } from './design-token-
|
|
27
|
+
import { f as formatAndValidResponsiveToken } from './design-token-e1821e4a.js';
|
|
28
28
|
import './ui-8424715a.js';
|
|
29
29
|
import './breakpoints-d9faf11c.js';
|
|
30
30
|
import './try-get-document-bef0f526.js';
|
|
@@ -36,19 +36,18 @@ import './dynamic-slimmer-90b8af32.js';
|
|
|
36
36
|
import './internal-vega-event-manager-526f8ed1.js';
|
|
37
37
|
import './number-4398f2e1.js';
|
|
38
38
|
import './object-66c37948.js';
|
|
39
|
-
import './type-guard-
|
|
40
|
-
import './regex-dfe11abf.js';
|
|
39
|
+
import './type-guard-12f7654b.js';
|
|
41
40
|
import './typography-396de03f.js';
|
|
42
|
-
import './responsive-format-facade-
|
|
41
|
+
import './responsive-format-facade-dbeffcd6.js';
|
|
43
42
|
import './pixel-f32c07ce.js';
|
|
44
43
|
import './array-7888f339.js';
|
|
45
44
|
import './vega-env-manager-8f8dc473.js';
|
|
46
45
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
47
46
|
import './translation-833d9ef4.js';
|
|
48
|
-
import './content-state-
|
|
49
|
-
import './code-block-
|
|
47
|
+
import './content-state-460f6254.js';
|
|
48
|
+
import './code-block-055cae13.js';
|
|
50
49
|
import './string-a953eafc.js';
|
|
51
|
-
import './state-background-color-formatter-
|
|
50
|
+
import './state-background-color-formatter-0f01d27a.js';
|
|
52
51
|
|
|
53
52
|
var __decorate$n = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
54
53
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -4,7 +4,7 @@ import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlim
|
|
|
4
4
|
import { I as InternalVegaZIndexManager } from './vega-skeleton-loader-controller-38864fcd.js';
|
|
5
5
|
import { s as sanitizeVegaComponent } from './component-7d906393.js';
|
|
6
6
|
import { a as arrayToClassString } from './ui-c20be16d.js';
|
|
7
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
7
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-dbeffcd6.js';
|
|
8
8
|
import { P as PageResizeObserverSlimmer, g as getCurrentBreakpoint } from './page-resize-observer-slimmer-0bf7fbf3.js';
|
|
9
9
|
import './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
|
|
10
10
|
import './dynamic-slimmer-90b8af32.js';
|
|
@@ -16,10 +16,9 @@ import './_commonjsHelpers-9943807e.js';
|
|
|
16
16
|
import './internal-vega-event-manager-526f8ed1.js';
|
|
17
17
|
import './dom-node-subject-factory-202655e7.js';
|
|
18
18
|
import './number-4398f2e1.js';
|
|
19
|
-
import './type-guard-
|
|
19
|
+
import './type-guard-12f7654b.js';
|
|
20
20
|
import './breakpoints-d9faf11c.js';
|
|
21
21
|
import './ui-8424715a.js';
|
|
22
|
-
import './regex-dfe11abf.js';
|
|
23
22
|
import './typography-396de03f.js';
|
|
24
23
|
import './pixel-f32c07ce.js';
|
|
25
24
|
import './array-7888f339.js';
|
|
@@ -29,8 +28,8 @@ import './index-e9da316f.js';
|
|
|
29
28
|
import './icon-manager-2ee1c619.js';
|
|
30
29
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
31
30
|
import './translation-833d9ef4.js';
|
|
32
|
-
import './content-state-
|
|
33
|
-
import './code-block-
|
|
31
|
+
import './content-state-460f6254.js';
|
|
32
|
+
import './code-block-055cae13.js';
|
|
34
33
|
import './vega-internal-event-id-b7c865de.js';
|
|
35
34
|
import './string-a953eafc.js';
|
|
36
35
|
import './object-66c37948.js';
|
|
@@ -9,7 +9,7 @@ import { c as createEventEmitSlimmer } from './event-emit-slimmer-40973ec2.js';
|
|
|
9
9
|
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
10
10
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-a84cc93e.js';
|
|
11
11
|
import { T as TranslationSlimmer } from './translation-slimmer-c83b52c1.js';
|
|
12
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
12
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-dbeffcd6.js';
|
|
13
13
|
import { P as PageResizeObserverSlimmer, g as getCurrentBreakpoint } from './page-resize-observer-slimmer-0bf7fbf3.js';
|
|
14
14
|
import { l as VegaInternalPaginationPageSizeChange, m as VegaInternalPaginationCurrentChange } from './vega-internal-event-id-b7c865de.js';
|
|
15
15
|
import './vega-env-manager-8f8dc473.js';
|
|
@@ -18,16 +18,15 @@ import { F as FeatureFlag } from './feature-flag-controller-51659753.js';
|
|
|
18
18
|
import './icon-manager-2ee1c619.js';
|
|
19
19
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
20
20
|
import './translation-833d9ef4.js';
|
|
21
|
-
import './content-state-
|
|
21
|
+
import './content-state-460f6254.js';
|
|
22
22
|
import './change-manager-6a7eb88c.js';
|
|
23
23
|
import './observer-3959f9dd.js';
|
|
24
24
|
import './internal-vega-event-manager-526f8ed1.js';
|
|
25
25
|
import './dynamic-slimmer-90b8af32.js';
|
|
26
26
|
import './try-get-document-bef0f526.js';
|
|
27
|
-
import './type-guard-
|
|
27
|
+
import './type-guard-12f7654b.js';
|
|
28
28
|
import './breakpoints-d9faf11c.js';
|
|
29
29
|
import './ui-8424715a.js';
|
|
30
|
-
import './regex-dfe11abf.js';
|
|
31
30
|
import './typography-396de03f.js';
|
|
32
31
|
import './pixel-f32c07ce.js';
|
|
33
32
|
import './array-7888f339.js';
|
|
@@ -36,7 +35,7 @@ import './dark-mode-style-controller-3bbb32dc.js';
|
|
|
36
35
|
import './static-subject-title-633b3474.js';
|
|
37
36
|
import './_commonjsHelpers-9943807e.js';
|
|
38
37
|
import './index-e9da316f.js';
|
|
39
|
-
import './code-block-
|
|
38
|
+
import './code-block-055cae13.js';
|
|
40
39
|
import './string-a953eafc.js';
|
|
41
40
|
import './object-66c37948.js';
|
|
42
41
|
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-057d0f70.js';
|
|
2
2
|
import { s as sanitizeVegaComponent } from './component-7d906393.js';
|
|
3
|
-
import { I as InjectKeyboardManager } from './inject-keyboard-manager-
|
|
3
|
+
import { I as InjectKeyboardManager } from './inject-keyboard-manager-109817bf.js';
|
|
4
4
|
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
5
5
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-a84cc93e.js';
|
|
6
6
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-40973ec2.js';
|
|
7
7
|
import { d as domNodeSubjectFactory, M as VegaPopoverShow, N as VegaPopoverHide } from './dom-node-subject-factory-202655e7.js';
|
|
8
|
-
import { E as ElementAppenderSlimmer } from './element-appender-slimmer-
|
|
8
|
+
import { E as ElementAppenderSlimmer } from './element-appender-slimmer-4260c020.js';
|
|
9
9
|
import { r as remoteInvocationRegistry } from './remote-invocation-registry-d69245c2.js';
|
|
10
10
|
import { s as VegaInternalPopoverUpdateTarget } from './vega-internal-event-id-b7c865de.js';
|
|
11
|
-
import { f as formatAndValidResponsiveToken } from './design-token-
|
|
12
|
-
import './keyboard-manager-
|
|
11
|
+
import { f as formatAndValidResponsiveToken } from './design-token-e1821e4a.js';
|
|
12
|
+
import './keyboard-manager-ab521d22.js';
|
|
13
13
|
import './ui-c20be16d.js';
|
|
14
|
-
import './type-guard-
|
|
14
|
+
import './type-guard-12f7654b.js';
|
|
15
15
|
import './breakpoints-d9faf11c.js';
|
|
16
16
|
import './ui-8424715a.js';
|
|
17
|
-
import './regex-dfe11abf.js';
|
|
18
17
|
import './typography-396de03f.js';
|
|
19
18
|
import './dynamic-slimmer-90b8af32.js';
|
|
20
19
|
import './change-manager-6a7eb88c.js';
|
|
@@ -29,7 +28,7 @@ import './dark-mode-style-controller-3bbb32dc.js';
|
|
|
29
28
|
import './static-subject-title-633b3474.js';
|
|
30
29
|
import './_commonjsHelpers-9943807e.js';
|
|
31
30
|
import './number-4398f2e1.js';
|
|
32
|
-
import './responsive-format-facade-
|
|
31
|
+
import './responsive-format-facade-dbeffcd6.js';
|
|
33
32
|
import './pixel-f32c07ce.js';
|
|
34
33
|
import './array-7888f339.js';
|
|
35
34
|
import './vega-env-manager-8f8dc473.js';
|
|
@@ -38,11 +37,11 @@ import './index-e9da316f.js';
|
|
|
38
37
|
import './icon-manager-2ee1c619.js';
|
|
39
38
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
40
39
|
import './translation-833d9ef4.js';
|
|
41
|
-
import './content-state-
|
|
42
|
-
import './code-block-
|
|
40
|
+
import './content-state-460f6254.js';
|
|
41
|
+
import './code-block-055cae13.js';
|
|
43
42
|
import './string-a953eafc.js';
|
|
44
43
|
import './object-66c37948.js';
|
|
45
|
-
import './state-background-color-formatter-
|
|
44
|
+
import './state-background-color-formatter-0f01d27a.js';
|
|
46
45
|
|
|
47
46
|
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
48
47
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -15,7 +15,7 @@ import { C as ComponentLoadRequired } from './component-load-required-db42032a.j
|
|
|
15
15
|
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-47820eaa.js';
|
|
16
16
|
import { C as ChildNodesNotifyObserverSlimmer } from './child-nodes-notify-observer-slimmer-78f77c2c.js';
|
|
17
17
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-6b5b31f5.js';
|
|
18
|
-
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-
|
|
18
|
+
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-cae3a002.js';
|
|
19
19
|
import { M as MutationObserverSlimmer } from './mutation-observer-slimmer-58ebc13c.js';
|
|
20
20
|
import { T as TagNameMutationFilter } from './mutation-observer-filters-1a054fb0.js';
|
|
21
21
|
import './dynamic-slimmer-90b8af32.js';
|
|
@@ -36,9 +36,8 @@ import './vega-env-manager-8f8dc473.js';
|
|
|
36
36
|
import './feature-flag-controller-51659753.js';
|
|
37
37
|
import './index-e9da316f.js';
|
|
38
38
|
import './_commonjsHelpers-9943807e.js';
|
|
39
|
-
import './keyboard-manager-
|
|
40
|
-
import './type-guard-
|
|
41
|
-
import './regex-dfe11abf.js';
|
|
39
|
+
import './keyboard-manager-ab521d22.js';
|
|
40
|
+
import './type-guard-12f7654b.js';
|
|
42
41
|
import './typography-396de03f.js';
|
|
43
42
|
|
|
44
43
|
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -3,13 +3,13 @@ import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer,
|
|
|
3
3
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-a84cc93e.js';
|
|
4
4
|
import { s as sanitizeVegaComponent } from './component-7d906393.js';
|
|
5
5
|
import { a as VegaDarkModeStyleController } from './dark-mode-style-controller-3bbb32dc.js';
|
|
6
|
-
import { T as TextNodeRenderingRegistry, R as RTEDTORendererManager, I as ImageAnnotationAction, a as TextColorToolbarButtonSlimmer } from './image-annotation-action-
|
|
7
|
-
import { I as ImageAnnotation, V as VegaRTEContent } from './content-state-
|
|
8
|
-
import { s as stateEntityRenderingRegistry, p as NodeAnnotationTypeEnum, Z as ZERO_WIDTH_SPACE, w as ModifyContentAction, M as ModifyContentActionType, L as LinkAnnotationAction, O as InternalAnnotationTypeEnum, P as CommonAnnotationTypeEnum, N as NodeAnnotation, q as RTEDecoratorNode, Q as UpdateCodeBlockAction, T as SelectionChangeAction, o as RTECodeBlock } from './code-block-
|
|
6
|
+
import { T as TextNodeRenderingRegistry, R as RTEDTORendererManager, I as ImageAnnotationAction, a as TextColorToolbarButtonSlimmer } from './image-annotation-action-95cc9118.js';
|
|
7
|
+
import { I as ImageAnnotation, V as VegaRTEContent } from './content-state-460f6254.js';
|
|
8
|
+
import { s as stateEntityRenderingRegistry, p as NodeAnnotationTypeEnum, Z as ZERO_WIDTH_SPACE, w as ModifyContentAction, M as ModifyContentActionType, L as LinkAnnotationAction, O as InternalAnnotationTypeEnum, P as CommonAnnotationTypeEnum, N as NodeAnnotation, q as RTEDecoratorNode, Q as UpdateCodeBlockAction, T as SelectionChangeAction, o as RTECodeBlock } from './code-block-055cae13.js';
|
|
9
9
|
import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0fab.js';
|
|
10
10
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-999e21e3.js';
|
|
11
11
|
import { f as VegaChange, k as VegaRemove } from './dom-node-subject-factory-202655e7.js';
|
|
12
|
-
import { i as isNonNullable } from './type-guard-
|
|
12
|
+
import { i as isNonNullable } from './type-guard-12f7654b.js';
|
|
13
13
|
import { p as VegaInternalCodeBlockSelectionChange } from './vega-internal-event-id-b7c865de.js';
|
|
14
14
|
import { t as tryGetDocument } from './try-get-document-bef0f526.js';
|
|
15
15
|
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-c823d69c.js';
|
|
@@ -27,7 +27,6 @@ import './string-a953eafc.js';
|
|
|
27
27
|
import './object-66c37948.js';
|
|
28
28
|
import './breakpoints-d9faf11c.js';
|
|
29
29
|
import './ui-8424715a.js';
|
|
30
|
-
import './regex-dfe11abf.js';
|
|
31
30
|
import './typography-396de03f.js';
|
|
32
31
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
33
32
|
|
|
@@ -6,22 +6,22 @@ import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0f
|
|
|
6
6
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
7
7
|
import { d as domNodeSubjectFactory, b as VegaDropdownClick, f as VegaChange, P as VegaImageInserted, a as VegaClick, M as VegaPopoverShow, N as VegaPopoverHide } from './dom-node-subject-factory-202655e7.js';
|
|
8
8
|
import { V as VegaInternalComponentDidRender, b as VegaInternalRichTextEditorFlushChanges, y as VegaInternalRichTextEditDeleteSelectedNodes, z as VegaInternalRichTextImageClick, A as VegaInternalRichTextImageDeleteButtonClicked, s as VegaInternalPopoverUpdateTarget } from './vega-internal-event-id-b7c865de.js';
|
|
9
|
-
import { R as RTEDTORendererManager, V as VisualModeToolbarButtonSlimmer, I as ImageAnnotationAction, T as TextNodeRenderingRegistry, b as ToolbarButtonSlimmer, a as TextColorToolbarButtonSlimmer } from './image-annotation-action-
|
|
9
|
+
import { R as RTEDTORendererManager, V as VisualModeToolbarButtonSlimmer, I as ImageAnnotationAction, T as TextNodeRenderingRegistry, b as ToolbarButtonSlimmer, a as TextColorToolbarButtonSlimmer } from './image-annotation-action-95cc9118.js';
|
|
10
10
|
import { V as VegaInternalIconManager } from './internal-icon-manager-7eac52c8.js';
|
|
11
|
-
import { a as RTETextNode, Y as BoldAnnotationAction, p as NodeAnnotationTypeEnum, X as RTECodeBlockNode, _ as ItalicAnnotationAction, $ as UnderlineAnnotationAction, R as RTETextBlock, a0 as TextStyleAnnotationAction, a1 as TextStyleAnnotation, a2 as BoldAnnotation, k as BlockAnnotationTypeEnum, a3 as ClearFormattingAnnotationAction, a4 as CodeAnnotationAction, a5 as StrikethroughAnnotationAction, T as SelectionChangeAction, L as LinkAnnotationAction, a6 as IndentAnnotationAction, w as ModifyContentAction, M as ModifyContentActionType, H as HorizontalAlignmentAnnotationAction, s as stateEntityRenderingRegistry, b as AppendChildrenAction, Z as ZERO_WIDTH_SPACE, U as UpdateTextAction, i as InsertChildrenBeforeAction, x as SplitBlockWithNodeAction, h as RemoveChildrenAction, v as ReplaceChildNodesAction, I as InsertChildrenAfterAction, o as RTECodeBlock } from './code-block-
|
|
11
|
+
import { a as RTETextNode, Y as BoldAnnotationAction, p as NodeAnnotationTypeEnum, X as RTECodeBlockNode, _ as ItalicAnnotationAction, $ as UnderlineAnnotationAction, R as RTETextBlock, a0 as TextStyleAnnotationAction, a1 as TextStyleAnnotation, a2 as BoldAnnotation, k as BlockAnnotationTypeEnum, a3 as ClearFormattingAnnotationAction, a4 as CodeAnnotationAction, a5 as StrikethroughAnnotationAction, T as SelectionChangeAction, L as LinkAnnotationAction, a6 as IndentAnnotationAction, w as ModifyContentAction, M as ModifyContentActionType, H as HorizontalAlignmentAnnotationAction, s as stateEntityRenderingRegistry, b as AppendChildrenAction, Z as ZERO_WIDTH_SPACE, U as UpdateTextAction, i as InsertChildrenBeforeAction, x as SplitBlockWithNodeAction, h as RemoveChildrenAction, v as ReplaceChildNodesAction, I as InsertChildrenAfterAction, o as RTECodeBlock } from './code-block-055cae13.js';
|
|
12
12
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-999e21e3.js';
|
|
13
13
|
import { g as generateUUID } from './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
|
|
14
14
|
import { a as waitForComponentDidRender } from './index-18a340fb.js';
|
|
15
|
-
import { c as RTEImageNode, a as RTEListItemBlock, V as VegaRTEContent, M as MergeTwoBlocksNodesAction, d as InsertNewParagraphAction, E as ElementToDtoStrategyProcessor, R as RTEImageBlock } from './content-state-
|
|
15
|
+
import { c as RTEImageNode, a as RTEListItemBlock, V as VegaRTEContent, M as MergeTwoBlocksNodesAction, d as InsertNewParagraphAction, E as ElementToDtoStrategyProcessor, R as RTEImageBlock } from './content-state-460f6254.js';
|
|
16
16
|
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-47820eaa.js';
|
|
17
17
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-40973ec2.js';
|
|
18
18
|
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-b3524c09.js';
|
|
19
|
-
import { R as RTESelectionState, C as ComponentValueHistoryControllerSlimmer, A as AutoRunWhenReRenderTaskQueueSlimmer, a as SelectionController } from './component-value-history-controller-slimmer.abstract-
|
|
19
|
+
import { R as RTESelectionState, C as ComponentValueHistoryControllerSlimmer, A as AutoRunWhenReRenderTaskQueueSlimmer, a as SelectionController } from './component-value-history-controller-slimmer.abstract-7a64c05a.js';
|
|
20
20
|
import { b as FORM_ELEMENT_VALUE_CHANGE, D as DARK_MODE_CHANGE } from './static-subject-title-633b3474.js';
|
|
21
21
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
22
22
|
import { d as debounce } from './timer-9321173b.js';
|
|
23
23
|
import { D as DarkModeStateControllerSlimmer } from './dark-mode-state-controller-slimmer-0c7d1c77.js';
|
|
24
|
-
import { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-
|
|
24
|
+
import { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-6cfdcaaf.js';
|
|
25
25
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-6b5b31f5.js';
|
|
26
26
|
import { T as TranslationSlimmer } from './translation-slimmer-c83b52c1.js';
|
|
27
27
|
import { V as VegaInternalThemeManager } from './dark-mode-style-controller-3bbb32dc.js';
|
|
@@ -31,10 +31,9 @@ import { f as findParent } from './ui-c20be16d.js';
|
|
|
31
31
|
import { r as remoteInvocationRegistry } from './remote-invocation-registry-d69245c2.js';
|
|
32
32
|
import './icon-manager-2ee1c619.js';
|
|
33
33
|
import './string-a953eafc.js';
|
|
34
|
-
import './type-guard-
|
|
34
|
+
import './type-guard-12f7654b.js';
|
|
35
35
|
import './breakpoints-d9faf11c.js';
|
|
36
36
|
import './ui-8424715a.js';
|
|
37
|
-
import './regex-dfe11abf.js';
|
|
38
37
|
import './typography-396de03f.js';
|
|
39
38
|
import './object-66c37948.js';
|
|
40
39
|
import './dynamic-slimmer-90b8af32.js';
|
|
@@ -50,8 +49,8 @@ import './number-4398f2e1.js';
|
|
|
50
49
|
import './sub-state-observer-slimmer-c823d69c.js';
|
|
51
50
|
import './internal-vega-event-manager-526f8ed1.js';
|
|
52
51
|
import './synchronize-task-queue-ac8acc3b.js';
|
|
53
|
-
import './keyboard-manager-slimmer-
|
|
54
|
-
import './keyboard-manager-
|
|
52
|
+
import './keyboard-manager-slimmer-cae3a002.js';
|
|
53
|
+
import './keyboard-manager-ab521d22.js';
|
|
55
54
|
import './vega-env-manager-8f8dc473.js';
|
|
56
55
|
import './feature-flag-controller-51659753.js';
|
|
57
56
|
import './index-e9da316f.js';
|
|
@@ -2,7 +2,7 @@ import { h, H as Host, r as registerInstance, c as createEvent, g as getElement
|
|
|
2
2
|
import { s as sanitizeVegaComponent } from './component-7d906393.js';
|
|
3
3
|
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer, I as InjectVegaSlimmer, L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
|
|
4
4
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-a84cc93e.js';
|
|
5
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
5
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-dbeffcd6.js';
|
|
6
6
|
import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0fab.js';
|
|
7
7
|
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-c823d69c.js';
|
|
8
8
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
@@ -20,10 +20,9 @@ import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-b35
|
|
|
20
20
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-6b5b31f5.js';
|
|
21
21
|
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-47820eaa.js';
|
|
22
22
|
import { R as RequiredFieldRule } from './required-field-rule-ab4bdc47.js';
|
|
23
|
-
import './type-guard-
|
|
23
|
+
import './type-guard-12f7654b.js';
|
|
24
24
|
import './breakpoints-d9faf11c.js';
|
|
25
25
|
import './ui-8424715a.js';
|
|
26
|
-
import './regex-dfe11abf.js';
|
|
27
26
|
import './typography-396de03f.js';
|
|
28
27
|
import './number-4398f2e1.js';
|
|
29
28
|
import './pixel-f32c07ce.js';
|
|
@@ -39,8 +38,8 @@ import './index-e9da316f.js';
|
|
|
39
38
|
import './icon-manager-2ee1c619.js';
|
|
40
39
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
41
40
|
import './translation-833d9ef4.js';
|
|
42
|
-
import './content-state-
|
|
43
|
-
import './code-block-
|
|
41
|
+
import './content-state-460f6254.js';
|
|
42
|
+
import './code-block-055cae13.js';
|
|
44
43
|
import './string-a953eafc.js';
|
|
45
44
|
import './object-66c37948.js';
|
|
46
45
|
import './try-get-document-bef0f526.js';
|
|
@@ -11,7 +11,7 @@ import { V as VegaInternalIconManager } from './internal-icon-manager-7eac52c8.j
|
|
|
11
11
|
import { V as VegaIconManager } from './icon-manager-2ee1c619.js';
|
|
12
12
|
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-b3524c09.js';
|
|
13
13
|
import { e as executeAfterTransition } from './effect-f50e072d.js';
|
|
14
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
14
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-dbeffcd6.js';
|
|
15
15
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-999e21e3.js';
|
|
16
16
|
import { u as VegaInternalSidenavLinkClick } from './vega-internal-event-id-b7c865de.js';
|
|
17
17
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-40973ec2.js';
|
|
@@ -29,8 +29,7 @@ import './_commonjsHelpers-9943807e.js';
|
|
|
29
29
|
import './ui-8424715a.js';
|
|
30
30
|
import './breakpoints-d9faf11c.js';
|
|
31
31
|
import './try-get-document-bef0f526.js';
|
|
32
|
-
import './type-guard-
|
|
33
|
-
import './regex-dfe11abf.js';
|
|
32
|
+
import './type-guard-12f7654b.js';
|
|
34
33
|
import './typography-396de03f.js';
|
|
35
34
|
import './pixel-f32c07ce.js';
|
|
36
35
|
import './vega-env-manager-8f8dc473.js';
|
|
@@ -38,8 +37,8 @@ import './feature-flag-controller-51659753.js';
|
|
|
38
37
|
import './index-e9da316f.js';
|
|
39
38
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
40
39
|
import './translation-833d9ef4.js';
|
|
41
|
-
import './content-state-
|
|
42
|
-
import './code-block-
|
|
40
|
+
import './content-state-460f6254.js';
|
|
41
|
+
import './code-block-055cae13.js';
|
|
43
42
|
import './string-a953eafc.js';
|
|
44
43
|
import './object-66c37948.js';
|
|
45
44
|
|
|
@@ -5,7 +5,7 @@ import { V as VegaInternalIconManager } from './internal-icon-manager-7eac52c8.j
|
|
|
5
5
|
import { s as sanitizeVegaComponent } from './component-7d906393.js';
|
|
6
6
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-999e21e3.js';
|
|
7
7
|
import { a as VegaClick, f as VegaChange } from './dom-node-subject-factory-202655e7.js';
|
|
8
|
-
import { f as formatAndValidResponsiveToken } from './design-token-
|
|
8
|
+
import { f as formatAndValidResponsiveToken } from './design-token-e1821e4a.js';
|
|
9
9
|
import { b as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-633b3474.js';
|
|
10
10
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
11
11
|
import { d as deepEqual } from './object-66c37948.js';
|
|
@@ -19,12 +19,11 @@ import './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
|
|
|
19
19
|
import './dynamic-slimmer-90b8af32.js';
|
|
20
20
|
import './observer-3959f9dd.js';
|
|
21
21
|
import './ui-c20be16d.js';
|
|
22
|
-
import './type-guard-
|
|
22
|
+
import './type-guard-12f7654b.js';
|
|
23
23
|
import './breakpoints-d9faf11c.js';
|
|
24
24
|
import './ui-8424715a.js';
|
|
25
|
-
import './regex-dfe11abf.js';
|
|
26
25
|
import './typography-396de03f.js';
|
|
27
|
-
import './responsive-format-facade-
|
|
26
|
+
import './responsive-format-facade-dbeffcd6.js';
|
|
28
27
|
import './number-4398f2e1.js';
|
|
29
28
|
import './pixel-f32c07ce.js';
|
|
30
29
|
import './array-7888f339.js';
|
|
@@ -37,11 +36,11 @@ import './feature-flag-controller-51659753.js';
|
|
|
37
36
|
import './index-e9da316f.js';
|
|
38
37
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
39
38
|
import './translation-833d9ef4.js';
|
|
40
|
-
import './content-state-
|
|
41
|
-
import './code-block-
|
|
39
|
+
import './content-state-460f6254.js';
|
|
40
|
+
import './code-block-055cae13.js';
|
|
42
41
|
import './vega-internal-event-id-b7c865de.js';
|
|
43
42
|
import './string-a953eafc.js';
|
|
44
|
-
import './state-background-color-formatter-
|
|
43
|
+
import './state-background-color-formatter-0f01d27a.js';
|
|
45
44
|
import './try-get-document-bef0f526.js';
|
|
46
45
|
import './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
|
|
47
46
|
import './mutation-observer-slimmer-58ebc13c.js';
|
|
@@ -11,8 +11,8 @@ import { d as domNodeSubjectFactory, a as VegaClick, f as VegaChange, L as VegaP
|
|
|
11
11
|
import { r as remoteInvocationRegistry } from './remote-invocation-registry-d69245c2.js';
|
|
12
12
|
import { F as VegaInternalTableRowExpand, G as VegaInternalTableRowSelect, H as VegaInternalTableRowSelectAll, I as VegaInternalColumnHeadRowRenderInputRIC, J as VegaInternalColumnHeadCellRenderInputRIC, K as VegaInternalColumnBodyCellRenderInputRIC, L as VegaInternalTableHeadCellSortEvent } from './vega-internal-event-id-b7c865de.js';
|
|
13
13
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-999e21e3.js';
|
|
14
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
15
|
-
import { i as isNonNullable, s as isBreakpointsTokenType,
|
|
14
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-dbeffcd6.js';
|
|
15
|
+
import { i as isNonNullable, s as isBreakpointsTokenType, W as isVegaTableColumnGroupingModelType } from './type-guard-12f7654b.js';
|
|
16
16
|
import { s as sanitizeVegaComponent } from './component-7d906393.js';
|
|
17
17
|
import { g as generateUUID } from './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
|
|
18
18
|
import { P as PageResizeObserverSlimmer, g as getCurrentBreakpoint } from './page-resize-observer-slimmer-0bf7fbf3.js';
|
|
@@ -39,12 +39,11 @@ import './vega-env-manager-8f8dc473.js';
|
|
|
39
39
|
import './icon-manager-2ee1c619.js';
|
|
40
40
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
41
41
|
import './translation-833d9ef4.js';
|
|
42
|
-
import './content-state-
|
|
43
|
-
import './code-block-
|
|
42
|
+
import './content-state-460f6254.js';
|
|
43
|
+
import './code-block-055cae13.js';
|
|
44
44
|
import './string-a953eafc.js';
|
|
45
45
|
import './dark-mode-style-controller-3bbb32dc.js';
|
|
46
46
|
import './_commonjsHelpers-9943807e.js';
|
|
47
|
-
import './regex-dfe11abf.js';
|
|
48
47
|
import './typography-396de03f.js';
|
|
49
48
|
import './dynamic-slimmer-90b8af32.js';
|
|
50
49
|
import './try-get-document-bef0f526.js';
|