@elcrm/form 0.0.32 → 0.0.34

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.
@@ -1,4 +1,4 @@
1
- interface Input {
1
+ type Input = {
2
2
  value?: string;
3
3
  onValue?: Function;
4
4
  onSave?: Function;
@@ -10,11 +10,35 @@ interface Input {
10
10
  hide?: boolean;
11
11
  edit?: boolean;
12
12
  active?: Boolean;
13
- after?: string;
13
+ after?: any;
14
14
  show?: Boolean;
15
15
  view?: string;
16
+ id?: string;
16
17
  className?: string;
18
+ isCopy?: boolean;
17
19
  maxLength?: number;
18
- }
19
- export default function ({ value, onValue, name, placeholder, title, error, hide, edit, active, after, show, view, maxLength, onSave, className, }: Input): "" | import("react/jsx-runtime").JSX.Element;
20
+ };
21
+ /**
22
+ * Input.Notes
23
+ * @param {object} props - параметры
24
+ * @param {string} [props.id] - id
25
+ * @param {string} [props.value] - значение
26
+ * @param {function} [props.onValue] - callback на изменение
27
+ * @param {string} [props.name] - имя
28
+ * @param {string} [props.placeholder] - placeholder
29
+ * @param {string} [props.title] - заголовок
30
+ * @param {string} [props.error] - ошибка
31
+ * @param {boolean} [props.hide] - скрыть
32
+ * @param {boolean} [props.edit] - редактировать
33
+ * @param {boolean} [props.active] - активность
34
+ * @param {string} [props.after] - контент после
35
+ * @param {boolean} [props.show] - отображать
36
+ * @param {number} [props.maxLength] - максимальная длина
37
+ * @param {string} [props.view] - тип view
38
+ * @param {function} [props.onSave] - callback на save
39
+ * @param {string} [props.className] - css class
40
+ * @param {boolean} [props.isCopy] - разрешить копирование
41
+ * @return {ReactElement} - поле ввода
42
+ */
43
+ export default function ({ id, value, onValue, name, placeholder, title, error, hide, edit, active, after, show, maxLength, view, onSave, className, isCopy, }: Input): "" | import("react/jsx-runtime").JSX.Element;
20
44
  export {};
@@ -0,0 +1,20 @@
1
+ interface Input {
2
+ value?: string;
3
+ onValue?: Function;
4
+ onSave?: Function;
5
+ name?: string;
6
+ placeholder?: string;
7
+ title?: string;
8
+ label?: string;
9
+ error?: string;
10
+ hide?: boolean;
11
+ edit?: boolean;
12
+ active?: Boolean;
13
+ after?: string;
14
+ show?: Boolean;
15
+ view?: string;
16
+ className?: string;
17
+ maxLength?: number;
18
+ }
19
+ export default function ({ value, onValue, name, placeholder, title, error, hide, edit, active, after, show, view, maxLength, onSave, className, }: Input): "" | import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -4,9 +4,9 @@ export { default as Options } from './Options';
4
4
  export { default as Select } from './Select';
5
5
  export { default as Modal } from './Modal';
6
6
  export { default as Password } from './Password';
7
- export { default as Number } from './Number';
7
+ export { default as Numeric } from './Numeric';
8
8
  export { default as Mask } from './Mask';
9
- export { default as Note } from './Note';
9
+ export { default as Textarea } from './Textarea';
10
10
  export { default as Phone } from './Phone';
11
11
  export { default as Date } from './Date';
12
12
  export { default as Month } from './Month';
@@ -2,7 +2,7 @@ export declare function useData(f?: {}): any[];
2
2
  type Value = {
3
3
  value: any;
4
4
  name: string;
5
- reload: boolean;
5
+ reload?: boolean;
6
6
  };
7
7
  export declare function setValue(f: Value): void;
8
8
  export declare function runReload(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/form",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "description": "plugin for elCRM",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",
@@ -1,44 +0,0 @@
1
- type Input = {
2
- value?: string;
3
- onValue?: Function;
4
- onSave?: Function;
5
- name?: string;
6
- placeholder?: string;
7
- title?: string;
8
- label?: string;
9
- error?: string;
10
- hide?: boolean;
11
- edit?: boolean;
12
- active?: Boolean;
13
- after?: any;
14
- show?: Boolean;
15
- view?: string;
16
- id?: string;
17
- className?: string;
18
- isCopy?: boolean;
19
- maxLength?: number;
20
- };
21
- /**
22
- * Input.Notes
23
- * @param {object} props - параметры
24
- * @param {string} [props.id] - id
25
- * @param {string} [props.value] - значение
26
- * @param {function} [props.onValue] - callback на изменение
27
- * @param {string} [props.name] - имя
28
- * @param {string} [props.placeholder] - placeholder
29
- * @param {string} [props.title] - заголовок
30
- * @param {string} [props.error] - ошибка
31
- * @param {boolean} [props.hide] - скрыть
32
- * @param {boolean} [props.edit] - редактировать
33
- * @param {boolean} [props.active] - активность
34
- * @param {string} [props.after] - контент после
35
- * @param {boolean} [props.show] - отображать
36
- * @param {number} [props.maxLength] - максимальная длина
37
- * @param {string} [props.view] - тип view
38
- * @param {function} [props.onSave] - callback на save
39
- * @param {string} [props.className] - css class
40
- * @param {boolean} [props.isCopy] - разрешить копирование
41
- * @return {ReactElement} - поле ввода
42
- */
43
- export default function ({ id, value, onValue, name, placeholder, title, error, hide, edit, active, after, show, maxLength, view, onSave, className, isCopy, }: Input): "" | import("react/jsx-runtime").JSX.Element;
44
- export {};
File without changes