@globalpayments/vega 2.18.1 → 2.19.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-45048ed9.js → app-globals-80e59c3d.js} +2 -2
- package/dist/cjs/{childNodesEventPreventSlimmer-caaafff9.js → childNodesEventPreventSlimmer-2c25bd69.js} +1 -1
- package/dist/cjs/{eventEmitSlimmer-9a4428ac.js → eventEmitSlimmer-a1a3cc64.js} +1 -1
- package/dist/cjs/{formFieldControllerSlimmer-8b54f14d.js → formFieldControllerSlimmer-6c701dd2.js} +83 -9
- package/dist/cjs/index-1299d729.js +6 -2
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{internalVegaEventManager-de87a0aa.js → internalVegaEventManager-a0291fcc.js} +1 -0
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/vega-accordion.cjs.entry.js +2 -2
- package/dist/cjs/vega-app-header-button.cjs.entry.js +3 -3
- package/dist/cjs/vega-banner.cjs.entry.js +2 -2
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/vega-button-circle.cjs.entry.js +3 -3
- package/dist/cjs/vega-button-group_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-button-link.cjs.entry.js +3 -3
- package/dist/cjs/vega-button.cjs.entry.js +3 -3
- package/dist/cjs/{vega-calendar_2.cjs.entry.js → vega-calendar_3.cjs.entry.js} +419 -157
- package/dist/cjs/vega-carousel.cjs.entry.js +2 -2
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-chip.cjs.entry.js +3 -3
- package/dist/cjs/vega-color-picker.cjs.entry.js +3 -3
- package/dist/cjs/vega-combo-box.cjs.entry.js +4 -4
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-dialog_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +4 -4
- package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
- package/dist/cjs/vega-form.cjs.entry.js +4 -4
- package/dist/cjs/vega-image-uploader.cjs.entry.js +4 -4
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +4 -4
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-range.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-select.cjs.entry.js +5 -5
- package/dist/cjs/vega-input.cjs.entry.js +4 -4
- package/dist/cjs/vega-item-toggle.cjs.entry.js +2 -2
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +2 -2
- package/dist/cjs/vega-pagination.cjs.entry.js +3 -3
- package/dist/cjs/vega-popover_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-progress-tracker.cjs.entry.js +8 -8
- package/dist/cjs/vega-radio_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-segment-control.cjs.entry.js +2 -2
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-signature-capture.cjs.entry.js +511 -0
- package/dist/cjs/{vega-skeleton-loader-controller-c56eb5f8.js → vega-skeleton-loader-controller-0d48e278.js} +1 -1
- package/dist/cjs/vega-stepper.cjs.entry.js +5 -5
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-table_8.cjs.entry.js +3 -3
- package/dist/cjs/vega-textarea.cjs.entry.js +10 -6
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/vega.cjs.js +4 -4
- package/dist/cjs/vegaEnvManager-26352c0a.js +2 -2
- package/dist/collection/collection-manifest.json +9 -1
- package/dist/collection/components/vega-box/vega-box.js +1 -1
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.js +6 -2
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/full-day-event/vega-calendar-full-day-event-more-button-renderer.js +46 -0
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/full-day-event/vega-calendar-full-day-event-renderer.js +36 -4
- package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.js +2 -0
- package/dist/collection/components/vega-calendar/utils/index.js +9 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event/slimmers/controllers/vega-calendar-event-slot-controller.js +76 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event/slimmers/renderers/vega-calendar-event-renderer.js +70 -18
- package/dist/collection/components/vega-calendar/vega-calendar-event/vega-calendar-event.css +35 -6
- package/dist/collection/components/vega-calendar/vega-calendar-event/vega-calendar-event.js +10 -2
- package/dist/collection/components/vega-calendar/vega-calendar-event-slot/vega-calendar-event-slot.css +10 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event-slot/vega-calendar-event-slot.js +55 -0
- package/dist/collection/components/vega-calendar/vega-calendar.css +55 -0
- package/dist/collection/components/vega-calendar/vega-calendar.js +7 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-content-box/vega-dropdown-content-box.css +1 -2
- package/dist/collection/components/vega-input/vega-input.css +6 -3
- package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.css +1 -1
- package/dist/collection/components/vega-input-range/vega-input-range.css +2 -2
- package/dist/collection/components/vega-input-select/vega-input-select.css +6 -5
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.css +19 -8
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +5 -5
- package/dist/collection/components/vega-signature-capture/assets/icons.js +5 -0
- package/dist/collection/components/vega-signature-capture/slimmers/renderers/vega-signature-capture-renderer.js +19 -0
- package/dist/collection/components/vega-signature-capture/slimmers/written-mode/controllers/written-mode-svg-controller.js +220 -0
- package/dist/collection/components/vega-signature-capture/slimmers/written-mode/renderers/written-mode-renderer.js +104 -0
- package/dist/collection/components/vega-signature-capture/vega-signature-capture.css +154 -0
- package/dist/collection/components/vega-signature-capture/vega-signature-capture.js +429 -0
- package/dist/collection/components/vega-stepper/vega-stepper.css +3 -1
- package/dist/collection/components/vega-textarea/vega-textarea.css +7 -0
- package/dist/collection/components/vega-textarea/vega-textarea.js +23 -1
- package/dist/collection/components/vega-time-picker/vega-time-picker.css +7 -4
- package/dist/collection/helpers/change-manager/subject/static-remote-invocation-subject/static-remote-invocation-call-registry.js +59 -0
- package/dist/collection/helpers/change-manager/subject/static-subject/staticSubjectTitle.js +1 -0
- package/dist/collection/helpers/change-manager/test/static-remote-invocation-subject.test.js +14 -0
- package/dist/collection/helpers/event-manager/eventID/componentEventIdMap.js +1 -0
- package/dist/collection/helpers/slimmers/fieldErrorUiControllerSlimmer.js +16 -9
- package/dist/collection/helpers/slimmers/fieldErrorUiControllerStrategies/siblingContainerErrorLabelContainerRetrievalStrategy.js +25 -0
- package/dist/collection/helpers/slimmers/fieldErrorUiControllerStrategies/siblingContainerNestedErrorContainerRetrievalStrategy.js +19 -0
- package/dist/collection/helpers/slimmers/fieldErrorUiControllerStrategies/siblingContainerSelfRetrievalStrategy.js +23 -0
- package/dist/collection/helpers/vega-telemetry-helper/test/vegaEnvManager.test.js +1 -1
- package/dist/collection/helpers/vega-telemetry-helper/vegaEnvManager.js +2 -2
- package/dist/collection/polyfill/test-polyfill/unit/methods.js +10 -4
- package/dist/collection/value-model-adapters/angularNgModelAccessorAdapter.js +1 -0
- package/dist/collection/value-model-adapters/vueComponentVModelAdaptor.js +1 -0
- package/dist/esm/{app-globals-59ad7d73.js → app-globals-b1e3dc8a.js} +2 -2
- package/dist/esm/{childNodesEventPreventSlimmer-dff60444.js → childNodesEventPreventSlimmer-2d3364c6.js} +1 -1
- package/dist/esm/{eventEmitSlimmer-faec6394.js → eventEmitSlimmer-3087be32.js} +1 -1
- package/dist/esm/{formFieldControllerSlimmer-ea050a17.js → formFieldControllerSlimmer-bd240f6a.js} +83 -9
- package/dist/esm/index-c3505689.js +6 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/{internalVegaEventManager-6f331cf5.js → internalVegaEventManager-7c0f128e.js} +1 -0
- package/dist/esm/loader.js +4 -4
- package/dist/esm/vega-accordion.entry.js +2 -2
- package/dist/esm/vega-app-header-button.entry.js +3 -3
- package/dist/esm/vega-banner.entry.js +2 -2
- package/dist/esm/vega-breadcrumb.entry.js +3 -3
- package/dist/esm/vega-button-circle.entry.js +3 -3
- package/dist/esm/vega-button-group_2.entry.js +3 -3
- package/dist/esm/vega-button-link.entry.js +3 -3
- package/dist/esm/vega-button.entry.js +3 -3
- package/dist/esm/{vega-calendar_2.entry.js → vega-calendar_3.entry.js} +419 -158
- package/dist/esm/vega-carousel.entry.js +2 -2
- package/dist/esm/vega-checkbox_2.entry.js +4 -4
- package/dist/esm/vega-chip.entry.js +3 -3
- package/dist/esm/vega-color-picker.entry.js +3 -3
- package/dist/esm/vega-combo-box.entry.js +4 -4
- package/dist/esm/vega-date-picker_2.entry.js +4 -4
- package/dist/esm/vega-dialog_2.entry.js +3 -3
- package/dist/esm/vega-dropdown_5.entry.js +4 -4
- package/dist/esm/vega-field-label.entry.js +3 -3
- package/dist/esm/vega-form.entry.js +4 -4
- package/dist/esm/vega-image-uploader.entry.js +4 -4
- package/dist/esm/vega-input-credit-card.entry.js +4 -4
- package/dist/esm/vega-input-phone-number.entry.js +5 -5
- package/dist/esm/vega-input-range.entry.js +5 -5
- package/dist/esm/vega-input-select.entry.js +5 -5
- package/dist/esm/vega-input.entry.js +4 -4
- package/dist/esm/vega-item-toggle.entry.js +2 -2
- package/dist/esm/vega-left-nav_5.entry.js +2 -2
- package/dist/esm/vega-pagination.entry.js +3 -3
- package/dist/esm/vega-popover_2.entry.js +2 -2
- package/dist/esm/vega-progress-tracker.entry.js +8 -8
- package/dist/esm/vega-radio_2.entry.js +4 -4
- package/dist/esm/vega-segment-control.entry.js +2 -2
- package/dist/esm/vega-selection-tile_2.entry.js +4 -4
- package/dist/esm/vega-signature-capture.entry.js +507 -0
- package/dist/esm/{vega-skeleton-loader-controller-aaee27b8.js → vega-skeleton-loader-controller-961112bb.js} +1 -1
- package/dist/esm/vega-stepper.entry.js +5 -5
- package/dist/esm/vega-tab-group_2.entry.js +3 -3
- package/dist/esm/vega-table_8.entry.js +3 -3
- package/dist/esm/vega-textarea.entry.js +10 -6
- package/dist/esm/vega-time-picker_2.entry.js +5 -5
- package/dist/esm/vega-toggle-switch.entry.js +2 -2
- package/dist/esm/vega.js +4 -4
- package/dist/esm/vegaEnvManager-e0c1fde1.js +2 -2
- package/dist/types/components/vega-box/interface.d.ts +7 -1
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.d.ts +1 -0
- package/dist/types/components/vega-calendar/slimmers/day-view/renderers/full-day-event/vega-calendar-full-day-event-more-button-renderer.d.ts +23 -0
- package/dist/types/components/vega-calendar/slimmers/day-view/renderers/full-day-event/vega-calendar-full-day-event-renderer.d.ts +13 -1
- package/dist/types/components/vega-calendar/utils/index.d.ts +7 -0
- package/dist/types/components/vega-calendar/vega-calendar-event/slimmers/controllers/vega-calendar-event-slot-controller.d.ts +30 -0
- package/dist/types/components/vega-calendar/vega-calendar-event/slimmers/renderers/vega-calendar-event-renderer.d.ts +33 -0
- package/dist/types/components/vega-calendar/vega-calendar-event/vega-calendar-event.d.ts +4 -1
- package/dist/types/components/vega-calendar/vega-calendar-event-slot/vega-calendar-event-slot.d.ts +12 -0
- package/dist/types/components/vega-calendar/vega-calendar.d.ts +4 -1
- package/dist/types/components/vega-signature-capture/assets/icons.d.ts +4 -0
- package/dist/types/components/vega-signature-capture/slimmers/renderers/vega-signature-capture-renderer.d.ts +7 -0
- package/dist/types/components/vega-signature-capture/slimmers/written-mode/controllers/written-mode-svg-controller.d.ts +88 -0
- package/dist/types/components/vega-signature-capture/slimmers/written-mode/renderers/written-mode-renderer.d.ts +27 -0
- package/dist/types/components/vega-signature-capture/types.d.ts +5 -0
- package/dist/types/components/vega-signature-capture/vega-signature-capture.d.ts +95 -0
- package/dist/types/components/vega-textarea/vega-textarea.d.ts +4 -0
- package/dist/types/components.d.ts +148 -0
- package/dist/types/helpers/change-manager/subject/static-remote-invocation-subject/static-remote-invocation-call-registry.d.ts +39 -0
- package/dist/types/helpers/change-manager/subject/static-subject/staticSubjectTitle.d.ts +2 -1
- package/dist/types/helpers/change-manager/test/static-remote-invocation-subject.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/fieldErrorUiControllerSlimmer.d.ts +1 -0
- package/dist/types/helpers/slimmers/fieldErrorUiControllerStrategies/fieldErrorUiControllerStrategy.d.ts +6 -0
- package/dist/types/helpers/slimmers/fieldErrorUiControllerStrategies/siblingContainerErrorLabelContainerRetrievalStrategy.d.ts +16 -0
- package/dist/types/helpers/slimmers/fieldErrorUiControllerStrategies/siblingContainerNestedErrorContainerRetrievalStrategy.d.ts +15 -0
- package/dist/types/helpers/slimmers/fieldErrorUiControllerStrategies/siblingContainerSelfRetrievalStrategy.d.ts +14 -0
- package/dist/types/types/components.type.d.ts +1 -0
- package/dist/types/types/general.d.ts +2 -1
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-eee98614.entry.js → p-0f420f8f.entry.js} +1 -1
- package/dist/vega/{p-a4ca0aac.entry.js → p-1057d54f.entry.js} +1 -1
- package/dist/vega/{p-a61cb86e.entry.js → p-107e2518.entry.js} +1 -1
- package/dist/vega/{p-c9e013f4.js → p-11b085cb.js} +1 -1
- package/dist/vega/p-264c95ab.js +1 -0
- package/dist/vega/{p-cb171374.entry.js → p-28548bc4.entry.js} +1 -1
- package/dist/vega/{p-46b146eb.entry.js → p-2b72e5d5.entry.js} +1 -1
- package/dist/vega/{p-f1008a4a.entry.js → p-300844f7.entry.js} +1 -1
- package/dist/vega/{p-40a4822c.entry.js → p-303e9a65.entry.js} +1 -1
- package/dist/vega/{p-8759e22d.entry.js → p-3586684b.entry.js} +1 -1
- package/dist/vega/{p-3b62c5b4.entry.js → p-36948812.entry.js} +1 -1
- package/dist/vega/{p-3dbfb6ae.entry.js → p-39271c51.entry.js} +1 -1
- package/dist/vega/{p-37e8445b.entry.js → p-39648c77.entry.js} +1 -1
- package/dist/vega/{p-a0f03879.entry.js → p-3b193b57.entry.js} +1 -1
- package/dist/vega/p-42c8012d.entry.js +1 -0
- package/dist/vega/{p-3de104ba.entry.js → p-4317de99.entry.js} +1 -1
- package/dist/vega/{p-b572e8a8.entry.js → p-479f9784.entry.js} +1 -1
- package/dist/vega/{p-fd3cd3f5.entry.js → p-47a35856.entry.js} +1 -1
- package/dist/vega/{p-e45170ad.entry.js → p-5e44e5c3.entry.js} +1 -1
- package/dist/vega/{p-ebf89788.entry.js → p-617f84f2.entry.js} +1 -1
- package/dist/vega/p-73f6405d.entry.js +1 -0
- package/dist/vega/p-7acd23c3.js +1 -0
- package/dist/vega/{p-4161becc.entry.js → p-81ad9bea.entry.js} +1 -1
- package/dist/vega/{p-f6af6224.entry.js → p-8267b53c.entry.js} +1 -1
- package/dist/vega/{p-642f28dc.entry.js → p-92bae3f8.entry.js} +1 -1
- package/dist/vega/{p-b1b3857d.entry.js → p-93fb0ff0.entry.js} +1 -1
- package/dist/vega/{p-d76ae2b1.entry.js → p-9456d157.entry.js} +1 -1
- package/dist/vega/{p-5ca6fd55.entry.js → p-9e0c331b.entry.js} +1 -1
- package/dist/vega/{p-4f428039.js → p-9f7e71d8.js} +1 -1
- package/dist/vega/p-a05d40b0.entry.js +1 -0
- package/dist/vega/{p-31548eea.entry.js → p-a7b1a4bd.entry.js} +1 -1
- package/dist/vega/{p-4ed1798e.entry.js → p-ae24e059.entry.js} +1 -1
- package/dist/vega/{p-4c3690ce.entry.js → p-b1f01bda.entry.js} +1 -1
- package/dist/vega/{p-5098d161.entry.js → p-b4edefbe.entry.js} +1 -1
- package/dist/vega/{p-2e096c78.entry.js → p-b6968677.entry.js} +1 -1
- package/dist/vega/{p-3f661fad.entry.js → p-c566351a.entry.js} +1 -1
- package/dist/vega/{p-c450f692.js → p-c779ed1f.js} +1 -1
- package/dist/vega/{p-42d1b5df.entry.js → p-caa9f3db.entry.js} +1 -1
- package/dist/vega/{p-d4eb9277.entry.js → p-d1ed331e.entry.js} +1 -1
- package/dist/vega/{p-0a56c329.entry.js → p-da22f097.entry.js} +1 -1
- package/dist/vega/{p-7833c766.entry.js → p-dd8eb2ab.entry.js} +1 -1
- package/dist/vega/{p-fdd6772d.entry.js → p-e27b3235.entry.js} +1 -1
- package/dist/vega/{p-5ded9437.js → p-ead9867b.js} +1 -1
- package/dist/vega/p-f1ecbe90.js +1 -1
- package/dist/vega/p-f26a298a.entry.js +1 -0
- package/dist/vega/{p-7d94fadc.entry.js → p-fb8cb0af.entry.js} +1 -1
- package/dist/vega/{p-069b157d.entry.js → p-fd2712e1.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/vega/p-477985af.entry.js +0 -1
- package/dist/vega/p-5141bcac.js +0 -1
- package/dist/vega/p-8530f9b5.entry.js +0 -1
- package/dist/vega/p-a5e6da15.js +0 -1
- package/dist/vega/p-eddca0ac.entry.js +0 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { VegaSlimmer } from '../../../../../vega-slimmer/vega-slimmer-core';
|
|
2
|
+
import { VegaSignatureCapture } from '../../../vega-signature-capture';
|
|
3
|
+
import { VegaSignatureValue } from '../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* Signature written mode controller
|
|
6
|
+
*/
|
|
7
|
+
export declare class WrittenModeSvgController extends VegaSlimmer {
|
|
8
|
+
changeEventEmitter: VegaSignatureCapture['changeEventEmitter'];
|
|
9
|
+
host: VegaSignatureCapture['host'];
|
|
10
|
+
value: VegaSignatureCapture['value'];
|
|
11
|
+
isDrawing: VegaSignatureCapture['isDrawing'];
|
|
12
|
+
disabled: VegaSignatureCapture['disabled'];
|
|
13
|
+
private signatureContainerRef;
|
|
14
|
+
private penWidth;
|
|
15
|
+
private currentPath;
|
|
16
|
+
/**
|
|
17
|
+
* Setup written listeners
|
|
18
|
+
*/
|
|
19
|
+
componentDidLoad(): void;
|
|
20
|
+
/**
|
|
21
|
+
* Clear the signature
|
|
22
|
+
*/
|
|
23
|
+
handleClear(): void;
|
|
24
|
+
/**
|
|
25
|
+
* Emit the vegaChange event when value changed
|
|
26
|
+
*
|
|
27
|
+
* @param {VegaSignatureValue} newValue - The `newValue` parameter is a object representing the new value for the signature capture.
|
|
28
|
+
* @param {VegaSignatureValue} oldValue - The `oldValue` parameter is a object representing the old value for the signature capture.
|
|
29
|
+
*/
|
|
30
|
+
watchValue(newValue: VegaSignatureValue, oldValue: VegaSignatureValue): void;
|
|
31
|
+
/**
|
|
32
|
+
* Set the signature container ref
|
|
33
|
+
*
|
|
34
|
+
* @param {SVGElement} ref - signature container ref
|
|
35
|
+
*/
|
|
36
|
+
setSignatureContainerRef(ref: SVGElement): void;
|
|
37
|
+
/**
|
|
38
|
+
* Clear the signature
|
|
39
|
+
*/
|
|
40
|
+
clear: () => void;
|
|
41
|
+
/**
|
|
42
|
+
* Setup the listeners, for desktop and mobile
|
|
43
|
+
*/
|
|
44
|
+
private setupListeners;
|
|
45
|
+
/**
|
|
46
|
+
* Start drawing the current path
|
|
47
|
+
*
|
|
48
|
+
* @param {MouseEvent} e - MouseEvent
|
|
49
|
+
*/
|
|
50
|
+
private startDrawing;
|
|
51
|
+
/**
|
|
52
|
+
* Get the current mouse position
|
|
53
|
+
*
|
|
54
|
+
* @param {MouseEvent | TouchEvent} e - MouseEvent on desktop or TouchEvent on mobile
|
|
55
|
+
* @returns {VegaSignatureMousePosition} - Current mouse position
|
|
56
|
+
*/
|
|
57
|
+
private getPoint;
|
|
58
|
+
/**
|
|
59
|
+
* Draw the current path to the end point
|
|
60
|
+
*
|
|
61
|
+
* @param {MouseEvent} e - Mouse event
|
|
62
|
+
*/
|
|
63
|
+
private draw;
|
|
64
|
+
/**
|
|
65
|
+
* Stop drawing and update the value
|
|
66
|
+
*/
|
|
67
|
+
private stopDrawing;
|
|
68
|
+
/**
|
|
69
|
+
* Generate the signature base64 image string
|
|
70
|
+
*
|
|
71
|
+
* @returns {string} - base64 image string
|
|
72
|
+
*/
|
|
73
|
+
private generateSignatureImage;
|
|
74
|
+
/**
|
|
75
|
+
* Parse the value to svg
|
|
76
|
+
*
|
|
77
|
+
* @param {VegaSignatureValue} value - Signature value
|
|
78
|
+
* @returns {Nullable<HTMLElement>} - SVG element
|
|
79
|
+
*/
|
|
80
|
+
private fromDataURL;
|
|
81
|
+
/**
|
|
82
|
+
* Fill the signature from the value.
|
|
83
|
+
* Not fill the signature if the signature container already has child nodes, that means in written status.
|
|
84
|
+
*
|
|
85
|
+
* @param {VegaSignatureValue} value - Signature value
|
|
86
|
+
*/
|
|
87
|
+
private fillSignature;
|
|
88
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { VegaSlimmer } from '../../../../../vega-slimmer/vega-slimmer-core';
|
|
2
|
+
import { VegaSignatureCapture } from '../../../vega-signature-capture';
|
|
3
|
+
export declare class WrittenModeRenderer extends VegaSlimmer {
|
|
4
|
+
label: VegaSignatureCapture['label'];
|
|
5
|
+
required: VegaSignatureCapture['required'];
|
|
6
|
+
showClearBtn: VegaSignatureCapture['showClearBtn'];
|
|
7
|
+
placeholder: VegaSignatureCapture['placeholder'];
|
|
8
|
+
placeholderIcon: VegaSignatureCapture['placeholderIcon'];
|
|
9
|
+
disabled: VegaSignatureCapture['disabled'];
|
|
10
|
+
value: VegaSignatureCapture['value'];
|
|
11
|
+
isDrawing: VegaSignatureCapture['isDrawing'];
|
|
12
|
+
writtenModeSvgController: VegaSignatureCapture['writtenModeSvgController'];
|
|
13
|
+
private signatureCaptureContainerRef;
|
|
14
|
+
getSignatureCaptureContainer(): HTMLElement;
|
|
15
|
+
render(): HTMLElement;
|
|
16
|
+
private renderLabel;
|
|
17
|
+
private renderContainer;
|
|
18
|
+
private renderPlaceholder;
|
|
19
|
+
private renderSignaturePad;
|
|
20
|
+
private renderFooter;
|
|
21
|
+
private renderClearBtn;
|
|
22
|
+
/**
|
|
23
|
+
* The below method is e2e-test covered in
|
|
24
|
+
* @see{module:vega-signature-capture-focus-e2e}
|
|
25
|
+
*/
|
|
26
|
+
private signatureCaptureFocus;
|
|
27
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { GlobalSlimmers } from '../../vega-slimmer/vega-slimmer-core';
|
|
3
|
+
import { VegaComponentUsageRuntimeMetricsSlimmer } from '../../helpers/slimmers/componentUsageRuntimeMetrics';
|
|
4
|
+
import { VegaSignatureCaptureRenderer } from './slimmers/renderers/vega-signature-capture-renderer';
|
|
5
|
+
import { WrittenModeRenderer } from './slimmers/written-mode/renderers/written-mode-renderer';
|
|
6
|
+
import { VegaSignatureCaptureMode, VegaSignatureValue } from './types';
|
|
7
|
+
import { WrittenModeSvgController } from './slimmers/written-mode/controllers/written-mode-svg-controller';
|
|
8
|
+
import { EventEmitSlimmerBase } from '../../helpers/event-manager/slimmers/eventEmitSlimmer';
|
|
9
|
+
import { FormFieldControllerSlimmer } from '../../helpers/slimmers/formFieldControllerSlimmer';
|
|
10
|
+
import { FormFieldValidationRule } from '../../helpers/validator/rules/formFieldValidationRule';
|
|
11
|
+
export declare class VegaSignatureCapture {
|
|
12
|
+
protected readonly globalSlimmers: GlobalSlimmers;
|
|
13
|
+
protected vegaComponentUsageRuntimeMetricsSlimmer: VegaComponentUsageRuntimeMetricsSlimmer<HTMLVegaSignatureCaptureElement>;
|
|
14
|
+
protected readonly vegaSignatureCaptureRenderer: VegaSignatureCaptureRenderer;
|
|
15
|
+
protected readonly writtenModeRenderer: WrittenModeRenderer;
|
|
16
|
+
protected readonly writtenModeSvgController: WrittenModeSvgController;
|
|
17
|
+
protected changeEventEmitter: EventEmitSlimmerBase;
|
|
18
|
+
protected formFieldController: FormFieldControllerSlimmer<VegaSignatureValue>;
|
|
19
|
+
host: HTMLVegaSignatureCaptureElement;
|
|
20
|
+
/**
|
|
21
|
+
* Specifies the state of the signature
|
|
22
|
+
*/
|
|
23
|
+
isDrawing: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Specifies the mode of the signature capture
|
|
26
|
+
*/
|
|
27
|
+
mode: VegaSignatureCaptureMode;
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the label or title for the signature capture.
|
|
30
|
+
*
|
|
31
|
+
* It provides descriptive text that helps identify the
|
|
32
|
+
* purpose or content expected in the signature capture.
|
|
33
|
+
*/
|
|
34
|
+
label: string;
|
|
35
|
+
/**
|
|
36
|
+
* Determines whether the signature capture field is required.
|
|
37
|
+
*/
|
|
38
|
+
required: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Determines whether the clear button is displayed.
|
|
41
|
+
*/
|
|
42
|
+
showClearBtn: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies a placeholder string that displays as a temporary hint
|
|
45
|
+
* or example inside the signature capture.
|
|
46
|
+
*
|
|
47
|
+
* It indicates the expected format or pattern of the signature capture.
|
|
48
|
+
*/
|
|
49
|
+
placeholder: string;
|
|
50
|
+
/**
|
|
51
|
+
* Specifies an icon or symbol that appears before the placeholder,
|
|
52
|
+
* providing visual context or enhancing the aesthetic appearance
|
|
53
|
+
* of the signature capture.
|
|
54
|
+
*/
|
|
55
|
+
placeholderIcon: string;
|
|
56
|
+
/**
|
|
57
|
+
* Specifies whether the signature capture is disabled.
|
|
58
|
+
*/
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Specifies the value of the signature capture
|
|
62
|
+
*/
|
|
63
|
+
value: VegaSignatureValue | null;
|
|
64
|
+
watchValue(newValue: VegaSignatureValue, oldValue: VegaSignatureValue): void;
|
|
65
|
+
/**
|
|
66
|
+
* Indicates whether the current value in the field is considered valid or
|
|
67
|
+
* invalid based on the defined validation rules.
|
|
68
|
+
*/
|
|
69
|
+
isValid: boolean | null;
|
|
70
|
+
/**
|
|
71
|
+
* Determines whether the signature capture field should undergo automatic validation
|
|
72
|
+
* during the user's sign.
|
|
73
|
+
*/
|
|
74
|
+
autoValidation: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Defines custom validation rules for the signature capture field.
|
|
77
|
+
*/
|
|
78
|
+
validationRules: FormFieldValidationRule<unknown>[];
|
|
79
|
+
watchValidationRules(): void;
|
|
80
|
+
/**
|
|
81
|
+
* An event emitter notifying a value change.
|
|
82
|
+
*/
|
|
83
|
+
vegaChange: EventEmitter<VegaSignatureValue>;
|
|
84
|
+
/**
|
|
85
|
+
* An event emitter notifying a value change.
|
|
86
|
+
*
|
|
87
|
+
* @eventSemantics namespace:native
|
|
88
|
+
*/
|
|
89
|
+
change: EventEmitter<VegaSignatureValue>;
|
|
90
|
+
/**
|
|
91
|
+
* Invoke this method to clear the signature
|
|
92
|
+
*/
|
|
93
|
+
clear(): Promise<void>;
|
|
94
|
+
render(): VegaSignatureCapture;
|
|
95
|
+
}
|
|
@@ -76,6 +76,10 @@ export declare class VegaTextarea {
|
|
|
76
76
|
* that the user must enter in the text area.
|
|
77
77
|
*/
|
|
78
78
|
minLength: number;
|
|
79
|
+
/**
|
|
80
|
+
* Determines whether the text area is vertically resizable.
|
|
81
|
+
*/
|
|
82
|
+
resizable: boolean;
|
|
79
83
|
/**
|
|
80
84
|
* Specifies custom validation rules for the text area.
|
|
81
85
|
*/
|
|
@@ -43,6 +43,7 @@ import { VegaPageNotificationActionButtonConfig, VegaPageNotificationTypes } fro
|
|
|
43
43
|
import { VegaPaginationItemType } from "./components/vega-pagination/types";
|
|
44
44
|
import { PieChartOptions } from "./helpers/chart/pieChart";
|
|
45
45
|
import { VegaSegmentControlVariant, VegaSegmentProps } from "./components/vega-segment-control/types";
|
|
46
|
+
import { VegaSignatureCaptureMode, VegaSignatureValue } from "./components/vega-signature-capture/types";
|
|
46
47
|
import { VegaSkeletonType } from "./components/vega-skeleton/interface";
|
|
47
48
|
import { TabConfig, TabGroupVariant } from "./components/vega-tab-group/types";
|
|
48
49
|
import { VegaTableChangePropType, VegaTableColumnBreakpoint, VegaTableColumnConfig, VegaTableDataSourceItem, VegaTableDensityType, VegaTableHeadCellClickEvent, VegaTablePagination, VegaTableRowClickEvent, VegaTableRowClickPropType, VegaTableRowSelectionConfig, VegaTableRowSelectProp, VegaTableScrollConfig, VegaTableSelectAllProp, VegaTableSorterConfig, VegaTableSortOrderType } from "./components/vega-table/interface";
|
|
@@ -509,6 +510,12 @@ export namespace Components {
|
|
|
509
510
|
*/
|
|
510
511
|
"calendarEvent": CalendarEvent;
|
|
511
512
|
}
|
|
513
|
+
interface VegaCalendarEventSlot {
|
|
514
|
+
/**
|
|
515
|
+
* Specifies the event key.
|
|
516
|
+
*/
|
|
517
|
+
"eventKey": string;
|
|
518
|
+
}
|
|
512
519
|
interface VegaCard {
|
|
513
520
|
/**
|
|
514
521
|
* Defines the background color of the card element. It accepts a string value representing a valid background color token.
|
|
@@ -2142,6 +2149,56 @@ export namespace Components {
|
|
|
2142
2149
|
*/
|
|
2143
2150
|
"value": string | string[];
|
|
2144
2151
|
}
|
|
2152
|
+
interface VegaSignatureCapture {
|
|
2153
|
+
/**
|
|
2154
|
+
* Determines whether the signature capture field should undergo automatic validation during the user's sign.
|
|
2155
|
+
*/
|
|
2156
|
+
"autoValidation": boolean;
|
|
2157
|
+
/**
|
|
2158
|
+
* Invoke this method to clear the signature
|
|
2159
|
+
*/
|
|
2160
|
+
"clear": () => Promise<void>;
|
|
2161
|
+
/**
|
|
2162
|
+
* Specifies whether the signature capture is disabled.
|
|
2163
|
+
*/
|
|
2164
|
+
"disabled": boolean;
|
|
2165
|
+
/**
|
|
2166
|
+
* Indicates whether the current value in the field is considered valid or invalid based on the defined validation rules.
|
|
2167
|
+
*/
|
|
2168
|
+
"isValid": boolean | null;
|
|
2169
|
+
/**
|
|
2170
|
+
* Specifies the label or title for the signature capture. It provides descriptive text that helps identify the purpose or content expected in the signature capture.
|
|
2171
|
+
*/
|
|
2172
|
+
"label": string;
|
|
2173
|
+
/**
|
|
2174
|
+
* Specifies the mode of the signature capture
|
|
2175
|
+
*/
|
|
2176
|
+
"mode": VegaSignatureCaptureMode;
|
|
2177
|
+
/**
|
|
2178
|
+
* Specifies a placeholder string that displays as a temporary hint or example inside the signature capture. It indicates the expected format or pattern of the signature capture.
|
|
2179
|
+
*/
|
|
2180
|
+
"placeholder": string;
|
|
2181
|
+
/**
|
|
2182
|
+
* Specifies an icon or symbol that appears before the placeholder, providing visual context or enhancing the aesthetic appearance of the signature capture.
|
|
2183
|
+
*/
|
|
2184
|
+
"placeholderIcon": string;
|
|
2185
|
+
/**
|
|
2186
|
+
* Determines whether the signature capture field is required.
|
|
2187
|
+
*/
|
|
2188
|
+
"required": boolean;
|
|
2189
|
+
/**
|
|
2190
|
+
* Determines whether the clear button is displayed.
|
|
2191
|
+
*/
|
|
2192
|
+
"showClearBtn": boolean;
|
|
2193
|
+
/**
|
|
2194
|
+
* Defines custom validation rules for the signature capture field.
|
|
2195
|
+
*/
|
|
2196
|
+
"validationRules": FormFieldValidationRule<unknown>[];
|
|
2197
|
+
/**
|
|
2198
|
+
* Specifies the value of the signature capture
|
|
2199
|
+
*/
|
|
2200
|
+
"value": VegaSignatureValue | null;
|
|
2201
|
+
}
|
|
2145
2202
|
interface VegaSkeleton {
|
|
2146
2203
|
/**
|
|
2147
2204
|
* Indicates whether the skeleton displays an animation effect.
|
|
@@ -2492,6 +2549,10 @@ export namespace Components {
|
|
|
2492
2549
|
* Determines whether the content of the textarea must be provided by the user before submitting the form or completing the input process.
|
|
2493
2550
|
*/
|
|
2494
2551
|
"required": boolean;
|
|
2552
|
+
/**
|
|
2553
|
+
* Determines whether the text area is vertically resizable.
|
|
2554
|
+
*/
|
|
2555
|
+
"resizable": boolean;
|
|
2495
2556
|
/**
|
|
2496
2557
|
* Determines whether to display a character counter for the textarea.
|
|
2497
2558
|
*/
|
|
@@ -2827,6 +2888,10 @@ export interface VegaSelectionTileGroupCustomEvent<T> extends CustomEvent<T> {
|
|
|
2827
2888
|
detail: T;
|
|
2828
2889
|
target: HTMLVegaSelectionTileGroupElement;
|
|
2829
2890
|
}
|
|
2891
|
+
export interface VegaSignatureCaptureCustomEvent<T> extends CustomEvent<T> {
|
|
2892
|
+
detail: T;
|
|
2893
|
+
target: HTMLVegaSignatureCaptureElement;
|
|
2894
|
+
}
|
|
2830
2895
|
export interface VegaStepperCustomEvent<T> extends CustomEvent<T> {
|
|
2831
2896
|
detail: T;
|
|
2832
2897
|
target: HTMLVegaStepperElement;
|
|
@@ -2950,6 +3015,12 @@ declare global {
|
|
|
2950
3015
|
prototype: HTMLVegaCalendarEventElement;
|
|
2951
3016
|
new (): HTMLVegaCalendarEventElement;
|
|
2952
3017
|
};
|
|
3018
|
+
interface HTMLVegaCalendarEventSlotElement extends Components.VegaCalendarEventSlot, HTMLStencilElement {
|
|
3019
|
+
}
|
|
3020
|
+
var HTMLVegaCalendarEventSlotElement: {
|
|
3021
|
+
prototype: HTMLVegaCalendarEventSlotElement;
|
|
3022
|
+
new (): HTMLVegaCalendarEventSlotElement;
|
|
3023
|
+
};
|
|
2953
3024
|
interface HTMLVegaCardElement extends Components.VegaCard, HTMLStencilElement {
|
|
2954
3025
|
}
|
|
2955
3026
|
var HTMLVegaCardElement: {
|
|
@@ -3262,6 +3333,12 @@ declare global {
|
|
|
3262
3333
|
prototype: HTMLVegaSelectionTileGroupElement;
|
|
3263
3334
|
new (): HTMLVegaSelectionTileGroupElement;
|
|
3264
3335
|
};
|
|
3336
|
+
interface HTMLVegaSignatureCaptureElement extends Components.VegaSignatureCapture, HTMLStencilElement {
|
|
3337
|
+
}
|
|
3338
|
+
var HTMLVegaSignatureCaptureElement: {
|
|
3339
|
+
prototype: HTMLVegaSignatureCaptureElement;
|
|
3340
|
+
new (): HTMLVegaSignatureCaptureElement;
|
|
3341
|
+
};
|
|
3265
3342
|
interface HTMLVegaSkeletonElement extends Components.VegaSkeleton, HTMLStencilElement {
|
|
3266
3343
|
}
|
|
3267
3344
|
var HTMLVegaSkeletonElement: {
|
|
@@ -3404,6 +3481,7 @@ declare global {
|
|
|
3404
3481
|
"vega-button-link": HTMLVegaButtonLinkElement;
|
|
3405
3482
|
"vega-calendar": HTMLVegaCalendarElement;
|
|
3406
3483
|
"vega-calendar-event": HTMLVegaCalendarEventElement;
|
|
3484
|
+
"vega-calendar-event-slot": HTMLVegaCalendarEventSlotElement;
|
|
3407
3485
|
"vega-card": HTMLVegaCardElement;
|
|
3408
3486
|
"vega-carousel": HTMLVegaCarouselElement;
|
|
3409
3487
|
"vega-checkbox": HTMLVegaCheckboxElement;
|
|
@@ -3456,6 +3534,7 @@ declare global {
|
|
|
3456
3534
|
"vega-segment-control": HTMLVegaSegmentControlElement;
|
|
3457
3535
|
"vega-selection-tile": HTMLVegaSelectionTileElement;
|
|
3458
3536
|
"vega-selection-tile-group": HTMLVegaSelectionTileGroupElement;
|
|
3537
|
+
"vega-signature-capture": HTMLVegaSignatureCaptureElement;
|
|
3459
3538
|
"vega-skeleton": HTMLVegaSkeletonElement;
|
|
3460
3539
|
"vega-slot-container": HTMLVegaSlotContainerElement;
|
|
3461
3540
|
"vega-stepper": HTMLVegaStepperElement;
|
|
@@ -4054,6 +4133,12 @@ declare namespace LocalJSX {
|
|
|
4054
4133
|
*/
|
|
4055
4134
|
"calendarEvent"?: CalendarEvent;
|
|
4056
4135
|
}
|
|
4136
|
+
interface VegaCalendarEventSlot {
|
|
4137
|
+
/**
|
|
4138
|
+
* Specifies the event key.
|
|
4139
|
+
*/
|
|
4140
|
+
"eventKey": string;
|
|
4141
|
+
}
|
|
4057
4142
|
interface VegaCard {
|
|
4058
4143
|
/**
|
|
4059
4144
|
* Defines the background color of the card element. It accepts a string value representing a valid background color token.
|
|
@@ -6006,6 +6091,61 @@ declare namespace LocalJSX {
|
|
|
6006
6091
|
*/
|
|
6007
6092
|
"value"?: string | string[];
|
|
6008
6093
|
}
|
|
6094
|
+
interface VegaSignatureCapture {
|
|
6095
|
+
/**
|
|
6096
|
+
* Determines whether the signature capture field should undergo automatic validation during the user's sign.
|
|
6097
|
+
*/
|
|
6098
|
+
"autoValidation"?: boolean;
|
|
6099
|
+
/**
|
|
6100
|
+
* Specifies whether the signature capture is disabled.
|
|
6101
|
+
*/
|
|
6102
|
+
"disabled"?: boolean;
|
|
6103
|
+
/**
|
|
6104
|
+
* Indicates whether the current value in the field is considered valid or invalid based on the defined validation rules.
|
|
6105
|
+
*/
|
|
6106
|
+
"isValid"?: boolean | null;
|
|
6107
|
+
/**
|
|
6108
|
+
* Specifies the label or title for the signature capture. It provides descriptive text that helps identify the purpose or content expected in the signature capture.
|
|
6109
|
+
*/
|
|
6110
|
+
"label"?: string;
|
|
6111
|
+
/**
|
|
6112
|
+
* Specifies the mode of the signature capture
|
|
6113
|
+
*/
|
|
6114
|
+
"mode"?: VegaSignatureCaptureMode;
|
|
6115
|
+
/**
|
|
6116
|
+
* An event emitter notifying a value change.
|
|
6117
|
+
* @eventSemantics namespace:native
|
|
6118
|
+
*/
|
|
6119
|
+
"onChange"?: (event: VegaSignatureCaptureCustomEvent<VegaSignatureValue>) => void;
|
|
6120
|
+
/**
|
|
6121
|
+
* An event emitter notifying a value change.
|
|
6122
|
+
*/
|
|
6123
|
+
"onVegaChange"?: (event: VegaSignatureCaptureCustomEvent<VegaSignatureValue>) => void;
|
|
6124
|
+
/**
|
|
6125
|
+
* Specifies a placeholder string that displays as a temporary hint or example inside the signature capture. It indicates the expected format or pattern of the signature capture.
|
|
6126
|
+
*/
|
|
6127
|
+
"placeholder"?: string;
|
|
6128
|
+
/**
|
|
6129
|
+
* Specifies an icon or symbol that appears before the placeholder, providing visual context or enhancing the aesthetic appearance of the signature capture.
|
|
6130
|
+
*/
|
|
6131
|
+
"placeholderIcon"?: string;
|
|
6132
|
+
/**
|
|
6133
|
+
* Determines whether the signature capture field is required.
|
|
6134
|
+
*/
|
|
6135
|
+
"required"?: boolean;
|
|
6136
|
+
/**
|
|
6137
|
+
* Determines whether the clear button is displayed.
|
|
6138
|
+
*/
|
|
6139
|
+
"showClearBtn"?: boolean;
|
|
6140
|
+
/**
|
|
6141
|
+
* Defines custom validation rules for the signature capture field.
|
|
6142
|
+
*/
|
|
6143
|
+
"validationRules"?: FormFieldValidationRule<unknown>[];
|
|
6144
|
+
/**
|
|
6145
|
+
* Specifies the value of the signature capture
|
|
6146
|
+
*/
|
|
6147
|
+
"value"?: VegaSignatureValue | null;
|
|
6148
|
+
}
|
|
6009
6149
|
interface VegaSkeleton {
|
|
6010
6150
|
/**
|
|
6011
6151
|
* Indicates whether the skeleton displays an animation effect.
|
|
@@ -6365,6 +6505,10 @@ declare namespace LocalJSX {
|
|
|
6365
6505
|
* Determines whether the content of the textarea must be provided by the user before submitting the form or completing the input process.
|
|
6366
6506
|
*/
|
|
6367
6507
|
"required"?: boolean;
|
|
6508
|
+
/**
|
|
6509
|
+
* Determines whether the text area is vertically resizable.
|
|
6510
|
+
*/
|
|
6511
|
+
"resizable"?: boolean;
|
|
6368
6512
|
/**
|
|
6369
6513
|
* Determines whether to display a character counter for the textarea.
|
|
6370
6514
|
*/
|
|
@@ -6565,6 +6709,7 @@ declare namespace LocalJSX {
|
|
|
6565
6709
|
"vega-button-link": VegaButtonLink;
|
|
6566
6710
|
"vega-calendar": VegaCalendar;
|
|
6567
6711
|
"vega-calendar-event": VegaCalendarEvent;
|
|
6712
|
+
"vega-calendar-event-slot": VegaCalendarEventSlot;
|
|
6568
6713
|
"vega-card": VegaCard;
|
|
6569
6714
|
"vega-carousel": VegaCarousel;
|
|
6570
6715
|
"vega-checkbox": VegaCheckbox;
|
|
@@ -6617,6 +6762,7 @@ declare namespace LocalJSX {
|
|
|
6617
6762
|
"vega-segment-control": VegaSegmentControl;
|
|
6618
6763
|
"vega-selection-tile": VegaSelectionTile;
|
|
6619
6764
|
"vega-selection-tile-group": VegaSelectionTileGroup;
|
|
6765
|
+
"vega-signature-capture": VegaSignatureCapture;
|
|
6620
6766
|
"vega-skeleton": VegaSkeleton;
|
|
6621
6767
|
"vega-slot-container": VegaSlotContainer;
|
|
6622
6768
|
"vega-stepper": VegaStepper;
|
|
@@ -6659,6 +6805,7 @@ declare module "@stencil/core" {
|
|
|
6659
6805
|
"vega-button-link": LocalJSX.VegaButtonLink & JSXBase.HTMLAttributes<HTMLVegaButtonLinkElement>;
|
|
6660
6806
|
"vega-calendar": LocalJSX.VegaCalendar & JSXBase.HTMLAttributes<HTMLVegaCalendarElement>;
|
|
6661
6807
|
"vega-calendar-event": LocalJSX.VegaCalendarEvent & JSXBase.HTMLAttributes<HTMLVegaCalendarEventElement>;
|
|
6808
|
+
"vega-calendar-event-slot": LocalJSX.VegaCalendarEventSlot & JSXBase.HTMLAttributes<HTMLVegaCalendarEventSlotElement>;
|
|
6662
6809
|
"vega-card": LocalJSX.VegaCard & JSXBase.HTMLAttributes<HTMLVegaCardElement>;
|
|
6663
6810
|
"vega-carousel": LocalJSX.VegaCarousel & JSXBase.HTMLAttributes<HTMLVegaCarouselElement>;
|
|
6664
6811
|
"vega-checkbox": LocalJSX.VegaCheckbox & JSXBase.HTMLAttributes<HTMLVegaCheckboxElement>;
|
|
@@ -6711,6 +6858,7 @@ declare module "@stencil/core" {
|
|
|
6711
6858
|
"vega-segment-control": LocalJSX.VegaSegmentControl & JSXBase.HTMLAttributes<HTMLVegaSegmentControlElement>;
|
|
6712
6859
|
"vega-selection-tile": LocalJSX.VegaSelectionTile & JSXBase.HTMLAttributes<HTMLVegaSelectionTileElement>;
|
|
6713
6860
|
"vega-selection-tile-group": LocalJSX.VegaSelectionTileGroup & JSXBase.HTMLAttributes<HTMLVegaSelectionTileGroupElement>;
|
|
6861
|
+
"vega-signature-capture": LocalJSX.VegaSignatureCapture & JSXBase.HTMLAttributes<HTMLVegaSignatureCaptureElement>;
|
|
6714
6862
|
"vega-skeleton": LocalJSX.VegaSkeleton & JSXBase.HTMLAttributes<HTMLVegaSkeletonElement>;
|
|
6715
6863
|
"vega-slot-container": LocalJSX.VegaSlotContainer & JSXBase.HTMLAttributes<HTMLVegaSlotContainerElement>;
|
|
6716
6864
|
"vega-stepper": LocalJSX.VegaStepper & JSXBase.HTMLAttributes<HTMLVegaStepperElement>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Nullable } from '../../../../types/general';
|
|
2
|
+
import { Subject } from '../subjectInterface';
|
|
3
|
+
/**
|
|
4
|
+
* The `StaticRemoteInvocationCallRegistry` provides methods for performing remote invocation calls
|
|
5
|
+
* and registering remote invocation handlers.
|
|
6
|
+
*/
|
|
7
|
+
export declare class StaticRemoteInvocationCallRegistry {
|
|
8
|
+
/**
|
|
9
|
+
* This function performs a static remote invocation call and returning the result.
|
|
10
|
+
*
|
|
11
|
+
* @param {Subject} subject - A static subject.
|
|
12
|
+
* @param {unknown[]} args - The `args` parameter of specific method.
|
|
13
|
+
* @returns {unknown} The result of call `remoteInvocation`.
|
|
14
|
+
*/
|
|
15
|
+
staticRemoteInvocationCall<T>(subject: Subject, ...args: unknown[]): Nullable<T>;
|
|
16
|
+
/**
|
|
17
|
+
* The function registers a static remote invocation handler.
|
|
18
|
+
*
|
|
19
|
+
* @param {Subject} subject - A static subject.
|
|
20
|
+
* @param {Function}remoteInvocationHandler - The method that is ultimately called.
|
|
21
|
+
*/
|
|
22
|
+
staticRegisterRemoteInvocationCallHandler<T>(subject: Subject, remoteInvocationHandler: (...args: unknown[]) => T): void;
|
|
23
|
+
/**
|
|
24
|
+
* The function un-registers a static remote invocation call handler.
|
|
25
|
+
*
|
|
26
|
+
* @param {Subject} subject - A static subject.
|
|
27
|
+
*/
|
|
28
|
+
unRegisterRemoteInvocationCallHandler(subject: Subject): void;
|
|
29
|
+
/**
|
|
30
|
+
* The function isAcceptableObserver checks if the input matches a specified type T.
|
|
31
|
+
*
|
|
32
|
+
* @param {unknown} _input - The `_input` parameter is of type `unknown`, which means it can hold any
|
|
33
|
+
* value.
|
|
34
|
+
* @returns {boolean} The `isAcceptableObserver` function is returning `true`.
|
|
35
|
+
*/
|
|
36
|
+
private isAcceptableObserver;
|
|
37
|
+
}
|
|
38
|
+
declare const _default: StaticRemoteInvocationCallRegistry;
|
|
39
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Subject } from '../subjectInterface';
|
|
2
|
-
export declare type SubjectTitle = 'SIDENAV_LINK_SELECTED_TOPIC' | 'LEFT_NAV_LINK_SELECTED_TOPIC' | 'ACCORDION_EXPAND_TOPIC' | 'FORM_RESET_OPERATION_TRIGGERED' | 'FORM_FIELD_ELEMENT_DISCONNECTED' | 'FORM_SUBMIT' | 'FORM_RESET' | 'RADIO_GROUP_DISABLED_CHANGE' | 'CHECKBOX_GROUP_DISABLED_CHANGE' | 'FORM_FIELD_PENDING_VALID_CHANGE' | 'TAB_PANEL_ADD_OR_DEL_TO_GROUP' | 'TABLE_EXPAND_ROW' | 'TABLE_ROW_SELECTION' | 'TABLE_ROW_SELECTION_ALL' | 'TABLE_SELECTION' | 'TABLE_ROW_CLICK' | 'FIELD_ERROR_MESSAGE_CHANGE' | 'DROPDOWN_ITEM_CLICK' | 'CHECKBOX_VALUE_CHANGE' | 'RADIO_VALUE_CHANGE' | 'FORM_ELEMENT_VALUE_CHANGE' | 'FORM_EMEMENT_VALIDATE' | 'FIELD_ERROR_STATE_CHANGE' | 'VEGA_VIRTUAL_SCROLL_TO_BOTTOM' | 'SELECTION_TILE_VALUE_CHANGE';
|
|
2
|
+
export declare type SubjectTitle = 'SIDENAV_LINK_SELECTED_TOPIC' | 'LEFT_NAV_LINK_SELECTED_TOPIC' | 'ACCORDION_EXPAND_TOPIC' | 'FORM_RESET_OPERATION_TRIGGERED' | 'FORM_FIELD_ELEMENT_DISCONNECTED' | 'FORM_SUBMIT' | 'FORM_RESET' | 'RADIO_GROUP_DISABLED_CHANGE' | 'CHECKBOX_GROUP_DISABLED_CHANGE' | 'FORM_FIELD_PENDING_VALID_CHANGE' | 'TAB_PANEL_ADD_OR_DEL_TO_GROUP' | 'TABLE_EXPAND_ROW' | 'TABLE_ROW_SELECTION' | 'TABLE_ROW_SELECTION_ALL' | 'TABLE_SELECTION' | 'TABLE_ROW_CLICK' | 'FIELD_ERROR_MESSAGE_CHANGE' | 'DROPDOWN_ITEM_CLICK' | 'CHECKBOX_VALUE_CHANGE' | 'RADIO_VALUE_CHANGE' | 'FORM_ELEMENT_VALUE_CHANGE' | 'FORM_EMEMENT_VALIDATE' | 'FIELD_ERROR_STATE_CHANGE' | 'VEGA_VIRTUAL_SCROLL_TO_BOTTOM' | 'SELECTION_TILE_VALUE_CHANGE' | 'DROPDOWN_RENDER_ITEM_INTERNAL_OVERRIDEN';
|
|
3
3
|
export declare const SIDENAV_LINK_SELECTED_TOPIC: Subject;
|
|
4
4
|
export declare const LEFT_NAV_LINK_SELECTED_TOPIC: Subject;
|
|
5
5
|
export declare const ACCORDION_EXPAND_TOPIC: Subject;
|
|
@@ -24,3 +24,4 @@ export declare const FORM_ELEMENT_VALIDATE: Subject;
|
|
|
24
24
|
export declare const FIELD_ERROR_STATE_CHANGE: Subject;
|
|
25
25
|
export declare const VEGA_VIRTUAL_SCROLL_TO_BOTTOM: Subject;
|
|
26
26
|
export declare const SELECTION_TILE_VALUE_CHANGE: Subject;
|
|
27
|
+
export declare const DROPDOWN_RENDER_ITEM_INTERNAL_OVERRIDEN: Subject;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,6 +3,7 @@ import { VegaSlimmer } from '../../vega-slimmer/vega-slimmer-core';
|
|
|
3
3
|
export declare class FieldErrorUIControllerSlimmer extends VegaSlimmer {
|
|
4
4
|
private host;
|
|
5
5
|
private options;
|
|
6
|
+
private fieldErrorUiControllerStrategies;
|
|
6
7
|
/**
|
|
7
8
|
* It takes an error message and displays it in the error container.
|
|
8
9
|
* TODO: Each component displays the error message and puts it in the code of the respective component.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { fieldErrorUiControllerStrategy } from './fieldErrorUiControllerStrategy';
|
|
2
|
+
/** This class defines a strategy for retrieving or creating a sibling container element. */
|
|
3
|
+
export declare class SiblingContainerErrorLabelContainerRetrievalStrategy implements fieldErrorUiControllerStrategy {
|
|
4
|
+
/**
|
|
5
|
+
* The function creates a sibling container element next to the input container if it doesn't
|
|
6
|
+
* already exist.
|
|
7
|
+
*
|
|
8
|
+
* @param {HTMLElement} inputContainer - This function retrieves the next sibling element of the
|
|
9
|
+
* `inputContainer` element. If the next sibling element does not exist, it creates a new `<label>`
|
|
10
|
+
* element with the class `vega-error`,
|
|
11
|
+
* @returns {HTMLElement} the `siblingContainer` element, which is either the next sibling element of the
|
|
12
|
+
* `inputContainer` or a newly created `<label>` element with the class `vega-error` and the
|
|
13
|
+
* attribute `part="field-error-message"` if no sibling element exists.
|
|
14
|
+
*/
|
|
15
|
+
run(inputContainer: HTMLElement): HTMLElement;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Nullable } from '../../../types/general';
|
|
2
|
+
import { fieldErrorUiControllerStrategy } from './fieldErrorUiControllerStrategy';
|
|
3
|
+
/** This class retrieves a specific error container element nested within a sibling container of a given input element. */
|
|
4
|
+
export declare class SiblingContainerNestedErrorContainerRetrievalStrategy implements fieldErrorUiControllerStrategy {
|
|
5
|
+
/**
|
|
6
|
+
* The function searches for an element with the class 'vega-error' in the next sibling of the
|
|
7
|
+
* inputContainer and returns it if found.
|
|
8
|
+
*
|
|
9
|
+
* @param {HTMLElement} inputContainer - The `inputContainer` parameter is an HTMLElement that
|
|
10
|
+
* represents the container element containing some input element.
|
|
11
|
+
* @returns { Nullable<HTMLElement>} An HTMLElement with the class 'vega-error' that is a sibling of the inputContainer, if
|
|
12
|
+
* it exists. Otherwise, null is returned.
|
|
13
|
+
*/
|
|
14
|
+
run(inputContainer: HTMLElement): Nullable<HTMLElement>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { fieldErrorUiControllerStrategy } from './fieldErrorUiControllerStrategy';
|
|
2
|
+
/** The class retrieves the next sibling element of an input container and creates a new error label if it does not already exist. */
|
|
3
|
+
export declare class SiblingContainerSelfRetrievalStrategy implements fieldErrorUiControllerStrategy {
|
|
4
|
+
/**
|
|
5
|
+
* The function adds an error message container next to the input container if it doesn't already exist.
|
|
6
|
+
*
|
|
7
|
+
* @param {HTMLElement} inputContainer - The `inputContainer` parameter is an HTMLElement that
|
|
8
|
+
* represents the container element of an input field in the HTML document.
|
|
9
|
+
* @returns {HTMLElement} the `siblingContainer` HTMLElement that was either found as the next sibling of the
|
|
10
|
+
* `inputContainer` or created as a new `label` element with the class `vega-error` if it didn't
|
|
11
|
+
* exist before.
|
|
12
|
+
*/
|
|
13
|
+
run(inputContainer: HTMLElement): HTMLElement;
|
|
14
|
+
}
|
|
@@ -148,6 +148,7 @@ export {
|
|
|
148
148
|
export { VegaPaginationItemType } from '../components/vega-pagination/types';
|
|
149
149
|
export { PieChartOptions } from '../helpers/chart/pieChart';
|
|
150
150
|
export { VegaSegmentControlVariant, VegaSegmentProps } from '../components/vega-segment-control/types';
|
|
151
|
+
export { VegaSignatureCaptureMode, VegaSignatureValue } from '../components/vega-signature-capture/types';
|
|
151
152
|
export { VegaSkeletonType } from '../components/vega-skeleton/interface';
|
|
152
153
|
export { TabConfig, TabGroupVariant } from '../components/vega-tab-group/types';
|
|
153
154
|
export {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VegaFile } from '../components/vega-image-uploader/types';
|
|
2
|
+
import { VegaSignatureValue } from '../components/vega-signature-capture/types';
|
|
2
3
|
|
|
3
|
-
export type Primitive = string | number | boolean | VegaFile;
|
|
4
|
+
export type Primitive = string | number | boolean | VegaFile | VegaSignatureValue;
|
|
4
5
|
|
|
5
6
|
export type TimeFormat = '12-hour' | '24-hour';
|
|
6
7
|
|
package/dist/vega/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as Breakpoints,g as getCurrentBreakpoint}from"./p-3542f8fe.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-018d77cc.js";export{d as formatAndValidBackgroundColor,e as formatAndValidBorderColor,g as formatAndValidBorderRadius,c as formatAndValidBreakpointSize,a as formatAndValidGap,h as formatAndValidPadding,f as formatAndValidResponsiveToken,b as formatAndValidShadow,i as formatAndValidTextColor}from"./p-9e38810c.js";export{c as camelToDashCase}from"./p-0bb29d98.js";export{d as BackgroundColorMap,a as BackgroundColors,e as BorderColorMap,b as BorderColors,B as BorderRadius,C as Colors,F as FillBackgroundColors,g as ShadowMap,f as Shadows,h as Spacing,S as StrokeBackgroundColors,c as TextColorMap,T as TextColors}from"./p-1265732f.js";export{I as Icons,g as getIconFromToken}from"./p-16493e5b.js";export{a as Typography,b as TypographyKeys,T as TypographyUrls}from"./p-c59042c0.js";export{B as BreakpointKeys}from"./p-3c8b2105.js";export{F as FrameworkEnum,v as VegaEnvManager}from"./p-f1ecbe90.js";export{c as VegaEventManager,V as VegaLoader,a as VegaNotify,d as VegaSkeletonLoader,b as VegaThemeManager,w as waitForVega}from"./p-
|
|
1
|
+
export{B as Breakpoints,g as getCurrentBreakpoint}from"./p-3542f8fe.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-018d77cc.js";export{d as formatAndValidBackgroundColor,e as formatAndValidBorderColor,g as formatAndValidBorderRadius,c as formatAndValidBreakpointSize,a as formatAndValidGap,h as formatAndValidPadding,f as formatAndValidResponsiveToken,b as formatAndValidShadow,i as formatAndValidTextColor}from"./p-9e38810c.js";export{c as camelToDashCase}from"./p-0bb29d98.js";export{d as BackgroundColorMap,a as BackgroundColors,e as BorderColorMap,b as BorderColors,B as BorderRadius,C as Colors,F as FillBackgroundColors,g as ShadowMap,f as Shadows,h as Spacing,S as StrokeBackgroundColors,c as TextColorMap,T as TextColors}from"./p-1265732f.js";export{I as Icons,g as getIconFromToken}from"./p-16493e5b.js";export{a as Typography,b as TypographyKeys,T as TypographyUrls}from"./p-c59042c0.js";export{B as BreakpointKeys}from"./p-3c8b2105.js";export{F as FrameworkEnum,v as VegaEnvManager}from"./p-f1ecbe90.js";export{c as VegaEventManager,V as VegaLoader,a as VegaNotify,d as VegaSkeletonLoader,b as VegaThemeManager,w as waitForVega}from"./p-9f7e71d8.js";export{F as FeatureFlag}from"./p-d5841466.js";export{V as VegaDialog}from"./p-34964cc9.js";export{B as VegaJQueryDelegatedEventStrategy}from"./p-264c95ab.js";export{V as VegaIconManager}from"./p-9d426517.js";export{V as ValidCreditCardNumberRule}from"./p-8054bb18.js";import"./p-bb761f8f.js";import"./p-344ee7cb.js";import"./p-0c667d6a.js";import"./p-6bdc4407.js";import"./p-3a0a4d15.js";import"./p-469bc36e.js";import"./p-320642bd.js";import"./p-abf5b8f7.js";import"./p-d3f1d3dd.js";import"./p-cb13b4e6.js";import"./p-639fa6c7.js";import"./p-280a6d94.js";const o=["ring-input-focus","dark-ring-input-focus","ring-input-danger-focus","dark-ring-input-danger-focus","ring-action-focus","dark-ring-action-focus","ring-action-danger-focus","dark-ring-action-danger-focus"];export{o as Rings}
|