@globalpayments/vega 2.37.0 → 2.37.2
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-7980768c.js → app-globals-7087f121.js} +4 -4
- package/dist/cjs/{content-state-9a9a4bd8.js → content-state-f97d3278.js} +2 -2
- package/dist/cjs/{form-field-controller-slimmer-0303f4a7.js → form-field-controller-slimmer-48c0ad0b.js} +1 -1
- package/dist/cjs/{image-annotation-action-8e622f61.js → image-annotation-action-7d82f7e1.js} +2 -2
- package/dist/cjs/{index-7c81de06.js → index-0546e2ea.js} +1 -1
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/loader.cjs.js +6 -6
- package/dist/cjs/{node-annotation.abstract-2c8373c1.js → node-annotation.abstract-4f6df9cf.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-396b1cee.js → string-input-formatter-slimmer-f45931fd.js} +113 -34
- package/dist/cjs/{sub-state-notify-slimmer-ae490543.js → sub-state-notify-slimmer-b1f1e61a.js} +1 -1
- package/dist/cjs/{sub-state-observer-slimmer-080731bc.js → sub-state-observer-slimmer-02634647.js} +1 -1
- package/dist/cjs/vega-app-footer.cjs.entry.js +3 -0
- package/dist/cjs/vega-button-group_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-button-link.cjs.entry.js +1 -0
- package/dist/cjs/vega-calendar_3.cjs.entry.js +3 -3
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +11 -4
- package/dist/cjs/vega-color-picker.cjs.entry.js +2 -2
- package/dist/cjs/vega-combo-box.cjs.entry.js +2 -2
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +3 -3
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-file-uploader.cjs.entry.js +2 -2
- package/dist/cjs/vega-form.cjs.entry.js +2 -2
- package/dist/cjs/vega-image-uploader.cjs.entry.js +3 -2
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +2 -2
- package/dist/cjs/vega-input-numeric.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +5 -2
- package/dist/cjs/vega-input-range.cjs.entry.js +2 -2
- package/dist/cjs/vega-input-select.cjs.entry.js +2 -2
- package/dist/cjs/vega-input.cjs.entry.js +10 -8
- package/dist/cjs/{vega-internal-event-id-b12071ea.js → vega-internal-event-id-bda63e14.js} +2 -0
- package/dist/cjs/vega-item-toggle.cjs.entry.js +2 -0
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +6 -4
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +54 -1
- package/dist/cjs/vega-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-radio_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +6 -6
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +681 -413
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +3 -3
- package/dist/cjs/vega-signature-capture.cjs.entry.js +3 -2
- package/dist/cjs/{vega-skeleton-loader-controller-ef43cfc1.js → vega-skeleton-loader-controller-00dbdf29.js} +11 -3
- package/dist/cjs/vega-stepper.cjs.entry.js +2 -2
- package/dist/cjs/vega-table_8.cjs.entry.js +10 -7
- package/dist/cjs/vega-textarea.cjs.entry.js +2 -2
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/vega.cjs.js +6 -6
- package/dist/collection/components/vega-app-footer/vega-app-footer.js +12 -0
- package/dist/collection/components/vega-button-link/vega-button-link.js +4 -0
- package/dist/collection/components/vega-checkbox/vega-checkbox.js +9 -1
- package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +4 -0
- package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +12 -0
- package/dist/collection/components/vega-input-select/vega-input-select.js +1 -1
- package/dist/collection/components/vega-item-toggle/vega-item-toggle.js +8 -0
- package/dist/collection/components/vega-loader-wrapper/slimmers/controllers/manage-vega-loader-wrapper-z-index-controller.js +49 -0
- package/dist/collection/components/vega-loader-wrapper/vega-loader-wrapper.js +5 -0
- package/dist/collection/components/vega-nav/vega-left-nav-link/vega-left-nav-link.js +7 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/delete-selected-nodes-controller.js +190 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/base-handler.js +18 -123
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/delete-content-handler.js +9 -11
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-line-break-handler.js +8 -18
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-text-handler.js +5 -4
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/insert-composition-text-controller.js +244 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +13 -5
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/user-input-controller.js +16 -70
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +22 -14
- package/dist/collection/components/vega-signature-capture/vega-signature-capture.js +4 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-editable-controller.js +2 -3
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-renderer.js +5 -1
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
- package/dist/collection/helpers/formatter/string-formatter/custom-formatter-strategy.js +3 -1
- package/dist/collection/helpers/formatter/string-formatter/number-mask-strategy.js +3 -1
- package/dist/collection/helpers/formatter/string-formatter/string-format-strategy.abstract.js +52 -0
- package/dist/collection/helpers/formatter/string-formatter/string-mask-strategy.js +6 -7
- package/dist/collection/helpers/formatter/string-formatter/thousand-comma-strategy.js +2 -1
- package/dist/collection/helpers/formatter/test/string-formatter/custom-formatter-strategy.test.js +2 -1
- package/dist/collection/helpers/formatter/test/string-formatter/number-mask-strategy.test.js +9 -0
- package/dist/collection/helpers/formatter/test/string-formatter/string-mask-strategy.test.js +62 -4
- package/dist/collection/helpers/loading-indicator/tests/vega-loader-controller.test.js +29 -2
- package/dist/collection/helpers/loading-indicator/vega-loader-controller.js +11 -3
- package/dist/collection/helpers/slimmers/string-input-formatter-slimmer.js +53 -25
- package/dist/collection/helpers/slimmers/test/string-input-formatter-slimmer.test.js +2 -1
- package/dist/esm/{app-globals-6912a75d.js → app-globals-4cca4a96.js} +4 -4
- package/dist/esm/{content-state-c2d29b35.js → content-state-ccf5f960.js} +3 -3
- package/dist/esm/{form-field-controller-slimmer-7136b7fa.js → form-field-controller-slimmer-3535e76a.js} +1 -1
- package/dist/esm/{image-annotation-action-84422458.js → image-annotation-action-3da42221.js} +2 -2
- package/dist/esm/{index-b2045ad0.js → index-6e05b241.js} +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{node-annotation.abstract-a58b5a49.js → node-annotation.abstract-b2e36bc4.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-0ecbf367.js → string-input-formatter-slimmer-d4132497.js} +113 -35
- package/dist/esm/{sub-state-notify-slimmer-4a201088.js → sub-state-notify-slimmer-51151fc3.js} +1 -1
- package/dist/esm/{sub-state-observer-slimmer-0d6da563.js → sub-state-observer-slimmer-d77a1c46.js} +1 -1
- package/dist/esm/vega-app-footer.entry.js +3 -0
- package/dist/esm/vega-button-group_2.entry.js +3 -3
- package/dist/esm/vega-button-link.entry.js +1 -0
- package/dist/esm/vega-calendar_3.entry.js +3 -3
- package/dist/esm/vega-checkbox_2.entry.js +11 -4
- package/dist/esm/vega-color-picker.entry.js +2 -2
- package/dist/esm/vega-combo-box.entry.js +2 -2
- package/dist/esm/vega-date-picker_2.entry.js +6 -6
- package/dist/esm/vega-dropdown_5.entry.js +3 -3
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-file-uploader.entry.js +2 -2
- package/dist/esm/vega-form.entry.js +2 -2
- package/dist/esm/vega-image-uploader.entry.js +3 -2
- package/dist/esm/vega-input-credit-card.entry.js +2 -2
- package/dist/esm/vega-input-numeric.entry.js +3 -3
- package/dist/esm/vega-input-phone-number.entry.js +5 -2
- package/dist/esm/vega-input-range.entry.js +2 -2
- package/dist/esm/vega-input-select.entry.js +2 -2
- package/dist/esm/vega-input.entry.js +10 -8
- package/dist/esm/{vega-internal-event-id-458939b6.js → vega-internal-event-id-d0690d0d.js} +2 -1
- package/dist/esm/vega-item-toggle.entry.js +2 -0
- package/dist/esm/vega-left-nav_5.entry.js +6 -4
- package/dist/esm/vega-loader-wrapper_2.entry.js +55 -2
- package/dist/esm/vega-popover_2.entry.js +1 -1
- package/dist/esm/vega-radio_2.entry.js +2 -2
- package/dist/esm/vega-rich-text-content.entry.js +6 -6
- package/dist/esm/vega-rich-text-editor_4.entry.js +681 -413
- package/dist/esm/vega-selection-chip_2.entry.js +4 -4
- package/dist/esm/vega-selection-tile_2.entry.js +4 -4
- package/dist/esm/vega-sidenav_3.entry.js +3 -3
- package/dist/esm/vega-signature-capture.entry.js +3 -2
- package/dist/esm/{vega-skeleton-loader-controller-0044d77f.js → vega-skeleton-loader-controller-5aea7aeb.js} +11 -3
- package/dist/esm/vega-stepper.entry.js +2 -2
- package/dist/esm/vega-table_8.entry.js +10 -7
- package/dist/esm/vega-textarea.entry.js +2 -2
- package/dist/esm/vega-time-picker_2.entry.js +2 -2
- package/dist/esm/vega-toggle-switch.entry.js +2 -2
- package/dist/esm/vega.js +6 -6
- package/dist/types/components/vega-app-footer/vega-app-footer.d.ts +3 -0
- package/dist/types/components/vega-button-link/vega-button-link.d.ts +1 -0
- package/dist/types/components/vega-checkbox/vega-checkbox.d.ts +2 -0
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-format-controller.d.ts +1 -1
- package/dist/types/components/vega-image-uploader/vega-image-uploader.d.ts +1 -0
- package/dist/types/components/vega-input/slimmers/controllers/vega-input-mask-config-controller.d.ts +1 -1
- package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +3 -0
- package/dist/types/components/vega-input-select/types.d.ts +1 -0
- package/dist/types/components/vega-item-toggle/vega-item-toggle.d.ts +2 -0
- package/dist/types/components/vega-loader-wrapper/slimmers/controllers/manage-vega-loader-wrapper-z-index-controller.d.ts +21 -0
- package/dist/types/components/vega-loader-wrapper/vega-loader-wrapper.d.ts +2 -0
- package/dist/types/components/vega-nav/vega-left-nav-link/vega-left-nav-link.d.ts +3 -1
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/delete-selected-nodes-controller.d.ts +57 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/base-handler.d.ts +11 -28
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/delete-content-handler.d.ts +4 -4
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-line-break-handler.d.ts +1 -8
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/insert-composition-text-controller.d.ts +99 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/user-input-controller.d.ts +2 -21
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +7 -2
- package/dist/types/components/vega-signature-capture/vega-signature-capture.d.ts +1 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-renderer.d.ts +1 -0
- package/dist/types/components.d.ts +31 -5
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
- package/dist/types/helpers/formatter/string-formatter/custom-formatter-strategy.d.ts +3 -3
- package/dist/types/helpers/formatter/string-formatter/number-mask-strategy.d.ts +2 -2
- package/dist/types/helpers/formatter/string-formatter/string-format-strategy.abstract.d.ts +48 -0
- package/dist/types/helpers/formatter/string-formatter/string-mask-strategy.d.ts +6 -10
- package/dist/types/helpers/formatter/string-formatter/thousand-comma-strategy.d.ts +2 -2
- package/dist/types/helpers/loading-indicator/vega-loader-controller.d.ts +1 -0
- package/dist/types/helpers/slimmers/string-input-formatter-slimmer.d.ts +20 -4
- package/dist/types/types/components.type.d.ts +1 -5
- package/dist/types/types/public-api.d.ts +2 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-2d36dbfe.js → p-0461e318.js} +1 -1
- package/dist/vega/{p-1f67c930.entry.js → p-12fe63c1.entry.js} +1 -1
- package/dist/vega/{p-29dd376c.entry.js → p-1b67c443.entry.js} +1 -1
- package/dist/vega/{p-5f82eb88.js → p-1d93b3a9.js} +1 -1
- package/dist/vega/p-20326c64.js +1 -0
- package/dist/vega/{p-fbb91e25.entry.js → p-23fd9401.entry.js} +1 -1
- package/dist/vega/{p-5d7d0085.entry.js → p-267cde46.entry.js} +1 -1
- package/dist/vega/{p-ca239f51.js → p-29d6ec6c.js} +1 -1
- package/dist/vega/{p-d57920df.entry.js → p-2fecbcf9.entry.js} +1 -1
- package/dist/vega/{p-fe9644a0.js → p-348e95ba.js} +1 -1
- package/dist/vega/{p-00de36e4.js → p-34bd9204.js} +1 -1
- package/dist/vega/{p-3aec260c.entry.js → p-3cb90bdf.entry.js} +1 -1
- package/dist/vega/{p-fcab2244.entry.js → p-3e8f9fcf.entry.js} +1 -1
- package/dist/vega/{p-233e6715.entry.js → p-497f2f86.entry.js} +1 -1
- package/dist/vega/p-50eabdca.entry.js +1 -0
- package/dist/vega/{p-503ff1ef.js → p-52a8a4f8.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-766a0cdd.entry.js → p-6419e13e.entry.js} +1 -1
- package/dist/vega/{p-b2b41aa4.entry.js → p-7198d675.entry.js} +1 -1
- package/dist/vega/p-76a8ccbb.js +1 -0
- package/dist/vega/{p-00f4cf6a.entry.js → p-7baa4fae.entry.js} +1 -1
- package/dist/vega/p-7edcb8d0.entry.js +1 -0
- package/dist/vega/{p-bbea0599.entry.js → p-904b489a.entry.js} +1 -1
- package/dist/vega/{p-fea15767.entry.js → p-9689ad99.entry.js} +1 -1
- package/dist/vega/p-9728d571.entry.js +1 -0
- package/dist/vega/{p-95e50f3a.entry.js → p-a2a34239.entry.js} +1 -1
- package/dist/vega/{p-b1096431.entry.js → p-a7e078ac.entry.js} +1 -1
- package/dist/vega/{p-eb798062.entry.js → p-a7f40a65.entry.js} +1 -1
- package/dist/vega/{p-7fedfba5.js → p-a8b16ff2.js} +1 -1
- package/dist/vega/{p-9625162b.entry.js → p-aed80794.entry.js} +1 -1
- package/dist/vega/{p-7da8b05f.js → p-b517ed15.js} +1 -1
- package/dist/vega/{p-b6b4e40f.entry.js → p-b809f3d7.entry.js} +1 -1
- package/dist/vega/{p-0b9480a9.entry.js → p-b9a0f136.entry.js} +1 -1
- package/dist/vega/{p-5a19bcb5.entry.js → p-ba077ca8.entry.js} +1 -1
- package/dist/vega/{p-53360bc2.entry.js → p-ba2833c0.entry.js} +1 -1
- package/dist/vega/{p-13c22d72.entry.js → p-bf4996d5.entry.js} +1 -1
- package/dist/vega/{p-570bdeb5.entry.js → p-cb4fd6e1.entry.js} +1 -1
- package/dist/vega/p-e4ce559d.entry.js +1 -0
- package/dist/vega/{p-cfd486ab.entry.js → p-e9785742.entry.js} +1 -1
- package/dist/vega/p-e9a5bd12.entry.js +1 -0
- package/dist/vega/p-ecaf4cfa.entry.js +1 -0
- package/dist/vega/{p-fb5c2cc6.entry.js → p-ee2e4bff.entry.js} +1 -1
- package/dist/vega/{p-8f8ab0d3.js → p-f86ec91b.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/types/helpers/formatter/string-formatter/string-format-strategy.d.ts +0 -12
- package/dist/vega/p-34caa637.entry.js +0 -1
- package/dist/vega/p-497db801.entry.js +0 -1
- package/dist/vega/p-4c18ff36.js +0 -1
- package/dist/vega/p-6705ce8f.entry.js +0 -1
- package/dist/vega/p-775fa5dd.entry.js +0 -1
- package/dist/vega/p-98043367.entry.js +0 -1
- package/dist/vega/p-a98475a2.entry.js +0 -1
- package/dist/vega/p-c2ded423.js +0 -1
|
@@ -2,21 +2,74 @@ import { i as isNonNullable } from './type-guard-158f6d7a.js';
|
|
|
2
2
|
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
3
3
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
4
4
|
import { d as domNodeSubjectFactory } from './dom-node-subject-factory-97deb349.js';
|
|
5
|
-
import { a as VegaInternalComponentDidRender } from './vega-internal-event-id-
|
|
6
|
-
import { a as waitForComponentDidRender } from './index-
|
|
5
|
+
import { a as VegaInternalComponentDidRender } from './vega-internal-event-id-d0690d0d.js';
|
|
6
|
+
import { a as waitForComponentDidRender } from './index-6e05b241.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* String format strategy abstract class
|
|
10
|
+
*/
|
|
11
|
+
class StringFormatStrategy {
|
|
12
|
+
/**
|
|
13
|
+
* Check if the {@link format} should be applied
|
|
14
|
+
*
|
|
15
|
+
* @param {FormatTrigger} triggeredBy - The trigger of the format
|
|
16
|
+
* @param {FormatTarget} target - The target of the format
|
|
17
|
+
* @param {InputStatus} inputStatus - The status of the input
|
|
18
|
+
* @returns {boolean} - Whether the format should be applied
|
|
19
|
+
*/
|
|
20
|
+
canFormat(triggeredBy, target, inputStatus) {
|
|
21
|
+
if (triggeredBy === 'init') {
|
|
22
|
+
if (target === 'component' && isNonNullable(inputStatus === null || inputStatus === void 0 ? void 0 : inputStatus.isBlurred)) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
if (this.shouldTriggerAtInit()) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
if (triggeredBy === 'input' && target === 'native-input') {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
if (triggeredBy === 'blur' && (inputStatus === null || inputStatus === void 0 ? void 0 : inputStatus.isBlurred)) {
|
|
33
|
+
if (target === 'component' && this.shouldOverrideComponentValueAfterBlur()) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
if (target === 'native-input') {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Determines whether a component value should be overridden based on the mask configuration.
|
|
44
|
+
*
|
|
45
|
+
* @returns {boolean} - Whether the component value should be overridden.
|
|
46
|
+
*/
|
|
47
|
+
shouldOverrideComponentValueAfterBlur() {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Determines whether the format should be triggered at init.
|
|
52
|
+
*
|
|
53
|
+
* @returns {boolean} - Whether the format should be triggered at init.
|
|
54
|
+
*/
|
|
55
|
+
shouldTriggerAtInit() {
|
|
56
|
+
return false; // TODO: trigger at init feature is not implemented to all strategies. To keep the same behavior as before so set false here as default.
|
|
57
|
+
}
|
|
58
|
+
}
|
|
7
59
|
|
|
8
60
|
/**
|
|
9
61
|
* A class for formatting string with the given mask format
|
|
10
62
|
*
|
|
11
63
|
* @augments StringFormatStrategy
|
|
12
64
|
*/
|
|
13
|
-
class StringMaskStrategy {
|
|
65
|
+
class StringMaskStrategy extends StringFormatStrategy {
|
|
14
66
|
/**
|
|
15
67
|
* It creates a new instance of the Mask class.
|
|
16
68
|
*
|
|
17
69
|
* @param {MaskConfig} maskConfig - MaskConfig
|
|
18
70
|
*/
|
|
19
71
|
constructor(maskConfig) {
|
|
72
|
+
super();
|
|
20
73
|
/**
|
|
21
74
|
* The insert mode means adding some special character in the input string, will replace part of input string if insertMode set to false.
|
|
22
75
|
*
|
|
@@ -35,13 +88,10 @@ class StringMaskStrategy {
|
|
|
35
88
|
this.insertMode = maskConfig.insertMode === false ? false : true;
|
|
36
89
|
}
|
|
37
90
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* @param {string} input - The input string that needs to be formatted.
|
|
41
|
-
* @param {number} caretPosition - The current position of caret
|
|
42
|
-
* @returns {string} The formatted string.
|
|
91
|
+
* @inheritDoc
|
|
43
92
|
*/
|
|
44
|
-
format(input,
|
|
93
|
+
format(input, inputStatus) {
|
|
94
|
+
const caretPosition = inputStatus === null || inputStatus === void 0 ? void 0 : inputStatus.caretPosition;
|
|
45
95
|
if (input.length > this.getLengthLimit() && isNonNullable(caretPosition)) {
|
|
46
96
|
const rawValueArr = [...input];
|
|
47
97
|
const exceededLength = input.length - this.getLengthLimit();
|
|
@@ -191,7 +241,7 @@ class StringInputFormatterSlimmer extends VegaSlimmer {
|
|
|
191
241
|
}
|
|
192
242
|
};
|
|
193
243
|
/**
|
|
194
|
-
* A function
|
|
244
|
+
* A function updates the value of the input element by inputFormatStrategy output.
|
|
195
245
|
*
|
|
196
246
|
* @param {InputEvent} e - blur event
|
|
197
247
|
*/
|
|
@@ -199,17 +249,11 @@ class StringInputFormatterSlimmer extends VegaSlimmer {
|
|
|
199
249
|
if (this.blurFormatStrategy) {
|
|
200
250
|
const target = e.target;
|
|
201
251
|
const rawValue = target.value;
|
|
202
|
-
|
|
203
|
-
this.updateInputValue(rawValue, maskedValue);
|
|
204
|
-
if (this.host &&
|
|
205
|
-
this.blurFormatStrategy.shouldOverrideComponentValueAfterBlur &&
|
|
206
|
-
this.blurFormatStrategy.shouldOverrideComponentValueAfterBlur()) {
|
|
207
|
-
this.host['value'] = maskedValue;
|
|
208
|
-
}
|
|
252
|
+
this.formatValue(rawValue, 'blur');
|
|
209
253
|
}
|
|
210
254
|
};
|
|
211
255
|
/**
|
|
212
|
-
* A function
|
|
256
|
+
* A function updates the value of the input element by inputFormatStrategy output.
|
|
213
257
|
*
|
|
214
258
|
* @param {InputEvent} e - input event
|
|
215
259
|
*/
|
|
@@ -218,11 +262,9 @@ class StringInputFormatterSlimmer extends VegaSlimmer {
|
|
|
218
262
|
const rawValue = target.value;
|
|
219
263
|
const caretPosition = target.selectionStart; // selectionStart is nullable, link https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-textarea/input-selectionstart
|
|
220
264
|
if (this.inputFormatStrategy) {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
e.inputType === 'insertFromPaste' ? null : caretPosition);
|
|
225
|
-
this.updateInputValue(rawValue, maskedValue);
|
|
265
|
+
this.formatValue(rawValue.replace(/\s/g, ''), 'input', {
|
|
266
|
+
caretPosition: e.inputType === 'insertFromPaste' ? undefined : caretPosition,
|
|
267
|
+
});
|
|
226
268
|
this.updateInputCaretPosition(rawValue, caretPosition);
|
|
227
269
|
}
|
|
228
270
|
};
|
|
@@ -284,22 +326,13 @@ class StringInputFormatterSlimmer extends VegaSlimmer {
|
|
|
284
326
|
*/
|
|
285
327
|
formatValueAfterSetup() {
|
|
286
328
|
void waitForComponentDidRender(this.host).then(() => {
|
|
287
|
-
|
|
288
|
-
const rawValue = this.inputElement.value;
|
|
289
|
-
if ((_b = (_a = this.inputFormatStrategy) === null || _a === void 0 ? void 0 : _a.shouldTriggerAtInit) === null || _b === void 0 ? void 0 : _b.call(_a)) {
|
|
290
|
-
this.host['value'] = this.inputFormatStrategy.format(rawValue);
|
|
291
|
-
}
|
|
292
|
-
if (((_d = (_c = this.blurFormatStrategy) === null || _c === void 0 ? void 0 : _c.shouldTriggerAtInit) === null || _d === void 0 ? void 0 : _d.call(_c)) && !this.isOnFocus()) {
|
|
293
|
-
const maskedValue = this.blurFormatStrategy.format(rawValue);
|
|
294
|
-
this.updateInputValue(rawValue, maskedValue);
|
|
295
|
-
}
|
|
329
|
+
this.formatValue(this.inputElement.value, 'init');
|
|
296
330
|
});
|
|
297
331
|
}
|
|
298
332
|
/*
|
|
299
333
|
* The below method is e2e-test covered in
|
|
300
334
|
* @see{module:vega-input-credit-card-dynamic-mask-e2e}
|
|
301
335
|
*/
|
|
302
|
-
/* istanbul ignore next */
|
|
303
336
|
/**
|
|
304
337
|
* The function `isOnFocus` checks if the input element is currently focused.
|
|
305
338
|
*
|
|
@@ -317,7 +350,7 @@ class StringInputFormatterSlimmer extends VegaSlimmer {
|
|
|
317
350
|
* @param {string} rawValue - the original value
|
|
318
351
|
* @param {string} maskedValue - masked value
|
|
319
352
|
*/
|
|
320
|
-
|
|
353
|
+
updateNativeInputValue(rawValue, maskedValue) {
|
|
321
354
|
// link: https://stackoverflow.com/questions/52003841/why-doesnt-event-target-value-include-and-e-for-number-inputs
|
|
322
355
|
// If the input value is '123.', '123' will be got from `target.value` when the input element type is number
|
|
323
356
|
// '123.' will be formatted to '123', then `this.inputElement.value = 123`, '.' will never be filled in
|
|
@@ -325,6 +358,17 @@ class StringInputFormatterSlimmer extends VegaSlimmer {
|
|
|
325
358
|
this.inputElement.value = maskedValue;
|
|
326
359
|
}
|
|
327
360
|
}
|
|
361
|
+
/**
|
|
362
|
+
* Update the host value
|
|
363
|
+
*
|
|
364
|
+
* @param {string} rawValue - the original value
|
|
365
|
+
* @param {string} maskedValue - the masked value
|
|
366
|
+
*/
|
|
367
|
+
updateComponentValue(rawValue, maskedValue) {
|
|
368
|
+
if (maskedValue !== rawValue) {
|
|
369
|
+
this.host['value'] = maskedValue;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
328
372
|
/**
|
|
329
373
|
* Updated the input caret position after the mask format
|
|
330
374
|
*
|
|
@@ -338,6 +382,40 @@ class StringInputFormatterSlimmer extends VegaSlimmer {
|
|
|
338
382
|
this.inputElement.setSelectionRange(newCaretPosition, newCaretPosition);
|
|
339
383
|
}
|
|
340
384
|
}
|
|
385
|
+
/**
|
|
386
|
+
* Format the value based on the input and blur format strategies.
|
|
387
|
+
*
|
|
388
|
+
* @param {string} rawValue - The original input value
|
|
389
|
+
* @param {FormatTrigger} triggeredBy - The trigger of the format
|
|
390
|
+
* @param {{ caretPosition?: number }} options - The options for the format
|
|
391
|
+
* @param {number} options.caretPosition - The current input caret position
|
|
392
|
+
*/
|
|
393
|
+
formatValue(rawValue, triggeredBy, options) {
|
|
394
|
+
const isBlurred = !this.isOnFocus();
|
|
395
|
+
const caretPosition = options === null || options === void 0 ? void 0 : options.caretPosition;
|
|
396
|
+
if (this.inputFormatStrategy) {
|
|
397
|
+
if (this.inputFormatStrategy.canFormat(triggeredBy, 'component')) {
|
|
398
|
+
const formattedComponentValue = this.inputFormatStrategy.format(rawValue);
|
|
399
|
+
this.updateComponentValue(rawValue, formattedComponentValue);
|
|
400
|
+
}
|
|
401
|
+
if (this.inputFormatStrategy.canFormat(triggeredBy, 'native-input')) {
|
|
402
|
+
const formattedNativeInputValue = this.inputFormatStrategy.format(rawValue, {
|
|
403
|
+
caretPosition: caretPosition,
|
|
404
|
+
});
|
|
405
|
+
this.updateNativeInputValue(rawValue, formattedNativeInputValue);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
if (this.blurFormatStrategy && isBlurred) {
|
|
409
|
+
if (this.blurFormatStrategy.canFormat(triggeredBy, 'component', { isBlurred })) {
|
|
410
|
+
const formattedComponentValue = this.blurFormatStrategy.format(rawValue);
|
|
411
|
+
this.updateComponentValue(rawValue, formattedComponentValue);
|
|
412
|
+
}
|
|
413
|
+
if (this.blurFormatStrategy.canFormat(triggeredBy, 'native-input', { isBlurred })) {
|
|
414
|
+
const formattedNativeInputValue = this.blurFormatStrategy.format(rawValue);
|
|
415
|
+
this.updateNativeInputValue(rawValue, formattedNativeInputValue);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
341
419
|
}
|
|
342
420
|
__decorate([
|
|
343
421
|
MapToComponentField()
|
|
@@ -346,4 +424,4 @@ __decorate([
|
|
|
346
424
|
MapToComponentMethod('componentDidRender')
|
|
347
425
|
], StringInputFormatterSlimmer.prototype, "componentDidRender", null);
|
|
348
426
|
|
|
349
|
-
export {
|
|
427
|
+
export { StringFormatStrategy as S, StringInputFormatterSlimmer as a, StringMaskStrategy as b };
|
package/dist/esm/{sub-state-notify-slimmer-4a201088.js → sub-state-notify-slimmer-51151fc3.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
|
2
2
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
3
3
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
4
4
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
5
|
-
import { h as VegaInternalSubStatePull, g as VegaInternalSubStatePush } from './vega-internal-event-id-
|
|
5
|
+
import { h as VegaInternalSubStatePull, g as VegaInternalSubStatePush } from './vega-internal-event-id-d0690d0d.js';
|
|
6
6
|
import { d as domNodeSubjectFactory } from './dom-node-subject-factory-97deb349.js';
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/esm/{sub-state-observer-slimmer-0d6da563.js → sub-state-observer-slimmer-d77a1c46.js}
RENAMED
|
@@ -3,7 +3,7 @@ import { O as Observer } from './observer-3959f9dd.js';
|
|
|
3
3
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
4
4
|
import { f as findParent } from './ui-62e4be97.js';
|
|
5
5
|
import { d as domNodeSubjectFactory } from './dom-node-subject-factory-97deb349.js';
|
|
6
|
-
import { g as VegaInternalSubStatePush, h as VegaInternalSubStatePull } from './vega-internal-event-id-
|
|
6
|
+
import { g as VegaInternalSubStatePush, h as VegaInternalSubStatePull } from './vega-internal-event-id-d0690d0d.js';
|
|
7
7
|
|
|
8
8
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9
9
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -34,6 +34,7 @@ const VegaAppFooter = class {
|
|
|
34
34
|
* with a reference to the current year.
|
|
35
35
|
*
|
|
36
36
|
* @vegaVersion 1.15.0
|
|
37
|
+
* @defaultValue © {{currentYear}} Heartland Payment Systems, LLC – a Global Payments company. All rights reserved.
|
|
37
38
|
*/
|
|
38
39
|
this.content = `© ${new Date().getFullYear()} Heartland Payment Systems, LLC – a Global Payments company. All rights reserved.`;
|
|
39
40
|
/**
|
|
@@ -48,6 +49,7 @@ const VegaAppFooter = class {
|
|
|
48
49
|
* in the app footer should navigate to when clicked.
|
|
49
50
|
*
|
|
50
51
|
* @vegaVersion 1.15.0
|
|
52
|
+
* @defaultValue https://www.heartland.us/terms
|
|
51
53
|
*/
|
|
52
54
|
this.termOfUseUrl = HEARTLAND_TOS_URL;
|
|
53
55
|
/**
|
|
@@ -71,6 +73,7 @@ const VegaAppFooter = class {
|
|
|
71
73
|
* navigate to when clicked.
|
|
72
74
|
*
|
|
73
75
|
* @vegaVersion 1.15.0
|
|
76
|
+
* @defaultValue https://www.heartland.us/privacy-policy
|
|
74
77
|
*/
|
|
75
78
|
this.privacyPolicyUrl = HEARTLAND_PRIVACY_URL;
|
|
76
79
|
/**
|
|
@@ -2,13 +2,13 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
|
|
|
2
2
|
import { s as sanitizeVegaComponent } from './component-cae24190.js';
|
|
3
3
|
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
4
4
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-385c7124.js';
|
|
5
|
-
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-
|
|
5
|
+
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-51151fc3.js';
|
|
6
6
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-36cf4e39.js';
|
|
7
7
|
import { a as VegaClick, b as VegaDropdownClick, d as domNodeSubjectFactory } from './dom-node-subject-factory-97deb349.js';
|
|
8
8
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-3220fa5b.js';
|
|
9
9
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-857c65fa.js';
|
|
10
|
-
import { m as VegaInternalButtonGroupClick } from './vega-internal-event-id-
|
|
11
|
-
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-
|
|
10
|
+
import { m as VegaInternalButtonGroupClick } from './vega-internal-event-id-d0690d0d.js';
|
|
11
|
+
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-d77a1c46.js';
|
|
12
12
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
13
13
|
import { f as findParent } from './ui-62e4be97.js';
|
|
14
14
|
import './dynamic-slimmer-90b8af32.js';
|
|
@@ -8,19 +8,19 @@ import { V as VegaInternalIconManager } from './internal-icon-manager-900a5bb4.j
|
|
|
8
8
|
import { p as pad } from './date-732bc749.js';
|
|
9
9
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-36cf4e39.js';
|
|
10
10
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-3220fa5b.js';
|
|
11
|
-
import { n as VegaInternalCalendarMonthEventsChange } from './vega-internal-event-id-
|
|
11
|
+
import { n as VegaInternalCalendarMonthEventsChange } from './vega-internal-event-id-d0690d0d.js';
|
|
12
12
|
import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0fab.js';
|
|
13
13
|
import { f as flatNestedArray } from './array-b668466e.js';
|
|
14
14
|
import { g as generateUUID } from './create-public-api-runtime-metrics-slimmer-9ab05523.js';
|
|
15
15
|
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-beb7b0bd.js';
|
|
16
16
|
import { d as debounce } from './timer-9321173b.js';
|
|
17
17
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
18
|
-
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-
|
|
18
|
+
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-51151fc3.js';
|
|
19
19
|
import { T as TranslationSlimmer } from './translation-slimmer-7974f30b.js';
|
|
20
20
|
import { s as slotPlaceholder } from './placeholder-bf562081.js';
|
|
21
21
|
import { q as isBackgroundColorTokenType } from './type-guard-158f6d7a.js';
|
|
22
22
|
import { s as stateBackgroundColorFormatter } from './state-background-color-formatter-121ae7d3.js';
|
|
23
|
-
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-
|
|
23
|
+
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-d77a1c46.js';
|
|
24
24
|
import { b as parsePixelStringToNumber } from './pixel-f32c07ce.js';
|
|
25
25
|
import './observer-3959f9dd.js';
|
|
26
26
|
import './ui-62e4be97.js';
|
|
@@ -7,14 +7,14 @@ import { O as Observer } from './observer-3959f9dd.js';
|
|
|
7
7
|
import { f as findParent } from './ui-62e4be97.js';
|
|
8
8
|
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
9
9
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-385c7124.js';
|
|
10
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
10
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-3535e76a.js';
|
|
11
11
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-36cf4e39.js';
|
|
12
12
|
import { d as domNodeSubjectFactory, f as VegaChange } from './dom-node-subject-factory-97deb349.js';
|
|
13
|
-
import { c as VegaInternalFieldErrorStateChange } from './vega-internal-event-id-
|
|
13
|
+
import { c as VegaInternalFieldErrorStateChange } from './vega-internal-event-id-d0690d0d.js';
|
|
14
|
+
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-3220fa5b.js';
|
|
14
15
|
import { R as RequiredFieldRule } from './required-field-rule-368b31fa.js';
|
|
15
16
|
import { C as ComponentLoadRequired } from './component-load-required-ce710ef5.js';
|
|
16
17
|
import { C as ChildNodesNotifyObserverSlimmer } from './child-nodes-notify-observer-slimmer-36024b11.js';
|
|
17
|
-
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-3220fa5b.js';
|
|
18
18
|
import './string-be824360.js';
|
|
19
19
|
import './create-public-api-runtime-metrics-slimmer-9ab05523.js';
|
|
20
20
|
import './dynamic-slimmer-90b8af32.js';
|
|
@@ -185,6 +185,11 @@ const VegaCheckbox = class {
|
|
|
185
185
|
touchableAreaGetter: () => [this.inputRef],
|
|
186
186
|
});
|
|
187
187
|
this.changeEventEmitter = createEventEmitSlimmer(VegaCheckbox, VegaChange);
|
|
188
|
+
this.dropdownEventPrevent = new ChildNodesEventPreventSlimmer([VegaChange], () => this.host, {
|
|
189
|
+
customPreventHandle: (e) => {
|
|
190
|
+
e.stopPropagation();
|
|
191
|
+
},
|
|
192
|
+
});
|
|
188
193
|
this.vegaComponentUsageRuntimeMetricsSlimmer = new VegaComponentUsageRuntimeMetricsSlimmer();
|
|
189
194
|
/**
|
|
190
195
|
* Indicates whether the parent checkbox group is disabled.
|
|
@@ -261,7 +266,6 @@ const VegaCheckbox = class {
|
|
|
261
266
|
/* istanbul ignore next */
|
|
262
267
|
this.onCheckBoxChange = (e) => {
|
|
263
268
|
this.checked = e.currentTarget.checked;
|
|
264
|
-
e.stopPropagation();
|
|
265
269
|
};
|
|
266
270
|
this.onSelectedIconClick = (e) => {
|
|
267
271
|
e.stopPropagation();
|
|
@@ -387,6 +391,9 @@ __decorate$1([
|
|
|
387
391
|
__decorate$1([
|
|
388
392
|
InjectVegaSlimmer()
|
|
389
393
|
], VegaCheckbox.prototype, "changeEventEmitter", void 0);
|
|
394
|
+
__decorate$1([
|
|
395
|
+
InjectVegaSlimmer()
|
|
396
|
+
], VegaCheckbox.prototype, "dropdownEventPrevent", void 0);
|
|
390
397
|
__decorate$1([
|
|
391
398
|
InjectVegaSlimmer()
|
|
392
399
|
], VegaCheckbox.prototype, "vegaComponentUsageRuntimeMetricsSlimmer", void 0);
|
|
@@ -3,7 +3,7 @@ import { R as RequiredFieldRule } from './required-field-rule-368b31fa.js';
|
|
|
3
3
|
import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0fab.js';
|
|
4
4
|
import { s as sanitizeVegaComponent } from './component-cae24190.js';
|
|
5
5
|
import { a as arrayToClassString, h as hexToRGB, b as getHexFromShorthand } from './ui-62e4be97.js';
|
|
6
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
6
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-3535e76a.js';
|
|
7
7
|
import { I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
8
8
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-385c7124.js';
|
|
9
9
|
import { b as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-8268945e.js';
|
|
@@ -14,7 +14,7 @@ import './string-be824360.js';
|
|
|
14
14
|
import './observer-3959f9dd.js';
|
|
15
15
|
import './create-public-api-runtime-metrics-slimmer-9ab05523.js';
|
|
16
16
|
import './dynamic-slimmer-90b8af32.js';
|
|
17
|
-
import './vega-internal-event-id-
|
|
17
|
+
import './vega-internal-event-id-d0690d0d.js';
|
|
18
18
|
import './translation-c08f2274.js';
|
|
19
19
|
import './page-resize-observer-slimmer-beb7b0bd.js';
|
|
20
20
|
import './breakpoints-91116111.js';
|
|
@@ -4,7 +4,7 @@ import { g as getActiveElement, s as sanitizeVegaComponent } from './component-c
|
|
|
4
4
|
import { N as isArrayOfType, O as isDropdownSourceItemType } from './type-guard-158f6d7a.js';
|
|
5
5
|
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
6
6
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-385c7124.js';
|
|
7
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
7
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-3535e76a.js';
|
|
8
8
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-3220fa5b.js';
|
|
9
9
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-36cf4e39.js';
|
|
10
10
|
import { k as VegaCreate, n as VegaDropdownHide, b as VegaDropdownClick, c as VegaClose, f as VegaChange, l as VegaSearch } from './dom-node-subject-factory-97deb349.js';
|
|
@@ -12,7 +12,7 @@ import { b as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-8268945e.
|
|
|
12
12
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
13
13
|
import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0fab.js';
|
|
14
14
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-857c65fa.js';
|
|
15
|
-
import { e as VegaInternalDropdownTemplateItemsChange } from './vega-internal-event-id-
|
|
15
|
+
import { e as VegaInternalDropdownTemplateItemsChange } from './vega-internal-event-id-d0690d0d.js';
|
|
16
16
|
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-f80d6835.js';
|
|
17
17
|
import { f as findParent } from './ui-62e4be97.js';
|
|
18
18
|
import { M as MutationObserverSlimmer } from './mutation-observer-slimmer-6cef9549.js';
|
|
@@ -3,7 +3,7 @@ import { s as sanitizeVegaComponent } from './component-cae24190.js';
|
|
|
3
3
|
import { i as isDateStr, c as compareIsSameOrBefore, a as compareIsBefore, b as compareIsAfter } from './date-732bc749.js';
|
|
4
4
|
import { c as MapToComponentField, V as VegaSlimmer, M as MapToComponentMethod, L as LogUtility, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
5
5
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-385c7124.js';
|
|
6
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
6
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-3535e76a.js';
|
|
7
7
|
import { a as arrayToClassString, g as getDeviceType, D as DeviceType } from './ui-62e4be97.js';
|
|
8
8
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-857c65fa.js';
|
|
9
9
|
import { a as VegaClick, b as VegaDropdownClick, d as domNodeSubjectFactory, f as VegaChange } from './dom-node-subject-factory-97deb349.js';
|
|
@@ -14,15 +14,15 @@ import { c as createCommonjsModule } from './_commonjsHelpers-9943807e.js';
|
|
|
14
14
|
import { I as InternalVegaZIndexManager } from './internal-vega-z-index-manager-7d2b54c3.js';
|
|
15
15
|
import { b as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-8268945e.js';
|
|
16
16
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
17
|
-
import {
|
|
17
|
+
import { a as StringInputFormatterSlimmer, b as StringMaskStrategy } from './string-input-formatter-slimmer-d4132497.js';
|
|
18
18
|
import { E as ElementAppenderSlimmer } from './element-appender-slimmer-f5e703f3.js';
|
|
19
19
|
import './vega-env-manager-8f8dc473.js';
|
|
20
|
-
import './vega-skeleton-loader-controller-
|
|
20
|
+
import './vega-skeleton-loader-controller-5aea7aeb.js';
|
|
21
21
|
import { F as FeatureFlag } from './feature-flag-controller-4b3fe6f8.js';
|
|
22
|
-
import './node-annotation.abstract-
|
|
22
|
+
import './node-annotation.abstract-b2e36bc4.js';
|
|
23
23
|
import './vega-dialog-controller-34eb8967.js';
|
|
24
24
|
import './icon-manager-b889176b.js';
|
|
25
|
-
import './index-
|
|
25
|
+
import './index-6e05b241.js';
|
|
26
26
|
import './translation-c08f2274.js';
|
|
27
27
|
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-f80d6835.js';
|
|
28
28
|
import { C as ComponentLoadRequired } from './component-load-required-ce710ef5.js';
|
|
@@ -30,7 +30,7 @@ import { c as createEventEmitSlimmer } from './event-emit-slimmer-36cf4e39.js';
|
|
|
30
30
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-3220fa5b.js';
|
|
31
31
|
import { T as TranslationSlimmer } from './translation-slimmer-7974f30b.js';
|
|
32
32
|
import { r as remoteInvocationRegistry } from './remote-invocation-registry-1682b34e.js';
|
|
33
|
-
import { k as VegaInternalDropdownUpdateTarget } from './vega-internal-event-id-
|
|
33
|
+
import { k as VegaInternalDropdownUpdateTarget } from './vega-internal-event-id-d0690d0d.js';
|
|
34
34
|
import './string-be824360.js';
|
|
35
35
|
import './observer-3959f9dd.js';
|
|
36
36
|
import './create-public-api-runtime-metrics-slimmer-9ab05523.js';
|
|
@@ -11,9 +11,9 @@ import { f as VegaChange, d as domNodeSubjectFactory, m as VegaDropdownShow, n a
|
|
|
11
11
|
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-f80d6835.js';
|
|
12
12
|
import { E as ElementAppenderSlimmer } from './element-appender-slimmer-f5e703f3.js';
|
|
13
13
|
import { r as remoteInvocationRegistry } from './remote-invocation-registry-1682b34e.js';
|
|
14
|
-
import { k as VegaInternalDropdownUpdateTarget, e as VegaInternalDropdownTemplateItemsChange, j as VegaDropdownSearchInternalOverridden, i as VegaDropdownRenderItemInternalOverridden, f as VegaInternalVirtualScrollToBottom } from './vega-internal-event-id-
|
|
14
|
+
import { k as VegaInternalDropdownUpdateTarget, e as VegaInternalDropdownTemplateItemsChange, j as VegaDropdownSearchInternalOverridden, i as VegaDropdownRenderItemInternalOverridden, f as VegaInternalVirtualScrollToBottom } from './vega-internal-event-id-d0690d0d.js';
|
|
15
15
|
import { i as isArrayEqual } from './array-b668466e.js';
|
|
16
|
-
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-
|
|
16
|
+
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-51151fc3.js';
|
|
17
17
|
import { M as MutationObserverSlimmer } from './mutation-observer-slimmer-6cef9549.js';
|
|
18
18
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
19
19
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-36cf4e39.js';
|
|
@@ -21,7 +21,7 @@ import { C as ChildNodesNotifyObserverSlimmer } from './child-nodes-notify-obser
|
|
|
21
21
|
import { S as SHADOW_ROOT_ELEMENT_SCROLLING, l as DROPDOWN_ITEM_CLICK } from './static-subject-title-8268945e.js';
|
|
22
22
|
import { T as TranslationSlimmer } from './translation-slimmer-7974f30b.js';
|
|
23
23
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-3220fa5b.js';
|
|
24
|
-
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-
|
|
24
|
+
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-d77a1c46.js';
|
|
25
25
|
import './breakpoints-d9faf11c.js';
|
|
26
26
|
import './ui-8424715a.js';
|
|
27
27
|
import './regex-dfe11abf.js';
|
|
@@ -9,9 +9,9 @@ var FrameworkEnum;
|
|
|
9
9
|
/** The VegaEnvManager class manages vega environment parameters. */
|
|
10
10
|
class VegaEnvManager {
|
|
11
11
|
constructor() {
|
|
12
|
-
// The `2.37.
|
|
12
|
+
// The `2.37.2` will be replaced to a version string when running publish script.
|
|
13
13
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
14
|
-
this.vegaVersion = '2.37.
|
|
14
|
+
this.vegaVersion = '2.37.2';
|
|
15
15
|
this.framework = FrameworkEnum.VanillaJs;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
@@ -11,7 +11,7 @@ import { t as trashCan } from './trash-can-8819a939.js';
|
|
|
11
11
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-36cf4e39.js';
|
|
12
12
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
13
13
|
import { b as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-8268945e.js';
|
|
14
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
14
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-3535e76a.js';
|
|
15
15
|
import { R as RequiredFieldRule } from './required-field-rule-368b31fa.js';
|
|
16
16
|
import { T as TranslationSlimmer } from './translation-slimmer-7974f30b.js';
|
|
17
17
|
import './icon-manager-b889176b.js';
|
|
@@ -20,7 +20,7 @@ import './ui-62e4be97.js';
|
|
|
20
20
|
import './dynamic-slimmer-90b8af32.js';
|
|
21
21
|
import './internal-vega-event-manager-0a01ba12.js';
|
|
22
22
|
import './string-be824360.js';
|
|
23
|
-
import './vega-internal-event-id-
|
|
23
|
+
import './vega-internal-event-id-d0690d0d.js';
|
|
24
24
|
import './translation-c08f2274.js';
|
|
25
25
|
import './page-resize-observer-slimmer-beb7b0bd.js';
|
|
26
26
|
import './breakpoints-91116111.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-187f71d1.js';
|
|
2
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
2
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-3535e76a.js';
|
|
3
3
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
4
4
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
5
5
|
import { g as FORM_ELEMENT_VALIDATE, b as FORM_ELEMENT_VALUE_CHANGE, d as FORM_FIELD_ELEMENT_DISCONNECTED, c as FORM_FIELD_PENDING_VALID_CHANGE, e as FORM_RESET_OPERATION_TRIGGERED, F as FORM_SUBMIT, a as FORM_RESET } from './static-subject-title-8268945e.js';
|
|
@@ -13,7 +13,7 @@ import { c as createEventEmitSlimmer } from './event-emit-slimmer-36cf4e39.js';
|
|
|
13
13
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-3220fa5b.js';
|
|
14
14
|
import { v as VegaFormSubmit, w as VegaFormReset, x as VegaValidate, d as domNodeSubjectFactory } from './dom-node-subject-factory-97deb349.js';
|
|
15
15
|
import { C as ChildNodesNotifyObserverSlimmer } from './child-nodes-notify-observer-slimmer-36024b11.js';
|
|
16
|
-
import { d as VegaInternalValid } from './vega-internal-event-id-
|
|
16
|
+
import { d as VegaInternalValid } from './vega-internal-event-id-d0690d0d.js';
|
|
17
17
|
import './string-be824360.js';
|
|
18
18
|
import './create-public-api-runtime-metrics-slimmer-9ab05523.js';
|
|
19
19
|
import './dynamic-slimmer-90b8af32.js';
|
|
@@ -11,7 +11,7 @@ import { b as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-8268945e.
|
|
|
11
11
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
12
12
|
import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0fab.js';
|
|
13
13
|
import { V as VegaDialog } from './vega-dialog-controller-34eb8967.js';
|
|
14
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
14
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-3535e76a.js';
|
|
15
15
|
import { f as findParent, d as getDeepActiveElementInShadow } from './ui-62e4be97.js';
|
|
16
16
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-3220fa5b.js';
|
|
17
17
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-36cf4e39.js';
|
|
@@ -28,7 +28,7 @@ import './observer-3959f9dd.js';
|
|
|
28
28
|
import './create-public-api-runtime-metrics-slimmer-9ab05523.js';
|
|
29
29
|
import './dynamic-slimmer-90b8af32.js';
|
|
30
30
|
import './string-be824360.js';
|
|
31
|
-
import './vega-internal-event-id-
|
|
31
|
+
import './vega-internal-event-id-d0690d0d.js';
|
|
32
32
|
import './translation-c08f2274.js';
|
|
33
33
|
import './page-resize-observer-slimmer-beb7b0bd.js';
|
|
34
34
|
import './mutation-observer-slimmer-6cef9549.js';
|
|
@@ -766,6 +766,7 @@ const VegaImageUploader = class {
|
|
|
766
766
|
* Specifies the allowed file types for upload.
|
|
767
767
|
*
|
|
768
768
|
* @vegaVersion 1.14.0
|
|
769
|
+
* @defaultValue .jpg,.png,.jpeg
|
|
769
770
|
*/
|
|
770
771
|
this.accept = IMAGE_FILE_TYPES.map((type) => `.${type}`).join(',');
|
|
771
772
|
/**
|
|
@@ -6,7 +6,7 @@ import { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-
|
|
|
6
6
|
import { s as sanitizeVegaComponent } from './component-cae24190.js';
|
|
7
7
|
import { I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
8
8
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-385c7124.js';
|
|
9
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
9
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-3535e76a.js';
|
|
10
10
|
import { b as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-8268945e.js';
|
|
11
11
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
12
12
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-36cf4e39.js';
|
|
@@ -22,7 +22,7 @@ import './observer-3959f9dd.js';
|
|
|
22
22
|
import './ui-62e4be97.js';
|
|
23
23
|
import './create-public-api-runtime-metrics-slimmer-9ab05523.js';
|
|
24
24
|
import './dynamic-slimmer-90b8af32.js';
|
|
25
|
-
import './vega-internal-event-id-
|
|
25
|
+
import './vega-internal-event-id-d0690d0d.js';
|
|
26
26
|
import './translation-c08f2274.js';
|
|
27
27
|
import './page-resize-observer-slimmer-beb7b0bd.js';
|
|
28
28
|
import './breakpoints-91116111.js';
|
|
@@ -10,9 +10,9 @@ import { b as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-8268945e.
|
|
|
10
10
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
11
11
|
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-f80d6835.js';
|
|
12
12
|
import { c as convertToNumber, b as countDecimals } from './number-4398f2e1.js';
|
|
13
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
13
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-3535e76a.js';
|
|
14
14
|
import { R as RequiredFieldRule } from './required-field-rule-368b31fa.js';
|
|
15
|
-
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-
|
|
15
|
+
import { c as createSubStateNotifySlimmer } from './sub-state-notify-slimmer-51151fc3.js';
|
|
16
16
|
import './observer-3959f9dd.js';
|
|
17
17
|
import './ui-62e4be97.js';
|
|
18
18
|
import './internal-vega-event-manager-0a01ba12.js';
|
|
@@ -24,7 +24,7 @@ import './dynamic-slimmer-90b8af32.js';
|
|
|
24
24
|
import './keyboard-manager-4c898a0d.js';
|
|
25
25
|
import './string-be824360.js';
|
|
26
26
|
import './create-public-api-runtime-metrics-slimmer-9ab05523.js';
|
|
27
|
-
import './vega-internal-event-id-
|
|
27
|
+
import './vega-internal-event-id-d0690d0d.js';
|
|
28
28
|
import './translation-c08f2274.js';
|
|
29
29
|
import './page-resize-observer-slimmer-beb7b0bd.js';
|
|
30
30
|
import './breakpoints-91116111.js';
|
|
@@ -6,10 +6,10 @@ import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-
|
|
|
6
6
|
import { f as VegaChange, d as domNodeSubjectFactory, B as VegaCountryChange } from './dom-node-subject-factory-97deb349.js';
|
|
7
7
|
import { V as VegaInternalIconManager } from './internal-icon-manager-900a5bb4.js';
|
|
8
8
|
import { r as remoteInvocationRegistry } from './remote-invocation-registry-1682b34e.js';
|
|
9
|
-
import { i as VegaDropdownRenderItemInternalOverridden, j as VegaDropdownSearchInternalOverridden } from './vega-internal-event-id-
|
|
9
|
+
import { i as VegaDropdownRenderItemInternalOverridden, j as VegaDropdownSearchInternalOverridden } from './vega-internal-event-id-d0690d0d.js';
|
|
10
10
|
import { b as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-8268945e.js';
|
|
11
11
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
12
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
12
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-3535e76a.js';
|
|
13
13
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-36cf4e39.js';
|
|
14
14
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-3220fa5b.js';
|
|
15
15
|
import './observer-3959f9dd.js';
|
|
@@ -9154,6 +9154,7 @@ const VegaInputPhoneNumber = class {
|
|
|
9154
9154
|
* Specifies the default country calling code using the two-letter uppercase country code.
|
|
9155
9155
|
*
|
|
9156
9156
|
* @vegaVersion 2.18.0
|
|
9157
|
+
* @defaultValue US
|
|
9157
9158
|
*/
|
|
9158
9159
|
/* eslint-disable-next-line @stencil/strict-mutable */
|
|
9159
9160
|
this.countryCode = CountrySelectController.defaultCountryCode;
|
|
@@ -9163,6 +9164,7 @@ const VegaInputPhoneNumber = class {
|
|
|
9163
9164
|
* Note: By default, 245 codes are provided, but loading all of them may take time. To improve performance, it is recommended to include only the necessary codes.
|
|
9164
9165
|
*
|
|
9165
9166
|
* @vegaVersion 2.18.0
|
|
9167
|
+
* @defaultValue ['US', 'CN', ...]{@link VegaCountryCode}
|
|
9166
9168
|
*/
|
|
9167
9169
|
this.allowedCountryCodes = CountrySelectController.defaultAllowedCountryCodes;
|
|
9168
9170
|
/**
|
|
@@ -9178,6 +9180,7 @@ const VegaInputPhoneNumber = class {
|
|
|
9178
9180
|
*
|
|
9179
9181
|
* @VegaWarning Note: The input phone number field will always have a value. If no phone number is entered, the default format is `+{default_country_code}`. For example, if the default country code is US, the default value will be `+1`.
|
|
9180
9182
|
* @vegaVersion 2.18.0
|
|
9183
|
+
* @defaultValue +1
|
|
9181
9184
|
*/
|
|
9182
9185
|
/* eslint-disable-next-line @stencil/strict-mutable */
|
|
9183
9186
|
this.value = `+${getCountryCallingCode(this.countryCode)}`;
|