@gcforms/types 1.0.30 → 1.0.31
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/CHANGELOG.md +4 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.31] - 2026-04-23
|
|
9
|
+
|
|
10
|
+
- Add Element properties to support Advanced number inputs
|
|
11
|
+
|
|
8
12
|
## [1.0.30] - 2026-03-30
|
|
9
13
|
|
|
10
14
|
- Add ValidationInputType as sub-type of HTMLTextInputTypeAttribute
|
package/dist/index.d.mts
CHANGED
|
@@ -59,6 +59,7 @@ declare const FormElementTypes: {
|
|
|
59
59
|
readonly contact: "contact";
|
|
60
60
|
readonly combobox: "combobox";
|
|
61
61
|
readonly formattedDate: "formattedDate";
|
|
62
|
+
readonly numberInput: "numberInput";
|
|
62
63
|
readonly customJson: "customJson";
|
|
63
64
|
};
|
|
64
65
|
type FormElementTypes = (typeof FormElementTypes)[keyof typeof FormElementTypes];
|
|
@@ -75,6 +76,10 @@ interface ValidationProperties {
|
|
|
75
76
|
type?: ValidationInputType;
|
|
76
77
|
regex?: string;
|
|
77
78
|
maxLength?: number;
|
|
79
|
+
minValue?: number;
|
|
80
|
+
maxValue?: number;
|
|
81
|
+
minDigits?: number;
|
|
82
|
+
maxDigits?: number;
|
|
78
83
|
descriptionEN?: string;
|
|
79
84
|
descriptionFR?: string;
|
|
80
85
|
[key: string]: unknown;
|
|
@@ -121,6 +126,8 @@ interface ElementProperties {
|
|
|
121
126
|
dateFormat?: string;
|
|
122
127
|
allowNegativeNumbers?: boolean;
|
|
123
128
|
stepCount?: number;
|
|
129
|
+
currencyCode?: string;
|
|
130
|
+
useThousandsSeparator?: boolean;
|
|
124
131
|
conditionalRules?: ConditionalRule[];
|
|
125
132
|
full?: boolean;
|
|
126
133
|
addressComponents?: AddressComponents | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ declare const FormElementTypes: {
|
|
|
59
59
|
readonly contact: "contact";
|
|
60
60
|
readonly combobox: "combobox";
|
|
61
61
|
readonly formattedDate: "formattedDate";
|
|
62
|
+
readonly numberInput: "numberInput";
|
|
62
63
|
readonly customJson: "customJson";
|
|
63
64
|
};
|
|
64
65
|
type FormElementTypes = (typeof FormElementTypes)[keyof typeof FormElementTypes];
|
|
@@ -75,6 +76,10 @@ interface ValidationProperties {
|
|
|
75
76
|
type?: ValidationInputType;
|
|
76
77
|
regex?: string;
|
|
77
78
|
maxLength?: number;
|
|
79
|
+
minValue?: number;
|
|
80
|
+
maxValue?: number;
|
|
81
|
+
minDigits?: number;
|
|
82
|
+
maxDigits?: number;
|
|
78
83
|
descriptionEN?: string;
|
|
79
84
|
descriptionFR?: string;
|
|
80
85
|
[key: string]: unknown;
|
|
@@ -121,6 +126,8 @@ interface ElementProperties {
|
|
|
121
126
|
dateFormat?: string;
|
|
122
127
|
allowNegativeNumbers?: boolean;
|
|
123
128
|
stepCount?: number;
|
|
129
|
+
currencyCode?: string;
|
|
130
|
+
useThousandsSeparator?: boolean;
|
|
124
131
|
conditionalRules?: ConditionalRule[];
|
|
125
132
|
full?: boolean;
|
|
126
133
|
addressComponents?: AddressComponents | undefined;
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED