@globalpayments/vega 2.57.0 → 2.58.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/card-config-2ee5505e.js +65 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-92ab034f.js → string-input-formatter-slimmer-dc1747ad.js} +20 -1
- package/dist/cjs/vega-calendar_3.cjs.entry.js +197 -114
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +28 -4
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +20 -116
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +1 -1
- package/dist/cjs/vega-input-select.cjs.entry.js +6 -3
- package/dist/cjs/vega-input.cjs.entry.js +194 -2
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +26 -2
- package/dist/cjs/vega.cjs.js +1 -1
- package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-post-operation-date-controller.js +48 -0
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-switch-panel.js +8 -2
- package/dist/collection/components/vega-calendar/vega-calendar.js +42 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +27 -3
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.css +6 -0
- package/dist/collection/components/vega-input/slimmers/controllers/vega-input-mask-config-controller.js +25 -2
- package/dist/collection/components/vega-input/vega-input.js +1 -1
- package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.js +13 -52
- package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.css +4 -0
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +5 -2
- package/dist/collection/components/vega-input-select/vega-input-select.css +0 -3
- package/dist/collection/components/vega-selection-tile/slimmers/controllers/vega-selection-tile-state-controller.js +7 -0
- package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.js +37 -0
- package/dist/collection/components/vega-selection-tile/vega-selection-tile.css +12 -0
- package/dist/collection/components/vega-selection-tile/vega-selection-tile.js +7 -2
- package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.js +1 -1
- package/dist/collection/components/vega-table/vega-table.js +1 -1
- package/dist/collection/constants/card-config.js +4 -4
- package/dist/collection/helpers/calendar/calendar-period/month-period.js +15 -1
- package/dist/collection/helpers/calendar/calendar-period/week-period.js +6 -7
- package/dist/collection/helpers/calendar/test/calendar-period/month-period.test.js +12 -4
- package/dist/collection/helpers/calendar/test/calendar-period/week-period.test.js +2 -2
- package/dist/collection/helpers/formatter/string-formatter/credit-card-blur-mask-strategy.js +74 -0
- package/dist/collection/helpers/formatter/string-formatter/credit-card-input-mask-strategy.js +34 -0
- package/dist/collection/helpers/formatter/string-formatter/credit-card-mask-strategy.abstract.js +63 -0
- package/dist/collection/helpers/formatter/string-formatter/string-format-strategy.abstract.js +4 -1
- package/dist/collection/helpers/formatter/string-formatter/string-mask-strategy.js +8 -0
- package/dist/collection/helpers/slimmers/string-input-formatter-slimmer.js +8 -0
- package/dist/esm/{app-globals-366415b3.js → app-globals-ee6a1250.js} +3 -3
- package/dist/esm/card-config-d2ad484e.js +63 -0
- package/dist/esm/{code-block-73869a3c.js → code-block-7bd4cb87.js} +1 -1
- package/dist/esm/{component-value-history-controller-slimmer.abstract-dfe89c93.js → component-value-history-controller-slimmer.abstract-41c58caf.js} +2 -2
- package/dist/esm/{content-state-953906e8.js → content-state-a43e703e.js} +1 -1
- package/dist/esm/{design-token-28a0a2e6.js → design-token-23522f5c.js} +1 -1
- package/dist/esm/{element-appender-slimmer-7b9f4a8e.js → element-appender-slimmer-042df95a.js} +2 -2
- package/dist/esm/{form-field-controller-slimmer-707a6da2.js → form-field-controller-slimmer-f0982f11.js} +2 -2
- package/dist/esm/{image-annotation-action-5bfda07c.js → image-annotation-action-1e88f5a0.js} +1 -1
- package/dist/esm/{index-3e551cbe.js → index-fb3b74bd.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{public-rules-c5d2c1e1.js → public-rules-287d4d77.js} +4 -4
- package/dist/esm/{responsive-format-facade-60731164.js → responsive-format-facade-d2632288.js} +1 -1
- package/dist/esm/{rich-text-editor-required-rule-4429066e.js → rich-text-editor-required-rule-69d5f035.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-6ab5cad6.js → string-input-formatter-slimmer-09478e0d.js} +23 -4
- package/dist/esm/{style-formatter-57fc600a.js → style-formatter-f7951677.js} +1 -1
- package/dist/esm/{sub-state-notify-slimmer-1c4d1e78.js → sub-state-notify-slimmer-0a6c3cbb.js} +1 -1
- package/dist/esm/{sub-state-observer-slimmer-1e9af9ec.js → sub-state-observer-slimmer-53eec5fb.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +5 -5
- package/dist/esm/vega-app-header-button.entry.js +5 -5
- package/dist/esm/vega-box.entry.js +6 -6
- package/dist/esm/vega-button-circle.entry.js +5 -5
- package/dist/esm/vega-button-group_2.entry.js +3 -3
- package/dist/esm/vega-button.entry.js +4 -4
- package/dist/esm/vega-calendar_3.entry.js +200 -117
- package/dist/esm/vega-card.entry.js +5 -5
- package/dist/esm/vega-carousel.entry.js +4 -4
- package/dist/esm/vega-checkbox_2.entry.js +3 -3
- package/dist/esm/vega-chip.entry.js +5 -5
- package/dist/esm/vega-code-block.entry.js +3 -3
- package/dist/esm/vega-color-picker.entry.js +3 -3
- package/dist/esm/vega-combo-box.entry.js +3 -3
- package/dist/esm/vega-date-picker_2.entry.js +9 -9
- package/dist/esm/vega-dialog_2.entry.js +5 -5
- package/dist/esm/vega-divider.entry.js +5 -5
- package/dist/esm/vega-dropdown_5.entry.js +35 -11
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-file-uploader.entry.js +3 -3
- package/dist/esm/vega-flag-icon.entry.js +5 -5
- package/dist/esm/vega-flex.entry.js +6 -6
- package/dist/esm/vega-font.entry.js +5 -5
- package/dist/esm/vega-form.entry.js +4 -4
- package/dist/esm/vega-grid.entry.js +5 -5
- package/dist/esm/vega-icon.entry.js +5 -5
- package/dist/esm/vega-image-uploader.entry.js +6 -6
- package/dist/esm/vega-input-credit-card.entry.js +21 -117
- package/dist/esm/vega-input-numeric.entry.js +4 -4
- package/dist/esm/vega-input-phone-number.entry.js +6 -6
- package/dist/esm/vega-input-range.entry.js +3 -3
- package/dist/esm/vega-input-select.entry.js +12 -9
- package/dist/esm/vega-input.entry.js +198 -6
- package/dist/esm/{vega-internal-event-id-f0ea2bab.js → vega-internal-event-id-4072659b.js} +1 -1
- package/dist/esm/vega-left-nav_5.entry.js +7 -7
- package/dist/esm/vega-loader-wrapper_2.entry.js +4 -4
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +1 -1
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +1 -1
- package/dist/esm/vega-pagination.entry.js +4 -4
- package/dist/esm/vega-popover_2.entry.js +5 -5
- package/dist/esm/vega-radio_2.entry.js +3 -3
- package/dist/esm/vega-rich-text-content.entry.js +6 -6
- package/dist/esm/vega-rich-text-editor_4.entry.js +10 -10
- package/dist/esm/vega-selection-chip_2.entry.js +7 -7
- package/dist/esm/vega-selection-tile_2.entry.js +30 -6
- package/dist/esm/vega-sidenav_3.entry.js +6 -6
- package/dist/esm/vega-signature-capture.entry.js +7 -7
- package/dist/esm/vega-stepper.entry.js +3 -3
- package/dist/esm/vega-table_8.entry.js +6 -6
- package/dist/esm/vega-textarea.entry.js +3 -3
- package/dist/esm/vega-time-picker_2.entry.js +7 -7
- package/dist/esm/vega-toggle-switch.entry.js +3 -3
- package/dist/esm/vega-tooltip_2.entry.js +5 -5
- package/dist/esm/vega.js +6 -6
- package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-post-operation-date-controller.d.ts +23 -0
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-switch-panel.d.ts +2 -0
- package/dist/types/components/vega-calendar/vega-calendar.d.ts +15 -1
- package/dist/types/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.d.ts +4 -0
- package/dist/types/components/vega-input/slimmers/controllers/vega-input-mask-config-controller.d.ts +7 -0
- package/dist/types/components/vega-input/types.d.ts +10 -1
- package/dist/types/components/vega-input-credit-card/vega-input-credit-card.d.ts +1 -13
- package/dist/types/components/vega-selection-tile/slimmers/controllers/vega-selection-tile-state-controller.d.ts +1 -0
- package/dist/types/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.d.ts +8 -0
- package/dist/types/components/vega-selection-tile/vega-selection-tile.d.ts +4 -0
- package/dist/types/components/vega-table/interface.d.ts +18 -11
- package/dist/types/components/vega-table/vega-table-head-cell/vega-table-head-cell.d.ts +1 -1
- package/dist/types/components/vega-table/vega-table.d.ts +1 -1
- package/dist/types/components.d.ts +24 -4
- package/dist/types/helpers/calendar/calendar-period/calendar-period.abstract.d.ts +3 -3
- package/dist/types/helpers/calendar/calendar-period/month-period.d.ts +7 -1
- package/dist/types/helpers/formatter/string-formatter/credit-card-blur-mask-strategy.d.ts +28 -0
- package/dist/types/helpers/formatter/string-formatter/credit-card-input-mask-strategy.d.ts +21 -0
- package/dist/types/helpers/formatter/string-formatter/credit-card-mask-strategy.abstract.d.ts +36 -0
- package/dist/types/helpers/formatter/string-formatter/string-format-strategy.abstract.d.ts +1 -1
- package/dist/types/helpers/formatter/string-formatter/string-mask-strategy.d.ts +9 -3
- package/dist/types/helpers/slimmers/string-input-formatter-slimmer.d.ts +4 -0
- package/dist/types/types/public-api.d.ts +1 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-6acf0a51.entry.js → p-083af15f.entry.js} +1 -1
- package/dist/vega/{p-75ff12da.entry.js → p-091ab617.entry.js} +1 -1
- package/dist/vega/{p-47e89c0e.entry.js → p-0b5330e1.entry.js} +1 -1
- package/dist/vega/{p-f4a7acff.entry.js → p-1a4f77de.entry.js} +1 -1
- package/dist/vega/{p-21a7530c.entry.js → p-1a6dacc7.entry.js} +1 -1
- package/dist/vega/{p-2ebef70f.entry.js → p-1db2ba98.entry.js} +1 -1
- package/dist/vega/{p-e277ea73.entry.js → p-1f9a735a.entry.js} +1 -1
- package/dist/vega/{p-44880bdf.entry.js → p-24042f0c.entry.js} +1 -1
- package/dist/vega/{p-e28fcf04.entry.js → p-27a9ad35.entry.js} +1 -1
- package/dist/vega/{p-0496f1cb.entry.js → p-27ec0c07.entry.js} +1 -1
- package/dist/vega/{p-27dca371.entry.js → p-317920e6.entry.js} +1 -1
- package/dist/vega/{p-a2ef3429.entry.js → p-376b3ec7.entry.js} +1 -1
- package/dist/vega/{p-dc16e6ba.entry.js → p-394594e9.entry.js} +1 -1
- package/dist/vega/{p-8fb5bcb0.entry.js → p-42ec43ef.entry.js} +1 -1
- package/dist/vega/{p-6e1b5949.js → p-43263510.js} +1 -1
- package/dist/vega/{p-29f4cbed.entry.js → p-435451be.entry.js} +1 -1
- package/dist/vega/p-472108bd.entry.js +1 -0
- package/dist/vega/{p-6131f229.entry.js → p-48ae6f02.entry.js} +1 -1
- package/dist/vega/{p-1c4d05de.entry.js → p-48b24fd3.entry.js} +1 -1
- package/dist/vega/{p-fb8c99c5.js → p-4a237308.js} +1 -1
- package/dist/vega/{p-5dec9bd9.entry.js → p-4ab67150.entry.js} +1 -1
- package/dist/vega/{p-d82ceacf.entry.js → p-4c4ac1a5.entry.js} +1 -1
- package/dist/vega/p-4fb159d5.js +1 -0
- package/dist/vega/p-5bd3487e.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-39049341.entry.js → p-5fe47fe8.entry.js} +1 -1
- package/dist/vega/{p-d5ab867e.entry.js → p-61ea2d75.entry.js} +1 -1
- package/dist/vega/{p-e32efc2e.entry.js → p-63adca7b.entry.js} +1 -1
- package/dist/vega/{p-7c0004dc.entry.js → p-699032fc.entry.js} +1 -1
- package/dist/vega/{p-0b77c6c9.entry.js → p-710da484.entry.js} +1 -1
- package/dist/vega/{p-007bf7df.js → p-71c65f7e.js} +1 -1
- package/dist/vega/{p-a92a8172.entry.js → p-81279fea.entry.js} +1 -1
- package/dist/vega/{p-ecd032fc.js → p-8782abeb.js} +1 -1
- package/dist/vega/p-88e08a33.js +1 -0
- package/dist/vega/{p-4f5eb8d5.js → p-8c4f893b.js} +1 -1
- package/dist/vega/p-8e2b1dae.entry.js +1 -0
- package/dist/vega/{p-2873b600.entry.js → p-8f8de5ab.entry.js} +1 -1
- package/dist/vega/p-92355996.entry.js +1 -0
- package/dist/vega/p-9540e3ed.entry.js +1 -0
- package/dist/vega/p-997a2064.entry.js +1 -0
- package/dist/vega/{p-ce14af16.js → p-9a956a00.js} +1 -1
- package/dist/vega/{p-fcb04960.js → p-9afdcf65.js} +1 -1
- package/dist/vega/p-9b08ed46.entry.js +1 -0
- package/dist/vega/{p-b44ebc84.entry.js → p-9ce0bd82.entry.js} +1 -1
- package/dist/vega/{p-f8f8e7d2.entry.js → p-a04491cc.entry.js} +1 -1
- package/dist/vega/{p-99c4559e.entry.js → p-a1056063.entry.js} +1 -1
- package/dist/vega/{p-b449fe9a.entry.js → p-a4a0fcfd.entry.js} +1 -1
- package/dist/vega/{p-f79c82c7.entry.js → p-a7042a5a.entry.js} +1 -1
- package/dist/vega/p-acf7667e.entry.js +1 -0
- package/dist/vega/{p-8ba8a7cc.entry.js → p-b21b128c.entry.js} +1 -1
- package/dist/vega/{p-766ed063.entry.js → p-b75a8edb.entry.js} +1 -1
- package/dist/vega/{p-1e3f4007.entry.js → p-c21295cf.entry.js} +1 -1
- package/dist/vega/{p-5130bb06.entry.js → p-c69a6547.entry.js} +1 -1
- package/dist/vega/{p-79c2282c.entry.js → p-c9740710.entry.js} +1 -1
- package/dist/vega/{p-f4546425.entry.js → p-ce5a3589.entry.js} +1 -1
- package/dist/vega/{p-cd3d468c.js → p-d1355307.js} +1 -1
- package/dist/vega/{p-07927476.entry.js → p-d661a5aa.entry.js} +1 -1
- package/dist/vega/{p-8246f8ae.js → p-d7e0c57a.js} +1 -1
- package/dist/vega/p-e1ed78db.js +1 -0
- package/dist/vega/{p-34643550.entry.js → p-ef84dc90.entry.js} +1 -1
- package/dist/vega/{p-2458ad97.js → p-f229d6d1.js} +1 -1
- package/dist/vega/{p-fd2f699b.js → p-f25570f5.js} +1 -1
- package/dist/vega/{p-888dc143.entry.js → p-f27fcc7c.entry.js} +1 -1
- package/dist/vega/{p-f3f7d059.entry.js → p-f543e911.entry.js} +1 -1
- package/dist/vega/{p-65d8c2bc.js → p-f5ac60f5.js} +1 -1
- package/dist/vega/{p-bdaf1143.entry.js → p-f7b5833d.entry.js} +1 -1
- package/dist/vega/p-fc02a67a.js +1 -0
- package/dist/vega/{p-a33c6652.entry.js → p-fcb5b40f.entry.js} +1 -1
- package/dist/vega/{p-aed3320d.js → p-fda6f8bc.js} +1 -1
- package/dist/vega/{p-e5196440.entry.js → p-fe1512f9.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/vega/p-0604563a.entry.js +0 -1
- package/dist/vega/p-3a7e897b.entry.js +0 -1
- package/dist/vega/p-51297b96.js +0 -1
- package/dist/vega/p-51a4dc20.entry.js +0 -1
- package/dist/vega/p-53e9595f.js +0 -1
- package/dist/vega/p-6ec338b0.entry.js +0 -1
- package/dist/vega/p-76818196.entry.js +0 -1
- package/dist/vega/p-79a0a06c.js +0 -1
- package/dist/vega/p-9481c073.entry.js +0 -1
- package/dist/vega/p-b8d7d4a9.js +0 -1
- package/dist/vega/p-f8e0e4f0.entry.js +0 -1
|
@@ -9,16 +9,18 @@ import { C as ComponentLoadRequired } from './component-load-required-db42032a.j
|
|
|
9
9
|
import { c as MapToComponentField, V as VegaSlimmer, M as MapToComponentMethod, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
10
10
|
import { s as slotPlaceholder } from './placeholder-bf562081.js';
|
|
11
11
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-a84cc93e.js';
|
|
12
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
12
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-f0982f11.js';
|
|
13
13
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-b5cb9b81.js';
|
|
14
14
|
import { f as VegaChange, A as VegaFocus, B as VegaBlur, s as VegaLabelButtonClick } from './dom-node-subject-factory-6374611f.js';
|
|
15
15
|
import { b as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-ca83d6b6.js';
|
|
16
16
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
17
|
-
import { S as StringFormatStrategy, a as
|
|
17
|
+
import { S as StringFormatStrategy, a as StringMaskStrategy, b as StringInputFormatterSlimmer } from './string-input-formatter-slimmer-09478e0d.js';
|
|
18
18
|
import { i as isNonNullable } from './type-guard-84b1f192.js';
|
|
19
|
+
import { F as FeatureFlag } from './feature-flag-controller-51659753.js';
|
|
20
|
+
import { C as CARDS_INFO } from './card-config-d2ad484e.js';
|
|
19
21
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-c345ca2e.js';
|
|
20
22
|
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-0bf7fbf3.js';
|
|
21
|
-
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-
|
|
23
|
+
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-53eec5fb.js';
|
|
22
24
|
import { i as isArrayEqual } from './array-7888f339.js';
|
|
23
25
|
import { d as deepEqual } from './object-261e7344.js';
|
|
24
26
|
import './number-4398f2e1.js';
|
|
@@ -27,18 +29,20 @@ import './observer-3959f9dd.js';
|
|
|
27
29
|
import './ui-7d177fb0.js';
|
|
28
30
|
import './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
|
|
29
31
|
import './dynamic-slimmer-90b8af32.js';
|
|
30
|
-
import './vega-internal-event-id-
|
|
32
|
+
import './vega-internal-event-id-4072659b.js';
|
|
31
33
|
import './translation-a6eacb5f.js';
|
|
32
34
|
import './mutation-observer-slimmer-58ebc13c.js';
|
|
33
35
|
import './mutation-observer-filters-1a054fb0.js';
|
|
34
36
|
import './internal-vega-event-manager-d80c53c5.js';
|
|
35
37
|
import './try-get-document-bef0f526.js';
|
|
36
|
-
import './index-
|
|
38
|
+
import './index-fb3b74bd.js';
|
|
37
39
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
38
40
|
import './breakpoints-d9faf11c.js';
|
|
39
41
|
import './ui-8424715a.js';
|
|
40
42
|
import './regex-dfe11abf.js';
|
|
41
43
|
import './typography-396de03f.js';
|
|
44
|
+
import './index-e9da316f.js';
|
|
45
|
+
import './_commonjsHelpers-9943807e.js';
|
|
42
46
|
|
|
43
47
|
/**
|
|
44
48
|
* This email regex from https://stackoverflow.com/a/201378
|
|
@@ -461,6 +465,173 @@ class NumberThousandCommaStrategy extends NumberMaskStrategy {
|
|
|
461
465
|
}
|
|
462
466
|
}
|
|
463
467
|
|
|
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
|
+
|
|
464
635
|
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
465
636
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
466
637
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -496,6 +667,17 @@ class VegaInputMaskConfigController extends StringInputFormatterSlimmer {
|
|
|
496
667
|
return this.generateMaskStrategy('blur');
|
|
497
668
|
};
|
|
498
669
|
}
|
|
670
|
+
/**
|
|
671
|
+
* Detect value change and initialize mask formatting
|
|
672
|
+
*
|
|
673
|
+
* @param {string} newValue The new value
|
|
674
|
+
* @param {string} oldValue The new value
|
|
675
|
+
*/
|
|
676
|
+
watchValue(newValue, oldValue) {
|
|
677
|
+
if (newValue !== oldValue) {
|
|
678
|
+
this.formatValueAfterValueChange();
|
|
679
|
+
}
|
|
680
|
+
}
|
|
499
681
|
/**
|
|
500
682
|
* The function `setupStringFormatter` sets up a string formatter for an input element based on provided mask configurations.
|
|
501
683
|
*
|
|
@@ -551,6 +733,12 @@ class VegaInputMaskConfigController extends StringInputFormatterSlimmer {
|
|
|
551
733
|
case 'number':
|
|
552
734
|
stringFormatStrategy = this.getNumberTypeMaskStrategy(maskConfig.options);
|
|
553
735
|
break;
|
|
736
|
+
case 'credit-card':
|
|
737
|
+
stringFormatStrategy =
|
|
738
|
+
maskTrigger === 'input'
|
|
739
|
+
? new CreditCardInputMaskStrategy()
|
|
740
|
+
: new CreditCardBlurMaskStrategy(maskConfig.hideCardNumberOnBlur);
|
|
741
|
+
break;
|
|
554
742
|
case 'custom':
|
|
555
743
|
stringFormatStrategy = new StringMaskStrategy(maskConfig.options);
|
|
556
744
|
break;
|
|
@@ -585,7 +773,8 @@ class VegaInputMaskConfigController extends StringInputFormatterSlimmer {
|
|
|
585
773
|
* 'custom' and a trigger of 'blur'.
|
|
586
774
|
*/
|
|
587
775
|
isBlurModeMaskConfig(maskConfig) {
|
|
588
|
-
return maskConfig.type === 'custom'
|
|
776
|
+
return ((maskConfig.type === 'custom' || maskConfig.type === 'credit-card') &&
|
|
777
|
+
maskConfig.trigger === 'blur');
|
|
589
778
|
}
|
|
590
779
|
}
|
|
591
780
|
__decorate$3([
|
|
@@ -597,6 +786,9 @@ __decorate$3([
|
|
|
597
786
|
__decorate$3([
|
|
598
787
|
MapToComponentField()
|
|
599
788
|
], VegaInputMaskConfigController.prototype, "type", void 0);
|
|
789
|
+
__decorate$3([
|
|
790
|
+
MapToComponentMethod('watchValue')
|
|
791
|
+
], VegaInputMaskConfigController.prototype, "watchValue", null);
|
|
600
792
|
|
|
601
793
|
const VegaInputRuntimeMetricsPayloadDefinition = [
|
|
602
794
|
{
|
|
@@ -54,4 +54,4 @@ const VegaInternalColumnHeadRowRenderInputRIC = new VegaInternalEventID('tableHe
|
|
|
54
54
|
const VegaInternalColumnHeadCellRenderInputRIC = new VegaInternalEventID('tableHeadCellRenderInputRIC');
|
|
55
55
|
const VegaInternalColumnBodyCellRenderInputRIC = new VegaInternalEventID('tableCellRenderInputRIC');
|
|
56
56
|
|
|
57
|
-
export { VegaInternalLeftNavLinkSelected as A, VegaInternalInitializeLeftNavLinkSelected as B, VegaInternalTableRowExpand as C, VegaInternalTableRowSelect as D, VegaInternalTableRowSelectAll as E, VegaInternalColumnHeadRowRenderInputRIC as F, VegaInternalColumnHeadCellRenderInputRIC as G, VegaInternalColumnBodyCellRenderInputRIC as H, VegaInternalTableHeadCellSortEvent as I, VegaInternalComponentDidRender as V, VegaInternalRichTextEditorFlushChanges as a, VegaInternalRichTextEditorSelectionRangeChange as b, VegaInternalFieldErrorStateChange as c, VegaInternalValid as d, VegaInternalSubStatePush as e, VegaInternalSubStatePull as f, VegaInternalDropdownTemplateItemsChange as g,
|
|
57
|
+
export { VegaInternalLeftNavLinkSelected as A, VegaInternalInitializeLeftNavLinkSelected as B, VegaInternalTableRowExpand as C, VegaInternalTableRowSelect as D, VegaInternalTableRowSelectAll as E, VegaInternalColumnHeadRowRenderInputRIC as F, VegaInternalColumnHeadCellRenderInputRIC as G, VegaInternalColumnBodyCellRenderInputRIC as H, VegaInternalTableHeadCellSortEvent as I, VegaInternalComponentDidRender as V, VegaInternalRichTextEditorFlushChanges as a, VegaInternalRichTextEditorSelectionRangeChange as b, VegaInternalFieldErrorStateChange as c, VegaInternalValid as d, VegaInternalSubStatePush as e, VegaInternalSubStatePull as f, VegaInternalDropdownTemplateItemsChange as g, VegaInternalVirtualScrollToBottom as h, VegaInputSelectRenderPrefixIconInternalOverridden as i, VegaInternalPasteEvent as j, VegaInternalPaginationPageSizeChange as k, VegaInternalPaginationCurrentChange as l, VegaDropdownRenderItemInternalOverridden as m, VegaDropdownSearchInternalOverridden as n, VegaInternalCodeBlockSelectionChange as o, VegaInternalDropdownUpdateTarget as p, VegaInternalNestEAHierarchyTreeChange as q, VegaInternalPopoverUpdateTarget as r, VegaInternalButtonGroupClick as s, VegaInternalCalendarMonthEventsChange as t, VegaInternalSidenavLinkClick as u, VegaInternalRichTextEditDeleteSelectedNodes as v, VegaInternalRichTextImageClick as w, VegaInternalRichTextImageDeleteButtonClicked as x, VegaInternalLeftNavLinkClick as y, VegaInternalLeftNavGroupExpand as z };
|
|
@@ -12,19 +12,19 @@ import { c as createEventEmitSlimmer } from './event-emit-slimmer-b5cb9b81.js';
|
|
|
12
12
|
import { H as VegaStateUpdate, d as domNodeSubjectFactory, I as VegaGroupClick, J as VegaMenuClick, a as VegaClick, K as VegaActionClick } from './dom-node-subject-factory-6374611f.js';
|
|
13
13
|
import { C as ComponentGlobalStyleSlimmer } from './component-global-style-slimmer-dad40b64.js';
|
|
14
14
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-c345ca2e.js';
|
|
15
|
-
import { y as VegaInternalLeftNavLinkClick, z as VegaInternalLeftNavGroupExpand, A as VegaInternalLeftNavLinkSelected, B as VegaInternalInitializeLeftNavLinkSelected } from './vega-internal-event-id-
|
|
16
|
-
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-
|
|
15
|
+
import { y as VegaInternalLeftNavLinkClick, z as VegaInternalLeftNavGroupExpand, A as VegaInternalLeftNavLinkSelected, B as VegaInternalInitializeLeftNavLinkSelected } from './vega-internal-event-id-4072659b.js';
|
|
16
|
+
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-0a6c3cbb.js';
|
|
17
17
|
import { B as BrandSwitchControllerSlimmer } from './brand-switch-state-controller-slimmer-05c85e6d.js';
|
|
18
18
|
import { V as VegaInternalThemeManager } from './dark-mode-style-controller-ea798fc8.js';
|
|
19
19
|
import { c as chevronUp } from './chevron-up-b1989751.js';
|
|
20
20
|
import { c as chevronDown } from './chevron-down-4a75d28e.js';
|
|
21
21
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
22
22
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
23
|
-
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-
|
|
23
|
+
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-53eec5fb.js';
|
|
24
24
|
import { f as findParent } from './ui-7d177fb0.js';
|
|
25
25
|
import { L as LEFT_NAV_LINK_SELECTED_TOPIC } from './static-subject-title-ca83d6b6.js';
|
|
26
26
|
import { c as createDeprecatedPropertySlimmer } from './deprecated-property-slimmer-32575f02.js';
|
|
27
|
-
import { f as formatAndValidResponsiveToken } from './design-token-
|
|
27
|
+
import { f as formatAndValidResponsiveToken } from './design-token-23522f5c.js';
|
|
28
28
|
import './ui-8424715a.js';
|
|
29
29
|
import './breakpoints-d9faf11c.js';
|
|
30
30
|
import './try-get-document-bef0f526.js';
|
|
@@ -39,14 +39,14 @@ import './object-261e7344.js';
|
|
|
39
39
|
import './type-guard-84b1f192.js';
|
|
40
40
|
import './regex-dfe11abf.js';
|
|
41
41
|
import './typography-396de03f.js';
|
|
42
|
-
import './responsive-format-facade-
|
|
42
|
+
import './responsive-format-facade-d2632288.js';
|
|
43
43
|
import './pixel-f32c07ce.js';
|
|
44
44
|
import './array-7888f339.js';
|
|
45
45
|
import './vega-env-manager-8f8dc473.js';
|
|
46
46
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
47
47
|
import './translation-a6eacb5f.js';
|
|
48
|
-
import './content-state-
|
|
49
|
-
import './code-block-
|
|
48
|
+
import './content-state-a43e703e.js';
|
|
49
|
+
import './code-block-7bd4cb87.js';
|
|
50
50
|
import './state-background-color-formatter-da5e76e8.js';
|
|
51
51
|
|
|
52
52
|
var __decorate$n = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -4,7 +4,7 @@ import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlim
|
|
|
4
4
|
import { I as InternalVegaZIndexManager } from './vega-skeleton-loader-controller-3f6faa17.js';
|
|
5
5
|
import { s as sanitizeVegaComponent } from './component-7d906393.js';
|
|
6
6
|
import { a as arrayToClassString } from './ui-7d177fb0.js';
|
|
7
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
7
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-d2632288.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';
|
|
@@ -29,9 +29,9 @@ import './index-e9da316f.js';
|
|
|
29
29
|
import './icon-manager-2ee1c619.js';
|
|
30
30
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
31
31
|
import './translation-a6eacb5f.js';
|
|
32
|
-
import './content-state-
|
|
33
|
-
import './code-block-
|
|
34
|
-
import './vega-internal-event-id-
|
|
32
|
+
import './content-state-a43e703e.js';
|
|
33
|
+
import './code-block-7bd4cb87.js';
|
|
34
|
+
import './vega-internal-event-id-4072659b.js';
|
|
35
35
|
import './try-get-document-bef0f526.js';
|
|
36
36
|
|
|
37
37
|
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -7,7 +7,7 @@ import { w as VegaFormSubmit, B as VegaBlur, a as VegaClick, d as domNodeSubject
|
|
|
7
7
|
import { n as normalizeNumberByRanger, c as convertToNumber } from './number-4398f2e1.js';
|
|
8
8
|
import { f as findParent } from './ui-7d177fb0.js';
|
|
9
9
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
10
|
-
import { l as VegaInternalPaginationCurrentChange } from './vega-internal-event-id-
|
|
10
|
+
import { l as VegaInternalPaginationCurrentChange } from './vega-internal-event-id-4072659b.js';
|
|
11
11
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-b59a578e.js';
|
|
12
12
|
import './observer-3959f9dd.js';
|
|
13
13
|
import './internal-vega-event-manager-d80c53c5.js';
|
|
@@ -8,7 +8,7 @@ import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-
|
|
|
8
8
|
import { b as VegaDropdownClick, d as domNodeSubjectFactory } from './dom-node-subject-factory-6374611f.js';
|
|
9
9
|
import { f as findParent } from './ui-7d177fb0.js';
|
|
10
10
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
11
|
-
import { k as VegaInternalPaginationPageSizeChange } from './vega-internal-event-id-
|
|
11
|
+
import { k as VegaInternalPaginationPageSizeChange } from './vega-internal-event-id-4072659b.js';
|
|
12
12
|
import './static-subject-title-ca83d6b6.js';
|
|
13
13
|
import './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
|
|
14
14
|
import './dynamic-slimmer-90b8af32.js';
|
|
@@ -9,16 +9,16 @@ import { c as createEventEmitSlimmer } from './event-emit-slimmer-b5cb9b81.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-f28e4708.js';
|
|
12
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
12
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-d2632288.js';
|
|
13
13
|
import { P as PageResizeObserverSlimmer, g as getCurrentBreakpoint } from './page-resize-observer-slimmer-0bf7fbf3.js';
|
|
14
|
-
import { k as VegaInternalPaginationPageSizeChange, l as VegaInternalPaginationCurrentChange } from './vega-internal-event-id-
|
|
14
|
+
import { k as VegaInternalPaginationPageSizeChange, l as VegaInternalPaginationCurrentChange } from './vega-internal-event-id-4072659b.js';
|
|
15
15
|
import './vega-env-manager-8f8dc473.js';
|
|
16
16
|
import './vega-skeleton-loader-controller-3f6faa17.js';
|
|
17
17
|
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-a6eacb5f.js';
|
|
21
|
-
import './content-state-
|
|
21
|
+
import './content-state-a43e703e.js';
|
|
22
22
|
import './change-manager-6a7eb88c.js';
|
|
23
23
|
import './observer-3959f9dd.js';
|
|
24
24
|
import './internal-vega-event-manager-d80c53c5.js';
|
|
@@ -36,7 +36,7 @@ import './dark-mode-style-controller-ea798fc8.js';
|
|
|
36
36
|
import './static-subject-title-ca83d6b6.js';
|
|
37
37
|
import './_commonjsHelpers-9943807e.js';
|
|
38
38
|
import './index-e9da316f.js';
|
|
39
|
-
import './code-block-
|
|
39
|
+
import './code-block-7bd4cb87.js';
|
|
40
40
|
|
|
41
41
|
const VegaPaginationCurrentPageLabel = ({ pageSize, current, total, translationSlimmer, }) => {
|
|
42
42
|
const rangeFrom = total > 0 ? pageSize * (current - 1) + 1 : 0;
|
|
@@ -5,9 +5,9 @@ import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer,
|
|
|
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-b5cb9b81.js';
|
|
7
7
|
import { d as domNodeSubjectFactory, M as VegaPopoverShow, N as VegaPopoverHide } from './dom-node-subject-factory-6374611f.js';
|
|
8
|
-
import { E as ElementAppenderSlimmer } from './element-appender-slimmer-
|
|
8
|
+
import { E as ElementAppenderSlimmer } from './element-appender-slimmer-042df95a.js';
|
|
9
9
|
import { r as remoteInvocationRegistry } from './remote-invocation-registry-d69245c2.js';
|
|
10
|
-
import { r as VegaInternalPopoverUpdateTarget } from './vega-internal-event-id-
|
|
10
|
+
import { r as VegaInternalPopoverUpdateTarget } from './vega-internal-event-id-4072659b.js';
|
|
11
11
|
import './keyboard-manager-3ffe81b0.js';
|
|
12
12
|
import './ui-7d177fb0.js';
|
|
13
13
|
import './type-guard-84b1f192.js';
|
|
@@ -28,7 +28,7 @@ import './dark-mode-style-controller-ea798fc8.js';
|
|
|
28
28
|
import './static-subject-title-ca83d6b6.js';
|
|
29
29
|
import './_commonjsHelpers-9943807e.js';
|
|
30
30
|
import './number-4398f2e1.js';
|
|
31
|
-
import './responsive-format-facade-
|
|
31
|
+
import './responsive-format-facade-d2632288.js';
|
|
32
32
|
import './pixel-f32c07ce.js';
|
|
33
33
|
import './array-7888f339.js';
|
|
34
34
|
import './vega-env-manager-8f8dc473.js';
|
|
@@ -37,8 +37,8 @@ import './index-e9da316f.js';
|
|
|
37
37
|
import './icon-manager-2ee1c619.js';
|
|
38
38
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
39
39
|
import './translation-a6eacb5f.js';
|
|
40
|
-
import './content-state-
|
|
41
|
-
import './code-block-
|
|
40
|
+
import './content-state-a43e703e.js';
|
|
41
|
+
import './code-block-7bd4cb87.js';
|
|
42
42
|
|
|
43
43
|
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
44
44
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -9,10 +9,10 @@ import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer,
|
|
|
9
9
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-a84cc93e.js';
|
|
10
10
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-b5cb9b81.js';
|
|
11
11
|
import { d as domNodeSubjectFactory, f as VegaChange, A as VegaFocus, B as VegaBlur } from './dom-node-subject-factory-6374611f.js';
|
|
12
|
-
import { c as VegaInternalFieldErrorStateChange } from './vega-internal-event-id-
|
|
12
|
+
import { c as VegaInternalFieldErrorStateChange } from './vega-internal-event-id-4072659b.js';
|
|
13
13
|
import { R as RequiredFieldRule } from './required-field-rule-ab4bdc47.js';
|
|
14
14
|
import { C as ComponentLoadRequired } from './component-load-required-db42032a.js';
|
|
15
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
15
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-f0982f11.js';
|
|
16
16
|
import { C as ChildNodesNotifyObserverSlimmer } from './child-nodes-notify-observer-slimmer-eeed5986.js';
|
|
17
17
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-b59a578e.js';
|
|
18
18
|
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-751e98f5.js';
|
|
@@ -31,7 +31,7 @@ import './ui-8424715a.js';
|
|
|
31
31
|
import './breakpoints-d9faf11c.js';
|
|
32
32
|
import './array-7888f339.js';
|
|
33
33
|
import './number-4398f2e1.js';
|
|
34
|
-
import './sub-state-observer-slimmer-
|
|
34
|
+
import './sub-state-observer-slimmer-53eec5fb.js';
|
|
35
35
|
import './vega-env-manager-8f8dc473.js';
|
|
36
36
|
import './feature-flag-controller-51659753.js';
|
|
37
37
|
import './index-e9da316f.js';
|
|
@@ -3,19 +3,19 @@ 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-ea798fc8.js';
|
|
6
|
-
import { T as TextNodeRenderingRegistry, I as ImageAnnotationAction, a as TextColorToolbarButtonSlimmer } from './image-annotation-action-
|
|
7
|
-
import { w as stateEntityRenderingRegistry, x as BlockAnnotation, y as NodeAnnotation, N as NodeAnnotationTypeEnum, Z as ZERO_WIDTH_SPACE, z as InternalAnnotationTypeEnum, L as LinkAnnotationAction, d as RTETextBlock, C as ImageAnnotation, M as ModifyContentAction, f as ModifyContentActionType, U as UpdateCodeBlockAction, D as SelectionChangeAction, u as RTECodeBlock } from './code-block-
|
|
6
|
+
import { T as TextNodeRenderingRegistry, I as ImageAnnotationAction, a as TextColorToolbarButtonSlimmer } from './image-annotation-action-1e88f5a0.js';
|
|
7
|
+
import { w as stateEntityRenderingRegistry, x as BlockAnnotation, y as NodeAnnotation, N as NodeAnnotationTypeEnum, Z as ZERO_WIDTH_SPACE, z as InternalAnnotationTypeEnum, L as LinkAnnotationAction, d as RTETextBlock, C as ImageAnnotation, M as ModifyContentAction, f as ModifyContentActionType, U as UpdateCodeBlockAction, D as SelectionChangeAction, u as RTECodeBlock } from './code-block-7bd4cb87.js';
|
|
8
8
|
import { i as isNonNullable } from './type-guard-84b1f192.js';
|
|
9
9
|
import { g as generateUUID } from './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
|
|
10
10
|
import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0fab.js';
|
|
11
11
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-c345ca2e.js';
|
|
12
12
|
import { f as VegaChange, k as VegaRemove } from './dom-node-subject-factory-6374611f.js';
|
|
13
|
-
import { R as RTEImageBlock, b as RTEListBlock, V as VegaRTEContent } from './content-state-
|
|
14
|
-
import { o as VegaInternalCodeBlockSelectionChange } from './vega-internal-event-id-
|
|
13
|
+
import { R as RTEImageBlock, b as RTEListBlock, V as VegaRTEContent } from './content-state-a43e703e.js';
|
|
14
|
+
import { o as VegaInternalCodeBlockSelectionChange } from './vega-internal-event-id-4072659b.js';
|
|
15
15
|
import { t as tryGetDocument } from './try-get-document-bef0f526.js';
|
|
16
|
-
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-
|
|
16
|
+
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-53eec5fb.js';
|
|
17
17
|
import { f as findParent } from './ui-7d177fb0.js';
|
|
18
|
-
import { a as waitForComponentDidRender } from './index-
|
|
18
|
+
import { a as waitForComponentDidRender } from './index-fb3b74bd.js';
|
|
19
19
|
import './static-subject-title-ca83d6b6.js';
|
|
20
20
|
import './change-manager-6a7eb88c.js';
|
|
21
21
|
import './observer-3959f9dd.js';
|
|
@@ -5,25 +5,25 @@ import { s as sanitizeVegaComponent } from './component-7d906393.js';
|
|
|
5
5
|
import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0fab.js';
|
|
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-6374611f.js';
|
|
8
|
-
import { V as VegaInternalComponentDidRender, a as VegaInternalRichTextEditorFlushChanges, v as VegaInternalRichTextEditDeleteSelectedNodes, w as VegaInternalRichTextImageClick, x as VegaInternalRichTextImageDeleteButtonClicked, r as VegaInternalPopoverUpdateTarget } from './vega-internal-event-id-
|
|
9
|
-
import { b as ToolbarButtonSlimmer, I as ImageAnnotationAction, T as TextNodeRenderingRegistry, a as TextColorToolbarButtonSlimmer } from './image-annotation-action-
|
|
8
|
+
import { V as VegaInternalComponentDidRender, a as VegaInternalRichTextEditorFlushChanges, v as VegaInternalRichTextEditDeleteSelectedNodes, w as VegaInternalRichTextImageClick, x as VegaInternalRichTextImageDeleteButtonClicked, r as VegaInternalPopoverUpdateTarget } from './vega-internal-event-id-4072659b.js';
|
|
9
|
+
import { b as ToolbarButtonSlimmer, I as ImageAnnotationAction, T as TextNodeRenderingRegistry, a as TextColorToolbarButtonSlimmer } from './image-annotation-action-1e88f5a0.js';
|
|
10
10
|
import { V as VegaInternalIconManager } from './internal-icon-manager-7eac52c8.js';
|
|
11
|
-
import { g as RTETextNode, J as BoldAnnotationAction, N as NodeAnnotationTypeEnum, G as RTECodeBlockNode, T as TextSplittableAction, K as ItalicAnnotation, O as UnderlineAnnotation, d as RTETextBlock, P as TextStyleAnnotationAction, Q as TextStyleAnnotation, V as BoldAnnotation, W as BlockAnnotationTypeEnum, X as ClearFormattingAnnotationAction, Y as CodeAnnotationAction, _ as StrikethroughAnnotation, D as SelectionChangeAction, L as LinkAnnotationAction, H as AnnotationAction, $ as IndentAnnotation, a as RTEImageNode, M as ModifyContentAction, f as ModifyContentActionType, a0 as HorizontalAlignmentAnnotation, c as AppendChildNodesAction, Z as ZERO_WIDTH_SPACE, a1 as UpdateTextAction, a2 as MergeTwoBlocksNodesAction, S as SplitBlockWithNodeAction, R as RemoveChildAction, b as ReplaceChildNodesAction, e as InsertBlocksBeforeAction, F as RTE_TEXT_COLORS, u as RTECodeBlock, I as InsertBlocksAfterAction, w as stateEntityRenderingRegistry } from './code-block-
|
|
11
|
+
import { g as RTETextNode, J as BoldAnnotationAction, N as NodeAnnotationTypeEnum, G as RTECodeBlockNode, T as TextSplittableAction, K as ItalicAnnotation, O as UnderlineAnnotation, d as RTETextBlock, P as TextStyleAnnotationAction, Q as TextStyleAnnotation, V as BoldAnnotation, W as BlockAnnotationTypeEnum, X as ClearFormattingAnnotationAction, Y as CodeAnnotationAction, _ as StrikethroughAnnotation, D as SelectionChangeAction, L as LinkAnnotationAction, H as AnnotationAction, $ as IndentAnnotation, a as RTEImageNode, M as ModifyContentAction, f as ModifyContentActionType, a0 as HorizontalAlignmentAnnotation, c as AppendChildNodesAction, Z as ZERO_WIDTH_SPACE, a1 as UpdateTextAction, a2 as MergeTwoBlocksNodesAction, S as SplitBlockWithNodeAction, R as RemoveChildAction, b as ReplaceChildNodesAction, e as InsertBlocksBeforeAction, F as RTE_TEXT_COLORS, u as RTECodeBlock, I as InsertBlocksAfterAction, w as stateEntityRenderingRegistry } from './code-block-7bd4cb87.js';
|
|
12
12
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-c345ca2e.js';
|
|
13
13
|
import { g as generateUUID } from './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
|
|
14
|
-
import { a as waitForComponentDidRender } from './index-
|
|
15
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
14
|
+
import { a as waitForComponentDidRender } from './index-fb3b74bd.js';
|
|
15
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-f0982f11.js';
|
|
16
16
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-b5cb9b81.js';
|
|
17
|
-
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-
|
|
18
|
-
import { a as RTEListItemBlock, V as VegaRTEContent, B as BreakSingleBlockAction, b as RTEListBlock, R as RTEImageBlock } from './content-state-
|
|
19
|
-
import { R as RTESelectionState, C as ComponentValueHistoryControllerSlimmer, A as AutoRunWhenReRenderTaskQueueSlimmer, a as SelectionController } from './component-value-history-controller-slimmer.abstract-
|
|
17
|
+
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-0a6c3cbb.js';
|
|
18
|
+
import { a as RTEListItemBlock, V as VegaRTEContent, B as BreakSingleBlockAction, b as RTEListBlock, R as RTEImageBlock } from './content-state-a43e703e.js';
|
|
19
|
+
import { R as RTESelectionState, C as ComponentValueHistoryControllerSlimmer, A as AutoRunWhenReRenderTaskQueueSlimmer, a as SelectionController } from './component-value-history-controller-slimmer.abstract-41c58caf.js';
|
|
20
20
|
import { b as FORM_ELEMENT_VALUE_CHANGE, D as DARK_MODE_CHANGE } from './static-subject-title-ca83d6b6.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-f1c2c299.js';
|
|
24
24
|
import { i as isNonNullable } from './type-guard-84b1f192.js';
|
|
25
25
|
import { r as rgbToHex, f as findParent } from './ui-7d177fb0.js';
|
|
26
|
-
import { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-
|
|
26
|
+
import { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-69d5f035.js';
|
|
27
27
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-b59a578e.js';
|
|
28
28
|
import { T as TranslationSlimmer } from './translation-slimmer-f28e4708.js';
|
|
29
29
|
import { V as VegaInternalThemeManager } from './dark-mode-style-controller-ea798fc8.js';
|
|
@@ -44,7 +44,7 @@ import './mutation-observer-slimmer-58ebc13c.js';
|
|
|
44
44
|
import './mutation-observer-filters-1a054fb0.js';
|
|
45
45
|
import './array-7888f339.js';
|
|
46
46
|
import './number-4398f2e1.js';
|
|
47
|
-
import './sub-state-observer-slimmer-
|
|
47
|
+
import './sub-state-observer-slimmer-53eec5fb.js';
|
|
48
48
|
import './internal-vega-event-manager-d80c53c5.js';
|
|
49
49
|
import './synchronize-task-queue-ac8acc3b.js';
|
|
50
50
|
import './keyboard-manager-slimmer-751e98f5.js';
|
|
@@ -2,12 +2,12 @@ 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-d2632288.js';
|
|
6
6
|
import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0fab.js';
|
|
7
|
-
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-
|
|
7
|
+
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-53eec5fb.js';
|
|
8
8
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
9
9
|
import { d as domNodeSubjectFactory, f as VegaChange } from './dom-node-subject-factory-6374611f.js';
|
|
10
|
-
import { c as VegaInternalFieldErrorStateChange } from './vega-internal-event-id-
|
|
10
|
+
import { c as VegaInternalFieldErrorStateChange } from './vega-internal-event-id-4072659b.js';
|
|
11
11
|
import { f as findParent } from './ui-7d177fb0.js';
|
|
12
12
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
13
13
|
import { P as PageResizeObserverSlimmer, g as getCurrentBreakpoint } from './page-resize-observer-slimmer-0bf7fbf3.js';
|
|
@@ -16,9 +16,9 @@ import { b as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-ca83d6b6.
|
|
|
16
16
|
import { M as MutationObserverSlimmer } from './mutation-observer-slimmer-58ebc13c.js';
|
|
17
17
|
import { a as TagNameAndAttributeMutationFilter } from './mutation-observer-filters-1a054fb0.js';
|
|
18
18
|
import { i as isArrayEqual } from './array-7888f339.js';
|
|
19
|
-
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-
|
|
19
|
+
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-0a6c3cbb.js';
|
|
20
20
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-b59a578e.js';
|
|
21
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
21
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-f0982f11.js';
|
|
22
22
|
import { R as RequiredFieldRule } from './required-field-rule-ab4bdc47.js';
|
|
23
23
|
import './type-guard-84b1f192.js';
|
|
24
24
|
import './breakpoints-d9faf11c.js';
|
|
@@ -39,8 +39,8 @@ import './index-e9da316f.js';
|
|
|
39
39
|
import './icon-manager-2ee1c619.js';
|
|
40
40
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
41
41
|
import './translation-a6eacb5f.js';
|
|
42
|
-
import './content-state-
|
|
43
|
-
import './code-block-
|
|
42
|
+
import './content-state-a43e703e.js';
|
|
43
|
+
import './code-block-7bd4cb87.js';
|
|
44
44
|
import './try-get-document-bef0f526.js';
|
|
45
45
|
import './dom-node-subject-observer-factory-c345ca2e.js';
|
|
46
46
|
import './string-be824360.js';
|