siesa-ui-kit 1.0.50 → 1.0.52
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/dist/components/ParameterEditor/ParameterEditor.d.ts.map +1 -1
- package/dist/components/ParameterEditor/ParameterEditor.types.d.ts +1 -1
- package/dist/components/ParameterEditor/ParameterEditor.utils.d.ts +4 -4
- package/dist/siesa-ui-kit.cjs +29 -29
- package/dist/siesa-ui-kit.cjs.map +1 -1
- package/dist/siesa-ui-kit.mjs +119 -116
- package/dist/siesa-ui-kit.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterEditor.d.ts","sourceRoot":"","sources":["../../../src/components/ParameterEditor/ParameterEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ParameterEditor.d.ts","sourceRoot":"","sources":["../../../src/components/ParameterEditor/ParameterEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,KAAK,EAAE,oBAAoB,EAAmB,MAAM,yBAAyB,CAAC;AA0BrF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA+R1D,CAAC"}
|
|
@@ -53,7 +53,7 @@ export interface ParameterSavePayload {
|
|
|
53
53
|
rowVersion: number;
|
|
54
54
|
}
|
|
55
55
|
export interface ParameterEditorProps {
|
|
56
|
-
|
|
56
|
+
dataSource: ParameterCategory[];
|
|
57
57
|
onSave: (changes: ParameterSavePayload[]) => Promise<void>;
|
|
58
58
|
fetcher: Fetcher;
|
|
59
59
|
title?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ParameterCategory, ParameterDefinition, ParameterChange, ParameterSavePayload } from './ParameterEditor.types';
|
|
2
2
|
/**
|
|
3
|
-
* Builds the initial values map from
|
|
3
|
+
* Builds the initial values map from dataSource.
|
|
4
4
|
* Maps parameterId -> resolvedValue
|
|
5
5
|
*/
|
|
6
|
-
export declare function buildOriginalValues(
|
|
6
|
+
export declare function buildOriginalValues(dataSource: ParameterCategory[]): Map<string, string>;
|
|
7
7
|
/**
|
|
8
8
|
* Validates a parameter value against its validation rules.
|
|
9
9
|
* Returns an error message if invalid, or empty string if valid.
|
|
@@ -23,13 +23,13 @@ export declare function getVisibleParameters(parameters: ParameterDefinition[]):
|
|
|
23
23
|
*/
|
|
24
24
|
export declare function getCategoryChangeCount(category: ParameterCategory, editedValues: Map<string, string>, originalValues: Map<string, string>): number;
|
|
25
25
|
/**
|
|
26
|
-
* Gets the total count of all changes across
|
|
26
|
+
* Gets the total count of all changes across dataSource.
|
|
27
27
|
*/
|
|
28
28
|
export declare function getTotalChangeCount(editedValues: Map<string, string>, originalValues: Map<string, string>): number;
|
|
29
29
|
/**
|
|
30
30
|
* Builds the list of changes for the confirm panel.
|
|
31
31
|
*/
|
|
32
|
-
export declare function buildChangeList(
|
|
32
|
+
export declare function buildChangeList(dataSource: ParameterCategory[], editedValues: Map<string, string>, originalValues: Map<string, string>): ParameterChange[];
|
|
33
33
|
/**
|
|
34
34
|
* Builds the save payload from the change list.
|
|
35
35
|
*/
|