@ostack.tech/ui-kform 0.13.1 → 0.14.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.
@@ -4,7 +4,7 @@ import { Checkbox, CheckboxChecked } from '@ostack.tech/ui';
4
4
  import { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentRef, ReactNode, Ref } from 'react';
5
5
  import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
6
6
  /** Properties of the checkbox control component. */
7
- export interface CheckboxControlProps<T extends boolean | null = boolean | null> extends Omit<InputOptions<T, CheckboxChecked, ComponentRef<typeof Checkbox>>, "enabled" | "format" | "parse">, Omit<ComponentPropsWithoutRef<typeof Checkbox>, "defaultChecked" | "checked" | "status"> {
7
+ export interface CheckboxControlProps<T extends boolean | null = boolean | null> extends Omit<InputOptions<T, CheckboxChecked, ComponentRef<typeof Checkbox>>, "enabled" | "format" | "parse">, Omit<ComponentPropsWithoutRef<typeof Checkbox>, "defaultChecked" | "checked" | "status" | "validate" | "validationMode"> {
8
8
  /** Path to the value. */
9
9
  path?: string | Path;
10
10
  /**
@@ -13,7 +13,7 @@ export type CheckboxObject<T = unknown> = Omit<ComponentPropsWithRef<typeof Chec
13
13
  key?: Key;
14
14
  };
15
15
  /** Properties of the checkbox group control component. */
16
- export interface CheckboxGroupControlProps<T = unknown, TListable extends Listable<T> | null = Listable<T> | null> extends Omit<ListableInputOptions<T, TListable, string[], ComponentRef<typeof CheckboxGroup>>, "enabled" | "formatFromArray" | "parseToArray">, Omit<ComponentPropsWithoutRef<typeof CheckboxGroup>, "defaultValue" | "value" | "onValueChange" | "children" | "status"> {
16
+ export interface CheckboxGroupControlProps<T = unknown, TListable extends Listable<T> | null = Listable<T> | null> extends Omit<ListableInputOptions<T, TListable, string[], ComponentRef<typeof CheckboxGroup>>, "enabled" | "formatFromArray" | "parseToArray">, Omit<ComponentPropsWithoutRef<typeof CheckboxGroup>, "defaultValue" | "value" | "onValueChange" | "children" | "status" | "validate" | "validationMode"> {
17
17
  /** Path to the value. */
18
18
  path?: string | Path;
19
19
  /** Checkbox group control options. */
@@ -4,7 +4,7 @@ import { DateInput } from '@ostack.tech/ui';
4
4
  import { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentRef, ReactNode, Ref } from 'react';
5
5
  import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
6
6
  /** Properties of the date control component. */
7
- export interface DateControlProps<T extends Temporal | null = Temporal | null> extends Omit<TemporalInputOptions<T, string, ComponentRef<typeof DateInput>>, "enabled" | "formatFromString" | "parseToString">, Omit<ComponentPropsWithoutRef<typeof DateInput>, "defaultValue" | "value" | "onValueChange" | "status"> {
7
+ export interface DateControlProps<T extends Temporal | null = Temporal | null> extends Omit<TemporalInputOptions<T, string, ComponentRef<typeof DateInput>>, "enabled" | "formatFromString" | "parseToString">, Omit<ComponentPropsWithoutRef<typeof DateInput>, "defaultValue" | "value" | "onValueChange" | "status" | "validate" | "validationMode"> {
8
8
  /** Path to the value. */
9
9
  path?: string | Path;
10
10
  /**
@@ -4,7 +4,7 @@ import { DateRangeInput } from '@ostack.tech/ui';
4
4
  import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode, Ref } from 'react';
5
5
  import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
6
6
  /** Properties of the date-range control component. */
7
- export interface DateRangeControlProps<TStart extends Temporal | null = Temporal | null, TEnd extends Temporal | null = TStart> extends Omit<ComponentPropsWithoutRef<typeof DateRangeInput>, "defaultValue" | "value"> {
7
+ export interface DateRangeControlProps<TStart extends Temporal | null = Temporal | null, TEnd extends Temporal | null = TStart> extends Omit<ComponentPropsWithoutRef<typeof DateRangeInput>, "defaultValue" | "value" | "validate" | "validationMode"> {
8
8
  /** Path to the start value. */
9
9
  startPath: string | Path;
10
10
  /** Path to the end value. */
@@ -15,7 +15,7 @@ import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
15
15
  */
16
16
  export type FileControlFileInteraction = "view" | "download" | "none";
17
17
  /** Properties of the file control component. */
18
- export interface FileControlProps<T extends KFormFile | null = KFormFile | null> extends Omit<FileInputOptions<T, File | null, ComponentRef<typeof Input>>, "enabled" | "formatFromJsFile" | "parseToJsFile">, Omit<ComponentPropsWithoutRef<typeof Input>, "type" | "multiple" | "defaultValue" | "value" | "onValueChange" | "status" | "align"> {
18
+ export interface FileControlProps<T extends KFormFile | null = KFormFile | null> extends Omit<FileInputOptions<T, File | null, ComponentRef<typeof Input>>, "enabled" | "formatFromJsFile" | "parseToJsFile">, Omit<ComponentPropsWithoutRef<typeof Input>, "type" | "multiple" | "defaultValue" | "value" | "onValueChange" | "status" | "align" | "validate" | "validationMode"> {
19
19
  /** Path to the value. */
20
20
  path?: string | Path;
21
21
  /**
@@ -1,7 +1,6 @@
1
- import { Select } from '@ostack.tech/ui';
2
- import { ComponentPropsWithoutRef } from 'react';
1
+ import { SelectSingleProps } from '@ostack.tech/ui';
3
2
  /** Properties of the form pages select component. */
4
- export interface FormPagesSelectProps extends Omit<ComponentPropsWithoutRef<typeof Select>, "multiple" | "defaultValue" | "value" | "onValueChange" | "showClearButton"> {
3
+ export interface FormPagesSelectProps extends Omit<SelectSingleProps, "defaultValue" | "value" | "onValueChange" | "showClearButton"> {
5
4
  }
6
5
  /** Select component allowing the navigation between form pages. */
7
6
  export declare const FormPagesSelect: import('react').ForwardRefExoticComponent<FormPagesSelectProps & import('react').RefAttributes<HTMLButtonElement>>;
@@ -4,7 +4,7 @@ import { NumericInput } from '@ostack.tech/ui';
4
4
  import { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentRef, ReactNode, Ref } from 'react';
5
5
  import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
6
6
  /** Properties of the numeric control component. */
7
- export interface NumericControlProps<T extends Numeric | null = Numeric | null> extends Omit<NumericInputOptions<T, string, ComponentRef<typeof NumericInput>>, "enabled" | "formatFromString" | "parseToString">, Omit<ComponentPropsWithoutRef<typeof NumericInput>, "defaultValue" | "value" | "onValueChange" | "valueIsUnformattedString" | "status"> {
7
+ export interface NumericControlProps<T extends Numeric | null = Numeric | null> extends Omit<NumericInputOptions<T, string, ComponentRef<typeof NumericInput>>, "enabled" | "formatFromString" | "parseToString">, Omit<ComponentPropsWithoutRef<typeof NumericInput>, "defaultValue" | "value" | "onValueChange" | "valueIsUnformattedString" | "status" | "validate" | "validationMode"> {
8
8
  /** Path to the value. */
9
9
  path?: string | Path;
10
10
  /**
@@ -13,7 +13,7 @@ export type RadioObject<T = unknown> = Omit<ComponentPropsWithRef<typeof Radio>,
13
13
  key?: Key;
14
14
  };
15
15
  /** Properties of the radio group control component. */
16
- export interface RadioGroupControlProps<T = unknown> extends Omit<InputOptions<T, string, ComponentRef<typeof RadioGroup>>, "enabled" | "format" | "parse">, Omit<ComponentPropsWithoutRef<typeof RadioGroup>, "defaultValue" | "value" | "onValueChange" | "children" | "status"> {
16
+ export interface RadioGroupControlProps<T = unknown> extends Omit<InputOptions<T, string, ComponentRef<typeof RadioGroup>>, "enabled" | "format" | "parse">, Omit<ComponentPropsWithoutRef<typeof RadioGroup>, "defaultValue" | "value" | "onValueChange" | "children" | "status" | "validate" | "validationMode"> {
17
17
  /** Path to the value. */
18
18
  path?: string | Path;
19
19
  /** RadioGroup control options. */
@@ -5,7 +5,7 @@ import { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentRef, ReactNod
5
5
  import { OptionObject, OptionsGroupObject } from '../../utils/options.ts';
6
6
  import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
7
7
  /** Properties of the select control component. */
8
- export interface SelectControlProps<T = unknown> extends Omit<InputOptions<T, string, ComponentRef<typeof Select>>, "enabled" | "format" | "parse">, Omit<ComponentPropsWithoutRef<typeof Select>, "multiple" | "defaultValue" | "value" | "onValueChange" | "children" | "status"> {
8
+ export interface SelectControlProps<T = unknown> extends Omit<InputOptions<T, string, ComponentRef<typeof Select>>, "enabled" | "format" | "parse">, Omit<ComponentPropsWithoutRef<typeof Select>, "multiple" | "defaultValue" | "value" | "onValueChange" | "children" | "status" | "validate" | "validationMode"> {
9
9
  /** Path to the value. */
10
10
  path?: string | Path;
11
11
  /** Select control options. */
@@ -5,7 +5,7 @@ import { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentRef, ReactNod
5
5
  import { OptionObject, OptionsGroupObject } from '../../utils/options.ts';
6
6
  import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
7
7
  /** Properties of the select multiple control component. */
8
- export interface SelectMultipleControlProps<T = unknown, TListable extends Listable<T> | null = Listable<T> | null> extends Omit<ListableInputOptions<T, TListable, string[], ComponentRef<typeof Select>>, "enabled" | "formatFromArray" | "parseToArray">, Omit<ComponentPropsWithoutRef<typeof Select>, "multiple" | "defaultValue" | "value" | "onValueChange" | "children" | "status"> {
8
+ export interface SelectMultipleControlProps<T = unknown, TListable extends Listable<T> | null = Listable<T> | null> extends Omit<ListableInputOptions<T, TListable, string[], ComponentRef<typeof Select>>, "enabled" | "formatFromArray" | "parseToArray">, Omit<ComponentPropsWithoutRef<typeof Select>, "multiple" | "defaultValue" | "value" | "onValueChange" | "children" | "status" | "validate" | "validationMode"> {
9
9
  /** Path to the value. */
10
10
  path?: string | Path;
11
11
  /**
@@ -5,10 +5,10 @@ import { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentRef, ReactNod
5
5
  import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
6
6
  /** Properties of the text control component. */
7
7
  export type TextControlProps<T extends string | null = string | null> = TextControlPropsSingleline<T> | TextControlPropsMultiline<T>;
8
- export type TextControlPropsSingleline<T extends string | null = string | null> = Omit<ComponentPropsWithoutRef<typeof Input>, "defaultValue" | "value" | "status"> & TextControlPropsBase<T> & {
8
+ export type TextControlPropsSingleline<T extends string | null = string | null> = Omit<ComponentPropsWithoutRef<typeof Input>, "defaultValue" | "value" | "onValueChange" | "status" | "validate" | "validationMode"> & TextControlPropsBase<T> & {
9
9
  multiline?: false;
10
10
  };
11
- export type TextControlPropsMultiline<T extends string | null = string | null> = Omit<ComponentPropsWithoutRef<typeof TextArea>, "defaultValue" | "value" | "status"> & TextControlPropsBase<T> & {
11
+ export type TextControlPropsMultiline<T extends string | null = string | null> = Omit<ComponentPropsWithoutRef<typeof TextArea>, "defaultValue" | "value" | "onValueChange" | "status" | "validate" | "validationMode"> & TextControlPropsBase<T> & {
12
12
  multiline: true;
13
13
  pattern?: never;
14
14
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ostack.tech/ui-kform",
3
3
  "description": "Integration of ostack/UI with ostack/KForm.",
4
- "version": "0.13.1",
4
+ "version": "0.14.0",
5
5
  "homepage": "https://ui.ostack.tech/",
6
6
  "author": {
7
7
  "name": "Opensoft",
@@ -48,14 +48,14 @@
48
48
  "@fortawesome/fontawesome-svg-core": "^6.2.0 || ^7.0.0",
49
49
  "@fortawesome/free-regular-svg-icons": "^6.2.0 || ^7.0.0",
50
50
  "@fortawesome/free-solid-svg-icons": "^6.2.0 || ^7.0.0",
51
- "@ostack.tech/kform": "~0.32.0",
52
- "@ostack.tech/kform-react": "~0.32.0",
53
- "@ostack.tech/ui": "~0.13.1",
54
- "@types/react": "^18.0.0 || ^19.0.0",
55
- "@types/react-dom": "^18.0.0 || ^19.0.0",
51
+ "@ostack.tech/kform": "~0.34.1",
52
+ "@ostack.tech/kform-react": "~0.34.1",
53
+ "@ostack.tech/ui": "~0.14.0",
54
+ "@types/react": "^19.0.0",
55
+ "@types/react-dom": "^19.0.0",
56
56
  "date-fns": "^4.1.0",
57
- "react": "^18.0.0 || ^19.0.0",
58
- "react-dom": "^18.0.0 || ^19.0.0",
57
+ "react": "^19.0.0",
58
+ "react-dom": "^19.0.0",
59
59
  "react-to-print": "^3.0.0",
60
60
  "zustand": "^5.0.0"
61
61
  },
@@ -72,6 +72,7 @@
72
72
  display: block;
73
73
  padding: 0 $issues-panel-header-padding-x
74
74
  $issues-panel-header-padding-bottom !important;
75
+ background-color: inherit;
75
76
 
76
77
  // Sticky
77
78
  position: sticky;