@pisell/materials 1.0.797 → 1.0.799
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 +3 -3
- package/build/lowcode/preview.js +150 -150
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +27 -23
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +28 -24
- package/dist/umd/materials.min.css +1 -0
- package/dist/umd/materials.min.js +1 -0
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/arrow-left.e542294f.svg +1 -0
- package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
- package/es/components/DragSortList/index.js +6 -6
- package/es/components/classicLayout/index.js +5 -4
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/icon/index.js +5 -5
- package/es/components/list/index.js +6 -6
- package/es/components/productCard/components/Header/Actions/index.js +12 -0
- package/es/components/productCard/components/Header/Actions/index.less +15 -0
- package/es/components/productCard/components/Header/DeleteButton/index.js +4 -3
- package/es/components/productCard/components/Header/DeleteButton/index.less +2 -1
- package/es/components/productCard/components/Header/EditButton/index.d.ts +3 -0
- package/es/components/productCard/components/Header/EditButton/index.js +22 -0
- package/es/components/productCard/components/Header/EditButton/index.less +26 -0
- package/es/components/productCard/components/Header/index.js +12 -3
- package/es/components/productCard/components/Header/index.less +6 -2
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/index.js +8 -1
- package/es/components/productCard/locales.d.ts +3 -0
- package/es/components/productCard/locales.js +3 -0
- package/es/components/productCard/status.js +1 -0
- package/es/components/qrcode/index.js +1 -1
- 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/ViewMode/index.js +1 -1
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +5 -4
- 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.js +4 -4
- package/es/components/table/Table/fields/date/Edit/index.js +1 -1
- package/es/components/table/Table/fields/index.d.ts +2 -2
- package/es/components/table/Table/fields/link/Edit/index.js +5 -5
- package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
- package/es/components/table/Table/fields/search/filterUtil/index.js +1 -0
- package/es/components/table/Table/fields/text/Show/index.js +4 -4
- package/es/components/table/Table/fields/text/filterUtil/index.js +1 -0
- 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/hooks/useMergeColumnSetting.js +2 -1
- package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
- package/es/components/table/hooks/useTransFilterSetting.js +5 -5
- package/es/components/translation/index.js +10 -10
- package/es/components/translation/utils.js +5 -5
- package/es/hooks/useResponsive.js +2 -2
- package/es/utils/hoc.js +1 -1
- package/es/utils/miniRedux.js +9 -8
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/lowCodePage/index.js +2 -1
- package/lib/components/productCard/components/Header/Actions/index.js +41 -0
- package/lib/components/productCard/components/Header/Actions/index.less +15 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.js +9 -3
- package/lib/components/productCard/components/Header/DeleteButton/index.less +2 -1
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +3 -0
- package/lib/components/productCard/components/Header/EditButton/index.js +62 -0
- package/lib/components/productCard/components/Header/EditButton/index.less +26 -0
- package/lib/components/productCard/components/Header/index.js +22 -2
- package/lib/components/productCard/components/Header/index.less +6 -2
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/index.js +4 -0
- package/lib/components/productCard/locales.d.ts +3 -0
- package/lib/components/productCard/locales.js +3 -0
- package/lib/components/productCard/status.js +1 -0
- package/lib/components/table/Table/fields/date/filterUtil/index.js +6 -3
- package/lib/components/table/Table/fields/index.d.ts +2 -2
- package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +8 -4
- package/lib/components/table/Table/fields/utils/index.js +2 -1
- package/lib/hooks/useResponsive.js +6 -3
- package/lib/utils/platform.d.ts +1 -1
- package/package.json +3 -3
- package/es/components/appVersionControl/index.d.ts +0 -4
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -16
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
- package/es/components/drag-sort-tree/index.d.ts +0 -3
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisell-config-provider/index.d.ts +0 -12
- package/es/components/pisellCardList/index.d.ts +0 -71
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/es/components/table/Gallery/index.d.ts +0 -5
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/Table/utils.d.ts +0 -173
- package/es/components/table/hooks/useTableSetting.d.ts +0 -22
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -12
- package/es/components/table/types.d.ts +0 -253
- package/es/components/versionModal/index.d.ts +0 -24
- package/es/index.d.ts +0 -141
- package/es/locales/en-US.d.ts +0 -276
- package/es/locales/zh-CN.d.ts +0 -271
- package/es/locales/zh-TW.d.ts +0 -271
- package/lib/components/appVersionControl/index.d.ts +0 -4
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -16
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
- package/lib/components/drag-sort-tree/index.d.ts +0 -3
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisell-config-provider/index.d.ts +0 -12
- package/lib/components/pisellCardList/index.d.ts +0 -71
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/lib/components/table/Gallery/index.d.ts +0 -5
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/Table/utils.d.ts +0 -173
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -12
- package/lib/components/table/types.d.ts +0 -253
- package/lib/components/versionModal/index.d.ts +0 -24
- package/lib/index.d.ts +0 -141
- package/lib/locales/en-US.d.ts +0 -276
- package/lib/locales/zh-CN.d.ts +0 -271
- package/lib/locales/zh-TW.d.ts +0 -271
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _iterableToArrayLimit(
|
|
3
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
4
4
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(
|
|
5
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
6
6
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
7
7
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
8
|
import { useEffect, useState, useMemo } from 'react';
|
package/es/utils/hoc.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
function _typeof(
|
|
2
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { get, set, has } from 'lodash';
|
|
5
5
|
import dayjs from "dayjs";
|
package/es/utils/miniRedux.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function _typeof(
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function ownKeys(
|
|
4
|
-
function _objectSpread(
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
-
function _toPropertyKey(
|
|
7
|
-
function _toPrimitive(
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
8
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
9
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
10
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11
11
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
12
|
-
function _iterableToArrayLimit(
|
|
12
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
import React, { createContext, useCallback, useReducer } from 'react';
|
|
15
15
|
export default (function (_ref2) {
|
|
@@ -23,6 +23,7 @@ export default (function (_ref2) {
|
|
|
23
23
|
var Context = /*#__PURE__*/createContext({});
|
|
24
24
|
var Provider = function Provider(ComponentUi) {
|
|
25
25
|
var Components = function Components(props, ref) {
|
|
26
|
+
var _objectSpread2, _ref5;
|
|
26
27
|
var _useReducer = useReducer(function (state, _ref3) {
|
|
27
28
|
var type = _ref3.type,
|
|
28
29
|
payload = _ref3.payload;
|
|
@@ -47,14 +48,14 @@ export default (function (_ref2) {
|
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
50
|
}, []);
|
|
50
|
-
var _props = _objectSpread(_objectSpread({}, props), {},
|
|
51
|
+
var _props = _objectSpread(_objectSpread({}, props), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, namespace, providerState), _defineProperty(_objectSpread2, "dispatch", _dispatch), _objectSpread2));
|
|
51
52
|
var _ref = ref;
|
|
52
53
|
// if (_props.forwardedRef) {
|
|
53
54
|
// _ref = _props.forwardedRef;
|
|
54
55
|
// delete _props.forwardedRef;
|
|
55
56
|
// }
|
|
56
57
|
return /*#__PURE__*/React.createElement(Context.Provider, {
|
|
57
|
-
value:
|
|
58
|
+
value: (_ref5 = {}, _defineProperty(_ref5, namespace, providerState), _defineProperty(_ref5, "dispatch", _dispatch), _ref5)
|
|
58
59
|
}, /*#__PURE__*/React.createElement(ComponentUi, _extends({}, _props, {
|
|
59
60
|
ref: _ref
|
|
60
61
|
})));
|
package/es/utils/platform.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isMobile: () =>
|
|
1
|
+
export declare const isMobile: () => boolean;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
declare const Subdomain: React.FC<import("antd").InputProps & {
|
|
3
3
|
onChange: (value: string) => void;
|
|
4
4
|
onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
5
|
-
rootDomain: "custom" | "
|
|
5
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
6
6
|
customDomain?: string | undefined;
|
|
7
7
|
value?: string | undefined;
|
|
8
8
|
tenantId: string;
|
|
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
|
|
|
15
15
|
metadata?: MediaMetadata;
|
|
16
16
|
}) => Record<string, any>;
|
|
17
17
|
export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
|
|
18
|
-
export declare const getBaseTime: (size: number) =>
|
|
18
|
+
export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
|
|
@@ -19,7 +19,7 @@ declare const formFieldMap: {
|
|
|
19
19
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
20
20
|
onChange: (value: string) => void;
|
|
21
21
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
22
|
-
rootDomain: "custom" | "
|
|
22
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
23
23
|
customDomain?: string | undefined;
|
|
24
24
|
value?: string | undefined;
|
|
25
25
|
tenantId: string;
|
|
@@ -59,11 +59,13 @@ declare const formFieldMap: {
|
|
|
59
59
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
60
60
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
61
|
};
|
|
62
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("
|
|
62
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
63
63
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
64
64
|
} & {
|
|
65
65
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
66
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> |
|
|
66
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
67
|
+
onChange: (value: string) => void;
|
|
68
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
67
69
|
JSON: import("react").FC<any>;
|
|
68
70
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
69
71
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -76,14 +78,14 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
76
78
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
77
79
|
onChange: (value: string) => void;
|
|
78
80
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
79
|
-
rootDomain: "custom" | "
|
|
81
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
80
82
|
customDomain?: string | undefined;
|
|
81
83
|
value?: string | undefined;
|
|
82
84
|
tenantId: string;
|
|
83
85
|
name?: string | undefined;
|
|
84
86
|
fieldKey?: string | undefined;
|
|
85
87
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
86
|
-
}) | (import("react").FC<{}> & {
|
|
88
|
+
}) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
87
89
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
88
90
|
} & {
|
|
89
91
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -95,7 +97,5 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
95
97
|
extraParams?: Record<string, any> | undefined;
|
|
96
98
|
} & {
|
|
97
99
|
dataSource?: any;
|
|
98
|
-
}) => JSX.Element) | import("react").FC<
|
|
99
|
-
onChange: (value: string) => void;
|
|
100
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
100
|
+
}) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
101
101
|
export { getFieldComponent, formFieldMap };
|
|
@@ -41,7 +41,8 @@ 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)
|
|
44
|
+
if (!Com)
|
|
45
|
+
return /* @__PURE__ */ import_react.default.createElement("div", null, "RenderLowCodeByKey is not found");
|
|
45
46
|
return /* @__PURE__ */ import_react.default.createElement(Com, { ...others, id, key: id });
|
|
46
47
|
};
|
|
47
48
|
var lowCodePage_default = LowCodePage;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/productCard/components/Header/Actions/index.tsx
|
|
30
|
+
var Actions_exports = {};
|
|
31
|
+
__export(Actions_exports, {
|
|
32
|
+
default: () => Actions_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Actions_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_index = require("./index.less");
|
|
37
|
+
var prefix = "pisell-lowcode-";
|
|
38
|
+
var Actions = ({ children, style }) => {
|
|
39
|
+
return children ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-card-actions`, style }, children) : null;
|
|
40
|
+
};
|
|
41
|
+
var Actions_default = Actions;
|
|
@@ -37,17 +37,23 @@ var import_react = __toESM(require("react"));
|
|
|
37
37
|
var import_iconfont = __toESM(require("../../../../iconfont"));
|
|
38
38
|
var import_index = require("./index.less");
|
|
39
39
|
var prefix = "pisell-lowcode-";
|
|
40
|
-
var DeleteButton = ({
|
|
40
|
+
var DeleteButton = ({ onClick, type }) => {
|
|
41
41
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
44
44
|
className: `${prefix}product-delete`,
|
|
45
45
|
onClick: (e) => {
|
|
46
46
|
e.stopPropagation();
|
|
47
|
-
|
|
47
|
+
onClick();
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
50
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
51
|
+
import_antd.Button,
|
|
52
|
+
{
|
|
53
|
+
type: "text",
|
|
54
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: type || "pisell2-trash-01" })
|
|
55
|
+
}
|
|
56
|
+
)
|
|
51
57
|
);
|
|
52
58
|
};
|
|
53
59
|
var DeleteButton_default = DeleteButton;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/productCard/components/Header/EditButton/index.tsx
|
|
30
|
+
var EditButton_exports = {};
|
|
31
|
+
__export(EditButton_exports, {
|
|
32
|
+
default: () => EditButton_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(EditButton_exports);
|
|
35
|
+
var import_antd = require("antd");
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_iconfont = __toESM(require("../../../../iconfont"));
|
|
38
|
+
var import_utils = require("@pisell/utils");
|
|
39
|
+
var import_index = require("./index.less");
|
|
40
|
+
var prefix = "pisell-lowcode-";
|
|
41
|
+
var EditButton = ({ onEdit }) => {
|
|
42
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
43
|
+
import_antd.Button,
|
|
44
|
+
{
|
|
45
|
+
className: `${prefix}product-edit-button`,
|
|
46
|
+
onClick: (e) => {
|
|
47
|
+
e.stopPropagation();
|
|
48
|
+
onEdit == null ? void 0 : onEdit();
|
|
49
|
+
},
|
|
50
|
+
type: "text",
|
|
51
|
+
icon: /* @__PURE__ */ import_react.default.createElement(
|
|
52
|
+
import_iconfont.default,
|
|
53
|
+
{
|
|
54
|
+
type: "pisell2-edit-05",
|
|
55
|
+
className: `${prefix}product-edit-button-icon`
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
},
|
|
59
|
+
import_utils.locales.getText("pisell2.product.card.edit")
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
var EditButton_default = EditButton;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@pisell-prefix: pisell-lowcode;
|
|
2
|
+
|
|
3
|
+
.@{pisell-prefix} {
|
|
4
|
+
&-product-edit-button {
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
display: flex;
|
|
7
|
+
color: var(--Blue-600, #1570EF);
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
font-style: normal;
|
|
10
|
+
font-weight: 600;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
// gap: 8px;
|
|
15
|
+
align-self: flex-start;
|
|
16
|
+
/* 或 flex-end, center */
|
|
17
|
+
width: fit-content;
|
|
18
|
+
/* 根据内容自适应宽度 */
|
|
19
|
+
padding-left: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-product-edit-button-icon {
|
|
23
|
+
color: var(--Blue-600, #1570EF);
|
|
24
|
+
font-size: 20px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -37,10 +37,19 @@ var import_classnames = __toESM(require("classnames"));
|
|
|
37
37
|
var import_utils = require("@pisell/utils");
|
|
38
38
|
var import_options = __toESM(require("../Packages/components/options"));
|
|
39
39
|
var import_DeleteButton = __toESM(require("./DeleteButton"));
|
|
40
|
+
var import_EditButton = __toESM(require("./EditButton"));
|
|
40
41
|
var import_index = require("./index.less");
|
|
41
42
|
var prefix = "pisell-lowcode-";
|
|
42
43
|
var Header = (props) => {
|
|
43
|
-
const {
|
|
44
|
+
const {
|
|
45
|
+
isShowDelete,
|
|
46
|
+
item,
|
|
47
|
+
showImage,
|
|
48
|
+
onDelete,
|
|
49
|
+
disabledEdit,
|
|
50
|
+
onEditProduct,
|
|
51
|
+
isShowEditProduct
|
|
52
|
+
} = props;
|
|
44
53
|
const {
|
|
45
54
|
id,
|
|
46
55
|
options,
|
|
@@ -74,7 +83,18 @@ var Header = (props) => {
|
|
|
74
83
|
className: `${prefix}product-header-cover`
|
|
75
84
|
}
|
|
76
85
|
) : null,
|
|
77
|
-
id ? /* @__PURE__ */ import_react.default.createElement(
|
|
86
|
+
id ? /* @__PURE__ */ import_react.default.createElement(
|
|
87
|
+
"div",
|
|
88
|
+
{
|
|
89
|
+
className: (0, import_classnames.default)(`${prefix}product-right-wrap`, {
|
|
90
|
+
[`${prefix}product-right-wrap-stretch`]: isShowEditProduct
|
|
91
|
+
})
|
|
92
|
+
},
|
|
93
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-title` }, /* @__PURE__ */ import_react.default.createElement("span", null, name), showPrice ? /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}product-title-price` }, (0, import_utils.formatAmount)(price, 2, symbol)) : null),
|
|
94
|
+
product_option_string ? /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}product-title-variant` }, product_option_string) : null,
|
|
95
|
+
/* @__PURE__ */ import_react.default.createElement(import_options.default, { options, amountSymbol: symbol }),
|
|
96
|
+
isShowEditProduct && !disabledEdit && !disabled ? /* @__PURE__ */ import_react.default.createElement(import_EditButton.default, { onEdit: onEditProduct }) : null
|
|
97
|
+
) : null
|
|
78
98
|
);
|
|
79
99
|
};
|
|
80
100
|
var Header_default = Header;
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
flex-direction: column;
|
|
25
25
|
justify-content: space-between;
|
|
26
26
|
flex: 1;
|
|
27
|
+
|
|
28
|
+
&-stretch {
|
|
29
|
+
align-self: stretch;
|
|
30
|
+
}
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
&-product-title {
|
|
@@ -34,7 +38,7 @@
|
|
|
34
38
|
line-height: 24px;
|
|
35
39
|
display: flex;
|
|
36
40
|
flex-direction: column;
|
|
37
|
-
padding-right:
|
|
41
|
+
padding-right: 0 !important;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
&-product-title-price {
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
font-weight: 400;
|
|
51
55
|
line-height: 20px;
|
|
52
56
|
}
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
|
|
@@ -62,6 +62,8 @@ var ProductCard = (props) => {
|
|
|
62
62
|
isShowNote = import_status.defaultValue.isShowNote,
|
|
63
63
|
isShowDelete = import_status.defaultValue.isShowDelete,
|
|
64
64
|
isShowPackageNote = import_status.defaultValue.isShowPackageNote,
|
|
65
|
+
isShowEditProduct = import_status.defaultValue.isShowEditProduct,
|
|
66
|
+
onEditProduct,
|
|
65
67
|
onAction,
|
|
66
68
|
onDelete,
|
|
67
69
|
onNote,
|
|
@@ -123,7 +125,9 @@ var ProductCard = (props) => {
|
|
|
123
125
|
item: dataSource,
|
|
124
126
|
isShowImage,
|
|
125
127
|
isShowDelete,
|
|
128
|
+
isShowEditProduct,
|
|
126
129
|
showImage,
|
|
130
|
+
onEditProduct: () => onEditProduct == null ? void 0 : onEditProduct(dataSource),
|
|
127
131
|
onDelete: () => {
|
|
128
132
|
onDelete == null ? void 0 : onDelete(dataSource);
|
|
129
133
|
}
|
|
@@ -5,6 +5,7 @@ declare const _default: {
|
|
|
5
5
|
'pisell2.product.card.minute': (val: number) => string;
|
|
6
6
|
'pisell2.product.card.discount.reason': string;
|
|
7
7
|
'pisell2.product.card.discount.note': string;
|
|
8
|
+
'pisell2.product.card.edit': string;
|
|
8
9
|
'pisell2.product.card.discount.add.note': string;
|
|
9
10
|
'pisell2.product.card.discount.edit.note': string;
|
|
10
11
|
'pisell2.product.card.confirm': string;
|
|
@@ -18,6 +19,7 @@ declare const _default: {
|
|
|
18
19
|
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
19
20
|
};
|
|
20
21
|
'zh-CN': {
|
|
22
|
+
'pisell2.product.card.edit': string;
|
|
21
23
|
'pisell2.product.card.day': (val: number) => string;
|
|
22
24
|
'pisell2.product.card.day.event': (val: number) => string;
|
|
23
25
|
'pisell2.product.card.minute': (val: number) => string;
|
|
@@ -36,6 +38,7 @@ declare const _default: {
|
|
|
36
38
|
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
37
39
|
};
|
|
38
40
|
'zh-HK': {
|
|
41
|
+
'pisell2.product.card.edit': string;
|
|
39
42
|
'pisell2.product.card.day': (val: number) => string;
|
|
40
43
|
'pisell2.product.card.day.event': (val: number) => string;
|
|
41
44
|
'pisell2.product.card.minute': (val: number) => string;
|
|
@@ -29,6 +29,7 @@ var locales_default = {
|
|
|
29
29
|
"pisell2.product.card.minute": (val) => `${val > 1 ? " minutes" : " minute"}`,
|
|
30
30
|
"pisell2.product.card.discount.reason": "Discount reason",
|
|
31
31
|
"pisell2.product.card.discount.note": "Note",
|
|
32
|
+
"pisell2.product.card.edit": "Edit",
|
|
32
33
|
"pisell2.product.card.discount.add.note": "Add note",
|
|
33
34
|
"pisell2.product.card.discount.edit.note": "Edit note",
|
|
34
35
|
"pisell2.product.card.confirm": "Confirm",
|
|
@@ -42,6 +43,7 @@ var locales_default = {
|
|
|
42
43
|
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}h` : ""}${hour > 0 && minute > 0 ? " " : ""}${minute > 0 ? `${minute}min` : ""}`
|
|
43
44
|
},
|
|
44
45
|
"zh-CN": {
|
|
46
|
+
"pisell2.product.card.edit": "编辑",
|
|
45
47
|
"pisell2.product.card.day": (val) => "天",
|
|
46
48
|
"pisell2.product.card.day.event": (val) => "个活动",
|
|
47
49
|
"pisell2.product.card.minute": (val) => "分钟",
|
|
@@ -60,6 +62,7 @@ var locales_default = {
|
|
|
60
62
|
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小时` : ""}${minute > 0 ? `${minute}分钟` : ""}`
|
|
61
63
|
},
|
|
62
64
|
"zh-HK": {
|
|
65
|
+
"pisell2.product.card.edit": "編輯",
|
|
63
66
|
"pisell2.product.card.day": (val) => "天",
|
|
64
67
|
"pisell2.product.card.day.event": (val) => "个活動",
|
|
65
68
|
"pisell2.product.card.minute": (val) => "分鐘",
|
|
@@ -40,14 +40,17 @@ function filterUtil_default({
|
|
|
40
40
|
key,
|
|
41
41
|
item
|
|
42
42
|
}) {
|
|
43
|
-
if (!value)
|
|
43
|
+
if (!value)
|
|
44
|
+
return true;
|
|
44
45
|
const valueDayjsObj = (0, import_dayjs.default)(value);
|
|
45
46
|
if (!valueDayjsObj.isValid()) {
|
|
46
47
|
return true;
|
|
47
48
|
}
|
|
48
49
|
const dataValue = (0, import_utils2.getValueByKeys)(item, key);
|
|
49
|
-
if ((0, import_utils.isUndefined)(dataValue))
|
|
50
|
+
if ((0, import_utils.isUndefined)(dataValue))
|
|
51
|
+
return false;
|
|
50
52
|
const dataDayjsObj = (0, import_dayjs.default)(dataValue);
|
|
51
|
-
if (!dataDayjsObj.isValid())
|
|
53
|
+
if (!dataDayjsObj.isValid())
|
|
54
|
+
return false;
|
|
52
55
|
return dataDayjsObj.isSame(valueDayjsObj, "day");
|
|
53
56
|
}
|
|
@@ -197,12 +197,12 @@ export declare const fieldList: ({
|
|
|
197
197
|
field_icon: string;
|
|
198
198
|
field_name: string;
|
|
199
199
|
field_type: string;
|
|
200
|
-
default_value:
|
|
200
|
+
default_value: string;
|
|
201
201
|
} | {
|
|
202
202
|
field_icon: string;
|
|
203
203
|
field_name: string;
|
|
204
204
|
field_type: string;
|
|
205
|
-
default_value:
|
|
205
|
+
default_value: boolean;
|
|
206
206
|
} | {
|
|
207
207
|
field_icon: string;
|
|
208
208
|
field_name: string;
|
|
@@ -43,15 +43,19 @@ function filterUtil_default({
|
|
|
43
43
|
key,
|
|
44
44
|
item
|
|
45
45
|
}) {
|
|
46
|
-
if (!value)
|
|
47
|
-
|
|
46
|
+
if (!value)
|
|
47
|
+
return true;
|
|
48
|
+
if ((value == null ? void 0 : value.length) !== 2)
|
|
49
|
+
return true;
|
|
48
50
|
const valueDayjsObj = value.map((item2) => (0, import_dayjs.default)(item2 || ""));
|
|
49
51
|
if (valueDayjsObj.some((item2) => !item2.isValid())) {
|
|
50
52
|
return true;
|
|
51
53
|
}
|
|
52
54
|
const dataValue = (0, import_utils2.getValueByKeys)(item, key);
|
|
53
|
-
if ((0, import_utils.isUndefined)(dataValue))
|
|
55
|
+
if ((0, import_utils.isUndefined)(dataValue))
|
|
56
|
+
return false;
|
|
54
57
|
const dataDayjsObj = (0, import_dayjs.default)(dataValue);
|
|
55
|
-
if (!dataDayjsObj.isValid())
|
|
58
|
+
if (!dataDayjsObj.isValid())
|
|
59
|
+
return false;
|
|
56
60
|
return isDateInRange(dataDayjsObj, valueDayjsObj);
|
|
57
61
|
}
|
|
@@ -25,7 +25,8 @@ 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)
|
|
28
|
+
if (!keys)
|
|
29
|
+
return keys;
|
|
29
30
|
if ((0, import_utils.isString)(keys)) {
|
|
30
31
|
keys = [keys];
|
|
31
32
|
}
|