@valtimo/components 12.47.0 → 12.49.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.
@@ -5,11 +5,11 @@ import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Custom formio component for iban bank accounts.
7
7
  */
8
- export declare class FormIoIbanComponent implements FormioCustomComponent<any>, AfterViewInit, OnDestroy {
8
+ export declare class FormIoIbanComponent implements FormioCustomComponent<string>, AfterViewInit, OnDestroy {
9
9
  value: string;
10
10
  disabled: boolean;
11
11
  required: boolean;
12
- valueChange: EventEmitter<any>;
12
+ valueChange: EventEmitter<string>;
13
13
  ibanForm: FormGroup<{
14
14
  iban: FormControl<string>;
15
15
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"iban.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/valtimo/components/src/lib/components/form-io/form-io-iban/iban.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAa,YAAY,EAAS,SAAS,EAAS,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAC,WAAW,EAAE,SAAS,EAAa,MAAM,gBAAgB,CAAC;AAGlE,OAAO,EAAC,qBAAqB,EAAC,MAAM,kBAAkB,CAAC;;AAEvD;;GAEG;AACH,qBAKa,mBAAoB,YAAW,qBAAqB,CAAC,GAAG,CAAC,EAAE,aAAa,EAAE,SAAS;IAC9E,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,UAAS;IACjB,QAAQ,UAAS;IAChB,WAAW,oBAA2B;IAChD,QAAQ;;OAEZ;IACH,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAsB;IAE9C,eAAe,IAAI,IAAI;IAsBvB,WAAW,IAAI,IAAI;IAI1B,OAAO,CAAC,aAAa;yCApCV,mBAAmB;2CAAnB,mBAAmB;CA0C/B"}
1
+ {"version":3,"file":"iban.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/valtimo/components/src/lib/components/form-io/form-io-iban/iban.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAa,YAAY,EAAS,SAAS,EAAS,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAC,WAAW,EAAE,SAAS,EAAa,MAAM,gBAAgB,CAAC;AAGlE,OAAO,EAAC,qBAAqB,EAAC,MAAM,kBAAkB,CAAC;;AAEvD;;GAEG;AACH,qBAKa,mBACX,YAAW,qBAAqB,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,SAAS;IAElD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,UAAS;IACjB,QAAQ,UAAS;IAChB,WAAW,uBAA8B;IACnD,QAAQ;;OAEZ;IACH,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAsB;IAE9C,eAAe,IAAI,IAAI;IA0BvB,WAAW,IAAI,IAAI;IAI1B,OAAO,CAAC,aAAa;yCA1CV,mBAAmB;2CAAnB,mBAAmB;CA8C/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"iban.formio.d.ts","sourceRoot":"","sources":["../../../../../../../projects/valtimo/components/src/lib/components/form-io/form-io-iban/iban.formio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAqBvC,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,QAAQ,QAE7D"}
1
+ {"version":3,"file":"iban.formio.d.ts","sourceRoot":"","sources":["../../../../../../../projects/valtimo/components/src/lib/components/form-io/form-io-iban/iban.formio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AA6BvC,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,QAAQ,QAE7D"}
@@ -1,11 +1,16 @@
1
1
  import { ValidatorFn } from '@angular/forms';
2
2
  /**
3
- * Custom iban validator for angular forms.
4
3
  * Checks if the iban is valid.
5
4
  * First move the first four chracters from the beginngin to the end of the string.
6
5
  * Change the letter to a numeric representation.
7
6
  * Calculate the modulo in a parts, because javascript cannot accuratly calculate the modulus for large numbers.
8
7
  *
8
+ * @returns True if the iban is valid or the value is empty.
9
+ */
10
+ export declare function isValidIban(value: unknown): boolean;
11
+ /**
12
+ * Custom iban validator for angular forms.
13
+ *
9
14
  * @returns Null if the iban is valid or the value is an empty string, else return an object with isIbanValid property.
10
15
  */
11
16
  export declare function ibanValidator(): ValidatorFn;
@@ -1 +1 @@
1
- {"version":3,"file":"iban.validators.d.ts","sourceRoot":"","sources":["../../../../../../../projects/valtimo/components/src/lib/components/form-io/form-io-iban/iban.validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,WAAW,EAAmB,MAAM,gBAAgB,CAAC;AAE9E;;;;;;;;GAQG;AACH,wBAAgB,aAAa,IAAI,WAAW,CAe3C"}
1
+ {"version":3,"file":"iban.validators.d.ts","sourceRoot":"","sources":["../../../../../../../projects/valtimo/components/src/lib/components/form-io/form-io-iban/iban.validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,WAAW,EAAmB,MAAM,gBAAgB,CAAC;AAE9E;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAcnD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,WAAW,CAG3C"}
@@ -21,6 +21,7 @@ export declare function createCustomFormioComponent(customComponentOptions: Form
21
21
  attach(element: HTMLElement): any;
22
22
  bindCustomOptions(): void;
23
23
  setValue(value: any, flags?: any): boolean;
24
+ checkComponentValidity(data: any, dirty: boolean, row: any, options?: any): any;
24
25
  useWrapper(): boolean;
25
26
  readonly defaultValue: any;
26
27
  readonly maskOptions: {
@@ -1 +1 @@
1
- {"version":3,"file":"create-custom-component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/components/src/lib/modules/custom-formio-component/create-custom-component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,WAAW,EAAc,uBAAuB,EAAuB,MAAM,UAAU,CAAC;AAChG,OAAO,EAAC,yBAAyB,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAM9F,wBAAgB,2BAA2B,CAAC,sBAAsB,EAAE,yBAAyB;oBAoCrE,uBAAuB,WAChC,GAAG,QACN,GAAG;;;+BAjCY,mBAAmB;;;mBA+BtB,uBAAuB;;;;;;;;;;6BAwCtB,GAAG,SAAS,MAAM;wBASvB,WAAW;6BAuEN,IAAI;wBAiBT,GAAG,UAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiClC"}
1
+ {"version":3,"file":"create-custom-component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/components/src/lib/modules/custom-formio-component/create-custom-component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,WAAW,EAAc,uBAAuB,EAAuB,MAAM,UAAU,CAAC;AAChG,OAAO,EAAC,yBAAyB,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAM9F,wBAAgB,2BAA2B,CAAC,sBAAsB,EAAE,yBAAyB;oBAoCrE,uBAAuB,WAChC,GAAG,QACN,GAAG;;;+BAjCY,mBAAmB;;;mBA+BtB,uBAAuB;;;;;;;;;;6BAwCtB,GAAG,SAAS,MAAM;wBASvB,WAAW;6BAuEN,IAAI;wBAiBT,GAAG,UAAS,GAAG;qCAWF,GAAG,SAAS,OAAO,OAAO,GAAG,YAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqD3E"}
@@ -12,6 +12,7 @@ export interface FormioCustomComponentInfo extends BuilderInfo {
12
12
  editForm?: () => {
13
13
  components: ExtendedComponentSchema[];
14
14
  };
15
+ customValidator?: (value: any) => string | null;
15
16
  }
16
17
  export type FormioCustomElement = NgElement & WithProperties<{
17
18
  value: any;
@@ -1 +1 @@
1
- {"version":3,"file":"elements.common.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/components/src/lib/modules/custom-formio-component/elements.common.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,WAAW,EAAE,uBAAuB,EAAE,eAAe,EAAC,MAAM,UAAU,CAAC;AAC/E,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAC,SAAS,EAAE,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAG5D,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,eAAe,CAAC,EAAE,CAAC,MAAM,eAAe,CAAC,EAAE,CAAC;IAC5C,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM;QAAC,UAAU,EAAE,uBAAuB,EAAE,CAAA;KAAC,CAAC;CAC1D;AAED,MAAM,MAAM,mBAAmB,GAAG,SAAS,GACzC,cAAc,CAAC;IAAC,KAAK,EAAE,GAAG,CAAA;CAAC,GAAG,uBAAuB,CAAC,CAAC;AAEzD,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE;QACL,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC;IACtC,KAAK,EAAE,CAAC,CAAC;IACT,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;CACzC"}
1
+ {"version":3,"file":"elements.common.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/components/src/lib/modules/custom-formio-component/elements.common.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,WAAW,EAAE,uBAAuB,EAAE,eAAe,EAAC,MAAM,UAAU,CAAC;AAC/E,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAC,SAAS,EAAE,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAG5D,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,eAAe,CAAC,EAAE,CAAC,MAAM,eAAe,CAAC,EAAE,CAAC;IAC5C,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM;QAAC,UAAU,EAAE,uBAAuB,EAAE,CAAA;KAAC,CAAC;IACzD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,GAAG,IAAI,CAAC;CACjD;AAED,MAAM,MAAM,mBAAmB,GAAG,SAAS,GACzC,cAAc,CAAC;IAAC,KAAK,EAAE,GAAG,CAAA;CAAC,GAAG,uBAAuB,CAAC,CAAC;AAEzD,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE;QACL,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC;IACtC,KAAK,EAAE,CAAC,CAAC;IACT,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;CACzC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valtimo/components",
3
3
  "license": "EUPL-1.2",
4
- "version": "12.47.0",
4
+ "version": "12.49.0",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "17.3.12",
7
7
  "@angular/core": "17.3.12",