diff --git a/packages/ketchup/src/components.d.ts b/packages/ketchup/src/components.d.ts index 7462edb8a9..6ea0e2d245 100644 --- a/packages/ketchup/src/components.d.ts +++ b/packages/ketchup/src/components.d.ts @@ -2840,7 +2840,7 @@ export namespace Components { */ "rows": number; /** - * An array of integers containing the path to a selected child.\ + * An array of integers containing the path to a selected child. */ "selectedNode": TreeNodePath; /** @@ -8428,7 +8428,7 @@ declare namespace LocalJSX { */ "rows"?: number; /** - * An array of integers containing the path to a selected child.\ + * An array of integers containing the path to a selected child. */ "selectedNode"?: TreeNodePath; /** diff --git a/packages/ketchup/src/components/kup-image-list/kup-image-list.tsx b/packages/ketchup/src/components/kup-image-list/kup-image-list.tsx index 311f381e37..beaecdc0b5 100644 --- a/packages/ketchup/src/components/kup-image-list/kup-image-list.tsx +++ b/packages/ketchup/src/components/kup-image-list/kup-image-list.tsx @@ -134,7 +134,7 @@ export class KupImageList { @Prop() rows: number = null; /** - * An array of integers containing the path to a selected child.\ + * An array of integers containing the path to a selected child. */ @Prop() selectedNode: TreeNodePath = []; @Prop() stateId: string = ''; diff --git a/packages/ketchup/src/components/kup-image-list/readme.md b/packages/ketchup/src/components/kup-image-list/readme.md index aaf4fdf40b..c207af29dd 100644 --- a/packages/ketchup/src/components/kup-image-list/readme.md +++ b/packages/ketchup/src/components/kup-image-list/readme.md @@ -14,7 +14,7 @@ | `data` | -- | Actual data of the component. | `KupImageListDataNode[]` | `[]` | | `ripple` | `ripple` | When enabled displays Material's ripple effect on clicked items. | `boolean` | `false` | | `rows` | `rows` | Number of rows to display in the grid layout. | `number` | `null` | -| `selectedNode` | -- | An array of integers containing the path to a selected child.\ | `number[]` | `[]` | +| `selectedNode` | -- | An array of integers containing the path to a selected child. | `number[]` | `[]` | | `showFullDescription` | `show-full-description` | When enabled images descriptions will be fully shown. | `boolean` | `false` | | `stateId` | `state-id` | | `string` | `''` | | `store` | -- | | `KupStore` | `undefined` | diff --git a/packages/ketchup/src/components/kup-input-panel/kup-input-panel.tsx b/packages/ketchup/src/components/kup-input-panel/kup-input-panel.tsx index 273efb3724..b21a75daab 100644 --- a/packages/ketchup/src/components/kup-input-panel/kup-input-panel.tsx +++ b/packages/ketchup/src/components/kup-input-panel/kup-input-panel.tsx @@ -1681,7 +1681,11 @@ export class KupInputPanel { ) ?? [] : []; } else { - console.warn('"kup-list" not found'); + this.#kupManager.debug.logMessage( + this, + 'getAutocompleteEventCallback() - "kup-list" not found in cell.data.data', + KupDebugCategory.WARNING + ); } detail.comp.refresh(); }); diff --git a/packages/ketchup/src/f-components/f-cell/f-cell.tsx b/packages/ketchup/src/f-components/f-cell/f-cell.tsx index a6270b3880..80dfdd4d66 100644 --- a/packages/ketchup/src/f-components/f-cell/f-cell.tsx +++ b/packages/ketchup/src/f-components/f-cell/f-cell.tsx @@ -912,6 +912,7 @@ function setEditableCell( } decimals={props.column.decimals} integers={props.column.integers} + group={props.column.group} value={value} onChange={onChange} onInput={onInput} diff --git a/packages/ketchup/src/f-components/f-text-field/f-text-field.tsx b/packages/ketchup/src/f-components/f-text-field/f-text-field.tsx index 746a9e6698..23f1c37ea1 100644 --- a/packages/ketchup/src/f-components/f-text-field/f-text-field.tsx +++ b/packages/ketchup/src/f-components/f-text-field/f-text-field.tsx @@ -203,8 +203,8 @@ function setContent(props: FTextFieldProps): HTMLDivElement { const options: NumericFieldFormatOptions = { allowNegative: props.allowNegative ?? true, decimal: props.decimals, - group: props.group, - integer: props.integers, + group: props.group ?? true, + integer: (props.integers ?? 0) - (props.decimals ?? 0), }; value = formatValue(value, options, false); } @@ -253,8 +253,10 @@ function setContent(props: FTextFieldProps): HTMLDivElement { const options: NumericFieldFormatOptions = { allowNegative: props.allowNegative ?? true, decimal: props.decimals, - group: props.group, - integer: props.integers, + group: props.group ?? true, + integer: + (props.integers ?? 0) - + (props.decimals ?? 0), }; (e.target as HTMLInputElement).value = formatValue( @@ -272,8 +274,10 @@ function setContent(props: FTextFieldProps): HTMLDivElement { const options: NumericFieldFormatOptions = { allowNegative: props.allowNegative ?? true, decimal: props.decimals, - group: props.group, - integer: props.integers, + group: props.group ?? true, + integer: + (props.integers ?? 0) - + (props.decimals ?? 0), }; if ( props.min !== undefined && @@ -358,8 +362,10 @@ function setContent(props: FTextFieldProps): HTMLDivElement { const options: NumericFieldFormatOptions = { allowNegative: props.allowNegative ?? true, decimal: props.decimals, - group: props.group, - integer: props.integers, + group: props.group ?? true, + integer: + (props.integers ?? 0) - + (props.decimals ?? 0), }; let component = e.target as HTMLInputElement; let value = component.value;