@gcforms/types 1.0.19 → 1.0.21

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,12 @@ 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
+
9
+
10
+ ## [1.0.20] - 2025-08-26
11
+
12
+ - Add FormBetaElementType
13
+
8
14
  ## [1.0.19] - 2025-08-26
9
15
 
10
16
  - Export NextActionRule
package/dist/index.d.mts CHANGED
@@ -60,6 +60,14 @@ declare enum FormElementTypes {
60
60
  formattedDate = "formattedDate",
61
61
  customJson = "customJson"
62
62
  }
63
+ declare const BetaFormElementTypes: {
64
+ addressComplete: {
65
+ flag: string;
66
+ };
67
+ fileInput: {
68
+ flag: string;
69
+ };
70
+ };
63
71
  type ConditionalRule = {
64
72
  choiceId: string;
65
73
  };
@@ -112,6 +120,7 @@ interface ElementProperties {
112
120
  maxNumberOfRows?: number;
113
121
  autoComplete?: string;
114
122
  dateFormat?: string;
123
+ allowNegativeNumbers?: boolean;
115
124
  conditionalRules?: ConditionalRule[];
116
125
  full?: boolean;
117
126
  addressComponents?: AddressComponents | undefined;
@@ -299,4 +308,4 @@ interface AddressCompleteLabels {
299
308
  country: string;
300
309
  }
301
310
 
302
- export { AddressCompleNext, type AddressCompleteChoice, type AddressCompleteLabels, type AddressCompleteProps, type AddressCompleteResult, type AddressComponents, type AddressElements, type BrandProperties, type ChoiceRule, type ClosedDetails, type ConditionalRule, type DateFormat, type DateObject, DatePart, type DeliveryOption, type ElementProperties, type FileInput, type FileInputResponse, type FormElement, FormElementTypes, type FormProperties, type FormPurpose, type FormRecord, FormStatus, type FormValues, type Group, type GroupsType, type NextActionRule, NotificationsInterval, NotificationsIntervalDefault, type PropertyChoices, type PublicFormRecord, type Response, type Responses, type SecurityAttribute, SortOption, type SortValue, type ValidationProperties, type dynamicRowType };
311
+ export { AddressCompleNext, type AddressCompleteChoice, type AddressCompleteLabels, type AddressCompleteProps, type AddressCompleteResult, type AddressComponents, type AddressElements, BetaFormElementTypes, type BrandProperties, type ChoiceRule, type ClosedDetails, type ConditionalRule, type DateFormat, type DateObject, DatePart, type DeliveryOption, type ElementProperties, type FileInput, type FileInputResponse, type FormElement, FormElementTypes, type FormProperties, type FormPurpose, type FormRecord, FormStatus, type FormValues, type Group, type GroupsType, type NextActionRule, NotificationsInterval, NotificationsIntervalDefault, type PropertyChoices, type PublicFormRecord, type Response, type Responses, type SecurityAttribute, SortOption, type SortValue, type ValidationProperties, type dynamicRowType };
package/dist/index.d.ts CHANGED
@@ -60,6 +60,14 @@ declare enum FormElementTypes {
60
60
  formattedDate = "formattedDate",
61
61
  customJson = "customJson"
62
62
  }
63
+ declare const BetaFormElementTypes: {
64
+ addressComplete: {
65
+ flag: string;
66
+ };
67
+ fileInput: {
68
+ flag: string;
69
+ };
70
+ };
63
71
  type ConditionalRule = {
64
72
  choiceId: string;
65
73
  };
@@ -112,6 +120,7 @@ interface ElementProperties {
112
120
  maxNumberOfRows?: number;
113
121
  autoComplete?: string;
114
122
  dateFormat?: string;
123
+ allowNegativeNumbers?: boolean;
115
124
  conditionalRules?: ConditionalRule[];
116
125
  full?: boolean;
117
126
  addressComponents?: AddressComponents | undefined;
@@ -299,4 +308,4 @@ interface AddressCompleteLabels {
299
308
  country: string;
300
309
  }
301
310
 
302
- export { AddressCompleNext, type AddressCompleteChoice, type AddressCompleteLabels, type AddressCompleteProps, type AddressCompleteResult, type AddressComponents, type AddressElements, type BrandProperties, type ChoiceRule, type ClosedDetails, type ConditionalRule, type DateFormat, type DateObject, DatePart, type DeliveryOption, type ElementProperties, type FileInput, type FileInputResponse, type FormElement, FormElementTypes, type FormProperties, type FormPurpose, type FormRecord, FormStatus, type FormValues, type Group, type GroupsType, type NextActionRule, NotificationsInterval, NotificationsIntervalDefault, type PropertyChoices, type PublicFormRecord, type Response, type Responses, type SecurityAttribute, SortOption, type SortValue, type ValidationProperties, type dynamicRowType };
311
+ export { AddressCompleNext, type AddressCompleteChoice, type AddressCompleteLabels, type AddressCompleteProps, type AddressCompleteResult, type AddressComponents, type AddressElements, BetaFormElementTypes, type BrandProperties, type ChoiceRule, type ClosedDetails, type ConditionalRule, type DateFormat, type DateObject, DatePart, type DeliveryOption, type ElementProperties, type FileInput, type FileInputResponse, type FormElement, FormElementTypes, type FormProperties, type FormPurpose, type FormRecord, FormStatus, type FormValues, type Group, type GroupsType, type NextActionRule, NotificationsInterval, NotificationsIntervalDefault, type PropertyChoices, type PublicFormRecord, type Response, type Responses, type SecurityAttribute, SortOption, type SortValue, type ValidationProperties, type dynamicRowType };
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ BetaFormElementTypes: () => BetaFormElementTypes,
23
24
  FormElementTypes: () => FormElementTypes,
24
25
  FormStatus: () => FormStatus,
25
26
  NotificationsInterval: () => NotificationsInterval,
@@ -50,6 +51,10 @@ var FormElementTypes = /* @__PURE__ */ ((FormElementTypes2) => {
50
51
  FormElementTypes2["customJson"] = "customJson";
51
52
  return FormElementTypes2;
52
53
  })(FormElementTypes || {});
54
+ var BetaFormElementTypes = {
55
+ ["addressComplete" /* addressComplete */]: { flag: "addressComplete" },
56
+ ["fileInput" /* fileInput */]: { flag: "fileUpload" }
57
+ };
53
58
  var SortOption = {
54
59
  NONE: "none",
55
60
  ASCENDING: "ascending",
@@ -70,6 +75,7 @@ var NotificationsInterval = {
70
75
  var NotificationsIntervalDefault = NotificationsInterval.DAY;
71
76
  // Annotate the CommonJS export names for ESM import in node:
72
77
  0 && (module.exports = {
78
+ BetaFormElementTypes,
73
79
  FormElementTypes,
74
80
  FormStatus,
75
81
  NotificationsInterval,
package/dist/index.mjs CHANGED
@@ -20,6 +20,10 @@ var FormElementTypes = /* @__PURE__ */ ((FormElementTypes2) => {
20
20
  FormElementTypes2["customJson"] = "customJson";
21
21
  return FormElementTypes2;
22
22
  })(FormElementTypes || {});
23
+ var BetaFormElementTypes = {
24
+ ["addressComplete" /* addressComplete */]: { flag: "addressComplete" },
25
+ ["fileInput" /* fileInput */]: { flag: "fileUpload" }
26
+ };
23
27
  var SortOption = {
24
28
  NONE: "none",
25
29
  ASCENDING: "ascending",
@@ -39,6 +43,7 @@ var NotificationsInterval = {
39
43
  };
40
44
  var NotificationsIntervalDefault = NotificationsInterval.DAY;
41
45
  export {
46
+ BetaFormElementTypes,
42
47
  FormElementTypes,
43
48
  FormStatus,
44
49
  NotificationsInterval,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gcforms/types",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "author": "Canadian Digital Service",
5
5
  "license": "MIT",
6
6
  "publishConfig": {