@abgov/jsonforms-components 1.43.9 → 1.43.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "1.43.9",
3
+ "version": "1.43.11",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
6
6
  "repository": "https://github.com/GovAlta/adsp-monorepo",
@@ -9,3 +9,4 @@ export declare const ReviewListWrapper: import("styled-components/dist/types").I
9
9
  export declare const ListWithDetail: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
10
10
  export declare const ListWithDetailHeading: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
11
11
  export declare const RightAlignmentDiv: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
+ export declare const FormStepperSummaryH3: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
@@ -1,5 +1,4 @@
1
1
  import { ControlProps, JsonSchema } from '@jsonforms/core';
2
- import { JsonFormsStateContext } from '@jsonforms/react';
3
2
  /**
4
3
  * Sets the first word to be capitalized so that it is sentence cased.
5
4
  * @param words
@@ -23,8 +22,29 @@ export declare const getLabelText: (scope: string, label: string) => string;
23
22
  export declare const isEmptyBoolean: (schema: JsonSchema, data: unknown) => boolean;
24
23
  export declare const isEmptyNumber: (schema: JsonSchema, data: unknown) => boolean;
25
24
  export declare const validateSinWithLuhn: (input: number) => boolean;
26
- export declare const checkFieldValidity: (props: ControlProps, ctx: JsonFormsStateContext) => string;
25
+ /**
26
+ * Check if a required, defined input value is valid. Returns an appropriate
27
+ * error message if not.
28
+ * @param props
29
+ * @returns error message
30
+ */
31
+ export declare const checkFieldValidity: (props: ControlProps) => string;
27
32
  /**
28
33
  * Check if the date is a valid date/time
29
34
  */
30
35
  export declare const isValidDate: (date: Date | string) => boolean;
36
+ /**
37
+ * Extracts the last segment from a JSON pointer string.
38
+ *
39
+ * @param pointer - The JSON pointer string (e.g., "#/properties/incomeThreshold").
40
+ * @returns The last segment of the JSON pointer or undefined if the pointer is invalid.
41
+ */
42
+ export declare const getLastSegmentFromPointer: (pointer: string) => string;
43
+ /**
44
+ * Converts a camelCase or PascalCase string to a human-readable format
45
+ * with each word capitalized.
46
+ *
47
+ * @param input - The camelCase or PascalCase string (e.g., "incomeThresholdExample").
48
+ * @returns A formatted string with spaces and capitalization (e.g., "Income Threshold Example").
49
+ */
50
+ export declare const convertToReadableFormat: (input: string) => string;