@globalpayments/vega 2.38.0 → 2.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-7087f121.js → app-globals-cdd0972c.js} +14 -4
- package/dist/cjs/check-box-required-rule-1ee54b9a.js +70 -0
- package/dist/cjs/content-state-c5b47ca1.js +6644 -0
- package/dist/cjs/date-required-rule-4e1f84fd.js +92 -0
- package/dist/cjs/{element-appender-slimmer-c6e0f4ca.js → element-appender-slimmer-4f0dc8c6.js} +9 -5
- package/dist/cjs/file-uploader-required-rule-313ec9e3.js +21 -0
- package/dist/cjs/{form-field-controller-slimmer-48c0ad0b.js → form-field-controller-slimmer-d92e8212.js} +28 -1
- package/dist/cjs/{image-annotation-action-7d82f7e1.js → image-annotation-action-75b9c0d3.js} +5 -6
- package/dist/cjs/index.cjs.js +35 -15
- package/dist/cjs/input-phone-number-required-rule-2668fdf1.js +65 -0
- package/dist/cjs/input-range-required-rule-5b9c2a95.js +63 -0
- package/dist/cjs/internal-form-field-validation-rule.abstract-07cdff46.js +15 -0
- package/dist/cjs/loader.cjs.js +10 -10
- package/dist/cjs/{min-number-rule-115c5a3b.js → min-number-rule-5bcccc8f.js} +7 -4
- package/dist/cjs/{min-string-length-rule-75f24a48.js → min-string-length-rule-af215976.js} +8 -4
- package/dist/cjs/public-rules-90b972e5.js +42 -0
- package/dist/cjs/{required-field-rule-7f9945fa.js → required-field-rule-d73c1d8c.js} +6 -3
- package/dist/cjs/rich-text-editor-required-rule-cacc5fe0.js +64 -0
- package/dist/cjs/time-required-rule-ccf178e7.js +141 -0
- package/dist/cjs/toggle-switch-required-rule-88a51b36.js +66 -0
- package/dist/cjs/{valid-credit-card-number-rule-4a9ae5d9.js → valid-credit-card-number-rule-4a1b00b8.js} +3 -2
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +11 -79
- package/dist/cjs/vega-color-picker.cjs.entry.js +3 -2
- package/dist/cjs/vega-combo-box.cjs.entry.js +3 -2
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +9 -91
- package/dist/cjs/vega-dialog_2.cjs.entry.js +29 -1
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +1 -1
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-file-uploader.cjs.entry.js +5 -19
- package/dist/cjs/vega-form.cjs.entry.js +2 -1
- package/dist/cjs/vega-image-uploader.cjs.entry.js +3 -2
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +4 -3
- package/dist/cjs/vega-input-numeric.cjs.entry.js +3 -2
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +38 -70
- package/dist/cjs/vega-input-range.cjs.entry.js +6 -61
- package/dist/cjs/vega-input-select.cjs.entry.js +3 -2
- package/dist/cjs/vega-input.cjs.entry.js +7 -6
- package/dist/cjs/vega-popover_2.cjs.entry.js +15 -1
- package/dist/cjs/vega-radio_2.cjs.entry.js +3 -2
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +18 -19
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +79 -139
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +3 -2
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +3 -2
- package/dist/cjs/vega-signature-capture.cjs.entry.js +3 -2
- package/dist/cjs/vega-stepper.cjs.entry.js +3 -2
- package/dist/cjs/vega-textarea.cjs.entry.js +4 -3
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +11 -140
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +4 -63
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +53 -12
- package/dist/cjs/vega.cjs.js +10 -10
- package/dist/collection/components/vega-checkbox/vega-checkbox.css +82 -33
- package/dist/collection/components/vega-checkbox/vega-checkbox.js +8 -13
- package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +2 -2
- package/dist/collection/components/vega-input-phone-number/slimmers/controllers/vega-input-phone-number-value-controller.js +18 -2
- package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +7 -4
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-layout-controller.js +9 -0
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-scroll-controller.js +16 -0
- package/dist/collection/components/vega-modal/vega-modal.js +6 -0
- package/dist/collection/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.js +4 -0
- package/dist/collection/components/vega-popover/vega-popover.js +37 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy-registry.js +52 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.js +63 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-link-group-strategy.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-text-style-strategy.js +32 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/image-set-annotation-map-strategy.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/node-split-text-strategy.js +134 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/node-update-annotation-map-strategy.js +47 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-append-blocks-strategy.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-append-nodes-strategy.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-image-strategy.js +54 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-node-content-strategy.js +152 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-text-content-strategy.js +99 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-blocks-after-strategy.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-blocks-before-strategy.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-image-into-text-strategy.js +31 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-line-break-strategy.js +57 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-line-break-with-blocks-strategy.js +60 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-new-paragraph-strategy.js +55 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-nodes-after-node-strategy.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-nodes-before-node-strategy.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-merge-nodes-strategy.js +25 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-remove-child-block-strategy.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-remove-node-strategy.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-replace-node-with-nodes-strategy.js +28 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-replace-nodes-strategy.js +17 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-split-with-image-node-strategy.js +48 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-split-with-text-node-strategy.js +43 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-transform-to-list-strategy.js +26 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-block-insert-image-strategy.js +32 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-insert-line-break-strategy.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-insert-line-break-with-blocks-strategy.js +55 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-insert-new-paragraph-strategy.js +44 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-update-url-strategy.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-insert-image-strategy.js +22 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-delete-text-content-strategy.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-insert-image-strategy.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-insert-new-paragraph-strategy.js +92 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-remove-nest-list-strategy.js +22 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-remove-node-strategy.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-replace-nest-list-strategy.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-remove-list-item-strategy.js +27 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-list-strategy.js +36 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-paragraph-strategy.js +63 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/node-replace-selected-text-strategy.js +46 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/node-update-text-strategy.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/image-update-url-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +3 -215
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +31 -244
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +17 -155
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +33 -184
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +40 -352
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +13 -23
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +14 -6
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +23 -182
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.js +2 -1
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/action-handle-strategy-registry.test.js +41 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/block-insert-line-break-with-blocks-strategy.test.js +24 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/content-state-strategy-registry.test.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-block-strategy-register.test.js +30 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-set-annotation-map-strategy.test.js +11 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-update-url-strategy.test.js +16 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-block-strategy-register.test.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-item-strategy-register.test.js +31 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-split-text-strategy.test.js +31 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-update-annotation-map-strategy.test.js +17 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/text-block-strategy-register.test.js +55 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/update-selected-text-strategy.test.js +23 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +2 -2
- package/dist/collection/components/vega-tooltip/slimmers/controllers/vega-tooltip-element-appender-controller.js +45 -11
- package/dist/collection/components/vega-tooltip/vega-tooltip.js +12 -0
- package/dist/collection/global/scripts/before-vega-load.js +11 -0
- package/dist/collection/helpers/slimmers/element-appender-slimmer.js +8 -5
- package/dist/collection/helpers/slimmers/test/element-appender-slimmer.test.js +2 -0
- package/dist/collection/helpers/ui/element-appender.js +1 -0
- package/dist/collection/helpers/ui/test/element-appender.test.js +1 -0
- package/dist/collection/helpers/validator/form-field-controller.js +28 -1
- package/dist/collection/helpers/validator/public-rules.js +10 -0
- package/dist/collection/helpers/validator/rules/check-box-required-rule.js +4 -3
- package/dist/collection/helpers/validator/rules/date-range-rule.js +2 -1
- package/dist/collection/helpers/validator/rules/date-required-rule.js +5 -3
- package/dist/collection/helpers/validator/rules/email-field-rule.js +3 -2
- package/dist/collection/helpers/validator/rules/{object-array-required-rule.js → file-uploader-required-rule.js} +1 -1
- package/dist/collection/helpers/validator/rules/input-phone-number-required-rule.js +5 -3
- package/dist/collection/helpers/validator/rules/input-range-min-and-max-rule.js +3 -1
- package/dist/collection/helpers/validator/rules/input-range-required-rule.js +5 -4
- package/dist/collection/helpers/validator/rules/internal-form-field-validation-rule.abstract.js +11 -0
- package/dist/collection/helpers/validator/rules/max-number-rule.js +4 -2
- package/dist/collection/helpers/validator/rules/max-string-length-rule.js +4 -2
- package/dist/collection/helpers/validator/rules/min-and-max-date-rule.js +3 -1
- package/dist/collection/helpers/validator/rules/min-number-rule.js +4 -2
- package/dist/collection/helpers/validator/rules/min-string-length-rule.js +4 -2
- package/dist/collection/helpers/validator/rules/required-field-rule.js +5 -3
- package/dist/collection/helpers/validator/rules/rich-text-editor-required-rule.js +4 -3
- package/dist/collection/helpers/validator/rules/time-range-required-rule.js +5 -3
- package/dist/collection/helpers/validator/rules/time-range-rule.js +3 -1
- package/dist/collection/helpers/validator/rules/time-required-rule.js +5 -3
- package/dist/collection/helpers/validator/rules/toggle-switch-required-rule.js +4 -3
- package/dist/collection/helpers/validator/rules/valid-credit-card-number-rule.js +3 -2
- package/dist/collection/helpers/validator/rules/valid-phone-number-rule.js +11 -4
- package/dist/collection/helpers/validator/test/rules/file-uploader-required-rule.test.js +7 -0
- package/dist/collection/helpers/validator/test/rules/public-rules.test.js +80 -0
- package/dist/collection/helpers/validator/test/rules/valid-phone-number-rule.test.js +8 -0
- package/dist/collection/index.js +1 -0
- package/dist/esm/{app-globals-4cca4a96.js → app-globals-88fa3549.js} +14 -4
- package/dist/esm/check-box-required-rule-cb0aa339.js +68 -0
- package/dist/esm/content-state-2edba4ec.js +6600 -0
- package/dist/esm/{date-732bc749.js → date-c55b97f0.js} +1 -1
- package/dist/esm/date-required-rule-8944f3bf.js +90 -0
- package/dist/esm/{element-appender-slimmer-f5e703f3.js → element-appender-slimmer-d9155ee0.js} +9 -5
- package/dist/esm/file-uploader-required-rule-ad886d01.js +19 -0
- package/dist/esm/{form-field-controller-slimmer-3535e76a.js → form-field-controller-slimmer-bb64dec7.js} +29 -2
- package/dist/esm/{image-annotation-action-3da42221.js → image-annotation-action-b6668f48.js} +1 -2
- package/dist/esm/{index-6e05b241.js → index-d172bafa.js} +1 -1
- package/dist/esm/index.js +17 -7
- package/dist/esm/input-phone-number-required-rule-be6a5572.js +63 -0
- package/dist/esm/input-range-required-rule-3ad74776.js +61 -0
- package/dist/esm/internal-form-field-validation-rule.abstract-f5b6bdbf.js +13 -0
- package/dist/esm/loader.js +11 -11
- package/dist/esm/{min-number-rule-31d48b22.js → min-number-rule-a6082418.js} +7 -4
- package/dist/esm/{min-string-length-rule-c6a69eeb.js → min-string-length-rule-c31c89f4.js} +8 -4
- package/dist/esm/public-rules-413f6a17.js +27 -0
- package/dist/esm/{required-field-rule-368b31fa.js → required-field-rule-ab4bdc47.js} +6 -3
- package/dist/esm/rich-text-editor-required-rule-75cc2db0.js +62 -0
- package/dist/esm/{string-input-formatter-slimmer-d4132497.js → string-input-formatter-slimmer-418b54f0.js} +2 -2
- package/dist/esm/{sub-state-notify-slimmer-51151fc3.js → sub-state-notify-slimmer-b36fd081.js} +1 -1
- package/dist/esm/{sub-state-observer-slimmer-d77a1c46.js → sub-state-observer-slimmer-09452523.js} +1 -1
- package/dist/esm/time-required-rule-a01163b5.js +138 -0
- package/dist/esm/toggle-switch-required-rule-b3cf4302.js +64 -0
- package/dist/esm/{valid-credit-card-number-rule-2aef3ad5.js → valid-credit-card-number-rule-cc497bec.js} +3 -2
- package/dist/esm/vega-button-group_2.entry.js +3 -3
- package/dist/esm/vega-calendar_3.entry.js +4 -4
- package/dist/esm/vega-checkbox_2.entry.js +12 -80
- package/dist/esm/vega-color-picker.entry.js +4 -3
- package/dist/esm/vega-combo-box.entry.js +4 -3
- package/dist/esm/vega-date-picker_2.entry.js +12 -94
- package/dist/esm/vega-dialog_2.entry.js +29 -1
- package/dist/esm/vega-dropdown_5.entry.js +4 -4
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-file-uploader.entry.js +6 -20
- package/dist/esm/vega-form.entry.js +3 -2
- package/dist/esm/vega-image-uploader.entry.js +4 -3
- package/dist/esm/vega-input-credit-card.entry.js +5 -4
- package/dist/esm/vega-input-numeric.entry.js +5 -4
- package/dist/esm/vega-input-phone-number.entry.js +38 -70
- package/dist/esm/vega-input-range.entry.js +6 -61
- package/dist/esm/vega-input-select.entry.js +4 -3
- package/dist/esm/vega-input.entry.js +11 -10
- package/dist/esm/{vega-internal-event-id-d0690d0d.js → vega-internal-event-id-f269c42f.js} +1 -1
- package/dist/esm/vega-left-nav_5.entry.js +3 -3
- package/dist/esm/vega-popover_2.entry.js +16 -2
- package/dist/esm/vega-radio_2.entry.js +4 -3
- package/dist/esm/vega-rich-text-content.entry.js +6 -7
- package/dist/esm/vega-rich-text-editor_4.entry.js +23 -83
- package/dist/esm/vega-selection-chip_2.entry.js +6 -5
- package/dist/esm/vega-selection-tile_2.entry.js +6 -5
- package/dist/esm/vega-sidenav_3.entry.js +3 -3
- package/dist/esm/vega-signature-capture.entry.js +4 -3
- package/dist/esm/vega-stepper.entry.js +4 -3
- package/dist/esm/vega-table_8.entry.js +3 -3
- package/dist/esm/vega-textarea.entry.js +5 -4
- package/dist/esm/vega-time-picker_2.entry.js +8 -137
- package/dist/esm/vega-toggle-switch.entry.js +4 -63
- package/dist/esm/vega-tooltip_2.entry.js +53 -12
- package/dist/esm/vega.js +11 -11
- package/dist/types/components/vega-input-phone-number/slimmers/controllers/vega-input-phone-number-value-controller.d.ts +7 -0
- package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-layout-controller.d.ts +4 -0
- package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-scroll-controller.d.ts +5 -0
- package/dist/types/components/vega-modal/vega-modal.d.ts +1 -0
- package/dist/types/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.d.ts +1 -0
- package/dist/types/components/vega-popover/vega-popover.d.ts +10 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy-registry.d.ts +37 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.d.ts +66 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-link-group-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-text-style-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/image-set-annotation-map-strategy.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/node-split-text-strategy.d.ts +47 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/node-update-annotation-map-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-append-blocks-strategy.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-append-nodes-strategy.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-image-strategy.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-node-content-strategy.d.ts +61 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-text-content-strategy.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-blocks-after-strategy.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-blocks-before-strategy.d.ts +23 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-image-into-text-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-line-break-strategy.d.ts +30 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-line-break-with-blocks-strategy.d.ts +36 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-new-paragraph-strategy.d.ts +29 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-nodes-after-node-strategy.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-nodes-before-node-strategy.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-merge-nodes-strategy.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-remove-child-block-strategy.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-remove-node-strategy.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-replace-node-with-nodes-strategy.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-replace-nodes-strategy.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-split-with-image-node-strategy.d.ts +30 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-split-with-text-node-strategy.d.ts +24 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-transform-to-list-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-block-insert-image-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-insert-line-break-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-insert-line-break-with-blocks-strategy.d.ts +27 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-insert-new-paragraph-strategy.d.ts +21 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-update-url-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-insert-image-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-delete-text-content-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-insert-image-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-insert-new-paragraph-strategy.d.ts +38 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-remove-nest-list-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-remove-node-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-replace-nest-list-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-remove-list-item-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-list-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-paragraph-strategy.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/node-replace-selected-text-strategy.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/node-update-text-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/image-update-url-action.d.ts +11 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +1 -79
- package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +3 -77
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +0 -38
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +3 -58
- package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +5 -93
- package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +0 -43
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/block-insert-line-break-with-blocks-strategy.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/content-state-strategy-registry.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-block-strategy-register.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-set-annotation-map-strategy.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-update-url-strategy.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-block-strategy-register.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-item-strategy-register.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-split-text-strategy.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-update-annotation-map-strategy.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/text-block-strategy-register.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/update-selected-text-strategy.test.d.ts +1 -0
- package/dist/types/components/vega-tooltip/slimmers/controllers/vega-tooltip-element-appender-controller.d.ts +18 -0
- package/dist/types/components/vega-tooltip/vega-tooltip.d.ts +4 -0
- package/dist/types/components.d.ts +14 -0
- package/dist/types/helpers/slimmers/element-appender-slimmer.d.ts +1 -0
- package/dist/types/helpers/slimmers/form-field-controller-slimmer.d.ts +2 -1
- package/dist/types/helpers/validator/form-field-controller.d.ts +10 -0
- package/dist/types/helpers/validator/public-rules.d.ts +10 -0
- package/dist/types/helpers/validator/rules/check-box-required-rule.d.ts +7 -6
- package/dist/types/helpers/validator/rules/date-range-rule.d.ts +3 -2
- package/dist/types/helpers/validator/rules/date-required-rule.d.ts +7 -6
- package/dist/types/helpers/validator/rules/email-field-rule.d.ts +4 -3
- package/dist/types/helpers/validator/rules/{object-array-required-rule.d.ts → file-uploader-required-rule.d.ts} +1 -1
- package/dist/types/helpers/validator/rules/input-phone-number-required-rule.d.ts +7 -6
- package/dist/types/helpers/validator/rules/input-range-min-and-max-rule.d.ts +3 -2
- package/dist/types/helpers/validator/rules/input-range-required-rule.d.ts +8 -7
- package/dist/types/helpers/validator/rules/internal-form-field-validation-rule.abstract.d.ts +19 -0
- package/dist/types/helpers/validator/rules/max-number-rule.d.ts +4 -3
- package/dist/types/helpers/validator/rules/max-string-length-rule.d.ts +4 -3
- package/dist/types/helpers/validator/rules/min-and-max-date-rule.d.ts +3 -2
- package/dist/types/helpers/validator/rules/min-number-rule.d.ts +4 -3
- package/dist/types/helpers/validator/rules/min-string-length-rule.d.ts +4 -3
- package/dist/types/helpers/validator/rules/required-field-rule.d.ts +7 -6
- package/dist/types/helpers/validator/rules/rich-text-editor-required-rule.d.ts +7 -6
- package/dist/types/helpers/validator/rules/time-range-required-rule.d.ts +7 -6
- package/dist/types/helpers/validator/rules/time-range-rule.d.ts +3 -2
- package/dist/types/helpers/validator/rules/time-required-rule.d.ts +7 -6
- package/dist/types/helpers/validator/rules/toggle-switch-required-rule.d.ts +5 -4
- package/dist/types/helpers/validator/rules/valid-credit-card-number-rule.d.ts +4 -3
- package/dist/types/helpers/validator/rules/valid-phone-number-rule.d.ts +7 -4
- package/dist/types/helpers/validator/test/rules/file-uploader-required-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/public-rules.test.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types/public-api.d.ts +1 -1
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-04c72f30.entry.js +1 -0
- package/dist/vega/{p-ba077ca8.entry.js → p-073beb31.entry.js} +1 -1
- package/dist/vega/p-07c2725a.js +1 -0
- package/dist/vega/{p-b5990090.js → p-08835909.js} +1 -1
- package/dist/vega/p-0b6d4561.entry.js +1 -0
- package/dist/vega/p-0bb860cc.js +1 -0
- package/dist/vega/p-0cc1ad76.js +1 -0
- package/dist/vega/p-113cd659.entry.js +1 -0
- package/dist/vega/{p-b9a0f136.entry.js → p-154d262e.entry.js} +1 -1
- package/dist/vega/p-17598aac.entry.js +1 -0
- package/dist/vega/p-23130825.entry.js +1 -0
- package/dist/vega/{p-29d6ec6c.js → p-239bae84.js} +1 -1
- package/dist/vega/{p-7198d675.entry.js → p-24ac5151.entry.js} +1 -1
- package/dist/vega/p-280cbcdb.js +1 -0
- package/dist/vega/p-3299c30b.entry.js +1 -0
- package/dist/vega/p-3fd9d39f.entry.js +1 -0
- package/dist/vega/p-42a949f5.entry.js +1 -0
- package/dist/vega/p-4bd1b877.entry.js +1 -0
- package/dist/vega/p-590fd123.js +1 -0
- package/dist/vega/p-5a7eabcc.js +1 -0
- package/dist/vega/p-5e56f3bd.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-612c9374.entry.js +1 -0
- package/dist/vega/p-6408d3dc.entry.js +1 -0
- package/dist/vega/{p-a2a34239.entry.js → p-6585bddc.entry.js} +2 -2
- package/dist/vega/p-6603081a.entry.js +1 -0
- package/dist/vega/p-6e5db02b.js +1 -0
- package/dist/vega/p-6f90d444.js +1 -0
- package/dist/vega/p-7303fff2.entry.js +1 -0
- package/dist/vega/p-7b648a05.entry.js +1 -0
- package/dist/vega/p-7c0b4c36.js +1 -0
- package/dist/vega/p-81b21503.entry.js +1 -0
- package/dist/vega/p-8fae8f9e.js +1 -0
- package/dist/vega/p-924b4e24.js +1 -0
- package/dist/vega/{p-ee2e4bff.entry.js → p-94459733.entry.js} +1 -1
- package/dist/vega/p-a05ca459.entry.js +1 -0
- package/dist/vega/p-a3e80fb2.entry.js +1 -0
- package/dist/vega/p-a7a46358.entry.js +1 -0
- package/dist/vega/{p-34bd9204.js → p-a9e1123a.js} +1 -1
- package/dist/vega/p-abd7aeaa.js +1 -0
- package/dist/vega/{p-267cde46.entry.js → p-b071be5c.entry.js} +1 -1
- package/dist/vega/p-b24da503.entry.js +1 -0
- package/dist/vega/p-b44f3309.js +1 -0
- package/dist/vega/p-b9051ad2.js +1 -0
- package/dist/vega/{p-20326c64.js → p-bd0116f9.js} +1 -1
- package/dist/vega/{p-4ab0d645.js → p-c253d09c.js} +1 -1
- package/dist/vega/p-c56acdd5.entry.js +1 -0
- package/dist/vega/p-cdbbdcc2.js +1 -0
- package/dist/vega/p-d1a06058.entry.js +1 -0
- package/dist/vega/{p-348e95ba.js → p-d2ff56d8.js} +1 -1
- package/dist/vega/p-d51b04ce.entry.js +1 -0
- package/dist/vega/p-e0446879.js +1 -0
- package/dist/vega/p-e08b6542.entry.js +1 -0
- package/dist/vega/p-e0d3ca2d.js +1 -0
- package/dist/vega/{p-e9a5bd12.entry.js → p-f1ebe86b.entry.js} +1 -1
- package/dist/vega/p-f396c69a.js +1 -0
- package/dist/vega/p-fda6c178.entry.js +1 -0
- package/dist/vega/p-ffac4b8c.entry.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/content-state-f97d3278.js +0 -2990
- package/dist/cjs/node-annotation.abstract-4f6df9cf.js +0 -3223
- package/dist/collection/components/vega-rich-text-editor/dto/actions/clear-child-nodes-action.js +0 -12
- package/dist/collection/components/vega-rich-text-editor/dto/helper/block-base-operator.js +0 -47
- package/dist/collection/helpers/validator/test/rules/object-array-required-rule.test.js +0 -7
- package/dist/esm/content-state-ccf5f960.js +0 -2954
- package/dist/esm/node-annotation.abstract-b2e36bc4.js +0 -3214
- package/dist/types/components/vega-rich-text-editor/dto/actions/clear-child-nodes-action.d.ts +0 -9
- package/dist/types/components/vega-rich-text-editor/dto/helper/block-base-operator.d.ts +0 -24
- package/dist/vega/p-0461e318.js +0 -1
- package/dist/vega/p-12fe63c1.entry.js +0 -1
- package/dist/vega/p-1b67c443.entry.js +0 -1
- package/dist/vega/p-1d93b3a9.js +0 -1
- package/dist/vega/p-23fd9401.entry.js +0 -1
- package/dist/vega/p-2fecbcf9.entry.js +0 -1
- package/dist/vega/p-3152031c.js +0 -1
- package/dist/vega/p-3cb90bdf.entry.js +0 -1
- package/dist/vega/p-3e8f9fcf.entry.js +0 -1
- package/dist/vega/p-497f2f86.entry.js +0 -1
- package/dist/vega/p-50eabdca.entry.js +0 -1
- package/dist/vega/p-52a8a4f8.js +0 -1
- package/dist/vega/p-6419e13e.entry.js +0 -1
- package/dist/vega/p-66b9e86d.entry.js +0 -1
- package/dist/vega/p-74958b1a.js +0 -1
- package/dist/vega/p-7baa4fae.entry.js +0 -1
- package/dist/vega/p-7edcb8d0.entry.js +0 -1
- package/dist/vega/p-904b489a.entry.js +0 -1
- package/dist/vega/p-9689ad99.entry.js +0 -1
- package/dist/vega/p-9728d571.entry.js +0 -1
- package/dist/vega/p-a7e078ac.entry.js +0 -1
- package/dist/vega/p-a7f40a65.entry.js +0 -1
- package/dist/vega/p-a8a809e1.entry.js +0 -1
- package/dist/vega/p-a8b16ff2.js +0 -1
- package/dist/vega/p-aed80794.entry.js +0 -1
- package/dist/vega/p-b517ed15.js +0 -1
- package/dist/vega/p-b809f3d7.entry.js +0 -1
- package/dist/vega/p-ba2833c0.entry.js +0 -1
- package/dist/vega/p-bf4996d5.entry.js +0 -1
- package/dist/vega/p-cb4fd6e1.entry.js +0 -1
- package/dist/vega/p-e9785742.entry.js +0 -1
- package/dist/vega/p-ecaf4cfa.entry.js +0 -1
- package/dist/vega/p-f41102cd.js +0 -1
- package/dist/vega/p-f5b0ce61.js +0 -1
- package/dist/vega/p-f86ec91b.js +0 -1
- /package/dist/types/{helpers/validator/test/rules/object-array-required-rule.test.d.ts → components/vega-rich-text-editor/test/dto/action-handle-strategies/action-handle-strategy-registry.test.d.ts} +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const date = require('./date-0a6bb035.js');
|
|
4
|
+
const internalFormFieldValidationRule_abstract = require('./internal-form-field-validation-rule.abstract-07cdff46.js');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A rule that checks if date is empty or not
|
|
8
|
+
*
|
|
9
|
+
* @augments {InternalFormFieldValidationRule<string | string[]>}
|
|
10
|
+
*/
|
|
11
|
+
class DateRequiredRule extends internalFormFieldValidationRule_abstract.InternalFormFieldValidationRule {
|
|
12
|
+
/**
|
|
13
|
+
* It creates a new instance of the class with the given config.
|
|
14
|
+
*
|
|
15
|
+
* @param {{ mode: 'single' | 'range' }} config - config including the mode for date value
|
|
16
|
+
* @param {'single' | 'range'} config.mode - The mode for date value
|
|
17
|
+
*/
|
|
18
|
+
constructor(config) {
|
|
19
|
+
super();
|
|
20
|
+
this.config = config;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* If the input is not valid for the current mode, throw an error.
|
|
24
|
+
* Otherwise, return an object with a boolean indicating whether the input is valid and a message to display to the user
|
|
25
|
+
*
|
|
26
|
+
* @param {string | string[]} input - The value of the input field.
|
|
27
|
+
* @returns {EvaluateResult} An object with two properties: isValid and message.
|
|
28
|
+
*/
|
|
29
|
+
evaluate(input) {
|
|
30
|
+
if (!this.isAcceptedInputType(input)) {
|
|
31
|
+
throw new Error(`Invalid date value ${input} for mode ${this.config.mode}`);
|
|
32
|
+
}
|
|
33
|
+
let isValid;
|
|
34
|
+
switch (this.config.mode) {
|
|
35
|
+
case 'single':
|
|
36
|
+
isValid = date.isDateStr(input);
|
|
37
|
+
break;
|
|
38
|
+
case 'range':
|
|
39
|
+
isValid = Array.isArray(input) && input.length === 2 && input.every(date.isDateStr);
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
isValid,
|
|
44
|
+
message: isValid ? '' : 'This field is required',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* If the input is accepted and the status is not disabled and visible, then return true
|
|
49
|
+
*
|
|
50
|
+
* @param {unknown} input - The input to be evaluated.
|
|
51
|
+
* @param {FormFieldStatusMeta} [status] - FormFieldStatusMeta
|
|
52
|
+
* @returns {boolean} A boolean value.
|
|
53
|
+
*/
|
|
54
|
+
canEvaluate(input, status) {
|
|
55
|
+
return status
|
|
56
|
+
? this.isAcceptedInputType(input) && !status.disabled && status.visible
|
|
57
|
+
: this.isAcceptedInputType(input);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* If the field is not disabled, visible, and has been touched or modified, then show the error
|
|
61
|
+
*
|
|
62
|
+
* @param {FormFieldStatusMeta} status - FormFieldStatusMeta
|
|
63
|
+
* @returns {boolean} A boolean value.
|
|
64
|
+
*/
|
|
65
|
+
shouldShowError(status) {
|
|
66
|
+
return !status.disabled && status.visible && (status.touched || status.modified);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* If the input is undefined or null, return true. Otherwise, if the mode is 'single', return true if
|
|
70
|
+
* the input is a string. Otherwise, if the mode is 'range', return true if the input is an array. Otherwise, return false.
|
|
71
|
+
*
|
|
72
|
+
* @param {unknown} input - The input value that the user has entered.
|
|
73
|
+
* @returns {boolean} A boolean value.
|
|
74
|
+
*/
|
|
75
|
+
isAcceptedInputType(input) {
|
|
76
|
+
if (input === undefined || input === null)
|
|
77
|
+
return true;
|
|
78
|
+
if (!this.config.mode) {
|
|
79
|
+
throw new Error(`Unexpected type of mode: ${this.config.mode}`);
|
|
80
|
+
}
|
|
81
|
+
switch (this.config.mode) {
|
|
82
|
+
case 'single':
|
|
83
|
+
return typeof input === 'string';
|
|
84
|
+
case 'range':
|
|
85
|
+
return Array.isArray(input);
|
|
86
|
+
default:
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
exports.DateRequiredRule = DateRequiredRule;
|
package/dist/cjs/{element-appender-slimmer-c6e0f4ca.js → element-appender-slimmer-4f0dc8c6.js}
RENAMED
|
@@ -955,6 +955,7 @@ class ElementAppender {
|
|
|
955
955
|
if (!this.showConfig)
|
|
956
956
|
return;
|
|
957
957
|
this.removeVisibleAppendElement(this.showConfig.appendableElement);
|
|
958
|
+
this.resetContainerPosition();
|
|
958
959
|
internalVegaZIndexManager.InternalVegaZIndexManager.removeZIndex(this.showConfig.appendableElement, 'base');
|
|
959
960
|
this.showConfig.appendableElement.remove();
|
|
960
961
|
this.disconnectResizeObserver();
|
|
@@ -1245,10 +1246,7 @@ class ElementAppenderSlimmer extends globalSlimmerRegistry.VegaSlimmer {
|
|
|
1245
1246
|
}
|
|
1246
1247
|
disconnectedCallback() {
|
|
1247
1248
|
this.unRegisterElementAppenderListener();
|
|
1248
|
-
|
|
1249
|
-
this.elementAppender.destroy();
|
|
1250
|
-
this.elementAppender = null;
|
|
1251
|
-
}
|
|
1249
|
+
this.destroyElementAppender();
|
|
1252
1250
|
}
|
|
1253
1251
|
componentDidLoad() {
|
|
1254
1252
|
this.initElementAppender();
|
|
@@ -1265,13 +1263,19 @@ class ElementAppenderSlimmer extends globalSlimmerRegistry.VegaSlimmer {
|
|
|
1265
1263
|
this[this.isDropdownShowName] = false;
|
|
1266
1264
|
}
|
|
1267
1265
|
destroy() {
|
|
1268
|
-
this.
|
|
1266
|
+
this.destroyElementAppender();
|
|
1269
1267
|
this[this.isDropdownShowName] = false;
|
|
1270
1268
|
}
|
|
1271
1269
|
updateShowConfigFactory(showConfigFactory) {
|
|
1272
1270
|
this.showConfigFactory = showConfigFactory;
|
|
1273
1271
|
this.initElementAppender();
|
|
1274
1272
|
}
|
|
1273
|
+
destroyElementAppender() {
|
|
1274
|
+
if (this.elementAppender) {
|
|
1275
|
+
this.elementAppender.destroy();
|
|
1276
|
+
this.elementAppender = null;
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1275
1279
|
initElementAppender() {
|
|
1276
1280
|
this.setShowConfig();
|
|
1277
1281
|
this.setElementAppender();
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const requiredFieldRule = require('./required-field-rule-d73c1d8c.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A rule that checks the value is empty or not which value type is object array
|
|
7
|
+
*/
|
|
8
|
+
class FileUploaderRequiredRule extends requiredFieldRule.RequiredFieldRule {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
/**
|
|
12
|
+
* re-define the object array check item type method
|
|
13
|
+
*
|
|
14
|
+
* @param {unknown} item the array item
|
|
15
|
+
* @returns {boolean} true or false
|
|
16
|
+
*/
|
|
17
|
+
this.checkArrayItemType = (item) => !!(item && typeof item === 'object');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
exports.FileUploaderRequiredRule = FileUploaderRequiredRule;
|
|
@@ -12,6 +12,7 @@ const domNodeSubjectFactory = require('./dom-node-subject-factory-ce1777a9.js');
|
|
|
12
12
|
const vegaInternalEventId = require('./vega-internal-event-id-bda63e14.js');
|
|
13
13
|
const translation = require('./translation-6848c389.js');
|
|
14
14
|
const pageResizeObserverSlimmer = require('./page-resize-observer-slimmer-bb1eaebe.js');
|
|
15
|
+
const internalFormFieldValidationRule_abstract = require('./internal-form-field-validation-rule.abstract-07cdff46.js');
|
|
15
16
|
const domNodeSubjectObserverFactory = require('./dom-node-subject-observer-factory-80b3ac6c.js');
|
|
16
17
|
const mutationObserverSlimmer = require('./mutation-observer-slimmer-895b3d3e.js');
|
|
17
18
|
const mutationObserverFilters = require('./mutation-observer-filters-e5a7f85a.js');
|
|
@@ -536,7 +537,11 @@ class FormFieldController {
|
|
|
536
537
|
* @returns {FormFieldValidationRule<number | string | boolean>[]} An array of FormFieldValidationRule<T>
|
|
537
538
|
*/
|
|
538
539
|
getRules() {
|
|
539
|
-
|
|
540
|
+
const additionalRules = [...this.additionalRules];
|
|
541
|
+
const overriddenDefaultRules = this.defaultRules.map((rule) => {
|
|
542
|
+
return this.overrideDefaultRuleByAdditionalRule(rule, additionalRules);
|
|
543
|
+
});
|
|
544
|
+
return [...overriddenDefaultRules, ...additionalRules];
|
|
540
545
|
}
|
|
541
546
|
/**
|
|
542
547
|
* Set the default rules for the form field.
|
|
@@ -824,6 +829,28 @@ class FormFieldController {
|
|
|
824
829
|
return isEnterKey;
|
|
825
830
|
}
|
|
826
831
|
}
|
|
832
|
+
/**
|
|
833
|
+
* It overrides the default rule by checking if the additional rules contain a custom rule that overrides.
|
|
834
|
+
* If it does, it returns that additional rule, and the rule will be removed from the additional rules array.
|
|
835
|
+
* otherwise, it returns the default rule.
|
|
836
|
+
*
|
|
837
|
+
* @param {InternalFormFieldValidationRule} defaultRule - The rule to be overridden.
|
|
838
|
+
* @param {FormFieldValidationRule[]} additionalRules - The additional rules to be applied.
|
|
839
|
+
* @returns {FormFieldValidationRule} The overridden rule.
|
|
840
|
+
*/
|
|
841
|
+
overrideDefaultRuleByAdditionalRule(defaultRule, additionalRules) {
|
|
842
|
+
if (defaultRule && additionalRules) {
|
|
843
|
+
const customRuleIndex = additionalRules.findIndex((customRule) => {
|
|
844
|
+
return (customRule instanceof internalFormFieldValidationRule_abstract.InternalFormFieldValidationRule &&
|
|
845
|
+
customRule instanceof defaultRule.constructor &&
|
|
846
|
+
customRule.overrideDefault);
|
|
847
|
+
});
|
|
848
|
+
if (customRuleIndex > -1) {
|
|
849
|
+
return additionalRules.splice(customRuleIndex, 1)[0];
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
return defaultRule;
|
|
853
|
+
}
|
|
827
854
|
}
|
|
828
855
|
__decorate$3([
|
|
829
856
|
globalSlimmerRegistry.InjectVegaSlimmer()
|
package/dist/cjs/{image-annotation-action-7d82f7e1.js → image-annotation-action-75b9c0d3.js}
RENAMED
|
@@ -5,8 +5,7 @@ const globalSlimmerRegistry = require('./global-slimmer-registry-b3bce7e0.js');
|
|
|
5
5
|
const domNodeSubjectObserverFactory = require('./dom-node-subject-observer-factory-80b3ac6c.js');
|
|
6
6
|
const domNodeSubjectFactory = require('./dom-node-subject-factory-ce1777a9.js');
|
|
7
7
|
const internalIconManager = require('./internal-icon-manager-5ccb9443.js');
|
|
8
|
-
const contentState = require('./content-state-
|
|
9
|
-
const nodeAnnotation_abstract = require('./node-annotation.abstract-4f6df9cf.js');
|
|
8
|
+
const contentState = require('./content-state-c5b47ca1.js');
|
|
10
9
|
|
|
11
10
|
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
12
11
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -103,7 +102,7 @@ class TextColorToolbarButtonSlimmer extends ToolbarButtonSlimmer {
|
|
|
103
102
|
tooltip: { text: 'Text Color' },
|
|
104
103
|
});
|
|
105
104
|
this.popoverShow = false;
|
|
106
|
-
|
|
105
|
+
contentState.VegaDarkModeStyleController.registerCustomDarkModeColor(TextColorToolbarButtonSlimmer.formatDarkModeColor());
|
|
107
106
|
}
|
|
108
107
|
static formatDarkModeColor() {
|
|
109
108
|
return contentState.RTE_TEXT_COLORS.reduce((prev, current) => {
|
|
@@ -184,9 +183,9 @@ class TextColorToolbarButtonSlimmer extends ToolbarButtonSlimmer {
|
|
|
184
183
|
const selectedNodes = this.selectionController.getSelectedNodes();
|
|
185
184
|
return selectedNodes.some((node) => {
|
|
186
185
|
var _a;
|
|
187
|
-
return ((_a = node.getAnnotationByType(
|
|
188
|
-
node.getAnnotationByType(
|
|
189
|
-
node.getAnnotationByType(
|
|
186
|
+
return ((_a = node.getAnnotationByType(contentState.NodeAnnotationTypeEnum.CODE)) === null || _a === void 0 ? void 0 : _a.code) ||
|
|
187
|
+
node.getAnnotationByType(contentState.NodeAnnotationTypeEnum.LINK) ||
|
|
188
|
+
node.getAnnotationByType(contentState.NodeAnnotationTypeEnum.IMAGE);
|
|
190
189
|
});
|
|
191
190
|
}
|
|
192
191
|
}
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -14,15 +14,23 @@ const ui = require('./ui-32e69595.js');
|
|
|
14
14
|
const vegaEnvManager = require('./vega-env-manager-23b8b23c.js');
|
|
15
15
|
const vegaSkeletonLoaderController = require('./vega-skeleton-loader-controller-00dbdf29.js');
|
|
16
16
|
const featureFlagController = require('./feature-flag-controller-7b22e598.js');
|
|
17
|
-
const
|
|
17
|
+
const contentState = require('./content-state-c5b47ca1.js');
|
|
18
18
|
const vegaDialogController = require('./vega-dialog-controller-fe610705.js');
|
|
19
19
|
const internalVegaEventManager = require('./internal-vega-event-manager-981dfd1c.js');
|
|
20
20
|
const iconManager = require('./icon-manager-edc2400b.js');
|
|
21
|
-
const validCreditCardNumberRule = require('./valid-credit-card-number-rule-
|
|
21
|
+
const validCreditCardNumberRule = require('./valid-credit-card-number-rule-4a1b00b8.js');
|
|
22
22
|
const index = require('./index-0546e2ea.js');
|
|
23
23
|
const translation = require('./translation-6848c389.js');
|
|
24
|
-
const contentState = require('./content-state-f97d3278.js');
|
|
25
24
|
const responsiveFormatFacade = require('./responsive-format-facade-a1983026.js');
|
|
25
|
+
const checkBoxRequiredRule = require('./check-box-required-rule-1ee54b9a.js');
|
|
26
|
+
const dateRequiredRule = require('./date-required-rule-4e1f84fd.js');
|
|
27
|
+
const inputPhoneNumberRequiredRule = require('./input-phone-number-required-rule-2668fdf1.js');
|
|
28
|
+
const inputRangeRequiredRule = require('./input-range-required-rule-5b9c2a95.js');
|
|
29
|
+
const requiredFieldRule = require('./required-field-rule-d73c1d8c.js');
|
|
30
|
+
const richTextEditorRequiredRule = require('./rich-text-editor-required-rule-cacc5fe0.js');
|
|
31
|
+
const timeRequiredRule = require('./time-required-rule-ccf178e7.js');
|
|
32
|
+
const toggleSwitchRequiredRule = require('./toggle-switch-required-rule-88a51b36.js');
|
|
33
|
+
const fileUploaderRequiredRule = require('./file-uploader-required-rule-313ec9e3.js');
|
|
26
34
|
require('./state-background-color-formatter-e585a027.js');
|
|
27
35
|
require('./regex-c1f70fd4.js');
|
|
28
36
|
require('./create-public-api-runtime-metrics-slimmer-54c3f73b.js');
|
|
@@ -33,12 +41,14 @@ require('./number-4816603d.js');
|
|
|
33
41
|
require('./page-resize-observer-slimmer-bb1eaebe.js');
|
|
34
42
|
require('./index-8b247c17.js');
|
|
35
43
|
require('./_commonjsHelpers-537d719a.js');
|
|
36
|
-
require('./static-subject-title-c589a1bd.js');
|
|
37
44
|
require('./change-manager-a297e4d2.js');
|
|
38
|
-
require('./observer-f49483e8.js');
|
|
39
45
|
require('./dom-node-subject-factory-ce1777a9.js');
|
|
40
46
|
require('./vega-internal-event-id-bda63e14.js');
|
|
47
|
+
require('./static-subject-title-c589a1bd.js');
|
|
48
|
+
require('./observer-f49483e8.js');
|
|
49
|
+
require('./internal-form-field-validation-rule.abstract-07cdff46.js');
|
|
41
50
|
require('./pixel-98f2a10c.js');
|
|
51
|
+
require('./date-0a6bb035.js');
|
|
42
52
|
|
|
43
53
|
/* This file is generated by vega-design 2.0.77 */
|
|
44
54
|
/* eslint-disable */
|
|
@@ -95,24 +105,34 @@ exports.VegaNotify = vegaSkeletonLoaderController.VegaNotify;
|
|
|
95
105
|
exports.VegaSkeletonLoader = vegaSkeletonLoaderController.VegaSkeletonLoader;
|
|
96
106
|
exports.VegaZIndexManager = vegaSkeletonLoaderController.VegaZIndexManager;
|
|
97
107
|
exports.FeatureFlag = featureFlagController.FeatureFlag;
|
|
98
|
-
exports.ModifyContentAction =
|
|
99
|
-
exports.RTENode = nodeAnnotation_abstract.RTENode;
|
|
100
|
-
exports.VegaThemeManager = nodeAnnotation_abstract.VegaThemeManager;
|
|
101
|
-
exports.VegaDialog = vegaDialogController.VegaDialog;
|
|
102
|
-
exports.VegaJQueryDelegatedEventStrategy = internalVegaEventManager.BaseStrategy;
|
|
103
|
-
exports.VegaIconManager = iconManager.VegaIconManager;
|
|
104
|
-
exports.ValidCreditCardNumberRule = validCreditCardNumberRule.ValidCreditCardNumberRule;
|
|
105
|
-
exports.waitForVega = index.waitForVega;
|
|
106
|
-
exports.VegaTranslation = translation.VegaTranslation;
|
|
107
|
-
exports.VegaTranslationResourceEN = translation.staticTranslations;
|
|
108
|
+
exports.ModifyContentAction = contentState.ModifyContentAction;
|
|
108
109
|
exports.RTEBlock = contentState.RTEBlock;
|
|
109
110
|
exports.RTEImageBlock = contentState.RTEImageBlock;
|
|
110
111
|
exports.RTEImageNode = contentState.RTEImageNode;
|
|
111
112
|
exports.RTEListBlock = contentState.RTEListBlock;
|
|
112
113
|
exports.RTEListItemBlock = contentState.RTEListItemBlock;
|
|
114
|
+
exports.RTENode = contentState.RTENode;
|
|
113
115
|
exports.RTETextBlock = contentState.RTETextBlock;
|
|
114
116
|
exports.RTETextNode = contentState.RTETextNode;
|
|
115
117
|
exports.VegaRTEContent = contentState.VegaRTEContent;
|
|
118
|
+
exports.VegaThemeManager = contentState.VegaThemeManager;
|
|
119
|
+
exports.VegaDialog = vegaDialogController.VegaDialog;
|
|
120
|
+
exports.VegaJQueryDelegatedEventStrategy = internalVegaEventManager.BaseStrategy;
|
|
121
|
+
exports.VegaIconManager = iconManager.VegaIconManager;
|
|
122
|
+
exports.ValidCreditCardNumberRule = validCreditCardNumberRule.ValidCreditCardNumberRule;
|
|
123
|
+
exports.waitForVega = index.waitForVega;
|
|
124
|
+
exports.VegaTranslation = translation.VegaTranslation;
|
|
125
|
+
exports.VegaTranslationResourceEN = translation.staticTranslations;
|
|
116
126
|
exports.GridColumns = responsiveFormatFacade.GridColumns;
|
|
117
127
|
exports.GridRows = responsiveFormatFacade.GridRows;
|
|
128
|
+
exports.CheckBoxRequiredRule = checkBoxRequiredRule.CheckBoxRequiredRule;
|
|
129
|
+
exports.DateRequiredRule = dateRequiredRule.DateRequiredRule;
|
|
130
|
+
exports.InputPhoneNumberRequiredRule = inputPhoneNumberRequiredRule.InputPhoneNumberRequiredRule;
|
|
131
|
+
exports.InputRangeRequiredRule = inputRangeRequiredRule.InputRangeRequiredRule;
|
|
132
|
+
exports.RequiredFieldRule = requiredFieldRule.RequiredFieldRule;
|
|
133
|
+
exports.RichTextEditorRequiredRule = richTextEditorRequiredRule.RichTextEditorRequiredRule;
|
|
134
|
+
exports.TimeRangeRequiredRule = timeRequiredRule.TimeRangeRequiredRule;
|
|
135
|
+
exports.TimeRequiredRule = timeRequiredRule.TimeRequiredRule;
|
|
136
|
+
exports.ToggleSwitchRequiredRule = toggleSwitchRequiredRule.ToggleSwitchRequiredRule;
|
|
137
|
+
exports.FileUploaderRequiredRule = fileUploaderRequiredRule.FileUploaderRequiredRule;
|
|
118
138
|
exports.Rings = Rings;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const internalFormFieldValidationRule_abstract = require('./internal-form-field-validation-rule.abstract-07cdff46.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A rule that checks if input phone number is empty or not
|
|
7
|
+
*
|
|
8
|
+
* @augments {InternalFormFieldValidationRule<string>}
|
|
9
|
+
*/
|
|
10
|
+
class InputPhoneNumberRequiredRule extends internalFormFieldValidationRule_abstract.InternalFormFieldValidationRule {
|
|
11
|
+
constructor(phoneNumberValueGetter) {
|
|
12
|
+
super();
|
|
13
|
+
this.phoneNumberValueGetter = phoneNumberValueGetter;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* It checks if the input is a valid value.
|
|
17
|
+
*
|
|
18
|
+
* @param {unknown} input - The value of the input field.
|
|
19
|
+
* @returns {EvaluateResult} An object with two properties: isValid and message.
|
|
20
|
+
*/
|
|
21
|
+
evaluate(input) {
|
|
22
|
+
if (!this.isAcceptedInputType(input)) {
|
|
23
|
+
throw new Error(`Invalid value ${input} for input phone number`);
|
|
24
|
+
}
|
|
25
|
+
const isValid = this.phoneNumberValueGetter() !== '';
|
|
26
|
+
return {
|
|
27
|
+
isValid,
|
|
28
|
+
message: isValid ? '' : 'This field is required',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* If the input is accepted and the status is not disabled and visible, then return true
|
|
33
|
+
*
|
|
34
|
+
* @param {unknown} input - The input to be evaluated.
|
|
35
|
+
* @param {FormFieldStatusMeta} [status] - FormFieldStatusMeta
|
|
36
|
+
* @returns {boolean} A boolean value.
|
|
37
|
+
*/
|
|
38
|
+
canEvaluate(input, status) {
|
|
39
|
+
return status
|
|
40
|
+
? this.isAcceptedInputType(input) && !status.disabled && status.visible
|
|
41
|
+
: this.isAcceptedInputType(input);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* If the field is not disabled, visible, and has been touched or modified, then show the error
|
|
45
|
+
*
|
|
46
|
+
* @param {FormFieldStatusMeta} status - FormFieldStatusMeta
|
|
47
|
+
* @returns {boolean} A boolean value.
|
|
48
|
+
*/
|
|
49
|
+
shouldShowError(status) {
|
|
50
|
+
return !status.disabled && status.visible && (status.touched || status.modified);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* If the input is undefined or null, return true, otherwise return true if the input is a string.
|
|
54
|
+
*
|
|
55
|
+
* @param {unknown} input - The input value to be validated.
|
|
56
|
+
* @returns {boolean}A boolean.
|
|
57
|
+
*/
|
|
58
|
+
isAcceptedInputType(input) {
|
|
59
|
+
if (input === undefined || input === null)
|
|
60
|
+
return true;
|
|
61
|
+
return typeof input === 'string';
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
exports.InputPhoneNumberRequiredRule = InputPhoneNumberRequiredRule;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const internalFormFieldValidationRule_abstract = require('./internal-form-field-validation-rule.abstract-07cdff46.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A rule that checks if the input range is empty or not
|
|
7
|
+
*
|
|
8
|
+
* @augments {InternalFormFieldValidationRule<string[]>}
|
|
9
|
+
*/
|
|
10
|
+
class InputRangeRequiredRule extends internalFormFieldValidationRule_abstract.InternalFormFieldValidationRule {
|
|
11
|
+
/**
|
|
12
|
+
* It checks if the input is a valid value.
|
|
13
|
+
*
|
|
14
|
+
* @param {string[]} input - The value of the input field.
|
|
15
|
+
* @returns {EvaluateResult} An object with two properties: isValid and message.
|
|
16
|
+
*/
|
|
17
|
+
evaluate(input) {
|
|
18
|
+
if (!this.isAcceptedInputType(input)) {
|
|
19
|
+
throw new Error(`Invalid value ${input} for input range`);
|
|
20
|
+
}
|
|
21
|
+
const isValid = Array.isArray(input) &&
|
|
22
|
+
input.length === 2 &&
|
|
23
|
+
input.every((item) => !!item || item == '0');
|
|
24
|
+
return {
|
|
25
|
+
isValid,
|
|
26
|
+
message: isValid ? '' : 'This field is required',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* If the input is accepted and the status is not disabled and visible, then return true
|
|
31
|
+
*
|
|
32
|
+
* @param {unknown} input - The input to be evaluated.
|
|
33
|
+
* @param {FormFieldStatusMeta} [status] - FormFieldStatusMeta
|
|
34
|
+
* @returns {boolean} A boolean value.
|
|
35
|
+
*/
|
|
36
|
+
canEvaluate(input, status) {
|
|
37
|
+
return status
|
|
38
|
+
? this.isAcceptedInputType(input) && !status.disabled && status.visible
|
|
39
|
+
: this.isAcceptedInputType(input);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* If the field is not disabled, visible, and has been touched or modified, then show the error
|
|
43
|
+
*
|
|
44
|
+
* @param {FormFieldStatusMeta} status - FormFieldStatusMeta
|
|
45
|
+
* @returns {boolean} A boolean value.
|
|
46
|
+
*/
|
|
47
|
+
shouldShowError(status) {
|
|
48
|
+
return !status.disabled && status.visible && (status.touched || status.modified);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* If the input is undefined or null, return true, otherwise return true if the input is a string.
|
|
52
|
+
*
|
|
53
|
+
* @param {unknown} input - The input value to be validated.
|
|
54
|
+
* @returns {boolean}A boolean.
|
|
55
|
+
*/
|
|
56
|
+
isAcceptedInputType(input) {
|
|
57
|
+
if (input === undefined || input === null)
|
|
58
|
+
return true;
|
|
59
|
+
return Array.isArray(input);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
exports.InputRangeRequiredRule = InputRangeRequiredRule;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Abstract class for internal form field validation rules
|
|
5
|
+
*/
|
|
6
|
+
class InternalFormFieldValidationRule {
|
|
7
|
+
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* Whether to override the default validation rule.
|
|
10
|
+
*/
|
|
11
|
+
this.overrideDefault = false;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
exports.InternalFormFieldValidationRule = InternalFormFieldValidationRule;
|