isp-ui-kit 0.12.7 → 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.
- package/dist/FormComponents/FormInputNumber/form-input-number.type.d.ts +2 -2
- package/dist/FormComponents/FormSelect/FormSelect.d.ts +1 -1
- package/dist/Layout/Column/Column.d.ts +1 -1
- package/dist/Layout/Column/column.type.d.ts +1 -1
- package/dist/components/ConfigTable/ConfigTable.d.ts +4 -0
- package/dist/components/ConfigTable/config-table.type.d.ts +10 -0
- package/dist/index.d.ts +26 -3
- package/dist/index.js +1 -1
- package/package.json +6 -3
- package/dist/FormComponents/ConfigForm/index.d.ts +0 -1
- /package/dist/{SearchInput → components/SearchInput}/SearchInput.d.ts +0 -0
- /package/dist/{SearchInput → components/SearchInput}/search-input.type.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InputNumberProps } from 'antd';
|
|
2
2
|
import { FieldValues } from 'react-hook-form';
|
|
3
3
|
import { FormComponentProps } from '../formTypes';
|
|
4
|
-
export type FormInputNumberProps<TFormValues extends FieldValues> = FormComponentProps<TFormValues> &
|
|
4
|
+
export type FormInputNumberProps<TFormValues extends FieldValues> = FormComponentProps<TFormValues> & InputNumberProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { FormSelectProps } from './form-select.type';
|
|
3
3
|
import '../form-components.scss';
|
|
4
|
-
declare const _default: <T extends FieldValues>({
|
|
4
|
+
declare const _default: <T extends FieldValues>({ control, name, label, mode, rules, ...rest }: FormSelectProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ColumnProps } from './column.type';
|
|
2
2
|
import './column.scss';
|
|
3
|
-
declare const Column: <T extends
|
|
3
|
+
declare const Column: <T extends object>({ title, searchPlaceholder, items, onAddItem, onUpdateItem, onRemoveItem, showRemoveBtn, showUpdateBtn, showAddBtn, selectedItemId, setSelectedItemId, searchValue, onChangeSearchValue, renderItems, isSortByName, }: ColumnProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default Column;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ConfigTableProps } from './config-table.type';
|
|
2
|
+
import './config-table.scss';
|
|
3
|
+
declare const ConfigTable: ({ onSearch, onClickBtn, textBtn, placeholderSearch, isAddBtn, isSearch, dataSource, ...rest }: ConfigTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default ConfigTable;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TableProps } from 'antd';
|
|
2
|
+
export type ConfigTableProps = {
|
|
3
|
+
onSearch?: (value: string) => void;
|
|
4
|
+
onClickBtn?: () => void;
|
|
5
|
+
textBtn?: string;
|
|
6
|
+
placeholderSearch?: string;
|
|
7
|
+
dataSource: any[];
|
|
8
|
+
isAddBtn?: boolean;
|
|
9
|
+
isSearch?: boolean;
|
|
10
|
+
} & TableProps;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
import * as FormComponents from './FormComponents';
|
|
2
|
+
export * from './FormComponents/ConfigForm/config-form.type';
|
|
3
|
+
export * from './FormComponents/FormArrayMap/form-array-map.type';
|
|
4
|
+
export * from './FormComponents/FormCheckbox/form-checkbox.type';
|
|
5
|
+
export * from './FormComponents/FormCodeEditor/form-code-editor.type';
|
|
6
|
+
export * from './FormComponents/FormInput/form-input.type';
|
|
7
|
+
export * from './FormComponents/FormInputNumber/form-input-number.type';
|
|
8
|
+
export * from './FormComponents/FormInputPassword/form-input-password.type';
|
|
9
|
+
export * from './FormComponents/FormRadioGroup/form-radio-group.type';
|
|
10
|
+
export * from './FormComponents/FormSelect/form-select.type';
|
|
11
|
+
export * from './FormComponents/FormTextArea/form-text-area.type';
|
|
12
|
+
export * from './FormComponents/FormTreeSelect/form-tree-select.type';
|
|
13
|
+
export * from './FormComponents/formTypes';
|
|
2
14
|
import * as Layout from './Layout';
|
|
3
|
-
|
|
15
|
+
export * from './Layout/Column/column.type';
|
|
16
|
+
export * from './Layout/ContentColumn/content-column';
|
|
17
|
+
export * from './Layout/ErrorPage/error-page';
|
|
18
|
+
export * from './Layout/HomePage/home-page';
|
|
19
|
+
export * from './Layout/LayoutMenu/layout-menu';
|
|
20
|
+
export * from './Layout/LayoutSider/layout-sider';
|
|
21
|
+
export * from './Layout/NotFoundPage/not-found-page';
|
|
22
|
+
export * from './Layout/ThreeColumn/three-column.type';
|
|
23
|
+
import ReactJsonView from './components/ReactJsonView/js';
|
|
24
|
+
import ConfigTable from './components/ConfigTable/ConfigTable';
|
|
25
|
+
import SearchInput from './components/SearchInput/SearchInput';
|
|
26
|
+
export * from './components/ConfigTable/config-table.type';
|
|
27
|
+
export * from './components/SearchInput/search-input.type';
|
|
4
28
|
import useAuth from './hooks/useAuth';
|
|
5
29
|
import { getConfigProperty } from './utils/configUtils';
|
|
6
|
-
import ReactJsonView from './ReactJsonView/js';
|
|
7
30
|
import { findRouteWithParents } from './utils/layoutMenuUtils';
|
|
8
|
-
export { FormComponents, SearchInput, Layout, useAuth, getConfigProperty, ReactJsonView, findRouteWithParents, };
|
|
31
|
+
export { FormComponents, SearchInput, Layout, useAuth, getConfigProperty, ReactJsonView, findRouteWithParents, ConfigTable, };
|