@pisell/materials 2.2.50 → 2.2.52
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 +6 -6
- package/build/lowcode/preview.js +18 -22
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +25 -26
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +25 -26
- package/es/components/DragSortList/index.js +6 -6
- package/es/components/MultipleContainersSortList/index.js +11 -13
- package/es/components/Pagination/index.js +1 -1
- package/es/components/appVersionControl/index.d.ts +0 -1
- package/es/components/batch-editor/index.js +12 -12
- package/es/components/classicLayout/index.js +4 -5
- package/es/components/colorPicker/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +6 -6
- package/es/components/drag-sort-tree/TreeItem/index.js +10 -10
- package/es/components/drawer/index.js +6 -6
- package/es/components/filter/components/items/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/es/components/filter/components/items/text/index.d.ts +0 -1
- package/es/components/filter/index.js +1 -1
- package/es/components/icon/index.js +5 -5
- package/es/components/input-number-range/index.js +6 -6
- package/es/components/list/index.js +6 -6
- package/es/components/pisell-config-provider/context.js +3 -3
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.js +2 -2
- package/es/components/pisellAdjustPrice/index.js +6 -6
- package/es/components/pisellCheckboxGroup/index.js +9 -7
- package/es/components/pisellCountdown/index.js +8 -8
- package/es/components/pisellCountdown/utils.js +1 -1
- package/es/components/pisellDatePicker/datePickerCpt.js +4 -4
- package/es/components/pisellFloatingPanel/index.js +6 -6
- package/es/components/pisellInformationEntry/Input/index.js +1 -1
- package/es/components/pisellInformationEntry/Scan/index.js +2 -2
- package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.js +5 -5
- package/es/components/pisellInformationEntry/utils.js +2 -2
- package/es/components/pisellInput/components/BankCard/index.js +5 -5
- package/es/components/pisellInput/components/Copy/index.js +5 -5
- package/es/components/pisellInput/components/SecurityCode/index.js +2 -2
- package/es/components/pisellModal/components/PcModal/index.js +7 -7
- package/es/components/pisellModal/components/functions/index.js +5 -5
- package/es/components/pisellRow/index.js +5 -5
- package/es/components/pisellScan/index.js +6 -6
- package/es/components/pisellWalletPassCard/index.js +1 -1
- package/es/components/qrcode/index.js +1 -1
- package/es/components/select-time/index.js +2 -2
- package/es/components/sort/components/InlineMenu/index.js +1 -1
- package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
- package/es/components/table/Actions/component/ColumnsSetting/PopoverContent.js +7 -7
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.js +8 -8
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +9 -9
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.js +1 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/Detail.js +5 -5
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.js +7 -7
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.js +7 -7
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/Group/PopoverContent.js +2 -2
- package/es/components/table/Actions/component/Group/index.d.ts +0 -1
- package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
- package/es/components/table/Actions/component/ViewMode/index.js +1 -1
- package/es/components/table/Actions/index.d.ts +0 -1
- package/es/components/table/BasicTable/index.d.ts +0 -1
- package/es/components/table/BasicTable/index.js +9 -9
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/es/components/table/Gallery/components/VirtualGrid/index.js +5 -5
- package/es/components/table/Header/Buttons/index.js +5 -5
- package/es/components/table/Table/AddFieldModal/index.js +6 -6
- package/es/components/table/Table/SelectField/index.d.ts +0 -1
- package/es/components/table/Table/SelectField/index.js +4 -4
- package/es/components/table/Table/fields/date/Edit/index.js +1 -1
- package/es/components/table/Table/fields/link/Edit/index.js +5 -5
- package/es/components/table/Table/fields/oldRangePicker/Edit/index.js +7 -7
- package/es/components/table/Table/fields/oldRangePicker/filterUtil/index.js +1 -1
- package/es/components/table/Table/fields/rangePicker/Edit/index.js +7 -7
- package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
- package/es/components/table/Table/fields/search/Edit/index.js +2 -2
- package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
- package/es/components/table/Table/fields/text/Show/index.js +4 -4
- package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
- package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
- package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
- package/es/components/table/Table/tableConfig/body/index.js +6 -6
- package/es/components/table/Table/tableConfig/header/index.js +5 -5
- package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/View/index.d.ts +0 -1
- package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
- package/es/components/table/hooks/useTransColumns.js +9 -9
- package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
- package/es/components/table/hooks/useTransFilterSetting.js +5 -5
- package/es/components/table/hooks/useTransSortSetting.js +5 -5
- package/es/components/table/serve.js +9 -9
- package/es/components/translation/index.js +10 -10
- package/es/components/translation/utils.js +5 -5
- package/es/components/virtual-keyboard/Amount/index.js +1 -1
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +3 -3
- package/es/components/virtual-keyboard/Keyboard/index.js +8 -8
- package/es/components/virtual-keyboard/Number/index.js +1 -1
- package/es/components/virtual-keyboard/VirtualInput/index.js +1 -1
- package/es/components/virtual-keyboard/VirtualKeyInput/index.js +4 -4
- package/es/components/walletCard/Guest/index.js +2 -3
- package/es/components/walletCard/index.js +25 -4
- package/es/components/walletCard/index.less +1 -2
- package/es/hooks/useCssVariables.js +1 -1
- package/es/hooks/useResponsive.js +2 -2
- package/es/locales/en-US.d.ts +1 -0
- package/es/locales/en-US.js +2 -1
- package/es/locales/zh-CN.d.ts +1 -0
- package/es/locales/zh-CN.js +3 -2
- package/es/locales/zh-TW.d.ts +1 -0
- package/es/locales/zh-TW.js +3 -2
- package/es/utils/hoc.js +1 -1
- package/es/utils/miniRedux.js +8 -9
- package/lib/components/appVersionControl/index.d.ts +0 -1
- package/lib/components/appVersionControl/utils.js +4 -8
- package/lib/components/buttonGroupEdit/index.js +7 -14
- package/lib/components/colorPicker/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +3 -6
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useColumns.js +2 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.js +1 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +1 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +1 -2
- package/lib/components/dataSourceComponents/fields/Input.Mobile/ReadPretty.js +2 -4
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.js +1 -2
- package/lib/components/dataSourceComponents/fields/Input.Phone/ReadPretty.js +2 -4
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.js +1 -2
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.js +1 -2
- package/lib/components/dataSourceComponents/fields/InputNumber/WithMode.js +2 -4
- package/lib/components/dataSourceComponents/fields/InputNumber/utils.js +2 -4
- package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.js +4 -8
- package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.js +4 -8
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.js +1 -2
- package/lib/components/dataSourceComponents/fields/Upload/shopUploadServe.js +1 -2
- package/lib/components/dataSourceComponents/fields/Upload/utils.js +11 -22
- package/lib/components/dataSourceComponents/fields/index.d.ts +6 -6
- package/lib/components/dataSourceComponents/hooks/useActions.js +3 -6
- package/lib/components/dataSourceComponents/hooks/useParseActionsVariable.js +1 -2
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.js +1 -2
- package/lib/components/dataSourceComponents/provider/variables/utils.js +2 -4
- package/lib/components/date-picker/datePickerCpt.js +1 -2
- package/lib/components/drag-sort-tree/TreeItem/index.js +1 -2
- package/lib/components/drag-sort-tree/index.js +1 -2
- package/lib/components/filter/components/items/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/index.d.ts +0 -1
- package/lib/components/filter/index.js +1 -2
- package/lib/components/iconSelect/index.js +1 -2
- package/lib/components/iconSelect/utils.js +1 -2
- package/lib/components/lowCodePage/index.js +1 -2
- package/lib/components/pisell-config-provider/context.js +1 -1
- package/lib/components/pisellAnchor/index.js +5 -10
- package/lib/components/pisellCheckboxGroup/index.js +1 -2
- package/lib/components/pisellDatePicker/datePickerCpt.js +1 -2
- package/lib/components/pisellDraggable/index.js +3 -6
- package/lib/components/pisellQRScanner/index.js +9 -18
- package/lib/components/pisellWalletPassCard/index.js +1 -1
- package/lib/components/productCard/components/AmountFooter/index.js +1 -2
- package/lib/components/productCard/components/MultiDay/index.js +1 -2
- package/lib/components/productCard/utils.js +1 -2
- package/lib/components/profileMenu/index.js +1 -2
- package/lib/components/select/index.js +2 -4
- package/lib/components/table/Actions/component/ColumnsSetting/PopoverContent.js +1 -2
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/index.js +1 -2
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
- package/lib/components/table/Actions/index.d.ts +0 -1
- package/lib/components/table/BasicTable/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/lib/components/table/Table/SelectField/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
- package/lib/components/table/Table/fields/oldRangePicker/filterUtil/index.js +4 -8
- package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
- package/lib/components/table/Table/fields/utils/index.js +1 -2
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/Table/utils.js +10 -17
- package/lib/components/table/View/index.d.ts +0 -1
- package/lib/components/table/hooks/useTransColumns.js +1 -2
- package/lib/components/versionModal/index.js +2 -4
- package/lib/components/versionSelect/index.js +6 -12
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +2 -4
- package/lib/components/walletCard/Guest/index.js +6 -3
- package/lib/components/walletCard/index.js +25 -11
- package/lib/components/walletCard/index.less +1 -2
- package/lib/hooks/useCssVariables.js +1 -2
- package/lib/hooks/useResponsive.js +3 -6
- package/lib/locales/en-US.d.ts +1 -0
- package/lib/locales/en-US.js +2 -1
- package/lib/locales/zh-CN.d.ts +1 -0
- package/lib/locales/zh-CN.js +3 -2
- package/lib/locales/zh-TW.d.ts +1 -0
- package/lib/locales/zh-TW.js +3 -2
- package/package.json +3 -3
- package/es/components/TimeResourceSelector/index.d.ts +0 -21
- package/es/components/collapse/index.d.ts +0 -15
- package/es/components/pisellCard/index.d.ts +0 -20
- package/es/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
- package/es/components/pisellDropdown/index.d.ts +0 -20
- package/es/components/pisellHeaderProgressBar/index.d.ts +0 -29
- package/es/components/pisellImageCarousels/index.d.ts +0 -18
- package/es/components/pisellSectionHeaders/index.d.ts +0 -21
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- package/es/components/productCard/components/Action/index.d.ts +0 -4
- package/es/components/productCard/components/AmountFooter/index.d.ts +0 -4
- package/es/components/productCard/components/Divider/index.d.ts +0 -4
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
- package/es/components/productCard/components/Header/index.d.ts +0 -4
- package/es/components/productCard/components/MultiDay/index.d.ts +0 -4
- package/es/components/productCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/components/Note/index.d.ts +0 -4
- package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +0 -10
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -2
- package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -4
- package/es/components/productCard/components/Packages/index.d.ts +0 -4
- package/es/components/productCard/components/Packages/utils.d.ts +0 -20
- package/es/components/productCard/components/Sales/index.d.ts +0 -4
- package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -9
- package/es/components/productCard/components/Time/index.d.ts +0 -4
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -78
- package/es/components/section-footers/index.d.ts +0 -9
- package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +0 -9
- package/es/components/walletCard/Guest/index.d.ts +0 -4
- package/es/components/walletCard/index.d.ts +0 -65
- package/lib/components/TimeResourceSelector/index.d.ts +0 -21
- package/lib/components/collapse/index.d.ts +0 -15
- package/lib/components/pisellCard/index.d.ts +0 -20
- package/lib/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
- package/lib/components/pisellDropdown/index.d.ts +0 -20
- package/lib/components/pisellHeaderProgressBar/index.d.ts +0 -29
- package/lib/components/pisellImageCarousels/index.d.ts +0 -18
- package/lib/components/pisellSectionHeaders/index.d.ts +0 -21
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- package/lib/components/productCard/components/Action/index.d.ts +0 -4
- package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -4
- package/lib/components/productCard/components/Divider/index.d.ts +0 -4
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
- package/lib/components/productCard/components/Header/index.d.ts +0 -4
- package/lib/components/productCard/components/MultiDay/index.d.ts +0 -4
- package/lib/components/productCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/components/Note/index.d.ts +0 -4
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +0 -10
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -2
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -4
- package/lib/components/productCard/components/Packages/index.d.ts +0 -4
- package/lib/components/productCard/components/Packages/utils.d.ts +0 -20
- package/lib/components/productCard/components/Sales/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -9
- package/lib/components/productCard/components/Time/index.d.ts +0 -4
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -78
- package/lib/components/section-footers/index.d.ts +0 -9
- package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +0 -9
- package/lib/components/walletCard/Guest/index.d.ts +0 -4
- package/lib/components/walletCard/index.d.ts +0 -65
|
@@ -26,8 +26,7 @@ __export(utils_exports, {
|
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(utils_exports);
|
|
28
28
|
var genComponentValueVariable = (componentId, value) => {
|
|
29
|
-
if (!value || !componentId)
|
|
30
|
-
return {};
|
|
29
|
+
if (!value || !componentId) return {};
|
|
31
30
|
return {
|
|
32
31
|
[componentId]: {
|
|
33
32
|
value
|
|
@@ -35,8 +34,7 @@ var genComponentValueVariable = (componentId, value) => {
|
|
|
35
34
|
};
|
|
36
35
|
};
|
|
37
36
|
var genComponentFunctionVariable = (componentId, value) => {
|
|
38
|
-
if (!value || !componentId)
|
|
39
|
-
return {};
|
|
37
|
+
if (!value || !componentId) return {};
|
|
40
38
|
return {
|
|
41
39
|
[componentId]: {
|
|
42
40
|
functions: value
|
|
@@ -75,8 +75,7 @@ var TreeItem = (props) => {
|
|
|
75
75
|
const handleDragEnd = (event) => {
|
|
76
76
|
var _a, _b, _c;
|
|
77
77
|
const { active, over } = event;
|
|
78
|
-
if (!over || !active || !lists.length)
|
|
79
|
-
return;
|
|
78
|
+
if (!over || !active || !lists.length) return;
|
|
80
79
|
try {
|
|
81
80
|
let [activeParentId, activeId] = (_a = active == null ? void 0 : active.id) == null ? void 0 : _a.split("-");
|
|
82
81
|
let [overParentId, overId] = (_b = over == null ? void 0 : over.id) == null ? void 0 : _b.split("-");
|
|
@@ -69,8 +69,7 @@ var DragSortTree = (props) => {
|
|
|
69
69
|
const handleDragEnd = (event) => {
|
|
70
70
|
var _a, _b, _c, _d;
|
|
71
71
|
const { active, over } = event;
|
|
72
|
-
if (!over || !active)
|
|
73
|
-
return;
|
|
72
|
+
if (!over || !active) return;
|
|
74
73
|
try {
|
|
75
74
|
let activeId = (_b = (_a = active == null ? void 0 : active.id) == null ? void 0 : _a.split("-")) == null ? void 0 : _b[1];
|
|
76
75
|
let overId = (_d = (_c = over == null ? void 0 : over.id) == null ? void 0 : _c.split("-")) == null ? void 0 : _d[1];
|
|
@@ -49,8 +49,7 @@ var IconGroupNameMap = {
|
|
|
49
49
|
var Icon = (props) => {
|
|
50
50
|
const { type, icons = {}, ...rest } = props;
|
|
51
51
|
const Comp = icons[type];
|
|
52
|
-
if (!Comp)
|
|
53
|
-
return null;
|
|
52
|
+
if (!Comp) return null;
|
|
54
53
|
return /* @__PURE__ */ import_react.default.createElement(Comp, { ...rest });
|
|
55
54
|
};
|
|
56
55
|
var IconContent = ({
|
|
@@ -36,8 +36,7 @@ __export(utils_exports, {
|
|
|
36
36
|
module.exports = __toCommonJS(utils_exports);
|
|
37
37
|
var import_react = __toESM(require("react"));
|
|
38
38
|
function get(obj, path, defaultValue) {
|
|
39
|
-
if (!path)
|
|
40
|
-
return defaultValue;
|
|
39
|
+
if (!path) return defaultValue;
|
|
41
40
|
const keys = path.split(".");
|
|
42
41
|
let result = obj;
|
|
43
42
|
for (const key of keys) {
|
|
@@ -41,8 +41,7 @@ var LowCodePage = (props) => {
|
|
|
41
41
|
const context = (0, import_useEngineContext.default)();
|
|
42
42
|
const { RenderLowCodeByKey, getRenderLowCodeByKey } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
43
43
|
const Com = (0, import_utils.isFunction)(getRenderLowCodeByKey) ? getRenderLowCodeByKey() : RenderLowCodeByKey;
|
|
44
|
-
if (!Com)
|
|
45
|
-
return /* @__PURE__ */ import_react.default.createElement("div", null, "RenderLowCodeByKey is not found");
|
|
44
|
+
if (!Com) return /* @__PURE__ */ import_react.default.createElement("div", null, "RenderLowCodeByKey is not found");
|
|
46
45
|
return /* @__PURE__ */ import_react.default.createElement(Com, { ...others, id, key: id });
|
|
47
46
|
};
|
|
48
47
|
var lowCodePage_default = LowCodePage;
|
|
@@ -80,10 +80,8 @@ var PisellAnchor = (0, import_react.forwardRef)((props, ref) => {
|
|
|
80
80
|
);
|
|
81
81
|
const { run: handleScrollThrottled } = (0, import_ahooks.useThrottleFn)(
|
|
82
82
|
() => {
|
|
83
|
-
if (isClickScrolling.current)
|
|
84
|
-
|
|
85
|
-
if (!(containerRef == null ? void 0 : containerRef.current))
|
|
86
|
-
return;
|
|
83
|
+
if (isClickScrolling.current) return;
|
|
84
|
+
if (!(containerRef == null ? void 0 : containerRef.current)) return;
|
|
87
85
|
const container = containerRef.current;
|
|
88
86
|
const headerHeight = 65;
|
|
89
87
|
const containerRect = container.getBoundingClientRect();
|
|
@@ -126,8 +124,7 @@ var PisellAnchor = (0, import_react.forwardRef)((props, ref) => {
|
|
|
126
124
|
{ wait: 150 }
|
|
127
125
|
);
|
|
128
126
|
(0, import_react.useEffect)(() => {
|
|
129
|
-
if (!(containerRef == null ? void 0 : containerRef.current))
|
|
130
|
-
return;
|
|
127
|
+
if (!(containerRef == null ? void 0 : containerRef.current)) return;
|
|
131
128
|
const handleScroll = () => {
|
|
132
129
|
if (!isClickScrolling.current) {
|
|
133
130
|
handleScrollThrottled();
|
|
@@ -155,8 +152,7 @@ var PisellAnchor = (0, import_react.forwardRef)((props, ref) => {
|
|
|
155
152
|
isClickScrolling.current = true;
|
|
156
153
|
clickedTabRef.current = item.id;
|
|
157
154
|
requestAnimationFrame(() => {
|
|
158
|
-
if (!(containerRef == null ? void 0 : containerRef.current))
|
|
159
|
-
return;
|
|
155
|
+
if (!(containerRef == null ? void 0 : containerRef.current)) return;
|
|
160
156
|
const htmlElement = element;
|
|
161
157
|
const headerHeight = 65;
|
|
162
158
|
const elementOffsetTop = htmlElement.offsetTop;
|
|
@@ -169,8 +165,7 @@ var PisellAnchor = (0, import_react.forwardRef)((props, ref) => {
|
|
|
169
165
|
behavior: "smooth"
|
|
170
166
|
});
|
|
171
167
|
setTimeout(() => {
|
|
172
|
-
if (!(containerRef == null ? void 0 : containerRef.current))
|
|
173
|
-
return;
|
|
168
|
+
if (!(containerRef == null ? void 0 : containerRef.current)) return;
|
|
174
169
|
containerRef.current.scrollTo({
|
|
175
170
|
top: elementOffsetTop - headerHeight,
|
|
176
171
|
behavior: "auto"
|
|
@@ -122,8 +122,7 @@ var PisellCheckboxGroup = (props) => {
|
|
|
122
122
|
key: option[rowKey],
|
|
123
123
|
gap: 10,
|
|
124
124
|
onClick: () => {
|
|
125
|
-
if (option.disabled)
|
|
126
|
-
return;
|
|
125
|
+
if (option.disabled) return;
|
|
127
126
|
handleSelectItem(option[rowKey], option);
|
|
128
127
|
},
|
|
129
128
|
leftContent: iconPosition === "left" && /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -66,8 +66,7 @@ var DatePickerInput = (props) => {
|
|
|
66
66
|
let lastIndex = 0;
|
|
67
67
|
for (let i = 0; i < parts.length; i++) {
|
|
68
68
|
const part = parts[i];
|
|
69
|
-
if (!part)
|
|
70
|
-
continue;
|
|
69
|
+
if (!part) continue;
|
|
71
70
|
const separator = separators[i] || "";
|
|
72
71
|
const expectedLength = part.length;
|
|
73
72
|
lastIndex = lastIndex + part.length + separator.length;
|
|
@@ -155,13 +155,10 @@ function SortableTree({
|
|
|
155
155
|
}, []);
|
|
156
156
|
function checkSubtreeDepth(items2, itemId, baseDepth) {
|
|
157
157
|
const item = items2.find((i) => i.id === itemId);
|
|
158
|
-
if (!item)
|
|
159
|
-
|
|
160
|
-
if (baseDepth >= maxLevel)
|
|
161
|
-
return true;
|
|
158
|
+
if (!item) return false;
|
|
159
|
+
if (baseDepth >= maxLevel) return true;
|
|
162
160
|
const children = items2.filter((i) => i.parentId === itemId);
|
|
163
|
-
if (baseDepth >= maxLevel - 1 && children.length > 0)
|
|
164
|
-
return true;
|
|
161
|
+
if (baseDepth >= maxLevel - 1 && children.length > 0) return true;
|
|
165
162
|
return children.some((child) => {
|
|
166
163
|
const childNewDepth = baseDepth + 1;
|
|
167
164
|
return childNewDepth >= maxLevel || checkSubtreeDepth(items2, child.id, childNewDepth);
|
|
@@ -88,8 +88,7 @@ var PisellQRScanner = ({
|
|
|
88
88
|
};
|
|
89
89
|
const handleFileChange = async (event) => {
|
|
90
90
|
const files = event.target.files;
|
|
91
|
-
if (!files || files.length === 0)
|
|
92
|
-
return;
|
|
91
|
+
if (!files || files.length === 0) return;
|
|
93
92
|
try {
|
|
94
93
|
const file = files[0];
|
|
95
94
|
if (!file.type.startsWith("image/")) {
|
|
@@ -130,8 +129,7 @@ var PisellQRScanner = ({
|
|
|
130
129
|
greenCanvas.width = img.width;
|
|
131
130
|
greenCanvas.height = img.height;
|
|
132
131
|
const greenCtx = greenCanvas.getContext("2d");
|
|
133
|
-
if (!greenCtx)
|
|
134
|
-
throw new Error("无法创建画布上下文");
|
|
132
|
+
if (!greenCtx) throw new Error("无法创建画布上下文");
|
|
135
133
|
greenCtx.drawImage(img, 0, 0);
|
|
136
134
|
const imageData = greenCtx.getImageData(0, 0, greenCanvas.width, greenCanvas.height);
|
|
137
135
|
const data = imageData.data;
|
|
@@ -174,8 +172,7 @@ var PisellQRScanner = ({
|
|
|
174
172
|
wechatCanvas.width = img.width;
|
|
175
173
|
wechatCanvas.height = img.height;
|
|
176
174
|
const wechatCtx = wechatCanvas.getContext("2d");
|
|
177
|
-
if (!wechatCtx)
|
|
178
|
-
throw new Error("无法创建画布上下文");
|
|
175
|
+
if (!wechatCtx) throw new Error("无法创建画布上下文");
|
|
179
176
|
wechatCtx.drawImage(img, 0, 0);
|
|
180
177
|
const imageData = wechatCtx.getImageData(0, 0, wechatCanvas.width, wechatCanvas.height);
|
|
181
178
|
const data = imageData.data;
|
|
@@ -218,8 +215,7 @@ var PisellQRScanner = ({
|
|
|
218
215
|
greenOnlyCanvas.width = img.width;
|
|
219
216
|
greenOnlyCanvas.height = img.height;
|
|
220
217
|
const greenOnlyCtx = greenOnlyCanvas.getContext("2d");
|
|
221
|
-
if (!greenOnlyCtx)
|
|
222
|
-
throw new Error("无法创建画布上下文");
|
|
218
|
+
if (!greenOnlyCtx) throw new Error("无法创建画布上下文");
|
|
223
219
|
greenOnlyCtx.drawImage(img, 0, 0);
|
|
224
220
|
const imageData = greenOnlyCtx.getImageData(0, 0, greenOnlyCanvas.width, greenOnlyCanvas.height);
|
|
225
221
|
const data = imageData.data;
|
|
@@ -250,8 +246,7 @@ var PisellQRScanner = ({
|
|
|
250
246
|
adaptiveCanvas.width = img.width;
|
|
251
247
|
adaptiveCanvas.height = img.height;
|
|
252
248
|
const adaptiveCtx = adaptiveCanvas.getContext("2d");
|
|
253
|
-
if (!adaptiveCtx)
|
|
254
|
-
throw new Error("无法创建画布上下文");
|
|
249
|
+
if (!adaptiveCtx) throw new Error("无法创建画布上下文");
|
|
255
250
|
adaptiveCtx.drawImage(img, 0, 0);
|
|
256
251
|
const imageData = adaptiveCtx.getImageData(0, 0, adaptiveCanvas.width, adaptiveCanvas.height);
|
|
257
252
|
const data = imageData.data;
|
|
@@ -294,8 +289,7 @@ var PisellQRScanner = ({
|
|
|
294
289
|
sharpenCanvas.width = img.width;
|
|
295
290
|
sharpenCanvas.height = img.height;
|
|
296
291
|
const sharpenCtx = sharpenCanvas.getContext("2d");
|
|
297
|
-
if (!sharpenCtx)
|
|
298
|
-
throw new Error("无法创建画布上下文");
|
|
292
|
+
if (!sharpenCtx) throw new Error("无法创建画布上下文");
|
|
299
293
|
sharpenCtx.drawImage(img, 0, 0);
|
|
300
294
|
sharpenCtx.filter = "blur(1px)";
|
|
301
295
|
sharpenCtx.drawImage(img, 0, 0);
|
|
@@ -325,8 +319,7 @@ var PisellQRScanner = ({
|
|
|
325
319
|
invertCanvas.width = img.width;
|
|
326
320
|
invertCanvas.height = img.height;
|
|
327
321
|
const invertCtx = invertCanvas.getContext("2d");
|
|
328
|
-
if (!invertCtx)
|
|
329
|
-
throw new Error("无法创建画布上下文");
|
|
322
|
+
if (!invertCtx) throw new Error("无法创建画布上下文");
|
|
330
323
|
invertCtx.drawImage(img, 0, 0);
|
|
331
324
|
const imageData = invertCtx.getImageData(0, 0, invertCanvas.width, invertCanvas.height);
|
|
332
325
|
const data = imageData.data;
|
|
@@ -358,8 +351,7 @@ var PisellQRScanner = ({
|
|
|
358
351
|
hsvCanvas.width = img.width;
|
|
359
352
|
hsvCanvas.height = img.height;
|
|
360
353
|
const hsvCtx = hsvCanvas.getContext("2d");
|
|
361
|
-
if (!hsvCtx)
|
|
362
|
-
throw new Error("无法创建画布上下文");
|
|
354
|
+
if (!hsvCtx) throw new Error("无法创建画布上下文");
|
|
363
355
|
hsvCtx.drawImage(img, 0, 0);
|
|
364
356
|
const imageData = hsvCtx.getImageData(0, 0, hsvCanvas.width, hsvCanvas.height);
|
|
365
357
|
const data = imageData.data;
|
|
@@ -585,8 +577,7 @@ var PisellQRScanner = ({
|
|
|
585
577
|
}
|
|
586
578
|
};
|
|
587
579
|
}, []);
|
|
588
|
-
if (!visible)
|
|
589
|
-
return null;
|
|
580
|
+
if (!visible) return null;
|
|
590
581
|
return (0, import_react_dom.createPortal)(
|
|
591
582
|
/* @__PURE__ */ import_react.default.createElement(
|
|
592
583
|
"div",
|
|
@@ -106,7 +106,7 @@ var PisellWalletPassCard = (props) => {
|
|
|
106
106
|
showCurrencySymbol: showBalanceSymbol
|
|
107
107
|
}
|
|
108
108
|
)), showDiscount && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-label" }, (0, import_locales.getText)("pisell-discount-card-title")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-value" }, discount, "% ", (0, import_locales.getText)("pisell-discount-card-unit")))),
|
|
109
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code" }, showCode && /* @__PURE__ */ import_react.default.createElement("div", null, code), showValidDate && /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_locales.getText)("pisell-wallet-pass-card-valid-to"), " ", !!validDate ? validDate : "
|
|
109
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code" }, showCode && /* @__PURE__ */ import_react.default.createElement("div", null, code), showValidDate && /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_locales.getText)("pisell-wallet-pass-card-valid-to"), " ", !!validDate ? validDate : (0, import_locales.getText)("pisell-wallet-pass-card-expireDate"))), showQrCode && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-qr-code" }, /* @__PURE__ */ import_react.default.createElement(import_pisellQrcode.default, { value: qrCode, size: 60 }))),
|
|
110
110
|
(disabled || disabledReason) && showDisabledReason && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-warn-message" }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { className: "pisell-card-icon", type: "pisell2-alert-circle" }), /* @__PURE__ */ import_react.default.createElement("span", null, disabledReason))
|
|
111
111
|
);
|
|
112
112
|
};
|
|
@@ -44,8 +44,7 @@ var prefix = "pisell-lowcode-";
|
|
|
44
44
|
var Footer = ({ item, hideDivider, type, isOnlyTotal }) => {
|
|
45
45
|
const { total, origin_total, symbol, tip, num, discount_reason } = item;
|
|
46
46
|
const isDiscount = (0, import_react.useMemo)(() => {
|
|
47
|
-
if (!origin_total)
|
|
48
|
-
return false;
|
|
47
|
+
if (!origin_total) return false;
|
|
49
48
|
return Number(total) != Number(origin_total);
|
|
50
49
|
}, [total, origin_total]);
|
|
51
50
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !hideDivider ? /* @__PURE__ */ import_react.default.createElement(import_Divider.default, { type: type !== "total" ? "inside" : "" }) : null, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -48,8 +48,7 @@ var MultiDay = ({ dataSource, hideDivider }) => {
|
|
|
48
48
|
const context = (0, import_useEngineContext.default)();
|
|
49
49
|
translationOriginal = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.translationOriginal;
|
|
50
50
|
const lists = (0, import_react.useMemo)(() => {
|
|
51
|
-
if (!(items == null ? void 0 : items.length))
|
|
52
|
-
return [];
|
|
51
|
+
if (!(items == null ? void 0 : items.length)) return [];
|
|
53
52
|
return (0, import_utils2.formatDateRanges)(items);
|
|
54
53
|
}, [items]);
|
|
55
54
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)(`${prefix}multi-day-wrap`) }, lists == null ? void 0 : lists.map((m, index) => {
|
|
@@ -61,8 +61,7 @@ var formatMultiDayDate = (item) => {
|
|
|
61
61
|
};
|
|
62
62
|
var getServiceTime = (item, currentDate) => {
|
|
63
63
|
var _a, _b, _c, _d;
|
|
64
|
-
if (!(0, import_dayjs.default)(currentDate).isValid())
|
|
65
|
-
return "";
|
|
64
|
+
if (!(0, import_dayjs.default)(currentDate).isValid()) return "";
|
|
66
65
|
const context = (0, import_useEngineContext.default)();
|
|
67
66
|
const utils = context.appHelper.utils || {};
|
|
68
67
|
const locale = (item == null ? void 0 : item.locale) || ((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("umi_locale")) || "en-US";
|
|
@@ -73,8 +73,7 @@ var ProfileMenu = ({
|
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
75
|
const finalMenuItems = (0, import_react.useMemo)(() => {
|
|
76
|
-
if (!isShowUserInfo)
|
|
77
|
-
return menuItems;
|
|
76
|
+
if (!isShowUserInfo) return menuItems;
|
|
78
77
|
const userInfoItem = {
|
|
79
78
|
key: "user-info",
|
|
80
79
|
label: /* @__PURE__ */ import_react.default.createElement("div", { className: "profile-menu-user-info-item" }, renderAvatar(avatar), /* @__PURE__ */ import_react.default.createElement("div", { className: "profile-menu-user-info" }, userName && /* @__PURE__ */ import_react.default.createElement("p", { className: "profile-menu-user-info-name" }, userName), email && /* @__PURE__ */ import_react.default.createElement("p", { className: "profile-menu-user-info-email" }, email)))
|
|
@@ -61,8 +61,7 @@ var SelectBase = (0, import_react.forwardRef)((props, ref) => {
|
|
|
61
61
|
const [state, setState] = (0, import_ahooks.useControllableValue)(props);
|
|
62
62
|
const [searchValue, setSearchValue] = (0, import_react.useState)("");
|
|
63
63
|
const filteredOptions = (0, import_react.useMemo)(() => {
|
|
64
|
-
if (!searchValue)
|
|
65
|
-
return options;
|
|
64
|
+
if (!searchValue) return options;
|
|
66
65
|
return (options || []).filter(
|
|
67
66
|
(option) => {
|
|
68
67
|
var _a;
|
|
@@ -99,8 +98,7 @@ var SelectBase = (0, import_react.forwardRef)((props, ref) => {
|
|
|
99
98
|
}, [mode, selectAll, isShowDropdown]);
|
|
100
99
|
const checkboxChecked = (0, import_react.useMemo)(() => {
|
|
101
100
|
var _a, _b, _c;
|
|
102
|
-
if (mode !== "multiple")
|
|
103
|
-
return false;
|
|
101
|
+
if (mode !== "multiple") return false;
|
|
104
102
|
return (state == null ? void 0 : state.length) === (filteredOptions == null ? void 0 : filteredOptions.length) && ((_a = state == null ? void 0 : state.sort()) == null ? void 0 : _a.join("")) === ((_c = (_b = filteredOptions == null ? void 0 : filteredOptions.map((item) => item.value)) == null ? void 0 : _b.sort()) == null ? void 0 : _c.join(""));
|
|
105
103
|
}, [state, filteredOptions]);
|
|
106
104
|
const dropdownRender = (0, import_react.useCallback)(
|
|
@@ -92,8 +92,7 @@ var PopoverContent = (props) => {
|
|
|
92
92
|
return `${item.key}-${(_a = item.dataIndex) == null ? void 0 : _a.toString()}`;
|
|
93
93
|
},
|
|
94
94
|
onChange: (list) => {
|
|
95
|
-
if (!(0, import_utils.isFixedOrderValid)(list))
|
|
96
|
-
return;
|
|
95
|
+
if (!(0, import_utils.isFixedOrderValid)(list)) return;
|
|
97
96
|
onChange == null ? void 0 : onChange(
|
|
98
97
|
list.map((item, index) => ({
|
|
99
98
|
...item,
|
|
@@ -97,8 +97,7 @@ var ExportImport = ({ exportImport }) => {
|
|
|
97
97
|
return types.includes(value) ? 900 : import_status.defaultOptions.importValue ? 600 : 400;
|
|
98
98
|
}, [value]);
|
|
99
99
|
const _title = (0, import_react.useMemo)(() => {
|
|
100
|
-
if (!value)
|
|
101
|
-
return null;
|
|
100
|
+
if (!value) return null;
|
|
102
101
|
const types = import_status.defaultOptions.okShowButtonTypes;
|
|
103
102
|
const lang = (0, import_locale.getCurrentLocale)();
|
|
104
103
|
const isEn = lang === "en-US" || lang === "en";
|
|
@@ -40,17 +40,14 @@ function filterUtil_default({
|
|
|
40
40
|
key,
|
|
41
41
|
item
|
|
42
42
|
}) {
|
|
43
|
-
if (!value)
|
|
44
|
-
return true;
|
|
43
|
+
if (!value) return true;
|
|
45
44
|
const valueDayjsObj = (0, import_dayjs.default)(value);
|
|
46
45
|
if (!valueDayjsObj.isValid()) {
|
|
47
46
|
return true;
|
|
48
47
|
}
|
|
49
48
|
const dataValue = (0, import_utils2.getValueByKeys)(item, key);
|
|
50
|
-
if ((0, import_utils.isUndefined)(dataValue))
|
|
51
|
-
return false;
|
|
49
|
+
if ((0, import_utils.isUndefined)(dataValue)) return false;
|
|
52
50
|
const dataDayjsObj = (0, import_dayjs.default)(dataValue);
|
|
53
|
-
if (!dataDayjsObj.isValid())
|
|
54
|
-
return false;
|
|
51
|
+
if (!dataDayjsObj.isValid()) return false;
|
|
55
52
|
return dataDayjsObj.isSame(valueDayjsObj, "day");
|
|
56
53
|
}
|
|
@@ -43,19 +43,15 @@ function filterUtil_default({
|
|
|
43
43
|
key,
|
|
44
44
|
item
|
|
45
45
|
}) {
|
|
46
|
-
if (!value)
|
|
47
|
-
|
|
48
|
-
if ((value == null ? void 0 : value.length) !== 2)
|
|
49
|
-
return true;
|
|
46
|
+
if (!value) return true;
|
|
47
|
+
if ((value == null ? void 0 : value.length) !== 2) return true;
|
|
50
48
|
const valueDayjsObj = value.map((item2) => (0, import_dayjs.default)(item2 || ""));
|
|
51
49
|
if (valueDayjsObj.some((item2) => !item2.isValid())) {
|
|
52
50
|
return true;
|
|
53
51
|
}
|
|
54
52
|
const dataValue = (0, import_utils2.getValueByKeys)(item, key);
|
|
55
|
-
if ((0, import_utils.isUndefined)(dataValue))
|
|
56
|
-
return false;
|
|
53
|
+
if ((0, import_utils.isUndefined)(dataValue)) return false;
|
|
57
54
|
const dataDayjsObj = (0, import_dayjs.default)(dataValue);
|
|
58
|
-
if (!dataDayjsObj.isValid())
|
|
59
|
-
return false;
|
|
55
|
+
if (!dataDayjsObj.isValid()) return false;
|
|
60
56
|
return isDateInRange(dataDayjsObj, valueDayjsObj);
|
|
61
57
|
}
|
|
@@ -43,19 +43,15 @@ function filterUtil_default({
|
|
|
43
43
|
key,
|
|
44
44
|
item
|
|
45
45
|
}) {
|
|
46
|
-
if (!value)
|
|
47
|
-
|
|
48
|
-
if ((value == null ? void 0 : value.length) !== 2)
|
|
49
|
-
return true;
|
|
46
|
+
if (!value) return true;
|
|
47
|
+
if ((value == null ? void 0 : value.length) !== 2) return true;
|
|
50
48
|
const valueDayjsObj = value.map((item2) => (0, import_dayjs.default)(item2 || ""));
|
|
51
49
|
if (valueDayjsObj.some((item2) => !item2.isValid())) {
|
|
52
50
|
return true;
|
|
53
51
|
}
|
|
54
52
|
const dataValue = (0, import_utils2.getValueByKeys)(item, key);
|
|
55
|
-
if ((0, import_utils.isUndefined)(dataValue))
|
|
56
|
-
return false;
|
|
53
|
+
if ((0, import_utils.isUndefined)(dataValue)) return false;
|
|
57
54
|
const dataDayjsObj = (0, import_dayjs.default)(dataValue);
|
|
58
|
-
if (!dataDayjsObj.isValid())
|
|
59
|
-
return false;
|
|
55
|
+
if (!dataDayjsObj.isValid()) return false;
|
|
60
56
|
return isDateInRange(dataDayjsObj, valueDayjsObj);
|
|
61
57
|
}
|
|
@@ -25,8 +25,7 @@ module.exports = __toCommonJS(utils_exports);
|
|
|
25
25
|
var import_utils = require("@pisell/utils");
|
|
26
26
|
var getValueByKeys = (obj, keys) => {
|
|
27
27
|
var _a;
|
|
28
|
-
if (!keys)
|
|
29
|
-
return keys;
|
|
28
|
+
if (!keys) return keys;
|
|
30
29
|
if ((0, import_utils.isString)(keys)) {
|
|
31
30
|
keys = [keys];
|
|
32
31
|
}
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("
|
|
158
|
+
}) => ("order_by" | "group_by" | "column_setting" | "gallery_setting" | "filter_setting" | "view_mode")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|