@pisell/materials 6.6.10 → 6.6.12
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.js +24 -24
- package/build/lowcode/view.js +23 -23
- package/es/components/DragSortList/index.d.ts +38 -0
- package/es/components/auto-complete/index.d.ts +2 -0
- package/es/components/auto-complete-number/index.d.ts +10 -0
- package/es/components/calendar/index.d.ts +2 -0
- package/es/components/cascader/index.d.ts +2 -0
- package/es/components/classicLayout/index.d.ts +4 -0
- package/es/components/component/index.d.ts +11 -0
- package/es/components/config-provider/index.js +6 -0
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.js +8 -0
- package/es/components/dataSourceComponents/fields/Upload/constants.js +1 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.js +1 -1
- package/es/components/dropdown/index.d.ts +3 -0
- package/es/components/filter/components/items/index.d.ts +41 -0
- package/es/components/filter/components/items/text/Editor/index.d.ts +2 -0
- package/es/components/filter/components/items/text/Preview/index.d.ts +2 -0
- package/es/components/filter/components/items/text/index.d.ts +11 -0
- package/es/components/filter/index.d.ts +4 -0
- package/es/components/icon/index.d.ts +12 -0
- package/es/components/input/index.d.ts +11 -0
- package/es/components/input-number-range/index.d.ts +15 -0
- package/es/components/list/index.d.ts +7 -0
- package/es/components/lowCodePage/index.d.ts +6 -0
- package/es/components/modal/index.d.ts +2 -0
- package/es/components/page/index.js +11 -1
- package/es/components/productCard/cartSkuCard/components/timeRange/index.js +5 -1
- package/es/components/productCard/cartSkuCard/locales.js +16 -0
- package/es/components/productCard/components/Time/components/SelectHolder/index.js +3 -1
- package/es/components/productCard/locales.js +84 -0
- package/es/components/productCard/utils.js +8 -2
- package/es/components/qrcode/index.d.ts +3 -0
- package/es/components/select-time/index.d.ts +14 -0
- package/es/components/select-time/utils.d.ts +9 -0
- package/es/components/skeleton/index.d.ts +2 -0
- package/es/components/slider/index.d.ts +3 -0
- package/es/components/sort/components/InlineMenu/index.d.ts +15 -0
- package/es/components/table/Actions/component/ButtonIcon/index.d.ts +8 -0
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +7 -0
- package/es/components/table/Actions/component/ColumnsSetting/utils.d.ts +1 -0
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +9 -0
- package/es/components/table/Actions/component/Group/index.d.ts +13 -0
- package/es/components/table/Actions/component/ViewMode/index.js +4 -3
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +10 -0
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +11 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +9 -0
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +5 -0
- package/es/components/table/Gallery/components/VirtualGrid/useGenGridProps.d.ts +14 -0
- package/es/components/table/Gallery/types.d.ts +10 -0
- package/es/components/table/Header/Buttons/index.d.ts +3 -0
- package/es/components/table/Summary/index.d.ts +4 -0
- package/es/components/table/Table/SelectField/index.d.ts +3 -0
- package/es/components/table/Table/fields/date/Config/index.d.ts +3 -0
- package/es/components/table/Table/fields/date/Edit/index.d.ts +4 -0
- package/es/components/table/Table/fields/date/Show/index.d.ts +4 -0
- package/es/components/table/Table/fields/date/Sort/index.d.ts +3 -0
- package/es/components/table/Table/fields/date/filterUtil/index.d.ts +13 -0
- package/es/components/table/Table/fields/date/index.d.ts +15 -0
- package/es/components/table/Table/fields/image/Config/index.d.ts +3 -0
- package/es/components/table/Table/fields/image/Edit/index.d.ts +4 -0
- package/es/components/table/Table/fields/image/Show/index.d.ts +4 -0
- package/es/components/table/Table/fields/image/Sort/index.d.ts +3 -0
- package/es/components/table/Table/fields/image/index.d.ts +13 -0
- package/es/components/table/Table/fields/link/Config/index.d.ts +3 -0
- package/es/components/table/Table/fields/link/Edit/index.d.ts +4 -0
- package/es/components/table/Table/fields/link/Show/index.d.ts +4 -0
- package/es/components/table/Table/fields/link/Sort/index.d.ts +3 -0
- package/es/components/table/Table/fields/link/index.d.ts +13 -0
- package/es/components/table/Table/fields/number/Config/index.d.ts +3 -0
- package/es/components/table/Table/fields/number/Edit/index.d.ts +4 -0
- package/es/components/table/Table/fields/number/Show/index.d.ts +4 -0
- package/es/components/table/Table/fields/number/Sort/index.d.ts +3 -0
- package/es/components/table/Table/fields/number/filterUtil/index.d.ts +5 -0
- package/es/components/table/Table/fields/number/index.d.ts +15 -0
- package/es/components/table/Table/fields/numberRange/Config/index.d.ts +3 -0
- package/es/components/table/Table/fields/numberRange/Edit/index.d.ts +4 -0
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +4 -0
- package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +3 -0
- package/es/components/table/Table/fields/numberRange/filterUtil/index.d.ts +8 -0
- package/es/components/table/Table/fields/numberRange/index.d.ts +15 -0
- package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +3 -0
- package/es/components/table/Table/fields/pSwitch/Edit/index.d.ts +4 -0
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +4 -0
- package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +3 -0
- package/es/components/table/Table/fields/pSwitch/index.d.ts +13 -0
- package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +3 -0
- package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +4 -0
- package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +3 -0
- package/es/components/table/Table/fields/rangePicker/filterUtil/index.d.ts +13 -0
- package/es/components/table/Table/fields/rangePicker/index.d.ts +15 -0
- package/es/components/table/Table/fields/search/Config/index.d.ts +3 -0
- package/es/components/table/Table/fields/search/Edit/index.d.ts +4 -0
- package/es/components/table/Table/fields/search/Show/index.d.ts +4 -0
- package/es/components/table/Table/fields/search/Sort/index.d.ts +3 -0
- package/es/components/table/Table/fields/search/filterUtil/index.d.ts +5 -0
- package/es/components/table/Table/fields/search/index.d.ts +15 -0
- package/es/components/table/Table/fields/select/Config/index.d.ts +3 -0
- package/es/components/table/Table/fields/select/Show/index.d.ts +4 -0
- package/es/components/table/Table/fields/select/Sort/index.d.ts +3 -0
- package/es/components/table/Table/fields/select/index.d.ts +15 -0
- package/es/components/table/Table/fields/text/Config/index.d.ts +3 -0
- package/es/components/table/Table/fields/text/Edit/index.d.ts +4 -0
- package/es/components/table/Table/fields/text/Show/index.d.ts +5 -0
- package/es/components/table/Table/fields/text/Sort/index.d.ts +3 -0
- package/es/components/table/Table/fields/text/filterUtil/index.d.ts +5 -0
- package/es/components/table/Table/fields/text/index.d.ts +15 -0
- package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +3 -0
- package/es/components/table/Table/fields/treeSelect/Edit/index.d.ts +4 -0
- package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +4 -0
- package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +3 -0
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +5 -0
- package/es/components/table/Table/fields/treeSelect/index.d.ts +15 -0
- package/es/components/table/Table/fields/utils/index.d.ts +1 -0
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +4 -0
- package/es/components/table/Table/tableConfig/body/CellContent/index.d.ts +4 -0
- package/es/components/table/Table/tableConfig/body/CellProvider/index.d.ts +4 -0
- package/es/components/table/Table/tableConfig/header/CellProvider/index.d.ts +14 -0
- package/es/components/table/Table/tableConfig/header/index.d.ts +19 -0
- package/es/components/table/Table/tableConfig/summary/index.d.ts +3 -0
- package/es/components/table/TableFilter/SortIcon.d.ts +6 -0
- package/es/components/table/TableFilter/numberFilter.d.ts +6 -0
- package/es/components/table/TableFilter/selectFilter.d.ts +10 -0
- package/es/components/table/TableFilter/stringFilter.d.ts +6 -0
- package/es/components/table/hooks/useGenTableComponents.d.ts +16 -0
- package/es/components/table/hooks/useIsMobileTable.d.ts +2 -0
- package/es/components/table/hooks/useMergeColumnSetting.d.ts +18 -0
- package/es/components/table/hooks/useTransDataSourceGroupSetting.d.ts +7 -0
- package/es/components/table/hooks/useTransFilterSetting.d.ts +7 -0
- package/es/components/table/hooks/useTransSortSetting.d.ts +7 -0
- package/es/components/time-picker/index.d.ts +2 -0
- package/es/components/translation/index.js +12 -0
- package/es/components/translation/utils.js +3 -1
- package/es/components/tree-select/index.d.ts +2 -0
- package/es/components/upload/index.d.ts +2 -0
- package/es/components/virtual-keyboard/Time/utils.d.ts +9 -0
- package/es/components/walletCard/index.js +11 -3
- package/es/hooks/index.d.ts +3 -0
- package/es/hooks/useResponsive.d.ts +4 -0
- package/es/hooks/useSharedState.d.ts +11 -0
- package/es/locales/en-US.js +3 -0
- package/es/locales/index.js +6 -2
- package/es/locales/ja.js +385 -0
- package/es/locales/pt.js +385 -0
- package/es/locales/zh-CN.js +3 -0
- package/es/locales/zh-TW.js +3 -0
- package/es/utils/hoc.d.ts +17 -0
- package/es/utils/miniRedux.d.ts +17 -0
- package/es/utils/platform.d.ts +1 -0
- package/es/utils/warning.d.ts +1 -0
- package/lib/components/DragSortList/index.d.ts +38 -0
- package/lib/components/auto-complete/index.d.ts +2 -0
- package/lib/components/auto-complete-number/index.d.ts +10 -0
- package/lib/components/calendar/index.d.ts +2 -0
- package/lib/components/cascader/index.d.ts +2 -0
- package/lib/components/classicLayout/index.d.ts +4 -0
- package/lib/components/component/index.d.ts +11 -0
- package/lib/components/config-provider/index.js +6 -0
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.js +5 -1
- package/lib/components/dataSourceComponents/fields/Upload/constants.js +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.js +1 -1
- package/lib/components/dropdown/index.d.ts +3 -0
- package/lib/components/filter/components/items/index.d.ts +41 -0
- package/lib/components/filter/components/items/text/Editor/index.d.ts +2 -0
- package/lib/components/filter/components/items/text/Preview/index.d.ts +2 -0
- package/lib/components/filter/components/items/text/index.d.ts +11 -0
- package/lib/components/filter/index.d.ts +4 -0
- package/lib/components/icon/index.d.ts +12 -0
- package/lib/components/input/index.d.ts +11 -0
- package/lib/components/input-number-range/index.d.ts +15 -0
- package/lib/components/list/index.d.ts +7 -0
- package/lib/components/lowCodePage/index.d.ts +6 -0
- package/lib/components/modal/index.d.ts +2 -0
- package/lib/components/page/index.js +11 -1
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +5 -1
- package/lib/components/productCard/cartSkuCard/locales.js +18 -0
- package/lib/components/productCard/components/Time/components/SelectHolder/index.js +2 -1
- package/lib/components/productCard/locales.js +60 -0
- package/lib/components/productCard/utils.js +8 -2
- package/lib/components/qrcode/index.d.ts +3 -0
- package/lib/components/select-time/index.d.ts +14 -0
- package/lib/components/select-time/utils.d.ts +9 -0
- package/lib/components/skeleton/index.d.ts +2 -0
- package/lib/components/slider/index.d.ts +3 -0
- package/lib/components/sort/components/InlineMenu/index.d.ts +15 -0
- package/lib/components/table/Actions/component/ButtonIcon/index.d.ts +8 -0
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +7 -0
- package/lib/components/table/Actions/component/ColumnsSetting/utils.d.ts +1 -0
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +9 -0
- package/lib/components/table/Actions/component/Group/index.d.ts +13 -0
- package/lib/components/table/Actions/component/ViewMode/index.js +4 -3
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +10 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +11 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +9 -0
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +5 -0
- package/lib/components/table/Gallery/components/VirtualGrid/useGenGridProps.d.ts +14 -0
- package/lib/components/table/Gallery/types.d.ts +10 -0
- package/lib/components/table/Header/Buttons/index.d.ts +3 -0
- package/lib/components/table/Summary/index.d.ts +4 -0
- package/lib/components/table/Table/SelectField/index.d.ts +3 -0
- package/lib/components/table/Table/fields/date/Config/index.d.ts +3 -0
- package/lib/components/table/Table/fields/date/Edit/index.d.ts +4 -0
- package/lib/components/table/Table/fields/date/Show/index.d.ts +4 -0
- package/lib/components/table/Table/fields/date/Sort/index.d.ts +3 -0
- package/lib/components/table/Table/fields/date/filterUtil/index.d.ts +13 -0
- package/lib/components/table/Table/fields/date/index.d.ts +15 -0
- package/lib/components/table/Table/fields/image/Config/index.d.ts +3 -0
- package/lib/components/table/Table/fields/image/Edit/index.d.ts +4 -0
- package/lib/components/table/Table/fields/image/Show/index.d.ts +4 -0
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +3 -0
- package/lib/components/table/Table/fields/image/index.d.ts +13 -0
- package/lib/components/table/Table/fields/link/Config/index.d.ts +3 -0
- package/lib/components/table/Table/fields/link/Edit/index.d.ts +4 -0
- package/lib/components/table/Table/fields/link/Show/index.d.ts +4 -0
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +3 -0
- package/lib/components/table/Table/fields/link/index.d.ts +13 -0
- package/lib/components/table/Table/fields/number/Config/index.d.ts +3 -0
- package/lib/components/table/Table/fields/number/Edit/index.d.ts +4 -0
- package/lib/components/table/Table/fields/number/Show/index.d.ts +4 -0
- package/lib/components/table/Table/fields/number/Sort/index.d.ts +3 -0
- package/lib/components/table/Table/fields/number/filterUtil/index.d.ts +5 -0
- package/lib/components/table/Table/fields/number/index.d.ts +15 -0
- package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +3 -0
- package/lib/components/table/Table/fields/numberRange/Edit/index.d.ts +4 -0
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +4 -0
- package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +3 -0
- package/lib/components/table/Table/fields/numberRange/filterUtil/index.d.ts +8 -0
- package/lib/components/table/Table/fields/numberRange/index.d.ts +15 -0
- package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +3 -0
- package/lib/components/table/Table/fields/pSwitch/Edit/index.d.ts +4 -0
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +4 -0
- package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +3 -0
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +13 -0
- package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +3 -0
- package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +4 -0
- package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +3 -0
- package/lib/components/table/Table/fields/rangePicker/filterUtil/index.d.ts +13 -0
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +15 -0
- package/lib/components/table/Table/fields/search/Config/index.d.ts +3 -0
- package/lib/components/table/Table/fields/search/Edit/index.d.ts +4 -0
- package/lib/components/table/Table/fields/search/Show/index.d.ts +4 -0
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +3 -0
- package/lib/components/table/Table/fields/search/filterUtil/index.d.ts +5 -0
- package/lib/components/table/Table/fields/search/index.d.ts +15 -0
- package/lib/components/table/Table/fields/select/Config/index.d.ts +3 -0
- package/lib/components/table/Table/fields/select/Show/index.d.ts +4 -0
- package/lib/components/table/Table/fields/select/Sort/index.d.ts +3 -0
- package/lib/components/table/Table/fields/select/index.d.ts +15 -0
- package/lib/components/table/Table/fields/text/Config/index.d.ts +3 -0
- package/lib/components/table/Table/fields/text/Edit/index.d.ts +4 -0
- package/lib/components/table/Table/fields/text/Show/index.d.ts +5 -0
- package/lib/components/table/Table/fields/text/Sort/index.d.ts +3 -0
- package/lib/components/table/Table/fields/text/filterUtil/index.d.ts +5 -0
- package/lib/components/table/Table/fields/text/index.d.ts +15 -0
- package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +3 -0
- package/lib/components/table/Table/fields/treeSelect/Edit/index.d.ts +4 -0
- package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +4 -0
- package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +3 -0
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +5 -0
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +15 -0
- package/lib/components/table/Table/fields/utils/index.d.ts +1 -0
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +4 -0
- package/lib/components/table/Table/tableConfig/body/CellContent/index.d.ts +4 -0
- package/lib/components/table/Table/tableConfig/body/CellProvider/index.d.ts +4 -0
- package/lib/components/table/Table/tableConfig/header/CellProvider/index.d.ts +14 -0
- package/lib/components/table/Table/tableConfig/header/index.d.ts +19 -0
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +3 -0
- package/lib/components/table/TableFilter/SortIcon.d.ts +6 -0
- package/lib/components/table/TableFilter/numberFilter.d.ts +6 -0
- package/lib/components/table/TableFilter/selectFilter.d.ts +10 -0
- package/lib/components/table/TableFilter/stringFilter.d.ts +6 -0
- package/lib/components/table/hooks/useGenTableComponents.d.ts +16 -0
- package/lib/components/table/hooks/useIsMobileTable.d.ts +2 -0
- package/lib/components/table/hooks/useMergeColumnSetting.d.ts +18 -0
- package/lib/components/table/hooks/useTransDataSourceGroupSetting.d.ts +7 -0
- package/lib/components/table/hooks/useTransFilterSetting.d.ts +7 -0
- package/lib/components/table/hooks/useTransSortSetting.d.ts +7 -0
- package/lib/components/time-picker/index.d.ts +2 -0
- package/lib/components/translation/index.js +14 -0
- package/lib/components/translation/utils.js +3 -1
- package/lib/components/tree-select/index.d.ts +2 -0
- package/lib/components/upload/index.d.ts +2 -0
- package/lib/components/virtual-keyboard/Time/utils.d.ts +9 -0
- package/lib/components/walletCard/index.js +11 -3
- package/lib/hooks/index.d.ts +3 -0
- package/lib/hooks/useResponsive.d.ts +4 -0
- package/lib/hooks/useSharedState.d.ts +11 -0
- package/lib/locales/en-US.js +3 -0
- package/lib/locales/index.js +6 -2
- package/lib/locales/ja.js +369 -0
- package/lib/locales/pt.js +369 -0
- package/lib/locales/zh-CN.js +3 -0
- package/lib/locales/zh-TW.js +3 -0
- package/lib/utils/hoc.d.ts +17 -0
- package/lib/utils/miniRedux.d.ts +17 -0
- package/lib/utils/platform.d.ts +1 -0
- package/lib/utils/warning.d.ts +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DraggableAttributes } from "@dnd-kit/core";
|
|
2
|
+
import { SyntheticListenerMap } from "@dnd-kit/core/dist/hooks/utilities";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { PointerActivationConstraint } from "@dnd-kit/core/dist/sensors/pointer/AbstractPointerSensor";
|
|
5
|
+
declare type IdType = string | number;
|
|
6
|
+
export interface Props<T> {
|
|
7
|
+
list?: T[];
|
|
8
|
+
onChange?: (list: T[]) => void;
|
|
9
|
+
rowKey: IdType | ((val: T) => IdType);
|
|
10
|
+
activationConstraint?: PointerActivationConstraint;
|
|
11
|
+
children: (params: {
|
|
12
|
+
item: T;
|
|
13
|
+
index: number;
|
|
14
|
+
style: React.CSSProperties;
|
|
15
|
+
props: any;
|
|
16
|
+
setActivatorNodeRef: (element: HTMLElement | null) => void;
|
|
17
|
+
listeners: SyntheticListenerMap;
|
|
18
|
+
attributes: DraggableAttributes;
|
|
19
|
+
}) => React.ReactElement<HTMLElement>;
|
|
20
|
+
}
|
|
21
|
+
export default function Sortable<T extends Record<string, any>>({ list, onChange, rowKey, children, activationConstraint, }: Props<T>): React.JSX.Element;
|
|
22
|
+
export interface SortableItemProps<T> {
|
|
23
|
+
id: number;
|
|
24
|
+
index: number;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
children: (params: {
|
|
27
|
+
item: T;
|
|
28
|
+
index: number;
|
|
29
|
+
style: React.CSSProperties;
|
|
30
|
+
props: any;
|
|
31
|
+
setActivatorNodeRef: (element: HTMLElement | null) => void;
|
|
32
|
+
listeners: SyntheticListenerMap;
|
|
33
|
+
attributes: DraggableAttributes;
|
|
34
|
+
}) => React.ReactElement<HTMLElement>;
|
|
35
|
+
item: T;
|
|
36
|
+
}
|
|
37
|
+
export declare function SortableItem<T>({ id, index, item, children, disabled, }: SortableItemProps<T>): React.ReactElement<HTMLElement, string | React.JSXElementConstructor<any>>;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AutoCompleteProps, InputNumberProps } from "antd";
|
|
3
|
+
interface AutoCompleteNumberProps {
|
|
4
|
+
autoCompleteProps: AutoCompleteProps;
|
|
5
|
+
inputNumberProps: InputNumberProps;
|
|
6
|
+
value?: any;
|
|
7
|
+
onChange?: any;
|
|
8
|
+
}
|
|
9
|
+
declare const AutoCompleteNumber: (props: AutoCompleteNumberProps) => React.JSX.Element;
|
|
10
|
+
export default AutoCompleteNumber;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ComponentProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* 低代码组件壳子 目前不做任何处理直接返回 如需容器包裹自行处理
|
|
7
|
+
* @param props
|
|
8
|
+
* @constructor
|
|
9
|
+
*/
|
|
10
|
+
declare const Component: (props: ComponentProps) => React.ReactNode;
|
|
11
|
+
export default Component;
|
|
@@ -8,6 +8,8 @@ import { ConfigProvider as OriginalConfigProvider } from "antd";
|
|
|
8
8
|
import dayjs from "dayjs";
|
|
9
9
|
import "dayjs/locale/zh-cn";
|
|
10
10
|
import zhCN from "antd/es/locale/zh_CN";
|
|
11
|
+
import "dayjs/locale/ja";
|
|
12
|
+
import "dayjs/locale/pt";
|
|
11
13
|
var ConfigProvider = function ConfigProvider(props) {
|
|
12
14
|
var locale = props.locale,
|
|
13
15
|
rest = _objectWithoutProperties(props, _excluded);
|
|
@@ -20,6 +22,10 @@ var ConfigProvider = function ConfigProvider(props) {
|
|
|
20
22
|
dayjs.locale("en");
|
|
21
23
|
// 默认为英文
|
|
22
24
|
localeData = undefined;
|
|
25
|
+
} else if (locale.toLowerCase() === "ja") {
|
|
26
|
+
dayjs.locale("ja");
|
|
27
|
+
} else if (locale.toLowerCase() === "pt") {
|
|
28
|
+
dayjs.locale("pt");
|
|
23
29
|
}
|
|
24
30
|
}
|
|
25
31
|
return /*#__PURE__*/React.createElement(OriginalConfigProvider, _extends({
|
|
@@ -19,6 +19,8 @@ var defaultValue = {
|
|
|
19
19
|
en: '',
|
|
20
20
|
'zh-CN': '',
|
|
21
21
|
'zh-HK': '',
|
|
22
|
+
'ja': '',
|
|
23
|
+
'pt': '',
|
|
22
24
|
original: ''
|
|
23
25
|
};
|
|
24
26
|
var languageConfig = [{
|
|
@@ -33,6 +35,12 @@ var languageConfig = [{
|
|
|
33
35
|
}, {
|
|
34
36
|
key: 'zh-HK',
|
|
35
37
|
label: '繁體中文'
|
|
38
|
+
}, {
|
|
39
|
+
key: 'ja',
|
|
40
|
+
label: '日本語'
|
|
41
|
+
}, {
|
|
42
|
+
key: 'pt',
|
|
43
|
+
label: 'Português'
|
|
36
44
|
}];
|
|
37
45
|
var Translation = function Translation(_ref) {
|
|
38
46
|
var _ref$value = _ref.value,
|
|
@@ -194,7 +194,7 @@ var handleMultilingualSingleFile = function handleMultilingualSingleFile(value)
|
|
|
194
194
|
};
|
|
195
195
|
var handleMultilingualObject = function handleMultilingualObject(value) {
|
|
196
196
|
var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
197
|
-
var defaultUrl = value.original || value.en || value['zh-CN'] || value['zh-HK'];
|
|
197
|
+
var defaultUrl = value.original || value.en || value['zh-CN'] || value['zh-HK'] || value['ja'] || value['pt'];
|
|
198
198
|
return {
|
|
199
199
|
uid: "-".concat(index),
|
|
200
200
|
name: getFileName(defaultUrl),
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const fieldMaps: {
|
|
2
|
+
text: {
|
|
3
|
+
field: {
|
|
4
|
+
field_icon: string;
|
|
5
|
+
field_name: string;
|
|
6
|
+
field_type: string;
|
|
7
|
+
default_value: string;
|
|
8
|
+
};
|
|
9
|
+
Preview: (props: any) => import("react").JSX.Element;
|
|
10
|
+
Editor: () => import("react").JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const fieldList: {
|
|
14
|
+
field_icon: string;
|
|
15
|
+
field_name: string;
|
|
16
|
+
field_type: string;
|
|
17
|
+
default_value: string;
|
|
18
|
+
}[];
|
|
19
|
+
export declare const getFieldByType: (type: string) => {
|
|
20
|
+
field: {
|
|
21
|
+
field_icon: string;
|
|
22
|
+
field_name: string;
|
|
23
|
+
field_type: string;
|
|
24
|
+
default_value: string;
|
|
25
|
+
};
|
|
26
|
+
Preview: (props: any) => import("react").JSX.Element;
|
|
27
|
+
Editor: () => import("react").JSX.Element;
|
|
28
|
+
};
|
|
29
|
+
declare const _default: {
|
|
30
|
+
text: {
|
|
31
|
+
field: {
|
|
32
|
+
field_icon: string;
|
|
33
|
+
field_name: string;
|
|
34
|
+
field_type: string;
|
|
35
|
+
default_value: string;
|
|
36
|
+
};
|
|
37
|
+
Preview: (props: any) => import("react").JSX.Element;
|
|
38
|
+
Editor: () => import("react").JSX.Element;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
field: {
|
|
3
|
+
field_icon: string;
|
|
4
|
+
field_name: string;
|
|
5
|
+
field_type: string;
|
|
6
|
+
default_value: string;
|
|
7
|
+
};
|
|
8
|
+
Preview: (props: any) => import("react").JSX.Element;
|
|
9
|
+
Editor: () => import("react").JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IconProps {
|
|
3
|
+
type: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
rotate?: number;
|
|
8
|
+
spin?: boolean;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<any>>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InputProps, InputRef } from "antd";
|
|
3
|
+
declare const OriginalGroup: import("react").FC<import("antd/es/input").GroupProps>, OriginalTextArea: import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>, OriginalPassword: import("react").ForwardRefExoticComponent<import("antd/es/input").PasswordProps & import("react").RefAttributes<InputRef>>, OriginalSearch: import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<InputRef>>;
|
|
4
|
+
declare type CompoundedComponent = React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>> & {
|
|
5
|
+
Group: typeof OriginalGroup;
|
|
6
|
+
Search: typeof OriginalSearch;
|
|
7
|
+
TextArea: typeof OriginalTextArea;
|
|
8
|
+
Password: typeof OriginalPassword;
|
|
9
|
+
};
|
|
10
|
+
declare const Input: CompoundedComponent;
|
|
11
|
+
export default Input;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { InputNumberProps } from "antd/es/input-number";
|
|
3
|
+
declare type ValueType = {
|
|
4
|
+
max: number | null;
|
|
5
|
+
min: number | null;
|
|
6
|
+
};
|
|
7
|
+
declare type InputNumberRangeProps = {
|
|
8
|
+
value?: ValueType;
|
|
9
|
+
onChange?: (value: ValueType) => void;
|
|
10
|
+
minInputNumberProps?: Omit<InputNumberProps<number>, "value" | "onChange">;
|
|
11
|
+
maxInputNumberProps?: Omit<InputNumberProps<number>, "value" | "onChange">;
|
|
12
|
+
separator?: React.ReactNode;
|
|
13
|
+
};
|
|
14
|
+
declare const InputNumberRange: React.FC<InputNumberRangeProps>;
|
|
15
|
+
export default InputNumberRange;
|
|
@@ -18,6 +18,8 @@ import enUS from 'antd/es/locale/en_US';
|
|
|
18
18
|
import zhCN from 'antd/es/locale/zh_CN';
|
|
19
19
|
import zhTW from 'antd/es/locale/zh_TW';
|
|
20
20
|
import zhHK from 'antd/es/locale/zh_HK';
|
|
21
|
+
import jaJP from 'antd/es/locale/ja_JP';
|
|
22
|
+
import ptPT from 'antd/es/locale/pt_PT';
|
|
21
23
|
import PisellConfigProvider from "../pisell-config-provider";
|
|
22
24
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
23
25
|
var localMap = {
|
|
@@ -25,7 +27,9 @@ var localMap = {
|
|
|
25
27
|
'zh-CN': zhCN,
|
|
26
28
|
'zh-HK': zhHK,
|
|
27
29
|
'en-US': enUS,
|
|
28
|
-
en: enUS
|
|
30
|
+
en: enUS,
|
|
31
|
+
'ja': jaJP,
|
|
32
|
+
'pt': ptPT
|
|
29
33
|
};
|
|
30
34
|
var localeDateMap = {
|
|
31
35
|
'en-US': {
|
|
@@ -42,6 +46,12 @@ var localeDateMap = {
|
|
|
42
46
|
},
|
|
43
47
|
'zh-CN': {
|
|
44
48
|
adapterLocale: 'zh-cn'
|
|
49
|
+
},
|
|
50
|
+
'ja': {
|
|
51
|
+
adapterLocale: 'ja'
|
|
52
|
+
},
|
|
53
|
+
'pt': {
|
|
54
|
+
adapterLocale: 'pt'
|
|
45
55
|
}
|
|
46
56
|
};
|
|
47
57
|
var Page = function Page(props) {
|
|
@@ -6,12 +6,16 @@ import dayjs from 'dayjs';
|
|
|
6
6
|
import 'dayjs/locale/zh-cn';
|
|
7
7
|
import 'dayjs/locale/en';
|
|
8
8
|
import 'dayjs/locale/zh-tw';
|
|
9
|
+
import 'dayjs/locale/ja';
|
|
10
|
+
import 'dayjs/locale/pt';
|
|
9
11
|
import "./index.less";
|
|
10
12
|
import { PREFIX } from "../../index";
|
|
11
13
|
var localeTypes = {
|
|
12
14
|
'en-US': 'en',
|
|
13
15
|
'zh-CN': 'zh-cn',
|
|
14
|
-
'zh-HK': 'zh-tw'
|
|
16
|
+
'zh-HK': 'zh-tw',
|
|
17
|
+
'ja': 'ja',
|
|
18
|
+
'pt': 'pt'
|
|
15
19
|
};
|
|
16
20
|
var TimeRange = function TimeRange(props) {
|
|
17
21
|
var _props$dataSource = props.dataSource,
|
|
@@ -29,5 +29,21 @@ export default {
|
|
|
29
29
|
'pisell2.cart.sku-card.sales.title': '銷售',
|
|
30
30
|
'pisell2.cart.sku-card.actions.delete': '刪除',
|
|
31
31
|
'pisell2.cart.sku-card.unassigned': '未分配'
|
|
32
|
+
}),
|
|
33
|
+
ja: _objectSpread(_objectSpread({}, localeTexts.ja), {}, {
|
|
34
|
+
'pisell2.product.card.discount.reason': '割引理由',
|
|
35
|
+
'pisell2.cart.sku-card.more': 'もっと...',
|
|
36
|
+
'pisell2.cart.sku-card.packages.title': 'パッケージ内のアイテム',
|
|
37
|
+
'pisell2.cart.sku-card.sales.title': 'セール',
|
|
38
|
+
'pisell2.cart.sku-card.actions.delete': '削除',
|
|
39
|
+
'pisell2.cart.sku-card.unassigned': '未割り当て'
|
|
40
|
+
}),
|
|
41
|
+
pt: _objectSpread(_objectSpread({}, localeTexts.pt), {}, {
|
|
42
|
+
'pisell2.product.card.discount.reason': 'Motivo do desconto',
|
|
43
|
+
'pisell2.cart.sku-card.more': 'mais...',
|
|
44
|
+
'pisell2.cart.sku-card.packages.title': 'Itens no pacote',
|
|
45
|
+
'pisell2.cart.sku-card.sales.title': 'Vendas',
|
|
46
|
+
'pisell2.cart.sku-card.actions.delete': 'Excluir',
|
|
47
|
+
'pisell2.cart.sku-card.unassigned': 'Não atribuído'
|
|
32
48
|
})
|
|
33
49
|
};
|
|
@@ -9,8 +9,10 @@ import { Select, Divider } from 'antd';
|
|
|
9
9
|
import { isArr, locales } from '@pisell/utils';
|
|
10
10
|
import Iconfont from "../../../../../iconfont";
|
|
11
11
|
import "./index.less";
|
|
12
|
+
var defaultArr = [];
|
|
12
13
|
var SelectHolder = function SelectHolder(_ref) {
|
|
13
|
-
var lists = _ref.lists,
|
|
14
|
+
var _ref$lists = _ref.lists,
|
|
15
|
+
lists = _ref$lists === void 0 ? defaultArr : _ref$lists,
|
|
14
16
|
value = _ref.value,
|
|
15
17
|
onChange = _ref.onChange,
|
|
16
18
|
holderMode = _ref.holderMode,
|
|
@@ -124,5 +124,89 @@ export default {
|
|
|
124
124
|
'pisell2.product.card.add.holder.modal.apply': '應用',
|
|
125
125
|
'pisell2.product.card.add.holder.modal.add': '添加',
|
|
126
126
|
'pisell2.product.card.closing-soon.warning': '當前入場時間臨近營業結束,請確認是否仍要購買。'
|
|
127
|
+
},
|
|
128
|
+
ja: {
|
|
129
|
+
'pisell2.product.card.day': function pisell2ProductCardDay(val) {
|
|
130
|
+
return "".concat(val > 1 ? '日' : '日');
|
|
131
|
+
},
|
|
132
|
+
'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
|
|
133
|
+
return "".concat(val > 1 ? '個のイベント' : '個のイベント');
|
|
134
|
+
},
|
|
135
|
+
'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
|
|
136
|
+
return "".concat(val > 1 ? '分' : '分');
|
|
137
|
+
},
|
|
138
|
+
'pisell2.product.card.discount.reason': '割引理由',
|
|
139
|
+
'pisell2.product.card.discount.note': '備考',
|
|
140
|
+
'pisell2.product.card.edit': '編集',
|
|
141
|
+
'pisell2.product.card.discount.add.note': '備考を追加',
|
|
142
|
+
'pisell2.product.card.discount.edit.note': '備考を編集',
|
|
143
|
+
'pisell2.product.card.confirm': '確認',
|
|
144
|
+
'pisell2.product.card.cancel': 'キャンセル',
|
|
145
|
+
'pisell2.product.card.note.pla': '備考を入力してください',
|
|
146
|
+
'pisell2.product.card.items.package': 'パッケージ内のアイテム',
|
|
147
|
+
'pisell2.product.card.view-all': 'すべて表示',
|
|
148
|
+
'pisell2.product.card.view-less': '折りたたむ',
|
|
149
|
+
'pisell2.product.card.add.holder.button.text': function pisell2ProductCardAddHolderButtonText(val) {
|
|
150
|
+
return "".concat(val || '', "\u3092\u8FFD\u52A0");
|
|
151
|
+
},
|
|
152
|
+
'pisell2.product.card.add.holder.placeholder': function pisell2ProductCardAddHolderPlaceholder(val) {
|
|
153
|
+
return "".concat(val || '', "\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044");
|
|
154
|
+
},
|
|
155
|
+
'pisell2.product.card.add.holder.placeholder.multiple': function pisell2ProductCardAddHolderPlaceholderMultiple(num, val) {
|
|
156
|
+
return "".concat(num).concat(val || '', "\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044");
|
|
157
|
+
},
|
|
158
|
+
'pisell2.product.card.add.holder.modal.title.1': "\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
159
|
+
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
160
|
+
if (hour <= 0 && minute <= 0) return "".concat(0, "\u5206");
|
|
161
|
+
return "".concat(hour > 0 ? "".concat(hour, "\u6642\u9593") : '').concat(hour > 0 && minute > 0 ? ' ' : '').concat(minute > 0 ? "".concat(minute, "\u5206") : '');
|
|
162
|
+
},
|
|
163
|
+
'pisell2.product.card.sales': '販売',
|
|
164
|
+
'pisell2.product.card.add.holder.modal.cancel': 'キャンセル',
|
|
165
|
+
'pisell2.product.card.add.holder.modal.clear': 'クリア',
|
|
166
|
+
'pisell2.product.card.add.holder.modal.apply': '適用',
|
|
167
|
+
'pisell2.product.card.add.holder.modal.add': '新規追加',
|
|
168
|
+
'pisell2.product.card.closing-soon.warning': '会場はまもなく閉場します。訪問に十分な時間があることを確認してください。'
|
|
169
|
+
},
|
|
170
|
+
pt: {
|
|
171
|
+
'pisell2.product.card.day': function pisell2ProductCardDay(val) {
|
|
172
|
+
return "".concat(val > 1 ? ' dias' : ' dia');
|
|
173
|
+
},
|
|
174
|
+
'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
|
|
175
|
+
return "".concat(val > 1 ? ' eventos' : ' evento');
|
|
176
|
+
},
|
|
177
|
+
'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
|
|
178
|
+
return "".concat(val > 1 ? ' minutos' : ' minuto');
|
|
179
|
+
},
|
|
180
|
+
'pisell2.product.card.discount.reason': 'Motivo do desconto',
|
|
181
|
+
'pisell2.product.card.discount.note': 'Nota',
|
|
182
|
+
'pisell2.product.card.edit': 'Editar',
|
|
183
|
+
'pisell2.product.card.discount.add.note': 'Adicionar nota',
|
|
184
|
+
'pisell2.product.card.discount.edit.note': 'Editar nota',
|
|
185
|
+
'pisell2.product.card.confirm': 'Confirmar',
|
|
186
|
+
'pisell2.product.card.cancel': 'Cancelar',
|
|
187
|
+
'pisell2.product.card.note.pla': 'Por favor, insira a nota',
|
|
188
|
+
'pisell2.product.card.items.package': 'Itens no pacote',
|
|
189
|
+
'pisell2.product.card.view-all': 'Ver tudo',
|
|
190
|
+
'pisell2.product.card.view-less': 'Ver menos',
|
|
191
|
+
'pisell2.product.card.add.holder.button.text': function pisell2ProductCardAddHolderButtonText(val) {
|
|
192
|
+
return "Adicionar ".concat(val || '');
|
|
193
|
+
},
|
|
194
|
+
'pisell2.product.card.add.holder.placeholder': function pisell2ProductCardAddHolderPlaceholder(val) {
|
|
195
|
+
return "Por favor, selecione ".concat(val || '');
|
|
196
|
+
},
|
|
197
|
+
'pisell2.product.card.add.holder.placeholder.multiple': function pisell2ProductCardAddHolderPlaceholderMultiple(num, val) {
|
|
198
|
+
return "Por favor, selecione ".concat(num, " ").concat(val || '');
|
|
199
|
+
},
|
|
200
|
+
'pisell2.product.card.add.holder.modal.title.1': "Por favor, selecione",
|
|
201
|
+
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
202
|
+
if (hour <= 0 && minute <= 0) return "".concat(0, "min");
|
|
203
|
+
return "".concat(hour > 0 ? "".concat(hour, "h") : '').concat(hour > 0 && minute > 0 ? ' ' : '').concat(minute > 0 ? "".concat(minute, "min") : '');
|
|
204
|
+
},
|
|
205
|
+
'pisell2.product.card.sales': 'Vendas',
|
|
206
|
+
'pisell2.product.card.add.holder.modal.cancel': 'Cancelar',
|
|
207
|
+
'pisell2.product.card.add.holder.modal.clear': 'Limpar',
|
|
208
|
+
'pisell2.product.card.add.holder.modal.apply': 'Aplicar',
|
|
209
|
+
'pisell2.product.card.add.holder.modal.add': 'Adicionar Novo',
|
|
210
|
+
'pisell2.product.card.closing-soon.warning': 'O local fechará em breve. Por favor, certifique-se de ter tempo suficiente para sua visita.'
|
|
127
211
|
}
|
|
128
212
|
};
|
|
@@ -3,6 +3,8 @@ import { locales } from '@pisell/utils';
|
|
|
3
3
|
import 'dayjs/locale/zh-cn';
|
|
4
4
|
import 'dayjs/locale/en';
|
|
5
5
|
import 'dayjs/locale/zh-tw';
|
|
6
|
+
import 'dayjs/locale/ja';
|
|
7
|
+
import 'dayjs/locale/pt';
|
|
6
8
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
7
9
|
|
|
8
10
|
/**
|
|
@@ -19,7 +21,9 @@ export var isEn = function isEn(item) {
|
|
|
19
21
|
var localeTypes = {
|
|
20
22
|
'en-US': 'en',
|
|
21
23
|
'zh-CN': 'zh-cn',
|
|
22
|
-
'zh-HK': 'zh-tw'
|
|
24
|
+
'zh-HK': 'zh-tw',
|
|
25
|
+
'ja': 'ja',
|
|
26
|
+
'pt': 'pt'
|
|
23
27
|
};
|
|
24
28
|
dayjs.locale(localeTypes[locale]);
|
|
25
29
|
return _isEn;
|
|
@@ -65,7 +69,9 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
|
|
|
65
69
|
var localeTypes = {
|
|
66
70
|
'en-US': 'en',
|
|
67
71
|
'zh-CN': 'zh-cn',
|
|
68
|
-
'zh-HK': 'zh-tw'
|
|
72
|
+
'zh-HK': 'zh-tw',
|
|
73
|
+
'ja': 'ja',
|
|
74
|
+
'pt': 'pt'
|
|
69
75
|
};
|
|
70
76
|
dayjs.locale(localeTypes[locale]);
|
|
71
77
|
var startDate = dayjs(item === null || item === void 0 ? void 0 : item.start_date);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
|
|
3
|
+
import { PopoverProps, TimePickerProps } from "antd";
|
|
4
|
+
import "./index.less";
|
|
5
|
+
interface SelectTimeProps {
|
|
6
|
+
value: any;
|
|
7
|
+
onChange: (e: string) => void;
|
|
8
|
+
popoverProps: PopoverProps;
|
|
9
|
+
timePickerProps: TimePickerProps;
|
|
10
|
+
timeProps: VirtualKeyboardTimeProps;
|
|
11
|
+
slice: number;
|
|
12
|
+
}
|
|
13
|
+
declare const SelectTime: (props: SelectTimeProps) => React.JSX.Element;
|
|
14
|
+
export default SelectTime;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const sliceDayIntoFiveMinutes: (slice: number) => {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}[];
|
|
5
|
+
export declare const findNextSlice: ({ timeSlices, index, date }: {
|
|
6
|
+
timeSlices: any[];
|
|
7
|
+
index?: number | undefined;
|
|
8
|
+
date?: string | undefined;
|
|
9
|
+
}) => any;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { MenuProps } from "antd";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
interface InlineMenuProps {
|
|
5
|
+
items: any[];
|
|
6
|
+
value?: [string, string];
|
|
7
|
+
onChange?: (val: string, detail: Parameters<Required<MenuProps>["onClick"]>[0]) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 内嵌展示的菜单 只支持两级
|
|
11
|
+
* @param props
|
|
12
|
+
* @constructor
|
|
13
|
+
*/
|
|
14
|
+
declare const InlineMenu: (props: InlineMenuProps) => React.JSX.Element;
|
|
15
|
+
export default InlineMenu;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare type ColumnsSettingProps = {
|
|
3
|
+
value?: Record<string, any>[];
|
|
4
|
+
onChange?: (val: Record<string, any>[]) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const ColumnsSetting: (props: ColumnsSettingProps) => React.JSX.Element;
|
|
7
|
+
export default ColumnsSetting;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isFixedOrderValid(columns: Record<string, any>[]): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { GallerySettingType, ModeType } from "../../../types";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
declare type GallerySettingProps = {
|
|
5
|
+
setting: GallerySettingType;
|
|
6
|
+
currentViewMode: ModeType;
|
|
7
|
+
};
|
|
8
|
+
declare const GallerySetting: (props: GallerySettingProps) => React.JSX.Element;
|
|
9
|
+
export default GallerySetting;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DataSourceGroupType } from "../../../types";
|
|
3
|
+
declare type GroupProps = {
|
|
4
|
+
setting: DataSourceGroupType;
|
|
5
|
+
value?: {
|
|
6
|
+
field: string | number;
|
|
7
|
+
}[];
|
|
8
|
+
onChange?: (value: {
|
|
9
|
+
field: string | number;
|
|
10
|
+
}[]) => void;
|
|
11
|
+
};
|
|
12
|
+
declare const Group: (props: GroupProps) => React.JSX.Element;
|
|
13
|
+
export default Group;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
import { BarChartOutlined } from "@ant-design/icons";
|
|
3
3
|
import { Dropdown } from "antd";
|
|
4
|
+
import { getText } from "../../../../../locales";
|
|
4
5
|
import ButtonIcon from "../ButtonIcon";
|
|
5
6
|
var itemsMap = {
|
|
6
7
|
grid: {
|
|
7
8
|
key: "grid",
|
|
8
|
-
label: "
|
|
9
|
+
label: getText("table-action-view-mode-grid")
|
|
9
10
|
},
|
|
10
11
|
gallery: {
|
|
11
12
|
key: "gallery",
|
|
12
|
-
label: "
|
|
13
|
+
label: getText("table-action-view-mode-gallery")
|
|
13
14
|
},
|
|
14
15
|
kanban: {
|
|
15
16
|
key: "kanban",
|
|
16
|
-
label: "
|
|
17
|
+
label: getText("table-action-view-mode-kanban")
|
|
17
18
|
}
|
|
18
19
|
};
|
|
19
20
|
var defaultArr = [];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { GallerySettingType, GallerySettingValueType } from "../../../../../types";
|
|
3
|
+
declare type CoverProps = {
|
|
4
|
+
cover?: GallerySettingType["cover"];
|
|
5
|
+
record: Record<string, any>;
|
|
6
|
+
coverField: GallerySettingValueType["coverField"];
|
|
7
|
+
coverObjectFit: GallerySettingValueType["coverObjectFit"];
|
|
8
|
+
};
|
|
9
|
+
declare const Cover: (props: CoverProps) => React.JSX.Element;
|
|
10
|
+
export default Cover;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.less";
|
|
3
|
+
declare type RenderFieldsProps = {
|
|
4
|
+
fields: string[];
|
|
5
|
+
columnsMap: Map<string, Record<string, any>>;
|
|
6
|
+
record: Record<string, any>;
|
|
7
|
+
showMode: "inline" | "block";
|
|
8
|
+
isShowLabel?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const RenderFields: (props: RenderFieldsProps) => React.JSX.Element;
|
|
11
|
+
export default RenderFields;
|