@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 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
@@ -48,6 +48,7 @@ var FormElementTypes = {
48
48
  contact: "contact",
49
49
  combobox: "combobox",
50
50
  formattedDate: "formattedDate",
51
+ numberInput: "numberInput",
51
52
  customJson: "customJson"
52
53
  };
53
54
  var BetaFormElementTypes = {
package/dist/index.mjs CHANGED
@@ -17,6 +17,7 @@ var FormElementTypes = {
17
17
  contact: "contact",
18
18
  combobox: "combobox",
19
19
  formattedDate: "formattedDate",
20
+ numberInput: "numberInput",
20
21
  customJson: "customJson"
21
22
  };
22
23
  var BetaFormElementTypes = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gcforms/types",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "author": "Canadian Digital Service",
5
5
  "license": "MIT",
6
6
  "publishConfig": {