@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
|
@@ -2,12 +2,10 @@ import { VegaRTETextBlock, VegaRTETextBlockType, VegaRTEBlockAnnotations, VegaRT
|
|
|
2
2
|
import { RTETextNode } from '../nodes/text-node';
|
|
3
3
|
import { Nullable } from '../../../../types/general';
|
|
4
4
|
import { BlockAnnotation, BlockAnnotationTypeEnum } from '../annotations/block-annotation.abstract';
|
|
5
|
-
import { ModifyContentAction } from '../actions/modify-content-action.abstract';
|
|
6
5
|
import { VegaRTEContent } from '../content-state';
|
|
7
6
|
import { RTEBlock } from './block.abstract';
|
|
8
7
|
import { AnnotationAction } from '../actions/annotation-action.abstract';
|
|
9
8
|
import { RTEListBlock } from './list-block';
|
|
10
|
-
import { DeleteBlockContentAction } from '../actions/delete-block-content-action';
|
|
11
9
|
/**
|
|
12
10
|
* Text block
|
|
13
11
|
*/
|
|
@@ -69,99 +67,13 @@ export declare class RTETextBlock extends RTEBlock {
|
|
|
69
67
|
*/
|
|
70
68
|
getLastNode(): RTETextNode;
|
|
71
69
|
/**
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
protected doAnnotationActionApply(action: AnnotationAction): void;
|
|
75
|
-
/**
|
|
76
|
-
* Apply a modify action to block
|
|
77
|
-
*
|
|
78
|
-
* @param {ModifyContentAction} action - Modify action
|
|
79
|
-
*/
|
|
80
|
-
protected doModifyActionApply(action: ModifyContentAction): void;
|
|
81
|
-
/**
|
|
82
|
-
* Splits a text node at a specified offset within a block of nodes and returns a new block with the split nodes.
|
|
83
|
-
*
|
|
84
|
-
* @param {RTETextNode} splitNode - The text node that will be split
|
|
85
|
-
* @param {number} startOffsetOfNode - The index at which will split the text content of the `splitNode`.
|
|
86
|
-
* @returns {Nullable<RTEBlock>} return either an RTEBlock object or null.
|
|
87
|
-
*/
|
|
88
|
-
protected splitTextNodeBlock(splitNode: RTETextNode, startOffsetOfNode: number): Nullable<RTEBlock>;
|
|
89
|
-
/**
|
|
90
|
-
* Checks if the caret position is at the start of a specified RTETextNode.
|
|
91
|
-
*
|
|
92
|
-
* @param {RTETextNode} node - `RTETextNode` - a node representing an image in a rich text editor.
|
|
93
|
-
* @param {number} startOffset - The position within the text node where the caret is located.
|
|
94
|
-
* @returns {boolean} a boolean value, which indicates whether the caret position is at the start of the RTETextNode.
|
|
95
|
-
*/
|
|
96
|
-
protected isCaretPositionAtStart(node: RTETextNode, startOffset: number): boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Checks if the caret position is at the end of a specified RTETextNode.
|
|
99
|
-
*
|
|
100
|
-
* @param {RTETextNode} node - `RTETextNode` - a node representing an image in a rich text editor.
|
|
101
|
-
* @param {number} startOffset - The position within the text node where the caret is located.
|
|
102
|
-
* @returns {boolean} a boolean value, which indicates whether the caret position is at the start of the RTETextNode.
|
|
103
|
-
*/
|
|
104
|
-
protected isCaretPositionAtEnd(node: RTETextNode, startOffset: number): boolean;
|
|
105
|
-
/**
|
|
106
|
-
* lineBreakSingleBlock
|
|
107
|
-
*
|
|
108
|
-
* @param {RTETextNode} splitNode -
|
|
109
|
-
* @param {number} startOffsetOfNode -
|
|
110
|
-
* @returns {Nullable<RTETextNode>} Nullable<RTETextNode>
|
|
111
|
-
*/
|
|
112
|
-
protected lineBreakSingleBlock(splitNode: RTETextNode, startOffsetOfNode: number): Nullable<RTETextNode>;
|
|
113
|
-
/**
|
|
114
|
-
* lineBreakMultipleBlocks
|
|
115
|
-
*
|
|
116
|
-
* @param {RTEBlock[]} selectedBlocks -
|
|
117
|
-
* @returns {Nullable<RTETextNode>} Nullable<RTETextNode>
|
|
118
|
-
*/
|
|
119
|
-
protected lineBreakMultipleBlocks(selectedBlocks: RTEBlock[]): Nullable<RTETextNode>;
|
|
120
|
-
/**
|
|
121
|
-
* deleteNodeContent
|
|
122
|
-
*
|
|
123
|
-
* @param {DeleteBlockContentAction} action - ModifyContentAction
|
|
124
|
-
*/
|
|
125
|
-
protected deleteNodeContent(action: DeleteBlockContentAction): void;
|
|
126
|
-
/**
|
|
127
|
-
* Remove the child node
|
|
128
|
-
*
|
|
129
|
-
* @param {RemoveChildAction} action - Modify action
|
|
130
|
-
*/
|
|
131
|
-
private removeChildNode;
|
|
132
|
-
/**
|
|
133
|
-
* mergeLineBreakNodes
|
|
134
|
-
*
|
|
135
|
-
* @param {RTENode[]} beforeNodes -
|
|
136
|
-
* @param {RTETextNode} lineBreakNode -
|
|
137
|
-
* @param {RTENode[]} afterNodes -
|
|
138
|
-
*/
|
|
139
|
-
private mergeLineBreakNodes;
|
|
140
|
-
/**
|
|
141
|
-
* breakSingleTextBlock
|
|
142
|
-
*
|
|
143
|
-
* @param {RTETextNode} splitNode -
|
|
144
|
-
* @param {number} startOffsetOfNode -
|
|
145
|
-
* @returns {Nullable<RTEBlock>} Nullable<RTEBlock>
|
|
146
|
-
*/
|
|
147
|
-
private breakSingleTextBlock;
|
|
148
|
-
/**
|
|
149
|
-
* convertParagraphToList
|
|
150
|
-
*
|
|
151
|
-
* @param {TransformListAction} action - ModifyContentAction
|
|
152
|
-
*/
|
|
153
|
-
private convertParagraphToList;
|
|
154
|
-
/**
|
|
155
|
-
* insertImage
|
|
70
|
+
* Create new empty paragraph.
|
|
156
71
|
*
|
|
157
|
-
* @
|
|
72
|
+
* @returns {RTETextBlock} Paragraph.
|
|
158
73
|
*/
|
|
159
|
-
|
|
74
|
+
createNewParagraph(): RTETextBlock;
|
|
160
75
|
/**
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
* @param {RTETextNode} needCopedNode -
|
|
164
|
-
* @returns {RTETextBlock} RTETextBlock
|
|
76
|
+
* @inheritDoc
|
|
165
77
|
*/
|
|
166
|
-
|
|
78
|
+
protected doAnnotationActionApply(action: AnnotationAction): void;
|
|
167
79
|
}
|
|
@@ -2,12 +2,11 @@ import { RTEContentBlock, VegaRTEContentBlock, ListType } from '../interface';
|
|
|
2
2
|
import { RTEListBlock } from './blocks/list-block';
|
|
3
3
|
import { RTETextBlock } from './blocks/text-block';
|
|
4
4
|
import { ModifyContentAction } from './actions/modify-content-action.abstract';
|
|
5
|
-
import { BlockBaseOperator } from './helper/block-base-operator';
|
|
6
5
|
import { RTEListItemBlock } from './blocks/list-item-block';
|
|
7
6
|
/**
|
|
8
7
|
* Class representing the content state of the rich text editor.
|
|
9
8
|
*/
|
|
10
|
-
export declare class VegaRTEContent
|
|
9
|
+
export declare class VegaRTEContent {
|
|
11
10
|
blocks: RTEContentBlock[];
|
|
12
11
|
constructor(blocks: RTEContentBlock[]);
|
|
13
12
|
/**
|
|
@@ -56,14 +56,6 @@ export declare class RTETextNode extends RTENode {
|
|
|
56
56
|
* @inheritDoc
|
|
57
57
|
*/
|
|
58
58
|
protected doModifyActionApply(action: ModifyContentAction): void;
|
|
59
|
-
/**
|
|
60
|
-
* Split text node with range
|
|
61
|
-
*
|
|
62
|
-
* @param {TextSplittableAction} action - Annotation action
|
|
63
|
-
* @param {Range} range - Selection range
|
|
64
|
-
* @returns {RTETextNode[] | this} RTETextNode array
|
|
65
|
-
*/
|
|
66
|
-
private splitTextNode;
|
|
67
59
|
/**
|
|
68
60
|
* Apply action to node
|
|
69
61
|
*
|
|
@@ -71,45 +63,10 @@ export declare class RTETextNode extends RTENode {
|
|
|
71
63
|
* @param {AnnotationAction} action - AnnotationAction
|
|
72
64
|
*/
|
|
73
65
|
private applyActionToNode;
|
|
74
|
-
/**
|
|
75
|
-
* Replaces the selected text within a given range with a new text in a TypeScript class.
|
|
76
|
-
*
|
|
77
|
-
* @param {string} text - The new text that will replace the currently selected text within the specified range.
|
|
78
|
-
* @param {RTERange} currentRange - A range of text within a Rich Text Editor (RTE).
|
|
79
|
-
*/
|
|
80
|
-
private replaceSelectedText;
|
|
81
|
-
/**
|
|
82
|
-
* Updates the text content of a node and unlink the node if it is a link node and the text is deleted.
|
|
83
|
-
*
|
|
84
|
-
* @param {string} newText - The new text string
|
|
85
|
-
*/
|
|
86
|
-
private updateText;
|
|
87
|
-
/**
|
|
88
|
-
* Checks if a node has an annotation with the key 'LINK'.
|
|
89
|
-
*
|
|
90
|
-
* @returns {boolean} A boolean value indicating whether the `annotationMap` has a key 'LINK'.
|
|
91
|
-
*/
|
|
92
|
-
private isLinkNode;
|
|
93
|
-
/**
|
|
94
|
-
* Whether a given range should be split based on various conditions within the range.
|
|
95
|
-
*
|
|
96
|
-
* @param {Range} range - Selection range
|
|
97
|
-
* @returns {boolean} Returns a boolean value indicating whether the
|
|
98
|
-
* selection range should be split.
|
|
99
|
-
*/
|
|
100
|
-
private shouldSplitSelection;
|
|
101
66
|
/**
|
|
102
67
|
* Sync up the selected node by change manager
|
|
103
68
|
*
|
|
104
69
|
* @param {RTETextNode} selectedNode - The selected node
|
|
105
70
|
*/
|
|
106
71
|
private syncUpSelectedNodes;
|
|
107
|
-
/**
|
|
108
|
-
* Insert the new node at the start offset
|
|
109
|
-
*
|
|
110
|
-
* @param {number} startOffset - The start position offset
|
|
111
|
-
* @param {AnnotationAction} action - AnnotationAction
|
|
112
|
-
* @returns {RTETextNode[]} - RTETextNode array
|
|
113
|
-
*/
|
|
114
|
-
private insertNewNode;
|
|
115
72
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -13,6 +13,7 @@ export declare class VegaTooltipElementAppenderController extends ElementAppende
|
|
|
13
13
|
alignment: VegaTooltip['alignment'];
|
|
14
14
|
trigger: VegaTooltip['trigger'];
|
|
15
15
|
disableInteractive: VegaTooltip['disableInteractive'];
|
|
16
|
+
deprecatedPropertySlimmer: VegaTooltip['deprecatedPropertySlimmer'];
|
|
16
17
|
isTooltipShow: VegaTooltip['isTooltipShow'];
|
|
17
18
|
vegaTooltipContentBoxRenderer: VegaTooltip['vegaTooltipContentBoxRenderer'];
|
|
18
19
|
/**
|
|
@@ -27,4 +28,21 @@ export declare class VegaTooltipElementAppenderController extends ElementAppende
|
|
|
27
28
|
* The function `watchToShowTooltip` checks if the tooltip should be shown and then displays it if necessary.
|
|
28
29
|
*/
|
|
29
30
|
watchToShowTooltip(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Hide the tooltip if the content change to empty.
|
|
33
|
+
*
|
|
34
|
+
* @param {string} newText - The property text or content new value.
|
|
35
|
+
* @param {string} oldText - The property text or content old value.
|
|
36
|
+
*/
|
|
37
|
+
watchTextChange(newText: string, oldText: string): void;
|
|
38
|
+
/**
|
|
39
|
+
* Override the parent class `ElementAppenderSlimmer` show method to control the tooltip show according to the tooltip content.
|
|
40
|
+
*/
|
|
41
|
+
show(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Generate the element appender show config object.
|
|
44
|
+
*
|
|
45
|
+
* @returns {ElementAppenderShowConfig} - Show config object.
|
|
46
|
+
*/
|
|
47
|
+
private getShowConfig;
|
|
30
48
|
}
|
|
@@ -69,6 +69,10 @@ export declare class VegaTooltip {
|
|
|
69
69
|
* @vegaVersion 2.0.0
|
|
70
70
|
*/
|
|
71
71
|
text: string;
|
|
72
|
+
/**
|
|
73
|
+
* Monitor the property text updates.
|
|
74
|
+
*/
|
|
75
|
+
watchTextChange(): void;
|
|
72
76
|
/**
|
|
73
77
|
* Specifies the vertical positioning of the tooltip
|
|
74
78
|
* within its container or relative to a reference point.
|
|
@@ -2628,6 +2628,13 @@ export namespace Components {
|
|
|
2628
2628
|
* @vegaVersion 1.22.0
|
|
2629
2629
|
*/
|
|
2630
2630
|
"hide": () => Promise<void>;
|
|
2631
|
+
/**
|
|
2632
|
+
* Determines whether the popover's position is calculated relative to the screen.
|
|
2633
|
+
* @VegaWarning When enabled (set to true), it overrides the positionRelativeTo property, making it ineffective.
|
|
2634
|
+
* @VegaWarning Currently, when set to true, the position calculation may be inaccurate if the popover is placed inside a scrollable container within a shadowRoot (e.g., inside a vega-modal with scrollable content).
|
|
2635
|
+
* @vegaVersion 2.39.0
|
|
2636
|
+
*/
|
|
2637
|
+
"isScreenPosition": boolean;
|
|
2631
2638
|
/**
|
|
2632
2639
|
* Specifies the placement or position of the popover in relation to its parent element. If there is insufficient space to display the popover in the default position, it will automatically adjust its placement based on the following order: `top`, `left`, `bottom`, `right`.
|
|
2633
2640
|
* @vegaVersion 1.19.0
|
|
@@ -8078,6 +8085,13 @@ declare namespace LocalJSX {
|
|
|
8078
8085
|
* @vegaVersion 1.19.0
|
|
8079
8086
|
*/
|
|
8080
8087
|
"alignment"?: PositionAlignmentType;
|
|
8088
|
+
/**
|
|
8089
|
+
* Determines whether the popover's position is calculated relative to the screen.
|
|
8090
|
+
* @VegaWarning When enabled (set to true), it overrides the positionRelativeTo property, making it ineffective.
|
|
8091
|
+
* @VegaWarning Currently, when set to true, the position calculation may be inaccurate if the popover is placed inside a scrollable container within a shadowRoot (e.g., inside a vega-modal with scrollable content).
|
|
8092
|
+
* @vegaVersion 2.39.0
|
|
8093
|
+
*/
|
|
8094
|
+
"isScreenPosition"?: boolean;
|
|
8081
8095
|
/**
|
|
8082
8096
|
* An event emitter notifying the popover hide event.
|
|
8083
8097
|
* @eventSemantics namespace:native
|
|
@@ -33,6 +33,7 @@ export declare class ElementAppenderSlimmer extends VegaSlimmer {
|
|
|
33
33
|
hide(): void;
|
|
34
34
|
destroy(): void;
|
|
35
35
|
updateShowConfigFactory(showConfigFactory: ShowConfigFactoryType): void;
|
|
36
|
+
private destroyElementAppender;
|
|
36
37
|
private initElementAppender;
|
|
37
38
|
private setElementAppender;
|
|
38
39
|
private isShowing;
|
|
@@ -5,6 +5,7 @@ import { Nullable } from '../../types/general';
|
|
|
5
5
|
import { FieldErrorControllerSlimmer } from './field-error-controller-silmmer';
|
|
6
6
|
import { FormFieldValidInvokeSlimmer } from './form-field-valid-invoke-slimmer';
|
|
7
7
|
import { MutationObserverSlimmer } from './mutation-observer/mutation-observer-slimmer';
|
|
8
|
+
import { InternalFormFieldValidationRule } from '../validator/rules/internal-form-field-validation-rule.abstract';
|
|
8
9
|
export declare type FormFieldOptionForSlimmer<T> = {
|
|
9
10
|
propertyRules: PropertyRuleTypeForSlimmer<T>[];
|
|
10
11
|
validationRulesName?: string;
|
|
@@ -13,7 +14,7 @@ export declare type FormFieldOptionForSlimmer<T> = {
|
|
|
13
14
|
inputContainerGetter: () => Nullable<HTMLElement>;
|
|
14
15
|
touchableAreaGetter: () => HTMLElement[];
|
|
15
16
|
};
|
|
16
|
-
declare type RuleFactory<T> = (propValue: unknown, ...dependence: unknown[]) =>
|
|
17
|
+
declare type RuleFactory<T> = (propValue: unknown, ...dependence: unknown[]) => InternalFormFieldValidationRule<T> | null;
|
|
17
18
|
export declare type PropertyRuleTypeForSlimmer<T> = {
|
|
18
19
|
propertyName: string;
|
|
19
20
|
ruleFactory: RuleFactory<T>;
|
|
@@ -244,4 +244,14 @@ export declare class FormFieldController<T> implements Validator<T> {
|
|
|
244
244
|
* @returns {boolean} a boolean value.
|
|
245
245
|
*/
|
|
246
246
|
private canSubmitFormByEvent;
|
|
247
|
+
/**
|
|
248
|
+
* It overrides the default rule by checking if the additional rules contain a custom rule that overrides.
|
|
249
|
+
* If it does, it returns that additional rule, and the rule will be removed from the additional rules array.
|
|
250
|
+
* otherwise, it returns the default rule.
|
|
251
|
+
*
|
|
252
|
+
* @param {InternalFormFieldValidationRule} defaultRule - The rule to be overridden.
|
|
253
|
+
* @param {FormFieldValidationRule[]} additionalRules - The additional rules to be applied.
|
|
254
|
+
* @returns {FormFieldValidationRule} The overridden rule.
|
|
255
|
+
*/
|
|
256
|
+
private overrideDefaultRuleByAdditionalRule;
|
|
247
257
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { CheckBoxRequiredRule } from './rules/check-box-required-rule';
|
|
2
|
+
export { DateRequiredRule } from './rules/date-required-rule';
|
|
3
|
+
export { InputPhoneNumberRequiredRule } from './rules/input-phone-number-required-rule';
|
|
4
|
+
export { InputRangeRequiredRule } from './rules/input-range-required-rule';
|
|
5
|
+
export { RequiredFieldRule } from './rules/required-field-rule';
|
|
6
|
+
export { RichTextEditorRequiredRule } from './rules/rich-text-editor-required-rule';
|
|
7
|
+
export { TimeRangeRequiredRule } from './rules/time-range-required-rule';
|
|
8
|
+
export { TimeRequiredRule } from './rules/time-required-rule';
|
|
9
|
+
export { ToggleSwitchRequiredRule } from './rules/toggle-switch-required-rule';
|
|
10
|
+
export { FileUploaderRequiredRule } from './rules/file-uploader-required-rule';
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { Primitive } from '../../../types/general';
|
|
2
|
-
import { FormFieldStatusMeta
|
|
3
|
-
import {
|
|
2
|
+
import { FormFieldStatusMeta } from './form-field-validation-rule';
|
|
3
|
+
import { EvaluateResult } from './validation-rule';
|
|
4
|
+
import { InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract';
|
|
4
5
|
/**
|
|
5
6
|
* A rule that checks if a string is empty or not
|
|
6
7
|
*
|
|
7
|
-
* @
|
|
8
|
+
* @augments {InternalFormFieldValidationRule<string>}
|
|
8
9
|
*/
|
|
9
|
-
export declare class CheckBoxRequiredRule
|
|
10
|
+
export declare class CheckBoxRequiredRule extends InternalFormFieldValidationRule<Primitive | Array<Primitive>> {
|
|
10
11
|
/**
|
|
11
12
|
* If the input is a boolean, return a boolean. If the input is a string, return a boolean. If the
|
|
12
13
|
* input is anything else, return false
|
|
13
14
|
*
|
|
14
15
|
* @param {string | boolean} input - The input to be evaluated.
|
|
15
|
-
* @returns {
|
|
16
|
+
* @returns {EvaluateResult} - An object with two properties: isValid and message.
|
|
16
17
|
*/
|
|
17
|
-
evaluate(input: string | boolean):
|
|
18
|
+
evaluate(input: string | boolean): EvaluateResult;
|
|
18
19
|
/**
|
|
19
20
|
* If the input is accepted and the status is not disabled and visible, then return true
|
|
20
21
|
*
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FormFieldStatusMeta
|
|
1
|
+
import { FormFieldStatusMeta } from './form-field-validation-rule';
|
|
2
2
|
import { DatePickerModeType, DatePickerValueType } from '../../../components/vega-date-picker/types';
|
|
3
3
|
import { EvaluateResultTranslation } from './validation-rule';
|
|
4
|
+
import { InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract';
|
|
4
5
|
/**
|
|
5
6
|
* A rule that checks if start date is before than end date
|
|
6
7
|
*/
|
|
7
|
-
export declare class DateRangeRule
|
|
8
|
+
export declare class DateRangeRule extends InternalFormFieldValidationRule<DatePickerValueType<DatePickerModeType>> {
|
|
8
9
|
/**
|
|
9
10
|
* If the input is accepted and the status is not disabled and visible, then return true
|
|
10
11
|
*
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { FormFieldStatusMeta
|
|
1
|
+
import { FormFieldStatusMeta } from './form-field-validation-rule';
|
|
2
2
|
import { DatePickerModeType, DatePickerValueType } from '../../../components/vega-date-picker/types';
|
|
3
|
-
import {
|
|
3
|
+
import { EvaluateResult } from './validation-rule';
|
|
4
|
+
import { InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract';
|
|
4
5
|
/**
|
|
5
6
|
* A rule that checks if date is empty or not
|
|
6
7
|
*
|
|
7
|
-
* @
|
|
8
|
+
* @augments {InternalFormFieldValidationRule<string | string[]>}
|
|
8
9
|
*/
|
|
9
|
-
export declare class DateRequiredRule
|
|
10
|
+
export declare class DateRequiredRule extends InternalFormFieldValidationRule<DatePickerValueType<DatePickerModeType>> {
|
|
10
11
|
private readonly config;
|
|
11
12
|
/**
|
|
12
13
|
* It creates a new instance of the class with the given config.
|
|
@@ -22,9 +23,9 @@ export declare class DateRequiredRule implements FormFieldValidationRule<DatePic
|
|
|
22
23
|
* Otherwise, return an object with a boolean indicating whether the input is valid and a message to display to the user
|
|
23
24
|
*
|
|
24
25
|
* @param {string | string[]} input - The value of the input field.
|
|
25
|
-
* @returns {
|
|
26
|
+
* @returns {EvaluateResult} An object with two properties: isValid and message.
|
|
26
27
|
*/
|
|
27
|
-
evaluate(input: DatePickerValueType<DatePickerModeType>):
|
|
28
|
+
evaluate(input: DatePickerValueType<DatePickerModeType>): EvaluateResult;
|
|
28
29
|
/**
|
|
29
30
|
* If the input is accepted and the status is not disabled and visible, then return true
|
|
30
31
|
*
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { FormFieldStatusMeta
|
|
1
|
+
import { FormFieldStatusMeta } from './form-field-validation-rule';
|
|
2
2
|
import { EvaluateResultTranslation } from './validation-rule';
|
|
3
|
+
import { InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract';
|
|
3
4
|
/**
|
|
4
5
|
* This class is a rule that checks if the input is a valid email address
|
|
5
6
|
*
|
|
6
|
-
* @
|
|
7
|
+
* @augments {InternalFormFieldValidationRule<string>}
|
|
7
8
|
*/
|
|
8
|
-
export declare class EmailFieldRule
|
|
9
|
+
export declare class EmailFieldRule extends InternalFormFieldValidationRule<string> {
|
|
9
10
|
/**
|
|
10
11
|
* It checks if the input is a valid email address.
|
|
11
12
|
*
|
|
@@ -2,7 +2,7 @@ import { RequiredFieldRule } from './required-field-rule';
|
|
|
2
2
|
/**
|
|
3
3
|
* A rule that checks the value is empty or not which value type is object array
|
|
4
4
|
*/
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class FileUploaderRequiredRule extends RequiredFieldRule {
|
|
6
6
|
/**
|
|
7
7
|
* re-define the object array check item type method
|
|
8
8
|
*
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { FormFieldStatusMeta
|
|
2
|
-
import {
|
|
1
|
+
import { FormFieldStatusMeta } from './form-field-validation-rule';
|
|
2
|
+
import { EvaluateResult } from './validation-rule';
|
|
3
|
+
import { InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract';
|
|
3
4
|
/**
|
|
4
5
|
* A rule that checks if input phone number is empty or not
|
|
5
6
|
*
|
|
6
|
-
* @
|
|
7
|
+
* @augments {InternalFormFieldValidationRule<string>}
|
|
7
8
|
*/
|
|
8
|
-
export declare class InputPhoneNumberRequiredRule
|
|
9
|
+
export declare class InputPhoneNumberRequiredRule extends InternalFormFieldValidationRule<string> {
|
|
9
10
|
private readonly phoneNumberValueGetter;
|
|
10
11
|
constructor(phoneNumberValueGetter: () => string);
|
|
11
12
|
/**
|
|
12
13
|
* It checks if the input is a valid value.
|
|
13
14
|
*
|
|
14
15
|
* @param {unknown} input - The value of the input field.
|
|
15
|
-
* @returns {
|
|
16
|
+
* @returns {EvaluateResult} An object with two properties: isValid and message.
|
|
16
17
|
*/
|
|
17
|
-
evaluate(input: unknown):
|
|
18
|
+
evaluate(input: unknown): EvaluateResult;
|
|
18
19
|
/**
|
|
19
20
|
* If the input is accepted and the status is not disabled and visible, then return true
|
|
20
21
|
*
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { FormFieldStatusMeta
|
|
1
|
+
import { FormFieldStatusMeta } from './form-field-validation-rule';
|
|
2
2
|
import { EvaluateResultTranslation } from './validation-rule';
|
|
3
|
+
import { InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract';
|
|
3
4
|
/**
|
|
4
5
|
* A rule that checks if number is in min and max range
|
|
5
6
|
*/
|
|
6
|
-
export declare class InputRangeMinAndMaxRule
|
|
7
|
+
export declare class InputRangeMinAndMaxRule extends InternalFormFieldValidationRule<[string, string]> {
|
|
7
8
|
private readonly minValue;
|
|
8
9
|
private readonly maxValue;
|
|
9
10
|
/**
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { FormFieldStatusMeta
|
|
2
|
-
import {
|
|
1
|
+
import { FormFieldStatusMeta } from './form-field-validation-rule';
|
|
2
|
+
import { EvaluateResult } from './validation-rule';
|
|
3
|
+
import { InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract';
|
|
3
4
|
/**
|
|
4
|
-
* A rule that checks if input range is empty or not
|
|
5
|
+
* A rule that checks if the input range is empty or not
|
|
5
6
|
*
|
|
6
|
-
* @
|
|
7
|
+
* @augments {InternalFormFieldValidationRule<string[]>}
|
|
7
8
|
*/
|
|
8
|
-
export declare class InputRangeRequiredRule
|
|
9
|
+
export declare class InputRangeRequiredRule extends InternalFormFieldValidationRule<string[]> {
|
|
9
10
|
/**
|
|
10
11
|
* It checks if the input is a valid value.
|
|
11
12
|
*
|
|
12
13
|
* @param {string[]} input - The value of the input field.
|
|
13
|
-
* @returns {
|
|
14
|
+
* @returns {EvaluateResult} An object with two properties: isValid and message.
|
|
14
15
|
*/
|
|
15
|
-
evaluate(input: unknown):
|
|
16
|
+
evaluate(input: unknown): EvaluateResult;
|
|
16
17
|
/**
|
|
17
18
|
* If the input is accepted and the status is not disabled and visible, then return true
|
|
18
19
|
*
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FormFieldStatusMeta, FormFieldValidationRule } from './form-field-validation-rule';
|
|
2
|
+
import { EvaluateResult } from './validation-rule';
|
|
3
|
+
/**
|
|
4
|
+
* Abstract class for internal form field validation rules
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class InternalFormFieldValidationRule<T> implements FormFieldValidationRule<T> {
|
|
7
|
+
/**
|
|
8
|
+
* Whether to override the default validation rule.
|
|
9
|
+
*/
|
|
10
|
+
overrideDefault: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
abstract canEvaluate(input: unknown, status?: FormFieldStatusMeta, statusChanged?: (keyof FormFieldStatusMeta)[]): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
abstract evaluate(input: T): EvaluateResult | Promise<EvaluateResult>;
|
|
19
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { FormFieldStatusMeta
|
|
1
|
+
import { FormFieldStatusMeta } from './form-field-validation-rule';
|
|
2
2
|
import { EvaluateResultTranslation } from './validation-rule';
|
|
3
|
+
import { InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract';
|
|
3
4
|
/**
|
|
4
5
|
* A rule that checks if the input is less than or equal to a maximum value
|
|
5
6
|
*
|
|
6
|
-
* @
|
|
7
|
+
* @augments {InternalFormFieldValidationRule<string>}
|
|
7
8
|
* @property {{ maxValue: number }} config config including the maxValue limit for validation
|
|
8
9
|
*/
|
|
9
|
-
export declare class MaxNumberRule
|
|
10
|
+
export declare class MaxNumberRule extends InternalFormFieldValidationRule<unknown> {
|
|
10
11
|
private readonly config;
|
|
11
12
|
/**
|
|
12
13
|
* It creates a new instance of the class with the given config.
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { FormFieldStatusMeta
|
|
1
|
+
import { FormFieldStatusMeta } from './form-field-validation-rule';
|
|
2
2
|
import { EvaluateResultTranslation } from './validation-rule';
|
|
3
|
+
import { InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract';
|
|
3
4
|
/**
|
|
4
5
|
* A rule that checks if the length of input is less than or equal to a maximum value
|
|
5
6
|
*
|
|
6
|
-
* @
|
|
7
|
+
* @augments {InternalFormFieldValidationRule<string>}
|
|
7
8
|
* @property {{ maxStrLength: number }} config config including the maxStrLength limit for validation
|
|
8
9
|
*/
|
|
9
|
-
export declare class MaxStringLengthRule
|
|
10
|
+
export declare class MaxStringLengthRule extends InternalFormFieldValidationRule<string> {
|
|
10
11
|
private readonly config;
|
|
11
12
|
/**
|
|
12
13
|
* It creates a new instance of the class with the given config.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { FormFieldStatusMeta
|
|
1
|
+
import { FormFieldStatusMeta } from './form-field-validation-rule';
|
|
2
2
|
import { EvaluateResultTranslation } from './validation-rule';
|
|
3
|
+
import { InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract';
|
|
3
4
|
/**
|
|
4
5
|
* A rule that checks if date is in minDate and maxDate range
|
|
5
6
|
*/
|
|
6
|
-
export declare class MinAndMaxDateRule
|
|
7
|
+
export declare class MinAndMaxDateRule extends InternalFormFieldValidationRule<string | [string, string]> {
|
|
7
8
|
private readonly config;
|
|
8
9
|
private readonly minDate;
|
|
9
10
|
private readonly maxDate;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { FormFieldStatusMeta
|
|
1
|
+
import { FormFieldStatusMeta } from './form-field-validation-rule';
|
|
2
2
|
import { EvaluateResultTranslation } from './validation-rule';
|
|
3
|
+
import { InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract';
|
|
3
4
|
/**
|
|
4
5
|
* A rule that checks if the input is larger than or equal to a minimum value
|
|
5
6
|
*
|
|
6
|
-
* @
|
|
7
|
+
* @augments {InternalFormFieldValidationRule<string>}
|
|
7
8
|
* @property {{ minValue: number }} config config including the minValue limit for validation
|
|
8
9
|
*/
|
|
9
|
-
export declare class MinNumberRule
|
|
10
|
+
export declare class MinNumberRule extends InternalFormFieldValidationRule<unknown> {
|
|
10
11
|
private readonly config;
|
|
11
12
|
/**
|
|
12
13
|
* It creates a new instance of the class with the given config.
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { FormFieldStatusMeta
|
|
1
|
+
import { FormFieldStatusMeta } from './form-field-validation-rule';
|
|
2
2
|
import { EvaluateResultTranslation } from './validation-rule';
|
|
3
|
+
import { InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract';
|
|
3
4
|
/**
|
|
4
5
|
* A rule that checks if the length of input is more than or equal to a minimum value
|
|
5
6
|
*
|
|
6
|
-
* @
|
|
7
|
+
* @augments {InternalFormFieldValidationRule<string>}
|
|
7
8
|
* @property {{ minStrLength: number }} config config including the minStrLength limit for validation
|
|
8
9
|
*/
|
|
9
|
-
export declare class MinStringLengthRule
|
|
10
|
+
export declare class MinStringLengthRule extends InternalFormFieldValidationRule<string> {
|
|
10
11
|
private readonly config;
|
|
11
12
|
/**
|
|
12
13
|
* It creates a new instance of the class with the given config.
|