@valtimo/components 13.50.1 → 13.52.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/fesm2022/valtimo-components.mjs +123 -73
- package/fesm2022/valtimo-components.mjs.map +1 -1
- package/lib/components/form-io/components/form-io/form-io.component.d.ts +6 -1
- package/lib/components/form-io/components/form-io/form-io.component.d.ts.map +1 -1
- package/lib/components/form-io/components/form-io-currency/currency.component.d.ts +15 -11
- package/lib/components/form-io/components/form-io-currency/currency.component.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -28,6 +28,7 @@ export declare class FormioComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
28
28
|
set readOnly(readOnlyValue: boolean);
|
|
29
29
|
set errors(errorsValue: Array<string>);
|
|
30
30
|
formRefresh$: Subject<FormioRefreshValue>;
|
|
31
|
+
preventDoubleSubmit: boolean;
|
|
31
32
|
submit: EventEmitter<any>;
|
|
32
33
|
change: EventEmitter<any>;
|
|
33
34
|
event: EventEmitter<any>;
|
|
@@ -49,6 +50,8 @@ export declare class FormioComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
49
50
|
private readonly _storeTokenInLocalStorage;
|
|
50
51
|
private readonly _inMemoryTokenSet$;
|
|
51
52
|
readonly tokenReady$: Observable<boolean>;
|
|
53
|
+
private _formioSource;
|
|
54
|
+
private _submitting;
|
|
52
55
|
private _tokenRefreshTimerSubscription;
|
|
53
56
|
private _formRefreshSubscription;
|
|
54
57
|
private readonly _subscriptions;
|
|
@@ -59,11 +62,13 @@ export declare class FormioComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
59
62
|
ngOnDestroy(): void;
|
|
60
63
|
showErrors(errors: string[]): void;
|
|
61
64
|
onSubmit(submission: FormioSubmission): void;
|
|
65
|
+
releaseSubmit(): void;
|
|
62
66
|
formReady(form: FormIoSourceComponent): void;
|
|
63
67
|
onChange(object: any): void;
|
|
64
68
|
onCustomEvent(event: any): void;
|
|
65
69
|
nextPage(): void;
|
|
66
70
|
prevPage(): void;
|
|
71
|
+
private failSubmit;
|
|
67
72
|
private openReloadFormSubscription;
|
|
68
73
|
private openReloadSubmissionSubscription;
|
|
69
74
|
private scrollToTop;
|
|
@@ -75,6 +80,6 @@ export declare class FormioComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
75
80
|
private openRouteSubscription;
|
|
76
81
|
private setOverrideOptions;
|
|
77
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormioComponent, never>;
|
|
78
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormioComponent, "valtimo-form-io", never, { "options": { "alias": "options"; "required": false; }; "submission": { "alias": "submission"; "required": false; }; "form": { "alias": "form"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "formRefresh$": { "alias": "formRefresh$"; "required": false; }; }, { "submit": "submit"; "change": "change"; "event": "event"; }, never, never, false, never>;
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormioComponent, "valtimo-form-io", never, { "options": { "alias": "options"; "required": false; }; "submission": { "alias": "submission"; "required": false; }; "form": { "alias": "form"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "formRefresh$": { "alias": "formRefresh$"; "required": false; }; "preventDoubleSubmit": { "alias": "preventDoubleSubmit"; "required": false; }; }, { "submit": "submit"; "change": "change"; "event": "event"; }, never, never, false, never>;
|
|
79
84
|
}
|
|
80
85
|
//# sourceMappingURL=form-io.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-io.component.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/valtimo/components/src/lib/components/form-io/components/form-io/form-io.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAEL,YAAY,EAEZ,QAAQ,EAER,SAAS,EACT,SAAS,EACT,MAAM,EAEN,aAAa,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAC,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACtD,OAAO,EACL,eAAe,IAAI,qBAAqB,EACxC,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,eAAe,EAAiB,UAAU,EAAE,OAAO,EAAsB,MAAM,MAAM,CAAC;AAE9F,OAAO,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAC,aAAa,EAAgB,MAAM,iBAAiB,CAAC;AAG7D,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EACzB,MAAM,gBAAgB,CAAC;;AAExB,qBAOa,eAAgB,YAAW,MAAM,EAAE,SAAS,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"form-io.component.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/valtimo/components/src/lib/components/form-io/components/form-io/form-io.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAEL,YAAY,EAEZ,QAAQ,EAER,SAAS,EACT,SAAS,EACT,MAAM,EAEN,aAAa,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAC,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACtD,OAAO,EACL,eAAe,IAAI,qBAAqB,EACxC,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC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AOzC,WAAW,IAAI,IAAI;IAOnB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI;IAKlC,QAAQ,CAAC,UAAU,EAAE,gBAAgB,GAAG,IAAI;IAQ5C,aAAa,IAAI,IAAI;IAIrB,SAAS,CAAC,IAAI,EAAE,qBAAqB,GAAG,IAAI;IAK5C,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI;IAI3B,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI;IAI/B,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;IAIvB,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,0BAA0B;IAUlC,OAAO,CAAC,gCAAgC;IAUxC,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,QAAQ;IAkBhB,OAAO,CAAC,uBAAuB;IAmB/B,OAAO,CAAC,oBAAoB;IAU5B,OAAO,CAAC,sBAAsB;IAM9B,OAAO,CAAC,qBAAqB;IAiB7B,OAAO,CAAC,kBAAkB;yCAzSf,eAAe;2CAAf,eAAe;CA8S3B"}
|
|
@@ -1,31 +1,35 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy,
|
|
2
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
3
2
|
import { FormioCustomComponent } from '../../../../modules';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* Custom formio component for currency number.
|
|
7
6
|
*/
|
|
8
|
-
export declare class FormIoCurrencyComponent implements FormioCustomComponent<number>,
|
|
7
|
+
export declare class FormIoCurrencyComponent implements FormioCustomComponent<number>, AfterViewInit, OnChanges, OnDestroy {
|
|
9
8
|
currencyElement: ElementRef<HTMLInputElement>;
|
|
10
|
-
readonly currencyForm: FormGroup<{
|
|
11
|
-
currencyValue: FormControl<string>;
|
|
12
|
-
}>;
|
|
13
9
|
private _value;
|
|
14
10
|
get value(): number | null;
|
|
15
11
|
set value(value: number);
|
|
16
12
|
readonly valueChange: EventEmitter<number>;
|
|
13
|
+
private _disabled;
|
|
14
|
+
get disabled(): boolean;
|
|
17
15
|
set disabled(value: boolean);
|
|
18
16
|
readonly currencyLocale: string;
|
|
19
17
|
readonly currencyCurrency: string;
|
|
20
18
|
readonly allowEmptyValue: boolean;
|
|
21
|
-
private
|
|
22
|
-
private
|
|
23
|
-
private
|
|
24
|
-
ngOnInit(): void;
|
|
25
|
-
ngOnDestroy(): void;
|
|
19
|
+
private _autoNumeric;
|
|
20
|
+
private _rendering;
|
|
21
|
+
private readonly _rawValueModifiedListener;
|
|
26
22
|
ngAfterViewInit(): void;
|
|
27
23
|
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Derives the AutoNumeric formatting from the Intl formatting of the configured locale and
|
|
27
|
+
* currency, so the input renders amounts exactly as that locale writes them.
|
|
28
|
+
*/
|
|
29
|
+
private get autoNumericOptions();
|
|
30
|
+
private onRawValueModified;
|
|
28
31
|
private renderValue;
|
|
32
|
+
private withoutEmitting;
|
|
29
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormIoCurrencyComponent, never>;
|
|
30
34
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormIoCurrencyComponent, "valtimo-currency", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "currencyLocale": { "alias": "currencyLocale"; "required": false; }; "currencyCurrency": { "alias": "currencyCurrency"; "required": false; }; "allowEmptyValue": { "alias": "allowEmptyValue"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
|
|
31
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currency.component.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/valtimo/components/src/lib/components/form-io/components/form-io-currency/currency.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,aAAa,EAEb,UAAU,EACV,YAAY,EAEZ,SAAS,EACT,SAAS,
|
|
1
|
+
{"version":3,"file":"currency.component.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/valtimo/components/src/lib/components/form-io/components/form-io-currency/currency.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,aAAa,EAEb,UAAU,EACV,YAAY,EAEZ,SAAS,EACT,SAAS,EAET,aAAa,EAEd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,qBAAqB,EAAC,MAAM,qBAAqB,CAAC;;AAO1D;;GAEG;AACH,qBAKa,uBACX,YAAW,qBAAqB,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS;IAE/C,eAAe,EAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAE7E,OAAO,CAAC,MAAM,CAAuB;IAErC,IAAW,KAAK,IAAI,MAAM,GAAG,IAAI,CAEhC;IAED,IAAoB,KAAK,CAAC,KAAK,EAAE,MAAM,EAGtC;IAED,SAA0B,WAAW,uBAA8B;IAEnE,OAAO,CAAC,SAAS,CAAS;IAE1B,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED,IAAoB,QAAQ,CAAC,KAAK,EAAE,OAAO,EAE1C;IAED,SAAyB,cAAc,EAAE,MAAM,CAAC;IAChD,SAAyB,gBAAgB,EAAE,MAAM,CAAC;IAClD,SAAyB,eAAe,EAAE,OAAO,CAAC;IAElD,OAAO,CAAC,YAAY,CAA4B;IAEhD,OAAO,CAAC,UAAU,CAAS;IAE3B,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAyC;IAE5E,eAAe,IAAI,IAAI;IASvB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAUzC,WAAW,IAAI,IAAI;IAa1B;;;OAGG;IACH,OAAO,KAAK,kBAAkB,GA2C7B;IAED,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,WAAW;IAcnB,OAAO,CAAC,eAAe;yCAlJZ,uBAAuB;2CAAvB,uBAAuB;CA0JnC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valtimo/components",
|
|
3
3
|
"license": "EUPL-1.2",
|
|
4
|
-
"version": "13.
|
|
4
|
+
"version": "13.52.0",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "19.2.25",
|
|
7
7
|
"@angular/core": "19.2.25",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"flatpickr": "4.6.13",
|
|
36
36
|
"lodash": "4.18.1",
|
|
37
37
|
"jwt-decode": "4.0.0",
|
|
38
|
-
"deepmerge-ts": "
|
|
38
|
+
"deepmerge-ts": "8.0.2",
|
|
39
39
|
"@carbon/charts-angular": "1.23.6",
|
|
40
40
|
"@types/topojson": "3.2.6",
|
|
41
|
-
"
|
|
41
|
+
"autonumeric": "4.10.10",
|
|
42
42
|
"semver": "7.7.1",
|
|
43
43
|
"muuri": "0.9.5",
|
|
44
44
|
"ajv": "8.17.1",
|