plmt-constructor-sdk 0.17.0 → 0.17.2
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/README.md +2 -2
- package/config.d.ts +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -248,7 +248,7 @@ import { DataSettings, ViewSettings } from 'plmt-constructor-sdk';
|
|
|
248
248
|
import {
|
|
249
249
|
CreateViewSettings,
|
|
250
250
|
input,
|
|
251
|
-
|
|
251
|
+
ViewSettingsValidationFn,
|
|
252
252
|
} from 'plmt-constructor-sdk/config';
|
|
253
253
|
|
|
254
254
|
let max = 0;
|
|
@@ -269,7 +269,7 @@ export const createViewSettings: CreateViewSettings<DataSettings> = ({
|
|
|
269
269
|
];
|
|
270
270
|
};
|
|
271
271
|
|
|
272
|
-
export const validation:
|
|
272
|
+
export const validation: ViewSettingsValidationFn = (
|
|
273
273
|
viewSettings: ViewSettings,
|
|
274
274
|
) => {
|
|
275
275
|
return {
|
package/config.d.ts
CHANGED
|
@@ -137,7 +137,13 @@ export interface CreateViewSettings<DataSettings extends WidgetDataSettings | Wi
|
|
|
137
137
|
}
|
|
138
138
|
export declare type ViewSettingsValidator = (value: any) => Text | null;
|
|
139
139
|
declare type ViewSettingsLabel = Text | string;
|
|
140
|
-
|
|
140
|
+
/**
|
|
141
|
+
* @deprecated Используйте ViewSettingsValidationFn
|
|
142
|
+
*/
|
|
143
|
+
export interface ViewSettingsValidation {
|
|
144
|
+
[key: string]: ViewSettingsValidator;
|
|
145
|
+
}
|
|
146
|
+
export declare type ViewSettingsValidationFn = (viewSettings: ViewSettings) => {
|
|
141
147
|
[key: string]: ViewSettingsValidator;
|
|
142
148
|
};
|
|
143
149
|
export declare class ViewSettingsItem {
|