@faasjs/ant-design 0.0.3-beta.90 → 0.0.3-beta.92
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/index.d.mts +5 -20
- package/dist/index.d.ts +5 -20
- package/dist/index.js +21 -41
- package/dist/index.mjs +24 -44
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FaasDataInjection as FaasDataInjection$1, FaasDataWrapperProps as FaasDataWrapperProps$1 } from '@faasjs/react';
|
|
2
|
-
export { faas, useFaas } from '@faasjs/react';
|
|
1
|
+
import { FaasDataInjection as FaasDataInjection$1, FaasDataWrapperProps as FaasDataWrapperProps$1, ErrorBoundaryProps } from '@faasjs/react';
|
|
2
|
+
export { ErrorBoundaryProps, faas, useFaas } from '@faasjs/react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ConfigProviderProps as ConfigProviderProps$1 } from 'antd/es/config-provider';
|
|
5
5
|
import { StyleProviderProps } from '@ant-design/cssinjs/lib/StyleContext';
|
|
@@ -9,7 +9,7 @@ import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps
|
|
|
9
9
|
export { Drawer, Modal } from 'antd';
|
|
10
10
|
import { BrowserRouterProps, RouteProps } from 'react-router-dom';
|
|
11
11
|
import * as react from 'react';
|
|
12
|
-
import { CSSProperties, ReactNode, ReactElement,
|
|
12
|
+
import { CSSProperties, ReactNode, ReactElement, LazyExoticComponent, ComponentType } from 'react';
|
|
13
13
|
export { lazy } from 'react';
|
|
14
14
|
import { Dayjs } from 'dayjs';
|
|
15
15
|
import { RuleObject } from 'rc-field-form/lib/interface';
|
|
@@ -372,22 +372,7 @@ interface UnionFaasItemProps<Value = any, Values = any> extends FormItemProps, D
|
|
|
372
372
|
object?: UnionFaasItemProps<Value, Values>[];
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
|
|
376
|
-
message?: ReactNode;
|
|
377
|
-
description?: ReactNode;
|
|
378
|
-
children?: ReactNode;
|
|
379
|
-
onError?: (error: Error | null, info: any) => ReactNode;
|
|
380
|
-
}
|
|
381
|
-
declare class ErrorBoundary extends Component<ErrorBoundaryProps, {
|
|
382
|
-
error?: Error | null;
|
|
383
|
-
info?: {
|
|
384
|
-
componentStack?: string;
|
|
385
|
-
};
|
|
386
|
-
}> {
|
|
387
|
-
constructor(props: ErrorBoundaryProps);
|
|
388
|
-
componentDidCatch(error: Error | null, info: any): void;
|
|
389
|
-
render(): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element;
|
|
390
|
-
}
|
|
375
|
+
declare function ErrorBoundary(props: ErrorBoundaryProps): react_jsx_runtime.JSX.Element;
|
|
391
376
|
|
|
392
377
|
type FormSubmitProps = {
|
|
393
378
|
/** Default: Submit */
|
|
@@ -554,4 +539,4 @@ interface TitleProps {
|
|
|
554
539
|
*/
|
|
555
540
|
declare function Title(props: TitleProps): JSX.Element;
|
|
556
541
|
|
|
557
|
-
export { App, AppProps, BaseItemProps, BaseOption, Blank, BlankProps, ConfigContext, ConfigProvider, ConfigProviderProps, Description, DescriptionItemContentProps, DescriptionItemProps, DescriptionProps, DrawerProps, ErrorBoundary,
|
|
542
|
+
export { App, AppProps, BaseItemProps, BaseOption, Blank, BlankProps, ConfigContext, ConfigProvider, ConfigProviderProps, Description, DescriptionItemContentProps, DescriptionItemProps, DescriptionProps, DrawerProps, ErrorBoundary, ExtendDescriptionItemProps, ExtendDescriptionTypeProps, ExtendFormItemProps, ExtendFormTypeProps, ExtendTableItemProps, ExtendTableTypeProps, ExtendTypes, FaasDataInjection, FaasDataWrapper, FaasDataWrapperProps, FaasItemProps, FaasItemType, FaasItemTypeValue, Form, FormItem, FormItemProps, FormProps, FormSubmitProps, Link, LinkProps, Loading, LoadingProps, ModalProps, PageNotFound, Routes, RoutesProps, TabProps, Table, TableItemProps, TableProps, Tabs, TabsProps, Title, TitleProps, UnionFaasItemElement, UnionFaasItemInjection, UnionFaasItemProps, UnionFaasItemRender, UnionScene, setDrawerProps, setModalProps, transferOptions, transferValue, useApp, useAppProps, useConfigContext, useDrawer, useModal };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FaasDataInjection as FaasDataInjection$1, FaasDataWrapperProps as FaasDataWrapperProps$1 } from '@faasjs/react';
|
|
2
|
-
export { faas, useFaas } from '@faasjs/react';
|
|
1
|
+
import { FaasDataInjection as FaasDataInjection$1, FaasDataWrapperProps as FaasDataWrapperProps$1, ErrorBoundaryProps } from '@faasjs/react';
|
|
2
|
+
export { ErrorBoundaryProps, faas, useFaas } from '@faasjs/react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ConfigProviderProps as ConfigProviderProps$1 } from 'antd/es/config-provider';
|
|
5
5
|
import { StyleProviderProps } from '@ant-design/cssinjs/lib/StyleContext';
|
|
@@ -9,7 +9,7 @@ import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps
|
|
|
9
9
|
export { Drawer, Modal } from 'antd';
|
|
10
10
|
import { BrowserRouterProps, RouteProps } from 'react-router-dom';
|
|
11
11
|
import * as react from 'react';
|
|
12
|
-
import { CSSProperties, ReactNode, ReactElement,
|
|
12
|
+
import { CSSProperties, ReactNode, ReactElement, LazyExoticComponent, ComponentType } from 'react';
|
|
13
13
|
export { lazy } from 'react';
|
|
14
14
|
import { Dayjs } from 'dayjs';
|
|
15
15
|
import { RuleObject } from 'rc-field-form/lib/interface';
|
|
@@ -372,22 +372,7 @@ interface UnionFaasItemProps<Value = any, Values = any> extends FormItemProps, D
|
|
|
372
372
|
object?: UnionFaasItemProps<Value, Values>[];
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
|
|
376
|
-
message?: ReactNode;
|
|
377
|
-
description?: ReactNode;
|
|
378
|
-
children?: ReactNode;
|
|
379
|
-
onError?: (error: Error | null, info: any) => ReactNode;
|
|
380
|
-
}
|
|
381
|
-
declare class ErrorBoundary extends Component<ErrorBoundaryProps, {
|
|
382
|
-
error?: Error | null;
|
|
383
|
-
info?: {
|
|
384
|
-
componentStack?: string;
|
|
385
|
-
};
|
|
386
|
-
}> {
|
|
387
|
-
constructor(props: ErrorBoundaryProps);
|
|
388
|
-
componentDidCatch(error: Error | null, info: any): void;
|
|
389
|
-
render(): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element;
|
|
390
|
-
}
|
|
375
|
+
declare function ErrorBoundary(props: ErrorBoundaryProps): react_jsx_runtime.JSX.Element;
|
|
391
376
|
|
|
392
377
|
type FormSubmitProps = {
|
|
393
378
|
/** Default: Submit */
|
|
@@ -554,4 +539,4 @@ interface TitleProps {
|
|
|
554
539
|
*/
|
|
555
540
|
declare function Title(props: TitleProps): JSX.Element;
|
|
556
541
|
|
|
557
|
-
export { App, AppProps, BaseItemProps, BaseOption, Blank, BlankProps, ConfigContext, ConfigProvider, ConfigProviderProps, Description, DescriptionItemContentProps, DescriptionItemProps, DescriptionProps, DrawerProps, ErrorBoundary,
|
|
542
|
+
export { App, AppProps, BaseItemProps, BaseOption, Blank, BlankProps, ConfigContext, ConfigProvider, ConfigProviderProps, Description, DescriptionItemContentProps, DescriptionItemProps, DescriptionProps, DrawerProps, ErrorBoundary, ExtendDescriptionItemProps, ExtendDescriptionTypeProps, ExtendFormItemProps, ExtendFormTypeProps, ExtendTableItemProps, ExtendTableTypeProps, ExtendTypes, FaasDataInjection, FaasDataWrapper, FaasDataWrapperProps, FaasItemProps, FaasItemType, FaasItemTypeValue, Form, FormItem, FormItemProps, FormProps, FormSubmitProps, Link, LinkProps, Loading, LoadingProps, ModalProps, PageNotFound, Routes, RoutesProps, TabProps, Table, TableItemProps, TableProps, Tabs, TabsProps, Title, TitleProps, UnionFaasItemElement, UnionFaasItemInjection, UnionFaasItemProps, UnionFaasItemRender, UnionScene, setDrawerProps, setModalProps, transferOptions, transferValue, useApp, useAppProps, useConfigContext, useDrawer, useModal };
|
package/dist/index.js
CHANGED
|
@@ -371,48 +371,28 @@ function Description(props) {
|
|
|
371
371
|
}
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
error,
|
|
385
|
-
info
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
|
-
render() {
|
|
389
|
-
const {
|
|
390
|
-
message: message2,
|
|
391
|
-
description,
|
|
392
|
-
children
|
|
393
|
-
} = this.props;
|
|
394
|
-
const { error, info } = this.state;
|
|
395
|
-
const componentStack = info && info.componentStack ? info.componentStack : null;
|
|
396
|
-
const errorMessage = typeof message2 === "undefined" ? (error || "").toString() : message2;
|
|
397
|
-
const errorDescription = typeof description === "undefined" ? componentStack : description;
|
|
398
|
-
if (error) {
|
|
399
|
-
if (this.props.onError)
|
|
400
|
-
return this.props.onError(error, info);
|
|
401
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
402
|
-
antd.Alert,
|
|
403
|
-
{
|
|
404
|
-
type: "error",
|
|
405
|
-
message: errorMessage,
|
|
406
|
-
description: /* @__PURE__ */ jsxRuntime.jsx("pre", { style: {
|
|
407
|
-
fontSize: "0.9em",
|
|
408
|
-
overflowX: "auto"
|
|
409
|
-
}, children: errorDescription })
|
|
410
|
-
}
|
|
411
|
-
);
|
|
374
|
+
function ErrorChildren(props) {
|
|
375
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
376
|
+
antd.Alert,
|
|
377
|
+
{
|
|
378
|
+
type: "error",
|
|
379
|
+
message: props.errorMessage,
|
|
380
|
+
description: /* @__PURE__ */ jsxRuntime.jsx("pre", { style: {
|
|
381
|
+
fontSize: "0.9em",
|
|
382
|
+
overflowX: "auto"
|
|
383
|
+
}, children: props.errorDescription })
|
|
412
384
|
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
385
|
+
);
|
|
386
|
+
}
|
|
387
|
+
function ErrorBoundary(props) {
|
|
388
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
389
|
+
react.ErrorBoundary,
|
|
390
|
+
{
|
|
391
|
+
errorChildren: /* @__PURE__ */ jsxRuntime.jsx(ErrorChildren, {}),
|
|
392
|
+
...props
|
|
393
|
+
}
|
|
394
|
+
);
|
|
395
|
+
}
|
|
416
396
|
function processProps(propsCopy, config) {
|
|
417
397
|
if (!propsCopy.title)
|
|
418
398
|
propsCopy.title = lodashEs.upperFirst(propsCopy.id);
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FaasDataWrapper as FaasDataWrapper$1, faas } from '@faasjs/react';
|
|
1
|
+
import { FaasDataWrapper as FaasDataWrapper$1, ErrorBoundary as ErrorBoundary$1, faas } from '@faasjs/react';
|
|
2
2
|
export { faas, useFaas } from '@faasjs/react';
|
|
3
|
-
import { Form as Form$1, Modal, Drawer, message, notification, ConfigProvider, Typography, Spin, Descriptions,
|
|
3
|
+
import { Form as Form$1, Modal, Drawer, message, notification, ConfigProvider, Typography, Spin, Descriptions, Input, Button, Row, Col, TimePicker, DatePicker, Switch, Select, InputNumber, Radio, Result, Skeleton, Table as Table$1, Tabs as Tabs$1, Space, Alert } from 'antd';
|
|
4
4
|
export { Drawer, Modal } from 'antd';
|
|
5
5
|
import { StyleProvider, legacyLogicalPropertiesTransformer } from '@ant-design/cssinjs';
|
|
6
|
-
import { createContext, useState, useMemo, useContext, useEffect,
|
|
6
|
+
import { createContext, useState, useMemo, useContext, useEffect, cloneElement, useCallback, isValidElement, Suspense } from 'react';
|
|
7
7
|
export { lazy } from 'react';
|
|
8
8
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
9
|
import { BrowserRouter, Link as Link$1, Routes as Routes$1, Route, useLocation } from 'react-router-dom';
|
|
@@ -368,48 +368,28 @@ function Description(props) {
|
|
|
368
368
|
}
|
|
369
369
|
);
|
|
370
370
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
error,
|
|
382
|
-
info
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
render() {
|
|
386
|
-
const {
|
|
387
|
-
message: message2,
|
|
388
|
-
description,
|
|
389
|
-
children
|
|
390
|
-
} = this.props;
|
|
391
|
-
const { error, info } = this.state;
|
|
392
|
-
const componentStack = info && info.componentStack ? info.componentStack : null;
|
|
393
|
-
const errorMessage = typeof message2 === "undefined" ? (error || "").toString() : message2;
|
|
394
|
-
const errorDescription = typeof description === "undefined" ? componentStack : description;
|
|
395
|
-
if (error) {
|
|
396
|
-
if (this.props.onError)
|
|
397
|
-
return this.props.onError(error, info);
|
|
398
|
-
return /* @__PURE__ */ jsx(
|
|
399
|
-
Alert,
|
|
400
|
-
{
|
|
401
|
-
type: "error",
|
|
402
|
-
message: errorMessage,
|
|
403
|
-
description: /* @__PURE__ */ jsx("pre", { style: {
|
|
404
|
-
fontSize: "0.9em",
|
|
405
|
-
overflowX: "auto"
|
|
406
|
-
}, children: errorDescription })
|
|
407
|
-
}
|
|
408
|
-
);
|
|
371
|
+
function ErrorChildren(props) {
|
|
372
|
+
return /* @__PURE__ */ jsx(
|
|
373
|
+
Alert,
|
|
374
|
+
{
|
|
375
|
+
type: "error",
|
|
376
|
+
message: props.errorMessage,
|
|
377
|
+
description: /* @__PURE__ */ jsx("pre", { style: {
|
|
378
|
+
fontSize: "0.9em",
|
|
379
|
+
overflowX: "auto"
|
|
380
|
+
}, children: props.errorDescription })
|
|
409
381
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
382
|
+
);
|
|
383
|
+
}
|
|
384
|
+
function ErrorBoundary(props) {
|
|
385
|
+
return /* @__PURE__ */ jsx(
|
|
386
|
+
ErrorBoundary$1,
|
|
387
|
+
{
|
|
388
|
+
errorChildren: /* @__PURE__ */ jsx(ErrorChildren, {}),
|
|
389
|
+
...props
|
|
390
|
+
}
|
|
391
|
+
);
|
|
392
|
+
}
|
|
413
393
|
function processProps(propsCopy, config) {
|
|
414
394
|
if (!propsCopy.title)
|
|
415
395
|
propsCopy.title = upperFirst(propsCopy.id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "0.0.3-beta.
|
|
3
|
+
"version": "0.0.3-beta.92",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@faasjs/react": "^0.0.3-beta.
|
|
25
|
+
"@faasjs/react": "^0.0.3-beta.92",
|
|
26
26
|
"@ant-design/icons": "*",
|
|
27
27
|
"lodash-es": "*",
|
|
28
28
|
"dayjs": "*"
|